lightning-sdk 2025.8.1__py3-none-any.whl → 2025.8.6rc1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- lightning_sdk/__init__.py +1 -1
- lightning_sdk/api/deployment_api.py +6 -4
- lightning_sdk/api/job_api.py +2 -0
- lightning_sdk/api/mmt_api.py +2 -0
- lightning_sdk/deployment/deployment.py +5 -0
- lightning_sdk/lightning_cloud/login.py +1 -7
- lightning_sdk/lightning_cloud/openapi/__init__.py +15 -23
- lightning_sdk/lightning_cloud/openapi/api/__init__.py +1 -0
- lightning_sdk/lightning_cloud/openapi/api/assistants_service_api.py +5 -1
- lightning_sdk/lightning_cloud/openapi/api/cloud_space_service_api.py +228 -1
- lightning_sdk/lightning_cloud/openapi/api/endpoint_service_api.py +126 -2129
- lightning_sdk/lightning_cloud/openapi/api/k8_s_cluster_service_api.py +625 -0
- lightning_sdk/lightning_cloud/openapi/api/storage_service_api.py +5 -1
- lightning_sdk/lightning_cloud/openapi/models/__init__.py +14 -23
- lightning_sdk/lightning_cloud/openapi/models/cluster_id_metrics_body.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/orgs_id_body.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/projects_id_body.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_transfer_metadata.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloudflare_v1.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/{v1_complete_upload_service_execution_artifact_response.py → v1_complete_running_cloud_space_instance_transfer_response.py} +6 -6
- lightning_sdk/lightning_cloud/openapi/models/v1_container_metrics.py +461 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_metrics.py +227 -0
- lightning_sdk/lightning_cloud/openapi/models/{v1_list_file_endpoints_response.py → v1_list_container_metrics_response.py} +23 -23
- lightning_sdk/lightning_cloud/openapi/models/{service_artifact_artifact_kind.py → v1_list_node_file_system_metrics_response.py} +6 -13
- lightning_sdk/lightning_cloud/openapi/models/{v1_upload_service_execution_artifact_parts_response.py → v1_list_node_metrics_response.py} +23 -23
- lightning_sdk/lightning_cloud/openapi/models/v1_list_pod_metrics_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_managed_model.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_node_metrics.py +357 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_organization.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_pod_metrics.py +435 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_project_settings.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/{v1_delete_service_execution_response.py → v1_report_k8s_cluster_metrics_response.py} +6 -6
- lightning_sdk/lightning_cloud/openapi/models/{command_argument_command_argument_type.py → v1_request_cloud_space_access_response.py} +6 -12
- lightning_sdk/lightning_cloud/openapi/models/v1_update_cloud_space_instance_config_request.py +331 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +157 -53
- lightning_sdk/lightning_cloud/utils/data_connection.py +56 -1
- lightning_sdk/llm/llm.py +2 -13
- lightning_sdk/llm/public_assistants.py +17 -0
- lightning_sdk/pipeline/steps.py +30 -1
- lightning_sdk/services/file_endpoint.py +3 -4
- {lightning_sdk-2025.8.1.dist-info → lightning_sdk-2025.8.6rc1.dist-info}/METADATA +1 -1
- {lightning_sdk-2025.8.1.dist-info → lightning_sdk-2025.8.6rc1.dist-info}/RECORD +47 -55
- lightning_sdk/lightning_cloud/openapi/models/fileendpoints_id_body.py +0 -409
- lightning_sdk/lightning_cloud/openapi/models/id_complete_body.py +0 -175
- lightning_sdk/lightning_cloud/openapi/models/id_storage_body.py +0 -175
- lightning_sdk/lightning_cloud/openapi/models/id_uploads_body1.py +0 -175
- lightning_sdk/lightning_cloud/openapi/models/project_id_fileendpoints_body.py +0 -357
- lightning_sdk/lightning_cloud/openapi/models/project_id_serviceexecution_body.py +0 -175
- lightning_sdk/lightning_cloud/openapi/models/serviceexecution_id_body.py +0 -331
- lightning_sdk/lightning_cloud/openapi/models/v1_command_argument.py +0 -305
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_file_endpoint_response.py +0 -149
- lightning_sdk/lightning_cloud/openapi/models/v1_download_service_execution_artifact_response.py +0 -175
- lightning_sdk/lightning_cloud/openapi/models/v1_file_endpoint.py +0 -461
- lightning_sdk/lightning_cloud/openapi/models/v1_get_service_execution_status_response.py +0 -175
- lightning_sdk/lightning_cloud/openapi/models/v1_list_service_execution_lightningapp_instances_response.py +0 -175
- lightning_sdk/lightning_cloud/openapi/models/v1_list_service_executions_response.py +0 -123
- lightning_sdk/lightning_cloud/openapi/models/v1_service_artifact.py +0 -201
- lightning_sdk/lightning_cloud/openapi/models/v1_service_execution.py +0 -383
- lightning_sdk/lightning_cloud/openapi/models/v1_upload_service_execution_artifact_response.py +0 -149
- lightning_sdk/llm/public_assistants.json +0 -34
- {lightning_sdk-2025.8.1.dist-info → lightning_sdk-2025.8.6rc1.dist-info}/LICENSE +0 -0
- {lightning_sdk-2025.8.1.dist-info → lightning_sdk-2025.8.6rc1.dist-info}/WHEEL +0 -0
- {lightning_sdk-2025.8.1.dist-info → lightning_sdk-2025.8.6rc1.dist-info}/entry_points.txt +0 -0
- {lightning_sdk-2025.8.1.dist-info → lightning_sdk-2025.8.6rc1.dist-info}/top_level.txt +0 -0
|
@@ -231,6 +231,107 @@ class CloudSpaceServiceApi(object):
|
|
|
231
231
|
_request_timeout=params.get('_request_timeout'),
|
|
232
232
|
collection_formats=collection_formats)
|
|
233
233
|
|
|
234
|
+
def cloud_space_service_complete_running_cloud_space_instance_transfer(self, project_id: 'str', id: 'str', **kwargs) -> 'V1CompleteRunningCloudSpaceInstanceTransferResponse': # noqa: E501
|
|
235
|
+
"""cloud_space_service_complete_running_cloud_space_instance_transfer # noqa: E501
|
|
236
|
+
|
|
237
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
238
|
+
asynchronous HTTP request, please pass async_req=True
|
|
239
|
+
>>> thread = api.cloud_space_service_complete_running_cloud_space_instance_transfer(project_id, id, async_req=True)
|
|
240
|
+
>>> result = thread.get()
|
|
241
|
+
|
|
242
|
+
:param async_req bool
|
|
243
|
+
:param str project_id: (required)
|
|
244
|
+
:param str id: (required)
|
|
245
|
+
:return: V1CompleteRunningCloudSpaceInstanceTransferResponse
|
|
246
|
+
If the method is called asynchronously,
|
|
247
|
+
returns the request thread.
|
|
248
|
+
"""
|
|
249
|
+
kwargs['_return_http_data_only'] = True
|
|
250
|
+
if kwargs.get('async_req'):
|
|
251
|
+
return self.cloud_space_service_complete_running_cloud_space_instance_transfer_with_http_info(project_id, id, **kwargs) # noqa: E501
|
|
252
|
+
else:
|
|
253
|
+
(data) = self.cloud_space_service_complete_running_cloud_space_instance_transfer_with_http_info(project_id, id, **kwargs) # noqa: E501
|
|
254
|
+
return data
|
|
255
|
+
|
|
256
|
+
def cloud_space_service_complete_running_cloud_space_instance_transfer_with_http_info(self, project_id: 'str', id: 'str', **kwargs) -> 'V1CompleteRunningCloudSpaceInstanceTransferResponse': # noqa: E501
|
|
257
|
+
"""cloud_space_service_complete_running_cloud_space_instance_transfer # noqa: E501
|
|
258
|
+
|
|
259
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
260
|
+
asynchronous HTTP request, please pass async_req=True
|
|
261
|
+
>>> thread = api.cloud_space_service_complete_running_cloud_space_instance_transfer_with_http_info(project_id, id, async_req=True)
|
|
262
|
+
>>> result = thread.get()
|
|
263
|
+
|
|
264
|
+
:param async_req bool
|
|
265
|
+
:param str project_id: (required)
|
|
266
|
+
:param str id: (required)
|
|
267
|
+
:return: V1CompleteRunningCloudSpaceInstanceTransferResponse
|
|
268
|
+
If the method is called asynchronously,
|
|
269
|
+
returns the request thread.
|
|
270
|
+
"""
|
|
271
|
+
|
|
272
|
+
all_params = ['project_id', 'id'] # noqa: E501
|
|
273
|
+
all_params.append('async_req')
|
|
274
|
+
all_params.append('_return_http_data_only')
|
|
275
|
+
all_params.append('_preload_content')
|
|
276
|
+
all_params.append('_request_timeout')
|
|
277
|
+
|
|
278
|
+
params = locals()
|
|
279
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
280
|
+
if key not in all_params:
|
|
281
|
+
raise TypeError(
|
|
282
|
+
"Got an unexpected keyword argument '%s'"
|
|
283
|
+
" to method cloud_space_service_complete_running_cloud_space_instance_transfer" % key
|
|
284
|
+
)
|
|
285
|
+
params[key] = val
|
|
286
|
+
del params['kwargs']
|
|
287
|
+
# verify the required parameter 'project_id' is set
|
|
288
|
+
if ('project_id' not in params or
|
|
289
|
+
params['project_id'] is None):
|
|
290
|
+
raise ValueError("Missing the required parameter `project_id` when calling `cloud_space_service_complete_running_cloud_space_instance_transfer`") # noqa: E501
|
|
291
|
+
# verify the required parameter 'id' is set
|
|
292
|
+
if ('id' not in params or
|
|
293
|
+
params['id'] is None):
|
|
294
|
+
raise ValueError("Missing the required parameter `id` when calling `cloud_space_service_complete_running_cloud_space_instance_transfer`") # noqa: E501
|
|
295
|
+
|
|
296
|
+
collection_formats = {}
|
|
297
|
+
|
|
298
|
+
path_params = {}
|
|
299
|
+
if 'project_id' in params:
|
|
300
|
+
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
301
|
+
if 'id' in params:
|
|
302
|
+
path_params['id'] = params['id'] # noqa: E501
|
|
303
|
+
|
|
304
|
+
query_params = []
|
|
305
|
+
|
|
306
|
+
header_params = {}
|
|
307
|
+
|
|
308
|
+
form_params = []
|
|
309
|
+
local_var_files = {}
|
|
310
|
+
|
|
311
|
+
body_params = None
|
|
312
|
+
# HTTP header `Accept`
|
|
313
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
314
|
+
['application/json']) # noqa: E501
|
|
315
|
+
|
|
316
|
+
# Authentication setting
|
|
317
|
+
auth_settings = [] # noqa: E501
|
|
318
|
+
|
|
319
|
+
return self.api_client.call_api(
|
|
320
|
+
'/v1/projects/{projectId}/cloudspaces/{id}/complete-transfer', 'POST',
|
|
321
|
+
path_params,
|
|
322
|
+
query_params,
|
|
323
|
+
header_params,
|
|
324
|
+
body=body_params,
|
|
325
|
+
post_params=form_params,
|
|
326
|
+
files=local_var_files,
|
|
327
|
+
response_type='V1CompleteRunningCloudSpaceInstanceTransferResponse', # noqa: E501
|
|
328
|
+
auth_settings=auth_settings,
|
|
329
|
+
async_req=params.get('async_req'),
|
|
330
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
331
|
+
_preload_content=params.get('_preload_content', True),
|
|
332
|
+
_request_timeout=params.get('_request_timeout'),
|
|
333
|
+
collection_formats=collection_formats)
|
|
334
|
+
|
|
234
335
|
def cloud_space_service_create_cloud_space(self, body: 'ProjectIdCloudspacesBody', project_id: 'str', **kwargs) -> 'V1CloudSpace': # noqa: E501
|
|
235
336
|
"""cloud_space_service_create_cloud_space # noqa: E501
|
|
236
337
|
|
|
@@ -6660,6 +6761,7 @@ class CloudSpaceServiceApi(object):
|
|
|
6660
6761
|
:param str org_id:
|
|
6661
6762
|
:param str tag:
|
|
6662
6763
|
:param str internal_name:
|
|
6764
|
+
:param list[str] cloud_space_ids:
|
|
6663
6765
|
:return: V1ListPublishedCloudSpacesResponse
|
|
6664
6766
|
If the method is called asynchronously,
|
|
6665
6767
|
returns the request thread.
|
|
@@ -6688,12 +6790,13 @@ class CloudSpaceServiceApi(object):
|
|
|
6688
6790
|
:param str org_id:
|
|
6689
6791
|
:param str tag:
|
|
6690
6792
|
:param str internal_name:
|
|
6793
|
+
:param list[str] cloud_space_ids:
|
|
6691
6794
|
:return: V1ListPublishedCloudSpacesResponse
|
|
6692
6795
|
If the method is called asynchronously,
|
|
6693
6796
|
returns the request thread.
|
|
6694
6797
|
"""
|
|
6695
6798
|
|
|
6696
|
-
all_params = ['username', 'search_query', 'page_token', 'limit', 'sort_by', 'org_id', 'tag', 'internal_name'] # noqa: E501
|
|
6799
|
+
all_params = ['username', 'search_query', 'page_token', 'limit', 'sort_by', 'org_id', 'tag', 'internal_name', 'cloud_space_ids'] # noqa: E501
|
|
6697
6800
|
all_params.append('async_req')
|
|
6698
6801
|
all_params.append('_return_http_data_only')
|
|
6699
6802
|
all_params.append('_preload_content')
|
|
@@ -6730,6 +6833,9 @@ class CloudSpaceServiceApi(object):
|
|
|
6730
6833
|
query_params.append(('tag', params['tag'])) # noqa: E501
|
|
6731
6834
|
if 'internal_name' in params:
|
|
6732
6835
|
query_params.append(('internalName', params['internal_name'])) # noqa: E501
|
|
6836
|
+
if 'cloud_space_ids' in params:
|
|
6837
|
+
query_params.append(('cloudSpaceIds', params['cloud_space_ids'])) # noqa: E501
|
|
6838
|
+
collection_formats['cloudSpaceIds'] = 'multi' # noqa: E501
|
|
6733
6839
|
|
|
6734
6840
|
header_params = {}
|
|
6735
6841
|
|
|
@@ -7309,6 +7415,127 @@ class CloudSpaceServiceApi(object):
|
|
|
7309
7415
|
_request_timeout=params.get('_request_timeout'),
|
|
7310
7416
|
collection_formats=collection_formats)
|
|
7311
7417
|
|
|
7418
|
+
def cloud_space_service_request_cloud_space_access(self, body: 'object', user_name: 'str', project_name: 'str', cloudspace_name: 'str', **kwargs) -> 'V1RequestCloudSpaceAccessResponse': # noqa: E501
|
|
7419
|
+
"""RequestCloudSpaceAccess # noqa: E501
|
|
7420
|
+
|
|
7421
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
7422
|
+
asynchronous HTTP request, please pass async_req=True
|
|
7423
|
+
>>> thread = api.cloud_space_service_request_cloud_space_access(body, user_name, project_name, cloudspace_name, async_req=True)
|
|
7424
|
+
>>> result = thread.get()
|
|
7425
|
+
|
|
7426
|
+
:param async_req bool
|
|
7427
|
+
:param object body: (required)
|
|
7428
|
+
:param str user_name: (required)
|
|
7429
|
+
:param str project_name: (required)
|
|
7430
|
+
:param str cloudspace_name: (required)
|
|
7431
|
+
:return: V1RequestCloudSpaceAccessResponse
|
|
7432
|
+
If the method is called asynchronously,
|
|
7433
|
+
returns the request thread.
|
|
7434
|
+
"""
|
|
7435
|
+
kwargs['_return_http_data_only'] = True
|
|
7436
|
+
if kwargs.get('async_req'):
|
|
7437
|
+
return self.cloud_space_service_request_cloud_space_access_with_http_info(body, user_name, project_name, cloudspace_name, **kwargs) # noqa: E501
|
|
7438
|
+
else:
|
|
7439
|
+
(data) = self.cloud_space_service_request_cloud_space_access_with_http_info(body, user_name, project_name, cloudspace_name, **kwargs) # noqa: E501
|
|
7440
|
+
return data
|
|
7441
|
+
|
|
7442
|
+
def cloud_space_service_request_cloud_space_access_with_http_info(self, body: 'object', user_name: 'str', project_name: 'str', cloudspace_name: 'str', **kwargs) -> 'V1RequestCloudSpaceAccessResponse': # noqa: E501
|
|
7443
|
+
"""RequestCloudSpaceAccess # noqa: E501
|
|
7444
|
+
|
|
7445
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
7446
|
+
asynchronous HTTP request, please pass async_req=True
|
|
7447
|
+
>>> thread = api.cloud_space_service_request_cloud_space_access_with_http_info(body, user_name, project_name, cloudspace_name, async_req=True)
|
|
7448
|
+
>>> result = thread.get()
|
|
7449
|
+
|
|
7450
|
+
:param async_req bool
|
|
7451
|
+
:param object body: (required)
|
|
7452
|
+
:param str user_name: (required)
|
|
7453
|
+
:param str project_name: (required)
|
|
7454
|
+
:param str cloudspace_name: (required)
|
|
7455
|
+
:return: V1RequestCloudSpaceAccessResponse
|
|
7456
|
+
If the method is called asynchronously,
|
|
7457
|
+
returns the request thread.
|
|
7458
|
+
"""
|
|
7459
|
+
|
|
7460
|
+
all_params = ['body', 'user_name', 'project_name', 'cloudspace_name'] # noqa: E501
|
|
7461
|
+
all_params.append('async_req')
|
|
7462
|
+
all_params.append('_return_http_data_only')
|
|
7463
|
+
all_params.append('_preload_content')
|
|
7464
|
+
all_params.append('_request_timeout')
|
|
7465
|
+
|
|
7466
|
+
params = locals()
|
|
7467
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
7468
|
+
if key not in all_params:
|
|
7469
|
+
raise TypeError(
|
|
7470
|
+
"Got an unexpected keyword argument '%s'"
|
|
7471
|
+
" to method cloud_space_service_request_cloud_space_access" % key
|
|
7472
|
+
)
|
|
7473
|
+
params[key] = val
|
|
7474
|
+
del params['kwargs']
|
|
7475
|
+
# verify the required parameter 'body' is set
|
|
7476
|
+
if ('body' not in params or
|
|
7477
|
+
params['body'] is None):
|
|
7478
|
+
raise ValueError("Missing the required parameter `body` when calling `cloud_space_service_request_cloud_space_access`") # noqa: E501
|
|
7479
|
+
# verify the required parameter 'user_name' is set
|
|
7480
|
+
if ('user_name' not in params or
|
|
7481
|
+
params['user_name'] is None):
|
|
7482
|
+
raise ValueError("Missing the required parameter `user_name` when calling `cloud_space_service_request_cloud_space_access`") # noqa: E501
|
|
7483
|
+
# verify the required parameter 'project_name' is set
|
|
7484
|
+
if ('project_name' not in params or
|
|
7485
|
+
params['project_name'] is None):
|
|
7486
|
+
raise ValueError("Missing the required parameter `project_name` when calling `cloud_space_service_request_cloud_space_access`") # noqa: E501
|
|
7487
|
+
# verify the required parameter 'cloudspace_name' is set
|
|
7488
|
+
if ('cloudspace_name' not in params or
|
|
7489
|
+
params['cloudspace_name'] is None):
|
|
7490
|
+
raise ValueError("Missing the required parameter `cloudspace_name` when calling `cloud_space_service_request_cloud_space_access`") # noqa: E501
|
|
7491
|
+
|
|
7492
|
+
collection_formats = {}
|
|
7493
|
+
|
|
7494
|
+
path_params = {}
|
|
7495
|
+
if 'user_name' in params:
|
|
7496
|
+
path_params['userName'] = params['user_name'] # noqa: E501
|
|
7497
|
+
if 'project_name' in params:
|
|
7498
|
+
path_params['projectName'] = params['project_name'] # noqa: E501
|
|
7499
|
+
if 'cloudspace_name' in params:
|
|
7500
|
+
path_params['cloudspaceName'] = params['cloudspace_name'] # noqa: E501
|
|
7501
|
+
|
|
7502
|
+
query_params = []
|
|
7503
|
+
|
|
7504
|
+
header_params = {}
|
|
7505
|
+
|
|
7506
|
+
form_params = []
|
|
7507
|
+
local_var_files = {}
|
|
7508
|
+
|
|
7509
|
+
body_params = None
|
|
7510
|
+
if 'body' in params:
|
|
7511
|
+
body_params = params['body']
|
|
7512
|
+
# HTTP header `Accept`
|
|
7513
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
7514
|
+
['application/json']) # noqa: E501
|
|
7515
|
+
|
|
7516
|
+
# HTTP header `Content-Type`
|
|
7517
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
7518
|
+
['application/json']) # noqa: E501
|
|
7519
|
+
|
|
7520
|
+
# Authentication setting
|
|
7521
|
+
auth_settings = [] # noqa: E501
|
|
7522
|
+
|
|
7523
|
+
return self.api_client.call_api(
|
|
7524
|
+
'/v1/users/{userName}/projects/{projectName}/cloudspaces/{cloudspaceName}/request-access', 'PUT',
|
|
7525
|
+
path_params,
|
|
7526
|
+
query_params,
|
|
7527
|
+
header_params,
|
|
7528
|
+
body=body_params,
|
|
7529
|
+
post_params=form_params,
|
|
7530
|
+
files=local_var_files,
|
|
7531
|
+
response_type='V1RequestCloudSpaceAccessResponse', # noqa: E501
|
|
7532
|
+
auth_settings=auth_settings,
|
|
7533
|
+
async_req=params.get('async_req'),
|
|
7534
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
7535
|
+
_preload_content=params.get('_preload_content', True),
|
|
7536
|
+
_request_timeout=params.get('_request_timeout'),
|
|
7537
|
+
collection_formats=collection_formats)
|
|
7538
|
+
|
|
7312
7539
|
def cloud_space_service_restart_cloud_space_instance(self, project_id: 'str', id: 'str', **kwargs) -> 'V1RestartCloudSpaceInstanceResponse': # noqa: E501
|
|
7313
7540
|
"""cloud_space_service_restart_cloud_space_instance # noqa: E501
|
|
7314
7541
|
|