lightning-sdk 2025.12.17__py3-none-any.whl → 2026.1.22__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/__version__.py +1 -1
- lightning_sdk/api/k8s_api.py +75 -29
- lightning_sdk/api/studio_api.py +195 -33
- lightning_sdk/api/teamspace_api.py +28 -9
- lightning_sdk/cli/cp/__init__.py +64 -0
- lightning_sdk/cli/entrypoint.py +2 -0
- lightning_sdk/cli/groups.py +22 -0
- lightning_sdk/cli/legacy/clusters_menu.py +2 -2
- lightning_sdk/cli/legacy/deploy/_auth.py +7 -6
- lightning_sdk/cli/legacy/run.py +13 -2
- lightning_sdk/cli/studio/__init__.py +4 -0
- lightning_sdk/cli/studio/cp.py +20 -64
- lightning_sdk/cli/studio/ls.py +57 -0
- lightning_sdk/cli/studio/rm.py +71 -0
- lightning_sdk/cli/utils/logging.py +2 -1
- lightning_sdk/cli/utils/studio_filesystem.py +65 -0
- lightning_sdk/cli/utils/teamspace_selection.py +5 -0
- lightning_sdk/exceptions.py +4 -0
- lightning_sdk/job/base.py +1 -1
- lightning_sdk/k8s_cluster.py +9 -10
- lightning_sdk/lightning_cloud/__version__.py +1 -1
- lightning_sdk/lightning_cloud/openapi/__init__.py +29 -11
- lightning_sdk/lightning_cloud/openapi/api/__init__.py +1 -1
- lightning_sdk/lightning_cloud/openapi/api/cloud_space_service_api.py +113 -0
- lightning_sdk/lightning_cloud/openapi/api/cluster_service_api.py +268 -123
- lightning_sdk/lightning_cloud/openapi/api/k8_s_cluster_service_api.py +246 -19
- lightning_sdk/lightning_cloud/openapi/api/lightningwork_service_api.py +116 -11
- lightning_sdk/lightning_cloud/openapi/api/lit_logger_service_api.py +588 -2
- lightning_sdk/lightning_cloud/openapi/api/models_store_api.py +9 -1
- lightning_sdk/lightning_cloud/openapi/api/{kubernetes_virtual_machine_service_api.py → virtual_machine_service_api.py} +82 -82
- lightning_sdk/lightning_cloud/openapi/models/__init__.py +28 -10
- lightning_sdk/lightning_cloud/openapi/models/cluster_service_create_cluster_capacity_reservation_body.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/cluster_service_create_machine_body.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/cluster_service_create_org_cluster_capacity_reservation_body.py +409 -0
- lightning_sdk/lightning_cloud/openapi/models/cluster_service_report_machine_system_metrics_body.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/externalv1_cloud_space_instance_status.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/lit_logger_service_create_lit_logger_media_body.py +305 -0
- lightning_sdk/lightning_cloud/openapi/models/lit_logger_service_update_lit_logger_media_body.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/lit_logger_service_update_metrics_stream_body.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_capacity_reservation_used_by.py +227 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_provider.py +1 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_type.py +1 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_accelerator.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_capacity_reservation.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_spec.py +53 -27
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_type.py +0 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_create_lit_logger_media_response.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_org_cluster_capacity_reservation_response.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_sdk_command_history_request.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/{v1_ai_pod_v1.py → v1_cudo_direct_v1.py} +51 -51
- lightning_sdk/lightning_cloud/openapi/models/{v1_delete_kubernetes_virtual_machine_response.py → v1_delete_lit_logger_media_response.py} +6 -6
- lightning_sdk/lightning_cloud/openapi/models/{kubernetes_virtual_machine_service_update_kubernetes_virtual_machine_body.py → v1_delete_virtual_machine_response.py} +6 -6
- lightning_sdk/lightning_cloud/openapi/models/v1_external_cluster_spec.py +27 -27
- lightning_sdk/lightning_cloud/openapi/models/v1_external_search_user.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_get_kubernetes_pod_logs_response.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/{v1_get_machine_response.py → v1_get_kubernetes_pod_response.py} +23 -23
- lightning_sdk/lightning_cloud/openapi/models/v1_job_spec.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_joinable_organization.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_k8s_incident_setting.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_k8s_incident_type.py +108 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_kubernetes_direct_settings_v1.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_kubernetes_direct_v1.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_kubernetes_pod.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_kubernetes_pod_logs_page.py +227 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_kubevirt_config.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_list_kubernetes_pods_response.py +43 -17
- lightning_sdk/lightning_cloud/openapi/models/v1_list_kubernetes_pods_sort_order.py +104 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_lit_logger_media_response.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_models_response.py +55 -3
- lightning_sdk/lightning_cloud/openapi/models/{v1_list_kubernetes_virtual_machines_response.py → v1_list_virtual_machines_response.py} +16 -16
- lightning_sdk/lightning_cloud/openapi/models/v1_lit_logger_media.py +513 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_machine.py +27 -53
- lightning_sdk/lightning_cloud/openapi/models/v1_machine_direct_v1.py +107 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_media_type.py +104 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_nebius_direct_v1.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_organization.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_report_cloud_space_instance_idle_state_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_report_machine_system_metrics_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_tenant_credentials.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +157 -131
- lightning_sdk/lightning_cloud/openapi/models/{v1_kubernetes_virtual_machine.py → v1_virtual_machine.py} +94 -68
- lightning_sdk/lightning_cloud/openapi/models/{v1_kubevirt_vm_configuration.py → v1_vm_configuration.py} +20 -20
- lightning_sdk/lightning_cloud/openapi/models/{v1_kubevirt_provider_configuration.py → v1_vm_provider_configuration.py} +32 -32
- lightning_sdk/lightning_cloud/openapi/models/virtual_machine_service_create_virtual_machine_body.py +565 -0
- lightning_sdk/lightning_cloud/openapi/models/virtual_machine_service_update_virtual_machine_body.py +97 -0
- lightning_sdk/lightning_cloud/rest_client.py +0 -2
- lightning_sdk/machine.py +3 -3
- lightning_sdk/studio.py +14 -4
- lightning_sdk/utils/logging.py +2 -1
- {lightning_sdk-2025.12.17.dist-info → lightning_sdk-2026.1.22.dist-info}/METADATA +1 -5
- {lightning_sdk-2025.12.17.dist-info → lightning_sdk-2026.1.22.dist-info}/RECORD +95 -75
- {lightning_sdk-2025.12.17.dist-info → lightning_sdk-2026.1.22.dist-info}/WHEEL +1 -1
- lightning_sdk/lightning_cloud/cli/__main__.py +0 -29
- lightning_sdk/lightning_cloud/openapi/models/kubernetes_virtual_machine_service_create_kubernetes_virtual_machine_body.py +0 -513
- lightning_sdk/lightning_cloud/openapi/models/v1_kubevirt_vm_resources.py +0 -201
- lightning_sdk/lightning_cloud/source_code/logs_socket_api.py +0 -103
- {lightning_sdk-2025.12.17.dist-info → lightning_sdk-2026.1.22.dist-info}/LICENSE +0 -0
- {lightning_sdk-2025.12.17.dist-info → lightning_sdk-2026.1.22.dist-info}/entry_points.txt +0 -0
- {lightning_sdk-2025.12.17.dist-info → lightning_sdk-2026.1.22.dist-info}/top_level.txt +0 -0
|
@@ -249,6 +249,212 @@ class K8SClusterServiceApi(object):
|
|
|
249
249
|
_request_timeout=params.get('_request_timeout'),
|
|
250
250
|
collection_formats=collection_formats)
|
|
251
251
|
|
|
252
|
+
def k8_s_cluster_service_get_kubernetes_pod(self, cluster_id: 'str', id: 'str', **kwargs) -> 'V1GetKubernetesPodResponse': # noqa: E501
|
|
253
|
+
"""k8_s_cluster_service_get_kubernetes_pod # noqa: E501
|
|
254
|
+
|
|
255
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
256
|
+
asynchronous HTTP request, please pass async_req=True
|
|
257
|
+
>>> thread = api.k8_s_cluster_service_get_kubernetes_pod(cluster_id, id, async_req=True)
|
|
258
|
+
>>> result = thread.get()
|
|
259
|
+
|
|
260
|
+
:param async_req bool
|
|
261
|
+
:param str cluster_id: (required)
|
|
262
|
+
:param str id: (required)
|
|
263
|
+
:return: V1GetKubernetesPodResponse
|
|
264
|
+
If the method is called asynchronously,
|
|
265
|
+
returns the request thread.
|
|
266
|
+
"""
|
|
267
|
+
kwargs['_return_http_data_only'] = True
|
|
268
|
+
if kwargs.get('async_req'):
|
|
269
|
+
return self.k8_s_cluster_service_get_kubernetes_pod_with_http_info(cluster_id, id, **kwargs) # noqa: E501
|
|
270
|
+
else:
|
|
271
|
+
(data) = self.k8_s_cluster_service_get_kubernetes_pod_with_http_info(cluster_id, id, **kwargs) # noqa: E501
|
|
272
|
+
return data
|
|
273
|
+
|
|
274
|
+
def k8_s_cluster_service_get_kubernetes_pod_with_http_info(self, cluster_id: 'str', id: 'str', **kwargs) -> 'V1GetKubernetesPodResponse': # noqa: E501
|
|
275
|
+
"""k8_s_cluster_service_get_kubernetes_pod # noqa: E501
|
|
276
|
+
|
|
277
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
278
|
+
asynchronous HTTP request, please pass async_req=True
|
|
279
|
+
>>> thread = api.k8_s_cluster_service_get_kubernetes_pod_with_http_info(cluster_id, id, async_req=True)
|
|
280
|
+
>>> result = thread.get()
|
|
281
|
+
|
|
282
|
+
:param async_req bool
|
|
283
|
+
:param str cluster_id: (required)
|
|
284
|
+
:param str id: (required)
|
|
285
|
+
:return: V1GetKubernetesPodResponse
|
|
286
|
+
If the method is called asynchronously,
|
|
287
|
+
returns the request thread.
|
|
288
|
+
"""
|
|
289
|
+
|
|
290
|
+
all_params = ['cluster_id', 'id'] # noqa: E501
|
|
291
|
+
all_params.append('async_req')
|
|
292
|
+
all_params.append('_return_http_data_only')
|
|
293
|
+
all_params.append('_preload_content')
|
|
294
|
+
all_params.append('_request_timeout')
|
|
295
|
+
|
|
296
|
+
params = locals()
|
|
297
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
298
|
+
if key not in all_params:
|
|
299
|
+
raise TypeError(
|
|
300
|
+
"Got an unexpected keyword argument '%s'"
|
|
301
|
+
" to method k8_s_cluster_service_get_kubernetes_pod" % key
|
|
302
|
+
)
|
|
303
|
+
params[key] = val
|
|
304
|
+
del params['kwargs']
|
|
305
|
+
# verify the required parameter 'cluster_id' is set
|
|
306
|
+
if ('cluster_id' not in params or
|
|
307
|
+
params['cluster_id'] is None):
|
|
308
|
+
raise ValueError("Missing the required parameter `cluster_id` when calling `k8_s_cluster_service_get_kubernetes_pod`") # noqa: E501
|
|
309
|
+
# verify the required parameter 'id' is set
|
|
310
|
+
if ('id' not in params or
|
|
311
|
+
params['id'] is None):
|
|
312
|
+
raise ValueError("Missing the required parameter `id` when calling `k8_s_cluster_service_get_kubernetes_pod`") # noqa: E501
|
|
313
|
+
|
|
314
|
+
collection_formats = {}
|
|
315
|
+
|
|
316
|
+
path_params = {}
|
|
317
|
+
if 'cluster_id' in params:
|
|
318
|
+
path_params['clusterId'] = params['cluster_id'] # noqa: E501
|
|
319
|
+
if 'id' in params:
|
|
320
|
+
path_params['id'] = params['id'] # noqa: E501
|
|
321
|
+
|
|
322
|
+
query_params = []
|
|
323
|
+
|
|
324
|
+
header_params = {}
|
|
325
|
+
|
|
326
|
+
form_params = []
|
|
327
|
+
local_var_files = {}
|
|
328
|
+
|
|
329
|
+
body_params = None
|
|
330
|
+
# HTTP header `Accept`
|
|
331
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
332
|
+
['application/json']) # noqa: E501
|
|
333
|
+
|
|
334
|
+
# Authentication setting
|
|
335
|
+
auth_settings = [] # noqa: E501
|
|
336
|
+
|
|
337
|
+
return self.api_client.call_api(
|
|
338
|
+
'/v1/k8s-clusters/{clusterId}/kubernetes-pods/{id}', 'GET',
|
|
339
|
+
path_params,
|
|
340
|
+
query_params,
|
|
341
|
+
header_params,
|
|
342
|
+
body=body_params,
|
|
343
|
+
post_params=form_params,
|
|
344
|
+
files=local_var_files,
|
|
345
|
+
response_type='V1GetKubernetesPodResponse', # noqa: E501
|
|
346
|
+
auth_settings=auth_settings,
|
|
347
|
+
async_req=params.get('async_req'),
|
|
348
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
349
|
+
_preload_content=params.get('_preload_content', True),
|
|
350
|
+
_request_timeout=params.get('_request_timeout'),
|
|
351
|
+
collection_formats=collection_formats)
|
|
352
|
+
|
|
353
|
+
def k8_s_cluster_service_get_kubernetes_pod_logs(self, cluster_id: 'str', id: 'str', **kwargs) -> 'V1GetKubernetesPodLogsResponse': # noqa: E501
|
|
354
|
+
"""k8_s_cluster_service_get_kubernetes_pod_logs # noqa: E501
|
|
355
|
+
|
|
356
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
357
|
+
asynchronous HTTP request, please pass async_req=True
|
|
358
|
+
>>> thread = api.k8_s_cluster_service_get_kubernetes_pod_logs(cluster_id, id, async_req=True)
|
|
359
|
+
>>> result = thread.get()
|
|
360
|
+
|
|
361
|
+
:param async_req bool
|
|
362
|
+
:param str cluster_id: (required)
|
|
363
|
+
:param str id: (required)
|
|
364
|
+
:param str container_name:
|
|
365
|
+
:return: V1GetKubernetesPodLogsResponse
|
|
366
|
+
If the method is called asynchronously,
|
|
367
|
+
returns the request thread.
|
|
368
|
+
"""
|
|
369
|
+
kwargs['_return_http_data_only'] = True
|
|
370
|
+
if kwargs.get('async_req'):
|
|
371
|
+
return self.k8_s_cluster_service_get_kubernetes_pod_logs_with_http_info(cluster_id, id, **kwargs) # noqa: E501
|
|
372
|
+
else:
|
|
373
|
+
(data) = self.k8_s_cluster_service_get_kubernetes_pod_logs_with_http_info(cluster_id, id, **kwargs) # noqa: E501
|
|
374
|
+
return data
|
|
375
|
+
|
|
376
|
+
def k8_s_cluster_service_get_kubernetes_pod_logs_with_http_info(self, cluster_id: 'str', id: 'str', **kwargs) -> 'V1GetKubernetesPodLogsResponse': # noqa: E501
|
|
377
|
+
"""k8_s_cluster_service_get_kubernetes_pod_logs # noqa: E501
|
|
378
|
+
|
|
379
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
380
|
+
asynchronous HTTP request, please pass async_req=True
|
|
381
|
+
>>> thread = api.k8_s_cluster_service_get_kubernetes_pod_logs_with_http_info(cluster_id, id, async_req=True)
|
|
382
|
+
>>> result = thread.get()
|
|
383
|
+
|
|
384
|
+
:param async_req bool
|
|
385
|
+
:param str cluster_id: (required)
|
|
386
|
+
:param str id: (required)
|
|
387
|
+
:param str container_name:
|
|
388
|
+
:return: V1GetKubernetesPodLogsResponse
|
|
389
|
+
If the method is called asynchronously,
|
|
390
|
+
returns the request thread.
|
|
391
|
+
"""
|
|
392
|
+
|
|
393
|
+
all_params = ['cluster_id', 'id', 'container_name'] # noqa: E501
|
|
394
|
+
all_params.append('async_req')
|
|
395
|
+
all_params.append('_return_http_data_only')
|
|
396
|
+
all_params.append('_preload_content')
|
|
397
|
+
all_params.append('_request_timeout')
|
|
398
|
+
|
|
399
|
+
params = locals()
|
|
400
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
401
|
+
if key not in all_params:
|
|
402
|
+
raise TypeError(
|
|
403
|
+
"Got an unexpected keyword argument '%s'"
|
|
404
|
+
" to method k8_s_cluster_service_get_kubernetes_pod_logs" % key
|
|
405
|
+
)
|
|
406
|
+
params[key] = val
|
|
407
|
+
del params['kwargs']
|
|
408
|
+
# verify the required parameter 'cluster_id' is set
|
|
409
|
+
if ('cluster_id' not in params or
|
|
410
|
+
params['cluster_id'] is None):
|
|
411
|
+
raise ValueError("Missing the required parameter `cluster_id` when calling `k8_s_cluster_service_get_kubernetes_pod_logs`") # noqa: E501
|
|
412
|
+
# verify the required parameter 'id' is set
|
|
413
|
+
if ('id' not in params or
|
|
414
|
+
params['id'] is None):
|
|
415
|
+
raise ValueError("Missing the required parameter `id` when calling `k8_s_cluster_service_get_kubernetes_pod_logs`") # noqa: E501
|
|
416
|
+
|
|
417
|
+
collection_formats = {}
|
|
418
|
+
|
|
419
|
+
path_params = {}
|
|
420
|
+
if 'cluster_id' in params:
|
|
421
|
+
path_params['clusterId'] = params['cluster_id'] # noqa: E501
|
|
422
|
+
if 'id' in params:
|
|
423
|
+
path_params['id'] = params['id'] # noqa: E501
|
|
424
|
+
|
|
425
|
+
query_params = []
|
|
426
|
+
if 'container_name' in params:
|
|
427
|
+
query_params.append(('containerName', params['container_name'])) # noqa: E501
|
|
428
|
+
|
|
429
|
+
header_params = {}
|
|
430
|
+
|
|
431
|
+
form_params = []
|
|
432
|
+
local_var_files = {}
|
|
433
|
+
|
|
434
|
+
body_params = None
|
|
435
|
+
# HTTP header `Accept`
|
|
436
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
437
|
+
['application/json']) # noqa: E501
|
|
438
|
+
|
|
439
|
+
# Authentication setting
|
|
440
|
+
auth_settings = [] # noqa: E501
|
|
441
|
+
|
|
442
|
+
return self.api_client.call_api(
|
|
443
|
+
'/v1/k8s-clusters/{clusterId}/kubernetes-pods/{id}/page-logs', 'GET',
|
|
444
|
+
path_params,
|
|
445
|
+
query_params,
|
|
446
|
+
header_params,
|
|
447
|
+
body=body_params,
|
|
448
|
+
post_params=form_params,
|
|
449
|
+
files=local_var_files,
|
|
450
|
+
response_type='V1GetKubernetesPodLogsResponse', # noqa: E501
|
|
451
|
+
auth_settings=auth_settings,
|
|
452
|
+
async_req=params.get('async_req'),
|
|
453
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
454
|
+
_preload_content=params.get('_preload_content', True),
|
|
455
|
+
_request_timeout=params.get('_request_timeout'),
|
|
456
|
+
collection_formats=collection_formats)
|
|
457
|
+
|
|
252
458
|
def k8_s_cluster_service_get_kubernetes_template(self, cluster_id: 'str', id: 'str', **kwargs) -> 'V1KubernetesTemplate': # noqa: E501
|
|
253
459
|
"""k8_s_cluster_service_get_kubernetes_template # noqa: E501
|
|
254
460
|
|
|
@@ -472,6 +678,7 @@ class K8SClusterServiceApi(object):
|
|
|
472
678
|
:param str namespace:
|
|
473
679
|
:param datetime start: Date range
|
|
474
680
|
:param datetime end:
|
|
681
|
+
:param list[str] ids:
|
|
475
682
|
:return: V1ListAggregatedPodMetricsResponse
|
|
476
683
|
If the method is called asynchronously,
|
|
477
684
|
returns the request thread.
|
|
@@ -496,12 +703,13 @@ class K8SClusterServiceApi(object):
|
|
|
496
703
|
:param str namespace:
|
|
497
704
|
:param datetime start: Date range
|
|
498
705
|
:param datetime end:
|
|
706
|
+
:param list[str] ids:
|
|
499
707
|
:return: V1ListAggregatedPodMetricsResponse
|
|
500
708
|
If the method is called asynchronously,
|
|
501
709
|
returns the request thread.
|
|
502
710
|
"""
|
|
503
711
|
|
|
504
|
-
all_params = ['cluster_id', 'namespace', 'start', 'end'] # noqa: E501
|
|
712
|
+
all_params = ['cluster_id', 'namespace', 'start', 'end', 'ids'] # noqa: E501
|
|
505
713
|
all_params.append('async_req')
|
|
506
714
|
all_params.append('_return_http_data_only')
|
|
507
715
|
all_params.append('_preload_content')
|
|
@@ -534,6 +742,9 @@ class K8SClusterServiceApi(object):
|
|
|
534
742
|
query_params.append(('start', params['start'])) # noqa: E501
|
|
535
743
|
if 'end' in params:
|
|
536
744
|
query_params.append(('end', params['end'])) # noqa: E501
|
|
745
|
+
if 'ids' in params:
|
|
746
|
+
query_params.append(('ids', params['ids'])) # noqa: E501
|
|
747
|
+
collection_formats['ids'] = 'multi' # noqa: E501
|
|
537
748
|
|
|
538
749
|
header_params = {}
|
|
539
750
|
|
|
@@ -1531,13 +1742,17 @@ class K8SClusterServiceApi(object):
|
|
|
1531
1742
|
|
|
1532
1743
|
:param async_req bool
|
|
1533
1744
|
:param str cluster_id: (required)
|
|
1534
|
-
:param
|
|
1745
|
+
:param str page_token:
|
|
1746
|
+
:param int limit:
|
|
1747
|
+
:param str search_query:
|
|
1748
|
+
:param list[str] statuses:
|
|
1749
|
+
:param bool deleted:
|
|
1535
1750
|
:param str namespace:
|
|
1536
1751
|
:param str user_id:
|
|
1537
1752
|
:param str queue_name:
|
|
1538
|
-
:param
|
|
1539
|
-
:param datetime
|
|
1540
|
-
:param datetime
|
|
1753
|
+
:param str sort_order: ascending or descending
|
|
1754
|
+
:param datetime start_time: Historical start time for the pods
|
|
1755
|
+
:param datetime end_time: Historical end time for the pods
|
|
1541
1756
|
:return: V1ListKubernetesPodsResponse
|
|
1542
1757
|
If the method is called asynchronously,
|
|
1543
1758
|
returns the request thread.
|
|
@@ -1559,19 +1774,23 @@ class K8SClusterServiceApi(object):
|
|
|
1559
1774
|
|
|
1560
1775
|
:param async_req bool
|
|
1561
1776
|
:param str cluster_id: (required)
|
|
1562
|
-
:param
|
|
1777
|
+
:param str page_token:
|
|
1778
|
+
:param int limit:
|
|
1779
|
+
:param str search_query:
|
|
1780
|
+
:param list[str] statuses:
|
|
1781
|
+
:param bool deleted:
|
|
1563
1782
|
:param str namespace:
|
|
1564
1783
|
:param str user_id:
|
|
1565
1784
|
:param str queue_name:
|
|
1566
|
-
:param
|
|
1567
|
-
:param datetime
|
|
1568
|
-
:param datetime
|
|
1785
|
+
:param str sort_order: ascending or descending
|
|
1786
|
+
:param datetime start_time: Historical start time for the pods
|
|
1787
|
+
:param datetime end_time: Historical end time for the pods
|
|
1569
1788
|
:return: V1ListKubernetesPodsResponse
|
|
1570
1789
|
If the method is called asynchronously,
|
|
1571
1790
|
returns the request thread.
|
|
1572
1791
|
"""
|
|
1573
1792
|
|
|
1574
|
-
all_params = ['cluster_id', '
|
|
1793
|
+
all_params = ['cluster_id', 'page_token', 'limit', 'search_query', 'statuses', 'deleted', 'namespace', 'user_id', 'queue_name', 'sort_order', 'start_time', 'end_time'] # noqa: E501
|
|
1575
1794
|
all_params.append('async_req')
|
|
1576
1795
|
all_params.append('_return_http_data_only')
|
|
1577
1796
|
all_params.append('_preload_content')
|
|
@@ -1598,21 +1817,29 @@ class K8SClusterServiceApi(object):
|
|
|
1598
1817
|
path_params['clusterId'] = params['cluster_id'] # noqa: E501
|
|
1599
1818
|
|
|
1600
1819
|
query_params = []
|
|
1601
|
-
if '
|
|
1602
|
-
query_params.append(('
|
|
1603
|
-
|
|
1820
|
+
if 'page_token' in params:
|
|
1821
|
+
query_params.append(('pageToken', params['page_token'])) # noqa: E501
|
|
1822
|
+
if 'limit' in params:
|
|
1823
|
+
query_params.append(('limit', params['limit'])) # noqa: E501
|
|
1824
|
+
if 'search_query' in params:
|
|
1825
|
+
query_params.append(('searchQuery', params['search_query'])) # noqa: E501
|
|
1826
|
+
if 'statuses' in params:
|
|
1827
|
+
query_params.append(('statuses', params['statuses'])) # noqa: E501
|
|
1828
|
+
collection_formats['statuses'] = 'multi' # noqa: E501
|
|
1829
|
+
if 'deleted' in params:
|
|
1830
|
+
query_params.append(('deleted', params['deleted'])) # noqa: E501
|
|
1604
1831
|
if 'namespace' in params:
|
|
1605
1832
|
query_params.append(('namespace', params['namespace'])) # noqa: E501
|
|
1606
1833
|
if 'user_id' in params:
|
|
1607
1834
|
query_params.append(('userId', params['user_id'])) # noqa: E501
|
|
1608
1835
|
if 'queue_name' in params:
|
|
1609
1836
|
query_params.append(('queueName', params['queue_name'])) # noqa: E501
|
|
1610
|
-
if '
|
|
1611
|
-
query_params.append(('
|
|
1612
|
-
if '
|
|
1613
|
-
query_params.append(('
|
|
1614
|
-
if '
|
|
1615
|
-
query_params.append(('
|
|
1837
|
+
if 'sort_order' in params:
|
|
1838
|
+
query_params.append(('sortOrder', params['sort_order'])) # noqa: E501
|
|
1839
|
+
if 'start_time' in params:
|
|
1840
|
+
query_params.append(('startTime', params['start_time'])) # noqa: E501
|
|
1841
|
+
if 'end_time' in params:
|
|
1842
|
+
query_params.append(('endTime', params['end_time'])) # noqa: E501
|
|
1616
1843
|
|
|
1617
1844
|
header_params = {}
|
|
1618
1845
|
|
|
@@ -378,47 +378,47 @@ class LightningworkServiceApi(object):
|
|
|
378
378
|
_request_timeout=params.get('_request_timeout'),
|
|
379
379
|
collection_formats=collection_formats)
|
|
380
380
|
|
|
381
|
-
def lightningwork_service_get_lightningwork(self, project_id: 'str',
|
|
381
|
+
def lightningwork_service_get_lightningwork(self, project_id: 'str', id: 'str', **kwargs) -> 'Externalv1Lightningwork': # noqa: E501
|
|
382
382
|
"""lightningwork_service_get_lightningwork # noqa: E501
|
|
383
383
|
|
|
384
384
|
This method makes a synchronous HTTP request by default. To make an
|
|
385
385
|
asynchronous HTTP request, please pass async_req=True
|
|
386
|
-
>>> thread = api.lightningwork_service_get_lightningwork(project_id,
|
|
386
|
+
>>> thread = api.lightningwork_service_get_lightningwork(project_id, id, async_req=True)
|
|
387
387
|
>>> result = thread.get()
|
|
388
388
|
|
|
389
389
|
:param async_req bool
|
|
390
390
|
:param str project_id: (required)
|
|
391
|
-
:param str app_id: (required)
|
|
392
391
|
:param str id: (required)
|
|
392
|
+
:param str app_id:
|
|
393
393
|
:return: Externalv1Lightningwork
|
|
394
394
|
If the method is called asynchronously,
|
|
395
395
|
returns the request thread.
|
|
396
396
|
"""
|
|
397
397
|
kwargs['_return_http_data_only'] = True
|
|
398
398
|
if kwargs.get('async_req'):
|
|
399
|
-
return self.lightningwork_service_get_lightningwork_with_http_info(project_id,
|
|
399
|
+
return self.lightningwork_service_get_lightningwork_with_http_info(project_id, id, **kwargs) # noqa: E501
|
|
400
400
|
else:
|
|
401
|
-
(data) = self.lightningwork_service_get_lightningwork_with_http_info(project_id,
|
|
401
|
+
(data) = self.lightningwork_service_get_lightningwork_with_http_info(project_id, id, **kwargs) # noqa: E501
|
|
402
402
|
return data
|
|
403
403
|
|
|
404
|
-
def lightningwork_service_get_lightningwork_with_http_info(self, project_id: 'str',
|
|
404
|
+
def lightningwork_service_get_lightningwork_with_http_info(self, project_id: 'str', id: 'str', **kwargs) -> 'Externalv1Lightningwork': # noqa: E501
|
|
405
405
|
"""lightningwork_service_get_lightningwork # noqa: E501
|
|
406
406
|
|
|
407
407
|
This method makes a synchronous HTTP request by default. To make an
|
|
408
408
|
asynchronous HTTP request, please pass async_req=True
|
|
409
|
-
>>> thread = api.lightningwork_service_get_lightningwork_with_http_info(project_id,
|
|
409
|
+
>>> thread = api.lightningwork_service_get_lightningwork_with_http_info(project_id, id, async_req=True)
|
|
410
410
|
>>> result = thread.get()
|
|
411
411
|
|
|
412
412
|
:param async_req bool
|
|
413
413
|
:param str project_id: (required)
|
|
414
|
-
:param str app_id: (required)
|
|
415
414
|
:param str id: (required)
|
|
415
|
+
:param str app_id:
|
|
416
416
|
:return: Externalv1Lightningwork
|
|
417
417
|
If the method is called asynchronously,
|
|
418
418
|
returns the request thread.
|
|
419
419
|
"""
|
|
420
420
|
|
|
421
|
-
all_params = ['project_id', '
|
|
421
|
+
all_params = ['project_id', 'id', 'app_id'] # noqa: E501
|
|
422
422
|
all_params.append('async_req')
|
|
423
423
|
all_params.append('_return_http_data_only')
|
|
424
424
|
all_params.append('_preload_content')
|
|
@@ -437,14 +437,119 @@ class LightningworkServiceApi(object):
|
|
|
437
437
|
if ('project_id' not in params or
|
|
438
438
|
params['project_id'] is None):
|
|
439
439
|
raise ValueError("Missing the required parameter `project_id` when calling `lightningwork_service_get_lightningwork`") # noqa: E501
|
|
440
|
+
# verify the required parameter 'id' is set
|
|
441
|
+
if ('id' not in params or
|
|
442
|
+
params['id'] is None):
|
|
443
|
+
raise ValueError("Missing the required parameter `id` when calling `lightningwork_service_get_lightningwork`") # noqa: E501
|
|
444
|
+
|
|
445
|
+
collection_formats = {}
|
|
446
|
+
|
|
447
|
+
path_params = {}
|
|
448
|
+
if 'project_id' in params:
|
|
449
|
+
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
450
|
+
if 'id' in params:
|
|
451
|
+
path_params['id'] = params['id'] # noqa: E501
|
|
452
|
+
|
|
453
|
+
query_params = []
|
|
454
|
+
if 'app_id' in params:
|
|
455
|
+
query_params.append(('appId', params['app_id'])) # noqa: E501
|
|
456
|
+
|
|
457
|
+
header_params = {}
|
|
458
|
+
|
|
459
|
+
form_params = []
|
|
460
|
+
local_var_files = {}
|
|
461
|
+
|
|
462
|
+
body_params = None
|
|
463
|
+
# HTTP header `Accept`
|
|
464
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
465
|
+
['application/json']) # noqa: E501
|
|
466
|
+
|
|
467
|
+
# Authentication setting
|
|
468
|
+
auth_settings = [] # noqa: E501
|
|
469
|
+
|
|
470
|
+
return self.api_client.call_api(
|
|
471
|
+
'/v1/projects/{projectId}/lightningworks/{id}', 'GET',
|
|
472
|
+
path_params,
|
|
473
|
+
query_params,
|
|
474
|
+
header_params,
|
|
475
|
+
body=body_params,
|
|
476
|
+
post_params=form_params,
|
|
477
|
+
files=local_var_files,
|
|
478
|
+
response_type='Externalv1Lightningwork', # noqa: E501
|
|
479
|
+
auth_settings=auth_settings,
|
|
480
|
+
async_req=params.get('async_req'),
|
|
481
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
482
|
+
_preload_content=params.get('_preload_content', True),
|
|
483
|
+
_request_timeout=params.get('_request_timeout'),
|
|
484
|
+
collection_formats=collection_formats)
|
|
485
|
+
|
|
486
|
+
def lightningwork_service_get_lightningwork2(self, project_id: 'str', app_id: 'str', id: 'str', **kwargs) -> 'Externalv1Lightningwork': # noqa: E501
|
|
487
|
+
"""lightningwork_service_get_lightningwork2 # noqa: E501
|
|
488
|
+
|
|
489
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
490
|
+
asynchronous HTTP request, please pass async_req=True
|
|
491
|
+
>>> thread = api.lightningwork_service_get_lightningwork2(project_id, app_id, id, async_req=True)
|
|
492
|
+
>>> result = thread.get()
|
|
493
|
+
|
|
494
|
+
:param async_req bool
|
|
495
|
+
:param str project_id: (required)
|
|
496
|
+
:param str app_id: (required)
|
|
497
|
+
:param str id: (required)
|
|
498
|
+
:return: Externalv1Lightningwork
|
|
499
|
+
If the method is called asynchronously,
|
|
500
|
+
returns the request thread.
|
|
501
|
+
"""
|
|
502
|
+
kwargs['_return_http_data_only'] = True
|
|
503
|
+
if kwargs.get('async_req'):
|
|
504
|
+
return self.lightningwork_service_get_lightningwork2_with_http_info(project_id, app_id, id, **kwargs) # noqa: E501
|
|
505
|
+
else:
|
|
506
|
+
(data) = self.lightningwork_service_get_lightningwork2_with_http_info(project_id, app_id, id, **kwargs) # noqa: E501
|
|
507
|
+
return data
|
|
508
|
+
|
|
509
|
+
def lightningwork_service_get_lightningwork2_with_http_info(self, project_id: 'str', app_id: 'str', id: 'str', **kwargs) -> 'Externalv1Lightningwork': # noqa: E501
|
|
510
|
+
"""lightningwork_service_get_lightningwork2 # noqa: E501
|
|
511
|
+
|
|
512
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
513
|
+
asynchronous HTTP request, please pass async_req=True
|
|
514
|
+
>>> thread = api.lightningwork_service_get_lightningwork2_with_http_info(project_id, app_id, id, async_req=True)
|
|
515
|
+
>>> result = thread.get()
|
|
516
|
+
|
|
517
|
+
:param async_req bool
|
|
518
|
+
:param str project_id: (required)
|
|
519
|
+
:param str app_id: (required)
|
|
520
|
+
:param str id: (required)
|
|
521
|
+
:return: Externalv1Lightningwork
|
|
522
|
+
If the method is called asynchronously,
|
|
523
|
+
returns the request thread.
|
|
524
|
+
"""
|
|
525
|
+
|
|
526
|
+
all_params = ['project_id', 'app_id', 'id'] # noqa: E501
|
|
527
|
+
all_params.append('async_req')
|
|
528
|
+
all_params.append('_return_http_data_only')
|
|
529
|
+
all_params.append('_preload_content')
|
|
530
|
+
all_params.append('_request_timeout')
|
|
531
|
+
|
|
532
|
+
params = locals()
|
|
533
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
534
|
+
if key not in all_params:
|
|
535
|
+
raise TypeError(
|
|
536
|
+
"Got an unexpected keyword argument '%s'"
|
|
537
|
+
" to method lightningwork_service_get_lightningwork2" % key
|
|
538
|
+
)
|
|
539
|
+
params[key] = val
|
|
540
|
+
del params['kwargs']
|
|
541
|
+
# verify the required parameter 'project_id' is set
|
|
542
|
+
if ('project_id' not in params or
|
|
543
|
+
params['project_id'] is None):
|
|
544
|
+
raise ValueError("Missing the required parameter `project_id` when calling `lightningwork_service_get_lightningwork2`") # noqa: E501
|
|
440
545
|
# verify the required parameter 'app_id' is set
|
|
441
546
|
if ('app_id' not in params or
|
|
442
547
|
params['app_id'] is None):
|
|
443
|
-
raise ValueError("Missing the required parameter `app_id` when calling `
|
|
548
|
+
raise ValueError("Missing the required parameter `app_id` when calling `lightningwork_service_get_lightningwork2`") # noqa: E501
|
|
444
549
|
# verify the required parameter 'id' is set
|
|
445
550
|
if ('id' not in params or
|
|
446
551
|
params['id'] is None):
|
|
447
|
-
raise ValueError("Missing the required parameter `id` when calling `
|
|
552
|
+
raise ValueError("Missing the required parameter `id` when calling `lightningwork_service_get_lightningwork2`") # noqa: E501
|
|
448
553
|
|
|
449
554
|
collection_formats = {}
|
|
450
555
|
|