lightning-sdk 0.2.14__py3-none-any.whl → 0.2.16__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 (122) hide show
  1. lightning_sdk/__init__.py +1 -1
  2. lightning_sdk/api/base_studio_api.py +79 -0
  3. lightning_sdk/api/cluster_api.py +83 -1
  4. lightning_sdk/api/license_api.py +48 -0
  5. lightning_sdk/api/llm_api.py +73 -12
  6. lightning_sdk/api/studio_api.py +50 -1
  7. lightning_sdk/api/teamspace_api.py +127 -1
  8. lightning_sdk/api/utils.py +4 -0
  9. lightning_sdk/base_studio.py +83 -0
  10. lightning_sdk/cli/create.py +21 -1
  11. lightning_sdk/cli/delete.py +6 -8
  12. lightning_sdk/cli/deploy/__init__.py +0 -0
  13. lightning_sdk/cli/deploy/_auth.py +189 -0
  14. lightning_sdk/cli/deploy/devbox.py +157 -0
  15. lightning_sdk/cli/{serve.py → deploy/serve.py} +22 -281
  16. lightning_sdk/cli/download.py +69 -16
  17. lightning_sdk/cli/entrypoint.py +1 -1
  18. lightning_sdk/cli/open.py +21 -2
  19. lightning_sdk/cli/start.py +12 -3
  20. lightning_sdk/cli/teamspace_menu.py +9 -1
  21. lightning_sdk/cli/upload.py +2 -5
  22. lightning_sdk/lightning_cloud/openapi/__init__.py +29 -0
  23. lightning_sdk/lightning_cloud/openapi/api/__init__.py +1 -0
  24. lightning_sdk/lightning_cloud/openapi/api/assistants_service_api.py +121 -0
  25. lightning_sdk/lightning_cloud/openapi/api/billing_service_api.py +9 -1
  26. lightning_sdk/lightning_cloud/openapi/api/cloud_space_service_api.py +226 -0
  27. lightning_sdk/lightning_cloud/openapi/api/cluster_service_api.py +105 -0
  28. lightning_sdk/lightning_cloud/openapi/api/file_system_service_api.py +178 -0
  29. lightning_sdk/lightning_cloud/openapi/api/jobs_service_api.py +984 -101
  30. lightning_sdk/lightning_cloud/openapi/api/product_license_service_api.py +525 -0
  31. lightning_sdk/lightning_cloud/openapi/api/storage_service_api.py +93 -0
  32. lightning_sdk/lightning_cloud/openapi/configuration.py +1 -1
  33. lightning_sdk/lightning_cloud/openapi/models/__init__.py +28 -0
  34. lightning_sdk/lightning_cloud/openapi/models/assistant_id_conversations_body.py +79 -1
  35. lightning_sdk/lightning_cloud/openapi/models/cloudspaces_id_body.py +53 -1
  36. lightning_sdk/lightning_cloud/openapi/models/deployment_id_alertingpolicies_body.py +331 -0
  37. lightning_sdk/lightning_cloud/openapi/models/deployment_id_alertingpolicies_body1.py +305 -0
  38. lightning_sdk/lightning_cloud/openapi/models/deployments_id_body.py +53 -1
  39. lightning_sdk/lightning_cloud/openapi/models/endpoints_id_body.py +27 -1
  40. lightning_sdk/lightning_cloud/openapi/models/model_id_versions_body.py +27 -1
  41. lightning_sdk/lightning_cloud/openapi/models/models_id_body.py +123 -0
  42. lightning_sdk/lightning_cloud/openapi/models/orgs_id_body.py +183 -1
  43. lightning_sdk/lightning_cloud/openapi/models/pipelines_id_body.py +6 -6
  44. lightning_sdk/lightning_cloud/openapi/models/project_id_cloudspaces_body.py +27 -1
  45. lightning_sdk/lightning_cloud/openapi/models/project_id_storage_body.py +27 -1
  46. lightning_sdk/lightning_cloud/openapi/models/projects_id_body.py +107 -3
  47. lightning_sdk/lightning_cloud/openapi/models/storage_complete_body.py +27 -1
  48. lightning_sdk/lightning_cloud/openapi/models/update.py +79 -1
  49. lightning_sdk/lightning_cloud/openapi/models/uploads_upload_id_body1.py +55 -3
  50. lightning_sdk/lightning_cloud/openapi/models/v1_aws_direct_v1.py +53 -1
  51. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_provider.py +3 -0
  52. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space.py +79 -1
  53. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_config.py +123 -0
  54. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_template_config.py +79 -1
  55. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_type.py +104 -0
  56. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_source_type.py +103 -0
  57. lightning_sdk/lightning_cloud/openapi/models/v1_cloudflare_v1.py +66 -66
  58. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_spec.py +27 -1
  59. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_tagging_options.py +27 -1
  60. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_upload.py +149 -0
  61. lightning_sdk/lightning_cloud/openapi/models/v1_complete_upload.py +55 -3
  62. lightning_sdk/lightning_cloud/openapi/models/v1_conversation.py +27 -1
  63. lightning_sdk/lightning_cloud/openapi/models/v1_create_cloud_space_environment_template_request.py +79 -1
  64. lightning_sdk/lightning_cloud/openapi/models/v1_delete_deployment_alerting_policy_response.py +175 -0
  65. lightning_sdk/lightning_cloud/openapi/models/v1_deployment.py +53 -1
  66. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_alerting_event.py +487 -0
  67. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_alerting_policy.py +383 -0
  68. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_alerting_policy_frequency.py +105 -0
  69. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_alerting_policy_operation.py +105 -0
  70. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_alerting_policy_severity.py +106 -0
  71. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_alerting_policy_type.py +111 -0
  72. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_api.py +27 -1
  73. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_state.py +4 -4
  74. lightning_sdk/lightning_cloud/openapi/models/v1_endpoint.py +27 -1
  75. lightning_sdk/lightning_cloud/openapi/models/v1_external_search_user.py +27 -1
  76. lightning_sdk/lightning_cloud/openapi/models/v1_ge_list_deployment_routing_telemetry_response.py +123 -0
  77. lightning_sdk/lightning_cloud/openapi/models/v1_get_cloud_space_instance_open_ports_response.py +123 -0
  78. lightning_sdk/lightning_cloud/openapi/models/v1_get_deployment_routing_telemetry_content_response.py +123 -0
  79. lightning_sdk/lightning_cloud/openapi/models/v1_get_job_stats_response.py +53 -1
  80. lightning_sdk/lightning_cloud/openapi/models/v1_get_organization_storage_metadata_response.py +331 -0
  81. lightning_sdk/lightning_cloud/openapi/models/v1_get_project_balance_response.py +1 -27
  82. lightning_sdk/lightning_cloud/openapi/models/v1_google_cloud_direct_v1.py +27 -1
  83. lightning_sdk/lightning_cloud/openapi/models/v1_job_type.py +1 -0
  84. lightning_sdk/lightning_cloud/openapi/models/v1_list_deployment_alerting_events_response.py +123 -0
  85. lightning_sdk/lightning_cloud/openapi/models/v1_list_deployment_alerting_policies_response.py +175 -0
  86. lightning_sdk/lightning_cloud/openapi/models/v1_list_product_licenses_response.py +123 -0
  87. lightning_sdk/lightning_cloud/openapi/models/v1_managed_model.py +27 -1
  88. lightning_sdk/lightning_cloud/openapi/models/v1_membership.py +43 -17
  89. lightning_sdk/lightning_cloud/openapi/models/v1_modify_filesystem_volume_response.py +97 -0
  90. lightning_sdk/lightning_cloud/openapi/models/v1_organization.py +183 -1
  91. lightning_sdk/lightning_cloud/openapi/models/v1_pipeline.py +6 -6
  92. lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_state.py +111 -0
  93. lightning_sdk/lightning_cloud/openapi/models/v1_presigned_url.py +53 -1
  94. lightning_sdk/lightning_cloud/openapi/models/v1_product_license.py +409 -0
  95. lightning_sdk/lightning_cloud/openapi/models/v1_product_license_check_response.py +123 -0
  96. lightning_sdk/lightning_cloud/openapi/models/v1_project.py +27 -1
  97. lightning_sdk/lightning_cloud/openapi/models/v1_project_membership.py +43 -17
  98. lightning_sdk/lightning_cloud/openapi/models/v1_project_settings.py +107 -3
  99. lightning_sdk/lightning_cloud/openapi/models/v1_project_storage.py +53 -1
  100. lightning_sdk/lightning_cloud/openapi/models/v1_r2_data_connection.py +53 -1
  101. lightning_sdk/lightning_cloud/openapi/models/v1_routing_telemetry.py +253 -0
  102. lightning_sdk/lightning_cloud/openapi/models/v1_secret_type.py +1 -0
  103. lightning_sdk/lightning_cloud/openapi/models/v1_server_alert_type.py +2 -0
  104. lightning_sdk/lightning_cloud/openapi/models/v1_sleep_server_response.py +97 -0
  105. lightning_sdk/lightning_cloud/openapi/models/v1_trigger_filesystem_upgrade_response.py +123 -0
  106. lightning_sdk/lightning_cloud/openapi/models/v1_upload_project_artifact_response.py +27 -1
  107. lightning_sdk/lightning_cloud/openapi/models/v1_usage_report.py +79 -1
  108. lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +347 -113
  109. lightning_sdk/lightning_cloud/openapi/models/v1_user_requested_compute_config.py +27 -1
  110. lightning_sdk/lightning_cloud/rest_client.py +4 -0
  111. lightning_sdk/llm/llm.py +132 -40
  112. lightning_sdk/services/__init__.py +1 -1
  113. lightning_sdk/services/license.py +236 -0
  114. lightning_sdk/studio.py +62 -1
  115. lightning_sdk/teamspace.py +68 -0
  116. {lightning_sdk-0.2.14.dist-info → lightning_sdk-0.2.16.dist-info}/METADATA +1 -1
  117. {lightning_sdk-0.2.14.dist-info → lightning_sdk-0.2.16.dist-info}/RECORD +122 -86
  118. /lightning_sdk/services/{finetune/__init__.py → finetune_llm.py} +0 -0
  119. {lightning_sdk-0.2.14.dist-info → lightning_sdk-0.2.16.dist-info}/LICENSE +0 -0
  120. {lightning_sdk-0.2.14.dist-info → lightning_sdk-0.2.16.dist-info}/WHEEL +0 -0
  121. {lightning_sdk-0.2.14.dist-info → lightning_sdk-0.2.16.dist-info}/entry_points.txt +0 -0
  122. {lightning_sdk-0.2.14.dist-info → lightning_sdk-0.2.16.dist-info}/top_level.txt +0 -0
