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
@@ -47,6 +47,8 @@ class V1AWSDirectV1(object):
47
47
  'cloud_formation_disabled': 'bool',
48
48
  'efs_enabled': 'bool',
49
49
  'external_id': 'str',
50
+ 'inventory_database': 'str',
51
+ 'inventory_table': 'str',
50
52
  'primary_region': 'str',
51
53
  'regional_load_balancers': 'list[V1RegionalLoadBalancer]',
52
54
  'regions': 'list[str]',
@@ -62,6 +64,8 @@ class V1AWSDirectV1(object):
62
64
  'cloud_formation_disabled': 'cloudFormationDisabled',
63
65
  'efs_enabled': 'efsEnabled',
64
66
  'external_id': 'externalId',
67
+ 'inventory_database': 'inventoryDatabase',
68
+ 'inventory_table': 'inventoryTable',
65
69
  'primary_region': 'primaryRegion',
66
70
  'regional_load_balancers': 'regionalLoadBalancers',
67
71
  'regions': 'regions',
@@ -70,7 +74,7 @@ class V1AWSDirectV1(object):
70
74
  'use_launch_templates': 'useLaunchTemplates'
71
75
  }
72
76
 
73
- def __init__(self, ami_owner_id: 'str' =None, bucket_endpoint: 'str' =None, bucket_name: 'str' =None, cloud_formation_disabled: 'bool' =None, efs_enabled: 'bool' =None, external_id: 'str' =None, primary_region: 'str' =None, regional_load_balancers: 'list[V1RegionalLoadBalancer]' =None, regions: 'list[str]' =None, role_arn: 'str' =None, source_cidr_ips: 'list[str]' =None, use_launch_templates: 'bool' =None): # noqa: E501
77
+ def __init__(self, ami_owner_id: 'str' =None, bucket_endpoint: 'str' =None, bucket_name: 'str' =None, cloud_formation_disabled: 'bool' =None, efs_enabled: 'bool' =None, external_id: 'str' =None, inventory_database: 'str' =None, inventory_table: 'str' =None, primary_region: 'str' =None, regional_load_balancers: 'list[V1RegionalLoadBalancer]' =None, regions: 'list[str]' =None, role_arn: 'str' =None, source_cidr_ips: 'list[str]' =None, use_launch_templates: 'bool' =None): # noqa: E501
74
78
  """V1AWSDirectV1 - a model defined in Swagger""" # noqa: E501
75
79
  self._ami_owner_id = None
76
80
  self._bucket_endpoint = None
@@ -78,6 +82,8 @@ class V1AWSDirectV1(object):
78
82
  self._cloud_formation_disabled = None
79
83
  self._efs_enabled = None
80
84
  self._external_id = None
85
+ self._inventory_database = None
86
+ self._inventory_table = None
81
87
  self._primary_region = None
82
88
  self._regional_load_balancers = None
83
89
  self._regions = None
@@ -97,6 +103,10 @@ class V1AWSDirectV1(object):
97
103
  self.efs_enabled = efs_enabled
98
104
  if external_id is not None:
99
105
  self.external_id = external_id
106
+ if inventory_database is not None:
107
+ self.inventory_database = inventory_database
108
+ if inventory_table is not None:
109
+ self.inventory_table = inventory_table
100
110
  if primary_region is not None:
101
111
  self.primary_region = primary_region
102
112
  if regional_load_balancers is not None:
@@ -236,6 +246,48 @@ class V1AWSDirectV1(object):
236
246
 
237
247
  self._external_id = external_id
238
248
 
