lightning-sdk 2025.9.16__py3-none-any.whl → 2025.9.29__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 (78) hide show
  1. lightning_sdk/__init__.py +4 -3
  2. lightning_sdk/api/cloud_account_api.py +12 -1
  3. lightning_sdk/api/job_api.py +12 -11
  4. lightning_sdk/api/mmt_api.py +1 -1
  5. lightning_sdk/api/studio_api.py +1 -1
  6. lightning_sdk/api/teamspace_api.py +18 -0
  7. lightning_sdk/api/user_api.py +8 -2
  8. lightning_sdk/cli/entrypoint.py +3 -1
  9. lightning_sdk/cli/groups.py +8 -1
  10. lightning_sdk/cli/legacy/entrypoint.py +1 -1
  11. lightning_sdk/cli/studio/create.py +19 -5
  12. lightning_sdk/cli/studio/delete.py +9 -5
  13. lightning_sdk/cli/studio/list.py +5 -1
  14. lightning_sdk/cli/studio/ssh.py +9 -3
  15. lightning_sdk/cli/studio/start.py +26 -3
  16. lightning_sdk/cli/studio/stop.py +7 -3
  17. lightning_sdk/cli/studio/switch.py +21 -5
  18. lightning_sdk/cli/utils/owner_selection.py +110 -0
  19. lightning_sdk/cli/utils/studio_selection.py +22 -15
  20. lightning_sdk/cli/utils/teamspace_selection.py +63 -62
  21. lightning_sdk/cli/vm/__init__.py +20 -0
  22. lightning_sdk/cli/vm/create.py +33 -0
  23. lightning_sdk/cli/vm/delete.py +25 -0
  24. lightning_sdk/cli/vm/list.py +30 -0
  25. lightning_sdk/cli/vm/ssh.py +31 -0
  26. lightning_sdk/cli/vm/start.py +60 -0
  27. lightning_sdk/cli/vm/stop.py +25 -0
  28. lightning_sdk/cli/vm/switch.py +38 -0
  29. lightning_sdk/lightning_cloud/openapi/__init__.py +20 -1
  30. lightning_sdk/lightning_cloud/openapi/api/assistants_service_api.py +2 -95
  31. lightning_sdk/lightning_cloud/openapi/api/billing_service_api.py +24 -8
  32. lightning_sdk/lightning_cloud/openapi/api/cluster_service_api.py +420 -0
  33. lightning_sdk/lightning_cloud/openapi/api/jobs_service_api.py +121 -0
  34. lightning_sdk/lightning_cloud/openapi/api/storage_service_api.py +655 -0
  35. lightning_sdk/lightning_cloud/openapi/models/__init__.py +20 -1
  36. lightning_sdk/lightning_cloud/openapi/models/create_machine_request_represents_the_request_to_create_a_machine.py +435 -0
  37. lightning_sdk/lightning_cloud/openapi/models/job_id_reportroutingtelemetry_body.py +123 -0
  38. lightning_sdk/lightning_cloud/openapi/models/project_id_storagetransfers_body.py +149 -0
  39. lightning_sdk/lightning_cloud/openapi/models/user_id_affiliatelinks_body.py +107 -3
  40. lightning_sdk/lightning_cloud/openapi/models/v1_abort_storage_transfer_response.py +97 -0
  41. lightning_sdk/lightning_cloud/openapi/models/v1_assistant_session_daily_aggregated.py +27 -1
  42. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_provider.py +2 -0
  43. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_accelerator.py +27 -1
  44. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_spec.py +53 -1
  45. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_type.py +1 -0
  46. lightning_sdk/lightning_cloud/openapi/models/v1_create_machine_response.py +123 -0
  47. lightning_sdk/lightning_cloud/openapi/models/v1_create_project_request.py +27 -1
  48. lightning_sdk/lightning_cloud/openapi/models/v1_delete_machine_response.py +97 -0
  49. lightning_sdk/lightning_cloud/openapi/models/v1_external_cluster_spec.py +27 -1
  50. lightning_sdk/lightning_cloud/openapi/models/v1_get_machine_response.py +123 -0
  51. lightning_sdk/lightning_cloud/openapi/models/v1_get_user_response.py +27 -1
  52. lightning_sdk/lightning_cloud/openapi/models/v1_kubernetes_direct_v1.py +27 -1
  53. lightning_sdk/lightning_cloud/openapi/models/v1_lightning_elastic_cluster_v1.py +97 -0
  54. lightning_sdk/lightning_cloud/openapi/models/{v1_get_model_total_usage_metrics_response.py → v1_list_machines_response.py} +37 -37
  55. lightning_sdk/lightning_cloud/openapi/models/v1_list_storage_transfers_response.py +123 -0
  56. lightning_sdk/lightning_cloud/openapi/models/v1_machine.py +539 -0
  57. lightning_sdk/lightning_cloud/openapi/models/v1_machine_direct_v1.py +123 -0
  58. lightning_sdk/lightning_cloud/openapi/models/v1_pause_storage_transfer_response.py +97 -0
  59. lightning_sdk/lightning_cloud/openapi/models/v1_purchase_annual_upsell_request.py +123 -0
  60. lightning_sdk/lightning_cloud/openapi/models/v1_report_deployment_routing_telemetry_response.py +97 -0
  61. lightning_sdk/lightning_cloud/openapi/models/v1_resume_storage_transfer_response.py +97 -0
  62. lightning_sdk/lightning_cloud/openapi/models/v1_routing_telemetry.py +79 -1
  63. lightning_sdk/lightning_cloud/openapi/models/v1_rule_resource.py +1 -0
  64. lightning_sdk/lightning_cloud/openapi/models/v1_slack_notifier.py +149 -0
  65. lightning_sdk/lightning_cloud/openapi/models/v1_slack_notifier_type.py +105 -0
  66. lightning_sdk/lightning_cloud/openapi/models/v1_storage_transfer.py +435 -0
  67. lightning_sdk/lightning_cloud/openapi/models/v1_storage_transfer_status.py +108 -0
  68. lightning_sdk/lightning_cloud/openapi/models/v1_update_user_request.py +27 -1
  69. lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +105 -79
  70. lightning_sdk/machine.py +16 -1
  71. lightning_sdk/studio.py +55 -11
  72. lightning_sdk/teamspace.py +65 -2
  73. {lightning_sdk-2025.9.16.dist-info → lightning_sdk-2025.9.29.dist-info}/METADATA +1 -1
  74. {lightning_sdk-2025.9.16.dist-info → lightning_sdk-2025.9.29.dist-info}/RECORD +78 -50
  75. {lightning_sdk-2025.9.16.dist-info → lightning_sdk-2025.9.29.dist-info}/LICENSE +0 -0
  76. {lightning_sdk-2025.9.16.dist-info → lightning_sdk-2025.9.29.dist-info}/WHEEL +0 -0
  77. {lightning_sdk-2025.9.16.dist-info → lightning_sdk-2025.9.29.dist-info}/entry_points.txt +0 -0
  78. {lightning_sdk-2025.9.16.dist-info → lightning_sdk-2025.9.29.dist-info}/top_level.txt +0 -0