@@ -52,7 +52,7 @@ class PipelinesIdBody(object):
52
52
  'parent_pipeline_id': 'str',
53
53
  'schedule_id': 'str',
54
54
  'shared_filesystem': 'V1SharedFilesystem',
55
- 'state': 'str',
55
+ 'state': 'V1PipelineState',
56
56
  'statuses': 'list[V1PipelineStepStatus]',
57
57
  'steps': 'list[V1PipelineStep]',
58
58
  'updated_at': 'datetime',
@@ -78,7 +78,7 @@ class PipelinesIdBody(object):
78
78
  'user_id': 'userId'
79
79
  }
80
80
 
81
- def __init__(self, cluster_id: 'str' =None, created_at: 'datetime' =None, display_name: 'str' =None, error: 'str' =None, is_published: 'bool' =None, message: 'str' =None, name: 'str' =None, parameters: 'list[V1PipelineParameter]' =None, parent_pipeline_id: 'str' =None, schedule_id: 'str' =None, shared_filesystem: 'V1SharedFilesystem' =None, state: 'str' =None, statuses: 'list[V1PipelineStepStatus]' =None, steps: 'list[V1PipelineStep]' =None, updated_at: 'datetime' =None, user_id: 'str' =None): # noqa: E501
81
+ def __init__(self, cluster_id: 'str' =None, created_at: 'datetime' =None, display_name: 'str' =None, error: 'str' =None, is_published: 'bool' =None, message: 'str' =None, name: 'str' =None, parameters: 'list[V1PipelineParameter]' =None, parent_pipeline_id: 'str' =None, schedule_id: 'str' =None, shared_filesystem: 'V1SharedFilesystem' =None, state: 'V1PipelineState' =None, statuses: 'list[V1PipelineStepStatus]' =None, steps: 'list[V1PipelineStep]' =None, updated_at: 'datetime' =None, user_id: 'str' =None): # noqa: E501
82
82
  """PipelinesIdBody - a model defined in Swagger""" # noqa: E501
