lightning-sdk 2025.9.23__py3-none-any.whl → 2025.9.29__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. lightning_sdk/__init__.py +1 -1
  2. lightning_sdk/cli/entrypoint.py +3 -1
  3. lightning_sdk/cli/groups.py +8 -1
  4. lightning_sdk/cli/legacy/entrypoint.py +1 -1
  5. lightning_sdk/cli/studio/create.py +19 -5
  6. lightning_sdk/cli/studio/delete.py +9 -5
  7. lightning_sdk/cli/studio/list.py +5 -1
  8. lightning_sdk/cli/studio/ssh.py +9 -3
  9. lightning_sdk/cli/studio/start.py +26 -3
  10. lightning_sdk/cli/studio/stop.py +7 -3
  11. lightning_sdk/cli/studio/switch.py +21 -5
  12. lightning_sdk/cli/utils/studio_selection.py +22 -15
  13. lightning_sdk/cli/vm/__init__.py +20 -0
  14. lightning_sdk/cli/vm/create.py +33 -0
  15. lightning_sdk/cli/vm/delete.py +25 -0
  16. lightning_sdk/cli/vm/list.py +30 -0
  17. lightning_sdk/cli/vm/ssh.py +31 -0
  18. lightning_sdk/cli/vm/start.py +60 -0
  19. lightning_sdk/cli/vm/stop.py +25 -0
  20. lightning_sdk/cli/vm/switch.py +38 -0
  21. lightning_sdk/lightning_cloud/openapi/__init__.py +20 -1
  22. lightning_sdk/lightning_cloud/openapi/api/assistants_service_api.py +2 -95
  23. lightning_sdk/lightning_cloud/openapi/api/billing_service_api.py +24 -8
  24. lightning_sdk/lightning_cloud/openapi/api/cluster_service_api.py +420 -0
  25. lightning_sdk/lightning_cloud/openapi/api/jobs_service_api.py +121 -0
  26. lightning_sdk/lightning_cloud/openapi/api/storage_service_api.py +655 -0
  27. lightning_sdk/lightning_cloud/openapi/models/__init__.py +20 -1
  28. lightning_sdk/lightning_cloud/openapi/models/create_machine_request_represents_the_request_to_create_a_machine.py +435 -0
  29. lightning_sdk/lightning_cloud/openapi/models/job_id_reportroutingtelemetry_body.py +123 -0
  30. lightning_sdk/lightning_cloud/openapi/models/project_id_storagetransfers_body.py +149 -0
  31. lightning_sdk/lightning_cloud/openapi/models/user_id_affiliatelinks_body.py +107 -3
  32. lightning_sdk/lightning_cloud/openapi/models/v1_abort_storage_transfer_response.py +97 -0
  33. lightning_sdk/lightning_cloud/openapi/models/v1_assistant_session_daily_aggregated.py +27 -1
  34. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_provider.py +2 -0
  35. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_accelerator.py +27 -1
  36. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_spec.py +53 -1
  37. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_type.py +1 -0
  38. lightning_sdk/lightning_cloud/openapi/models/v1_create_machine_response.py +123 -0
  39. lightning_sdk/lightning_cloud/openapi/models/v1_create_project_request.py +27 -1
  40. lightning_sdk/lightning_cloud/openapi/models/v1_delete_machine_response.py +97 -0
  41. lightning_sdk/lightning_cloud/openapi/models/v1_external_cluster_spec.py +27 -1
  42. lightning_sdk/lightning_cloud/openapi/models/v1_get_machine_response.py +123 -0
  43. lightning_sdk/lightning_cloud/openapi/models/v1_get_user_response.py +27 -1
  44. lightning_sdk/lightning_cloud/openapi/models/v1_kubernetes_direct_v1.py +27 -1
  45. lightning_sdk/lightning_cloud/openapi/models/v1_lightning_elastic_cluster_v1.py +97 -0
  46. lightning_sdk/lightning_cloud/openapi/models/{v1_get_model_total_usage_metrics_response.py → v1_list_machines_response.py} +37 -37
  47. lightning_sdk/lightning_cloud/openapi/models/v1_list_storage_transfers_response.py +123 -0
  48. lightning_sdk/lightning_cloud/openapi/models/v1_machine.py +539 -0
  49. lightning_sdk/lightning_cloud/openapi/models/v1_machine_direct_v1.py +123 -0
  50. lightning_sdk/lightning_cloud/openapi/models/v1_pause_storage_transfer_response.py +97 -0
  51. lightning_sdk/lightning_cloud/openapi/models/v1_purchase_annual_upsell_request.py +123 -0
  52. lightning_sdk/lightning_cloud/openapi/models/v1_report_deployment_routing_telemetry_response.py +97 -0
  53. lightning_sdk/lightning_cloud/openapi/models/v1_resume_storage_transfer_response.py +97 -0
  54. lightning_sdk/lightning_cloud/openapi/models/v1_routing_telemetry.py +79 -1
  55. lightning_sdk/lightning_cloud/openapi/models/v1_rule_resource.py +1 -0
  56. lightning_sdk/lightning_cloud/openapi/models/v1_slack_notifier.py +149 -0
  57. lightning_sdk/lightning_cloud/openapi/models/v1_slack_notifier_type.py +105 -0
  58. lightning_sdk/lightning_cloud/openapi/models/v1_storage_transfer.py +435 -0
  59. lightning_sdk/lightning_cloud/openapi/models/v1_storage_transfer_status.py +108 -0
  60. lightning_sdk/lightning_cloud/openapi/models/v1_update_user_request.py +27 -1
  61. lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +105 -79
  62. lightning_sdk/studio.py +55 -11
  63. lightning_sdk/teamspace.py +11 -2
  64. {lightning_sdk-2025.9.23.dist-info → lightning_sdk-2025.9.29.dist-info}/METADATA +1 -1
  65. {lightning_sdk-2025.9.23.dist-info → lightning_sdk-2025.9.29.dist-info}/RECORD +69 -42
  66. {lightning_sdk-2025.9.23.dist-info → lightning_sdk-2025.9.29.dist-info}/LICENSE +0 -0
  67. {lightning_sdk-2025.9.23.dist-info → lightning_sdk-2025.9.29.dist-info}/WHEEL +0 -0
  68. {lightning_sdk-2025.9.23.dist-info → lightning_sdk-2025.9.29.dist-info}/entry_points.txt +0 -0
  69. {lightning_sdk-2025.9.23.dist-info → lightning_sdk-2025.9.29.dist-info}/top_level.txt +0 -0
