lightning-sdk 0.1.51__py3-none-any.whl → 0.1.53__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.
- lightning_sdk/__init__.py +1 -1
- lightning_sdk/ai_hub.py +16 -27
- lightning_sdk/api/ai_hub_api.py +7 -1
- lightning_sdk/cli/run.py +25 -20
- lightning_sdk/job/base.py +16 -0
- lightning_sdk/lightning_cloud/openapi/__init__.py +14 -0
- lightning_sdk/lightning_cloud/openapi/api/assistants_service_api.py +105 -0
- lightning_sdk/lightning_cloud/openapi/api/cluster_service_api.py +417 -1
- lightning_sdk/lightning_cloud/openapi/api/file_system_service_api.py +105 -0
- lightning_sdk/lightning_cloud/openapi/api/storage_service_api.py +101 -0
- lightning_sdk/lightning_cloud/openapi/api/user_service_api.py +5 -1
- lightning_sdk/lightning_cloud/openapi/models/__init__.py +14 -0
- lightning_sdk/lightning_cloud/openapi/models/cluster_id_usagerestrictions_body.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/id_contactowner_body.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/metricsstream_create_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/usagerestrictions_id_body.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_assistant_model_status.py +4 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_provider.py +104 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_artifact_event.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_artifact_event_type.py +103 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_accelerator.py +81 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_tagging_options.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_usage_restriction.py +227 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_contact_assistant_owner_reason.py +102 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_contact_assistant_owner_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_cluster_usage_restriction_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_api.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_mmt.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_cluster_usage_restrictions_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_filesystem_mm_ts_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_metrics_stream.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_model.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_post_cloud_space_artifact_events_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_resource_visibility.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +53 -1
- lightning_sdk/lightning_cloud/utils/data_connection.py +75 -7
- lightning_sdk/mmt/mmt.py +1 -1
- lightning_sdk/studio.py +68 -1
- {lightning_sdk-0.1.51.dist-info → lightning_sdk-0.1.53.dist-info}/METADATA +1 -1
- {lightning_sdk-0.1.51.dist-info → lightning_sdk-0.1.53.dist-info}/RECORD +44 -30
- {lightning_sdk-0.1.51.dist-info → lightning_sdk-0.1.53.dist-info}/LICENSE +0 -0
- {lightning_sdk-0.1.51.dist-info → lightning_sdk-0.1.53.dist-info}/WHEEL +0 -0
- {lightning_sdk-0.1.51.dist-info → lightning_sdk-0.1.53.dist-info}/entry_points.txt +0 -0
- {lightning_sdk-0.1.51.dist-info → lightning_sdk-0.1.53.dist-info}/top_level.txt +0 -0
|
@@ -455,6 +455,111 @@ class ClusterServiceApi(object):
|
|
|
455
455
|
_request_timeout=params.get('_request_timeout'),
|
|
456
456
|
collection_formats=collection_formats)
|
|
457
457
|
|
|
458
|
+
def cluster_service_create_cluster_usage_restriction(self, body: 'ClusterIdUsagerestrictionsBody', cluster_id: 'str', **kwargs) -> 'V1ClusterUsageRestriction': # noqa: E501
|
|
459
|
+
"""cluster_service_create_cluster_usage_restriction # noqa: E501
|
|
460
|
+
|
|
461
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
462
|
+
asynchronous HTTP request, please pass async_req=True
|
|
463
|
+
>>> thread = api.cluster_service_create_cluster_usage_restriction(body, cluster_id, async_req=True)
|
|
464
|
+
>>> result = thread.get()
|
|
465
|
+
|
|
466
|
+
:param async_req bool
|
|
467
|
+
:param ClusterIdUsagerestrictionsBody body: (required)
|
|
468
|
+
:param str cluster_id: (required)
|
|
469
|
+
:return: V1ClusterUsageRestriction
|
|
470
|
+
If the method is called asynchronously,
|
|
471
|
+
returns the request thread.
|
|
472
|
+
"""
|
|
473
|
+
kwargs['_return_http_data_only'] = True
|
|
474
|
+
if kwargs.get('async_req'):
|
|
475
|
+
return self.cluster_service_create_cluster_usage_restriction_with_http_info(body, cluster_id, **kwargs) # noqa: E501
|
|
476
|
+
else:
|
|
477
|
+
(data) = self.cluster_service_create_cluster_usage_restriction_with_http_info(body, cluster_id, **kwargs) # noqa: E501
|
|
478
|
+
return data
|
|
479
|
+
|
|
480
|
+
def cluster_service_create_cluster_usage_restriction_with_http_info(self, body: 'ClusterIdUsagerestrictionsBody', cluster_id: 'str', **kwargs) -> 'V1ClusterUsageRestriction': # noqa: E501
|
|
481
|
+
"""cluster_service_create_cluster_usage_restriction # noqa: E501
|
|
482
|
+
|
|
483
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
484
|
+
asynchronous HTTP request, please pass async_req=True
|
|
485
|
+
>>> thread = api.cluster_service_create_cluster_usage_restriction_with_http_info(body, cluster_id, async_req=True)
|
|
486
|
+
>>> result = thread.get()
|
|
487
|
+
|
|
488
|
+
:param async_req bool
|
|
489
|
+
:param ClusterIdUsagerestrictionsBody body: (required)
|
|
490
|
+
:param str cluster_id: (required)
|
|
491
|
+
:return: V1ClusterUsageRestriction
|
|
492
|
+
If the method is called asynchronously,
|
|
493
|
+
returns the request thread.
|
|
494
|
+
"""
|
|
495
|
+
|
|
496
|
+
all_params = ['body', 'cluster_id'] # noqa: E501
|
|
497
|
+
all_params.append('async_req')
|
|
498
|
+
all_params.append('_return_http_data_only')
|
|
499
|
+
all_params.append('_preload_content')
|
|
500
|
+
all_params.append('_request_timeout')
|
|
501
|
+
|
|
502
|
+
params = locals()
|
|
503
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
504
|
+
if key not in all_params:
|
|
505
|
+
raise TypeError(
|
|
506
|
+
"Got an unexpected keyword argument '%s'"
|
|
507
|
+
" to method cluster_service_create_cluster_usage_restriction" % key
|
|
508
|
+
)
|
|
509
|
+
params[key] = val
|
|
510
|
+
del params['kwargs']
|
|
511
|
+
# verify the required parameter 'body' is set
|
|
512
|
+
if ('body' not in params or
|
|
513
|
+
params['body'] is None):
|
|
514
|
+
raise ValueError("Missing the required parameter `body` when calling `cluster_service_create_cluster_usage_restriction`") # noqa: E501
|
|
515
|
+
# verify the required parameter 'cluster_id' is set
|
|
516
|
+
if ('cluster_id' not in params or
|
|
517
|
+
params['cluster_id'] is None):
|
|
518
|
+
raise ValueError("Missing the required parameter `cluster_id` when calling `cluster_service_create_cluster_usage_restriction`") # noqa: E501
|
|
519
|
+
|
|
520
|
+
collection_formats = {}
|
|
521
|
+
|
|
522
|
+
path_params = {}
|
|
523
|
+
if 'cluster_id' in params:
|
|
524
|
+
path_params['clusterId'] = params['cluster_id'] # noqa: E501
|
|
525
|
+
|
|
526
|
+
query_params = []
|
|
527
|
+
|
|
528
|
+
header_params = {}
|
|
529
|
+
|
|
530
|
+
form_params = []
|
|
531
|
+
local_var_files = {}
|
|
532
|
+
|
|
533
|
+
body_params = None
|
|
534
|
+
if 'body' in params:
|
|
535
|
+
body_params = params['body']
|
|
536
|
+
# HTTP header `Accept`
|
|
537
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
538
|
+
['application/json']) # noqa: E501
|
|
539
|
+
|
|
540
|
+
# HTTP header `Content-Type`
|
|
541
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
542
|
+
['application/json']) # noqa: E501
|
|
543
|
+
|
|
544
|
+
# Authentication setting
|
|
545
|
+
auth_settings = [] # noqa: E501
|
|
546
|
+
|
|
547
|
+
return self.api_client.call_api(
|
|
548
|
+
'/v1/core/clusters/{clusterId}/usage-restrictions', 'POST',
|
|
549
|
+
path_params,
|
|
550
|
+
query_params,
|
|
551
|
+
header_params,
|
|
552
|
+
body=body_params,
|
|
553
|
+
post_params=form_params,
|
|
554
|
+
files=local_var_files,
|
|
555
|
+
response_type='V1ClusterUsageRestriction', # noqa: E501
|
|
556
|
+
auth_settings=auth_settings,
|
|
557
|
+
async_req=params.get('async_req'),
|
|
558
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
559
|
+
_preload_content=params.get('_preload_content', True),
|
|
560
|
+
_request_timeout=params.get('_request_timeout'),
|
|
561
|
+
collection_formats=collection_formats)
|
|
562
|
+
|
|
458
563
|
def cluster_service_create_project_cluster(self, body: 'ProjectIdClustersBody', project_id: 'str', **kwargs) -> 'Externalv1Cluster': # noqa: E501
|
|
459
564
|
"""cluster_service_create_project_cluster # noqa: E501
|
|
460
565
|
|
|
@@ -980,6 +1085,107 @@ class ClusterServiceApi(object):
|
|
|
980
1085
|
_request_timeout=params.get('_request_timeout'),
|
|
981
1086
|
collection_formats=collection_formats)
|
|
982
1087
|
|
|
1088
|
+
def cluster_service_delete_cluster_usage_restriction(self, cluster_id: 'str', id: 'str', **kwargs) -> 'V1DeleteClusterUsageRestrictionResponse': # noqa: E501
|
|
1089
|
+
"""cluster_service_delete_cluster_usage_restriction # noqa: E501
|
|
1090
|
+
|
|
1091
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1092
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1093
|
+
>>> thread = api.cluster_service_delete_cluster_usage_restriction(cluster_id, id, async_req=True)
|
|
1094
|
+
>>> result = thread.get()
|
|
1095
|
+
|
|
1096
|
+
:param async_req bool
|
|
1097
|
+
:param str cluster_id: (required)
|
|
1098
|
+
:param str id: (required)
|
|
1099
|
+
:return: V1DeleteClusterUsageRestrictionResponse
|
|
1100
|
+
If the method is called asynchronously,
|
|
1101
|
+
returns the request thread.
|
|
1102
|
+
"""
|
|
1103
|
+
kwargs['_return_http_data_only'] = True
|
|
1104
|
+
if kwargs.get('async_req'):
|
|
1105
|
+
return self.cluster_service_delete_cluster_usage_restriction_with_http_info(cluster_id, id, **kwargs) # noqa: E501
|
|
1106
|
+
else:
|
|
1107
|
+
(data) = self.cluster_service_delete_cluster_usage_restriction_with_http_info(cluster_id, id, **kwargs) # noqa: E501
|
|
1108
|
+
return data
|
|
1109
|
+
|
|
1110
|
+
def cluster_service_delete_cluster_usage_restriction_with_http_info(self, cluster_id: 'str', id: 'str', **kwargs) -> 'V1DeleteClusterUsageRestrictionResponse': # noqa: E501
|
|
1111
|
+
"""cluster_service_delete_cluster_usage_restriction # noqa: E501
|
|
1112
|
+
|
|
1113
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1114
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1115
|
+
>>> thread = api.cluster_service_delete_cluster_usage_restriction_with_http_info(cluster_id, id, async_req=True)
|
|
1116
|
+
>>> result = thread.get()
|
|
1117
|
+
|
|
1118
|
+
:param async_req bool
|
|
1119
|
+
:param str cluster_id: (required)
|
|
1120
|
+
:param str id: (required)
|
|
1121
|
+
:return: V1DeleteClusterUsageRestrictionResponse
|
|
1122
|
+
If the method is called asynchronously,
|
|
1123
|
+
returns the request thread.
|
|
1124
|
+
"""
|
|
1125
|
+
|
|
1126
|
+
all_params = ['cluster_id', 'id'] # noqa: E501
|
|
1127
|
+
all_params.append('async_req')
|
|
1128
|
+
all_params.append('_return_http_data_only')
|
|
1129
|
+
all_params.append('_preload_content')
|
|
1130
|
+
all_params.append('_request_timeout')
|
|
1131
|
+
|
|
1132
|
+
params = locals()
|
|
1133
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
1134
|
+
if key not in all_params:
|
|
1135
|
+
raise TypeError(
|
|
1136
|
+
"Got an unexpected keyword argument '%s'"
|
|
1137
|
+
" to method cluster_service_delete_cluster_usage_restriction" % key
|
|
1138
|
+
)
|
|
1139
|
+
params[key] = val
|
|
1140
|
+
del params['kwargs']
|
|
1141
|
+
# verify the required parameter 'cluster_id' is set
|
|
1142
|
+
if ('cluster_id' not in params or
|
|
1143
|
+
params['cluster_id'] is None):
|
|
1144
|
+
raise ValueError("Missing the required parameter `cluster_id` when calling `cluster_service_delete_cluster_usage_restriction`") # noqa: E501
|
|
1145
|
+
# verify the required parameter 'id' is set
|
|
1146
|
+
if ('id' not in params or
|
|
1147
|
+
params['id'] is None):
|
|
1148
|
+
raise ValueError("Missing the required parameter `id` when calling `cluster_service_delete_cluster_usage_restriction`") # noqa: E501
|
|
1149
|
+
|
|
1150
|
+
collection_formats = {}
|
|
1151
|
+
|
|
1152
|
+
path_params = {}
|
|
1153
|
+
if 'cluster_id' in params:
|
|
1154
|
+
path_params['clusterId'] = params['cluster_id'] # noqa: E501
|
|
1155
|
+
if 'id' in params:
|
|
1156
|
+
path_params['id'] = params['id'] # noqa: E501
|
|
1157
|
+
|
|
1158
|
+
query_params = []
|
|
1159
|
+
|
|
1160
|
+
header_params = {}
|
|
1161
|
+
|
|
1162
|
+
form_params = []
|
|
1163
|
+
local_var_files = {}
|
|
1164
|
+
|
|
1165
|
+
body_params = None
|
|
1166
|
+
# HTTP header `Accept`
|
|
1167
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
1168
|
+
['application/json']) # noqa: E501
|
|
1169
|
+
|
|
1170
|
+
# Authentication setting
|
|
1171
|
+
auth_settings = [] # noqa: E501
|
|
1172
|
+
|
|
1173
|
+
return self.api_client.call_api(
|
|
1174
|
+
'/v1/core/clusters/{clusterId}/usage-restrictions/{id}', 'DELETE',
|
|
1175
|
+
path_params,
|
|
1176
|
+
query_params,
|
|
1177
|
+
header_params,
|
|
1178
|
+
body=body_params,
|
|
1179
|
+
post_params=form_params,
|
|
1180
|
+
files=local_var_files,
|
|
1181
|
+
response_type='V1DeleteClusterUsageRestrictionResponse', # noqa: E501
|
|
1182
|
+
auth_settings=auth_settings,
|
|
1183
|
+
async_req=params.get('async_req'),
|
|
1184
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
1185
|
+
_preload_content=params.get('_preload_content', True),
|
|
1186
|
+
_request_timeout=params.get('_request_timeout'),
|
|
1187
|
+
collection_formats=collection_formats)
|
|
1188
|
+
|
|
983
1189
|
def cluster_service_delete_project_cluster(self, project_id: 'str', id: 'str', **kwargs) -> 'V1DeleteProjectClusterResponse': # noqa: E501
|
|
984
1190
|
"""cluster_service_delete_project_cluster # noqa: E501
|
|
985
1191
|
|
|
@@ -2095,6 +2301,99 @@ class ClusterServiceApi(object):
|
|
|
2095
2301
|
_request_timeout=params.get('_request_timeout'),
|
|
2096
2302
|
collection_formats=collection_formats)
|
|
2097
2303
|
|
|
2304
|
+
def cluster_service_list_cluster_usage_restrictions(self, cluster_id: 'str', **kwargs) -> 'V1ListClusterUsageRestrictionsResponse': # noqa: E501
|
|
2305
|
+
"""cluster_service_list_cluster_usage_restrictions # noqa: E501
|
|
2306
|
+
|
|
2307
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
2308
|
+
asynchronous HTTP request, please pass async_req=True
|
|
2309
|
+
>>> thread = api.cluster_service_list_cluster_usage_restrictions(cluster_id, async_req=True)
|
|
2310
|
+
>>> result = thread.get()
|
|
2311
|
+
|
|
2312
|
+
:param async_req bool
|
|
2313
|
+
:param str cluster_id: (required)
|
|
2314
|
+
:return: V1ListClusterUsageRestrictionsResponse
|
|
2315
|
+
If the method is called asynchronously,
|
|
2316
|
+
returns the request thread.
|
|
2317
|
+
"""
|
|
2318
|
+
kwargs['_return_http_data_only'] = True
|
|
2319
|
+
if kwargs.get('async_req'):
|
|
2320
|
+
return self.cluster_service_list_cluster_usage_restrictions_with_http_info(cluster_id, **kwargs) # noqa: E501
|
|
2321
|
+
else:
|
|
2322
|
+
(data) = self.cluster_service_list_cluster_usage_restrictions_with_http_info(cluster_id, **kwargs) # noqa: E501
|
|
2323
|
+
return data
|
|
2324
|
+
|
|
2325
|
+
def cluster_service_list_cluster_usage_restrictions_with_http_info(self, cluster_id: 'str', **kwargs) -> 'V1ListClusterUsageRestrictionsResponse': # noqa: E501
|
|
2326
|
+
"""cluster_service_list_cluster_usage_restrictions # noqa: E501
|
|
2327
|
+
|
|
2328
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
2329
|
+
asynchronous HTTP request, please pass async_req=True
|
|
2330
|
+
>>> thread = api.cluster_service_list_cluster_usage_restrictions_with_http_info(cluster_id, async_req=True)
|
|
2331
|
+
>>> result = thread.get()
|
|
2332
|
+
|
|
2333
|
+
:param async_req bool
|
|
2334
|
+
:param str cluster_id: (required)
|
|
2335
|
+
:return: V1ListClusterUsageRestrictionsResponse
|
|
2336
|
+
If the method is called asynchronously,
|
|
2337
|
+
returns the request thread.
|
|
2338
|
+
"""
|
|
2339
|
+
|
|
2340
|
+
all_params = ['cluster_id'] # noqa: E501
|
|
2341
|
+
all_params.append('async_req')
|
|
2342
|
+
all_params.append('_return_http_data_only')
|
|
2343
|
+
all_params.append('_preload_content')
|
|
2344
|
+
all_params.append('_request_timeout')
|
|
2345
|
+
|
|
2346
|
+
params = locals()
|
|
2347
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
2348
|
+
if key not in all_params:
|
|
2349
|
+
raise TypeError(
|
|
2350
|
+
"Got an unexpected keyword argument '%s'"
|
|
2351
|
+
" to method cluster_service_list_cluster_usage_restrictions" % key
|
|
2352
|
+
)
|
|
2353
|
+
params[key] = val
|
|
2354
|
+
del params['kwargs']
|
|
2355
|
+
# verify the required parameter 'cluster_id' is set
|
|
2356
|
+
if ('cluster_id' not in params or
|
|
2357
|
+
params['cluster_id'] is None):
|
|
2358
|
+
raise ValueError("Missing the required parameter `cluster_id` when calling `cluster_service_list_cluster_usage_restrictions`") # noqa: E501
|
|
2359
|
+
|
|
2360
|
+
collection_formats = {}
|
|
2361
|
+
|
|
2362
|
+
path_params = {}
|
|
2363
|
+
if 'cluster_id' in params:
|
|
2364
|
+
path_params['clusterId'] = params['cluster_id'] # noqa: E501
|
|
2365
|
+
|
|
2366
|
+
query_params = []
|
|
2367
|
+
|
|
2368
|
+
header_params = {}
|
|
2369
|
+
|
|
2370
|
+
form_params = []
|
|
2371
|
+
local_var_files = {}
|
|
2372
|
+
|
|
2373
|
+
body_params = None
|
|
2374
|
+
# HTTP header `Accept`
|
|
2375
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
2376
|
+
['application/json']) # noqa: E501
|
|
2377
|
+
|
|
2378
|
+
# Authentication setting
|
|
2379
|
+
auth_settings = [] # noqa: E501
|
|
2380
|
+
|
|
2381
|
+
return self.api_client.call_api(
|
|
2382
|
+
'/v1/core/clusters/{clusterId}/usage-restrictions', 'GET',
|
|
2383
|
+
path_params,
|
|
2384
|
+
query_params,
|
|
2385
|
+
header_params,
|
|
2386
|
+
body=body_params,
|
|
2387
|
+
post_params=form_params,
|
|
2388
|
+
files=local_var_files,
|
|
2389
|
+
response_type='V1ListClusterUsageRestrictionsResponse', # noqa: E501
|
|
2390
|
+
auth_settings=auth_settings,
|
|
2391
|
+
async_req=params.get('async_req'),
|
|
2392
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
2393
|
+
_preload_content=params.get('_preload_content', True),
|
|
2394
|
+
_request_timeout=params.get('_request_timeout'),
|
|
2395
|
+
collection_formats=collection_formats)
|
|
2396
|
+
|
|
2098
2397
|
def cluster_service_list_clusters(self, **kwargs) -> 'V1ListClustersResponse': # noqa: E501
|
|
2099
2398
|
"""cluster_service_list_clusters # noqa: E501
|
|
2100
2399
|
|
|
@@ -2198,6 +2497,7 @@ class ClusterServiceApi(object):
|
|
|
2198
2497
|
|
|
2199
2498
|
:param async_req bool
|
|
2200
2499
|
:param bool include_pricing:
|
|
2500
|
+
:param str cloud_provider:
|
|
2201
2501
|
:return: V1ListDefaultClusterAcceleratorsResponse
|
|
2202
2502
|
If the method is called asynchronously,
|
|
2203
2503
|
returns the request thread.
|
|
@@ -2219,12 +2519,13 @@ class ClusterServiceApi(object):
|
|
|
2219
2519
|
|
|
2220
2520
|
:param async_req bool
|
|
2221
2521
|
:param bool include_pricing:
|
|
2522
|
+
:param str cloud_provider:
|
|
2222
2523
|
:return: V1ListDefaultClusterAcceleratorsResponse
|
|
2223
2524
|
If the method is called asynchronously,
|
|
2224
2525
|
returns the request thread.
|
|
2225
2526
|
"""
|
|
2226
2527
|
|
|
2227
|
-
all_params = ['include_pricing'] # noqa: E501
|
|
2528
|
+
all_params = ['include_pricing', 'cloud_provider'] # noqa: E501
|
|
2228
2529
|
all_params.append('async_req')
|
|
2229
2530
|
all_params.append('_return_http_data_only')
|
|
2230
2531
|
all_params.append('_preload_content')
|
|
@@ -2247,6 +2548,8 @@ class ClusterServiceApi(object):
|
|
|
2247
2548
|
query_params = []
|
|
2248
2549
|
if 'include_pricing' in params:
|
|
2249
2550
|
query_params.append(('includePricing', params['include_pricing'])) # noqa: E501
|
|
2551
|
+
if 'cloud_provider' in params:
|
|
2552
|
+
query_params.append(('cloudProvider', params['cloud_provider'])) # noqa: E501
|
|
2250
2553
|
|
|
2251
2554
|
header_params = {}
|
|
2252
2555
|
|
|
@@ -3182,6 +3485,119 @@ class ClusterServiceApi(object):
|
|
|
3182
3485
|
_request_timeout=params.get('_request_timeout'),
|
|
3183
3486
|
collection_formats=collection_formats)
|
|
3184
3487
|
|
|
3488
|
+
def cluster_service_update_cluster_usage_restriction(self, body: 'UsagerestrictionsIdBody', cluster_id: 'str', id: 'str', **kwargs) -> 'V1ClusterUsageRestriction': # noqa: E501
|
|
3489
|
+
"""cluster_service_update_cluster_usage_restriction # noqa: E501
|
|
3490
|
+
|
|
3491
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
3492
|
+
asynchronous HTTP request, please pass async_req=True
|
|
3493
|
+
>>> thread = api.cluster_service_update_cluster_usage_restriction(body, cluster_id, id, async_req=True)
|
|
3494
|
+
>>> result = thread.get()
|
|
3495
|
+
|
|
3496
|
+
:param async_req bool
|
|
3497
|
+
:param UsagerestrictionsIdBody body: (required)
|
|
3498
|
+
:param str cluster_id: (required)
|
|
3499
|
+
:param str id: (required)
|
|
3500
|
+
:return: V1ClusterUsageRestriction
|
|
3501
|
+
If the method is called asynchronously,
|
|
3502
|
+
returns the request thread.
|
|
3503
|
+
"""
|
|
3504
|
+
kwargs['_return_http_data_only'] = True
|
|
3505
|
+
if kwargs.get('async_req'):
|
|
3506
|
+
return self.cluster_service_update_cluster_usage_restriction_with_http_info(body, cluster_id, id, **kwargs) # noqa: E501
|
|
3507
|
+
else:
|
|
3508
|
+
(data) = self.cluster_service_update_cluster_usage_restriction_with_http_info(body, cluster_id, id, **kwargs) # noqa: E501
|
|
3509
|
+
return data
|
|
3510
|
+
|
|
3511
|
+
def cluster_service_update_cluster_usage_restriction_with_http_info(self, body: 'UsagerestrictionsIdBody', cluster_id: 'str', id: 'str', **kwargs) -> 'V1ClusterUsageRestriction': # noqa: E501
|
|
3512
|
+
"""cluster_service_update_cluster_usage_restriction # noqa: E501
|
|
3513
|
+
|
|
3514
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
3515
|
+
asynchronous HTTP request, please pass async_req=True
|
|
3516
|
+
>>> thread = api.cluster_service_update_cluster_usage_restriction_with_http_info(body, cluster_id, id, async_req=True)
|
|
3517
|
+
>>> result = thread.get()
|
|
3518
|
+
|
|
3519
|
+
:param async_req bool
|
|
3520
|
+
:param UsagerestrictionsIdBody body: (required)
|
|
3521
|
+
:param str cluster_id: (required)
|
|
3522
|
+
:param str id: (required)
|
|
3523
|
+
:return: V1ClusterUsageRestriction
|
|
3524
|
+
If the method is called asynchronously,
|
|
3525
|
+
returns the request thread.
|
|
3526
|
+
"""
|
|
3527
|
+
|
|
3528
|
+
all_params = ['body', 'cluster_id', 'id'] # noqa: E501
|
|
3529
|
+
all_params.append('async_req')
|
|
3530
|
+
all_params.append('_return_http_data_only')
|
|
3531
|
+
all_params.append('_preload_content')
|
|
3532
|
+
all_params.append('_request_timeout')
|
|
3533
|
+
|
|
3534
|
+
params = locals()
|
|
3535
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
3536
|
+
if key not in all_params:
|
|
3537
|
+
raise TypeError(
|
|
3538
|
+
"Got an unexpected keyword argument '%s'"
|
|
3539
|
+
" to method cluster_service_update_cluster_usage_restriction" % key
|
|
3540
|
+
)
|
|
3541
|
+
params[key] = val
|
|
3542
|
+
del params['kwargs']
|
|
3543
|
+
# verify the required parameter 'body' is set
|
|
3544
|
+
if ('body' not in params or
|
|
3545
|
+
params['body'] is None):
|
|
3546
|
+
raise ValueError("Missing the required parameter `body` when calling `cluster_service_update_cluster_usage_restriction`") # noqa: E501
|
|
3547
|
+
# verify the required parameter 'cluster_id' is set
|
|
3548
|
+
if ('cluster_id' not in params or
|
|
3549
|
+
params['cluster_id'] is None):
|
|
3550
|
+
raise ValueError("Missing the required parameter `cluster_id` when calling `cluster_service_update_cluster_usage_restriction`") # noqa: E501
|
|
3551
|
+
# verify the required parameter 'id' is set
|
|
3552
|
+
if ('id' not in params or
|
|
3553
|
+
params['id'] is None):
|
|
3554
|
+
raise ValueError("Missing the required parameter `id` when calling `cluster_service_update_cluster_usage_restriction`") # noqa: E501
|
|
3555
|
+
|
|
3556
|
+
collection_formats = {}
|
|
3557
|
+
|
|
3558
|
+
path_params = {}
|
|
3559
|
+
if 'cluster_id' in params:
|
|
3560
|
+
path_params['clusterId'] = params['cluster_id'] # noqa: E501
|
|
3561
|
+
if 'id' in params:
|
|
3562
|
+
path_params['id'] = params['id'] # noqa: E501
|
|
3563
|
+
|
|
3564
|
+
query_params = []
|
|
3565
|
+
|
|
3566
|
+
header_params = {}
|
|
3567
|
+
|
|
3568
|
+
form_params = []
|
|
3569
|
+
local_var_files = {}
|
|
3570
|
+
|
|
3571
|
+
body_params = None
|
|
3572
|
+
if 'body' in params:
|
|
3573
|
+
body_params = params['body']
|
|
3574
|
+
# HTTP header `Accept`
|
|
3575
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
3576
|
+
['application/json']) # noqa: E501
|
|
3577
|
+
|
|
3578
|
+
# HTTP header `Content-Type`
|
|
3579
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
3580
|
+
['application/json']) # noqa: E501
|
|
3581
|
+
|
|
3582
|
+
# Authentication setting
|
|
3583
|
+
auth_settings = [] # noqa: E501
|
|
3584
|
+
|
|
3585
|
+
return self.api_client.call_api(
|
|
3586
|
+
'/v1/core/clusters/{clusterId}/usage-restrictions/{id}', 'PUT',
|
|
3587
|
+
path_params,
|
|
3588
|
+
query_params,
|
|
3589
|
+
header_params,
|
|
3590
|
+
body=body_params,
|
|
3591
|
+
post_params=form_params,
|
|
3592
|
+
files=local_var_files,
|
|
3593
|
+
response_type='V1ClusterUsageRestriction', # noqa: E501
|
|
3594
|
+
auth_settings=auth_settings,
|
|
3595
|
+
async_req=params.get('async_req'),
|
|
3596
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
3597
|
+
_preload_content=params.get('_preload_content', True),
|
|
3598
|
+
_request_timeout=params.get('_request_timeout'),
|
|
3599
|
+
collection_formats=collection_formats)
|
|
3600
|
+
|
|
3185
3601
|
def cluster_service_update_project_cluster(self, body: 'ClustersIdBody1', project_id: 'str', id: 'str', **kwargs) -> 'Externalv1Cluster': # noqa: E501
|
|
3186
3602
|
"""cluster_service_update_project_cluster # noqa: E501
|
|
3187
3603
|
|
|
@@ -463,6 +463,111 @@ class FileSystemServiceApi(object):
|
|
|
463
463
|
_request_timeout=params.get('_request_timeout'),
|
|
464
464
|
collection_formats=collection_formats)
|
|
465
465
|
|
|
466
|
+
def file_system_service_list_filesystem_mm_ts(self, project_id: 'str', current_id: 'str', **kwargs) -> 'V1ListFilesystemMMTsResponse': # noqa: E501
|
|
467
|
+
"""file_system_service_list_filesystem_mm_ts # noqa: E501
|
|
468
|
+
|
|
469
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
470
|
+
asynchronous HTTP request, please pass async_req=True
|
|
471
|
+
>>> thread = api.file_system_service_list_filesystem_mm_ts(project_id, current_id, async_req=True)
|
|
472
|
+
>>> result = thread.get()
|
|
473
|
+
|
|
474
|
+
:param async_req bool
|
|
475
|
+
:param str project_id: (required)
|
|
476
|
+
:param str current_id: (required)
|
|
477
|
+
:param str cluster_id:
|
|
478
|
+
:return: V1ListFilesystemMMTsResponse
|
|
479
|
+
If the method is called asynchronously,
|
|
480
|
+
returns the request thread.
|
|
481
|
+
"""
|
|
482
|
+
kwargs['_return_http_data_only'] = True
|
|
483
|
+
if kwargs.get('async_req'):
|
|
484
|
+
return self.file_system_service_list_filesystem_mm_ts_with_http_info(project_id, current_id, **kwargs) # noqa: E501
|
|
485
|
+
else:
|
|
486
|
+
(data) = self.file_system_service_list_filesystem_mm_ts_with_http_info(project_id, current_id, **kwargs) # noqa: E501
|
|
487
|
+
return data
|
|
488
|
+
|
|
489
|
+
def file_system_service_list_filesystem_mm_ts_with_http_info(self, project_id: 'str', current_id: 'str', **kwargs) -> 'V1ListFilesystemMMTsResponse': # noqa: E501
|
|
490
|
+
"""file_system_service_list_filesystem_mm_ts # noqa: E501
|
|
491
|
+
|
|
492
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
493
|
+
asynchronous HTTP request, please pass async_req=True
|
|
494
|
+
>>> thread = api.file_system_service_list_filesystem_mm_ts_with_http_info(project_id, current_id, async_req=True)
|
|
495
|
+
>>> result = thread.get()
|
|
496
|
+
|
|
497
|
+
:param async_req bool
|
|
498
|
+
:param str project_id: (required)
|
|
499
|
+
:param str current_id: (required)
|
|
500
|
+
:param str cluster_id:
|
|
501
|
+
:return: V1ListFilesystemMMTsResponse
|
|
502
|
+
If the method is called asynchronously,
|
|
503
|
+
returns the request thread.
|
|
504
|
+
"""
|
|
505
|
+
|
|
506
|
+
all_params = ['project_id', 'current_id', 'cluster_id'] # noqa: E501
|
|
507
|
+
all_params.append('async_req')
|
|
508
|
+
all_params.append('_return_http_data_only')
|
|
509
|
+
all_params.append('_preload_content')
|
|
510
|
+
all_params.append('_request_timeout')
|
|
511
|
+
|
|
512
|
+
params = locals()
|
|
513
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
514
|
+
if key not in all_params:
|
|
515
|
+
raise TypeError(
|
|
516
|
+
"Got an unexpected keyword argument '%s'"
|
|
517
|
+
" to method file_system_service_list_filesystem_mm_ts" % key
|
|
518
|
+
)
|
|
519
|
+
params[key] = val
|
|
520
|
+
del params['kwargs']
|
|
521
|
+
# verify the required parameter 'project_id' is set
|
|
522
|
+
if ('project_id' not in params or
|
|
523
|
+
params['project_id'] is None):
|
|
524
|
+
raise ValueError("Missing the required parameter `project_id` when calling `file_system_service_list_filesystem_mm_ts`") # noqa: E501
|
|
525
|
+
# verify the required parameter 'current_id' is set
|
|
526
|
+
if ('current_id' not in params or
|
|
527
|
+
params['current_id'] is None):
|
|
528
|
+
raise ValueError("Missing the required parameter `current_id` when calling `file_system_service_list_filesystem_mm_ts`") # noqa: E501
|
|
529
|
+
|
|
530
|
+
collection_formats = {}
|
|
531
|
+
|
|
532
|
+
path_params = {}
|
|
533
|
+
if 'project_id' in params:
|
|
534
|
+
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
535
|
+
if 'current_id' in params:
|
|
536
|
+
path_params['currentId'] = params['current_id'] # noqa: E501
|
|
537
|
+
|
|
538
|
+
query_params = []
|
|
539
|
+
if 'cluster_id' in params:
|
|
540
|
+
query_params.append(('clusterId', params['cluster_id'])) # noqa: E501
|
|
541
|
+
|
|
542
|
+
header_params = {}
|
|
543
|
+
|
|
544
|
+
form_params = []
|
|
545
|
+
local_var_files = {}
|
|
546
|
+
|
|
547
|
+
body_params = None
|
|
548
|
+
# HTTP header `Accept`
|
|
549
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
550
|
+
['application/json']) # noqa: E501
|
|
551
|
+
|
|
552
|
+
# Authentication setting
|
|
553
|
+
auth_settings = [] # noqa: E501
|
|
554
|
+
|
|
555
|
+
return self.api_client.call_api(
|
|
556
|
+
'/v1/filesystem/{projectId}/mmts/{currentId}', 'GET',
|
|
557
|
+
path_params,
|
|
558
|
+
query_params,
|
|
559
|
+
header_params,
|
|
560
|
+
body=body_params,
|
|
561
|
+
post_params=form_params,
|
|
562
|
+
files=local_var_files,
|
|
563
|
+
response_type='V1ListFilesystemMMTsResponse', # noqa: E501
|
|
564
|
+
auth_settings=auth_settings,
|
|
565
|
+
async_req=params.get('async_req'),
|
|
566
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
567
|
+
_preload_content=params.get('_preload_content', True),
|
|
568
|
+
_request_timeout=params.get('_request_timeout'),
|
|
569
|
+
collection_formats=collection_formats)
|
|
570
|
+
|
|
466
571
|
def file_system_service_list_filesystem_slurm_jobs(self, project_id: 'str', current_id: 'str', **kwargs) -> 'V1ListFilesystemSlurmJobsResponse': # noqa: E501
|
|
467
572
|
"""file_system_service_list_filesystem_slurm_jobs # noqa: E501
|
|
468
573
|
|