83
83
  self._cluster_id = None
84
84
  self._created_at = None
@@ -362,22 +362,22 @@ class PipelinesIdBody(object):
362
362
  self._shared_filesystem = shared_filesystem
363
363
 
364
364
  @property
365
- def state(self) -> 'str':
365
+ def state(self) -> 'V1PipelineState':
366
366
  """Gets the state of this PipelinesIdBody. # noqa: E501
367
367
 
368
368
 
369
369
  :return: The state of this PipelinesIdBody. # noqa: E501
370
- :rtype: str
370
+ :rtype: V1PipelineState
371
371
  """
372
372
  return self._state
373
373
 
374
374
  @state.setter
375
- def state(self, state: 'str'):
375
+ def state(self, state: 'V1PipelineState'):
376
376
  """Sets the state of this PipelinesIdBody.
377
377
 
378
378
 
379
379
  :param state: The state of this PipelinesIdBody. # noqa: E501
380
- :type: str
380
+ :type: V1PipelineState
381
381
  """
382
382
 
383
383
  self._state = state
@@ -55,6 +55,7 @@ class ProjectIdCloudspacesBody(object):
55
55
  'requested_run_duration_seconds': 'str',
56
56
  'same_compute_on_resume': 'bool',
57
57
  'seed_files': 'list[V1CloudSpaceSeedFile]',
58
+ 'source': 'V1CloudSpaceSourceType',
58
59
  'spot': 'bool'
59
60
  }
60
61
 
@@ -73,10 +74,11 @@ class ProjectIdCloudspacesBody(object):
73
74
  'requested_run_duration_seconds': 'requestedRunDurationSeconds',
74
75
  'same_compute_on_resume': 'sameComputeOnResume',
75
76
  'seed_files': 'seedFiles',
77
+ 'source': 'source',
76
78
  'spot': 'spot'
77
79
  }
78
80
 
79
- def __init__(self, can_download_source_code: 'bool' =None, cloud_space_environment_template_id: 'str' =None, cloud_space_instance_cpu_image_override: 'str' =None, cloud_space_instance_gpu_image_override: 'str' =None, cluster_id: 'str' =None, compute_name: 'str' =None, data_connection_mounts: 'list[V1DataConnectionMount]' =None, disk_size: 'str' =None, display_name: 'str' =None, name: 'str' =None, plugins: 'list[str]' =None, requested_run_duration_seconds: 'str' =None, same_compute_on_resume: 'bool' =None, seed_files: 'list[V1CloudSpaceSeedFile]' =None, spot: 'bool' =None): # noqa: E501
81
+ def __init__(self, can_download_source_code: 'bool' =None, cloud_space_environment_template_id: 'str' =None, cloud_space_instance_cpu_image_override: 'str' =None, cloud_space_instance_gpu_image_override: 'str' =None, cluster_id: 'str' =None, compute_name: 'str' =None, data_connection_mounts: 'list[V1DataConnectionMount]' =None, disk_size: 'str' =None, display_name: 'str' =None, name: 'str' =None, plugins: 'list[str]' =None, requested_run_duration_seconds: 'str' =None, same_compute_on_resume: 'bool' =None, seed_files: 'list[V1CloudSpaceSeedFile]' =None, source: 'V1CloudSpaceSourceType' =None, spot: 'bool' =None): # noqa: E501
80
82
  """ProjectIdCloudspacesBody - a model defined in Swagger""" # noqa: E501
81
83
  self._can_download_source_code = None
82
84
  self._cloud_space_environment_template_id = None
@@ -92,6 +94,7 @@ class ProjectIdCloudspacesBody(object):
92
94
  self._requested_run_duration_seconds = None
