|
209 | 209 | "type": "object" |
210 | 210 | }, |
211 | 211 | "ListFlavors": { |
212 | | - "description": "A list of STACKIT Git flavors.", |
| 212 | + "description": "A list of STACKIT Git Flavors.", |
213 | 213 | "properties": { |
214 | 214 | "flavors": { |
215 | 215 | "items": { |
|
237 | 237 | "instances" |
238 | 238 | ] |
239 | 239 | }, |
| 240 | + "ListRunnerLabels": { |
| 241 | + "description": "A list of STACKIT Git RunnerLabels.", |
| 242 | + "properties": { |
| 243 | + "runner-labels": { |
| 244 | + "items": { |
| 245 | + "$ref": "#/components/schemas/RunnerLabel" |
| 246 | + }, |
| 247 | + "type": "array" |
| 248 | + } |
| 249 | + }, |
| 250 | + "required": [ |
| 251 | + "runner-labels" |
| 252 | + ] |
| 253 | + }, |
240 | 254 | "PatchOperation": { |
241 | 255 | "description": "Request a STACKIT Git instance to be patch with these properties.", |
242 | 256 | "properties": { |
|
265 | 279 | ], |
266 | 280 | "type": "object" |
267 | 281 | }, |
| 282 | + "RunnerLabel": { |
| 283 | + "description": "Describes a STACKIT Git RunnerLabel.", |
| 284 | + "properties": { |
| 285 | + "description": { |
| 286 | + "description": "RunnerLabel description.", |
| 287 | + "type": "string" |
| 288 | + }, |
| 289 | + "id": { |
| 290 | + "description": "RunnerLabel id.", |
| 291 | + "maxLength": 36, |
| 292 | + "type": "string" |
| 293 | + }, |
| 294 | + "label": { |
| 295 | + "description": "RunnerLabel label.", |
| 296 | + "maxLength": 64, |
| 297 | + "type": "string" |
| 298 | + } |
| 299 | + }, |
| 300 | + "required": [ |
| 301 | + "id", |
| 302 | + "label", |
| 303 | + "description" |
| 304 | + ] |
| 305 | + }, |
268 | 306 | "UUID": { |
269 | 307 | "description": "Universally Unique Identifier (UUID).", |
270 | 308 | "example": "d61a8564-c8dd-4ffb-bc15-143e7d0c85ed", |
|
706 | 744 | "resource-type": "project" |
707 | 745 | } |
708 | 746 | } |
| 747 | + }, |
| 748 | + "/v1beta/projects/{projectId}/runner-labels": { |
| 749 | + "get": { |
| 750 | + "description": "Type of runners we can use for running jobs.\n", |
| 751 | + "operationId": "ListRunnerLabels", |
| 752 | + "responses": { |
| 753 | + "200": { |
| 754 | + "content": { |
| 755 | + "application/json": { |
| 756 | + "schema": { |
| 757 | + "$ref": "#/components/schemas/ListRunnerLabels" |
| 758 | + } |
| 759 | + } |
| 760 | + }, |
| 761 | + "description": "Git RunnerLabels." |
| 762 | + }, |
| 763 | + "400": { |
| 764 | + "content": { |
| 765 | + "application/json": { |
| 766 | + "schema": { |
| 767 | + "$ref": "#/components/schemas/GenericErrorResponse" |
| 768 | + } |
| 769 | + } |
| 770 | + }, |
| 771 | + "description": "Bad Request." |
| 772 | + }, |
| 773 | + "401": { |
| 774 | + "content": { |
| 775 | + "application/json": { |
| 776 | + "schema": { |
| 777 | + "$ref": "#/components/schemas/UnauthorizedResponse" |
| 778 | + } |
| 779 | + } |
| 780 | + }, |
| 781 | + "description": "Unauthorized." |
| 782 | + }, |
| 783 | + "404": { |
| 784 | + "description": "Not found." |
| 785 | + }, |
| 786 | + "500": { |
| 787 | + "content": { |
| 788 | + "application/json": { |
| 789 | + "schema": { |
| 790 | + "$ref": "#/components/schemas/GenericErrorResponse" |
| 791 | + } |
| 792 | + } |
| 793 | + }, |
| 794 | + "description": "Internal server error." |
| 795 | + } |
| 796 | + }, |
| 797 | + "summary": "Returns the details for the given STACKIT Git RunnerLabels.", |
| 798 | + "x-stackit-authorization": { |
| 799 | + "actions": [ |
| 800 | + "git.flavor.list" |
| 801 | + ], |
| 802 | + "resource-id": "projectId", |
| 803 | + "resource-id-type": "dynamic", |
| 804 | + "resource-type": "project" |
| 805 | + } |
| 806 | + }, |
| 807 | + "parameters": [ |
| 808 | + { |
| 809 | + "$ref": "#/components/parameters/ProjectId" |
| 810 | + } |
| 811 | + ] |
709 | 812 | } |
710 | 813 | }, |
711 | 814 | "security": [ |
|
0 commit comments