249
+ @property
250
+ def inventory_database(self) -> 'str':
251
+ """Gets the inventory_database of this V1AWSDirectV1. # noqa: E501
252
+
253
+
254
+ :return: The inventory_database of this V1AWSDirectV1. # noqa: E501
255
+ :rtype: str
256
+ """
257
+ return self._inventory_database
258
+
259
+ @inventory_database.setter
260
+ def inventory_database(self, inventory_database: 'str'):
261
+ """Sets the inventory_database of this V1AWSDirectV1.
262
+
263
+
264
+ :param inventory_database: The inventory_database of this V1AWSDirectV1. # noqa: E501
265
+ :type: str
266
+ """
267
+
268
+ self._inventory_database = inventory_database
269
+
270
+ @property
271
+ def inventory_table(self) -> 'str':
272
+ """Gets the inventory_table of this V1AWSDirectV1. # noqa: E501
273
+
274
+
275
+ :return: The inventory_table of this V1AWSDirectV1. # noqa: E501
276
+ :rtype: str
277
+ """
278
+ return self._inventory_table
279
+
280
+ @inventory_table.setter
281
+ def inventory_table(self, inventory_table: 'str'):
282
+ """Sets the inventory_table of this V1AWSDirectV1.
283
+
284
+
285
+ :param inventory_table: The inventory_table of this V1AWSDirectV1. # noqa: E501
286
+ :type: str
287
+ """
288
+
289
+ self._inventory_table = inventory_table
290
+
239
291
  @property
240
292
  def primary_region(self) -> 'str':
241
293
  """Gets the primary_region of this V1AWSDirectV1. # noqa: E501
@@ -45,6 +45,9 @@ class V1CloudProvider(object):
45
45
  SLURM = "SLURM"
46
46
  DGX = "DGX"
47
47
  VOLTAGE_PARK = "VOLTAGE_PARK"
48
+ NEBIUS = "NEBIUS"
49
+ CLOUDFLARE = "CLOUDFLARE"
50
+ LIGHTNING = "LIGHTNING"
48
51
  """
49
52
  Attributes:
50
53
  swagger_types (dict): The key is attribute name
@@ -41,6 +41,7 @@ class V1CloudSpace(object):
41
41
  and the value is json key in definition.