93
95
  self._same_compute_on_resume = None
94
96
  self._seed_files = None
97
+ self._source = None
95
98
  self._spot = None
96
99
  self.discriminator = None
97
100
  if can_download_source_code is not None:
@@ -122,6 +125,8 @@ class ProjectIdCloudspacesBody(object):
122
125
  self.same_compute_on_resume = same_compute_on_resume
123
126
  if seed_files is not None:
124
127
  self.seed_files = seed_files
128
+ if source is not None:
129
+ self.source = source
125
130
  if spot is not None:
126
131
  self.spot = spot
127
132
 
@@ -419,6 +424,27 @@ class ProjectIdCloudspacesBody(object):
419
424
 
420
425
  self._seed_files = seed_files
421
426
 
427
+ @property
428
+ def source(self) -> 'V1CloudSpaceSourceType':
429
+ """Gets the source of this ProjectIdCloudspacesBody. # noqa: E501
430
+
431
+
432
+ :return: The source of this ProjectIdCloudspacesBody. # noqa: E501
433
+ :rtype: V1CloudSpaceSourceType
434
+ """
435
+ return self._source
436
+
437
+ @source.setter
438
+ def source(self, source: 'V1CloudSpaceSourceType'):
439
+ """Sets the source of this ProjectIdCloudspacesBody.
440
+
441
+
442
+ :param source: The source of this ProjectIdCloudspacesBody. # noqa: E501
443
+ :type: V1CloudSpaceSourceType
444
+ """
445
+
446
+ self._source = source
447
+
422
448
  @property
423
449
  def spot(self) -> 'bool':
424
450
  """Gets the spot of this ProjectIdCloudspacesBody. # noqa: E501
@@ -41,23 +41,28 @@ class ProjectIdStorageBody(object):
41
41
  and the value is json key in definition.
42
42
  """
43
43
  swagger_types = {
44
+ 'allow_multicloud': 'bool',
44
45
  'cluster_id': 'str',
45
46
  'count': 'str',
46
47
  'filename': 'str'
47
48
  }
48
49
 
49
50
  attribute_map = {
51
+ 'allow_multicloud': 'allowMulticloud',
50
52
  'cluster_id': 'clusterId',
51
53
  'count': 'count',
52
54
  'filename': 'filename'
53
55
  }
54
56
 
55
- def __init__(self, cluster_id: 'str' =None, count: 'str' =None, filename: 'str' =None): # noqa: E501
57
+ def __init__(self, allow_multicloud: 'bool' =None, cluster_id: 'str' =None, count: 'str' =None, filename: 'str' =None): # noqa: E501
56
58
  """ProjectIdStorageBody - a model defined in Swagger""" # noqa: E501
59
+ self._allow_multicloud = None
57
60
  self._cluster_id = None
58
61
  self._count = None
59
62
  self._filename = None
60
63
  self.discriminator = None
64
+ if allow_multicloud is not None:
65
+ self.allow_multicloud = allow_multicloud
61
66
  if cluster_id is not None:
62
67
  self.cluster_id = cluster_id
63
68
  if count is not None:
@@ -65,6 +70,27 @@ class ProjectIdStorageBody(object):
65
70
  if filename is not None:
66
71
  self.filename = filename
67
72
 
73
+ @property
74
+ def allow_multicloud(self) -> 'bool':
75
+ """Gets the allow_multicloud of this ProjectIdStorageBody. # noqa: E501
76
+
77
+
78
+ :return: The allow_multicloud of this ProjectIdStorageBody. # noqa: E501
79
+ :rtype: bool
80
+ """
81
+ return self._allow_multicloud
82
+
83
+ @allow_multicloud.setter
84
+ def allow_multicloud(self, allow_multicloud: 'bool'):
85
+ """Sets the allow_multicloud of this ProjectIdStorageBody.
86
+
87
+
88
+ :param allow_multicloud: The allow_multicloud of this ProjectIdStorageBody. # noqa: E501
89
+ :type: bool
90
+ """
91
+
92
+ self._allow_multicloud = allow_multicloud
93
+
68
94
  @property
69
95
  def cluster_id(self) -> 'str':
70
96
  """Gets the cluster_id of this ProjectIdStorageBody. # noqa: E501
@@ -42,10 +42,13 @@ class ProjectsIdBody(object):
42
42
  """
43
43
  swagger_types = {
44
44
  'allow_aws_saas': 'bool',
45
+ 'allow_dgx_saas': 'bool',
45
46
  'allow_external_project_duplication': 'bool',
46
47
  'allow_gcp_saas': 'bool',
47
48
  'allow_lambda_saas': 'bool',
49
+ 'allow_lightning_saas': 'bool',
48
50
  'allow_vultr_saas': 'bool',
51
+ 'auto_switch_machine': 'bool',
49
52
  'default_machine_type': 'str',
50
53
  'description': 'str',
51
54
  'display_name': 'str',
@@ -55,15 +58,19 @@ class ProjectsIdBody(object):
55
58
  'preferred_studio_provider': 'str',
56
59
  'quotas': 'V1Quotas',
57
60
  'same_compute_on_resume': 'bool',
58
- 'start_studio_on_spot_instance': 'bool'
61
+ 'start_studio_on_spot_instance': 'bool',
62
+ 'switch_to_default_machine_on_idle': 'bool'
59
63
  }
60
64
 
