Skip to content

Commit b8fa894

Browse files
Update clients to latest platform release (3.2.8) (#26)
1 parent 6bb2be2 commit b8fa894

13 files changed

+133
-10
lines changed

README.md

Lines changed: 2 additions & 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: 3.2.7
7+
- Package version: 3.2.8
88
- Generator version: 7.9.0
99
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
1010

@@ -193,6 +193,7 @@ Class | Method | HTTP request | Description
193193
- [ListUserVaultItemsResponse](docs/ListUserVaultItemsResponse.md)
194194
- [Metric](docs/Metric.md)
195195
- [PaymentMethodResponse](docs/PaymentMethodResponse.md)
196+
- [PodStatus](docs/PodStatus.md)
196197
- [PrebuiltImageResponse](docs/PrebuiltImageResponse.md)
197198
- [ServiceStatus](docs/ServiceStatus.md)
198199
- [UpdateAutochargePreferencesRequest](docs/UpdateAutochargePreferencesRequest.md)

docs/DeploymentStatusResponse.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ Name | Type | Description | Notes
1111
**service_status** | [**ServiceStatus**](ServiceStatus.md) | | [optional]
1212
**error_message** | **str** | | [optional]
1313
**endpoint_url** | **str** | | [optional]
14+
**pod_status** | **List[List[object]]** | | [optional]
1415

1516
## Example
1617

docs/PodStatus.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# PodStatus
2+
3+
4+
## Enum
5+
6+
* `SCALINGUP` (value: `'ScalingUp'`)
7+
8+
* `PULLING` (value: `'Pulling'`)
9+
10+
* `INITIALIZING` (value: `'Initializing'`)
11+
12+
* `ERROR` (value: `'Error'`)
13+
14+
* `CREATECONTAINERCONFIGERROR` (value: `'CreateContainerConfigError'`)
15+
16+
* `CRASHLOOPBACKOFF` (value: `'CrashLoopBackOff'`)
17+
18+
* `IMAGEPULLBACKOFF` (value: `'ImagePullBackOff'`)
19+
20+
* `PROGRESSDEADLINEEXCEEDED` (value: `'ProgressDeadlineExceeded'`)
21+
22+
* `RUNNING` (value: `'Running'`)
23+
24+
* `NOTREADY` (value: `'NotReady'`)
25+
26+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
27+
28+

platform_api_python_client/__init__.py

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

1616

17-
__version__ = "3.2.7"
17+
__version__ = "3.2.8"
1818

1919
# import apis into sdk package
2020
from platform_api_python_client.api.external_api import EXTERNALApi
@@ -83,6 +83,7 @@
8383
from platform_api_python_client.models.list_user_vault_items_response import ListUserVaultItemsResponse
8484
from platform_api_python_client.models.metric import Metric
8585
from platform_api_python_client.models.payment_method_response import PaymentMethodResponse
86+
from platform_api_python_client.models.pod_status import PodStatus
8687
from platform_api_python_client.models.prebuilt_image_response import PrebuiltImageResponse
8788
from platform_api_python_client.models.service_status import ServiceStatus
8889
from platform_api_python_client.models.update_autocharge_preferences_request import UpdateAutochargePreferencesRequest

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/3.2.7/python'
93+
self.user_agent = 'OpenAPI-Generator/3.2.8/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: 3.2.7".\
395+
"SDK Package Version: 3.2.8".\
396396
format(env=sys.platform, pyversion=sys.version)
397397

398398
def get_host_settings(self):

platform_api_python_client/models/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@
6666
from platform_api_python_client.models.list_user_vault_items_response import ListUserVaultItemsResponse
6767
from platform_api_python_client.models.metric import Metric
6868
from platform_api_python_client.models.payment_method_response import PaymentMethodResponse
69+
from platform_api_python_client.models.pod_status import PodStatus
6970
from platform_api_python_client.models.prebuilt_image_response import PrebuiltImageResponse
7071
from platform_api_python_client.models.service_status import ServiceStatus
7172
from platform_api_python_client.models.update_autocharge_preferences_request import UpdateAutochargePreferencesRequest

platform_api_python_client/models/deployment_status_response.py

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,9 @@
1717
import re # noqa: F401
1818
import json
1919

20-
from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr
20+
from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr
2121
from typing import Any, ClassVar, Dict, List, Optional
22+
from typing_extensions import Annotated
2223
from platform_api_python_client.models.deployment_status import DeploymentStatus
2324
from platform_api_python_client.models.deployment_type import DeploymentType
2425
from platform_api_python_client.models.service_status import ServiceStatus
@@ -35,7 +36,8 @@ class DeploymentStatusResponse(BaseModel):
3536
service_status: Optional[ServiceStatus] = None
3637
error_message: Optional[StrictStr] = None
3738
endpoint_url: Optional[StrictStr] = None
38-
__properties: ClassVar[List[str]] = ["id", "type", "status", "service_status", "error_message", "endpoint_url"]
39+
pod_status: Optional[List[Annotated[List[Any], Field(min_length=2, max_length=2)]]] = None
40+
__properties: ClassVar[List[str]] = ["id", "type", "status", "service_status", "error_message", "endpoint_url", "pod_status"]
3941

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

96+
# set to None if pod_status (nullable) is None
97+
# and model_fields_set contains the field
98+
if self.pod_status is None and "pod_status" in self.model_fields_set:
99+
_dict['pod_status'] = None
100+
94101
return _dict
95102

96103
@classmethod
@@ -108,7 +115,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
108115
"status": obj.get("status"),
109116
"service_status": obj.get("service_status"),
110117
"error_message": obj.get("error_message"),
111-
"endpoint_url": obj.get("endpoint_url")
118+
"endpoint_url": obj.get("endpoint_url"),
119+
"pod_status": obj.get("pod_status")
112120
})
113121
return _obj
114122

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# coding: utf-8
2+
3+
"""
4+
Platform External API
5+
6+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7+
8+
The version of the OpenAPI document: 0.1.0
9+
Generated by OpenAPI Generator (https://openapi-generator.tech)
10+
11+
Do not edit the class manually.
12+
""" # noqa: E501
13+
14+
15+
from __future__ import annotations
16+
import json
17+
from enum import Enum
18+
from typing_extensions import Self
19+
20+
21+
class PodStatus(str, Enum):
22+
"""
23+
PodStatus
24+
"""
25+
26+
"""
27+
allowed enum values
28+
"""
29+
SCALINGUP = 'ScalingUp'
30+
PULLING = 'Pulling'
31+
INITIALIZING = 'Initializing'
32+
ERROR = 'Error'
33+
CREATECONTAINERCONFIGERROR = 'CreateContainerConfigError'
34+
CRASHLOOPBACKOFF = 'CrashLoopBackOff'
35+
IMAGEPULLBACKOFF = 'ImagePullBackOff'
36+
PROGRESSDEADLINEEXCEEDED = 'ProgressDeadlineExceeded'
37+
RUNNING = 'Running'
38+
NOTREADY = 'NotReady'
39+
40+
@classmethod
41+
def from_json(cls, json_str: str) -> Self:
42+
"""Create an instance of PodStatus from a JSON string"""
43+
return cls(json.loads(json_str))
44+
45+

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 = "3.2.7"
3+
version = "3.2.8"
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 = "3.2.7"
24+
VERSION = "3.2.8"
2525
PYTHON_REQUIRES = ">= 3.8"
2626
REQUIRES = [
2727
"urllib3 >= 1.25.3, < 3.0.0",

test/test_deployment_status_response.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,12 @@ def make_instance(self, include_optional) -> DeploymentStatusResponse:
4040
status = 'active',
4141
service_status = 'Healthy',
4242
error_message = '',
43-
endpoint_url = ''
43+
endpoint_url = '',
44+
pod_status = [
45+
[
46+
null
47+
]
48+
]
4449
)
4550
else:
4651
return DeploymentStatusResponse(

test/test_pod_status.py

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# coding: utf-8
2+
3+
"""
4+
Platform External API
5+
6+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7+
8+
The version of the OpenAPI document: 0.1.0
9+
Generated by OpenAPI Generator (https://openapi-generator.tech)
10+
11+
Do not edit the class manually.
12+
""" # noqa: E501
13+
14+
15+
import unittest
16+
17+
from platform_api_python_client.models.pod_status import PodStatus
18+
19+
class TestPodStatus(unittest.TestCase):
20+
"""PodStatus unit test stubs"""
21+
22+
def setUp(self):
23+
pass
24+
25+
def tearDown(self):
26+
pass
27+
28+
def testPodStatus(self):
29+
"""Test PodStatus"""
30+
# inst = PodStatus()
31+
32+
if __name__ == '__main__':
33+
unittest.main()

0 commit comments

Comments
 (0)