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
@@ -261,6 +261,119 @@ class LitLoggerServiceApi(object):
261
261
  _request_timeout=params.get('_request_timeout'),
262
262
  collection_formats=collection_formats)
263
263
 
264
+ def lit_logger_service_create_lit_logger_media(self, body: 'LitLoggerServiceCreateLitLoggerMediaBody', project_id: 'str', metrics_stream_id: 'str', **kwargs) -> 'V1CreateLitLoggerMediaResponse': # noqa: E501
265
+ """Media logging # noqa: E501
266
+
267
+ This method makes a synchronous HTTP request by default. To make an
268
+ asynchronous HTTP request, please pass async_req=True
269
+ >>> thread = api.lit_logger_service_create_lit_logger_media(body, project_id, metrics_stream_id, async_req=True)
270
+ >>> result = thread.get()
271
+
272
+ :param async_req bool
273
+ :param LitLoggerServiceCreateLitLoggerMediaBody body: (required)
274
+ :param str project_id: (required)
275
+ :param str metrics_stream_id: (required)
276
+ :return: V1CreateLitLoggerMediaResponse
277
+ If the method is called asynchronously,
278
+ returns the request thread.
279
+ """
280
+ kwargs['_return_http_data_only'] = True
281
+ if kwargs.get('async_req'):
282
+ return self.lit_logger_service_create_lit_logger_media_with_http_info(body, project_id, metrics_stream_id, **kwargs) # noqa: E501
283
+ else:
284
+ (data) = self.lit_logger_service_create_lit_logger_media_with_http_info(body, project_id, metrics_stream_id, **kwargs) # noqa: E501
285
+ return data
286
+
287
+ def lit_logger_service_create_lit_logger_media_with_http_info(self, body: 'LitLoggerServiceCreateLitLoggerMediaBody', project_id: 'str', metrics_stream_id: 'str', **kwargs) -> 'V1CreateLitLoggerMediaResponse': # noqa: E501
288
+ """Media logging # noqa: E501
289
+
290
+ This method makes a synchronous HTTP request by default. To make an
291
+ asynchronous HTTP request, please pass async_req=True
292
+ >>> thread = api.lit_logger_service_create_lit_logger_media_with_http_info(body, project_id, metrics_stream_id, async_req=True)
293
+ >>> result = thread.get()
294
+
295
+ :param async_req bool
296
+ :param LitLoggerServiceCreateLitLoggerMediaBody body: (required)
297
+ :param str project_id: (required)
298
+ :param str metrics_stream_id: (required)
299
+ :return: V1CreateLitLoggerMediaResponse
300
+ If the method is called asynchronously,
301
+ returns the request thread.
302
+ """
303
+
304
+ all_params = ['body', 'project_id', 'metrics_stream_id'] # noqa: E501
305
+ all_params.append('async_req')
306
+ all_params.append('_return_http_data_only')
307
+ all_params.append('_preload_content')
308
+ all_params.append('_request_timeout')
309
+
310
+ params = locals()
311
+ for key, val in six.iteritems(params['kwargs']):
312
+ if key not in all_params:
313
+ raise TypeError(
314
+ "Got an unexpected keyword argument '%s'"
315
+ " to method lit_logger_service_create_lit_logger_media" % key
316
+ )
317
+ params[key] = val
318
+ del params['kwargs']
319
+ # verify the required parameter 'body' is set
320
+ if ('body' not in params or
321
+ params['body'] is None):
322
+ raise ValueError("Missing the required parameter `body` when calling `lit_logger_service_create_lit_logger_media`") # noqa: E501
323
+ # verify the required parameter 'project_id' is set
324
+ if ('project_id' not in params or
325
+ params['project_id'] is None):
326
+ raise ValueError("Missing the required parameter `project_id` when calling `lit_logger_service_create_lit_logger_media`") # noqa: E501
327
+ # verify the required parameter 'metrics_stream_id' is set
328
+ if ('metrics_stream_id' not in params or
329
+ params['metrics_stream_id'] is None):
330
+ raise ValueError("Missing the required parameter `metrics_stream_id` when calling `lit_logger_service_create_lit_logger_media`") # noqa: E501
331
+
332
+ collection_formats = {}
333
+
334
+ path_params = {}
335
+ if 'project_id' in params:
336
+ path_params['projectId'] = params['project_id'] # noqa: E501
337
+ if 'metrics_stream_id' in params:
338
+ path_params['metricsStreamId'] = params['metrics_stream_id'] # noqa: E501
339
+
340
+ query_params = []
341
+
342
+ header_params = {}
343
+
344
+ form_params = []
345
+ local_var_files = {}
346
+
347
+ body_params = None
348
+ if 'body' in params:
349
+ body_params = params['body']
350
+ # HTTP header `Accept`
351
+ header_params['Accept'] = self.api_client.select_header_accept(
352
+ ['application/json']) # noqa: E501
353
+
354
+ # HTTP header `Content-Type`
355
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
356
+ ['application/json']) # noqa: E501
357
+
358
+ # Authentication setting
359
+ auth_settings = [] # noqa: E501
360
+
361
+ return self.api_client.call_api(
362
+ '/v1/projects/{projectId}/metrics-streams/{metricsStreamId}/media', 'POST',
363
+ path_params,
364
+ query_params,
365
+ header_params,
366
+ body=body_params,
367
+ post_params=form_params,
368
+ files=local_var_files,
369
+ response_type='V1CreateLitLoggerMediaResponse', # noqa: E501
370
+ auth_settings=auth_settings,
371
+ async_req=params.get('async_req'),
372
+ _return_http_data_only=params.get('_return_http_data_only'),
373
+ _preload_content=params.get('_preload_content', True),
374
+ _request_timeout=params.get('_request_timeout'),
375
+ collection_formats=collection_formats)
376
+
264
377
  def lit_logger_service_create_logger_artifact(self, body: 'LitLoggerServiceCreateLoggerArtifactBody', project_id: 'str', metrics_stream_id: 'str', **kwargs) -> 'V1LoggerArtifact': # noqa: E501
