stackit-modelserving 0.3.0__tar.gz → 0.5.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. {stackit_modelserving-0.3.0 → stackit_modelserving-0.5.0}/PKG-INFO +3 -4
  2. {stackit_modelserving-0.3.0 → stackit_modelserving-0.5.0}/pyproject.toml +7 -7
  3. {stackit_modelserving-0.3.0 → stackit_modelserving-0.5.0}/src/stackit/modelserving/__init__.py +6 -7
  4. {stackit_modelserving-0.3.0 → stackit_modelserving-0.5.0}/src/stackit/modelserving/api/default_api.py +23 -6
  5. {stackit_modelserving-0.3.0 → stackit_modelserving-0.5.0}/src/stackit/modelserving/api_client.py +6 -7
  6. {stackit_modelserving-0.3.0 → stackit_modelserving-0.5.0}/src/stackit/modelserving/api_response.py +0 -1
  7. {stackit_modelserving-0.3.0 → stackit_modelserving-0.5.0}/src/stackit/modelserving/configuration.py +6 -7
  8. {stackit_modelserving-0.3.0 → stackit_modelserving-0.5.0}/src/stackit/modelserving/exceptions.py +6 -6
  9. {stackit_modelserving-0.3.0 → stackit_modelserving-0.5.0}/src/stackit/modelserving/models/__init__.py +6 -6
  10. {stackit_modelserving-0.3.0 → stackit_modelserving-0.5.0}/src/stackit/modelserving/models/chat_model_details.py +6 -6
  11. {stackit_modelserving-0.3.0 → stackit_modelserving-0.5.0}/src/stackit/modelserving/models/create_token_payload.py +17 -8
  12. {stackit_modelserving-0.3.0 → stackit_modelserving-0.5.0}/src/stackit/modelserving/models/create_token_response.py +6 -6
  13. {stackit_modelserving-0.3.0 → stackit_modelserving-0.5.0}/src/stackit/modelserving/models/embedding_model_details.py +6 -6
  14. {stackit_modelserving-0.3.0 → stackit_modelserving-0.5.0}/src/stackit/modelserving/models/error_message_response.py +6 -6
  15. {stackit_modelserving-0.3.0 → stackit_modelserving-0.5.0}/src/stackit/modelserving/models/get_chat_model_response.py +6 -6
  16. {stackit_modelserving-0.3.0 → stackit_modelserving-0.5.0}/src/stackit/modelserving/models/get_embeddings_model_resp.py +6 -6
  17. {stackit_modelserving-0.3.0 → stackit_modelserving-0.5.0}/src/stackit/modelserving/models/get_token_response.py +6 -6
  18. {stackit_modelserving-0.3.0 → stackit_modelserving-0.5.0}/src/stackit/modelserving/models/list_models_response.py +6 -6
  19. {stackit_modelserving-0.3.0 → stackit_modelserving-0.5.0}/src/stackit/modelserving/models/list_token_resp.py +6 -6
  20. {stackit_modelserving-0.3.0 → stackit_modelserving-0.5.0}/src/stackit/modelserving/models/message_response.py +6 -6
  21. {stackit_modelserving-0.3.0 → stackit_modelserving-0.5.0}/src/stackit/modelserving/models/model.py +6 -6
  22. {stackit_modelserving-0.3.0 → stackit_modelserving-0.5.0}/src/stackit/modelserving/models/partial_update_token_payload.py +14 -8
  23. {stackit_modelserving-0.3.0 → stackit_modelserving-0.5.0}/src/stackit/modelserving/models/sku.py +6 -6
  24. {stackit_modelserving-0.3.0 → stackit_modelserving-0.5.0}/src/stackit/modelserving/models/token.py +12 -7
  25. {stackit_modelserving-0.3.0 → stackit_modelserving-0.5.0}/src/stackit/modelserving/models/token_created.py +21 -7
  26. {stackit_modelserving-0.3.0 → stackit_modelserving-0.5.0}/src/stackit/modelserving/models/update_token_response.py +6 -6
  27. {stackit_modelserving-0.3.0 → stackit_modelserving-0.5.0}/src/stackit/modelserving/rest.py +6 -7
  28. {stackit_modelserving-0.3.0 → stackit_modelserving-0.5.0}/.gitignore +0 -0
  29. {stackit_modelserving-0.3.0 → stackit_modelserving-0.5.0}/LICENSE.md +0 -0
  30. {stackit_modelserving-0.3.0 → stackit_modelserving-0.5.0}/NOTICE.txt +0 -0
  31. {stackit_modelserving-0.3.0 → stackit_modelserving-0.5.0}/README.md +0 -0
  32. {stackit_modelserving-0.3.0 → stackit_modelserving-0.5.0}/src/stackit/modelserving/api/__init__.py +0 -0
  33. {stackit_modelserving-0.3.0 → stackit_modelserving-0.5.0}/src/stackit/modelserving/py.typed +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: stackit-modelserving