61
65
  attribute_map = {
62
66
  'allow_aws_saas': 'allowAwsSaas',
67
+ 'allow_dgx_saas': 'allowDgxSaas',
63
68
  'allow_external_project_duplication': 'allowExternalProjectDuplication',
64
69
  'allow_gcp_saas': 'allowGcpSaas',
65
70
  'allow_lambda_saas': 'allowLambdaSaas',
71
+ 'allow_lightning_saas': 'allowLightningSaas',
66
72
  'allow_vultr_saas': 'allowVultrSaas',
73
+ 'auto_switch_machine': 'autoSwitchMachine',
67
74
  'default_machine_type': 'defaultMachineType',
68
75
  'description': 'description',
69
76
  'display_name': 'displayName',
@@ -73,16 +80,20 @@ class ProjectsIdBody(object):
73
80
  'preferred_studio_provider': 'preferredStudioProvider',
74
81
  'quotas': 'quotas',
75
82
  'same_compute_on_resume': 'sameComputeOnResume',
76
- 'start_studio_on_spot_instance': 'startStudioOnSpotInstance'
83
+ 'start_studio_on_spot_instance': 'startStudioOnSpotInstance',
84
+ 'switch_to_default_machine_on_idle': 'switchToDefaultMachineOnIdle'
77
85
  }
78
86
 
79
- def __init__(self, allow_aws_saas: 'bool' =None, allow_external_project_duplication: 'bool' =None, allow_gcp_saas: 'bool' =None, allow_lambda_saas: 'bool' =None, allow_vultr_saas: 'bool' =None, default_machine_type: 'str' =None, description: 'str' =None, display_name: 'str' =None, name: 'str' =None, preferred_cluster: 'str' =None, preferred_deployment_provider: 'str' =None, preferred_studio_provider: 'str' =None, quotas: 'V1Quotas' =None, same_compute_on_resume: 'bool' =None, start_studio_on_spot_instance: 'bool' =None): # noqa: E501
87
+ def __init__(self, allow_aws_saas: 'bool' =None, allow_dgx_saas: 'bool' =None, allow_external_project_duplication: 'bool' =None, allow_gcp_saas: 'bool' =None, allow_lambda_saas: 'bool' =None, allow_lightning_saas: 'bool' =None, allow_vultr_saas: 'bool' =None, auto_switch_machine: 'bool' =None, default_machine_type: 'str' =None, description: 'str' =None, display_name: 'str' =None, name: 'str' =None, preferred_cluster: 'str' =None, preferred_deployment_provider: 'str' =None, preferred_studio_provider: 'str' =None, quotas: 'V1Quotas' =None, same_compute_on_resume: 'bool' =None, start_studio_on_spot_instance: 'bool' =None, switch_to_default_machine_on_idle: 'bool' =None): # noqa: E501
80
88
  """ProjectsIdBody - a model defined in Swagger""" # noqa: E501
81
89
  self._allow_aws_saas = None
90
+ self._allow_dgx_saas = None
82
91
  self._allow_external_project_duplication = None
83
92
  self._allow_gcp_saas = None
84
93
  self._allow_lambda_saas = None
94
+ self._allow_lightning_saas = None
85
95
  self._allow_vultr_saas = None
96
+ self._auto_switch_machine = None
86
97
  self._default_machine_type = None
87
98
  self._description = None
88
99
  self._display_name = None
@@ -93,17 +104,24 @@ class ProjectsIdBody(object):
93
104
  self._quotas = None
94
105
  self._same_compute_on_resume = None
95
106
  self._start_studio_on_spot_instance = None
107
+ self._switch_to_default_machine_on_idle = None
96
108
  self.discriminator = None
97
109
  if allow_aws_saas is not None:
98
110
  self.allow_aws_saas = allow_aws_saas
111
+ if allow_dgx_saas is not None:
112
+ self.allow_dgx_saas = allow_dgx_saas
99
113
  if allow_external_project_duplication is not None:
100
114
  self.allow_external_project_duplication = allow_external_project_duplication
101
115
  if allow_gcp_saas is not None:
102
116
  self.allow_gcp_saas = allow_gcp_saas
103
117
  if allow_lambda_saas is not None:
104
118
  self.allow_lambda_saas = allow_lambda_saas
119
+ if allow_lightning_saas is not None:
120
+ self.allow_lightning_saas = allow_lightning_saas
105
121
  if allow_vultr_saas is not None:
106
122
  self.allow_vultr_saas = allow_vultr_saas
123
+ if auto_switch_machine is not None:
124
+ self.auto_switch_machine = auto_switch_machine
107
125
  if default_machine_type is not None:
108
126
  self.default_machine_type = default_machine_type
109
127
  if description is not None:
@@ -124,6 +142,8 @@ class ProjectsIdBody(object):
124
142
  self.same_compute_on_resume = same_compute_on_resume
125
143
  if start_studio_on_spot_instance is not None:
126
144
  self.start_studio_on_spot_instance = start_studio_on_spot_instance
145
+ if switch_to_default_machine_on_idle is not None:
146
+ self.switch_to_default_machine_on_idle = switch_to_default_machine_on_idle
127
147
 
128
148
  @property
129
149
  def allow_aws_saas(self) -> 'bool':
@@ -146,6 +166,27 @@ class ProjectsIdBody(object):
146
166
 
147
167
  self._allow_aws_saas = allow_aws_saas
148
168
 