@@ -59,6 +59,7 @@ from lightning_sdk.lightning_cloud.openapi.models.conversations_id_body1 import
59
59
  from lightning_sdk.lightning_cloud.openapi.models.create import Create
60
60
  from lightning_sdk.lightning_cloud.openapi.models.create_checkout_session_request_wallet_type import CreateCheckoutSessionRequestWalletType
61
61
  from lightning_sdk.lightning_cloud.openapi.models.create_deployment_request_defines_a_spec_for_the_job_that_allows_for_autoscaling_jobs import CreateDeploymentRequestDefinesASpecForTheJobThatAllowsForAutoscalingJobs
62
+ from lightning_sdk.lightning_cloud.openapi.models.create_machine_request_represents_the_request_to_create_a_machine import CreateMachineRequestRepresentsTheRequestToCreateAMachine
62
63
  from lightning_sdk.lightning_cloud.openapi.models.credits_autoreplenish_body import CreditsAutoreplenishBody
63
64
  from lightning_sdk.lightning_cloud.openapi.models.credits_autoreplenish_body1 import CreditsAutoreplenishBody1
64
65
  from lightning_sdk.lightning_cloud.openapi.models.data_connection_mount_data_connection_mount_copy_status import DataConnectionMountDataConnectionMountCopyStatus
@@ -108,6 +109,7 @@ from lightning_sdk.lightning_cloud.openapi.models.id_uploads_body import IdUploa
108
109
  from lightning_sdk.lightning_cloud.openapi.models.id_visibility_body import IdVisibilityBody
109
110
  from lightning_sdk.lightning_cloud.openapi.models.id_visibility_body1 import IdVisibilityBody1
110
111
  from lightning_sdk.lightning_cloud.openapi.models.id_visibility_body2 import IdVisibilityBody2
112
+ from lightning_sdk.lightning_cloud.openapi.models.job_id_reportroutingtelemetry_body import JobIdReportroutingtelemetryBody
111
113
  from lightning_sdk.lightning_cloud.openapi.models.jobs_id_body import JobsIdBody
112
114
  from lightning_sdk.lightning_cloud.openapi.models.jobs_id_body1 import JobsIdBody1
113
115
  from lightning_sdk.lightning_cloud.openapi.models.jobs_id_body2 import JobsIdBody2
@@ -159,6 +161,7 @@ from lightning_sdk.lightning_cloud.openapi.models.project_id_schedules_body impo
159
161
  from lightning_sdk.lightning_cloud.openapi.models.project_id_secrets_body import ProjectIdSecretsBody
160
162
  from lightning_sdk.lightning_cloud.openapi.models.project_id_snowflake_body import ProjectIdSnowflakeBody
161
163
  from lightning_sdk.lightning_cloud.openapi.models.project_id_storage_body import ProjectIdStorageBody
164
+ from lightning_sdk.lightning_cloud.openapi.models.project_id_storagetransfers_body import ProjectIdStoragetransfersBody
162
165
  from lightning_sdk.lightning_cloud.openapi.models.project_tab_management_messages import ProjectTabManagementMessages
163
166
  from lightning_sdk.lightning_cloud.openapi.models.projects_id_body import ProjectsIdBody
164
167
  from lightning_sdk.lightning_cloud.openapi.models.projects_project_id_body import ProjectsProjectIdBody
@@ -198,6 +201,7 @@ from lightning_sdk.lightning_cloud.openapi.models.user_user_id_body import UserU
198
201
  from lightning_sdk.lightning_cloud.openapi.models.v1_aws_cluster_credentials import V1AWSClusterCredentials
199
202
  from lightning_sdk.lightning_cloud.openapi.models.v1_aws_direct_v1 import V1AWSDirectV1
200
203
  from lightning_sdk.lightning_cloud.openapi.models.v1_aws_direct_v1_status import V1AWSDirectV1Status
204
+ from lightning_sdk.lightning_cloud.openapi.models.v1_abort_storage_transfer_response import V1AbortStorageTransferResponse
201
205
  from lightning_sdk.lightning_cloud.openapi.models.v1_accelerator_quota_info import V1AcceleratorQuotaInfo
