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
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: 4.6.0
- Package version: 4.7.0
- Generator version: 7.9.0
- Build package: org.openapitools.codegen.languages.PythonClientCodegen

Expand Down
1 change: 1 addition & 0 deletions docs/CreateCServeV3DeploymentRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ Name | Type | Description | Notes
**initial_replicas** | **int** | | [optional]
**concurrency** | **int** | | [optional]
**env_vars** | **Dict[str, str]** | | [optional]
**enable_logging** | **bool** | | [optional] [default to True]

## Example

Expand Down
1 change: 1 addition & 0 deletions docs/CreateComputeDeploymentRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Name | Type | Description | Notes
**image_url** | **str** | |
**enable_jupyter** | **bool** | | [optional] [default to False]
**ssh_public_key** | **str** | |
**enable_logging** | **bool** | | [optional] [default to False]

## Example

Expand Down
1 change: 1 addition & 0 deletions docs/CreateInferenceV3DeploymentRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ Name | Type | Description | Notes
**endpoint_bearer_token** | **str** | | [optional]
**endpoint_certificate_authority** | **str** | | [optional]
**backend_protocol** | [**BackendProtocol**](BackendProtocol.md) | | [optional]
**enable_logging** | **bool** | | [optional] [default to False]

## Example

Expand Down
1 change: 1 addition & 0 deletions docs/DeploymentResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ Name | Type | Description | Notes
**endpoint_bearer_token** | **str** | | [optional]
**concurrency** | **int** | | [optional]
**env_vars** | **Dict[str, str]** | | [optional]
**enable_logging** | **bool** | | [optional] [default to True]
**container_port** | **int** | |
**healthcheck** | **str** | | [optional]
**command** | **List[str]** | | [optional]
Expand Down
1 change: 1 addition & 0 deletions docs/GetCServeV3DeploymentResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ Name | Type | Description | Notes
**endpoint_bearer_token** | **str** | | [optional]
**concurrency** | **int** | | [optional]
**env_vars** | **Dict[str, str]** | | [optional]
**enable_logging** | **bool** | | [optional] [default to True]

## Example

Expand Down
1 change: 1 addition & 0 deletions docs/GetComputeDeploymentResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ Name | Type | Description | Notes
**ssh_public_key** | **str** | | [optional]
**ssh_password** | **str** | | [optional]
**env_vars** | **Dict[str, str]** | | [optional]
**enable_logging** | **bool** | | [optional] [default to True]

## Example

Expand Down
1 change: 1 addition & 0 deletions docs/GetInferenceV3DeploymentResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ Name | Type | Description | Notes
**original_command** | **str** | | [optional]
**image_pull_secret_credentials** | [**ImagePullSecretCredentials**](ImagePullSecretCredentials.md) | | [optional]
**backend_protocol** | [**BackendProtocol**](BackendProtocol.md) | | [optional]
**enable_logging** | **bool** | | [optional] [default to True]

## Example

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__ = "4.6.0"
__version__ = "4.7.0"

# 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/4.6.0/python'
self.user_agent = 'OpenAPI-Generator/4.7.0/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.6.0".\
"SDK Package Version: 4.7.0".\
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 @@ -17,7 +17,7 @@
import re # noqa: F401
import json

from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator
from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr, field_validator
from typing import Any, ClassVar, Dict, List, Optional
from typing_extensions import Annotated
from platform_api_python_client.models.c_serve_v2_recipe import CServeV2Recipe
Expand All @@ -43,7 +43,8 @@ class CreateCServeV3DeploymentRequest(BaseModel):
initial_replicas: Optional[StrictInt] = None
concurrency: Optional[StrictInt] = None
env_vars: Optional[Dict[str, StrictStr]] = None
__properties: ClassVar[List[str]] = ["max_surge", "max_unavailable", "name", "cluster_id", "hardware_instance_id", "recipe", "cserve_version", "hf_token", "endpoint_bearer_token", "endpoint_certificate_authority", "min_replicas", "max_replicas", "initial_replicas", "concurrency", "env_vars"]
enable_logging: Optional[StrictBool] = True
__properties: ClassVar[List[str]] = ["max_surge", "max_unavailable", "name", "cluster_id", "hardware_instance_id", "recipe", "cserve_version", "hf_token", "endpoint_bearer_token", "endpoint_certificate_authority", "min_replicas", "max_replicas", "initial_replicas", "concurrency", "env_vars", "enable_logging"]

