diff --git a/README.md b/README.md index cfa9e33..75e958a 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.1.10 +- Package version: 4.1.13 - Generator version: 7.9.0 - Build package: org.openapitools.codegen.languages.PythonClientCodegen diff --git a/docs/DeploymentResponse.md b/docs/DeploymentResponse.md index 0e97c76..133215a 100644 --- a/docs/DeploymentResponse.md +++ b/docs/DeploymentResponse.md @@ -29,6 +29,7 @@ Name | Type | Description | Notes **healthcheck** | **str** | | [optional] **command** | **List[str]** | | [optional] **command_args** | **List[str]** | | [optional] +**original_command** | **str** | | [optional] **image_pull_secret_credentials** | [**ImagePullSecretCredentials**](ImagePullSecretCredentials.md) | | [optional] ## Example diff --git a/docs/GetInferenceV3DeploymentResponse.md b/docs/GetInferenceV3DeploymentResponse.md index 49cc5be..a277200 100644 --- a/docs/GetInferenceV3DeploymentResponse.md +++ b/docs/GetInferenceV3DeploymentResponse.md @@ -27,6 +27,7 @@ Name | Type | Description | Notes **env_vars** | **Dict[str, str]** | | [optional] **command** | **List[str]** | | [optional] **command_args** | **List[str]** | | [optional] +**original_command** | **str** | | [optional] **image_pull_secret_credentials** | [**ImagePullSecretCredentials**](ImagePullSecretCredentials.md) | | [optional] ## Example diff --git a/platform_api_python_client/__init__.py b/platform_api_python_client/__init__.py index 2f079ee..781edf0 100644 --- a/platform_api_python_client/__init__.py +++ b/platform_api_python_client/__init__.py @@ -14,7 +14,7 @@ """ # noqa: E501 -__version__ = "4.1.10" +__version__ = "4.1.13" # 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 1b1a245..dd8b82f 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.1.10/python' + self.user_agent = 'OpenAPI-Generator/4.1.13/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 84ce7ef..eefcb99 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.1.10".\ + "SDK Package Version: 4.1.13".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self): 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 5f6e5b3..c204197 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 @@ -52,8 +52,9 @@ class GetInferenceV3DeploymentResponse(BaseModel): env_vars: Optional[Dict[str, StrictStr]] = None command: Optional[List[StrictStr]] = None command_args: Optional[List[StrictStr]] = None + original_command: Optional[StrictStr] = None image_pull_secret_credentials: Optional[ImagePullSecretCredentials] = 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_replicas", "max_replicas", "initial_replicas", "concurrency", "healthcheck", "endpoint_certificate_authority", "endpoint_bearer_token", "env_vars", "command", "command_args", "image_pull_secret_credentials"] + __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"] model_config = ConfigDict( populate_by_name=True, @@ -142,6 +143,11 @@ def to_dict(self) -> Dict[str, Any]: if self.command_args is None and "command_args" in self.model_fields_set: _dict['command_args'] = None + # set to None if original_command (nullable) is None + # and model_fields_set contains the field + if self.original_command is None and "original_command" in self.model_fields_set: + _dict['original_command'] = 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: @@ -181,6 +187,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "env_vars": obj.get("env_vars"), "command": obj.get("command"), "command_args": obj.get("command_args"), + "original_command": obj.get("original_command"), "image_pull_secret_credentials": ImagePullSecretCredentials.from_dict(obj["image_pull_secret_credentials"]) if obj.get("image_pull_secret_credentials") is not None else None }) return _obj diff --git a/pyproject.toml b/pyproject.toml index 937dc89..056c349 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "platform_api_python_client" -version = "4.1.10" +version = "4.1.13" description = "Platform External API" authors = ["OpenAPI Generator Community "] license = "NoLicense" diff --git a/setup.py b/setup.py index 436186a..ab5fca3 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.1.10" +VERSION = "4.1.13" PYTHON_REQUIRES = ">= 3.8" REQUIRES = [ "urllib3 >= 1.25.3, < 3.0.0", diff --git a/test/test_deployment_response.py b/test/test_deployment_response.py index a1b2f9a..f98da7a 100644 --- a/test/test_deployment_response.py +++ b/test/test_deployment_response.py @@ -65,6 +65,7 @@ def make_instance(self, include_optional) -> DeploymentResponse: command_args = [ '' ], + original_command = '', image_pull_secret_credentials = platform_api_python_client.models.image_pull_secret_credentials.ImagePullSecretCredentials( username = '', password = '', ) diff --git a/test/test_get_inference_v3_deployment_response.py b/test/test_get_inference_v3_deployment_response.py index f801df5..3cf211f 100644 --- a/test/test_get_inference_v3_deployment_response.py +++ b/test/test_get_inference_v3_deployment_response.py @@ -63,6 +63,7 @@ def make_instance(self, include_optional) -> GetInferenceV3DeploymentResponse: command_args = [ '' ], + original_command = '', image_pull_secret_credentials = platform_api_python_client.models.image_pull_secret_credentials.ImagePullSecretCredentials( username = '', password = '', )