Skip to content

[Client] Automatic update from platform release (3.2.8) #26

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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
3 changes: 2 additions & 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: 3.2.7
- Package version: 3.2.8
- Generator version: 7.9.0
- Build package: org.openapitools.codegen.languages.PythonClientCodegen

Expand Down Expand Up @@ -193,6 +193,7 @@ Class | Method | HTTP request | Description
- [ListUserVaultItemsResponse](docs/ListUserVaultItemsResponse.md)
- [Metric](docs/Metric.md)
- [PaymentMethodResponse](docs/PaymentMethodResponse.md)
- [PodStatus](docs/PodStatus.md)
- [PrebuiltImageResponse](docs/PrebuiltImageResponse.md)
- [ServiceStatus](docs/ServiceStatus.md)
- [UpdateAutochargePreferencesRequest](docs/UpdateAutochargePreferencesRequest.md)
Expand Down
1 change: 1 addition & 0 deletions docs/DeploymentStatusResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Name | Type | Description | Notes
**service_status** | [**ServiceStatus**](ServiceStatus.md) | | [optional]
**error_message** | **str** | | [optional]
**endpoint_url** | **str** | | [optional]
**pod_status** | **List[List[object]]** | | [optional]

## Example

Expand Down
28 changes: 28 additions & 0 deletions docs/PodStatus.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# PodStatus


## Enum

* `SCALINGUP` (value: `'ScalingUp'`)

* `PULLING` (value: `'Pulling'`)

* `INITIALIZING` (value: `'Initializing'`)

* `ERROR` (value: `'Error'`)

* `CREATECONTAINERCONFIGERROR` (value: `'CreateContainerConfigError'`)

* `CRASHLOOPBACKOFF` (value: `'CrashLoopBackOff'`)

* `IMAGEPULLBACKOFF` (value: `'ImagePullBackOff'`)

* `PROGRESSDEADLINEEXCEEDED` (value: `'ProgressDeadlineExceeded'`)

* `RUNNING` (value: `'Running'`)

* `NOTREADY` (value: `'NotReady'`)

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


3 changes: 2 additions & 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__ = "3.2.7"
__version__ = "3.2.8"

# import apis into sdk package
from platform_api_python_client.api.external_api import EXTERNALApi
Expand Down Expand Up @@ -83,6 +83,7 @@
from platform_api_python_client.models.list_user_vault_items_response import ListUserVaultItemsResponse
from platform_api_python_client.models.metric import Metric
from platform_api_python_client.models.payment_method_response import PaymentMethodResponse
from platform_api_python_client.models.pod_status import PodStatus
from platform_api_python_client.models.prebuilt_image_response import PrebuiltImageResponse
from platform_api_python_client.models.service_status import ServiceStatus
from platform_api_python_client.models.update_autocharge_preferences_request import UpdateAutochargePreferencesRequest
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/3.2.7/python'
self.user_agent = 'OpenAPI-Generator/3.2.8/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: 3.2.7".\
"SDK Package Version: 3.2.8".\
format(env=sys.platform, pyversion=sys.version)

def get_host_settings(self):
Expand Down
1 change: 1 addition & 0 deletions platform_api_python_client/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
from platform_api_python_client.models.list_user_vault_items_response import ListUserVaultItemsResponse
from platform_api_python_client.models.metric import Metric
from platform_api_python_client.models.payment_method_response import PaymentMethodResponse
from platform_api_python_client.models.pod_status import PodStatus
from platform_api_python_client.models.prebuilt_image_response import PrebuiltImageResponse
from platform_api_python_client.models.service_status import ServiceStatus
from platform_api_python_client.models.update_autocharge_preferences_request import UpdateAutochargePreferencesRequest
Expand Down
14 changes: 11 additions & 3 deletions platform_api_python_client/models/deployment_status_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@
import re # noqa: F401
import json

