Skip to content

[Client] Automatic update from platform release (4.0.1) #30

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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
2 changes: 1 addition & 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: 3.2.10
- Package version: 4.0.1
- Generator version: 7.9.0
- Build package: org.openapitools.codegen.languages.PythonClientCodegen

Expand Down
2 changes: 2 additions & 0 deletions docs/CreateCServeV2DeploymentRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,11 @@ Name | Type | Description | Notes
**hardware_instance_id** | **int** | |
**recipe** | [**CServeV2Recipe**](CServeV2Recipe.md) | |
**hf_token** | **str** | | [optional]
**endpoint_bearer_token** | **str** | | [optional]
**endpoint_certificate_authority** | **str** | | [optional]
**min_scale** | **int** | |
**max_scale** | **int** | |
**initial_scale** | **int** | | [optional]
**concurrency** | **int** | | [optional]
**env_vars** | **Dict[str, str]** | | [optional]

Expand Down
2 changes: 2 additions & 0 deletions docs/CreateInferenceDeploymentRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,12 @@ Name | Type | Description | Notes
**port** | **int** | |
**min_scale** | **int** | |
**max_scale** | **int** | |
**initial_scale** | **int** | | [optional]
**concurrency** | **int** | | [optional]
**healthcheck** | **str** | | [optional]
**env_vars** | **Dict[str, str]** | | [optional]
**command** | **str** | | [optional]
**endpoint_bearer_token** | **str** | | [optional]
**endpoint_certificate_authority** | **str** | | [optional]

## Example
Expand Down
2 changes: 2 additions & 0 deletions docs/CreateRagDeploymentRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ Name | Type | Description | Notes
**centml_api_key** | **str** | |
**min_scale** | **int** | | [optional] [default to 1]
**max_scale** | **int** | | [optional] [default to 1]
**initial_scale** | **int** | | [optional]
**endpoint_bearer_token** | **str** | | [optional]
**endpoint_certificate_authority** | **str** | | [optional]
**concurrency** | **int** | | [optional]
**env_vars** | **Dict[str, str]** | | [optional]
Expand Down
2 changes: 2 additions & 0 deletions docs/GetCServeV2DeploymentResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ Name | Type | Description | Notes
**recipe** | [**CServeV2Recipe**](CServeV2Recipe.md) | |
**min_scale** | **int** | |
**max_scale** | **int** | |
**initial_scale** | **int** | | [optional]
**endpoint_certificate_authority** | **str** | | [optional]
**endpoint_bearer_token** | **str** | | [optional]
**concurrency** | **int** | | [optional]
**env_vars** | **Dict[str, str]** | | [optional]

Expand Down
2 changes: 2 additions & 0 deletions docs/GetInferenceDeploymentResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,11 @@ Name | Type | Description | Notes
**container_port** | **int** | |
**min_scale** | **int** | |
**max_scale** | **int** | |
**initial_scale** | **int** | | [optional]
**concurrency** | **int** | | [optional]
**healthcheck** | **str** | | [optional]
**endpoint_certificate_authority** | **str** | | [optional]
**endpoint_bearer_token** | **str** | | [optional]
**env_vars** | **Dict[str, str]** | | [optional]
**command** | **List[str]** | | [optional]
**command_args** | **List[str]** | | [optional]
Expand Down
2 changes: 2 additions & 0 deletions docs/GetRagDeploymentResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ Name | Type | Description | Notes
**centml_api_key** | **str** | |
**min_scale** | **int** | | [optional] [default to 1]
**max_scale** | **int** | | [optional] [default to 1]
**initial_scale** | **int** | | [optional]
**endpoint_certificate_authority** | **str** | | [optional]
**endpoint_bearer_token** | **str** | | [optional]
**concurrency** | **int** | | [optional]
**env_vars** | **Dict[str, str]** | | [optional]

Expand Down
2 changes: 2 additions & 0 deletions docs/UserVaultType.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@

* `SSH_KEYS` (value: `'ssh_keys'`)

* `BEARER_TOKENS` (value: `'bearer_tokens'`)

* `ACCESS_TOKENS` (value: `'access_tokens'`)

* `CERTIFICATES` (value: `'certificates'`)
Expand Down
2 changes: 1 addition & 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__ = "3.2.10"
__version__ = "4.0.1"

# import apis into sdk package
from platform_api_python_client.api.external_api import EXTERNALApi
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/3.2.10/python'
self.user_agent = 'OpenAPI-Generator/4.0.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: 3.2.10".\
"SDK Package Version: 4.0.1".\
format(env=sys.platform, pyversion=sys.version)

