platform-api-python-client 4.31.0__py3-none-any.whl → 4.41.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- platform_api_python_client/__init__.py +410 -148
- platform_api_python_client/api/external_api.py +6466 -1215
- platform_api_python_client/api_client.py +81 -36
- platform_api_python_client/configuration.py +262 -66
- platform_api_python_client/exceptions.py +24 -5
- platform_api_python_client/models/__init__.py +90 -35
- platform_api_python_client/models/admission.py +106 -0
- platform_api_python_client/models/autoscaling.py +120 -0
- platform_api_python_client/models/ccl_dynamo_pools.py +117 -0
- platform_api_python_client/models/{create_c_serve_v2_deployment_response.py → ccl_main_pools.py} +16 -16
- platform_api_python_client/models/ccluster_catalogs_cluster_base_argo_rollouts_chart_values.py +121 -0
- platform_api_python_client/models/{c_serve_v2_recipe.py → ccluster_catalogs_cluster_base_argo_rollouts_controller.py} +15 -18
- platform_api_python_client/models/ccluster_catalogs_cluster_base_argo_rollouts_values.py +110 -0
- platform_api_python_client/models/ccluster_catalogs_cluster_base_cert_manager_chart_values.py +117 -0
- platform_api_python_client/models/ccluster_catalogs_cluster_base_cert_manager_values.py +110 -0
- platform_api_python_client/models/ccluster_catalogs_cluster_base_gpu_operator_chart_values.py +152 -0
- platform_api_python_client/models/ccluster_catalogs_cluster_base_gpu_operator_values.py +121 -0
- platform_api_python_client/models/ccluster_catalogs_cluster_base_ingress_nginx_chart_values.py +110 -0
- platform_api_python_client/models/ccluster_catalogs_cluster_base_ingress_nginx_controller.py +121 -0
- platform_api_python_client/models/ccluster_catalogs_cluster_base_ingress_nginx_values.py +110 -0
- platform_api_python_client/models/ccluster_catalogs_cluster_base_istio_values.py +143 -0
- platform_api_python_client/models/ccluster_catalogs_cluster_base_kai_scheduler_chart_values.py +154 -0
- platform_api_python_client/models/ccluster_catalogs_cluster_base_kai_scheduler_values.py +121 -0
- platform_api_python_client/models/ccluster_catalogs_cluster_base_keda_chart_values.py +131 -0
- platform_api_python_client/models/ccluster_catalogs_cluster_base_keda_values.py +110 -0
- platform_api_python_client/models/ccluster_catalogs_cluster_base_kube_prometheus_stack_chart_values.py +121 -0
- platform_api_python_client/models/ccluster_catalogs_cluster_base_kube_prometheus_stack_values.py +121 -0
- platform_api_python_client/models/ccluster_catalogs_cluster_base_metrics_server_chart_values.py +106 -0
- platform_api_python_client/models/ccluster_catalogs_cluster_base_metrics_server_values.py +110 -0
- platform_api_python_client/models/cdi.py +113 -0
- platform_api_python_client/models/cluster_base_components.py +187 -0
- platform_api_python_client/models/cluster_capacity_response.py +5 -5
- platform_api_python_client/models/cluster_credential.py +6 -5
- platform_api_python_client/models/cluster_registration_request.py +4 -3
- platform_api_python_client/models/cluster_registration_response.py +4 -3
- platform_api_python_client/models/{istio_cni_overrides.py → cni.py} +29 -15
- platform_api_python_client/models/config_file_mount.py +6 -5
- platform_api_python_client/models/create_compute_deployment_request.py +35 -9
- platform_api_python_client/models/create_compute_deployment_response.py +4 -3
- platform_api_python_client/models/create_dynamo_deployment_request.py +67 -20
- platform_api_python_client/models/create_dynamo_deployment_response.py +4 -3
- platform_api_python_client/models/create_filesystem_volume_request.py +8 -20
- platform_api_python_client/models/create_hardware_instance_request.py +4 -3
- platform_api_python_client/models/create_inference_deployment_response.py +4 -3
- platform_api_python_client/models/create_inference_v3_deployment_request.py +52 -10
- platform_api_python_client/models/create_job_deployment_request.py +35 -9
- platform_api_python_client/models/create_job_deployment_response.py +4 -3
- platform_api_python_client/models/create_object_volume_request.py +10 -22
- platform_api_python_client/models/create_organization_request.py +4 -3
- platform_api_python_client/models/create_organization_response.py +4 -3
- platform_api_python_client/models/create_service_account_request.py +4 -3
- platform_api_python_client/models/create_service_account_response.py +4 -3
- platform_api_python_client/models/credits_response.py +4 -3
- platform_api_python_client/models/daily_bill_response.py +4 -3
- platform_api_python_client/models/{fluent_bit.py → dashboard.py} +29 -12
- platform_api_python_client/models/{prometheus_adapter.py → default_priorities.py} +29 -12
- platform_api_python_client/models/default_queue.py +106 -0
- platform_api_python_client/models/delete_user_vault_item_request.py +4 -3
- platform_api_python_client/models/deployment_log_event_v4.py +4 -3
- platform_api_python_client/models/deployment_response.py +12 -27
- platform_api_python_client/models/deployment_status_request.py +4 -3
- platform_api_python_client/models/deployment_status_response.py +4 -3
- platform_api_python_client/models/deployment_status_v3_response.py +5 -5
- platform_api_python_client/models/deployment_type.py +14 -0
- platform_api_python_client/models/deployment_usage.py +5 -5
- platform_api_python_client/models/deployment_usage_value.py +4 -3
- platform_api_python_client/models/dynamo_communications_input.py +4 -16
- platform_api_python_client/models/dynamo_frontend_config.py +105 -0
- platform_api_python_client/models/dynamo_frontend_config_response.py +105 -0
- platform_api_python_client/models/dynamo_image.py +106 -0
- platform_api_python_client/models/dynamo_kv_transfer_configuration.py +4 -16
- platform_api_python_client/models/{external_dns.py → dynamo_weight_transfer_configuration.py} +13 -13
- platform_api_python_client/models/dynamo_weight_transfer_policy.py +36 -0
- platform_api_python_client/models/dynamo_worker_pool_config.py +6 -18
- platform_api_python_client/models/dynamo_worker_pools.py +4 -16
- platform_api_python_client/models/{keda.py → env.py} +14 -13
- platform_api_python_client/models/generate_service_account_secret_response.py +4 -3
- platform_api_python_client/models/get_cluster_response.py +8 -5
- platform_api_python_client/models/get_compute_deployment_response.py +35 -8
- platform_api_python_client/models/get_deployment_log_response.py +4 -3
- platform_api_python_client/models/get_deployment_log_v4_response.py +5 -5
- platform_api_python_client/models/get_deployment_pods_response.py +4 -3
- platform_api_python_client/models/get_deployment_response.py +7 -7
- platform_api_python_client/models/get_deployment_revision_response.py +4 -3
- platform_api_python_client/models/get_deployment_usage_response.py +24 -9
- platform_api_python_client/models/get_dynamo_deployment_response.py +63 -15
- platform_api_python_client/models/get_filesystem_volume_response.py +4 -3
- platform_api_python_client/models/get_inference_deployment_response.py +7 -7
- platform_api_python_client/models/get_inference_v3_deployment_response.py +51 -8
- platform_api_python_client/models/get_job_deployment_response.py +35 -8
- platform_api_python_client/models/get_object_volume_response.py +4 -3
- platform_api_python_client/models/gpu_type_capacity.py +4 -3
- platform_api_python_client/models/hardware_instance_response.py +10 -5
- platform_api_python_client/models/hardware_preset_response.py +4 -3
- platform_api_python_client/models/http_validation_error.py +5 -5
- platform_api_python_client/models/image.py +113 -0
- platform_api_python_client/models/image_pull_secret_credentials.py +4 -3
- platform_api_python_client/models/{istio_cni_subchart_overrides.py → ingress.py} +26 -18
- platform_api_python_client/models/{c_serve_recipe_response.py → insight_list_item_response.py} +33 -27
- platform_api_python_client/models/{create_c_serve_v3_deployment_response.py → insight_resource.py} +20 -14
- platform_api_python_client/models/insight_resource_type.py +37 -0
- platform_api_python_client/models/insight_response.py +133 -0
- platform_api_python_client/models/insight_severity.py +40 -0
- platform_api_python_client/models/insight_status.py +39 -0
- platform_api_python_client/models/insight_status_change_response.py +108 -0
- platform_api_python_client/models/invite_user_request.py +4 -3
- platform_api_python_client/models/istio_base.py +106 -0
- platform_api_python_client/models/istio_cni.py +124 -0
- platform_api_python_client/models/{ingress_nginx.py → istio_gateway.py} +29 -12
- platform_api_python_client/models/{dynamo_communications_output.py → istiod.py} +21 -15
- platform_api_python_client/models/list_cluster_capacity_response.py +5 -5
- platform_api_python_client/models/list_daily_bill_response.py +5 -5
- platform_api_python_client/models/list_deployment_revisions_response.py +5 -5
- platform_api_python_client/models/list_get_cluster_response.py +5 -5
- platform_api_python_client/models/list_get_deployment_response.py +5 -5
- platform_api_python_client/models/list_hardware_instance_response.py +5 -5
- platform_api_python_client/models/list_hardware_preset_response.py +5 -5
- platform_api_python_client/models/{istio_overrides.py → list_insights_response.py} +19 -20
- platform_api_python_client/models/list_organization_gpu_quota_response.py +5 -5
- platform_api_python_client/models/list_prebuilt_image_response.py +5 -5
- platform_api_python_client/models/list_service_accounts_response.py +5 -5
- platform_api_python_client/models/list_user_vault_items_response.py +5 -5
- platform_api_python_client/models/list_volumes_response.py +5 -5
- platform_api_python_client/models/{validation_error_loc_inner.py → location_inner.py} +6 -6
- platform_api_python_client/models/metric.py +13 -0
- platform_api_python_client/models/metrics.py +117 -0
- platform_api_python_client/models/metrics_config.py +6 -5
- platform_api_python_client/models/mig.py +106 -0
- platform_api_python_client/models/operator.py +117 -0
- platform_api_python_client/models/organization_gpu_quota_request.py +4 -3
- platform_api_python_client/models/organization_gpu_quota_response.py +4 -3
- platform_api_python_client/models/pilot.py +106 -0
- platform_api_python_client/models/pod_details.py +4 -3
- platform_api_python_client/models/pool.py +117 -0
- platform_api_python_client/models/prebuilt_image_response.py +4 -3
- platform_api_python_client/models/prometheus.py +110 -0
- platform_api_python_client/models/prometheus_rules.py +120 -0
- platform_api_python_client/models/prometheus_spec.py +113 -0
- platform_api_python_client/models/prometheus_values.py +117 -0
- platform_api_python_client/models/quota.py +106 -0
- platform_api_python_client/models/replicas.py +106 -0
- platform_api_python_client/models/resource_list.py +113 -0
- platform_api_python_client/models/resource_requirements.py +120 -0
- platform_api_python_client/models/revision_pod_details.py +5 -5
- platform_api_python_client/models/rollout_strategy_params.py +4 -3
- platform_api_python_client/models/scheduler.py +117 -0
- platform_api_python_client/models/service_account_response.py +4 -3
- platform_api_python_client/models/{istio.py → toggle.py} +27 -19
- platform_api_python_client/models/toleration.py +134 -0
- platform_api_python_client/models/unified_get_compute_deployment_response.py +177 -0
- platform_api_python_client/models/{c_serve_recipe_perf.py → unified_get_deployment_logs_response.py} +19 -22
- platform_api_python_client/models/{longhorn.py → unified_get_deployment_pods_response.py} +13 -14
- platform_api_python_client/models/unified_get_deployment_response.py +164 -0
- platform_api_python_client/models/unified_get_deployment_revision_response.py +110 -0
- platform_api_python_client/models/{argo_rollouts.py → unified_get_deployment_rollout_response.py} +15 -13
- platform_api_python_client/models/unified_get_deployment_usage_response.py +110 -0
- platform_api_python_client/models/unified_get_dynamo_deployment_response.py +218 -0
- platform_api_python_client/models/unified_get_inference_v3_deployment_response.py +228 -0
- platform_api_python_client/models/unified_get_job_deployment_response.py +204 -0
- platform_api_python_client/models/{list_c_serve_recipe_response.py → unified_list_deployment_revisions_response.py} +12 -12
- platform_api_python_client/models/{spire.py → unified_update_deployment_rollout_request.py} +12 -13
- platform_api_python_client/models/unified_write_compute_deployment_request.py +154 -0
- platform_api_python_client/models/unified_write_deployment_request.py +164 -0
- platform_api_python_client/models/unified_write_deployment_response.py +110 -0
- platform_api_python_client/models/unified_write_dynamo_deployment_request.py +197 -0
- platform_api_python_client/models/{create_c_serve_v3_deployment_request.py → unified_write_inference_v3_deployment_request.py} +86 -78
- platform_api_python_client/models/unified_write_job_deployment_request.py +183 -0
- platform_api_python_client/models/update_cluster_metadata_request.py +4 -3
- platform_api_python_client/models/{cluster_config.py → update_cluster_request.py} +11 -10
- platform_api_python_client/models/update_deployment_response.py +4 -3
- platform_api_python_client/models/update_deployment_status_v3_request.py +4 -3
- platform_api_python_client/models/update_insight_status_request.py +107 -0
- platform_api_python_client/models/update_service_account_request.py +4 -3
- platform_api_python_client/models/upsert_user_vault_item_request.py +5 -4
- platform_api_python_client/models/usage_availability.py +40 -0
- platform_api_python_client/models/usage_component.py +39 -0
- platform_api_python_client/models/user_vault_item.py +4 -3
- platform_api_python_client/models/validation_error.py +8 -8
- platform_api_python_client/models/volume_mount.py +4 -3
- platform_api_python_client/models/volume_status_response.py +4 -3
- platform_api_python_client/models/workload.py +110 -0
- platform_api_python_client/rest.py +87 -10
- platform_api_python_client-4.41.0.dist-info/METADATA +418 -0
- platform_api_python_client-4.41.0.dist-info/RECORD +206 -0
- {platform_api_python_client-4.31.0.dist-info → platform_api_python_client-4.41.0.dist-info}/WHEEL +1 -1
- platform_api_python_client/models/cert_manager.py +0 -89
- platform_api_python_client/models/cluster_components.py +0 -193
- platform_api_python_client/models/final_stack.py +0 -89
- platform_api_python_client/models/get_c_serve_v2_deployment_response.py +0 -193
- platform_api_python_client/models/get_c_serve_v3_deployment_response.py +0 -194
- platform_api_python_client/models/gpu_operator.py +0 -89
- platform_api_python_client/models/kube_prometheus_stack.py +0 -89
- platform_api_python_client/models/metrics_server.py +0 -89
- platform_api_python_client/models/network_operator.py +0 -89
- platform_api_python_client/models/opentelemetry_collector.py +0 -89
- platform_api_python_client/models/spire_crds.py +0 -89
- platform_api_python_client/models/teleport_kube_agent.py +0 -89
- platform_api_python_client-4.31.0.dist-info/METADATA +0 -23
- platform_api_python_client-4.31.0.dist-info/RECORD +0 -151
- {platform_api_python_client-4.31.0.dist-info → platform_api_python_client-4.41.0.dist-info}/top_level.txt +0 -0
|
@@ -21,6 +21,7 @@ from pydantic import BaseModel, ConfigDict, StrictStr
|
|
|
21
21
|
from typing import Any, ClassVar, Dict, List, Optional
|
|
22
22
|
from typing import Optional, Set
|
|
23
23
|
from typing_extensions import Self
|
|
24
|
+
from pydantic_core import to_jsonable_python
|
|
24
25
|
|
|
25
26
|
class GetDeploymentLogResponse(BaseModel):
|
|
26
27
|
"""
|
|
@@ -31,7 +32,8 @@ class GetDeploymentLogResponse(BaseModel):
|
|
|
31
32
|
__properties: ClassVar[List[str]] = ["events", "next_page_token"]
|
|
32
33
|
|
|
33
34
|
model_config = ConfigDict(
|
|
34
|
-
|
|
35
|
+
validate_by_name=True,
|
|
36
|
+
validate_by_alias=True,
|
|
35
37
|
validate_assignment=True,
|
|
36
38
|
protected_namespaces=(),
|
|
37
39
|
)
|
|
@@ -43,8 +45,7 @@ class GetDeploymentLogResponse(BaseModel):
|
|
|
43
45
|
|
|
44
46
|
def to_json(self) -> str:
|
|
45
47
|
"""Returns the JSON representation of the model using alias"""
|
|
46
|
-
|
|
47
|
-
return json.dumps(self.to_dict())
|
|
48
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
48
49
|
|
|
49
50
|
@classmethod
|
|
50
51
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
@@ -22,6 +22,7 @@ from typing import Any, ClassVar, Dict, List
|
|
|
22
22
|
from platform_api_python_client.models.deployment_log_event_v4 import DeploymentLogEventV4
|
|
23
23
|
from typing import Optional, Set
|
|
24
24
|
from typing_extensions import Self
|
|
25
|
+
from pydantic_core import to_jsonable_python
|
|
25
26
|
|
|
26
27
|
class GetDeploymentLogV4Response(BaseModel):
|
|
27
28
|
"""
|
|
@@ -31,7 +32,8 @@ class GetDeploymentLogV4Response(BaseModel):
|
|
|
31
32
|
__properties: ClassVar[List[str]] = ["events"]
|
|
32
33
|
|
|
33
34
|
model_config = ConfigDict(
|
|
34
|
-
|
|
35
|
+
validate_by_name=True,
|
|
36
|
+
validate_by_alias=True,
|
|
35
37
|
validate_assignment=True,
|
|
36
38
|
protected_namespaces=(),
|
|
37
39
|
)
|
|
@@ -43,8 +45,7 @@ class GetDeploymentLogV4Response(BaseModel):
|
|
|
43
45
|
|
|
44
46
|
def to_json(self) -> str:
|
|
45
47
|
"""Returns the JSON representation of the model using alias"""
|
|
46
|
-
|
|
47
|
-
return json.dumps(self.to_dict())
|
|
48
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
48
49
|
|
|
49
50
|
@classmethod
|
|
50
51
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
@@ -73,8 +74,7 @@ class GetDeploymentLogV4Response(BaseModel):
|
|
|
73
74
|
_items = []
|
|
74
75
|
if self.events:
|
|
75
76
|
for _item_events in self.events:
|
|
76
|
-
if _item_events
|
|
77
|
-
_items.append(_item_events.to_dict())
|
|
77
|
+
_items.append(_item_events.to_dict() if _item_events is not None else None)
|
|
78
78
|
_dict['events'] = _items
|
|
79
79
|
return _dict
|
|
80
80
|
|
|
@@ -21,6 +21,7 @@ from pydantic import BaseModel, ConfigDict, StrictStr
|
|
|
21
21
|
from typing import Any, ClassVar, Dict, List
|
|
22
22
|
from typing import Optional, Set
|
|
23
23
|
from typing_extensions import Self
|
|
24
|
+
from pydantic_core import to_jsonable_python
|
|
24
25
|
|
|
25
26
|
class GetDeploymentPodsResponse(BaseModel):
|
|
26
27
|
"""
|
|
@@ -30,7 +31,8 @@ class GetDeploymentPodsResponse(BaseModel):
|
|
|
30
31
|
__properties: ClassVar[List[str]] = ["pods"]
|
|
31
32
|
|
|
32
33
|
model_config = ConfigDict(
|
|
33
|
-
|
|
34
|
+
validate_by_name=True,
|
|
35
|
+
validate_by_alias=True,
|
|
34
36
|
validate_assignment=True,
|
|
35
37
|
protected_namespaces=(),
|
|
36
38
|
)
|
|
@@ -42,8 +44,7 @@ class GetDeploymentPodsResponse(BaseModel):
|
|
|
42
44
|
|
|
43
45
|
def to_json(self) -> str:
|
|
44
46
|
"""Returns the JSON representation of the model using alias"""
|
|
45
|
-
|
|
46
|
-
return json.dumps(self.to_dict())
|
|
47
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
47
48
|
|
|
48
49
|
@classmethod
|
|
49
50
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
@@ -18,13 +18,14 @@ import re # noqa: F401
|
|
|
18
18
|
import json
|
|
19
19
|
|
|
20
20
|
from datetime import datetime
|
|
21
|
-
from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr
|
|
21
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr
|
|
22
22
|
from typing import Any, ClassVar, Dict, List, Optional
|
|
23
23
|
from platform_api_python_client.models.deployment_status import DeploymentStatus
|
|
24
24
|
from platform_api_python_client.models.deployment_type import DeploymentType
|
|
25
25
|
from platform_api_python_client.models.volume_mount import VolumeMount
|
|
26
26
|
from typing import Optional, Set
|
|
27
27
|
from typing_extensions import Self
|
|
28
|
+
from pydantic_core import to_jsonable_python
|
|
28
29
|
|
|
29
30
|
class GetDeploymentResponse(BaseModel):
|
|
30
31
|
"""
|
|
@@ -41,14 +42,15 @@ class GetDeploymentResponse(BaseModel):
|
|
|
41
42
|
created_at: datetime
|
|
42
43
|
hardware_instance_id: StrictInt
|
|
43
44
|
revision_number: StrictInt
|
|
44
|
-
chart_revision: Optional[StrictStr] = None
|
|
45
|
+
chart_revision: Optional[StrictStr] = Field(default=None, description="Saved catalog Git reference for this revision; null if not recorded. Informational: omit chart_revision from edit or clone requests to use the current platform default.")
|
|
45
46
|
user_annotations: Optional[Dict[str, StrictStr]] = None
|
|
46
47
|
priority: Optional[StrictStr] = None
|
|
47
48
|
volume_mounts: Optional[List[VolumeMount]] = None
|
|
48
49
|
__properties: ClassVar[List[str]] = ["creator_email", "cluster_id", "id", "name", "endpoint_url", "image_url", "type", "status", "created_at", "hardware_instance_id", "revision_number", "chart_revision", "user_annotations", "priority", "volume_mounts"]
|
|
49
50
|
|
|
50
51
|
model_config = ConfigDict(
|
|
51
|
-
|
|
52
|
+
validate_by_name=True,
|
|
53
|
+
validate_by_alias=True,
|
|
52
54
|
validate_assignment=True,
|
|
53
55
|
protected_namespaces=(),
|
|
54
56
|
)
|
|
@@ -60,8 +62,7 @@ class GetDeploymentResponse(BaseModel):
|
|
|
60
62
|
|
|
61
63
|
def to_json(self) -> str:
|
|
62
64
|
"""Returns the JSON representation of the model using alias"""
|
|
63
|
-
|
|
64
|
-
return json.dumps(self.to_dict())
|
|
65
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
65
66
|
|
|
66
67
|
@classmethod
|
|
67
68
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
@@ -90,8 +91,7 @@ class GetDeploymentResponse(BaseModel):
|
|
|
90
91
|
_items = []
|
|
91
92
|
if self.volume_mounts:
|
|
92
93
|
for _item_volume_mounts in self.volume_mounts:
|
|
93
|
-
if _item_volume_mounts
|
|
94
|
-
_items.append(_item_volume_mounts.to_dict())
|
|
94
|
+
_items.append(_item_volume_mounts.to_dict() if _item_volume_mounts is not None else None)
|
|
95
95
|
_dict['volume_mounts'] = _items
|
|
96
96
|
# set to None if image_url (nullable) is None
|
|
97
97
|
# and model_fields_set contains the field
|
|
@@ -23,6 +23,7 @@ from typing import Any, ClassVar, Dict, List, Optional
|
|
|
23
23
|
from platform_api_python_client.models.deployment_response import DeploymentResponse
|
|
24
24
|
from typing import Optional, Set
|
|
25
25
|
from typing_extensions import Self
|
|
26
|
+
from pydantic_core import to_jsonable_python
|
|
26
27
|
|
|
27
28
|
class GetDeploymentRevisionResponse(BaseModel):
|
|
28
29
|
"""
|
|
@@ -38,7 +39,8 @@ class GetDeploymentRevisionResponse(BaseModel):
|
|
|
38
39
|
__properties: ClassVar[List[str]] = ["id", "revision_number", "deployment_id", "deployment_response", "notes", "created_at", "updated_at"]
|
|
39
40
|
|
|
40
41
|
model_config = ConfigDict(
|
|
41
|
-
|
|
42
|
+
validate_by_name=True,
|
|
43
|
+
validate_by_alias=True,
|
|
42
44
|
validate_assignment=True,
|
|
43
45
|
protected_namespaces=(),
|
|
44
46
|
)
|
|
@@ -50,8 +52,7 @@ class GetDeploymentRevisionResponse(BaseModel):
|
|
|
50
52
|
|
|
51
53
|
def to_json(self) -> str:
|
|
52
54
|
"""Returns the JSON representation of the model using alias"""
|
|
53
|
-
|
|
54
|
-
return json.dumps(self.to_dict())
|
|
55
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
55
56
|
|
|
56
57
|
@classmethod
|
|
57
58
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
@@ -17,21 +17,26 @@ import pprint
|
|
|
17
17
|
import re # noqa: F401
|
|
18
18
|
import json
|
|
19
19
|
|
|
20
|
-
from pydantic import BaseModel, ConfigDict
|
|
21
|
-
from typing import Any, ClassVar, Dict, List
|
|
20
|
+
from pydantic import BaseModel, ConfigDict, StrictInt
|
|
21
|
+
from typing import Any, ClassVar, Dict, List, Optional
|
|
22
22
|
from platform_api_python_client.models.deployment_usage import DeploymentUsage
|
|
23
|
+
from platform_api_python_client.models.usage_availability import UsageAvailability
|
|
23
24
|
from typing import Optional, Set
|
|
24
25
|
from typing_extensions import Self
|
|
26
|
+
from pydantic_core import to_jsonable_python
|
|
25
27
|
|
|
26
28
|
class GetDeploymentUsageResponse(BaseModel):
|
|
27
29
|
"""
|
|
28
30
|
GetDeploymentUsageResponse
|
|
29
31
|
""" # noqa: E501
|
|
30
32
|
values: List[DeploymentUsage]
|
|
31
|
-
|
|
33
|
+
availability: Optional[UsageAvailability] = None
|
|
34
|
+
last_sample_at: Optional[StrictInt] = None
|
|
35
|
+
__properties: ClassVar[List[str]] = ["values", "availability", "last_sample_at"]
|
|
32
36
|
|
|
33
37
|
model_config = ConfigDict(
|
|
34
|
-
|
|
38
|
+
validate_by_name=True,
|
|
39
|
+
validate_by_alias=True,
|
|
35
40
|
validate_assignment=True,
|
|
36
41
|
protected_namespaces=(),
|
|
37
42
|
)
|
|
@@ -43,8 +48,7 @@ class GetDeploymentUsageResponse(BaseModel):
|
|
|
43
48
|
|
|
44
49
|
def to_json(self) -> str:
|
|
45
50
|
"""Returns the JSON representation of the model using alias"""
|
|
46
|
-
|
|
47
|
-
return json.dumps(self.to_dict())
|
|
51
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
48
52
|
|
|
49
53
|
@classmethod
|
|
50
54
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
@@ -73,9 +77,18 @@ class GetDeploymentUsageResponse(BaseModel):
|
|
|
73
77
|
_items = []
|
|
74
78
|
if self.values:
|
|
75
79
|
for _item_values in self.values:
|
|
76
|
-
if _item_values
|
|
77
|
-
_items.append(_item_values.to_dict())
|
|
80
|
+
_items.append(_item_values.to_dict() if _item_values is not None else None)
|
|
78
81
|
_dict['values'] = _items
|
|
82
|
+
# set to None if availability (nullable) is None
|
|
83
|
+
# and model_fields_set contains the field
|
|
84
|
+
if self.availability is None and "availability" in self.model_fields_set:
|
|
85
|
+
_dict['availability'] = None
|
|
86
|
+
|
|
87
|
+
# set to None if last_sample_at (nullable) is None
|
|
88
|
+
# and model_fields_set contains the field
|
|
89
|
+
if self.last_sample_at is None and "last_sample_at" in self.model_fields_set:
|
|
90
|
+
_dict['last_sample_at'] = None
|
|
91
|
+
|
|
79
92
|
return _dict
|
|
80
93
|
|
|
81
94
|
@classmethod
|
|
@@ -88,7 +101,9 @@ class GetDeploymentUsageResponse(BaseModel):
|
|
|
88
101
|
return cls.model_validate(obj)
|
|
89
102
|
|
|
90
103
|
_obj = cls.model_validate({
|
|
91
|
-
"values": [DeploymentUsage.from_dict(_item) for _item in obj["values"]] if obj.get("values") is not None else None
|
|
104
|
+
"values": [DeploymentUsage.from_dict(_item) for _item in obj["values"]] if obj.get("values") is not None else None,
|
|
105
|
+
"availability": obj.get("availability"),
|
|
106
|
+
"last_sample_at": obj.get("last_sample_at")
|
|
92
107
|
})
|
|
93
108
|
return _obj
|
|
94
109
|
|
|
@@ -20,15 +20,19 @@ import json
|
|
|
20
20
|
from datetime import datetime
|
|
21
21
|
from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr
|
|
22
22
|
from typing import Any, ClassVar, Dict, List, Optional
|
|
23
|
+
from typing_extensions import Annotated
|
|
23
24
|
from platform_api_python_client.models.backend_protocol import BackendProtocol
|
|
24
25
|
from platform_api_python_client.models.deployment_status import DeploymentStatus
|
|
25
26
|
from platform_api_python_client.models.deployment_type import DeploymentType
|
|
26
|
-
from platform_api_python_client.models.
|
|
27
|
+
from platform_api_python_client.models.dynamo_communications_input import DynamoCommunicationsInput
|
|
28
|
+
from platform_api_python_client.models.dynamo_frontend_config_response import DynamoFrontendConfigResponse
|
|
27
29
|
from platform_api_python_client.models.dynamo_serving_mode import DynamoServingMode
|
|
30
|
+
from platform_api_python_client.models.dynamo_weight_transfer_configuration import DynamoWeightTransferConfiguration
|
|
28
31
|
from platform_api_python_client.models.dynamo_worker_pools import DynamoWorkerPools
|
|
29
32
|
from platform_api_python_client.models.volume_mount import VolumeMount
|
|
30
33
|
from typing import Optional, Set
|
|
31
34
|
from typing_extensions import Self
|
|
35
|
+
from pydantic_core import to_jsonable_python
|
|
32
36
|
|
|
33
37
|
class GetDynamoDeploymentResponse(BaseModel):
|
|
34
38
|
"""
|
|
@@ -45,31 +49,39 @@ class GetDynamoDeploymentResponse(BaseModel):
|
|
|
45
49
|
created_at: datetime
|
|
46
50
|
hardware_instance_id: StrictInt
|
|
47
51
|
revision_number: StrictInt
|
|
48
|
-
chart_revision: Optional[StrictStr] = None
|
|
52
|
+
chart_revision: Optional[StrictStr] = Field(default=None, description="Saved catalog Git reference for this revision; null if not recorded. Informational: omit chart_revision from edit or clone requests to use the current platform default.")
|
|
49
53
|
user_annotations: Optional[Dict[str, StrictStr]] = None
|
|
50
54
|
priority: Optional[StrictStr] = None
|
|
51
55
|
volume_mounts: Optional[List[VolumeMount]] = None
|
|
56
|
+
hf_token_ref: Optional[Annotated[int, Field(strict=True, ge=1)]] = None
|
|
52
57
|
serving_mode: Optional[DynamoServingMode] = None
|
|
53
|
-
worker_pools: Optional[DynamoWorkerPools] = None
|
|
54
|
-
communications: Optional[
|
|
58
|
+
worker_pools: Optional[DynamoWorkerPools] = Field(default=None, description="Hardware and scaling per worker role. Aggregated mode uses exactly `worker`; disaggregated mode uses exactly `prefill` and `decode`. Unused roles are null.")
|
|
59
|
+
communications: Optional[DynamoCommunicationsInput] = Field(default=None, description="Requested communication policy; null for revisions using the legacy configuration.")
|
|
60
|
+
weight_transfer: Optional[DynamoWeightTransferConfiguration] = Field(default=None, description="Requested weight transfer policy; null when the workers use the native loader.")
|
|
55
61
|
model: StrictStr
|
|
62
|
+
model_revision: Optional[StrictStr] = Field(default=None, description="Commit SHA of `model` this revision loads; null when the workers load the default branch.")
|
|
56
63
|
served_model_name: Optional[StrictStr] = None
|
|
57
|
-
runtime_version: Optional[StrictStr] = None
|
|
64
|
+
runtime_version: Optional[StrictStr] = Field(default=None, description="Dynamo runtime version tag this revision renders with.")
|
|
58
65
|
min_replicas: StrictInt = Field(description="Deprecated aggregated-only spelling; set this under worker_pools.worker instead. Accepted alongside worker_pools when the values agree.")
|
|
59
66
|
max_replicas: StrictInt = Field(description="Deprecated aggregated-only spelling; set this under worker_pools.worker instead. Accepted alongside worker_pools when the values agree.")
|
|
60
|
-
concurrency: Optional[StrictInt] = None
|
|
61
|
-
cooldown_period: Optional[StrictInt] = None
|
|
67
|
+
concurrency: Optional[StrictInt] = Field(default=None, description="Deprecated aggregated-only spelling; set this under worker_pools.worker instead. Accepted alongside worker_pools when the values agree.")
|
|
68
|
+
cooldown_period: Optional[StrictInt] = Field(default=None, description="Deprecated aggregated-only spelling; set this under worker_pools.worker instead. Accepted alongside worker_pools when the values agree.")
|
|
62
69
|
extra_args: Optional[StrictStr] = None
|
|
63
70
|
env_vars: Optional[Dict[str, StrictStr]] = None
|
|
71
|
+
env_vars_refs: Optional[Dict[str, Any]] = None
|
|
64
72
|
endpoint_certificate_authority: Optional[StrictStr] = None
|
|
65
73
|
endpoint_bearer_token: Optional[StrictStr] = None
|
|
74
|
+
bearer_token_ref: Optional[Annotated[int, Field(strict=True, ge=1)]] = None
|
|
75
|
+
image_pull_ref: Optional[Annotated[int, Field(strict=True, ge=1)]] = None
|
|
66
76
|
enable_logging: Optional[StrictBool] = True
|
|
67
77
|
enable_node_model_cache: Optional[StrictBool] = False
|
|
68
78
|
backend_protocol: Optional[BackendProtocol] = None
|
|
69
|
-
|
|
79
|
+
frontend: Optional[DynamoFrontendConfigResponse] = Field(default=None, description="Frontend replica bounds and size this revision requests; the defaults for revisions created before these fields.")
|
|
80
|
+
__properties: ClassVar[List[str]] = ["creator_email", "cluster_id", "id", "name", "endpoint_url", "image_url", "type", "status", "created_at", "hardware_instance_id", "revision_number", "chart_revision", "user_annotations", "priority", "volume_mounts", "hf_token_ref", "serving_mode", "worker_pools", "communications", "weight_transfer", "model", "model_revision", "served_model_name", "runtime_version", "min_replicas", "max_replicas", "concurrency", "cooldown_period", "extra_args", "env_vars", "env_vars_refs", "endpoint_certificate_authority", "endpoint_bearer_token", "bearer_token_ref", "image_pull_ref", "enable_logging", "enable_node_model_cache", "backend_protocol", "frontend"]
|
|
70
81
|
|
|
71
82
|
model_config = ConfigDict(
|
|
72
|
-
|
|
83
|
+
validate_by_name=True,
|
|
84
|
+
validate_by_alias=True,
|
|
73
85
|
validate_assignment=True,
|
|
74
86
|
protected_namespaces=(),
|
|
75
87
|
)
|
|
@@ -81,8 +93,7 @@ class GetDynamoDeploymentResponse(BaseModel):
|
|
|
81
93
|
|
|
82
94
|
def to_json(self) -> str:
|
|
83
95
|
"""Returns the JSON representation of the model using alias"""
|
|
84
|
-
|
|
85
|
-
return json.dumps(self.to_dict())
|
|
96
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
86
97
|
|
|
87
98
|
@classmethod
|
|
88
99
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
@@ -111,8 +122,7 @@ class GetDynamoDeploymentResponse(BaseModel):
|
|
|
111
122
|
_items = []
|
|
112
123
|
if self.volume_mounts:
|
|
113
124
|
for _item_volume_mounts in self.volume_mounts:
|
|
114
|
-
if _item_volume_mounts
|
|
115
|
-
_items.append(_item_volume_mounts.to_dict())
|
|
125
|
+
_items.append(_item_volume_mounts.to_dict() if _item_volume_mounts is not None else None)
|
|
116
126
|
_dict['volume_mounts'] = _items
|
|
117
127
|
# override the default output from pydantic by calling `to_dict()` of worker_pools
|
|
118
128
|
if self.worker_pools:
|
|
@@ -120,6 +130,12 @@ class GetDynamoDeploymentResponse(BaseModel):
|
|
|
120
130
|
# override the default output from pydantic by calling `to_dict()` of communications
|
|
121
131
|
if self.communications:
|
|
122
132
|
_dict['communications'] = self.communications.to_dict()
|
|
133
|
+
# override the default output from pydantic by calling `to_dict()` of weight_transfer
|
|
134
|
+
if self.weight_transfer:
|
|
135
|
+
_dict['weight_transfer'] = self.weight_transfer.to_dict()
|
|
136
|
+
# override the default output from pydantic by calling `to_dict()` of frontend
|
|
137
|
+
if self.frontend:
|
|
138
|
+
_dict['frontend'] = self.frontend.to_dict()
|
|
123
139
|
# set to None if image_url (nullable) is None
|
|
124
140
|
# and model_fields_set contains the field
|
|
125
141
|
if self.image_url is None and "image_url" in self.model_fields_set:
|
|
@@ -140,6 +156,11 @@ class GetDynamoDeploymentResponse(BaseModel):
|
|
|
140
156
|
if self.priority is None and "priority" in self.model_fields_set:
|
|
141
157
|
_dict['priority'] = None
|
|
142
158
|
|
|
159
|
+
# set to None if hf_token_ref (nullable) is None
|
|
160
|
+
# and model_fields_set contains the field
|
|
161
|
+
if self.hf_token_ref is None and "hf_token_ref" in self.model_fields_set:
|
|
162
|
+
_dict['hf_token_ref'] = None
|
|
163
|
+
|
|
143
164
|
# set to None if worker_pools (nullable) is None
|
|
144
165
|
# and model_fields_set contains the field
|
|
145
166
|
if self.worker_pools is None and "worker_pools" in self.model_fields_set:
|
|
@@ -150,6 +171,16 @@ class GetDynamoDeploymentResponse(BaseModel):
|
|
|
150
171
|
if self.communications is None and "communications" in self.model_fields_set:
|
|
151
172
|
_dict['communications'] = None
|
|
152
173
|
|
|
174
|
+
# set to None if weight_transfer (nullable) is None
|
|
175
|
+
# and model_fields_set contains the field
|
|
176
|
+
if self.weight_transfer is None and "weight_transfer" in self.model_fields_set:
|
|
177
|
+
_dict['weight_transfer'] = None
|
|
178
|
+
|
|
179
|
+
# set to None if model_revision (nullable) is None
|
|
180
|
+
# and model_fields_set contains the field
|
|
181
|
+
if self.model_revision is None and "model_revision" in self.model_fields_set:
|
|
182
|
+
_dict['model_revision'] = None
|
|
183
|
+
|
|
153
184
|
# set to None if served_model_name (nullable) is None
|
|
154
185
|
# and model_fields_set contains the field
|
|
155
186
|
if self.served_model_name is None and "served_model_name" in self.model_fields_set:
|
|
@@ -185,6 +216,16 @@ class GetDynamoDeploymentResponse(BaseModel):
|
|
|
185
216
|
if self.endpoint_bearer_token is None and "endpoint_bearer_token" in self.model_fields_set:
|
|
186
217
|
_dict['endpoint_bearer_token'] = None
|
|
187
218
|
|
|
219
|
+
# set to None if bearer_token_ref (nullable) is None
|
|
220
|
+
# and model_fields_set contains the field
|
|
221
|
+
if self.bearer_token_ref is None and "bearer_token_ref" in self.model_fields_set:
|
|
222
|
+
_dict['bearer_token_ref'] = None
|
|
223
|
+
|
|
224
|
+
# set to None if image_pull_ref (nullable) is None
|
|
225
|
+
# and model_fields_set contains the field
|
|
226
|
+
if self.image_pull_ref is None and "image_pull_ref" in self.model_fields_set:
|
|
227
|
+
_dict['image_pull_ref'] = None
|
|
228
|
+
|
|
188
229
|
return _dict
|
|
189
230
|
|
|
190
231
|
@classmethod
|
|
@@ -212,10 +253,13 @@ class GetDynamoDeploymentResponse(BaseModel):
|
|
|
212
253
|
"user_annotations": obj.get("user_annotations"),
|
|
213
254
|
"priority": obj.get("priority"),
|
|
214
255
|
"volume_mounts": [VolumeMount.from_dict(_item) for _item in obj["volume_mounts"]] if obj.get("volume_mounts") is not None else None,
|
|
256
|
+
"hf_token_ref": obj.get("hf_token_ref"),
|
|
215
257
|
"serving_mode": obj.get("serving_mode"),
|
|
216
258
|
"worker_pools": DynamoWorkerPools.from_dict(obj["worker_pools"]) if obj.get("worker_pools") is not None else None,
|
|
217
|
-
"communications":
|
|
259
|
+
"communications": DynamoCommunicationsInput.from_dict(obj["communications"]) if obj.get("communications") is not None else None,
|
|
260
|
+
"weight_transfer": DynamoWeightTransferConfiguration.from_dict(obj["weight_transfer"]) if obj.get("weight_transfer") is not None else None,
|
|
218
261
|
"model": obj.get("model"),
|
|
262
|
+
"model_revision": obj.get("model_revision"),
|
|
219
263
|
"served_model_name": obj.get("served_model_name"),
|
|
220
264
|
"runtime_version": obj.get("runtime_version"),
|
|
221
265
|
"min_replicas": obj.get("min_replicas"),
|
|
@@ -224,11 +268,15 @@ class GetDynamoDeploymentResponse(BaseModel):
|
|
|
224
268
|
"cooldown_period": obj.get("cooldown_period"),
|
|
225
269
|
"extra_args": obj.get("extra_args"),
|
|
226
270
|
"env_vars": obj.get("env_vars"),
|
|
271
|
+
"env_vars_refs": obj.get("env_vars_refs"),
|
|
227
272
|
"endpoint_certificate_authority": obj.get("endpoint_certificate_authority"),
|
|
228
273
|
"endpoint_bearer_token": obj.get("endpoint_bearer_token"),
|
|
274
|
+
"bearer_token_ref": obj.get("bearer_token_ref"),
|
|
275
|
+
"image_pull_ref": obj.get("image_pull_ref"),
|
|
229
276
|
"enable_logging": obj.get("enable_logging") if obj.get("enable_logging") is not None else True,
|
|
230
277
|
"enable_node_model_cache": obj.get("enable_node_model_cache") if obj.get("enable_node_model_cache") is not None else False,
|
|
231
|
-
"backend_protocol": obj.get("backend_protocol")
|
|
278
|
+
"backend_protocol": obj.get("backend_protocol"),
|
|
279
|
+
"frontend": DynamoFrontendConfigResponse.from_dict(obj["frontend"]) if obj.get("frontend") is not None else None
|
|
232
280
|
})
|
|
233
281
|
return _obj
|
|
234
282
|
|
|
@@ -24,6 +24,7 @@ from platform_api_python_client.models.volume_access_mode import VolumeAccessMod
|
|
|
24
24
|
from platform_api_python_client.models.volume_status import VolumeStatus
|
|
25
25
|
from typing import Optional, Set
|
|
26
26
|
from typing_extensions import Self
|
|
27
|
+
from pydantic_core import to_jsonable_python
|
|
27
28
|
|
|
28
29
|
class GetFilesystemVolumeResponse(BaseModel):
|
|
29
30
|
"""
|
|
@@ -49,7 +50,8 @@ class GetFilesystemVolumeResponse(BaseModel):
|
|
|
49
50
|
return value
|
|
50
51
|
|
|
51
52
|
model_config = ConfigDict(
|
|
52
|
-
|
|
53
|
+
validate_by_name=True,
|
|
54
|
+
validate_by_alias=True,
|
|
53
55
|
validate_assignment=True,
|
|
54
56
|
protected_namespaces=(),
|
|
55
57
|
)
|
|
@@ -61,8 +63,7 @@ class GetFilesystemVolumeResponse(BaseModel):
|
|
|
61
63
|
|
|
62
64
|
def to_json(self) -> str:
|
|
63
65
|
"""Returns the JSON representation of the model using alias"""
|
|
64
|
-
|
|
65
|
-
return json.dumps(self.to_dict())
|
|
66
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
66
67
|
|
|
67
68
|
@classmethod
|
|
68
69
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
@@ -18,13 +18,14 @@ import re # noqa: F401
|
|
|
18
18
|
import json
|
|
19
19
|
|
|
20
20
|
from datetime import datetime
|
|
21
|
-
from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr
|
|
21
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr
|
|
22
22
|
from typing import Any, ClassVar, Dict, List, Optional
|
|
23
23
|
from platform_api_python_client.models.deployment_status import DeploymentStatus
|
|
24
24
|
from platform_api_python_client.models.deployment_type import DeploymentType
|
|
25
25
|
from platform_api_python_client.models.volume_mount import VolumeMount
|
|
26
26
|
from typing import Optional, Set
|
|
27
27
|
from typing_extensions import Self
|
|
28
|
+
from pydantic_core import to_jsonable_python
|
|
28
29
|
|
|
29
30
|
class GetInferenceDeploymentResponse(BaseModel):
|
|
30
31
|
"""
|
|
@@ -41,7 +42,7 @@ class GetInferenceDeploymentResponse(BaseModel):
|
|
|
41
42
|
created_at: datetime
|
|
42
43
|
hardware_instance_id: StrictInt
|
|
43
44
|
revision_number: StrictInt
|
|
44
|
-
chart_revision: Optional[StrictStr] = None
|
|
45
|
+
chart_revision: Optional[StrictStr] = Field(default=None, description="Saved catalog Git reference for this revision; null if not recorded. Informational: omit chart_revision from edit or clone requests to use the current platform default.")
|
|
45
46
|
user_annotations: Optional[Dict[str, StrictStr]] = None
|
|
46
47
|
priority: Optional[StrictStr] = None
|
|
47
48
|
volume_mounts: Optional[List[VolumeMount]] = None
|
|
@@ -59,7 +60,8 @@ class GetInferenceDeploymentResponse(BaseModel):
|
|
|
59
60
|
__properties: ClassVar[List[str]] = ["creator_email", "cluster_id", "id", "name", "endpoint_url", "image_url", "type", "status", "created_at", "hardware_instance_id", "revision_number", "chart_revision", "user_annotations", "priority", "volume_mounts", "container_port", "min_scale", "max_scale", "initial_scale", "concurrency", "healthcheck", "endpoint_certificate_authority", "endpoint_bearer_token", "env_vars", "command", "command_args"]
|
|
60
61
|
|
|
61
62
|
model_config = ConfigDict(
|
|
62
|
-
|
|
63
|
+
validate_by_name=True,
|
|
64
|
+
validate_by_alias=True,
|
|
63
65
|
validate_assignment=True,
|
|
64
66
|
protected_namespaces=(),
|
|
65
67
|
)
|
|
@@ -71,8 +73,7 @@ class GetInferenceDeploymentResponse(BaseModel):
|
|
|
71
73
|
|
|
72
74
|
def to_json(self) -> str:
|
|
73
75
|
"""Returns the JSON representation of the model using alias"""
|
|
74
|
-
|
|
75
|
-
return json.dumps(self.to_dict())
|
|
76
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
76
77
|
|
|
77
78
|
@classmethod
|
|
78
79
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
@@ -101,8 +102,7 @@ class GetInferenceDeploymentResponse(BaseModel):
|
|
|
101
102
|
_items = []
|
|
102
103
|
if self.volume_mounts:
|
|
103
104
|
for _item_volume_mounts in self.volume_mounts:
|
|
104
|
-
if _item_volume_mounts
|
|
105
|
-
_items.append(_item_volume_mounts.to_dict())
|
|
105
|
+
_items.append(_item_volume_mounts.to_dict() if _item_volume_mounts is not None else None)
|
|
106
106
|
_dict['volume_mounts'] = _items
|
|
107
107
|
# set to None if image_url (nullable) is None
|
|
108
108
|
# and model_fields_set contains the field
|