169
+ @property
170
+ def allow_dgx_saas(self) -> 'bool':
171
+ """Gets the allow_dgx_saas of this ProjectsIdBody. # noqa: E501
172
+
173
+
174
+ :return: The allow_dgx_saas of this ProjectsIdBody. # noqa: E501
175
+ :rtype: bool
176
+ """
177
+ return self._allow_dgx_saas
178
+
179
+ @allow_dgx_saas.setter
180
+ def allow_dgx_saas(self, allow_dgx_saas: 'bool'):
181
+ """Sets the allow_dgx_saas of this ProjectsIdBody.
182
+
183
+
184
+ :param allow_dgx_saas: The allow_dgx_saas of this ProjectsIdBody. # noqa: E501
185
+ :type: bool
186
+ """
187
+
188
+ self._allow_dgx_saas = allow_dgx_saas
189
+
149
190
  @property
150
191
  def allow_external_project_duplication(self) -> 'bool':
151
192
  """Gets the allow_external_project_duplication of this ProjectsIdBody. # noqa: E501
@@ -209,6 +250,27 @@ class ProjectsIdBody(object):
209
250
 
210
251
  self._allow_lambda_saas = allow_lambda_saas
211
252
 
253
+ @property
254
+ def allow_lightning_saas(self) -> 'bool':
255
+ """Gets the allow_lightning_saas of this ProjectsIdBody. # noqa: E501
256
+
257
+
258
+ :return: The allow_lightning_saas of this ProjectsIdBody. # noqa: E501
259
+ :rtype: bool
260
+ """
261
+ return self._allow_lightning_saas
262
+
263
+ @allow_lightning_saas.setter
264
+ def allow_lightning_saas(self, allow_lightning_saas: 'bool'):
265
+ """Sets the allow_lightning_saas of this ProjectsIdBody.
266
+
267
+
268
+ :param allow_lightning_saas: The allow_lightning_saas of this ProjectsIdBody. # noqa: E501
269
+ :type: bool
270
+ """
271
+
272
+ self._allow_lightning_saas = allow_lightning_saas
273
+
212
274
  @property
213
275
  def allow_vultr_saas(self) -> 'bool':
214
276
  """Gets the allow_vultr_saas of this ProjectsIdBody. # noqa: E501
@@ -230,6 +292,27 @@ class ProjectsIdBody(object):
230
292
 
231
293
  self._allow_vultr_saas = allow_vultr_saas
232
294
 
295
+ @property
296
+ def auto_switch_machine(self) -> 'bool':
297
+ """Gets the auto_switch_machine of this ProjectsIdBody. # noqa: E501
298
+
299
+
300
+ :return: The auto_switch_machine of this ProjectsIdBody. # noqa: E501
301
+ :rtype: bool
302
+ """
303
+ return self._auto_switch_machine
304
+
305
+ @auto_switch_machine.setter
306
+ def auto_switch_machine(self, auto_switch_machine: 'bool'):
307
+ """Sets the auto_switch_machine of this ProjectsIdBody.
308
+
309
+
310
+ :param auto_switch_machine: The auto_switch_machine of this ProjectsIdBody. # noqa: E501
311
+ :type: bool
312
+ """
313
+
314
+ self._auto_switch_machine = auto_switch_machine
315
+
233
316
  @property
234
317
  def default_machine_type(self) -> 'str':
235
318
  """Gets the default_machine_type of this ProjectsIdBody. # noqa: E501
@@ -440,6 +523,27 @@ class ProjectsIdBody(object):
440
523
 
441
524
  self._start_studio_on_spot_instance = start_studio_on_spot_instance
442
525
 
526
+ @property
527
+ def switch_to_default_machine_on_idle(self) -> 'bool':
528
+ """Gets the switch_to_default_machine_on_idle of this ProjectsIdBody. # noqa: E501
529
+
530
+
531
+ :return: The switch_to_default_machine_on_idle of this ProjectsIdBody. # noqa: E501
532
+ :rtype: bool
533
+ """
534
+ return self._switch_to_default_machine_on_idle
535
+
536
+ @switch_to_default_machine_on_idle.setter
537
+ def switch_to_default_machine_on_idle(self, switch_to_default_machine_on_idle: 'bool'):
538
+ """Sets the switch_to_default_machine_on_idle of this ProjectsIdBody.
539
+
540
+
541
+ :param switch_to_default_machine_on_idle: The switch_to_default_machine_on_idle of this ProjectsIdBody. # noqa: E501
542
+ :type: bool
543
+ """
544
+
545
+ self._switch_to_default_machine_on_idle = switch_to_default_machine_on_idle
546
+
443
547
  def to_dict(self) -> dict:
444
548
  """Returns the model properties as a dict"""
445
549
  result = {}
@@ -41,6 +41,7 @@ class StorageCompleteBody(object):
41
41
  and the value is json key in definition.
42
42
  """
43
43
  swagger_types = {
44
+ 'allow_multicloud': 'bool',
44
45
  'cluster_id': 'str',
45
46
  'filename': 'str',
46
47
  'parts': 'list[V1CompleteUpload]',
@@ -49,6 +50,7 @@ class StorageCompleteBody(object):
49
50
  }
50
51
 
51
52
  attribute_map = {
53
+ 'allow_multicloud': 'allowMulticloud',
52
54
  'cluster_id': 'clusterId',
53
55
  'filename': 'filename',
54
56
  'parts': 'parts',
@@ -56,14 +58,17 @@ class StorageCompleteBody(object):
56
58
  'upload_id': 'uploadId'
57
59
  }
58
60
 