def get_host_settings(self):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,14 @@ class CreateCServeV2DeploymentRequest(BaseModel):
hardware_instance_id: StrictInt
recipe: CServeV2Recipe
hf_token: Optional[StrictStr] = None
endpoint_bearer_token: Optional[StrictStr] = None
endpoint_certificate_authority: Optional[StrictStr] = None
min_scale: StrictInt
max_scale: StrictInt
initial_scale: Optional[StrictInt] = None
concurrency: Optional[StrictInt] = None
env_vars: Optional[Dict[str, StrictStr]] = None
__properties: ClassVar[List[str]] = ["name", "cluster_id", "hardware_instance_id", "recipe", "hf_token", "endpoint_certificate_authority", "min_scale", "max_scale", "concurrency", "env_vars"]
__properties: ClassVar[List[str]] = ["name", "cluster_id", "hardware_instance_id", "recipe", "hf_token", "endpoint_bearer_token", "endpoint_certificate_authority", "min_scale", "max_scale", "initial_scale", "concurrency", "env_vars"]

@field_validator('name')
def name_validate_regular_expression(cls, value):
Expand Down Expand Up @@ -94,11 +96,21 @@ def to_dict(self) -> Dict[str, Any]:
if self.hf_token is None and "hf_token" in self.model_fields_set:
_dict['hf_token'] = None

# set to None if endpoint_bearer_token (nullable) is None
# and model_fields_set contains the field
if self.endpoint_bearer_token is None and "endpoint_bearer_token" in self.model_fields_set:
_dict['endpoint_bearer_token'] = None

# set to None if endpoint_certificate_authority (nullable) is None
# and model_fields_set contains the field
if self.endpoint_certificate_authority is None and "endpoint_certificate_authority" in self.model_fields_set:
_dict['endpoint_certificate_authority'] = None

# set to None if initial_scale (nullable) is None
# and model_fields_set contains the field
if self.initial_scale is None and "initial_scale" in self.model_fields_set:
_dict['initial_scale'] = None

# set to None if concurrency (nullable) is None
# and model_fields_set contains the field
if self.concurrency is None and "concurrency" in self.model_fields_set:
Expand All @@ -121,9 +133,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
"hardware_instance_id": obj.get("hardware_instance_id"),
"recipe": CServeV2Recipe.from_dict(obj["recipe"]) if obj.get("recipe") is not None else None,
"hf_token": obj.get("hf_token"),
"endpoint_bearer_token": obj.get("endpoint_bearer_token"),
"endpoint_certificate_authority": obj.get("endpoint_certificate_authority"),
"min_scale": obj.get("min_scale"),
"max_scale": obj.get("max_scale"),
"initial_scale": obj.get("initial_scale"),
"concurrency": obj.get("concurrency"),
"env_vars": obj.get("env_vars")
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,14 @@ class CreateInferenceDeploymentRequest(BaseModel):
port: StrictInt
min_scale: StrictInt
max_scale: StrictInt
initial_scale: Optional[StrictInt] = None
concurrency: Optional[StrictInt] = None
healthcheck: Optional[StrictStr] = None
env_vars: Optional[Dict[str, StrictStr]] = None
command: Optional[StrictStr] = None
endpoint_bearer_token: Optional[StrictStr] = None
endpoint_certificate_authority: Optional[StrictStr] = None
__properties: ClassVar[List[str]] = ["name", "cluster_id", "hardware_instance_id", "image_url", "port", "min_scale", "max_scale", "concurrency", "healthcheck", "env_vars", "command", "endpoint_certificate_authority"]
__properties: ClassVar[List[str]] = ["name", "cluster_id", "hardware_instance_id", "image_url", "port", "min_scale", "max_scale", "initial_scale", "concurrency", "healthcheck", "env_vars", "command", "endpoint_bearer_token", "endpoint_certificate_authority"]

@field_validator('name')
def name_validate_regular_expression(cls, value):
Expand Down Expand Up @@ -87,6 +89,11 @@ def to_dict(self) -> Dict[str, Any]:
exclude=excluded_fields,
exclude_none=True,
)
# set to None if initial_scale (nullable) is None
# and model_fields_set contains the field
if self.initial_scale is None and "initial_scale" in self.model_fields_set:
_dict['initial_scale'] = None

# set to None if concurrency (nullable) is None
# and model_fields_set contains the field
if self.concurrency is None and "concurrency" in self.model_fields_set:
Expand All @@ -107,6 +114,11 @@ def to_dict(self) -> Dict[str, Any]:
if self.command is None and "command" in self.model_fields_set:
_dict['command'] = None

# set to None if endpoint_bearer_token (nullable) is None
# and model_fields_set contains the field
if self.endpoint_bearer_token is None and "endpoint_bearer_token" in self.model_fields_set:
_dict['endpoint_bearer_token'] = None

