diff --git a/services/modelserving/oas_commit b/services/modelserving/oas_commit index 9ac506bc2..0f8ce352b 100644 --- a/services/modelserving/oas_commit +++ b/services/modelserving/oas_commit @@ -1 +1 @@ -4437823ea19bd04c638f5de3d6fa40b866aa144c +876a48fb56473c7c844baa697906d461c0675f47 diff --git a/services/modelserving/src/stackit/modelserving/__init__.py b/services/modelserving/src/stackit/modelserving/__init__.py index 03b761116..8919a620c 100644 --- a/services/modelserving/src/stackit/modelserving/__init__.py +++ b/services/modelserving/src/stackit/modelserving/__init__.py @@ -3,17 +3,18 @@ # flake8: noqa """ -STACKIT Model Serving API + STACKIT Model Serving API -This API provides endpoints for the model serving api + This API provides endpoints for the model serving api -The version of the OpenAPI document: 1.0.0 -Contact: stackit-model-serving@digits.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Contact: stackit-model-serving@digits.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 + __version__ = "1.0.0" # Define package exports diff --git a/services/modelserving/src/stackit/modelserving/api/default_api.py b/services/modelserving/src/stackit/modelserving/api/default_api.py index a3c305d77..d9018063a 100644 --- a/services/modelserving/src/stackit/modelserving/api/default_api.py +++ b/services/modelserving/src/stackit/modelserving/api/default_api.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT Model Serving API + STACKIT Model Serving API -This API provides endpoints for the model serving api + This API provides endpoints for the model serving api -The version of the OpenAPI document: 1.0.0 -Contact: stackit-model-serving@digits.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Contact: stackit-model-serving@digits.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from typing import Any, Dict, List, Optional, Tuple, Union @@ -1601,6 +1601,7 @@ def list_tokens( self, region_id: Annotated[StrictStr, Field(description="region name")], project_id: Annotated[UUID, Field(description="portal project id")], + label_selector: Annotated[Optional[StrictStr], Field(description="Filter token resource by labels")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1619,6 +1620,8 @@ def list_tokens( :type region_id: str :param project_id: portal project id (required) :type project_id: UUID + :param label_selector: Filter token resource by labels + :type label_selector: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1644,6 +1647,7 @@ def list_tokens( _param = self._list_tokens_serialize( region_id=region_id, project_id=project_id, + label_selector=label_selector, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1668,6 +1672,7 @@ def list_tokens_with_http_info( self, region_id: Annotated[StrictStr, Field(description="region name")], project_id: Annotated[UUID, Field(description="portal project id")], + label_selector: Annotated[Optional[StrictStr], Field(description="Filter token resource by labels")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1686,6 +1691,8 @@ def list_tokens_with_http_info( :type region_id: str :param project_id: portal project id (required) :type project_id: UUID + :param label_selector: Filter token resource by labels + :type label_selector: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1711,6 +1718,7 @@ def list_tokens_with_http_info( _param = self._list_tokens_serialize( region_id=region_id, project_id=project_id, + label_selector=label_selector, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1735,6 +1743,7 @@ def list_tokens_without_preload_content( self, region_id: Annotated[StrictStr, Field(description="region name")], project_id: Annotated[UUID, Field(description="portal project id")], + label_selector: Annotated[Optional[StrictStr], Field(description="Filter token resource by labels")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1753,6 +1762,8 @@ def list_tokens_without_preload_content( :type region_id: str :param project_id: portal project id (required) :type project_id: UUID + :param label_selector: Filter token resource by labels + :type label_selector: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1778,6 +1789,7 @@ def list_tokens_without_preload_content( _param = self._list_tokens_serialize( region_id=region_id, project_id=project_id, + label_selector=label_selector, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1797,6 +1809,7 @@ def _list_tokens_serialize( self, region_id, project_id, + label_selector, _request_auth, _content_type, _headers, @@ -1820,6 +1833,10 @@ def _list_tokens_serialize( if project_id is not None: _path_params["projectId"] = project_id # process the query parameters + if label_selector is not None: + + _query_params.append(("label_selector", label_selector)) + # process the header parameters # process the form parameters # process the body parameter diff --git a/services/modelserving/src/stackit/modelserving/api_client.py b/services/modelserving/src/stackit/modelserving/api_client.py index da6e89661..c0507952c 100644 --- a/services/modelserving/src/stackit/modelserving/api_client.py +++ b/services/modelserving/src/stackit/modelserving/api_client.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT Model Serving API + STACKIT Model Serving API -This API provides endpoints for the model serving api + This API provides endpoints for the model serving api -The version of the OpenAPI document: 1.0.0 -Contact: stackit-model-serving@digits.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Contact: stackit-model-serving@digits.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import datetime @@ -37,6 +37,7 @@ ApiException, ) + RequestSerialized = Tuple[str, str, Dict[str, str], Optional[str], List[str]] diff --git a/services/modelserving/src/stackit/modelserving/api_response.py b/services/modelserving/src/stackit/modelserving/api_response.py index ca801da0b..b3ba14a1d 100644 --- a/services/modelserving/src/stackit/modelserving/api_response.py +++ b/services/modelserving/src/stackit/modelserving/api_response.py @@ -6,6 +6,7 @@ from pydantic import BaseModel, Field, StrictBytes, StrictInt + T = TypeVar("T") diff --git a/services/modelserving/src/stackit/modelserving/configuration.py b/services/modelserving/src/stackit/modelserving/configuration.py index c3ca238cd..910663d03 100644 --- a/services/modelserving/src/stackit/modelserving/configuration.py +++ b/services/modelserving/src/stackit/modelserving/configuration.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT Model Serving API + STACKIT Model Serving API -This API provides endpoints for the model serving api + This API provides endpoints for the model serving api -The version of the OpenAPI document: 1.0.0 -Contact: stackit-model-serving@digits.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Contact: stackit-model-serving@digits.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import sys @@ -19,6 +19,7 @@ import os + ServerVariablesT = Dict[str, str] diff --git a/services/modelserving/src/stackit/modelserving/exceptions.py b/services/modelserving/src/stackit/modelserving/exceptions.py index e3f467b53..02e9fc41f 100644 --- a/services/modelserving/src/stackit/modelserving/exceptions.py +++ b/services/modelserving/src/stackit/modelserving/exceptions.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT Model Serving API + STACKIT Model Serving API -This API provides endpoints for the model serving api + This API provides endpoints for the model serving api -The version of the OpenAPI document: 1.0.0 -Contact: stackit-model-serving@digits.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Contact: stackit-model-serving@digits.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from typing import Any, Optional diff --git a/services/modelserving/src/stackit/modelserving/models/__init__.py b/services/modelserving/src/stackit/modelserving/models/__init__.py index 71dec2a97..c0940f2ac 100644 --- a/services/modelserving/src/stackit/modelserving/models/__init__.py +++ b/services/modelserving/src/stackit/modelserving/models/__init__.py @@ -2,15 +2,15 @@ # flake8: noqa """ -STACKIT Model Serving API + STACKIT Model Serving API -This API provides endpoints for the model serving api + This API provides endpoints for the model serving api -The version of the OpenAPI document: 1.0.0 -Contact: stackit-model-serving@digits.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Contact: stackit-model-serving@digits.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 # import models into model package diff --git a/services/modelserving/src/stackit/modelserving/models/chat_model_details.py b/services/modelserving/src/stackit/modelserving/models/chat_model_details.py index 244bb4b08..7676a9dc9 100644 --- a/services/modelserving/src/stackit/modelserving/models/chat_model_details.py +++ b/services/modelserving/src/stackit/modelserving/models/chat_model_details.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT Model Serving API + STACKIT Model Serving API -This API provides endpoints for the model serving api + This API provides endpoints for the model serving api -The version of the OpenAPI document: 1.0.0 -Contact: stackit-model-serving@digits.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Contact: stackit-model-serving@digits.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations diff --git a/services/modelserving/src/stackit/modelserving/models/create_token_payload.py b/services/modelserving/src/stackit/modelserving/models/create_token_payload.py index 416618f47..faec99b3b 100644 --- a/services/modelserving/src/stackit/modelserving/models/create_token_payload.py +++ b/services/modelserving/src/stackit/modelserving/models/create_token_payload.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT Model Serving API + STACKIT Model Serving API -This API provides endpoints for the model serving api + This API provides endpoints for the model serving api -The version of the OpenAPI document: 1.0.0 -Contact: stackit-model-serving@digits.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Contact: stackit-model-serving@digits.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations @@ -30,13 +30,17 @@ class CreateTokenPayload(BaseModel): """ # noqa: E501 description: Optional[Annotated[str, Field(strict=True, max_length=2000)]] = None + labels: Optional[Dict[str, Annotated[str, Field(strict=True)]]] = Field( + default=None, + 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.", + ) name: Annotated[str, Field(min_length=1, strict=True, max_length=200)] ttl_duration: Optional[StrictStr] = Field( default=None, description="time to live duration. Must be valid duration string. If not set the token will never expire.", alias="ttlDuration", ) - __properties: ClassVar[List[str]] = ["description", "name", "ttlDuration"] + __properties: ClassVar[List[str]] = ["description", "labels", "name", "ttlDuration"] @field_validator("description") def description_validate_regular_expression(cls, value): @@ -110,6 +114,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate( - {"description": obj.get("description"), "name": obj.get("name"), "ttlDuration": obj.get("ttlDuration")} + { + "description": obj.get("description"), + "labels": obj.get("labels"), + "name": obj.get("name"), + "ttlDuration": obj.get("ttlDuration"), + } ) return _obj diff --git a/services/modelserving/src/stackit/modelserving/models/create_token_response.py b/services/modelserving/src/stackit/modelserving/models/create_token_response.py index 16474cb5a..7e2b2e23c 100644 --- a/services/modelserving/src/stackit/modelserving/models/create_token_response.py +++ b/services/modelserving/src/stackit/modelserving/models/create_token_response.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT Model Serving API + STACKIT Model Serving API -This API provides endpoints for the model serving api + This API provides endpoints for the model serving api -The version of the OpenAPI document: 1.0.0 -Contact: stackit-model-serving@digits.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Contact: stackit-model-serving@digits.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations diff --git a/services/modelserving/src/stackit/modelserving/models/embedding_model_details.py b/services/modelserving/src/stackit/modelserving/models/embedding_model_details.py index a17183b54..db5de2464 100644 --- a/services/modelserving/src/stackit/modelserving/models/embedding_model_details.py +++ b/services/modelserving/src/stackit/modelserving/models/embedding_model_details.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT Model Serving API + STACKIT Model Serving API -This API provides endpoints for the model serving api + This API provides endpoints for the model serving api -The version of the OpenAPI document: 1.0.0 -Contact: stackit-model-serving@digits.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Contact: stackit-model-serving@digits.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations diff --git a/services/modelserving/src/stackit/modelserving/models/error_message_response.py b/services/modelserving/src/stackit/modelserving/models/error_message_response.py index dddb7ed60..ab86c06d4 100644 --- a/services/modelserving/src/stackit/modelserving/models/error_message_response.py +++ b/services/modelserving/src/stackit/modelserving/models/error_message_response.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT Model Serving API + STACKIT Model Serving API -This API provides endpoints for the model serving api + This API provides endpoints for the model serving api -The version of the OpenAPI document: 1.0.0 -Contact: stackit-model-serving@digits.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Contact: stackit-model-serving@digits.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations diff --git a/services/modelserving/src/stackit/modelserving/models/get_chat_model_response.py b/services/modelserving/src/stackit/modelserving/models/get_chat_model_response.py index f35792800..b9a7c1e45 100644 --- a/services/modelserving/src/stackit/modelserving/models/get_chat_model_response.py +++ b/services/modelserving/src/stackit/modelserving/models/get_chat_model_response.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT Model Serving API + STACKIT Model Serving API -This API provides endpoints for the model serving api + This API provides endpoints for the model serving api -The version of the OpenAPI document: 1.0.0 -Contact: stackit-model-serving@digits.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Contact: stackit-model-serving@digits.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations diff --git a/services/modelserving/src/stackit/modelserving/models/get_embeddings_model_resp.py b/services/modelserving/src/stackit/modelserving/models/get_embeddings_model_resp.py index b42457f70..d68ed78e5 100644 --- a/services/modelserving/src/stackit/modelserving/models/get_embeddings_model_resp.py +++ b/services/modelserving/src/stackit/modelserving/models/get_embeddings_model_resp.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT Model Serving API + STACKIT Model Serving API -This API provides endpoints for the model serving api + This API provides endpoints for the model serving api -The version of the OpenAPI document: 1.0.0 -Contact: stackit-model-serving@digits.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Contact: stackit-model-serving@digits.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations diff --git a/services/modelserving/src/stackit/modelserving/models/get_token_response.py b/services/modelserving/src/stackit/modelserving/models/get_token_response.py index 7fa886789..5b3ee3ac2 100644 --- a/services/modelserving/src/stackit/modelserving/models/get_token_response.py +++ b/services/modelserving/src/stackit/modelserving/models/get_token_response.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT Model Serving API + STACKIT Model Serving API -This API provides endpoints for the model serving api + This API provides endpoints for the model serving api -The version of the OpenAPI document: 1.0.0 -Contact: stackit-model-serving@digits.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Contact: stackit-model-serving@digits.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations diff --git a/services/modelserving/src/stackit/modelserving/models/list_models_response.py b/services/modelserving/src/stackit/modelserving/models/list_models_response.py index 2e2e84c17..f3df1c473 100644 --- a/services/modelserving/src/stackit/modelserving/models/list_models_response.py +++ b/services/modelserving/src/stackit/modelserving/models/list_models_response.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT Model Serving API + STACKIT Model Serving API -This API provides endpoints for the model serving api + This API provides endpoints for the model serving api -The version of the OpenAPI document: 1.0.0 -Contact: stackit-model-serving@digits.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Contact: stackit-model-serving@digits.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations diff --git a/services/modelserving/src/stackit/modelserving/models/list_token_resp.py b/services/modelserving/src/stackit/modelserving/models/list_token_resp.py index 818091287..bddfa646d 100644 --- a/services/modelserving/src/stackit/modelserving/models/list_token_resp.py +++ b/services/modelserving/src/stackit/modelserving/models/list_token_resp.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT Model Serving API + STACKIT Model Serving API -This API provides endpoints for the model serving api + This API provides endpoints for the model serving api -The version of the OpenAPI document: 1.0.0 -Contact: stackit-model-serving@digits.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Contact: stackit-model-serving@digits.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations diff --git a/services/modelserving/src/stackit/modelserving/models/message_response.py b/services/modelserving/src/stackit/modelserving/models/message_response.py index 73ac720ba..0cb7bcf1f 100644 --- a/services/modelserving/src/stackit/modelserving/models/message_response.py +++ b/services/modelserving/src/stackit/modelserving/models/message_response.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT Model Serving API + STACKIT Model Serving API -This API provides endpoints for the model serving api + This API provides endpoints for the model serving api -The version of the OpenAPI document: 1.0.0 -Contact: stackit-model-serving@digits.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Contact: stackit-model-serving@digits.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations diff --git a/services/modelserving/src/stackit/modelserving/models/model.py b/services/modelserving/src/stackit/modelserving/models/model.py index 9dff58f34..ab63ad0e3 100644 --- a/services/modelserving/src/stackit/modelserving/models/model.py +++ b/services/modelserving/src/stackit/modelserving/models/model.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT Model Serving API + STACKIT Model Serving API -This API provides endpoints for the model serving api + This API provides endpoints for the model serving api -The version of the OpenAPI document: 1.0.0 -Contact: stackit-model-serving@digits.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Contact: stackit-model-serving@digits.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations diff --git a/services/modelserving/src/stackit/modelserving/models/partial_update_token_payload.py b/services/modelserving/src/stackit/modelserving/models/partial_update_token_payload.py index 30d65808d..4cb462800 100644 --- a/services/modelserving/src/stackit/modelserving/models/partial_update_token_payload.py +++ b/services/modelserving/src/stackit/modelserving/models/partial_update_token_payload.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT Model Serving API + STACKIT Model Serving API -This API provides endpoints for the model serving api + This API provides endpoints for the model serving api -The version of the OpenAPI document: 1.0.0 -Contact: stackit-model-serving@digits.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Contact: stackit-model-serving@digits.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations @@ -30,8 +30,12 @@ class PartialUpdateTokenPayload(BaseModel): """ # noqa: E501 description: Optional[Annotated[str, Field(strict=True, max_length=2000)]] = None + labels: Optional[Dict[str, Optional[Annotated[str, Field(strict=True)]]]] = Field( + default=None, + 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.", + ) name: Optional[Annotated[str, Field(min_length=1, strict=True, max_length=200)]] = None - __properties: ClassVar[List[str]] = ["description", "name"] + __properties: ClassVar[List[str]] = ["description", "labels", "name"] @field_validator("description") def description_validate_regular_expression(cls, value): @@ -107,5 +111,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({"description": obj.get("description"), "name": obj.get("name")}) + _obj = cls.model_validate( + {"description": obj.get("description"), "labels": obj.get("labels"), "name": obj.get("name")} + ) return _obj diff --git a/services/modelserving/src/stackit/modelserving/models/sku.py b/services/modelserving/src/stackit/modelserving/models/sku.py index 28e46cfa1..262f6f3f4 100644 --- a/services/modelserving/src/stackit/modelserving/models/sku.py +++ b/services/modelserving/src/stackit/modelserving/models/sku.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT Model Serving API + STACKIT Model Serving API -This API provides endpoints for the model serving api + This API provides endpoints for the model serving api -The version of the OpenAPI document: 1.0.0 -Contact: stackit-model-serving@digits.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Contact: stackit-model-serving@digits.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations diff --git a/services/modelserving/src/stackit/modelserving/models/token.py b/services/modelserving/src/stackit/modelserving/models/token.py index 38ffab618..9643b7062 100644 --- a/services/modelserving/src/stackit/modelserving/models/token.py +++ b/services/modelserving/src/stackit/modelserving/models/token.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT Model Serving API + STACKIT Model Serving API -This API provides endpoints for the model serving api + This API provides endpoints for the model serving api -The version of the OpenAPI document: 1.0.0 -Contact: stackit-model-serving@digits.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Contact: stackit-model-serving@digits.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations @@ -33,11 +33,15 @@ class Token(BaseModel): description: Optional[Annotated[str, Field(strict=True, max_length=2000)]] = None id: UUID + labels: Optional[Dict[str, Annotated[str, Field(strict=True)]]] = Field( + default=None, + 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.", + ) name: Annotated[str, Field(min_length=1, strict=True, max_length=200)] region: StrictStr state: StrictStr valid_until: datetime = Field(alias="validUntil") - __properties: ClassVar[List[str]] = ["description", "id", "name", "region", "state", "validUntil"] + __properties: ClassVar[List[str]] = ["description", "id", "labels", "name", "region", "state", "validUntil"] @field_validator("description") def description_validate_regular_expression(cls, value): @@ -134,6 +138,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: { "description": obj.get("description"), "id": obj.get("id"), + "labels": obj.get("labels"), "name": obj.get("name"), "region": obj.get("region"), "state": obj.get("state"), diff --git a/services/modelserving/src/stackit/modelserving/models/token_created.py b/services/modelserving/src/stackit/modelserving/models/token_created.py index 7ca9e5977..fb8f8a7d7 100644 --- a/services/modelserving/src/stackit/modelserving/models/token_created.py +++ b/services/modelserving/src/stackit/modelserving/models/token_created.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT Model Serving API + STACKIT Model Serving API -This API provides endpoints for the model serving api + This API provides endpoints for the model serving api -The version of the OpenAPI document: 1.0.0 -Contact: stackit-model-serving@digits.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Contact: stackit-model-serving@digits.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations @@ -34,11 +34,24 @@ class TokenCreated(BaseModel): content: Annotated[str, Field(min_length=1, strict=True, max_length=200)] description: Optional[Annotated[str, Field(strict=True, max_length=2000)]] = None id: UUID + labels: Optional[Dict[str, Annotated[str, Field(strict=True)]]] = Field( + default=None, + 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.", + ) name: Annotated[str, Field(min_length=1, strict=True, max_length=200)] region: StrictStr state: StrictStr valid_until: datetime = Field(alias="validUntil") - __properties: ClassVar[List[str]] = ["content", "description", "id", "name", "region", "state", "validUntil"] + __properties: ClassVar[List[str]] = [ + "content", + "description", + "id", + "labels", + "name", + "region", + "state", + "validUntil", + ] @field_validator("content") def content_validate_regular_expression(cls, value): @@ -146,6 +159,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "content": obj.get("content"), "description": obj.get("description"), "id": obj.get("id"), + "labels": obj.get("labels"), "name": obj.get("name"), "region": obj.get("region"), "state": obj.get("state"), diff --git a/services/modelserving/src/stackit/modelserving/models/update_token_response.py b/services/modelserving/src/stackit/modelserving/models/update_token_response.py index 5d1e1edb5..5518b66c4 100644 --- a/services/modelserving/src/stackit/modelserving/models/update_token_response.py +++ b/services/modelserving/src/stackit/modelserving/models/update_token_response.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT Model Serving API + STACKIT Model Serving API -This API provides endpoints for the model serving api + This API provides endpoints for the model serving api -The version of the OpenAPI document: 1.0.0 -Contact: stackit-model-serving@digits.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Contact: stackit-model-serving@digits.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from __future__ import annotations diff --git a/services/modelserving/src/stackit/modelserving/rest.py b/services/modelserving/src/stackit/modelserving/rest.py index 7085da80c..92eccff4e 100644 --- a/services/modelserving/src/stackit/modelserving/rest.py +++ b/services/modelserving/src/stackit/modelserving/rest.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -STACKIT Model Serving API + STACKIT Model Serving API -This API provides endpoints for the model serving api + This API provides endpoints for the model serving api -The version of the OpenAPI document: 1.0.0 -Contact: stackit-model-serving@digits.schwarz -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 1.0.0 + Contact: stackit-model-serving@digits.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import io @@ -22,6 +22,7 @@ from stackit.modelserving.exceptions import ApiException, ApiValueError + RESTResponseType = requests.Response