@@ -43,6 +43,119 @@ class StorageServiceApi(object):
43
43
  api_client = ApiClient()
44
44
  self.api_client = api_client
45
45
 
46
+ def storage_service_abort_storage_transfer(self, body: 'object', project_id: 'str', id: 'str', **kwargs) -> 'V1AbortStorageTransferResponse': # noqa: E501
47
+ """storage_service_abort_storage_transfer # noqa: E501
48
+
49
+ This method makes a synchronous HTTP request by default. To make an
50
+ asynchronous HTTP request, please pass async_req=True
51
+ >>> thread = api.storage_service_abort_storage_transfer(body, project_id, id, async_req=True)
52
+ >>> result = thread.get()
53
+
54
+ :param async_req bool
55
+ :param object body: (required)
56
+ :param str project_id: (required)
57
+ :param str id: (required)
58
+ :return: V1AbortStorageTransferResponse
59
+ If the method is called asynchronously,
60
+ returns the request thread.
61
+ """
62
+ kwargs['_return_http_data_only'] = True
63
+ if kwargs.get('async_req'):
64
+ return self.storage_service_abort_storage_transfer_with_http_info(body, project_id, id, **kwargs) # noqa: E501
65
+ else:
66
+ (data) = self.storage_service_abort_storage_transfer_with_http_info(body, project_id, id, **kwargs) # noqa: E501
67
+ return data
68
+
69
+ def storage_service_abort_storage_transfer_with_http_info(self, body: 'object', project_id: 'str', id: 'str', **kwargs) -> 'V1AbortStorageTransferResponse': # noqa: E501
70
+ """storage_service_abort_storage_transfer # noqa: E501
71
+
72
+ This method makes a synchronous HTTP request by default. To make an
73
+ asynchronous HTTP request, please pass async_req=True
74
+ >>> thread = api.storage_service_abort_storage_transfer_with_http_info(body, project_id, id, async_req=True)
75
+ >>> result = thread.get()
76
+
77
+ :param async_req bool
78
+ :param object body: (required)
79
+ :param str project_id: (required)
80
+ :param str id: (required)
81
+ :return: V1AbortStorageTransferResponse
82
+ If the method is called asynchronously,
83
+ returns the request thread.
84
+ """
85
+
86
+ all_params = ['body', 'project_id', 'id'] # noqa: E501
87
+ all_params.append('async_req')
88
+ all_params.append('_return_http_data_only')
89
+ all_params.append('_preload_content')
90
+ all_params.append('_request_timeout')
91
+
92
+ params = locals()
93
+ for key, val in six.iteritems(params['kwargs']):
94
+ if key not in all_params:
95
+ raise TypeError(
96
+ "Got an unexpected keyword argument '%s'"
97
+ " to method storage_service_abort_storage_transfer" % key
98
+ )
99
+ params[key] = val
100
+ del params['kwargs']
101
+ # verify the required parameter 'body' is set
102
+ if ('body' not in params or
103
+ params['body'] is None):
104
+ raise ValueError("Missing the required parameter `body` when calling `storage_service_abort_storage_transfer`") # noqa: E501
105
+ # verify the required parameter 'project_id' is set
106
+ if ('project_id' not in params or
107
+ params['project_id'] is None):
108
+ raise ValueError("Missing the required parameter `project_id` when calling `storage_service_abort_storage_transfer`") # noqa: E501
109
+ # verify the required parameter 'id' is set
110
+ if ('id' not in params or
111
+ params['id'] is None):
112
+ raise ValueError("Missing the required parameter `id` when calling `storage_service_abort_storage_transfer`") # noqa: E501
113
+
114
+ collection_formats = {}
115
+
116
+ path_params = {}
117
+ if 'project_id' in params:
118
+ path_params['projectId'] = params['project_id'] # noqa: E501
119
+ if 'id' in params:
120
+ path_params['id'] = params['id'] # noqa: E501
121
+
122
+ query_params = []
123
+
124
+ header_params = {}
125
+
126
+ form_params = []
127
+ local_var_files = {}
128
+
129
+ body_params = None
130
+ if 'body' in params:
131
+ body_params = params['body']
132
+ # HTTP header `Accept`
133
+ header_params['Accept'] = self.api_client.select_header_accept(
134
+ ['application/json']) # noqa: E501
135
+
136
+ # HTTP header `Content-Type`
137
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
138
+ ['application/json']) # noqa: E501
139
+
140
+ # Authentication setting
141
+ auth_settings = [] # noqa: E501
142
+
143
+ return self.api_client.call_api(
144
+ '/v1/projects/{projectId}/storage-transfers/{id}/abort', 'POST',
145
+ path_params,
146
+ query_params,
147
+ header_params,
148
+ body=body_params,
149
+ post_params=form_params,
150
+ files=local_var_files,
151
+ response_type='V1AbortStorageTransferResponse', # noqa: E501
152
+ auth_settings=auth_settings,
153
+ async_req=params.get('async_req'),
154
+ _return_http_data_only=params.get('_return_http_data_only'),
155
+ _preload_content=params.get('_preload_content', True),
156
+ _request_timeout=params.get('_request_timeout'),
157
+ collection_formats=collection_formats)
158
+
46
159
  def storage_service_complete_upload_project_artifact(self, body: 'StorageCompleteBody', project_id: 'str', **kwargs) -> 'V1CompleteUploadProjectArtifactResponse': # noqa: E501
