Skip to content

Commit dcaa3b7

Browse files
Update clients to latest platform release (4.23.1)
1 parent 79303ad commit dcaa3b7

15 files changed

Lines changed: 108 additions & 12 deletions

‎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: 4.23.0
7+
- Package version: 4.23.1
88
- Generator version: 7.9.0
99
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
1010

@@ -192,6 +192,7 @@ Class | Method | HTTP request | Description
192192
- [CreateVolumeRequest](docs/CreateVolumeRequest.md)
193193
- [CreditsResponse](docs/CreditsResponse.md)
194194
- [DailyBillResponse](docs/DailyBillResponse.md)
195+
- [DeploymentComponentType](docs/DeploymentComponentType.md)
195196
- [DeploymentResponse](docs/DeploymentResponse.md)
196197
- [DeploymentStatus](docs/DeploymentStatus.md)
197198
- [DeploymentStatusRequest](docs/DeploymentStatusRequest.md)

‎docs/DeploymentComponentType.md‎

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# DeploymentComponentType
2+
3+
4+
## Enum
5+
6+
* `USER_MINUS_CONTAINER` (value: `'user-container'`)
7+
8+
* `FRONTEND` (value: `'frontend'`)
9+
10+
* `WORKER` (value: `'worker'`)
11+
12+
* `PREFILL` (value: `'prefill'`)
13+
14+
* `DECODE` (value: `'decode'`)
15+
16+
* `PLANNER` (value: `'planner'`)
17+
18+
* `EPP` (value: `'epp'`)
19+
20+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

‎docs/PodDetails.md‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
77
------------ | ------------- | ------------- | -------------
88
**name** | **str** | | [optional]
99
**revision_number** | **int** | | [optional]
10-
**component_type** | **str** | | [optional]
10+
**component_type** | [**DeploymentComponentType**](DeploymentComponentType.md) | | [optional]
1111
**status** | [**PodStatus**](PodStatus.md) | |
1212
**error_message** | **str** | | [optional]
1313

@@ -29,4 +29,3 @@ pod_details_dict = pod_details_instance.to_dict()
2929
pod_details_from_dict = PodDetails.from_dict(pod_details_dict)
3030
```
3131
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
32-

‎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__ = "4.23.0"
17+
__version__ = "4.23.1"
1818

1919
# import apis into sdk package
2020
from platform_api_python_client.api.external_api import EXTERNALApi
@@ -66,6 +66,7 @@
6666
from platform_api_python_client.models.create_volume_request import CreateVolumeRequest
6767
from platform_api_python_client.models.credits_response import CreditsResponse
6868
from platform_api_python_client.models.daily_bill_response import DailyBillResponse
69+
from platform_api_python_client.models.deployment_component_type import DeploymentComponentType
6970
from platform_api_python_client.models.deployment_response import DeploymentResponse
7071
from platform_api_python_client.models.deployment_status import DeploymentStatus
7172
from platform_api_python_client.models.deployment_status_request import DeploymentStatusRequest

‎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.23.0/python'
93+
self.user_agent = 'OpenAPI-Generator/4.23.1/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.23.0".\
395+
"SDK Package Version: 4.23.1".\
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
@@ -49,6 +49,7 @@
4949
from platform_api_python_client.models.create_volume_request import CreateVolumeRequest
5050
from platform_api_python_client.models.credits_response import CreditsResponse
5151
from platform_api_python_client.models.daily_bill_response import DailyBillResponse
52+
from platform_api_python_client.models.deployment_component_type import DeploymentComponentType
5253
from platform_api_python_client.models.deployment_response import DeploymentResponse
5354
from platform_api_python_client.models.deployment_status import DeploymentStatus
5455
from platform_api_python_client.models.deployment_status_request import DeploymentStatusRequest
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
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 DeploymentComponentType(str, Enum):
22+
"""
23+
DeploymentComponentType
24+
"""
25+
26+
"""
27+
allowed enum values
28+
"""
29+
USER_MINUS_CONTAINER = 'user-container'
30+
FRONTEND = 'frontend'
31+
WORKER = 'worker'
32+
PREFILL = 'prefill'
33+
DECODE = 'decode'
34+
PLANNER = 'planner'
35+
EPP = 'epp'
36+
37+
@classmethod
38+
def from_json(cls, json_str: str) -> Self:
39+
"""Create an instance of DeploymentComponentType from a JSON string"""
40+
return cls(json.loads(json_str))

‎platform_api_python_client/models/pod_details.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919

2020
from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr
2121
from typing import Any, ClassVar, Dict, List, Optional
22+
from platform_api_python_client.models.deployment_component_type import DeploymentComponentType
2223
from platform_api_python_client.models.pod_status import PodStatus
2324
from typing import Optional, Set
2425
from typing_extensions import Self
@@ -29,7 +30,7 @@ class PodDetails(BaseModel):
2930
""" # noqa: E501
3031
name: Optional[StrictStr] = None
3132
revision_number: Optional[StrictInt] = None
32-
component_type: Optional[StrictStr] = None
33+
component_type: Optional[DeploymentComponentType] = None
3334
status: PodStatus
3435
error_message: Optional[StrictStr] = None
3536
__properties: ClassVar[List[str]] = ["name", "revision_number", "component_type", "status", "error_message"]

‎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.23.0"
3+
version = "4.23.1"
44
description = "Platform External API"
55
authors = ["OpenAPI Generator Community <team@openapitools.org>"]
66
license = "NoLicense"

0 commit comments

Comments
 (0)