lightning-sdk 2025.12.16__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.
Files changed (141) hide show
  1. lightning_sdk/__version__.py +1 -1
  2. lightning_sdk/api/k8s_api.py +75 -29
  3. lightning_sdk/api/org_api.py +7 -0
  4. lightning_sdk/api/studio_api.py +223 -36
  5. lightning_sdk/api/teamspace_api.py +28 -9
  6. lightning_sdk/api/user_api.py +5 -0
  7. lightning_sdk/cli/cp/__init__.py +64 -0
  8. lightning_sdk/cli/entrypoint.py +2 -0
  9. lightning_sdk/cli/groups.py +22 -0
  10. lightning_sdk/cli/legacy/clusters_menu.py +2 -2
  11. lightning_sdk/cli/legacy/deploy/_auth.py +7 -6
  12. lightning_sdk/cli/legacy/download.py +2 -1
  13. lightning_sdk/cli/legacy/run.py +13 -2
  14. lightning_sdk/cli/legacy/studios_menu.py +8 -1
  15. lightning_sdk/cli/studio/__init__.py +4 -0
  16. lightning_sdk/cli/studio/cp.py +20 -64
  17. lightning_sdk/cli/studio/ls.py +57 -0
  18. lightning_sdk/cli/studio/rm.py +71 -0
  19. lightning_sdk/cli/utils/logging.py +2 -1
  20. lightning_sdk/cli/utils/studio_filesystem.py +65 -0
  21. lightning_sdk/cli/utils/teamspace_selection.py +5 -0
  22. lightning_sdk/exceptions.py +4 -0
  23. lightning_sdk/job/base.py +24 -5
  24. lightning_sdk/job/job.py +12 -5
  25. lightning_sdk/job/v1.py +5 -2
  26. lightning_sdk/job/v2.py +9 -1
  27. lightning_sdk/k8s_cluster.py +9 -10
  28. lightning_sdk/lightning_cloud/__version__.py +1 -1
  29. lightning_sdk/lightning_cloud/openapi/__init__.py +46 -3
  30. lightning_sdk/lightning_cloud/openapi/api/__init__.py +1 -0
  31. lightning_sdk/lightning_cloud/openapi/api/cloud_space_service_api.py +118 -1
  32. lightning_sdk/lightning_cloud/openapi/api/cluster_service_api.py +787 -125
  33. lightning_sdk/lightning_cloud/openapi/api/data_connection_service_api.py +5 -1
  34. lightning_sdk/lightning_cloud/openapi/api/file_system_service_api.py +11 -11
  35. lightning_sdk/lightning_cloud/openapi/api/k8_s_cluster_service_api.py +246 -19
  36. lightning_sdk/lightning_cloud/openapi/api/lightningwork_service_api.py +116 -11
  37. lightning_sdk/lightning_cloud/openapi/api/lit_logger_service_api.py +588 -2
  38. lightning_sdk/lightning_cloud/openapi/api/models_store_api.py +9 -1
  39. lightning_sdk/lightning_cloud/openapi/api/storage_service_api.py +5 -1
  40. lightning_sdk/lightning_cloud/openapi/api/virtual_machine_service_api.py +557 -0
  41. lightning_sdk/lightning_cloud/openapi/models/__init__.py +45 -3
  42. lightning_sdk/lightning_cloud/openapi/models/cloud_space_environment_template_service_update_cloud_space_environment_template_body.py +27 -1
  43. lightning_sdk/lightning_cloud/openapi/models/cluster_service_add_container_registry_body.py +123 -0
  44. lightning_sdk/lightning_cloud/openapi/models/cluster_service_create_cluster_capacity_reservation_body.py +53 -1
  45. lightning_sdk/lightning_cloud/openapi/models/cluster_service_create_machine_body.py +79 -1
  46. lightning_sdk/lightning_cloud/openapi/models/cluster_service_create_org_cluster_capacity_reservation_body.py +409 -0
  47. lightning_sdk/lightning_cloud/openapi/models/cluster_service_refresh_container_registry_credentials_body.py +97 -0
  48. lightning_sdk/lightning_cloud/openapi/models/cluster_service_report_machine_system_metrics_body.py +123 -0
  49. lightning_sdk/lightning_cloud/openapi/models/cluster_service_validate_container_registry_body.py +97 -0
  50. lightning_sdk/lightning_cloud/openapi/models/externalv1_cloud_space_instance_status.py +27 -1
  51. lightning_sdk/lightning_cloud/openapi/models/lit_logger_service_create_lit_logger_media_body.py +305 -0
  52. lightning_sdk/lightning_cloud/openapi/models/lit_logger_service_update_lit_logger_media_body.py +149 -0
  53. lightning_sdk/lightning_cloud/openapi/models/lit_logger_service_update_metrics_stream_body.py +53 -1
  54. lightning_sdk/lightning_cloud/openapi/models/v1_add_container_registry_response.py +123 -0
  55. lightning_sdk/lightning_cloud/openapi/models/v1_capacity_reservation_used_by.py +227 -0
  56. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_provider.py +1 -1
  57. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_template_config.py +27 -1
  58. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_type.py +1 -0
  59. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_specialized_view.py +1 -0
  60. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_accelerator.py +27 -1
  61. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_capacity_reservation.py +27 -1
  62. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_spec.py +53 -27
  63. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_type.py +0 -1
  64. lightning_sdk/lightning_cloud/openapi/models/v1_container_registry.py +253 -0
  65. lightning_sdk/lightning_cloud/openapi/models/v1_container_registry_info.py +281 -0
  66. lightning_sdk/lightning_cloud/openapi/models/v1_container_registry_integration.py +123 -0
  67. lightning_sdk/lightning_cloud/openapi/models/v1_container_registry_status.py +105 -0
  68. lightning_sdk/lightning_cloud/openapi/models/v1_create_cloud_space_environment_template_request.py +27 -1
  69. lightning_sdk/lightning_cloud/openapi/models/v1_create_lit_logger_media_response.py +149 -0
  70. lightning_sdk/lightning_cloud/openapi/models/v1_create_org_cluster_capacity_reservation_response.py +201 -0
  71. lightning_sdk/lightning_cloud/openapi/models/v1_create_sdk_command_history_request.py +29 -3
  72. lightning_sdk/lightning_cloud/openapi/models/v1_cudo_direct_v1.py +175 -0
  73. lightning_sdk/lightning_cloud/openapi/models/v1_delete_container_registry_response.py +97 -0
  74. lightning_sdk/lightning_cloud/openapi/models/v1_delete_lit_logger_media_response.py +97 -0
  75. lightning_sdk/lightning_cloud/openapi/models/v1_delete_virtual_machine_response.py +97 -0
  76. lightning_sdk/lightning_cloud/openapi/models/{v1_ai_pod_v1.py → v1_ecr_registry_config.py} +49 -49
  77. lightning_sdk/lightning_cloud/openapi/models/v1_ecr_registry_config_input.py +123 -0
  78. lightning_sdk/lightning_cloud/openapi/models/v1_ecr_registry_details.py +201 -0
  79. lightning_sdk/lightning_cloud/openapi/models/v1_external_cluster_spec.py +27 -27
  80. lightning_sdk/lightning_cloud/openapi/models/v1_external_search_user.py +27 -1
  81. lightning_sdk/lightning_cloud/openapi/models/v1_get_artifacts_page_response.py +29 -3
  82. lightning_sdk/lightning_cloud/openapi/models/v1_get_kubernetes_pod_logs_response.py +149 -0
  83. lightning_sdk/lightning_cloud/openapi/models/{v1_get_machine_response.py → v1_get_kubernetes_pod_response.py} +23 -23
  84. lightning_sdk/lightning_cloud/openapi/models/v1_get_user_response.py +27 -1
  85. lightning_sdk/lightning_cloud/openapi/models/v1_job_spec.py +27 -1
  86. lightning_sdk/lightning_cloud/openapi/models/v1_joinable_organization.py +27 -1
  87. lightning_sdk/lightning_cloud/openapi/models/v1_k8s_incident_setting.py +149 -0
  88. lightning_sdk/lightning_cloud/openapi/models/v1_k8s_incident_type.py +108 -0
  89. lightning_sdk/lightning_cloud/openapi/models/v1_kubernetes_direct_settings_v1.py +53 -1
  90. lightning_sdk/lightning_cloud/openapi/models/v1_kubernetes_direct_v1.py +105 -1
  91. lightning_sdk/lightning_cloud/openapi/models/v1_kubernetes_pod.py +27 -1
  92. lightning_sdk/lightning_cloud/openapi/models/v1_kubernetes_pod_logs_page.py +227 -0
  93. lightning_sdk/lightning_cloud/openapi/models/v1_kubevirt_config.py +357 -0
  94. lightning_sdk/lightning_cloud/openapi/models/v1_list_container_registries_response.py +123 -0
  95. lightning_sdk/lightning_cloud/openapi/models/v1_list_kubernetes_pods_response.py +43 -17
  96. lightning_sdk/lightning_cloud/openapi/models/v1_list_kubernetes_pods_sort_order.py +104 -0
  97. lightning_sdk/lightning_cloud/openapi/models/v1_list_lit_logger_media_response.py +149 -0
  98. lightning_sdk/lightning_cloud/openapi/models/v1_list_models_response.py +55 -3
  99. lightning_sdk/lightning_cloud/openapi/models/v1_list_virtual_machines_response.py +123 -0
  100. lightning_sdk/lightning_cloud/openapi/models/v1_lit_logger_media.py +513 -0
  101. lightning_sdk/lightning_cloud/openapi/models/v1_machine.py +53 -53
  102. lightning_sdk/lightning_cloud/openapi/models/v1_machine_direct_v1.py +107 -3
  103. lightning_sdk/lightning_cloud/openapi/models/v1_media_type.py +104 -0
  104. lightning_sdk/lightning_cloud/openapi/models/v1_nebius_direct_v1.py +29 -3
  105. lightning_sdk/lightning_cloud/openapi/models/v1_node_metrics.py +27 -1
  106. lightning_sdk/lightning_cloud/openapi/models/v1_organization.py +27 -1
  107. lightning_sdk/lightning_cloud/openapi/models/v1_refresh_container_registry_credentials_response.py +123 -0
  108. lightning_sdk/lightning_cloud/openapi/models/v1_report_cloud_space_instance_idle_state_response.py +97 -0
  109. lightning_sdk/lightning_cloud/openapi/models/v1_report_machine_system_metrics_response.py +97 -0
  110. lightning_sdk/lightning_cloud/openapi/models/v1_search_user.py +27 -1
  111. lightning_sdk/lightning_cloud/openapi/models/v1_tenant_credentials.py +201 -0
  112. lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +217 -113
  113. lightning_sdk/lightning_cloud/openapi/models/v1_validate_container_registry_response.py +149 -0
  114. lightning_sdk/lightning_cloud/openapi/models/v1_virtual_machine.py +409 -0
  115. lightning_sdk/lightning_cloud/openapi/models/v1_vm_configuration.py +149 -0
  116. lightning_sdk/lightning_cloud/openapi/models/v1_vm_provider_configuration.py +227 -0
  117. lightning_sdk/lightning_cloud/openapi/models/virtual_machine_service_create_virtual_machine_body.py +565 -0
  118. lightning_sdk/lightning_cloud/openapi/models/virtual_machine_service_update_virtual_machine_body.py +97 -0
  119. lightning_sdk/lightning_cloud/openapi/rest.py +2 -2
  120. lightning_sdk/lightning_cloud/rest_client.py +0 -2
  121. lightning_sdk/machine.py +3 -3
  122. lightning_sdk/mmt/base.py +26 -7
  123. lightning_sdk/mmt/mmt.py +11 -6
  124. lightning_sdk/mmt/v1.py +5 -2
  125. lightning_sdk/mmt/v2.py +5 -2
  126. lightning_sdk/organization.py +10 -1
  127. lightning_sdk/owner.py +4 -0
  128. lightning_sdk/plugin.py +2 -2
  129. lightning_sdk/studio.py +47 -6
  130. lightning_sdk/user.py +22 -2
  131. lightning_sdk/utils/logging.py +2 -1
  132. lightning_sdk/utils/resolve.py +9 -7
  133. {lightning_sdk-2025.12.16.dist-info → lightning_sdk-2026.1.22.dist-info}/METADATA +1 -5
  134. {lightning_sdk-2025.12.16.dist-info → lightning_sdk-2026.1.22.dist-info}/RECORD +139 -94
  135. {lightning_sdk-2025.12.16.dist-info → lightning_sdk-2026.1.22.dist-info}/WHEEL +1 -1
  136. lightning_sdk/lightning_cloud/cli/__main__.py +0 -29
  137. lightning_sdk/lightning_cloud/source_code/logs_socket_api.py +0 -103
  138. /lightning_sdk/lightning_cloud/openapi/models/{v1_list_filesystem_mm_ts_response.py → v1_list_filesystem_mmts_response.py} +0 -0
  139. {lightning_sdk-2025.12.16.dist-info → lightning_sdk-2026.1.22.dist-info}/LICENSE +0 -0
  140. {lightning_sdk-2025.12.16.dist-info → lightning_sdk-2026.1.22.dist-info}/entry_points.txt +0 -0
  141. {lightning_sdk-2025.12.16.dist-info → lightning_sdk-2026.1.22.dist-info}/top_level.txt +0 -0
