lightning-sdk 2025.8.28__py3-none-any.whl → 2025.9.4__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/teamspace_api.py +2 -0
- lightning_sdk/lightning_cloud/openapi/__init__.py +16 -0
- lightning_sdk/lightning_cloud/openapi/api/assistants_service_api.py +388 -0
- lightning_sdk/lightning_cloud/openapi/api/auth_service_api.py +97 -0
- lightning_sdk/lightning_cloud/openapi/api/cloud_space_service_api.py +202 -0
- lightning_sdk/lightning_cloud/openapi/api/data_connection_service_api.py +101 -0
- lightning_sdk/lightning_cloud/openapi/api/models_store_api.py +4 -4
- lightning_sdk/lightning_cloud/openapi/models/__init__.py +16 -0
- lightning_sdk/lightning_cloud/openapi/models/cluster_id_metrics_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/models_model_id_body.py +109 -31
- lightning_sdk/lightning_cloud/openapi/models/models_model_id_body1.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/orgs_id_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_aggregated_pod_metrics.py +799 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cancel_running_cloud_space_instance_transfer_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_transfer_metadata.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cloudflare_v1.py +3 -29
- lightning_sdk/lightning_cloud/openapi/models/v1_create_model_metrics_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_daily_model_metrics.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_filestore_data_connection.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_get_cloud_space_required_balance_status_response.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_latest_model_metrics_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_model_metrics_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_model_total_usage_metrics_response.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_temp_bucket_credentials_response.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_group_node_metrics.py +1215 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_guest_login_request.py +177 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_guest_login_response.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_guest_user.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_lambda_labs_direct_v1.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_list_aggregated_pod_metrics_response.py +6 -6
- lightning_sdk/lightning_cloud/openapi/models/v1_magic_link_login_response.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_model_metrics.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_nebius_direct_v1.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_node_metrics.py +81 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_organization.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_required_balance_reason.py +107 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +53 -27
- lightning_sdk/lightning_cloud/openapi/models/v1_voltage_park_direct_v1.py +29 -3
- {lightning_sdk-2025.8.28.dist-info → lightning_sdk-2025.9.4.dist-info}/METADATA +1 -1
- {lightning_sdk-2025.8.28.dist-info → lightning_sdk-2025.9.4.dist-info}/RECORD +45 -29
- {lightning_sdk-2025.8.28.dist-info → lightning_sdk-2025.9.4.dist-info}/LICENSE +0 -0
- {lightning_sdk-2025.8.28.dist-info → lightning_sdk-2025.9.4.dist-info}/WHEEL +0 -0
- {lightning_sdk-2025.8.28.dist-info → lightning_sdk-2025.9.4.dist-info}/entry_points.txt +0 -0
- {lightning_sdk-2025.8.28.dist-info → lightning_sdk-2025.9.4.dist-info}/top_level.txt +0 -0
|
@@ -144,6 +144,107 @@ class CloudSpaceServiceApi(object):
|
|
|
144
144
|
_request_timeout=params.get('_request_timeout'),
|
|
145
145
|
collection_formats=collection_formats)
|
|
146
146
|
|
|
147
|
+
def cloud_space_service_cancel_running_cloud_space_instance_transfer(self, project_id: 'str', id: 'str', **kwargs) -> 'V1CancelRunningCloudSpaceInstanceTransferResponse': # noqa: E501
|
|
148
|
+
"""cloud_space_service_cancel_running_cloud_space_instance_transfer # noqa: E501
|
|
149
|
+
|
|
150
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
151
|
+
asynchronous HTTP request, please pass async_req=True
|
|
152
|
+
>>> thread = api.cloud_space_service_cancel_running_cloud_space_instance_transfer(project_id, id, async_req=True)
|
|
153
|
+
>>> result = thread.get()
|
|
154
|
+
|
|
155
|
+
:param async_req bool
|
|
156
|
+
:param str project_id: (required)
|
|
157
|
+
:param str id: (required)
|
|
158
|
+
:return: V1CancelRunningCloudSpaceInstanceTransferResponse
|
|
159
|
+
If the method is called asynchronously,
|
|
160
|
+
returns the request thread.
|
|
161
|
+
"""
|
|
162
|
+
kwargs['_return_http_data_only'] = True
|
|
163
|
+
if kwargs.get('async_req'):
|
|
164
|
+
return self.cloud_space_service_cancel_running_cloud_space_instance_transfer_with_http_info(project_id, id, **kwargs) # noqa: E501
|
|
165
|
+
else:
|
|
166
|
+
(data) = self.cloud_space_service_cancel_running_cloud_space_instance_transfer_with_http_info(project_id, id, **kwargs) # noqa: E501
|
|
167
|
+
return data
|
|
168
|
+
|
|
169
|
+
def cloud_space_service_cancel_running_cloud_space_instance_transfer_with_http_info(self, project_id: 'str', id: 'str', **kwargs) -> 'V1CancelRunningCloudSpaceInstanceTransferResponse': # noqa: E501
|
|
170
|
+
"""cloud_space_service_cancel_running_cloud_space_instance_transfer # noqa: E501
|
|
171
|
+
|
|
172
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
173
|
+
asynchronous HTTP request, please pass async_req=True
|
|
174
|
+
>>> thread = api.cloud_space_service_cancel_running_cloud_space_instance_transfer_with_http_info(project_id, id, async_req=True)
|
|
175
|
+
>>> result = thread.get()
|
|
176
|
+
|
|
177
|
+
:param async_req bool
|
|
178
|
+
:param str project_id: (required)
|
|
179
|
+
:param str id: (required)
|
|
180
|
+
:return: V1CancelRunningCloudSpaceInstanceTransferResponse
|
|
181
|
+
If the method is called asynchronously,
|
|
182
|
+
returns the request thread.
|
|
183
|
+
"""
|
|
184
|
+
|
|
185
|
+
all_params = ['project_id', 'id'] # noqa: E501
|
|
186
|
+
all_params.append('async_req')
|
|
187
|
+
all_params.append('_return_http_data_only')
|
|
188
|
+
all_params.append('_preload_content')
|
|
189
|
+
all_params.append('_request_timeout')
|
|
190
|
+
|
|
191
|
+
params = locals()
|
|
192
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
193
|
+
if key not in all_params:
|
|
194
|
+
raise TypeError(
|
|
195
|
+
"Got an unexpected keyword argument '%s'"
|
|
196
|
+
" to method cloud_space_service_cancel_running_cloud_space_instance_transfer" % key
|
|
197
|
+
)
|
|
198
|
+
params[key] = val
|
|
199
|
+
del params['kwargs']
|
|
200
|
+
# verify the required parameter 'project_id' is set
|
|
201
|
+
if ('project_id' not in params or
|
|
202
|
+
params['project_id'] is None):
|
|
203
|
+
raise ValueError("Missing the required parameter `project_id` when calling `cloud_space_service_cancel_running_cloud_space_instance_transfer`") # noqa: E501
|
|
204
|
+
# verify the required parameter 'id' is set
|
|
205
|
+
if ('id' not in params or
|
|
206
|
+
params['id'] is None):
|
|
207
|
+
raise ValueError("Missing the required parameter `id` when calling `cloud_space_service_cancel_running_cloud_space_instance_transfer`") # noqa: E501
|
|
208
|
+
|
|
209
|
+
collection_formats = {}
|
|
210
|
+
|
|
211
|
+
path_params = {}
|
|
212
|
+
if 'project_id' in params:
|
|
213
|
+
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
214
|
+
if 'id' in params:
|
|
215
|
+
path_params['id'] = params['id'] # noqa: E501
|
|
216
|
+
|
|
217
|
+
query_params = []
|
|
218
|
+
|
|
219
|
+
header_params = {}
|
|
220
|
+
|
|
221
|
+
form_params = []
|
|
222
|
+
local_var_files = {}
|
|
223
|
+
|
|
224
|
+
body_params = None
|
|
225
|
+
# HTTP header `Accept`
|
|
226
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
227
|
+
['application/json']) # noqa: E501
|
|
228
|
+
|
|
229
|
+
# Authentication setting
|
|
230
|
+
auth_settings = [] # noqa: E501
|
|
231
|
+
|
|
232
|
+
return self.api_client.call_api(
|
|
233
|
+
'/v1/projects/{projectId}/cloudspaces/{id}/cancel-transfer', 'POST',
|
|
234
|
+
path_params,
|
|
235
|
+
query_params,
|
|
236
|
+
header_params,
|
|
237
|
+
body=body_params,
|
|
238
|
+
post_params=form_params,
|
|
239
|
+
files=local_var_files,
|
|
240
|
+
response_type='V1CancelRunningCloudSpaceInstanceTransferResponse', # noqa: E501
|
|
241
|
+
auth_settings=auth_settings,
|
|
242
|
+
async_req=params.get('async_req'),
|
|
243
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
244
|
+
_preload_content=params.get('_preload_content', True),
|
|
245
|
+
_request_timeout=params.get('_request_timeout'),
|
|
246
|
+
collection_formats=collection_formats)
|
|
247
|
+
|
|
147
248
|
def cloud_space_service_check_external_service_status(self, **kwargs) -> 'V1CheckExternalServiceStatusResponse': # noqa: E501
|
|
148
249
|
"""Endpoint for checking GitHub status so we can show an error \"it's not our fault\" when GitHub is down and stuff starts breaking for our users. # noqa: E501
|
|
149
250
|
|
|
@@ -3885,6 +3986,107 @@ class CloudSpaceServiceApi(object):
|
|
|
3885
3986
|
_request_timeout=params.get('_request_timeout'),
|
|
3886
3987
|
collection_formats=collection_formats)
|
|
3887
3988
|
|
|
3989
|
+
def cloud_space_service_get_cloud_space_required_balance_status(self, project_id: 'str', cloudspace_id: 'str', **kwargs) -> 'V1GetCloudSpaceRequiredBalanceStatusResponse': # noqa: E501
|
|
3990
|
+
"""cloud_space_service_get_cloud_space_required_balance_status # noqa: E501
|
|
3991
|
+
|
|
3992
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
3993
|
+
asynchronous HTTP request, please pass async_req=True
|
|
3994
|
+
>>> thread = api.cloud_space_service_get_cloud_space_required_balance_status(project_id, cloudspace_id, async_req=True)
|
|
3995
|
+
>>> result = thread.get()
|
|
3996
|
+
|
|
3997
|
+
:param async_req bool
|
|
3998
|
+
:param str project_id: (required)
|
|
3999
|
+
:param str cloudspace_id: (required)
|
|
4000
|
+
:return: V1GetCloudSpaceRequiredBalanceStatusResponse
|
|
4001
|
+
If the method is called asynchronously,
|
|
4002
|
+
returns the request thread.
|
|
4003
|
+
"""
|
|
4004
|
+
kwargs['_return_http_data_only'] = True
|
|
4005
|
+
if kwargs.get('async_req'):
|
|
4006
|
+
return self.cloud_space_service_get_cloud_space_required_balance_status_with_http_info(project_id, cloudspace_id, **kwargs) # noqa: E501
|
|
4007
|
+
else:
|
|
4008
|
+
(data) = self.cloud_space_service_get_cloud_space_required_balance_status_with_http_info(project_id, cloudspace_id, **kwargs) # noqa: E501
|
|
4009
|
+
return data
|
|
4010
|
+
|
|
4011
|
+
def cloud_space_service_get_cloud_space_required_balance_status_with_http_info(self, project_id: 'str', cloudspace_id: 'str', **kwargs) -> 'V1GetCloudSpaceRequiredBalanceStatusResponse': # noqa: E501
|
|
4012
|
+
"""cloud_space_service_get_cloud_space_required_balance_status # noqa: E501
|
|
4013
|
+
|
|
4014
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
4015
|
+
asynchronous HTTP request, please pass async_req=True
|
|
4016
|
+
>>> thread = api.cloud_space_service_get_cloud_space_required_balance_status_with_http_info(project_id, cloudspace_id, async_req=True)
|
|
4017
|
+
>>> result = thread.get()
|
|
4018
|
+
|
|
4019
|
+
:param async_req bool
|
|
4020
|
+
:param str project_id: (required)
|
|
4021
|
+
:param str cloudspace_id: (required)
|
|
4022
|
+
:return: V1GetCloudSpaceRequiredBalanceStatusResponse
|
|
4023
|
+
If the method is called asynchronously,
|
|
4024
|
+
returns the request thread.
|
|
4025
|
+
"""
|
|
4026
|
+
|
|
4027
|
+
all_params = ['project_id', 'cloudspace_id'] # noqa: E501
|
|
4028
|
+
all_params.append('async_req')
|
|
4029
|
+
all_params.append('_return_http_data_only')
|
|
4030
|
+
all_params.append('_preload_content')
|
|
4031
|
+
all_params.append('_request_timeout')
|
|
4032
|
+
|
|
4033
|
+
params = locals()
|
|
4034
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
4035
|
+
if key not in all_params:
|
|
4036
|
+
raise TypeError(
|
|
4037
|
+
"Got an unexpected keyword argument '%s'"
|
|
4038
|
+
" to method cloud_space_service_get_cloud_space_required_balance_status" % key
|
|
4039
|
+
)
|
|
4040
|
+
params[key] = val
|
|
4041
|
+
del params['kwargs']
|
|
4042
|
+
# verify the required parameter 'project_id' is set
|
|
4043
|
+
if ('project_id' not in params or
|
|
4044
|
+
params['project_id'] is None):
|
|
4045
|
+
raise ValueError("Missing the required parameter `project_id` when calling `cloud_space_service_get_cloud_space_required_balance_status`") # noqa: E501
|
|
4046
|
+
# verify the required parameter 'cloudspace_id' is set
|
|
4047
|
+
if ('cloudspace_id' not in params or
|
|
4048
|
+
params['cloudspace_id'] is None):
|
|
4049
|
+
raise ValueError("Missing the required parameter `cloudspace_id` when calling `cloud_space_service_get_cloud_space_required_balance_status`") # noqa: E501
|
|
4050
|
+
|
|
4051
|
+
collection_formats = {}
|
|
4052
|
+
|
|
4053
|
+
path_params = {}
|
|
4054
|
+
if 'project_id' in params:
|
|
4055
|
+
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
4056
|
+
if 'cloudspace_id' in params:
|
|
4057
|
+
path_params['cloudspaceId'] = params['cloudspace_id'] # noqa: E501
|
|
4058
|
+
|
|
4059
|
+
query_params = []
|
|
4060
|
+
|
|
4061
|
+
header_params = {}
|
|
4062
|
+
|
|
4063
|
+
form_params = []
|
|
4064
|
+
local_var_files = {}
|
|
4065
|
+
|
|
4066
|
+
body_params = None
|
|
4067
|
+
# HTTP header `Accept`
|
|
4068
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
4069
|
+
['application/json']) # noqa: E501
|
|
4070
|
+
|
|
4071
|
+
# Authentication setting
|
|
4072
|
+
auth_settings = [] # noqa: E501
|
|
4073
|
+
|
|
4074
|
+
return self.api_client.call_api(
|
|
4075
|
+
'/v1/projects/{projectId}/cloudspaces/{cloudspaceId}/required-balance-status', 'GET',
|
|
4076
|
+
path_params,
|
|
4077
|
+
query_params,
|
|
4078
|
+
header_params,
|
|
4079
|
+
body=body_params,
|
|
4080
|
+
post_params=form_params,
|
|
4081
|
+
files=local_var_files,
|
|
4082
|
+
response_type='V1GetCloudSpaceRequiredBalanceStatusResponse', # noqa: E501
|
|
4083
|
+
auth_settings=auth_settings,
|
|
4084
|
+
async_req=params.get('async_req'),
|
|
4085
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
4086
|
+
_preload_content=params.get('_preload_content', True),
|
|
4087
|
+
_request_timeout=params.get('_request_timeout'),
|
|
4088
|
+
collection_formats=collection_formats)
|
|
4089
|
+
|
|
3888
4090
|
def cloud_space_service_get_cloud_space_size(self, project_id: 'str', cloudspace_id: 'str', **kwargs) -> 'V1GetCloudSpaceSizeResponse': # noqa: E501
|
|
3889
4091
|
"""cloud_space_service_get_cloud_space_size # noqa: E501
|
|
3890
4092
|
|
|
@@ -584,6 +584,107 @@ class DataConnectionServiceApi(object):
|
|
|
584
584
|
_request_timeout=params.get('_request_timeout'),
|
|
585
585
|
collection_formats=collection_formats)
|
|
586
586
|
|
|
587
|
+
def data_connection_service_get_temp_bucket_credentials(self, project_id: 'str', id: 'str', **kwargs) -> 'V1GetTempBucketCredentialsResponse': # noqa: E501
|
|
588
|
+
"""data_connection_service_get_temp_bucket_credentials # noqa: E501
|
|
589
|
+
|
|
590
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
591
|
+
asynchronous HTTP request, please pass async_req=True
|
|
592
|
+
>>> thread = api.data_connection_service_get_temp_bucket_credentials(project_id, id, async_req=True)
|
|
593
|
+
>>> result = thread.get()
|
|
594
|
+
|
|
595
|
+
:param async_req bool
|
|
596
|
+
:param str project_id: (required)
|
|
597
|
+
:param str id: (required)
|
|
598
|
+
:return: V1GetTempBucketCredentialsResponse
|
|
599
|
+
If the method is called asynchronously,
|
|
600
|
+
returns the request thread.
|
|
601
|
+
"""
|
|
602
|
+
kwargs['_return_http_data_only'] = True
|
|
603
|
+
if kwargs.get('async_req'):
|
|
604
|
+
return self.data_connection_service_get_temp_bucket_credentials_with_http_info(project_id, id, **kwargs) # noqa: E501
|
|
605
|
+
else:
|
|
606
|
+
(data) = self.data_connection_service_get_temp_bucket_credentials_with_http_info(project_id, id, **kwargs) # noqa: E501
|
|
607
|
+
return data
|
|
608
|
+
|
|
609
|
+
def data_connection_service_get_temp_bucket_credentials_with_http_info(self, project_id: 'str', id: 'str', **kwargs) -> 'V1GetTempBucketCredentialsResponse': # noqa: E501
|
|
610
|
+
"""data_connection_service_get_temp_bucket_credentials # noqa: E501
|
|
611
|
+
|
|
612
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
613
|
+
asynchronous HTTP request, please pass async_req=True
|
|
614
|
+
>>> thread = api.data_connection_service_get_temp_bucket_credentials_with_http_info(project_id, id, async_req=True)
|
|
615
|
+
>>> result = thread.get()
|
|
616
|
+
|
|
617
|
+
:param async_req bool
|
|
618
|
+
:param str project_id: (required)
|
|
619
|
+
:param str id: (required)
|
|
620
|
+
:return: V1GetTempBucketCredentialsResponse
|
|
621
|
+
If the method is called asynchronously,
|
|
622
|
+
returns the request thread.
|
|
623
|
+
"""
|
|
624
|
+
|
|
625
|
+
all_params = ['project_id', 'id'] # noqa: E501
|
|
626
|
+
all_params.append('async_req')
|
|
627
|
+
all_params.append('_return_http_data_only')
|
|
628
|
+
all_params.append('_preload_content')
|
|
629
|
+
all_params.append('_request_timeout')
|
|
630
|
+
|
|
631
|
+
params = locals()
|
|
632
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
633
|
+
if key not in all_params:
|
|
634
|
+
raise TypeError(
|
|
635
|
+
"Got an unexpected keyword argument '%s'"
|
|
636
|
+
" to method data_connection_service_get_temp_bucket_credentials" % key
|
|
637
|
+
)
|
|
638
|
+
params[key] = val
|
|
639
|
+
del params['kwargs']
|
|
640
|
+
# verify the required parameter 'project_id' is set
|
|
641
|
+
if ('project_id' not in params or
|
|
642
|
+
params['project_id'] is None):
|
|
643
|
+
raise ValueError("Missing the required parameter `project_id` when calling `data_connection_service_get_temp_bucket_credentials`") # noqa: E501
|
|
644
|
+
# verify the required parameter 'id' is set
|
|
645
|
+
if ('id' not in params or
|
|
646
|
+
params['id'] is None):
|
|
647
|
+
raise ValueError("Missing the required parameter `id` when calling `data_connection_service_get_temp_bucket_credentials`") # noqa: E501
|
|
648
|
+
|
|
649
|
+
collection_formats = {}
|
|
650
|
+
|
|
651
|
+
path_params = {}
|
|
652
|
+
if 'project_id' in params:
|
|
653
|
+
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
654
|
+
if 'id' in params:
|
|
655
|
+
path_params['id'] = params['id'] # noqa: E501
|
|
656
|
+
|
|
657
|
+
query_params = []
|
|
658
|
+
|
|
659
|
+
header_params = {}
|
|
660
|
+
|
|
661
|
+
form_params = []
|
|
662
|
+
local_var_files = {}
|
|
663
|
+
|
|
664
|
+
body_params = None
|
|
665
|
+
# HTTP header `Accept`
|
|
666
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
667
|
+
['application/json']) # noqa: E501
|
|
668
|
+
|
|
669
|
+
# Authentication setting
|
|
670
|
+
auth_settings = [] # noqa: E501
|
|
671
|
+
|
|
672
|
+
return self.api_client.call_api(
|
|
673
|
+
'/v1/projects/{projectId}/data-connections/{id}/temp-bucket-credentials', 'GET',
|
|
674
|
+
path_params,
|
|
675
|
+
query_params,
|
|
676
|
+
header_params,
|
|
677
|
+
body=body_params,
|
|
678
|
+
post_params=form_params,
|
|
679
|
+
files=local_var_files,
|
|
680
|
+
response_type='V1GetTempBucketCredentialsResponse', # noqa: E501
|
|
681
|
+
auth_settings=auth_settings,
|
|
682
|
+
async_req=params.get('async_req'),
|
|
683
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
684
|
+
_preload_content=params.get('_preload_content', True),
|
|
685
|
+
_request_timeout=params.get('_request_timeout'),
|
|
686
|
+
collection_formats=collection_formats)
|
|
687
|
+
|
|
587
688
|
def data_connection_service_list_data_connection_artifacts(self, project_id: 'str', id: 'str', **kwargs) -> 'V1ListDataConnectionArtifactsResponse': # noqa: E501
|
|
588
689
|
"""data_connection_service_list_data_connection_artifacts # noqa: E501
|
|
589
690
|
|
|
@@ -1948,7 +1948,7 @@ class ModelsStoreApi(object):
|
|
|
1948
1948
|
_request_timeout=params.get('_request_timeout'),
|
|
1949
1949
|
collection_formats=collection_formats)
|
|
1950
1950
|
|
|
1951
|
-
def models_store_update_model(self, body: '
|
|
1951
|
+
def models_store_update_model(self, body: 'ModelsModelIdBody1', project_id: 'str', model_id: 'str', **kwargs) -> 'V1Model': # noqa: E501
|
|
1952
1952
|
"""UpdateModel updates the model, in particular the model's name. # noqa: E501
|
|
1953
1953
|
|
|
1954
1954
|
This method makes a synchronous HTTP request by default. To make an
|
|
@@ -1957,7 +1957,7 @@ class ModelsStoreApi(object):
|
|
|
1957
1957
|
>>> result = thread.get()
|
|
1958
1958
|
|
|
1959
1959
|
:param async_req bool
|
|
1960
|
-
:param
|
|
1960
|
+
:param ModelsModelIdBody1 body: (required)
|
|
1961
1961
|
:param str project_id: (required)
|
|
1962
1962
|
:param str model_id: (required)
|
|
1963
1963
|
:return: V1Model
|
|
@@ -1971,7 +1971,7 @@ class ModelsStoreApi(object):
|
|
|
1971
1971
|
(data) = self.models_store_update_model_with_http_info(body, project_id, model_id, **kwargs) # noqa: E501
|
|
1972
1972
|
return data
|
|
1973
1973
|
|
|
1974
|
-
def models_store_update_model_with_http_info(self, body: '
|
|
1974
|
+
def models_store_update_model_with_http_info(self, body: 'ModelsModelIdBody1', project_id: 'str', model_id: 'str', **kwargs) -> 'V1Model': # noqa: E501
|
|
1975
1975
|
"""UpdateModel updates the model, in particular the model's name. # noqa: E501
|
|
1976
1976
|
|
|
1977
1977
|
This method makes a synchronous HTTP request by default. To make an
|
|
@@ -1980,7 +1980,7 @@ class ModelsStoreApi(object):
|
|
|
1980
1980
|
>>> result = thread.get()
|
|
1981
1981
|
|
|
1982
1982
|
:param async_req bool
|
|
1983
|
-
:param
|
|
1983
|
+
:param ModelsModelIdBody1 body: (required)
|
|
1984
1984
|
:param str project_id: (required)
|
|
1985
1985
|
:param str model_id: (required)
|
|
1986
1986
|
:return: V1Model
|
|
@@ -125,6 +125,7 @@ from lightning_sdk.lightning_cloud.openapi.models.model_id_versions_body import
|
|
|
125
125
|
from lightning_sdk.lightning_cloud.openapi.models.model_id_visibility_body import ModelIdVisibilityBody
|
|
126
126
|
from lightning_sdk.lightning_cloud.openapi.models.models_id_body import ModelsIdBody
|
|
127
127
|
from lightning_sdk.lightning_cloud.openapi.models.models_model_id_body import ModelsModelIdBody
|
|
128
|
+
from lightning_sdk.lightning_cloud.openapi.models.models_model_id_body1 import ModelsModelIdBody1
|
|
128
129
|
from lightning_sdk.lightning_cloud.openapi.models.multimachinejobs_id_body import MultimachinejobsIdBody
|
|
129
130
|
from lightning_sdk.lightning_cloud.openapi.models.multipartuploads_upload_id_body import MultipartuploadsUploadIdBody
|
|
130
131
|
from lightning_sdk.lightning_cloud.openapi.models.org_id_memberships_body import OrgIdMembershipsBody
|
|
@@ -202,6 +203,7 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_agent_job import V1AgentJob
|
|
|
202
203
|
from lightning_sdk.lightning_cloud.openapi.models.v1_agent_job_artifact import V1AgentJobArtifact
|
|
203
204
|
from lightning_sdk.lightning_cloud.openapi.models.v1_agent_upload_multipart_url import V1AgentUploadMultipartUrl
|
|
204
205
|
from lightning_sdk.lightning_cloud.openapi.models.v1_agent_upload_part_response import V1AgentUploadPartResponse
|
|
206
|
+
from lightning_sdk.lightning_cloud.openapi.models.v1_aggregated_pod_metrics import V1AggregatedPodMetrics
|
|
205
207
|
from lightning_sdk.lightning_cloud.openapi.models.v1_ai_pod_v1 import V1AiPodV1
|
|
206
208
|
from lightning_sdk.lightning_cloud.openapi.models.v1_alert_method import V1AlertMethod
|
|
207
209
|
from lightning_sdk.lightning_cloud.openapi.models.v1_alerts_config import V1AlertsConfig
|
|
@@ -232,6 +234,7 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_body import V1Body
|
|
|
232
234
|
from lightning_sdk.lightning_cloud.openapi.models.v1_build_spec import V1BuildSpec
|
|
233
235
|
from lightning_sdk.lightning_cloud.openapi.models.v1_cpu_system_metrics import V1CPUSystemMetrics
|
|
234
236
|
from lightning_sdk.lightning_cloud.openapi.models.v1_cancel_cloud_space_instance_switch_response import V1CancelCloudSpaceInstanceSwitchResponse
|
|
237
|
+
from lightning_sdk.lightning_cloud.openapi.models.v1_cancel_running_cloud_space_instance_transfer_response import V1CancelRunningCloudSpaceInstanceTransferResponse
|
|
235
238
|
from lightning_sdk.lightning_cloud.openapi.models.v1_cancellation_metadata import V1CancellationMetadata
|
|
236
239
|
from lightning_sdk.lightning_cloud.openapi.models.v1_capacity_block_offering import V1CapacityBlockOffering
|
|
237
240
|
from lightning_sdk.lightning_cloud.openapi.models.v1_check_cluster_name_availability_request import V1CheckClusterNameAvailabilityRequest
|
|
@@ -334,6 +337,7 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_create_lit_dataset_multi_pa
|
|
|
334
337
|
from lightning_sdk.lightning_cloud.openapi.models.v1_create_lit_page_request import V1CreateLitPageRequest
|
|
335
338
|
from lightning_sdk.lightning_cloud.openapi.models.v1_create_lit_page_response import V1CreateLitPageResponse
|
|
336
339
|
from lightning_sdk.lightning_cloud.openapi.models.v1_create_managed_endpoint_response import V1CreateManagedEndpointResponse
|
|
340
|
+
from lightning_sdk.lightning_cloud.openapi.models.v1_create_model_metrics_response import V1CreateModelMetricsResponse
|
|
337
341
|
from lightning_sdk.lightning_cloud.openapi.models.v1_create_multi_machine_job_request import V1CreateMultiMachineJobRequest
|
|
338
342
|
from lightning_sdk.lightning_cloud.openapi.models.v1_create_multi_part_upload_response import V1CreateMultiPartUploadResponse
|
|
339
343
|
from lightning_sdk.lightning_cloud.openapi.models.v1_create_organization_request import V1CreateOrganizationRequest
|
|
@@ -347,6 +351,7 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_create_snowflake_connection
|
|
|
347
351
|
from lightning_sdk.lightning_cloud.openapi.models.v1_create_subscription_checkout_session_request import V1CreateSubscriptionCheckoutSessionRequest
|
|
348
352
|
from lightning_sdk.lightning_cloud.openapi.models.v1_create_subscription_checkout_session_response import V1CreateSubscriptionCheckoutSessionResponse
|
|
349
353
|
from lightning_sdk.lightning_cloud.openapi.models.v1_create_user_secret_request import V1CreateUserSecretRequest
|
|
354
|
+
from lightning_sdk.lightning_cloud.openapi.models.v1_daily_model_metrics import V1DailyModelMetrics
|
|
350
355
|
from lightning_sdk.lightning_cloud.openapi.models.v1_daily_usage import V1DailyUsage
|
|
351
356
|
from lightning_sdk.lightning_cloud.openapi.models.v1_data_connection import V1DataConnection
|
|
352
357
|
from lightning_sdk.lightning_cloud.openapi.models.v1_data_connection_artifact import V1DataConnectionArtifact
|
|
@@ -500,6 +505,7 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_get_cloud_space_cold_start_
|
|
|
500
505
|
from lightning_sdk.lightning_cloud.openapi.models.v1_get_cloud_space_instance_open_ports_response import V1GetCloudSpaceInstanceOpenPortsResponse
|
|
501
506
|
from lightning_sdk.lightning_cloud.openapi.models.v1_get_cloud_space_instance_status_response import V1GetCloudSpaceInstanceStatusResponse
|
|
502
507
|
from lightning_sdk.lightning_cloud.openapi.models.v1_get_cloud_space_instance_system_metrics_aggregate_response import V1GetCloudSpaceInstanceSystemMetricsAggregateResponse
|
|
508
|
+
from lightning_sdk.lightning_cloud.openapi.models.v1_get_cloud_space_required_balance_status_response import V1GetCloudSpaceRequiredBalanceStatusResponse
|
|
503
509
|
from lightning_sdk.lightning_cloud.openapi.models.v1_get_cloud_space_size_response import V1GetCloudSpaceSizeResponse
|
|
504
510
|
from lightning_sdk.lightning_cloud.openapi.models.v1_get_cluster_accelerator_demand_response import V1GetClusterAcceleratorDemandResponse
|
|
505
511
|
from lightning_sdk.lightning_cloud.openapi.models.v1_get_cluster_credentials_response import V1GetClusterCredentialsResponse
|
|
@@ -510,6 +516,7 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_get_deployment_routing_tele
|
|
|
510
516
|
from lightning_sdk.lightning_cloud.openapi.models.v1_get_folder_index_response import V1GetFolderIndexResponse
|
|
511
517
|
from lightning_sdk.lightning_cloud.openapi.models.v1_get_job_stats_response import V1GetJobStatsResponse
|
|
512
518
|
from lightning_sdk.lightning_cloud.openapi.models.v1_get_job_system_metrics_response import V1GetJobSystemMetricsResponse
|
|
519
|
+
from lightning_sdk.lightning_cloud.openapi.models.v1_get_latest_model_metrics_response import V1GetLatestModelMetricsResponse
|
|
513
520
|
from lightning_sdk.lightning_cloud.openapi.models.v1_get_lightning_run_source_code_download_url_response import V1GetLightningRunSourceCodeDownloadUrlResponse
|
|
514
521
|
from lightning_sdk.lightning_cloud.openapi.models.v1_get_lightningapp_instance_open_ports_response import V1GetLightningappInstanceOpenPortsResponse
|
|
515
522
|
from lightning_sdk.lightning_cloud.openapi.models.v1_get_lightningapp_instance_system_metrics_response import V1GetLightningappInstanceSystemMetricsResponse
|
|
@@ -522,6 +529,8 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_get_model_file_upload_urls_
|
|
|
522
529
|
from lightning_sdk.lightning_cloud.openapi.models.v1_get_model_file_url_response import V1GetModelFileUrlResponse
|
|
523
530
|
from lightning_sdk.lightning_cloud.openapi.models.v1_get_model_files_response import V1GetModelFilesResponse
|
|
524
531
|
from lightning_sdk.lightning_cloud.openapi.models.v1_get_model_files_url_response import V1GetModelFilesUrlResponse
|
|
532
|
+
from lightning_sdk.lightning_cloud.openapi.models.v1_get_model_metrics_response import V1GetModelMetricsResponse
|
|
533
|
+
from lightning_sdk.lightning_cloud.openapi.models.v1_get_model_total_usage_metrics_response import V1GetModelTotalUsageMetricsResponse
|
|
525
534
|
from lightning_sdk.lightning_cloud.openapi.models.v1_get_organization_storage_metadata_response import V1GetOrganizationStorageMetadataResponse
|
|
526
535
|
from lightning_sdk.lightning_cloud.openapi.models.v1_get_project_artifact_response import V1GetProjectArtifactResponse
|
|
527
536
|
from lightning_sdk.lightning_cloud.openapi.models.v1_get_project_balance_response import V1GetProjectBalanceResponse
|
|
@@ -529,6 +538,7 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_get_project_compute_usage_r
|
|
|
529
538
|
from lightning_sdk.lightning_cloud.openapi.models.v1_get_project_storage_metadata_response import V1GetProjectStorageMetadataResponse
|
|
530
539
|
from lightning_sdk.lightning_cloud.openapi.models.v1_get_settings_response import V1GetSettingsResponse
|
|
531
540
|
from lightning_sdk.lightning_cloud.openapi.models.v1_get_snowflake_query_response import V1GetSnowflakeQueryResponse
|
|
541
|
+
from lightning_sdk.lightning_cloud.openapi.models.v1_get_temp_bucket_credentials_response import V1GetTempBucketCredentialsResponse
|
|
532
542
|
from lightning_sdk.lightning_cloud.openapi.models.v1_get_usage_details_response import V1GetUsageDetailsResponse
|
|
533
543
|
from lightning_sdk.lightning_cloud.openapi.models.v1_get_user_balance_response import V1GetUserBalanceResponse
|
|
534
544
|
from lightning_sdk.lightning_cloud.openapi.models.v1_get_user_notification_preferences_response import V1GetUserNotificationPreferencesResponse
|
|
@@ -538,6 +548,10 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_get_volume_response import
|
|
|
538
548
|
from lightning_sdk.lightning_cloud.openapi.models.v1_git_credentials import V1GitCredentials
|
|
539
549
|
from lightning_sdk.lightning_cloud.openapi.models.v1_google_cloud_direct_v1 import V1GoogleCloudDirectV1
|
|
540
550
|
from lightning_sdk.lightning_cloud.openapi.models.v1_google_cloud_direct_v1_status import V1GoogleCloudDirectV1Status
|
|
551
|
+
from lightning_sdk.lightning_cloud.openapi.models.v1_group_node_metrics import V1GroupNodeMetrics
|
|
552
|
+
from lightning_sdk.lightning_cloud.openapi.models.v1_guest_login_request import V1GuestLoginRequest
|
|
553
|
+
from lightning_sdk.lightning_cloud.openapi.models.v1_guest_login_response import V1GuestLoginResponse
|
|
554
|
+
from lightning_sdk.lightning_cloud.openapi.models.v1_guest_user import V1GuestUser
|
|
541
555
|
from lightning_sdk.lightning_cloud.openapi.models.v1_header import V1Header
|
|
542
556
|
from lightning_sdk.lightning_cloud.openapi.models.v1_health_check_exec import V1HealthCheckExec
|
|
543
557
|
from lightning_sdk.lightning_cloud.openapi.models.v1_health_check_http_get import V1HealthCheckHttpGet
|
|
@@ -731,6 +745,7 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_metrics_tags import V1Metri
|
|
|
731
745
|
from lightning_sdk.lightning_cloud.openapi.models.v1_metrics_tracker import V1MetricsTracker
|
|
732
746
|
from lightning_sdk.lightning_cloud.openapi.models.v1_model import V1Model
|
|
733
747
|
from lightning_sdk.lightning_cloud.openapi.models.v1_model_file import V1ModelFile
|
|
748
|
+
from lightning_sdk.lightning_cloud.openapi.models.v1_model_metrics import V1ModelMetrics
|
|
734
749
|
from lightning_sdk.lightning_cloud.openapi.models.v1_model_version_archive import V1ModelVersionArchive
|
|
735
750
|
from lightning_sdk.lightning_cloud.openapi.models.v1_modify_filesystem_volume_response import V1ModifyFilesystemVolumeResponse
|
|
736
751
|
from lightning_sdk.lightning_cloud.openapi.models.v1_mount_target import V1MountTarget
|
|
@@ -825,6 +840,7 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_request_cloud_space_access_
|
|
|
825
840
|
from lightning_sdk.lightning_cloud.openapi.models.v1_request_cluster_access_request import V1RequestClusterAccessRequest
|
|
826
841
|
from lightning_sdk.lightning_cloud.openapi.models.v1_request_cluster_access_response import V1RequestClusterAccessResponse
|
|
827
842
|
from lightning_sdk.lightning_cloud.openapi.models.v1_request_verification_code_response import V1RequestVerificationCodeResponse
|
|
843
|
+
from lightning_sdk.lightning_cloud.openapi.models.v1_required_balance_reason import V1RequiredBalanceReason
|
|
828
844
|
from lightning_sdk.lightning_cloud.openapi.models.v1_reservation_details import V1ReservationDetails
|
|
829
845
|
from lightning_sdk.lightning_cloud.openapi.models.v1_resource_tag import V1ResourceTag
|
|
830
846
|
from lightning_sdk.lightning_cloud.openapi.models.v1_resource_visibility import V1ResourceVisibility
|
|
@@ -43,6 +43,7 @@ class ClusterIdMetricsBody(object):
|
|
|
43
43
|
swagger_types = {
|
|
44
44
|
'cluster_metrics': 'V1ClusterMetrics',
|
|
45
45
|
'container_metrics': 'list[V1ContainerMetrics]',
|
|
46
|
+
'group_node_metrics': 'list[V1GroupNodeMetrics]',
|
|
46
47
|
'namespace_metrics': 'list[V1NamespaceMetrics]',
|
|
47
48
|
'node_metrics': 'list[V1NodeMetrics]',
|
|
48
49
|
'pod_metrics': 'list[V1PodMetrics]'
|
|
@@ -51,15 +52,17 @@ class ClusterIdMetricsBody(object):
|
|
|
51
52
|
attribute_map = {
|
|
52
53
|
'cluster_metrics': 'clusterMetrics',
|
|
53
54
|
'container_metrics': 'containerMetrics',
|
|
55
|
+
'group_node_metrics': 'groupNodeMetrics',
|
|
54
56
|
'namespace_metrics': 'namespaceMetrics',
|
|
55
57
|
'node_metrics': 'nodeMetrics',
|
|
56
58
|
'pod_metrics': 'podMetrics'
|
|
57
59
|
}
|
|
58
60
|
|
|
59
|
-
def __init__(self, cluster_metrics: 'V1ClusterMetrics' =None, container_metrics: 'list[V1ContainerMetrics]' =None, namespace_metrics: 'list[V1NamespaceMetrics]' =None, node_metrics: 'list[V1NodeMetrics]' =None, pod_metrics: 'list[V1PodMetrics]' =None): # noqa: E501
|
|
61
|
+
def __init__(self, cluster_metrics: 'V1ClusterMetrics' =None, container_metrics: 'list[V1ContainerMetrics]' =None, group_node_metrics: 'list[V1GroupNodeMetrics]' =None, namespace_metrics: 'list[V1NamespaceMetrics]' =None, node_metrics: 'list[V1NodeMetrics]' =None, pod_metrics: 'list[V1PodMetrics]' =None): # noqa: E501
|
|
60
62
|
"""ClusterIdMetricsBody - a model defined in Swagger""" # noqa: E501
|
|
61
63
|
self._cluster_metrics = None
|
|
62
64
|
self._container_metrics = None
|
|
65
|
+
self._group_node_metrics = None
|
|
63
66
|
self._namespace_metrics = None
|
|
64
67
|
self._node_metrics = None
|
|
65
68
|
self._pod_metrics = None
|
|
@@ -68,6 +71,8 @@ class ClusterIdMetricsBody(object):
|
|
|
68
71
|
self.cluster_metrics = cluster_metrics
|
|
69
72
|
if container_metrics is not None:
|
|
70
73
|
self.container_metrics = container_metrics
|
|
74
|
+
if group_node_metrics is not None:
|
|
75
|
+
self.group_node_metrics = group_node_metrics
|
|
71
76
|
if namespace_metrics is not None:
|
|
72
77
|
self.namespace_metrics = namespace_metrics
|
|
73
78
|
if node_metrics is not None:
|
|
@@ -117,6 +122,27 @@ class ClusterIdMetricsBody(object):
|
|
|
117
122
|
|
|
118
123
|
self._container_metrics = container_metrics
|
|
119
124
|
|
|
125
|
+
@property
|
|
126
|
+
def group_node_metrics(self) -> 'list[V1GroupNodeMetrics]':
|
|
127
|
+
"""Gets the group_node_metrics of this ClusterIdMetricsBody. # noqa: E501
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
:return: The group_node_metrics of this ClusterIdMetricsBody. # noqa: E501
|
|
131
|
+
:rtype: list[V1GroupNodeMetrics]
|
|
132
|
+
"""
|
|
133
|
+
return self._group_node_metrics
|
|
134
|
+
|
|
135
|
+
@group_node_metrics.setter
|
|
136
|
+
def group_node_metrics(self, group_node_metrics: 'list[V1GroupNodeMetrics]'):
|
|
137
|
+
"""Sets the group_node_metrics of this ClusterIdMetricsBody.
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
:param group_node_metrics: The group_node_metrics of this ClusterIdMetricsBody. # noqa: E501
|
|
141
|
+
:type: list[V1GroupNodeMetrics]
|
|
142
|
+
"""
|
|
143
|
+
|
|
144
|
+
self._group_node_metrics = group_node_metrics
|
|
145
|
+
|
|
120
146
|
@property
|
|
121
147
|
def namespace_metrics(self) -> 'list[V1NamespaceMetrics]':
|
|
122
148
|
"""Gets the namespace_metrics of this ClusterIdMetricsBody. # noqa: E501
|