From dcaa3b79b35df39d0f8e847f01f004f93b79a422 Mon Sep 17 00:00:00 2001 From: platform CI Date: Wed, 29 Jul 2026 18:29:17 +0000 Subject: [PATCH] Update clients to latest platform release (4.23.1) --- README.md | 3 +- docs/DeploymentComponentType.md | 20 ++++++++++ docs/PodDetails.md | 3 +- platform_api_python_client/__init__.py | 3 +- platform_api_python_client/api_client.py | 2 +- platform_api_python_client/configuration.py | 2 +- platform_api_python_client/models/__init__.py | 1 + .../models/deployment_component_type.py | 40 +++++++++++++++++++ .../models/pod_details.py | 3 +- pyproject.toml | 2 +- setup.py | 2 +- test/test_deployment_component_type.py | 33 +++++++++++++++ test/test_deployment_status_v3_response.py | 2 +- test/test_pod_details.py | 2 +- test/test_revision_pod_details.py | 2 +- 15 files changed, 108 insertions(+), 12 deletions(-) create mode 100644 docs/DeploymentComponentType.md create mode 100644 platform_api_python_client/models/deployment_component_type.py create mode 100644 test/test_deployment_component_type.py diff --git a/README.md b/README.md index 1b7ee42..5573020 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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) diff --git a/docs/DeploymentComponentType.md b/docs/DeploymentComponentType.md new file mode 100644 index 0000000..15238c5 --- /dev/null +++ b/docs/DeploymentComponentType.md @@ -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) diff --git a/docs/PodDetails.md b/docs/PodDetails.md index 9944a92..c5884d4 100644 --- a/docs/PodDetails.md +++ b/docs/PodDetails.md @@ -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] @@ -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) - diff --git a/platform_api_python_client/__init__.py b/platform_api_python_client/__init__.py index f149cf6..416547b 100644 --- a/platform_api_python_client/__init__.py +++ b/platform_api_python_client/__init__.py @@ -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 @@ -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 diff --git a/platform_api_python_client/api_client.py b/platform_api_python_client/api_client.py index d78655e..3d882c0 100644 --- a/platform_api_python_client/api_client.py +++ b/platform_api_python_client/api_client.py @@ -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): diff --git a/platform_api_python_client/configuration.py b/platform_api_python_client/configuration.py index 5f17ff3..ce69e3e 100644 --- a/platform_api_python_client/configuration.py +++ b/platform_api_python_client/configuration.py @@ -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): diff --git a/platform_api_python_client/models/__init__.py b/platform_api_python_client/models/__init__.py index fd8ac52..d7bd6fe 100644 --- a/platform_api_python_client/models/__init__.py +++ b/platform_api_python_client/models/__init__.py @@ -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 diff --git a/platform_api_python_client/models/deployment_component_type.py b/platform_api_python_client/models/deployment_component_type.py new file mode 100644 index 0000000..b2509e8 --- /dev/null +++ b/platform_api_python_client/models/deployment_component_type.py @@ -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)) diff --git a/platform_api_python_client/models/pod_details.py b/platform_api_python_client/models/pod_details.py index dca15b0..b32aa19 100644 --- a/platform_api_python_client/models/pod_details.py +++ b/platform_api_python_client/models/pod_details.py @@ -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 @@ -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"] diff --git a/pyproject.toml b/pyproject.toml index 62d21a9..0a33d68 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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 "] license = "NoLicense" diff --git a/setup.py b/setup.py index 329a777..9e254ed 100644 --- a/setup.py +++ b/setup.py @@ -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", diff --git a/test/test_deployment_component_type.py b/test/test_deployment_component_type.py new file mode 100644 index 0000000..d38cc1a --- /dev/null +++ b/test/test_deployment_component_type.py @@ -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() diff --git a/test/test_deployment_status_v3_response.py b/test/test_deployment_status_v3_response.py index 5b3459e..e9d22e9 100644 --- a/test/test_deployment_status_v3_response.py +++ b/test/test_deployment_status_v3_response.py @@ -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 = '', ) ], diff --git a/test/test_pod_details.py b/test/test_pod_details.py index 44e1bec..d0c5c52 100644 --- a/test/test_pod_details.py +++ b/test/test_pod_details.py @@ -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 = '' ) diff --git a/test/test_revision_pod_details.py b/test/test_revision_pod_details.py index 549626c..6827031 100644 --- a/test/test_revision_pod_details.py +++ b/test/test_revision_pod_details.py @@ -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 = '', ) ],