@field_validator('name')
def name_validate_regular_expression(cls, value):
Expand Down Expand Up @@ -160,7 +161,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
"max_replicas": obj.get("max_replicas"),
"initial_replicas": obj.get("initial_replicas"),
"concurrency": obj.get("concurrency"),
"env_vars": obj.get("env_vars")
"env_vars": obj.get("env_vars"),
"enable_logging": obj.get("enable_logging") if obj.get("enable_logging") is not None else True
})
return _obj

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ class CreateComputeDeploymentRequest(BaseModel):
image_url: StrictStr
enable_jupyter: Optional[StrictBool] = False
ssh_public_key: StrictStr
__properties: ClassVar[List[str]] = ["name", "cluster_id", "hardware_instance_id", "image_url", "enable_jupyter", "ssh_public_key"]
enable_logging: Optional[StrictBool] = False
__properties: ClassVar[List[str]] = ["name", "cluster_id", "hardware_instance_id", "image_url", "enable_jupyter", "ssh_public_key", "enable_logging"]

@field_validator('name')
def name_validate_regular_expression(cls, value):
Expand Down Expand Up @@ -98,7 +99,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
"hardware_instance_id": obj.get("hardware_instance_id"),
"image_url": obj.get("image_url"),
"enable_jupyter": obj.get("enable_jupyter") if obj.get("enable_jupyter") is not None else False,
"ssh_public_key": obj.get("ssh_public_key")
"ssh_public_key": obj.get("ssh_public_key"),
"enable_logging": obj.get("enable_logging") if obj.get("enable_logging") is not None else False
})
return _obj

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import re # noqa: F401
import json

from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator
from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr, field_validator
from typing import Any, ClassVar, Dict, List, Optional
from typing_extensions import Annotated
from platform_api_python_client.models.backend_protocol import BackendProtocol
Expand Down Expand Up @@ -47,7 +47,8 @@ class CreateInferenceV3DeploymentRequest(BaseModel):
endpoint_bearer_token: Optional[StrictStr] = None
endpoint_certificate_authority: Optional[StrictStr] = None
backend_protocol: Optional[BackendProtocol] = None
__properties: ClassVar[List[str]] = ["max_surge", "max_unavailable", "name", "cluster_id", "hardware_instance_id", "image_url", "image_pull_secret_credentials", "port", "min_replicas", "max_replicas", "initial_replicas", "concurrency", "healthcheck", "env_vars", "command", "endpoint_bearer_token", "endpoint_certificate_authority", "backend_protocol"]
enable_logging: Optional[StrictBool] = False
__properties: ClassVar[List[str]] = ["max_surge", "max_unavailable", "name", "cluster_id", "hardware_instance_id", "image_url", "image_pull_secret_credentials", "port", "min_replicas", "max_replicas", "initial_replicas", "concurrency", "healthcheck", "env_vars", "command", "endpoint_bearer_token", "endpoint_certificate_authority", "backend_protocol", "enable_logging"]

@field_validator('name')
def name_validate_regular_expression(cls, value):
Expand Down Expand Up @@ -177,7 +178,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
"command": obj.get("command"),
"endpoint_bearer_token": obj.get("endpoint_bearer_token"),
"endpoint_certificate_authority": obj.get("endpoint_certificate_authority"),
"backend_protocol": obj.get("backend_protocol")
"backend_protocol": obj.get("backend_protocol"),
"enable_logging": obj.get("enable_logging") if obj.get("enable_logging") is not None else False
})
return _obj

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
import json