47
160
  """storage_service_complete_upload_project_artifact # noqa: E501
48
161
 
@@ -245,6 +358,111 @@ class StorageServiceApi(object):
245
358
  _request_timeout=params.get('_request_timeout'),
246
359
  collection_formats=collection_formats)
247
360
 
361
+ def storage_service_create_storage_transfer(self, body: 'ProjectIdStoragetransfersBody', project_id: 'str', **kwargs) -> 'V1StorageTransfer': # noqa: E501
362
+ """storage_service_create_storage_transfer # noqa: E501
363
+
364
+ This method makes a synchronous HTTP request by default. To make an
365
+ asynchronous HTTP request, please pass async_req=True
366
+ >>> thread = api.storage_service_create_storage_transfer(body, project_id, async_req=True)
367
+ >>> result = thread.get()
368
+
369
+ :param async_req bool
370
+ :param ProjectIdStoragetransfersBody body: (required)
371
+ :param str project_id: (required)
372
+ :return: V1StorageTransfer
373
+ If the method is called asynchronously,
374
+ returns the request thread.
375
+ """
376
+ kwargs['_return_http_data_only'] = True
377
+ if kwargs.get('async_req'):
378
+ return self.storage_service_create_storage_transfer_with_http_info(body, project_id, **kwargs) # noqa: E501
379
+ else:
380
+ (data) = self.storage_service_create_storage_transfer_with_http_info(body, project_id, **kwargs) # noqa: E501
381
+ return data
382
+
383
+ def storage_service_create_storage_transfer_with_http_info(self, body: 'ProjectIdStoragetransfersBody', project_id: 'str', **kwargs) -> 'V1StorageTransfer': # noqa: E501
384
+ """storage_service_create_storage_transfer # noqa: E501
385
+
386
+ This method makes a synchronous HTTP request by default. To make an
387
+ asynchronous HTTP request, please pass async_req=True
388
+ >>> thread = api.storage_service_create_storage_transfer_with_http_info(body, project_id, async_req=True)
389
+ >>> result = thread.get()
390
+
391
+ :param async_req bool
392
+ :param ProjectIdStoragetransfersBody body: (required)
393
+ :param str project_id: (required)
394
+ :return: V1StorageTransfer
395
+ If the method is called asynchronously,
396
+ returns the request thread.
397
+ """
398
+
399
+ all_params = ['body', 'project_id'] # noqa: E501
400
+ all_params.append('async_req')
401
+ all_params.append('_return_http_data_only')
402
+ all_params.append('_preload_content')
403
+ all_params.append('_request_timeout')
404
+
405
+ params = locals()
406
+ for key, val in six.iteritems(params['kwargs']):
407
+ if key not in all_params:
408
+ raise TypeError(
409
+ "Got an unexpected keyword argument '%s'"
410
+ " to method storage_service_create_storage_transfer" % key
411
+ )
412
+ params[key] = val
413
+ del params['kwargs']
414
+ # verify the required parameter 'body' is set
415
+ if ('body' not in params or
416
+ params['body'] is None):
417
+ raise ValueError("Missing the required parameter `body` when calling `storage_service_create_storage_transfer`") # noqa: E501
418
+ # verify the required parameter 'project_id' is set
419
+ if ('project_id' not in params or
420
+ params['project_id'] is None):
421
+ raise ValueError("Missing the required parameter `project_id` when calling `storage_service_create_storage_transfer`") # noqa: E501
422
+
423
+ collection_formats = {}
424
+
425
+ path_params = {}
426
+ if 'project_id' in params:
427
+ path_params['projectId'] = params['project_id'] # noqa: E501
428
+
429
+ query_params = []
430
+
431
+ header_params = {}
432
+
433
+ form_params = []
434
+ local_var_files = {}
435
+
436
+ body_params = None
437
+ if 'body' in params:
438
+ body_params = params['body']
439
+ # HTTP header `Accept`
440
+ header_params['Accept'] = self.api_client.select_header_accept(
441
+ ['application/json']) # noqa: E501
442
+
443
+ # HTTP header `Content-Type`
444
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
445
+ ['application/json']) # noqa: E501
446
+
447
+ # Authentication setting
448
+ auth_settings = [] # noqa: E501
449
+
450
+ return self.api_client.call_api(
451
+ '/v1/projects/{projectId}/storage-transfers', 'POST',
452
+ path_params,
453
+ query_params,
454
+ header_params,
455
+ body=body_params,
456
+ post_params=form_params,
457
+ files=local_var_files,
458
+ response_type='V1StorageTransfer', # noqa: E501
459
+ auth_settings=auth_settings,
460
+ async_req=params.get('async_req'),
461
+ _return_http_data_only=params.get('_return_http_data_only'),
462
+ _preload_content=params.get('_preload_content', True),
463
+ _request_timeout=params.get('_request_timeout'),
464
+ collection_formats=collection_formats)
465
+
248
466
  def storage_service_delete_project_artifact(self, project_id: 'str', **kwargs) -> 'V1DeleteProjectArtifactResponse': # noqa: E501
249
467
  """storage_service_delete_project_artifact # noqa: E501