@@ -366,6 +366,7 @@ class DataConnectionServiceApi(object):
366
366
  :param bool include_download_url:
367
367
  :param str cluster_id:
368
368
  :param bool local_index: if true, fetch from the local index
369
+ :param bool include_folder_index: if true, include the folder index in the response
369
370
  :return: V1GetArtifactsPageResponse
370
371
  If the method is called asynchronously,
371
372
  returns the request thread.
@@ -393,12 +394,13 @@ class DataConnectionServiceApi(object):
393
394
  :param bool include_download_url:
394
395
  :param str cluster_id:
395
396
  :param bool local_index: if true, fetch from the local index
397
+ :param bool include_folder_index: if true, include the folder index in the response
396
398
  :return: V1GetArtifactsPageResponse
397
399
  If the method is called asynchronously,
398
400
  returns the request thread.
399
401
  """
400
402
 
401
- all_params = ['project_id', 'id', 'page_number', 'prefix', 'include_download_url', 'cluster_id', 'local_index'] # noqa: E501
403
+ all_params = ['project_id', 'id', 'page_number', 'prefix', 'include_download_url', 'cluster_id', 'local_index', 'include_folder_index'] # noqa: E501
402
404
  all_params.append('async_req')
403
405
  all_params.append('_return_http_data_only')
404
406
  all_params.append('_preload_content')
@@ -441,6 +443,8 @@ class DataConnectionServiceApi(object):
441
443
  query_params.append(('clusterId', params['cluster_id'])) # noqa: E501
442
444
  if 'local_index' in params:
443
445
  query_params.append(('localIndex', params['local_index'])) # noqa: E501
446
+ if 'include_folder_index' in params:
447
+ query_params.append(('includeFolderIndex', params['include_folder_index'])) # noqa: E501
444
448
 
445
449
  header_params = {}
446
450
 
@@ -463,12 +463,12 @@ 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
466
+ def file_system_service_list_filesystem_mmts(self, project_id: 'str', current_id: 'str', **kwargs) -> 'V1ListFilesystemMMTsResponse': # noqa: E501
467
+ """file_system_service_list_filesystem_mmts # noqa: E501
468
468
 
