diff --git a/README.md b/README.md index 5f385f7..cb0befc 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.33.0 +- Package version: 4.34.0 - Generator version: 7.9.0 - Build package: org.openapitools.codegen.languages.PythonClientCodegen diff --git a/docs/CreateComputeDeploymentRequest.md b/docs/CreateComputeDeploymentRequest.md index cb5e5cb..72200de 100644 --- a/docs/CreateComputeDeploymentRequest.md +++ b/docs/CreateComputeDeploymentRequest.md @@ -15,6 +15,7 @@ Name | Type | Description | Notes **image_url** | **str** | | **image_pull_secret_credentials** | [**ImagePullSecretCredentials**](ImagePullSecretCredentials.md) | | [optional] **image_pull_ref** | **int** | | [optional] +**image_pull_secret_name** | **str** | Name of a pre-existing image pull Secret in the deployment namespace. Created, refreshed and deleted externally. Mutually exclusive with inline registry credentials and image_pull_ref. Include on updates to retain it; null clears it. | [optional] **env_vars_refs** | **object** | | [optional] **ssh_public_key** | **str** | | **enable_logging** | **bool** | | [optional] [default to False] diff --git a/docs/CreateInferenceV3DeploymentRequest.md b/docs/CreateInferenceV3DeploymentRequest.md index 0678df1..1451190 100644 --- a/docs/CreateInferenceV3DeploymentRequest.md +++ b/docs/CreateInferenceV3DeploymentRequest.md @@ -18,6 +18,7 @@ Name | Type | Description | Notes **image_url** | **str** | | **image_pull_secret_credentials** | [**ImagePullSecretCredentials**](ImagePullSecretCredentials.md) | | [optional] **image_pull_ref** | **int** | | [optional] +**image_pull_secret_name** | **str** | Name of a pre-existing image pull Secret in the deployment namespace. Created, refreshed and deleted externally. Mutually exclusive with inline registry credentials and image_pull_ref. Include on updates to retain it; null clears it. | [optional] **port** | **int** | | **min_replicas** | **int** | | **max_replicas** | **int** | | diff --git a/docs/CreateJobDeploymentRequest.md b/docs/CreateJobDeploymentRequest.md index 00a7cba..731c221 100644 --- a/docs/CreateJobDeploymentRequest.md +++ b/docs/CreateJobDeploymentRequest.md @@ -15,6 +15,7 @@ Name | Type | Description | Notes **image_url** | **str** | | **image_pull_secret_credentials** | [**ImagePullSecretCredentials**](ImagePullSecretCredentials.md) | | [optional] **image_pull_ref** | **int** | | [optional] +**image_pull_secret_name** | **str** | Name of a pre-existing image pull Secret in the deployment namespace. Created, refreshed and deleted externally. Mutually exclusive with inline registry credentials and image_pull_ref. Include on updates to retain it; null clears it. | [optional] **env_vars** | **Dict[str, str]** | | [optional] **env_vars_refs** | **object** | | [optional] **command** | **str** | | [optional] diff --git a/docs/DeploymentResponse.md b/docs/DeploymentResponse.md index 7284863..6c2fb45 100644 --- a/docs/DeploymentResponse.md +++ b/docs/DeploymentResponse.md @@ -50,6 +50,7 @@ Name | Type | Description | Notes **command_args** | **List[str]** | | [optional] **original_command** | **str** | | [optional] **image_pull_secret_credentials** | [**ImagePullSecretCredentials**](ImagePullSecretCredentials.md) | | [optional] +**image_pull_secret_name** | **str** | Name of a pre-existing image pull Secret in the deployment namespace. Created, refreshed and deleted externally. Mutually exclusive with inline registry credentials and image_pull_ref. Include on updates to retain it; null clears it. | [optional] **config_file** | [**ConfigFileMount**](ConfigFileMount.md) | | [optional] **metrics** | [**MetricsConfig**](MetricsConfig.md) | | [optional] **exposed_port** | **int** | | diff --git a/docs/GetComputeDeploymentResponse.md b/docs/GetComputeDeploymentResponse.md index 7e6bbac..0dcde57 100644 --- a/docs/GetComputeDeploymentResponse.md +++ b/docs/GetComputeDeploymentResponse.md @@ -27,6 +27,7 @@ Name | Type | Description | Notes **image_pull_secret_credentials** | [**ImagePullSecretCredentials**](ImagePullSecretCredentials.md) | | [optional] **env_vars_refs** | **object** | | [optional] **image_pull_ref** | **int** | | [optional] +**image_pull_secret_name** | **str** | Name of a pre-existing image pull Secret in the deployment namespace. Created, refreshed and deleted externally. Mutually exclusive with inline registry credentials and image_pull_ref. Include on updates to retain it; null clears it. | [optional] **enable_logging** | **bool** | | [optional] [default to True] ## Example diff --git a/docs/GetInferenceV3DeploymentResponse.md b/docs/GetInferenceV3DeploymentResponse.md index 98d9968..c1e66f2 100644 --- a/docs/GetInferenceV3DeploymentResponse.md +++ b/docs/GetInferenceV3DeploymentResponse.md @@ -37,6 +37,7 @@ Name | Type | Description | Notes **env_vars_refs** | **object** | | [optional] **bearer_token_ref** | **int** | | [optional] **image_pull_ref** | **int** | | [optional] +**image_pull_secret_name** | **str** | Name of a pre-existing image pull Secret in the deployment namespace. Created, refreshed and deleted externally. Mutually exclusive with inline registry credentials and image_pull_ref. Include on updates to retain it; null clears it. | [optional] **backend_protocol** | [**BackendProtocol**](BackendProtocol.md) | | [optional] **enable_logging** | **bool** | | [optional] [default to True] **enable_node_model_cache** | **bool** | | [optional] [default to False] diff --git a/docs/GetJobDeploymentResponse.md b/docs/GetJobDeploymentResponse.md index c413a12..608be61 100644 --- a/docs/GetJobDeploymentResponse.md +++ b/docs/GetJobDeploymentResponse.md @@ -31,6 +31,7 @@ Name | Type | Description | Notes **image_pull_secret_credentials** | [**ImagePullSecretCredentials**](ImagePullSecretCredentials.md) | | [optional] **env_vars_refs** | **object** | | [optional] **image_pull_ref** | **int** | | [optional] +**image_pull_secret_name** | **str** | Name of a pre-existing image pull Secret in the deployment namespace. Created, refreshed and deleted externally. Mutually exclusive with inline registry credentials and image_pull_ref. Include on updates to retain it; null clears it. | [optional] **enable_logging** | **bool** | | [optional] [default to True] **config_file** | [**ConfigFileMount**](ConfigFileMount.md) | | [optional] diff --git a/docs/UnifiedWriteComputeDeploymentRequest.md b/docs/UnifiedWriteComputeDeploymentRequest.md index c971894..a73b06b 100644 --- a/docs/UnifiedWriteComputeDeploymentRequest.md +++ b/docs/UnifiedWriteComputeDeploymentRequest.md @@ -15,6 +15,7 @@ Name | Type | Description | Notes **image_url** | **str** | | **image_pull_secret_credentials** | [**ImagePullSecretCredentials**](ImagePullSecretCredentials.md) | | [optional] **image_pull_ref** | **int** | | [optional] +**image_pull_secret_name** | **str** | Name of a pre-existing image pull Secret in the deployment namespace. Created, refreshed and deleted externally. Mutually exclusive with inline registry credentials and image_pull_ref. Include on updates to retain it; null clears it. | [optional] **env_vars_refs** | **object** | | [optional] **ssh_public_key** | **str** | | **enable_logging** | **bool** | | [optional] [default to False] diff --git a/docs/UnifiedWriteDeploymentRequest.md b/docs/UnifiedWriteDeploymentRequest.md index ff842fa..6ad9b7e 100644 --- a/docs/UnifiedWriteDeploymentRequest.md +++ b/docs/UnifiedWriteDeploymentRequest.md @@ -15,6 +15,7 @@ Name | Type | Description | Notes **image_url** | **str** | | **image_pull_secret_credentials** | [**ImagePullSecretCredentials**](ImagePullSecretCredentials.md) | | [optional] **image_pull_ref** | **int** | | [optional] +**image_pull_secret_name** | **str** | Name of a pre-existing image pull Secret in the deployment namespace. Created, refreshed and deleted externally. Mutually exclusive with inline registry credentials and image_pull_ref. Include on updates to retain it; null clears it. | [optional] **env_vars_refs** | **object** | | [optional] **ssh_public_key** | **str** | | **enable_logging** | **bool** | | [optional] [default to True] diff --git a/docs/UnifiedWriteInferenceV3DeploymentRequest.md b/docs/UnifiedWriteInferenceV3DeploymentRequest.md index 1720abc..f5128b0 100644 --- a/docs/UnifiedWriteInferenceV3DeploymentRequest.md +++ b/docs/UnifiedWriteInferenceV3DeploymentRequest.md @@ -18,6 +18,7 @@ Name | Type | Description | Notes **image_url** | **str** | | **image_pull_secret_credentials** | [**ImagePullSecretCredentials**](ImagePullSecretCredentials.md) | | [optional] **image_pull_ref** | **int** | | [optional] +**image_pull_secret_name** | **str** | Name of a pre-existing image pull Secret in the deployment namespace. Created, refreshed and deleted externally. Mutually exclusive with inline registry credentials and image_pull_ref. Include on updates to retain it; null clears it. | [optional] **port** | **int** | | **min_replicas** | **int** | | **max_replicas** | **int** | | diff --git a/docs/UnifiedWriteJobDeploymentRequest.md b/docs/UnifiedWriteJobDeploymentRequest.md index 40016e2..f3493ec 100644 --- a/docs/UnifiedWriteJobDeploymentRequest.md +++ b/docs/UnifiedWriteJobDeploymentRequest.md @@ -15,6 +15,7 @@ Name | Type | Description | Notes **image_url** | **str** | | **image_pull_secret_credentials** | [**ImagePullSecretCredentials**](ImagePullSecretCredentials.md) | | [optional] **image_pull_ref** | **int** | | [optional] +**image_pull_secret_name** | **str** | Name of a pre-existing image pull Secret in the deployment namespace. Created, refreshed and deleted externally. Mutually exclusive with inline registry credentials and image_pull_ref. Include on updates to retain it; null clears it. | [optional] **env_vars** | **Dict[str, str]** | | [optional] **env_vars_refs** | **object** | | [optional] **command** | **str** | | [optional] diff --git a/platform_api_python_client/__init__.py b/platform_api_python_client/__init__.py index 9f49179..28e462b 100644 --- a/platform_api_python_client/__init__.py +++ b/platform_api_python_client/__init__.py @@ -14,7 +14,7 @@ """ # noqa: E501 -__version__ = "4.33.0" +__version__ = "4.34.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 b57f998..90f5cdc 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.33.0/python' + self.user_agent = 'OpenAPI-Generator/4.34.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 f8105e3..4658b59 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.33.0".\ + "SDK Package Version: 4.34.0".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self): 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 c7890a5..91cc9e2 100644 --- a/platform_api_python_client/models/create_compute_deployment_request.py +++ b/platform_api_python_client/models/create_compute_deployment_request.py @@ -39,10 +39,11 @@ class CreateComputeDeploymentRequest(BaseModel): image_url: StrictStr image_pull_secret_credentials: Optional[ImagePullSecretCredentials] = None image_pull_ref: Optional[Annotated[int, Field(strict=True, ge=1)]] = None + image_pull_secret_name: Optional[Annotated[str, Field(min_length=1, strict=True, max_length=253)]] = Field(default=None, description="Name of a pre-existing image pull Secret in the deployment namespace. Created, refreshed and deleted externally. Mutually exclusive with inline registry credentials and image_pull_ref. Include on updates to retain it; null clears it.") env_vars_refs: Optional[Dict[str, Any]] = None ssh_public_key: StrictStr enable_logging: Optional[StrictBool] = False - __properties: ClassVar[List[str]] = ["name", "cluster_id", "hardware_instance_id", "user_annotations", "chart_revision", "volume_mounts", "priority", "image_url", "image_pull_secret_credentials", "image_pull_ref", "env_vars_refs", "ssh_public_key", "enable_logging"] + __properties: ClassVar[List[str]] = ["name", "cluster_id", "hardware_instance_id", "user_annotations", "chart_revision", "volume_mounts", "priority", "image_url", "image_pull_secret_credentials", "image_pull_ref", "image_pull_secret_name", "env_vars_refs", "ssh_public_key", "enable_logging"] @field_validator('name') def name_validate_regular_expression(cls, value): @@ -51,6 +52,16 @@ def name_validate_regular_expression(cls, value): raise ValueError(r"must validate the regular expression /^[a-z][a-z0-9-]*$/") return value + @field_validator('image_pull_secret_name') + def image_pull_secret_name_validate_regular_expression(cls, value): + """Validates the regular expression""" + if value is None: + return value + + if not re.match(r"^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$", value): + raise ValueError(r"must validate the regular expression /^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$/") + return value + model_config = ConfigDict( populate_by_name=True, validate_assignment=True, @@ -120,6 +131,11 @@ def to_dict(self) -> Dict[str, Any]: if self.image_pull_ref is None and "image_pull_ref" in self.model_fields_set: _dict['image_pull_ref'] = None + # set to None if image_pull_secret_name (nullable) is None + # and model_fields_set contains the field + if self.image_pull_secret_name is None and "image_pull_secret_name" in self.model_fields_set: + _dict['image_pull_secret_name'] = None + return _dict @classmethod @@ -142,6 +158,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "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, "image_pull_ref": obj.get("image_pull_ref"), + "image_pull_secret_name": obj.get("image_pull_secret_name"), "env_vars_refs": obj.get("env_vars_refs"), "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_inference_v3_deployment_request.py b/platform_api_python_client/models/create_inference_v3_deployment_request.py index 9ec174b..b8b08a5 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 @@ -45,6 +45,7 @@ class CreateInferenceV3DeploymentRequest(BaseModel): image_url: StrictStr image_pull_secret_credentials: Optional[ImagePullSecretCredentials] = None image_pull_ref: Optional[Annotated[int, Field(strict=True, ge=1)]] = None + image_pull_secret_name: Optional[Annotated[str, Field(min_length=1, strict=True, max_length=253)]] = Field(default=None, description="Name of a pre-existing image pull Secret in the deployment namespace. Created, refreshed and deleted externally. Mutually exclusive with inline registry credentials and image_pull_ref. Include on updates to retain it; null clears it.") port: Annotated[int, Field(le=65535, strict=True, ge=1)] min_replicas: StrictInt max_replicas: StrictInt @@ -64,7 +65,7 @@ class CreateInferenceV3DeploymentRequest(BaseModel): session_affinity: Optional[StrictBool] = Field(default=False, description="Enable best-effort sticky routing via the `X-Session-Id` request header. Requests carrying the same header value land on the same pod, improving KV cache reuse for agentic workloads. Requests without the header are routed at random. Affinity is NOT durable: scaling, rollouts, restarts, or readiness-probe transitions will remap sessions to different pods. Do not use for irreplaceable in-pod state.") config_file: Optional[ConfigFileMount] = None metrics: Optional[MetricsConfig] = None - __properties: ClassVar[List[str]] = ["max_surge", "max_unavailable", "name", "cluster_id", "hardware_instance_id", "user_annotations", "chart_revision", "volume_mounts", "priority", "hf_token_ref", "image_url", "image_pull_secret_credentials", "image_pull_ref", "port", "min_replicas", "max_replicas", "concurrency", "cooldown_period", "healthcheck", "env_vars", "command", "endpoint_bearer_token", "bearer_token_ref", "endpoint_certificate_authority", "hf_token", "env_vars_refs", "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", "volume_mounts", "priority", "hf_token_ref", "image_url", "image_pull_secret_credentials", "image_pull_ref", "image_pull_secret_name", "port", "min_replicas", "max_replicas", "concurrency", "cooldown_period", "healthcheck", "env_vars", "command", "endpoint_bearer_token", "bearer_token_ref", "endpoint_certificate_authority", "hf_token", "env_vars_refs", "backend_protocol", "enable_logging", "enable_node_model_cache", "session_affinity", "config_file", "metrics"] @field_validator('name') def name_validate_regular_expression(cls, value): @@ -73,6 +74,16 @@ def name_validate_regular_expression(cls, value): raise ValueError(r"must validate the regular expression /^[a-z][a-z0-9-]*$/") return value + @field_validator('image_pull_secret_name') + def image_pull_secret_name_validate_regular_expression(cls, value): + """Validates the regular expression""" + if value is None: + return value + + if not re.match(r"^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$", value): + raise ValueError(r"must validate the regular expression /^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$/") + return value + model_config = ConfigDict( populate_by_name=True, validate_assignment=True, @@ -163,6 +174,11 @@ def to_dict(self) -> Dict[str, Any]: if self.image_pull_ref is None and "image_pull_ref" in self.model_fields_set: _dict['image_pull_ref'] = None + # set to None if image_pull_secret_name (nullable) is None + # and model_fields_set contains the field + if self.image_pull_secret_name is None and "image_pull_secret_name" in self.model_fields_set: + _dict['image_pull_secret_name'] = None + # set to None if concurrency (nullable) is None # and model_fields_set contains the field if self.concurrency is None and "concurrency" in self.model_fields_set: @@ -243,6 +259,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "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, "image_pull_ref": obj.get("image_pull_ref"), + "image_pull_secret_name": obj.get("image_pull_secret_name"), "port": obj.get("port"), "min_replicas": obj.get("min_replicas"), "max_replicas": obj.get("max_replicas"), 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 5217413..8d16f50 100644 --- a/platform_api_python_client/models/create_job_deployment_request.py +++ b/platform_api_python_client/models/create_job_deployment_request.py @@ -40,6 +40,7 @@ class CreateJobDeploymentRequest(BaseModel): image_url: StrictStr image_pull_secret_credentials: Optional[ImagePullSecretCredentials] = None image_pull_ref: Optional[Annotated[int, Field(strict=True, ge=1)]] = None + image_pull_secret_name: Optional[Annotated[str, Field(min_length=1, strict=True, max_length=253)]] = Field(default=None, description="Name of a pre-existing image pull Secret in the deployment namespace. Created, refreshed and deleted externally. Mutually exclusive with inline registry credentials and image_pull_ref. Include on updates to retain it; null clears it.") env_vars: Optional[Dict[str, StrictStr]] = None env_vars_refs: Optional[Dict[str, Any]] = None command: Optional[StrictStr] = None @@ -49,7 +50,7 @@ class CreateJobDeploymentRequest(BaseModel): active_deadline_seconds: Optional[StrictInt] = None enable_logging: Optional[StrictBool] = True config_file: Optional[ConfigFileMount] = None - __properties: ClassVar[List[str]] = ["name", "cluster_id", "hardware_instance_id", "user_annotations", "chart_revision", "volume_mounts", "priority", "image_url", "image_pull_secret_credentials", "image_pull_ref", "env_vars", "env_vars_refs", "command", "completions", "parallelism", "backoff_limit", "active_deadline_seconds", "enable_logging", "config_file"] + __properties: ClassVar[List[str]] = ["name", "cluster_id", "hardware_instance_id", "user_annotations", "chart_revision", "volume_mounts", "priority", "image_url", "image_pull_secret_credentials", "image_pull_ref", "image_pull_secret_name", "env_vars", "env_vars_refs", "command", "completions", "parallelism", "backoff_limit", "active_deadline_seconds", "enable_logging", "config_file"] @field_validator('name') def name_validate_regular_expression(cls, value): @@ -58,6 +59,16 @@ def name_validate_regular_expression(cls, value): raise ValueError(r"must validate the regular expression /^[a-z][a-z0-9-]*$/") return value + @field_validator('image_pull_secret_name') + def image_pull_secret_name_validate_regular_expression(cls, value): + """Validates the regular expression""" + if value is None: + return value + + if not re.match(r"^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$", value): + raise ValueError(r"must validate the regular expression /^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$/") + return value + model_config = ConfigDict( populate_by_name=True, validate_assignment=True, @@ -130,6 +141,11 @@ def to_dict(self) -> Dict[str, Any]: if self.image_pull_ref is None and "image_pull_ref" in self.model_fields_set: _dict['image_pull_ref'] = None + # set to None if image_pull_secret_name (nullable) is None + # and model_fields_set contains the field + if self.image_pull_secret_name is None and "image_pull_secret_name" in self.model_fields_set: + _dict['image_pull_secret_name'] = None + # set to None if env_vars (nullable) is None # and model_fields_set contains the field if self.env_vars is None and "env_vars" in self.model_fields_set: @@ -172,6 +188,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "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, "image_pull_ref": obj.get("image_pull_ref"), + "image_pull_secret_name": obj.get("image_pull_secret_name"), "env_vars": obj.get("env_vars"), "env_vars_refs": obj.get("env_vars_refs"), "command": obj.get("command"), 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 17b7db9..60998b6 100644 --- a/platform_api_python_client/models/get_compute_deployment_response.py +++ b/platform_api_python_client/models/get_compute_deployment_response.py @@ -18,7 +18,7 @@ import json from datetime import datetime -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr +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.deployment_status import DeploymentStatus @@ -54,8 +54,19 @@ class GetComputeDeploymentResponse(BaseModel): image_pull_secret_credentials: Optional[ImagePullSecretCredentials] = None env_vars_refs: Optional[Dict[str, Any]] = None image_pull_ref: Optional[Annotated[int, Field(strict=True, ge=1)]] = None + image_pull_secret_name: Optional[Annotated[str, Field(min_length=1, strict=True, max_length=253)]] = Field(default=None, description="Name of a pre-existing image pull Secret in the deployment namespace. Created, refreshed and deleted externally. Mutually exclusive with inline registry credentials and image_pull_ref. Include on updates to retain it; null clears it.") 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", "chart_revision", "user_annotations", "priority", "volume_mounts", "exposed_port", "ssh_public_key", "ssh_password", "env_vars", "image_pull_secret_credentials", "env_vars_refs", "image_pull_ref", "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", "chart_revision", "user_annotations", "priority", "volume_mounts", "exposed_port", "ssh_public_key", "ssh_password", "env_vars", "image_pull_secret_credentials", "env_vars_refs", "image_pull_ref", "image_pull_secret_name", "enable_logging"] + + @field_validator('image_pull_secret_name') + def image_pull_secret_name_validate_regular_expression(cls, value): + """Validates the regular expression""" + if value is None: + return value + + if not re.match(r"^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$", value): + raise ValueError(r"must validate the regular expression /^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$/") + return value model_config = ConfigDict( populate_by_name=True, @@ -151,6 +162,11 @@ def to_dict(self) -> Dict[str, Any]: if self.image_pull_ref is None and "image_pull_ref" in self.model_fields_set: _dict['image_pull_ref'] = None + # set to None if image_pull_secret_name (nullable) is None + # and model_fields_set contains the field + if self.image_pull_secret_name is None and "image_pull_secret_name" in self.model_fields_set: + _dict['image_pull_secret_name'] = None + return _dict @classmethod @@ -185,6 +201,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "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_refs": obj.get("env_vars_refs"), "image_pull_ref": obj.get("image_pull_ref"), + "image_pull_secret_name": obj.get("image_pull_secret_name"), "enable_logging": obj.get("enable_logging") if obj.get("enable_logging") is not None else True }) return _obj 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 d65394d..5aa9de9 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 @@ -18,7 +18,7 @@ import json from datetime import datetime -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr +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.backend_protocol import BackendProtocol @@ -67,13 +67,24 @@ class GetInferenceV3DeploymentResponse(BaseModel): env_vars_refs: Optional[Dict[str, Any]] = None bearer_token_ref: Optional[Annotated[int, Field(strict=True, ge=1)]] = None image_pull_ref: Optional[Annotated[int, Field(strict=True, ge=1)]] = None + image_pull_secret_name: Optional[Annotated[str, Field(min_length=1, strict=True, max_length=253)]] = Field(default=None, description="Name of a pre-existing image pull Secret in the deployment namespace. Created, refreshed and deleted externally. Mutually exclusive with inline registry credentials and image_pull_ref. Include on updates to retain it; null clears it.") backend_protocol: Optional[BackendProtocol] = None enable_logging: Optional[StrictBool] = True enable_node_model_cache: Optional[StrictBool] = False session_affinity: Optional[StrictBool] = Field(default=False, description="Enable best-effort sticky routing via the `X-Session-Id` request header. Requests carrying the same header value land on the same pod, improving KV cache reuse for agentic workloads. Requests without the header are routed at random. Affinity is NOT durable: scaling, rollouts, restarts, or readiness-probe transitions will remap sessions to different pods. Do not use for irreplaceable in-pod state.") config_file: Optional[ConfigFileMount] = None metrics: Optional[MetricsConfig] = None - __properties: ClassVar[List[str]] = ["creator_email", "cluster_id", "id", "name", "endpoint_url", "image_url", "type", "status", "created_at", "hardware_instance_id", "revision_number", "chart_revision", "user_annotations", "priority", "volume_mounts", "hf_token_ref", "container_port", "min_replicas", "max_replicas", "concurrency", "cooldown_period", "healthcheck", "endpoint_certificate_authority", "endpoint_bearer_token", "env_vars", "command", "command_args", "original_command", "image_pull_secret_credentials", "env_vars_refs", "bearer_token_ref", "image_pull_ref", "backend_protocol", "enable_logging", "enable_node_model_cache", "session_affinity", "config_file", "metrics"] + __properties: ClassVar[List[str]] = ["creator_email", "cluster_id", "id", "name", "endpoint_url", "image_url", "type", "status", "created_at", "hardware_instance_id", "revision_number", "chart_revision", "user_annotations", "priority", "volume_mounts", "hf_token_ref", "container_port", "min_replicas", "max_replicas", "concurrency", "cooldown_period", "healthcheck", "endpoint_certificate_authority", "endpoint_bearer_token", "env_vars", "command", "command_args", "original_command", "image_pull_secret_credentials", "env_vars_refs", "bearer_token_ref", "image_pull_ref", "image_pull_secret_name", "backend_protocol", "enable_logging", "enable_node_model_cache", "session_affinity", "config_file", "metrics"] + + @field_validator('image_pull_secret_name') + def image_pull_secret_name_validate_regular_expression(cls, value): + """Validates the regular expression""" + if value is None: + return value + + if not re.match(r"^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$", value): + raise ValueError(r"must validate the regular expression /^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$/") + return value model_config = ConfigDict( populate_by_name=True, @@ -210,6 +221,11 @@ def to_dict(self) -> Dict[str, Any]: if self.image_pull_ref is None and "image_pull_ref" in self.model_fields_set: _dict['image_pull_ref'] = None + # set to None if image_pull_secret_name (nullable) is None + # and model_fields_set contains the field + if self.image_pull_secret_name is None and "image_pull_secret_name" in self.model_fields_set: + _dict['image_pull_secret_name'] = None + # set to None if config_file (nullable) is None # and model_fields_set contains the field if self.config_file is None and "config_file" in self.model_fields_set: @@ -264,6 +280,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "env_vars_refs": obj.get("env_vars_refs"), "bearer_token_ref": obj.get("bearer_token_ref"), "image_pull_ref": obj.get("image_pull_ref"), + "image_pull_secret_name": obj.get("image_pull_secret_name"), "backend_protocol": obj.get("backend_protocol"), "enable_logging": obj.get("enable_logging") if obj.get("enable_logging") is not None else True, "enable_node_model_cache": obj.get("enable_node_model_cache") if obj.get("enable_node_model_cache") is not None else False, diff --git a/platform_api_python_client/models/get_job_deployment_response.py b/platform_api_python_client/models/get_job_deployment_response.py index ac191a7..2b83ca8 100644 --- a/platform_api_python_client/models/get_job_deployment_response.py +++ b/platform_api_python_client/models/get_job_deployment_response.py @@ -18,7 +18,7 @@ import json from datetime import datetime -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr +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.config_file_mount import ConfigFileMount @@ -59,9 +59,20 @@ class GetJobDeploymentResponse(BaseModel): image_pull_secret_credentials: Optional[ImagePullSecretCredentials] = None env_vars_refs: Optional[Dict[str, Any]] = None image_pull_ref: Optional[Annotated[int, Field(strict=True, ge=1)]] = None + image_pull_secret_name: Optional[Annotated[str, Field(min_length=1, strict=True, max_length=253)]] = Field(default=None, description="Name of a pre-existing image pull Secret in the deployment namespace. Created, refreshed and deleted externally. Mutually exclusive with inline registry credentials and image_pull_ref. Include on updates to retain it; null clears it.") enable_logging: Optional[StrictBool] = True config_file: Optional[ConfigFileMount] = None - __properties: ClassVar[List[str]] = ["creator_email", "cluster_id", "id", "name", "endpoint_url", "image_url", "type", "status", "created_at", "hardware_instance_id", "revision_number", "chart_revision", "user_annotations", "priority", "volume_mounts", "env_vars", "command", "args", "original_command", "completions", "parallelism", "backoff_limit", "active_deadline_seconds", "image_pull_secret_credentials", "env_vars_refs", "image_pull_ref", "enable_logging", "config_file"] + __properties: ClassVar[List[str]] = ["creator_email", "cluster_id", "id", "name", "endpoint_url", "image_url", "type", "status", "created_at", "hardware_instance_id", "revision_number", "chart_revision", "user_annotations", "priority", "volume_mounts", "env_vars", "command", "args", "original_command", "completions", "parallelism", "backoff_limit", "active_deadline_seconds", "image_pull_secret_credentials", "env_vars_refs", "image_pull_ref", "image_pull_secret_name", "enable_logging", "config_file"] + + @field_validator('image_pull_secret_name') + def image_pull_secret_name_validate_regular_expression(cls, value): + """Validates the regular expression""" + if value is None: + return value + + if not re.match(r"^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$", value): + raise ValueError(r"must validate the regular expression /^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$/") + return value model_config = ConfigDict( populate_by_name=True, @@ -170,6 +181,11 @@ def to_dict(self) -> Dict[str, Any]: if self.image_pull_ref is None and "image_pull_ref" in self.model_fields_set: _dict['image_pull_ref'] = None + # set to None if image_pull_secret_name (nullable) is None + # and model_fields_set contains the field + if self.image_pull_secret_name is None and "image_pull_secret_name" in self.model_fields_set: + _dict['image_pull_secret_name'] = None + # set to None if config_file (nullable) is None # and model_fields_set contains the field if self.config_file is None and "config_file" in self.model_fields_set: @@ -213,6 +229,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "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_refs": obj.get("env_vars_refs"), "image_pull_ref": obj.get("image_pull_ref"), + "image_pull_secret_name": obj.get("image_pull_secret_name"), "enable_logging": obj.get("enable_logging") if obj.get("enable_logging") is not None else True, "config_file": ConfigFileMount.from_dict(obj["config_file"]) if obj.get("config_file") is not None else None }) diff --git a/platform_api_python_client/models/unified_write_compute_deployment_request.py b/platform_api_python_client/models/unified_write_compute_deployment_request.py index 662ec58..d91acf1 100644 --- a/platform_api_python_client/models/unified_write_compute_deployment_request.py +++ b/platform_api_python_client/models/unified_write_compute_deployment_request.py @@ -39,11 +39,12 @@ class UnifiedWriteComputeDeploymentRequest(BaseModel): image_url: StrictStr image_pull_secret_credentials: Optional[ImagePullSecretCredentials] = None image_pull_ref: Optional[Annotated[int, Field(strict=True, ge=1)]] = None + image_pull_secret_name: Optional[Annotated[str, Field(min_length=1, strict=True, max_length=253)]] = Field(default=None, description="Name of a pre-existing image pull Secret in the deployment namespace. Created, refreshed and deleted externally. Mutually exclusive with inline registry credentials and image_pull_ref. Include on updates to retain it; null clears it.") env_vars_refs: Optional[Dict[str, Any]] = None ssh_public_key: StrictStr enable_logging: Optional[StrictBool] = False type: StrictStr - __properties: ClassVar[List[str]] = ["name", "cluster_id", "hardware_instance_id", "user_annotations", "chart_revision", "volume_mounts", "priority", "image_url", "image_pull_secret_credentials", "image_pull_ref", "env_vars_refs", "ssh_public_key", "enable_logging", "type"] + __properties: ClassVar[List[str]] = ["name", "cluster_id", "hardware_instance_id", "user_annotations", "chart_revision", "volume_mounts", "priority", "image_url", "image_pull_secret_credentials", "image_pull_ref", "image_pull_secret_name", "env_vars_refs", "ssh_public_key", "enable_logging", "type"] @field_validator('name') def name_validate_regular_expression(cls, value): @@ -52,6 +53,16 @@ def name_validate_regular_expression(cls, value): raise ValueError(r"must validate the regular expression /^[a-z][a-z0-9-]*$/") return value + @field_validator('image_pull_secret_name') + def image_pull_secret_name_validate_regular_expression(cls, value): + """Validates the regular expression""" + if value is None: + return value + + if not re.match(r"^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$", value): + raise ValueError(r"must validate the regular expression /^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$/") + return value + @field_validator('type') def type_validate_enum(cls, value): """Validates the enum""" @@ -128,6 +139,11 @@ def to_dict(self) -> Dict[str, Any]: if self.image_pull_ref is None and "image_pull_ref" in self.model_fields_set: _dict['image_pull_ref'] = None + # set to None if image_pull_secret_name (nullable) is None + # and model_fields_set contains the field + if self.image_pull_secret_name is None and "image_pull_secret_name" in self.model_fields_set: + _dict['image_pull_secret_name'] = None + return _dict @classmethod @@ -150,6 +166,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "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, "image_pull_ref": obj.get("image_pull_ref"), + "image_pull_secret_name": obj.get("image_pull_secret_name"), "env_vars_refs": obj.get("env_vars_refs"), "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/unified_write_inference_v3_deployment_request.py b/platform_api_python_client/models/unified_write_inference_v3_deployment_request.py index 237b9cf..c79e3e2 100644 --- a/platform_api_python_client/models/unified_write_inference_v3_deployment_request.py +++ b/platform_api_python_client/models/unified_write_inference_v3_deployment_request.py @@ -45,6 +45,7 @@ class UnifiedWriteInferenceV3DeploymentRequest(BaseModel): image_url: StrictStr image_pull_secret_credentials: Optional[ImagePullSecretCredentials] = None image_pull_ref: Optional[Annotated[int, Field(strict=True, ge=1)]] = None + image_pull_secret_name: Optional[Annotated[str, Field(min_length=1, strict=True, max_length=253)]] = Field(default=None, description="Name of a pre-existing image pull Secret in the deployment namespace. Created, refreshed and deleted externally. Mutually exclusive with inline registry credentials and image_pull_ref. Include on updates to retain it; null clears it.") port: Annotated[int, Field(le=65535, strict=True, ge=1)] min_replicas: StrictInt max_replicas: StrictInt @@ -65,7 +66,7 @@ class UnifiedWriteInferenceV3DeploymentRequest(BaseModel): config_file: Optional[ConfigFileMount] = None metrics: Optional[MetricsConfig] = None type: StrictStr - __properties: ClassVar[List[str]] = ["max_surge", "max_unavailable", "name", "cluster_id", "hardware_instance_id", "user_annotations", "chart_revision", "volume_mounts", "priority", "hf_token_ref", "image_url", "image_pull_secret_credentials", "image_pull_ref", "port", "min_replicas", "max_replicas", "concurrency", "cooldown_period", "healthcheck", "env_vars", "command", "endpoint_bearer_token", "bearer_token_ref", "endpoint_certificate_authority", "hf_token", "env_vars_refs", "backend_protocol", "enable_logging", "enable_node_model_cache", "session_affinity", "config_file", "metrics", "type"] + __properties: ClassVar[List[str]] = ["max_surge", "max_unavailable", "name", "cluster_id", "hardware_instance_id", "user_annotations", "chart_revision", "volume_mounts", "priority", "hf_token_ref", "image_url", "image_pull_secret_credentials", "image_pull_ref", "image_pull_secret_name", "port", "min_replicas", "max_replicas", "concurrency", "cooldown_period", "healthcheck", "env_vars", "command", "endpoint_bearer_token", "bearer_token_ref", "endpoint_certificate_authority", "hf_token", "env_vars_refs", "backend_protocol", "enable_logging", "enable_node_model_cache", "session_affinity", "config_file", "metrics", "type"] @field_validator('name') def name_validate_regular_expression(cls, value): @@ -74,6 +75,16 @@ def name_validate_regular_expression(cls, value): raise ValueError(r"must validate the regular expression /^[a-z][a-z0-9-]*$/") return value + @field_validator('image_pull_secret_name') + def image_pull_secret_name_validate_regular_expression(cls, value): + """Validates the regular expression""" + if value is None: + return value + + if not re.match(r"^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$", value): + raise ValueError(r"must validate the regular expression /^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$/") + return value + @field_validator('type') def type_validate_enum(cls, value): """Validates the enum""" @@ -171,6 +182,11 @@ def to_dict(self) -> Dict[str, Any]: if self.image_pull_ref is None and "image_pull_ref" in self.model_fields_set: _dict['image_pull_ref'] = None + # set to None if image_pull_secret_name (nullable) is None + # and model_fields_set contains the field + if self.image_pull_secret_name is None and "image_pull_secret_name" in self.model_fields_set: + _dict['image_pull_secret_name'] = None + # set to None if concurrency (nullable) is None # and model_fields_set contains the field if self.concurrency is None and "concurrency" in self.model_fields_set: @@ -251,6 +267,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "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, "image_pull_ref": obj.get("image_pull_ref"), + "image_pull_secret_name": obj.get("image_pull_secret_name"), "port": obj.get("port"), "min_replicas": obj.get("min_replicas"), "max_replicas": obj.get("max_replicas"), diff --git a/platform_api_python_client/models/unified_write_job_deployment_request.py b/platform_api_python_client/models/unified_write_job_deployment_request.py index 546e557..a0b647a 100644 --- a/platform_api_python_client/models/unified_write_job_deployment_request.py +++ b/platform_api_python_client/models/unified_write_job_deployment_request.py @@ -40,6 +40,7 @@ class UnifiedWriteJobDeploymentRequest(BaseModel): image_url: StrictStr image_pull_secret_credentials: Optional[ImagePullSecretCredentials] = None image_pull_ref: Optional[Annotated[int, Field(strict=True, ge=1)]] = None + image_pull_secret_name: Optional[Annotated[str, Field(min_length=1, strict=True, max_length=253)]] = Field(default=None, description="Name of a pre-existing image pull Secret in the deployment namespace. Created, refreshed and deleted externally. Mutually exclusive with inline registry credentials and image_pull_ref. Include on updates to retain it; null clears it.") env_vars: Optional[Dict[str, StrictStr]] = None env_vars_refs: Optional[Dict[str, Any]] = None command: Optional[StrictStr] = None @@ -50,7 +51,7 @@ class UnifiedWriteJobDeploymentRequest(BaseModel): enable_logging: Optional[StrictBool] = True config_file: Optional[ConfigFileMount] = None type: StrictStr - __properties: ClassVar[List[str]] = ["name", "cluster_id", "hardware_instance_id", "user_annotations", "chart_revision", "volume_mounts", "priority", "image_url", "image_pull_secret_credentials", "image_pull_ref", "env_vars", "env_vars_refs", "command", "completions", "parallelism", "backoff_limit", "active_deadline_seconds", "enable_logging", "config_file", "type"] + __properties: ClassVar[List[str]] = ["name", "cluster_id", "hardware_instance_id", "user_annotations", "chart_revision", "volume_mounts", "priority", "image_url", "image_pull_secret_credentials", "image_pull_ref", "image_pull_secret_name", "env_vars", "env_vars_refs", "command", "completions", "parallelism", "backoff_limit", "active_deadline_seconds", "enable_logging", "config_file", "type"] @field_validator('name') def name_validate_regular_expression(cls, value): @@ -59,6 +60,16 @@ def name_validate_regular_expression(cls, value): raise ValueError(r"must validate the regular expression /^[a-z][a-z0-9-]*$/") return value + @field_validator('image_pull_secret_name') + def image_pull_secret_name_validate_regular_expression(cls, value): + """Validates the regular expression""" + if value is None: + return value + + if not re.match(r"^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$", value): + raise ValueError(r"must validate the regular expression /^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$/") + return value + @field_validator('type') def type_validate_enum(cls, value): """Validates the enum""" @@ -138,6 +149,11 @@ def to_dict(self) -> Dict[str, Any]: if self.image_pull_ref is None and "image_pull_ref" in self.model_fields_set: _dict['image_pull_ref'] = None + # set to None if image_pull_secret_name (nullable) is None + # and model_fields_set contains the field + if self.image_pull_secret_name is None and "image_pull_secret_name" in self.model_fields_set: + _dict['image_pull_secret_name'] = None + # set to None if env_vars (nullable) is None # and model_fields_set contains the field if self.env_vars is None and "env_vars" in self.model_fields_set: @@ -180,6 +196,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "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, "image_pull_ref": obj.get("image_pull_ref"), + "image_pull_secret_name": obj.get("image_pull_secret_name"), "env_vars": obj.get("env_vars"), "env_vars_refs": obj.get("env_vars_refs"), "command": obj.get("command"), diff --git a/pyproject.toml b/pyproject.toml index fd0dd46..a183743 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "platform_api_python_client" -version = "4.33.0" +version = "4.34.0" description = "Platform External API" authors = ["OpenAPI Generator Community "] license = "NoLicense" diff --git a/setup.py b/setup.py index 19a68d2..f9a85d9 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.33.0" +VERSION = "4.34.0" PYTHON_REQUIRES = ">= 3.8" REQUIRES = [ "urllib3 >= 1.25.3, < 3.0.0",