250
468
 
@@ -863,6 +1081,107 @@ class StorageServiceApi(object):
863
1081
  _request_timeout=params.get('_request_timeout'),
864
1082
  collection_formats=collection_formats)
865
1083
 
1084
+ def storage_service_get_storage_transfer(self, project_id: 'str', id: 'str', **kwargs) -> 'V1StorageTransfer': # noqa: E501
1085
+ """storage_service_get_storage_transfer # noqa: E501
1086
+
1087
+ This method makes a synchronous HTTP request by default. To make an
1088
+ asynchronous HTTP request, please pass async_req=True
1089
+ >>> thread = api.storage_service_get_storage_transfer(project_id, id, async_req=True)
1090
+ >>> result = thread.get()
1091
+
1092
+ :param async_req bool
1093
+ :param str project_id: (required)
1094
+ :param str id: (required)
1095
+ :return: V1StorageTransfer
1096
+ If the method is called asynchronously,
1097
+ returns the request thread.
1098
+ """
1099
+ kwargs['_return_http_data_only'] = True
1100
+ if kwargs.get('async_req'):
1101
+ return self.storage_service_get_storage_transfer_with_http_info(project_id, id, **kwargs) # noqa: E501
1102
+ else:
1103
+ (data) = self.storage_service_get_storage_transfer_with_http_info(project_id, id, **kwargs) # noqa: E501
1104
+ return data
1105
+
1106
+ def storage_service_get_storage_transfer_with_http_info(self, project_id: 'str', id: 'str', **kwargs) -> 'V1StorageTransfer': # noqa: E501
1107
+ """storage_service_get_storage_transfer # noqa: E501
1108
+
1109
+ This method makes a synchronous HTTP request by default. To make an
1110
+ asynchronous HTTP request, please pass async_req=True
1111
+ >>> thread = api.storage_service_get_storage_transfer_with_http_info(project_id, id, async_req=True)
1112
+ >>> result = thread.get()
1113
+
1114
+ :param async_req bool
1115
+ :param str project_id: (required)
1116
+ :param str id: (required)
1117
+ :return: V1StorageTransfer
1118
+ If the method is called asynchronously,
1119
+ returns the request thread.
1120
+ """
1121
+
1122
+ all_params = ['project_id', 'id'] # noqa: E501
1123
+ all_params.append('async_req')
1124
+ all_params.append('_return_http_data_only')
1125
+ all_params.append('_preload_content')
1126
+ all_params.append('_request_timeout')
1127
+
1128
+ params = locals()
1129
+ for key, val in six.iteritems(params['kwargs']):
1130
+ if key not in all_params:
1131
+ raise TypeError(
1132
+ "Got an unexpected keyword argument '%s'"
1133
+ " to method storage_service_get_storage_transfer" % key
1134
+ )
1135
+ params[key] = val
1136
+ del params['kwargs']
1137
+ # verify the required parameter 'project_id' is set
1138
+ if ('project_id' not in params or
1139
+ params['project_id'] is None):
1140
+ raise ValueError("Missing the required parameter `project_id` when calling `storage_service_get_storage_transfer`") # noqa: E501
1141
+ # verify the required parameter 'id' is set
1142
+ if ('id' not in params or
1143
+ params['id'] is None):
1144
+ raise ValueError("Missing the required parameter `id` when calling `storage_service_get_storage_transfer`") # noqa: E501
1145
+
1146
+ collection_formats = {}
1147
+
1148
+ path_params = {}
1149
+ if 'project_id' in params:
1150
+ path_params['projectId'] = params['project_id'] # noqa: E501
1151
+ if 'id' in params:
1152
+ path_params['id'] = params['id'] # noqa: E501
1153
+
1154
+ query_params = []
1155
+
1156
+ header_params = {}
1157
+
1158
+ form_params = []
1159
+ local_var_files = {}
1160
+
1161
+ body_params = None
1162
+ # HTTP header `Accept`
1163
+ header_params['Accept'] = self.api_client.select_header_accept(
1164
+ ['application/json']) # noqa: E501
1165
+
1166
+ # Authentication setting
1167
+ auth_settings = [] # noqa: E501
1168
+
1169
+ return self.api_client.call_api(
1170
+ '/v1/projects/{projectId}/storage-transfers/{id}', 'GET',
1171
+ path_params,
1172
+ query_params,
1173
+ header_params,
1174
+ body=body_params,
1175
+ post_params=form_params,
1176
+ files=local_var_files,
1177
+ response_type='V1StorageTransfer', # noqa: E501
1178
+ auth_settings=auth_settings,
1179
+ async_req=params.get('async_req'),
1180
+ _return_http_data_only=params.get('_return_http_data_only'),
1181
+ _preload_content=params.get('_preload_content', True),
1182
+ _request_timeout=params.get('_request_timeout'),
1183
+ collection_formats=collection_formats)
1184
+
866
1185
  def storage_service_list_project_artifacts(self, project_id: 'str', **kwargs) -> 'V1ListProjectArtifactsResponse': # noqa: E501