from datetime import datetime
from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr
from pydantic import BaseModel, ConfigDict, StrictBool, StrictInt, StrictStr
from typing import Any, ClassVar, Dict, List, Optional
from platform_api_python_client.models.c_serve_v2_recipe import CServeV2Recipe
from platform_api_python_client.models.deployment_status import DeploymentStatus
Expand Down Expand Up @@ -50,7 +50,8 @@ class GetCServeV3DeploymentResponse(BaseModel):
endpoint_bearer_token: Optional[StrictStr] = None
concurrency: Optional[StrictInt] = None
env_vars: Optional[Dict[str, StrictStr]] = None
__properties: ClassVar[List[str]] = ["creator_email", "cluster_id", "id", "name", "endpoint_url", "image_url", "type", "status", "created_at", "hardware_instance_id", "revision_number", "recipe", "cserve_version", "min_replicas", "max_replicas", "initial_replicas", "endpoint_certificate_authority", "endpoint_bearer_token", "concurrency", "env_vars"]
enable_logging: Optional[StrictBool] = True
__properties: ClassVar[List[str]] = ["creator_email", "cluster_id", "id", "name", "endpoint_url", "image_url", "type", "status", "created_at", "hardware_instance_id", "revision_number", "recipe", "cserve_version", "min_replicas", "max_replicas", "initial_replicas", "endpoint_certificate_authority", "endpoint_bearer_token", "concurrency", "env_vars", "enable_logging"]

model_config = ConfigDict(
populate_by_name=True,
Expand Down Expand Up @@ -155,7 +156,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
"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")
"env_vars": obj.get("env_vars"),
"enable_logging": obj.get("enable_logging") if obj.get("enable_logging") is not None else True
})
return _obj

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
import json

from datetime import datetime
from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr
from pydantic import BaseModel, ConfigDict, StrictBool, StrictInt, StrictStr
from typing import Any, ClassVar, Dict, List, Optional
from platform_api_python_client.models.deployment_status import DeploymentStatus
from platform_api_python_client.models.deployment_type import DeploymentType
Expand All @@ -44,7 +44,8 @@ class GetComputeDeploymentResponse(BaseModel):
ssh_public_key: Optional[StrictStr] = None
ssh_password: Optional[StrictStr] = None
env_vars: Optional[Dict[str, StrictStr]] = None
__properties: ClassVar[List[str]] = ["creator_email", "cluster_id", "id", "name", "endpoint_url", "image_url", "type", "status", "created_at", "hardware_instance_id", "revision_number", "exposed_port", "ssh_public_key", "ssh_password", "env_vars"]
enable_logging: Optional[StrictBool] = True
__properties: ClassVar[List[str]] = ["creator_email", "cluster_id", "id", "name", "endpoint_url", "image_url", "type", "status", "created_at", "hardware_instance_id", "revision_number", "exposed_port", "ssh_public_key", "ssh_password", "env_vars", "enable_logging"]

model_config = ConfigDict(
populate_by_name=True,
Expand Down Expand Up @@ -131,7 +132,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
"exposed_port": obj.get("exposed_port"),
"ssh_public_key": obj.get("ssh_public_key"),
"ssh_password": obj.get("ssh_password"),
"env_vars": obj.get("env_vars")
"env_vars": obj.get("env_vars"),
"enable_logging": obj.get("enable_logging") if obj.get("enable_logging") is not None else True
})
return _obj

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
import json

from datetime import datetime
from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr
from pydantic import BaseModel, ConfigDict, StrictBool, StrictInt, StrictStr
from typing import Any, ClassVar, Dict, List, Optional
from platform_api_python_client.models.backend_protocol import BackendProtocol
from platform_api_python_client.models.deployment_status import DeploymentStatus
Expand Down Expand Up @@ -56,7 +56,8 @@ class GetInferenceV3DeploymentResponse(BaseModel):
original_command: Optional[StrictStr] = None
image_pull_secret_credentials: Optional[ImagePullSecretCredentials] = None
backend_protocol: Optional[BackendProtocol] = None
__properties: ClassVar[List[str]] = ["creator_email", "cluster_id", "id", "name", "endpoint_url", "image_url", "type", "status", "created_at", "hardware_instance_id", "revision_number", "container_port", "min_replicas", "max_replicas", "initial_replicas", "concurrency", "healthcheck", "endpoint_certificate_authority", "endpoint_bearer_token", "env_vars", "command", "command_args", "original_command", "image_pull_secret_credentials", "backend_protocol"]
enable_logging: Optional[StrictBool] = True
__properties: ClassVar[List[str]] = ["creator_email", "cluster_id", "id", "name", "endpoint_url", "image_url", "type", "status", "created_at", "hardware_instance_id", "revision_number", "container_port", "min_replicas", "max_replicas", "initial_replicas", "concurrency", "healthcheck", "endpoint_certificate_authority", "endpoint_bearer_token", "env_vars", "command", "command_args", "original_command", "image_pull_secret_credentials", "backend_protocol", "enable_logging"]