from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr
from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr
from typing import Any, ClassVar, Dict, List, Optional
from typing_extensions import Annotated
from platform_api_python_client.models.deployment_status import DeploymentStatus
from platform_api_python_client.models.deployment_type import DeploymentType
from platform_api_python_client.models.service_status import ServiceStatus
Expand All @@ -35,7 +36,8 @@ class DeploymentStatusResponse(BaseModel):
service_status: Optional[ServiceStatus] = None
error_message: Optional[StrictStr] = None
endpoint_url: Optional[StrictStr] = None
__properties: ClassVar[List[str]] = ["id", "type", "status", "service_status", "error_message", "endpoint_url"]
pod_status: Optional[List[Annotated[List[Any], Field(min_length=2, max_length=2)]]] = None
__properties: ClassVar[List[str]] = ["id", "type", "status", "service_status", "error_message", "endpoint_url", "pod_status"]

model_config = ConfigDict(
populate_by_name=True,
Expand Down Expand Up @@ -91,6 +93,11 @@ def to_dict(self) -> Dict[str, Any]:
if self.endpoint_url is None and "endpoint_url" in self.model_fields_set:
_dict['endpoint_url'] = None

# set to None if pod_status (nullable) is None
# and model_fields_set contains the field
if self.pod_status is None and "pod_status" in self.model_fields_set:
_dict['pod_status'] = None

return _dict

@classmethod
Expand All @@ -108,7 +115,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
"status": obj.get("status"),
"service_status": obj.get("service_status"),
"error_message": obj.get("error_message"),
"endpoint_url": obj.get("endpoint_url")
"endpoint_url": obj.get("endpoint_url"),
"pod_status": obj.get("pod_status")
})
return _obj

Expand Down
45 changes: 45 additions & 0 deletions platform_api_python_client/models/pod_status.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# coding: utf-8

"""
Platform External API

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)

The version of the OpenAPI document: 0.1.0
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
""" # noqa: E501


from __future__ import annotations
import json
from enum import Enum
from typing_extensions import Self


class PodStatus(str, Enum):
"""
PodStatus
"""

"""
allowed enum values
"""
SCALINGUP = 'ScalingUp'
PULLING = 'Pulling'
INITIALIZING = 'Initializing'
ERROR = 'Error'
CREATECONTAINERCONFIGERROR = 'CreateContainerConfigError'
CRASHLOOPBACKOFF = 'CrashLoopBackOff'
IMAGEPULLBACKOFF = 'ImagePullBackOff'
PROGRESSDEADLINEEXCEEDED = 'ProgressDeadlineExceeded'
RUNNING = 'Running'
NOTREADY = 'NotReady'

@classmethod
def from_json(cls, json_str: str) -> Self:
"""Create an instance of PodStatus from a JSON string"""
return cls(json.loads(json_str))


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 = "3.2.7"
version = "3.2.8"
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 = "3.2.7"
VERSION = "3.2.8"
PYTHON_REQUIRES = ">= 3.8"
REQUIRES = [
"urllib3 >= 1.25.3, < 3.0.0",
Expand Down
7 changes: 6 additions & 1 deletion test/test_deployment_status_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,12 @@ def make_instance(self, include_optional) -> DeploymentStatusResponse:
status = 'active',
service_status = 'Healthy',
error_message = '',
endpoint_url = ''
endpoint_url = '',
pod_status = [
[
null
]
]
)
else:
return DeploymentStatusResponse(
Expand Down
33 changes: 33 additions & 0 deletions test/test_pod_status.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# coding: utf-8

"""
Platform External API

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)

The version of the OpenAPI document: 0.1.0
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
""" # noqa: E501


import unittest

from platform_api_python_client.models.pod_status import PodStatus

class TestPodStatus(unittest.TestCase):
"""PodStatus unit test stubs"""

def setUp(self):
pass

def tearDown(self):
pass

def testPodStatus(self):
"""Test PodStatus"""
# inst = PodStatus()

if __name__ == '__main__':
unittest.main()