59
- def __init__(self, cluster_id: 'str' =None, filename: 'str' =None, parts: 'list[V1CompleteUpload]' =None, suppress_reindex: 'bool' =None, upload_id: 'str' =None): # noqa: E501
61
+ def __init__(self, allow_multicloud: 'bool' =None, cluster_id: 'str' =None, filename: 'str' =None, parts: 'list[V1CompleteUpload]' =None, suppress_reindex: 'bool' =None, upload_id: 'str' =None): # noqa: E501
60
62
  """StorageCompleteBody - a model defined in Swagger""" # noqa: E501
63
+ self._allow_multicloud = None
61
64
  self._cluster_id = None
62
65
  self._filename = None
63
66
  self._parts = None
64
67
  self._suppress_reindex = None
65
68
  self._upload_id = None
66
69
  self.discriminator = None
70
+ if allow_multicloud is not None:
71
+ self.allow_multicloud = allow_multicloud
67
72
  if cluster_id is not None:
68
73
  self.cluster_id = cluster_id
69
74
  if filename is not None:
@@ -75,6 +80,27 @@ class StorageCompleteBody(object):
75
80
  if upload_id is not None:
76
81
  self.upload_id = upload_id
77
82
 
83
+ @property
84
+ def allow_multicloud(self) -> 'bool':
85
+ """Gets the allow_multicloud of this StorageCompleteBody. # noqa: E501
86
+
87
+
88
+ :return: The allow_multicloud of this StorageCompleteBody. # noqa: E501
89
+ :rtype: bool
90
+ """
91
+ return self._allow_multicloud
92
+
93
+ @allow_multicloud.setter
94
+ def allow_multicloud(self, allow_multicloud: 'bool'):
95
+ """Sets the allow_multicloud of this StorageCompleteBody.
96
+
97
+
98
+ :param allow_multicloud: The allow_multicloud of this StorageCompleteBody. # noqa: E501
99
+ :type: bool
100
+ """
101
+
102
+ self._allow_multicloud = allow_multicloud
103
+
78
104
  @property
79
105
  def cluster_id(self) -> 'str':
80
106
  """Gets the cluster_id of this StorageCompleteBody. # noqa: E501
@@ -41,7 +41,10 @@ class Update(object):
41
41
  and the value is json key in definition.
42
42
  """
43
43
  swagger_types = {
44
+ 'allowed_machines': 'list[str]',
45
+ 'default_machine': 'str',
44
46
  'disabled': 'bool',
47
+ 'environment_type': 'V1CloudSpaceEnvironmentType',
45
48
  'machine_image_version': 'str',
46
49
  'name': 'str',
47
50
  'org_id': 'str',
@@ -49,23 +52,35 @@ class Update(object):
49
52
  }
50
53
 
51
54
  attribute_map = {
55
+ 'allowed_machines': 'allowedMachines',
56
+ 'default_machine': 'defaultMachine',
52
57
  'disabled': 'disabled',
58
+ 'environment_type': 'environmentType',
53
59
  'machine_image_version': 'machineImageVersion',
54
60
  'name': 'name',
55
61
  'org_id': 'orgId',
56
62
  'setup_script_text': 'setupScriptText'
57
63
  }
58
64
 
59
- def __init__(self, disabled: 'bool' =None, machine_image_version: 'str' =None, name: 'str' =None, org_id: 'str' =None, setup_script_text: 'str' =None): # noqa: E501
65
+ def __init__(self, allowed_machines: 'list[str]' =None, default_machine: 'str' =None, disabled: 'bool' =None, environment_type: 'V1CloudSpaceEnvironmentType' =None, machine_image_version: 'str' =None, name: 'str' =None, org_id: 'str' =None, setup_script_text: 'str' =None): # noqa: E501
60
66
  """Update - a model defined in Swagger""" # noqa: E501
67
+ self._allowed_machines = None
68
+ self._default_machine = None
61
69
  self._disabled = None
70
+ self._environment_type = None
62
71
  self._machine_image_version = None
63
72
  self._name = None
64
73
  self._org_id = None
65
74
  self._setup_script_text = None
66
75
  self.discriminator = None
76
+ if allowed_machines is not None:
77
+ self.allowed_machines = allowed_machines
78
+ if default_machine is not None:
79
+ self.default_machine = default_machine
67
80
  if disabled is not None:
68
81
  self.disabled = disabled
82
+ if environment_type is not None:
83
+ self.environment_type = environment_type
69
84
  if machine_image_version is not None:
70
85
  self.machine_image_version = machine_image_version
71
86
  if name is not None:
@@ -75,6 +90,48 @@ class Update(object):
75
90
  if setup_script_text is not None:
76
91
  self.setup_script_text = setup_script_text
77
92
 
93
+ @property
94
+ def allowed_machines(self) -> 'list[str]':
95
+ """Gets the allowed_machines of this Update. # noqa: E501
96
+
97
+
98
+ :return: The allowed_machines of this Update. # noqa: E501
99
+ :rtype: list[str]
100
+ """
101
+ return self._allowed_machines
102
+
103
+ @allowed_machines.setter
104
+ def allowed_machines(self, allowed_machines: 'list[str]'):
105
+ """Sets the allowed_machines of this Update.
106
+
107
+
108
+ :param allowed_machines: The allowed_machines of this Update. # noqa: E501
109
+ :type: list[str]
110
+ """
111
+
112
+ self._allowed_machines = allowed_machines
113
+
114
+ @property
115
+ def default_machine(self) -> 'str':
116
+ """Gets the default_machine of this Update. # noqa: E501
117
+
118
+
119
+ :return: The default_machine of this Update. # noqa: E501
120
+ :rtype: str
121
+ """
122
+ return self._default_machine
123
+
124
+ @default_machine.setter
125
+ def default_machine(self, default_machine: 'str'):
126
+ """Sets the default_machine of this Update.
127
+
128
+
129
+ :param default_machine: The default_machine of this Update. # noqa: E501
130
+ :type: str
131
+ """
132
+
133
+ self._default_machine = default_machine
134
+
78
135
  @property