42
42
  """
43
43
  swagger_types = {
44
+ 'auto_switch_machine': 'bool',
44
45
  'can_download_source_code': 'bool',
45
46
  'cluster_id': 'str',
46
47
  'code_config': 'V1CloudSpaceInstanceConfig',
@@ -52,6 +53,7 @@ class V1CloudSpace(object):
52
53
  'display_name': 'str',
53
54
  'engagement_counts': 'dict(str, str)',
54
55
  'env': 'list[V1EnvVar]',
56
+ 'environment_config': 'V1CloudSpaceEnvironmentConfig',
55
57
  'environment_template_id': 'str',
56
58
  'featured': 'bool',
57
59
  'hide_files': 'bool',
@@ -80,6 +82,7 @@ class V1CloudSpace(object):
80
82
  'published_at': 'datetime',
81
83
  'published_to_org_at': 'datetime',
82
84
  'state': 'V1CloudSpaceState',
85
+ 'switch_to_default_machine_on_idle': 'bool',
83
86
  'sync_duration': 'str',
84
87
  'sync_percentage': 'str',
85
88
  'tags': 'list[V1ResourceTag]',
@@ -94,6 +97,7 @@ class V1CloudSpace(object):
94
97
  }
95
98
 
96
99
  attribute_map = {
100
+ 'auto_switch_machine': 'autoSwitchMachine',
97
101
  'can_download_source_code': 'canDownloadSourceCode',
98
102
  'cluster_id': 'clusterId',
99
103
  'code_config': 'codeConfig',
@@ -105,6 +109,7 @@ class V1CloudSpace(object):
105
109
  'display_name': 'displayName',
106
110
  'engagement_counts': 'engagementCounts',
107
111
  'env': 'env',
112
+ 'environment_config': 'environmentConfig',
108
113
  'environment_template_id': 'environmentTemplateId',
109
114
  'featured': 'featured',
110
115
  'hide_files': 'hideFiles',
@@ -133,6 +138,7 @@ class V1CloudSpace(object):
133
138
  'published_at': 'publishedAt',
134
139
  'published_to_org_at': 'publishedToOrgAt',
135
140
  'state': 'state',
141
+ 'switch_to_default_machine_on_idle': 'switchToDefaultMachineOnIdle',
136
142
  'sync_duration': 'syncDuration',
137
143
  'sync_percentage': 'syncPercentage',
138
144
  'tags': 'tags',
@@ -146,8 +152,9 @@ class V1CloudSpace(object):
146
152
  'web_path': 'webPath'
147
153
  }
148
154
 
149
- def __init__(self, can_download_source_code: 'bool' =None, cluster_id: 'str' =None, code_config: 'V1CloudSpaceInstanceConfig' =None, code_status: 'V1GetCloudSpaceInstanceStatusResponse' =None, code_url: 'str' =None, created_at: 'datetime' =None, data_connection_mounts: 'list[V1DataConnectionMount]' =None, description: 'str' =None, display_name: 'str' =None, engagement_counts: 'dict(str, str)' =None, env: 'list[V1EnvVar]' =None, environment_template_id: 'str' =None, featured: 'bool' =None, hide_files: 'bool' =None, id: 'str' =None, image_status: 'V1ImageState' =None, is_cloudspace_private: 'bool' =None, is_code_private: 'bool' =None, is_favorite: 'bool' =None, is_published: 'bool' =None, license: 'str' =None, license_url: 'str' =None, lock_out: 'bool' =None, machine_image_version: 'str' =None, max_run_duration: 'str' =None, message: 'str' =None, multi_user_edit: 'bool' =None, name: 'str' =None, number_of_files: 'str' =None, operating_cost: 'str' =None, paper_authors: 'str' =None, paper_org: 'str' =None, paper_org_avatar_url: 'str' =None, paper_url: 'str' =None, project_id: 'str' =None, publications: 'list[V1CloudSpaceVersionPublication]' =None, published_at: 'datetime' =None, published_to_org_at: 'datetime' =None, state: 'V1CloudSpaceState' =None, sync_duration: 'str' =None, sync_percentage: 'str' =None, tags: 'list[V1ResourceTag]' =None, thumbnail_file_type: 'str' =None, thumbnail_updated_at: 'datetime' =None, thumbnail_url: 'str' =None, total_size_bytes: 'str' =None, updated_at: 'datetime' =None, user_id: 'str' =None, user_metadata: 'str' =None, web_path: 'str' =None): # noqa: E501
155
+ def __init__(self, auto_switch_machine: 'bool' =None, can_download_source_code: 'bool' =None, cluster_id: 'str' =None, code_config: 'V1CloudSpaceInstanceConfig' =None, code_status: 'V1GetCloudSpaceInstanceStatusResponse' =None, code_url: 'str' =None, created_at: 'datetime' =None, data_connection_mounts: 'list[V1DataConnectionMount]' =None, description: 'str' =None, display_name: 'str' =None, engagement_counts: 'dict(str, str)' =None, env: 'list[V1EnvVar]' =None, environment_config: 'V1CloudSpaceEnvironmentConfig' =None, environment_template_id: 'str' =None, featured: 'bool' =None, hide_files: 'bool' =None, id: 'str' =None, image_status: 'V1ImageState' =None, is_cloudspace_private: 'bool' =None, is_code_private: 'bool' =None, is_favorite: 'bool' =None, is_published: 'bool' =None, license: 'str' =None, license_url: 'str' =None, lock_out: 'bool' =None, machine_image_version: 'str' =None, max_run_duration: 'str' =None, message: 'str' =None, multi_user_edit: 'bool' =None, name: 'str' =None, number_of_files: 'str' =None, operating_cost: 'str' =None, paper_authors: 'str' =None, paper_org: 'str' =None, paper_org_avatar_url: 'str' =None, paper_url: 'str' =None, project_id: 'str' =None, publications: 'list[V1CloudSpaceVersionPublication]' =None, published_at: 'datetime' =None, published_to_org_at: 'datetime' =None, state: 'V1CloudSpaceState' =None, switch_to_default_machine_on_idle: 'bool' =None, sync_duration: 'str' =None, sync_percentage: 'str' =None, tags: 'list[V1ResourceTag]' =None, thumbnail_file_type: 'str' =None, thumbnail_updated_at: 'datetime' =None, thumbnail_url: 'str' =None, total_size_bytes: 'str' =None, updated_at: 'datetime' =None, user_id: 'str' =None, user_metadata: 'str' =None, web_path: 'str' =None): # noqa: E501
150
156
  """V1CloudSpace - a model defined in Swagger""" # noqa: E501
157
+ self._auto_switch_machine = None
151
158
  self._can_download_source_code = None
152
159
  self._cluster_id = None
153
160
  self._code_config = None
@@ -159,6 +166,7 @@ class V1CloudSpace(object):
159
166
  self._display_name = None
160
167
  self._engagement_counts = None
161
168
  self._env = None
169
+ self._environment_config = None
162
170
  self._environment_template_id = None
163
171
  self._featured = None
164
172
  self._hide_files = None
@@ -187,6 +195,7 @@ class V1CloudSpace(object):
187
195
  self._published_at = None
188
196
  self._published_to_org_at = None
189
197
  self._state = None
198
+ self._switch_to_default_machine_on_idle = None
190
199
  self._sync_duration = None
191
200
  self._sync_percentage = None
192
201
  self._tags = None
@@ -199,6 +208,8 @@ class V1CloudSpace(object):
199
208
  self._user_metadata = None
200
209
  self._web_path = None
201
210
  self.discriminator = None
211
+ if auto_switch_machine is not None:
212
+ self.auto_switch_machine = auto_switch_machine
202
213
  if can_download_source_code is not None:
203
214
  self.can_download_source_code = can_download_source_code
204
215
  if cluster_id is not None:
@@ -221,6 +232,8 @@ class V1CloudSpace(object):
221
232
  self.engagement_counts = engagement_counts
222
233
  if env is not None:
223
234
  self.env = env
235
+ if environment_config is not None:
236
+ self.environment_config = environment_config
224
237
  if environment_template_id is not None:
225
238
  self.environment_template_id = environment_template_id
226
239
  if featured is not None:
@@ -277,6 +290,8 @@ class V1CloudSpace(object):
277
290
  self.published_to_org_at = published_to_org_at
278
291
  if state is not None:
279
292
  self.state = state
293
+ if switch_to_default_machine_on_idle is not None:
294
+ self.switch_to_default_machine_on_idle = switch_to_default_machine_on_idle
280
295
  if sync_duration is not None:
281
296
  self.sync_duration = sync_duration
282
297
  if sync_percentage is not None:
@@ -300,6 +315,27 @@ class V1CloudSpace(object):
300
315
  if web_path is not None:
301
316
  self.web_path = web_path
302
317
 
318
+ @property
319
+ def auto_switch_machine(self) -> 'bool':
320
+ """Gets the auto_switch_machine of this V1CloudSpace. # noqa: E501
321
+
322
+
323
+ :return: The auto_switch_machine of this V1CloudSpace. # noqa: E501
324
+ :rtype: bool
325
+ """
326
+ return self._auto_switch_machine
327
+
328
+ @auto_switch_machine.setter
329
+ def auto_switch_machine(self, auto_switch_machine: 'bool'):
330
+ """Sets the auto_switch_machine of this V1CloudSpace.
331
+
332
+
333
+ :param auto_switch_machine: The auto_switch_machine of this V1CloudSpace. # noqa: E501
334
+ :type: bool
335
+ """
336
+
337
+ self._auto_switch_machine = auto_switch_machine
338
+
303
339
  @property
304
340
  def can_download_source_code(self) -> 'bool':
305
341
  """Gets the can_download_source_code of this V1CloudSpace. # noqa: E501