# set to None if endpoint_certificate_authority (nullable) is None
# and model_fields_set contains the field
if self.endpoint_certificate_authority is None and "endpoint_certificate_authority" in self.model_fields_set:
Expand All @@ -131,10 +143,12 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
"port": obj.get("port"),
"min_scale": obj.get("min_scale"),
"max_scale": obj.get("max_scale"),
"initial_scale": obj.get("initial_scale"),
"concurrency": obj.get("concurrency"),
"healthcheck": obj.get("healthcheck"),
"env_vars": obj.get("env_vars"),
"command": obj.get("command"),
"endpoint_bearer_token": obj.get("endpoint_bearer_token"),
"endpoint_certificate_authority": obj.get("endpoint_certificate_authority")
})
return _obj
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,12 @@ class CreateRagDeploymentRequest(BaseModel):
centml_api_key: StrictStr
min_scale: Optional[StrictInt] = 1
max_scale: Optional[StrictInt] = 1
initial_scale: Optional[StrictInt] = None
endpoint_bearer_token: Optional[StrictStr] = None
endpoint_certificate_authority: Optional[StrictStr] = None
concurrency: Optional[StrictInt] = None
env_vars: Optional[Dict[str, StrictStr]] = None
__properties: ClassVar[List[str]] = ["name", "cluster_id", "hardware_instance_id", "recipe", "hf_token", "llm_model", "centml_api_key", "min_scale", "max_scale", "endpoint_certificate_authority", "concurrency", "env_vars"]
__properties: ClassVar[List[str]] = ["name", "cluster_id", "hardware_instance_id", "recipe", "hf_token", "llm_model", "centml_api_key", "min_scale", "max_scale", "initial_scale", "endpoint_bearer_token", "endpoint_certificate_authority", "concurrency", "env_vars"]

@field_validator('name')
def name_validate_regular_expression(cls, value):
Expand Down Expand Up @@ -96,6 +98,16 @@ def to_dict(self) -> Dict[str, Any]:
if self.hf_token is None and "hf_token" in self.model_fields_set:
_dict['hf_token'] = None

# set to None if initial_scale (nullable) is None
# and model_fields_set contains the field
if self.initial_scale is None and "initial_scale" in self.model_fields_set:
_dict['initial_scale'] = None

# set to None if endpoint_bearer_token (nullable) is None
# and model_fields_set contains the field
if self.endpoint_bearer_token is None and "endpoint_bearer_token" in self.model_fields_set:
_dict['endpoint_bearer_token'] = None

# set to None if endpoint_certificate_authority (nullable) is None
# and model_fields_set contains the field
if self.endpoint_certificate_authority is None and "endpoint_certificate_authority" in self.model_fields_set:
Expand Down Expand Up @@ -127,6 +139,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
"centml_api_key": obj.get("centml_api_key"),
"min_scale": obj.get("min_scale") if obj.get("min_scale") is not None else 1,
"max_scale": obj.get("max_scale") if obj.get("max_scale") is not None else 1,
"initial_scale": obj.get("initial_scale"),
"endpoint_bearer_token": obj.get("endpoint_bearer_token"),
"endpoint_certificate_authority": obj.get("endpoint_certificate_authority"),
"concurrency": obj.get("concurrency"),
"env_vars": obj.get("env_vars")
Expand Down
5 changes: 3 additions & 2 deletions platform_api_python_client/models/create_url_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,17 @@
import re # noqa: F401
import json

from pydantic import BaseModel, ConfigDict, StrictStr
from pydantic import BaseModel, ConfigDict, Field
from typing import Any, ClassVar, Dict, List
from typing_extensions import Annotated
from typing import Optional, Set
from typing_extensions import Self

class CreateUrlResponse(BaseModel):
"""
CreateUrlResponse
""" # noqa: E501
url: StrictStr
url: Annotated[str, Field(min_length=1, strict=True)]
__properties: ClassVar[List[str]] = ["url"]