3
- Version: 0.3.0
3
+ Version: 0.5.0
4
4
  Summary: STACKIT Model Serving API
5
5
  Project-URL: Homepage, https://github.com/stackitcloud/stackit-sdk-python
6
6
  Project-URL: Issues, https://github.com/stackitcloud/stackit-sdk-python/issues
@@ -10,16 +10,15 @@ License-File: NOTICE.txt
10
10
  Classifier: License :: OSI Approved :: Apache Software License
11
11
  Classifier: Operating System :: OS Independent
12
12
  Classifier: Programming Language :: Python :: 3
13
- Classifier: Programming Language :: Python :: 3.9
14
13
  Classifier: Programming Language :: Python :: 3.10
15
14
  Classifier: Programming Language :: Python :: 3.11
16
15
  Classifier: Programming Language :: Python :: 3.12
17
16
  Classifier: Programming Language :: Python :: 3.13
18
17
  Classifier: Programming Language :: Python :: 3.14
19
- Requires-Python: <4.0,>=3.9
18
+ Requires-Python: <4.0,>=3.10
20
19
  Requires-Dist: pydantic>=2.9.2
21
20
  Requires-Dist: python-dateutil>=2.9.0.post0
22
- Requires-Dist: requests>=2.32.3
21
+ Requires-Dist: requests>=2.33.0
23
22
  Requires-Dist: stackit-core>=0.0.1a
24
23
  Description-Content-Type: text/markdown
25
24
 
@@ -1,15 +1,14 @@
1
1
  [project]
2
2
  name = "stackit-modelserving"
3
- version = "v0.3.0"
3
+ version = "v0.5.0"
4
4
  description = "STACKIT Model Serving API"
5
5
  authors = [{ name = "STACKIT Developer Tools", email = "developer-tools@stackit.cloud" }]
6
- requires-python = ">=3.9,<4.0"
6
+ requires-python = ">=3.10,<4.0"
7
7
  readme = "README.md"