202
206
  from lightning_sdk.lightning_cloud.openapi.models.v1_ack_user_storage_violation_response import V1AckUserStorageViolationResponse
203
207
  from lightning_sdk.lightning_cloud.openapi.models.v1_add_job_timing_response import V1AddJobTimingResponse
@@ -340,6 +344,7 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_create_job_request import V
340
344
  from lightning_sdk.lightning_cloud.openapi.models.v1_create_lit_dataset_multi_part_upload_response import V1CreateLitDatasetMultiPartUploadResponse
341
345
  from lightning_sdk.lightning_cloud.openapi.models.v1_create_lit_page_request import V1CreateLitPageRequest
342
346
  from lightning_sdk.lightning_cloud.openapi.models.v1_create_lit_page_response import V1CreateLitPageResponse
347
+ from lightning_sdk.lightning_cloud.openapi.models.v1_create_machine_response import V1CreateMachineResponse
343
348
  from lightning_sdk.lightning_cloud.openapi.models.v1_create_managed_endpoint_response import V1CreateManagedEndpointResponse
344
349
  from lightning_sdk.lightning_cloud.openapi.models.v1_create_model_metrics_response import V1CreateModelMetricsResponse
345
350
  from lightning_sdk.lightning_cloud.openapi.models.v1_create_multi_machine_job_request import V1CreateMultiMachineJobRequest
@@ -400,6 +405,7 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_delete_lit_page_response im
400
405
  from lightning_sdk.lightning_cloud.openapi.models.v1_delete_lit_registry_repository_image_artifact_version_by_digest_response import V1DeleteLitRegistryRepositoryImageArtifactVersionByDigestResponse
401
406
  from lightning_sdk.lightning_cloud.openapi.models.v1_delete_lit_repository_response import V1DeleteLitRepositoryResponse
402
407
  from lightning_sdk.lightning_cloud.openapi.models.v1_delete_logger_artifact_response import V1DeleteLoggerArtifactResponse
408
+ from lightning_sdk.lightning_cloud.openapi.models.v1_delete_machine_response import V1DeleteMachineResponse
403
409
  from lightning_sdk.lightning_cloud.openapi.models.v1_delete_managed_endpoint_response import V1DeleteManagedEndpointResponse
404
410
  from lightning_sdk.lightning_cloud.openapi.models.v1_delete_metrics_stream_response import V1DeleteMetricsStreamResponse
405
411
  from lightning_sdk.lightning_cloud.openapi.models.v1_delete_model_response import V1DeleteModelResponse
@@ -531,12 +537,12 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_get_lit_dataset_files_url_r
531
537
  from lightning_sdk.lightning_cloud.openapi.models.v1_get_lit_page_response import V1GetLitPageResponse
532
538
  from lightning_sdk.lightning_cloud.openapi.models.v1_get_logger_metrics_response import V1GetLoggerMetricsResponse
533
539
  from lightning_sdk.lightning_cloud.openapi.models.v1_get_long_running_command_in_cloud_space_response import V1GetLongRunningCommandInCloudSpaceResponse
540
+ from lightning_sdk.lightning_cloud.openapi.models.v1_get_machine_response import V1GetMachineResponse
534
541
  from lightning_sdk.lightning_cloud.openapi.models.v1_get_model_file_upload_urls_response import V1GetModelFileUploadUrlsResponse
535
542
  from lightning_sdk.lightning_cloud.openapi.models.v1_get_model_file_url_response import V1GetModelFileUrlResponse
536
543
  from lightning_sdk.lightning_cloud.openapi.models.v1_get_model_files_response import V1GetModelFilesResponse
537
544
  from lightning_sdk.lightning_cloud.openapi.models.v1_get_model_files_url_response import V1GetModelFilesUrlResponse
538
545
  from lightning_sdk.lightning_cloud.openapi.models.v1_get_model_metrics_response import V1GetModelMetricsResponse
539
- from lightning_sdk.lightning_cloud.openapi.models.v1_get_model_total_usage_metrics_response import V1GetModelTotalUsageMetricsResponse
540
546
  from lightning_sdk.lightning_cloud.openapi.models.v1_get_organization_storage_metadata_response import V1GetOrganizationStorageMetadataResponse
541
547
  from lightning_sdk.lightning_cloud.openapi.models.v1_get_project_artifact_response import V1GetProjectArtifactResponse
542
548
  from lightning_sdk.lightning_cloud.openapi.models.v1_get_project_balance_response import V1GetProjectBalanceResponse
@@ -597,6 +603,7 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_lambda_labs_direct_v1 impor
597
603
  from lightning_sdk.lightning_cloud.openapi.models.v1_lightning_app_user import V1LightningAppUser
598
604
  from lightning_sdk.lightning_cloud.openapi.models.v1_lightning_auth import V1LightningAuth
599
605
  from lightning_sdk.lightning_cloud.openapi.models.v1_lightning_basic_auth import V1LightningBasicAuth
606
+ from lightning_sdk.lightning_cloud.openapi.models.v1_lightning_elastic_cluster_v1 import V1LightningElasticClusterV1
600
607
  from lightning_sdk.lightning_cloud.openapi.models.v1_lightning_o_auth_auth import V1LightningOAuthAuth
