lightning-sdk 0.2.22__py3-none-any.whl → 0.2.24rc0__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 (101) hide show
  1. lightning_sdk/__init__.py +1 -1
  2. lightning_sdk/api/base_studio_api.py +9 -2
  3. lightning_sdk/api/deployment_api.py +9 -9
  4. lightning_sdk/api/license_api.py +2 -2
  5. lightning_sdk/api/llm_api.py +7 -11
  6. lightning_sdk/api/pipeline_api.py +31 -10
  7. lightning_sdk/api/studio_api.py +6 -0
  8. lightning_sdk/base_studio.py +22 -6
  9. lightning_sdk/cli/entrypoint.py +15 -13
  10. lightning_sdk/cli/start.py +5 -2
  11. lightning_sdk/deployment/deployment.py +17 -7
  12. lightning_sdk/lightning_cloud/openapi/__init__.py +20 -0
  13. lightning_sdk/lightning_cloud/openapi/api/__init__.py +1 -0
  14. lightning_sdk/lightning_cloud/openapi/api/assistants_service_api.py +114 -1
  15. lightning_sdk/lightning_cloud/openapi/api/cloud_space_service_api.py +206 -0
  16. lightning_sdk/lightning_cloud/openapi/api/cloudy_service_api.py +129 -0
  17. lightning_sdk/lightning_cloud/openapi/api/cluster_service_api.py +97 -0
  18. lightning_sdk/lightning_cloud/openapi/api/organizations_service_api.py +105 -0
  19. lightning_sdk/lightning_cloud/openapi/api/pipelines_service_api.py +118 -1
  20. lightning_sdk/lightning_cloud/openapi/api/user_service_api.py +105 -0
  21. lightning_sdk/lightning_cloud/openapi/configuration.py +1 -1
  22. lightning_sdk/lightning_cloud/openapi/models/__init__.py +19 -0
  23. lightning_sdk/lightning_cloud/openapi/models/agents_id_body.py +27 -1
  24. lightning_sdk/lightning_cloud/openapi/models/assistant_id_conversations_body.py +81 -3
  25. lightning_sdk/lightning_cloud/openapi/models/cloudspace_id_visibility_body.py +123 -0
  26. lightning_sdk/lightning_cloud/openapi/models/create_deployment_request_defines_a_spec_for_the_job_that_allows_for_autoscaling_jobs.py +27 -1
  27. lightning_sdk/lightning_cloud/openapi/models/credits_autoreplenish_body.py +175 -0
  28. lightning_sdk/lightning_cloud/openapi/models/credits_autoreplenish_body1.py +175 -0
  29. lightning_sdk/lightning_cloud/openapi/models/externalv1_user_status.py +79 -1
  30. lightning_sdk/lightning_cloud/openapi/models/metricsstream_create_body.py +27 -1
  31. lightning_sdk/lightning_cloud/openapi/models/orgs_id_body.py +27 -1
  32. lightning_sdk/lightning_cloud/openapi/models/pipelines_id_body.py +27 -1
  33. lightning_sdk/lightning_cloud/openapi/models/pipelines_id_body1.py +123 -0
  34. lightning_sdk/lightning_cloud/openapi/models/project_id_agents_body.py +27 -1
  35. lightning_sdk/lightning_cloud/openapi/models/project_id_cloudspaces_body.py +53 -1
  36. lightning_sdk/lightning_cloud/openapi/models/update.py +29 -3
  37. lightning_sdk/lightning_cloud/openapi/models/v1_assistant.py +27 -1
  38. lightning_sdk/lightning_cloud/openapi/models/v1_check_cluster_name_availability_request.py +123 -0
  39. lightning_sdk/lightning_cloud/openapi/models/v1_check_cluster_name_availability_response.py +123 -0
  40. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_provider.py +2 -0
  41. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space.py +79 -1
  42. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_config.py +29 -3
  43. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_template_config.py +29 -3
  44. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_type.py +1 -0
  45. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_session.py +29 -3
  46. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_specialized_view.py +104 -0
  47. lightning_sdk/lightning_cloud/openapi/models/v1_cloudy_expert.py +279 -0
  48. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_accelerator.py +79 -1
  49. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_capacity_reservation.py +27 -1
  50. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_security_options.py +27 -1
  51. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_spec.py +105 -1
  52. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_status.py +27 -1
  53. lightning_sdk/lightning_cloud/openapi/models/v1_conversation_response_chunk.py +29 -3
  54. lightning_sdk/lightning_cloud/openapi/models/v1_create_cloud_space_environment_template_request.py +29 -3
  55. lightning_sdk/lightning_cloud/openapi/models/v1_create_deployment_request.py +27 -1
  56. lightning_sdk/lightning_cloud/openapi/models/v1_create_organization_request.py +79 -1
  57. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_status.py +47 -21
  58. lightning_sdk/lightning_cloud/openapi/models/v1_external_cluster.py +253 -0
  59. lightning_sdk/lightning_cloud/openapi/models/v1_external_cluster_spec.py +853 -0
  60. lightning_sdk/lightning_cloud/openapi/models/v1_get_job_stats_response.py +53 -1
  61. lightning_sdk/lightning_cloud/openapi/models/v1_get_user_response.py +27 -1
  62. lightning_sdk/lightning_cloud/openapi/models/v1_instance_overprovisioning_spec.py +29 -27
  63. lightning_sdk/lightning_cloud/openapi/models/v1_kubernetes_direct_v1.py +123 -0
  64. lightning_sdk/lightning_cloud/openapi/models/v1_kubernetes_direct_v1_status.py +149 -0
  65. lightning_sdk/lightning_cloud/openapi/models/v1_lightning_run.py +53 -1
  66. lightning_sdk/lightning_cloud/openapi/models/v1_list_cloudy_experts_response.py +123 -0
  67. lightning_sdk/lightning_cloud/openapi/models/v1_list_clusters_response.py +6 -6
  68. lightning_sdk/lightning_cloud/openapi/models/v1_list_project_clusters_response.py +6 -6
  69. lightning_sdk/lightning_cloud/openapi/models/v1_lite_published_cloud_space_response.py +513 -0
  70. lightning_sdk/lightning_cloud/openapi/models/v1_login_request.py +27 -1
  71. lightning_sdk/lightning_cloud/openapi/models/v1_magic_link_login_request.py +29 -3
  72. lightning_sdk/lightning_cloud/openapi/models/v1_magic_link_login_response.py +27 -1
  73. lightning_sdk/lightning_cloud/openapi/models/v1_metrics_stream.py +27 -1
  74. lightning_sdk/lightning_cloud/openapi/models/v1_organization.py +27 -1
  75. lightning_sdk/lightning_cloud/openapi/models/v1_pipeline.py +27 -1
  76. lightning_sdk/lightning_cloud/openapi/models/v1_shared_filesystem.py +131 -1
  77. lightning_sdk/lightning_cloud/openapi/models/v1_token_usage.py +175 -0
  78. lightning_sdk/lightning_cloud/openapi/models/v1_update_cloud_space_visibility_response.py +97 -0
  79. lightning_sdk/lightning_cloud/openapi/models/v1_update_organization_credits_auto_replenish_response.py +97 -0
  80. lightning_sdk/lightning_cloud/openapi/models/v1_update_user_credits_auto_replenish_response.py +97 -0
  81. lightning_sdk/lightning_cloud/openapi/models/v1_update_user_request.py +27 -1
  82. lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +234 -104
  83. lightning_sdk/lightning_cloud/openapi/models/v1_volume.py +78 -104
  84. lightning_sdk/lightning_cloud/openapi/models/v1_volume_state.py +104 -0
  85. lightning_sdk/llm/llm.py +113 -115
  86. lightning_sdk/llm/public_assistants.json +8 -0
  87. lightning_sdk/pipeline/__init__.py +11 -2
  88. lightning_sdk/pipeline/pipeline.py +54 -14
  89. lightning_sdk/pipeline/printer.py +36 -16
  90. lightning_sdk/pipeline/schedule.py +2 -1
  91. lightning_sdk/pipeline/{types.py → steps.py} +77 -56
  92. lightning_sdk/pipeline/utils.py +65 -3
  93. lightning_sdk/sandbox.py +157 -0
  94. lightning_sdk/services/license.py +12 -6
  95. lightning_sdk/studio.py +10 -1
  96. {lightning_sdk-0.2.22.dist-info → lightning_sdk-0.2.24rc0.dist-info}/METADATA +1 -1
  97. {lightning_sdk-0.2.22.dist-info → lightning_sdk-0.2.24rc0.dist-info}/RECORD +101 -79
  98. {lightning_sdk-0.2.22.dist-info → lightning_sdk-0.2.24rc0.dist-info}/LICENSE +0 -0
  99. {lightning_sdk-0.2.22.dist-info → lightning_sdk-0.2.24rc0.dist-info}/WHEEL +0 -0
  100. {lightning_sdk-0.2.22.dist-info → lightning_sdk-0.2.24rc0.dist-info}/entry_points.txt +0 -0
  101. {lightning_sdk-0.2.22.dist-info → lightning_sdk-0.2.24rc0.dist-info}/top_level.txt +0 -0
