Skip to content
Open
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.1.10
- Package version: 4.1.12
- Generator version: 7.9.0
- Build package: org.openapitools.codegen.languages.PythonClientCodegen

Expand Down
1 change: 1 addition & 0 deletions docs/DeploymentResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions docs/GetInferenceV3DeploymentResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
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.1.10"
__version__ = "4.1.12"

# 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.1.10/python'
self.user_agent = 'OpenAPI-Generator/4.1.12/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.1.10".\
"SDK Package Version: 4.1.12".\
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 @@ -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,
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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
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.1.10"
version = "4.1.12"
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.1.10"
VERSION = "4.1.12"
PYTHON_REQUIRES = ">= 3.8"
REQUIRES = [
"urllib3 >= 1.25.3, < 3.0.0",
Expand Down
1 change: 1 addition & 0 deletions test/test_deployment_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = '', )
Expand Down
1 change: 1 addition & 0 deletions test/test_get_inference_v3_deployment_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = '', )
Expand Down