601
608
  from lightning_sdk.lightning_cloud.openapi.models.v1_lightning_run import V1LightningRun
602
609
  from lightning_sdk.lightning_cloud.openapi.models.v1_lightningapp_instance_artifact import V1LightningappInstanceArtifact
@@ -683,6 +690,7 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_list_lit_datasets_response
683
690
  from lightning_sdk.lightning_cloud.openapi.models.v1_list_lit_pages_response import V1ListLitPagesResponse
684
691
  from lightning_sdk.lightning_cloud.openapi.models.v1_list_lit_registry_repository_image_artifact_versions_response import V1ListLitRegistryRepositoryImageArtifactVersionsResponse
685
692
  from lightning_sdk.lightning_cloud.openapi.models.v1_list_logger_artifact_response import V1ListLoggerArtifactResponse
693
+ from lightning_sdk.lightning_cloud.openapi.models.v1_list_machines_response import V1ListMachinesResponse
686
694
  from lightning_sdk.lightning_cloud.openapi.models.v1_list_managed_endpoints_response import V1ListManagedEndpointsResponse
687
695
  from lightning_sdk.lightning_cloud.openapi.models.v1_list_memberships_response import V1ListMembershipsResponse
688
696
  from lightning_sdk.lightning_cloud.openapi.models.v1_list_metrics_streams_response import V1ListMetricsStreamsResponse
@@ -720,6 +728,7 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_list_ssh_public_keys_respon
720
728
  from lightning_sdk.lightning_cloud.openapi.models.v1_list_schedule_runs_response import V1ListScheduleRunsResponse
721
729
  from lightning_sdk.lightning_cloud.openapi.models.v1_list_schedules_response import V1ListSchedulesResponse
722
730
  from lightning_sdk.lightning_cloud.openapi.models.v1_list_secrets_response import V1ListSecretsResponse
731
+ from lightning_sdk.lightning_cloud.openapi.models.v1_list_storage_transfers_response import V1ListStorageTransfersResponse
723
732
  from lightning_sdk.lightning_cloud.openapi.models.v1_list_studio_jobs_response import V1ListStudioJobsResponse
724
733
  from lightning_sdk.lightning_cloud.openapi.models.v1_list_user_slurm_jobs_response import V1ListUserSLURMJobsResponse
725
734
  from lightning_sdk.lightning_cloud.openapi.models.v1_lit_dataset import V1LitDataset
@@ -740,6 +749,8 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_logout_request import V1Log
740
749
  from lightning_sdk.lightning_cloud.openapi.models.v1_logout_response import V1LogoutResponse
741
750
  from lightning_sdk.lightning_cloud.openapi.models.v1_logs_response import V1LogsResponse
742
751
  from lightning_sdk.lightning_cloud.openapi.models.v1_lustre_data_connection import V1LustreDataConnection
752
+ from lightning_sdk.lightning_cloud.openapi.models.v1_machine import V1Machine
753
+ from lightning_sdk.lightning_cloud.openapi.models.v1_machine_direct_v1 import V1MachineDirectV1
743
754
  from lightning_sdk.lightning_cloud.openapi.models.v1_machines_selector import V1MachinesSelector
744
755
  from lightning_sdk.lightning_cloud.openapi.models.v1_magic_link_login_request import V1MagicLinkLoginRequest
745
756
  from lightning_sdk.lightning_cloud.openapi.models.v1_magic_link_login_response import V1MagicLinkLoginResponse
@@ -792,6 +803,7 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_package_manager import V1Pa
792
803
  from lightning_sdk.lightning_cloud.openapi.models.v1_parameterization_spec import V1ParameterizationSpec
793
804
  from lightning_sdk.lightning_cloud.openapi.models.v1_path_mapping import V1PathMapping
794
805
  from lightning_sdk.lightning_cloud.openapi.models.v1_path_telemetry import V1PathTelemetry
806
+ from lightning_sdk.lightning_cloud.openapi.models.v1_pause_storage_transfer_response import V1PauseStorageTransferResponse
795
807
  from lightning_sdk.lightning_cloud.openapi.models.v1_phase_type import V1PhaseType
796
808
  from lightning_sdk.lightning_cloud.openapi.models.v1_pipeline import V1Pipeline
797
809
  from lightning_sdk.lightning_cloud.openapi.models.v1_pipeline_parameter import V1PipelineParameter
@@ -827,6 +839,7 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_project_tab import V1Projec
827
839
  from lightning_sdk.lightning_cloud.openapi.models.v1_prompt_suggestion import V1PromptSuggestion
828
840
  from lightning_sdk.lightning_cloud.openapi.models.v1_publish_cloud_space_response import V1PublishCloudSpaceResponse
829
841
  from lightning_sdk.lightning_cloud.openapi.models.v1_published_cloud_space_response import V1PublishedCloudSpaceResponse
842
+ from lightning_sdk.lightning_cloud.openapi.models.v1_purchase_annual_upsell_request import V1PurchaseAnnualUpsellRequest
830
843
  from lightning_sdk.lightning_cloud.openapi.models.v1_purchase_annual_upsell_response import V1PurchaseAnnualUpsellResponse
831
844
  from lightning_sdk.lightning_cloud.openapi.models.v1_purchase_capacity_block_response import V1PurchaseCapacityBlockResponse