@@ -51,6 +51,7 @@ class V1CloudSpace(object):
51
51
  'created_at': 'datetime',
52
52
  'data_connection_mounts': 'list[V1DataConnectionMount]',
53
53
  'description': 'str',
54
+ 'disable_secrets': 'bool',
54
55
  'display_name': 'str',
55
56
  'engagement_counts': 'dict(str, str)',
56
57
  'env': 'list[V1EnvVar]',
@@ -83,6 +84,7 @@ class V1CloudSpace(object):
83
84
  'publications': 'list[V1CloudSpaceVersionPublication]',
84
85
  'published_at': 'datetime',
85
86
  'published_to_org_at': 'datetime',
87
+ 'sandbox': 'bool',
86
88
  'state': 'V1CloudSpaceState',
87
89
  'switch_to_default_machine_on_idle': 'bool',
88
90
  'sync_duration': 'str',
@@ -95,6 +97,7 @@ class V1CloudSpace(object):
95
97
  'updated_at': 'datetime',
96
98
  'user_id': 'str',
97
99
  'user_metadata': 'str',
100
+ 'visibility': 'V1ResourceVisibility',
98
101
  'web_path': 'str'
99
102
  }
100
103
 
@@ -109,6 +112,7 @@ class V1CloudSpace(object):
109
112
  'created_at': 'createdAt',