265
378
  """Artifact tracking # noqa: E501
266
379
 
@@ -576,6 +689,115 @@ class LitLoggerServiceApi(object):
576
689
  _request_timeout=params.get('_request_timeout'),
577
690
  collection_formats=collection_formats)
578
691
 
692
+ def lit_logger_service_delete_lit_logger_media(self, project_id: 'str', metrics_stream_id: 'str', id: 'str', **kwargs) -> 'V1DeleteLitLoggerMediaResponse': # noqa: E501
693
+ """lit_logger_service_delete_lit_logger_media # noqa: E501
694
+
695
+ This method makes a synchronous HTTP request by default. To make an
696
+ asynchronous HTTP request, please pass async_req=True
697
+ >>> thread = api.lit_logger_service_delete_lit_logger_media(project_id, metrics_stream_id, id, async_req=True)
698
+ >>> result = thread.get()
699
+
700
+ :param async_req bool
701
+ :param str project_id: (required)
702
+ :param str metrics_stream_id: (required)
703
+ :param str id: (required)
704
+ :return: V1DeleteLitLoggerMediaResponse
705
+ If the method is called asynchronously,
706
+ returns the request thread.
707
+ """
708
+ kwargs['_return_http_data_only'] = True
709
+ if kwargs.get('async_req'):
710
+ return self.lit_logger_service_delete_lit_logger_media_with_http_info(project_id, metrics_stream_id, id, **kwargs) # noqa: E501
711
+ else:
712
+ (data) = self.lit_logger_service_delete_lit_logger_media_with_http_info(project_id, metrics_stream_id, id, **kwargs) # noqa: E501
713
+ return data
714
+
715
+ def lit_logger_service_delete_lit_logger_media_with_http_info(self, project_id: 'str', metrics_stream_id: 'str', id: 'str', **kwargs) -> 'V1DeleteLitLoggerMediaResponse': # noqa: E501
716
+ """lit_logger_service_delete_lit_logger_media # noqa: E501
717
+
718
+ This method makes a synchronous HTTP request by default. To make an
719
+ asynchronous HTTP request, please pass async_req=True
720
+ >>> thread = api.lit_logger_service_delete_lit_logger_media_with_http_info(project_id, metrics_stream_id, id, async_req=True)
721
+ >>> result = thread.get()
722
+
723
+ :param async_req bool
724
+ :param str project_id: (required)
725
+ :param str metrics_stream_id: (required)
726
+ :param str id: (required)
727
+ :return: V1DeleteLitLoggerMediaResponse
728
+ If the method is called asynchronously,
729
+ returns the request thread.
730
+ """
731
+
732
+ all_params = ['project_id', 'metrics_stream_id', 'id'] # noqa: E501
733
+ all_params.append('async_req')
734
+ all_params.append('_return_http_data_only')
735
+ all_params.append('_preload_content')
736
+ all_params.append('_request_timeout')
737
+
738
+ params = locals()
739
+ for key, val in six.iteritems(params['kwargs']):
740
+ if key not in all_params:
741
+ raise TypeError(
742
+ "Got an unexpected keyword argument '%s'"
743
+ " to method lit_logger_service_delete_lit_logger_media" % key
744
+ )
745
+ params[key] = val
746
+ del params['kwargs']
747
+ # verify the required parameter 'project_id' is set
748
+ if ('project_id' not in params or
749
+ params['project_id'] is None):
750
+ raise ValueError("Missing the required parameter `project_id` when calling `lit_logger_service_delete_lit_logger_media`") # noqa: E501
751
+ # verify the required parameter 'metrics_stream_id' is set
752
+ if ('metrics_stream_id' not in params or
753
+ params['metrics_stream_id'] is None):
754
+ raise ValueError("Missing the required parameter `metrics_stream_id` when calling `lit_logger_service_delete_lit_logger_media`") # noqa: E501
755
+ # verify the required parameter 'id' is set
756
+ if ('id' not in params or
757
+ params['id'] is None):
758
+ raise ValueError("Missing the required parameter `id` when calling `lit_logger_service_delete_lit_logger_media`") # noqa: E501
759
+
760
+ collection_formats = {}
761
+
762
+ path_params = {}
763
+ if 'project_id' in params:
764
+ path_params['projectId'] = params['project_id'] # noqa: E501
765
+ if 'metrics_stream_id' in params:
766
+ path_params['metricsStreamId'] = params['metrics_stream_id'] # noqa: E501
767
+ if 'id' in params:
768
+ path_params['id'] = params['id'] # noqa: E501
769
+
770
+ query_params = []
771
+
772
+ header_params = {}
773
+
774
+ form_params = []
775
+ local_var_files = {}
776
+
777
+ body_params = None
778
+ # HTTP header `Accept`
779
+ header_params['Accept'] = self.api_client.select_header_accept(
780
+ ['application/json']) # noqa: E501
781
+
782
+ # Authentication setting
783
+ auth_settings = [] # noqa: E501
784
+
785
+ return self.api_client.call_api(
786
+ '/v1/projects/{projectId}/metrics-streams/{metricsStreamId}/media/{id}', 'DELETE',
787
+ path_params,
788
+ query_params,
789
+ header_params,
790
+ body=body_params,
791
+ post_params=form_params,
792
+ files=local_var_files,
793
+ response_type='V1DeleteLitLoggerMediaResponse', # noqa: E501
794
+ auth_settings=auth_settings,
795
+ async_req=params.get('async_req'),
796
+ _return_http_data_only=params.get('_return_http_data_only'),
797
+ _preload_content=params.get('_preload_content', True),
798
+ _request_timeout=params.get('_request_timeout'),
799
+ collection_formats=collection_formats)
800
+
579
801
  def lit_logger_service_delete_logger_artifact(self, project_id: 'str', metrics_stream_id: 'str', id: 'str', **kwargs) -> 'V1DeleteLoggerArtifactResponse': # noqa: E501
580
802
  """lit_logger_service_delete_logger_artifact # noqa: E501
