platform-api-python-client 4.1.9__py3-none-any.whl → 4.8.3__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 +7 -1
- platform_api_python_client/api/external_api.py +548 -6
- platform_api_python_client/api_client.py +1 -1
- platform_api_python_client/configuration.py +1 -1
- platform_api_python_client/models/__init__.py +6 -0
- platform_api_python_client/models/backend_protocol.py +37 -0
- platform_api_python_client/models/cluster_capacity_response.py +99 -0
- platform_api_python_client/models/create_c_serve_v3_deployment_request.py +5 -3
- platform_api_python_client/models/create_compute_deployment_request.py +4 -2
- platform_api_python_client/models/create_inference_v3_deployment_request.py +8 -3
- platform_api_python_client/models/get_c_serve_v3_deployment_response.py +5 -3
- platform_api_python_client/models/get_cluster_response.py +3 -1
- platform_api_python_client/models/get_compute_deployment_response.py +5 -3
- platform_api_python_client/models/get_inference_v3_deployment_response.py +15 -3
- platform_api_python_client/models/gpu_type_capacity.py +91 -0
- platform_api_python_client/models/invite_user_request.py +87 -0
- platform_api_python_client/models/list_cluster_capacity_response.py +95 -0
- platform_api_python_client/models/user_vault_item.py +5 -2
- platform_api_python_client/models/user_vault_type.py +1 -0
- platform_api_python_client/models/vault_scope.py +37 -0
- {platform_api_python_client-4.1.9.dist-info → platform_api_python_client-4.8.3.dist-info}/METADATA +1 -1
- {platform_api_python_client-4.1.9.dist-info → platform_api_python_client-4.8.3.dist-info}/RECORD +24 -18
- {platform_api_python_client-4.1.9.dist-info → platform_api_python_client-4.8.3.dist-info}/WHEEL +1 -1
- {platform_api_python_client-4.1.9.dist-info → platform_api_python_client-4.8.3.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.8.3"
|
|
18
18
|
|
|
19
19
|
# import apis into sdk package
|
|
20
20
|
from platform_api_python_client.api.external_api import EXTERNALApi
|
|
@@ -33,9 +33,11 @@ from platform_api_python_client.exceptions import ApiException
|
|
|
33
33
|
# import models into sdk package
|
|
34
34
|
from platform_api_python_client.models.api_key_request import APIKeyRequest
|
|
35
35
|
from platform_api_python_client.models.api_key_response import APIKeyResponse
|
|
36
|
+
from platform_api_python_client.models.backend_protocol import BackendProtocol
|
|
36
37
|
from platform_api_python_client.models.c_serve_recipe_perf import CServeRecipePerf
|
|
37
38
|
from platform_api_python_client.models.c_serve_recipe_response import CServeRecipeResponse
|
|
38
39
|
from platform_api_python_client.models.c_serve_v2_recipe import CServeV2Recipe
|
|
40
|
+
from platform_api_python_client.models.cluster_capacity_response import ClusterCapacityResponse
|
|
39
41
|
from platform_api_python_client.models.create_c_serve_v2_deployment_request import CreateCServeV2DeploymentRequest
|
|
40
42
|
from platform_api_python_client.models.create_c_serve_v2_deployment_response import CreateCServeV2DeploymentResponse
|
|
41
43
|
from platform_api_python_client.models.create_c_serve_v3_deployment_request import CreateCServeV3DeploymentRequest
|
|
@@ -72,11 +74,14 @@ from platform_api_python_client.models.get_deployment_usage_response import GetD
|
|
|
72
74
|
from platform_api_python_client.models.get_inference_deployment_response import GetInferenceDeploymentResponse
|
|
73
75
|
from platform_api_python_client.models.get_inference_v3_deployment_response import GetInferenceV3DeploymentResponse
|
|
74
76
|
from platform_api_python_client.models.get_rag_deployment_response import GetRagDeploymentResponse
|
|
77
|
+
from platform_api_python_client.models.gpu_type_capacity import GpuTypeCapacity
|
|
75
78
|
from platform_api_python_client.models.http_validation_error import HTTPValidationError
|
|
76
79
|
from platform_api_python_client.models.hardware_instance_response import HardwareInstanceResponse
|
|
77
80
|
from platform_api_python_client.models.image_pull_secret_credentials import ImagePullSecretCredentials
|
|
81
|
+
from platform_api_python_client.models.invite_user_request import InviteUserRequest
|
|
78
82
|
from platform_api_python_client.models.list_api_key_response import ListAPIKeyResponse
|
|
79
83
|
from platform_api_python_client.models.list_c_serve_recipe_response import ListCServeRecipeResponse
|
|
84
|
+
from platform_api_python_client.models.list_cluster_capacity_response import ListClusterCapacityResponse
|
|
80
85
|
from platform_api_python_client.models.list_daily_bill_response import ListDailyBillResponse
|
|
81
86
|
from platform_api_python_client.models.list_deployment_revisions_response import ListDeploymentRevisionsResponse
|
|
82
87
|
from platform_api_python_client.models.list_get_cluster_response import ListGetClusterResponse
|
|
@@ -98,3 +103,4 @@ from platform_api_python_client.models.user_vault_item import UserVaultItem
|
|
|
98
103
|
from platform_api_python_client.models.user_vault_type import UserVaultType
|
|
99
104
|
from platform_api_python_client.models.validation_error import ValidationError
|
|
100
105
|
from platform_api_python_client.models.validation_error_loc_inner import ValidationErrorLocInner
|
|
106
|
+
from platform_api_python_client.models.vault_scope import VaultScope
|
|
@@ -50,8 +50,10 @@ from platform_api_python_client.models.get_deployment_usage_response import GetD
|
|
|
50
50
|
from platform_api_python_client.models.get_inference_deployment_response import GetInferenceDeploymentResponse
|
|
51
51
|
from platform_api_python_client.models.get_inference_v3_deployment_response import GetInferenceV3DeploymentResponse
|
|
52
52
|
from platform_api_python_client.models.get_rag_deployment_response import GetRagDeploymentResponse
|
|
53
|
+
from platform_api_python_client.models.invite_user_request import InviteUserRequest
|
|
53
54
|
from platform_api_python_client.models.list_api_key_response import ListAPIKeyResponse
|
|
54
55
|
from platform_api_python_client.models.list_c_serve_recipe_response import ListCServeRecipeResponse
|
|
56
|
+
from platform_api_python_client.models.list_cluster_capacity_response import ListClusterCapacityResponse
|
|
55
57
|
from platform_api_python_client.models.list_daily_bill_response import ListDailyBillResponse
|
|
56
58
|
from platform_api_python_client.models.list_deployment_revisions_response import ListDeploymentRevisionsResponse
|
|
57
59
|
from platform_api_python_client.models.list_get_cluster_response import ListGetClusterResponse
|
|
@@ -3108,7 +3110,7 @@ class EXTERNALApi:
|
|
|
3108
3110
|
) -> ListUserVaultItemsResponse:
|
|
3109
3111
|
"""Get All User Vault Items Endpoint
|
|
3110
3112
|
|
|
3111
|
-
Retrieve all items
|
|
3113
|
+
Retrieve all items the user has access to (both USER and ORG scoped).
|
|
3112
3114
|
|
|
3113
3115
|
:param type:
|
|
3114
3116
|
:type type: UserVaultType
|
|
@@ -3180,7 +3182,7 @@ class EXTERNALApi:
|
|
|
3180
3182
|
) -> ApiResponse[ListUserVaultItemsResponse]:
|
|
3181
3183
|
"""Get All User Vault Items Endpoint
|
|
3182
3184
|
|
|
3183
|
-
Retrieve all items
|
|
3185
|
+
Retrieve all items the user has access to (both USER and ORG scoped).
|
|
3184
3186
|
|
|
3185
3187
|
:param type:
|
|
3186
3188
|
:type type: UserVaultType
|
|
@@ -3252,7 +3254,7 @@ class EXTERNALApi:
|
|
|
3252
3254
|
) -> RESTResponseType:
|
|
3253
3255
|
"""Get All User Vault Items Endpoint
|
|
3254
3256
|
|
|
3255
|
-
Retrieve all items
|
|
3257
|
+
Retrieve all items the user has access to (both USER and ORG scoped).
|
|
3256
3258
|
|
|
3257
3259
|
:param type:
|
|
3258
3260
|
:type type: UserVaultType
|
|
@@ -9185,6 +9187,546 @@ class EXTERNALApi:
|
|
|
9185
9187
|
|
|
9186
9188
|
|
|
9187
9189
|
|
|
9190
|
+
@validate_call
|
|
9191
|
+
def invite_user_organizations_invite_post(
|
|
9192
|
+
self,
|
|
9193
|
+
invite_user_request: InviteUserRequest,
|
|
9194
|
+
_request_timeout: Union[
|
|
9195
|
+
None,
|
|
9196
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
9197
|
+
Tuple[
|
|
9198
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
9199
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
9200
|
+
]
|
|
9201
|
+
] = None,
|
|
9202
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
9203
|
+
_content_type: Optional[StrictStr] = None,
|
|
9204
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
9205
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
9206
|
+
) -> object:
|
|
9207
|
+
"""Invite User
|
|
9208
|
+
|
|
9209
|
+
|
|
9210
|
+
:param invite_user_request: (required)
|
|
9211
|
+
:type invite_user_request: InviteUserRequest
|
|
9212
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
9213
|
+
number provided, it will be total request
|
|
9214
|
+
timeout. It can also be a pair (tuple) of
|
|
9215
|
+
(connection, read) timeouts.
|
|
9216
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
9217
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
9218
|
+
request; this effectively ignores the
|
|
9219
|
+
authentication in the spec for a single request.
|
|
9220
|
+
:type _request_auth: dict, optional
|
|
9221
|
+
:param _content_type: force content-type for the request.
|
|
9222
|
+
:type _content_type: str, Optional
|
|
9223
|
+
:param _headers: set to override the headers for a single
|
|
9224
|
+
request; this effectively ignores the headers
|
|
9225
|
+
in the spec for a single request.
|
|
9226
|
+
:type _headers: dict, optional
|
|
9227
|
+
:param _host_index: set to override the host_index for a single
|
|
9228
|
+
request; this effectively ignores the host_index
|
|
9229
|
+
in the spec for a single request.
|
|
9230
|
+
:type _host_index: int, optional
|
|
9231
|
+
:return: Returns the result object.
|
|
9232
|
+
""" # noqa: E501
|
|
9233
|
+
|
|
9234
|
+
_param = self._invite_user_organizations_invite_post_serialize(
|
|
9235
|
+
invite_user_request=invite_user_request,
|
|
9236
|
+
_request_auth=_request_auth,
|
|
9237
|
+
_content_type=_content_type,
|
|
9238
|
+
_headers=_headers,
|
|
9239
|
+
_host_index=_host_index
|
|
9240
|
+
)
|
|
9241
|
+
|
|
9242
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
9243
|
+
'200': "object",
|
|
9244
|
+
'422': "HTTPValidationError",
|
|
9245
|
+
}
|
|
9246
|
+
response_data = self.api_client.call_api(
|
|
9247
|
+
*_param,
|
|
9248
|
+
_request_timeout=_request_timeout
|
|
9249
|
+
)
|
|
9250
|
+
response_data.read()
|
|
9251
|
+
return self.api_client.response_deserialize(
|
|
9252
|
+
response_data=response_data,
|
|
9253
|
+
response_types_map=_response_types_map,
|
|
9254
|
+
).data
|
|
9255
|
+
|
|
9256
|
+
|
|
9257
|
+
@validate_call
|
|
9258
|
+
def invite_user_organizations_invite_post_with_http_info(
|
|
9259
|
+
self,
|
|
9260
|
+
invite_user_request: InviteUserRequest,
|
|
9261
|
+
_request_timeout: Union[
|
|
9262
|
+
None,
|
|
9263
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
9264
|
+
Tuple[
|
|
9265
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
9266
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
9267
|
+
]
|
|
9268
|
+
] = None,
|
|
9269
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
9270
|
+
_content_type: Optional[StrictStr] = None,
|
|
9271
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
9272
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
9273
|
+
) -> ApiResponse[object]:
|
|
9274
|
+
"""Invite User
|
|
9275
|
+
|
|
9276
|
+
|
|
9277
|
+
:param invite_user_request: (required)
|
|
9278
|
+
:type invite_user_request: InviteUserRequest
|
|
9279
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
9280
|
+
number provided, it will be total request
|
|
9281
|
+
timeout. It can also be a pair (tuple) of
|
|
9282
|
+
(connection, read) timeouts.
|
|
9283
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
9284
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
9285
|
+
request; this effectively ignores the
|
|
9286
|
+
authentication in the spec for a single request.
|
|
9287
|
+
:type _request_auth: dict, optional
|
|
9288
|
+
:param _content_type: force content-type for the request.
|
|
9289
|
+
:type _content_type: str, Optional
|
|
9290
|
+
:param _headers: set to override the headers for a single
|
|
9291
|
+
request; this effectively ignores the headers
|
|
9292
|
+
in the spec for a single request.
|
|
9293
|
+
:type _headers: dict, optional
|
|
9294
|
+
:param _host_index: set to override the host_index for a single
|
|
9295
|
+
request; this effectively ignores the host_index
|
|
9296
|
+
in the spec for a single request.
|
|
9297
|
+
:type _host_index: int, optional
|
|
9298
|
+
:return: Returns the result object.
|
|
9299
|
+
""" # noqa: E501
|
|
9300
|
+
|
|
9301
|
+
_param = self._invite_user_organizations_invite_post_serialize(
|
|
9302
|
+
invite_user_request=invite_user_request,
|
|
9303
|
+
_request_auth=_request_auth,
|
|
9304
|
+
_content_type=_content_type,
|
|
9305
|
+
_headers=_headers,
|
|
9306
|
+
_host_index=_host_index
|
|
9307
|
+
)
|
|
9308
|
+
|
|
9309
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
9310
|
+
'200': "object",
|
|
9311
|
+
'422': "HTTPValidationError",
|
|
9312
|
+
}
|
|
9313
|
+
response_data = self.api_client.call_api(
|
|
9314
|
+
*_param,
|
|
9315
|
+
_request_timeout=_request_timeout
|
|
9316
|
+
)
|
|
9317
|
+
response_data.read()
|
|
9318
|
+
return self.api_client.response_deserialize(
|
|
9319
|
+
response_data=response_data,
|
|
9320
|
+
response_types_map=_response_types_map,
|
|
9321
|
+
)
|
|
9322
|
+
|
|
9323
|
+
|
|
9324
|
+
@validate_call
|
|
9325
|
+
def invite_user_organizations_invite_post_without_preload_content(
|
|
9326
|
+
self,
|
|
9327
|
+
invite_user_request: InviteUserRequest,
|
|
9328
|
+
_request_timeout: Union[
|
|
9329
|
+
None,
|
|
9330
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
9331
|
+
Tuple[
|
|
9332
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
9333
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
9334
|
+
]
|
|
9335
|
+
] = None,
|
|
9336
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
9337
|
+
_content_type: Optional[StrictStr] = None,
|
|
9338
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
9339
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
9340
|
+
) -> RESTResponseType:
|
|
9341
|
+
"""Invite User
|
|
9342
|
+
|
|
9343
|
+
|
|
9344
|
+
:param invite_user_request: (required)
|
|
9345
|
+
:type invite_user_request: InviteUserRequest
|
|
9346
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
9347
|
+
number provided, it will be total request
|
|
9348
|
+
timeout. It can also be a pair (tuple) of
|
|
9349
|
+
(connection, read) timeouts.
|
|
9350
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
9351
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
9352
|
+
request; this effectively ignores the
|
|
9353
|
+
authentication in the spec for a single request.
|
|
9354
|
+
:type _request_auth: dict, optional
|
|
9355
|
+
:param _content_type: force content-type for the request.
|
|
9356
|
+
:type _content_type: str, Optional
|
|
9357
|
+
:param _headers: set to override the headers for a single
|
|
9358
|
+
request; this effectively ignores the headers
|
|
9359
|
+
in the spec for a single request.
|
|
9360
|
+
:type _headers: dict, optional
|
|
9361
|
+
:param _host_index: set to override the host_index for a single
|
|
9362
|
+
request; this effectively ignores the host_index
|
|
9363
|
+
in the spec for a single request.
|
|
9364
|
+
:type _host_index: int, optional
|
|
9365
|
+
:return: Returns the result object.
|
|
9366
|
+
""" # noqa: E501
|
|
9367
|
+
|
|
9368
|
+
_param = self._invite_user_organizations_invite_post_serialize(
|
|
9369
|
+
invite_user_request=invite_user_request,
|
|
9370
|
+
_request_auth=_request_auth,
|
|
9371
|
+
_content_type=_content_type,
|
|
9372
|
+
_headers=_headers,
|
|
9373
|
+
_host_index=_host_index
|
|
9374
|
+
)
|
|
9375
|
+
|
|
9376
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
9377
|
+
'200': "object",
|
|
9378
|
+
'422': "HTTPValidationError",
|
|
9379
|
+
}
|
|
9380
|
+
response_data = self.api_client.call_api(
|
|
9381
|
+
*_param,
|
|
9382
|
+
_request_timeout=_request_timeout
|
|
9383
|
+
)
|
|
9384
|
+
return response_data.response
|
|
9385
|
+
|
|
9386
|
+
|
|
9387
|
+
def _invite_user_organizations_invite_post_serialize(
|
|
9388
|
+
self,
|
|
9389
|
+
invite_user_request,
|
|
9390
|
+
_request_auth,
|
|
9391
|
+
_content_type,
|
|
9392
|
+
_headers,
|
|
9393
|
+
_host_index,
|
|
9394
|
+
) -> RequestSerialized:
|
|
9395
|
+
|
|
9396
|
+
_host = None
|
|
9397
|
+
|
|
9398
|
+
_collection_formats: Dict[str, str] = {
|
|
9399
|
+
}
|
|
9400
|
+
|
|
9401
|
+
_path_params: Dict[str, str] = {}
|
|
9402
|
+
_query_params: List[Tuple[str, str]] = []
|
|
9403
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
9404
|
+
_form_params: List[Tuple[str, str]] = []
|
|
9405
|
+
_files: Dict[
|
|
9406
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
9407
|
+
] = {}
|
|
9408
|
+
_body_params: Optional[bytes] = None
|
|
9409
|
+
|
|
9410
|
+
# process the path parameters
|
|
9411
|
+
# process the query parameters
|
|
9412
|
+
# process the header parameters
|
|
9413
|
+
# process the form parameters
|
|
9414
|
+
# process the body parameter
|
|
9415
|
+
if invite_user_request is not None:
|
|
9416
|
+
_body_params = invite_user_request
|
|
9417
|
+
|
|
9418
|
+
|
|
9419
|
+
# set the HTTP header `Accept`
|
|
9420
|
+
if 'Accept' not in _header_params:
|
|
9421
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
9422
|
+
[
|
|
9423
|
+
'application/json'
|
|
9424
|
+
]
|
|
9425
|
+
)
|
|
9426
|
+
|
|
9427
|
+
# set the HTTP header `Content-Type`
|
|
9428
|
+
if _content_type:
|
|
9429
|
+
_header_params['Content-Type'] = _content_type
|
|
9430
|
+
else:
|
|
9431
|
+
_default_content_type = (
|
|
9432
|
+
self.api_client.select_header_content_type(
|
|
9433
|
+
[
|
|
9434
|
+
'application/json'
|
|
9435
|
+
]
|
|
9436
|
+
)
|
|
9437
|
+
)
|
|
9438
|
+
if _default_content_type is not None:
|
|
9439
|
+
_header_params['Content-Type'] = _default_content_type
|
|
9440
|
+
|
|
9441
|
+
# authentication setting
|
|
9442
|
+
_auth_settings: List[str] = [
|
|
9443
|
+
'HTTPBearer'
|
|
9444
|
+
]
|
|
9445
|
+
|
|
9446
|
+
return self.api_client.param_serialize(
|
|
9447
|
+
method='POST',
|
|
9448
|
+
resource_path='/organizations/invite',
|
|
9449
|
+
path_params=_path_params,
|
|
9450
|
+
query_params=_query_params,
|
|
9451
|
+
header_params=_header_params,
|
|
9452
|
+
body=_body_params,
|
|
9453
|
+
post_params=_form_params,
|
|
9454
|
+
files=_files,
|
|
9455
|
+
auth_settings=_auth_settings,
|
|
9456
|
+
collection_formats=_collection_formats,
|
|
9457
|
+
_host=_host,
|
|
9458
|
+
_request_auth=_request_auth
|
|
9459
|
+
)
|
|
9460
|
+
|
|
9461
|
+
|
|
9462
|
+
|
|
9463
|
+
|
|
9464
|
+
@validate_call
|
|
9465
|
+
def list_cluster_capacity_capacity_get(
|
|
9466
|
+
self,
|
|
9467
|
+
cluster_id: Optional[StrictInt] = None,
|
|
9468
|
+
_request_timeout: Union[
|
|
9469
|
+
None,
|
|
9470
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
9471
|
+
Tuple[
|
|
9472
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
9473
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
9474
|
+
]
|
|
9475
|
+
] = None,
|
|
9476
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
9477
|
+
_content_type: Optional[StrictStr] = None,
|
|
9478
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
9479
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
9480
|
+
) -> ListClusterCapacityResponse:
|
|
9481
|
+
"""List Cluster Capacity
|
|
9482
|
+
|
|
9483
|
+
Return GPU capacity breakdown for accessible clusters. When *cluster_id* is supplied only that cluster is included (if accessible). Clusters whose Prometheus data is unavailable are omitted from the results rather than failing the entire request.
|
|
9484
|
+
|
|
9485
|
+
:param cluster_id:
|
|
9486
|
+
:type cluster_id: int
|
|
9487
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
9488
|
+
number provided, it will be total request
|
|
9489
|
+
timeout. It can also be a pair (tuple) of
|
|
9490
|
+
(connection, read) timeouts.
|
|
9491
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
9492
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
9493
|
+
request; this effectively ignores the
|
|
9494
|
+
authentication in the spec for a single request.
|
|
9495
|
+
:type _request_auth: dict, optional
|
|
9496
|
+
:param _content_type: force content-type for the request.
|
|
9497
|
+
:type _content_type: str, Optional
|
|
9498
|
+
:param _headers: set to override the headers for a single
|
|
9499
|
+
request; this effectively ignores the headers
|
|
9500
|
+
in the spec for a single request.
|
|
9501
|
+
:type _headers: dict, optional
|
|
9502
|
+
:param _host_index: set to override the host_index for a single
|
|
9503
|
+
request; this effectively ignores the host_index
|
|
9504
|
+
in the spec for a single request.
|
|
9505
|
+
:type _host_index: int, optional
|
|
9506
|
+
:return: Returns the result object.
|
|
9507
|
+
""" # noqa: E501
|
|
9508
|
+
|
|
9509
|
+
_param = self._list_cluster_capacity_capacity_get_serialize(
|
|
9510
|
+
cluster_id=cluster_id,
|
|
9511
|
+
_request_auth=_request_auth,
|
|
9512
|
+
_content_type=_content_type,
|
|
9513
|
+
_headers=_headers,
|
|
9514
|
+
_host_index=_host_index
|
|
9515
|
+
)
|
|
9516
|
+
|
|
9517
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
9518
|
+
'200': "ListClusterCapacityResponse",
|
|
9519
|
+
'422': "HTTPValidationError",
|
|
9520
|
+
}
|
|
9521
|
+
response_data = self.api_client.call_api(
|
|
9522
|
+
*_param,
|
|
9523
|
+
_request_timeout=_request_timeout
|
|
9524
|
+
)
|
|
9525
|
+
response_data.read()
|
|
9526
|
+
return self.api_client.response_deserialize(
|
|
9527
|
+
response_data=response_data,
|
|
9528
|
+
response_types_map=_response_types_map,
|
|
9529
|
+
).data
|
|
9530
|
+
|
|
9531
|
+
|
|
9532
|
+
@validate_call
|
|
9533
|
+
def list_cluster_capacity_capacity_get_with_http_info(
|
|
9534
|
+
self,
|
|
9535
|
+
cluster_id: Optional[StrictInt] = None,
|
|
9536
|
+
_request_timeout: Union[
|
|
9537
|
+
None,
|
|
9538
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
9539
|
+
Tuple[
|
|
9540
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
9541
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
9542
|
+
]
|
|
9543
|
+
] = None,
|
|
9544
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
9545
|
+
_content_type: Optional[StrictStr] = None,
|
|
9546
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
9547
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
9548
|
+
) -> ApiResponse[ListClusterCapacityResponse]:
|
|
9549
|
+
"""List Cluster Capacity
|
|
9550
|
+
|
|
9551
|
+
Return GPU capacity breakdown for accessible clusters. When *cluster_id* is supplied only that cluster is included (if accessible). Clusters whose Prometheus data is unavailable are omitted from the results rather than failing the entire request.
|
|
9552
|
+
|
|
9553
|
+
:param cluster_id:
|
|
9554
|
+
:type cluster_id: int
|
|
9555
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
9556
|
+
number provided, it will be total request
|
|
9557
|
+
timeout. It can also be a pair (tuple) of
|
|
9558
|
+
(connection, read) timeouts.
|
|
9559
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
9560
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
9561
|
+
request; this effectively ignores the
|
|
9562
|
+
authentication in the spec for a single request.
|
|
9563
|
+
:type _request_auth: dict, optional
|
|
9564
|
+
:param _content_type: force content-type for the request.
|
|
9565
|
+
:type _content_type: str, Optional
|
|
9566
|
+
:param _headers: set to override the headers for a single
|
|
9567
|
+
request; this effectively ignores the headers
|
|
9568
|
+
in the spec for a single request.
|
|
9569
|
+
:type _headers: dict, optional
|
|
9570
|
+
:param _host_index: set to override the host_index for a single
|
|
9571
|
+
request; this effectively ignores the host_index
|
|
9572
|
+
in the spec for a single request.
|
|
9573
|
+
:type _host_index: int, optional
|
|
9574
|
+
:return: Returns the result object.
|
|
9575
|
+
""" # noqa: E501
|
|
9576
|
+
|
|
9577
|
+
_param = self._list_cluster_capacity_capacity_get_serialize(
|
|
9578
|
+
cluster_id=cluster_id,
|
|
9579
|
+
_request_auth=_request_auth,
|
|
9580
|
+
_content_type=_content_type,
|
|
9581
|
+
_headers=_headers,
|
|
9582
|
+
_host_index=_host_index
|
|
9583
|
+
)
|
|
9584
|
+
|
|
9585
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
9586
|
+
'200': "ListClusterCapacityResponse",
|
|
9587
|
+
'422': "HTTPValidationError",
|
|
9588
|
+
}
|
|
9589
|
+
response_data = self.api_client.call_api(
|
|
9590
|
+
*_param,
|
|
9591
|
+
_request_timeout=_request_timeout
|
|
9592
|
+
)
|
|
9593
|
+
response_data.read()
|
|
9594
|
+
return self.api_client.response_deserialize(
|
|
9595
|
+
response_data=response_data,
|
|
9596
|
+
response_types_map=_response_types_map,
|
|
9597
|
+
)
|
|
9598
|
+
|
|
9599
|
+
|
|
9600
|
+
@validate_call
|
|
9601
|
+
def list_cluster_capacity_capacity_get_without_preload_content(
|
|
9602
|
+
self,
|
|
9603
|
+
cluster_id: Optional[StrictInt] = None,
|
|
9604
|
+
_request_timeout: Union[
|
|
9605
|
+
None,
|
|
9606
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
9607
|
+
Tuple[
|
|
9608
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
9609
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
9610
|
+
]
|
|
9611
|
+
] = None,
|
|
9612
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
9613
|
+
_content_type: Optional[StrictStr] = None,
|
|
9614
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
9615
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
9616
|
+
) -> RESTResponseType:
|
|
9617
|
+
"""List Cluster Capacity
|
|
9618
|
+
|
|
9619
|
+
Return GPU capacity breakdown for accessible clusters. When *cluster_id* is supplied only that cluster is included (if accessible). Clusters whose Prometheus data is unavailable are omitted from the results rather than failing the entire request.
|
|
9620
|
+
|
|
9621
|
+
:param cluster_id:
|
|
9622
|
+
:type cluster_id: int
|
|
9623
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
9624
|
+
number provided, it will be total request
|
|
9625
|
+
timeout. It can also be a pair (tuple) of
|
|
9626
|
+
(connection, read) timeouts.
|
|
9627
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
9628
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
9629
|
+
request; this effectively ignores the
|
|
9630
|
+
authentication in the spec for a single request.
|
|
9631
|
+
:type _request_auth: dict, optional
|
|
9632
|
+
:param _content_type: force content-type for the request.
|
|
9633
|
+
:type _content_type: str, Optional
|
|
9634
|
+
:param _headers: set to override the headers for a single
|
|
9635
|
+
request; this effectively ignores the headers
|
|
9636
|
+
in the spec for a single request.
|
|
9637
|
+
:type _headers: dict, optional
|
|
9638
|
+
:param _host_index: set to override the host_index for a single
|
|
9639
|
+
request; this effectively ignores the host_index
|
|
9640
|
+
in the spec for a single request.
|
|
9641
|
+
:type _host_index: int, optional
|
|
9642
|
+
:return: Returns the result object.
|
|
9643
|
+
""" # noqa: E501
|
|
9644
|
+
|
|
9645
|
+
_param = self._list_cluster_capacity_capacity_get_serialize(
|
|
9646
|
+
cluster_id=cluster_id,
|
|
9647
|
+
_request_auth=_request_auth,
|
|
9648
|
+
_content_type=_content_type,
|
|
9649
|
+
_headers=_headers,
|
|
9650
|
+
_host_index=_host_index
|
|
9651
|
+
)
|
|
9652
|
+
|
|
9653
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
9654
|
+
'200': "ListClusterCapacityResponse",
|
|
9655
|
+
'422': "HTTPValidationError",
|
|
9656
|
+
}
|
|
9657
|
+
response_data = self.api_client.call_api(
|
|
9658
|
+
*_param,
|
|
9659
|
+
_request_timeout=_request_timeout
|
|
9660
|
+
)
|
|
9661
|
+
return response_data.response
|
|
9662
|
+
|
|
9663
|
+
|
|
9664
|
+
def _list_cluster_capacity_capacity_get_serialize(
|
|
9665
|
+
self,
|
|
9666
|
+
cluster_id,
|
|
9667
|
+
_request_auth,
|
|
9668
|
+
_content_type,
|
|
9669
|
+
_headers,
|
|
9670
|
+
_host_index,
|
|
9671
|
+
) -> RequestSerialized:
|
|
9672
|
+
|
|
9673
|
+
_host = None
|
|
9674
|
+
|
|
9675
|
+
_collection_formats: Dict[str, str] = {
|
|
9676
|
+
}
|
|
9677
|
+
|
|
9678
|
+
_path_params: Dict[str, str] = {}
|
|
9679
|
+
_query_params: List[Tuple[str, str]] = []
|
|
9680
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
9681
|
+
_form_params: List[Tuple[str, str]] = []
|
|
9682
|
+
_files: Dict[
|
|
9683
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
9684
|
+
] = {}
|
|
9685
|
+
_body_params: Optional[bytes] = None
|
|
9686
|
+
|
|
9687
|
+
# process the path parameters
|
|
9688
|
+
# process the query parameters
|
|
9689
|
+
if cluster_id is not None:
|
|
9690
|
+
|
|
9691
|
+
_query_params.append(('cluster_id', cluster_id))
|
|
9692
|
+
|
|
9693
|
+
# process the header parameters
|
|
9694
|
+
# process the form parameters
|
|
9695
|
+
# process the body parameter
|
|
9696
|
+
|
|
9697
|
+
|
|
9698
|
+
# set the HTTP header `Accept`
|
|
9699
|
+
if 'Accept' not in _header_params:
|
|
9700
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
9701
|
+
[
|
|
9702
|
+
'application/json'
|
|
9703
|
+
]
|
|
9704
|
+
)
|
|
9705
|
+
|
|
9706
|
+
|
|
9707
|
+
# authentication setting
|
|
9708
|
+
_auth_settings: List[str] = [
|
|
9709
|
+
'HTTPBearer'
|
|
9710
|
+
]
|
|
9711
|
+
|
|
9712
|
+
return self.api_client.param_serialize(
|
|
9713
|
+
method='GET',
|
|
9714
|
+
resource_path='/capacity',
|
|
9715
|
+
path_params=_path_params,
|
|
9716
|
+
query_params=_query_params,
|
|
9717
|
+
header_params=_header_params,
|
|
9718
|
+
body=_body_params,
|
|
9719
|
+
post_params=_form_params,
|
|
9720
|
+
files=_files,
|
|
9721
|
+
auth_settings=_auth_settings,
|
|
9722
|
+
collection_formats=_collection_formats,
|
|
9723
|
+
_host=_host,
|
|
9724
|
+
_request_auth=_request_auth
|
|
9725
|
+
)
|
|
9726
|
+
|
|
9727
|
+
|
|
9728
|
+
|
|
9729
|
+
|
|
9188
9730
|
@validate_call
|
|
9189
9731
|
def rollout_existing_revision_deployments_revisions_deployment_id_revision_number_put(
|
|
9190
9732
|
self,
|
|
@@ -12078,7 +12620,7 @@ class EXTERNALApi:
|
|
|
12078
12620
|
) -> object:
|
|
12079
12621
|
"""Update User Vault Item Endpoint
|
|
12080
12622
|
|
|
12081
|
-
Update or add
|
|
12623
|
+
Update or add an item of a specific type for the user.
|
|
12082
12624
|
|
|
12083
12625
|
:param user_vault_item: (required)
|
|
12084
12626
|
:type user_vault_item: UserVaultItem
|
|
@@ -12146,7 +12688,7 @@ class EXTERNALApi:
|
|
|
12146
12688
|
) -> ApiResponse[object]:
|
|
12147
12689
|
"""Update User Vault Item Endpoint
|
|
12148
12690
|
|
|
12149
|
-
Update or add
|
|
12691
|
+
Update or add an item of a specific type for the user.
|
|
12150
12692
|
|
|
12151
12693
|
:param user_vault_item: (required)
|
|
12152
12694
|
:type user_vault_item: UserVaultItem
|
|
@@ -12214,7 +12756,7 @@ class EXTERNALApi:
|
|
|
12214
12756
|
) -> RESTResponseType:
|
|
12215
12757
|
"""Update User Vault Item Endpoint
|
|
12216
12758
|
|
|
12217
|
-
Update or add
|
|
12759
|
+
Update or add an item of a specific type for the user.
|
|
12218
12760
|
|
|
12219
12761
|
:param user_vault_item: (required)
|
|
12220
12762
|
:type user_vault_item: UserVaultItem
|
|
@@ -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.8.3/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.8.3".\
|
|
396
396
|
format(env=sys.platform, pyversion=sys.version)
|
|
397
397
|
|
|
398
398
|
def get_host_settings(self):
|