110
113
  'data_connection_mounts': 'dataConnectionMounts',
111
114
  'description': 'description',
115
+ 'disable_secrets': 'disableSecrets',
112
116
  'display_name': 'displayName',
113
117
  'engagement_counts': 'engagementCounts',
114
118
  'env': 'env',
@@ -141,6 +145,7 @@ class V1CloudSpace(object):
141
145
  'publications': 'publications',
142
146
  'published_at': 'publishedAt',
143
147
  'published_to_org_at': 'publishedToOrgAt',
148
+ 'sandbox': 'sandbox',
144
149
  'state': 'state',
145
150
  'switch_to_default_machine_on_idle': 'switchToDefaultMachineOnIdle',
146
151
  'sync_duration': 'syncDuration',
@@ -153,10 +158,11 @@ class V1CloudSpace(object):
153
158
  'updated_at': 'updatedAt',
154
159
  'user_id': 'userId',
155
160
  'user_metadata': 'userMetadata',
161
+ 'visibility': 'visibility',
156
162
  'web_path': 'webPath'
157
163
  }
158
164
 
159
- def __init__(self, auto_switch_machine: 'bool' =None, cache_data_connection_id: 'str' =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, persistent_disk_id: '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
165
+ def __init__(self, auto_switch_machine: 'bool' =None, cache_data_connection_id: 'str' =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, disable_secrets: 'bool' =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, persistent_disk_id: 'str' =None, project_id: 'str' =None, publications: 'list[V1CloudSpaceVersionPublication]' =None, published_at: 'datetime' =None, published_to_org_at: 'datetime' =None, sandbox: 'bool' =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, visibility: 'V1ResourceVisibility' =None, web_path: 'str' =None): # noqa: E501
160
166
  """V1CloudSpace - a model defined in Swagger""" # noqa: E501
161
167
  self._auto_switch_machine = None
162
168
  self._cache_data_connection_id = None
@@ -168,6 +174,7 @@ class V1CloudSpace(object):
168
174
  self._created_at = None
169
175
  self._data_connection_mounts = None
170
176
  self._description = None
177
+ self._disable_secrets = None
171
178
  self._display_name = None
172
179
  self._engagement_counts = None
173
180
  self._env = None
@@ -200,6 +207,7 @@ class V1CloudSpace(object):
200
207
  self._publications = None
201
208
  self._published_at = None
202
209
  self._published_to_org_at = None
210
+ self._sandbox = None
203
211
  self._state = None
204
212
  self._switch_to_default_machine_on_idle = None
205
213
  self._sync_duration = None
@@ -212,6 +220,7 @@ class V1CloudSpace(object):
212
220
  self._updated_at = None
213
221
  self._user_id = None
214
222
  self._user_metadata = None
223
+ self._visibility = None
215
224
  self._web_path = None
216
225
  self.discriminator = None
217
226
  if auto_switch_machine is not None:
@@ -234,6 +243,8 @@ class V1CloudSpace(object):
234
243
  self.data_connection_mounts = data_connection_mounts
235
244
  if description is not None:
236
245
  self.description = description
246
+ if disable_secrets is not None:
247
+ self.disable_secrets = disable_secrets
237
248
  if display_name is not None:
238
249
  self.display_name = display_name
239
250
  if engagement_counts is not None:
@@ -298,6 +309,8 @@ class V1CloudSpace(object):
298
309
  self.published_at = published_at
299
310
  if published_to_org_at is not None:
300
311
  self.published_to_org_at = published_to_org_at
312
+ if sandbox is not None:
313
+ self.sandbox = sandbox
301
314
  if state is not None:
302
315
  self.state = state
303
316
  if switch_to_default_machine_on_idle is not None:
@@ -322,6 +335,8 @@ class V1CloudSpace(object):
322
335
  self.user_id = user_id
323
336
  if user_metadata is not None:
324
337
  self.user_metadata = user_metadata
338
+ if visibility is not None:
339
+ self.visibility = visibility
325
340
  if web_path is not None:
326
341
  self.web_path = web_path
327
342
 
@@ -535,6 +550,27 @@ class V1CloudSpace(object):
535
550
 
536
551
  self._description = description
537
552
 
553
+ @property
554
+ def disable_secrets(self) -> 'bool':
555
+ """Gets the disable_secrets of this V1CloudSpace. # noqa: E501
556
+
557
+
558
+ :return: The disable_secrets of this V1CloudSpace. # noqa: E501
559
+ :rtype: bool
560
+ """
561
+ return self._disable_secrets
562
+
563
+ @disable_secrets.setter
564
+ def disable_secrets(self, disable_secrets: 'bool'):
565
+ """Sets the disable_secrets of this V1CloudSpace.
566
+
567
+
568
+ :param disable_secrets: The disable_secrets of this V1CloudSpace. # noqa: E501
569
+ :type: bool
570
+ """
571
+
572
+ self._disable_secrets = disable_secrets
573
+
538
574
  @property
539
575
  def display_name(self) -> 'str':
540
576
  """Gets the display_name of this V1CloudSpace. # noqa: E501
@@ -1207,6 +1243,27 @@ class V1CloudSpace(object):
1207
1243
 
1208
1244
  self._published_to_org_at = published_to_org_at
1209
1245
 
1246
+ @property
1247
+ def sandbox(self) -> 'bool':
1248
+ """Gets the sandbox of this V1CloudSpace. # noqa: E501
1249
+
1250
+
1251
+ :return: The sandbox of this V1CloudSpace. # noqa: E501
1252
+ :rtype: bool
1253
+ """
1254
+ return self._sandbox
1255
+
1256
+ @sandbox.setter
1257
+ def sandbox(self, sandbox: 'bool'):
1258
+ """Sets the sandbox of this V1CloudSpace.
1259
+
1260
+
1261
+ :param sandbox: The sandbox of this V1CloudSpace. # noqa: E501
1262
+ :type: bool
1263
+ """
1264
+
1265
+ self._sandbox = sandbox
1266
+
1210
1267
  @property
1211
1268
  def state(self) -> 'V1CloudSpaceState':
1212
1269
  """Gets the state of this V1CloudSpace. # noqa: E501
@@ -1459,6 +1516,27 @@ class V1CloudSpace(object):
1459
1516
 
1460
1517
  self._user_metadata = user_metadata
1461
1518
 
1519
+ @property
1520
+ def visibility(self) -> 'V1ResourceVisibility':
1521
+ """Gets the visibility of this V1CloudSpace. # noqa: E501
1522
+
1523
+
1524
+ :return: The visibility of this V1CloudSpace. # noqa: E501
1525
+ :rtype: V1ResourceVisibility
1526
+ """
1527
+ return self._visibility
1528
+
1529
+ @visibility.setter
1530
+ def visibility(self, visibility: 'V1ResourceVisibility'):
1531
+ """Sets the visibility of this V1CloudSpace.
1532
+
1533
+
1534
+ :param visibility: The visibility of this V1CloudSpace. # noqa: E501
1535
+ :type: V1ResourceVisibility
1536
+ """
1537
+
1538
+ self._visibility = visibility
1539
+
1462
1540
  @property
1463
1541
  def web_path(self) -> 'str':
1464
1542
  """Gets the web_path of this V1CloudSpace. # noqa: E501
@@ -41,19 +41,24 @@ class V1CloudSpaceEnvironmentConfig(object):
41
41
  and the value is json key in definition.
42
42
  """
43
43
  swagger_types = {
44
- 'environment_type': 'V1CloudSpaceEnvironmentType'
44
+ 'environment_type': 'V1CloudSpaceEnvironmentType',
45
+ 'specialized_view': 'V1CloudSpaceSpecializedView'
45
46
  }
46
47
 
47
48
  attribute_map = {
48
- 'environment_type': 'environmentType'
49
+ 'environment_type': 'environmentType',
50
+ 'specialized_view': 'specializedView'
49
51
  }
50
52
 
51
- def __init__(self, environment_type: 'V1CloudSpaceEnvironmentType' =None): # noqa: E501
53
+ def __init__(self, environment_type: 'V1CloudSpaceEnvironmentType' =None, specialized_view: 'V1CloudSpaceSpecializedView' =None): # noqa: E501
52
54
  """V1CloudSpaceEnvironmentConfig - a model defined in Swagger""" # noqa: E501
53
55
  self._environment_type = None
56
+ self._specialized_view = None
54
57
  self.discriminator = None
55
58
  if environment_type is not None:
56
59
  self.environment_type = environment_type
60
+ if specialized_view is not None:
61
+ self.specialized_view = specialized_view
57
62
 
58
63
  @property
59
64
  def environment_type(self) -> 'V1CloudSpaceEnvironmentType':
@@ -76,6 +81,27 @@ class V1CloudSpaceEnvironmentConfig(object):
76
81
 
77
82
  self._environment_type = environment_type
78
83
 
84
+ @property
85
+ def specialized_view(self) -> 'V1CloudSpaceSpecializedView':
86
+ """Gets the specialized_view of this V1CloudSpaceEnvironmentConfig. # noqa: E501
87
+
88
+
89
+ :return: The specialized_view of this V1CloudSpaceEnvironmentConfig. # noqa: E501
90
+ :rtype: V1CloudSpaceSpecializedView
91
+ """
92
+ return self._specialized_view
93
+
94
+ @specialized_view.setter
95
+ def specialized_view(self, specialized_view: 'V1CloudSpaceSpecializedView'):
96
+ """Sets the specialized_view of this V1CloudSpaceEnvironmentConfig.
97
+
98
+
99
+ :param specialized_view: The specialized_view of this V1CloudSpaceEnvironmentConfig. # noqa: E501
100
+ :type: V1CloudSpaceSpecializedView
101
+ """
102
+
103
+ self._specialized_view = specialized_view
104
+
79
105
  def to_dict(self) -> dict:
80
106
  """Returns the model properties as a dict"""
81
107
  result = {}
@@ -47,7 +47,8 @@ class V1CloudSpaceEnvironmentTemplateConfig(object):
47
47
  'initial_setup_script_text': 'str',
48
48
  'machine_image_version': 'str',
49
49
  'plugins': 'list[str]',
50
- 'setup_script_text': 'str'
50
+ 'setup_script_text': 'str',
51
+ 'specialized_view': 'V1CloudSpaceSpecializedView'
51
52
  }
