Skip to content

Commit 1d956f5

Browse files
svc-centml-platformcentml-machine-usermichaelshin
authored
Update clients to latest platform release (4.26.1) (#106)
Co-authored-by: platform CI <automation@centml.ai> Co-authored-by: Michael Shin <michaelshin@users.noreply.github.com>
1 parent 8da64e8 commit 1d956f5

20 files changed

Lines changed: 10 additions & 48 deletions

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ No description provided (generated by Openapi Generator https://github.com/opena
44
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
55

66
- API version: 0.1.0
7-
- Package version: 4.26.0
7+
- Package version: 4.26.1
88
- Generator version: 7.9.0
99
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
1010

docs/CreateCServeV3DeploymentRequest.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ Name | Type | Description | Notes
1919
**endpoint_certificate_authority** | **str** | | [optional]
2020
**min_replicas** | **int** | |
2121
**max_replicas** | **int** | |
22-
**initial_replicas** | **int** | | [optional]
2322
**concurrency** | **int** | | [optional]
2423
**cooldown_period** | **int** | | [optional]
2524
**env_vars** | **Dict[str, str]** | | [optional]

docs/CreateInferenceV3DeploymentRequest.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ Name | Type | Description | Notes
1717
**port** | **int** | |
1818
**min_replicas** | **int** | |
1919
**max_replicas** | **int** | |
20-
**initial_replicas** | **int** | | [optional]
2120
**concurrency** | **int** | | [optional]
2221
**cooldown_period** | **int** | | [optional]
2322
**healthcheck** | **str** | | [optional]

docs/DeploymentResponse.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ Name | Type | Description | Notes
3434
**backend_protocol** | [**BackendProtocol**](BackendProtocol.md) | | [optional]
3535
**recipe** | [**CServeV2Recipe**](CServeV2Recipe.md) | |
3636
**cserve_version** | **str** | | [optional]
37-
**initial_replicas** | **int** | | [optional]
3837
**session_affinity** | **bool** | Enable best-effort sticky routing via the &#x60;X-Session-Id&#x60; 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]
3938
**container_port** | **int** | |
4039
**healthcheck** | **str** | | [optional]

docs/GetCServeV3DeploymentResponse.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ Name | Type | Description | Notes
2121
**cserve_version** | **str** | | [optional]
2222
**min_replicas** | **int** | |
2323
**max_replicas** | **int** | |
24-
**initial_replicas** | **int** | | [optional]
2524
**endpoint_certificate_authority** | **str** | | [optional]
2625
**endpoint_bearer_token** | **str** | | [optional]
2726
**concurrency** | **int** | | [optional]

docs/GetInferenceV3DeploymentResponse.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ Name | Type | Description | Notes
2020
**container_port** | **int** | |
2121
**min_replicas** | **int** | |
2222
**max_replicas** | **int** | |
23-
**initial_replicas** | **int** | | [optional]
2423
**concurrency** | **int** | | [optional]
2524
**cooldown_period** | **int** | | [optional] [default to 1800]
2625
**healthcheck** | **str** | | [optional]

platform_api_python_client/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
""" # noqa: E501
1515

1616

17-
__version__ = "4.26.0"
17+
__version__ = "4.26.1"
1818

1919
# import apis into sdk package
2020
from platform_api_python_client.api.external_api import EXTERNALApi

platform_api_python_client/api_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def __init__(
9090
self.default_headers[header_name] = header_value
9191
self.cookie = cookie
9292
# Set default User-Agent.
93-
self.user_agent = 'OpenAPI-Generator/4.26.0/python'
93+
self.user_agent = 'OpenAPI-Generator/4.26.1/python'
9494
self.client_side_validation = configuration.client_side_validation
9595

9696
def __enter__(self):

platform_api_python_client/configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ def to_debug_report(self):
392392
"OS: {env}\n"\
393393
"Python Version: {pyversion}\n"\
394394
"Version of the API: 0.1.0\n"\
395-
"SDK Package Version: 4.26.0".\
395+
"SDK Package Version: 4.26.1".\
396396
format(env=sys.platform, pyversion=sys.version)
397397

398398
def get_host_settings(self):

platform_api_python_client/models/create_c_serve_v3_deployment_request.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,13 @@ class CreateCServeV3DeploymentRequest(BaseModel):
4242
endpoint_certificate_authority: Optional[StrictStr] = None
4343
min_replicas: StrictInt
4444
max_replicas: StrictInt
45-
initial_replicas: Optional[StrictInt] = None
4645
concurrency: Optional[StrictInt] = None
4746
cooldown_period: Optional[StrictInt] = None
4847
env_vars: Optional[Dict[str, StrictStr]] = None
4948
enable_logging: Optional[StrictBool] = True
5049
enable_node_model_cache: Optional[StrictBool] = False
5150
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.")
52-
__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"]
51+
__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"]
5352

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

138-
# set to None if initial_replicas (nullable) is None
139-
# and model_fields_set contains the field
140-
if self.initial_replicas is None and "initial_replicas" in self.model_fields_set:
141-
_dict['initial_replicas'] = None
142-
143137
# set to None if concurrency (nullable) is None
144138
# and model_fields_set contains the field
145139
if self.concurrency is None and "concurrency" in self.model_fields_set:
@@ -176,7 +170,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
176170
"endpoint_certificate_authority": obj.get("endpoint_certificate_authority"),
177171
"min_replicas": obj.get("min_replicas"),
178172
"max_replicas": obj.get("max_replicas"),
179-
"initial_replicas": obj.get("initial_replicas"),
180173
"concurrency": obj.get("concurrency"),
181174
"cooldown_period": obj.get("cooldown_period"),
182175
"env_vars": obj.get("env_vars"),

0 commit comments

Comments
 (0)