469
469
  This method makes a synchronous HTTP request by default. To make an
470
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)
471
+ >>> thread = api.file_system_service_list_filesystem_mmts(project_id, current_id, async_req=True)
472
472
  >>> result = thread.get()
473
473
 
474
474
  :param async_req bool
@@ -481,17 +481,17 @@ class FileSystemServiceApi(object):
481
481
  """
482
482
  kwargs['_return_http_data_only'] = True
483
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
484
+ return self.file_system_service_list_filesystem_mmts_with_http_info(project_id, current_id, **kwargs) # noqa: E501
485
485
  else:
486
- (data) = self.file_system_service_list_filesystem_mm_ts_with_http_info(project_id, current_id, **kwargs) # noqa: E501
486
+ (data) = self.file_system_service_list_filesystem_mmts_with_http_info(project_id, current_id, **kwargs) # noqa: E501
487
487
  return data
488
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
489
+ def file_system_service_list_filesystem_mmts_with_http_info(self, project_id: 'str', current_id: 'str', **kwargs) -> 'V1ListFilesystemMMTsResponse': # noqa: E501
490
+ """file_system_service_list_filesystem_mmts # noqa: E501
491
491
 
492
492
  This method makes a synchronous HTTP request by default. To make an
493
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)
494
+ >>> thread = api.file_system_service_list_filesystem_mmts_with_http_info(project_id, current_id, async_req=True)
495
495
  >>> result = thread.get()