581
803
 
@@ -883,6 +1105,115 @@ class LitLoggerServiceApi(object):
883
1105
  _request_timeout=params.get('_request_timeout'),
884
1106
  collection_formats=collection_formats)
885
1107
 
1108
+ def lit_logger_service_get_lit_logger_media(self, project_id: 'str', metrics_stream_id: 'str', id: 'str', **kwargs) -> 'V1LitLoggerMedia': # noqa: E501
1109
+ """lit_logger_service_get_lit_logger_media # noqa: E501
1110
+
1111
+ This method makes a synchronous HTTP request by default. To make an
1112
+ asynchronous HTTP request, please pass async_req=True
1113
+ >>> thread = api.lit_logger_service_get_lit_logger_media(project_id, metrics_stream_id, id, async_req=True)
1114
+ >>> result = thread.get()
1115
+
1116
+ :param async_req bool
1117
+ :param str project_id: (required)
1118
+ :param str metrics_stream_id: (required)
1119
+ :param str id: (required)
1120
+ :return: V1LitLoggerMedia
1121
+ If the method is called asynchronously,
1122
+ returns the request thread.
1123
+ """
1124
+ kwargs['_return_http_data_only'] = True
1125
+ if kwargs.get('async_req'):
1126
+ return self.lit_logger_service_get_lit_logger_media_with_http_info(project_id, metrics_stream_id, id, **kwargs) # noqa: E501
1127
+ else:
1128
+ (data) = self.lit_logger_service_get_lit_logger_media_with_http_info(project_id, metrics_stream_id, id, **kwargs) # noqa: E501
1129
+ return data
1130
+
1131
+ def lit_logger_service_get_lit_logger_media_with_http_info(self, project_id: 'str', metrics_stream_id: 'str', id: 'str', **kwargs) -> 'V1LitLoggerMedia': # noqa: E501
1132
+ """lit_logger_service_get_lit_logger_media # noqa: E501
1133
+
1134
+ This method makes a synchronous HTTP request by default. To make an
1135
+ asynchronous HTTP request, please pass async_req=True
1136
+ >>> thread = api.lit_logger_service_get_lit_logger_media_with_http_info(project_id, metrics_stream_id, id, async_req=True)
1137
+ >>> result = thread.get()
1138
+
1139
+ :param async_req bool
1140
+ :param str project_id: (required)
1141
+ :param str metrics_stream_id: (required)
1142
+ :param str id: (required)
1143
+ :return: V1LitLoggerMedia
1144
+ If the method is called asynchronously,
1145
+ returns the request thread.
1146
+ """
1147
+
1148
+ all_params = ['project_id', 'metrics_stream_id', 'id'] # noqa: E501
1149
+ all_params.append('async_req')
1150
+ all_params.append('_return_http_data_only')
1151
+ all_params.append('_preload_content')
1152
+ all_params.append('_request_timeout')
1153
+
1154
+ params = locals()
1155
+ for key, val in six.iteritems(params['kwargs']):
1156
+ if key not in all_params:
1157
+ raise TypeError(
1158
+ "Got an unexpected keyword argument '%s'"
1159
+ " to method lit_logger_service_get_lit_logger_media" % key
1160
+ )
1161
+ params[key] = val
1162
+ del params['kwargs']
1163
+ # verify the required parameter 'project_id' is set
1164
+ if ('project_id' not in params or
1165
+ params['project_id'] is None):
1166
+ raise ValueError("Missing the required parameter `project_id` when calling `lit_logger_service_get_lit_logger_media`") # noqa: E501
1167
+ # verify the required parameter 'metrics_stream_id' is set
1168
+ if ('metrics_stream_id' not in params or
1169
+ params['metrics_stream_id'] is None):
1170
+ raise ValueError("Missing the required parameter `metrics_stream_id` when calling `lit_logger_service_get_lit_logger_media`") # noqa: E501
1171
+ # verify the required parameter 'id' is set
1172
+ if ('id' not in params or
1173
+ params['id'] is None):
1174
+ raise ValueError("Missing the required parameter `id` when calling `lit_logger_service_get_lit_logger_media`") # noqa: E501
1175
+
1176
+ collection_formats = {}
1177
+
1178
+ path_params = {}
1179
+ if 'project_id' in params:
1180
+ path_params['projectId'] = params['project_id'] # noqa: E501
1181
+ if 'metrics_stream_id' in params:
1182
+ path_params['metricsStreamId'] = params['metrics_stream_id'] # noqa: E501
1183
+ if 'id' in params:
1184
+ path_params['id'] = params['id'] # noqa: E501
1185
+
1186
+ query_params = []
1187
+
1188
+ header_params = {}
1189
+
1190
+ form_params = []
1191
+ local_var_files = {}
1192
+
1193
+ body_params = None
1194
+ # HTTP header `Accept`
1195
+ header_params['Accept'] = self.api_client.select_header_accept(
1196
+ ['application/json']) # noqa: E501
1197
+
1198
+ # Authentication setting
1199
+ auth_settings = [] # noqa: E501
1200
+
1201
+ return self.api_client.call_api(
1202
+ '/v1/projects/{projectId}/metrics-streams/{metricsStreamId}/media/{id}', 'GET',
1203
+ path_params,
1204
+ query_params,
1205
+ header_params,
1206
+ body=body_params,
1207
+ post_params=form_params,
1208
+ files=local_var_files,
1209
+ response_type='V1LitLoggerMedia', # noqa: E501
1210
+ auth_settings=auth_settings,
1211
+ async_req=params.get('async_req'),
1212
+ _return_http_data_only=params.get('_return_http_data_only'),
1213
+ _preload_content=params.get('_preload_content', True),
1214
+ _request_timeout=params.get('_request_timeout'),
1215
+ collection_formats=collection_formats)
1216
+
886
1217
  def lit_logger_service_get_logger_metrics(self, project_id: 'str', **kwargs) -> 'V1GetLoggerMetricsResponse': # noqa: E501
