Skip to content

Commit c412870

Browse files
OAS Update
1 parent 051dde6 commit c412870

1 file changed

Lines changed: 52 additions & 0 deletions

File tree

services/model-serving/v1/model-serving.json

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
{
22
"components": {
33
"parameters": {
4+
"labelSelector": {
5+
"description": "Filter token resource by labels",
6+
"in": "query",
7+
"name": "label_selector",
8+
"schema": {
9+
"type": "string"
10+
}
11+
},
412
"modelId": {
513
"description": "model id",
614
"example": "550e8400-e29b-41d4-a716-446655440000",
@@ -235,6 +243,9 @@
235243
"pattern": "^[0-9a-zA-Z\\s.:\\/\\-]+$",
236244
"type": "string"
237245
},
246+
"labels": {
247+
"$ref": "#/components/schemas/Labels"
248+
},
238249
"name": {
239250
"example": "my-token",
240251
"maxLength": 200,
@@ -401,6 +412,33 @@
401412
],
402413
"type": "object"
403414
},
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+
},
404442
"ListModelsResponse": {
405443
"properties": {
406444
"message": {
@@ -533,6 +571,9 @@
533571
"pattern": "^[0-9a-zA-Z\\s.:\\/\\-]+$",
534572
"type": "string"
535573
},
574+
"labels": {
575+
"$ref": "#/components/schemas/LabelPatch"
576+
},
536577
"name": {
537578
"example": "my-token",
538579
"maxLength": 200,
@@ -575,6 +616,9 @@
575616
"format": "uuid",
576617
"type": "string"
577618
},
619+
"labels": {
620+
"$ref": "#/components/schemas/Labels"
621+
},
578622
"name": {
579623
"example": "my-token",
580624
"maxLength": 200,
@@ -628,6 +672,9 @@
628672
"format": "uuid",
629673
"type": "string"
630674
},
675+
"labels": {
676+
"$ref": "#/components/schemas/Labels"
677+
},
631678
"name": {
632679
"example": "my-token",
633680
"maxLength": 200,
@@ -694,6 +741,11 @@
694741
"get": {
695742
"description": "auth tokens for shared model in non dedicated instances",
696743
"operationId": "ListTokens",
744+
"parameters": [
745+
{
746+
"$ref": "#/components/parameters/labelSelector"
747+
}
748+
],
697749
"responses": {
698750
"200": {
699751
"content": {

0 commit comments

Comments
 (0)