Skip to content

Commit

Permalink
Merge pull request #191 from mkusaka/update-20240929T000342
Browse files Browse the repository at this point in the history
update 20240929T000342
  • Loading branch information
mkusaka authored Sep 29, 2024
2 parents f63cccc + 80cf7ee commit 4cb95fc
Show file tree
Hide file tree
Showing 2 changed files with 86 additions and 0 deletions.
22 changes: 22 additions & 0 deletions client/services/PipelineService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,28 @@ export class PipelineService {
},
});
}
/**
* Get pipeline values for a pipeline
* Returns a map of pipeline values by pipeline ID. For more information see the [pipeline values reference page](https://circleci.com/docs/variables/#pipeline-values).
* @returns any A JSON object of pipeline values
* @throws ApiError
*/
public static getPipelineValuesById({
pipelineId,
}: {
/**
* The unique ID of the pipeline.
*/
pipelineId: string;
}): CancelablePromise<Record<string, string | number | boolean>> {
return __request(OpenAPI, {
method: "GET",
url: "/pipeline/{pipeline-id}/values",
path: {
"pipeline-id": pipelineId,
},
});
}
/**
* Get a pipeline's workflows
* Returns a paginated list of workflows by pipeline ID.
Expand Down
64 changes: 64 additions & 0 deletions swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -6175,6 +6175,70 @@
"tags": ["Pipeline"]
}
},
"/pipeline/{pipeline-id}/values": {
"get": {
"description": "Returns a map of pipeline values by pipeline ID. For more information see the [pipeline values reference page](https://circleci.com/docs/variables/#pipeline-values).",
"operationId": "getPipelineValuesById",
"parameters": [
{
"description": "The unique ID of the pipeline.",
"example": "5034460f-c7c4-4c43-9457-de07e2029e7b",
"in": "path",
"name": "pipeline-id",
"required": true,
"schema": {
"format": "uuid",
"type": "string"
}
}
],
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"additionalProperties": {
"anyOf": [
{
"type": "string"
},
{
"format": "int64",
"type": "integer"
},
{
"type": "boolean"
}
]
},
"description": "The pipeline-values for the pipeline.",
"title": "PipelineValues",
"type": "object"
}
}
},
"description": "A JSON object of pipeline values"
},
"default": {
"content": {
"application/json": {
"schema": {
"properties": {
"message": {
"type": "string"
}
},
"type": "object"
}
}
},
"description": "Error response."
}
},
"summary": "Get pipeline values for a pipeline",
"tags": ["Pipeline"]
}
},
"/pipeline/{pipeline-id}/workflow": {
"get": {
"description": "Returns a paginated list of workflows by pipeline ID.",
Expand Down

0 comments on commit 4cb95fc

Please sign in to comment.