887
1218
  """lit_logger_service_get_logger_metrics # noqa: E501
888
1219
 
@@ -900,6 +1231,7 @@ class LitLoggerServiceApi(object):
900
1231
  :param list[str] names:
901
1232
  :param datetime start:
902
1233
  :param datetime end:
1234
+ :param int samples:
903
1235
  :return: V1GetLoggerMetricsResponse
904
1236
  If the method is called asynchronously,
905
1237
  returns the request thread.
@@ -928,12 +1260,13 @@ class LitLoggerServiceApi(object):
928
1260
  :param list[str] names:
929
1261
  :param datetime start:
930
1262
  :param datetime end:
1263
+ :param int samples:
931
1264
  :return: V1GetLoggerMetricsResponse
932
1265
  If the method is called asynchronously,
933
1266
  returns the request thread.
934
1267
  """
935
1268
 
936
- all_params = ['project_id', 'user_ids', 'cloudspace_ids', 'app_ids', 'ids', 'names', 'start', 'end'] # noqa: E501
1269
+ all_params = ['project_id', 'user_ids', 'cloudspace_ids', 'app_ids', 'ids', 'names', 'start', 'end', 'samples'] # noqa: E501
937
1270
  all_params.append('async_req')
938
1271
  all_params.append('_return_http_data_only')