8
8
  classifiers = [
9
9
  "Programming Language :: Python :: 3",
10
10
  "License :: OSI Approved :: Apache Software License",
11
11
  "Operating System :: OS Independent",
12
- "Programming Language :: Python :: 3.9",
13
12
  "Programming Language :: Python :: 3.10",
14
13
  "Programming Language :: Python :: 3.11",
15
14
  "Programming Language :: Python :: 3.12",
@@ -18,7 +17,7 @@ classifiers = [
18
17
  ]
19
18
  dependencies = [
20
19
  "stackit-core>=0.0.1a",
21
- "requests>=2.32.3",
20
+ "requests>=2.33.0",
22
21
  "pydantic>=2.9.2",
23
22
  "python-dateutil>=2.9.0.post0",
24
23
  ]
@@ -29,8 +28,8 @@ Issues = "https://github.com/stackitcloud/stackit-sdk-python/issues"
29
28
 
30
29
  [dependency-groups]
31
30
  dev = [
32
- "black>=24.8.0",
33
- "pytest>=8.3.3",
31
+ "black>=26.3.1",
32
+ "pytest>=9.1.1",
34
33
  "flake8>=5.0.3 ; python_full_version < '3.12'",
35
34
  "flake8>=6.0.1 ; python_full_version >= '3.12'",
36
35
  "flake8-black>=0.3.6",
@@ -102,7 +101,8 @@ show-source = false
102
101
  max-line-length = 120
103
102
  # E203,W503 and E704 are incompatible with the formatter black
104
103
  # W291 needs to be disabled because some doc-strings get generated with trailing whitespace but black won't re-format comments
105
- ignore = ["E203", "W503", "E704", "W291"]
104
+ # fixing B042 in upstream exceptions.mustache would be a breaking change
105
+ ignore = ["E203", "W503", "E704", "W291", "B042"]
106
106
  inline-quotes = '"'
107
107
  docstring-quotes = '"""'
108
108
  multiline-quotes = '"""'
@@ -3,18 +3,17 @@
3
3
  # flake8: noqa
4
4
 
5
5
  """
6
- STACKIT Model Serving API
6
+ STACKIT Model Serving API
7
7
 
8
- This API provides endpoints for the model serving api
8
+ This API provides endpoints for the model serving api
9
9
 
10
- The version of the OpenAPI document: 1.0.0
11
- Contact: model-serving@mail.schwarz
12
- Generated by OpenAPI Generator (https://openapi-generator.tech)
10
+ The version of the OpenAPI document: 1.0.0
11
+ Contact: stackit-model-serving@digits.schwarz
12
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
13
13
 
14
- Do not edit the class manually.
14
+ Do not edit the class manually.
15
15
  """ # noqa: E501
16
16
 
17
-
18
17
  __version__ = "1.0.0"
19
18
 
20
19
  # Define package exports
@@ -1,15 +1,15 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- STACKIT Model Serving API
4
+ STACKIT Model Serving API
5
5
 
6
- This API provides endpoints for the model serving api
6
+ This API provides endpoints for the model serving api
7
7
 
8
- The version of the OpenAPI document: 1.0.0
9
- Contact: model-serving@mail.schwarz
10
- Generated by OpenAPI Generator (https://openapi-generator.tech)
8
+ The version of the OpenAPI document: 1.0.0
9
+ Contact: stackit-model-serving@digits.schwarz
10
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
12
- Do not edit the class manually.
12
+ Do not edit the class manually.
13
13
  """ # noqa: E501
14
14
 
15
15
  from typing import Any, Dict, List, Optional, Tuple, Union
@@ -1601,6 +1601,7 @@ class DefaultApi:
1601
1601
  self,
1602
1602
  region_id: Annotated[StrictStr, Field(description="region name")],
1603
1603
  project_id: Annotated[UUID, Field(description="portal project id")],
1604
+ label_selector: Annotated[Optional[StrictStr], Field(description="Filter token resource by labels")] = None,
1604
1605
  _request_timeout: Union[
1605
1606
  None,
1606
1607
  Annotated[StrictFloat, Field(gt=0)],
@@ -1619,6 +1620,8 @@ class DefaultApi:
1619
1620
  :type region_id: str
1620
1621
  :param project_id: portal project id (required)
1621
1622
  :type project_id: UUID
1623
+ :param label_selector: Filter token resource by labels
1624
+ :type label_selector: str
1622
1625
  :param _request_timeout: timeout setting for this request. If one
1623
1626
  number provided, it will be total request
1624
1627
  timeout. It can also be a pair (tuple) of
@@ -1644,6 +1647,7 @@ class DefaultApi:
1644
1647
  _param = self._list_tokens_serialize(
1645
1648
  region_id=region_id,
1646
1649
  project_id=project_id,
1650
+ label_selector=label_selector,
1647
1651
  _request_auth=_request_auth,
1648
1652
  _content_type=_content_type,
1649
1653
  _headers=_headers,
@@ -1668,6 +1672,7 @@ class DefaultApi:
1668
1672
  self,
1669
1673
  region_id: Annotated[StrictStr, Field(description="region name")],
1670
1674
  project_id: Annotated[UUID, Field(description="portal project id")],
1675
+ label_selector: Annotated[Optional[StrictStr], Field(description="Filter token resource by labels")] = None,
1671
1676
  _request_timeout: Union[
1672
1677
  None,
1673
1678
  Annotated[StrictFloat, Field(gt=0)],
@@ -1686,6 +1691,8 @@ class DefaultApi:
1686
1691
  :type region_id: str
1687
1692
  :param project_id: portal project id (required)
1688
1693
  :type project_id: UUID
1694
+ :param label_selector: Filter token resource by labels
1695
+ :type label_selector: str
1689
1696
  :param _request_timeout: timeout setting for this request. If one
1690
1697
  number provided, it will be total request
1691
1698
  timeout. It can also be a pair (tuple) of
@@ -1711,6 +1718,7 @@ class DefaultApi:
1711
1718
  _param = self._list_tokens_serialize(
1712
1719
  region_id=region_id,
1713
1720
  project_id=project_id,
1721
+ label_selector=label_selector,
1714
1722
  _request_auth=_request_auth,
1715
1723
  _content_type=_content_type,
1716
1724
  _headers=_headers,
@@ -1735,6 +1743,7 @@ class DefaultApi:
1735
1743
  self,
1736
1744
  region_id: Annotated[StrictStr, Field(description="region name")],
1737
1745
  project_id: Annotated[UUID, Field(description="portal project id")],
1746
+ label_selector: Annotated[Optional[StrictStr], Field(description="Filter token resource by labels")] = None,
1738
1747
  _request_timeout: Union[
1739
1748
  None,
1740
1749
  Annotated[StrictFloat, Field(gt=0)],
@@ -1753,6 +1762,8 @@ class DefaultApi:
1753
1762
  :type region_id: str
1754
1763
  :param project_id: portal project id (required)
1755
1764
  :type project_id: UUID
1765
+ :param label_selector: Filter token resource by labels
1766
+ :type label_selector: str
1756
1767
  :param _request_timeout: timeout setting for this request. If one
1757
1768
  number provided, it will be total request
1758
1769
  timeout. It can also be a pair (tuple) of
@@ -1778,6 +1789,7 @@ class DefaultApi:
1778
1789
  _param = self._list_tokens_serialize(
1779
1790
  region_id=region_id,
1780
1791
  project_id=project_id,
1792
+ label_selector=label_selector,
1781
1793
  _request_auth=_request_auth,
1782
1794
  _content_type=_content_type,
1783
1795
  _headers=_headers,
@@ -1797,6 +1809,7 @@ class DefaultApi:
1797
1809
  self,
1798
1810
  region_id,
1799
1811
  project_id,
1812
+ label_selector,
1800
1813
  _request_auth,
1801
1814
  _content_type,
1802
1815
  _headers,
@@ -1820,6 +1833,10 @@ class DefaultApi:
1820
1833
  if project_id is not None:
1821
1834
  _path_params["projectId"] = project_id
1822
1835
  # process the query parameters
1836
+ if label_selector is not None:
1837
+
1838
+ _query_params.append(("label_selector", label_selector))
1839
+
1823
1840
  # process the header parameters
1824
1841
  # process the form parameters
1825
1842
  # process the body parameter
@@ -1,15 +1,15 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- STACKIT Model Serving API
4
+ STACKIT Model Serving API
5
5
 
6
- This API provides endpoints for the model serving api
6
+ This API provides endpoints for the model serving api
7
7
 
8
- The version of the OpenAPI document: 1.0.0
9
- Contact: model-serving@mail.schwarz
10
- Generated by OpenAPI Generator (https://openapi-generator.tech)
8
+ The version of the OpenAPI document: 1.0.0
9
+ Contact: stackit-model-serving@digits.schwarz
10
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
12
- Do not edit the class manually.
12
+ Do not edit the class manually.
13
13
  """ # noqa: E501
14
14
 
15
15
  import datetime
@@ -37,7 +37,6 @@ from stackit.modelserving.exceptions import (
37
37
  ApiException,
38
38
  )
39
39
 
40
-
41
40
  RequestSerialized = Tuple[str, str, Dict[str, str], Optional[str], List[str]]
42
41
 
43
42
 
@@ -6,7 +6,6 @@ from typing import Generic, Mapping, Optional, TypeVar
6
6
 
7
7
  from pydantic import BaseModel, Field, StrictBytes, StrictInt
8
8
 
9
-
10
9
  T = TypeVar("T")
11
10
 
12
11
 
@@ -1,15 +1,15 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- STACKIT Model Serving API
4
+ STACKIT Model Serving API
5
5
 
6
- This API provides endpoints for the model serving api
6
+ This API provides endpoints for the model serving api
7
7
 
8
- The version of the OpenAPI document: 1.0.0
9
- Contact: model-serving@mail.schwarz
10
- Generated by OpenAPI Generator (https://openapi-generator.tech)
8
+ The version of the OpenAPI document: 1.0.0
9
+ Contact: stackit-model-serving@digits.schwarz
10
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
12
- Do not edit the class manually.
12
+ Do not edit the class manually.
13
13
  """ # noqa: E501
14
14
 
15
15
  import sys
@@ -19,7 +19,6 @@ from typing_extensions import NotRequired
19
19
 
20
20
  import os
21
21
 
22
-
23
22
  ServerVariablesT = Dict[str, str]
24
23
 
25
24
 
@@ -1,15 +1,15 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- STACKIT Model Serving API
4
+ STACKIT Model Serving API
5
5
 
6
- This API provides endpoints for the model serving api
6
+ This API provides endpoints for the model serving api
7
7
 
8
- The version of the OpenAPI document: 1.0.0
9
- Contact: model-serving@mail.schwarz
10
- Generated by OpenAPI Generator (https://openapi-generator.tech)
8
+ The version of the OpenAPI document: 1.0.0
9
+ Contact: stackit-model-serving@digits.schwarz
10
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
12
- Do not edit the class manually.
12
+ Do not edit the class manually.
13
13
  """ # noqa: E501
14
14
 
15
15
  from typing import Any, Optional
@@ -2,15 +2,15 @@
2
2
 
3
3
  # flake8: noqa
4
4
  """
5
- STACKIT Model Serving API
5
+ STACKIT Model Serving API
6
6
 
7
- This API provides endpoints for the model serving api
7
+ This API provides endpoints for the model serving api
8
8
 
9
- The version of the OpenAPI document: 1.0.0
10
- Contact: model-serving@mail.schwarz
11
- Generated by OpenAPI Generator (https://openapi-generator.tech)
9
+ The version of the OpenAPI document: 1.0.0
10
+ Contact: stackit-model-serving@digits.schwarz
11
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
12
12
 
13
- Do not edit the class manually.
13
+ Do not edit the class manually.
14
14
  """ # noqa: E501
15
15
 
16
16
  # import models into model package
@@ -1,15 +1,15 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- STACKIT Model Serving API
4
+ STACKIT Model Serving API
5
5
 
6
- This API provides endpoints for the model serving api
6
+ This API provides endpoints for the model serving api
7
7
 
8
- The version of the OpenAPI document: 1.0.0
9
- Contact: model-serving@mail.schwarz
10
- Generated by OpenAPI Generator (https://openapi-generator.tech)
8
+ The version of the OpenAPI document: 1.0.0
9
+ Contact: stackit-model-serving@digits.schwarz
10
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
12
- Do not edit the class manually.
12
+ Do not edit the class manually.
13
13
  """ # noqa: E501
14
14
 
15
15
  from __future__ import annotations
@@ -1,15 +1,15 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- STACKIT Model Serving API
4
+ STACKIT Model Serving API
5
5
 
6
- This API provides endpoints for the model serving api
6
+ This API provides endpoints for the model serving api
7
7
 
8
- The version of the OpenAPI document: 1.0.0
9
- Contact: model-serving@mail.schwarz
10
- Generated by OpenAPI Generator (https://openapi-generator.tech)
8
+ The version of the OpenAPI document: 1.0.0
9
+ Contact: stackit-model-serving@digits.schwarz
10
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
12
- Do not edit the class manually.
12
+ Do not edit the class manually.
13
13
  """ # noqa: E501
14
14
 
15
15
  from __future__ import annotations
@@ -30,13 +30,17 @@ class CreateTokenPayload(BaseModel):
30
30
  """ # noqa: E501
31
31
 
32
32
  description: Optional[Annotated[str, Field(strict=True, max_length=2000)]] = None
33
+ labels: Optional[Dict[str, Annotated[str, Field(strict=True)]]] = Field(
34
+ default=None,
35
+ 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.",
36
+ )
33
37
  name: Annotated[str, Field(min_length=1, strict=True, max_length=200)]
34
38
  ttl_duration: Optional[StrictStr] = Field(
35
39
  default=None,
36
40
  description="time to live duration. Must be valid duration string. If not set the token will never expire.",
37
41
  alias="ttlDuration",
38
42
  )
39
- __properties: ClassVar[List[str]] = ["description", "name", "ttlDuration"]
43
+ __properties: ClassVar[List[str]] = ["description", "labels", "name", "ttlDuration"]
40
44
 
41
45
  @field_validator("description")
42
46
  def description_validate_regular_expression(cls, value):
@@ -110,6 +114,11 @@ class CreateTokenPayload(BaseModel):
110
114
  return cls.model_validate(obj)
111
115
 
112
116
  _obj = cls.model_validate(
113
- {"description": obj.get("description"), "name": obj.get("name"), "ttlDuration": obj.get("ttlDuration")}
117
+ {
118
+ "description": obj.get("description"),
119
+ "labels": obj.get("labels"),
120
+ "name": obj.get("name"),
121
+ "ttlDuration": obj.get("ttlDuration"),
122
+ }
114
123
  )
115
124
  return _obj
@@ -1,15 +1,15 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- STACKIT Model Serving API
4
+ STACKIT Model Serving API
5
5
 
6
- This API provides endpoints for the model serving api
6
+ This API provides endpoints for the model serving api
7
7
 
8
- The version of the OpenAPI document: 1.0.0
9
- Contact: model-serving@mail.schwarz
10
- Generated by OpenAPI Generator (https://openapi-generator.tech)
8
+ The version of the OpenAPI document: 1.0.0
9
+ Contact: stackit-model-serving@digits.schwarz
10
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
12
- Do not edit the class manually.
12
+ Do not edit the class manually.
13
13
  """ # noqa: E501
14
14
 
15
15
  from __future__ import annotations
@@ -1,15 +1,15 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- STACKIT Model Serving API
4
+ STACKIT Model Serving API
5
5
 
6
- This API provides endpoints for the model serving api
6
+ This API provides endpoints for the model serving api
7
7
 
8
- The version of the OpenAPI document: 1.0.0
9
- Contact: model-serving@mail.schwarz
10
- Generated by OpenAPI Generator (https://openapi-generator.tech)
8
+ The version of the OpenAPI document: 1.0.0
9
+ Contact: stackit-model-serving@digits.schwarz
10
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
12
- Do not edit the class manually.
12
+ Do not edit the class manually.
13
13
  """ # noqa: E501
14
14
 
15
15
  from __future__ import annotations
@@ -1,15 +1,15 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- STACKIT Model Serving API
4
+ STACKIT Model Serving API
5
5
 
6
- This API provides endpoints for the model serving api
6
+ This API provides endpoints for the model serving api
7
7
 
8
- The version of the OpenAPI document: 1.0.0
9
- Contact: model-serving@mail.schwarz
10
- Generated by OpenAPI Generator (https://openapi-generator.tech)
8
+ The version of the OpenAPI document: 1.0.0
9
+ Contact: stackit-model-serving@digits.schwarz
10
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
12
- Do not edit the class manually.
12
+ Do not edit the class manually.
13
13
  """ # noqa: E501
14
14
 
15
15
  from __future__ import annotations
@@ -1,15 +1,15 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- STACKIT Model Serving API
4
+ STACKIT Model Serving API
5
5
 
6
- This API provides endpoints for the model serving api
6
+ This API provides endpoints for the model serving api
7
7
 
8
- The version of the OpenAPI document: 1.0.0
9
- Contact: model-serving@mail.schwarz
10
- Generated by OpenAPI Generator (https://openapi-generator.tech)
8
+ The version of the OpenAPI document: 1.0.0
9
+ Contact: stackit-model-serving@digits.schwarz
10
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
12
- Do not edit the class manually.
12
+ Do not edit the class manually.
13
13
  """ # noqa: E501
14
14
 
15
15
  from __future__ import annotations
@@ -1,15 +1,15 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- STACKIT Model Serving API
4
+ STACKIT Model Serving API
5
5
 
6
- This API provides endpoints for the model serving api
6
+ This API provides endpoints for the model serving api
7
7
 
8
- The version of the OpenAPI document: 1.0.0
9
- Contact: model-serving@mail.schwarz
10
- Generated by OpenAPI Generator (https://openapi-generator.tech)
8
+ The version of the OpenAPI document: 1.0.0
9
+ Contact: stackit-model-serving@digits.schwarz
10
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
12
- Do not edit the class manually.
12
+ Do not edit the class manually.
13
13
  """ # noqa: E501
14
14
 
15
15
  from __future__ import annotations
@@ -1,15 +1,15 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- STACKIT Model Serving API
4
+ STACKIT Model Serving API
5
5
 
6
- This API provides endpoints for the model serving api
6
+ This API provides endpoints for the model serving api
7
7
 
8
- The version of the OpenAPI document: 1.0.0
9
- Contact: model-serving@mail.schwarz
10
- Generated by OpenAPI Generator (https://openapi-generator.tech)
8
+ The version of the OpenAPI document: 1.0.0
9
+ Contact: stackit-model-serving@digits.schwarz
10
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
12
- Do not edit the class manually.
12
+ Do not edit the class manually.
13
13
  """ # noqa: E501
14
14
 
15
15
  from __future__ import annotations
@@ -1,15 +1,15 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- STACKIT Model Serving API
4
+ STACKIT Model Serving API
5
5
 
6
- This API provides endpoints for the model serving api
6
+ This API provides endpoints for the model serving api
7
7
 
8
- The version of the OpenAPI document: 1.0.0
9
- Contact: model-serving@mail.schwarz
10
- Generated by OpenAPI Generator (https://openapi-generator.tech)
8
+ The version of the OpenAPI document: 1.0.0
9
+ Contact: stackit-model-serving@digits.schwarz
10
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
12
- Do not edit the class manually.
12
+ Do not edit the class manually.
13
13
  """ # noqa: E501
14
14
 
15
15
  from __future__ import annotations
@@ -1,15 +1,15 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- STACKIT Model Serving API
4
+ STACKIT Model Serving API
5
5
 
6
- This API provides endpoints for the model serving api
6
+ This API provides endpoints for the model serving api
7
7
 
8
- The version of the OpenAPI document: 1.0.0
9
- Contact: model-serving@mail.schwarz
10
- Generated by OpenAPI Generator (https://openapi-generator.tech)
8
+ The version of the OpenAPI document: 1.0.0
9
+ Contact: stackit-model-serving@digits.schwarz
10
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
12
- Do not edit the class manually.
12
+ Do not edit the class manually.
13
13
  """ # noqa: E501
14
14
 
15
15
  from __future__ import annotations
@@ -1,15 +1,15 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- STACKIT Model Serving API
4
+ STACKIT Model Serving API
5
5
 
6
- This API provides endpoints for the model serving api
6
+ This API provides endpoints for the model serving api
7
7
 
8
- The version of the OpenAPI document: 1.0.0
9
- Contact: model-serving@mail.schwarz
10
- Generated by OpenAPI Generator (https://openapi-generator.tech)
8
+ The version of the OpenAPI document: 1.0.0
9
+ Contact: stackit-model-serving@digits.schwarz
10
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
12
- Do not edit the class manually.
12
+ Do not edit the class manually.
13
13
  """ # noqa: E501
14
14
 
15
15
  from __future__ import annotations
@@ -1,15 +1,15 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- STACKIT Model Serving API
4
+ STACKIT Model Serving API
5
5
 
6
- This API provides endpoints for the model serving api
6
+ This API provides endpoints for the model serving api
7
7
 
8
- The version of the OpenAPI document: 1.0.0
9
- Contact: model-serving@mail.schwarz
10
- Generated by OpenAPI Generator (https://openapi-generator.tech)
8
+ The version of the OpenAPI document: 1.0.0
9
+ Contact: stackit-model-serving@digits.schwarz
10
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
12
- Do not edit the class manually.
12
+ Do not edit the class manually.
13
13
  """ # noqa: E501
14
14
 
15
15
  from __future__ import annotations
@@ -1,15 +1,15 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- STACKIT Model Serving API
4
+ STACKIT Model Serving API
5
5
 
6
- This API provides endpoints for the model serving api
6
+ This API provides endpoints for the model serving api
7
7
 
8
- The version of the OpenAPI document: 1.0.0
9
- Contact: model-serving@mail.schwarz
10
- Generated by OpenAPI Generator (https://openapi-generator.tech)
8
+ The version of the OpenAPI document: 1.0.0
9
+ Contact: stackit-model-serving@digits.schwarz
10
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
12
- Do not edit the class manually.
12
+ Do not edit the class manually.
13
13
  """ # noqa: E501
14
14
 
15
15
  from __future__ import annotations
@@ -30,8 +30,12 @@ class PartialUpdateTokenPayload(BaseModel):
30
30
  """ # noqa: E501
31
31
 
32
32
  description: Optional[Annotated[str, Field(strict=True, max_length=2000)]] = None
33
+ labels: Optional[Dict[str, Optional[Annotated[str, Field(strict=True)]]]] = Field(
34
+ default=None,
35
+ 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.",
36
+ )
33
37
  name: Optional[Annotated[str, Field(min_length=1, strict=True, max_length=200)]] = None
34
- __properties: ClassVar[List[str]] = ["description", "name"]
38
+ __properties: ClassVar[List[str]] = ["description", "labels", "name"]
35
39
 
36
40
  @field_validator("description")
37
41
  def description_validate_regular_expression(cls, value):
@@ -107,5 +111,7 @@ class PartialUpdateTokenPayload(BaseModel):
107
111
  if not isinstance(obj, dict):
108
112
  return cls.model_validate(obj)
109
113
 
110
- _obj = cls.model_validate({"description": obj.get("description"), "name": obj.get("name")})
114
+ _obj = cls.model_validate(
115
+ {"description": obj.get("description"), "labels": obj.get("labels"), "name": obj.get("name")}
116
+ )
111
117
  return _obj
@@ -1,15 +1,15 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- STACKIT Model Serving API
4
+ STACKIT Model Serving API
5
5
 
6
- This API provides endpoints for the model serving api
6
+ This API provides endpoints for the model serving api
7
7
 
8
- The version of the OpenAPI document: 1.0.0
9
- Contact: model-serving@mail.schwarz
10
- Generated by OpenAPI Generator (https://openapi-generator.tech)
8
+ The version of the OpenAPI document: 1.0.0
9
+ Contact: stackit-model-serving@digits.schwarz
10
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
12
- Do not edit the class manually.
12
+ Do not edit the class manually.
13
13
  """ # noqa: E501
14
14
 
15
15
  from __future__ import annotations
@@ -1,15 +1,15 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- STACKIT Model Serving API
4
+ STACKIT Model Serving API
5
5
 
6
- This API provides endpoints for the model serving api
6
+ This API provides endpoints for the model serving api
7
7
 
8
- The version of the OpenAPI document: 1.0.0
9
- Contact: model-serving@mail.schwarz
10
- Generated by OpenAPI Generator (https://openapi-generator.tech)
8
+ The version of the OpenAPI document: 1.0.0
9
+ Contact: stackit-model-serving@digits.schwarz
10
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
12
- Do not edit the class manually.
12
+ Do not edit the class manually.
13
13
  """ # noqa: E501
14
14
 
15
15
  from __future__ import annotations
@@ -33,11 +33,15 @@ class Token(BaseModel):
33
33
 
34
34
  description: Optional[Annotated[str, Field(strict=True, max_length=2000)]] = None
35
35
  id: UUID
36
+ labels: Optional[Dict[str, Annotated[str, Field(strict=True)]]] = Field(
37
+ default=None,
38
+ 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.",
39
+ )
36
40
  name: Annotated[str, Field(min_length=1, strict=True, max_length=200)]
37
41
  region: StrictStr
38
42
  state: StrictStr
39
43
  valid_until: datetime = Field(alias="validUntil")
40
- __properties: ClassVar[List[str]] = ["description", "id", "name", "region", "state", "validUntil"]
44
+ __properties: ClassVar[List[str]] = ["description", "id", "labels", "name", "region", "state", "validUntil"]
41
45
 
42
46
  @field_validator("description")
43
47
  def description_validate_regular_expression(cls, value):
@@ -134,6 +138,7 @@ class Token(BaseModel):
134
138
  {
135
139
  "description": obj.get("description"),
136
140
  "id": obj.get("id"),
141
+ "labels": obj.get("labels"),
137
142
  "name": obj.get("name"),
138
143
  "region": obj.get("region"),
139
144
  "state": obj.get("state"),
@@ -1,15 +1,15 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- STACKIT Model Serving API
4
+ STACKIT Model Serving API
5
5
 
6
- This API provides endpoints for the model serving api
6
+ This API provides endpoints for the model serving api
7
7
 
8
- The version of the OpenAPI document: 1.0.0
9
- Contact: model-serving@mail.schwarz
10
- Generated by OpenAPI Generator (https://openapi-generator.tech)
8
+ The version of the OpenAPI document: 1.0.0
9
+ Contact: stackit-model-serving@digits.schwarz
10
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
12
- Do not edit the class manually.
12
+ Do not edit the class manually.
13
13
  """ # noqa: E501
14
14
 
15
15
  from __future__ import annotations
@@ -34,11 +34,24 @@ class TokenCreated(BaseModel):
34
34
  content: Annotated[str, Field(min_length=1, strict=True, max_length=200)]
35
35
  description: Optional[Annotated[str, Field(strict=True, max_length=2000)]] = None
36
36
  id: UUID
37
+ labels: Optional[Dict[str, Annotated[str, Field(strict=True)]]] = Field(
38
+ default=None,
39
+ 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.",
40
+ )
37
41
  name: Annotated[str, Field(min_length=1, strict=True, max_length=200)]
38
42
  region: StrictStr
39
43
  state: StrictStr
40
44
  valid_until: datetime = Field(alias="validUntil")
41
- __properties: ClassVar[List[str]] = ["content", "description", "id", "name", "region", "state", "validUntil"]
45
+ __properties: ClassVar[List[str]] = [
46
+ "content",
47
+ "description",
48
+ "id",
49
+ "labels",
50
+ "name",
51
+ "region",
52
+ "state",
53
+ "validUntil",
54
+ ]
42
55
 
43
56
  @field_validator("content")
44
57
  def content_validate_regular_expression(cls, value):
@@ -146,6 +159,7 @@ class TokenCreated(BaseModel):
146
159
  "content": obj.get("content"),
147
160
  "description": obj.get("description"),
148
161
  "id": obj.get("id"),
162
+ "labels": obj.get("labels"),
149
163
  "name": obj.get("name"),
150
164
  "region": obj.get("region"),
151
165
  "state": obj.get("state"),
@@ -1,15 +1,15 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- STACKIT Model Serving API
4
+ STACKIT Model Serving API
5
5
 
6
- This API provides endpoints for the model serving api
6
+ This API provides endpoints for the model serving api
7
7
 
8
- The version of the OpenAPI document: 1.0.0
9
- Contact: model-serving@mail.schwarz
10
- Generated by OpenAPI Generator (https://openapi-generator.tech)
8
+ The version of the OpenAPI document: 1.0.0
9
+ Contact: stackit-model-serving@digits.schwarz
10
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
12
- Do not edit the class manually.
12
+ Do not edit the class manually.
13
13
  """ # noqa: E501
14
14
 
15
15
  from __future__ import annotations
@@ -1,15 +1,15 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- STACKIT Model Serving API
4
+ STACKIT Model Serving API
5
5
 
6
- This API provides endpoints for the model serving api
6
+ This API provides endpoints for the model serving api
7
7
 
8
- The version of the OpenAPI document: 1.0.0
9
- Contact: model-serving@mail.schwarz
10
- Generated by OpenAPI Generator (https://openapi-generator.tech)
8
+ The version of the OpenAPI document: 1.0.0
9
+ Contact: stackit-model-serving@digits.schwarz
10
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
12
- Do not edit the class manually.
12
+ Do not edit the class manually.
13
13
  """ # noqa: E501
14
14
 
15
15
  import io
@@ -22,7 +22,6 @@ from stackit.core.configuration import Configuration
22
22
 
23
23
  from stackit.modelserving.exceptions import ApiException, ApiValueError
24
24
 
25
-
26
25
  RESTResponseType = requests.Response
27
26
 
28
27