52
53
 
53
54
  attribute_map = {
@@ -57,10 +58,11 @@ class V1CloudSpaceEnvironmentTemplateConfig(object):
57
58
  'initial_setup_script_text': 'initialSetupScriptText',
58
59
  'machine_image_version': 'machineImageVersion',
59
60
  'plugins': 'plugins',
60
- 'setup_script_text': 'setupScriptText'
61
+ 'setup_script_text': 'setupScriptText',
62
+ 'specialized_view': 'specializedView'
61
63
  }
62
64
 
63
- def __init__(self, allowed_machines: 'list[str]' =None, default_machine: 'str' =None, environment_type: 'V1CloudSpaceEnvironmentType' =None, initial_setup_script_text: 'str' =None, machine_image_version: 'str' =None, plugins: 'list[str]' =None, setup_script_text: 'str' =None): # noqa: E501
65
+ def __init__(self, allowed_machines: 'list[str]' =None, default_machine: 'str' =None, environment_type: 'V1CloudSpaceEnvironmentType' =None, initial_setup_script_text: 'str' =None, machine_image_version: 'str' =None, plugins: 'list[str]' =None, setup_script_text: 'str' =None, specialized_view: 'V1CloudSpaceSpecializedView' =None): # noqa: E501
64
66
  """V1CloudSpaceEnvironmentTemplateConfig - a model defined in Swagger""" # noqa: E501
