lightning-sdk 2025.9.2__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/lightning_cloud/openapi/__init__.py +5 -0
- lightning_sdk/lightning_cloud/openapi/api/assistants_service_api.py +105 -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 +5 -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/v1_create_model_metrics_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_cloud_space_required_balance_status_response.py +6 -6
- 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_magic_link_login_response.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_node_metrics.py +81 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_required_balance_reason.py +107 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +1 -27
- {lightning_sdk-2025.9.2.dist-info → lightning_sdk-2025.9.4.dist-info}/METADATA +1 -1
- {lightning_sdk-2025.9.2.dist-info → lightning_sdk-2025.9.4.dist-info}/RECORD +23 -18
- {lightning_sdk-2025.9.2.dist-info → lightning_sdk-2025.9.4.dist-info}/LICENSE +0 -0
- {lightning_sdk-2025.9.2.dist-info → lightning_sdk-2025.9.4.dist-info}/WHEEL +0 -0
- {lightning_sdk-2025.9.2.dist-info → lightning_sdk-2025.9.4.dist-info}/entry_points.txt +0 -0
- {lightning_sdk-2025.9.2.dist-info → lightning_sdk-2025.9.4.dist-info}/top_level.txt +0 -0
lightning_sdk/__init__.py
CHANGED
|
@@ -173,6 +173,7 @@ from lightning_sdk.lightning_cloud.openapi.models.model_id_versions_body import
|
|
|
173
173
|
from lightning_sdk.lightning_cloud.openapi.models.model_id_visibility_body import ModelIdVisibilityBody
|
|
174
174
|
from lightning_sdk.lightning_cloud.openapi.models.models_id_body import ModelsIdBody
|
|
175
175
|
from lightning_sdk.lightning_cloud.openapi.models.models_model_id_body import ModelsModelIdBody
|
|
176
|
+
from lightning_sdk.lightning_cloud.openapi.models.models_model_id_body1 import ModelsModelIdBody1
|
|
176
177
|
from lightning_sdk.lightning_cloud.openapi.models.multimachinejobs_id_body import MultimachinejobsIdBody
|
|
177
178
|
from lightning_sdk.lightning_cloud.openapi.models.multipartuploads_upload_id_body import MultipartuploadsUploadIdBody
|
|
178
179
|
from lightning_sdk.lightning_cloud.openapi.models.org_id_memberships_body import OrgIdMembershipsBody
|
|
@@ -384,6 +385,7 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_create_lit_dataset_multi_pa
|
|
|
384
385
|
from lightning_sdk.lightning_cloud.openapi.models.v1_create_lit_page_request import V1CreateLitPageRequest
|
|
385
386
|
from lightning_sdk.lightning_cloud.openapi.models.v1_create_lit_page_response import V1CreateLitPageResponse
|
|
386
387
|
from lightning_sdk.lightning_cloud.openapi.models.v1_create_managed_endpoint_response import V1CreateManagedEndpointResponse
|
|
388
|
+
from lightning_sdk.lightning_cloud.openapi.models.v1_create_model_metrics_response import V1CreateModelMetricsResponse
|
|
387
389
|
from lightning_sdk.lightning_cloud.openapi.models.v1_create_multi_machine_job_request import V1CreateMultiMachineJobRequest
|
|
388
390
|
from lightning_sdk.lightning_cloud.openapi.models.v1_create_multi_part_upload_response import V1CreateMultiPartUploadResponse
|
|
389
391
|
from lightning_sdk.lightning_cloud.openapi.models.v1_create_organization_request import V1CreateOrganizationRequest
|
|
@@ -584,6 +586,7 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_get_project_compute_usage_r
|
|
|
584
586
|
from lightning_sdk.lightning_cloud.openapi.models.v1_get_project_storage_metadata_response import V1GetProjectStorageMetadataResponse
|
|
585
587
|
from lightning_sdk.lightning_cloud.openapi.models.v1_get_settings_response import V1GetSettingsResponse
|
|
586
588
|
from lightning_sdk.lightning_cloud.openapi.models.v1_get_snowflake_query_response import V1GetSnowflakeQueryResponse
|
|
589
|
+
from lightning_sdk.lightning_cloud.openapi.models.v1_get_temp_bucket_credentials_response import V1GetTempBucketCredentialsResponse
|
|
587
590
|
from lightning_sdk.lightning_cloud.openapi.models.v1_get_usage_details_response import V1GetUsageDetailsResponse
|
|
588
591
|
from lightning_sdk.lightning_cloud.openapi.models.v1_get_user_balance_response import V1GetUserBalanceResponse
|
|
589
592
|
from lightning_sdk.lightning_cloud.openapi.models.v1_get_user_notification_preferences_response import V1GetUserNotificationPreferencesResponse
|
|
@@ -593,6 +596,7 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_get_volume_response import
|
|
|
593
596
|
from lightning_sdk.lightning_cloud.openapi.models.v1_git_credentials import V1GitCredentials
|
|
594
597
|
from lightning_sdk.lightning_cloud.openapi.models.v1_google_cloud_direct_v1 import V1GoogleCloudDirectV1
|
|
595
598
|
from lightning_sdk.lightning_cloud.openapi.models.v1_google_cloud_direct_v1_status import V1GoogleCloudDirectV1Status
|
|
599
|
+
from lightning_sdk.lightning_cloud.openapi.models.v1_group_node_metrics import V1GroupNodeMetrics
|
|
596
600
|
from lightning_sdk.lightning_cloud.openapi.models.v1_guest_login_request import V1GuestLoginRequest
|
|
597
601
|
from lightning_sdk.lightning_cloud.openapi.models.v1_guest_login_response import V1GuestLoginResponse
|
|
598
602
|
from lightning_sdk.lightning_cloud.openapi.models.v1_guest_user import V1GuestUser
|
|
@@ -884,6 +888,7 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_request_cloud_space_access_
|
|
|
884
888
|
from lightning_sdk.lightning_cloud.openapi.models.v1_request_cluster_access_request import V1RequestClusterAccessRequest
|
|
885
889
|
from lightning_sdk.lightning_cloud.openapi.models.v1_request_cluster_access_response import V1RequestClusterAccessResponse
|
|
886
890
|
from lightning_sdk.lightning_cloud.openapi.models.v1_request_verification_code_response import V1RequestVerificationCodeResponse
|
|
891
|
+
from lightning_sdk.lightning_cloud.openapi.models.v1_required_balance_reason import V1RequiredBalanceReason
|
|
887
892
|
from lightning_sdk.lightning_cloud.openapi.models.v1_reservation_details import V1ReservationDetails
|
|
888
893
|
from lightning_sdk.lightning_cloud.openapi.models.v1_resource_tag import V1ResourceTag
|
|
889
894
|
from lightning_sdk.lightning_cloud.openapi.models.v1_resource_visibility import V1ResourceVisibility
|
|
@@ -358,6 +358,111 @@ class AssistantsServiceApi(object):
|
|
|
358
358
|
_request_timeout=params.get('_request_timeout'),
|
|
359
359
|
collection_formats=collection_formats)
|
|
360
360
|
|
|
361
|
+
def assistants_service_create_model_metrics(self, body: 'ModelsModelIdBody', model_id: 'str', **kwargs) -> 'V1CreateModelMetricsResponse': # noqa: E501
|
|
362
|
+
"""assistants_service_create_model_metrics # 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.assistants_service_create_model_metrics(body, model_id, async_req=True)
|
|
367
|
+
>>> result = thread.get()
|
|
368
|
+
|
|
369
|
+
:param async_req bool
|
|
370
|
+
:param ModelsModelIdBody body: (required)
|
|
371
|
+
:param str model_id: (required)
|
|
372
|
+
:return: V1CreateModelMetricsResponse
|
|
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.assistants_service_create_model_metrics_with_http_info(body, model_id, **kwargs) # noqa: E501
|
|
379
|
+
else:
|
|
380
|
+
(data) = self.assistants_service_create_model_metrics_with_http_info(body, model_id, **kwargs) # noqa: E501
|
|
381
|
+
return data
|
|
382
|
+
|
|
383
|
+
def assistants_service_create_model_metrics_with_http_info(self, body: 'ModelsModelIdBody', model_id: 'str', **kwargs) -> 'V1CreateModelMetricsResponse': # noqa: E501
|
|
384
|
+
"""assistants_service_create_model_metrics # 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.assistants_service_create_model_metrics_with_http_info(body, model_id, async_req=True)
|
|
389
|
+
>>> result = thread.get()
|
|
390
|
+
|
|
391
|
+
:param async_req bool
|
|
392
|
+
:param ModelsModelIdBody body: (required)
|
|
393
|
+
:param str model_id: (required)
|
|
394
|
+
:return: V1CreateModelMetricsResponse
|
|
395
|
+
If the method is called asynchronously,
|
|
396
|
+
returns the request thread.
|
|
397
|
+
"""
|
|
398
|
+
|
|
399
|
+
all_params = ['body', 'model_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 assistants_service_create_model_metrics" % 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 `assistants_service_create_model_metrics`") # noqa: E501
|
|
418
|
+
# verify the required parameter 'model_id' is set
|
|
419
|
+
if ('model_id' not in params or
|
|
420
|
+
params['model_id'] is None):
|
|
421
|
+
raise ValueError("Missing the required parameter `model_id` when calling `assistants_service_create_model_metrics`") # noqa: E501
|
|
422
|
+
|
|
423
|
+
collection_formats = {}
|
|
424
|
+
|
|
425
|
+
path_params = {}
|
|
426
|
+
if 'model_id' in params:
|
|
427
|
+
path_params['modelId'] = params['model_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/agents/metrics/models/{modelId}', '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='V1CreateModelMetricsResponse', # 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
|
+
|
|
361
466
|
def assistants_service_delete_assistant(self, project_id: 'str', id: 'str', **kwargs) -> 'V1DeleteAssistantResponse': # noqa: E501
|
|
362
467
|
"""assistants_service_delete_assistant # noqa: E501
|
|
363
468
|
|
|
@@ -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
|
|
@@ -336,6 +337,7 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_create_lit_dataset_multi_pa
|
|
|
336
337
|
from lightning_sdk.lightning_cloud.openapi.models.v1_create_lit_page_request import V1CreateLitPageRequest
|
|
337
338
|
from lightning_sdk.lightning_cloud.openapi.models.v1_create_lit_page_response import V1CreateLitPageResponse
|
|
338
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
|
|
339
341
|
from lightning_sdk.lightning_cloud.openapi.models.v1_create_multi_machine_job_request import V1CreateMultiMachineJobRequest
|
|
340
342
|
from lightning_sdk.lightning_cloud.openapi.models.v1_create_multi_part_upload_response import V1CreateMultiPartUploadResponse
|
|
341
343
|
from lightning_sdk.lightning_cloud.openapi.models.v1_create_organization_request import V1CreateOrganizationRequest
|
|
@@ -536,6 +538,7 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_get_project_compute_usage_r
|
|
|
536
538
|
from lightning_sdk.lightning_cloud.openapi.models.v1_get_project_storage_metadata_response import V1GetProjectStorageMetadataResponse
|
|
537
539
|
from lightning_sdk.lightning_cloud.openapi.models.v1_get_settings_response import V1GetSettingsResponse
|
|
538
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
|
|
539
542
|
from lightning_sdk.lightning_cloud.openapi.models.v1_get_usage_details_response import V1GetUsageDetailsResponse
|
|
540
543
|
from lightning_sdk.lightning_cloud.openapi.models.v1_get_user_balance_response import V1GetUserBalanceResponse
|
|
541
544
|
from lightning_sdk.lightning_cloud.openapi.models.v1_get_user_notification_preferences_response import V1GetUserNotificationPreferencesResponse
|
|
@@ -545,6 +548,7 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_get_volume_response import
|
|
|
545
548
|
from lightning_sdk.lightning_cloud.openapi.models.v1_git_credentials import V1GitCredentials
|
|
546
549
|
from lightning_sdk.lightning_cloud.openapi.models.v1_google_cloud_direct_v1 import V1GoogleCloudDirectV1
|
|
547
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
|
|
548
552
|
from lightning_sdk.lightning_cloud.openapi.models.v1_guest_login_request import V1GuestLoginRequest
|
|
549
553
|
from lightning_sdk.lightning_cloud.openapi.models.v1_guest_login_response import V1GuestLoginResponse
|
|
550
554
|
from lightning_sdk.lightning_cloud.openapi.models.v1_guest_user import V1GuestUser
|
|
@@ -836,6 +840,7 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_request_cloud_space_access_
|
|
|
836
840
|
from lightning_sdk.lightning_cloud.openapi.models.v1_request_cluster_access_request import V1RequestClusterAccessRequest
|
|
837
841
|
from lightning_sdk.lightning_cloud.openapi.models.v1_request_cluster_access_response import V1RequestClusterAccessResponse
|
|
838
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
|
|
839
844
|
from lightning_sdk.lightning_cloud.openapi.models.v1_reservation_details import V1ReservationDetails
|
|
840
845
|
from lightning_sdk.lightning_cloud.openapi.models.v1_resource_tag import V1ResourceTag
|
|
841
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
|
|
@@ -41,66 +41,144 @@ class ModelsModelIdBody(object):
|
|
|
41
41
|
and the value is json key in definition.
|
|
42
42
|
"""
|
|
43
43
|
swagger_types = {
|
|
44
|
-
'
|
|
45
|
-
'
|
|
44
|
+
'managed_endpoint_id': 'str',
|
|
45
|
+
'metrics': 'V1ModelMetrics',
|
|
46
|
+
'model_display_name': 'str',
|
|
47
|
+
'model_name': 'str',
|
|
48
|
+
'org_id': 'str'
|
|
46
49
|
}
|
|
47
50
|
|
|
48
51
|
attribute_map = {
|
|
49
|
-
'
|
|
50
|
-
'
|
|
52
|
+
'managed_endpoint_id': 'managedEndpointId',
|
|
53
|
+
'metrics': 'metrics',
|
|
54
|
+
'model_display_name': 'modelDisplayName',
|
|
55
|
+
'model_name': 'modelName',
|
|
56
|
+
'org_id': 'orgId'
|
|
51
57
|
}
|
|
52
58
|
|
|
53
|
-
def __init__(self,
|
|
59
|
+
def __init__(self, managed_endpoint_id: 'str' =None, metrics: 'V1ModelMetrics' =None, model_display_name: 'str' =None, model_name: 'str' =None, org_id: 'str' =None): # noqa: E501
|
|
54
60
|
"""ModelsModelIdBody - a model defined in Swagger""" # noqa: E501
|
|
55
|
-
self.
|
|
56
|
-
self.
|
|
61
|
+
self._managed_endpoint_id = None
|
|
62
|
+
self._metrics = None
|
|
63
|
+
self._model_display_name = None
|
|
64
|
+
self._model_name = None
|
|
65
|
+
self._org_id = None
|
|
57
66
|
self.discriminator = None
|
|
58
|
-
if
|
|
59
|
-
self.
|
|
60
|
-
if
|
|
61
|
-
self.
|
|
67
|
+
if managed_endpoint_id is not None:
|
|
68
|
+
self.managed_endpoint_id = managed_endpoint_id
|
|
69
|
+
if metrics is not None:
|
|
70
|
+
self.metrics = metrics
|
|
71
|
+
if model_display_name is not None:
|
|
72
|
+
self.model_display_name = model_display_name
|
|
73
|
+
if model_name is not None:
|
|
74
|
+
self.model_name = model_name
|
|
75
|
+
if org_id is not None:
|
|
76
|
+
self.org_id = org_id
|
|
62
77
|
|
|
63
78
|
@property
|
|
64
|
-
def
|
|
65
|
-
"""Gets the
|
|
79
|
+
def managed_endpoint_id(self) -> 'str':
|
|
80
|
+
"""Gets the managed_endpoint_id of this ModelsModelIdBody. # noqa: E501
|
|
66
81
|
|
|
67
82
|
|
|
68
|
-
:return: The
|
|
69
|
-
:rtype:
|
|
83
|
+
:return: The managed_endpoint_id of this ModelsModelIdBody. # noqa: E501
|
|
84
|
+
:rtype: str
|
|
85
|
+
"""
|
|
86
|
+
return self._managed_endpoint_id
|
|
87
|
+
|
|
88
|
+
@managed_endpoint_id.setter
|
|
89
|
+
def managed_endpoint_id(self, managed_endpoint_id: 'str'):
|
|
90
|
+
"""Sets the managed_endpoint_id of this ModelsModelIdBody.
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
:param managed_endpoint_id: The managed_endpoint_id of this ModelsModelIdBody. # noqa: E501
|
|
94
|
+
:type: str
|
|
95
|
+
"""
|
|
96
|
+
|
|
97
|
+
self._managed_endpoint_id = managed_endpoint_id
|
|
98
|
+
|
|
99
|
+
@property
|
|
100
|
+
def metrics(self) -> 'V1ModelMetrics':
|
|
101
|
+
"""Gets the metrics of this ModelsModelIdBody. # noqa: E501
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
:return: The metrics of this ModelsModelIdBody. # noqa: E501
|
|
105
|
+
:rtype: V1ModelMetrics
|
|
106
|
+
"""
|
|
107
|
+
return self._metrics
|
|
108
|
+
|
|
109
|
+
@metrics.setter
|
|
110
|
+
def metrics(self, metrics: 'V1ModelMetrics'):
|
|
111
|
+
"""Sets the metrics of this ModelsModelIdBody.
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
:param metrics: The metrics of this ModelsModelIdBody. # noqa: E501
|
|
115
|
+
:type: V1ModelMetrics
|
|
116
|
+
"""
|
|
117
|
+
|
|
118
|
+
self._metrics = metrics
|
|
119
|
+
|
|
120
|
+
@property
|
|
121
|
+
def model_display_name(self) -> 'str':
|
|
122
|
+
"""Gets the model_display_name of this ModelsModelIdBody. # noqa: E501
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
:return: The model_display_name of this ModelsModelIdBody. # noqa: E501
|
|
126
|
+
:rtype: str
|
|
127
|
+
"""
|
|
128
|
+
return self._model_display_name
|
|
129
|
+
|
|
130
|
+
@model_display_name.setter
|
|
131
|
+
def model_display_name(self, model_display_name: 'str'):
|
|
132
|
+
"""Sets the model_display_name of this ModelsModelIdBody.
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
:param model_display_name: The model_display_name of this ModelsModelIdBody. # noqa: E501
|
|
136
|
+
:type: str
|
|
70
137
|
"""
|
|
71
|
-
return self._metadata
|
|
72
138
|
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
139
|
+
self._model_display_name = model_display_name
|
|
140
|
+
|
|
141
|
+
@property
|
|
142
|
+
def model_name(self) -> 'str':
|
|
143
|
+
"""Gets the model_name of this ModelsModelIdBody. # noqa: E501
|
|
76
144
|
|
|
77
145
|
|
|
78
|
-
:
|
|
79
|
-
:
|
|
146
|
+
:return: The model_name of this ModelsModelIdBody. # noqa: E501
|
|
147
|
+
:rtype: str
|
|
148
|
+
"""
|
|
149
|
+
return self._model_name
|
|
150
|
+
|
|
151
|
+
@model_name.setter
|
|
152
|
+
def model_name(self, model_name: 'str'):
|
|
153
|
+
"""Sets the model_name of this ModelsModelIdBody.
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
:param model_name: The model_name of this ModelsModelIdBody. # noqa: E501
|
|
157
|
+
:type: str
|
|
80
158
|
"""
|
|
81
159
|
|
|
82
|
-
self.
|
|
160
|
+
self._model_name = model_name
|
|
83
161
|
|
|
84
162
|
@property
|
|
85
|
-
def
|
|
86
|
-
"""Gets the
|
|
163
|
+
def org_id(self) -> 'str':
|
|
164
|
+
"""Gets the org_id of this ModelsModelIdBody. # noqa: E501
|
|
87
165
|
|
|
88
166
|
|
|
89
|
-
:return: The
|
|
167
|
+
:return: The org_id of this ModelsModelIdBody. # noqa: E501
|
|
90
168
|
:rtype: str
|
|
91
169
|
"""
|
|
92
|
-
return self.
|
|
170
|
+
return self._org_id
|
|
93
171
|
|
|
94
|
-
@
|
|
95
|
-
def
|
|
96
|
-
"""Sets the
|
|
172
|
+
@org_id.setter
|
|
173
|
+
def org_id(self, org_id: 'str'):
|
|
174
|
+
"""Sets the org_id of this ModelsModelIdBody.
|
|
97
175
|
|
|
98
176
|
|
|
99
|
-
:param
|
|
177
|
+
:param org_id: The org_id of this ModelsModelIdBody. # noqa: E501
|
|
100
178
|
:type: str
|
|
101
179
|
"""
|
|
102
180
|
|
|
103
|
-
self.
|
|
181
|
+
self._org_id = org_id
|
|
104
182
|
|
|
105
183
|
def to_dict(self) -> dict:
|
|
106
184
|
"""Returns the model properties as a dict"""
|