lightning-sdk 0.1.51__py3-none-any.whl → 0.1.54__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/ai_hub.py +16 -27
- lightning_sdk/api/ai_hub_api.py +7 -1
- lightning_sdk/api/deployment_api.py +9 -1
- lightning_sdk/api/job_api.py +1 -1
- lightning_sdk/api/lit_container_api.py +2 -1
- lightning_sdk/cli/run.py +25 -20
- lightning_sdk/deployment/deployment.py +12 -3
- lightning_sdk/job/base.py +21 -0
- lightning_sdk/job/job.py +1 -12
- lightning_sdk/job/v1.py +1 -32
- lightning_sdk/job/v2.py +6 -1
- lightning_sdk/lightning_cloud/openapi/__init__.py +14 -0
- lightning_sdk/lightning_cloud/openapi/api/assistants_service_api.py +105 -0
- lightning_sdk/lightning_cloud/openapi/api/cluster_service_api.py +417 -1
- lightning_sdk/lightning_cloud/openapi/api/file_system_service_api.py +105 -0
- lightning_sdk/lightning_cloud/openapi/api/storage_service_api.py +101 -0
- lightning_sdk/lightning_cloud/openapi/api/user_service_api.py +5 -1
- lightning_sdk/lightning_cloud/openapi/models/__init__.py +14 -0
- lightning_sdk/lightning_cloud/openapi/models/cluster_id_usagerestrictions_body.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/id_contactowner_body.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/metricsstream_create_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/usagerestrictions_id_body.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_assistant_model_status.py +4 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_provider.py +104 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_artifact_event.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_artifact_event_type.py +103 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_accelerator.py +81 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_tagging_options.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_usage_restriction.py +227 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_contact_assistant_owner_reason.py +102 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_contact_assistant_owner_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_cluster_usage_restriction_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_api.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_mmt.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_cluster_usage_restrictions_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_filesystem_mm_ts_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_metrics_stream.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_model.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_post_cloud_space_artifact_events_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_resource_visibility.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +53 -1
- lightning_sdk/lightning_cloud/utils/data_connection.py +75 -7
- lightning_sdk/mmt/mmt.py +8 -7
- lightning_sdk/plugin.py +5 -3
- lightning_sdk/studio.py +68 -1
- {lightning_sdk-0.1.51.dist-info → lightning_sdk-0.1.54.dist-info}/METADATA +1 -1
- {lightning_sdk-0.1.51.dist-info → lightning_sdk-0.1.54.dist-info}/RECORD +52 -38
- {lightning_sdk-0.1.51.dist-info → lightning_sdk-0.1.54.dist-info}/LICENSE +0 -0
- {lightning_sdk-0.1.51.dist-info → lightning_sdk-0.1.54.dist-info}/WHEEL +0 -0
- {lightning_sdk-0.1.51.dist-info → lightning_sdk-0.1.54.dist-info}/entry_points.txt +0 -0
- {lightning_sdk-0.1.51.dist-info → lightning_sdk-0.1.54.dist-info}/top_level.txt +0 -0
|
@@ -875,6 +875,107 @@ class StorageServiceApi(object):
|
|
|
875
875
|
_request_timeout=params.get('_request_timeout'),
|
|
876
876
|
collection_formats=collection_formats)
|
|
877
877
|
|
|
878
|
+
def storage_service_post_cloud_space_artifact_events(self, project_id: 'str', cloud_space_id: 'str', **kwargs) -> 'V1PostCloudSpaceArtifactEventsResponse': # noqa: E501
|
|
879
|
+
"""storage_service_post_cloud_space_artifact_events # noqa: E501
|
|
880
|
+
|
|
881
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
882
|
+
asynchronous HTTP request, please pass async_req=True
|
|
883
|
+
>>> thread = api.storage_service_post_cloud_space_artifact_events(project_id, cloud_space_id, async_req=True)
|
|
884
|
+
>>> result = thread.get()
|
|
885
|
+
|
|
886
|
+
:param async_req bool
|
|
887
|
+
:param str project_id: (required)
|
|
888
|
+
:param str cloud_space_id: (required)
|
|
889
|
+
:return: V1PostCloudSpaceArtifactEventsResponse
|
|
890
|
+
If the method is called asynchronously,
|
|
891
|
+
returns the request thread.
|
|
892
|
+
"""
|
|
893
|
+
kwargs['_return_http_data_only'] = True
|
|
894
|
+
if kwargs.get('async_req'):
|
|
895
|
+
return self.storage_service_post_cloud_space_artifact_events_with_http_info(project_id, cloud_space_id, **kwargs) # noqa: E501
|
|
896
|
+
else:
|
|
897
|
+
(data) = self.storage_service_post_cloud_space_artifact_events_with_http_info(project_id, cloud_space_id, **kwargs) # noqa: E501
|
|
898
|
+
return data
|
|
899
|
+
|
|
900
|
+
def storage_service_post_cloud_space_artifact_events_with_http_info(self, project_id: 'str', cloud_space_id: 'str', **kwargs) -> 'V1PostCloudSpaceArtifactEventsResponse': # noqa: E501
|
|
901
|
+
"""storage_service_post_cloud_space_artifact_events # noqa: E501
|
|
902
|
+
|
|
903
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
904
|
+
asynchronous HTTP request, please pass async_req=True
|
|
905
|
+
>>> thread = api.storage_service_post_cloud_space_artifact_events_with_http_info(project_id, cloud_space_id, async_req=True)
|
|
906
|
+
>>> result = thread.get()
|
|
907
|
+
|
|
908
|
+
:param async_req bool
|
|
909
|
+
:param str project_id: (required)
|
|
910
|
+
:param str cloud_space_id: (required)
|
|
911
|
+
:return: V1PostCloudSpaceArtifactEventsResponse
|
|
912
|
+
If the method is called asynchronously,
|
|
913
|
+
returns the request thread.
|
|
914
|
+
"""
|
|
915
|
+
|
|
916
|
+
all_params = ['project_id', 'cloud_space_id'] # noqa: E501
|
|
917
|
+
all_params.append('async_req')
|
|
918
|
+
all_params.append('_return_http_data_only')
|
|
919
|
+
all_params.append('_preload_content')
|
|
920
|
+
all_params.append('_request_timeout')
|
|
921
|
+
|
|
922
|
+
params = locals()
|
|
923
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
924
|
+
if key not in all_params:
|
|
925
|
+
raise TypeError(
|
|
926
|
+
"Got an unexpected keyword argument '%s'"
|
|
927
|
+
" to method storage_service_post_cloud_space_artifact_events" % key
|
|
928
|
+
)
|
|
929
|
+
params[key] = val
|
|
930
|
+
del params['kwargs']
|
|
931
|
+
# verify the required parameter 'project_id' is set
|
|
932
|
+
if ('project_id' not in params or
|
|
933
|
+
params['project_id'] is None):
|
|
934
|
+
raise ValueError("Missing the required parameter `project_id` when calling `storage_service_post_cloud_space_artifact_events`") # noqa: E501
|
|
935
|
+
# verify the required parameter 'cloud_space_id' is set
|
|
936
|
+
if ('cloud_space_id' not in params or
|
|
937
|
+
params['cloud_space_id'] is None):
|
|
938
|
+
raise ValueError("Missing the required parameter `cloud_space_id` when calling `storage_service_post_cloud_space_artifact_events`") # noqa: E501
|
|
939
|
+
|
|
940
|
+
collection_formats = {}
|
|
941
|
+
|
|
942
|
+
path_params = {}
|
|
943
|
+
if 'project_id' in params:
|
|
944
|
+
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
945
|
+
if 'cloud_space_id' in params:
|
|
946
|
+
path_params['cloudSpaceId'] = params['cloud_space_id'] # noqa: E501
|
|
947
|
+
|
|
948
|
+
query_params = []
|
|
949
|
+
|
|
950
|
+
header_params = {}
|
|
951
|
+
|
|
952
|
+
form_params = []
|
|
953
|
+
local_var_files = {}
|
|
954
|
+
|
|
955
|
+
body_params = None
|
|
956
|
+
# HTTP header `Accept`
|
|
957
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
958
|
+
['application/json']) # noqa: E501
|
|
959
|
+
|
|
960
|
+
# Authentication setting
|
|
961
|
+
auth_settings = [] # noqa: E501
|
|
962
|
+
|
|
963
|
+
return self.api_client.call_api(
|
|
964
|
+
'/v1/projects/{projectId}/cloudspaces/{cloudSpaceId}/artifacts/events', 'GET',
|
|
965
|
+
path_params,
|
|
966
|
+
query_params,
|
|
967
|
+
header_params,
|
|
968
|
+
body=body_params,
|
|
969
|
+
post_params=form_params,
|
|
970
|
+
files=local_var_files,
|
|
971
|
+
response_type='V1PostCloudSpaceArtifactEventsResponse', # noqa: E501
|
|
972
|
+
auth_settings=auth_settings,
|
|
973
|
+
async_req=params.get('async_req'),
|
|
974
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
975
|
+
_preload_content=params.get('_preload_content', True),
|
|
976
|
+
_request_timeout=params.get('_request_timeout'),
|
|
977
|
+
collection_formats=collection_formats)
|
|
978
|
+
|
|
878
979
|
def storage_service_upload_project_artifact(self, body: 'ProjectIdStorageBody', project_id: 'str', **kwargs) -> 'V1UploadProjectArtifactResponse': # noqa: E501
|
|
879
980
|
"""UploadProjectArtifact - starts the multipart upload process and returns the upload ID. You will then need to use the upload ID with UploadProjectArtifactParts to get the upload URLs # noqa: E501
|
|
880
981
|
|
|
@@ -1167,6 +1167,7 @@ class UserServiceApi(object):
|
|
|
1167
1167
|
:param str page_token:
|
|
1168
1168
|
:param str page_size:
|
|
1169
1169
|
:param str query:
|
|
1170
|
+
:param str organization_id:
|
|
1170
1171
|
:return: V1SearchUsersResponse
|
|
1171
1172
|
If the method is called asynchronously,
|
|
1172
1173
|
returns the request thread.
|
|
@@ -1190,12 +1191,13 @@ class UserServiceApi(object):
|
|
|
1190
1191
|
:param str page_token:
|
|
1191
1192
|
:param str page_size:
|
|
1192
1193
|
:param str query:
|
|
1194
|
+
:param str organization_id:
|
|
1193
1195
|
:return: V1SearchUsersResponse
|
|
1194
1196
|
If the method is called asynchronously,
|
|
1195
1197
|
returns the request thread.
|
|
1196
1198
|
"""
|
|
1197
1199
|
|
|
1198
|
-
all_params = ['page_token', 'page_size', 'query'] # noqa: E501
|
|
1200
|
+
all_params = ['page_token', 'page_size', 'query', 'organization_id'] # noqa: E501
|
|
1199
1201
|
all_params.append('async_req')
|
|
1200
1202
|
all_params.append('_return_http_data_only')
|
|
1201
1203
|
all_params.append('_preload_content')
|
|
@@ -1222,6 +1224,8 @@ class UserServiceApi(object):
|
|
|
1222
1224
|
query_params.append(('pageSize', params['page_size'])) # noqa: E501
|
|
1223
1225
|
if 'query' in params:
|
|
1224
1226
|
query_params.append(('query', params['query'])) # noqa: E501
|
|
1227
|
+
if 'organization_id' in params:
|
|
1228
|
+
query_params.append(('organizationId', params['organization_id'])) # noqa: E501
|
|
1225
1229
|
|
|
1226
1230
|
header_params = {}
|
|
1227
1231
|
|
|
@@ -43,6 +43,7 @@ from lightning_sdk.lightning_cloud.openapi.models.cloudspaces_id_body import Clo
|
|
|
43
43
|
from lightning_sdk.lightning_cloud.openapi.models.cluster_id_capacityblock_body import ClusterIdCapacityblockBody
|
|
44
44
|
from lightning_sdk.lightning_cloud.openapi.models.cluster_id_capacityreservations_body import ClusterIdCapacityreservationsBody
|
|
45
45
|
from lightning_sdk.lightning_cloud.openapi.models.cluster_id_proxies_body import ClusterIdProxiesBody
|
|
46
|
+
from lightning_sdk.lightning_cloud.openapi.models.cluster_id_usagerestrictions_body import ClusterIdUsagerestrictionsBody
|
|
46
47
|
from lightning_sdk.lightning_cloud.openapi.models.clusters_id_body import ClustersIdBody
|
|
47
48
|
from lightning_sdk.lightning_cloud.openapi.models.clusters_id_body1 import ClustersIdBody1
|
|
48
49
|
from lightning_sdk.lightning_cloud.openapi.models.command_argument_command_argument_type import CommandArgumentCommandArgumentType
|
|
@@ -68,6 +69,7 @@ from lightning_sdk.lightning_cloud.openapi.models.id_artifacts_body import IdArt
|
|
|
68
69
|
from lightning_sdk.lightning_cloud.openapi.models.id_codeconfig_body import IdCodeconfigBody
|
|
69
70
|
from lightning_sdk.lightning_cloud.openapi.models.id_collaborate_body import IdCollaborateBody
|
|
70
71
|
from lightning_sdk.lightning_cloud.openapi.models.id_complete_body import IdCompleteBody
|
|
72
|
+
from lightning_sdk.lightning_cloud.openapi.models.id_contactowner_body import IdContactownerBody
|
|
71
73
|
from lightning_sdk.lightning_cloud.openapi.models.id_engage_body import IdEngageBody
|
|
72
74
|
from lightning_sdk.lightning_cloud.openapi.models.id_engage_body1 import IdEngageBody1
|
|
73
75
|
from lightning_sdk.lightning_cloud.openapi.models.id_execute_body import IdExecuteBody
|
|
@@ -154,6 +156,7 @@ from lightning_sdk.lightning_cloud.openapi.models.update import Update
|
|
|
154
156
|
from lightning_sdk.lightning_cloud.openapi.models.upload_id_complete_body import UploadIdCompleteBody
|
|
155
157
|
from lightning_sdk.lightning_cloud.openapi.models.upload_id_parts_body import UploadIdPartsBody
|
|
156
158
|
from lightning_sdk.lightning_cloud.openapi.models.uploads_upload_id_body import UploadsUploadIdBody
|
|
159
|
+
from lightning_sdk.lightning_cloud.openapi.models.usagerestrictions_id_body import UsagerestrictionsIdBody
|
|
157
160
|
from lightning_sdk.lightning_cloud.openapi.models.user_id_affiliatelinks_body import UserIdAffiliatelinksBody
|
|
158
161
|
from lightning_sdk.lightning_cloud.openapi.models.user_id_membershiprolebindings_body import UserIdMembershiprolebindingsBody
|
|
159
162
|
from lightning_sdk.lightning_cloud.openapi.models.user_id_membershiprolebindings_body1 import UserIdMembershiprolebindingsBody1
|
|
@@ -198,11 +201,14 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_capacity_block_offering imp
|
|
|
198
201
|
from lightning_sdk.lightning_cloud.openapi.models.v1_check_external_service_status_response import V1CheckExternalServiceStatusResponse
|
|
199
202
|
from lightning_sdk.lightning_cloud.openapi.models.v1_check_snowflake_connection_response import V1CheckSnowflakeConnectionResponse
|
|
200
203
|
from lightning_sdk.lightning_cloud.openapi.models.v1_checkbox import V1Checkbox
|
|
204
|
+
from lightning_sdk.lightning_cloud.openapi.models.v1_cloud_provider import V1CloudProvider
|
|
201
205
|
from lightning_sdk.lightning_cloud.openapi.models.v1_cloud_space import V1CloudSpace
|
|
202
206
|
from lightning_sdk.lightning_cloud.openapi.models.v1_cloud_space_app import V1CloudSpaceApp
|
|
203
207
|
from lightning_sdk.lightning_cloud.openapi.models.v1_cloud_space_app_action import V1CloudSpaceAppAction
|
|
204
208
|
from lightning_sdk.lightning_cloud.openapi.models.v1_cloud_space_app_action_type import V1CloudSpaceAppActionType
|
|
205
209
|
from lightning_sdk.lightning_cloud.openapi.models.v1_cloud_space_app_owner_type import V1CloudSpaceAppOwnerType
|
|
210
|
+
from lightning_sdk.lightning_cloud.openapi.models.v1_cloud_space_artifact_event import V1CloudSpaceArtifactEvent
|
|
211
|
+
from lightning_sdk.lightning_cloud.openapi.models.v1_cloud_space_artifact_event_type import V1CloudSpaceArtifactEventType
|
|
206
212
|
from lightning_sdk.lightning_cloud.openapi.models.v1_cloud_space_code_version import V1CloudSpaceCodeVersion
|
|
207
213
|
from lightning_sdk.lightning_cloud.openapi.models.v1_cloud_space_code_version_status import V1CloudSpaceCodeVersionStatus
|
|
208
214
|
from lightning_sdk.lightning_cloud.openapi.models.v1_cloud_space_engagement_response import V1CloudSpaceEngagementResponse
|
|
@@ -232,6 +238,7 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_cluster_state import V1Clus
|
|
|
232
238
|
from lightning_sdk.lightning_cloud.openapi.models.v1_cluster_status import V1ClusterStatus
|
|
233
239
|
from lightning_sdk.lightning_cloud.openapi.models.v1_cluster_tagging_options import V1ClusterTaggingOptions
|
|
234
240
|
from lightning_sdk.lightning_cloud.openapi.models.v1_cluster_type import V1ClusterType
|
|
241
|
+
from lightning_sdk.lightning_cloud.openapi.models.v1_cluster_usage_restriction import V1ClusterUsageRestriction
|
|
235
242
|
from lightning_sdk.lightning_cloud.openapi.models.v1_collab_action import V1CollabAction
|
|
236
243
|
from lightning_sdk.lightning_cloud.openapi.models.v1_collab_session import V1CollabSession
|
|
237
244
|
from lightning_sdk.lightning_cloud.openapi.models.v1_command_argument import V1CommandArgument
|
|
@@ -244,6 +251,8 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_complete_upload_project_art
|
|
|
244
251
|
from lightning_sdk.lightning_cloud.openapi.models.v1_complete_upload_service_execution_artifact_response import V1CompleteUploadServiceExecutionArtifactResponse
|
|
245
252
|
from lightning_sdk.lightning_cloud.openapi.models.v1_completed_part import V1CompletedPart
|
|
246
253
|
from lightning_sdk.lightning_cloud.openapi.models.v1_compute_config import V1ComputeConfig
|
|
254
|
+
from lightning_sdk.lightning_cloud.openapi.models.v1_contact_assistant_owner_reason import V1ContactAssistantOwnerReason
|
|
255
|
+
from lightning_sdk.lightning_cloud.openapi.models.v1_contact_assistant_owner_response import V1ContactAssistantOwnerResponse
|
|
247
256
|
from lightning_sdk.lightning_cloud.openapi.models.v1_conversation import V1Conversation
|
|
248
257
|
from lightning_sdk.lightning_cloud.openapi.models.v1_conversation_response_chunk import V1ConversationResponseChunk
|
|
249
258
|
from lightning_sdk.lightning_cloud.openapi.models.v1_count_metrics_streams_response import V1CountMetricsStreamsResponse
|
|
@@ -291,6 +300,7 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_delete_cluster_capacity_res
|
|
|
291
300
|
from lightning_sdk.lightning_cloud.openapi.models.v1_delete_cluster_encryption_key_response import V1DeleteClusterEncryptionKeyResponse
|
|
292
301
|
from lightning_sdk.lightning_cloud.openapi.models.v1_delete_cluster_proxy_response import V1DeleteClusterProxyResponse
|
|
293
302
|
from lightning_sdk.lightning_cloud.openapi.models.v1_delete_cluster_response import V1DeleteClusterResponse
|
|
303
|
+
from lightning_sdk.lightning_cloud.openapi.models.v1_delete_cluster_usage_restriction_response import V1DeleteClusterUsageRestrictionResponse
|
|
294
304
|
from lightning_sdk.lightning_cloud.openapi.models.v1_delete_conversation_response import V1DeleteConversationResponse
|
|
295
305
|
from lightning_sdk.lightning_cloud.openapi.models.v1_delete_data_connection_response import V1DeleteDataConnectionResponse
|
|
296
306
|
from lightning_sdk.lightning_cloud.openapi.models.v1_delete_dataset_response import V1DeleteDatasetResponse
|
|
@@ -380,6 +390,7 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_filesystem_app import V1Fil
|
|
|
380
390
|
from lightning_sdk.lightning_cloud.openapi.models.v1_filesystem_cloud_space import V1FilesystemCloudSpace
|
|
381
391
|
from lightning_sdk.lightning_cloud.openapi.models.v1_filesystem_dataset import V1FilesystemDataset
|
|
382
392
|
from lightning_sdk.lightning_cloud.openapi.models.v1_filesystem_job import V1FilesystemJob
|
|
393
|
+
from lightning_sdk.lightning_cloud.openapi.models.v1_filesystem_mmt import V1FilesystemMMT
|
|
383
394
|
from lightning_sdk.lightning_cloud.openapi.models.v1_filesystem_slurm_job import V1FilesystemSlurmJob
|
|
384
395
|
from lightning_sdk.lightning_cloud.openapi.models.v1_filesystem_snowflake_connection import V1FilesystemSnowflakeConnection
|
|
385
396
|
from lightning_sdk.lightning_cloud.openapi.models.v1_filesystem_work import V1FilesystemWork
|
|
@@ -489,6 +500,7 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_list_cluster_accelerators_r
|
|
|
489
500
|
from lightning_sdk.lightning_cloud.openapi.models.v1_list_cluster_availabilities_response import V1ListClusterAvailabilitiesResponse
|
|
490
501
|
from lightning_sdk.lightning_cloud.openapi.models.v1_list_cluster_capacity_reservations_response import V1ListClusterCapacityReservationsResponse
|
|
491
502
|
from lightning_sdk.lightning_cloud.openapi.models.v1_list_cluster_proxies_response import V1ListClusterProxiesResponse
|
|
503
|
+
from lightning_sdk.lightning_cloud.openapi.models.v1_list_cluster_usage_restrictions_response import V1ListClusterUsageRestrictionsResponse
|
|
492
504
|
from lightning_sdk.lightning_cloud.openapi.models.v1_list_clusters_response import V1ListClustersResponse
|
|
493
505
|
from lightning_sdk.lightning_cloud.openapi.models.v1_list_conversations_response import V1ListConversationsResponse
|
|
494
506
|
from lightning_sdk.lightning_cloud.openapi.models.v1_list_data_connection_artifacts_response import V1ListDataConnectionArtifactsResponse
|
|
@@ -507,6 +519,7 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_list_filesystem_apps_respon
|
|
|
507
519
|
from lightning_sdk.lightning_cloud.openapi.models.v1_list_filesystem_cloud_spaces_response import V1ListFilesystemCloudSpacesResponse
|
|
508
520
|
from lightning_sdk.lightning_cloud.openapi.models.v1_list_filesystem_datasets_response import V1ListFilesystemDatasetsResponse
|
|
509
521
|
from lightning_sdk.lightning_cloud.openapi.models.v1_list_filesystem_jobs_response import V1ListFilesystemJobsResponse
|
|
522
|
+
from lightning_sdk.lightning_cloud.openapi.models.v1_list_filesystem_mm_ts_response import V1ListFilesystemMMTsResponse
|
|
510
523
|
from lightning_sdk.lightning_cloud.openapi.models.v1_list_filesystem_slurm_jobs_response import V1ListFilesystemSlurmJobsResponse
|
|
511
524
|
from lightning_sdk.lightning_cloud.openapi.models.v1_list_filesystem_snowflake_response import V1ListFilesystemSnowflakeResponse
|
|
512
525
|
from lightning_sdk.lightning_cloud.openapi.models.v1_list_gallery_components_response import V1ListGalleryComponentsResponse
|
|
@@ -615,6 +628,7 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_path_telemetry import V1Pat
|
|
|
615
628
|
from lightning_sdk.lightning_cloud.openapi.models.v1_phase_type import V1PhaseType
|
|
616
629
|
from lightning_sdk.lightning_cloud.openapi.models.v1_plugin import V1Plugin
|
|
617
630
|
from lightning_sdk.lightning_cloud.openapi.models.v1_plugins_list_response import V1PluginsListResponse
|
|
631
|
+
from lightning_sdk.lightning_cloud.openapi.models.v1_post_cloud_space_artifact_events_response import V1PostCloudSpaceArtifactEventsResponse
|
|
618
632
|
from lightning_sdk.lightning_cloud.openapi.models.v1_presigned_url import V1PresignedUrl
|
|
619
633
|
from lightning_sdk.lightning_cloud.openapi.models.v1_profiler_capture import V1ProfilerCapture
|
|
620
634
|
from lightning_sdk.lightning_cloud.openapi.models.v1_profiler_enabled_response import V1ProfilerEnabledResponse
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
external/v1/auth_service.proto
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
|
|
7
|
+
|
|
8
|
+
OpenAPI spec version: version not set
|
|
9
|
+
|
|
10
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
11
|
+
|
|
12
|
+
NOTE
|
|
13
|
+
----
|
|
14
|
+
standard swagger-codegen-cli for this python client has been modified
|
|
15
|
+
by custom templates. The purpose of these templates is to include
|
|
16
|
+
typing information in the API and Model code. Please refer to the
|
|
17
|
+
main grid repository for more info
|
|
18
|
+
"""
|
|
19
|
+
|
|
20
|
+
import pprint
|
|
21
|
+
import re # noqa: F401
|
|
22
|
+
|
|
23
|
+
from typing import TYPE_CHECKING
|
|
24
|
+
|
|
25
|
+
import six
|
|
26
|
+
|
|
27
|
+
if TYPE_CHECKING:
|
|
28
|
+
from datetime import datetime
|
|
29
|
+
from lightning_sdk.lightning_cloud.openapi.models import *
|
|
30
|
+
|
|
31
|
+
class ClusterIdUsagerestrictionsBody(object):
|
|
32
|
+
"""NOTE: This class is auto generated by the swagger code generator program.
|
|
33
|
+
|
|
34
|
+
Do not edit the class manually.
|
|
35
|
+
"""
|
|
36
|
+
"""
|
|
37
|
+
Attributes:
|
|
38
|
+
swagger_types (dict): The key is attribute name
|
|
39
|
+
and the value is attribute type.
|
|
40
|
+
attribute_map (dict): The key is attribute name
|
|
41
|
+
and the value is json key in definition.
|
|
42
|
+
"""
|
|
43
|
+
swagger_types = {
|
|
44
|
+
'instance_type': 'str',
|
|
45
|
+
'max_instances': 'int',
|
|
46
|
+
'restriction_type': 'str'
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
attribute_map = {
|
|
50
|
+
'instance_type': 'instanceType',
|
|
51
|
+
'max_instances': 'maxInstances',
|
|
52
|
+
'restriction_type': 'restrictionType'
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
def __init__(self, instance_type: 'str' =None, max_instances: 'int' =None, restriction_type: 'str' =None): # noqa: E501
|
|
56
|
+
"""ClusterIdUsagerestrictionsBody - a model defined in Swagger""" # noqa: E501
|
|
57
|
+
self._instance_type = None
|
|
58
|
+
self._max_instances = None
|
|
59
|
+
self._restriction_type = None
|
|
60
|
+
self.discriminator = None
|
|
61
|
+
if instance_type is not None:
|
|
62
|
+
self.instance_type = instance_type
|
|
63
|
+
if max_instances is not None:
|
|
64
|
+
self.max_instances = max_instances
|
|
65
|
+
if restriction_type is not None:
|
|
66
|
+
self.restriction_type = restriction_type
|
|
67
|
+
|
|
68
|
+
@property
|
|
69
|
+
def instance_type(self) -> 'str':
|
|
70
|
+
"""Gets the instance_type of this ClusterIdUsagerestrictionsBody. # noqa: E501
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
:return: The instance_type of this ClusterIdUsagerestrictionsBody. # noqa: E501
|
|
74
|
+
:rtype: str
|
|
75
|
+
"""
|
|
76
|
+
return self._instance_type
|
|
77
|
+
|
|
78
|
+
@instance_type.setter
|
|
79
|
+
def instance_type(self, instance_type: 'str'):
|
|
80
|
+
"""Sets the instance_type of this ClusterIdUsagerestrictionsBody.
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
:param instance_type: The instance_type of this ClusterIdUsagerestrictionsBody. # noqa: E501
|
|
84
|
+
:type: str
|
|
85
|
+
"""
|
|
86
|
+
|
|
87
|
+
self._instance_type = instance_type
|
|
88
|
+
|
|
89
|
+
@property
|
|
90
|
+
def max_instances(self) -> 'int':
|
|
91
|
+
"""Gets the max_instances of this ClusterIdUsagerestrictionsBody. # noqa: E501
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
:return: The max_instances of this ClusterIdUsagerestrictionsBody. # noqa: E501
|
|
95
|
+
:rtype: int
|
|
96
|
+
"""
|
|
97
|
+
return self._max_instances
|
|
98
|
+
|
|
99
|
+
@max_instances.setter
|
|
100
|
+
def max_instances(self, max_instances: 'int'):
|
|
101
|
+
"""Sets the max_instances of this ClusterIdUsagerestrictionsBody.
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
:param max_instances: The max_instances of this ClusterIdUsagerestrictionsBody. # noqa: E501
|
|
105
|
+
:type: int
|
|
106
|
+
"""
|
|
107
|
+
|
|
108
|
+
self._max_instances = max_instances
|
|
109
|
+
|
|
110
|
+
@property
|
|
111
|
+
def restriction_type(self) -> 'str':
|
|
112
|
+
"""Gets the restriction_type of this ClusterIdUsagerestrictionsBody. # noqa: E501
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
:return: The restriction_type of this ClusterIdUsagerestrictionsBody. # noqa: E501
|
|
116
|
+
:rtype: str
|
|
117
|
+
"""
|
|
118
|
+
return self._restriction_type
|
|
119
|
+
|
|
120
|
+
@restriction_type.setter
|
|
121
|
+
def restriction_type(self, restriction_type: 'str'):
|
|
122
|
+
"""Sets the restriction_type of this ClusterIdUsagerestrictionsBody.
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
:param restriction_type: The restriction_type of this ClusterIdUsagerestrictionsBody. # noqa: E501
|
|
126
|
+
:type: str
|
|
127
|
+
"""
|
|
128
|
+
|
|
129
|
+
self._restriction_type = restriction_type
|
|
130
|
+
|
|
131
|
+
def to_dict(self) -> dict:
|
|
132
|
+
"""Returns the model properties as a dict"""
|
|
133
|
+
result = {}
|
|
134
|
+
|
|
135
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
136
|
+
value = getattr(self, attr)
|
|
137
|
+
if isinstance(value, list):
|
|
138
|
+
result[attr] = list(map(
|
|
139
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
140
|
+
value
|
|
141
|
+
))
|
|
142
|
+
elif hasattr(value, "to_dict"):
|
|
143
|
+
result[attr] = value.to_dict()
|
|
144
|
+
elif isinstance(value, dict):
|
|
145
|
+
result[attr] = dict(map(
|
|
146
|
+
lambda item: (item[0], item[1].to_dict())
|
|
147
|
+
if hasattr(item[1], "to_dict") else item,
|
|
148
|
+
value.items()
|
|
149
|
+
))
|
|
150
|
+
else:
|
|
151
|
+
result[attr] = value
|
|
152
|
+
if issubclass(ClusterIdUsagerestrictionsBody, dict):
|
|
153
|
+
for key, value in self.items():
|
|
154
|
+
result[key] = value
|
|
155
|
+
|
|
156
|
+
return result
|
|
157
|
+
|
|
158
|
+
def to_str(self) -> str:
|
|
159
|
+
"""Returns the string representation of the model"""
|
|
160
|
+
return pprint.pformat(self.to_dict())
|
|
161
|
+
|
|
162
|
+
def __repr__(self) -> str:
|
|
163
|
+
"""For `print` and `pprint`"""
|
|
164
|
+
return self.to_str()
|
|
165
|
+
|
|
166
|
+
def __eq__(self, other: 'ClusterIdUsagerestrictionsBody') -> bool:
|
|
167
|
+
"""Returns true if both objects are equal"""
|
|
168
|
+
if not isinstance(other, ClusterIdUsagerestrictionsBody):
|
|
169
|
+
return False
|
|
170
|
+
|
|
171
|
+
return self.__dict__ == other.__dict__
|
|
172
|
+
|
|
173
|
+
def __ne__(self, other: 'ClusterIdUsagerestrictionsBody') -> bool:
|
|
174
|
+
"""Returns true if both objects are not equal"""
|
|
175
|
+
return not self == other
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
external/v1/auth_service.proto
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
|
|
7
|
+
|
|
8
|
+
OpenAPI spec version: version not set
|
|
9
|
+
|
|
10
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
11
|
+
|
|
12
|
+
NOTE
|
|
13
|
+
----
|
|
14
|
+
standard swagger-codegen-cli for this python client has been modified
|
|
15
|
+
by custom templates. The purpose of these templates is to include
|
|
16
|
+
typing information in the API and Model code. Please refer to the
|
|
17
|
+
main grid repository for more info
|
|
18
|
+
"""
|
|
19
|
+
|
|
20
|
+
import pprint
|
|
21
|
+
import re # noqa: F401
|
|
22
|
+
|
|
23
|
+
from typing import TYPE_CHECKING
|
|
24
|
+
|
|
25
|
+
import six
|
|
26
|
+
|
|
27
|
+
if TYPE_CHECKING:
|
|
28
|
+
from datetime import datetime
|
|
29
|
+
from lightning_sdk.lightning_cloud.openapi.models import *
|
|
30
|
+
|
|
31
|
+
class IdContactownerBody(object):
|
|
32
|
+
"""NOTE: This class is auto generated by the swagger code generator program.
|
|
33
|
+
|
|
34
|
+
Do not edit the class manually.
|
|
35
|
+
"""
|
|
36
|
+
"""
|
|
37
|
+
Attributes:
|
|
38
|
+
swagger_types (dict): The key is attribute name
|
|
39
|
+
and the value is attribute type.
|
|
40
|
+
attribute_map (dict): The key is attribute name
|
|
41
|
+
and the value is json key in definition.
|
|
42
|
+
"""
|
|
43
|
+
swagger_types = {
|
|
44
|
+
'message': 'str',
|
|
45
|
+
'reason': 'V1ContactAssistantOwnerReason'
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
attribute_map = {
|
|
49
|
+
'message': 'message',
|
|
50
|
+
'reason': 'reason'
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
def __init__(self, message: 'str' =None, reason: 'V1ContactAssistantOwnerReason' =None): # noqa: E501
|
|
54
|
+
"""IdContactownerBody - a model defined in Swagger""" # noqa: E501
|
|
55
|
+
self._message = None
|
|
56
|
+
self._reason = None
|
|
57
|
+
self.discriminator = None
|
|
58
|
+
if message is not None:
|
|
59
|
+
self.message = message
|
|
60
|
+
if reason is not None:
|
|
61
|
+
self.reason = reason
|
|
62
|
+
|
|
63
|
+
@property
|
|
64
|
+
def message(self) -> 'str':
|
|
65
|
+
"""Gets the message of this IdContactownerBody. # noqa: E501
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
:return: The message of this IdContactownerBody. # noqa: E501
|
|
69
|
+
:rtype: str
|
|
70
|
+
"""
|
|
71
|
+
return self._message
|
|
72
|
+
|
|
73
|
+
@message.setter
|
|
74
|
+
def message(self, message: 'str'):
|
|
75
|
+
"""Sets the message of this IdContactownerBody.
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
:param message: The message of this IdContactownerBody. # noqa: E501
|
|
79
|
+
:type: str
|
|
80
|
+
"""
|
|
81
|
+
|
|
82
|
+
self._message = message
|
|
83
|
+
|
|
84
|
+
@property
|
|
85
|
+
def reason(self) -> 'V1ContactAssistantOwnerReason':
|
|
86
|
+
"""Gets the reason of this IdContactownerBody. # noqa: E501
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
:return: The reason of this IdContactownerBody. # noqa: E501
|
|
90
|
+
:rtype: V1ContactAssistantOwnerReason
|
|
91
|
+
"""
|
|
92
|
+
return self._reason
|
|
93
|
+
|
|
94
|
+
@reason.setter
|
|
95
|
+
def reason(self, reason: 'V1ContactAssistantOwnerReason'):
|
|
96
|
+
"""Sets the reason of this IdContactownerBody.
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
:param reason: The reason of this IdContactownerBody. # noqa: E501
|
|
100
|
+
:type: V1ContactAssistantOwnerReason
|
|
101
|
+
"""
|
|
102
|
+
|
|
103
|
+
self._reason = reason
|
|
104
|
+
|
|
105
|
+
def to_dict(self) -> dict:
|
|
106
|
+
"""Returns the model properties as a dict"""
|
|
107
|
+
result = {}
|
|
108
|
+
|
|
109
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
110
|
+
value = getattr(self, attr)
|
|
111
|
+
if isinstance(value, list):
|
|
112
|
+
result[attr] = list(map(
|
|
113
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
114
|
+
value
|
|
115
|
+
))
|
|
116
|
+
elif hasattr(value, "to_dict"):
|
|
117
|
+
result[attr] = value.to_dict()
|
|
118
|
+
elif isinstance(value, dict):
|
|
119
|
+
result[attr] = dict(map(
|
|
120
|
+
lambda item: (item[0], item[1].to_dict())
|
|
121
|
+
if hasattr(item[1], "to_dict") else item,
|
|
122
|
+
value.items()
|
|
123
|
+
))
|
|
124
|
+
else:
|
|
125
|
+
result[attr] = value
|
|
126
|
+
if issubclass(IdContactownerBody, dict):
|
|
127
|
+
for key, value in self.items():
|
|
128
|
+
result[key] = value
|
|
129
|
+
|
|
130
|
+
return result
|
|
131
|
+
|
|
132
|
+
def to_str(self) -> str:
|
|
133
|
+
"""Returns the string representation of the model"""
|
|
134
|
+
return pprint.pformat(self.to_dict())
|
|
135
|
+
|
|
136
|
+
def __repr__(self) -> str:
|
|
137
|
+
"""For `print` and `pprint`"""
|
|
138
|
+
return self.to_str()
|
|
139
|
+
|
|
140
|
+
def __eq__(self, other: 'IdContactownerBody') -> bool:
|
|
141
|
+
"""Returns true if both objects are equal"""
|
|
142
|
+
if not isinstance(other, IdContactownerBody):
|
|
143
|
+
return False
|
|
144
|
+
|
|
145
|
+
return self.__dict__ == other.__dict__
|
|
146
|
+
|
|
147
|
+
def __ne__(self, other: 'IdContactownerBody') -> bool:
|
|
148
|
+
"""Returns true if both objects are not equal"""
|
|
149
|
+
return not self == other
|
|
@@ -44,6 +44,7 @@ class MetricsstreamCreateBody(object):
|
|
|
44
44
|
'app_id': 'str',
|
|
45
45
|
'cloudspace_id': 'str',
|
|
46
46
|
'dark_color': 'str',
|
|
47
|
+
'job_id': 'str',
|
|
47
48
|
'light_color': 'str',
|
|
48
49
|
'name': 'str',
|
|
49
50
|
'store_created_at': 'bool',
|
|
@@ -58,6 +59,7 @@ class MetricsstreamCreateBody(object):
|
|
|
58
59
|
'app_id': 'appId',
|
|
59
60
|
'cloudspace_id': 'cloudspaceId',
|
|
60
61
|
'dark_color': 'darkColor',
|
|
62
|
+
'job_id': 'jobId',
|
|
61
63
|
'light_color': 'lightColor',
|
|
62
64
|
'name': 'name',
|
|
63
65
|
'store_created_at': 'storeCreatedAt',
|
|
@@ -68,11 +70,12 @@ class MetricsstreamCreateBody(object):
|
|
|
68
70
|
'work_id': 'workId'
|
|
69
71
|
}
|
|
70
72
|
|
|
71
|
-
def __init__(self, app_id: 'str' =None, cloudspace_id: 'str' =None, dark_color: 'str' =None, light_color: 'str' =None, name: 'str' =None, store_created_at: 'bool' =None, store_step: 'bool' =None, system_info: 'V1SystemInfo' =None, tags: 'list[V1MetricsTags]' =None, version: 'datetime' =None, work_id: 'str' =None): # noqa: E501
|
|
73
|
+
def __init__(self, app_id: 'str' =None, cloudspace_id: 'str' =None, dark_color: 'str' =None, job_id: 'str' =None, light_color: 'str' =None, name: 'str' =None, store_created_at: 'bool' =None, store_step: 'bool' =None, system_info: 'V1SystemInfo' =None, tags: 'list[V1MetricsTags]' =None, version: 'datetime' =None, work_id: 'str' =None): # noqa: E501
|
|
72
74
|
"""MetricsstreamCreateBody - a model defined in Swagger""" # noqa: E501
|
|
73
75
|
self._app_id = None
|
|
74
76
|
self._cloudspace_id = None
|
|
75
77
|
self._dark_color = None
|
|
78
|
+
self._job_id = None
|
|
76
79
|
self._light_color = None
|
|
77
80
|
self._name = None
|
|
78
81
|
self._store_created_at = None
|
|
@@ -88,6 +91,8 @@ class MetricsstreamCreateBody(object):
|
|
|
88
91
|
self.cloudspace_id = cloudspace_id
|
|
89
92
|
if dark_color is not None:
|
|
90
93
|
self.dark_color = dark_color
|
|
94
|
+
if job_id is not None:
|
|
95
|
+
self.job_id = job_id
|
|
91
96
|
if light_color is not None:
|
|
92
97
|
self.light_color = light_color
|
|
93
98
|
if name is not None:
|
|
@@ -168,6 +173,27 @@ class MetricsstreamCreateBody(object):
|
|
|
168
173
|
|
|
169
174
|
self._dark_color = dark_color
|
|
170
175
|
|
|
176
|
+
@property
|
|
177
|
+
def job_id(self) -> 'str':
|
|
178
|
+
"""Gets the job_id of this MetricsstreamCreateBody. # noqa: E501
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
:return: The job_id of this MetricsstreamCreateBody. # noqa: E501
|
|
182
|
+
:rtype: str
|
|
183
|
+
"""
|
|
184
|
+
return self._job_id
|
|
185
|
+
|
|
186
|
+
@job_id.setter
|
|
187
|
+
def job_id(self, job_id: 'str'):
|
|
188
|
+
"""Sets the job_id of this MetricsstreamCreateBody.
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
:param job_id: The job_id of this MetricsstreamCreateBody. # noqa: E501
|
|
192
|
+
:type: str
|
|
193
|
+
"""
|
|
194
|
+
|
|
195
|
+
self._job_id = job_id
|
|
196
|
+
|
|
171
197
|
@property
|
|
172
198
|
def light_color(self) -> 'str':
|
|
173
199
|
"""Gets the light_color of this MetricsstreamCreateBody. # noqa: E501
|