Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion services/modelserving/oas_commit
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4437823ea19bd04c638f5de3d6fa40b866aa144c
876a48fb56473c7c844baa697906d461c0675f47
13 changes: 7 additions & 6 deletions services/modelserving/src/stackit/modelserving/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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)],
Expand All @@ -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
Expand All @@ -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,
Expand All @@ -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)],
Expand All @@ -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
Expand All @@ -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,
Expand All @@ -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)],
Expand All @@ -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
Expand All @@ -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,
Expand All @@ -1797,6 +1809,7 @@ def _list_tokens_serialize(
self,
region_id,
project_id,
label_selector,
_request_auth,
_content_type,
_headers,
Expand All @@ -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
Expand Down
13 changes: 7 additions & 6 deletions services/modelserving/src/stackit/modelserving/api_client.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -37,6 +37,7 @@
ApiException,
)


RequestSerialized = Tuple[str, str, Dict[str, str], Optional[str], List[str]]


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

from pydantic import BaseModel, Field, StrictBytes, StrictInt


T = TypeVar("T")


Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -19,6 +19,7 @@

import os


ServerVariablesT = Dict[str, str]


Expand Down
12 changes: 6 additions & 6 deletions services/modelserving/src/stackit/modelserving/exceptions.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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):
Expand Down Expand Up @@ -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
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Loading
Loading