platform-api-python-client 4.25.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 +11 -1
- platform_api_python_client/api/external_api.py +1786 -481
- platform_api_python_client/api_client.py +1 -1
- platform_api_python_client/configuration.py +1 -1
- platform_api_python_client/models/__init__.py +10 -0
- platform_api_python_client/models/cloud_provider.py +5 -0
- platform_api_python_client/models/create_c_serve_v3_deployment_request.py +18 -8
- platform_api_python_client/models/create_compute_deployment_request.py +18 -1
- 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 -8
- platform_api_python_client/models/create_job_deployment_request.py +18 -1
- 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 -8
- platform_api_python_client/models/get_compute_deployment_response.py +25 -1
- 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 +23 -6
- platform_api_python_client/models/get_job_deployment_response.py +25 -1
- 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/hardware_preset_response.py +96 -0
- platform_api_python_client/models/list_hardware_preset_response.py +95 -0
- platform_api_python_client/models/list_organization_gpu_quota_response.py +95 -0
- platform_api_python_client/models/organization_gpu_quota_request.py +88 -0
- platform_api_python_client/models/organization_gpu_quota_response.py +91 -0
- platform_api_python_client/models/validation_error.py +12 -3
- platform_api_python_client/models/volume_mount.py +92 -0
- {platform_api_python_client-4.25.0.dist-info → platform_api_python_client-4.31.0.dist-info}/METADATA +1 -1
- {platform_api_python_client-4.25.0.dist-info → platform_api_python_client-4.31.0.dist-info}/RECORD +41 -31
- {platform_api_python_client-4.25.0.dist-info → platform_api_python_client-4.31.0.dist-info}/WHEEL +0 -0
- {platform_api_python_client-4.25.0.dist-info → platform_api_python_client-4.31.0.dist-info}/top_level.txt +0 -0
|
@@ -16,7 +16,6 @@ from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
|
|
|
16
16
|
from typing import Any, Dict, List, Optional, Tuple, Union
|
|
17
17
|
from typing_extensions import Annotated
|
|
18
18
|
|
|
19
|
-
from datetime import date
|
|
20
19
|
from pydantic import Field, StrictBool, StrictInt, StrictStr, field_validator
|
|
21
20
|
from typing import Any, Optional
|
|
22
21
|
from typing_extensions import Annotated
|
|
@@ -70,11 +69,15 @@ from platform_api_python_client.models.list_deployment_revisions_response import
|
|
|
70
69
|
from platform_api_python_client.models.list_get_cluster_response import ListGetClusterResponse
|
|
71
70
|
from platform_api_python_client.models.list_get_deployment_response import ListGetDeploymentResponse
|
|
72
71
|
from platform_api_python_client.models.list_hardware_instance_response import ListHardwareInstanceResponse
|
|
72
|
+
from platform_api_python_client.models.list_hardware_preset_response import ListHardwarePresetResponse
|
|
73
|
+
from platform_api_python_client.models.list_organization_gpu_quota_response import ListOrganizationGpuQuotaResponse
|
|
73
74
|
from platform_api_python_client.models.list_prebuilt_image_response import ListPrebuiltImageResponse
|
|
74
75
|
from platform_api_python_client.models.list_service_accounts_response import ListServiceAccountsResponse
|
|
75
76
|
from platform_api_python_client.models.list_user_vault_items_response import ListUserVaultItemsResponse
|
|
76
77
|
from platform_api_python_client.models.list_volumes_response import ListVolumesResponse
|
|
77
78
|
from platform_api_python_client.models.metric import Metric
|
|
79
|
+
from platform_api_python_client.models.organization_gpu_quota_request import OrganizationGpuQuotaRequest
|
|
80
|
+
from platform_api_python_client.models.organization_gpu_quota_response import OrganizationGpuQuotaResponse
|
|
78
81
|
from platform_api_python_client.models.rollout_strategy_params import RolloutStrategyParams
|
|
79
82
|
from platform_api_python_client.models.service_account_response import ServiceAccountResponse
|
|
80
83
|
from platform_api_python_client.models.update_cluster_metadata_request import UpdateClusterMetadataRequest
|
|
@@ -123,6 +126,7 @@ class EXTERNALApi:
|
|
|
123
126
|
) -> ClusterRegistrationResponse:
|
|
124
127
|
"""Create Cluster
|
|
125
128
|
|
|
129
|
+
Register a cluster row for the caller's parent org.
|
|
126
130
|
|
|
127
131
|
:param cluster_registration_request: (required)
|
|
128
132
|
:type cluster_registration_request: ClusterRegistrationRequest
|
|
@@ -190,6 +194,7 @@ class EXTERNALApi:
|
|
|
190
194
|
) -> ApiResponse[ClusterRegistrationResponse]:
|
|
191
195
|
"""Create Cluster
|
|
192
196
|
|
|
197
|
+
Register a cluster row for the caller's parent org.
|
|
193
198
|
|
|
194
199
|
:param cluster_registration_request: (required)
|
|
195
200
|
:type cluster_registration_request: ClusterRegistrationRequest
|
|
@@ -257,6 +262,7 @@ class EXTERNALApi:
|
|
|
257
262
|
) -> RESTResponseType:
|
|
258
263
|
"""Create Cluster
|
|
259
264
|
|
|
265
|
+
Register a cluster row for the caller's parent org.
|
|
260
266
|
|
|
261
267
|
:param cluster_registration_request: (required)
|
|
262
268
|
:type cluster_registration_request: ClusterRegistrationRequest
|
|
@@ -3079,7 +3085,7 @@ class EXTERNALApi:
|
|
|
3079
3085
|
) -> GetVolumeResponse:
|
|
3080
3086
|
"""Create Volume Endpoint
|
|
3081
3087
|
|
|
3082
|
-
Create a
|
|
3088
|
+
Create a filesystem or object volume.
|
|
3083
3089
|
|
|
3084
3090
|
:param create_volume_request: (required)
|
|
3085
3091
|
:type create_volume_request: CreateVolumeRequest
|
|
@@ -3147,7 +3153,7 @@ class EXTERNALApi:
|
|
|
3147
3153
|
) -> ApiResponse[GetVolumeResponse]:
|
|
3148
3154
|
"""Create Volume Endpoint
|
|
3149
3155
|
|
|
3150
|
-
Create a
|
|
3156
|
+
Create a filesystem or object volume.
|
|
3151
3157
|
|
|
3152
3158
|
:param create_volume_request: (required)
|
|
3153
3159
|
:type create_volume_request: CreateVolumeRequest
|
|
@@ -3215,7 +3221,7 @@ class EXTERNALApi:
|
|
|
3215
3221
|
) -> RESTResponseType:
|
|
3216
3222
|
"""Create Volume Endpoint
|
|
3217
3223
|
|
|
3218
|
-
Create a
|
|
3224
|
+
Create a filesystem or object volume.
|
|
3219
3225
|
|
|
3220
3226
|
:param create_volume_request: (required)
|
|
3221
3227
|
:type create_volume_request: CreateVolumeRequest
|
|
@@ -6447,7 +6453,6 @@ class EXTERNALApi:
|
|
|
6447
6453
|
|
|
6448
6454
|
# authentication setting
|
|
6449
6455
|
_auth_settings: List[str] = [
|
|
6450
|
-
'HTTPBearer'
|
|
6451
6456
|
]
|
|
6452
6457
|
|
|
6453
6458
|
return self.api_client.param_serialize(
|
|
@@ -7270,6 +7275,272 @@ class EXTERNALApi:
|
|
|
7270
7275
|
|
|
7271
7276
|
|
|
7272
7277
|
|
|
7278
|
+
@validate_call
|
|
7279
|
+
def get_current_org_gpu_quota_organizations_gpu_quota_get(
|
|
7280
|
+
self,
|
|
7281
|
+
cluster_id: Optional[StrictInt] = None,
|
|
7282
|
+
_request_timeout: Union[
|
|
7283
|
+
None,
|
|
7284
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
7285
|
+
Tuple[
|
|
7286
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
7287
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
7288
|
+
]
|
|
7289
|
+
] = None,
|
|
7290
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
7291
|
+
_content_type: Optional[StrictStr] = None,
|
|
7292
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
7293
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
7294
|
+
) -> ListOrganizationGpuQuotaResponse:
|
|
7295
|
+
"""Get Current Org Gpu Quota
|
|
7296
|
+
|
|
7297
|
+
Return persisted GPU quotas for the caller's organization. Usage fields come later. ``cluster_id`` filters to that cluster when it is visible. Unknown or invisible cluster IDs return an empty list rather than 404 so this member endpoint does not leak whether a cluster exists.
|
|
7298
|
+
|
|
7299
|
+
:param cluster_id:
|
|
7300
|
+
:type cluster_id: int
|
|
7301
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
7302
|
+
number provided, it will be total request
|
|
7303
|
+
timeout. It can also be a pair (tuple) of
|
|
7304
|
+
(connection, read) timeouts.
|
|
7305
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
7306
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
7307
|
+
request; this effectively ignores the
|
|
7308
|
+
authentication in the spec for a single request.
|
|
7309
|
+
:type _request_auth: dict, optional
|
|
7310
|
+
:param _content_type: force content-type for the request.
|
|
7311
|
+
:type _content_type: str, Optional
|
|
7312
|
+
:param _headers: set to override the headers for a single
|
|
7313
|
+
request; this effectively ignores the headers
|
|
7314
|
+
in the spec for a single request.
|
|
7315
|
+
:type _headers: dict, optional
|
|
7316
|
+
:param _host_index: set to override the host_index for a single
|
|
7317
|
+
request; this effectively ignores the host_index
|
|
7318
|
+
in the spec for a single request.
|
|
7319
|
+
:type _host_index: int, optional
|
|
7320
|
+
:return: Returns the result object.
|
|
7321
|
+
""" # noqa: E501
|
|
7322
|
+
|
|
7323
|
+
_param = self._get_current_org_gpu_quota_organizations_gpu_quota_get_serialize(
|
|
7324
|
+
cluster_id=cluster_id,
|
|
7325
|
+
_request_auth=_request_auth,
|
|
7326
|
+
_content_type=_content_type,
|
|
7327
|
+
_headers=_headers,
|
|
7328
|
+
_host_index=_host_index
|
|
7329
|
+
)
|
|
7330
|
+
|
|
7331
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
7332
|
+
'200': "ListOrganizationGpuQuotaResponse",
|
|
7333
|
+
'422': "HTTPValidationError",
|
|
7334
|
+
}
|
|
7335
|
+
response_data = self.api_client.call_api(
|
|
7336
|
+
*_param,
|
|
7337
|
+
_request_timeout=_request_timeout
|
|
7338
|
+
)
|
|
7339
|
+
response_data.read()
|
|
7340
|
+
return self.api_client.response_deserialize(
|
|
7341
|
+
response_data=response_data,
|
|
7342
|
+
response_types_map=_response_types_map,
|
|
7343
|
+
).data
|
|
7344
|
+
|
|
7345
|
+
|
|
7346
|
+
@validate_call
|
|
7347
|
+
def get_current_org_gpu_quota_organizations_gpu_quota_get_with_http_info(
|
|
7348
|
+
self,
|
|
7349
|
+
cluster_id: Optional[StrictInt] = None,
|
|
7350
|
+
_request_timeout: Union[
|
|
7351
|
+
None,
|
|
7352
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
7353
|
+
Tuple[
|
|
7354
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
7355
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
7356
|
+
]
|
|
7357
|
+
] = None,
|
|
7358
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
7359
|
+
_content_type: Optional[StrictStr] = None,
|
|
7360
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
7361
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
7362
|
+
) -> ApiResponse[ListOrganizationGpuQuotaResponse]:
|
|
7363
|
+
"""Get Current Org Gpu Quota
|
|
7364
|
+
|
|
7365
|
+
Return persisted GPU quotas for the caller's organization. Usage fields come later. ``cluster_id`` filters to that cluster when it is visible. Unknown or invisible cluster IDs return an empty list rather than 404 so this member endpoint does not leak whether a cluster exists.
|
|
7366
|
+
|
|
7367
|
+
:param cluster_id:
|
|
7368
|
+
:type cluster_id: int
|
|
7369
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
7370
|
+
number provided, it will be total request
|
|
7371
|
+
timeout. It can also be a pair (tuple) of
|
|
7372
|
+
(connection, read) timeouts.
|
|
7373
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
7374
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
7375
|
+
request; this effectively ignores the
|
|
7376
|
+
authentication in the spec for a single request.
|
|
7377
|
+
:type _request_auth: dict, optional
|
|
7378
|
+
:param _content_type: force content-type for the request.
|
|
7379
|
+
:type _content_type: str, Optional
|
|
7380
|
+
:param _headers: set to override the headers for a single
|
|
7381
|
+
request; this effectively ignores the headers
|
|
7382
|
+
in the spec for a single request.
|
|
7383
|
+
:type _headers: dict, optional
|
|
7384
|
+
:param _host_index: set to override the host_index for a single
|
|
7385
|
+
request; this effectively ignores the host_index
|
|
7386
|
+
in the spec for a single request.
|
|
7387
|
+
:type _host_index: int, optional
|
|
7388
|
+
:return: Returns the result object.
|
|
7389
|
+
""" # noqa: E501
|
|
7390
|
+
|
|
7391
|
+
_param = self._get_current_org_gpu_quota_organizations_gpu_quota_get_serialize(
|
|
7392
|
+
cluster_id=cluster_id,
|
|
7393
|
+
_request_auth=_request_auth,
|
|
7394
|
+
_content_type=_content_type,
|
|
7395
|
+
_headers=_headers,
|
|
7396
|
+
_host_index=_host_index
|
|
7397
|
+
)
|
|
7398
|
+
|
|
7399
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
7400
|
+
'200': "ListOrganizationGpuQuotaResponse",
|
|
7401
|
+
'422': "HTTPValidationError",
|
|
7402
|
+
}
|
|
7403
|
+
response_data = self.api_client.call_api(
|
|
7404
|
+
*_param,
|
|
7405
|
+
_request_timeout=_request_timeout
|
|
7406
|
+
)
|
|
7407
|
+
response_data.read()
|
|
7408
|
+
return self.api_client.response_deserialize(
|
|
7409
|
+
response_data=response_data,
|
|
7410
|
+
response_types_map=_response_types_map,
|
|
7411
|
+
)
|
|
7412
|
+
|
|
7413
|
+
|
|
7414
|
+
@validate_call
|
|
7415
|
+
def get_current_org_gpu_quota_organizations_gpu_quota_get_without_preload_content(
|
|
7416
|
+
self,
|
|
7417
|
+
cluster_id: Optional[StrictInt] = None,
|
|
7418
|
+
_request_timeout: Union[
|
|
7419
|
+
None,
|
|
7420
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
7421
|
+
Tuple[
|
|
7422
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
7423
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
7424
|
+
]
|
|
7425
|
+
] = None,
|
|
7426
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
7427
|
+
_content_type: Optional[StrictStr] = None,
|
|
7428
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
7429
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
7430
|
+
) -> RESTResponseType:
|
|
7431
|
+
"""Get Current Org Gpu Quota
|
|
7432
|
+
|
|
7433
|
+
Return persisted GPU quotas for the caller's organization. Usage fields come later. ``cluster_id`` filters to that cluster when it is visible. Unknown or invisible cluster IDs return an empty list rather than 404 so this member endpoint does not leak whether a cluster exists.
|
|
7434
|
+
|
|
7435
|
+
:param cluster_id:
|
|
7436
|
+
:type cluster_id: int
|
|
7437
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
7438
|
+
number provided, it will be total request
|
|
7439
|
+
timeout. It can also be a pair (tuple) of
|
|
7440
|
+
(connection, read) timeouts.
|
|
7441
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
7442
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
7443
|
+
request; this effectively ignores the
|
|
7444
|
+
authentication in the spec for a single request.
|
|
7445
|
+
:type _request_auth: dict, optional
|
|
7446
|
+
:param _content_type: force content-type for the request.
|
|
7447
|
+
:type _content_type: str, Optional
|
|
7448
|
+
:param _headers: set to override the headers for a single
|
|
7449
|
+
request; this effectively ignores the headers
|
|
7450
|
+
in the spec for a single request.
|
|
7451
|
+
:type _headers: dict, optional
|
|
7452
|
+
:param _host_index: set to override the host_index for a single
|
|
7453
|
+
request; this effectively ignores the host_index
|
|
7454
|
+
in the spec for a single request.
|
|
7455
|
+
:type _host_index: int, optional
|
|
7456
|
+
:return: Returns the result object.
|
|
7457
|
+
""" # noqa: E501
|
|
7458
|
+
|
|
7459
|
+
_param = self._get_current_org_gpu_quota_organizations_gpu_quota_get_serialize(
|
|
7460
|
+
cluster_id=cluster_id,
|
|
7461
|
+
_request_auth=_request_auth,
|
|
7462
|
+
_content_type=_content_type,
|
|
7463
|
+
_headers=_headers,
|
|
7464
|
+
_host_index=_host_index
|
|
7465
|
+
)
|
|
7466
|
+
|
|
7467
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
7468
|
+
'200': "ListOrganizationGpuQuotaResponse",
|
|
7469
|
+
'422': "HTTPValidationError",
|
|
7470
|
+
}
|
|
7471
|
+
response_data = self.api_client.call_api(
|
|
7472
|
+
*_param,
|
|
7473
|
+
_request_timeout=_request_timeout
|
|
7474
|
+
)
|
|
7475
|
+
return response_data.response
|
|
7476
|
+
|
|
7477
|
+
|
|
7478
|
+
def _get_current_org_gpu_quota_organizations_gpu_quota_get_serialize(
|
|
7479
|
+
self,
|
|
7480
|
+
cluster_id,
|
|
7481
|
+
_request_auth,
|
|
7482
|
+
_content_type,
|
|
7483
|
+
_headers,
|
|
7484
|
+
_host_index,
|
|
7485
|
+
) -> RequestSerialized:
|
|
7486
|
+
|
|
7487
|
+
_host = None
|
|
7488
|
+
|
|
7489
|
+
_collection_formats: Dict[str, str] = {
|
|
7490
|
+
}
|
|
7491
|
+
|
|
7492
|
+
_path_params: Dict[str, str] = {}
|
|
7493
|
+
_query_params: List[Tuple[str, str]] = []
|
|
7494
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
7495
|
+
_form_params: List[Tuple[str, str]] = []
|
|
7496
|
+
_files: Dict[
|
|
7497
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
7498
|
+
] = {}
|
|
7499
|
+
_body_params: Optional[bytes] = None
|
|
7500
|
+
|
|
7501
|
+
# process the path parameters
|
|
7502
|
+
# process the query parameters
|
|
7503
|
+
if cluster_id is not None:
|
|
7504
|
+
|
|
7505
|
+
_query_params.append(('cluster_id', cluster_id))
|
|
7506
|
+
|
|
7507
|
+
# process the header parameters
|
|
7508
|
+
# process the form parameters
|
|
7509
|
+
# process the body parameter
|
|
7510
|
+
|
|
7511
|
+
|
|
7512
|
+
# set the HTTP header `Accept`
|
|
7513
|
+
if 'Accept' not in _header_params:
|
|
7514
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
7515
|
+
[
|
|
7516
|
+
'application/json'
|
|
7517
|
+
]
|
|
7518
|
+
)
|
|
7519
|
+
|
|
7520
|
+
|
|
7521
|
+
# authentication setting
|
|
7522
|
+
_auth_settings: List[str] = [
|
|
7523
|
+
'HTTPBearer'
|
|
7524
|
+
]
|
|
7525
|
+
|
|
7526
|
+
return self.api_client.param_serialize(
|
|
7527
|
+
method='GET',
|
|
7528
|
+
resource_path='/organizations/gpu-quota',
|
|
7529
|
+
path_params=_path_params,
|
|
7530
|
+
query_params=_query_params,
|
|
7531
|
+
header_params=_header_params,
|
|
7532
|
+
body=_body_params,
|
|
7533
|
+
post_params=_form_params,
|
|
7534
|
+
files=_files,
|
|
7535
|
+
auth_settings=_auth_settings,
|
|
7536
|
+
collection_formats=_collection_formats,
|
|
7537
|
+
_host=_host,
|
|
7538
|
+
_request_auth=_request_auth
|
|
7539
|
+
)
|
|
7540
|
+
|
|
7541
|
+
|
|
7542
|
+
|
|
7543
|
+
|
|
7273
7544
|
@validate_call
|
|
7274
7545
|
def get_deployment_logs_deployments_logs_deployment_id_get(
|
|
7275
7546
|
self,
|
|
@@ -10507,9 +10778,8 @@ class EXTERNALApi:
|
|
|
10507
10778
|
|
|
10508
10779
|
|
|
10509
10780
|
@validate_call
|
|
10510
|
-
def
|
|
10781
|
+
def get_hardware_presets_hardware_instances_presets_get(
|
|
10511
10782
|
self,
|
|
10512
|
-
deployment_id: StrictInt,
|
|
10513
10783
|
_request_timeout: Union[
|
|
10514
10784
|
None,
|
|
10515
10785
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -10522,12 +10792,10 @@ class EXTERNALApi:
|
|
|
10522
10792
|
_content_type: Optional[StrictStr] = None,
|
|
10523
10793
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
10524
10794
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
10525
|
-
) ->
|
|
10526
|
-
"""Get
|
|
10795
|
+
) -> ListHardwarePresetResponse:
|
|
10796
|
+
"""Get Hardware Presets
|
|
10527
10797
|
|
|
10528
10798
|
|
|
10529
|
-
:param deployment_id: (required)
|
|
10530
|
-
:type deployment_id: int
|
|
10531
10799
|
:param _request_timeout: timeout setting for this request. If one
|
|
10532
10800
|
number provided, it will be total request
|
|
10533
10801
|
timeout. It can also be a pair (tuple) of
|
|
@@ -10550,8 +10818,7 @@ class EXTERNALApi:
|
|
|
10550
10818
|
:return: Returns the result object.
|
|
10551
10819
|
""" # noqa: E501
|
|
10552
10820
|
|
|
10553
|
-
_param = self.
|
|
10554
|
-
deployment_id=deployment_id,
|
|
10821
|
+
_param = self._get_hardware_presets_hardware_instances_presets_get_serialize(
|
|
10555
10822
|
_request_auth=_request_auth,
|
|
10556
10823
|
_content_type=_content_type,
|
|
10557
10824
|
_headers=_headers,
|
|
@@ -10559,8 +10826,7 @@ class EXTERNALApi:
|
|
|
10559
10826
|
)
|
|
10560
10827
|
|
|
10561
10828
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
10562
|
-
'200': "
|
|
10563
|
-
'422': "HTTPValidationError",
|
|
10829
|
+
'200': "ListHardwarePresetResponse",
|
|
10564
10830
|
}
|
|
10565
10831
|
response_data = self.api_client.call_api(
|
|
10566
10832
|
*_param,
|
|
@@ -10574,9 +10840,8 @@ class EXTERNALApi:
|
|
|
10574
10840
|
|
|
10575
10841
|
|
|
10576
10842
|
@validate_call
|
|
10577
|
-
def
|
|
10843
|
+
def get_hardware_presets_hardware_instances_presets_get_with_http_info(
|
|
10578
10844
|
self,
|
|
10579
|
-
deployment_id: StrictInt,
|
|
10580
10845
|
_request_timeout: Union[
|
|
10581
10846
|
None,
|
|
10582
10847
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -10589,12 +10854,10 @@ class EXTERNALApi:
|
|
|
10589
10854
|
_content_type: Optional[StrictStr] = None,
|
|
10590
10855
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
10591
10856
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
10592
|
-
) -> ApiResponse[
|
|
10593
|
-
"""Get
|
|
10857
|
+
) -> ApiResponse[ListHardwarePresetResponse]:
|
|
10858
|
+
"""Get Hardware Presets
|
|
10594
10859
|
|
|
10595
10860
|
|
|
10596
|
-
:param deployment_id: (required)
|
|
10597
|
-
:type deployment_id: int
|
|
10598
10861
|
:param _request_timeout: timeout setting for this request. If one
|
|
10599
10862
|
number provided, it will be total request
|
|
10600
10863
|
timeout. It can also be a pair (tuple) of
|
|
@@ -10617,8 +10880,7 @@ class EXTERNALApi:
|
|
|
10617
10880
|
:return: Returns the result object.
|
|
10618
10881
|
""" # noqa: E501
|
|
10619
10882
|
|
|
10620
|
-
_param = self.
|
|
10621
|
-
deployment_id=deployment_id,
|
|
10883
|
+
_param = self._get_hardware_presets_hardware_instances_presets_get_serialize(
|
|
10622
10884
|
_request_auth=_request_auth,
|
|
10623
10885
|
_content_type=_content_type,
|
|
10624
10886
|
_headers=_headers,
|
|
@@ -10626,8 +10888,7 @@ class EXTERNALApi:
|
|
|
10626
10888
|
)
|
|
10627
10889
|
|
|
10628
10890
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
10629
|
-
'200': "
|
|
10630
|
-
'422': "HTTPValidationError",
|
|
10891
|
+
'200': "ListHardwarePresetResponse",
|
|
10631
10892
|
}
|
|
10632
10893
|
response_data = self.api_client.call_api(
|
|
10633
10894
|
*_param,
|
|
@@ -10641,9 +10902,8 @@ class EXTERNALApi:
|
|
|
10641
10902
|
|
|
10642
10903
|
|
|
10643
10904
|
@validate_call
|
|
10644
|
-
def
|
|
10905
|
+
def get_hardware_presets_hardware_instances_presets_get_without_preload_content(
|
|
10645
10906
|
self,
|
|
10646
|
-
deployment_id: StrictInt,
|
|
10647
10907
|
_request_timeout: Union[
|
|
10648
10908
|
None,
|
|
10649
10909
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -10657,11 +10917,9 @@ class EXTERNALApi:
|
|
|
10657
10917
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
10658
10918
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
10659
10919
|
) -> RESTResponseType:
|
|
10660
|
-
"""Get
|
|
10920
|
+
"""Get Hardware Presets
|
|
10661
10921
|
|
|
10662
10922
|
|
|
10663
|
-
:param deployment_id: (required)
|
|
10664
|
-
:type deployment_id: int
|
|
10665
10923
|
:param _request_timeout: timeout setting for this request. If one
|
|
10666
10924
|
number provided, it will be total request
|
|
10667
10925
|
timeout. It can also be a pair (tuple) of
|
|
@@ -10684,8 +10942,7 @@ class EXTERNALApi:
|
|
|
10684
10942
|
:return: Returns the result object.
|
|
10685
10943
|
""" # noqa: E501
|
|
10686
10944
|
|
|
10687
|
-
_param = self.
|
|
10688
|
-
deployment_id=deployment_id,
|
|
10945
|
+
_param = self._get_hardware_presets_hardware_instances_presets_get_serialize(
|
|
10689
10946
|
_request_auth=_request_auth,
|
|
10690
10947
|
_content_type=_content_type,
|
|
10691
10948
|
_headers=_headers,
|
|
@@ -10693,8 +10950,7 @@ class EXTERNALApi:
|
|
|
10693
10950
|
)
|
|
10694
10951
|
|
|
10695
10952
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
10696
|
-
'200': "
|
|
10697
|
-
'422': "HTTPValidationError",
|
|
10953
|
+
'200': "ListHardwarePresetResponse",
|
|
10698
10954
|
}
|
|
10699
10955
|
response_data = self.api_client.call_api(
|
|
10700
10956
|
*_param,
|
|
@@ -10703,9 +10959,8 @@ class EXTERNALApi:
|
|
|
10703
10959
|
return response_data.response
|
|
10704
10960
|
|
|
10705
10961
|
|
|
10706
|
-
def
|
|
10962
|
+
def _get_hardware_presets_hardware_instances_presets_get_serialize(
|
|
10707
10963
|
self,
|
|
10708
|
-
deployment_id,
|
|
10709
10964
|
_request_auth,
|
|
10710
10965
|
_content_type,
|
|
10711
10966
|
_headers,
|
|
@@ -10727,8 +10982,6 @@ class EXTERNALApi:
|
|
|
10727
10982
|
_body_params: Optional[bytes] = None
|
|
10728
10983
|
|
|
10729
10984
|
# process the path parameters
|
|
10730
|
-
if deployment_id is not None:
|
|
10731
|
-
_path_params['deployment_id'] = deployment_id
|
|
10732
10985
|
# process the query parameters
|
|
10733
10986
|
# process the header parameters
|
|
10734
10987
|
# process the form parameters
|
|
@@ -10751,7 +11004,7 @@ class EXTERNALApi:
|
|
|
10751
11004
|
|
|
10752
11005
|
return self.api_client.param_serialize(
|
|
10753
11006
|
method='GET',
|
|
10754
|
-
resource_path='/
|
|
11007
|
+
resource_path='/hardware-instances/presets',
|
|
10755
11008
|
path_params=_path_params,
|
|
10756
11009
|
query_params=_query_params,
|
|
10757
11010
|
header_params=_header_params,
|
|
@@ -10768,7 +11021,7 @@ class EXTERNALApi:
|
|
|
10768
11021
|
|
|
10769
11022
|
|
|
10770
11023
|
@validate_call
|
|
10771
|
-
def
|
|
11024
|
+
def get_inference_deployment_deployments_inference_deployment_id_get(
|
|
10772
11025
|
self,
|
|
10773
11026
|
deployment_id: StrictInt,
|
|
10774
11027
|
_request_timeout: Union[
|
|
@@ -10783,8 +11036,8 @@ class EXTERNALApi:
|
|
|
10783
11036
|
_content_type: Optional[StrictStr] = None,
|
|
10784
11037
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
10785
11038
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
10786
|
-
) ->
|
|
10787
|
-
"""Get Inference
|
|
11039
|
+
) -> GetInferenceDeploymentResponse:
|
|
11040
|
+
"""Get Inference Deployment
|
|
10788
11041
|
|
|
10789
11042
|
|
|
10790
11043
|
:param deployment_id: (required)
|
|
@@ -10811,7 +11064,7 @@ class EXTERNALApi:
|
|
|
10811
11064
|
:return: Returns the result object.
|
|
10812
11065
|
""" # noqa: E501
|
|
10813
11066
|
|
|
10814
|
-
_param = self.
|
|
11067
|
+
_param = self._get_inference_deployment_deployments_inference_deployment_id_get_serialize(
|
|
10815
11068
|
deployment_id=deployment_id,
|
|
10816
11069
|
_request_auth=_request_auth,
|
|
10817
11070
|
_content_type=_content_type,
|
|
@@ -10820,7 +11073,7 @@ class EXTERNALApi:
|
|
|
10820
11073
|
)
|
|
10821
11074
|
|
|
10822
11075
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
10823
|
-
'200': "
|
|
11076
|
+
'200': "GetInferenceDeploymentResponse",
|
|
10824
11077
|
'422': "HTTPValidationError",
|
|
10825
11078
|
}
|
|
10826
11079
|
response_data = self.api_client.call_api(
|
|
@@ -10835,7 +11088,7 @@ class EXTERNALApi:
|
|
|
10835
11088
|
|
|
10836
11089
|
|
|
10837
11090
|
@validate_call
|
|
10838
|
-
def
|
|
11091
|
+
def get_inference_deployment_deployments_inference_deployment_id_get_with_http_info(
|
|
10839
11092
|
self,
|
|
10840
11093
|
deployment_id: StrictInt,
|
|
10841
11094
|
_request_timeout: Union[
|
|
@@ -10850,8 +11103,8 @@ class EXTERNALApi:
|
|
|
10850
11103
|
_content_type: Optional[StrictStr] = None,
|
|
10851
11104
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
10852
11105
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
10853
|
-
) -> ApiResponse[
|
|
10854
|
-
"""Get Inference
|
|
11106
|
+
) -> ApiResponse[GetInferenceDeploymentResponse]:
|
|
11107
|
+
"""Get Inference Deployment
|
|
10855
11108
|
|
|
10856
11109
|
|
|
10857
11110
|
:param deployment_id: (required)
|
|
@@ -10878,7 +11131,7 @@ class EXTERNALApi:
|
|
|
10878
11131
|
:return: Returns the result object.
|
|
10879
11132
|
""" # noqa: E501
|
|
10880
11133
|
|
|
10881
|
-
_param = self.
|
|
11134
|
+
_param = self._get_inference_deployment_deployments_inference_deployment_id_get_serialize(
|
|
10882
11135
|
deployment_id=deployment_id,
|
|
10883
11136
|
_request_auth=_request_auth,
|
|
10884
11137
|
_content_type=_content_type,
|
|
@@ -10887,7 +11140,7 @@ class EXTERNALApi:
|
|
|
10887
11140
|
)
|
|
10888
11141
|
|
|
10889
11142
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
10890
|
-
'200': "
|
|
11143
|
+
'200': "GetInferenceDeploymentResponse",
|
|
10891
11144
|
'422': "HTTPValidationError",
|
|
10892
11145
|
}
|
|
10893
11146
|
response_data = self.api_client.call_api(
|
|
@@ -10902,7 +11155,7 @@ class EXTERNALApi:
|
|
|
10902
11155
|
|
|
10903
11156
|
|
|
10904
11157
|
@validate_call
|
|
10905
|
-
def
|
|
11158
|
+
def get_inference_deployment_deployments_inference_deployment_id_get_without_preload_content(
|
|
10906
11159
|
self,
|
|
10907
11160
|
deployment_id: StrictInt,
|
|
10908
11161
|
_request_timeout: Union[
|
|
@@ -10918,7 +11171,7 @@ class EXTERNALApi:
|
|
|
10918
11171
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
10919
11172
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
10920
11173
|
) -> RESTResponseType:
|
|
10921
|
-
"""Get Inference
|
|
11174
|
+
"""Get Inference Deployment
|
|
10922
11175
|
|
|
10923
11176
|
|
|
10924
11177
|
:param deployment_id: (required)
|
|
@@ -10945,7 +11198,7 @@ class EXTERNALApi:
|
|
|
10945
11198
|
:return: Returns the result object.
|
|
10946
11199
|
""" # noqa: E501
|
|
10947
11200
|
|
|
10948
|
-
_param = self.
|
|
11201
|
+
_param = self._get_inference_deployment_deployments_inference_deployment_id_get_serialize(
|
|
10949
11202
|
deployment_id=deployment_id,
|
|
10950
11203
|
_request_auth=_request_auth,
|
|
10951
11204
|
_content_type=_content_type,
|
|
@@ -10954,7 +11207,7 @@ class EXTERNALApi:
|
|
|
10954
11207
|
)
|
|
10955
11208
|
|
|
10956
11209
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
10957
|
-
'200': "
|
|
11210
|
+
'200': "GetInferenceDeploymentResponse",
|
|
10958
11211
|
'422': "HTTPValidationError",
|
|
10959
11212
|
}
|
|
10960
11213
|
response_data = self.api_client.call_api(
|
|
@@ -10964,7 +11217,7 @@ class EXTERNALApi:
|
|
|
10964
11217
|
return response_data.response
|
|
10965
11218
|
|
|
10966
11219
|
|
|
10967
|
-
def
|
|
11220
|
+
def _get_inference_deployment_deployments_inference_deployment_id_get_serialize(
|
|
10968
11221
|
self,
|
|
10969
11222
|
deployment_id,
|
|
10970
11223
|
_request_auth,
|
|
@@ -11012,7 +11265,7 @@ class EXTERNALApi:
|
|
|
11012
11265
|
|
|
11013
11266
|
return self.api_client.param_serialize(
|
|
11014
11267
|
method='GET',
|
|
11015
|
-
resource_path='/deployments/
|
|
11268
|
+
resource_path='/deployments/inference/{deployment_id}',
|
|
11016
11269
|
path_params=_path_params,
|
|
11017
11270
|
query_params=_query_params,
|
|
11018
11271
|
header_params=_header_params,
|
|
@@ -11029,7 +11282,7 @@ class EXTERNALApi:
|
|
|
11029
11282
|
|
|
11030
11283
|
|
|
11031
11284
|
@validate_call
|
|
11032
|
-
def
|
|
11285
|
+
def get_inference_v3_deployment_deployments_inference_v3_deployment_id_get(
|
|
11033
11286
|
self,
|
|
11034
11287
|
deployment_id: StrictInt,
|
|
11035
11288
|
_request_timeout: Union[
|
|
@@ -11044,8 +11297,8 @@ class EXTERNALApi:
|
|
|
11044
11297
|
_content_type: Optional[StrictStr] = None,
|
|
11045
11298
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
11046
11299
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
11047
|
-
) ->
|
|
11048
|
-
"""Get
|
|
11300
|
+
) -> GetInferenceV3DeploymentResponse:
|
|
11301
|
+
"""Get Inference V3 Deployment
|
|
11049
11302
|
|
|
11050
11303
|
|
|
11051
11304
|
:param deployment_id: (required)
|
|
@@ -11072,7 +11325,7 @@ class EXTERNALApi:
|
|
|
11072
11325
|
:return: Returns the result object.
|
|
11073
11326
|
""" # noqa: E501
|
|
11074
11327
|
|
|
11075
|
-
_param = self.
|
|
11328
|
+
_param = self._get_inference_v3_deployment_deployments_inference_v3_deployment_id_get_serialize(
|
|
11076
11329
|
deployment_id=deployment_id,
|
|
11077
11330
|
_request_auth=_request_auth,
|
|
11078
11331
|
_content_type=_content_type,
|
|
@@ -11081,7 +11334,7 @@ class EXTERNALApi:
|
|
|
11081
11334
|
)
|
|
11082
11335
|
|
|
11083
11336
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
11084
|
-
'200': "
|
|
11337
|
+
'200': "GetInferenceV3DeploymentResponse",
|
|
11085
11338
|
'422': "HTTPValidationError",
|
|
11086
11339
|
}
|
|
11087
11340
|
response_data = self.api_client.call_api(
|
|
@@ -11096,7 +11349,7 @@ class EXTERNALApi:
|
|
|
11096
11349
|
|
|
11097
11350
|
|
|
11098
11351
|
@validate_call
|
|
11099
|
-
def
|
|
11352
|
+
def get_inference_v3_deployment_deployments_inference_v3_deployment_id_get_with_http_info(
|
|
11100
11353
|
self,
|
|
11101
11354
|
deployment_id: StrictInt,
|
|
11102
11355
|
_request_timeout: Union[
|
|
@@ -11111,8 +11364,8 @@ class EXTERNALApi:
|
|
|
11111
11364
|
_content_type: Optional[StrictStr] = None,
|
|
11112
11365
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
11113
11366
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
11114
|
-
) -> ApiResponse[
|
|
11115
|
-
"""Get
|
|
11367
|
+
) -> ApiResponse[GetInferenceV3DeploymentResponse]:
|
|
11368
|
+
"""Get Inference V3 Deployment
|
|
11116
11369
|
|
|
11117
11370
|
|
|
11118
11371
|
:param deployment_id: (required)
|
|
@@ -11139,7 +11392,7 @@ class EXTERNALApi:
|
|
|
11139
11392
|
:return: Returns the result object.
|
|
11140
11393
|
""" # noqa: E501
|
|
11141
11394
|
|
|
11142
|
-
_param = self.
|
|
11395
|
+
_param = self._get_inference_v3_deployment_deployments_inference_v3_deployment_id_get_serialize(
|
|
11143
11396
|
deployment_id=deployment_id,
|
|
11144
11397
|
_request_auth=_request_auth,
|
|
11145
11398
|
_content_type=_content_type,
|
|
@@ -11148,7 +11401,7 @@ class EXTERNALApi:
|
|
|
11148
11401
|
)
|
|
11149
11402
|
|
|
11150
11403
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
11151
|
-
'200': "
|
|
11404
|
+
'200': "GetInferenceV3DeploymentResponse",
|
|
11152
11405
|
'422': "HTTPValidationError",
|
|
11153
11406
|
}
|
|
11154
11407
|
response_data = self.api_client.call_api(
|
|
@@ -11163,7 +11416,7 @@ class EXTERNALApi:
|
|
|
11163
11416
|
|
|
11164
11417
|
|
|
11165
11418
|
@validate_call
|
|
11166
|
-
def
|
|
11419
|
+
def get_inference_v3_deployment_deployments_inference_v3_deployment_id_get_without_preload_content(
|
|
11167
11420
|
self,
|
|
11168
11421
|
deployment_id: StrictInt,
|
|
11169
11422
|
_request_timeout: Union[
|
|
@@ -11179,7 +11432,7 @@ class EXTERNALApi:
|
|
|
11179
11432
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
11180
11433
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
11181
11434
|
) -> RESTResponseType:
|
|
11182
|
-
"""Get
|
|
11435
|
+
"""Get Inference V3 Deployment
|
|
11183
11436
|
|
|
11184
11437
|
|
|
11185
11438
|
:param deployment_id: (required)
|
|
@@ -11206,7 +11459,7 @@ class EXTERNALApi:
|
|
|
11206
11459
|
:return: Returns the result object.
|
|
11207
11460
|
""" # noqa: E501
|
|
11208
11461
|
|
|
11209
|
-
_param = self.
|
|
11462
|
+
_param = self._get_inference_v3_deployment_deployments_inference_v3_deployment_id_get_serialize(
|
|
11210
11463
|
deployment_id=deployment_id,
|
|
11211
11464
|
_request_auth=_request_auth,
|
|
11212
11465
|
_content_type=_content_type,
|
|
@@ -11215,7 +11468,7 @@ class EXTERNALApi:
|
|
|
11215
11468
|
)
|
|
11216
11469
|
|
|
11217
11470
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
11218
|
-
'200': "
|
|
11471
|
+
'200': "GetInferenceV3DeploymentResponse",
|
|
11219
11472
|
'422': "HTTPValidationError",
|
|
11220
11473
|
}
|
|
11221
11474
|
response_data = self.api_client.call_api(
|
|
@@ -11225,7 +11478,7 @@ class EXTERNALApi:
|
|
|
11225
11478
|
return response_data.response
|
|
11226
11479
|
|
|
11227
11480
|
|
|
11228
|
-
def
|
|
11481
|
+
def _get_inference_v3_deployment_deployments_inference_v3_deployment_id_get_serialize(
|
|
11229
11482
|
self,
|
|
11230
11483
|
deployment_id,
|
|
11231
11484
|
_request_auth,
|
|
@@ -11273,7 +11526,7 @@ class EXTERNALApi:
|
|
|
11273
11526
|
|
|
11274
11527
|
return self.api_client.param_serialize(
|
|
11275
11528
|
method='GET',
|
|
11276
|
-
resource_path='/deployments/
|
|
11529
|
+
resource_path='/deployments/inference_v3/{deployment_id}',
|
|
11277
11530
|
path_params=_path_params,
|
|
11278
11531
|
query_params=_query_params,
|
|
11279
11532
|
header_params=_header_params,
|
|
@@ -11290,9 +11543,9 @@ class EXTERNALApi:
|
|
|
11290
11543
|
|
|
11291
11544
|
|
|
11292
11545
|
@validate_call
|
|
11293
|
-
def
|
|
11546
|
+
def get_job_deployment_deployments_job_deployment_id_get(
|
|
11294
11547
|
self,
|
|
11295
|
-
|
|
11548
|
+
deployment_id: StrictInt,
|
|
11296
11549
|
_request_timeout: Union[
|
|
11297
11550
|
None,
|
|
11298
11551
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -11305,12 +11558,12 @@ class EXTERNALApi:
|
|
|
11305
11558
|
_content_type: Optional[StrictStr] = None,
|
|
11306
11559
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
11307
11560
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
11308
|
-
) ->
|
|
11309
|
-
"""Get
|
|
11561
|
+
) -> GetJobDeploymentResponse:
|
|
11562
|
+
"""Get Job Deployment
|
|
11310
11563
|
|
|
11311
11564
|
|
|
11312
|
-
:param
|
|
11313
|
-
:type
|
|
11565
|
+
:param deployment_id: (required)
|
|
11566
|
+
:type deployment_id: int
|
|
11314
11567
|
:param _request_timeout: timeout setting for this request. If one
|
|
11315
11568
|
number provided, it will be total request
|
|
11316
11569
|
timeout. It can also be a pair (tuple) of
|
|
@@ -11333,8 +11586,8 @@ class EXTERNALApi:
|
|
|
11333
11586
|
:return: Returns the result object.
|
|
11334
11587
|
""" # noqa: E501
|
|
11335
11588
|
|
|
11336
|
-
_param = self.
|
|
11337
|
-
|
|
11589
|
+
_param = self._get_job_deployment_deployments_job_deployment_id_get_serialize(
|
|
11590
|
+
deployment_id=deployment_id,
|
|
11338
11591
|
_request_auth=_request_auth,
|
|
11339
11592
|
_content_type=_content_type,
|
|
11340
11593
|
_headers=_headers,
|
|
@@ -11342,7 +11595,7 @@ class EXTERNALApi:
|
|
|
11342
11595
|
)
|
|
11343
11596
|
|
|
11344
11597
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
11345
|
-
'200': "
|
|
11598
|
+
'200': "GetJobDeploymentResponse",
|
|
11346
11599
|
'422': "HTTPValidationError",
|
|
11347
11600
|
}
|
|
11348
11601
|
response_data = self.api_client.call_api(
|
|
@@ -11357,9 +11610,9 @@ class EXTERNALApi:
|
|
|
11357
11610
|
|
|
11358
11611
|
|
|
11359
11612
|
@validate_call
|
|
11360
|
-
def
|
|
11613
|
+
def get_job_deployment_deployments_job_deployment_id_get_with_http_info(
|
|
11361
11614
|
self,
|
|
11362
|
-
|
|
11615
|
+
deployment_id: StrictInt,
|
|
11363
11616
|
_request_timeout: Union[
|
|
11364
11617
|
None,
|
|
11365
11618
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -11372,12 +11625,12 @@ class EXTERNALApi:
|
|
|
11372
11625
|
_content_type: Optional[StrictStr] = None,
|
|
11373
11626
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
11374
11627
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
11375
|
-
) -> ApiResponse[
|
|
11376
|
-
"""Get
|
|
11628
|
+
) -> ApiResponse[GetJobDeploymentResponse]:
|
|
11629
|
+
"""Get Job Deployment
|
|
11377
11630
|
|
|
11378
11631
|
|
|
11379
|
-
:param
|
|
11380
|
-
:type
|
|
11632
|
+
:param deployment_id: (required)
|
|
11633
|
+
:type deployment_id: int
|
|
11381
11634
|
:param _request_timeout: timeout setting for this request. If one
|
|
11382
11635
|
number provided, it will be total request
|
|
11383
11636
|
timeout. It can also be a pair (tuple) of
|
|
@@ -11400,8 +11653,8 @@ class EXTERNALApi:
|
|
|
11400
11653
|
:return: Returns the result object.
|
|
11401
11654
|
""" # noqa: E501
|
|
11402
11655
|
|
|
11403
|
-
_param = self.
|
|
11404
|
-
|
|
11656
|
+
_param = self._get_job_deployment_deployments_job_deployment_id_get_serialize(
|
|
11657
|
+
deployment_id=deployment_id,
|
|
11405
11658
|
_request_auth=_request_auth,
|
|
11406
11659
|
_content_type=_content_type,
|
|
11407
11660
|
_headers=_headers,
|
|
@@ -11409,7 +11662,7 @@ class EXTERNALApi:
|
|
|
11409
11662
|
)
|
|
11410
11663
|
|
|
11411
11664
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
11412
|
-
'200': "
|
|
11665
|
+
'200': "GetJobDeploymentResponse",
|
|
11413
11666
|
'422': "HTTPValidationError",
|
|
11414
11667
|
}
|
|
11415
11668
|
response_data = self.api_client.call_api(
|
|
@@ -11424,9 +11677,9 @@ class EXTERNALApi:
|
|
|
11424
11677
|
|
|
11425
11678
|
|
|
11426
11679
|
@validate_call
|
|
11427
|
-
def
|
|
11680
|
+
def get_job_deployment_deployments_job_deployment_id_get_without_preload_content(
|
|
11428
11681
|
self,
|
|
11429
|
-
|
|
11682
|
+
deployment_id: StrictInt,
|
|
11430
11683
|
_request_timeout: Union[
|
|
11431
11684
|
None,
|
|
11432
11685
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -11440,11 +11693,11 @@ class EXTERNALApi:
|
|
|
11440
11693
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
11441
11694
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
11442
11695
|
) -> RESTResponseType:
|
|
11443
|
-
"""Get
|
|
11696
|
+
"""Get Job Deployment
|
|
11444
11697
|
|
|
11445
11698
|
|
|
11446
|
-
:param
|
|
11447
|
-
:type
|
|
11699
|
+
:param deployment_id: (required)
|
|
11700
|
+
:type deployment_id: int
|
|
11448
11701
|
:param _request_timeout: timeout setting for this request. If one
|
|
11449
11702
|
number provided, it will be total request
|
|
11450
11703
|
timeout. It can also be a pair (tuple) of
|
|
@@ -11467,8 +11720,8 @@ class EXTERNALApi:
|
|
|
11467
11720
|
:return: Returns the result object.
|
|
11468
11721
|
""" # noqa: E501
|
|
11469
11722
|
|
|
11470
|
-
_param = self.
|
|
11471
|
-
|
|
11723
|
+
_param = self._get_job_deployment_deployments_job_deployment_id_get_serialize(
|
|
11724
|
+
deployment_id=deployment_id,
|
|
11472
11725
|
_request_auth=_request_auth,
|
|
11473
11726
|
_content_type=_content_type,
|
|
11474
11727
|
_headers=_headers,
|
|
@@ -11476,7 +11729,7 @@ class EXTERNALApi:
|
|
|
11476
11729
|
)
|
|
11477
11730
|
|
|
11478
11731
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
11479
|
-
'200': "
|
|
11732
|
+
'200': "GetJobDeploymentResponse",
|
|
11480
11733
|
'422': "HTTPValidationError",
|
|
11481
11734
|
}
|
|
11482
11735
|
response_data = self.api_client.call_api(
|
|
@@ -11486,9 +11739,9 @@ class EXTERNALApi:
|
|
|
11486
11739
|
return response_data.response
|
|
11487
11740
|
|
|
11488
11741
|
|
|
11489
|
-
def
|
|
11742
|
+
def _get_job_deployment_deployments_job_deployment_id_get_serialize(
|
|
11490
11743
|
self,
|
|
11491
|
-
|
|
11744
|
+
deployment_id,
|
|
11492
11745
|
_request_auth,
|
|
11493
11746
|
_content_type,
|
|
11494
11747
|
_headers,
|
|
@@ -11510,11 +11763,9 @@ class EXTERNALApi:
|
|
|
11510
11763
|
_body_params: Optional[bytes] = None
|
|
11511
11764
|
|
|
11512
11765
|
# process the path parameters
|
|
11766
|
+
if deployment_id is not None:
|
|
11767
|
+
_path_params['deployment_id'] = deployment_id
|
|
11513
11768
|
# process the query parameters
|
|
11514
|
-
if type is not None:
|
|
11515
|
-
|
|
11516
|
-
_query_params.append(('type', type.value))
|
|
11517
|
-
|
|
11518
11769
|
# process the header parameters
|
|
11519
11770
|
# process the form parameters
|
|
11520
11771
|
# process the body parameter
|
|
@@ -11536,7 +11787,7 @@ class EXTERNALApi:
|
|
|
11536
11787
|
|
|
11537
11788
|
return self.api_client.param_serialize(
|
|
11538
11789
|
method='GET',
|
|
11539
|
-
resource_path='/
|
|
11790
|
+
resource_path='/deployments/job/{deployment_id}',
|
|
11540
11791
|
path_params=_path_params,
|
|
11541
11792
|
query_params=_query_params,
|
|
11542
11793
|
header_params=_header_params,
|
|
@@ -11553,10 +11804,10 @@ class EXTERNALApi:
|
|
|
11553
11804
|
|
|
11554
11805
|
|
|
11555
11806
|
@validate_call
|
|
11556
|
-
def
|
|
11807
|
+
def get_org_gpu_quota_on_cluster_clusters_cluster_id_organizations_organization_id_gpu_quota_get(
|
|
11557
11808
|
self,
|
|
11558
|
-
|
|
11559
|
-
|
|
11809
|
+
cluster_id: StrictInt,
|
|
11810
|
+
organization_id: StrictInt,
|
|
11560
11811
|
_request_timeout: Union[
|
|
11561
11812
|
None,
|
|
11562
11813
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -11569,14 +11820,14 @@ class EXTERNALApi:
|
|
|
11569
11820
|
_content_type: Optional[StrictStr] = None,
|
|
11570
11821
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
11571
11822
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
11572
|
-
) ->
|
|
11573
|
-
"""
|
|
11823
|
+
) -> OrganizationGpuQuotaResponse:
|
|
11824
|
+
"""Get Org Gpu Quota On Cluster
|
|
11574
11825
|
|
|
11575
11826
|
|
|
11576
|
-
:param
|
|
11577
|
-
:type
|
|
11578
|
-
:param
|
|
11579
|
-
:type
|
|
11827
|
+
:param cluster_id: (required)
|
|
11828
|
+
:type cluster_id: int
|
|
11829
|
+
:param organization_id: (required)
|
|
11830
|
+
:type organization_id: int
|
|
11580
11831
|
:param _request_timeout: timeout setting for this request. If one
|
|
11581
11832
|
number provided, it will be total request
|
|
11582
11833
|
timeout. It can also be a pair (tuple) of
|
|
@@ -11598,11 +11849,10 @@ class EXTERNALApi:
|
|
|
11598
11849
|
:type _host_index: int, optional
|
|
11599
11850
|
:return: Returns the result object.
|
|
11600
11851
|
""" # noqa: E501
|
|
11601
|
-
warnings.warn("GET /daily_bills is deprecated.", DeprecationWarning)
|
|
11602
11852
|
|
|
11603
|
-
_param = self.
|
|
11604
|
-
|
|
11605
|
-
|
|
11853
|
+
_param = self._get_org_gpu_quota_on_cluster_clusters_cluster_id_organizations_organization_id_gpu_quota_get_serialize(
|
|
11854
|
+
cluster_id=cluster_id,
|
|
11855
|
+
organization_id=organization_id,
|
|
11606
11856
|
_request_auth=_request_auth,
|
|
11607
11857
|
_content_type=_content_type,
|
|
11608
11858
|
_headers=_headers,
|
|
@@ -11610,7 +11860,7 @@ class EXTERNALApi:
|
|
|
11610
11860
|
)
|
|
11611
11861
|
|
|
11612
11862
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
11613
|
-
'200': "
|
|
11863
|
+
'200': "OrganizationGpuQuotaResponse",
|
|
11614
11864
|
'422': "HTTPValidationError",
|
|
11615
11865
|
}
|
|
11616
11866
|
response_data = self.api_client.call_api(
|
|
@@ -11625,10 +11875,10 @@ class EXTERNALApi:
|
|
|
11625
11875
|
|
|
11626
11876
|
|
|
11627
11877
|
@validate_call
|
|
11628
|
-
def
|
|
11878
|
+
def get_org_gpu_quota_on_cluster_clusters_cluster_id_organizations_organization_id_gpu_quota_get_with_http_info(
|
|
11629
11879
|
self,
|
|
11630
|
-
|
|
11631
|
-
|
|
11880
|
+
cluster_id: StrictInt,
|
|
11881
|
+
organization_id: StrictInt,
|
|
11632
11882
|
_request_timeout: Union[
|
|
11633
11883
|
None,
|
|
11634
11884
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -11641,14 +11891,14 @@ class EXTERNALApi:
|
|
|
11641
11891
|
_content_type: Optional[StrictStr] = None,
|
|
11642
11892
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
11643
11893
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
11644
|
-
) -> ApiResponse[
|
|
11645
|
-
"""
|
|
11894
|
+
) -> ApiResponse[OrganizationGpuQuotaResponse]:
|
|
11895
|
+
"""Get Org Gpu Quota On Cluster
|
|
11646
11896
|
|
|
11647
11897
|
|
|
11648
|
-
:param
|
|
11649
|
-
:type
|
|
11650
|
-
:param
|
|
11651
|
-
:type
|
|
11898
|
+
:param cluster_id: (required)
|
|
11899
|
+
:type cluster_id: int
|
|
11900
|
+
:param organization_id: (required)
|
|
11901
|
+
:type organization_id: int
|
|
11652
11902
|
:param _request_timeout: timeout setting for this request. If one
|
|
11653
11903
|
number provided, it will be total request
|
|
11654
11904
|
timeout. It can also be a pair (tuple) of
|
|
@@ -11670,11 +11920,10 @@ class EXTERNALApi:
|
|
|
11670
11920
|
:type _host_index: int, optional
|
|
11671
11921
|
:return: Returns the result object.
|
|
11672
11922
|
""" # noqa: E501
|
|
11673
|
-
warnings.warn("GET /daily_bills is deprecated.", DeprecationWarning)
|
|
11674
11923
|
|
|
11675
|
-
_param = self.
|
|
11676
|
-
|
|
11677
|
-
|
|
11924
|
+
_param = self._get_org_gpu_quota_on_cluster_clusters_cluster_id_organizations_organization_id_gpu_quota_get_serialize(
|
|
11925
|
+
cluster_id=cluster_id,
|
|
11926
|
+
organization_id=organization_id,
|
|
11678
11927
|
_request_auth=_request_auth,
|
|
11679
11928
|
_content_type=_content_type,
|
|
11680
11929
|
_headers=_headers,
|
|
@@ -11682,7 +11931,7 @@ class EXTERNALApi:
|
|
|
11682
11931
|
)
|
|
11683
11932
|
|
|
11684
11933
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
11685
|
-
'200': "
|
|
11934
|
+
'200': "OrganizationGpuQuotaResponse",
|
|
11686
11935
|
'422': "HTTPValidationError",
|
|
11687
11936
|
}
|
|
11688
11937
|
response_data = self.api_client.call_api(
|
|
@@ -11697,10 +11946,10 @@ class EXTERNALApi:
|
|
|
11697
11946
|
|
|
11698
11947
|
|
|
11699
11948
|
@validate_call
|
|
11700
|
-
def
|
|
11949
|
+
def get_org_gpu_quota_on_cluster_clusters_cluster_id_organizations_organization_id_gpu_quota_get_without_preload_content(
|
|
11701
11950
|
self,
|
|
11702
|
-
|
|
11703
|
-
|
|
11951
|
+
cluster_id: StrictInt,
|
|
11952
|
+
organization_id: StrictInt,
|
|
11704
11953
|
_request_timeout: Union[
|
|
11705
11954
|
None,
|
|
11706
11955
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -11714,13 +11963,13 @@ class EXTERNALApi:
|
|
|
11714
11963
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
11715
11964
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
11716
11965
|
) -> RESTResponseType:
|
|
11717
|
-
"""
|
|
11966
|
+
"""Get Org Gpu Quota On Cluster
|
|
11718
11967
|
|
|
11719
11968
|
|
|
11720
|
-
:param
|
|
11721
|
-
:type
|
|
11722
|
-
:param
|
|
11723
|
-
:type
|
|
11969
|
+
:param cluster_id: (required)
|
|
11970
|
+
:type cluster_id: int
|
|
11971
|
+
:param organization_id: (required)
|
|
11972
|
+
:type organization_id: int
|
|
11724
11973
|
:param _request_timeout: timeout setting for this request. If one
|
|
11725
11974
|
number provided, it will be total request
|
|
11726
11975
|
timeout. It can also be a pair (tuple) of
|
|
@@ -11742,11 +11991,10 @@ class EXTERNALApi:
|
|
|
11742
11991
|
:type _host_index: int, optional
|
|
11743
11992
|
:return: Returns the result object.
|
|
11744
11993
|
""" # noqa: E501
|
|
11745
|
-
warnings.warn("GET /daily_bills is deprecated.", DeprecationWarning)
|
|
11746
11994
|
|
|
11747
|
-
_param = self.
|
|
11748
|
-
|
|
11749
|
-
|
|
11995
|
+
_param = self._get_org_gpu_quota_on_cluster_clusters_cluster_id_organizations_organization_id_gpu_quota_get_serialize(
|
|
11996
|
+
cluster_id=cluster_id,
|
|
11997
|
+
organization_id=organization_id,
|
|
11750
11998
|
_request_auth=_request_auth,
|
|
11751
11999
|
_content_type=_content_type,
|
|
11752
12000
|
_headers=_headers,
|
|
@@ -11754,7 +12002,7 @@ class EXTERNALApi:
|
|
|
11754
12002
|
)
|
|
11755
12003
|
|
|
11756
12004
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
11757
|
-
'200': "
|
|
12005
|
+
'200': "OrganizationGpuQuotaResponse",
|
|
11758
12006
|
'422': "HTTPValidationError",
|
|
11759
12007
|
}
|
|
11760
12008
|
response_data = self.api_client.call_api(
|
|
@@ -11764,10 +12012,10 @@ class EXTERNALApi:
|
|
|
11764
12012
|
return response_data.response
|
|
11765
12013
|
|
|
11766
12014
|
|
|
11767
|
-
def
|
|
12015
|
+
def _get_org_gpu_quota_on_cluster_clusters_cluster_id_organizations_organization_id_gpu_quota_get_serialize(
|
|
11768
12016
|
self,
|
|
11769
|
-
|
|
11770
|
-
|
|
12017
|
+
cluster_id,
|
|
12018
|
+
organization_id,
|
|
11771
12019
|
_request_auth,
|
|
11772
12020
|
_content_type,
|
|
11773
12021
|
_headers,
|
|
@@ -11789,33 +12037,11 @@ class EXTERNALApi:
|
|
|
11789
12037
|
_body_params: Optional[bytes] = None
|
|
11790
12038
|
|
|
11791
12039
|
# process the path parameters
|
|
12040
|
+
if cluster_id is not None:
|
|
12041
|
+
_path_params['cluster_id'] = cluster_id
|
|
12042
|
+
if organization_id is not None:
|
|
12043
|
+
_path_params['organization_id'] = organization_id
|
|
11792
12044
|
# process the query parameters
|
|
11793
|
-
if start_date is not None:
|
|
11794
|
-
if isinstance(start_date, date):
|
|
11795
|
-
_query_params.append(
|
|
11796
|
-
(
|
|
11797
|
-
'start_date',
|
|
11798
|
-
start_date.strftime(
|
|
11799
|
-
self.api_client.configuration.date_format
|
|
11800
|
-
)
|
|
11801
|
-
)
|
|
11802
|
-
)
|
|
11803
|
-
else:
|
|
11804
|
-
_query_params.append(('start_date', start_date))
|
|
11805
|
-
|
|
11806
|
-
if end_date is not None:
|
|
11807
|
-
if isinstance(end_date, date):
|
|
11808
|
-
_query_params.append(
|
|
11809
|
-
(
|
|
11810
|
-
'end_date',
|
|
11811
|
-
end_date.strftime(
|
|
11812
|
-
self.api_client.configuration.date_format
|
|
11813
|
-
)
|
|
11814
|
-
)
|
|
11815
|
-
)
|
|
11816
|
-
else:
|
|
11817
|
-
_query_params.append(('end_date', end_date))
|
|
11818
|
-
|
|
11819
12045
|
# process the header parameters
|
|
11820
12046
|
# process the form parameters
|
|
11821
12047
|
# process the body parameter
|
|
@@ -11837,7 +12063,7 @@ class EXTERNALApi:
|
|
|
11837
12063
|
|
|
11838
12064
|
return self.api_client.param_serialize(
|
|
11839
12065
|
method='GET',
|
|
11840
|
-
resource_path='/
|
|
12066
|
+
resource_path='/clusters/{cluster_id}/organizations/{organization_id}/gpu-quota',
|
|
11841
12067
|
path_params=_path_params,
|
|
11842
12068
|
query_params=_query_params,
|
|
11843
12069
|
header_params=_header_params,
|
|
@@ -11854,13 +12080,9 @@ class EXTERNALApi:
|
|
|
11854
12080
|
|
|
11855
12081
|
|
|
11856
12082
|
@validate_call
|
|
11857
|
-
def
|
|
12083
|
+
def get_prebuilt_images_prebuilt_images_get(
|
|
11858
12084
|
self,
|
|
11859
|
-
|
|
11860
|
-
metric: Metric,
|
|
11861
|
-
start_time_in_seconds: StrictInt,
|
|
11862
|
-
end_time_in_seconds: StrictInt,
|
|
11863
|
-
step: Optional[StrictInt] = None,
|
|
12085
|
+
type: Optional[DeploymentType] = None,
|
|
11864
12086
|
_request_timeout: Union[
|
|
11865
12087
|
None,
|
|
11866
12088
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -11873,20 +12095,12 @@ class EXTERNALApi:
|
|
|
11873
12095
|
_content_type: Optional[StrictStr] = None,
|
|
11874
12096
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
11875
12097
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
11876
|
-
) ->
|
|
11877
|
-
"""Get
|
|
12098
|
+
) -> ListPrebuiltImageResponse:
|
|
12099
|
+
"""Get Prebuilt Images
|
|
11878
12100
|
|
|
11879
12101
|
|
|
11880
|
-
:param
|
|
11881
|
-
:type
|
|
11882
|
-
:param metric: (required)
|
|
11883
|
-
:type metric: Metric
|
|
11884
|
-
:param start_time_in_seconds: (required)
|
|
11885
|
-
:type start_time_in_seconds: int
|
|
11886
|
-
:param end_time_in_seconds: (required)
|
|
11887
|
-
:type end_time_in_seconds: int
|
|
11888
|
-
:param step:
|
|
11889
|
-
:type step: int
|
|
12102
|
+
:param type:
|
|
12103
|
+
:type type: DeploymentType
|
|
11890
12104
|
:param _request_timeout: timeout setting for this request. If one
|
|
11891
12105
|
number provided, it will be total request
|
|
11892
12106
|
timeout. It can also be a pair (tuple) of
|
|
@@ -11909,12 +12123,8 @@ class EXTERNALApi:
|
|
|
11909
12123
|
:return: Returns the result object.
|
|
11910
12124
|
""" # noqa: E501
|
|
11911
12125
|
|
|
11912
|
-
_param = self.
|
|
11913
|
-
|
|
11914
|
-
metric=metric,
|
|
11915
|
-
start_time_in_seconds=start_time_in_seconds,
|
|
11916
|
-
end_time_in_seconds=end_time_in_seconds,
|
|
11917
|
-
step=step,
|
|
12126
|
+
_param = self._get_prebuilt_images_prebuilt_images_get_serialize(
|
|
12127
|
+
type=type,
|
|
11918
12128
|
_request_auth=_request_auth,
|
|
11919
12129
|
_content_type=_content_type,
|
|
11920
12130
|
_headers=_headers,
|
|
@@ -11922,7 +12132,7 @@ class EXTERNALApi:
|
|
|
11922
12132
|
)
|
|
11923
12133
|
|
|
11924
12134
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
11925
|
-
'200': "
|
|
12135
|
+
'200': "ListPrebuiltImageResponse",
|
|
11926
12136
|
'422': "HTTPValidationError",
|
|
11927
12137
|
}
|
|
11928
12138
|
response_data = self.api_client.call_api(
|
|
@@ -11937,13 +12147,9 @@ class EXTERNALApi:
|
|
|
11937
12147
|
|
|
11938
12148
|
|
|
11939
12149
|
@validate_call
|
|
11940
|
-
def
|
|
12150
|
+
def get_prebuilt_images_prebuilt_images_get_with_http_info(
|
|
11941
12151
|
self,
|
|
11942
|
-
|
|
11943
|
-
metric: Metric,
|
|
11944
|
-
start_time_in_seconds: StrictInt,
|
|
11945
|
-
end_time_in_seconds: StrictInt,
|
|
11946
|
-
step: Optional[StrictInt] = None,
|
|
12152
|
+
type: Optional[DeploymentType] = None,
|
|
11947
12153
|
_request_timeout: Union[
|
|
11948
12154
|
None,
|
|
11949
12155
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -11956,20 +12162,12 @@ class EXTERNALApi:
|
|
|
11956
12162
|
_content_type: Optional[StrictStr] = None,
|
|
11957
12163
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
11958
12164
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
11959
|
-
) -> ApiResponse[
|
|
11960
|
-
"""Get
|
|
12165
|
+
) -> ApiResponse[ListPrebuiltImageResponse]:
|
|
12166
|
+
"""Get Prebuilt Images
|
|
11961
12167
|
|
|
11962
12168
|
|
|
11963
|
-
:param
|
|
11964
|
-
:type
|
|
11965
|
-
:param metric: (required)
|
|
11966
|
-
:type metric: Metric
|
|
11967
|
-
:param start_time_in_seconds: (required)
|
|
11968
|
-
:type start_time_in_seconds: int
|
|
11969
|
-
:param end_time_in_seconds: (required)
|
|
11970
|
-
:type end_time_in_seconds: int
|
|
11971
|
-
:param step:
|
|
11972
|
-
:type step: int
|
|
12169
|
+
:param type:
|
|
12170
|
+
:type type: DeploymentType
|
|
11973
12171
|
:param _request_timeout: timeout setting for this request. If one
|
|
11974
12172
|
number provided, it will be total request
|
|
11975
12173
|
timeout. It can also be a pair (tuple) of
|
|
@@ -11992,12 +12190,1111 @@ class EXTERNALApi:
|
|
|
11992
12190
|
:return: Returns the result object.
|
|
11993
12191
|
""" # noqa: E501
|
|
11994
12192
|
|
|
11995
|
-
_param = self.
|
|
11996
|
-
|
|
11997
|
-
|
|
11998
|
-
|
|
11999
|
-
|
|
12000
|
-
|
|
12193
|
+
_param = self._get_prebuilt_images_prebuilt_images_get_serialize(
|
|
12194
|
+
type=type,
|
|
12195
|
+
_request_auth=_request_auth,
|
|
12196
|
+
_content_type=_content_type,
|
|
12197
|
+
_headers=_headers,
|
|
12198
|
+
_host_index=_host_index
|
|
12199
|
+
)
|
|
12200
|
+
|
|
12201
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
12202
|
+
'200': "ListPrebuiltImageResponse",
|
|
12203
|
+
'422': "HTTPValidationError",
|
|
12204
|
+
}
|
|
12205
|
+
response_data = self.api_client.call_api(
|
|
12206
|
+
*_param,
|
|
12207
|
+
_request_timeout=_request_timeout
|
|
12208
|
+
)
|
|
12209
|
+
response_data.read()
|
|
12210
|
+
return self.api_client.response_deserialize(
|
|
12211
|
+
response_data=response_data,
|
|
12212
|
+
response_types_map=_response_types_map,
|
|
12213
|
+
)
|
|
12214
|
+
|
|
12215
|
+
|
|
12216
|
+
@validate_call
|
|
12217
|
+
def get_prebuilt_images_prebuilt_images_get_without_preload_content(
|
|
12218
|
+
self,
|
|
12219
|
+
type: Optional[DeploymentType] = None,
|
|
12220
|
+
_request_timeout: Union[
|
|
12221
|
+
None,
|
|
12222
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
12223
|
+
Tuple[
|
|
12224
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
12225
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
12226
|
+
]
|
|
12227
|
+
] = None,
|
|
12228
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
12229
|
+
_content_type: Optional[StrictStr] = None,
|
|
12230
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
12231
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
12232
|
+
) -> RESTResponseType:
|
|
12233
|
+
"""Get Prebuilt Images
|
|
12234
|
+
|
|
12235
|
+
|
|
12236
|
+
:param type:
|
|
12237
|
+
:type type: DeploymentType
|
|
12238
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
12239
|
+
number provided, it will be total request
|
|
12240
|
+
timeout. It can also be a pair (tuple) of
|
|
12241
|
+
(connection, read) timeouts.
|
|
12242
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
12243
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
12244
|
+
request; this effectively ignores the
|
|
12245
|
+
authentication in the spec for a single request.
|
|
12246
|
+
:type _request_auth: dict, optional
|
|
12247
|
+
:param _content_type: force content-type for the request.
|
|
12248
|
+
:type _content_type: str, Optional
|
|
12249
|
+
:param _headers: set to override the headers for a single
|
|
12250
|
+
request; this effectively ignores the headers
|
|
12251
|
+
in the spec for a single request.
|
|
12252
|
+
:type _headers: dict, optional
|
|
12253
|
+
:param _host_index: set to override the host_index for a single
|
|
12254
|
+
request; this effectively ignores the host_index
|
|
12255
|
+
in the spec for a single request.
|
|
12256
|
+
:type _host_index: int, optional
|
|
12257
|
+
:return: Returns the result object.
|
|
12258
|
+
""" # noqa: E501
|
|
12259
|
+
|
|
12260
|
+
_param = self._get_prebuilt_images_prebuilt_images_get_serialize(
|
|
12261
|
+
type=type,
|
|
12262
|
+
_request_auth=_request_auth,
|
|
12263
|
+
_content_type=_content_type,
|
|
12264
|
+
_headers=_headers,
|
|
12265
|
+
_host_index=_host_index
|
|
12266
|
+
)
|
|
12267
|
+
|
|
12268
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
12269
|
+
'200': "ListPrebuiltImageResponse",
|
|
12270
|
+
'422': "HTTPValidationError",
|
|
12271
|
+
}
|
|
12272
|
+
response_data = self.api_client.call_api(
|
|
12273
|
+
*_param,
|
|
12274
|
+
_request_timeout=_request_timeout
|
|
12275
|
+
)
|
|
12276
|
+
return response_data.response
|
|
12277
|
+
|
|
12278
|
+
|
|
12279
|
+
def _get_prebuilt_images_prebuilt_images_get_serialize(
|
|
12280
|
+
self,
|
|
12281
|
+
type,
|
|
12282
|
+
_request_auth,
|
|
12283
|
+
_content_type,
|
|
12284
|
+
_headers,
|
|
12285
|
+
_host_index,
|
|
12286
|
+
) -> RequestSerialized:
|
|
12287
|
+
|
|
12288
|
+
_host = None
|
|
12289
|
+
|
|
12290
|
+
_collection_formats: Dict[str, str] = {
|
|
12291
|
+
}
|
|
12292
|
+
|
|
12293
|
+
_path_params: Dict[str, str] = {}
|
|
12294
|
+
_query_params: List[Tuple[str, str]] = []
|
|
12295
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
12296
|
+
_form_params: List[Tuple[str, str]] = []
|
|
12297
|
+
_files: Dict[
|
|
12298
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
12299
|
+
] = {}
|
|
12300
|
+
_body_params: Optional[bytes] = None
|
|
12301
|
+
|
|
12302
|
+
# process the path parameters
|
|
12303
|
+
# process the query parameters
|
|
12304
|
+
if type is not None:
|
|
12305
|
+
|
|
12306
|
+
_query_params.append(('type', type.value))
|
|
12307
|
+
|
|
12308
|
+
# process the header parameters
|
|
12309
|
+
# process the form parameters
|
|
12310
|
+
# process the body parameter
|
|
12311
|
+
|
|
12312
|
+
|
|
12313
|
+
# set the HTTP header `Accept`
|
|
12314
|
+
if 'Accept' not in _header_params:
|
|
12315
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
12316
|
+
[
|
|
12317
|
+
'application/json'
|
|
12318
|
+
]
|
|
12319
|
+
)
|
|
12320
|
+
|
|
12321
|
+
|
|
12322
|
+
# authentication setting
|
|
12323
|
+
_auth_settings: List[str] = [
|
|
12324
|
+
'HTTPBearer'
|
|
12325
|
+
]
|
|
12326
|
+
|
|
12327
|
+
return self.api_client.param_serialize(
|
|
12328
|
+
method='GET',
|
|
12329
|
+
resource_path='/prebuilt-images',
|
|
12330
|
+
path_params=_path_params,
|
|
12331
|
+
query_params=_query_params,
|
|
12332
|
+
header_params=_header_params,
|
|
12333
|
+
body=_body_params,
|
|
12334
|
+
post_params=_form_params,
|
|
12335
|
+
files=_files,
|
|
12336
|
+
auth_settings=_auth_settings,
|
|
12337
|
+
collection_formats=_collection_formats,
|
|
12338
|
+
_host=_host,
|
|
12339
|
+
_request_auth=_request_auth
|
|
12340
|
+
)
|
|
12341
|
+
|
|
12342
|
+
|
|
12343
|
+
|
|
12344
|
+
|
|
12345
|
+
@validate_call
|
|
12346
|
+
def get_usage_daily_bills_get(
|
|
12347
|
+
self,
|
|
12348
|
+
_request_timeout: Union[
|
|
12349
|
+
None,
|
|
12350
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
12351
|
+
Tuple[
|
|
12352
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
12353
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
12354
|
+
]
|
|
12355
|
+
] = None,
|
|
12356
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
12357
|
+
_content_type: Optional[StrictStr] = None,
|
|
12358
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
12359
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
12360
|
+
) -> ListDailyBillResponse:
|
|
12361
|
+
"""(Deprecated) Get Usage
|
|
12362
|
+
|
|
12363
|
+
|
|
12364
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
12365
|
+
number provided, it will be total request
|
|
12366
|
+
timeout. It can also be a pair (tuple) of
|
|
12367
|
+
(connection, read) timeouts.
|
|
12368
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
12369
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
12370
|
+
request; this effectively ignores the
|
|
12371
|
+
authentication in the spec for a single request.
|
|
12372
|
+
:type _request_auth: dict, optional
|
|
12373
|
+
:param _content_type: force content-type for the request.
|
|
12374
|
+
:type _content_type: str, Optional
|
|
12375
|
+
:param _headers: set to override the headers for a single
|
|
12376
|
+
request; this effectively ignores the headers
|
|
12377
|
+
in the spec for a single request.
|
|
12378
|
+
:type _headers: dict, optional
|
|
12379
|
+
:param _host_index: set to override the host_index for a single
|
|
12380
|
+
request; this effectively ignores the host_index
|
|
12381
|
+
in the spec for a single request.
|
|
12382
|
+
:type _host_index: int, optional
|
|
12383
|
+
:return: Returns the result object.
|
|
12384
|
+
""" # noqa: E501
|
|
12385
|
+
warnings.warn("GET /daily_bills is deprecated.", DeprecationWarning)
|
|
12386
|
+
|
|
12387
|
+
_param = self._get_usage_daily_bills_get_serialize(
|
|
12388
|
+
_request_auth=_request_auth,
|
|
12389
|
+
_content_type=_content_type,
|
|
12390
|
+
_headers=_headers,
|
|
12391
|
+
_host_index=_host_index
|
|
12392
|
+
)
|
|
12393
|
+
|
|
12394
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
12395
|
+
'200': "ListDailyBillResponse",
|
|
12396
|
+
}
|
|
12397
|
+
response_data = self.api_client.call_api(
|
|
12398
|
+
*_param,
|
|
12399
|
+
_request_timeout=_request_timeout
|
|
12400
|
+
)
|
|
12401
|
+
response_data.read()
|
|
12402
|
+
return self.api_client.response_deserialize(
|
|
12403
|
+
response_data=response_data,
|
|
12404
|
+
response_types_map=_response_types_map,
|
|
12405
|
+
).data
|
|
12406
|
+
|
|
12407
|
+
|
|
12408
|
+
@validate_call
|
|
12409
|
+
def get_usage_daily_bills_get_with_http_info(
|
|
12410
|
+
self,
|
|
12411
|
+
_request_timeout: Union[
|
|
12412
|
+
None,
|
|
12413
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
12414
|
+
Tuple[
|
|
12415
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
12416
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
12417
|
+
]
|
|
12418
|
+
] = None,
|
|
12419
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
12420
|
+
_content_type: Optional[StrictStr] = None,
|
|
12421
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
12422
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
12423
|
+
) -> ApiResponse[ListDailyBillResponse]:
|
|
12424
|
+
"""(Deprecated) Get Usage
|
|
12425
|
+
|
|
12426
|
+
|
|
12427
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
12428
|
+
number provided, it will be total request
|
|
12429
|
+
timeout. It can also be a pair (tuple) of
|
|
12430
|
+
(connection, read) timeouts.
|
|
12431
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
12432
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
12433
|
+
request; this effectively ignores the
|
|
12434
|
+
authentication in the spec for a single request.
|
|
12435
|
+
:type _request_auth: dict, optional
|
|
12436
|
+
:param _content_type: force content-type for the request.
|
|
12437
|
+
:type _content_type: str, Optional
|
|
12438
|
+
:param _headers: set to override the headers for a single
|
|
12439
|
+
request; this effectively ignores the headers
|
|
12440
|
+
in the spec for a single request.
|
|
12441
|
+
:type _headers: dict, optional
|
|
12442
|
+
:param _host_index: set to override the host_index for a single
|
|
12443
|
+
request; this effectively ignores the host_index
|
|
12444
|
+
in the spec for a single request.
|
|
12445
|
+
:type _host_index: int, optional
|
|
12446
|
+
:return: Returns the result object.
|
|
12447
|
+
""" # noqa: E501
|
|
12448
|
+
warnings.warn("GET /daily_bills is deprecated.", DeprecationWarning)
|
|
12449
|
+
|
|
12450
|
+
_param = self._get_usage_daily_bills_get_serialize(
|
|
12451
|
+
_request_auth=_request_auth,
|
|
12452
|
+
_content_type=_content_type,
|
|
12453
|
+
_headers=_headers,
|
|
12454
|
+
_host_index=_host_index
|
|
12455
|
+
)
|
|
12456
|
+
|
|
12457
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
12458
|
+
'200': "ListDailyBillResponse",
|
|
12459
|
+
}
|
|
12460
|
+
response_data = self.api_client.call_api(
|
|
12461
|
+
*_param,
|
|
12462
|
+
_request_timeout=_request_timeout
|
|
12463
|
+
)
|
|
12464
|
+
response_data.read()
|
|
12465
|
+
return self.api_client.response_deserialize(
|
|
12466
|
+
response_data=response_data,
|
|
12467
|
+
response_types_map=_response_types_map,
|
|
12468
|
+
)
|
|
12469
|
+
|
|
12470
|
+
|
|
12471
|
+
@validate_call
|
|
12472
|
+
def get_usage_daily_bills_get_without_preload_content(
|
|
12473
|
+
self,
|
|
12474
|
+
_request_timeout: Union[
|
|
12475
|
+
None,
|
|
12476
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
12477
|
+
Tuple[
|
|
12478
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
12479
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
12480
|
+
]
|
|
12481
|
+
] = None,
|
|
12482
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
12483
|
+
_content_type: Optional[StrictStr] = None,
|
|
12484
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
12485
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
12486
|
+
) -> RESTResponseType:
|
|
12487
|
+
"""(Deprecated) Get Usage
|
|
12488
|
+
|
|
12489
|
+
|
|
12490
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
12491
|
+
number provided, it will be total request
|
|
12492
|
+
timeout. It can also be a pair (tuple) of
|
|
12493
|
+
(connection, read) timeouts.
|
|
12494
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
12495
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
12496
|
+
request; this effectively ignores the
|
|
12497
|
+
authentication in the spec for a single request.
|
|
12498
|
+
:type _request_auth: dict, optional
|
|
12499
|
+
:param _content_type: force content-type for the request.
|
|
12500
|
+
:type _content_type: str, Optional
|
|
12501
|
+
:param _headers: set to override the headers for a single
|
|
12502
|
+
request; this effectively ignores the headers
|
|
12503
|
+
in the spec for a single request.
|
|
12504
|
+
:type _headers: dict, optional
|
|
12505
|
+
:param _host_index: set to override the host_index for a single
|
|
12506
|
+
request; this effectively ignores the host_index
|
|
12507
|
+
in the spec for a single request.
|
|
12508
|
+
:type _host_index: int, optional
|
|
12509
|
+
:return: Returns the result object.
|
|
12510
|
+
""" # noqa: E501
|
|
12511
|
+
warnings.warn("GET /daily_bills is deprecated.", DeprecationWarning)
|
|
12512
|
+
|
|
12513
|
+
_param = self._get_usage_daily_bills_get_serialize(
|
|
12514
|
+
_request_auth=_request_auth,
|
|
12515
|
+
_content_type=_content_type,
|
|
12516
|
+
_headers=_headers,
|
|
12517
|
+
_host_index=_host_index
|
|
12518
|
+
)
|
|
12519
|
+
|
|
12520
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
12521
|
+
'200': "ListDailyBillResponse",
|
|
12522
|
+
}
|
|
12523
|
+
response_data = self.api_client.call_api(
|
|
12524
|
+
*_param,
|
|
12525
|
+
_request_timeout=_request_timeout
|
|
12526
|
+
)
|
|
12527
|
+
return response_data.response
|
|
12528
|
+
|
|
12529
|
+
|
|
12530
|
+
def _get_usage_daily_bills_get_serialize(
|
|
12531
|
+
self,
|
|
12532
|
+
_request_auth,
|
|
12533
|
+
_content_type,
|
|
12534
|
+
_headers,
|
|
12535
|
+
_host_index,
|
|
12536
|
+
) -> RequestSerialized:
|
|
12537
|
+
|
|
12538
|
+
_host = None
|
|
12539
|
+
|
|
12540
|
+
_collection_formats: Dict[str, str] = {
|
|
12541
|
+
}
|
|
12542
|
+
|
|
12543
|
+
_path_params: Dict[str, str] = {}
|
|
12544
|
+
_query_params: List[Tuple[str, str]] = []
|
|
12545
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
12546
|
+
_form_params: List[Tuple[str, str]] = []
|
|
12547
|
+
_files: Dict[
|
|
12548
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
12549
|
+
] = {}
|
|
12550
|
+
_body_params: Optional[bytes] = None
|
|
12551
|
+
|
|
12552
|
+
# process the path parameters
|
|
12553
|
+
# process the query parameters
|
|
12554
|
+
# process the header parameters
|
|
12555
|
+
# process the form parameters
|
|
12556
|
+
# process the body parameter
|
|
12557
|
+
|
|
12558
|
+
|
|
12559
|
+
# set the HTTP header `Accept`
|
|
12560
|
+
if 'Accept' not in _header_params:
|
|
12561
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
12562
|
+
[
|
|
12563
|
+
'application/json'
|
|
12564
|
+
]
|
|
12565
|
+
)
|
|
12566
|
+
|
|
12567
|
+
|
|
12568
|
+
# authentication setting
|
|
12569
|
+
_auth_settings: List[str] = [
|
|
12570
|
+
]
|
|
12571
|
+
|
|
12572
|
+
return self.api_client.param_serialize(
|
|
12573
|
+
method='GET',
|
|
12574
|
+
resource_path='/daily_bills',
|
|
12575
|
+
path_params=_path_params,
|
|
12576
|
+
query_params=_query_params,
|
|
12577
|
+
header_params=_header_params,
|
|
12578
|
+
body=_body_params,
|
|
12579
|
+
post_params=_form_params,
|
|
12580
|
+
files=_files,
|
|
12581
|
+
auth_settings=_auth_settings,
|
|
12582
|
+
collection_formats=_collection_formats,
|
|
12583
|
+
_host=_host,
|
|
12584
|
+
_request_auth=_request_auth
|
|
12585
|
+
)
|
|
12586
|
+
|
|
12587
|
+
|
|
12588
|
+
|
|
12589
|
+
|
|
12590
|
+
@validate_call
|
|
12591
|
+
def get_usage_deployments_usage_deployment_id_get(
|
|
12592
|
+
self,
|
|
12593
|
+
deployment_id: StrictInt,
|
|
12594
|
+
metric: Metric,
|
|
12595
|
+
start_time_in_seconds: StrictInt,
|
|
12596
|
+
end_time_in_seconds: StrictInt,
|
|
12597
|
+
step: Optional[StrictInt] = None,
|
|
12598
|
+
_request_timeout: Union[
|
|
12599
|
+
None,
|
|
12600
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
12601
|
+
Tuple[
|
|
12602
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
12603
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
12604
|
+
]
|
|
12605
|
+
] = None,
|
|
12606
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
12607
|
+
_content_type: Optional[StrictStr] = None,
|
|
12608
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
12609
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
12610
|
+
) -> GetDeploymentUsageResponse:
|
|
12611
|
+
"""Get Usage
|
|
12612
|
+
|
|
12613
|
+
|
|
12614
|
+
:param deployment_id: (required)
|
|
12615
|
+
:type deployment_id: int
|
|
12616
|
+
:param metric: (required)
|
|
12617
|
+
:type metric: Metric
|
|
12618
|
+
:param start_time_in_seconds: (required)
|
|
12619
|
+
:type start_time_in_seconds: int
|
|
12620
|
+
:param end_time_in_seconds: (required)
|
|
12621
|
+
:type end_time_in_seconds: int
|
|
12622
|
+
:param step:
|
|
12623
|
+
:type step: int
|
|
12624
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
12625
|
+
number provided, it will be total request
|
|
12626
|
+
timeout. It can also be a pair (tuple) of
|
|
12627
|
+
(connection, read) timeouts.
|
|
12628
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
12629
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
12630
|
+
request; this effectively ignores the
|
|
12631
|
+
authentication in the spec for a single request.
|
|
12632
|
+
:type _request_auth: dict, optional
|
|
12633
|
+
:param _content_type: force content-type for the request.
|
|
12634
|
+
:type _content_type: str, Optional
|
|
12635
|
+
:param _headers: set to override the headers for a single
|
|
12636
|
+
request; this effectively ignores the headers
|
|
12637
|
+
in the spec for a single request.
|
|
12638
|
+
:type _headers: dict, optional
|
|
12639
|
+
:param _host_index: set to override the host_index for a single
|
|
12640
|
+
request; this effectively ignores the host_index
|
|
12641
|
+
in the spec for a single request.
|
|
12642
|
+
:type _host_index: int, optional
|
|
12643
|
+
:return: Returns the result object.
|
|
12644
|
+
""" # noqa: E501
|
|
12645
|
+
|
|
12646
|
+
_param = self._get_usage_deployments_usage_deployment_id_get_serialize(
|
|
12647
|
+
deployment_id=deployment_id,
|
|
12648
|
+
metric=metric,
|
|
12649
|
+
start_time_in_seconds=start_time_in_seconds,
|
|
12650
|
+
end_time_in_seconds=end_time_in_seconds,
|
|
12651
|
+
step=step,
|
|
12652
|
+
_request_auth=_request_auth,
|
|
12653
|
+
_content_type=_content_type,
|
|
12654
|
+
_headers=_headers,
|
|
12655
|
+
_host_index=_host_index
|
|
12656
|
+
)
|
|
12657
|
+
|
|
12658
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
12659
|
+
'200': "GetDeploymentUsageResponse",
|
|
12660
|
+
'422': "HTTPValidationError",
|
|
12661
|
+
}
|
|
12662
|
+
response_data = self.api_client.call_api(
|
|
12663
|
+
*_param,
|
|
12664
|
+
_request_timeout=_request_timeout
|
|
12665
|
+
)
|
|
12666
|
+
response_data.read()
|
|
12667
|
+
return self.api_client.response_deserialize(
|
|
12668
|
+
response_data=response_data,
|
|
12669
|
+
response_types_map=_response_types_map,
|
|
12670
|
+
).data
|
|
12671
|
+
|
|
12672
|
+
|
|
12673
|
+
@validate_call
|
|
12674
|
+
def get_usage_deployments_usage_deployment_id_get_with_http_info(
|
|
12675
|
+
self,
|
|
12676
|
+
deployment_id: StrictInt,
|
|
12677
|
+
metric: Metric,
|
|
12678
|
+
start_time_in_seconds: StrictInt,
|
|
12679
|
+
end_time_in_seconds: StrictInt,
|
|
12680
|
+
step: Optional[StrictInt] = None,
|
|
12681
|
+
_request_timeout: Union[
|
|
12682
|
+
None,
|
|
12683
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
12684
|
+
Tuple[
|
|
12685
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
12686
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
12687
|
+
]
|
|
12688
|
+
] = None,
|
|
12689
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
12690
|
+
_content_type: Optional[StrictStr] = None,
|
|
12691
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
12692
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
12693
|
+
) -> ApiResponse[GetDeploymentUsageResponse]:
|
|
12694
|
+
"""Get Usage
|
|
12695
|
+
|
|
12696
|
+
|
|
12697
|
+
:param deployment_id: (required)
|
|
12698
|
+
:type deployment_id: int
|
|
12699
|
+
:param metric: (required)
|
|
12700
|
+
:type metric: Metric
|
|
12701
|
+
:param start_time_in_seconds: (required)
|
|
12702
|
+
:type start_time_in_seconds: int
|
|
12703
|
+
:param end_time_in_seconds: (required)
|
|
12704
|
+
:type end_time_in_seconds: int
|
|
12705
|
+
:param step:
|
|
12706
|
+
:type step: int
|
|
12707
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
12708
|
+
number provided, it will be total request
|
|
12709
|
+
timeout. It can also be a pair (tuple) of
|
|
12710
|
+
(connection, read) timeouts.
|
|
12711
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
12712
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
12713
|
+
request; this effectively ignores the
|
|
12714
|
+
authentication in the spec for a single request.
|
|
12715
|
+
:type _request_auth: dict, optional
|
|
12716
|
+
:param _content_type: force content-type for the request.
|
|
12717
|
+
:type _content_type: str, Optional
|
|
12718
|
+
:param _headers: set to override the headers for a single
|
|
12719
|
+
request; this effectively ignores the headers
|
|
12720
|
+
in the spec for a single request.
|
|
12721
|
+
:type _headers: dict, optional
|
|
12722
|
+
:param _host_index: set to override the host_index for a single
|
|
12723
|
+
request; this effectively ignores the host_index
|
|
12724
|
+
in the spec for a single request.
|
|
12725
|
+
:type _host_index: int, optional
|
|
12726
|
+
:return: Returns the result object.
|
|
12727
|
+
""" # noqa: E501
|
|
12728
|
+
|
|
12729
|
+
_param = self._get_usage_deployments_usage_deployment_id_get_serialize(
|
|
12730
|
+
deployment_id=deployment_id,
|
|
12731
|
+
metric=metric,
|
|
12732
|
+
start_time_in_seconds=start_time_in_seconds,
|
|
12733
|
+
end_time_in_seconds=end_time_in_seconds,
|
|
12734
|
+
step=step,
|
|
12735
|
+
_request_auth=_request_auth,
|
|
12736
|
+
_content_type=_content_type,
|
|
12737
|
+
_headers=_headers,
|
|
12738
|
+
_host_index=_host_index
|
|
12739
|
+
)
|
|
12740
|
+
|
|
12741
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
12742
|
+
'200': "GetDeploymentUsageResponse",
|
|
12743
|
+
'422': "HTTPValidationError",
|
|
12744
|
+
}
|
|
12745
|
+
response_data = self.api_client.call_api(
|
|
12746
|
+
*_param,
|
|
12747
|
+
_request_timeout=_request_timeout
|
|
12748
|
+
)
|
|
12749
|
+
response_data.read()
|
|
12750
|
+
return self.api_client.response_deserialize(
|
|
12751
|
+
response_data=response_data,
|
|
12752
|
+
response_types_map=_response_types_map,
|
|
12753
|
+
)
|
|
12754
|
+
|
|
12755
|
+
|
|
12756
|
+
@validate_call
|
|
12757
|
+
def get_usage_deployments_usage_deployment_id_get_without_preload_content(
|
|
12758
|
+
self,
|
|
12759
|
+
deployment_id: StrictInt,
|
|
12760
|
+
metric: Metric,
|
|
12761
|
+
start_time_in_seconds: StrictInt,
|
|
12762
|
+
end_time_in_seconds: StrictInt,
|
|
12763
|
+
step: Optional[StrictInt] = None,
|
|
12764
|
+
_request_timeout: Union[
|
|
12765
|
+
None,
|
|
12766
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
12767
|
+
Tuple[
|
|
12768
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
12769
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
12770
|
+
]
|
|
12771
|
+
] = None,
|
|
12772
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
12773
|
+
_content_type: Optional[StrictStr] = None,
|
|
12774
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
12775
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
12776
|
+
) -> RESTResponseType:
|
|
12777
|
+
"""Get Usage
|
|
12778
|
+
|
|
12779
|
+
|
|
12780
|
+
:param deployment_id: (required)
|
|
12781
|
+
:type deployment_id: int
|
|
12782
|
+
:param metric: (required)
|
|
12783
|
+
:type metric: Metric
|
|
12784
|
+
:param start_time_in_seconds: (required)
|
|
12785
|
+
:type start_time_in_seconds: int
|
|
12786
|
+
:param end_time_in_seconds: (required)
|
|
12787
|
+
:type end_time_in_seconds: int
|
|
12788
|
+
:param step:
|
|
12789
|
+
:type step: int
|
|
12790
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
12791
|
+
number provided, it will be total request
|
|
12792
|
+
timeout. It can also be a pair (tuple) of
|
|
12793
|
+
(connection, read) timeouts.
|
|
12794
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
12795
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
12796
|
+
request; this effectively ignores the
|
|
12797
|
+
authentication in the spec for a single request.
|
|
12798
|
+
:type _request_auth: dict, optional
|
|
12799
|
+
:param _content_type: force content-type for the request.
|
|
12800
|
+
:type _content_type: str, Optional
|
|
12801
|
+
:param _headers: set to override the headers for a single
|
|
12802
|
+
request; this effectively ignores the headers
|
|
12803
|
+
in the spec for a single request.
|
|
12804
|
+
:type _headers: dict, optional
|
|
12805
|
+
:param _host_index: set to override the host_index for a single
|
|
12806
|
+
request; this effectively ignores the host_index
|
|
12807
|
+
in the spec for a single request.
|
|
12808
|
+
:type _host_index: int, optional
|
|
12809
|
+
:return: Returns the result object.
|
|
12810
|
+
""" # noqa: E501
|
|
12811
|
+
|
|
12812
|
+
_param = self._get_usage_deployments_usage_deployment_id_get_serialize(
|
|
12813
|
+
deployment_id=deployment_id,
|
|
12814
|
+
metric=metric,
|
|
12815
|
+
start_time_in_seconds=start_time_in_seconds,
|
|
12816
|
+
end_time_in_seconds=end_time_in_seconds,
|
|
12817
|
+
step=step,
|
|
12818
|
+
_request_auth=_request_auth,
|
|
12819
|
+
_content_type=_content_type,
|
|
12820
|
+
_headers=_headers,
|
|
12821
|
+
_host_index=_host_index
|
|
12822
|
+
)
|
|
12823
|
+
|
|
12824
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
12825
|
+
'200': "GetDeploymentUsageResponse",
|
|
12826
|
+
'422': "HTTPValidationError",
|
|
12827
|
+
}
|
|
12828
|
+
response_data = self.api_client.call_api(
|
|
12829
|
+
*_param,
|
|
12830
|
+
_request_timeout=_request_timeout
|
|
12831
|
+
)
|
|
12832
|
+
return response_data.response
|
|
12833
|
+
|
|
12834
|
+
|
|
12835
|
+
def _get_usage_deployments_usage_deployment_id_get_serialize(
|
|
12836
|
+
self,
|
|
12837
|
+
deployment_id,
|
|
12838
|
+
metric,
|
|
12839
|
+
start_time_in_seconds,
|
|
12840
|
+
end_time_in_seconds,
|
|
12841
|
+
step,
|
|
12842
|
+
_request_auth,
|
|
12843
|
+
_content_type,
|
|
12844
|
+
_headers,
|
|
12845
|
+
_host_index,
|
|
12846
|
+
) -> RequestSerialized:
|
|
12847
|
+
|
|
12848
|
+
_host = None
|
|
12849
|
+
|
|
12850
|
+
_collection_formats: Dict[str, str] = {
|
|
12851
|
+
}
|
|
12852
|
+
|
|
12853
|
+
_path_params: Dict[str, str] = {}
|
|
12854
|
+
_query_params: List[Tuple[str, str]] = []
|
|
12855
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
12856
|
+
_form_params: List[Tuple[str, str]] = []
|
|
12857
|
+
_files: Dict[
|
|
12858
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
12859
|
+
] = {}
|
|
12860
|
+
_body_params: Optional[bytes] = None
|
|
12861
|
+
|
|
12862
|
+
# process the path parameters
|
|
12863
|
+
if deployment_id is not None:
|
|
12864
|
+
_path_params['deployment_id'] = deployment_id
|
|
12865
|
+
# process the query parameters
|
|
12866
|
+
if metric is not None:
|
|
12867
|
+
|
|
12868
|
+
_query_params.append(('metric', metric.value))
|
|
12869
|
+
|
|
12870
|
+
if start_time_in_seconds is not None:
|
|
12871
|
+
|
|
12872
|
+
_query_params.append(('start_time_in_seconds', start_time_in_seconds))
|
|
12873
|
+
|
|
12874
|
+
if end_time_in_seconds is not None:
|
|
12875
|
+
|
|
12876
|
+
_query_params.append(('end_time_in_seconds', end_time_in_seconds))
|
|
12877
|
+
|
|
12878
|
+
if step is not None:
|
|
12879
|
+
|
|
12880
|
+
_query_params.append(('step', step))
|
|
12881
|
+
|
|
12882
|
+
# process the header parameters
|
|
12883
|
+
# process the form parameters
|
|
12884
|
+
# process the body parameter
|
|
12885
|
+
|
|
12886
|
+
|
|
12887
|
+
# set the HTTP header `Accept`
|
|
12888
|
+
if 'Accept' not in _header_params:
|
|
12889
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
12890
|
+
[
|
|
12891
|
+
'application/json'
|
|
12892
|
+
]
|
|
12893
|
+
)
|
|
12894
|
+
|
|
12895
|
+
|
|
12896
|
+
# authentication setting
|
|
12897
|
+
_auth_settings: List[str] = [
|
|
12898
|
+
'HTTPBearer'
|
|
12899
|
+
]
|
|
12900
|
+
|
|
12901
|
+
return self.api_client.param_serialize(
|
|
12902
|
+
method='GET',
|
|
12903
|
+
resource_path='/deployments/usage/{deployment_id}',
|
|
12904
|
+
path_params=_path_params,
|
|
12905
|
+
query_params=_query_params,
|
|
12906
|
+
header_params=_header_params,
|
|
12907
|
+
body=_body_params,
|
|
12908
|
+
post_params=_form_params,
|
|
12909
|
+
files=_files,
|
|
12910
|
+
auth_settings=_auth_settings,
|
|
12911
|
+
collection_formats=_collection_formats,
|
|
12912
|
+
_host=_host,
|
|
12913
|
+
_request_auth=_request_auth
|
|
12914
|
+
)
|
|
12915
|
+
|
|
12916
|
+
|
|
12917
|
+
|
|
12918
|
+
|
|
12919
|
+
@validate_call
|
|
12920
|
+
def get_user_vault_item_by_id_endpoint_user_vault_secret_id_get(
|
|
12921
|
+
self,
|
|
12922
|
+
secret_id: Annotated[int, Field(strict=True, ge=1)],
|
|
12923
|
+
_request_timeout: Union[
|
|
12924
|
+
None,
|
|
12925
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
12926
|
+
Tuple[
|
|
12927
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
12928
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
12929
|
+
]
|
|
12930
|
+
] = None,
|
|
12931
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
12932
|
+
_content_type: Optional[StrictStr] = None,
|
|
12933
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
12934
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
12935
|
+
) -> UserVaultItem:
|
|
12936
|
+
"""Get User Vault Item By Id Endpoint
|
|
12937
|
+
|
|
12938
|
+
Resolve a single secret's value. This is the only endpoint that returns a vault value, so it is the single place where read access to secret material is authorized and auditable.
|
|
12939
|
+
|
|
12940
|
+
:param secret_id: (required)
|
|
12941
|
+
:type secret_id: int
|
|
12942
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
12943
|
+
number provided, it will be total request
|
|
12944
|
+
timeout. It can also be a pair (tuple) of
|
|
12945
|
+
(connection, read) timeouts.
|
|
12946
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
12947
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
12948
|
+
request; this effectively ignores the
|
|
12949
|
+
authentication in the spec for a single request.
|
|
12950
|
+
:type _request_auth: dict, optional
|
|
12951
|
+
:param _content_type: force content-type for the request.
|
|
12952
|
+
:type _content_type: str, Optional
|
|
12953
|
+
:param _headers: set to override the headers for a single
|
|
12954
|
+
request; this effectively ignores the headers
|
|
12955
|
+
in the spec for a single request.
|
|
12956
|
+
:type _headers: dict, optional
|
|
12957
|
+
:param _host_index: set to override the host_index for a single
|
|
12958
|
+
request; this effectively ignores the host_index
|
|
12959
|
+
in the spec for a single request.
|
|
12960
|
+
:type _host_index: int, optional
|
|
12961
|
+
:return: Returns the result object.
|
|
12962
|
+
""" # noqa: E501
|
|
12963
|
+
|
|
12964
|
+
_param = self._get_user_vault_item_by_id_endpoint_user_vault_secret_id_get_serialize(
|
|
12965
|
+
secret_id=secret_id,
|
|
12966
|
+
_request_auth=_request_auth,
|
|
12967
|
+
_content_type=_content_type,
|
|
12968
|
+
_headers=_headers,
|
|
12969
|
+
_host_index=_host_index
|
|
12970
|
+
)
|
|
12971
|
+
|
|
12972
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
12973
|
+
'200': "UserVaultItem",
|
|
12974
|
+
'422': "HTTPValidationError",
|
|
12975
|
+
}
|
|
12976
|
+
response_data = self.api_client.call_api(
|
|
12977
|
+
*_param,
|
|
12978
|
+
_request_timeout=_request_timeout
|
|
12979
|
+
)
|
|
12980
|
+
response_data.read()
|
|
12981
|
+
return self.api_client.response_deserialize(
|
|
12982
|
+
response_data=response_data,
|
|
12983
|
+
response_types_map=_response_types_map,
|
|
12984
|
+
).data
|
|
12985
|
+
|
|
12986
|
+
|
|
12987
|
+
@validate_call
|
|
12988
|
+
def get_user_vault_item_by_id_endpoint_user_vault_secret_id_get_with_http_info(
|
|
12989
|
+
self,
|
|
12990
|
+
secret_id: Annotated[int, Field(strict=True, ge=1)],
|
|
12991
|
+
_request_timeout: Union[
|
|
12992
|
+
None,
|
|
12993
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
12994
|
+
Tuple[
|
|
12995
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
12996
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
12997
|
+
]
|
|
12998
|
+
] = None,
|
|
12999
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
13000
|
+
_content_type: Optional[StrictStr] = None,
|
|
13001
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
13002
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
13003
|
+
) -> ApiResponse[UserVaultItem]:
|
|
13004
|
+
"""Get User Vault Item By Id Endpoint
|
|
13005
|
+
|
|
13006
|
+
Resolve a single secret's value. This is the only endpoint that returns a vault value, so it is the single place where read access to secret material is authorized and auditable.
|
|
13007
|
+
|
|
13008
|
+
:param secret_id: (required)
|
|
13009
|
+
:type secret_id: int
|
|
13010
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
13011
|
+
number provided, it will be total request
|
|
13012
|
+
timeout. It can also be a pair (tuple) of
|
|
13013
|
+
(connection, read) timeouts.
|
|
13014
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
13015
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
13016
|
+
request; this effectively ignores the
|
|
13017
|
+
authentication in the spec for a single request.
|
|
13018
|
+
:type _request_auth: dict, optional
|
|
13019
|
+
:param _content_type: force content-type for the request.
|
|
13020
|
+
:type _content_type: str, Optional
|
|
13021
|
+
:param _headers: set to override the headers for a single
|
|
13022
|
+
request; this effectively ignores the headers
|
|
13023
|
+
in the spec for a single request.
|
|
13024
|
+
:type _headers: dict, optional
|
|
13025
|
+
:param _host_index: set to override the host_index for a single
|
|
13026
|
+
request; this effectively ignores the host_index
|
|
13027
|
+
in the spec for a single request.
|
|
13028
|
+
:type _host_index: int, optional
|
|
13029
|
+
:return: Returns the result object.
|
|
13030
|
+
""" # noqa: E501
|
|
13031
|
+
|
|
13032
|
+
_param = self._get_user_vault_item_by_id_endpoint_user_vault_secret_id_get_serialize(
|
|
13033
|
+
secret_id=secret_id,
|
|
13034
|
+
_request_auth=_request_auth,
|
|
13035
|
+
_content_type=_content_type,
|
|
13036
|
+
_headers=_headers,
|
|
13037
|
+
_host_index=_host_index
|
|
13038
|
+
)
|
|
13039
|
+
|
|
13040
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
13041
|
+
'200': "UserVaultItem",
|
|
13042
|
+
'422': "HTTPValidationError",
|
|
13043
|
+
}
|
|
13044
|
+
response_data = self.api_client.call_api(
|
|
13045
|
+
*_param,
|
|
13046
|
+
_request_timeout=_request_timeout
|
|
13047
|
+
)
|
|
13048
|
+
response_data.read()
|
|
13049
|
+
return self.api_client.response_deserialize(
|
|
13050
|
+
response_data=response_data,
|
|
13051
|
+
response_types_map=_response_types_map,
|
|
13052
|
+
)
|
|
13053
|
+
|
|
13054
|
+
|
|
13055
|
+
@validate_call
|
|
13056
|
+
def get_user_vault_item_by_id_endpoint_user_vault_secret_id_get_without_preload_content(
|
|
13057
|
+
self,
|
|
13058
|
+
secret_id: Annotated[int, Field(strict=True, ge=1)],
|
|
13059
|
+
_request_timeout: Union[
|
|
13060
|
+
None,
|
|
13061
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
13062
|
+
Tuple[
|
|
13063
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
13064
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
13065
|
+
]
|
|
13066
|
+
] = None,
|
|
13067
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
13068
|
+
_content_type: Optional[StrictStr] = None,
|
|
13069
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
13070
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
13071
|
+
) -> RESTResponseType:
|
|
13072
|
+
"""Get User Vault Item By Id Endpoint
|
|
13073
|
+
|
|
13074
|
+
Resolve a single secret's value. This is the only endpoint that returns a vault value, so it is the single place where read access to secret material is authorized and auditable.
|
|
13075
|
+
|
|
13076
|
+
:param secret_id: (required)
|
|
13077
|
+
:type secret_id: int
|
|
13078
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
13079
|
+
number provided, it will be total request
|
|
13080
|
+
timeout. It can also be a pair (tuple) of
|
|
13081
|
+
(connection, read) timeouts.
|
|
13082
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
13083
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
13084
|
+
request; this effectively ignores the
|
|
13085
|
+
authentication in the spec for a single request.
|
|
13086
|
+
:type _request_auth: dict, optional
|
|
13087
|
+
:param _content_type: force content-type for the request.
|
|
13088
|
+
:type _content_type: str, Optional
|
|
13089
|
+
:param _headers: set to override the headers for a single
|
|
13090
|
+
request; this effectively ignores the headers
|
|
13091
|
+
in the spec for a single request.
|
|
13092
|
+
:type _headers: dict, optional
|
|
13093
|
+
:param _host_index: set to override the host_index for a single
|
|
13094
|
+
request; this effectively ignores the host_index
|
|
13095
|
+
in the spec for a single request.
|
|
13096
|
+
:type _host_index: int, optional
|
|
13097
|
+
:return: Returns the result object.
|
|
13098
|
+
""" # noqa: E501
|
|
13099
|
+
|
|
13100
|
+
_param = self._get_user_vault_item_by_id_endpoint_user_vault_secret_id_get_serialize(
|
|
13101
|
+
secret_id=secret_id,
|
|
13102
|
+
_request_auth=_request_auth,
|
|
13103
|
+
_content_type=_content_type,
|
|
13104
|
+
_headers=_headers,
|
|
13105
|
+
_host_index=_host_index
|
|
13106
|
+
)
|
|
13107
|
+
|
|
13108
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
13109
|
+
'200': "UserVaultItem",
|
|
13110
|
+
'422': "HTTPValidationError",
|
|
13111
|
+
}
|
|
13112
|
+
response_data = self.api_client.call_api(
|
|
13113
|
+
*_param,
|
|
13114
|
+
_request_timeout=_request_timeout
|
|
13115
|
+
)
|
|
13116
|
+
return response_data.response
|
|
13117
|
+
|
|
13118
|
+
|
|
13119
|
+
def _get_user_vault_item_by_id_endpoint_user_vault_secret_id_get_serialize(
|
|
13120
|
+
self,
|
|
13121
|
+
secret_id,
|
|
13122
|
+
_request_auth,
|
|
13123
|
+
_content_type,
|
|
13124
|
+
_headers,
|
|
13125
|
+
_host_index,
|
|
13126
|
+
) -> RequestSerialized:
|
|
13127
|
+
|
|
13128
|
+
_host = None
|
|
13129
|
+
|
|
13130
|
+
_collection_formats: Dict[str, str] = {
|
|
13131
|
+
}
|
|
13132
|
+
|
|
13133
|
+
_path_params: Dict[str, str] = {}
|
|
13134
|
+
_query_params: List[Tuple[str, str]] = []
|
|
13135
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
13136
|
+
_form_params: List[Tuple[str, str]] = []
|
|
13137
|
+
_files: Dict[
|
|
13138
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
13139
|
+
] = {}
|
|
13140
|
+
_body_params: Optional[bytes] = None
|
|
13141
|
+
|
|
13142
|
+
# process the path parameters
|
|
13143
|
+
if secret_id is not None:
|
|
13144
|
+
_path_params['secret_id'] = secret_id
|
|
13145
|
+
# process the query parameters
|
|
13146
|
+
# process the header parameters
|
|
13147
|
+
# process the form parameters
|
|
13148
|
+
# process the body parameter
|
|
13149
|
+
|
|
13150
|
+
|
|
13151
|
+
# set the HTTP header `Accept`
|
|
13152
|
+
if 'Accept' not in _header_params:
|
|
13153
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
13154
|
+
[
|
|
13155
|
+
'application/json'
|
|
13156
|
+
]
|
|
13157
|
+
)
|
|
13158
|
+
|
|
13159
|
+
|
|
13160
|
+
# authentication setting
|
|
13161
|
+
_auth_settings: List[str] = [
|
|
13162
|
+
'HTTPBearer'
|
|
13163
|
+
]
|
|
13164
|
+
|
|
13165
|
+
return self.api_client.param_serialize(
|
|
13166
|
+
method='GET',
|
|
13167
|
+
resource_path='/user_vault/{secret_id}',
|
|
13168
|
+
path_params=_path_params,
|
|
13169
|
+
query_params=_query_params,
|
|
13170
|
+
header_params=_header_params,
|
|
13171
|
+
body=_body_params,
|
|
13172
|
+
post_params=_form_params,
|
|
13173
|
+
files=_files,
|
|
13174
|
+
auth_settings=_auth_settings,
|
|
13175
|
+
collection_formats=_collection_formats,
|
|
13176
|
+
_host=_host,
|
|
13177
|
+
_request_auth=_request_auth
|
|
13178
|
+
)
|
|
13179
|
+
|
|
13180
|
+
|
|
13181
|
+
|
|
13182
|
+
|
|
13183
|
+
@validate_call
|
|
13184
|
+
def get_volume_endpoint_volumes_volume_id_get(
|
|
13185
|
+
self,
|
|
13186
|
+
volume_id: StrictInt,
|
|
13187
|
+
_request_timeout: Union[
|
|
13188
|
+
None,
|
|
13189
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
13190
|
+
Tuple[
|
|
13191
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
13192
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
13193
|
+
]
|
|
13194
|
+
] = None,
|
|
13195
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
13196
|
+
_content_type: Optional[StrictStr] = None,
|
|
13197
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
13198
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
13199
|
+
) -> GetVolumeResponse:
|
|
13200
|
+
"""Get Volume Endpoint
|
|
13201
|
+
|
|
13202
|
+
Retrieve a single volume by id.
|
|
13203
|
+
|
|
13204
|
+
:param volume_id: (required)
|
|
13205
|
+
:type volume_id: int
|
|
13206
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
13207
|
+
number provided, it will be total request
|
|
13208
|
+
timeout. It can also be a pair (tuple) of
|
|
13209
|
+
(connection, read) timeouts.
|
|
13210
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
13211
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
13212
|
+
request; this effectively ignores the
|
|
13213
|
+
authentication in the spec for a single request.
|
|
13214
|
+
:type _request_auth: dict, optional
|
|
13215
|
+
:param _content_type: force content-type for the request.
|
|
13216
|
+
:type _content_type: str, Optional
|
|
13217
|
+
:param _headers: set to override the headers for a single
|
|
13218
|
+
request; this effectively ignores the headers
|
|
13219
|
+
in the spec for a single request.
|
|
13220
|
+
:type _headers: dict, optional
|
|
13221
|
+
:param _host_index: set to override the host_index for a single
|
|
13222
|
+
request; this effectively ignores the host_index
|
|
13223
|
+
in the spec for a single request.
|
|
13224
|
+
:type _host_index: int, optional
|
|
13225
|
+
:return: Returns the result object.
|
|
13226
|
+
""" # noqa: E501
|
|
13227
|
+
|
|
13228
|
+
_param = self._get_volume_endpoint_volumes_volume_id_get_serialize(
|
|
13229
|
+
volume_id=volume_id,
|
|
13230
|
+
_request_auth=_request_auth,
|
|
13231
|
+
_content_type=_content_type,
|
|
13232
|
+
_headers=_headers,
|
|
13233
|
+
_host_index=_host_index
|
|
13234
|
+
)
|
|
13235
|
+
|
|
13236
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
13237
|
+
'200': "GetVolumeResponse",
|
|
13238
|
+
'422': "HTTPValidationError",
|
|
13239
|
+
}
|
|
13240
|
+
response_data = self.api_client.call_api(
|
|
13241
|
+
*_param,
|
|
13242
|
+
_request_timeout=_request_timeout
|
|
13243
|
+
)
|
|
13244
|
+
response_data.read()
|
|
13245
|
+
return self.api_client.response_deserialize(
|
|
13246
|
+
response_data=response_data,
|
|
13247
|
+
response_types_map=_response_types_map,
|
|
13248
|
+
).data
|
|
13249
|
+
|
|
13250
|
+
|
|
13251
|
+
@validate_call
|
|
13252
|
+
def get_volume_endpoint_volumes_volume_id_get_with_http_info(
|
|
13253
|
+
self,
|
|
13254
|
+
volume_id: StrictInt,
|
|
13255
|
+
_request_timeout: Union[
|
|
13256
|
+
None,
|
|
13257
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
13258
|
+
Tuple[
|
|
13259
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
13260
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
13261
|
+
]
|
|
13262
|
+
] = None,
|
|
13263
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
13264
|
+
_content_type: Optional[StrictStr] = None,
|
|
13265
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
13266
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
13267
|
+
) -> ApiResponse[GetVolumeResponse]:
|
|
13268
|
+
"""Get Volume Endpoint
|
|
13269
|
+
|
|
13270
|
+
Retrieve a single volume by id.
|
|
13271
|
+
|
|
13272
|
+
:param volume_id: (required)
|
|
13273
|
+
:type volume_id: int
|
|
13274
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
13275
|
+
number provided, it will be total request
|
|
13276
|
+
timeout. It can also be a pair (tuple) of
|
|
13277
|
+
(connection, read) timeouts.
|
|
13278
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
13279
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
13280
|
+
request; this effectively ignores the
|
|
13281
|
+
authentication in the spec for a single request.
|
|
13282
|
+
:type _request_auth: dict, optional
|
|
13283
|
+
:param _content_type: force content-type for the request.
|
|
13284
|
+
:type _content_type: str, Optional
|
|
13285
|
+
:param _headers: set to override the headers for a single
|
|
13286
|
+
request; this effectively ignores the headers
|
|
13287
|
+
in the spec for a single request.
|
|
13288
|
+
:type _headers: dict, optional
|
|
13289
|
+
:param _host_index: set to override the host_index for a single
|
|
13290
|
+
request; this effectively ignores the host_index
|
|
13291
|
+
in the spec for a single request.
|
|
13292
|
+
:type _host_index: int, optional
|
|
13293
|
+
:return: Returns the result object.
|
|
13294
|
+
""" # noqa: E501
|
|
13295
|
+
|
|
13296
|
+
_param = self._get_volume_endpoint_volumes_volume_id_get_serialize(
|
|
13297
|
+
volume_id=volume_id,
|
|
12001
13298
|
_request_auth=_request_auth,
|
|
12002
13299
|
_content_type=_content_type,
|
|
12003
13300
|
_headers=_headers,
|
|
@@ -12005,7 +13302,7 @@ class EXTERNALApi:
|
|
|
12005
13302
|
)
|
|
12006
13303
|
|
|
12007
13304
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
12008
|
-
'200': "
|
|
13305
|
+
'200': "GetVolumeResponse",
|
|
12009
13306
|
'422': "HTTPValidationError",
|
|
12010
13307
|
}
|
|
12011
13308
|
response_data = self.api_client.call_api(
|
|
@@ -12020,13 +13317,9 @@ class EXTERNALApi:
|
|
|
12020
13317
|
|
|
12021
13318
|
|
|
12022
13319
|
@validate_call
|
|
12023
|
-
def
|
|
13320
|
+
def get_volume_endpoint_volumes_volume_id_get_without_preload_content(
|
|
12024
13321
|
self,
|
|
12025
|
-
|
|
12026
|
-
metric: Metric,
|
|
12027
|
-
start_time_in_seconds: StrictInt,
|
|
12028
|
-
end_time_in_seconds: StrictInt,
|
|
12029
|
-
step: Optional[StrictInt] = None,
|
|
13322
|
+
volume_id: StrictInt,
|
|
12030
13323
|
_request_timeout: Union[
|
|
12031
13324
|
None,
|
|
12032
13325
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -12040,19 +13333,12 @@ class EXTERNALApi:
|
|
|
12040
13333
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
12041
13334
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
12042
13335
|
) -> RESTResponseType:
|
|
12043
|
-
"""Get
|
|
13336
|
+
"""Get Volume Endpoint
|
|
12044
13337
|
|
|
13338
|
+
Retrieve a single volume by id.
|
|
12045
13339
|
|
|
12046
|
-
:param
|
|
12047
|
-
:type
|
|
12048
|
-
:param metric: (required)
|
|
12049
|
-
:type metric: Metric
|
|
12050
|
-
:param start_time_in_seconds: (required)
|
|
12051
|
-
:type start_time_in_seconds: int
|
|
12052
|
-
:param end_time_in_seconds: (required)
|
|
12053
|
-
:type end_time_in_seconds: int
|
|
12054
|
-
:param step:
|
|
12055
|
-
:type step: int
|
|
13340
|
+
:param volume_id: (required)
|
|
13341
|
+
:type volume_id: int
|
|
12056
13342
|
:param _request_timeout: timeout setting for this request. If one
|
|
12057
13343
|
number provided, it will be total request
|
|
12058
13344
|
timeout. It can also be a pair (tuple) of
|
|
@@ -12075,12 +13361,8 @@ class EXTERNALApi:
|
|
|
12075
13361
|
:return: Returns the result object.
|
|
12076
13362
|
""" # noqa: E501
|
|
12077
13363
|
|
|
12078
|
-
_param = self.
|
|
12079
|
-
|
|
12080
|
-
metric=metric,
|
|
12081
|
-
start_time_in_seconds=start_time_in_seconds,
|
|
12082
|
-
end_time_in_seconds=end_time_in_seconds,
|
|
12083
|
-
step=step,
|
|
13364
|
+
_param = self._get_volume_endpoint_volumes_volume_id_get_serialize(
|
|
13365
|
+
volume_id=volume_id,
|
|
12084
13366
|
_request_auth=_request_auth,
|
|
12085
13367
|
_content_type=_content_type,
|
|
12086
13368
|
_headers=_headers,
|
|
@@ -12088,7 +13370,7 @@ class EXTERNALApi:
|
|
|
12088
13370
|
)
|
|
12089
13371
|
|
|
12090
13372
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
12091
|
-
'200': "
|
|
13373
|
+
'200': "GetVolumeResponse",
|
|
12092
13374
|
'422': "HTTPValidationError",
|
|
12093
13375
|
}
|
|
12094
13376
|
response_data = self.api_client.call_api(
|
|
@@ -12098,13 +13380,9 @@ class EXTERNALApi:
|
|
|
12098
13380
|
return response_data.response
|
|
12099
13381
|
|
|
12100
13382
|
|
|
12101
|
-
def
|
|
13383
|
+
def _get_volume_endpoint_volumes_volume_id_get_serialize(
|
|
12102
13384
|
self,
|
|
12103
|
-
|
|
12104
|
-
metric,
|
|
12105
|
-
start_time_in_seconds,
|
|
12106
|
-
end_time_in_seconds,
|
|
12107
|
-
step,
|
|
13385
|
+
volume_id,
|
|
12108
13386
|
_request_auth,
|
|
12109
13387
|
_content_type,
|
|
12110
13388
|
_headers,
|
|
@@ -12126,25 +13404,9 @@ class EXTERNALApi:
|
|
|
12126
13404
|
_body_params: Optional[bytes] = None
|
|
12127
13405
|
|
|
12128
13406
|
# process the path parameters
|
|
12129
|
-
if
|
|
12130
|
-
_path_params['
|
|
13407
|
+
if volume_id is not None:
|
|
13408
|
+
_path_params['volume_id'] = volume_id
|
|
12131
13409
|
# process the query parameters
|
|
12132
|
-
if metric is not None:
|
|
12133
|
-
|
|
12134
|
-
_query_params.append(('metric', metric.value))
|
|
12135
|
-
|
|
12136
|
-
if start_time_in_seconds is not None:
|
|
12137
|
-
|
|
12138
|
-
_query_params.append(('start_time_in_seconds', start_time_in_seconds))
|
|
12139
|
-
|
|
12140
|
-
if end_time_in_seconds is not None:
|
|
12141
|
-
|
|
12142
|
-
_query_params.append(('end_time_in_seconds', end_time_in_seconds))
|
|
12143
|
-
|
|
12144
|
-
if step is not None:
|
|
12145
|
-
|
|
12146
|
-
_query_params.append(('step', step))
|
|
12147
|
-
|
|
12148
13410
|
# process the header parameters
|
|
12149
13411
|
# process the form parameters
|
|
12150
13412
|
# process the body parameter
|
|
@@ -12166,7 +13428,7 @@ class EXTERNALApi:
|
|
|
12166
13428
|
|
|
12167
13429
|
return self.api_client.param_serialize(
|
|
12168
13430
|
method='GET',
|
|
12169
|
-
resource_path='/
|
|
13431
|
+
resource_path='/volumes/{volume_id}',
|
|
12170
13432
|
path_params=_path_params,
|
|
12171
13433
|
query_params=_query_params,
|
|
12172
13434
|
header_params=_header_params,
|
|
@@ -12183,9 +13445,9 @@ class EXTERNALApi:
|
|
|
12183
13445
|
|
|
12184
13446
|
|
|
12185
13447
|
@validate_call
|
|
12186
|
-
def
|
|
13448
|
+
def get_volume_status_endpoint_volumes_status_volume_id_get(
|
|
12187
13449
|
self,
|
|
12188
|
-
|
|
13450
|
+
volume_id: StrictInt,
|
|
12189
13451
|
_request_timeout: Union[
|
|
12190
13452
|
None,
|
|
12191
13453
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -12198,13 +13460,13 @@ class EXTERNALApi:
|
|
|
12198
13460
|
_content_type: Optional[StrictStr] = None,
|
|
12199
13461
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
12200
13462
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
12201
|
-
) ->
|
|
12202
|
-
"""Get
|
|
13463
|
+
) -> VolumeStatusResponse:
|
|
13464
|
+
"""Get Volume Status Endpoint
|
|
12203
13465
|
|
|
12204
|
-
|
|
13466
|
+
Live volume status: status is the stored intent, service_status is computed from the volume app's health and PVC phase.
|
|
12205
13467
|
|
|
12206
|
-
:param
|
|
12207
|
-
:type
|
|
13468
|
+
:param volume_id: (required)
|
|
13469
|
+
:type volume_id: int
|
|
12208
13470
|
:param _request_timeout: timeout setting for this request. If one
|
|
12209
13471
|
number provided, it will be total request
|
|
12210
13472
|
timeout. It can also be a pair (tuple) of
|
|
@@ -12227,8 +13489,8 @@ class EXTERNALApi:
|
|
|
12227
13489
|
:return: Returns the result object.
|
|
12228
13490
|
""" # noqa: E501
|
|
12229
13491
|
|
|
12230
|
-
_param = self.
|
|
12231
|
-
|
|
13492
|
+
_param = self._get_volume_status_endpoint_volumes_status_volume_id_get_serialize(
|
|
13493
|
+
volume_id=volume_id,
|
|
12232
13494
|
_request_auth=_request_auth,
|
|
12233
13495
|
_content_type=_content_type,
|
|
12234
13496
|
_headers=_headers,
|
|
@@ -12236,7 +13498,7 @@ class EXTERNALApi:
|
|
|
12236
13498
|
)
|
|
12237
13499
|
|
|
12238
13500
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
12239
|
-
'200': "
|
|
13501
|
+
'200': "VolumeStatusResponse",
|
|
12240
13502
|
'422': "HTTPValidationError",
|
|
12241
13503
|
}
|
|
12242
13504
|
response_data = self.api_client.call_api(
|
|
@@ -12251,9 +13513,9 @@ class EXTERNALApi:
|
|
|
12251
13513
|
|
|
12252
13514
|
|
|
12253
13515
|
@validate_call
|
|
12254
|
-
def
|
|
13516
|
+
def get_volume_status_endpoint_volumes_status_volume_id_get_with_http_info(
|
|
12255
13517
|
self,
|
|
12256
|
-
|
|
13518
|
+
volume_id: StrictInt,
|
|
12257
13519
|
_request_timeout: Union[
|
|
12258
13520
|
None,
|
|
12259
13521
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -12266,13 +13528,13 @@ class EXTERNALApi:
|
|
|
12266
13528
|
_content_type: Optional[StrictStr] = None,
|
|
12267
13529
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
12268
13530
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
12269
|
-
) -> ApiResponse[
|
|
12270
|
-
"""Get
|
|
13531
|
+
) -> ApiResponse[VolumeStatusResponse]:
|
|
13532
|
+
"""Get Volume Status Endpoint
|
|
12271
13533
|
|
|
12272
|
-
|
|
13534
|
+
Live volume status: status is the stored intent, service_status is computed from the volume app's health and PVC phase.
|
|
12273
13535
|
|
|
12274
|
-
:param
|
|
12275
|
-
:type
|
|
13536
|
+
:param volume_id: (required)
|
|
13537
|
+
:type volume_id: int
|
|
12276
13538
|
:param _request_timeout: timeout setting for this request. If one
|
|
12277
13539
|
number provided, it will be total request
|
|
12278
13540
|
timeout. It can also be a pair (tuple) of
|
|
@@ -12295,8 +13557,8 @@ class EXTERNALApi:
|
|
|
12295
13557
|
:return: Returns the result object.
|
|
12296
13558
|
""" # noqa: E501
|
|
12297
13559
|
|
|
12298
|
-
_param = self.
|
|
12299
|
-
|
|
13560
|
+
_param = self._get_volume_status_endpoint_volumes_status_volume_id_get_serialize(
|
|
13561
|
+
volume_id=volume_id,
|
|
12300
13562
|
_request_auth=_request_auth,
|
|
12301
13563
|
_content_type=_content_type,
|
|
12302
13564
|
_headers=_headers,
|
|
@@ -12304,7 +13566,7 @@ class EXTERNALApi:
|
|
|
12304
13566
|
)
|
|
12305
13567
|
|
|
12306
13568
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
12307
|
-
'200': "
|
|
13569
|
+
'200': "VolumeStatusResponse",
|
|
12308
13570
|
'422': "HTTPValidationError",
|
|
12309
13571
|
}
|
|
12310
13572
|
response_data = self.api_client.call_api(
|
|
@@ -12319,9 +13581,9 @@ class EXTERNALApi:
|
|
|
12319
13581
|
|
|
12320
13582
|
|
|
12321
13583
|
@validate_call
|
|
12322
|
-
def
|
|
13584
|
+
def get_volume_status_endpoint_volumes_status_volume_id_get_without_preload_content(
|
|
12323
13585
|
self,
|
|
12324
|
-
|
|
13586
|
+
volume_id: StrictInt,
|
|
12325
13587
|
_request_timeout: Union[
|
|
12326
13588
|
None,
|
|
12327
13589
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -12335,12 +13597,12 @@ class EXTERNALApi:
|
|
|
12335
13597
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
12336
13598
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
12337
13599
|
) -> RESTResponseType:
|
|
12338
|
-
"""Get
|
|
13600
|
+
"""Get Volume Status Endpoint
|
|
12339
13601
|
|
|
12340
|
-
|
|
13602
|
+
Live volume status: status is the stored intent, service_status is computed from the volume app's health and PVC phase.
|
|
12341
13603
|
|
|
12342
|
-
:param
|
|
12343
|
-
:type
|
|
13604
|
+
:param volume_id: (required)
|
|
13605
|
+
:type volume_id: int
|
|
12344
13606
|
:param _request_timeout: timeout setting for this request. If one
|
|
12345
13607
|
number provided, it will be total request
|
|
12346
13608
|
timeout. It can also be a pair (tuple) of
|
|
@@ -12363,8 +13625,8 @@ class EXTERNALApi:
|
|
|
12363
13625
|
:return: Returns the result object.
|
|
12364
13626
|
""" # noqa: E501
|
|
12365
13627
|
|
|
12366
|
-
_param = self.
|
|
12367
|
-
|
|
13628
|
+
_param = self._get_volume_status_endpoint_volumes_status_volume_id_get_serialize(
|
|
13629
|
+
volume_id=volume_id,
|
|
12368
13630
|
_request_auth=_request_auth,
|
|
12369
13631
|
_content_type=_content_type,
|
|
12370
13632
|
_headers=_headers,
|
|
@@ -12372,7 +13634,7 @@ class EXTERNALApi:
|
|
|
12372
13634
|
)
|
|
12373
13635
|
|
|
12374
13636
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
12375
|
-
'200': "
|
|
13637
|
+
'200': "VolumeStatusResponse",
|
|
12376
13638
|
'422': "HTTPValidationError",
|
|
12377
13639
|
}
|
|
12378
13640
|
response_data = self.api_client.call_api(
|
|
@@ -12382,9 +13644,9 @@ class EXTERNALApi:
|
|
|
12382
13644
|
return response_data.response
|
|
12383
13645
|
|
|
12384
13646
|
|
|
12385
|
-
def
|
|
13647
|
+
def _get_volume_status_endpoint_volumes_status_volume_id_get_serialize(
|
|
12386
13648
|
self,
|
|
12387
|
-
|
|
13649
|
+
volume_id,
|
|
12388
13650
|
_request_auth,
|
|
12389
13651
|
_content_type,
|
|
12390
13652
|
_headers,
|
|
@@ -12406,8 +13668,8 @@ class EXTERNALApi:
|
|
|
12406
13668
|
_body_params: Optional[bytes] = None
|
|
12407
13669
|
|
|
12408
13670
|
# process the path parameters
|
|
12409
|
-
if
|
|
12410
|
-
_path_params['
|
|
13671
|
+
if volume_id is not None:
|
|
13672
|
+
_path_params['volume_id'] = volume_id
|
|
12411
13673
|
# process the query parameters
|
|
12412
13674
|
# process the header parameters
|
|
12413
13675
|
# process the form parameters
|
|
@@ -12430,7 +13692,7 @@ class EXTERNALApi:
|
|
|
12430
13692
|
|
|
12431
13693
|
return self.api_client.param_serialize(
|
|
12432
13694
|
method='GET',
|
|
12433
|
-
resource_path='/
|
|
13695
|
+
resource_path='/volumes/status/{volume_id}',
|
|
12434
13696
|
path_params=_path_params,
|
|
12435
13697
|
query_params=_query_params,
|
|
12436
13698
|
header_params=_header_params,
|
|
@@ -12447,9 +13709,9 @@ class EXTERNALApi:
|
|
|
12447
13709
|
|
|
12448
13710
|
|
|
12449
13711
|
@validate_call
|
|
12450
|
-
def
|
|
13712
|
+
def invite_user_organizations_invite_post(
|
|
12451
13713
|
self,
|
|
12452
|
-
|
|
13714
|
+
invite_user_request: InviteUserRequest,
|
|
12453
13715
|
_request_timeout: Union[
|
|
12454
13716
|
None,
|
|
12455
13717
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -12462,13 +13724,12 @@ class EXTERNALApi:
|
|
|
12462
13724
|
_content_type: Optional[StrictStr] = None,
|
|
12463
13725
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
12464
13726
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
12465
|
-
) ->
|
|
12466
|
-
"""
|
|
13727
|
+
) -> object:
|
|
13728
|
+
"""Invite User
|
|
12467
13729
|
|
|
12468
|
-
Retrieve a single volume by id.
|
|
12469
13730
|
|
|
12470
|
-
:param
|
|
12471
|
-
:type
|
|
13731
|
+
:param invite_user_request: (required)
|
|
13732
|
+
:type invite_user_request: InviteUserRequest
|
|
12472
13733
|
:param _request_timeout: timeout setting for this request. If one
|
|
12473
13734
|
number provided, it will be total request
|
|
12474
13735
|
timeout. It can also be a pair (tuple) of
|
|
@@ -12491,8 +13752,8 @@ class EXTERNALApi:
|
|
|
12491
13752
|
:return: Returns the result object.
|
|
12492
13753
|
""" # noqa: E501
|
|
12493
13754
|
|
|
12494
|
-
_param = self.
|
|
12495
|
-
|
|
13755
|
+
_param = self._invite_user_organizations_invite_post_serialize(
|
|
13756
|
+
invite_user_request=invite_user_request,
|
|
12496
13757
|
_request_auth=_request_auth,
|
|
12497
13758
|
_content_type=_content_type,
|
|
12498
13759
|
_headers=_headers,
|
|
@@ -12500,7 +13761,7 @@ class EXTERNALApi:
|
|
|
12500
13761
|
)
|
|
12501
13762
|
|
|
12502
13763
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
12503
|
-
'200': "
|
|
13764
|
+
'200': "object",
|
|
12504
13765
|
'422': "HTTPValidationError",
|
|
12505
13766
|
}
|
|
12506
13767
|
response_data = self.api_client.call_api(
|
|
@@ -12515,9 +13776,9 @@ class EXTERNALApi:
|
|
|
12515
13776
|
|
|
12516
13777
|
|
|
12517
13778
|
@validate_call
|
|
12518
|
-
def
|
|
13779
|
+
def invite_user_organizations_invite_post_with_http_info(
|
|
12519
13780
|
self,
|
|
12520
|
-
|
|
13781
|
+
invite_user_request: InviteUserRequest,
|
|
12521
13782
|
_request_timeout: Union[
|
|
12522
13783
|
None,
|
|
12523
13784
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -12530,13 +13791,12 @@ class EXTERNALApi:
|
|
|
12530
13791
|
_content_type: Optional[StrictStr] = None,
|
|
12531
13792
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
12532
13793
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
12533
|
-
) -> ApiResponse[
|
|
12534
|
-
"""
|
|
13794
|
+
) -> ApiResponse[object]:
|
|
13795
|
+
"""Invite User
|
|
12535
13796
|
|
|
12536
|
-
Retrieve a single volume by id.
|
|
12537
13797
|
|
|
12538
|
-
:param
|
|
12539
|
-
:type
|
|
13798
|
+
:param invite_user_request: (required)
|
|
13799
|
+
:type invite_user_request: InviteUserRequest
|
|
12540
13800
|
:param _request_timeout: timeout setting for this request. If one
|
|
12541
13801
|
number provided, it will be total request
|
|
12542
13802
|
timeout. It can also be a pair (tuple) of
|
|
@@ -12559,8 +13819,8 @@ class EXTERNALApi:
|
|
|
12559
13819
|
:return: Returns the result object.
|
|
12560
13820
|
""" # noqa: E501
|
|
12561
13821
|
|
|
12562
|
-
_param = self.
|
|
12563
|
-
|
|
13822
|
+
_param = self._invite_user_organizations_invite_post_serialize(
|
|
13823
|
+
invite_user_request=invite_user_request,
|
|
12564
13824
|
_request_auth=_request_auth,
|
|
12565
13825
|
_content_type=_content_type,
|
|
12566
13826
|
_headers=_headers,
|
|
@@ -12568,7 +13828,7 @@ class EXTERNALApi:
|
|
|
12568
13828
|
)
|
|
12569
13829
|
|
|
12570
13830
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
12571
|
-
'200': "
|
|
13831
|
+
'200': "object",
|
|
12572
13832
|
'422': "HTTPValidationError",
|
|
12573
13833
|
}
|
|
12574
13834
|
response_data = self.api_client.call_api(
|
|
@@ -12583,9 +13843,9 @@ class EXTERNALApi:
|
|
|
12583
13843
|
|
|
12584
13844
|
|
|
12585
13845
|
@validate_call
|
|
12586
|
-
def
|
|
13846
|
+
def invite_user_organizations_invite_post_without_preload_content(
|
|
12587
13847
|
self,
|
|
12588
|
-
|
|
13848
|
+
invite_user_request: InviteUserRequest,
|
|
12589
13849
|
_request_timeout: Union[
|
|
12590
13850
|
None,
|
|
12591
13851
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -12599,12 +13859,11 @@ class EXTERNALApi:
|
|
|
12599
13859
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
12600
13860
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
12601
13861
|
) -> RESTResponseType:
|
|
12602
|
-
"""
|
|
13862
|
+
"""Invite User
|
|
12603
13863
|
|
|
12604
|
-
Retrieve a single volume by id.
|
|
12605
13864
|
|
|
12606
|
-
:param
|
|
12607
|
-
:type
|
|
13865
|
+
:param invite_user_request: (required)
|
|
13866
|
+
:type invite_user_request: InviteUserRequest
|
|
12608
13867
|
:param _request_timeout: timeout setting for this request. If one
|
|
12609
13868
|
number provided, it will be total request
|
|
12610
13869
|
timeout. It can also be a pair (tuple) of
|
|
@@ -12627,8 +13886,8 @@ class EXTERNALApi:
|
|
|
12627
13886
|
:return: Returns the result object.
|
|
12628
13887
|
""" # noqa: E501
|
|
12629
13888
|
|
|
12630
|
-
_param = self.
|
|
12631
|
-
|
|
13889
|
+
_param = self._invite_user_organizations_invite_post_serialize(
|
|
13890
|
+
invite_user_request=invite_user_request,
|
|
12632
13891
|
_request_auth=_request_auth,
|
|
12633
13892
|
_content_type=_content_type,
|
|
12634
13893
|
_headers=_headers,
|
|
@@ -12636,7 +13895,7 @@ class EXTERNALApi:
|
|
|
12636
13895
|
)
|
|
12637
13896
|
|
|
12638
13897
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
12639
|
-
'200': "
|
|
13898
|
+
'200': "object",
|
|
12640
13899
|
'422': "HTTPValidationError",
|
|
12641
13900
|
}
|
|
12642
13901
|
response_data = self.api_client.call_api(
|
|
@@ -12646,9 +13905,9 @@ class EXTERNALApi:
|
|
|
12646
13905
|
return response_data.response
|
|
12647
13906
|
|
|
12648
13907
|
|
|
12649
|
-
def
|
|
13908
|
+
def _invite_user_organizations_invite_post_serialize(
|
|
12650
13909
|
self,
|
|
12651
|
-
|
|
13910
|
+
invite_user_request,
|
|
12652
13911
|
_request_auth,
|
|
12653
13912
|
_content_type,
|
|
12654
13913
|
_headers,
|
|
@@ -12670,12 +13929,12 @@ class EXTERNALApi:
|
|
|
12670
13929
|
_body_params: Optional[bytes] = None
|
|
12671
13930
|
|
|
12672
13931
|
# process the path parameters
|
|
12673
|
-
if volume_id is not None:
|
|
12674
|
-
_path_params['volume_id'] = volume_id
|
|
12675
13932
|
# process the query parameters
|
|
12676
13933
|
# process the header parameters
|
|
12677
13934
|
# process the form parameters
|
|
12678
13935
|
# process the body parameter
|
|
13936
|
+
if invite_user_request is not None:
|
|
13937
|
+
_body_params = invite_user_request
|
|
12679
13938
|
|
|
12680
13939
|
|
|
12681
13940
|
# set the HTTP header `Accept`
|
|
@@ -12686,6 +13945,19 @@ class EXTERNALApi:
|
|
|
12686
13945
|
]
|
|
12687
13946
|
)
|
|
12688
13947
|
|
|
13948
|
+
# set the HTTP header `Content-Type`
|
|
13949
|
+
if _content_type:
|
|
13950
|
+
_header_params['Content-Type'] = _content_type
|
|
13951
|
+
else:
|
|
13952
|
+
_default_content_type = (
|
|
13953
|
+
self.api_client.select_header_content_type(
|
|
13954
|
+
[
|
|
13955
|
+
'application/json'
|
|
13956
|
+
]
|
|
13957
|
+
)
|
|
13958
|
+
)
|
|
13959
|
+
if _default_content_type is not None:
|
|
13960
|
+
_header_params['Content-Type'] = _default_content_type
|
|
12689
13961
|
|
|
12690
13962
|
# authentication setting
|
|
12691
13963
|
_auth_settings: List[str] = [
|
|
@@ -12693,8 +13965,8 @@ class EXTERNALApi:
|
|
|
12693
13965
|
]
|
|
12694
13966
|
|
|
12695
13967
|
return self.api_client.param_serialize(
|
|
12696
|
-
method='
|
|
12697
|
-
resource_path='/
|
|
13968
|
+
method='POST',
|
|
13969
|
+
resource_path='/organizations/invite',
|
|
12698
13970
|
path_params=_path_params,
|
|
12699
13971
|
query_params=_query_params,
|
|
12700
13972
|
header_params=_header_params,
|
|
@@ -12711,9 +13983,9 @@ class EXTERNALApi:
|
|
|
12711
13983
|
|
|
12712
13984
|
|
|
12713
13985
|
@validate_call
|
|
12714
|
-
def
|
|
13986
|
+
def list_cluster_capacity_capacity_get(
|
|
12715
13987
|
self,
|
|
12716
|
-
|
|
13988
|
+
cluster_id: Optional[StrictInt] = None,
|
|
12717
13989
|
_request_timeout: Union[
|
|
12718
13990
|
None,
|
|
12719
13991
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -12726,13 +13998,13 @@ class EXTERNALApi:
|
|
|
12726
13998
|
_content_type: Optional[StrictStr] = None,
|
|
12727
13999
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
12728
14000
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
12729
|
-
) ->
|
|
12730
|
-
"""
|
|
14001
|
+
) -> ListClusterCapacityResponse:
|
|
14002
|
+
"""List Cluster Capacity
|
|
12731
14003
|
|
|
12732
|
-
|
|
14004
|
+
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.
|
|
12733
14005
|
|
|
12734
|
-
:param
|
|
12735
|
-
:type
|
|
14006
|
+
:param cluster_id:
|
|
14007
|
+
:type cluster_id: int
|
|
12736
14008
|
:param _request_timeout: timeout setting for this request. If one
|
|
12737
14009
|
number provided, it will be total request
|
|
12738
14010
|
timeout. It can also be a pair (tuple) of
|
|
@@ -12755,8 +14027,8 @@ class EXTERNALApi:
|
|
|
12755
14027
|
:return: Returns the result object.
|
|
12756
14028
|
""" # noqa: E501
|
|
12757
14029
|
|
|
12758
|
-
_param = self.
|
|
12759
|
-
|
|
14030
|
+
_param = self._list_cluster_capacity_capacity_get_serialize(
|
|
14031
|
+
cluster_id=cluster_id,
|
|
12760
14032
|
_request_auth=_request_auth,
|
|
12761
14033
|
_content_type=_content_type,
|
|
12762
14034
|
_headers=_headers,
|
|
@@ -12764,7 +14036,7 @@ class EXTERNALApi:
|
|
|
12764
14036
|
)
|
|
12765
14037
|
|
|
12766
14038
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
12767
|
-
'200': "
|
|
14039
|
+
'200': "ListClusterCapacityResponse",
|
|
12768
14040
|
'422': "HTTPValidationError",
|
|
12769
14041
|
}
|
|
12770
14042
|
response_data = self.api_client.call_api(
|
|
@@ -12779,9 +14051,9 @@ class EXTERNALApi:
|
|
|
12779
14051
|
|
|
12780
14052
|
|
|
12781
14053
|
@validate_call
|
|
12782
|
-
def
|
|
14054
|
+
def list_cluster_capacity_capacity_get_with_http_info(
|
|
12783
14055
|
self,
|
|
12784
|
-
|
|
14056
|
+
cluster_id: Optional[StrictInt] = None,
|
|
12785
14057
|
_request_timeout: Union[
|
|
12786
14058
|
None,
|
|
12787
14059
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -12794,13 +14066,13 @@ class EXTERNALApi:
|
|
|
12794
14066
|
_content_type: Optional[StrictStr] = None,
|
|
12795
14067
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
12796
14068
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
12797
|
-
) -> ApiResponse[
|
|
12798
|
-
"""
|
|
14069
|
+
) -> ApiResponse[ListClusterCapacityResponse]:
|
|
14070
|
+
"""List Cluster Capacity
|
|
12799
14071
|
|
|
12800
|
-
|
|
14072
|
+
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.
|
|
12801
14073
|
|
|
12802
|
-
:param
|
|
12803
|
-
:type
|
|
14074
|
+
:param cluster_id:
|
|
14075
|
+
:type cluster_id: int
|
|
12804
14076
|
:param _request_timeout: timeout setting for this request. If one
|
|
12805
14077
|
number provided, it will be total request
|
|
12806
14078
|
timeout. It can also be a pair (tuple) of
|
|
@@ -12823,8 +14095,8 @@ class EXTERNALApi:
|
|
|
12823
14095
|
:return: Returns the result object.
|
|
12824
14096
|
""" # noqa: E501
|
|
12825
14097
|
|
|
12826
|
-
_param = self.
|
|
12827
|
-
|
|
14098
|
+
_param = self._list_cluster_capacity_capacity_get_serialize(
|
|
14099
|
+
cluster_id=cluster_id,
|
|
12828
14100
|
_request_auth=_request_auth,
|
|
12829
14101
|
_content_type=_content_type,
|
|
12830
14102
|
_headers=_headers,
|
|
@@ -12832,7 +14104,7 @@ class EXTERNALApi:
|
|
|
12832
14104
|
)
|
|
12833
14105
|
|
|
12834
14106
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
12835
|
-
'200': "
|
|
14107
|
+
'200': "ListClusterCapacityResponse",
|
|
12836
14108
|
'422': "HTTPValidationError",
|
|
12837
14109
|
}
|
|
12838
14110
|
response_data = self.api_client.call_api(
|
|
@@ -12847,9 +14119,9 @@ class EXTERNALApi:
|
|
|
12847
14119
|
|
|
12848
14120
|
|
|
12849
14121
|
@validate_call
|
|
12850
|
-
def
|
|
14122
|
+
def list_cluster_capacity_capacity_get_without_preload_content(
|
|
12851
14123
|
self,
|
|
12852
|
-
|
|
14124
|
+
cluster_id: Optional[StrictInt] = None,
|
|
12853
14125
|
_request_timeout: Union[
|
|
12854
14126
|
None,
|
|
12855
14127
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -12863,12 +14135,12 @@ class EXTERNALApi:
|
|
|
12863
14135
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
12864
14136
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
12865
14137
|
) -> RESTResponseType:
|
|
12866
|
-
"""
|
|
14138
|
+
"""List Cluster Capacity
|
|
12867
14139
|
|
|
12868
|
-
|
|
14140
|
+
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.
|
|
12869
14141
|
|
|
12870
|
-
:param
|
|
12871
|
-
:type
|
|
14142
|
+
:param cluster_id:
|
|
14143
|
+
:type cluster_id: int
|
|
12872
14144
|
:param _request_timeout: timeout setting for this request. If one
|
|
12873
14145
|
number provided, it will be total request
|
|
12874
14146
|
timeout. It can also be a pair (tuple) of
|
|
@@ -12891,8 +14163,8 @@ class EXTERNALApi:
|
|
|
12891
14163
|
:return: Returns the result object.
|
|
12892
14164
|
""" # noqa: E501
|
|
12893
14165
|
|
|
12894
|
-
_param = self.
|
|
12895
|
-
|
|
14166
|
+
_param = self._list_cluster_capacity_capacity_get_serialize(
|
|
14167
|
+
cluster_id=cluster_id,
|
|
12896
14168
|
_request_auth=_request_auth,
|
|
12897
14169
|
_content_type=_content_type,
|
|
12898
14170
|
_headers=_headers,
|
|
@@ -12900,7 +14172,7 @@ class EXTERNALApi:
|
|
|
12900
14172
|
)
|
|
12901
14173
|
|
|
12902
14174
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
12903
|
-
'200': "
|
|
14175
|
+
'200': "ListClusterCapacityResponse",
|
|
12904
14176
|
'422': "HTTPValidationError",
|
|
12905
14177
|
}
|
|
12906
14178
|
response_data = self.api_client.call_api(
|
|
@@ -12910,9 +14182,9 @@ class EXTERNALApi:
|
|
|
12910
14182
|
return response_data.response
|
|
12911
14183
|
|
|
12912
14184
|
|
|
12913
|
-
def
|
|
14185
|
+
def _list_cluster_capacity_capacity_get_serialize(
|
|
12914
14186
|
self,
|
|
12915
|
-
|
|
14187
|
+
cluster_id,
|
|
12916
14188
|
_request_auth,
|
|
12917
14189
|
_content_type,
|
|
12918
14190
|
_headers,
|
|
@@ -12934,9 +14206,11 @@ class EXTERNALApi:
|
|
|
12934
14206
|
_body_params: Optional[bytes] = None
|
|
12935
14207
|
|
|
12936
14208
|
# process the path parameters
|
|
12937
|
-
if volume_id is not None:
|
|
12938
|
-
_path_params['volume_id'] = volume_id
|
|
12939
14209
|
# process the query parameters
|
|
14210
|
+
if cluster_id is not None:
|
|
14211
|
+
|
|
14212
|
+
_query_params.append(('cluster_id', cluster_id))
|
|
14213
|
+
|
|
12940
14214
|
# process the header parameters
|
|
12941
14215
|
# process the form parameters
|
|
12942
14216
|
# process the body parameter
|
|
@@ -12958,7 +14232,7 @@ class EXTERNALApi:
|
|
|
12958
14232
|
|
|
12959
14233
|
return self.api_client.param_serialize(
|
|
12960
14234
|
method='GET',
|
|
12961
|
-
resource_path='/
|
|
14235
|
+
resource_path='/capacity',
|
|
12962
14236
|
path_params=_path_params,
|
|
12963
14237
|
query_params=_query_params,
|
|
12964
14238
|
header_params=_header_params,
|
|
@@ -12975,9 +14249,9 @@ class EXTERNALApi:
|
|
|
12975
14249
|
|
|
12976
14250
|
|
|
12977
14251
|
@validate_call
|
|
12978
|
-
def
|
|
14252
|
+
def list_cluster_org_gpu_quotas_clusters_cluster_id_gpu_quota_organizations_get(
|
|
12979
14253
|
self,
|
|
12980
|
-
|
|
14254
|
+
cluster_id: StrictInt,
|
|
12981
14255
|
_request_timeout: Union[
|
|
12982
14256
|
None,
|
|
12983
14257
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -12990,12 +14264,12 @@ class EXTERNALApi:
|
|
|
12990
14264
|
_content_type: Optional[StrictStr] = None,
|
|
12991
14265
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
12992
14266
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
12993
|
-
) ->
|
|
12994
|
-
"""
|
|
14267
|
+
) -> ListOrganizationGpuQuotaResponse:
|
|
14268
|
+
"""List Cluster Org Gpu Quotas
|
|
12995
14269
|
|
|
12996
14270
|
|
|
12997
|
-
:param
|
|
12998
|
-
:type
|
|
14271
|
+
:param cluster_id: (required)
|
|
14272
|
+
:type cluster_id: int
|
|
12999
14273
|
:param _request_timeout: timeout setting for this request. If one
|
|
13000
14274
|
number provided, it will be total request
|
|
13001
14275
|
timeout. It can also be a pair (tuple) of
|
|
@@ -13018,8 +14292,8 @@ class EXTERNALApi:
|
|
|
13018
14292
|
:return: Returns the result object.
|
|
13019
14293
|
""" # noqa: E501
|
|
13020
14294
|
|
|
13021
|
-
_param = self.
|
|
13022
|
-
|
|
14295
|
+
_param = self._list_cluster_org_gpu_quotas_clusters_cluster_id_gpu_quota_organizations_get_serialize(
|
|
14296
|
+
cluster_id=cluster_id,
|
|
13023
14297
|
_request_auth=_request_auth,
|
|
13024
14298
|
_content_type=_content_type,
|
|
13025
14299
|
_headers=_headers,
|
|
@@ -13027,7 +14301,7 @@ class EXTERNALApi:
|
|
|
13027
14301
|
)
|
|
13028
14302
|
|
|
13029
14303
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
13030
|
-
'200': "
|
|
14304
|
+
'200': "ListOrganizationGpuQuotaResponse",
|
|
13031
14305
|
'422': "HTTPValidationError",
|
|
13032
14306
|
}
|
|
13033
14307
|
response_data = self.api_client.call_api(
|
|
@@ -13042,9 +14316,9 @@ class EXTERNALApi:
|
|
|
13042
14316
|
|
|
13043
14317
|
|
|
13044
14318
|
@validate_call
|
|
13045
|
-
def
|
|
14319
|
+
def list_cluster_org_gpu_quotas_clusters_cluster_id_gpu_quota_organizations_get_with_http_info(
|
|
13046
14320
|
self,
|
|
13047
|
-
|
|
14321
|
+
cluster_id: StrictInt,
|
|
13048
14322
|
_request_timeout: Union[
|
|
13049
14323
|
None,
|
|
13050
14324
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -13057,12 +14331,12 @@ class EXTERNALApi:
|
|
|
13057
14331
|
_content_type: Optional[StrictStr] = None,
|
|
13058
14332
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
13059
14333
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
13060
|
-
) -> ApiResponse[
|
|
13061
|
-
"""
|
|
14334
|
+
) -> ApiResponse[ListOrganizationGpuQuotaResponse]:
|
|
14335
|
+
"""List Cluster Org Gpu Quotas
|
|
13062
14336
|
|
|
13063
14337
|
|
|
13064
|
-
:param
|
|
13065
|
-
:type
|
|
14338
|
+
:param cluster_id: (required)
|
|
14339
|
+
:type cluster_id: int
|
|
13066
14340
|
:param _request_timeout: timeout setting for this request. If one
|
|
13067
14341
|
number provided, it will be total request
|
|
13068
14342
|
timeout. It can also be a pair (tuple) of
|
|
@@ -13085,8 +14359,8 @@ class EXTERNALApi:
|
|
|
13085
14359
|
:return: Returns the result object.
|
|
13086
14360
|
""" # noqa: E501
|
|
13087
14361
|
|
|
13088
|
-
_param = self.
|
|
13089
|
-
|
|
14362
|
+
_param = self._list_cluster_org_gpu_quotas_clusters_cluster_id_gpu_quota_organizations_get_serialize(
|
|
14363
|
+
cluster_id=cluster_id,
|
|
13090
14364
|
_request_auth=_request_auth,
|
|
13091
14365
|
_content_type=_content_type,
|
|
13092
14366
|
_headers=_headers,
|
|
@@ -13094,7 +14368,7 @@ class EXTERNALApi:
|
|
|
13094
14368
|
)
|
|
13095
14369
|
|
|
13096
14370
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
13097
|
-
'200': "
|
|
14371
|
+
'200': "ListOrganizationGpuQuotaResponse",
|
|
13098
14372
|
'422': "HTTPValidationError",
|
|
13099
14373
|
}
|
|
13100
14374
|
response_data = self.api_client.call_api(
|
|
@@ -13109,9 +14383,9 @@ class EXTERNALApi:
|
|
|
13109
14383
|
|
|
13110
14384
|
|
|
13111
14385
|
@validate_call
|
|
13112
|
-
def
|
|
14386
|
+
def list_cluster_org_gpu_quotas_clusters_cluster_id_gpu_quota_organizations_get_without_preload_content(
|
|
13113
14387
|
self,
|
|
13114
|
-
|
|
14388
|
+
cluster_id: StrictInt,
|
|
13115
14389
|
_request_timeout: Union[
|
|
13116
14390
|
None,
|
|
13117
14391
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -13125,11 +14399,11 @@ class EXTERNALApi:
|
|
|
13125
14399
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
13126
14400
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
13127
14401
|
) -> RESTResponseType:
|
|
13128
|
-
"""
|
|
14402
|
+
"""List Cluster Org Gpu Quotas
|
|
13129
14403
|
|
|
13130
14404
|
|
|
13131
|
-
:param
|
|
13132
|
-
:type
|
|
14405
|
+
:param cluster_id: (required)
|
|
14406
|
+
:type cluster_id: int
|
|
13133
14407
|
:param _request_timeout: timeout setting for this request. If one
|
|
13134
14408
|
number provided, it will be total request
|
|
13135
14409
|
timeout. It can also be a pair (tuple) of
|
|
@@ -13152,8 +14426,8 @@ class EXTERNALApi:
|
|
|
13152
14426
|
:return: Returns the result object.
|
|
13153
14427
|
""" # noqa: E501
|
|
13154
14428
|
|
|
13155
|
-
_param = self.
|
|
13156
|
-
|
|
14429
|
+
_param = self._list_cluster_org_gpu_quotas_clusters_cluster_id_gpu_quota_organizations_get_serialize(
|
|
14430
|
+
cluster_id=cluster_id,
|
|
13157
14431
|
_request_auth=_request_auth,
|
|
13158
14432
|
_content_type=_content_type,
|
|
13159
14433
|
_headers=_headers,
|
|
@@ -13161,7 +14435,7 @@ class EXTERNALApi:
|
|
|
13161
14435
|
)
|
|
13162
14436
|
|
|
13163
14437
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
13164
|
-
'200': "
|
|
14438
|
+
'200': "ListOrganizationGpuQuotaResponse",
|
|
13165
14439
|
'422': "HTTPValidationError",
|
|
13166
14440
|
}
|
|
13167
14441
|
response_data = self.api_client.call_api(
|
|
@@ -13171,9 +14445,9 @@ class EXTERNALApi:
|
|
|
13171
14445
|
return response_data.response
|
|
13172
14446
|
|
|
13173
14447
|
|
|
13174
|
-
def
|
|
14448
|
+
def _list_cluster_org_gpu_quotas_clusters_cluster_id_gpu_quota_organizations_get_serialize(
|
|
13175
14449
|
self,
|
|
13176
|
-
|
|
14450
|
+
cluster_id,
|
|
13177
14451
|
_request_auth,
|
|
13178
14452
|
_content_type,
|
|
13179
14453
|
_headers,
|
|
@@ -13195,12 +14469,12 @@ class EXTERNALApi:
|
|
|
13195
14469
|
_body_params: Optional[bytes] = None
|
|
13196
14470
|
|
|
13197
14471
|
# process the path parameters
|
|
14472
|
+
if cluster_id is not None:
|
|
14473
|
+
_path_params['cluster_id'] = cluster_id
|
|
13198
14474
|
# process the query parameters
|
|
13199
14475
|
# process the header parameters
|
|
13200
14476
|
# process the form parameters
|
|
13201
14477
|
# process the body parameter
|
|
13202
|
-
if invite_user_request is not None:
|
|
13203
|
-
_body_params = invite_user_request
|
|
13204
14478
|
|
|
13205
14479
|
|
|
13206
14480
|
# set the HTTP header `Accept`
|
|
@@ -13211,19 +14485,6 @@ class EXTERNALApi:
|
|
|
13211
14485
|
]
|
|
13212
14486
|
)
|
|
13213
14487
|
|
|
13214
|
-
# set the HTTP header `Content-Type`
|
|
13215
|
-
if _content_type:
|
|
13216
|
-
_header_params['Content-Type'] = _content_type
|
|
13217
|
-
else:
|
|
13218
|
-
_default_content_type = (
|
|
13219
|
-
self.api_client.select_header_content_type(
|
|
13220
|
-
[
|
|
13221
|
-
'application/json'
|
|
13222
|
-
]
|
|
13223
|
-
)
|
|
13224
|
-
)
|
|
13225
|
-
if _default_content_type is not None:
|
|
13226
|
-
_header_params['Content-Type'] = _default_content_type
|
|
13227
14488
|
|
|
13228
14489
|
# authentication setting
|
|
13229
14490
|
_auth_settings: List[str] = [
|
|
@@ -13231,8 +14492,8 @@ class EXTERNALApi:
|
|
|
13231
14492
|
]
|
|
13232
14493
|
|
|
13233
14494
|
return self.api_client.param_serialize(
|
|
13234
|
-
method='
|
|
13235
|
-
resource_path='/organizations
|
|
14495
|
+
method='GET',
|
|
14496
|
+
resource_path='/clusters/{cluster_id}/gpu-quota/organizations',
|
|
13236
14497
|
path_params=_path_params,
|
|
13237
14498
|
query_params=_query_params,
|
|
13238
14499
|
header_params=_header_params,
|
|
@@ -13249,9 +14510,8 @@ class EXTERNALApi:
|
|
|
13249
14510
|
|
|
13250
14511
|
|
|
13251
14512
|
@validate_call
|
|
13252
|
-
def
|
|
14513
|
+
def list_service_accounts_service_accounts_get(
|
|
13253
14514
|
self,
|
|
13254
|
-
cluster_id: Optional[StrictInt] = None,
|
|
13255
14515
|
_request_timeout: Union[
|
|
13256
14516
|
None,
|
|
13257
14517
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -13264,13 +14524,10 @@ class EXTERNALApi:
|
|
|
13264
14524
|
_content_type: Optional[StrictStr] = None,
|
|
13265
14525
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
13266
14526
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
13267
|
-
) ->
|
|
13268
|
-
"""List
|
|
14527
|
+
) -> ListServiceAccountsResponse:
|
|
14528
|
+
"""List Service Accounts
|
|
13269
14529
|
|
|
13270
|
-
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.
|
|
13271
14530
|
|
|
13272
|
-
:param cluster_id:
|
|
13273
|
-
:type cluster_id: int
|
|
13274
14531
|
:param _request_timeout: timeout setting for this request. If one
|
|
13275
14532
|
number provided, it will be total request
|
|
13276
14533
|
timeout. It can also be a pair (tuple) of
|
|
@@ -13293,8 +14550,7 @@ class EXTERNALApi:
|
|
|
13293
14550
|
:return: Returns the result object.
|
|
13294
14551
|
""" # noqa: E501
|
|
13295
14552
|
|
|
13296
|
-
_param = self.
|
|
13297
|
-
cluster_id=cluster_id,
|
|
14553
|
+
_param = self._list_service_accounts_service_accounts_get_serialize(
|
|
13298
14554
|
_request_auth=_request_auth,
|
|
13299
14555
|
_content_type=_content_type,
|
|
13300
14556
|
_headers=_headers,
|
|
@@ -13302,8 +14558,7 @@ class EXTERNALApi:
|
|
|
13302
14558
|
)
|
|
13303
14559
|
|
|
13304
14560
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
13305
|
-
'200': "
|
|
13306
|
-
'422': "HTTPValidationError",
|
|
14561
|
+
'200': "ListServiceAccountsResponse",
|
|
13307
14562
|
}
|
|
13308
14563
|
response_data = self.api_client.call_api(
|
|
13309
14564
|
*_param,
|
|
@@ -13317,9 +14572,8 @@ class EXTERNALApi:
|
|
|
13317
14572
|
|
|
13318
14573
|
|
|
13319
14574
|
@validate_call
|
|
13320
|
-
def
|
|
14575
|
+
def list_service_accounts_service_accounts_get_with_http_info(
|
|
13321
14576
|
self,
|
|
13322
|
-
cluster_id: Optional[StrictInt] = None,
|
|
13323
14577
|
_request_timeout: Union[
|
|
13324
14578
|
None,
|
|
13325
14579
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -13332,13 +14586,10 @@ class EXTERNALApi:
|
|
|
13332
14586
|
_content_type: Optional[StrictStr] = None,
|
|
13333
14587
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
13334
14588
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
13335
|
-
) -> ApiResponse[
|
|
13336
|
-
"""List
|
|
14589
|
+
) -> ApiResponse[ListServiceAccountsResponse]:
|
|
14590
|
+
"""List Service Accounts
|
|
13337
14591
|
|
|
13338
|
-
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.
|
|
13339
14592
|
|
|
13340
|
-
:param cluster_id:
|
|
13341
|
-
:type cluster_id: int
|
|
13342
14593
|
:param _request_timeout: timeout setting for this request. If one
|
|
13343
14594
|
number provided, it will be total request
|
|
13344
14595
|
timeout. It can also be a pair (tuple) of
|
|
@@ -13361,8 +14612,7 @@ class EXTERNALApi:
|
|
|
13361
14612
|
:return: Returns the result object.
|
|
13362
14613
|
""" # noqa: E501
|
|
13363
14614
|
|
|
13364
|
-
_param = self.
|
|
13365
|
-
cluster_id=cluster_id,
|
|
14615
|
+
_param = self._list_service_accounts_service_accounts_get_serialize(
|
|
13366
14616
|
_request_auth=_request_auth,
|
|
13367
14617
|
_content_type=_content_type,
|
|
13368
14618
|
_headers=_headers,
|
|
@@ -13370,8 +14620,7 @@ class EXTERNALApi:
|
|
|
13370
14620
|
)
|
|
13371
14621
|
|
|
13372
14622
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
13373
|
-
'200': "
|
|
13374
|
-
'422': "HTTPValidationError",
|
|
14623
|
+
'200': "ListServiceAccountsResponse",
|
|
13375
14624
|
}
|
|
13376
14625
|
response_data = self.api_client.call_api(
|
|
13377
14626
|
*_param,
|
|
@@ -13385,9 +14634,8 @@ class EXTERNALApi:
|
|
|
13385
14634
|
|
|
13386
14635
|
|
|
13387
14636
|
@validate_call
|
|
13388
|
-
def
|
|
14637
|
+
def list_service_accounts_service_accounts_get_without_preload_content(
|
|
13389
14638
|
self,
|
|
13390
|
-
cluster_id: Optional[StrictInt] = None,
|
|
13391
14639
|
_request_timeout: Union[
|
|
13392
14640
|
None,
|
|
13393
14641
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -13401,12 +14649,9 @@ class EXTERNALApi:
|
|
|
13401
14649
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
13402
14650
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
13403
14651
|
) -> RESTResponseType:
|
|
13404
|
-
"""List
|
|
14652
|
+
"""List Service Accounts
|
|
13405
14653
|
|
|
13406
|
-
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.
|
|
13407
14654
|
|
|
13408
|
-
:param cluster_id:
|
|
13409
|
-
:type cluster_id: int
|
|
13410
14655
|
:param _request_timeout: timeout setting for this request. If one
|
|
13411
14656
|
number provided, it will be total request
|
|
13412
14657
|
timeout. It can also be a pair (tuple) of
|
|
@@ -13429,8 +14674,7 @@ class EXTERNALApi:
|
|
|
13429
14674
|
:return: Returns the result object.
|
|
13430
14675
|
""" # noqa: E501
|
|
13431
14676
|
|
|
13432
|
-
_param = self.
|
|
13433
|
-
cluster_id=cluster_id,
|
|
14677
|
+
_param = self._list_service_accounts_service_accounts_get_serialize(
|
|
13434
14678
|
_request_auth=_request_auth,
|
|
13435
14679
|
_content_type=_content_type,
|
|
13436
14680
|
_headers=_headers,
|
|
@@ -13438,8 +14682,7 @@ class EXTERNALApi:
|
|
|
13438
14682
|
)
|
|
13439
14683
|
|
|
13440
14684
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
13441
|
-
'200': "
|
|
13442
|
-
'422': "HTTPValidationError",
|
|
14685
|
+
'200': "ListServiceAccountsResponse",
|
|
13443
14686
|
}
|
|
13444
14687
|
response_data = self.api_client.call_api(
|
|
13445
14688
|
*_param,
|
|
@@ -13448,9 +14691,8 @@ class EXTERNALApi:
|
|
|
13448
14691
|
return response_data.response
|
|
13449
14692
|
|
|
13450
14693
|
|
|
13451
|
-
def
|
|
14694
|
+
def _list_service_accounts_service_accounts_get_serialize(
|
|
13452
14695
|
self,
|
|
13453
|
-
cluster_id,
|
|
13454
14696
|
_request_auth,
|
|
13455
14697
|
_content_type,
|
|
13456
14698
|
_headers,
|
|
@@ -13473,10 +14715,6 @@ class EXTERNALApi:
|
|
|
13473
14715
|
|
|
13474
14716
|
# process the path parameters
|
|
13475
14717
|
# process the query parameters
|
|
13476
|
-
if cluster_id is not None:
|
|
13477
|
-
|
|
13478
|
-
_query_params.append(('cluster_id', cluster_id))
|
|
13479
|
-
|
|
13480
14718
|
# process the header parameters
|
|
13481
14719
|
# process the form parameters
|
|
13482
14720
|
# process the body parameter
|
|
@@ -13498,7 +14736,7 @@ class EXTERNALApi:
|
|
|
13498
14736
|
|
|
13499
14737
|
return self.api_client.param_serialize(
|
|
13500
14738
|
method='GET',
|
|
13501
|
-
resource_path='/
|
|
14739
|
+
resource_path='/service-accounts',
|
|
13502
14740
|
path_params=_path_params,
|
|
13503
14741
|
query_params=_query_params,
|
|
13504
14742
|
header_params=_header_params,
|
|
@@ -13515,8 +14753,11 @@ class EXTERNALApi:
|
|
|
13515
14753
|
|
|
13516
14754
|
|
|
13517
14755
|
@validate_call
|
|
13518
|
-
def
|
|
14756
|
+
def put_org_gpu_quota_on_cluster_clusters_cluster_id_organizations_organization_id_gpu_quota_put(
|
|
13519
14757
|
self,
|
|
14758
|
+
cluster_id: StrictInt,
|
|
14759
|
+
organization_id: StrictInt,
|
|
14760
|
+
organization_gpu_quota_request: OrganizationGpuQuotaRequest,
|
|
13520
14761
|
_request_timeout: Union[
|
|
13521
14762
|
None,
|
|
13522
14763
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -13529,10 +14770,17 @@ class EXTERNALApi:
|
|
|
13529
14770
|
_content_type: Optional[StrictStr] = None,
|
|
13530
14771
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
13531
14772
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
13532
|
-
) ->
|
|
13533
|
-
"""
|
|
14773
|
+
) -> OrganizationGpuQuotaResponse:
|
|
14774
|
+
"""Put Org Gpu Quota On Cluster
|
|
13534
14775
|
|
|
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.
|
|
13535
14777
|
|
|
14778
|
+
:param cluster_id: (required)
|
|
14779
|
+
:type cluster_id: int
|
|
14780
|
+
:param organization_id: (required)
|
|
14781
|
+
:type organization_id: int
|
|
14782
|
+
:param organization_gpu_quota_request: (required)
|
|
14783
|
+
:type organization_gpu_quota_request: OrganizationGpuQuotaRequest
|
|
13536
14784
|
:param _request_timeout: timeout setting for this request. If one
|
|
13537
14785
|
number provided, it will be total request
|
|
13538
14786
|
timeout. It can also be a pair (tuple) of
|
|
@@ -13555,7 +14803,10 @@ class EXTERNALApi:
|
|
|
13555
14803
|
:return: Returns the result object.
|
|
13556
14804
|
""" # noqa: E501
|
|
13557
14805
|
|
|
13558
|
-
_param = self.
|
|
14806
|
+
_param = self._put_org_gpu_quota_on_cluster_clusters_cluster_id_organizations_organization_id_gpu_quota_put_serialize(
|
|
14807
|
+
cluster_id=cluster_id,
|
|
14808
|
+
organization_id=organization_id,
|
|
14809
|
+
organization_gpu_quota_request=organization_gpu_quota_request,
|
|
13559
14810
|
_request_auth=_request_auth,
|
|
13560
14811
|
_content_type=_content_type,
|
|
13561
14812
|
_headers=_headers,
|
|
@@ -13563,7 +14814,8 @@ class EXTERNALApi:
|
|
|
13563
14814
|
)
|
|
13564
14815
|
|
|
13565
14816
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
13566
|
-
'200': "
|
|
14817
|
+
'200': "OrganizationGpuQuotaResponse",
|
|
14818
|
+
'422': "HTTPValidationError",
|
|
13567
14819
|
}
|
|
13568
14820
|
response_data = self.api_client.call_api(
|
|
13569
14821
|
*_param,
|
|
@@ -13577,8 +14829,11 @@ class EXTERNALApi:
|
|
|
13577
14829
|
|
|
13578
14830
|
|
|
13579
14831
|
@validate_call
|
|
13580
|
-
def
|
|
14832
|
+
def put_org_gpu_quota_on_cluster_clusters_cluster_id_organizations_organization_id_gpu_quota_put_with_http_info(
|
|
13581
14833
|
self,
|
|
14834
|
+
cluster_id: StrictInt,
|
|
14835
|
+
organization_id: StrictInt,
|
|
14836
|
+
organization_gpu_quota_request: OrganizationGpuQuotaRequest,
|
|
13582
14837
|
_request_timeout: Union[
|
|
13583
14838
|
None,
|
|
13584
14839
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -13591,10 +14846,17 @@ class EXTERNALApi:
|
|
|
13591
14846
|
_content_type: Optional[StrictStr] = None,
|
|
13592
14847
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
13593
14848
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
13594
|
-
) -> ApiResponse[
|
|
13595
|
-
"""
|
|
14849
|
+
) -> ApiResponse[OrganizationGpuQuotaResponse]:
|
|
14850
|
+
"""Put Org Gpu Quota On Cluster
|
|
13596
14851
|
|
|
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.
|
|
13597
14853
|
|
|
14854
|
+
:param cluster_id: (required)
|
|
14855
|
+
:type cluster_id: int
|
|
14856
|
+
:param organization_id: (required)
|
|
14857
|
+
:type organization_id: int
|
|
14858
|
+
:param organization_gpu_quota_request: (required)
|
|
14859
|
+
:type organization_gpu_quota_request: OrganizationGpuQuotaRequest
|
|
13598
14860
|
:param _request_timeout: timeout setting for this request. If one
|
|
13599
14861
|
number provided, it will be total request
|
|
13600
14862
|
timeout. It can also be a pair (tuple) of
|
|
@@ -13617,7 +14879,10 @@ class EXTERNALApi:
|
|
|
13617
14879
|
:return: Returns the result object.
|
|
13618
14880
|
""" # noqa: E501
|
|
13619
14881
|
|
|
13620
|
-
_param = self.
|
|
14882
|
+
_param = self._put_org_gpu_quota_on_cluster_clusters_cluster_id_organizations_organization_id_gpu_quota_put_serialize(
|
|
14883
|
+
cluster_id=cluster_id,
|
|
14884
|
+
organization_id=organization_id,
|
|
14885
|
+
organization_gpu_quota_request=organization_gpu_quota_request,
|
|
13621
14886
|
_request_auth=_request_auth,
|
|
13622
14887
|
_content_type=_content_type,
|
|
13623
14888
|
_headers=_headers,
|
|
@@ -13625,7 +14890,8 @@ class EXTERNALApi:
|
|
|
13625
14890
|
)
|
|
13626
14891
|
|
|
13627
14892
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
13628
|
-
'200': "
|
|
14893
|
+
'200': "OrganizationGpuQuotaResponse",
|
|
14894
|
+
'422': "HTTPValidationError",
|
|
13629
14895
|
}
|
|
13630
14896
|
response_data = self.api_client.call_api(
|
|
13631
14897
|
*_param,
|
|
@@ -13639,8 +14905,11 @@ class EXTERNALApi:
|
|
|
13639
14905
|
|
|
13640
14906
|
|
|
13641
14907
|
@validate_call
|
|
13642
|
-
def
|
|
14908
|
+
def put_org_gpu_quota_on_cluster_clusters_cluster_id_organizations_organization_id_gpu_quota_put_without_preload_content(
|
|
13643
14909
|
self,
|
|
14910
|
+
cluster_id: StrictInt,
|
|
14911
|
+
organization_id: StrictInt,
|
|
14912
|
+
organization_gpu_quota_request: OrganizationGpuQuotaRequest,
|
|
13644
14913
|
_request_timeout: Union[
|
|
13645
14914
|
None,
|
|
13646
14915
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -13654,9 +14923,16 @@ class EXTERNALApi:
|
|
|
13654
14923
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
13655
14924
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
13656
14925
|
) -> RESTResponseType:
|
|
13657
|
-
"""
|
|
14926
|
+
"""Put Org Gpu Quota On Cluster
|
|
13658
14927
|
|
|
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.
|
|
13659
14929
|
|
|
14930
|
+
:param cluster_id: (required)
|
|
14931
|
+
:type cluster_id: int
|
|
14932
|
+
:param organization_id: (required)
|
|
14933
|
+
:type organization_id: int
|
|
14934
|
+
:param organization_gpu_quota_request: (required)
|
|
14935
|
+
:type organization_gpu_quota_request: OrganizationGpuQuotaRequest
|
|
13660
14936
|
:param _request_timeout: timeout setting for this request. If one
|
|
13661
14937
|
number provided, it will be total request
|
|
13662
14938
|
timeout. It can also be a pair (tuple) of
|
|
@@ -13679,7 +14955,10 @@ class EXTERNALApi:
|
|
|
13679
14955
|
:return: Returns the result object.
|
|
13680
14956
|
""" # noqa: E501
|
|
13681
14957
|
|
|
13682
|
-
_param = self.
|
|
14958
|
+
_param = self._put_org_gpu_quota_on_cluster_clusters_cluster_id_organizations_organization_id_gpu_quota_put_serialize(
|
|
14959
|
+
cluster_id=cluster_id,
|
|
14960
|
+
organization_id=organization_id,
|
|
14961
|
+
organization_gpu_quota_request=organization_gpu_quota_request,
|
|
13683
14962
|
_request_auth=_request_auth,
|
|
13684
14963
|
_content_type=_content_type,
|
|
13685
14964
|
_headers=_headers,
|
|
@@ -13687,7 +14966,8 @@ class EXTERNALApi:
|
|
|
13687
14966
|
)
|
|
13688
14967
|
|
|
13689
14968
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
13690
|
-
'200': "
|
|
14969
|
+
'200': "OrganizationGpuQuotaResponse",
|
|
14970
|
+
'422': "HTTPValidationError",
|
|
13691
14971
|
}
|
|
13692
14972
|
response_data = self.api_client.call_api(
|
|
13693
14973
|
*_param,
|
|
@@ -13696,8 +14976,11 @@ class EXTERNALApi:
|
|
|
13696
14976
|
return response_data.response
|
|
13697
14977
|
|
|
13698
14978
|
|
|
13699
|
-
def
|
|
14979
|
+
def _put_org_gpu_quota_on_cluster_clusters_cluster_id_organizations_organization_id_gpu_quota_put_serialize(
|
|
13700
14980
|
self,
|
|
14981
|
+
cluster_id,
|
|
14982
|
+
organization_id,
|
|
14983
|
+
organization_gpu_quota_request,
|
|
13701
14984
|
_request_auth,
|
|
13702
14985
|
_content_type,
|
|
13703
14986
|
_headers,
|
|
@@ -13719,10 +15002,16 @@ class EXTERNALApi:
|
|
|
13719
15002
|
_body_params: Optional[bytes] = None
|
|
13720
15003
|
|
|
13721
15004
|
# process the path parameters
|
|
15005
|
+
if cluster_id is not None:
|
|
15006
|
+
_path_params['cluster_id'] = cluster_id
|
|
15007
|
+
if organization_id is not None:
|
|
15008
|
+
_path_params['organization_id'] = organization_id
|
|
13722
15009
|
# process the query parameters
|
|
13723
15010
|
# process the header parameters
|
|
13724
15011
|
# process the form parameters
|
|
13725
15012
|
# process the body parameter
|
|
15013
|
+
if organization_gpu_quota_request is not None:
|
|
15014
|
+
_body_params = organization_gpu_quota_request
|
|
13726
15015
|
|
|
13727
15016
|
|
|
13728
15017
|
# set the HTTP header `Accept`
|
|
@@ -13733,6 +15022,19 @@ class EXTERNALApi:
|
|
|
13733
15022
|
]
|
|
13734
15023
|
)
|
|
13735
15024
|
|
|
15025
|
+
# set the HTTP header `Content-Type`
|
|
15026
|
+
if _content_type:
|
|
15027
|
+
_header_params['Content-Type'] = _content_type
|
|
15028
|
+
else:
|
|
15029
|
+
_default_content_type = (
|
|
15030
|
+
self.api_client.select_header_content_type(
|
|
15031
|
+
[
|
|
15032
|
+
'application/json'
|
|
15033
|
+
]
|
|
15034
|
+
)
|
|
15035
|
+
)
|
|
15036
|
+
if _default_content_type is not None:
|
|
15037
|
+
_header_params['Content-Type'] = _default_content_type
|
|
13736
15038
|
|
|
13737
15039
|
# authentication setting
|
|
13738
15040
|
_auth_settings: List[str] = [
|
|
@@ -13740,8 +15042,8 @@ class EXTERNALApi:
|
|
|
13740
15042
|
]
|
|
13741
15043
|
|
|
13742
15044
|
return self.api_client.param_serialize(
|
|
13743
|
-
method='
|
|
13744
|
-
resource_path='/
|
|
15045
|
+
method='PUT',
|
|
15046
|
+
resource_path='/clusters/{cluster_id}/organizations/{organization_id}/gpu-quota',
|
|
13745
15047
|
path_params=_path_params,
|
|
13746
15048
|
query_params=_query_params,
|
|
13747
15049
|
header_params=_header_params,
|
|
@@ -14327,6 +15629,7 @@ class EXTERNALApi:
|
|
|
14327
15629
|
) -> object:
|
|
14328
15630
|
"""Update Cluster
|
|
14329
15631
|
|
|
15632
|
+
Validate a cluster component configuration for an org-owned cluster. Infra provisioning is not wired yet; ``config.components`` is validated only.
|
|
14330
15633
|
|
|
14331
15634
|
:param cluster_id: (required)
|
|
14332
15635
|
:type cluster_id: int
|
|
@@ -14398,6 +15701,7 @@ class EXTERNALApi:
|
|
|
14398
15701
|
) -> ApiResponse[object]:
|
|
14399
15702
|
"""Update Cluster
|
|
14400
15703
|
|
|
15704
|
+
Validate a cluster component configuration for an org-owned cluster. Infra provisioning is not wired yet; ``config.components`` is validated only.
|
|
14401
15705
|
|
|
14402
15706
|
:param cluster_id: (required)
|
|
14403
15707
|
:type cluster_id: int
|
|
@@ -14469,6 +15773,7 @@ class EXTERNALApi:
|
|
|
14469
15773
|
) -> RESTResponseType:
|
|
14470
15774
|
"""Update Cluster
|
|
14471
15775
|
|
|
15776
|
+
Validate a cluster component configuration for an org-owned cluster. Infra provisioning is not wired yet; ``config.components`` is validated only.
|
|
14472
15777
|
|
|
14473
15778
|
:param cluster_id: (required)
|
|
14474
15779
|
:type cluster_id: int
|
|
@@ -14616,7 +15921,7 @@ class EXTERNALApi:
|
|
|
14616
15921
|
) -> GetClusterResponse:
|
|
14617
15922
|
"""Update Cluster Metadata
|
|
14618
15923
|
|
|
14619
|
-
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.
|
|
14620
15925
|
|
|
14621
15926
|
:param cluster_id: (required)
|
|
14622
15927
|
:type cluster_id: int
|
|
@@ -14688,7 +15993,7 @@ class EXTERNALApi:
|
|
|
14688
15993
|
) -> ApiResponse[GetClusterResponse]:
|
|
14689
15994
|
"""Update Cluster Metadata
|
|
14690
15995
|
|
|
14691
|
-
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.
|
|
14692
15997
|
|
|
14693
15998
|
:param cluster_id: (required)
|
|
14694
15999
|
:type cluster_id: int
|
|
@@ -14760,7 +16065,7 @@ class EXTERNALApi:
|
|
|
14760
16065
|
) -> RESTResponseType:
|
|
14761
16066
|
"""Update Cluster Metadata
|
|
14762
16067
|
|
|
14763
|
-
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.
|
|
14764
16069
|
|
|
14765
16070
|
:param cluster_id: (required)
|
|
14766
16071
|
:type cluster_id: int
|