867
1186
  """storage_service_list_project_artifacts # noqa: E501
868
1187
 
@@ -1069,6 +1388,229 @@ class StorageServiceApi(object):
1069
1388
  _request_timeout=params.get('_request_timeout'),
1070
1389
  collection_formats=collection_formats)
1071
1390
 
1391
+ def storage_service_list_storage_transfers(self, project_id: 'str', **kwargs) -> 'V1ListStorageTransfersResponse': # noqa: E501
1392
+ """storage_service_list_storage_transfers # noqa: E501
1393
+
1394
+ This method makes a synchronous HTTP request by default. To make an
1395
+ asynchronous HTTP request, please pass async_req=True
1396
+ >>> thread = api.storage_service_list_storage_transfers(project_id, async_req=True)
1397
+ >>> result = thread.get()
1398
+
1399
+ :param async_req bool
1400
+ :param str project_id: (required)
1401
+ :param list[str] status_in:
1402
+ :param str creator_id:
1403
+ :param str source_data_connection_id:
1404
+ :param str target_data_connection_id:
1405
+ :return: V1ListStorageTransfersResponse
1406
+ If the method is called asynchronously,
1407
+ returns the request thread.
1408
+ """
1409
+ kwargs['_return_http_data_only'] = True
1410
+ if kwargs.get('async_req'):
1411
+ return self.storage_service_list_storage_transfers_with_http_info(project_id, **kwargs) # noqa: E501
1412
+ else:
1413
+ (data) = self.storage_service_list_storage_transfers_with_http_info(project_id, **kwargs) # noqa: E501
1414
+ return data
1415
+
1416
+ def storage_service_list_storage_transfers_with_http_info(self, project_id: 'str', **kwargs) -> 'V1ListStorageTransfersResponse': # noqa: E501
1417
+ """storage_service_list_storage_transfers # noqa: E501
1418
+
1419
+ This method makes a synchronous HTTP request by default. To make an
1420
+ asynchronous HTTP request, please pass async_req=True
1421
+ >>> thread = api.storage_service_list_storage_transfers_with_http_info(project_id, async_req=True)
1422
+ >>> result = thread.get()
1423
+
1424
+ :param async_req bool
1425
+ :param str project_id: (required)
1426
+ :param list[str] status_in:
1427
+ :param str creator_id:
1428
+ :param str source_data_connection_id:
1429
+ :param str target_data_connection_id:
1430
+ :return: V1ListStorageTransfersResponse
1431
+ If the method is called asynchronously,
1432
+ returns the request thread.
1433
+ """
1434
+
1435
+ all_params = ['project_id', 'status_in', 'creator_id', 'source_data_connection_id', 'target_data_connection_id'] # noqa: E501
1436
+ all_params.append('async_req')
1437
+ all_params.append('_return_http_data_only')
1438
+ all_params.append('_preload_content')
1439
+ all_params.append('_request_timeout')
1440
+
1441
+ params = locals()
1442
+ for key, val in six.iteritems(params['kwargs']):
1443
+ if key not in all_params:
1444
+ raise TypeError(
1445
+ "Got an unexpected keyword argument '%s'"
1446
+ " to method storage_service_list_storage_transfers" % key
1447
+ )
1448
+ params[key] = val
1449
+ del params['kwargs']
1450
+ # verify the required parameter 'project_id' is set
1451
+ if ('project_id' not in params or
1452
+ params['project_id'] is None):
1453
+ raise ValueError("Missing the required parameter `project_id` when calling `storage_service_list_storage_transfers`") # noqa: E501
1454
+
1455
+ collection_formats = {}
1456
+
1457
+ path_params = {}
1458
+ if 'project_id' in params:
1459
+ path_params['projectId'] = params['project_id'] # noqa: E501
1460
+
1461
+ query_params = []
1462
+ if 'status_in' in params:
1463
+ query_params.append(('statusIn', params['status_in'])) # noqa: E501
1464
+ collection_formats['statusIn'] = 'multi' # noqa: E501
1465
+ if 'creator_id' in params:
1466
+ query_params.append(('creatorId', params['creator_id'])) # noqa: E501
1467
+ if 'source_data_connection_id' in params:
1468
+ query_params.append(('sourceDataConnectionId', params['source_data_connection_id'])) # noqa: E501
1469
+ if 'target_data_connection_id' in params:
1470
+ query_params.append(('targetDataConnectionId', params['target_data_connection_id'])) # noqa: E501
1471
+
1472
+ header_params = {}
1473
+
1474
+ form_params = []
1475
+ local_var_files = {}
1476
+
1477
+ body_params = None
1478
+ # HTTP header `Accept`
1479
+ header_params['Accept'] = self.api_client.select_header_accept(
1480
+ ['application/json']) # noqa: E501
1481
+
1482
+ # Authentication setting
1483
+ auth_settings = [] # noqa: E501
1484
+
1485
+ return self.api_client.call_api(
1486
+ '/v1/projects/{projectId}/storage-transfers', 'GET',
1487
+ path_params,
1488
+ query_params,
1489
+ header_params,
1490
+ body=body_params,
1491
+ post_params=form_params,
1492
+ files=local_var_files,
1493
+ response_type='V1ListStorageTransfersResponse', # noqa: E501
1494
+ auth_settings=auth_settings,
1495
+ async_req=params.get('async_req'),
1496
+ _return_http_data_only=params.get('_return_http_data_only'),
1497
+ _preload_content=params.get('_preload_content', True),
1498
+ _request_timeout=params.get('_request_timeout'),
1499
+ collection_formats=collection_formats)
1500
+
1501
+ def storage_service_pause_storage_transfer(self, body: 'object', project_id: 'str', id: 'str', **kwargs) -> 'V1PauseStorageTransferResponse': # noqa: E501
1502
+ """storage_service_pause_storage_transfer # noqa: E501
1503
+
1504
+ This method makes a synchronous HTTP request by default. To make an
1505
+ asynchronous HTTP request, please pass async_req=True
1506
+ >>> thread = api.storage_service_pause_storage_transfer(body, project_id, id, async_req=True)
1507
+ >>> result = thread.get()
1508
+
1509
+ :param async_req bool
1510
+ :param object body: (required)
1511
+ :param str project_id: (required)
1512
+ :param str id: (required)
1513
+ :return: V1PauseStorageTransferResponse
1514
+ If the method is called asynchronously,
1515
+ returns the request thread.
1516
+ """
1517
+ kwargs['_return_http_data_only'] = True
1518
+ if kwargs.get('async_req'):
1519
+ return self.storage_service_pause_storage_transfer_with_http_info(body, project_id, id, **kwargs) # noqa: E501
1520
+ else:
1521
+ (data) = self.storage_service_pause_storage_transfer_with_http_info(body, project_id, id, **kwargs) # noqa: E501
1522
+ return data
1523
+
1524
+ def storage_service_pause_storage_transfer_with_http_info(self, body: 'object', project_id: 'str', id: 'str', **kwargs) -> 'V1PauseStorageTransferResponse': # noqa: E501
1525
+ """storage_service_pause_storage_transfer # noqa: E501
1526
+
1527
+ This method makes a synchronous HTTP request by default. To make an
1528
+ asynchronous HTTP request, please pass async_req=True
1529
+ >>> thread = api.storage_service_pause_storage_transfer_with_http_info(body, project_id, id, async_req=True)
1530
+ >>> result = thread.get()
1531
+
1532
+ :param async_req bool
1533
+ :param object body: (required)
1534
+ :param str project_id: (required)
1535
+ :param str id: (required)
1536
+ :return: V1PauseStorageTransferResponse
1537
+ If the method is called asynchronously,
1538
+ returns the request thread.
1539
+ """
1540
+
1541
+ all_params = ['body', 'project_id', 'id'] # noqa: E501
1542
+ all_params.append('async_req')
1543
+ all_params.append('_return_http_data_only')
1544
+ all_params.append('_preload_content')
1545
+ all_params.append('_request_timeout')
1546
+
1547
+ params = locals()
1548
+ for key, val in six.iteritems(params['kwargs']):
1549
+ if key not in all_params:
1550
+ raise TypeError(
1551
+ "Got an unexpected keyword argument '%s'"
1552
+ " to method storage_service_pause_storage_transfer" % key
1553
+ )
1554
+ params[key] = val
1555
+ del params['kwargs']
1556
+ # verify the required parameter 'body' is set
1557
+ if ('body' not in params or
1558
+ params['body'] is None):
1559
+ raise ValueError("Missing the required parameter `body` when calling `storage_service_pause_storage_transfer`") # noqa: E501
1560
+ # verify the required parameter 'project_id' is set
1561
+ if ('project_id' not in params or
1562
+ params['project_id'] is None):
1563
+ raise ValueError("Missing the required parameter `project_id` when calling `storage_service_pause_storage_transfer`") # noqa: E501
1564
+ # verify the required parameter 'id' is set
1565
+ if ('id' not in params or
1566
+ params['id'] is None):
1567
+ raise ValueError("Missing the required parameter `id` when calling `storage_service_pause_storage_transfer`") # noqa: E501
1568
+
1569
+ collection_formats = {}
1570
+
1571
+ path_params = {}
1572
+ if 'project_id' in params:
1573
+ path_params['projectId'] = params['project_id'] # noqa: E501
1574
+ if 'id' in params:
1575
+ path_params['id'] = params['id'] # noqa: E501
1576
+
1577
+ query_params = []
1578
+
1579
+ header_params = {}
1580
+
1581
+ form_params = []
1582
+ local_var_files = {}
1583
+
1584
+ body_params = None
1585
+ if 'body' in params:
1586
+ body_params = params['body']
1587
+ # HTTP header `Accept`
1588
+ header_params['Accept'] = self.api_client.select_header_accept(
1589
+ ['application/json']) # noqa: E501
1590
+
1591
+ # HTTP header `Content-Type`
1592
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
1593
+ ['application/json']) # noqa: E501
1594
+
1595
+ # Authentication setting
1596
+ auth_settings = [] # noqa: E501
1597
+
1598
+ return self.api_client.call_api(
1599
+ '/v1/projects/{projectId}/storage-transfers/{id}/pause', 'POST',
1600
+ path_params,
1601
+ query_params,
1602
+ header_params,
1603
+ body=body_params,
1604
+ post_params=form_params,
1605
+ files=local_var_files,
1606
+ response_type='V1PauseStorageTransferResponse', # noqa: E501
1607
+ auth_settings=auth_settings,
1608
+ async_req=params.get('async_req'),
1609
+ _return_http_data_only=params.get('_return_http_data_only'),
1610
+ _preload_content=params.get('_preload_content', True),
1611
+ _request_timeout=params.get('_request_timeout'),
1612
+ collection_formats=collection_formats)
1613
+
1072
1614
  def storage_service_post_cloud_space_artifact_events(self, project_id: 'str', cloud_space_id: 'str', **kwargs) -> 'V1PostCloudSpaceArtifactEventsResponse': # noqa: E501
1073
1615
  """storage_service_post_cloud_space_artifact_events # noqa: E501