model_config = ConfigDict(
populate_by_name=True,
Expand Down Expand Up @@ -191,7 +192,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
"command_args": obj.get("command_args"),
"original_command": obj.get("original_command"),
"image_pull_secret_credentials": ImagePullSecretCredentials.from_dict(obj["image_pull_secret_credentials"]) if obj.get("image_pull_secret_credentials") is not None else None,
"backend_protocol": obj.get("backend_protocol")
"backend_protocol": obj.get("backend_protocol"),
"enable_logging": obj.get("enable_logging") if obj.get("enable_logging") is not None else True
})
return _obj

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.6.0"
version = "4.7.0"
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.6.0"
VERSION = "4.7.0"
PYTHON_REQUIRES = ">= 3.8"
REQUIRES = [
"urllib3 >= 1.25.3, < 3.0.0",
Expand Down
3 changes: 2 additions & 1 deletion test/test_create_c_serve_v3_deployment_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ def make_instance(self, include_optional) -> CreateCServeV3DeploymentRequest:
concurrency = 56,
env_vars = {
'key' : ''
}
},
enable_logging = True
)
else:
return CreateCServeV3DeploymentRequest(
Expand Down
3 changes: 2 additions & 1 deletion test/test_create_compute_deployment_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ def make_instance(self, include_optional) -> CreateComputeDeploymentRequest:
hardware_instance_id = 56,
image_url = '',
enable_jupyter = True,
ssh_public_key = ''
ssh_public_key = '',
enable_logging = True
)
else:
return CreateComputeDeploymentRequest(
Expand Down
3 changes: 2 additions & 1 deletion test/test_create_inference_v3_deployment_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ def make_instance(self, include_optional) -> CreateInferenceV3DeploymentRequest:
command = '',
endpoint_bearer_token = '',
endpoint_certificate_authority = '',
backend_protocol = 'HTTP'
backend_protocol = 'HTTP',
enable_logging = True
)
else:
return CreateInferenceV3DeploymentRequest(
Expand Down
1 change: 1 addition & 0 deletions test/test_deployment_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ def make_instance(self, include_optional) -> DeploymentResponse:
env_vars = {
'key' : ''
},
enable_logging = True,
container_port = 56,
healthcheck = '',
command = [
Expand Down
3 changes: 2 additions & 1 deletion test/test_get_c_serve_v3_deployment_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ def make_instance(self, include_optional) -> GetCServeV3DeploymentResponse:
concurrency = 56,
env_vars = {
'key' : ''
}
},
enable_logging = True
)
else:
return GetCServeV3DeploymentResponse(
Expand Down
3 changes: 2 additions & 1 deletion test/test_get_compute_deployment_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ def make_instance(self, include_optional) -> GetComputeDeploymentResponse:
ssh_password = '',
env_vars = {
'key' : ''
}
},
enable_logging = True
)
else:
return GetComputeDeploymentResponse(
Expand Down
3 changes: 2 additions & 1 deletion test/test_get_inference_v3_deployment_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ def make_instance(self, include_optional) -> GetInferenceV3DeploymentResponse:
image_pull_secret_credentials = platform_api_python_client.models.image_pull_secret_credentials.ImagePullSecretCredentials(
username = '',
password = '', ),
backend_protocol = 'HTTP'
backend_protocol = 'HTTP',
enable_logging = True
)
else:
return GetInferenceV3DeploymentResponse(
Expand Down