832
845
  from lightning_sdk.lightning_cloud.openapi.models.v1_python_dependency_info import V1PythonDependencyInfo
@@ -849,6 +862,7 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_regional_load_balancer impo
849
862
  from lightning_sdk.lightning_cloud.openapi.models.v1_render_kubernetes_template_response import V1RenderKubernetesTemplateResponse
850
863
  from lightning_sdk.lightning_cloud.openapi.models.v1_report_cloud_space_instance_stop_at_response import V1ReportCloudSpaceInstanceStopAtResponse
851
864
  from lightning_sdk.lightning_cloud.openapi.models.v1_report_cloud_space_instance_system_metrics_response import V1ReportCloudSpaceInstanceSystemMetricsResponse
865
+ from lightning_sdk.lightning_cloud.openapi.models.v1_report_deployment_routing_telemetry_response import V1ReportDeploymentRoutingTelemetryResponse
852
866
  from lightning_sdk.lightning_cloud.openapi.models.v1_report_k8s_cluster_metrics_response import V1ReportK8sClusterMetricsResponse
853
867
  from lightning_sdk.lightning_cloud.openapi.models.v1_report_logs_activity_response import V1ReportLogsActivityResponse
854
868
  from lightning_sdk.lightning_cloud.openapi.models.v1_report_restart_timings_response import V1ReportRestartTimingsResponse
@@ -866,6 +880,7 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_response_choice_delta impor
866
880
  from lightning_sdk.lightning_cloud.openapi.models.v1_restart_cloud_space_instance_response import V1RestartCloudSpaceInstanceResponse
867
881
  from lightning_sdk.lightning_cloud.openapi.models.v1_restart_timing import V1RestartTiming
868
882
  from lightning_sdk.lightning_cloud.openapi.models.v1_restore_deployment_release_response import V1RestoreDeploymentReleaseResponse
883
+ from lightning_sdk.lightning_cloud.openapi.models.v1_resume_storage_transfer_response import V1ResumeStorageTransferResponse
869
884
  from lightning_sdk.lightning_cloud.openapi.models.v1_role import V1Role
870
885
  from lightning_sdk.lightning_cloud.openapi.models.v1_rolling_update_strategy import V1RollingUpdateStrategy
871
886
  from lightning_sdk.lightning_cloud.openapi.models.v1_routing_telemetry import V1RoutingTelemetry
@@ -899,6 +914,8 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_setup_data_connection_respo
899
914
  from lightning_sdk.lightning_cloud.openapi.models.v1_shared_filesystem import V1SharedFilesystem
900
915
  from lightning_sdk.lightning_cloud.openapi.models.v1_should_start_syncing_response import V1ShouldStartSyncingResponse
901
916
  from lightning_sdk.lightning_cloud.openapi.models.v1_signed_url import V1SignedUrl
917
+ from lightning_sdk.lightning_cloud.openapi.models.v1_slack_notifier import V1SlackNotifier
918
+ from lightning_sdk.lightning_cloud.openapi.models.v1_slack_notifier_type import V1SlackNotifierType
902
919
  from lightning_sdk.lightning_cloud.openapi.models.v1_sleep_server_response import V1SleepServerResponse
903
920
  from lightning_sdk.lightning_cloud.openapi.models.v1_slurm_cluster_user import V1SlurmClusterUser
904
921
  from lightning_sdk.lightning_cloud.openapi.models.v1_slurm_node import V1SlurmNode
@@ -913,6 +930,8 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_stop_cloud_space_instance_r
913
930
  from lightning_sdk.lightning_cloud.openapi.models.v1_storage_asset import V1StorageAsset
914
931
  from lightning_sdk.lightning_cloud.openapi.models.v1_storage_asset_type import V1StorageAssetType
915
932
  from lightning_sdk.lightning_cloud.openapi.models.v1_storage_system_metrics import V1StorageSystemMetrics
933
+ from lightning_sdk.lightning_cloud.openapi.models.v1_storage_transfer import V1StorageTransfer
934
+ from lightning_sdk.lightning_cloud.openapi.models.v1_storage_transfer_status import V1StorageTransferStatus
916
935
  from lightning_sdk.lightning_cloud.openapi.models.v1_studio_job import V1StudioJob
917
936
  from lightning_sdk.lightning_cloud.openapi.models.v1_studio_job_app import V1StudioJobApp
918
937
  from lightning_sdk.lightning_cloud.openapi.models.v1_subnet_spec import V1SubnetSpec
