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

Expand Down
1 change: 1 addition & 0 deletions docs/CreateComputeDeploymentRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ Name | Type | Description | Notes
**image_url** | **str** | |
**image_pull_secret_credentials** | [**ImagePullSecretCredentials**](ImagePullSecretCredentials.md) | | [optional]
**image_pull_ref** | **int** | | [optional]
**image_pull_secret_name** | **str** | Name of a pre-existing image pull Secret in the deployment namespace. Created, refreshed and deleted externally. Mutually exclusive with inline registry credentials and image_pull_ref. Include on updates to retain it; null clears it. | [optional]
**env_vars_refs** | **object** | | [optional]
**ssh_public_key** | **str** | |
**enable_logging** | **bool** | | [optional] [default to False]
Expand Down
1 change: 1 addition & 0 deletions docs/CreateInferenceV3DeploymentRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ Name | Type | Description | Notes
**image_url** | **str** | |
**image_pull_secret_credentials** | [**ImagePullSecretCredentials**](ImagePullSecretCredentials.md) | | [optional]
**image_pull_ref** | **int** | | [optional]
**image_pull_secret_name** | **str** | Name of a pre-existing image pull Secret in the deployment namespace. Created, refreshed and deleted externally. Mutually exclusive with inline registry credentials and image_pull_ref. Include on updates to retain it; null clears it. | [optional]
**port** | **int** | |
**min_replicas** | **int** | |
**max_replicas** | **int** | |
Expand Down
1 change: 1 addition & 0 deletions docs/CreateJobDeploymentRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ Name | Type | Description | Notes
**image_url** | **str** | |
**image_pull_secret_credentials** | [**ImagePullSecretCredentials**](ImagePullSecretCredentials.md) | | [optional]
**image_pull_ref** | **int** | | [optional]
**image_pull_secret_name** | **str** | Name of a pre-existing image pull Secret in the deployment namespace. Created, refreshed and deleted externally. Mutually exclusive with inline registry credentials and image_pull_ref. Include on updates to retain it; null clears it. | [optional]
**env_vars** | **Dict[str, str]** | | [optional]
**env_vars_refs** | **object** | | [optional]
**command** | **str** | | [optional]
Expand Down
1 change: 1 addition & 0 deletions docs/DeploymentResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ Name | Type | Description | Notes
**command_args** | **List[str]** | | [optional]
**original_command** | **str** | | [optional]
**image_pull_secret_credentials** | [**ImagePullSecretCredentials**](ImagePullSecretCredentials.md) | | [optional]
**image_pull_secret_name** | **str** | Name of a pre-existing image pull Secret in the deployment namespace. Created, refreshed and deleted externally. Mutually exclusive with inline registry credentials and image_pull_ref. Include on updates to retain it; null clears it. | [optional]
**config_file** | [**ConfigFileMount**](ConfigFileMount.md) | | [optional]
**metrics** | [**MetricsConfig**](MetricsConfig.md) | | [optional]
**exposed_port** | **int** | |
Expand Down
1 change: 1 addition & 0 deletions docs/GetComputeDeploymentResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ Name | Type | Description | Notes
**image_pull_secret_credentials** | [**ImagePullSecretCredentials**](ImagePullSecretCredentials.md) | | [optional]
**env_vars_refs** | **object** | | [optional]
**image_pull_ref** | **int** | | [optional]
**image_pull_secret_name** | **str** | Name of a pre-existing image pull Secret in the deployment namespace. Created, refreshed and deleted externally. Mutually exclusive with inline registry credentials and image_pull_ref. Include on updates to retain it; null clears it. | [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 @@ -37,6 +37,7 @@ Name | Type | Description | Notes
**env_vars_refs** | **object** | | [optional]
**bearer_token_ref** | **int** | | [optional]
**image_pull_ref** | **int** | | [optional]
**image_pull_secret_name** | **str** | Name of a pre-existing image pull Secret in the deployment namespace. Created, refreshed and deleted externally. Mutually exclusive with inline registry credentials and image_pull_ref. Include on updates to retain it; null clears it. | [optional]
**backend_protocol** | [**BackendProtocol**](BackendProtocol.md) | | [optional]
**enable_logging** | **bool** | | [optional] [default to True]
**enable_node_model_cache** | **bool** | | [optional] [default to False]
Expand Down
1 change: 1 addition & 0 deletions docs/GetJobDeploymentResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ Name | Type | Description | Notes
**image_pull_secret_credentials** | [**ImagePullSecretCredentials**](ImagePullSecretCredentials.md) | | [optional]
**env_vars_refs** | **object** | | [optional]
**image_pull_ref** | **int** | | [optional]
**image_pull_secret_name** | **str** | Name of a pre-existing image pull Secret in the deployment namespace. Created, refreshed and deleted externally. Mutually exclusive with inline registry credentials and image_pull_ref. Include on updates to retain it; null clears it. | [optional]
**enable_logging** | **bool** | | [optional] [default to True]
**config_file** | [**ConfigFileMount**](ConfigFileMount.md) | | [optional]

Expand Down
1 change: 1 addition & 0 deletions docs/UnifiedWriteComputeDeploymentRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ Name | Type | Description | Notes
**image_url** | **str** | |
**image_pull_secret_credentials** | [**ImagePullSecretCredentials**](ImagePullSecretCredentials.md) | | [optional]
**image_pull_ref** | **int** | | [optional]
**image_pull_secret_name** | **str** | Name of a pre-existing image pull Secret in the deployment namespace. Created, refreshed and deleted externally. Mutually exclusive with inline registry credentials and image_pull_ref. Include on updates to retain it; null clears it. | [optional]
**env_vars_refs** | **object** | | [optional]
**ssh_public_key** | **str** | |
**enable_logging** | **bool** | | [optional] [default to False]
Expand Down
1 change: 1 addition & 0 deletions docs/UnifiedWriteDeploymentRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ Name | Type | Description | Notes
**image_url** | **str** | |
**image_pull_secret_credentials** | [**ImagePullSecretCredentials**](ImagePullSecretCredentials.md) | | [optional]
**image_pull_ref** | **int** | | [optional]
**image_pull_secret_name** | **str** | Name of a pre-existing image pull Secret in the deployment namespace. Created, refreshed and deleted externally. Mutually exclusive with inline registry credentials and image_pull_ref. Include on updates to retain it; null clears it. | [optional]
**env_vars_refs** | **object** | | [optional]
**ssh_public_key** | **str** | |
**enable_logging** | **bool** | | [optional] [default to True]
Expand Down
1 change: 1 addition & 0 deletions docs/UnifiedWriteInferenceV3DeploymentRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ Name | Type | Description | Notes
**image_url** | **str** | |
**image_pull_secret_credentials** | [**ImagePullSecretCredentials**](ImagePullSecretCredentials.md) | | [optional]
**image_pull_ref** | **int** | | [optional]
**image_pull_secret_name** | **str** | Name of a pre-existing image pull Secret in the deployment namespace. Created, refreshed and deleted externally. Mutually exclusive with inline registry credentials and image_pull_ref. Include on updates to retain it; null clears it. | [optional]
**port** | **int** | |
**min_replicas** | **int** | |
**max_replicas** | **int** | |
Expand Down
1 change: 1 addition & 0 deletions docs/UnifiedWriteJobDeploymentRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ Name | Type | Description | Notes
**image_url** | **str** | |
**image_pull_secret_credentials** | [**ImagePullSecretCredentials**](ImagePullSecretCredentials.md) | | [optional]
**image_pull_ref** | **int** | | [optional]
**image_pull_secret_name** | **str** | Name of a pre-existing image pull Secret in the deployment namespace. Created, refreshed and deleted externally. Mutually exclusive with inline registry credentials and image_pull_ref. Include on updates to retain it; null clears it. | [optional]
**env_vars** | **Dict[str, str]** | | [optional]
**env_vars_refs** | **object** | | [optional]
**command** | **str** | | [optional]
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.33.0"
__version__ = "4.34.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.33.0/python'
self.user_agent = 'OpenAPI-Generator/4.34.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.33.0".\
"SDK Package Version: 4.34.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 @@ -39,10 +39,11 @@ class CreateComputeDeploymentRequest(BaseModel):
image_url: StrictStr
image_pull_secret_credentials: Optional[ImagePullSecretCredentials] = None
image_pull_ref: Optional[Annotated[int, Field(strict=True, ge=1)]] = None
image_pull_secret_name: Optional[Annotated[str, Field(min_length=1, strict=True, max_length=253)]] = Field(default=None, description="Name of a pre-existing image pull Secret in the deployment namespace. Created, refreshed and deleted externally. Mutually exclusive with inline registry credentials and image_pull_ref. Include on updates to retain it; null clears it.")
env_vars_refs: Optional[Dict[str, Any]] = None
ssh_public_key: StrictStr
enable_logging: Optional[StrictBool] = False
__properties: ClassVar[List[str]] = ["name", "cluster_id", "hardware_instance_id", "user_annotations", "chart_revision", "volume_mounts", "priority", "image_url", "image_pull_secret_credentials", "image_pull_ref", "env_vars_refs", "ssh_public_key", "enable_logging"]
__properties: ClassVar[List[str]] = ["name", "cluster_id", "hardware_instance_id", "user_annotations", "chart_revision", "volume_mounts", "priority", "image_url", "image_pull_secret_credentials", "image_pull_ref", "image_pull_secret_name", "env_vars_refs", "ssh_public_key", "enable_logging"]

@field_validator('name')
def name_validate_regular_expression(cls, value):
Expand All @@ -51,6 +52,16 @@ def name_validate_regular_expression(cls, value):
raise ValueError(r"must validate the regular expression /^[a-z][a-z0-9-]*$/")
return value

@field_validator('image_pull_secret_name')
def image_pull_secret_name_validate_regular_expression(cls, value):
"""Validates the regular expression"""
if value is None:
return value

if not re.match(r"^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$", value):
raise ValueError(r"must validate the regular expression /^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$/")
return value

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

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

return _dict

@classmethod
Expand All @@ -142,6 +158,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
"image_url": obj.get("image_url"),
"image_pull_secret_credentials": ImagePullSecretCredentials.from_dict(obj["image_pull_secret_credentials"]) if obj.get("image_pull_secret_credentials") is not None else None,
"image_pull_ref": obj.get("image_pull_ref"),
"image_pull_secret_name": obj.get("image_pull_secret_name"),
"env_vars_refs": obj.get("env_vars_refs"),
"ssh_public_key": obj.get("ssh_public_key"),
"enable_logging": obj.get("enable_logging") if obj.get("enable_logging") is not None else False
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ class CreateInferenceV3DeploymentRequest(BaseModel):
image_url: StrictStr
image_pull_secret_credentials: Optional[ImagePullSecretCredentials] = None
image_pull_ref: Optional[Annotated[int, Field(strict=True, ge=1)]] = None
image_pull_secret_name: Optional[Annotated[str, Field(min_length=1, strict=True, max_length=253)]] = Field(default=None, description="Name of a pre-existing image pull Secret in the deployment namespace. Created, refreshed and deleted externally. Mutually exclusive with inline registry credentials and image_pull_ref. Include on updates to retain it; null clears it.")
port: Annotated[int, Field(le=65535, strict=True, ge=1)]
min_replicas: StrictInt
max_replicas: StrictInt
Expand All @@ -64,7 +65,7 @@ class CreateInferenceV3DeploymentRequest(BaseModel):
session_affinity: Optional[StrictBool] = Field(default=False, description="Enable best-effort sticky routing via the `X-Session-Id` request header. Requests carrying the same header value land on the same pod, improving KV cache reuse for agentic workloads. Requests without the header are routed at random. Affinity is NOT durable: scaling, rollouts, restarts, or readiness-probe transitions will remap sessions to different pods. Do not use for irreplaceable in-pod state.")
config_file: Optional[ConfigFileMount] = None
metrics: Optional[MetricsConfig] = None
__properties: ClassVar[List[str]] = ["max_surge", "max_unavailable", "name", "cluster_id", "hardware_instance_id", "user_annotations", "chart_revision", "volume_mounts", "priority", "hf_token_ref", "image_url", "image_pull_secret_credentials", "image_pull_ref", "port", "min_replicas", "max_replicas", "concurrency", "cooldown_period", "healthcheck", "env_vars", "command", "endpoint_bearer_token", "bearer_token_ref", "endpoint_certificate_authority", "hf_token", "env_vars_refs", "backend_protocol", "enable_logging", "enable_node_model_cache", "session_affinity", "config_file", "metrics"]
__properties: ClassVar[List[str]] = ["max_surge", "max_unavailable", "name", "cluster_id", "hardware_instance_id", "user_annotations", "chart_revision", "volume_mounts", "priority", "hf_token_ref", "image_url", "image_pull_secret_credentials", "image_pull_ref", "image_pull_secret_name", "port", "min_replicas", "max_replicas", "concurrency", "cooldown_period", "healthcheck", "env_vars", "command", "endpoint_bearer_token", "bearer_token_ref", "endpoint_certificate_authority", "hf_token", "env_vars_refs", "backend_protocol", "enable_logging", "enable_node_model_cache", "session_affinity", "config_file", "metrics"]

@field_validator('name')
def name_validate_regular_expression(cls, value):
Expand All @@ -73,6 +74,16 @@ def name_validate_regular_expression(cls, value):
raise ValueError(r"must validate the regular expression /^[a-z][a-z0-9-]*$/")
return value

@field_validator('image_pull_secret_name')
def image_pull_secret_name_validate_regular_expression(cls, value):
"""Validates the regular expression"""
if value is None:
return value

if not re.match(r"^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$", value):
raise ValueError(r"must validate the regular expression /^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$/")
return value

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

# set to None if image_pull_secret_name (nullable) is None
# and model_fields_set contains the field
if self.image_pull_secret_name is None and "image_pull_secret_name" in self.model_fields_set:
_dict['image_pull_secret_name'] = 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 @@ -243,6 +259,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
"image_url": obj.get("image_url"),
"image_pull_secret_credentials": ImagePullSecretCredentials.from_dict(obj["image_pull_secret_credentials"]) if obj.get("image_pull_secret_credentials") is not None else None,
"image_pull_ref": obj.get("image_pull_ref"),
"image_pull_secret_name": obj.get("image_pull_secret_name"),
"port": obj.get("port"),
"min_replicas": obj.get("min_replicas"),
"max_replicas": obj.get("max_replicas"),
Expand Down
Loading
Loading