Skip to content

Commit ac7ec30

Browse files
Update clients to latest platform release (4.5.1) (#67)
Co-authored-by: platform CI <automation@centml.ai>
1 parent e793fb7 commit ac7ec30

18 files changed

+110
-13
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: 4.4.0
7+
- Package version: 4.5.1
88
- Generator version: 7.9.0
99
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
1010

@@ -145,6 +145,7 @@ Class | Method | HTTP request | Description
145145

146146
- [APIKeyRequest](docs/APIKeyRequest.md)
147147
- [APIKeyResponse](docs/APIKeyResponse.md)
148+
- [BackendProtocol](docs/BackendProtocol.md)
148149
- [CServeRecipePerf](docs/CServeRecipePerf.md)
149150
- [CServeRecipeResponse](docs/CServeRecipeResponse.md)
150151
- [CServeV2Recipe](docs/CServeV2Recipe.md)

docs/BackendProtocol.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# BackendProtocol
2+
3+
4+
## Enum
5+
6+
* `HTTP` (value: `'HTTP'`)
7+
8+
* `GRPC` (value: `'GRPC'`)
9+
10+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
11+
12+

docs/CreateInferenceV3DeploymentRequest.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ Name | Type | Description | Notes
2222
**command** | **str** | | [optional]
2323
**endpoint_bearer_token** | **str** | | [optional]
2424
**endpoint_certificate_authority** | **str** | | [optional]
25+
**backend_protocol** | [**BackendProtocol**](BackendProtocol.md) | | [optional]
2526

2627
## Example
2728

docs/DeploymentResponse.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ Name | Type | Description | Notes
3131
**command_args** | **List[str]** | | [optional]
3232
**original_command** | **str** | | [optional]
3333
**image_pull_secret_credentials** | [**ImagePullSecretCredentials**](ImagePullSecretCredentials.md) | | [optional]
34+
**backend_protocol** | [**BackendProtocol**](BackendProtocol.md) | | [optional]
3435

3536
## Example
3637

docs/GetInferenceV3DeploymentResponse.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ Name | Type | Description | Notes
2929
**command_args** | **List[str]** | | [optional]
3030
**original_command** | **str** | | [optional]
3131
**image_pull_secret_credentials** | [**ImagePullSecretCredentials**](ImagePullSecretCredentials.md) | | [optional]
32+
**backend_protocol** | [**BackendProtocol**](BackendProtocol.md) | | [optional]
3233

3334
## Example
3435

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.4.0"
17+
__version__ = "4.5.1"
1818

1919
# import apis into sdk package
2020
from platform_api_python_client.api.external_api import EXTERNALApi
@@ -33,6 +33,7 @@
3333
# import models into sdk package
3434
from platform_api_python_client.models.api_key_request import APIKeyRequest
3535
from platform_api_python_client.models.api_key_response import APIKeyResponse
36+
from platform_api_python_client.models.backend_protocol import BackendProtocol
3637
from platform_api_python_client.models.c_serve_recipe_perf import CServeRecipePerf
3738
from platform_api_python_client.models.c_serve_recipe_response import CServeRecipeResponse
3839
from platform_api_python_client.models.c_serve_v2_recipe import CServeV2Recipe

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.4.0/python'
93+
self.user_agent = 'OpenAPI-Generator/4.5.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.4.0".\
395+
"SDK Package Version: 4.5.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
@@ -16,6 +16,7 @@
1616
# import models into model package
1717
from platform_api_python_client.models.api_key_request import APIKeyRequest
1818
from platform_api_python_client.models.api_key_response import APIKeyResponse
19+
from platform_api_python_client.models.backend_protocol import BackendProtocol
1920
from platform_api_python_client.models.c_serve_recipe_perf import CServeRecipePerf
2021
from platform_api_python_client.models.c_serve_recipe_response import CServeRecipeResponse
2122
from platform_api_python_client.models.c_serve_v2_recipe import CServeV2Recipe
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
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 BackendProtocol(str, Enum):
22+
"""
23+
BackendProtocol
24+
"""
25+
26+
"""
27+
allowed enum values
28+
"""
29+
HTTP = 'HTTP'
30+
GRPC = 'GRPC'
31+
32+
@classmethod
33+
def from_json(cls, json_str: str) -> Self:
34+
"""Create an instance of BackendProtocol from a JSON string"""
35+
return cls(json.loads(json_str))
36+
37+

0 commit comments

Comments
 (0)