@@ -531,6 +567,27 @@ class V1CloudSpace(object):
531
567
 
532
568
  self._env = env
533
569
 
570
+ @property
571
+ def environment_config(self) -> 'V1CloudSpaceEnvironmentConfig':
572
+ """Gets the environment_config of this V1CloudSpace. # noqa: E501
573
+
574
+
575
+ :return: The environment_config of this V1CloudSpace. # noqa: E501
576
+ :rtype: V1CloudSpaceEnvironmentConfig
577
+ """
578
+ return self._environment_config
579
+
580
+ @environment_config.setter
581
+ def environment_config(self, environment_config: 'V1CloudSpaceEnvironmentConfig'):
582
+ """Sets the environment_config of this V1CloudSpace.
583
+
584
+
585
+ :param environment_config: The environment_config of this V1CloudSpace. # noqa: E501
586
+ :type: V1CloudSpaceEnvironmentConfig
587
+ """
588
+
589
+ self._environment_config = environment_config
590
+
534
591
  @property
535
592
  def environment_template_id(self) -> 'str':
536
593
  """Gets the environment_template_id of this V1CloudSpace. # noqa: E501
@@ -1119,6 +1176,27 @@ class V1CloudSpace(object):
1119
1176
 
1120
1177
  self._state = state
1121
1178
 
1179
+ @property
1180
+ def switch_to_default_machine_on_idle(self) -> 'bool':
1181
+ """Gets the switch_to_default_machine_on_idle of this V1CloudSpace. # noqa: E501
1182
+
1183
+
1184
+ :return: The switch_to_default_machine_on_idle of this V1CloudSpace. # noqa: E501
1185
+ :rtype: bool
1186
+ """
1187
+ return self._switch_to_default_machine_on_idle
1188
+
1189
+ @switch_to_default_machine_on_idle.setter
1190
+ def switch_to_default_machine_on_idle(self, switch_to_default_machine_on_idle: 'bool'):
1191
+ """Sets the switch_to_default_machine_on_idle of this V1CloudSpace.
1192
+
1193
+
1194
+ :param switch_to_default_machine_on_idle: The switch_to_default_machine_on_idle of this V1CloudSpace. # noqa: E501
1195
+ :type: bool
1196
+ """
1197
+
1198
+ self._switch_to_default_machine_on_idle = switch_to_default_machine_on_idle
1199
+
1122
1200
  @property
1123
1201
  def sync_duration(self) -> 'str':
1124
1202
  """Gets the sync_duration of this V1CloudSpace. # noqa: E501