@@ -0,0 +1,435 @@
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 CreateMachineRequestRepresentsTheRequestToCreateAMachine(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
+ 'address': 'str',
45
+ 'instance_type': 'str',
46
+ 'name': 'str',
47
+ 'org_id': 'str',
48
+ 'parent_cluster_id': 'str',
49
+ 'provider': 'str',
50
+ 'provider_instance_id': 'str',
51
+ 'provider_region': 'str',
52
+ 'provisioning_method': 'str',
53
+ 'resources': 'V1Resources',
54
+ 'tls_cert': 'str',
55
+ 'tls_key': 'str',
56
+ 'unschedulable': 'bool'
57
+ }
58
+
59
+ attribute_map = {
60
+ 'address': 'address',
61
+ 'instance_type': 'instanceType',
62
+ 'name': 'name',
63
+ 'org_id': 'orgId',
64
+ 'parent_cluster_id': 'parentClusterId',
65
+ 'provider': 'provider',
66
+ 'provider_instance_id': 'providerInstanceId',
67
+ 'provider_region': 'providerRegion',
68
+ 'provisioning_method': 'provisioningMethod',
69
+ 'resources': 'resources',
70
+ 'tls_cert': 'tlsCert',
71
+ 'tls_key': 'tlsKey',
72
+ 'unschedulable': 'unschedulable'
73
+ }
74
+
75
+ def __init__(self, address: 'str' =None, instance_type: 'str' =None, name: 'str' =None, org_id: 'str' =None, parent_cluster_id: 'str' =None, provider: 'str' =None, provider_instance_id: 'str' =None, provider_region: 'str' =None, provisioning_method: 'str' =None, resources: 'V1Resources' =None, tls_cert: 'str' =None, tls_key: 'str' =None, unschedulable: 'bool' =None): # noqa: E501
76
+ """CreateMachineRequestRepresentsTheRequestToCreateAMachine - a model defined in Swagger""" # noqa: E501
77
+ self._address = None
78
+ self._instance_type = None
79
+ self._name = None
80
+ self._org_id = None
81
+ self._parent_cluster_id = None
82
+ self._provider = None
83
+ self._provider_instance_id = None
84
+ self._provider_region = None
85
+ self._provisioning_method = None
86
+ self._resources = None
87
+ self._tls_cert = None
88
+ self._tls_key = None
89
+ self._unschedulable = None
90
+ self.discriminator = None
91
+ if address is not None:
92
+ self.address = address
93
+ if instance_type is not None:
94
+ self.instance_type = instance_type
95
+ if name is not None:
96
+ self.name = name
97
+ if org_id is not None:
98
+ self.org_id = org_id
99
+ if parent_cluster_id is not None:
100
+ self.parent_cluster_id = parent_cluster_id
101
+ if provider is not None:
102
+ self.provider = provider
103
+ if provider_instance_id is not None:
104
+ self.provider_instance_id = provider_instance_id
105
+ if provider_region is not None:
106
+ self.provider_region = provider_region
107
+ if provisioning_method is not None:
108
+ self.provisioning_method = provisioning_method
109
+ if resources is not None:
110
+ self.resources = resources
111
+ if tls_cert is not None:
112
+ self.tls_cert = tls_cert
113
+ if tls_key is not None:
114
+ self.tls_key = tls_key
115
+ if unschedulable is not None:
116
+ self.unschedulable = unschedulable
117
+
118
+ @property
119
+ def address(self) -> 'str':
120
+ """Gets the address of this CreateMachineRequestRepresentsTheRequestToCreateAMachine. # noqa: E501
121
+
122
+
123
+ :return: The address of this CreateMachineRequestRepresentsTheRequestToCreateAMachine. # noqa: E501
124
+ :rtype: str
125
+ """
126
+ return self._address
127
+
128
+ @address.setter
129
+ def address(self, address: 'str'):
130
+ """Sets the address of this CreateMachineRequestRepresentsTheRequestToCreateAMachine.
131
+
132
+
133
+ :param address: The address of this CreateMachineRequestRepresentsTheRequestToCreateAMachine. # noqa: E501
134
+ :type: str
135
+ """
136
+
137
+ self._address = address
138
+
139
+ @property
140
+ def instance_type(self) -> 'str':
141
+ """Gets the instance_type of this CreateMachineRequestRepresentsTheRequestToCreateAMachine. # noqa: E501
142
+
143
+
144
+ :return: The instance_type of this CreateMachineRequestRepresentsTheRequestToCreateAMachine. # noqa: E501
145
+ :rtype: str
146
+ """
147
+ return self._instance_type
148
+
149
+ @instance_type.setter
150
+ def instance_type(self, instance_type: 'str'):
151
+ """Sets the instance_type of this CreateMachineRequestRepresentsTheRequestToCreateAMachine.
152
+
153
+
154
+ :param instance_type: The instance_type of this CreateMachineRequestRepresentsTheRequestToCreateAMachine. # noqa: E501
155
+ :type: str
156
+ """
157
+
158
+ self._instance_type = instance_type
159
+
160
+ @property
161
+ def name(self) -> 'str':
162
+ """Gets the name of this CreateMachineRequestRepresentsTheRequestToCreateAMachine. # noqa: E501
163
+
164
+
165
+ :return: The name of this CreateMachineRequestRepresentsTheRequestToCreateAMachine. # noqa: E501
166
+ :rtype: str
167
+ """
168
+ return self._name
169
+
170
+ @name.setter
171
+ def name(self, name: 'str'):
172
+ """Sets the name of this CreateMachineRequestRepresentsTheRequestToCreateAMachine.
173
+
174
+
175
+ :param name: The name of this CreateMachineRequestRepresentsTheRequestToCreateAMachine. # noqa: E501
176
+ :type: str
177
+ """
178
+
179
+ self._name = name
180
+
181
+ @property
182
+ def org_id(self) -> 'str':
183
+ """Gets the org_id of this CreateMachineRequestRepresentsTheRequestToCreateAMachine. # noqa: E501
184
+
185
+
186
+ :return: The org_id of this CreateMachineRequestRepresentsTheRequestToCreateAMachine. # noqa: E501
187
+ :rtype: str
188
+ """
189
+ return self._org_id
190
+
191
+ @org_id.setter
192
+ def org_id(self, org_id: 'str'):
193
+ """Sets the org_id of this CreateMachineRequestRepresentsTheRequestToCreateAMachine.
194
+
195
+
196
+ :param org_id: The org_id of this CreateMachineRequestRepresentsTheRequestToCreateAMachine. # noqa: E501
197
+ :type: str
198
+ """
199
+
200
+ self._org_id = org_id
201
+
202
+ @property
203
+ def parent_cluster_id(self) -> 'str':
204
+ """Gets the parent_cluster_id of this CreateMachineRequestRepresentsTheRequestToCreateAMachine. # noqa: E501
205
+
206
+
207
+ :return: The parent_cluster_id of this CreateMachineRequestRepresentsTheRequestToCreateAMachine. # noqa: E501
208
+ :rtype: str
209
+ """
210
+ return self._parent_cluster_id
211
+
212
+ @parent_cluster_id.setter
213
+ def parent_cluster_id(self, parent_cluster_id: 'str'):
214
+ """Sets the parent_cluster_id of this CreateMachineRequestRepresentsTheRequestToCreateAMachine.
215
+
216
+
217
+ :param parent_cluster_id: The parent_cluster_id of this CreateMachineRequestRepresentsTheRequestToCreateAMachine. # noqa: E501
218
+ :type: str
219
+ """
220
+
221
+ self._parent_cluster_id = parent_cluster_id
222
+
223
+ @property
224
+ def provider(self) -> 'str':
225
+ """Gets the provider of this CreateMachineRequestRepresentsTheRequestToCreateAMachine. # noqa: E501
226
+
227
+
228
+ :return: The provider of this CreateMachineRequestRepresentsTheRequestToCreateAMachine. # noqa: E501
229
+ :rtype: str
230
+ """
231
+ return self._provider
232
+
233
+ @provider.setter
234
+ def provider(self, provider: 'str'):
235
+ """Sets the provider of this CreateMachineRequestRepresentsTheRequestToCreateAMachine.
236
+
237
+
238
+ :param provider: The provider of this CreateMachineRequestRepresentsTheRequestToCreateAMachine. # noqa: E501
239
+ :type: str
240
+ """
241
+
242
+ self._provider = provider
243
+
244
+ @property
245
+ def provider_instance_id(self) -> 'str':
246
+ """Gets the provider_instance_id of this CreateMachineRequestRepresentsTheRequestToCreateAMachine. # noqa: E501
247
+
248
+
249
+ :return: The provider_instance_id of this CreateMachineRequestRepresentsTheRequestToCreateAMachine. # noqa: E501
250
+ :rtype: str
251
+ """
252
+ return self._provider_instance_id
253
+
254
+ @provider_instance_id.setter
255
+ def provider_instance_id(self, provider_instance_id: 'str'):
256
+ """Sets the provider_instance_id of this CreateMachineRequestRepresentsTheRequestToCreateAMachine.
257
+
258
+
259
+ :param provider_instance_id: The provider_instance_id of this CreateMachineRequestRepresentsTheRequestToCreateAMachine. # noqa: E501
260
+ :type: str
261
+ """
262
+
263
+ self._provider_instance_id = provider_instance_id
264
+
265
+ @property
266
+ def provider_region(self) -> 'str':
267
+ """Gets the provider_region of this CreateMachineRequestRepresentsTheRequestToCreateAMachine. # noqa: E501
268
+
269
+
270
+ :return: The provider_region of this CreateMachineRequestRepresentsTheRequestToCreateAMachine. # noqa: E501
271
+ :rtype: str
272
+ """
273
+ return self._provider_region
274
+
275
+ @provider_region.setter
276
+ def provider_region(self, provider_region: 'str'):
277
+ """Sets the provider_region of this CreateMachineRequestRepresentsTheRequestToCreateAMachine.
278
+
279
+
280
+ :param provider_region: The provider_region of this CreateMachineRequestRepresentsTheRequestToCreateAMachine. # noqa: E501
281
+ :type: str
282
+ """
283
+
284
+ self._provider_region = provider_region
285
+
286
+ @property
287
+ def provisioning_method(self) -> 'str':
288
+ """Gets the provisioning_method of this CreateMachineRequestRepresentsTheRequestToCreateAMachine. # noqa: E501
289
+
290
+
291
+ :return: The provisioning_method of this CreateMachineRequestRepresentsTheRequestToCreateAMachine. # noqa: E501
292
+ :rtype: str
293
+ """
294
+ return self._provisioning_method
295
+
296
+ @provisioning_method.setter
297
+ def provisioning_method(self, provisioning_method: 'str'):
298
+ """Sets the provisioning_method of this CreateMachineRequestRepresentsTheRequestToCreateAMachine.
299
+
300
+
301
+ :param provisioning_method: The provisioning_method of this CreateMachineRequestRepresentsTheRequestToCreateAMachine. # noqa: E501
302
+ :type: str
303
+ """
304
+
305
+ self._provisioning_method = provisioning_method
306
+
307
+ @property
308
+ def resources(self) -> 'V1Resources':
309
+ """Gets the resources of this CreateMachineRequestRepresentsTheRequestToCreateAMachine. # noqa: E501
310
+
311
+
312
+ :return: The resources of this CreateMachineRequestRepresentsTheRequestToCreateAMachine. # noqa: E501
313
+ :rtype: V1Resources
314
+ """
315
+ return self._resources
316
+
317
+ @resources.setter
318
+ def resources(self, resources: 'V1Resources'):
319
+ """Sets the resources of this CreateMachineRequestRepresentsTheRequestToCreateAMachine.
320
+
321
+
322
+ :param resources: The resources of this CreateMachineRequestRepresentsTheRequestToCreateAMachine. # noqa: E501
323
+ :type: V1Resources
324
+ """
325
+
326
+ self._resources = resources
327
+
328
+ @property
329
+ def tls_cert(self) -> 'str':
330
+ """Gets the tls_cert of this CreateMachineRequestRepresentsTheRequestToCreateAMachine. # noqa: E501
331
+
332
+
333
+ :return: The tls_cert of this CreateMachineRequestRepresentsTheRequestToCreateAMachine. # noqa: E501
334
+ :rtype: str
335
+ """
336
+ return self._tls_cert
337
+
338
+ @tls_cert.setter
339
+ def tls_cert(self, tls_cert: 'str'):
340
+ """Sets the tls_cert of this CreateMachineRequestRepresentsTheRequestToCreateAMachine.
341
+
342
+
343
+ :param tls_cert: The tls_cert of this CreateMachineRequestRepresentsTheRequestToCreateAMachine. # noqa: E501
344
+ :type: str
345
+ """
346
+
347
+ self._tls_cert = tls_cert
348
+
349
+ @property
350
+ def tls_key(self) -> 'str':
351
+ """Gets the tls_key of this CreateMachineRequestRepresentsTheRequestToCreateAMachine. # noqa: E501
352
+
353
+
354
+ :return: The tls_key of this CreateMachineRequestRepresentsTheRequestToCreateAMachine. # noqa: E501
355
+ :rtype: str
356
+ """
357
+ return self._tls_key
358
+
359
+ @tls_key.setter
360
+ def tls_key(self, tls_key: 'str'):
361
+ """Sets the tls_key of this CreateMachineRequestRepresentsTheRequestToCreateAMachine.
362
+
363
+
364
+ :param tls_key: The tls_key of this CreateMachineRequestRepresentsTheRequestToCreateAMachine. # noqa: E501
365
+ :type: str
366
+ """
367
+
368
+ self._tls_key = tls_key
369
+
370
+ @property
371
+ def unschedulable(self) -> 'bool':
372
+ """Gets the unschedulable of this CreateMachineRequestRepresentsTheRequestToCreateAMachine. # noqa: E501
373
+
374
+
375
+ :return: The unschedulable of this CreateMachineRequestRepresentsTheRequestToCreateAMachine. # noqa: E501
376
+ :rtype: bool
377
+ """
378
+ return self._unschedulable
379
+
380
+ @unschedulable.setter
381
+ def unschedulable(self, unschedulable: 'bool'):
382
+ """Sets the unschedulable of this CreateMachineRequestRepresentsTheRequestToCreateAMachine.
383
+
384
+
385
+ :param unschedulable: The unschedulable of this CreateMachineRequestRepresentsTheRequestToCreateAMachine. # noqa: E501
386
+ :type: bool
387
+ """
388
+
389
+ self._unschedulable = unschedulable
390
+
391
+ def to_dict(self) -> dict:
392
+ """Returns the model properties as a dict"""
393
+ result = {}
394
+
395
+ for attr, _ in six.iteritems(self.swagger_types):
396
+ value = getattr(self, attr)
397
+ if isinstance(value, list):
398
+ result[attr] = list(map(
399
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
400
+ value
401
+ ))
402
+ elif hasattr(value, "to_dict"):
403
+ result[attr] = value.to_dict()
404
+ elif isinstance(value, dict):
405
+ result[attr] = dict(map(
406
+ lambda item: (item[0], item[1].to_dict())
407
+ if hasattr(item[1], "to_dict") else item,
408
+ value.items()
409
+ ))
410
+ else:
411
+ result[attr] = value
412
+ if issubclass(CreateMachineRequestRepresentsTheRequestToCreateAMachine, dict):
413
+ for key, value in self.items():
414
+ result[key] = value
415
+
416
+ return result
417
+
418
+ def to_str(self) -> str:
419
+ """Returns the string representation of the model"""
420
+ return pprint.pformat(self.to_dict())
421
+
422
+ def __repr__(self) -> str:
423
+ """For `print` and `pprint`"""
424
+ return self.to_str()
425
+
426
+ def __eq__(self, other: 'CreateMachineRequestRepresentsTheRequestToCreateAMachine') -> bool:
427
+ """Returns true if both objects are equal"""
428
+ if not isinstance(other, CreateMachineRequestRepresentsTheRequestToCreateAMachine):
429
+ return False
430
+
431
+ return self.__dict__ == other.__dict__
432
+
433
+ def __ne__(self, other: 'CreateMachineRequestRepresentsTheRequestToCreateAMachine') -> bool:
434
+ """Returns true if both objects are not equal"""
435
+ return not self == other