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

Expand Down Expand Up @@ -192,6 +192,7 @@ Class | Method | HTTP request | Description
- [CreateVolumeRequest](docs/CreateVolumeRequest.md)
- [CreditsResponse](docs/CreditsResponse.md)
- [DailyBillResponse](docs/DailyBillResponse.md)
- [DeploymentComponentType](docs/DeploymentComponentType.md)
- [DeploymentResponse](docs/DeploymentResponse.md)
- [DeploymentStatus](docs/DeploymentStatus.md)
- [DeploymentStatusRequest](docs/DeploymentStatusRequest.md)
Expand Down
20 changes: 20 additions & 0 deletions docs/DeploymentComponentType.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# DeploymentComponentType


## Enum

* `USER_MINUS_CONTAINER` (value: `'user-container'`)

* `FRONTEND` (value: `'frontend'`)

* `WORKER` (value: `'worker'`)

* `PREFILL` (value: `'prefill'`)

* `DECODE` (value: `'decode'`)

* `PLANNER` (value: `'planner'`)

* `EPP` (value: `'epp'`)

[[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: 1 addition & 2 deletions docs/PodDetails.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**name** | **str** | | [optional]
**revision_number** | **int** | | [optional]
**component_type** | **str** | | [optional]
**component_type** | [**DeploymentComponentType**](DeploymentComponentType.md) | | [optional]
**status** | [**PodStatus**](PodStatus.md) | |
**error_message** | **str** | | [optional]

Expand All @@ -29,4 +29,3 @@ pod_details_dict = pod_details_instance.to_dict()
pod_details_from_dict = PodDetails.from_dict(pod_details_dict)
```
[[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__ = "4.23.0"
__version__ = "4.23.1"

# import apis into sdk package
from platform_api_python_client.api.external_api import EXTERNALApi
Expand Down Expand Up @@ -66,6 +66,7 @@
from platform_api_python_client.models.create_volume_request import CreateVolumeRequest
from platform_api_python_client.models.credits_response import CreditsResponse
from platform_api_python_client.models.daily_bill_response import DailyBillResponse
from platform_api_python_client.models.deployment_component_type import DeploymentComponentType
from platform_api_python_client.models.deployment_response import DeploymentResponse
from platform_api_python_client.models.deployment_status import DeploymentStatus
from platform_api_python_client.models.deployment_status_request import DeploymentStatusRequest
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.23.0/python'
self.user_agent = 'OpenAPI-Generator/4.23.1/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.23.0".\
"SDK Package Version: 4.23.1".\
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 @@ -49,6 +49,7 @@
from platform_api_python_client.models.create_volume_request import CreateVolumeRequest
from platform_api_python_client.models.credits_response import CreditsResponse
from platform_api_python_client.models.daily_bill_response import DailyBillResponse
from platform_api_python_client.models.deployment_component_type import DeploymentComponentType
from platform_api_python_client.models.deployment_response import DeploymentResponse
from platform_api_python_client.models.deployment_status import DeploymentStatus
from platform_api_python_client.models.deployment_status_request import DeploymentStatusRequest
Expand Down
40 changes: 40 additions & 0 deletions platform_api_python_client/models/deployment_component_type.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# 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 DeploymentComponentType(str, Enum):
"""
DeploymentComponentType
"""

"""
allowed enum values
"""
USER_MINUS_CONTAINER = 'user-container'
FRONTEND = 'frontend'
WORKER = 'worker'
PREFILL = 'prefill'
DECODE = 'decode'
PLANNER = 'planner'
EPP = 'epp'

@classmethod
def from_json(cls, json_str: str) -> Self:
"""Create an instance of DeploymentComponentType from a JSON string"""
return cls(json.loads(json_str))
3 changes: 2 additions & 1 deletion platform_api_python_client/models/pod_details.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr
from typing import Any, ClassVar, Dict, List, Optional
from platform_api_python_client.models.deployment_component_type import DeploymentComponentType
from platform_api_python_client.models.pod_status import PodStatus
from typing import Optional, Set
from typing_extensions import Self
Expand All @@ -29,7 +30,7 @@ class PodDetails(BaseModel):
""" # noqa: E501
name: Optional[StrictStr] = None
revision_number: Optional[StrictInt] = None
component_type: Optional[StrictStr] = None
component_type: Optional[DeploymentComponentType] = None
status: PodStatus
error_message: Optional[StrictStr] = None
__properties: ClassVar[List[str]] = ["name", "revision_number", "component_type", "status", "error_message"]
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.23.0"
version = "4.23.1"
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.23.0"
VERSION = "4.23.1"
PYTHON_REQUIRES = ">= 3.8"
REQUIRES = [
"urllib3 >= 1.25.3, < 3.0.0",
Expand Down
33 changes: 33 additions & 0 deletions test/test_deployment_component_type.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.deployment_component_type import DeploymentComponentType

class TestDeploymentComponentType(unittest.TestCase):
"""DeploymentComponentType unit test stubs"""

def setUp(self):
pass

def tearDown(self):
pass

def testDeploymentComponentType(self):
"""Test DeploymentComponentType"""
# inst = DeploymentComponentType()

if __name__ == '__main__':
unittest.main()
2 changes: 1 addition & 1 deletion test/test_deployment_status_v3_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def make_instance(self, include_optional) -> DeploymentStatusV3Response:
platform_api_python_client.models.pod_details.PodDetails(
name = '',
revision_number = 56,
component_type = '',
component_type = 'user-container',
status = 'ScalingUp',
error_message = '', )
],
Expand Down
2 changes: 1 addition & 1 deletion test/test_pod_details.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def make_instance(self, include_optional) -> PodDetails:
return PodDetails(
name = '',
revision_number = 56,
component_type = '',
component_type = 'user-container',
status = 'ScalingUp',
error_message = ''
)
Expand Down
2 changes: 1 addition & 1 deletion test/test_revision_pod_details.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def make_instance(self, include_optional) -> RevisionPodDetails:
platform_api_python_client.models.pod_details.PodDetails(
name = '',
revision_number = 56,
component_type = '',
component_type = 'user-container',
status = 'ScalingUp',
error_message = '', )
],
Expand Down
Loading