79
136
  def disabled(self) -> 'bool':
80
137
  """Gets the disabled of this Update. # noqa: E501
@@ -96,6 +153,27 @@ class Update(object):
96
153
 
97
154
  self._disabled = disabled
98
155
 
156
+ @property
157
+ def environment_type(self) -> 'V1CloudSpaceEnvironmentType':
158
+ """Gets the environment_type of this Update. # noqa: E501
159
+
160
+
161
+ :return: The environment_type of this Update. # noqa: E501
162
+ :rtype: V1CloudSpaceEnvironmentType
163
+ """
164
+ return self._environment_type
165
+
166
+ @environment_type.setter
167
+ def environment_type(self, environment_type: 'V1CloudSpaceEnvironmentType'):
168
+ """Sets the environment_type of this Update.
169
+
170
+
171
+ :param environment_type: The environment_type of this Update. # noqa: E501
172
+ :type: V1CloudSpaceEnvironmentType
173
+ """
174
+
175
+ self._environment_type = environment_type
176
+
99
177
  @property
100
178
  def machine_image_version(self) -> 'str':
101
179
  """Gets the machine_image_version of this Update. # noqa: E501
@@ -41,29 +41,60 @@ class UploadsUploadIdBody1(object):
41
41
  and the value is json key in definition.
42
42
  """
43
43
  swagger_types = {
44
+ 'allow_multicloud': 'bool',
44
45
  'cluster_id': 'str',
45
46
  'filename': 'str',
46
- 'parts': 'list[str]'
47
+ 'parts': 'list[str]',
48
+ 'uploads': 'list[V1ClusterUpload]'
47
49
  }
48
50
 
49
51
  attribute_map = {
52
+ 'allow_multicloud': 'allowMulticloud',
50
53
  'cluster_id': 'clusterId',
51
54
  'filename': 'filename',
52
- 'parts': 'parts'
55
+ 'parts': 'parts',
56
+ 'uploads': 'uploads'
53
57
  }
54
58
 
55
- def __init__(self, cluster_id: 'str' =None, filename: 'str' =None, parts: 'list[str]' =None): # noqa: E501
59
+ def __init__(self, allow_multicloud: 'bool' =None, cluster_id: 'str' =None, filename: 'str' =None, parts: 'list[str]' =None, uploads: 'list[V1ClusterUpload]' =None): # noqa: E501
56
60
  """UploadsUploadIdBody1 - a model defined in Swagger""" # noqa: E501
61
+ self._allow_multicloud = None
57
62
  self._cluster_id = None
58
63
  self._filename = None
59
64
  self._parts = None
65
+ self._uploads = None
60
66
  self.discriminator = None
67
+ if allow_multicloud is not None:
68
+ self.allow_multicloud = allow_multicloud
61
69
  if cluster_id is not None:
62
70
  self.cluster_id = cluster_id
63
71
  if filename is not None:
64
72
  self.filename = filename
65
73
  if parts is not None:
66
74
  self.parts = parts
75
+ if uploads is not None:
76
+ self.uploads = uploads
77
+
78
+ @property
79
+ def allow_multicloud(self) -> 'bool':
80
+ """Gets the allow_multicloud of this UploadsUploadIdBody1. # noqa: E501
81
+
82
+
83
+ :return: The allow_multicloud of this UploadsUploadIdBody1. # noqa: E501
84
+ :rtype: bool
85
+ """
86
+ return self._allow_multicloud
87
+
88
+ @allow_multicloud.setter
89
+ def allow_multicloud(self, allow_multicloud: 'bool'):
90
+ """Sets the allow_multicloud of this UploadsUploadIdBody1.
91
+
92
+
93
+ :param allow_multicloud: The allow_multicloud of this UploadsUploadIdBody1. # noqa: E501
94
+ :type: bool
95
+ """
96
+
97
+ self._allow_multicloud = allow_multicloud
67
98
 
68
99
  @property
69
100
  def cluster_id(self) -> 'str':
@@ -128,6 +159,27 @@ class UploadsUploadIdBody1(object):
128
159
 
129
160
  self._parts = parts
130
161
 
162
+ @property
163
+ def uploads(self) -> 'list[V1ClusterUpload]':
164
+ """Gets the uploads of this UploadsUploadIdBody1. # noqa: E501
165
+
166
+
167
+ :return: The uploads of this UploadsUploadIdBody1. # noqa: E501
168
+ :rtype: list[V1ClusterUpload]
169
+ """
170
+ return self._uploads
171
+
172
+ @uploads.setter
173
+ def uploads(self, uploads: 'list[V1ClusterUpload]'):
174
+ """Sets the uploads of this UploadsUploadIdBody1.
175
+
176
+
177
+ :param uploads: The uploads of this UploadsUploadIdBody1. # noqa: E501
178
+ :type: list[V1ClusterUpload]
179
+ """
180
+
181
+ self._uploads = uploads
182
+
131
183
  def to_dict(self) -> dict:
132
184
  """Returns the model properties as a dict"""
133
185
  result = {}