496
496
 
497
497
  :param async_req bool
@@ -514,18 +514,18 @@ class FileSystemServiceApi(object):
514
514
  if key not in all_params:
515
515
  raise TypeError(
516
516
  "Got an unexpected keyword argument '%s'"
517
- " to method file_system_service_list_filesystem_mm_ts" % key
517
+ " to method file_system_service_list_filesystem_mmts" % key
518
518
  )
519
519
  params[key] = val
520
520
  del params['kwargs']
521
521
  # verify the required parameter 'project_id' is set
522
522
  if ('project_id' not in params or
523
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
524
+ raise ValueError("Missing the required parameter `project_id` when calling `file_system_service_list_filesystem_mmts`") # noqa: E501
525
525
  # verify the required parameter 'current_id' is set
526
526
  if ('current_id' not in params or
527
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
528
+ raise ValueError("Missing the required parameter `current_id` when calling `file_system_service_list_filesystem_mmts`") # noqa: E501
529
529
 
530
530
  collection_formats = {}
531
531
 
@@ -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 list[str] statuses_in:
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 bool deleted:
1539
- :param datetime historical_start: Date ranges for historical pods Historical start time for the pods
1540
- :param datetime historical_end: Historical end time for the pods
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 list[str] statuses_in:
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 bool deleted:
1567
- :param datetime historical_start: Date ranges for historical pods Historical start time for the pods
1568
- :param datetime historical_end: Historical end time for the pods
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', 'statuses_in', 'namespace', 'user_id', 'queue_name', 'deleted', 'historical_start', 'historical_end'] # noqa: E501
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 'statuses_in' in params:
1602
- query_params.append(('statusesIn', params['statuses_in'])) # noqa: E501
1603
- collection_formats['statusesIn'] = 'multi' # noqa: E501
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 'deleted' in params:
1611
- query_params.append(('deleted', params['deleted'])) # noqa: E501
1612
- if 'historical_start' in params:
1613
- query_params.append(('historicalStart', params['historical_start'])) # noqa: E501
1614
- if 'historical_end' in params:
1615
- query_params.append(('historicalEnd', params['historical_end'])) # noqa: E501
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', app_id: 'str', id: 'str', **kwargs) -> 'Externalv1Lightningwork': # noqa: E501
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, app_id, id, async_req=True)
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, app_id, id, **kwargs) # noqa: E501
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, app_id, id, **kwargs) # noqa: E501
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', app_id: 'str', id: 'str', **kwargs) -> 'Externalv1Lightningwork': # noqa: E501
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, app_id, id, async_req=True)
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', 'app_id', 'id'] # noqa: E501
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 `lightningwork_service_get_lightningwork`") # noqa: E501
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 `lightningwork_service_get_lightningwork`") # noqa: E501
552
+ raise ValueError("Missing the required parameter `id` when calling `lightningwork_service_get_lightningwork2`") # noqa: E501
448
553
 
449
554
  collection_formats = {}
450
555