model_config = ConfigDict(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,12 @@ class GetCServeV2DeploymentResponse(BaseModel):
recipe: CServeV2Recipe
min_scale: StrictInt
max_scale: StrictInt
initial_scale: Optional[StrictInt] = None
endpoint_certificate_authority: Optional[StrictStr] = None
endpoint_bearer_token: Optional[StrictStr] = None
concurrency: Optional[StrictInt] = None
env_vars: Optional[Dict[str, StrictStr]] = None
__properties: ClassVar[List[str]] = ["cluster_id", "id", "name", "endpoint_url", "image_url", "type", "status", "created_at", "hardware_instance_id", "recipe", "min_scale", "max_scale", "endpoint_certificate_authority", "concurrency", "env_vars"]
__properties: ClassVar[List[str]] = ["cluster_id", "id", "name", "endpoint_url", "image_url", "type", "status", "created_at", "hardware_instance_id", "recipe", "min_scale", "max_scale", "initial_scale", "endpoint_certificate_authority", "endpoint_bearer_token", "concurrency", "env_vars"]

model_config = ConfigDict(
populate_by_name=True,
Expand Down Expand Up @@ -94,11 +96,21 @@ def to_dict(self) -> Dict[str, Any]:
if self.image_url is None and "image_url" in self.model_fields_set:
_dict['image_url'] = None

# set to None if initial_scale (nullable) is None
# and model_fields_set contains the field
if self.initial_scale is None and "initial_scale" in self.model_fields_set:
_dict['initial_scale'] = None

# set to None if endpoint_certificate_authority (nullable) is None
# and model_fields_set contains the field
if self.endpoint_certificate_authority is None and "endpoint_certificate_authority" in self.model_fields_set:
_dict['endpoint_certificate_authority'] = None

# set to None if endpoint_bearer_token (nullable) is None
# and model_fields_set contains the field
if self.endpoint_bearer_token is None and "endpoint_bearer_token" in self.model_fields_set:
_dict['endpoint_bearer_token'] = None

# set to None if concurrency (nullable) is None
# and model_fields_set contains the field
if self.concurrency is None and "concurrency" in self.model_fields_set:
Expand Down Expand Up @@ -128,7 +140,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
"recipe": CServeV2Recipe.from_dict(obj["recipe"]) if obj.get("recipe") is not None else None,
"min_scale": obj.get("min_scale"),
"max_scale": obj.get("max_scale"),
"initial_scale": obj.get("initial_scale"),
"endpoint_certificate_authority": obj.get("endpoint_certificate_authority"),
"endpoint_bearer_token": obj.get("endpoint_bearer_token"),
"concurrency": obj.get("concurrency"),
"env_vars": obj.get("env_vars")
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,15 @@ class GetInferenceDeploymentResponse(BaseModel):
container_port: StrictInt
min_scale: StrictInt
max_scale: StrictInt
initial_scale: Optional[StrictInt] = None
concurrency: Optional[StrictInt] = None
healthcheck: Optional[StrictStr] = None
endpoint_certificate_authority: Optional[StrictStr] = None
endpoint_bearer_token: Optional[StrictStr] = None
env_vars: Optional[Dict[str, StrictStr]] = None
command: Optional[List[StrictStr]] = None
command_args: Optional[List[StrictStr]] = None
__properties: ClassVar[List[str]] = ["cluster_id", "id", "name", "endpoint_url", "image_url", "type", "status", "created_at", "hardware_instance_id", "container_port", "min_scale", "max_scale", "concurrency", "healthcheck", "endpoint_certificate_authority", "env_vars", "command", "command_args"]
__properties: ClassVar[List[str]] = ["cluster_id", "id", "name", "endpoint_url", "image_url", "type", "status", "created_at", "hardware_instance_id", "container_port", "min_scale", "max_scale", "initial_scale", "concurrency", "healthcheck", "endpoint_certificate_authority", "endpoint_bearer_token", "env_vars", "command", "command_args"]

model_config = ConfigDict(
populate_by_name=True,
Expand Down Expand Up @@ -93,6 +95,11 @@ def to_dict(self) -> Dict[str, Any]:
if self.image_url is None and "image_url" in self.model_fields_set:
_dict['image_url'] = None

# set to None if initial_scale (nullable) is None
# and model_fields_set contains the field
if self.initial_scale is None and "initial_scale" in self.model_fields_set:
_dict['initial_scale'] = None

# set to None if concurrency (nullable) is None
# and model_fields_set contains the field
if self.concurrency is None and "concurrency" in self.model_fields_set:
Expand All @@ -108,6 +115,11 @@ def to_dict(self) -> Dict[str, Any]:
if self.endpoint_certificate_authority is None and "endpoint_certificate_authority" in self.model_fields_set:
_dict['endpoint_certificate_authority'] = None

# set to None if endpoint_bearer_token (nullable) is None
# and model_fields_set contains the field
if self.endpoint_bearer_token is None and "endpoint_bearer_token" in self.model_fields_set:
_dict['endpoint_bearer_token'] = None

# set to None if env_vars (nullable) is None
# and model_fields_set contains the field
if self.env_vars is None and "env_vars" in self.model_fields_set:
Expand Down Expand Up @@ -147,9 +159,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
"container_port": obj.get("container_port"),
"min_scale": obj.get("min_scale"),
"max_scale": obj.get("max_scale"),
"initial_scale": obj.get("initial_scale"),
"concurrency": obj.get("concurrency"),
"healthcheck": obj.get("healthcheck"),
"endpoint_certificate_authority": obj.get("endpoint_certificate_authority"),
"endpoint_bearer_token": obj.get("endpoint_bearer_token"),
"env_vars": obj.get("env_vars"),
"command": obj.get("command"),
"command_args": obj.get("command_args")
Expand Down
Loading