65
67
  self._allowed_machines = None
66
68
  self._default_machine = None
@@ -69,6 +71,7 @@ class V1CloudSpaceEnvironmentTemplateConfig(object):
69
71
  self._machine_image_version = None
70
72
  self._plugins = None
71
73
  self._setup_script_text = None
74
+ self._specialized_view = None
72
75
  self.discriminator = None
73
76
  if allowed_machines is not None:
74
77
  self.allowed_machines = allowed_machines
@@ -84,6 +87,8 @@ class V1CloudSpaceEnvironmentTemplateConfig(object):
84
87
  self.plugins = plugins
85
88
  if setup_script_text is not None:
86
89
  self.setup_script_text = setup_script_text
90
+ if specialized_view is not None:
91
+ self.specialized_view = specialized_view
87
92
 
88
93
  @property
89
94
  def allowed_machines(self) -> 'list[str]':
@@ -232,6 +237,27 @@ class V1CloudSpaceEnvironmentTemplateConfig(object):
232
237
 
233
238
  self._setup_script_text = setup_script_text
234
239
 
240
+ @property
241
+ def specialized_view(self) -> 'V1CloudSpaceSpecializedView':
242
+ """Gets the specialized_view of this V1CloudSpaceEnvironmentTemplateConfig. # noqa: E501
243
+
244
+
245
+ :return: The specialized_view of this V1CloudSpaceEnvironmentTemplateConfig. # noqa: E501
246
+ :rtype: V1CloudSpaceSpecializedView
247
+ """
248
+ return self._specialized_view
249
+
250
+ @specialized_view.setter
251
+ def specialized_view(self, specialized_view: 'V1CloudSpaceSpecializedView'):
252
+ """Sets the specialized_view of this V1CloudSpaceEnvironmentTemplateConfig.
253
+
254
+
255
+ :param specialized_view: The specialized_view of this V1CloudSpaceEnvironmentTemplateConfig. # noqa: E501
256
+ :type: V1CloudSpaceSpecializedView
257
+ """
258
+
259
+ self._specialized_view = specialized_view
260
+
235
261
  def to_dict(self) -> dict:
