diff --git a/README.md b/README.md index 98763ac..e5dc7c0 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.31.0 +- Package version: 4.32.0 - Generator version: 7.9.0 - Build package: org.openapitools.codegen.languages.PythonClientCodegen diff --git a/docs/HardwareInstanceResponse.md b/docs/HardwareInstanceResponse.md index f047b59..fd91b73 100644 --- a/docs/HardwareInstanceResponse.md +++ b/docs/HardwareInstanceResponse.md @@ -13,6 +13,7 @@ Name | Type | Description | Notes **memory** | **int** | | **cluster_id** | **int** | | **accelerator_memory** | **int** | | [optional] +**cost_per_hr** | **int** | | [readonly] ## Example diff --git a/platform_api_python_client/__init__.py b/platform_api_python_client/__init__.py index 701b2c0..8ce31b7 100644 --- a/platform_api_python_client/__init__.py +++ b/platform_api_python_client/__init__.py @@ -14,7 +14,7 @@ """ # noqa: E501 -__version__ = "4.31.0" +__version__ = "4.32.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 77cd505..90f0834 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.31.0/python' + self.user_agent = 'OpenAPI-Generator/4.32.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 faca06f..f5aac5b 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.31.0".\ + "SDK Package Version: 4.32.0".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self): diff --git a/platform_api_python_client/models/hardware_instance_response.py b/platform_api_python_client/models/hardware_instance_response.py index 34e8a6a..86d2afb 100644 --- a/platform_api_python_client/models/hardware_instance_response.py +++ b/platform_api_python_client/models/hardware_instance_response.py @@ -34,7 +34,8 @@ class HardwareInstanceResponse(BaseModel): memory: StrictInt cluster_id: StrictInt accelerator_memory: Optional[StrictInt] = None - __properties: ClassVar[List[str]] = ["id", "name", "gpu_type", "num_gpu", "cpu", "memory", "cluster_id", "accelerator_memory"] + cost_per_hr: StrictInt + __properties: ClassVar[List[str]] = ["id", "name", "gpu_type", "num_gpu", "cpu", "memory", "cluster_id", "accelerator_memory", "cost_per_hr"] model_config = ConfigDict( populate_by_name=True, @@ -66,8 +67,10 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. + * OpenAPI `readOnly` fields are excluded. """ excluded_fields: Set[str] = set([ + "cost_per_hr", ]) _dict = self.model_dump( @@ -99,7 +102,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "cpu": obj.get("cpu"), "memory": obj.get("memory"), "cluster_id": obj.get("cluster_id"), - "accelerator_memory": obj.get("accelerator_memory") + "accelerator_memory": obj.get("accelerator_memory"), + "cost_per_hr": obj.get("cost_per_hr") }) return _obj diff --git a/pyproject.toml b/pyproject.toml index fc65924..398f427 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "platform_api_python_client" -version = "4.31.0" +version = "4.32.0" description = "Platform External API" authors = ["OpenAPI Generator Community "] license = "NoLicense" diff --git a/setup.py b/setup.py index 0d32e91..2e7ccdc 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.31.0" +VERSION = "4.32.0" PYTHON_REQUIRES = ">= 3.8" REQUIRES = [ "urllib3 >= 1.25.3, < 3.0.0", diff --git a/test/test_hardware_instance_response.py b/test/test_hardware_instance_response.py index 7bf466e..72ff7eb 100644 --- a/test/test_hardware_instance_response.py +++ b/test/test_hardware_instance_response.py @@ -42,7 +42,8 @@ def make_instance(self, include_optional) -> HardwareInstanceResponse: cpu = 56, memory = 56, cluster_id = 56, - accelerator_memory = 56 + accelerator_memory = 56, + cost_per_hr = 56 ) else: return HardwareInstanceResponse( @@ -53,6 +54,7 @@ def make_instance(self, include_optional) -> HardwareInstanceResponse: cpu = 56, memory = 56, cluster_id = 56, + cost_per_hr = 56, ) """ diff --git a/test/test_list_hardware_instance_response.py b/test/test_list_hardware_instance_response.py index 1fc0884..865da8b 100644 --- a/test/test_list_hardware_instance_response.py +++ b/test/test_list_hardware_instance_response.py @@ -44,7 +44,8 @@ def make_instance(self, include_optional) -> ListHardwareInstanceResponse: cpu = 56, memory = 56, cluster_id = 56, - accelerator_memory = 56, ) + accelerator_memory = 56, + cost_per_hr = 56, ) ] ) else: @@ -58,7 +59,8 @@ def make_instance(self, include_optional) -> ListHardwareInstanceResponse: cpu = 56, memory = 56, cluster_id = 56, - accelerator_memory = 56, ) + accelerator_memory = 56, + cost_per_hr = 56, ) ], ) """