939
1272
  all_params.append('_preload_content')
@@ -979,6 +1312,8 @@ class LitLoggerServiceApi(object):
979
1312
  query_params.append(('start', params['start'])) # noqa: E501
980
1313
  if 'end' in params:
981
1314
  query_params.append(('end', params['end'])) # noqa: E501
1315
+ if 'samples' in params:
1316
+ query_params.append(('samples', params['samples'])) # noqa: E501
982
1317
 
983
1318
  header_params = {}
984
1319
 
@@ -1215,6 +1550,131 @@ class LitLoggerServiceApi(object):
1215
1550
  _request_timeout=params.get('_request_timeout'),
1216
1551
  collection_formats=collection_formats)
1217
1552
 
1553
+ def lit_logger_service_list_lit_logger_media(self, project_id: 'str', metrics_stream_id: 'str', **kwargs) -> 'V1ListLitLoggerMediaResponse': # noqa: E501
1554
+ """lit_logger_service_list_lit_logger_media # noqa: E501
1555
+
1556
+ This method makes a synchronous HTTP request by default. To make an
1557
+ asynchronous HTTP request, please pass async_req=True
1558
+ >>> thread = api.lit_logger_service_list_lit_logger_media(project_id, metrics_stream_id, async_req=True)
1559
+ >>> result = thread.get()
1560
+
1561
+ :param async_req bool
1562
+ :param str project_id: (required)
1563
+ :param str metrics_stream_id: (required)
1564
+ :param str media_type:
1565
+ :param str step:
1566
+ :param str epoch:
1567
+ :param str name_prefix:
1568
+ :param int limit:
1569
+ :param int offset:
1570
+ :return: V1ListLitLoggerMediaResponse
1571
+ If the method is called asynchronously,
1572
+ returns the request thread.
1573
+ """
1574
+ kwargs['_return_http_data_only'] = True
1575
+ if kwargs.get('async_req'):
1576
+ return self.lit_logger_service_list_lit_logger_media_with_http_info(project_id, metrics_stream_id, **kwargs) # noqa: E501
1577
+ else:
1578
+ (data) = self.lit_logger_service_list_lit_logger_media_with_http_info(project_id, metrics_stream_id, **kwargs) # noqa: E501
1579
+ return data
1580
+
1581
+ def lit_logger_service_list_lit_logger_media_with_http_info(self, project_id: 'str', metrics_stream_id: 'str', **kwargs) -> 'V1ListLitLoggerMediaResponse': # noqa: E501
1582
+ """lit_logger_service_list_lit_logger_media # noqa: E501
1583
+
1584
+ This method makes a synchronous HTTP request by default. To make an
1585
+ asynchronous HTTP request, please pass async_req=True
1586
+ >>> thread = api.lit_logger_service_list_lit_logger_media_with_http_info(project_id, metrics_stream_id, async_req=True)
1587
+ >>> result = thread.get()
1588
+
1589
+ :param async_req bool
1590
+ :param str project_id: (required)
1591
+ :param str metrics_stream_id: (required)
1592
+ :param str media_type:
1593
+ :param str step:
1594
+ :param str epoch:
1595
+ :param str name_prefix:
1596
+ :param int limit:
1597
+ :param int offset:
1598
+ :return: V1ListLitLoggerMediaResponse
1599
+ If the method is called asynchronously,
1600
+ returns the request thread.
1601
+ """
1602
+
1603
+ all_params = ['project_id', 'metrics_stream_id', 'media_type', 'step', 'epoch', 'name_prefix', 'limit', 'offset'] # noqa: E501
1604
+ all_params.append('async_req')
1605
+ all_params.append('_return_http_data_only')
1606
+ all_params.append('_preload_content')
1607
+ all_params.append('_request_timeout')
1608
+
1609
+ params = locals()
1610
+ for key, val in six.iteritems(params['kwargs']):
1611
+ if key not in all_params:
1612
+ raise TypeError(
1613
+ "Got an unexpected keyword argument '%s'"
1614
+ " to method lit_logger_service_list_lit_logger_media" % key
1615
+ )
1616
+ params[key] = val
1617
+ del params['kwargs']
1618
+ # verify the required parameter 'project_id' is set
1619
+ if ('project_id' not in params or
1620
+ params['project_id'] is None):
1621
+ raise ValueError("Missing the required parameter `project_id` when calling `lit_logger_service_list_lit_logger_media`") # noqa: E501
1622
+ # verify the required parameter 'metrics_stream_id' is set
1623
+ if ('metrics_stream_id' not in params or
1624
+ params['metrics_stream_id'] is None):
1625
+ raise ValueError("Missing the required parameter `metrics_stream_id` when calling `lit_logger_service_list_lit_logger_media`") # noqa: E501
1626
+
1627
+ collection_formats = {}
1628
+
1629
+ path_params = {}
1630
+ if 'project_id' in params:
1631
+ path_params['projectId'] = params['project_id'] # noqa: E501
1632
+ if 'metrics_stream_id' in params:
1633
+ path_params['metricsStreamId'] = params['metrics_stream_id'] # noqa: E501
1634
+
1635
+ query_params = []
1636
+ if 'media_type' in params:
1637
+ query_params.append(('mediaType', params['media_type'])) # noqa: E501
1638
+ if 'step' in params:
1639
+ query_params.append(('step', params['step'])) # noqa: E501
1640
+ if 'epoch' in params:
1641
+ query_params.append(('epoch', params['epoch'])) # noqa: E501
1642
+ if 'name_prefix' in params:
1643
+ query_params.append(('namePrefix', params['name_prefix'])) # noqa: E501
1644
+ if 'limit' in params:
1645
+ query_params.append(('limit', params['limit'])) # noqa: E501
1646
+ if 'offset' in params:
1647
+ query_params.append(('offset', params['offset'])) # noqa: E501
1648
+
1649
+ header_params = {}
1650
+
1651
+ form_params = []
1652
+ local_var_files = {}
1653
+
1654
+ body_params = None
1655
+ # HTTP header `Accept`
1656
+ header_params['Accept'] = self.api_client.select_header_accept(
1657
+ ['application/json']) # noqa: E501
1658
+
1659
+ # Authentication setting
1660
+ auth_settings = [] # noqa: E501
1661
+
1662
+ return self.api_client.call_api(
1663
+ '/v1/projects/{projectId}/metrics-streams/{metricsStreamId}/media', 'GET',
1664
+ path_params,
1665
+ query_params,
1666
+ header_params,
1667
+ body=body_params,
1668
+ post_params=form_params,
1669
+ files=local_var_files,
1670
+ response_type='V1ListLitLoggerMediaResponse', # noqa: E501
1671
+ auth_settings=auth_settings,
1672
+ async_req=params.get('async_req'),
1673
+ _return_http_data_only=params.get('_return_http_data_only'),
1674
+ _preload_content=params.get('_preload_content', True),
1675
+ _request_timeout=params.get('_request_timeout'),
1676
+ collection_formats=collection_formats)
1677
+
1218
1678
  def lit_logger_service_list_logger_artifacts(self, project_id: 'str', metrics_stream_id: 'str', **kwargs) -> 'V1ListLoggerArtifactResponse': # noqa: E501
