diff --git a/README.md b/README.md index 664f47c..ea6aba5 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.15.0 +- Package version: 4.16.0 - Generator version: 7.9.0 - Build package: org.openapitools.codegen.languages.PythonClientCodegen diff --git a/docs/CreateCServeV3DeploymentRequest.md b/docs/CreateCServeV3DeploymentRequest.md index 6949314..ef9681a 100644 --- a/docs/CreateCServeV3DeploymentRequest.md +++ b/docs/CreateCServeV3DeploymentRequest.md @@ -11,6 +11,7 @@ Name | Type | Description | Notes **cluster_id** | **int** | | **hardware_instance_id** | **int** | | **user_annotations** | **Dict[str, str]** | | [optional] +**chart_revision** | **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 72672d4..7989fa9 100644 --- a/docs/CreateComputeDeploymentRequest.md +++ b/docs/CreateComputeDeploymentRequest.md @@ -9,8 +9,9 @@ Name | Type | Description | Notes **cluster_id** | **int** | | **hardware_instance_id** | **int** | | **user_annotations** | **Dict[str, str]** | | [optional] +**chart_revision** | **str** | | [optional] **image_url** | **str** | | -**enable_jupyter** | **bool** | | [optional] [default to False] +**image_pull_secret_credentials** | [**ImagePullSecretCredentials**](ImagePullSecretCredentials.md) | | [optional] **ssh_public_key** | **str** | | **enable_logging** | **bool** | | [optional] [default to False] diff --git a/docs/CreateComputeDeploymentResponse.md b/docs/CreateComputeDeploymentResponse.md index 0572938..298b492 100644 --- a/docs/CreateComputeDeploymentResponse.md +++ b/docs/CreateComputeDeploymentResponse.md @@ -9,7 +9,6 @@ Name | Type | Description | Notes **created_at** | **datetime** | | **endpoint_url** | **str** | | **port** | **int** | | -**jupyter_token** | **str** | | [optional] ## Example diff --git a/docs/CreateInferenceV3DeploymentRequest.md b/docs/CreateInferenceV3DeploymentRequest.md index 14aeebe..8abc3d5 100644 --- a/docs/CreateInferenceV3DeploymentRequest.md +++ b/docs/CreateInferenceV3DeploymentRequest.md @@ -11,6 +11,7 @@ Name | Type | Description | Notes **cluster_id** | **int** | | **hardware_instance_id** | **int** | | **user_annotations** | **Dict[str, str]** | | [optional] +**chart_revision** | **str** | | [optional] **image_url** | **str** | | **image_pull_secret_credentials** | [**ImagePullSecretCredentials**](ImagePullSecretCredentials.md) | | [optional] **port** | **int** | | diff --git a/docs/CreateJobDeploymentRequest.md b/docs/CreateJobDeploymentRequest.md index a5ee7b0..4c02734 100644 --- a/docs/CreateJobDeploymentRequest.md +++ b/docs/CreateJobDeploymentRequest.md @@ -9,6 +9,7 @@ Name | Type | Description | Notes **cluster_id** | **int** | | **hardware_instance_id** | **int** | | **user_annotations** | **Dict[str, str]** | | [optional] +**chart_revision** | **str** | | [optional] **image_url** | **str** | | **image_pull_secret_credentials** | [**ImagePullSecretCredentials**](ImagePullSecretCredentials.md) | | [optional] **env_vars** | **Dict[str, str]** | | [optional] diff --git a/docs/GetComputeDeploymentResponse.md b/docs/GetComputeDeploymentResponse.md index 69ec89d..b809bb8 100644 --- a/docs/GetComputeDeploymentResponse.md +++ b/docs/GetComputeDeploymentResponse.md @@ -21,6 +21,7 @@ Name | Type | Description | Notes **ssh_public_key** | **str** | | [optional] **ssh_password** | **str** | | [optional] **env_vars** | **Dict[str, str]** | | [optional] +**image_pull_secret_credentials** | [**ImagePullSecretCredentials**](ImagePullSecretCredentials.md) | | [optional] **enable_logging** | **bool** | | [optional] [default to True] ## Example diff --git a/platform_api_python_client/__init__.py b/platform_api_python_client/__init__.py index ed7206d..dab1569 100644 --- a/platform_api_python_client/__init__.py +++ b/platform_api_python_client/__init__.py @@ -14,7 +14,7 @@ """ # noqa: E501 -__version__ = "4.15.0" +__version__ = "4.16.0" # 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 669f4fb..63ddf90 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.15.0/python' + self.user_agent = 'OpenAPI-Generator/4.16.0/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 42af7e3..49a87af 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.15.0".\ + "SDK Package Version: 4.16.0".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self): 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 28e389b..e4556e9 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 @@ -34,6 +34,7 @@ class CreateCServeV3DeploymentRequest(BaseModel): cluster_id: StrictInt hardware_instance_id: StrictInt user_annotations: Optional[Dict[str, StrictStr]] = None + chart_revision: Optional[StrictStr] = None recipe: CServeV2Recipe cserve_version: Optional[StrictStr] = None hf_token: Optional[StrictStr] = None @@ -48,7 +49,7 @@ class CreateCServeV3DeploymentRequest(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]] = ["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", "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", "initial_replicas", "concurrency", "cooldown_period", "env_vars", "enable_logging", "enable_node_model_cache", "session_affinity"] @field_validator('name') def name_validate_regular_expression(cls, value): @@ -167,6 +168,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "cluster_id": obj.get("cluster_id"), "hardware_instance_id": obj.get("hardware_instance_id"), "user_annotations": obj.get("user_annotations"), + "chart_revision": obj.get("chart_revision"), "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 c641270..8027a74 100644 --- a/platform_api_python_client/models/create_compute_deployment_request.py +++ b/platform_api_python_client/models/create_compute_deployment_request.py @@ -20,6 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional from typing_extensions import Annotated +from platform_api_python_client.models.image_pull_secret_credentials import ImagePullSecretCredentials from typing import Optional, Set from typing_extensions import Self @@ -31,11 +32,12 @@ class CreateComputeDeploymentRequest(BaseModel): cluster_id: StrictInt hardware_instance_id: StrictInt user_annotations: Optional[Dict[str, StrictStr]] = None + chart_revision: Optional[StrictStr] = None image_url: StrictStr - enable_jupyter: Optional[StrictBool] = False + image_pull_secret_credentials: Optional[ImagePullSecretCredentials] = None ssh_public_key: StrictStr enable_logging: Optional[StrictBool] = False - __properties: ClassVar[List[str]] = ["name", "cluster_id", "hardware_instance_id", "user_annotations", "image_url", "enable_jupyter", "ssh_public_key", "enable_logging"] + __properties: ClassVar[List[str]] = ["name", "cluster_id", "hardware_instance_id", "user_annotations", "chart_revision", "image_url", "image_pull_secret_credentials", "ssh_public_key", "enable_logging"] @field_validator('name') def name_validate_regular_expression(cls, value): @@ -83,11 +85,19 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # override the default output from pydantic by calling `to_dict()` of image_pull_secret_credentials + if self.image_pull_secret_credentials: + _dict['image_pull_secret_credentials'] = self.image_pull_secret_credentials.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 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: + _dict['image_pull_secret_credentials'] = None + return _dict @classmethod @@ -104,8 +114,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "cluster_id": obj.get("cluster_id"), "hardware_instance_id": obj.get("hardware_instance_id"), "user_annotations": obj.get("user_annotations"), + "chart_revision": obj.get("chart_revision"), "image_url": obj.get("image_url"), - "enable_jupyter": obj.get("enable_jupyter") if obj.get("enable_jupyter") is not None else False, + "image_pull_secret_credentials": ImagePullSecretCredentials.from_dict(obj["image_pull_secret_credentials"]) if obj.get("image_pull_secret_credentials") is not None else None, "ssh_public_key": obj.get("ssh_public_key"), "enable_logging": obj.get("enable_logging") if obj.get("enable_logging") is not None else False }) diff --git a/platform_api_python_client/models/create_compute_deployment_response.py b/platform_api_python_client/models/create_compute_deployment_response.py index 7a8c00d..2174943 100644 --- a/platform_api_python_client/models/create_compute_deployment_response.py +++ b/platform_api_python_client/models/create_compute_deployment_response.py @@ -19,7 +19,7 @@ from datetime import datetime from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List, Optional +from typing import Any, ClassVar, Dict, List from typing import Optional, Set from typing_extensions import Self @@ -31,8 +31,7 @@ class CreateComputeDeploymentResponse(BaseModel): created_at: datetime endpoint_url: StrictStr port: StrictInt - jupyter_token: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["id", "created_at", "endpoint_url", "port", "jupyter_token"] + __properties: ClassVar[List[str]] = ["id", "created_at", "endpoint_url", "port"] model_config = ConfigDict( populate_by_name=True, @@ -73,11 +72,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # set to None if jupyter_token (nullable) is None - # and model_fields_set contains the field - if self.jupyter_token is None and "jupyter_token" in self.model_fields_set: - _dict['jupyter_token'] = None - return _dict @classmethod @@ -93,8 +87,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "id": obj.get("id"), "created_at": obj.get("created_at"), "endpoint_url": obj.get("endpoint_url"), - "port": obj.get("port"), - "jupyter_token": obj.get("jupyter_token") + "port": obj.get("port") }) return _obj 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 b66046d..91a7408 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 @@ -37,6 +37,7 @@ class CreateInferenceV3DeploymentRequest(BaseModel): cluster_id: StrictInt hardware_instance_id: StrictInt user_annotations: Optional[Dict[str, StrictStr]] = None + chart_revision: Optional[StrictStr] = None image_url: StrictStr image_pull_secret_credentials: Optional[ImagePullSecretCredentials] = None port: Annotated[int, Field(le=65535, strict=True, ge=1)] @@ -57,7 +58,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", "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", "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"] @field_validator('name') def name_validate_regular_expression(cls, value): @@ -207,6 +208,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "cluster_id": obj.get("cluster_id"), "hardware_instance_id": obj.get("hardware_instance_id"), "user_annotations": obj.get("user_annotations"), + "chart_revision": obj.get("chart_revision"), "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_job_deployment_request.py b/platform_api_python_client/models/create_job_deployment_request.py index 2bb7918..8bc3863 100644 --- a/platform_api_python_client/models/create_job_deployment_request.py +++ b/platform_api_python_client/models/create_job_deployment_request.py @@ -32,6 +32,7 @@ class CreateJobDeploymentRequest(BaseModel): cluster_id: StrictInt hardware_instance_id: StrictInt user_annotations: Optional[Dict[str, StrictStr]] = None + chart_revision: Optional[StrictStr] = None image_url: StrictStr image_pull_secret_credentials: Optional[ImagePullSecretCredentials] = None env_vars: Optional[Dict[str, StrictStr]] = None @@ -41,7 +42,7 @@ class CreateJobDeploymentRequest(BaseModel): backoff_limit: Optional[StrictInt] = 3 active_deadline_seconds: Optional[StrictInt] = None enable_logging: Optional[StrictBool] = True - __properties: ClassVar[List[str]] = ["name", "cluster_id", "hardware_instance_id", "user_annotations", "image_url", "image_pull_secret_credentials", "env_vars", "command", "completions", "parallelism", "backoff_limit", "active_deadline_seconds", "enable_logging"] + __properties: ClassVar[List[str]] = ["name", "cluster_id", "hardware_instance_id", "user_annotations", "chart_revision", "image_url", "image_pull_secret_credentials", "env_vars", "command", "completions", "parallelism", "backoff_limit", "active_deadline_seconds", "enable_logging"] @field_validator('name') def name_validate_regular_expression(cls, value): @@ -133,6 +134,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "cluster_id": obj.get("cluster_id"), "hardware_instance_id": obj.get("hardware_instance_id"), "user_annotations": obj.get("user_annotations"), + "chart_revision": obj.get("chart_revision"), "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, "env_vars": obj.get("env_vars"), 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 0375bda..734917a 100644 --- a/platform_api_python_client/models/get_compute_deployment_response.py +++ b/platform_api_python_client/models/get_compute_deployment_response.py @@ -22,6 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from platform_api_python_client.models.deployment_status import DeploymentStatus from platform_api_python_client.models.deployment_type import DeploymentType +from platform_api_python_client.models.image_pull_secret_credentials import ImagePullSecretCredentials from typing import Optional, Set from typing_extensions import Self @@ -45,8 +46,9 @@ class GetComputeDeploymentResponse(BaseModel): ssh_public_key: Optional[StrictStr] = None ssh_password: Optional[StrictStr] = None env_vars: Optional[Dict[str, StrictStr]] = None + image_pull_secret_credentials: Optional[ImagePullSecretCredentials] = 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", "user_annotations", "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", "image_pull_secret_credentials", "enable_logging"] model_config = ConfigDict( populate_by_name=True, @@ -87,6 +89,9 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # override the default output from pydantic by calling `to_dict()` of image_pull_secret_credentials + if self.image_pull_secret_credentials: + _dict['image_pull_secret_credentials'] = self.image_pull_secret_credentials.to_dict() # set to None if image_url (nullable) is None # and model_fields_set contains the field if self.image_url is None and "image_url" in self.model_fields_set: @@ -112,6 +117,11 @@ def to_dict(self) -> Dict[str, Any]: if self.env_vars is None and "env_vars" in self.model_fields_set: _dict['env_vars'] = 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: + _dict['image_pull_secret_credentials'] = None + return _dict @classmethod @@ -140,6 +150,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "ssh_public_key": obj.get("ssh_public_key"), "ssh_password": obj.get("ssh_password"), "env_vars": obj.get("env_vars"), + "image_pull_secret_credentials": ImagePullSecretCredentials.from_dict(obj["image_pull_secret_credentials"]) if obj.get("image_pull_secret_credentials") is not None else None, "enable_logging": obj.get("enable_logging") if obj.get("enable_logging") is not None else True }) return _obj diff --git a/pyproject.toml b/pyproject.toml index a7855c3..49566e0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "platform_api_python_client" -version = "4.15.0" +version = "4.16.0" description = "Platform External API" authors = ["OpenAPI Generator Community "] license = "NoLicense" diff --git a/setup.py b/setup.py index b606e1b..9136480 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.15.0" +VERSION = "4.16.0" PYTHON_REQUIRES = ">= 3.8" REQUIRES = [ "urllib3 >= 1.25.3, < 3.0.0", diff --git a/test/test_create_c_serve_v3_deployment_request.py b/test/test_create_c_serve_v3_deployment_request.py index 1feb39b..57ca158 100644 --- a/test/test_create_c_serve_v3_deployment_request.py +++ b/test/test_create_c_serve_v3_deployment_request.py @@ -43,6 +43,7 @@ def make_instance(self, include_optional) -> CreateCServeV3DeploymentRequest: user_annotations = { 'key' : '' }, + chart_revision = '', recipe = { }, cserve_version = '', hf_token = '', diff --git a/test/test_create_compute_deployment_request.py b/test/test_create_compute_deployment_request.py index 44f5686..cc72613 100644 --- a/test/test_create_compute_deployment_request.py +++ b/test/test_create_compute_deployment_request.py @@ -41,8 +41,11 @@ def make_instance(self, include_optional) -> CreateComputeDeploymentRequest: user_annotations = { 'key' : '' }, + chart_revision = '', image_url = '', - enable_jupyter = True, + image_pull_secret_credentials = platform_api_python_client.models.image_pull_secret_credentials.ImagePullSecretCredentials( + username = '', + password = '', ), ssh_public_key = '', enable_logging = True ) diff --git a/test/test_create_compute_deployment_response.py b/test/test_create_compute_deployment_response.py index dacab7a..093f2d2 100644 --- a/test/test_create_compute_deployment_response.py +++ b/test/test_create_compute_deployment_response.py @@ -38,8 +38,7 @@ def make_instance(self, include_optional) -> CreateComputeDeploymentResponse: id = 56, created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), endpoint_url = '', - port = 56, - jupyter_token = '' + port = 56 ) else: return CreateComputeDeploymentResponse( diff --git a/test/test_create_inference_v3_deployment_request.py b/test/test_create_inference_v3_deployment_request.py index 57f72f0..46438e5 100644 --- a/test/test_create_inference_v3_deployment_request.py +++ b/test/test_create_inference_v3_deployment_request.py @@ -43,6 +43,7 @@ def make_instance(self, include_optional) -> CreateInferenceV3DeploymentRequest: user_annotations = { 'key' : '' }, + chart_revision = '', image_url = '', image_pull_secret_credentials = platform_api_python_client.models.image_pull_secret_credentials.ImagePullSecretCredentials( username = '', diff --git a/test/test_create_job_deployment_request.py b/test/test_create_job_deployment_request.py index 08a155a..fec39d7 100644 --- a/test/test_create_job_deployment_request.py +++ b/test/test_create_job_deployment_request.py @@ -41,6 +41,7 @@ def make_instance(self, include_optional) -> CreateJobDeploymentRequest: user_annotations = { 'key' : '' }, + chart_revision = '', image_url = '', image_pull_secret_credentials = platform_api_python_client.models.image_pull_secret_credentials.ImagePullSecretCredentials( username = '', diff --git a/test/test_get_compute_deployment_response.py b/test/test_get_compute_deployment_response.py index 67026d5..8f8ef8f 100644 --- a/test/test_get_compute_deployment_response.py +++ b/test/test_get_compute_deployment_response.py @@ -55,6 +55,9 @@ def make_instance(self, include_optional) -> GetComputeDeploymentResponse: env_vars = { 'key' : '' }, + image_pull_secret_credentials = platform_api_python_client.models.image_pull_secret_credentials.ImagePullSecretCredentials( + username = '', + password = '', ), enable_logging = True ) else: