Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
1 change: 1 addition & 0 deletions docs/HardwareInstanceResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ Name | Type | Description | Notes
**memory** | **int** | |
**cluster_id** | **int** | |
**accelerator_memory** | **int** | | [optional]
**cost_per_hr** | **int** | | [readonly]

## Example

Expand Down
2 changes: 1 addition & 1 deletion platform_api_python_client/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion platform_api_python_client/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
2 changes: 1 addition & 1 deletion platform_api_python_client/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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(
Expand Down Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -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 <team@openapitools.org>"]
license = "NoLicense"
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 3 additions & 1 deletion test/test_hardware_instance_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -53,6 +54,7 @@ def make_instance(self, include_optional) -> HardwareInstanceResponse:
cpu = 56,
memory = 56,
cluster_id = 56,
cost_per_hr = 56,
)
"""

Expand Down
6 changes: 4 additions & 2 deletions test/test_list_hardware_instance_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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, )
],
)
"""
Expand Down
Loading