1219
1679
  """lit_logger_service_list_logger_artifacts # noqa: E501
1220
1680
 
@@ -1332,6 +1792,7 @@ class LitLoggerServiceApi(object):
1332
1792
  :param int limit:
1333
1793
  :param int offset:
1334
1794
  :param str order_by:
1795
+ :param list[str] ids: filter by specific metric stream IDs
1335
1796
  :return: V1ListMetricsStreamsResponse
1336
1797
  If the method is called asynchronously,
1337
1798
  returns the request thread.
@@ -1359,12 +1820,13 @@ class LitLoggerServiceApi(object):
1359
1820
  :param int limit:
1360
1821
  :param int offset:
1361
1822
  :param str order_by:
1823
+ :param list[str] ids: filter by specific metric stream IDs
1362
1824
  :return: V1ListMetricsStreamsResponse
1363
1825
  If the method is called asynchronously,
1364
1826
  returns the request thread.
1365
1827
  """
1366
1828
 
1367
- all_params = ['project_id', 'user_id', 'cloud_space_id', 'app_id', 'limit', 'offset', 'order_by'] # noqa: E501
1829
+ all_params = ['project_id', 'user_id', 'cloud_space_id', 'app_id', 'limit', 'offset', 'order_by', 'ids'] # noqa: E501
1368
1830
  all_params.append('async_req')
