Skip to content

Commit a9fe3e6

Browse files
Update clients to latest platform release (4.9.4)
1 parent fb52d8a commit a9fe3e6

20 files changed

Lines changed: 47 additions & 10 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.9.2
7+
- Package version: 4.9.4
88
- Generator version: 7.9.0
99
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
1010

docs/CreateCServeV3DeploymentRequest.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ Name | Type | Description | Notes
2020
**max_replicas** | **int** | |
2121
**initial_replicas** | **int** | | [optional]
2222
**concurrency** | **int** | | [optional]
23+
**cooldown_period** | **int** | | [optional]
2324
**env_vars** | **Dict[str, str]** | | [optional]
2425
**enable_logging** | **bool** | | [optional] [default to True]
2526
**enable_node_model_cache** | **bool** | | [optional] [default to False]

docs/CreateInferenceV3DeploymentRequest.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,13 @@ Name | Type | Description | Notes
1818
**max_replicas** | **int** | |
1919
**initial_replicas** | **int** | | [optional]
2020
**concurrency** | **int** | | [optional]
21+
**cooldown_period** | **int** | | [optional]
2122
**healthcheck** | **str** | | [optional]
2223
**env_vars** | **Dict[str, str]** | | [optional]
2324
**command** | **str** | | [optional]
2425
**endpoint_bearer_token** | **str** | | [optional]
2526
**endpoint_certificate_authority** | **str** | | [optional]
27+
**hf_token** | **str** | | [optional]
2628
**backend_protocol** | [**BackendProtocol**](BackendProtocol.md) | | [optional]
2729
**enable_logging** | **bool** | | [optional] [default to False]
2830

docs/DeploymentResponse.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ Name | Type | Description | Notes
2525
**endpoint_certificate_authority** | **str** | | [optional]
2626
**endpoint_bearer_token** | **str** | | [optional]
2727
**concurrency** | **int** | | [optional]
28+
**cooldown_period** | **int** | | [optional] [default to 1800]
2829
**env_vars** | **Dict[str, str]** | | [optional]
2930
**enable_logging** | **bool** | | [optional] [default to True]
3031
**enable_node_model_cache** | **bool** | | [optional] [default to False]

docs/GetCServeV3DeploymentResponse.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ Name | Type | Description | Notes
2525
**endpoint_certificate_authority** | **str** | | [optional]
2626
**endpoint_bearer_token** | **str** | | [optional]
2727
**concurrency** | **int** | | [optional]
28+
**cooldown_period** | **int** | | [optional] [default to 1800]
2829
**env_vars** | **Dict[str, str]** | | [optional]
2930
**enable_logging** | **bool** | | [optional] [default to True]
3031
**enable_node_model_cache** | **bool** | | [optional] [default to False]

docs/GetInferenceV3DeploymentResponse.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ Name | Type | Description | Notes
2222
**max_replicas** | **int** | |
2323
**initial_replicas** | **int** | | [optional]
2424
**concurrency** | **int** | | [optional]
25+
**cooldown_period** | **int** | | [optional] [default to 1800]
2526
**healthcheck** | **str** | | [optional]
2627
**endpoint_certificate_authority** | **str** | | [optional]
2728
**endpoint_bearer_token** | **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.9.2"
17+
__version__ = "4.9.4"
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.9.2/python'
93+
self.user_agent = 'OpenAPI-Generator/4.9.4/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.9.2".\
395+
"SDK Package Version: 4.9.4".\
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: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,11 @@ class CreateCServeV3DeploymentRequest(BaseModel):
4343
max_replicas: StrictInt
4444
initial_replicas: Optional[StrictInt] = None
4545
concurrency: Optional[StrictInt] = None
46+
cooldown_period: Optional[StrictInt] = None
4647
env_vars: Optional[Dict[str, StrictStr]] = None
4748
enable_logging: Optional[StrictBool] = True
4849
enable_node_model_cache: Optional[StrictBool] = False
49-
__properties: ClassVar[List[str]] = ["max_surge", "max_unavailable", "name", "cluster_id", "hardware_instance_id", "user_annotations", "recipe", "cserve_version", "hf_token", "endpoint_bearer_token", "endpoint_certificate_authority", "min_replicas", "max_replicas", "initial_replicas", "concurrency", "env_vars", "enable_logging", "enable_node_model_cache"]
50+
__properties: ClassVar[List[str]] = ["max_surge", "max_unavailable", "name", "cluster_id", "hardware_instance_id", "user_annotations", "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"]
5051

5152
@field_validator('name')
5253
def name_validate_regular_expression(cls, value):
@@ -142,6 +143,11 @@ def to_dict(self) -> Dict[str, Any]:
142143
if self.concurrency is None and "concurrency" in self.model_fields_set:
143144
_dict['concurrency'] = None
144145

146+
# set to None if cooldown_period (nullable) is None
147+
# and model_fields_set contains the field
148+
if self.cooldown_period is None and "cooldown_period" in self.model_fields_set:
149+
_dict['cooldown_period'] = None
150+
145151
return _dict
146152

147153
@classmethod
@@ -169,6 +175,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
169175
"max_replicas": obj.get("max_replicas"),
170176
"initial_replicas": obj.get("initial_replicas"),
171177
"concurrency": obj.get("concurrency"),
178+
"cooldown_period": obj.get("cooldown_period"),
172179
"env_vars": obj.get("env_vars"),
173180
"enable_logging": obj.get("enable_logging") if obj.get("enable_logging") is not None else True,
174181
"enable_node_model_cache": obj.get("enable_node_model_cache") if obj.get("enable_node_model_cache") is not None else False

0 commit comments

Comments
 (0)