platform-api-python-client 4.28.0__py3-none-any.whl → 4.31.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 +5 -1
- platform_api_python_client/api/external_api.py +15 -288
- platform_api_python_client/api_client.py +1 -1
- platform_api_python_client/configuration.py +1 -1
- platform_api_python_client/models/__init__.py +4 -0
- platform_api_python_client/models/cloud_provider.py +5 -0
- platform_api_python_client/models/create_c_serve_v3_deployment_request.py +18 -1
- platform_api_python_client/models/create_compute_deployment_request.py +14 -7
- platform_api_python_client/models/create_dynamo_deployment_request.py +56 -6
- platform_api_python_client/models/create_filesystem_volume_request.py +13 -0
- platform_api_python_client/models/create_inference_v3_deployment_request.py +18 -1
- platform_api_python_client/models/create_job_deployment_request.py +17 -10
- platform_api_python_client/models/create_object_volume_request.py +32 -19
- platform_api_python_client/models/deployment_response.py +21 -6
- platform_api_python_client/models/dynamo_communications_input.py +104 -0
- platform_api_python_client/models/dynamo_communications_output.py +104 -0
- platform_api_python_client/models/dynamo_kv_transfer_configuration.py +101 -0
- platform_api_python_client/models/dynamo_kv_transfer_policy.py +37 -0
- platform_api_python_client/models/dynamo_worker_pool_config.py +38 -5
- platform_api_python_client/models/dynamo_worker_pools.py +24 -4
- platform_api_python_client/models/get_c_serve_v2_deployment_response.py +25 -1
- platform_api_python_client/models/get_c_serve_v3_deployment_response.py +25 -1
- platform_api_python_client/models/get_compute_deployment_response.py +17 -3
- platform_api_python_client/models/get_deployment_response.py +26 -2
- platform_api_python_client/models/get_dynamo_deployment_response.py +47 -5
- platform_api_python_client/models/get_inference_deployment_response.py +25 -1
- platform_api_python_client/models/get_inference_v3_deployment_response.py +25 -1
- platform_api_python_client/models/get_job_deployment_response.py +24 -10
- platform_api_python_client/models/get_object_volume_response.py +2 -16
- platform_api_python_client/models/hardware_instance_response.py +1 -3
- platform_api_python_client/models/validation_error.py +12 -3
- platform_api_python_client/models/volume_mount.py +1 -1
- {platform_api_python_client-4.28.0.dist-info → platform_api_python_client-4.31.0.dist-info}/METADATA +1 -1
- {platform_api_python_client-4.28.0.dist-info → platform_api_python_client-4.31.0.dist-info}/RECORD +36 -32
- {platform_api_python_client-4.28.0.dist-info → platform_api_python_client-4.31.0.dist-info}/WHEEL +0 -0
- {platform_api_python_client-4.28.0.dist-info → platform_api_python_client-4.31.0.dist-info}/top_level.txt +0 -0
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
""" # noqa: E501
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
__version__ = "4.
|
|
17
|
+
__version__ = "4.31.0"
|
|
18
18
|
|
|
19
19
|
# import apis into sdk package
|
|
20
20
|
from platform_api_python_client.api.external_api import EXTERNALApi
|
|
@@ -77,6 +77,10 @@ from platform_api_python_client.models.deployment_status_v3_response import Depl
|
|
|
77
77
|
from platform_api_python_client.models.deployment_type import DeploymentType
|
|
78
78
|
from platform_api_python_client.models.deployment_usage import DeploymentUsage
|
|
79
79
|
from platform_api_python_client.models.deployment_usage_value import DeploymentUsageValue
|
|
80
|
+
from platform_api_python_client.models.dynamo_communications_input import DynamoCommunicationsInput
|
|
81
|
+
from platform_api_python_client.models.dynamo_communications_output import DynamoCommunicationsOutput
|
|
82
|
+
from platform_api_python_client.models.dynamo_kv_transfer_configuration import DynamoKvTransferConfiguration
|
|
83
|
+
from platform_api_python_client.models.dynamo_kv_transfer_policy import DynamoKvTransferPolicy
|
|
80
84
|
from platform_api_python_client.models.dynamo_serving_mode import DynamoServingMode
|
|
81
85
|
from platform_api_python_client.models.dynamo_worker_pool_config import DynamoWorkerPoolConfig
|
|
82
86
|
from platform_api_python_client.models.dynamo_worker_pools import DynamoWorkerPools
|
|
@@ -126,6 +126,7 @@ class EXTERNALApi:
|
|
|
126
126
|
) -> ClusterRegistrationResponse:
|
|
127
127
|
"""Create Cluster
|
|
128
128
|
|
|
129
|
+
Register a cluster row for the caller's parent org.
|
|
129
130
|
|
|
130
131
|
:param cluster_registration_request: (required)
|
|
131
132
|
:type cluster_registration_request: ClusterRegistrationRequest
|
|
@@ -193,6 +194,7 @@ class EXTERNALApi:
|
|
|
193
194
|
) -> ApiResponse[ClusterRegistrationResponse]:
|
|
194
195
|
"""Create Cluster
|
|
195
196
|
|
|
197
|
+
Register a cluster row for the caller's parent org.
|
|
196
198
|
|
|
197
199
|
:param cluster_registration_request: (required)
|
|
198
200
|
:type cluster_registration_request: ClusterRegistrationRequest
|
|
@@ -260,6 +262,7 @@ class EXTERNALApi:
|
|
|
260
262
|
) -> RESTResponseType:
|
|
261
263
|
"""Create Cluster
|
|
262
264
|
|
|
265
|
+
Register a cluster row for the caller's parent org.
|
|
263
266
|
|
|
264
267
|
:param cluster_registration_request: (required)
|
|
265
268
|
:type cluster_registration_request: ClusterRegistrationRequest
|
|
@@ -3082,7 +3085,7 @@ class EXTERNALApi:
|
|
|
3082
3085
|
) -> GetVolumeResponse:
|
|
3083
3086
|
"""Create Volume Endpoint
|
|
3084
3087
|
|
|
3085
|
-
Create a
|
|
3088
|
+
Create a filesystem or object volume.
|
|
3086
3089
|
|
|
3087
3090
|
:param create_volume_request: (required)
|
|
3088
3091
|
:type create_volume_request: CreateVolumeRequest
|
|
@@ -3150,7 +3153,7 @@ class EXTERNALApi:
|
|
|
3150
3153
|
) -> ApiResponse[GetVolumeResponse]:
|
|
3151
3154
|
"""Create Volume Endpoint
|
|
3152
3155
|
|
|
3153
|
-
Create a
|
|
3156
|
+
Create a filesystem or object volume.
|
|
3154
3157
|
|
|
3155
3158
|
:param create_volume_request: (required)
|
|
3156
3159
|
:type create_volume_request: CreateVolumeRequest
|
|
@@ -3218,7 +3221,7 @@ class EXTERNALApi:
|
|
|
3218
3221
|
) -> RESTResponseType:
|
|
3219
3222
|
"""Create Volume Endpoint
|
|
3220
3223
|
|
|
3221
|
-
Create a
|
|
3224
|
+
Create a filesystem or object volume.
|
|
3222
3225
|
|
|
3223
3226
|
:param create_volume_request: (required)
|
|
3224
3227
|
:type create_volume_request: CreateVolumeRequest
|
|
@@ -3862,285 +3865,6 @@ class EXTERNALApi:
|
|
|
3862
3865
|
|
|
3863
3866
|
|
|
3864
3867
|
|
|
3865
|
-
@validate_call
|
|
3866
|
-
def delete_org_gpu_quota_on_cluster_clusters_cluster_id_organizations_organization_id_gpu_quota_delete(
|
|
3867
|
-
self,
|
|
3868
|
-
cluster_id: StrictInt,
|
|
3869
|
-
organization_id: StrictInt,
|
|
3870
|
-
_request_timeout: Union[
|
|
3871
|
-
None,
|
|
3872
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
3873
|
-
Tuple[
|
|
3874
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
3875
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
3876
|
-
]
|
|
3877
|
-
] = None,
|
|
3878
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3879
|
-
_content_type: Optional[StrictStr] = None,
|
|
3880
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3881
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3882
|
-
) -> OrganizationGpuQuotaResponse:
|
|
3883
|
-
"""Delete Org Gpu Quota On Cluster
|
|
3884
|
-
|
|
3885
|
-
Set persisted quota to unlimited (-1). Creates a row if none exists. Does not remove the row or the KAI Queue CR.
|
|
3886
|
-
|
|
3887
|
-
:param cluster_id: (required)
|
|
3888
|
-
:type cluster_id: int
|
|
3889
|
-
:param organization_id: (required)
|
|
3890
|
-
:type organization_id: int
|
|
3891
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
3892
|
-
number provided, it will be total request
|
|
3893
|
-
timeout. It can also be a pair (tuple) of
|
|
3894
|
-
(connection, read) timeouts.
|
|
3895
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
3896
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
3897
|
-
request; this effectively ignores the
|
|
3898
|
-
authentication in the spec for a single request.
|
|
3899
|
-
:type _request_auth: dict, optional
|
|
3900
|
-
:param _content_type: force content-type for the request.
|
|
3901
|
-
:type _content_type: str, Optional
|
|
3902
|
-
:param _headers: set to override the headers for a single
|
|
3903
|
-
request; this effectively ignores the headers
|
|
3904
|
-
in the spec for a single request.
|
|
3905
|
-
:type _headers: dict, optional
|
|
3906
|
-
:param _host_index: set to override the host_index for a single
|
|
3907
|
-
request; this effectively ignores the host_index
|
|
3908
|
-
in the spec for a single request.
|
|
3909
|
-
:type _host_index: int, optional
|
|
3910
|
-
:return: Returns the result object.
|
|
3911
|
-
""" # noqa: E501
|
|
3912
|
-
|
|
3913
|
-
_param = self._delete_org_gpu_quota_on_cluster_clusters_cluster_id_organizations_organization_id_gpu_quota_delete_serialize(
|
|
3914
|
-
cluster_id=cluster_id,
|
|
3915
|
-
organization_id=organization_id,
|
|
3916
|
-
_request_auth=_request_auth,
|
|
3917
|
-
_content_type=_content_type,
|
|
3918
|
-
_headers=_headers,
|
|
3919
|
-
_host_index=_host_index
|
|
3920
|
-
)
|
|
3921
|
-
|
|
3922
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
3923
|
-
'200': "OrganizationGpuQuotaResponse",
|
|
3924
|
-
'422': "HTTPValidationError",
|
|
3925
|
-
}
|
|
3926
|
-
response_data = self.api_client.call_api(
|
|
3927
|
-
*_param,
|
|
3928
|
-
_request_timeout=_request_timeout
|
|
3929
|
-
)
|
|
3930
|
-
response_data.read()
|
|
3931
|
-
return self.api_client.response_deserialize(
|
|
3932
|
-
response_data=response_data,
|
|
3933
|
-
response_types_map=_response_types_map,
|
|
3934
|
-
).data
|
|
3935
|
-
|
|
3936
|
-
|
|
3937
|
-
@validate_call
|
|
3938
|
-
def delete_org_gpu_quota_on_cluster_clusters_cluster_id_organizations_organization_id_gpu_quota_delete_with_http_info(
|
|
3939
|
-
self,
|
|
3940
|
-
cluster_id: StrictInt,
|
|
3941
|
-
organization_id: StrictInt,
|
|
3942
|
-
_request_timeout: Union[
|
|
3943
|
-
None,
|
|
3944
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
3945
|
-
Tuple[
|
|
3946
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
3947
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
3948
|
-
]
|
|
3949
|
-
] = None,
|
|
3950
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3951
|
-
_content_type: Optional[StrictStr] = None,
|
|
3952
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3953
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3954
|
-
) -> ApiResponse[OrganizationGpuQuotaResponse]:
|
|
3955
|
-
"""Delete Org Gpu Quota On Cluster
|
|
3956
|
-
|
|
3957
|
-
Set persisted quota to unlimited (-1). Creates a row if none exists. Does not remove the row or the KAI Queue CR.
|
|
3958
|
-
|
|
3959
|
-
:param cluster_id: (required)
|
|
3960
|
-
:type cluster_id: int
|
|
3961
|
-
:param organization_id: (required)
|
|
3962
|
-
:type organization_id: int
|
|
3963
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
3964
|
-
number provided, it will be total request
|
|
3965
|
-
timeout. It can also be a pair (tuple) of
|
|
3966
|
-
(connection, read) timeouts.
|
|
3967
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
3968
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
3969
|
-
request; this effectively ignores the
|
|
3970
|
-
authentication in the spec for a single request.
|
|
3971
|
-
:type _request_auth: dict, optional
|
|
3972
|
-
:param _content_type: force content-type for the request.
|
|
3973
|
-
:type _content_type: str, Optional
|
|
3974
|
-
:param _headers: set to override the headers for a single
|
|
3975
|
-
request; this effectively ignores the headers
|
|
3976
|
-
in the spec for a single request.
|
|
3977
|
-
:type _headers: dict, optional
|
|
3978
|
-
:param _host_index: set to override the host_index for a single
|
|
3979
|
-
request; this effectively ignores the host_index
|
|
3980
|
-
in the spec for a single request.
|
|
3981
|
-
:type _host_index: int, optional
|
|
3982
|
-
:return: Returns the result object.
|
|
3983
|
-
""" # noqa: E501
|
|
3984
|
-
|
|
3985
|
-
_param = self._delete_org_gpu_quota_on_cluster_clusters_cluster_id_organizations_organization_id_gpu_quota_delete_serialize(
|
|
3986
|
-
cluster_id=cluster_id,
|
|
3987
|
-
organization_id=organization_id,
|
|
3988
|
-
_request_auth=_request_auth,
|
|
3989
|
-
_content_type=_content_type,
|
|
3990
|
-
_headers=_headers,
|
|
3991
|
-
_host_index=_host_index
|
|
3992
|
-
)
|
|
3993
|
-
|
|
3994
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
3995
|
-
'200': "OrganizationGpuQuotaResponse",
|
|
3996
|
-
'422': "HTTPValidationError",
|
|
3997
|
-
}
|
|
3998
|
-
response_data = self.api_client.call_api(
|
|
3999
|
-
*_param,
|
|
4000
|
-
_request_timeout=_request_timeout
|
|
4001
|
-
)
|
|
4002
|
-
response_data.read()
|
|
4003
|
-
return self.api_client.response_deserialize(
|
|
4004
|
-
response_data=response_data,
|
|
4005
|
-
response_types_map=_response_types_map,
|
|
4006
|
-
)
|
|
4007
|
-
|
|
4008
|
-
|
|
4009
|
-
@validate_call
|
|
4010
|
-
def delete_org_gpu_quota_on_cluster_clusters_cluster_id_organizations_organization_id_gpu_quota_delete_without_preload_content(
|
|
4011
|
-
self,
|
|
4012
|
-
cluster_id: StrictInt,
|
|
4013
|
-
organization_id: StrictInt,
|
|
4014
|
-
_request_timeout: Union[
|
|
4015
|
-
None,
|
|
4016
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
4017
|
-
Tuple[
|
|
4018
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
4019
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
4020
|
-
]
|
|
4021
|
-
] = None,
|
|
4022
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
4023
|
-
_content_type: Optional[StrictStr] = None,
|
|
4024
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
4025
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
4026
|
-
) -> RESTResponseType:
|
|
4027
|
-
"""Delete Org Gpu Quota On Cluster
|
|
4028
|
-
|
|
4029
|
-
Set persisted quota to unlimited (-1). Creates a row if none exists. Does not remove the row or the KAI Queue CR.
|
|
4030
|
-
|
|
4031
|
-
:param cluster_id: (required)
|
|
4032
|
-
:type cluster_id: int
|
|
4033
|
-
:param organization_id: (required)
|
|
4034
|
-
:type organization_id: int
|
|
4035
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
4036
|
-
number provided, it will be total request
|
|
4037
|
-
timeout. It can also be a pair (tuple) of
|
|
4038
|
-
(connection, read) timeouts.
|
|
4039
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
4040
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
4041
|
-
request; this effectively ignores the
|
|
4042
|
-
authentication in the spec for a single request.
|
|
4043
|
-
:type _request_auth: dict, optional
|
|
4044
|
-
:param _content_type: force content-type for the request.
|
|
4045
|
-
:type _content_type: str, Optional
|
|
4046
|
-
:param _headers: set to override the headers for a single
|
|
4047
|
-
request; this effectively ignores the headers
|
|
4048
|
-
in the spec for a single request.
|
|
4049
|
-
:type _headers: dict, optional
|
|
4050
|
-
:param _host_index: set to override the host_index for a single
|
|
4051
|
-
request; this effectively ignores the host_index
|
|
4052
|
-
in the spec for a single request.
|
|
4053
|
-
:type _host_index: int, optional
|
|
4054
|
-
:return: Returns the result object.
|
|
4055
|
-
""" # noqa: E501
|
|
4056
|
-
|
|
4057
|
-
_param = self._delete_org_gpu_quota_on_cluster_clusters_cluster_id_organizations_organization_id_gpu_quota_delete_serialize(
|
|
4058
|
-
cluster_id=cluster_id,
|
|
4059
|
-
organization_id=organization_id,
|
|
4060
|
-
_request_auth=_request_auth,
|
|
4061
|
-
_content_type=_content_type,
|
|
4062
|
-
_headers=_headers,
|
|
4063
|
-
_host_index=_host_index
|
|
4064
|
-
)
|
|
4065
|
-
|
|
4066
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
4067
|
-
'200': "OrganizationGpuQuotaResponse",
|
|
4068
|
-
'422': "HTTPValidationError",
|
|
4069
|
-
}
|
|
4070
|
-
response_data = self.api_client.call_api(
|
|
4071
|
-
*_param,
|
|
4072
|
-
_request_timeout=_request_timeout
|
|
4073
|
-
)
|
|
4074
|
-
return response_data.response
|
|
4075
|
-
|
|
4076
|
-
|
|
4077
|
-
def _delete_org_gpu_quota_on_cluster_clusters_cluster_id_organizations_organization_id_gpu_quota_delete_serialize(
|
|
4078
|
-
self,
|
|
4079
|
-
cluster_id,
|
|
4080
|
-
organization_id,
|
|
4081
|
-
_request_auth,
|
|
4082
|
-
_content_type,
|
|
4083
|
-
_headers,
|
|
4084
|
-
_host_index,
|
|
4085
|
-
) -> RequestSerialized:
|
|
4086
|
-
|
|
4087
|
-
_host = None
|
|
4088
|
-
|
|
4089
|
-
_collection_formats: Dict[str, str] = {
|
|
4090
|
-
}
|
|
4091
|
-
|
|
4092
|
-
_path_params: Dict[str, str] = {}
|
|
4093
|
-
_query_params: List[Tuple[str, str]] = []
|
|
4094
|
-
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
4095
|
-
_form_params: List[Tuple[str, str]] = []
|
|
4096
|
-
_files: Dict[
|
|
4097
|
-
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
4098
|
-
] = {}
|
|
4099
|
-
_body_params: Optional[bytes] = None
|
|
4100
|
-
|
|
4101
|
-
# process the path parameters
|
|
4102
|
-
if cluster_id is not None:
|
|
4103
|
-
_path_params['cluster_id'] = cluster_id
|
|
4104
|
-
if organization_id is not None:
|
|
4105
|
-
_path_params['organization_id'] = organization_id
|
|
4106
|
-
# process the query parameters
|
|
4107
|
-
# process the header parameters
|
|
4108
|
-
# process the form parameters
|
|
4109
|
-
# process the body parameter
|
|
4110
|
-
|
|
4111
|
-
|
|
4112
|
-
# set the HTTP header `Accept`
|
|
4113
|
-
if 'Accept' not in _header_params:
|
|
4114
|
-
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
4115
|
-
[
|
|
4116
|
-
'application/json'
|
|
4117
|
-
]
|
|
4118
|
-
)
|
|
4119
|
-
|
|
4120
|
-
|
|
4121
|
-
# authentication setting
|
|
4122
|
-
_auth_settings: List[str] = [
|
|
4123
|
-
'HTTPBearer'
|
|
4124
|
-
]
|
|
4125
|
-
|
|
4126
|
-
return self.api_client.param_serialize(
|
|
4127
|
-
method='DELETE',
|
|
4128
|
-
resource_path='/clusters/{cluster_id}/organizations/{organization_id}/gpu-quota',
|
|
4129
|
-
path_params=_path_params,
|
|
4130
|
-
query_params=_query_params,
|
|
4131
|
-
header_params=_header_params,
|
|
4132
|
-
body=_body_params,
|
|
4133
|
-
post_params=_form_params,
|
|
4134
|
-
files=_files,
|
|
4135
|
-
auth_settings=_auth_settings,
|
|
4136
|
-
collection_formats=_collection_formats,
|
|
4137
|
-
_host=_host,
|
|
4138
|
-
_request_auth=_request_auth
|
|
4139
|
-
)
|
|
4140
|
-
|
|
4141
|
-
|
|
4142
|
-
|
|
4143
|
-
|
|
4144
3868
|
@validate_call
|
|
4145
3869
|
def delete_service_account_service_accounts_workos_id_delete(
|
|
4146
3870
|
self,
|
|
@@ -15049,7 +14773,7 @@ class EXTERNALApi:
|
|
|
15049
14773
|
) -> OrganizationGpuQuotaResponse:
|
|
15050
14774
|
"""Put Org Gpu Quota On Cluster
|
|
15051
14775
|
|
|
15052
|
-
Persist
|
|
14776
|
+
Persist organization GPU quota on this cluster and apply KAI Queue CRs. ``gpu_quota`` of -1 is unlimited; a positive value is a hard cap. Rows are never removed. Requires ``CATALOG_TARGET_REVISION`` to contain ``catalog/src/catalog/kai_gpu_queues``. A 200 means the quota row was saved and an Argo CD sync was requested (not that Queue CRs are already healthy). A 502 means the row was saved but the Application upsert/sync request failed; re-issue this idempotent PUT to retry.
|
|
15053
14777
|
|
|
15054
14778
|
:param cluster_id: (required)
|
|
15055
14779
|
:type cluster_id: int
|
|
@@ -15125,7 +14849,7 @@ class EXTERNALApi:
|
|
|
15125
14849
|
) -> ApiResponse[OrganizationGpuQuotaResponse]:
|
|
15126
14850
|
"""Put Org Gpu Quota On Cluster
|
|
15127
14851
|
|
|
15128
|
-
Persist
|
|
14852
|
+
Persist organization GPU quota on this cluster and apply KAI Queue CRs. ``gpu_quota`` of -1 is unlimited; a positive value is a hard cap. Rows are never removed. Requires ``CATALOG_TARGET_REVISION`` to contain ``catalog/src/catalog/kai_gpu_queues``. A 200 means the quota row was saved and an Argo CD sync was requested (not that Queue CRs are already healthy). A 502 means the row was saved but the Application upsert/sync request failed; re-issue this idempotent PUT to retry.
|
|
15129
14853
|
|
|
15130
14854
|
:param cluster_id: (required)
|
|
15131
14855
|
:type cluster_id: int
|
|
@@ -15201,7 +14925,7 @@ class EXTERNALApi:
|
|
|
15201
14925
|
) -> RESTResponseType:
|
|
15202
14926
|
"""Put Org Gpu Quota On Cluster
|
|
15203
14927
|
|
|
15204
|
-
Persist
|
|
14928
|
+
Persist organization GPU quota on this cluster and apply KAI Queue CRs. ``gpu_quota`` of -1 is unlimited; a positive value is a hard cap. Rows are never removed. Requires ``CATALOG_TARGET_REVISION`` to contain ``catalog/src/catalog/kai_gpu_queues``. A 200 means the quota row was saved and an Argo CD sync was requested (not that Queue CRs are already healthy). A 502 means the row was saved but the Application upsert/sync request failed; re-issue this idempotent PUT to retry.
|
|
15205
14929
|
|
|
15206
14930
|
:param cluster_id: (required)
|
|
15207
14931
|
:type cluster_id: int
|
|
@@ -15905,6 +15629,7 @@ class EXTERNALApi:
|
|
|
15905
15629
|
) -> object:
|
|
15906
15630
|
"""Update Cluster
|
|
15907
15631
|
|
|
15632
|
+
Validate a cluster component configuration for an org-owned cluster. Infra provisioning is not wired yet; ``config.components`` is validated only.
|
|
15908
15633
|
|
|
15909
15634
|
:param cluster_id: (required)
|
|
15910
15635
|
:type cluster_id: int
|
|
@@ -15976,6 +15701,7 @@ class EXTERNALApi:
|
|
|
15976
15701
|
) -> ApiResponse[object]:
|
|
15977
15702
|
"""Update Cluster
|
|
15978
15703
|
|
|
15704
|
+
Validate a cluster component configuration for an org-owned cluster. Infra provisioning is not wired yet; ``config.components`` is validated only.
|
|
15979
15705
|
|
|
15980
15706
|
:param cluster_id: (required)
|
|
15981
15707
|
:type cluster_id: int
|
|
@@ -16047,6 +15773,7 @@ class EXTERNALApi:
|
|
|
16047
15773
|
) -> RESTResponseType:
|
|
16048
15774
|
"""Update Cluster
|
|
16049
15775
|
|
|
15776
|
+
Validate a cluster component configuration for an org-owned cluster. Infra provisioning is not wired yet; ``config.components`` is validated only.
|
|
16050
15777
|
|
|
16051
15778
|
:param cluster_id: (required)
|
|
16052
15779
|
:type cluster_id: int
|
|
@@ -16194,7 +15921,7 @@ class EXTERNALApi:
|
|
|
16194
15921
|
) -> GetClusterResponse:
|
|
16195
15922
|
"""Update Cluster Metadata
|
|
16196
15923
|
|
|
16197
|
-
Update DB metadata for an org-owned cluster.
|
|
15924
|
+
Update DB metadata for an org-owned cluster. Global clusters (parent_id IS NULL) are not mutable here.
|
|
16198
15925
|
|
|
16199
15926
|
:param cluster_id: (required)
|
|
16200
15927
|
:type cluster_id: int
|
|
@@ -16266,7 +15993,7 @@ class EXTERNALApi:
|
|
|
16266
15993
|
) -> ApiResponse[GetClusterResponse]:
|
|
16267
15994
|
"""Update Cluster Metadata
|
|
16268
15995
|
|
|
16269
|
-
Update DB metadata for an org-owned cluster.
|
|
15996
|
+
Update DB metadata for an org-owned cluster. Global clusters (parent_id IS NULL) are not mutable here.
|
|
16270
15997
|
|
|
16271
15998
|
:param cluster_id: (required)
|
|
16272
15999
|
:type cluster_id: int
|
|
@@ -16338,7 +16065,7 @@ class EXTERNALApi:
|
|
|
16338
16065
|
) -> RESTResponseType:
|
|
16339
16066
|
"""Update Cluster Metadata
|
|
16340
16067
|
|
|
16341
|
-
Update DB metadata for an org-owned cluster.
|
|
16068
|
+
Update DB metadata for an org-owned cluster. Global clusters (parent_id IS NULL) are not mutable here.
|
|
16342
16069
|
|
|
16343
16070
|
:param cluster_id: (required)
|
|
16344
16071
|
:type cluster_id: int
|
|
@@ -90,7 +90,7 @@ class ApiClient:
|
|
|
90
90
|
self.default_headers[header_name] = header_value
|
|
91
91
|
self.cookie = cookie
|
|
92
92
|
# Set default User-Agent.
|
|
93
|
-
self.user_agent = 'OpenAPI-Generator/4.
|
|
93
|
+
self.user_agent = 'OpenAPI-Generator/4.31.0/python'
|
|
94
94
|
self.client_side_validation = configuration.client_side_validation
|
|
95
95
|
|
|
96
96
|
def __enter__(self):
|
|
@@ -392,7 +392,7 @@ class Configuration:
|
|
|
392
392
|
"OS: {env}\n"\
|
|
393
393
|
"Python Version: {pyversion}\n"\
|
|
394
394
|
"Version of the API: 0.1.0\n"\
|
|
395
|
-
"SDK Package Version: 4.
|
|
395
|
+
"SDK Package Version: 4.31.0".\
|
|
396
396
|
format(env=sys.platform, pyversion=sys.version)
|
|
397
397
|
|
|
398
398
|
def get_host_settings(self):
|
|
@@ -60,6 +60,10 @@ from platform_api_python_client.models.deployment_status_v3_response import Depl
|
|
|
60
60
|
from platform_api_python_client.models.deployment_type import DeploymentType
|
|
61
61
|
from platform_api_python_client.models.deployment_usage import DeploymentUsage
|
|
62
62
|
from platform_api_python_client.models.deployment_usage_value import DeploymentUsageValue
|
|
63
|
+
from platform_api_python_client.models.dynamo_communications_input import DynamoCommunicationsInput
|
|
64
|
+
from platform_api_python_client.models.dynamo_communications_output import DynamoCommunicationsOutput
|
|
65
|
+
from platform_api_python_client.models.dynamo_kv_transfer_configuration import DynamoKvTransferConfiguration
|
|
66
|
+
from platform_api_python_client.models.dynamo_kv_transfer_policy import DynamoKvTransferPolicy
|
|
63
67
|
from platform_api_python_client.models.dynamo_serving_mode import DynamoServingMode
|
|
64
68
|
from platform_api_python_client.models.dynamo_worker_pool_config import DynamoWorkerPoolConfig
|
|
65
69
|
from platform_api_python_client.models.dynamo_worker_pools import DynamoWorkerPools
|
|
@@ -30,6 +30,11 @@ class CloudProvider(str, Enum):
|
|
|
30
30
|
AWS = 'aws'
|
|
31
31
|
AZURE = 'azure'
|
|
32
32
|
NEBIUS = 'nebius'
|
|
33
|
+
LAMBDA = 'lambda'
|
|
34
|
+
VULTR = 'vultr'
|
|
35
|
+
INTEL = 'intel'
|
|
36
|
+
COREWEAVE = 'coreweave'
|
|
37
|
+
UNKNOWN = 'unknown'
|
|
33
38
|
|
|
34
39
|
@classmethod
|
|
35
40
|
def from_json(cls, json_str: str) -> Self:
|
|
@@ -21,6 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, Strict
|
|
|
21
21
|
from typing import Any, ClassVar, Dict, List, Optional
|
|
22
22
|
from typing_extensions import Annotated
|
|
23
23
|
from platform_api_python_client.models.c_serve_v2_recipe import CServeV2Recipe
|
|
24
|
+
from platform_api_python_client.models.volume_mount import VolumeMount
|
|
24
25
|
from typing import Optional, Set
|
|
25
26
|
from typing_extensions import Self
|
|
26
27
|
|
|
@@ -35,6 +36,8 @@ class CreateCServeV3DeploymentRequest(BaseModel):
|
|
|
35
36
|
hardware_instance_id: StrictInt
|
|
36
37
|
user_annotations: Optional[Dict[str, StrictStr]] = None
|
|
37
38
|
chart_revision: Optional[StrictStr] = None
|
|
39
|
+
volume_mounts: Optional[Annotated[List[VolumeMount], Field(max_length=10)]] = None
|
|
40
|
+
priority: Optional[Annotated[str, Field(strict=True, max_length=253)]] = None
|
|
38
41
|
recipe: CServeV2Recipe
|
|
39
42
|
cserve_version: Optional[StrictStr] = None
|
|
40
43
|
hf_token: Optional[StrictStr] = None
|
|
@@ -48,7 +51,7 @@ class CreateCServeV3DeploymentRequest(BaseModel):
|
|
|
48
51
|
enable_logging: Optional[StrictBool] = True
|
|
49
52
|
enable_node_model_cache: Optional[StrictBool] = False
|
|
50
53
|
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.")
|
|
51
|
-
__properties: ClassVar[List[str]] = ["max_surge", "max_unavailable", "name", "cluster_id", "hardware_instance_id", "user_annotations", "chart_revision", "recipe", "cserve_version", "hf_token", "endpoint_bearer_token", "endpoint_certificate_authority", "min_replicas", "max_replicas", "concurrency", "cooldown_period", "env_vars", "enable_logging", "enable_node_model_cache", "session_affinity"]
|
|
54
|
+
__properties: ClassVar[List[str]] = ["max_surge", "max_unavailable", "name", "cluster_id", "hardware_instance_id", "user_annotations", "chart_revision", "volume_mounts", "priority", "recipe", "cserve_version", "hf_token", "endpoint_bearer_token", "endpoint_certificate_authority", "min_replicas", "max_replicas", "concurrency", "cooldown_period", "env_vars", "enable_logging", "enable_node_model_cache", "session_affinity"]
|
|
52
55
|
|
|
53
56
|
@field_validator('name')
|
|
54
57
|
def name_validate_regular_expression(cls, value):
|
|
@@ -96,6 +99,13 @@ class CreateCServeV3DeploymentRequest(BaseModel):
|
|
|
96
99
|
exclude=excluded_fields,
|
|
97
100
|
exclude_none=True,
|
|
98
101
|
)
|
|
102
|
+
# override the default output from pydantic by calling `to_dict()` of each item in volume_mounts (list)
|
|
103
|
+
_items = []
|
|
104
|
+
if self.volume_mounts:
|
|
105
|
+
for _item_volume_mounts in self.volume_mounts:
|
|
106
|
+
if _item_volume_mounts:
|
|
107
|
+
_items.append(_item_volume_mounts.to_dict())
|
|
108
|
+
_dict['volume_mounts'] = _items
|
|
99
109
|
# override the default output from pydantic by calling `to_dict()` of recipe
|
|
100
110
|
if self.recipe:
|
|
101
111
|
_dict['recipe'] = self.recipe.to_dict()
|
|
@@ -114,6 +124,11 @@ class CreateCServeV3DeploymentRequest(BaseModel):
|
|
|
114
124
|
if self.user_annotations is None and "user_annotations" in self.model_fields_set:
|
|
115
125
|
_dict['user_annotations'] = None
|
|
116
126
|
|
|
127
|
+
# set to None if priority (nullable) is None
|
|
128
|
+
# and model_fields_set contains the field
|
|
129
|
+
if self.priority is None and "priority" in self.model_fields_set:
|
|
130
|
+
_dict['priority'] = None
|
|
131
|
+
|
|
117
132
|
# set to None if cserve_version (nullable) is None
|
|
118
133
|
# and model_fields_set contains the field
|
|
119
134
|
if self.cserve_version is None and "cserve_version" in self.model_fields_set:
|
|
@@ -163,6 +178,8 @@ class CreateCServeV3DeploymentRequest(BaseModel):
|
|
|
163
178
|
"hardware_instance_id": obj.get("hardware_instance_id"),
|
|
164
179
|
"user_annotations": obj.get("user_annotations"),
|
|
165
180
|
"chart_revision": obj.get("chart_revision"),
|
|
181
|
+
"volume_mounts": [VolumeMount.from_dict(_item) for _item in obj["volume_mounts"]] if obj.get("volume_mounts") is not None else None,
|
|
182
|
+
"priority": obj.get("priority"),
|
|
166
183
|
"recipe": CServeV2Recipe.from_dict(obj["recipe"]) if obj.get("recipe") is not None else None,
|
|
167
184
|
"cserve_version": obj.get("cserve_version"),
|
|
168
185
|
"hf_token": obj.get("hf_token"),
|
|
@@ -34,12 +34,13 @@ class CreateComputeDeploymentRequest(BaseModel):
|
|
|
34
34
|
hardware_instance_id: StrictInt
|
|
35
35
|
user_annotations: Optional[Dict[str, StrictStr]] = None
|
|
36
36
|
chart_revision: Optional[StrictStr] = None
|
|
37
|
+
volume_mounts: Optional[Annotated[List[VolumeMount], Field(max_length=10)]] = None
|
|
38
|
+
priority: Optional[Annotated[str, Field(strict=True, max_length=253)]] = None
|
|
37
39
|
image_url: StrictStr
|
|
38
40
|
image_pull_secret_credentials: Optional[ImagePullSecretCredentials] = None
|
|
39
41
|
ssh_public_key: StrictStr
|
|
40
42
|
enable_logging: Optional[StrictBool] = False
|
|
41
|
-
|
|
42
|
-
__properties: ClassVar[List[str]] = ["name", "cluster_id", "hardware_instance_id", "user_annotations", "chart_revision", "image_url", "image_pull_secret_credentials", "ssh_public_key", "enable_logging", "volume_mounts"]
|
|
43
|
+
__properties: ClassVar[List[str]] = ["name", "cluster_id", "hardware_instance_id", "user_annotations", "chart_revision", "volume_mounts", "priority", "image_url", "image_pull_secret_credentials", "ssh_public_key", "enable_logging"]
|
|
43
44
|
|
|
44
45
|
@field_validator('name')
|
|
45
46
|
def name_validate_regular_expression(cls, value):
|
|
@@ -87,9 +88,6 @@ class CreateComputeDeploymentRequest(BaseModel):
|
|
|
87
88
|
exclude=excluded_fields,
|
|
88
89
|
exclude_none=True,
|
|
89
90
|
)
|
|
90
|
-
# override the default output from pydantic by calling `to_dict()` of image_pull_secret_credentials
|
|
91
|
-
if self.image_pull_secret_credentials:
|
|
92
|
-
_dict['image_pull_secret_credentials'] = self.image_pull_secret_credentials.to_dict()
|
|
93
91
|
# override the default output from pydantic by calling `to_dict()` of each item in volume_mounts (list)
|
|
94
92
|
_items = []
|
|
95
93
|
if self.volume_mounts:
|
|
@@ -97,11 +95,19 @@ class CreateComputeDeploymentRequest(BaseModel):
|
|
|
97
95
|
if _item_volume_mounts:
|
|
98
96
|
_items.append(_item_volume_mounts.to_dict())
|
|
99
97
|
_dict['volume_mounts'] = _items
|
|
98
|
+
# override the default output from pydantic by calling `to_dict()` of image_pull_secret_credentials
|
|
99
|
+
if self.image_pull_secret_credentials:
|
|
100
|
+
_dict['image_pull_secret_credentials'] = self.image_pull_secret_credentials.to_dict()
|
|
100
101
|
# set to None if user_annotations (nullable) is None
|
|
101
102
|
# and model_fields_set contains the field
|
|
102
103
|
if self.user_annotations is None and "user_annotations" in self.model_fields_set:
|
|
103
104
|
_dict['user_annotations'] = None
|
|
104
105
|
|
|
106
|
+
# set to None if priority (nullable) is None
|
|
107
|
+
# and model_fields_set contains the field
|
|
108
|
+
if self.priority is None and "priority" in self.model_fields_set:
|
|
109
|
+
_dict['priority'] = None
|
|
110
|
+
|
|
105
111
|
# set to None if image_pull_secret_credentials (nullable) is None
|
|
106
112
|
# and model_fields_set contains the field
|
|
107
113
|
if self.image_pull_secret_credentials is None and "image_pull_secret_credentials" in self.model_fields_set:
|
|
@@ -124,11 +130,12 @@ class CreateComputeDeploymentRequest(BaseModel):
|
|
|
124
130
|
"hardware_instance_id": obj.get("hardware_instance_id"),
|
|
125
131
|
"user_annotations": obj.get("user_annotations"),
|
|
126
132
|
"chart_revision": obj.get("chart_revision"),
|
|
133
|
+
"volume_mounts": [VolumeMount.from_dict(_item) for _item in obj["volume_mounts"]] if obj.get("volume_mounts") is not None else None,
|
|
134
|
+
"priority": obj.get("priority"),
|
|
127
135
|
"image_url": obj.get("image_url"),
|
|
128
136
|
"image_pull_secret_credentials": ImagePullSecretCredentials.from_dict(obj["image_pull_secret_credentials"]) if obj.get("image_pull_secret_credentials") is not None else None,
|
|
129
137
|
"ssh_public_key": obj.get("ssh_public_key"),
|
|
130
|
-
"enable_logging": obj.get("enable_logging") if obj.get("enable_logging") is not None else False
|
|
131
|
-
"volume_mounts": [VolumeMount.from_dict(_item) for _item in obj["volume_mounts"]] if obj.get("volume_mounts") is not None else None
|
|
138
|
+
"enable_logging": obj.get("enable_logging") if obj.get("enable_logging") is not None else False
|
|
132
139
|
})
|
|
133
140
|
return _obj
|
|
134
141
|
|