@@ -0,0 +1,123 @@
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 V1CloudSpaceEnvironmentConfig(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
+ 'environment_type': 'V1CloudSpaceEnvironmentType'
45
+ }
46
+
47
+ attribute_map = {
48
+ 'environment_type': 'environmentType'
49
+ }
50
+
51
+ def __init__(self, environment_type: 'V1CloudSpaceEnvironmentType' =None): # noqa: E501
52
+ """V1CloudSpaceEnvironmentConfig - a model defined in Swagger""" # noqa: E501
53
+ self._environment_type = None
54
+ self.discriminator = None
55
+ if environment_type is not None:
56
+ self.environment_type = environment_type
57
+
58
+ @property
59
+ def environment_type(self) -> 'V1CloudSpaceEnvironmentType':
60
+ """Gets the environment_type of this V1CloudSpaceEnvironmentConfig. # noqa: E501
61
+
62
+
63
+ :return: The environment_type of this V1CloudSpaceEnvironmentConfig. # noqa: E501
64
+ :rtype: V1CloudSpaceEnvironmentType
65
+ """
66
+ return self._environment_type
67
+
68
+ @environment_type.setter
69
+ def environment_type(self, environment_type: 'V1CloudSpaceEnvironmentType'):
70
+ """Sets the environment_type of this V1CloudSpaceEnvironmentConfig.
71
+
72
+
73
+ :param environment_type: The environment_type of this V1CloudSpaceEnvironmentConfig. # noqa: E501
74
+ :type: V1CloudSpaceEnvironmentType
75
+ """
76
+
77
+ self._environment_type = environment_type
78
+
79
+ def to_dict(self) -> dict:
80
+ """Returns the model properties as a dict"""
81
+ result = {}
82
+
83
+ for attr, _ in six.iteritems(self.swagger_types):
84
+ value = getattr(self, attr)
85
+ if isinstance(value, list):
86
+ result[attr] = list(map(
87
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
88
+ value
89
+ ))
90
+ elif hasattr(value, "to_dict"):
91
+ result[attr] = value.to_dict()
92
+ elif isinstance(value, dict):
93
+ result[attr] = dict(map(
94
+ lambda item: (item[0], item[1].to_dict())
95
+ if hasattr(item[1], "to_dict") else item,
96
+ value.items()
97
+ ))
98
+ else:
99
+ result[attr] = value
100
+ if issubclass(V1CloudSpaceEnvironmentConfig, dict):
101
+ for key, value in self.items():
102
+ result[key] = value
103
+
104
+ return result
105
+
106
+ def to_str(self) -> str:
107
+ """Returns the string representation of the model"""
108
+ return pprint.pformat(self.to_dict())
109
+
110
+ def __repr__(self) -> str:
111
+ """For `print` and `pprint`"""
112
+ return self.to_str()
113
+
114
+ def __eq__(self, other: 'V1CloudSpaceEnvironmentConfig') -> bool:
115
+ """Returns true if both objects are equal"""
116
+ if not isinstance(other, V1CloudSpaceEnvironmentConfig):
117
+ return False
118
+
119
+ return self.__dict__ == other.__dict__
120
+
121
+ def __ne__(self, other: 'V1CloudSpaceEnvironmentConfig') -> bool:
122
+ """Returns true if both objects are not equal"""
123
+ return not self == other
@@ -41,25 +41,103 @@ class V1CloudSpaceEnvironmentTemplateConfig(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',
46
+ 'environment_type': 'V1CloudSpaceEnvironmentType',
44
47
  'machine_image_version': 'str',
45
48
  'setup_script_text': 'str'
46
49
  }
