|
1 | 1 | { |
2 | 2 | "components": { |
3 | 3 | "parameters": { |
| 4 | + "labelSelector": { |
| 5 | + "description": "Filter token resource by labels", |
| 6 | + "in": "query", |
| 7 | + "name": "label_selector", |
| 8 | + "schema": { |
| 9 | + "type": "string" |
| 10 | + } |
| 11 | + }, |
4 | 12 | "modelId": { |
5 | 13 | "description": "model id", |
6 | 14 | "example": "550e8400-e29b-41d4-a716-446655440000", |
|
235 | 243 | "pattern": "^[0-9a-zA-Z\\s.:\\/\\-]+$", |
236 | 244 | "type": "string" |
237 | 245 | }, |
| 246 | + "labels": { |
| 247 | + "$ref": "#/components/schemas/Labels" |
| 248 | + }, |
238 | 249 | "name": { |
239 | 250 | "example": "my-token", |
240 | 251 | "maxLength": 200, |
|
401 | 412 | ], |
402 | 413 | "type": "object" |
403 | 414 | }, |
| 415 | + "LabelPatch": { |
| 416 | + "additionalProperties": { |
| 417 | + "nullable": true, |
| 418 | + "pattern": "^(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$", |
| 419 | + "type": "string" |
| 420 | + }, |
| 421 | + "description": "Object that represents the labels of an object. Regex for keys: `^(?=.{1,63}$)([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$`. Regex for values: `^(?=.{0,63}$)(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$`. Providing a `null` value for a key will remove that key. Send empty object {} to remove all labels. The `stackit` prefix is reserved and cannot be used for Keys.", |
| 422 | + "example": { |
| 423 | + "foo": "bar" |
| 424 | + }, |
| 425 | + "format": "json", |
| 426 | + "maxProperties": 64, |
| 427 | + "type": "object" |
| 428 | + }, |
| 429 | + "Labels": { |
| 430 | + "additionalProperties": { |
| 431 | + "pattern": "^(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$", |
| 432 | + "type": "string" |
| 433 | + }, |
| 434 | + "description": "Object that represents the labels of an object. Regex for keys: `^(?=.{1,63}$)([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$`. Regex for values: `^(?=.{0,63}$)(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$`. Providing a `null` value for a key will remove that key. Send empty object {} to remove all labels. The `stackit` prefix is reserved and cannot be used for Keys.", |
| 435 | + "example": { |
| 436 | + "foo": "bar" |
| 437 | + }, |
| 438 | + "format": "json", |
| 439 | + "maxProperties": 64, |
| 440 | + "type": "object" |
| 441 | + }, |
404 | 442 | "ListModelsResponse": { |
405 | 443 | "properties": { |
406 | 444 | "message": { |
|
533 | 571 | "pattern": "^[0-9a-zA-Z\\s.:\\/\\-]+$", |
534 | 572 | "type": "string" |
535 | 573 | }, |
| 574 | + "labels": { |
| 575 | + "$ref": "#/components/schemas/LabelPatch" |
| 576 | + }, |
536 | 577 | "name": { |
537 | 578 | "example": "my-token", |
538 | 579 | "maxLength": 200, |
|
575 | 616 | "format": "uuid", |
576 | 617 | "type": "string" |
577 | 618 | }, |
| 619 | + "labels": { |
| 620 | + "$ref": "#/components/schemas/Labels" |
| 621 | + }, |
578 | 622 | "name": { |
579 | 623 | "example": "my-token", |
580 | 624 | "maxLength": 200, |
|
628 | 672 | "format": "uuid", |
629 | 673 | "type": "string" |
630 | 674 | }, |
| 675 | + "labels": { |
| 676 | + "$ref": "#/components/schemas/Labels" |
| 677 | + }, |
631 | 678 | "name": { |
632 | 679 | "example": "my-token", |
633 | 680 | "maxLength": 200, |
|
694 | 741 | "get": { |
695 | 742 | "description": "auth tokens for shared model in non dedicated instances", |
696 | 743 | "operationId": "ListTokens", |
| 744 | + "parameters": [ |
| 745 | + { |
| 746 | + "$ref": "#/components/parameters/labelSelector" |
| 747 | + } |
| 748 | + ], |
697 | 749 | "responses": { |
698 | 750 | "200": { |
699 | 751 | "content": { |
|
0 commit comments