1369
1831
  all_params.append('_return_http_data_only')
1370
1832
  all_params.append('_preload_content')
@@ -1403,6 +1865,9 @@ class LitLoggerServiceApi(object):
1403
1865
  query_params.append(('offset', params['offset'])) # noqa: E501
1404
1866
  if 'order_by' in params:
1405
1867
  query_params.append(('orderBy', params['order_by'])) # noqa: E501
1868
+ if 'ids' in params:
1869
+ query_params.append(('ids', params['ids'])) # noqa: E501
1870
+ collection_formats['ids'] = 'multi' # noqa: E501
1406
1871
 
1407
1872
  header_params = {}
1408
1873
 
@@ -1433,6 +1898,127 @@ class LitLoggerServiceApi(object):
1433
1898
  _request_timeout=params.get('_request_timeout'),
1434
1899
  collection_formats=collection_formats)
1435
1900
 
1901
+ def lit_logger_service_update_lit_logger_media(self, body: 'LitLoggerServiceUpdateLitLoggerMediaBody', project_id: 'str', metrics_stream_id: 'str', id: 'str', **kwargs) -> 'V1LitLoggerMedia': # noqa: E501
1902
+ """lit_logger_service_update_lit_logger_media # noqa: E501
1903
+
1904
+ This method makes a synchronous HTTP request by default. To make an
1905
+ asynchronous HTTP request, please pass async_req=True
1906
+ >>> thread = api.lit_logger_service_update_lit_logger_media(body, project_id, metrics_stream_id, id, async_req=True)
1907
+ >>> result = thread.get()
1908
+
1909
+ :param async_req bool
1910
+ :param LitLoggerServiceUpdateLitLoggerMediaBody body: (required)
1911
+ :param str project_id: (required)
1912
+ :param str metrics_stream_id: (required)
1913
+ :param str id: (required)
1914
+ :return: V1LitLoggerMedia
1915
+ If the method is called asynchronously,
1916
+ returns the request thread.
1917
+ """
1918
+ kwargs['_return_http_data_only'] = True
1919
+ if kwargs.get('async_req'):
1920
+ return self.lit_logger_service_update_lit_logger_media_with_http_info(body, project_id, metrics_stream_id, id, **kwargs) # noqa: E501
1921
+ else:
1922
+ (data) = self.lit_logger_service_update_lit_logger_media_with_http_info(body, project_id, metrics_stream_id, id, **kwargs) # noqa: E501
1923
+ return data
1924
+
1925
+ def lit_logger_service_update_lit_logger_media_with_http_info(self, body: 'LitLoggerServiceUpdateLitLoggerMediaBody', project_id: 'str', metrics_stream_id: 'str', id: 'str', **kwargs) -> 'V1LitLoggerMedia': # noqa: E501
1926
+ """lit_logger_service_update_lit_logger_media # noqa: E501
1927
+
1928
+ This method makes a synchronous HTTP request by default. To make an
1929
+ asynchronous HTTP request, please pass async_req=True
1930
+ >>> thread = api.lit_logger_service_update_lit_logger_media_with_http_info(body, project_id, metrics_stream_id, id, async_req=True)
1931
+ >>> result = thread.get()
1932
+
1933
+ :param async_req bool
1934
+ :param LitLoggerServiceUpdateLitLoggerMediaBody body: (required)
1935
+ :param str project_id: (required)
1936
+ :param str metrics_stream_id: (required)
1937
+ :param str id: (required)
1938
+ :return: V1LitLoggerMedia
1939
+ If the method is called asynchronously,
1940
+ returns the request thread.
1941
+ """
1942
+
1943
+ all_params = ['body', 'project_id', 'metrics_stream_id', 'id'] # noqa: E501
1944
+ all_params.append('async_req')
1945
+ all_params.append('_return_http_data_only')
1946
+ all_params.append('_preload_content')
1947
+ all_params.append('_request_timeout')
1948
+
1949
+ params = locals()
1950
+ for key, val in six.iteritems(params['kwargs']):
1951
+ if key not in all_params:
1952
+ raise TypeError(
1953
+ "Got an unexpected keyword argument '%s'"
1954
+ " to method lit_logger_service_update_lit_logger_media" % key
1955
+ )
1956
+ params[key] = val
1957
+ del params['kwargs']
1958
+ # verify the required parameter 'body' is set
1959
+ if ('body' not in params or
1960
+ params['body'] is None):
1961
+ raise ValueError("Missing the required parameter `body` when calling `lit_logger_service_update_lit_logger_media`") # noqa: E501
1962
+ # verify the required parameter 'project_id' is set
1963
+ if ('project_id' not in params or
1964
+ params['project_id'] is None):
1965
+ raise ValueError("Missing the required parameter `project_id` when calling `lit_logger_service_update_lit_logger_media`") # noqa: E501
1966
+ # verify the required parameter 'metrics_stream_id' is set
1967
+ if ('metrics_stream_id' not in params or
1968
+ params['metrics_stream_id'] is None):
1969
+ raise ValueError("Missing the required parameter `metrics_stream_id` when calling `lit_logger_service_update_lit_logger_media`") # noqa: E501
1970
+ # verify the required parameter 'id' is set
1971
+ if ('id' not in params or
1972
+ params['id'] is None):
1973
+ raise ValueError("Missing the required parameter `id` when calling `lit_logger_service_update_lit_logger_media`") # noqa: E501
1974
+
1975
+ collection_formats = {}
1976
+
1977
+ path_params = {}
1978
+ if 'project_id' in params:
1979
+ path_params['projectId'] = params['project_id'] # noqa: E501
1980
+ if 'metrics_stream_id' in params:
1981
+ path_params['metricsStreamId'] = params['metrics_stream_id'] # noqa: E501
1982
+ if 'id' in params:
1983
+ path_params['id'] = params['id'] # noqa: E501
1984
+
1985
+ query_params = []
1986
+
1987
+ header_params = {}
1988
+
1989
+ form_params = []
1990
+ local_var_files = {}
1991
+
1992
+ body_params = None
1993
+ if 'body' in params:
1994
+ body_params = params['body']
1995
+ # HTTP header `Accept`
1996
+ header_params['Accept'] = self.api_client.select_header_accept(
1997
+ ['application/json']) # noqa: E501
1998
+
1999
+ # HTTP header `Content-Type`
2000
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
2001
+ ['application/json']) # noqa: E501
2002
+
2003
+ # Authentication setting
2004
+ auth_settings = [] # noqa: E501
2005
+
2006
+ return self.api_client.call_api(
2007
+ '/v1/projects/{projectId}/metrics-streams/{metricsStreamId}/media/{id}', 'PUT',
2008
+ path_params,
2009
+ query_params,
2010
+ header_params,
2011
+ body=body_params,
2012
+ post_params=form_params,
2013
+ files=local_var_files,
2014
+ response_type='V1LitLoggerMedia', # noqa: E501
2015
+ auth_settings=auth_settings,
2016
+ async_req=params.get('async_req'),
2017
+ _return_http_data_only=params.get('_return_http_data_only'),
2018
+ _preload_content=params.get('_preload_content', True),
2019
+ _request_timeout=params.get('_request_timeout'),
2020
+ collection_formats=collection_formats)
2021
+
1436
2022
  def lit_logger_service_update_metrics_stream(self, body: 'LitLoggerServiceUpdateMetricsStreamBody', project_id: 'str', id: 'str', **kwargs) -> 'V1MetricsStream': # noqa: E501
1437
2023
  """lit_logger_service_update_metrics_stream # noqa: E501
1438
2024