47
50
 
48
51
  attribute_map = {
52
+ 'allowed_machines': 'allowedMachines',
53
+ 'default_machine': 'defaultMachine',
54
+ 'environment_type': 'environmentType',
49
55
  'machine_image_version': 'machineImageVersion',
50
56
  'setup_script_text': 'setupScriptText'
51
57
  }
52
58
 
53
- def __init__(self, machine_image_version: 'str' =None, setup_script_text: 'str' =None): # noqa: E501
59
+ def __init__(self, allowed_machines: 'list[str]' =None, default_machine: 'str' =None, environment_type: 'V1CloudSpaceEnvironmentType' =None, machine_image_version: 'str' =None, setup_script_text: 'str' =None): # noqa: E501
54
60
  """V1CloudSpaceEnvironmentTemplateConfig - a model defined in Swagger""" # noqa: E501
61
+ self._allowed_machines = None
62
+ self._default_machine = None
63
+ self._environment_type = None
55
64
  self._machine_image_version = None
56
65
  self._setup_script_text = None
57
66
  self.discriminator = None
67
+ if allowed_machines is not None:
68
+ self.allowed_machines = allowed_machines
69
+ if default_machine is not None:
70
+ self.default_machine = default_machine
71
+ if environment_type is not None:
72
+ self.environment_type = environment_type
58
73
  if machine_image_version is not None:
59
74
  self.machine_image_version = machine_image_version
60
75
  if setup_script_text is not None:
61
76
  self.setup_script_text = setup_script_text
62
77
 
78
+ @property
79
+ def allowed_machines(self) -> 'list[str]':
80
+ """Gets the allowed_machines of this V1CloudSpaceEnvironmentTemplateConfig. # noqa: E501
81
+
82
+
83
+ :return: The allowed_machines of this V1CloudSpaceEnvironmentTemplateConfig. # noqa: E501
84
+ :rtype: list[str]
85
+ """
86
+ return self._allowed_machines
87
+
88
+ @allowed_machines.setter
89
+ def allowed_machines(self, allowed_machines: 'list[str]'):
90
+ """Sets the allowed_machines of this V1CloudSpaceEnvironmentTemplateConfig.
91
+
92
+
93
+ :param allowed_machines: The allowed_machines of this V1CloudSpaceEnvironmentTemplateConfig. # noqa: E501
94
+ :type: list[str]
95
+ """
96
+
97
+ self._allowed_machines = allowed_machines
98
+
99
+ @property
100
+ def default_machine(self) -> 'str':
101
+ """Gets the default_machine of this V1CloudSpaceEnvironmentTemplateConfig. # noqa: E501
102
+
103
+
104
+ :return: The default_machine of this V1CloudSpaceEnvironmentTemplateConfig. # noqa: E501
105
+ :rtype: str
106
+ """
107
+ return self._default_machine
108
+
109
+ @default_machine.setter
110
+ def default_machine(self, default_machine: 'str'):
111
+ """Sets the default_machine of this V1CloudSpaceEnvironmentTemplateConfig.
112
+
113
+
114
+ :param default_machine: The default_machine of this V1CloudSpaceEnvironmentTemplateConfig. # noqa: E501
115
+ :type: str
116
+ """
117
+
118
+ self._default_machine = default_machine
119
+
120
+ @property
121
+ def environment_type(self) -> 'V1CloudSpaceEnvironmentType':
122
+ """Gets the environment_type of this V1CloudSpaceEnvironmentTemplateConfig. # noqa: E501
123
+
124
+
125
+ :return: The environment_type of this V1CloudSpaceEnvironmentTemplateConfig. # noqa: E501
126
+ :rtype: V1CloudSpaceEnvironmentType
127
+ """
128
+ return self._environment_type
129
+
130
+ @environment_type.setter
131
+ def environment_type(self, environment_type: 'V1CloudSpaceEnvironmentType'):
132
+ """Sets the environment_type of this V1CloudSpaceEnvironmentTemplateConfig.
133
+
134
+
135
+ :param environment_type: The environment_type of this V1CloudSpaceEnvironmentTemplateConfig. # noqa: E501
136
+ :type: V1CloudSpaceEnvironmentType
137
+ """
138
+
139
+ self._environment_type = environment_type
140
+
63
141
  @property