236
262
  """Returns the model properties as a dict"""
237
263
  result = {}
@@ -40,6 +40,7 @@ class V1CloudSpaceEnvironmentType(object):
40
40
  UNSPECIFIED = "CLOUD_SPACE_ENVIRONMENT_TYPE_UNSPECIFIED"
41
41
  DEFAULT = "CLOUD_SPACE_ENVIRONMENT_TYPE_DEFAULT"
42
42
  BLANK = "CLOUD_SPACE_ENVIRONMENT_TYPE_BLANK"
43
+ PYTHON_EMPTY = "CLOUD_SPACE_ENVIRONMENT_TYPE_PYTHON_EMPTY"
43
44
  """
44
45
  Attributes:
45
46
  swagger_types (dict): The key is attribute name
@@ -43,20 +43,23 @@ class V1CloudSpaceSession(object):
43
43
  swagger_types = {
44
44
  'command': 'str',
45
45
  'id': 'str',
46
- 'name': 'str'
46
+ 'name': 'str',
47
+ 'timestamp': 'datetime'
47
48
  }
48
49
 
49
50
  attribute_map = {
50
51
  'command': 'command',
51
52
  'id': 'id',
52
- 'name': 'name'
53
+ 'name': 'name',
54
+ 'timestamp': 'timestamp'
53
55
  }
54
56
 
55
- def __init__(self, command: 'str' =None, id: 'str' =None, name: 'str' =None): # noqa: E501
57
+ def __init__(self, command: 'str' =None, id: 'str' =None, name: 'str' =None, timestamp: 'datetime' =None): # noqa: E501
56
58
  """V1CloudSpaceSession - a model defined in Swagger""" # noqa: E501
57
59
  self._command = None
58
60
  self._id = None
59
61
  self._name = None
62
+ self._timestamp = None
60
63
  self.discriminator = None
61
64
  if command is not None:
62
65
  self.command = command
@@ -64,6 +67,8 @@ class V1CloudSpaceSession(object):
64
67
  self.id = id
65
68
  if name is not None:
66
69
  self.name = name
70
+ if timestamp is not None:
71
+ self.timestamp = timestamp
67
72
 
68
73
  @property
69
74
  def command(self) -> 'str':
@@ -128,6 +133,27 @@ class V1CloudSpaceSession(object):
128
133
 
129
134
  self._name = name
130
135
 
136
+ @property
137
+ def timestamp(self) -> 'datetime':
138
+ """Gets the timestamp of this V1CloudSpaceSession. # noqa: E501
139
+
140
+
141
+ :return: The timestamp of this V1CloudSpaceSession. # noqa: E501
142
+ :rtype: datetime
143
+ """
144
+ return self._timestamp
145
+
146
+ @timestamp.setter
147
+ def timestamp(self, timestamp: 'datetime'):
148
+ """Sets the timestamp of this V1CloudSpaceSession.
149
+
150
+
151
+ :param timestamp: The timestamp of this V1CloudSpaceSession. # noqa: E501
152
+ :type: datetime
153
+ """
154
+
155
+ self._timestamp = timestamp
156
+
131
157
  def to_dict(self) -> dict:
132
158
  """Returns the model properties as a dict"""
133
159
  result = {}
@@ -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 V1CloudSpaceSpecializedView(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_SPECIALIZED_VIEW_UNSPECIFIED"
41
+ DEFAULT = "CLOUD_SPACE_SPECIALIZED_VIEW_DEFAULT"
42
+ STREAMLIT = "CLOUD_SPACE_SPECIALIZED_VIEW_STREAMLIT"
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
+ """V1CloudSpaceSpecializedView - 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(V1CloudSpaceSpecializedView, 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: 'V1CloudSpaceSpecializedView') -> bool:
96
+ """Returns true if both objects are equal"""
97
+ if not isinstance(other, V1CloudSpaceSpecializedView):
98
+ return False
99
+
100
+ return self.__dict__ == other.__dict__
101
+
102
+ def __ne__(self, other: 'V1CloudSpaceSpecializedView') -> bool:
103
+ """Returns true if both objects are not equal"""
104
+ return not self == other