1074
1616
 
@@ -1170,6 +1712,119 @@ class StorageServiceApi(object):
1170
1712
  _request_timeout=params.get('_request_timeout'),
1171
1713
  collection_formats=collection_formats)
1172
1714
 
1715
+ def storage_service_resume_storage_transfer(self, body: 'object', project_id: 'str', id: 'str', **kwargs) -> 'V1ResumeStorageTransferResponse': # noqa: E501
1716
+ """storage_service_resume_storage_transfer # noqa: E501
1717
+
1718
+ This method makes a synchronous HTTP request by default. To make an
1719
+ asynchronous HTTP request, please pass async_req=True
1720
+ >>> thread = api.storage_service_resume_storage_transfer(body, project_id, id, async_req=True)
1721
+ >>> result = thread.get()
1722
+
1723
+ :param async_req bool
1724
+ :param object body: (required)
1725
+ :param str project_id: (required)
1726
+ :param str id: (required)
1727
+ :return: V1ResumeStorageTransferResponse
1728
+ If the method is called asynchronously,
1729
+ returns the request thread.
1730
+ """
1731
+ kwargs['_return_http_data_only'] = True
1732
+ if kwargs.get('async_req'):
1733
+ return self.storage_service_resume_storage_transfer_with_http_info(body, project_id, id, **kwargs) # noqa: E501
1734
+ else:
1735
+ (data) = self.storage_service_resume_storage_transfer_with_http_info(body, project_id, id, **kwargs) # noqa: E501
1736
+ return data
1737
+
1738
+ def storage_service_resume_storage_transfer_with_http_info(self, body: 'object', project_id: 'str', id: 'str', **kwargs) -> 'V1ResumeStorageTransferResponse': # noqa: E501
1739
+ """storage_service_resume_storage_transfer # noqa: E501
1740
+
1741
+ This method makes a synchronous HTTP request by default. To make an
1742
+ asynchronous HTTP request, please pass async_req=True
1743
+ >>> thread = api.storage_service_resume_storage_transfer_with_http_info(body, project_id, id, async_req=True)
1744
+ >>> result = thread.get()
1745
+
1746
+ :param async_req bool
1747
+ :param object body: (required)
1748
+ :param str project_id: (required)
1749
+ :param str id: (required)
1750
+ :return: V1ResumeStorageTransferResponse
1751
+ If the method is called asynchronously,
1752
+ returns the request thread.
1753
+ """
1754
+
1755
+ all_params = ['body', 'project_id', 'id'] # noqa: E501
1756
+ all_params.append('async_req')
1757
+ all_params.append('_return_http_data_only')
1758
+ all_params.append('_preload_content')
1759
+ all_params.append('_request_timeout')
1760
+
1761
+ params = locals()
1762
+ for key, val in six.iteritems(params['kwargs']):
1763
+ if key not in all_params:
1764
+ raise TypeError(
1765
+ "Got an unexpected keyword argument '%s'"
1766
+ " to method storage_service_resume_storage_transfer" % key
1767
+ )
1768
+ params[key] = val
1769
+ del params['kwargs']
1770
+ # verify the required parameter 'body' is set
1771
+ if ('body' not in params or
1772
+ params['body'] is None):
1773
+ raise ValueError("Missing the required parameter `body` when calling `storage_service_resume_storage_transfer`") # noqa: E501
1774
+ # verify the required parameter 'project_id' is set
1775
+ if ('project_id' not in params or
1776
+ params['project_id'] is None):
1777
+ raise ValueError("Missing the required parameter `project_id` when calling `storage_service_resume_storage_transfer`") # noqa: E501
1778
+ # verify the required parameter 'id' is set
1779
+ if ('id' not in params or
1780
+ params['id'] is None):
1781
+ raise ValueError("Missing the required parameter `id` when calling `storage_service_resume_storage_transfer`") # noqa: E501
1782
+
1783
+ collection_formats = {}
1784
+
1785
+ path_params = {}
1786
+ if 'project_id' in params:
1787
+ path_params['projectId'] = params['project_id'] # noqa: E501
1788
+ if 'id' in params:
1789
+ path_params['id'] = params['id'] # noqa: E501
1790
+
1791
+ query_params = []
1792
+
1793
+ header_params = {}
1794
+
1795
+ form_params = []
1796
+ local_var_files = {}
1797
+
1798
+ body_params = None
1799
+ if 'body' in params:
1800
+ body_params = params['body']
1801
+ # HTTP header `Accept`
1802
+ header_params['Accept'] = self.api_client.select_header_accept(
1803
+ ['application/json']) # noqa: E501
1804
+
1805
+ # HTTP header `Content-Type`
1806
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
1807
+ ['application/json']) # noqa: E501
1808
+
1809
+ # Authentication setting
1810
+ auth_settings = [] # noqa: E501
1811
+
1812
+ return self.api_client.call_api(
1813
+ '/v1/projects/{projectId}/storage-transfers/{id}/resume', 'POST',
1814
+ path_params,
1815
+ query_params,
1816
+ header_params,
1817
+ body=body_params,
1818
+ post_params=form_params,
1819
+ files=local_var_files,
1820
+ response_type='V1ResumeStorageTransferResponse', # noqa: E501
1821
+ auth_settings=auth_settings,
1822
+ async_req=params.get('async_req'),
1823
+ _return_http_data_only=params.get('_return_http_data_only'),
1824
+ _preload_content=params.get('_preload_content', True),
1825
+ _request_timeout=params.get('_request_timeout'),
1826
+ collection_formats=collection_formats)
1827
+
1173
1828
  def storage_service_upload_project_artifact(self, body: 'ProjectIdStorageBody', project_id: 'str', **kwargs) -> 'V1UploadProjectArtifactResponse': # noqa: E501
1174
1829
  """UploadProjectArtifact - starts the multipart upload process and returns the upload ID. You will then need to use the upload ID with UploadProjectArtifactParts to get the upload URLs # noqa: E501
1175
1830