64
142
  def machine_image_version(self) -> 'str':
65
143
  """Gets the machine_image_version of this V1CloudSpaceEnvironmentTemplateConfig. # noqa: E501
@@ -0,0 +1,104 @@
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 V1CloudSpaceEnvironmentType(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
+ """
38
+ allowed enum values
39
+ """
40
+ UNSPECIFIED = "CLOUD_SPACE_ENVIRONMENT_TYPE_UNSPECIFIED"
41
+ DEFAULT = "CLOUD_SPACE_ENVIRONMENT_TYPE_DEFAULT"
42
+ BLANK = "CLOUD_SPACE_ENVIRONMENT_TYPE_BLANK"
43
+ """
44
+ Attributes:
45
+ swagger_types (dict): The key is attribute name
46
+ and the value is attribute type.
47
+ attribute_map (dict): The key is attribute name
48
+ and the value is json key in definition.
49
+ """
50
+ swagger_types = {
51
+ }
52
+
53
+ attribute_map = {
54
+ }
55
+
56
+ def __init__(self): # noqa: E501
57
+ """V1CloudSpaceEnvironmentType - a model defined in Swagger""" # noqa: E501
58
+ self.discriminator = None
59
+
60
+ def to_dict(self) -> dict:
61
+ """Returns the model properties as a dict"""
62
+ result = {}
63
+
64
+ for attr, _ in six.iteritems(self.swagger_types):
65
+ value = getattr(self, attr)
66
+ if isinstance(value, list):
67
+ result[attr] = list(map(
68
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
69
+ value
70
+ ))
71
+ elif hasattr(value, "to_dict"):
72
+ result[attr] = value.to_dict()
73
+ elif isinstance(value, dict):
74
+ result[attr] = dict(map(
75
+ lambda item: (item[0], item[1].to_dict())
76
+ if hasattr(item[1], "to_dict") else item,
77
+ value.items()
78
+ ))
79
+ else:
80
+ result[attr] = value
81
+ if issubclass(V1CloudSpaceEnvironmentType, dict):
82
+ for key, value in self.items():
83
+ result[key] = value
84
+
85
+ return result
86
+
87
+ def to_str(self) -> str:
88
+ """Returns the string representation of the model"""
89
+ return pprint.pformat(self.to_dict())
90
+
91
+ def __repr__(self) -> str:
92
+ """For `print` and `pprint`"""
93
+ return self.to_str()
94
+
95
+ def __eq__(self, other: 'V1CloudSpaceEnvironmentType') -> bool:
96
+ """Returns true if both objects are equal"""
97
+ if not isinstance(other, V1CloudSpaceEnvironmentType):
98
+ return False
99
+
100
+ return self.__dict__ == other.__dict__
101
+
102
+ def __ne__(self, other: 'V1CloudSpaceEnvironmentType') -> bool:
103
+ """Returns true if both objects are not equal"""
104
+ return not self == other