Skip to content
Merged
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 README.md
Original file line numberDiff line numberDiff line change
Expand Up@@ -4,7 +4,7 @@ No description provided (generated by Openapi Generator https://github.com/opena
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:

- API version: 0.1.0
- Package version: 4.26.0
- Package version: 4.26.1
- Generator version: 7.9.0
- Build package: org.openapitools.codegen.languages.PythonClientCodegen

Expand Down
1 change: 0 additions & 1 deletion docs/CreateCServeV3DeploymentRequest.md
Original file line numberDiff line numberDiff line change
Expand Up@@ -19,7 +19,6 @@ Name | Type | Description | Notes
**endpoint_certificate_authority** | **str** | | [optional]
**min_replicas** | **int** | |
**max_replicas** | **int** | |
**initial_replicas** | **int** | | [optional]
**concurrency** | **int** | | [optional]
**cooldown_period** | **int** | | [optional]
**env_vars** | **Dict[str, str]** | | [optional]
Expand Down
1 change: 0 additions & 1 deletion docs/CreateInferenceV3DeploymentRequest.md
Original file line numberDiff line numberDiff line change
Expand Up@@ -17,7 +17,6 @@ Name | Type | Description | Notes
**port** | **int** | |
**min_replicas** | **int** | |
**max_replicas** | **int** | |
**initial_replicas** | **int** | | [optional]
**concurrency** | **int** | | [optional]
**cooldown_period** | **int** | | [optional]
**healthcheck** | **str** | | [optional]
Expand Down
1 change: 0 additions & 1 deletion docs/DeploymentResponse.md
Original file line numberDiff line numberDiff line change
Expand Up@@ -34,7 +34,6 @@ Name | Type | Description | Notes
**backend_protocol** | [**BackendProtocol**](BackendProtocol.md) | | [optional]
**recipe** | [**CServeV2Recipe**](CServeV2Recipe.md) | |
**cserve_version** | **str** | | [optional]
**initial_replicas** | **int** | | [optional]
**session_affinity** | **bool** | Enable best-effort sticky routing via the `X-Session-Id` request header. Requests carrying the same header value land on the same pod, improving KV cache reuse for agentic workloads. Requests without the header are routed at random. Affinity is NOT durable: scaling, rollouts, restarts, or readiness-probe transitions will remap sessions to different pods. Do not use for irreplaceable in-pod state. | [optional] [default to False]
**container_port** | **int** | |
**healthcheck** | **str** | | [optional]
Expand Down
1 change: 0 additions & 1 deletion docs/GetCServeV3DeploymentResponse.md
Original file line numberDiff line numberDiff line change
Expand Up@@ -21,7 +21,6 @@ Name | Type | Description | Notes
**cserve_version** | **str** | | [optional]
**min_replicas** | **int** | |
**max_replicas** | **int** | |
**initial_replicas** | **int** | | [optional]
**endpoint_certificate_authority** | **str** | | [optional]
**endpoint_bearer_token** | **str** | | [optional]
**concurrency** | **int** | | [optional]
Expand Down
1 change: 0 additions & 1 deletion docs/GetInferenceV3DeploymentResponse.md
Original file line numberDiff line numberDiff line change
Expand Up@@ -20,7 +20,6 @@ Name | Type | Description | Notes
**container_port** | **int** | |
**min_replicas** | **int** | |
**max_replicas** | **int** | |
**initial_replicas** | **int** | | [optional]
**concurrency** | **int** | | [optional]
**cooldown_period** | **int** | | [optional] [default to 1800]
**healthcheck** | **str** | | [optional]
Expand Down
2 changes: 1 addition & 1 deletion platform_api_python_client/__init__.py
Original file line numberDiff line numberDiff line change
Expand Up@@ -14,7 +14,7 @@
""" # noqa: E501


__version__ = "4.26.0"
__version__ = "4.26.1"

# import apis into sdk package
from platform_api_python_client.api.external_api import EXTERNALApi
Expand Down
2 changes: 1 addition & 1 deletion platform_api_python_client/api_client.py
Original file line numberDiff line numberDiff line change
Expand Up@@ -90,7 +90,7 @@ def __init__(
self.default_headers[header_name] = header_value
self.cookie = cookie
# Set default User-Agent.
self.user_agent = 'OpenAPI-Generator/4.26.0/python'
self.user_agent = 'OpenAPI-Generator/4.26.1/python'
self.client_side_validation = configuration.client_side_validation

def __enter__(self):
Expand Down
2 changes: 1 addition & 1 deletion platform_api_python_client/configuration.py
Original file line numberDiff line numberDiff line change
Expand Up@@ -392,7 +392,7 @@ def to_debug_report(self):
"OS: {env}\n"\
"Python Version: {pyversion}\n"\
"Version of the API: 0.1.0\n"\
"SDK Package Version: 4.26.0".\
"SDK Package Version: 4.26.1".\
format(env=sys.platform, pyversion=sys.version)

def get_host_settings(self):
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -42,14 +42,13 @@ class CreateCServeV3DeploymentRequest(BaseModel):
endpoint_certificate_authority: Optional[StrictStr] = None
min_replicas: StrictInt
max_replicas: StrictInt
initial_replicas: Optional[StrictInt] = None
concurrency: Optional[StrictInt] = None
cooldown_period: Optional[StrictInt] = None
env_vars: Optional[Dict[str, StrictStr]] = None
enable_logging: Optional[StrictBool] = True
enable_node_model_cache: Optional[StrictBool] = False
session_affinity: Optional[StrictBool] = Field(default=False, description="Enable best-effort sticky routing via the `X-Session-Id` request header. Requests carrying the same header value land on the same pod, improving KV cache reuse for agentic workloads. Requests without the header are routed at random. Affinity is NOT durable: scaling, rollouts, restarts, or readiness-probe transitions will remap sessions to different pods. Do not use for irreplaceable in-pod state.")
__properties: ClassVar[List[str]] = ["max_surge", "max_unavailable", "name", "cluster_id", "hardware_instance_id", "user_annotations", "chart_revision", "recipe", "cserve_version", "hf_token", "endpoint_bearer_token", "endpoint_certificate_authority", "min_replicas", "max_replicas", "initial_replicas", "concurrency", "cooldown_period", "env_vars", "enable_logging", "enable_node_model_cache", "session_affinity"]
__properties: ClassVar[List[str]] = ["max_surge", "max_unavailable", "name", "cluster_id", "hardware_instance_id", "user_annotations", "chart_revision", "recipe", "cserve_version", "hf_token", "endpoint_bearer_token", "endpoint_certificate_authority", "min_replicas", "max_replicas", "concurrency", "cooldown_period", "env_vars", "enable_logging", "enable_node_model_cache", "session_affinity"]

@field_validator('name')
def name_validate_regular_expression(cls, value):
Expand DownExpand Up@@ -135,11 +134,6 @@ def to_dict(self) -> Dict[str, Any]:
if self.endpoint_certificate_authority is None and "endpoint_certificate_authority" in self.model_fields_set:
_dict['endpoint_certificate_authority'] = None

# set to None if initial_replicas (nullable) is None
# and model_fields_set contains the field
if self.initial_replicas is None and "initial_replicas" in self.model_fields_set:
_dict['initial_replicas'] = None

# set to None if concurrency (nullable) is None
# and model_fields_set contains the field
if self.concurrency is None and "concurrency" in self.model_fields_set:
Expand DownExpand Up@@ -176,7 +170,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
"endpoint_certificate_authority": obj.get("endpoint_certificate_authority"),
"min_replicas": obj.get("min_replicas"),
"max_replicas": obj.get("max_replicas"),
"initial_replicas": obj.get("initial_replicas"),
"concurrency": obj.get("concurrency"),
"cooldown_period": obj.get("cooldown_period"),
"env_vars": obj.get("env_vars"),
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -43,7 +43,6 @@ class CreateInferenceV3DeploymentRequest(BaseModel):
port: Annotated[int, Field(le=65535, strict=True, ge=1)]
min_replicas: StrictInt
max_replicas: StrictInt
initial_replicas: Optional[StrictInt] = None
concurrency: Optional[StrictInt] = None
cooldown_period: Optional[StrictInt] = None
healthcheck: Optional[StrictStr] = None
Expand All@@ -58,7 +57,7 @@ class CreateInferenceV3DeploymentRequest(BaseModel):
session_affinity: Optional[StrictBool] = Field(default=False, description="Enable best-effort sticky routing via the `X-Session-Id` request header. Requests carrying the same header value land on the same pod, improving KV cache reuse for agentic workloads. Requests without the header are routed at random. Affinity is NOT durable: scaling, rollouts, restarts, or readiness-probe transitions will remap sessions to different pods. Do not use for irreplaceable in-pod state.")
config_file: Optional[ConfigFileMount] = None
metrics: Optional[MetricsConfig] = None
__properties: ClassVar[List[str]] = ["max_surge", "max_unavailable", "name", "cluster_id", "hardware_instance_id", "user_annotations", "chart_revision", "image_url", "image_pull_secret_credentials", "port", "min_replicas", "max_replicas", "initial_replicas", "concurrency", "cooldown_period", "healthcheck", "env_vars", "command", "endpoint_bearer_token", "endpoint_certificate_authority", "hf_token", "backend_protocol", "enable_logging", "enable_node_model_cache", "session_affinity", "config_file", "metrics"]
__properties: ClassVar[List[str]] = ["max_surge", "max_unavailable", "name", "cluster_id", "hardware_instance_id", "user_annotations", "chart_revision", "image_url", "image_pull_secret_credentials", "port", "min_replicas", "max_replicas", "concurrency", "cooldown_period", "healthcheck", "env_vars", "command", "endpoint_bearer_token", "endpoint_certificate_authority", "hf_token", "backend_protocol", "enable_logging", "enable_node_model_cache", "session_affinity", "config_file", "metrics"]

@field_validator('name')
def name_validate_regular_expression(cls, value):
Expand DownExpand Up@@ -135,11 +134,6 @@ def to_dict(self) -> Dict[str, Any]:
if self.image_pull_secret_credentials is None and "image_pull_secret_credentials" in self.model_fields_set:
_dict['image_pull_secret_credentials'] = None

# set to None if initial_replicas (nullable) is None
# and model_fields_set contains the field
if self.initial_replicas is None and "initial_replicas" in self.model_fields_set:
_dict['initial_replicas'] = None

# set to None if concurrency (nullable) is None
# and model_fields_set contains the field
if self.concurrency is None and "concurrency" in self.model_fields_set:
Expand DownExpand Up@@ -214,7 +208,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
"port": obj.get("port"),
"min_replicas": obj.get("min_replicas"),
"max_replicas": obj.get("max_replicas"),
"initial_replicas": obj.get("initial_replicas"),
"concurrency": obj.get("concurrency"),
"cooldown_period": obj.get("cooldown_period"),
"healthcheck": obj.get("healthcheck"),
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -46,7 +46,6 @@ class GetCServeV3DeploymentResponse(BaseModel):
cserve_version: Optional[StrictStr] = None
min_replicas: StrictInt
max_replicas: StrictInt
initial_replicas: Optional[StrictInt] = None
endpoint_certificate_authority: Optional[StrictStr] = None
endpoint_bearer_token: Optional[StrictStr] = None
concurrency: Optional[StrictInt] = None
Expand All@@ -55,7 +54,7 @@ class GetCServeV3DeploymentResponse(BaseModel):
enable_logging: Optional[StrictBool] = True
enable_node_model_cache: Optional[StrictBool] = False
session_affinity: Optional[StrictBool] = Field(default=False, description="Enable best-effort sticky routing via the `X-Session-Id` request header. Requests carrying the same header value land on the same pod, improving KV cache reuse for agentic workloads. Requests without the header are routed at random. Affinity is NOT durable: scaling, rollouts, restarts, or readiness-probe transitions will remap sessions to different pods. Do not use for irreplaceable in-pod state.")
__properties: ClassVar[List[str]] = ["creator_email", "cluster_id", "id", "name", "endpoint_url", "image_url", "type", "status", "created_at", "hardware_instance_id", "revision_number", "user_annotations", "recipe", "cserve_version", "min_replicas", "max_replicas", "initial_replicas", "endpoint_certificate_authority", "endpoint_bearer_token", "concurrency", "cooldown_period", "env_vars", "enable_logging", "enable_node_model_cache", "session_affinity"]
__properties: ClassVar[List[str]] = ["creator_email", "cluster_id", "id", "name", "endpoint_url", "image_url", "type", "status", "created_at", "hardware_instance_id", "revision_number", "user_annotations", "recipe", "cserve_version", "min_replicas", "max_replicas", "endpoint_certificate_authority", "endpoint_bearer_token", "concurrency", "cooldown_period", "env_vars", "enable_logging", "enable_node_model_cache", "session_affinity"]

model_config = ConfigDict(
populate_by_name=True,
Expand DownExpand Up@@ -114,11 +113,6 @@ def to_dict(self) -> Dict[str, Any]:
if self.cserve_version is None and "cserve_version" in self.model_fields_set:
_dict['cserve_version'] = None

# set to None if initial_replicas (nullable) is None
# and model_fields_set contains the field
if self.initial_replicas is None and "initial_replicas" in self.model_fields_set:
_dict['initial_replicas'] = None

# set to None if endpoint_certificate_authority (nullable) is None
# and model_fields_set contains the field
if self.endpoint_certificate_authority is None and "endpoint_certificate_authority" in self.model_fields_set:
Expand DownExpand Up@@ -162,7 +156,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
"cserve_version": obj.get("cserve_version"),
"min_replicas": obj.get("min_replicas"),
"max_replicas": obj.get("max_replicas"),
"initial_replicas": obj.get("initial_replicas"),
"endpoint_certificate_authority": obj.get("endpoint_certificate_authority"),
"endpoint_bearer_token": obj.get("endpoint_bearer_token"),
"concurrency": obj.get("concurrency"),
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -48,7 +48,6 @@ class GetInferenceV3DeploymentResponse(BaseModel):
container_port: StrictInt
min_replicas: StrictInt
max_replicas: StrictInt
initial_replicas: Optional[StrictInt] = None
concurrency: Optional[StrictInt] = None
cooldown_period: Optional[StrictInt] = 1800
healthcheck: Optional[StrictStr] = None
Expand All@@ -65,7 +64,7 @@ class GetInferenceV3DeploymentResponse(BaseModel):
session_affinity: Optional[StrictBool] = Field(default=False, description="Enable best-effort sticky routing via the `X-Session-Id` request header. Requests carrying the same header value land on the same pod, improving KV cache reuse for agentic workloads. Requests without the header are routed at random. Affinity is NOT durable: scaling, rollouts, restarts, or readiness-probe transitions will remap sessions to different pods. Do not use for irreplaceable in-pod state.")
config_file: Optional[ConfigFileMount] = None
metrics: Optional[MetricsConfig] = None
__properties: ClassVar[List[str]] = ["creator_email", "cluster_id", "id", "name", "endpoint_url", "image_url", "type", "status", "created_at", "hardware_instance_id", "revision_number", "user_annotations", "container_port", "min_replicas", "max_replicas", "initial_replicas", "concurrency", "cooldown_period", "healthcheck", "endpoint_certificate_authority", "endpoint_bearer_token", "env_vars", "command", "command_args", "original_command", "image_pull_secret_credentials", "backend_protocol", "enable_logging", "enable_node_model_cache", "session_affinity", "config_file", "metrics"]
__properties: ClassVar[List[str]] = ["creator_email", "cluster_id", "id", "name", "endpoint_url", "image_url", "type", "status", "created_at", "hardware_instance_id", "revision_number", "user_annotations", "container_port", "min_replicas", "max_replicas", "concurrency", "cooldown_period", "healthcheck", "endpoint_certificate_authority", "endpoint_bearer_token", "env_vars", "command", "command_args", "original_command", "image_pull_secret_credentials", "backend_protocol", "enable_logging", "enable_node_model_cache", "session_affinity", "config_file", "metrics"]

model_config = ConfigDict(
populate_by_name=True,
Expand DownExpand Up@@ -125,11 +124,6 @@ def to_dict(self) -> Dict[str, Any]:
if self.user_annotations is None and "user_annotations" in self.model_fields_set:
_dict['user_annotations'] = None

# set to None if initial_replicas (nullable) is None
# and model_fields_set contains the field
if self.initial_replicas is None and "initial_replicas" in self.model_fields_set:
_dict['initial_replicas'] = None

# set to None if concurrency (nullable) is None
# and model_fields_set contains the field
if self.concurrency is None and "concurrency" in self.model_fields_set:
Expand DownExpand Up@@ -212,7 +206,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
"container_port": obj.get("container_port"),
"min_replicas": obj.get("min_replicas"),
"max_replicas": obj.get("max_replicas"),
"initial_replicas": obj.get("initial_replicas"),
"concurrency": obj.get("concurrency"),
"cooldown_period": obj.get("cooldown_period") if obj.get("cooldown_period") is not None else 1800,
"healthcheck": obj.get("healthcheck"),
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "platform_api_python_client"
version = "4.26.0"
version = "4.26.1"
description = "Platform External API"
authors = ["OpenAPI Generator Community <team@openapitools.org>"]
license = "NoLicense"
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line numberDiff line numberDiff line change
Expand Up@@ -21,7 +21,7 @@
# prerequisite: setuptools
# http://pypi.python.org/pypi/setuptools
NAME = "platform-api-python-client"
VERSION = "4.26.0"
VERSION = "4.26.1"
PYTHON_REQUIRES = ">= 3.8"
REQUIRES = [
"urllib3 >= 1.25.3, < 3.0.0",
Expand Down
1 change: 0 additions & 1 deletion test/test_create_c_serve_v3_deployment_request.py
Original file line numberDiff line numberDiff line change
Expand Up@@ -51,7 +51,6 @@ def make_instance(self, include_optional) -> CreateCServeV3DeploymentRequest:
endpoint_certificate_authority = '',
min_replicas = 56,
max_replicas = 56,
initial_replicas = 56,
concurrency = 56,
cooldown_period = 56,
env_vars = {
Expand Down
1 change: 0 additions & 1 deletion test/test_create_inference_v3_deployment_request.py
Original file line numberDiff line numberDiff line change
Expand Up@@ -51,7 +51,6 @@ def make_instance(self, include_optional) -> CreateInferenceV3DeploymentRequest:
port = 1.0,
min_replicas = 56,
max_replicas = 56,
initial_replicas = 56,
concurrency = 56,
cooldown_period = 56,
healthcheck = '',
Expand Down
1 change: 0 additions & 1 deletion test/test_deployment_response.py
Original file line numberDiff line numberDiff line change
Expand Up@@ -68,7 +68,6 @@ def make_instance(self, include_optional) -> DeploymentResponse:
backend_protocol = 'HTTP',
recipe = { },
cserve_version = '',
initial_replicas = 56,
session_affinity = True,
container_port = 56,
healthcheck = '',
Expand Down
1 change: 0 additions & 1 deletion test/test_get_c_serve_v3_deployment_response.py
Original file line numberDiff line numberDiff line change
Expand Up@@ -53,7 +53,6 @@ def make_instance(self, include_optional) -> GetCServeV3DeploymentResponse:
cserve_version = '',
min_replicas = 56,
max_replicas = 56,
initial_replicas = 56,
endpoint_certificate_authority = '',
endpoint_bearer_token = '',
concurrency = 56,
Expand Down
1 change: 0 additions & 1 deletion test/test_get_inference_v3_deployment_response.py
Original file line numberDiff line numberDiff line change
Expand Up@@ -52,7 +52,6 @@ def make_instance(self, include_optional) -> GetInferenceV3DeploymentResponse:
container_port = 56,
min_replicas = 56,
max_replicas = 56,
initial_replicas = 56,
concurrency = 56,
cooldown_period = 56,
healthcheck = '',
Expand Down
Loading