From 5e2d300571e349e0a14951c04a32267501ef7e4f Mon Sep 17 00:00:00 2001 From: platform CI Date: Wed, 25 Mar 2026 14:52:05 +0000 Subject: [PATCH] Update clients to latest platform release (4.8.4) --- README.md | 2 +- docs/CreateCServeV2DeploymentRequest.md | 1 + docs/CreateCServeV3DeploymentRequest.md | 1 + docs/CreateComputeDeploymentRequest.md | 1 + docs/CreateInferenceDeploymentRequest.md | 1 + docs/CreateInferenceV3DeploymentRequest.md | 1 + docs/CreateRagDeploymentRequest.md | 1 + docs/DeploymentResponse.md | 1 + docs/GetCServeV2DeploymentResponse.md | 1 + docs/GetCServeV3DeploymentResponse.md | 1 + docs/GetComputeDeploymentResponse.md | 1 + docs/GetDeploymentResponse.md | 1 + docs/GetInferenceDeploymentResponse.md | 1 + docs/GetInferenceV3DeploymentResponse.md | 1 + docs/GetRagDeploymentResponse.md | 1 + platform_api_python_client/__init__.py | 2 +- platform_api_python_client/api_client.py | 2 +- platform_api_python_client/configuration.py | 2 +- .../models/create_c_serve_v2_deployment_request.py | 9 ++++++++- .../models/create_c_serve_v3_deployment_request.py | 9 ++++++++- .../models/create_compute_deployment_request.py | 9 ++++++++- .../models/create_inference_deployment_request.py | 9 ++++++++- .../models/create_inference_v3_deployment_request.py | 9 ++++++++- .../models/create_rag_deployment_request.py | 9 ++++++++- .../models/get_c_serve_v2_deployment_response.py | 9 ++++++++- .../models/get_c_serve_v3_deployment_response.py | 9 ++++++++- .../models/get_compute_deployment_response.py | 9 ++++++++- .../models/get_deployment_response.py | 11 +++++++++-- .../models/get_inference_deployment_response.py | 9 ++++++++- .../models/get_inference_v3_deployment_response.py | 9 ++++++++- .../models/get_rag_deployment_response.py | 9 ++++++++- pyproject.toml | 2 +- setup.py | 2 +- test/test_create_c_serve_v2_deployment_request.py | 3 +++ test/test_create_c_serve_v3_deployment_request.py | 3 +++ test/test_create_compute_deployment_request.py | 3 +++ test/test_create_inference_deployment_request.py | 3 +++ test/test_create_inference_v3_deployment_request.py | 3 +++ test/test_create_rag_deployment_request.py | 3 +++ test/test_deployment_response.py | 3 +++ test/test_get_c_serve_v2_deployment_response.py | 3 +++ test/test_get_c_serve_v3_deployment_response.py | 3 +++ test/test_get_compute_deployment_response.py | 3 +++ test/test_get_deployment_response.py | 5 ++++- test/test_get_inference_deployment_response.py | 3 +++ test/test_get_inference_v3_deployment_response.py | 3 +++ test/test_get_rag_deployment_response.py | 3 +++ test/test_list_get_deployment_response.py | 10 ++++++++-- 48 files changed, 176 insertions(+), 23 deletions(-) diff --git a/README.md b/README.md index fd2658c..644f9d3 100644 --- a/README.md +++ b/README.md @@ -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.8.3 +- Package version: 4.8.4 - Generator version: 7.9.0 - Build package: org.openapitools.codegen.languages.PythonClientCodegen diff --git a/docs/CreateCServeV2DeploymentRequest.md b/docs/CreateCServeV2DeploymentRequest.md index 9ef3b56..570c68d 100644 --- a/docs/CreateCServeV2DeploymentRequest.md +++ b/docs/CreateCServeV2DeploymentRequest.md @@ -8,6 +8,7 @@ Name | Type | Description | Notes **name** | **str** | | **cluster_id** | **int** | | **hardware_instance_id** | **int** | | +**user_annotations** | **Dict[str, str]** | | [optional] **recipe** | [**CServeV2Recipe**](CServeV2Recipe.md) | | **cserve_version** | **str** | | [optional] **hf_token** | **str** | | [optional] diff --git a/docs/CreateCServeV3DeploymentRequest.md b/docs/CreateCServeV3DeploymentRequest.md index 11cfcbe..3872e3a 100644 --- a/docs/CreateCServeV3DeploymentRequest.md +++ b/docs/CreateCServeV3DeploymentRequest.md @@ -10,6 +10,7 @@ Name | Type | Description | Notes **name** | **str** | | **cluster_id** | **int** | | **hardware_instance_id** | **int** | | +**user_annotations** | **Dict[str, str]** | | [optional] **recipe** | [**CServeV2Recipe**](CServeV2Recipe.md) | | **cserve_version** | **str** | | [optional] **hf_token** | **str** | | [optional] diff --git a/docs/CreateComputeDeploymentRequest.md b/docs/CreateComputeDeploymentRequest.md index 5fc84a6..72672d4 100644 --- a/docs/CreateComputeDeploymentRequest.md +++ b/docs/CreateComputeDeploymentRequest.md @@ -8,6 +8,7 @@ Name | Type | Description | Notes **name** | **str** | | **cluster_id** | **int** | | **hardware_instance_id** | **int** | | +**user_annotations** | **Dict[str, str]** | | [optional] **image_url** | **str** | | **enable_jupyter** | **bool** | | [optional] [default to False] **ssh_public_key** | **str** | | diff --git a/docs/CreateInferenceDeploymentRequest.md b/docs/CreateInferenceDeploymentRequest.md index 4e53614..735b626 100644 --- a/docs/CreateInferenceDeploymentRequest.md +++ b/docs/CreateInferenceDeploymentRequest.md @@ -8,6 +8,7 @@ Name | Type | Description | Notes **name** | **str** | | **cluster_id** | **int** | | **hardware_instance_id** | **int** | | +**user_annotations** | **Dict[str, str]** | | [optional] **image_url** | **str** | | **port** | **int** | | **min_scale** | **int** | | diff --git a/docs/CreateInferenceV3DeploymentRequest.md b/docs/CreateInferenceV3DeploymentRequest.md index 80e4460..f7e6990 100644 --- a/docs/CreateInferenceV3DeploymentRequest.md +++ b/docs/CreateInferenceV3DeploymentRequest.md @@ -10,6 +10,7 @@ Name | Type | Description | Notes **name** | **str** | | **cluster_id** | **int** | | **hardware_instance_id** | **int** | | +**user_annotations** | **Dict[str, str]** | | [optional] **image_url** | **str** | | **image_pull_secret_credentials** | [**ImagePullSecretCredentials**](ImagePullSecretCredentials.md) | | [optional] **port** | **int** | | diff --git a/docs/CreateRagDeploymentRequest.md b/docs/CreateRagDeploymentRequest.md index e249d50..3dde8a8 100644 --- a/docs/CreateRagDeploymentRequest.md +++ b/docs/CreateRagDeploymentRequest.md @@ -8,6 +8,7 @@ Name | Type | Description | Notes **name** | **str** | | **cluster_id** | **int** | | **hardware_instance_id** | **int** | | +**user_annotations** | **Dict[str, str]** | | [optional] **recipe** | [**CServeV2Recipe**](CServeV2Recipe.md) | | **cserve_version** | **str** | | [optional] **hf_token** | **str** | | [optional] diff --git a/docs/DeploymentResponse.md b/docs/DeploymentResponse.md index 318f905..73b0122 100644 --- a/docs/DeploymentResponse.md +++ b/docs/DeploymentResponse.md @@ -16,6 +16,7 @@ Name | Type | Description | Notes **created_at** | **datetime** | | **hardware_instance_id** | **int** | | **revision_number** | **int** | | +**user_annotations** | **Dict[str, str]** | | [optional] **recipe** | [**CServeV2Recipe**](CServeV2Recipe.md) | | **cserve_version** | **str** | | [optional] **min_replicas** | **int** | | diff --git a/docs/GetCServeV2DeploymentResponse.md b/docs/GetCServeV2DeploymentResponse.md index e48b81f..1f041b2 100644 --- a/docs/GetCServeV2DeploymentResponse.md +++ b/docs/GetCServeV2DeploymentResponse.md @@ -16,6 +16,7 @@ Name | Type | Description | Notes **created_at** | **datetime** | | **hardware_instance_id** | **int** | | **revision_number** | **int** | | +**user_annotations** | **Dict[str, str]** | | [optional] **recipe** | [**CServeV2Recipe**](CServeV2Recipe.md) | | **cserve_version** | **str** | | [optional] **min_scale** | **int** | | diff --git a/docs/GetCServeV3DeploymentResponse.md b/docs/GetCServeV3DeploymentResponse.md index d10e208..d12ed27 100644 --- a/docs/GetCServeV3DeploymentResponse.md +++ b/docs/GetCServeV3DeploymentResponse.md @@ -16,6 +16,7 @@ Name | Type | Description | Notes **created_at** | **datetime** | | **hardware_instance_id** | **int** | | **revision_number** | **int** | | +**user_annotations** | **Dict[str, str]** | | [optional] **recipe** | [**CServeV2Recipe**](CServeV2Recipe.md) | | **cserve_version** | **str** | | [optional] **min_replicas** | **int** | | diff --git a/docs/GetComputeDeploymentResponse.md b/docs/GetComputeDeploymentResponse.md index 2f07aa4..69ec89d 100644 --- a/docs/GetComputeDeploymentResponse.md +++ b/docs/GetComputeDeploymentResponse.md @@ -16,6 +16,7 @@ Name | Type | Description | Notes **created_at** | **datetime** | | **hardware_instance_id** | **int** | | **revision_number** | **int** | | +**user_annotations** | **Dict[str, str]** | | [optional] **exposed_port** | **int** | | **ssh_public_key** | **str** | | [optional] **ssh_password** | **str** | | [optional] diff --git a/docs/GetDeploymentResponse.md b/docs/GetDeploymentResponse.md index 0473efa..fdcdaca 100644 --- a/docs/GetDeploymentResponse.md +++ b/docs/GetDeploymentResponse.md @@ -16,6 +16,7 @@ Name | Type | Description | Notes **created_at** | **datetime** | | **hardware_instance_id** | **int** | | **revision_number** | **int** | | +**user_annotations** | **Dict[str, str]** | | [optional] ## Example diff --git a/docs/GetInferenceDeploymentResponse.md b/docs/GetInferenceDeploymentResponse.md index e6ba2cd..f19e9a3 100644 --- a/docs/GetInferenceDeploymentResponse.md +++ b/docs/GetInferenceDeploymentResponse.md @@ -16,6 +16,7 @@ Name | Type | Description | Notes **created_at** | **datetime** | | **hardware_instance_id** | **int** | | **revision_number** | **int** | | +**user_annotations** | **Dict[str, str]** | | [optional] **container_port** | **int** | | **min_scale** | **int** | | **max_scale** | **int** | | diff --git a/docs/GetInferenceV3DeploymentResponse.md b/docs/GetInferenceV3DeploymentResponse.md index dd3f114..2f40cac 100644 --- a/docs/GetInferenceV3DeploymentResponse.md +++ b/docs/GetInferenceV3DeploymentResponse.md @@ -16,6 +16,7 @@ Name | Type | Description | Notes **created_at** | **datetime** | | **hardware_instance_id** | **int** | | **revision_number** | **int** | | +**user_annotations** | **Dict[str, str]** | | [optional] **container_port** | **int** | | **min_replicas** | **int** | | **max_replicas** | **int** | | diff --git a/docs/GetRagDeploymentResponse.md b/docs/GetRagDeploymentResponse.md index f16f876..0b84a69 100644 --- a/docs/GetRagDeploymentResponse.md +++ b/docs/GetRagDeploymentResponse.md @@ -16,6 +16,7 @@ Name | Type | Description | Notes **created_at** | **datetime** | | **hardware_instance_id** | **int** | | **revision_number** | **int** | | +**user_annotations** | **Dict[str, str]** | | [optional] **recipe** | [**CServeV2Recipe**](CServeV2Recipe.md) | | **cserve_version** | **str** | | [optional] **llm_model** | **str** | | diff --git a/platform_api_python_client/__init__.py b/platform_api_python_client/__init__.py index 4235d4c..dc41205 100644 --- a/platform_api_python_client/__init__.py +++ b/platform_api_python_client/__init__.py @@ -14,7 +14,7 @@ """ # noqa: E501 -__version__ = "4.8.3" +__version__ = "4.8.4" # import apis into sdk package from platform_api_python_client.api.external_api import EXTERNALApi diff --git a/platform_api_python_client/api_client.py b/platform_api_python_client/api_client.py index 0871aed..db024e3 100644 --- a/platform_api_python_client/api_client.py +++ b/platform_api_python_client/api_client.py @@ -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.8.3/python' + self.user_agent = 'OpenAPI-Generator/4.8.4/python' self.client_side_validation = configuration.client_side_validation def __enter__(self): diff --git a/platform_api_python_client/configuration.py b/platform_api_python_client/configuration.py index 3c1cd2e..9a50fbb 100644 --- a/platform_api_python_client/configuration.py +++ b/platform_api_python_client/configuration.py @@ -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.8.3".\ + "SDK Package Version: 4.8.4".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self): diff --git a/platform_api_python_client/models/create_c_serve_v2_deployment_request.py b/platform_api_python_client/models/create_c_serve_v2_deployment_request.py index 767ec12..1c62280 100644 --- a/platform_api_python_client/models/create_c_serve_v2_deployment_request.py +++ b/platform_api_python_client/models/create_c_serve_v2_deployment_request.py @@ -31,6 +31,7 @@ class CreateCServeV2DeploymentRequest(BaseModel): name: Annotated[str, Field(min_length=1, strict=True, max_length=20)] cluster_id: StrictInt hardware_instance_id: StrictInt + user_annotations: Optional[Dict[str, StrictStr]] = None recipe: CServeV2Recipe cserve_version: Optional[StrictStr] = None hf_token: Optional[StrictStr] = None @@ -41,7 +42,7 @@ class CreateCServeV2DeploymentRequest(BaseModel): initial_scale: Optional[StrictInt] = None concurrency: Optional[StrictInt] = None env_vars: Optional[Dict[str, StrictStr]] = None - __properties: ClassVar[List[str]] = ["name", "cluster_id", "hardware_instance_id", "recipe", "cserve_version", "hf_token", "endpoint_bearer_token", "endpoint_certificate_authority", "min_scale", "max_scale", "initial_scale", "concurrency", "env_vars"] + __properties: ClassVar[List[str]] = ["name", "cluster_id", "hardware_instance_id", "user_annotations", "recipe", "cserve_version", "hf_token", "endpoint_bearer_token", "endpoint_certificate_authority", "min_scale", "max_scale", "initial_scale", "concurrency", "env_vars"] @field_validator('name') def name_validate_regular_expression(cls, value): @@ -92,6 +93,11 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of recipe if self.recipe: _dict['recipe'] = self.recipe.to_dict() + # set to None if user_annotations (nullable) is None + # and model_fields_set contains the field + if self.user_annotations is None and "user_annotations" in self.model_fields_set: + _dict['user_annotations'] = None + # set to None if cserve_version (nullable) is None # and model_fields_set contains the field if self.cserve_version is None and "cserve_version" in self.model_fields_set: @@ -137,6 +143,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "name": obj.get("name"), "cluster_id": obj.get("cluster_id"), "hardware_instance_id": obj.get("hardware_instance_id"), + "user_annotations": obj.get("user_annotations"), "recipe": CServeV2Recipe.from_dict(obj["recipe"]) if obj.get("recipe") is not None else None, "cserve_version": obj.get("cserve_version"), "hf_token": obj.get("hf_token"), diff --git a/platform_api_python_client/models/create_c_serve_v3_deployment_request.py b/platform_api_python_client/models/create_c_serve_v3_deployment_request.py index f2b0978..4abffbd 100644 --- a/platform_api_python_client/models/create_c_serve_v3_deployment_request.py +++ b/platform_api_python_client/models/create_c_serve_v3_deployment_request.py @@ -33,6 +33,7 @@ class CreateCServeV3DeploymentRequest(BaseModel): name: Annotated[str, Field(min_length=1, strict=True, max_length=20)] cluster_id: StrictInt hardware_instance_id: StrictInt + user_annotations: Optional[Dict[str, StrictStr]] = None recipe: CServeV2Recipe cserve_version: Optional[StrictStr] = None hf_token: Optional[StrictStr] = None @@ -44,7 +45,7 @@ class CreateCServeV3DeploymentRequest(BaseModel): concurrency: Optional[StrictInt] = None env_vars: Optional[Dict[str, StrictStr]] = None enable_logging: Optional[StrictBool] = True - __properties: ClassVar[List[str]] = ["max_surge", "max_unavailable", "name", "cluster_id", "hardware_instance_id", "recipe", "cserve_version", "hf_token", "endpoint_bearer_token", "endpoint_certificate_authority", "min_replicas", "max_replicas", "initial_replicas", "concurrency", "env_vars", "enable_logging"] + __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"] @field_validator('name') def name_validate_regular_expression(cls, value): @@ -105,6 +106,11 @@ def to_dict(self) -> Dict[str, Any]: if self.max_unavailable is None and "max_unavailable" in self.model_fields_set: _dict['max_unavailable'] = None + # set to None if user_annotations (nullable) is None + # and model_fields_set contains the field + if self.user_annotations is None and "user_annotations" in self.model_fields_set: + _dict['user_annotations'] = None + # set to None if cserve_version (nullable) is None # and model_fields_set contains the field if self.cserve_version is None and "cserve_version" in self.model_fields_set: @@ -152,6 +158,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "name": obj.get("name"), "cluster_id": obj.get("cluster_id"), "hardware_instance_id": obj.get("hardware_instance_id"), + "user_annotations": obj.get("user_annotations"), "recipe": CServeV2Recipe.from_dict(obj["recipe"]) if obj.get("recipe") is not None else None, "cserve_version": obj.get("cserve_version"), "hf_token": obj.get("hf_token"), diff --git a/platform_api_python_client/models/create_compute_deployment_request.py b/platform_api_python_client/models/create_compute_deployment_request.py index c508680..c641270 100644 --- a/platform_api_python_client/models/create_compute_deployment_request.py +++ b/platform_api_python_client/models/create_compute_deployment_request.py @@ -30,11 +30,12 @@ class CreateComputeDeploymentRequest(BaseModel): name: Annotated[str, Field(min_length=1, strict=True, max_length=20)] cluster_id: StrictInt hardware_instance_id: StrictInt + user_annotations: Optional[Dict[str, StrictStr]] = None image_url: StrictStr enable_jupyter: Optional[StrictBool] = False ssh_public_key: StrictStr enable_logging: Optional[StrictBool] = False - __properties: ClassVar[List[str]] = ["name", "cluster_id", "hardware_instance_id", "image_url", "enable_jupyter", "ssh_public_key", "enable_logging"] + __properties: ClassVar[List[str]] = ["name", "cluster_id", "hardware_instance_id", "user_annotations", "image_url", "enable_jupyter", "ssh_public_key", "enable_logging"] @field_validator('name') def name_validate_regular_expression(cls, value): @@ -82,6 +83,11 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # set to None if user_annotations (nullable) is None + # and model_fields_set contains the field + if self.user_annotations is None and "user_annotations" in self.model_fields_set: + _dict['user_annotations'] = None + return _dict @classmethod @@ -97,6 +103,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "name": obj.get("name"), "cluster_id": obj.get("cluster_id"), "hardware_instance_id": obj.get("hardware_instance_id"), + "user_annotations": obj.get("user_annotations"), "image_url": obj.get("image_url"), "enable_jupyter": obj.get("enable_jupyter") if obj.get("enable_jupyter") is not None else False, "ssh_public_key": obj.get("ssh_public_key"), diff --git a/platform_api_python_client/models/create_inference_deployment_request.py b/platform_api_python_client/models/create_inference_deployment_request.py index 12eef58..b287b94 100644 --- a/platform_api_python_client/models/create_inference_deployment_request.py +++ b/platform_api_python_client/models/create_inference_deployment_request.py @@ -30,6 +30,7 @@ class CreateInferenceDeploymentRequest(BaseModel): name: Annotated[str, Field(min_length=1, strict=True, max_length=20)] cluster_id: StrictInt hardware_instance_id: StrictInt + user_annotations: Optional[Dict[str, StrictStr]] = None image_url: StrictStr port: StrictInt min_scale: StrictInt @@ -41,7 +42,7 @@ class CreateInferenceDeploymentRequest(BaseModel): command: Optional[StrictStr] = None endpoint_bearer_token: Optional[StrictStr] = None endpoint_certificate_authority: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["name", "cluster_id", "hardware_instance_id", "image_url", "port", "min_scale", "max_scale", "initial_scale", "concurrency", "healthcheck", "env_vars", "command", "endpoint_bearer_token", "endpoint_certificate_authority"] + __properties: ClassVar[List[str]] = ["name", "cluster_id", "hardware_instance_id", "user_annotations", "image_url", "port", "min_scale", "max_scale", "initial_scale", "concurrency", "healthcheck", "env_vars", "command", "endpoint_bearer_token", "endpoint_certificate_authority"] @field_validator('name') def name_validate_regular_expression(cls, value): @@ -89,6 +90,11 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # set to None if user_annotations (nullable) is None + # and model_fields_set contains the field + if self.user_annotations is None and "user_annotations" in self.model_fields_set: + _dict['user_annotations'] = None + # set to None if initial_scale (nullable) is None # and model_fields_set contains the field if self.initial_scale is None and "initial_scale" in self.model_fields_set: @@ -139,6 +145,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "name": obj.get("name"), "cluster_id": obj.get("cluster_id"), "hardware_instance_id": obj.get("hardware_instance_id"), + "user_annotations": obj.get("user_annotations"), "image_url": obj.get("image_url"), "port": obj.get("port"), "min_scale": obj.get("min_scale"), diff --git a/platform_api_python_client/models/create_inference_v3_deployment_request.py b/platform_api_python_client/models/create_inference_v3_deployment_request.py index 4130665..4bde2b2 100644 --- a/platform_api_python_client/models/create_inference_v3_deployment_request.py +++ b/platform_api_python_client/models/create_inference_v3_deployment_request.py @@ -34,6 +34,7 @@ class CreateInferenceV3DeploymentRequest(BaseModel): name: Annotated[str, Field(min_length=1, strict=True, max_length=20)] cluster_id: StrictInt hardware_instance_id: StrictInt + user_annotations: Optional[Dict[str, StrictStr]] = None image_url: StrictStr image_pull_secret_credentials: Optional[ImagePullSecretCredentials] = None port: StrictInt @@ -48,7 +49,7 @@ class CreateInferenceV3DeploymentRequest(BaseModel): endpoint_certificate_authority: Optional[StrictStr] = None backend_protocol: Optional[BackendProtocol] = None enable_logging: Optional[StrictBool] = False - __properties: ClassVar[List[str]] = ["max_surge", "max_unavailable", "name", "cluster_id", "hardware_instance_id", "image_url", "image_pull_secret_credentials", "port", "min_replicas", "max_replicas", "initial_replicas", "concurrency", "healthcheck", "env_vars", "command", "endpoint_bearer_token", "endpoint_certificate_authority", "backend_protocol", "enable_logging"] + __properties: ClassVar[List[str]] = ["max_surge", "max_unavailable", "name", "cluster_id", "hardware_instance_id", "user_annotations", "image_url", "image_pull_secret_credentials", "port", "min_replicas", "max_replicas", "initial_replicas", "concurrency", "healthcheck", "env_vars", "command", "endpoint_bearer_token", "endpoint_certificate_authority", "backend_protocol", "enable_logging"] @field_validator('name') def name_validate_regular_expression(cls, value): @@ -109,6 +110,11 @@ def to_dict(self) -> Dict[str, Any]: if self.max_unavailable is None and "max_unavailable" in self.model_fields_set: _dict['max_unavailable'] = None + # set to None if user_annotations (nullable) is None + # and model_fields_set contains the field + if self.user_annotations is None and "user_annotations" in self.model_fields_set: + _dict['user_annotations'] = None + # set to None if image_pull_secret_credentials (nullable) is None # and model_fields_set contains the field if self.image_pull_secret_credentials is None and "image_pull_secret_credentials" in self.model_fields_set: @@ -166,6 +172,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "name": obj.get("name"), "cluster_id": obj.get("cluster_id"), "hardware_instance_id": obj.get("hardware_instance_id"), + "user_annotations": obj.get("user_annotations"), "image_url": obj.get("image_url"), "image_pull_secret_credentials": ImagePullSecretCredentials.from_dict(obj["image_pull_secret_credentials"]) if obj.get("image_pull_secret_credentials") is not None else None, "port": obj.get("port"), diff --git a/platform_api_python_client/models/create_rag_deployment_request.py b/platform_api_python_client/models/create_rag_deployment_request.py index 86f4519..1511ce5 100644 --- a/platform_api_python_client/models/create_rag_deployment_request.py +++ b/platform_api_python_client/models/create_rag_deployment_request.py @@ -31,6 +31,7 @@ class CreateRagDeploymentRequest(BaseModel): name: Annotated[str, Field(min_length=1, strict=True, max_length=20)] cluster_id: StrictInt hardware_instance_id: StrictInt + user_annotations: Optional[Dict[str, StrictStr]] = None recipe: CServeV2Recipe cserve_version: Optional[StrictStr] = None hf_token: Optional[StrictStr] = None @@ -43,7 +44,7 @@ class CreateRagDeploymentRequest(BaseModel): endpoint_certificate_authority: Optional[StrictStr] = None concurrency: Optional[StrictInt] = None env_vars: Optional[Dict[str, StrictStr]] = None - __properties: ClassVar[List[str]] = ["name", "cluster_id", "hardware_instance_id", "recipe", "cserve_version", "hf_token", "llm_model", "centml_api_key", "min_scale", "max_scale", "initial_scale", "endpoint_bearer_token", "endpoint_certificate_authority", "concurrency", "env_vars"] + __properties: ClassVar[List[str]] = ["name", "cluster_id", "hardware_instance_id", "user_annotations", "recipe", "cserve_version", "hf_token", "llm_model", "centml_api_key", "min_scale", "max_scale", "initial_scale", "endpoint_bearer_token", "endpoint_certificate_authority", "concurrency", "env_vars"] @field_validator('name') def name_validate_regular_expression(cls, value): @@ -94,6 +95,11 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of recipe if self.recipe: _dict['recipe'] = self.recipe.to_dict() + # set to None if user_annotations (nullable) is None + # and model_fields_set contains the field + if self.user_annotations is None and "user_annotations" in self.model_fields_set: + _dict['user_annotations'] = None + # set to None if cserve_version (nullable) is None # and model_fields_set contains the field if self.cserve_version is None and "cserve_version" in self.model_fields_set: @@ -139,6 +145,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "name": obj.get("name"), "cluster_id": obj.get("cluster_id"), "hardware_instance_id": obj.get("hardware_instance_id"), + "user_annotations": obj.get("user_annotations"), "recipe": CServeV2Recipe.from_dict(obj["recipe"]) if obj.get("recipe") is not None else None, "cserve_version": obj.get("cserve_version"), "hf_token": obj.get("hf_token"), diff --git a/platform_api_python_client/models/get_c_serve_v2_deployment_response.py b/platform_api_python_client/models/get_c_serve_v2_deployment_response.py index 872fea9..c385158 100644 --- a/platform_api_python_client/models/get_c_serve_v2_deployment_response.py +++ b/platform_api_python_client/models/get_c_serve_v2_deployment_response.py @@ -41,6 +41,7 @@ class GetCServeV2DeploymentResponse(BaseModel): created_at: datetime hardware_instance_id: StrictInt revision_number: StrictInt + user_annotations: Optional[Dict[str, StrictStr]] = None recipe: CServeV2Recipe cserve_version: Optional[StrictStr] = None min_scale: StrictInt @@ -50,7 +51,7 @@ class GetCServeV2DeploymentResponse(BaseModel): endpoint_bearer_token: Optional[StrictStr] = None concurrency: Optional[StrictInt] = None env_vars: Optional[Dict[str, StrictStr]] = None - __properties: ClassVar[List[str]] = ["creator_email", "cluster_id", "id", "name", "endpoint_url", "image_url", "type", "status", "created_at", "hardware_instance_id", "revision_number", "recipe", "cserve_version", "min_scale", "max_scale", "initial_scale", "endpoint_certificate_authority", "endpoint_bearer_token", "concurrency", "env_vars"] + __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_scale", "max_scale", "initial_scale", "endpoint_certificate_authority", "endpoint_bearer_token", "concurrency", "env_vars"] model_config = ConfigDict( populate_by_name=True, @@ -99,6 +100,11 @@ def to_dict(self) -> Dict[str, Any]: if self.image_url is None and "image_url" in self.model_fields_set: _dict['image_url'] = None + # set to None if user_annotations (nullable) is None + # and model_fields_set contains the field + if self.user_annotations is None and "user_annotations" in self.model_fields_set: + _dict['user_annotations'] = None + # set to None if cserve_version (nullable) is None # and model_fields_set contains the field if self.cserve_version is None and "cserve_version" in self.model_fields_set: @@ -147,6 +153,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "created_at": obj.get("created_at"), "hardware_instance_id": obj.get("hardware_instance_id"), "revision_number": obj.get("revision_number"), + "user_annotations": obj.get("user_annotations"), "recipe": CServeV2Recipe.from_dict(obj["recipe"]) if obj.get("recipe") is not None else None, "cserve_version": obj.get("cserve_version"), "min_scale": obj.get("min_scale"), diff --git a/platform_api_python_client/models/get_c_serve_v3_deployment_response.py b/platform_api_python_client/models/get_c_serve_v3_deployment_response.py index 1799f0a..277cbf9 100644 --- a/platform_api_python_client/models/get_c_serve_v3_deployment_response.py +++ b/platform_api_python_client/models/get_c_serve_v3_deployment_response.py @@ -41,6 +41,7 @@ class GetCServeV3DeploymentResponse(BaseModel): created_at: datetime hardware_instance_id: StrictInt revision_number: StrictInt + user_annotations: Optional[Dict[str, StrictStr]] = None recipe: CServeV2Recipe cserve_version: Optional[StrictStr] = None min_replicas: StrictInt @@ -51,7 +52,7 @@ class GetCServeV3DeploymentResponse(BaseModel): concurrency: Optional[StrictInt] = None env_vars: Optional[Dict[str, StrictStr]] = None enable_logging: Optional[StrictBool] = True - __properties: ClassVar[List[str]] = ["creator_email", "cluster_id", "id", "name", "endpoint_url", "image_url", "type", "status", "created_at", "hardware_instance_id", "revision_number", "recipe", "cserve_version", "min_replicas", "max_replicas", "initial_replicas", "endpoint_certificate_authority", "endpoint_bearer_token", "concurrency", "env_vars", "enable_logging"] + __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", "env_vars", "enable_logging"] model_config = ConfigDict( populate_by_name=True, @@ -100,6 +101,11 @@ def to_dict(self) -> Dict[str, Any]: if self.image_url is None and "image_url" in self.model_fields_set: _dict['image_url'] = None + # set to None if user_annotations (nullable) is None + # and model_fields_set contains the field + if self.user_annotations is None and "user_annotations" in self.model_fields_set: + _dict['user_annotations'] = None + # set to None if cserve_version (nullable) is None # and model_fields_set contains the field if self.cserve_version is None and "cserve_version" in self.model_fields_set: @@ -148,6 +154,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "created_at": obj.get("created_at"), "hardware_instance_id": obj.get("hardware_instance_id"), "revision_number": obj.get("revision_number"), + "user_annotations": obj.get("user_annotations"), "recipe": CServeV2Recipe.from_dict(obj["recipe"]) if obj.get("recipe") is not None else None, "cserve_version": obj.get("cserve_version"), "min_replicas": obj.get("min_replicas"), diff --git a/platform_api_python_client/models/get_compute_deployment_response.py b/platform_api_python_client/models/get_compute_deployment_response.py index 797d8da..0375bda 100644 --- a/platform_api_python_client/models/get_compute_deployment_response.py +++ b/platform_api_python_client/models/get_compute_deployment_response.py @@ -40,12 +40,13 @@ class GetComputeDeploymentResponse(BaseModel): created_at: datetime hardware_instance_id: StrictInt revision_number: StrictInt + user_annotations: Optional[Dict[str, StrictStr]] = None exposed_port: StrictInt ssh_public_key: Optional[StrictStr] = None ssh_password: Optional[StrictStr] = None env_vars: Optional[Dict[str, StrictStr]] = None enable_logging: Optional[StrictBool] = True - __properties: ClassVar[List[str]] = ["creator_email", "cluster_id", "id", "name", "endpoint_url", "image_url", "type", "status", "created_at", "hardware_instance_id", "revision_number", "exposed_port", "ssh_public_key", "ssh_password", "env_vars", "enable_logging"] + __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", "exposed_port", "ssh_public_key", "ssh_password", "env_vars", "enable_logging"] model_config = ConfigDict( populate_by_name=True, @@ -91,6 +92,11 @@ def to_dict(self) -> Dict[str, Any]: if self.image_url is None and "image_url" in self.model_fields_set: _dict['image_url'] = None + # set to None if user_annotations (nullable) is None + # and model_fields_set contains the field + if self.user_annotations is None and "user_annotations" in self.model_fields_set: + _dict['user_annotations'] = None + # set to None if ssh_public_key (nullable) is None # and model_fields_set contains the field if self.ssh_public_key is None and "ssh_public_key" in self.model_fields_set: @@ -129,6 +135,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "created_at": obj.get("created_at"), "hardware_instance_id": obj.get("hardware_instance_id"), "revision_number": obj.get("revision_number"), + "user_annotations": obj.get("user_annotations"), "exposed_port": obj.get("exposed_port"), "ssh_public_key": obj.get("ssh_public_key"), "ssh_password": obj.get("ssh_password"), diff --git a/platform_api_python_client/models/get_deployment_response.py b/platform_api_python_client/models/get_deployment_response.py index a120fa7..e448a76 100644 --- a/platform_api_python_client/models/get_deployment_response.py +++ b/platform_api_python_client/models/get_deployment_response.py @@ -40,7 +40,8 @@ class GetDeploymentResponse(BaseModel): created_at: datetime hardware_instance_id: StrictInt revision_number: StrictInt - __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: Optional[Dict[str, StrictStr]] = 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"] model_config = ConfigDict( populate_by_name=True, @@ -86,6 +87,11 @@ def to_dict(self) -> Dict[str, Any]: if self.image_url is None and "image_url" in self.model_fields_set: _dict['image_url'] = None + # set to None if user_annotations (nullable) is None + # and model_fields_set contains the field + if self.user_annotations is None and "user_annotations" in self.model_fields_set: + _dict['user_annotations'] = None + return _dict @classmethod @@ -108,7 +114,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "status": obj.get("status"), "created_at": obj.get("created_at"), "hardware_instance_id": obj.get("hardware_instance_id"), - "revision_number": obj.get("revision_number") + "revision_number": obj.get("revision_number"), + "user_annotations": obj.get("user_annotations") }) return _obj diff --git a/platform_api_python_client/models/get_inference_deployment_response.py b/platform_api_python_client/models/get_inference_deployment_response.py index b3d8186..fb164ce 100644 --- a/platform_api_python_client/models/get_inference_deployment_response.py +++ b/platform_api_python_client/models/get_inference_deployment_response.py @@ -40,6 +40,7 @@ class GetInferenceDeploymentResponse(BaseModel): created_at: datetime hardware_instance_id: StrictInt revision_number: StrictInt + user_annotations: Optional[Dict[str, StrictStr]] = None container_port: StrictInt min_scale: StrictInt max_scale: StrictInt @@ -51,7 +52,7 @@ class GetInferenceDeploymentResponse(BaseModel): env_vars: Optional[Dict[str, StrictStr]] = None command: Optional[List[StrictStr]] = None command_args: Optional[List[StrictStr]] = None - __properties: ClassVar[List[str]] = ["creator_email", "cluster_id", "id", "name", "endpoint_url", "image_url", "type", "status", "created_at", "hardware_instance_id", "revision_number", "container_port", "min_scale", "max_scale", "initial_scale", "concurrency", "healthcheck", "endpoint_certificate_authority", "endpoint_bearer_token", "env_vars", "command", "command_args"] + __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_scale", "max_scale", "initial_scale", "concurrency", "healthcheck", "endpoint_certificate_authority", "endpoint_bearer_token", "env_vars", "command", "command_args"] model_config = ConfigDict( populate_by_name=True, @@ -97,6 +98,11 @@ def to_dict(self) -> Dict[str, Any]: if self.image_url is None and "image_url" in self.model_fields_set: _dict['image_url'] = None + # set to None if user_annotations (nullable) is None + # and model_fields_set contains the field + if self.user_annotations is None and "user_annotations" in self.model_fields_set: + _dict['user_annotations'] = None + # set to None if initial_scale (nullable) is None # and model_fields_set contains the field if self.initial_scale is None and "initial_scale" in self.model_fields_set: @@ -160,6 +166,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "created_at": obj.get("created_at"), "hardware_instance_id": obj.get("hardware_instance_id"), "revision_number": obj.get("revision_number"), + "user_annotations": obj.get("user_annotations"), "container_port": obj.get("container_port"), "min_scale": obj.get("min_scale"), "max_scale": obj.get("max_scale"), diff --git a/platform_api_python_client/models/get_inference_v3_deployment_response.py b/platform_api_python_client/models/get_inference_v3_deployment_response.py index 50ae24c..75f8bed 100644 --- a/platform_api_python_client/models/get_inference_v3_deployment_response.py +++ b/platform_api_python_client/models/get_inference_v3_deployment_response.py @@ -42,6 +42,7 @@ class GetInferenceV3DeploymentResponse(BaseModel): created_at: datetime hardware_instance_id: StrictInt revision_number: StrictInt + user_annotations: Optional[Dict[str, StrictStr]] = None container_port: StrictInt min_replicas: StrictInt max_replicas: StrictInt @@ -57,7 +58,7 @@ class GetInferenceV3DeploymentResponse(BaseModel): image_pull_secret_credentials: Optional[ImagePullSecretCredentials] = None backend_protocol: Optional[BackendProtocol] = None enable_logging: Optional[StrictBool] = True - __properties: ClassVar[List[str]] = ["creator_email", "cluster_id", "id", "name", "endpoint_url", "image_url", "type", "status", "created_at", "hardware_instance_id", "revision_number", "container_port", "min_replicas", "max_replicas", "initial_replicas", "concurrency", "healthcheck", "endpoint_certificate_authority", "endpoint_bearer_token", "env_vars", "command", "command_args", "original_command", "image_pull_secret_credentials", "backend_protocol", "enable_logging"] + __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", "healthcheck", "endpoint_certificate_authority", "endpoint_bearer_token", "env_vars", "command", "command_args", "original_command", "image_pull_secret_credentials", "backend_protocol", "enable_logging"] model_config = ConfigDict( populate_by_name=True, @@ -106,6 +107,11 @@ def to_dict(self) -> Dict[str, Any]: if self.image_url is None and "image_url" in self.model_fields_set: _dict['image_url'] = None + # set to None if user_annotations (nullable) is None + # and model_fields_set contains the field + 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: @@ -179,6 +185,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "created_at": obj.get("created_at"), "hardware_instance_id": obj.get("hardware_instance_id"), "revision_number": obj.get("revision_number"), + "user_annotations": obj.get("user_annotations"), "container_port": obj.get("container_port"), "min_replicas": obj.get("min_replicas"), "max_replicas": obj.get("max_replicas"), diff --git a/platform_api_python_client/models/get_rag_deployment_response.py b/platform_api_python_client/models/get_rag_deployment_response.py index 475253e..348b81b 100644 --- a/platform_api_python_client/models/get_rag_deployment_response.py +++ b/platform_api_python_client/models/get_rag_deployment_response.py @@ -41,6 +41,7 @@ class GetRagDeploymentResponse(BaseModel): created_at: datetime hardware_instance_id: StrictInt revision_number: StrictInt + user_annotations: Optional[Dict[str, StrictStr]] = None recipe: CServeV2Recipe cserve_version: Optional[StrictStr] = None llm_model: StrictStr @@ -52,7 +53,7 @@ class GetRagDeploymentResponse(BaseModel): endpoint_bearer_token: Optional[StrictStr] = None concurrency: Optional[StrictInt] = None env_vars: Optional[Dict[str, StrictStr]] = None - __properties: ClassVar[List[str]] = ["creator_email", "cluster_id", "id", "name", "endpoint_url", "image_url", "type", "status", "created_at", "hardware_instance_id", "revision_number", "recipe", "cserve_version", "llm_model", "centml_api_key", "min_scale", "max_scale", "initial_scale", "endpoint_certificate_authority", "endpoint_bearer_token", "concurrency", "env_vars"] + __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", "llm_model", "centml_api_key", "min_scale", "max_scale", "initial_scale", "endpoint_certificate_authority", "endpoint_bearer_token", "concurrency", "env_vars"] model_config = ConfigDict( populate_by_name=True, @@ -101,6 +102,11 @@ def to_dict(self) -> Dict[str, Any]: if self.image_url is None and "image_url" in self.model_fields_set: _dict['image_url'] = None + # set to None if user_annotations (nullable) is None + # and model_fields_set contains the field + if self.user_annotations is None and "user_annotations" in self.model_fields_set: + _dict['user_annotations'] = None + # set to None if cserve_version (nullable) is None # and model_fields_set contains the field if self.cserve_version is None and "cserve_version" in self.model_fields_set: @@ -149,6 +155,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "created_at": obj.get("created_at"), "hardware_instance_id": obj.get("hardware_instance_id"), "revision_number": obj.get("revision_number"), + "user_annotations": obj.get("user_annotations"), "recipe": CServeV2Recipe.from_dict(obj["recipe"]) if obj.get("recipe") is not None else None, "cserve_version": obj.get("cserve_version"), "llm_model": obj.get("llm_model"), diff --git a/pyproject.toml b/pyproject.toml index 7747959..bde6a5f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "platform_api_python_client" -version = "4.8.3" +version = "4.8.4" description = "Platform External API" authors = ["OpenAPI Generator Community "] license = "NoLicense" diff --git a/setup.py b/setup.py index 730def3..e718e32 100644 --- a/setup.py +++ b/setup.py @@ -21,7 +21,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools NAME = "platform-api-python-client" -VERSION = "4.8.3" +VERSION = "4.8.4" PYTHON_REQUIRES = ">= 3.8" REQUIRES = [ "urllib3 >= 1.25.3, < 3.0.0", diff --git a/test/test_create_c_serve_v2_deployment_request.py b/test/test_create_c_serve_v2_deployment_request.py index 006759c..f716f06 100644 --- a/test/test_create_c_serve_v2_deployment_request.py +++ b/test/test_create_c_serve_v2_deployment_request.py @@ -38,6 +38,9 @@ def make_instance(self, include_optional) -> CreateCServeV2DeploymentRequest: name = 'ar1c2v7s6djuy1zmetozkhdomha1b0', cluster_id = 56, hardware_instance_id = 56, + user_annotations = { + 'key' : '' + }, recipe = { }, cserve_version = '', hf_token = '', diff --git a/test/test_create_c_serve_v3_deployment_request.py b/test/test_create_c_serve_v3_deployment_request.py index d421711..941d542 100644 --- a/test/test_create_c_serve_v3_deployment_request.py +++ b/test/test_create_c_serve_v3_deployment_request.py @@ -40,6 +40,9 @@ def make_instance(self, include_optional) -> CreateCServeV3DeploymentRequest: name = 'ar1c2v7s6djuy1zmetozkhdomha1b0', cluster_id = 56, hardware_instance_id = 56, + user_annotations = { + 'key' : '' + }, recipe = { }, cserve_version = '', hf_token = '', diff --git a/test/test_create_compute_deployment_request.py b/test/test_create_compute_deployment_request.py index 687c930..44f5686 100644 --- a/test/test_create_compute_deployment_request.py +++ b/test/test_create_compute_deployment_request.py @@ -38,6 +38,9 @@ def make_instance(self, include_optional) -> CreateComputeDeploymentRequest: name = 'ar1c2v7s6djuy1zmetozkhdomha1b0', cluster_id = 56, hardware_instance_id = 56, + user_annotations = { + 'key' : '' + }, image_url = '', enable_jupyter = True, ssh_public_key = '', diff --git a/test/test_create_inference_deployment_request.py b/test/test_create_inference_deployment_request.py index a653525..551ac09 100644 --- a/test/test_create_inference_deployment_request.py +++ b/test/test_create_inference_deployment_request.py @@ -38,6 +38,9 @@ def make_instance(self, include_optional) -> CreateInferenceDeploymentRequest: name = 'ar1c2v7s6djuy1zmetozkhdomha1b0', cluster_id = 56, hardware_instance_id = 56, + user_annotations = { + 'key' : '' + }, image_url = '', port = 56, min_scale = 56, diff --git a/test/test_create_inference_v3_deployment_request.py b/test/test_create_inference_v3_deployment_request.py index 68c5516..65e81bf 100644 --- a/test/test_create_inference_v3_deployment_request.py +++ b/test/test_create_inference_v3_deployment_request.py @@ -40,6 +40,9 @@ def make_instance(self, include_optional) -> CreateInferenceV3DeploymentRequest: name = 'ar1c2v7s6djuy1zmetozkhdomha1b0', cluster_id = 56, hardware_instance_id = 56, + user_annotations = { + 'key' : '' + }, image_url = '', image_pull_secret_credentials = platform_api_python_client.models.image_pull_secret_credentials.ImagePullSecretCredentials( username = '', diff --git a/test/test_create_rag_deployment_request.py b/test/test_create_rag_deployment_request.py index 0ecf919..fbe8b6d 100644 --- a/test/test_create_rag_deployment_request.py +++ b/test/test_create_rag_deployment_request.py @@ -38,6 +38,9 @@ def make_instance(self, include_optional) -> CreateRagDeploymentRequest: name = 'ar1c2v7s6djuy1zmetozkhdomha1b0', cluster_id = 56, hardware_instance_id = 56, + user_annotations = { + 'key' : '' + }, recipe = { }, cserve_version = '', hf_token = '', diff --git a/test/test_deployment_response.py b/test/test_deployment_response.py index 70ac810..d91a5c5 100644 --- a/test/test_deployment_response.py +++ b/test/test_deployment_response.py @@ -46,6 +46,9 @@ def make_instance(self, include_optional) -> DeploymentResponse: created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), hardware_instance_id = 56, revision_number = 56, + user_annotations = { + 'key' : '' + }, recipe = { }, cserve_version = '', min_replicas = 56, diff --git a/test/test_get_c_serve_v2_deployment_response.py b/test/test_get_c_serve_v2_deployment_response.py index db65b95..9725cc5 100644 --- a/test/test_get_c_serve_v2_deployment_response.py +++ b/test/test_get_c_serve_v2_deployment_response.py @@ -46,6 +46,9 @@ def make_instance(self, include_optional) -> GetCServeV2DeploymentResponse: created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), hardware_instance_id = 56, revision_number = 56, + user_annotations = { + 'key' : '' + }, recipe = { }, cserve_version = '', min_scale = 56, diff --git a/test/test_get_c_serve_v3_deployment_response.py b/test/test_get_c_serve_v3_deployment_response.py index 80e2d76..b04ed75 100644 --- a/test/test_get_c_serve_v3_deployment_response.py +++ b/test/test_get_c_serve_v3_deployment_response.py @@ -46,6 +46,9 @@ def make_instance(self, include_optional) -> GetCServeV3DeploymentResponse: created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), hardware_instance_id = 56, revision_number = 56, + user_annotations = { + 'key' : '' + }, recipe = { }, cserve_version = '', min_replicas = 56, diff --git a/test/test_get_compute_deployment_response.py b/test/test_get_compute_deployment_response.py index fb66f83..67026d5 100644 --- a/test/test_get_compute_deployment_response.py +++ b/test/test_get_compute_deployment_response.py @@ -46,6 +46,9 @@ def make_instance(self, include_optional) -> GetComputeDeploymentResponse: created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), hardware_instance_id = 56, revision_number = 56, + user_annotations = { + 'key' : '' + }, exposed_port = 56, ssh_public_key = '', ssh_password = '', diff --git a/test/test_get_deployment_response.py b/test/test_get_deployment_response.py index b2a31b9..001b87c 100644 --- a/test/test_get_deployment_response.py +++ b/test/test_get_deployment_response.py @@ -45,7 +45,10 @@ def make_instance(self, include_optional) -> GetDeploymentResponse: status = 'active', created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), hardware_instance_id = 56, - revision_number = 56 + revision_number = 56, + user_annotations = { + 'key' : '' + } ) else: return GetDeploymentResponse( diff --git a/test/test_get_inference_deployment_response.py b/test/test_get_inference_deployment_response.py index 9866ea1..04c848c 100644 --- a/test/test_get_inference_deployment_response.py +++ b/test/test_get_inference_deployment_response.py @@ -46,6 +46,9 @@ def make_instance(self, include_optional) -> GetInferenceDeploymentResponse: created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), hardware_instance_id = 56, revision_number = 56, + user_annotations = { + 'key' : '' + }, container_port = 56, min_scale = 56, max_scale = 56, diff --git a/test/test_get_inference_v3_deployment_response.py b/test/test_get_inference_v3_deployment_response.py index d23e5c6..1f7c45b 100644 --- a/test/test_get_inference_v3_deployment_response.py +++ b/test/test_get_inference_v3_deployment_response.py @@ -46,6 +46,9 @@ def make_instance(self, include_optional) -> GetInferenceV3DeploymentResponse: created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), hardware_instance_id = 56, revision_number = 56, + user_annotations = { + 'key' : '' + }, container_port = 56, min_replicas = 56, max_replicas = 56, diff --git a/test/test_get_rag_deployment_response.py b/test/test_get_rag_deployment_response.py index 774f3af..7dee5e3 100644 --- a/test/test_get_rag_deployment_response.py +++ b/test/test_get_rag_deployment_response.py @@ -46,6 +46,9 @@ def make_instance(self, include_optional) -> GetRagDeploymentResponse: created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), hardware_instance_id = 56, revision_number = 56, + user_annotations = { + 'key' : '' + }, recipe = { }, cserve_version = '', llm_model = '', diff --git a/test/test_list_get_deployment_response.py b/test/test_list_get_deployment_response.py index 7afde5a..00e4872 100644 --- a/test/test_list_get_deployment_response.py +++ b/test/test_list_get_deployment_response.py @@ -47,7 +47,10 @@ def make_instance(self, include_optional) -> ListGetDeploymentResponse: status = 'active', created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), hardware_instance_id = 56, - revision_number = 56, ) + revision_number = 56, + user_annotations = { + 'key' : '' + }, ) ] ) else: @@ -64,7 +67,10 @@ def make_instance(self, include_optional) -> ListGetDeploymentResponse: status = 'active', created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), hardware_instance_id = 56, - revision_number = 56, ) + revision_number = 56, + user_annotations = { + 'key' : '' + }, ) ], ) """