Skip to content

Commit afe0d36

Browse files
Update clients to latest platform release (4.10.0)
1 parent 224240d commit afe0d36

9 files changed

Lines changed: 16 additions & 7 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ No description provided (generated by Openapi Generator https://github.com/opena
44
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
55

66
- API version: 0.1.0
7-
- Package version: 4.9.7
7+
- Package version: 4.10.0
88
- Generator version: 7.9.0
99
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
1010

docs/GetJobDeploymentResponse.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ Name | Type | Description | Notes
2020
**env_vars** | **Dict[str, str]** | | [optional]
2121
**command** | **List[str]** | | [optional]
2222
**args** | **List[str]** | | [optional]
23+
**original_command** | **str** | | [optional]
2324
**completions** | **int** | | [optional] [default to 1]
2425
**parallelism** | **int** | | [optional] [default to 1]
2526
**image_pull_secret_credentials** | [**ImagePullSecretCredentials**](ImagePullSecretCredentials.md) | | [optional]

platform_api_python_client/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
""" # noqa: E501
1515

1616

17-
__version__ = "4.9.7"
17+
__version__ = "4.10.0"
1818

1919
# import apis into sdk package
2020
from platform_api_python_client.api.external_api import EXTERNALApi

platform_api_python_client/api_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def __init__(
9090
self.default_headers[header_name] = header_value
9191
self.cookie = cookie
9292
# Set default User-Agent.
93-
self.user_agent = 'OpenAPI-Generator/4.9.7/python'
93+
self.user_agent = 'OpenAPI-Generator/4.10.0/python'
9494
self.client_side_validation = configuration.client_side_validation
9595

9696
def __enter__(self):

platform_api_python_client/configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ def to_debug_report(self):
392392
"OS: {env}\n"\
393393
"Python Version: {pyversion}\n"\
394394
"Version of the API: 0.1.0\n"\
395-
"SDK Package Version: 4.9.7".\
395+
"SDK Package Version: 4.10.0".\
396396
format(env=sys.platform, pyversion=sys.version)
397397

398398
def get_host_settings(self):

platform_api_python_client/models/get_job_deployment_response.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,12 @@ class GetJobDeploymentResponse(BaseModel):
4545
env_vars: Optional[Dict[str, StrictStr]] = None
4646
command: Optional[List[StrictStr]] = None
4747
args: Optional[List[StrictStr]] = None
48+
original_command: Optional[StrictStr] = None
4849
completions: Optional[StrictInt] = 1
4950
parallelism: Optional[StrictInt] = 1
5051
image_pull_secret_credentials: Optional[ImagePullSecretCredentials] = None
5152
enable_logging: Optional[StrictBool] = True
52-
__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", "env_vars", "command", "args", "completions", "parallelism", "image_pull_secret_credentials", "enable_logging"]
53+
__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", "env_vars", "command", "args", "original_command", "completions", "parallelism", "image_pull_secret_credentials", "enable_logging"]
5354

5455
model_config = ConfigDict(
5556
populate_by_name=True,
@@ -118,6 +119,11 @@ def to_dict(self) -> Dict[str, Any]:
118119
if self.args is None and "args" in self.model_fields_set:
119120
_dict['args'] = None
120121

122+
# set to None if original_command (nullable) is None
123+
# and model_fields_set contains the field
124+
if self.original_command is None and "original_command" in self.model_fields_set:
125+
_dict['original_command'] = None
126+
121127
# set to None if image_pull_secret_credentials (nullable) is None
122128
# and model_fields_set contains the field
123129
if self.image_pull_secret_credentials is None and "image_pull_secret_credentials" in self.model_fields_set:
@@ -150,6 +156,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
150156
"env_vars": obj.get("env_vars"),
151157
"command": obj.get("command"),
152158
"args": obj.get("args"),
159+
"original_command": obj.get("original_command"),
153160
"completions": obj.get("completions") if obj.get("completions") is not None else 1,
154161
"parallelism": obj.get("parallelism") if obj.get("parallelism") is not None else 1,
155162
"image_pull_secret_credentials": ImagePullSecretCredentials.from_dict(obj["image_pull_secret_credentials"]) if obj.get("image_pull_secret_credentials") is not None else None,

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "platform_api_python_client"
3-
version = "4.9.7"
3+
version = "4.10.0"
44
description = "Platform External API"
55
authors = ["OpenAPI Generator Community <team@openapitools.org>"]
66
license = "NoLicense"

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
# prerequisite: setuptools
2222
# http://pypi.python.org/pypi/setuptools
2323
NAME = "platform-api-python-client"
24-
VERSION = "4.9.7"
24+
VERSION = "4.10.0"
2525
PYTHON_REQUIRES = ">= 3.8"
2626
REQUIRES = [
2727
"urllib3 >= 1.25.3, < 3.0.0",

test/test_get_job_deployment_response.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ def make_instance(self, include_optional) -> GetJobDeploymentResponse:
5858
args = [
5959
''
6060
],
61+
original_command = '',
6162
completions = 56,
6263
parallelism = 56,
6364
image_pull_secret_credentials = platform_api_python_client.models.image_pull_secret_credentials.ImagePullSecretCredentials(

0 commit comments

Comments
 (0)