lightning-sdk 0.2.23__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 (70) 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/llm_api.py +5 -11
  5. lightning_sdk/api/pipeline_api.py +31 -11
  6. lightning_sdk/api/studio_api.py +4 -0
  7. lightning_sdk/base_studio.py +22 -6
  8. lightning_sdk/deployment/deployment.py +17 -7
  9. lightning_sdk/lightning_cloud/openapi/__init__.py +12 -0
  10. lightning_sdk/lightning_cloud/openapi/api/__init__.py +1 -0
  11. lightning_sdk/lightning_cloud/openapi/api/assistants_service_api.py +114 -1
  12. lightning_sdk/lightning_cloud/openapi/api/cloudy_service_api.py +129 -0
  13. lightning_sdk/lightning_cloud/openapi/api/organizations_service_api.py +105 -0
  14. lightning_sdk/lightning_cloud/openapi/api/pipelines_service_api.py +4 -4
  15. lightning_sdk/lightning_cloud/openapi/api/user_service_api.py +105 -0
  16. lightning_sdk/lightning_cloud/openapi/models/__init__.py +11 -0
  17. lightning_sdk/lightning_cloud/openapi/models/agents_id_body.py +27 -1
  18. lightning_sdk/lightning_cloud/openapi/models/assistant_id_conversations_body.py +53 -1
  19. lightning_sdk/lightning_cloud/openapi/models/credits_autoreplenish_body.py +175 -0
  20. lightning_sdk/lightning_cloud/openapi/models/credits_autoreplenish_body1.py +175 -0
  21. lightning_sdk/lightning_cloud/openapi/models/externalv1_user_status.py +79 -1
  22. lightning_sdk/lightning_cloud/openapi/models/orgs_id_body.py +27 -1
  23. lightning_sdk/lightning_cloud/openapi/models/pipelines_id_body1.py +123 -0
  24. lightning_sdk/lightning_cloud/openapi/models/project_id_agents_body.py +27 -1
  25. lightning_sdk/lightning_cloud/openapi/models/project_id_cloudspaces_body.py +27 -1
  26. lightning_sdk/lightning_cloud/openapi/models/update.py +29 -3
  27. lightning_sdk/lightning_cloud/openapi/models/v1_assistant.py +27 -1
  28. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_provider.py +1 -0
  29. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space.py +27 -1
  30. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_config.py +29 -3
  31. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_template_config.py +29 -3
  32. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_type.py +1 -0
  33. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_specialized_view.py +104 -0
  34. lightning_sdk/lightning_cloud/openapi/models/v1_cloudy_expert.py +279 -0
  35. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_accelerator.py +79 -1
  36. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_capacity_reservation.py +27 -1
  37. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_spec.py +27 -1
  38. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_status.py +27 -1
  39. lightning_sdk/lightning_cloud/openapi/models/v1_conversation_response_chunk.py +29 -3
  40. lightning_sdk/lightning_cloud/openapi/models/v1_create_cloud_space_environment_template_request.py +29 -3
  41. lightning_sdk/lightning_cloud/openapi/models/v1_create_organization_request.py +79 -1
  42. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_status.py +47 -21
  43. lightning_sdk/lightning_cloud/openapi/models/v1_external_cluster_spec.py +27 -1
  44. lightning_sdk/lightning_cloud/openapi/models/v1_get_job_stats_response.py +53 -1
  45. lightning_sdk/lightning_cloud/openapi/models/v1_instance_overprovisioning_spec.py +1 -27
  46. lightning_sdk/lightning_cloud/openapi/models/v1_kubernetes_direct_v1.py +123 -0
  47. lightning_sdk/lightning_cloud/openapi/models/v1_kubernetes_direct_v1_status.py +149 -0
  48. lightning_sdk/lightning_cloud/openapi/models/v1_list_cloudy_experts_response.py +123 -0
  49. lightning_sdk/lightning_cloud/openapi/models/v1_login_request.py +27 -1
  50. lightning_sdk/lightning_cloud/openapi/models/v1_magic_link_login_request.py +29 -3
  51. lightning_sdk/lightning_cloud/openapi/models/v1_magic_link_login_response.py +27 -1
  52. lightning_sdk/lightning_cloud/openapi/models/v1_organization.py +27 -1
  53. lightning_sdk/lightning_cloud/openapi/models/v1_token_usage.py +175 -0
  54. lightning_sdk/lightning_cloud/openapi/models/v1_update_organization_credits_auto_replenish_response.py +97 -0
  55. lightning_sdk/lightning_cloud/openapi/models/v1_update_user_credits_auto_replenish_response.py +97 -0
  56. lightning_sdk/lightning_cloud/openapi/models/v1_update_user_request.py +27 -1
  57. lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +185 -29
  58. lightning_sdk/llm/llm.py +113 -115
  59. lightning_sdk/llm/public_assistants.json +8 -0
  60. lightning_sdk/pipeline/pipeline.py +17 -2
  61. lightning_sdk/pipeline/printer.py +11 -10
  62. lightning_sdk/pipeline/steps.py +4 -1
  63. lightning_sdk/pipeline/utils.py +29 -4
  64. lightning_sdk/studio.py +3 -0
  65. {lightning_sdk-0.2.23.dist-info → lightning_sdk-0.2.24rc0.dist-info}/METADATA +1 -1
  66. {lightning_sdk-0.2.23.dist-info → lightning_sdk-0.2.24rc0.dist-info}/RECORD +70 -57
  67. {lightning_sdk-0.2.23.dist-info → lightning_sdk-0.2.24rc0.dist-info}/LICENSE +0 -0
  68. {lightning_sdk-0.2.23.dist-info → lightning_sdk-0.2.24rc0.dist-info}/WHEEL +0 -0
  69. {lightning_sdk-0.2.23.dist-info → lightning_sdk-0.2.24rc0.dist-info}/entry_points.txt +0 -0
  70. {lightning_sdk-0.2.23.dist-info → lightning_sdk-0.2.24rc0.dist-info}/top_level.txt +0 -0
@@ -42,6 +42,7 @@ class ProjectIdAgentsBody(object):
42
42
  """
43
43
  swagger_types = {
44
44
  'cloudspace_id': 'str',
45
+ 'cloudy_compatible': 'bool',
45
46
  'cluster_id': 'str',
46
47
  'description': 'str',
47
48
  'endpoint': 'V1Endpoint',
@@ -61,6 +62,7 @@ class ProjectIdAgentsBody(object):
61
62
 
62
63
  attribute_map = {
63
64
  'cloudspace_id': 'cloudspaceId',
65
+ 'cloudy_compatible': 'cloudyCompatible',
64
66
  'cluster_id': 'clusterId',
65
67
  'description': 'description',
66
68
  'endpoint': 'endpoint',
@@ -78,9 +80,10 @@ class ProjectIdAgentsBody(object):
78
80
  'thumbnail_url': 'thumbnailUrl'
79
81
  }
80
82
 
81
- def __init__(self, cloudspace_id: 'str' =None, cluster_id: 'str' =None, description: 'str' =None, endpoint: 'V1Endpoint' =None, file_uploads_enabled: 'bool' =None, internal_assistant_name: 'str' =None, knowledge: 'str' =None, knowledge_configuration: 'V1KnowledgeConfiguration' =None, model: 'str' =None, model_provider: 'str' =None, name: 'str' =None, org_id: 'str' =None, prompt_suggestions: 'list[V1PromptSuggestion]' =None, prompt_template: 'str' =None, publish_status: 'str' =None, thumbnail_url: 'str' =None): # noqa: E501
83
+ def __init__(self, cloudspace_id: 'str' =None, cloudy_compatible: 'bool' =None, cluster_id: 'str' =None, description: 'str' =None, endpoint: 'V1Endpoint' =None, file_uploads_enabled: 'bool' =None, internal_assistant_name: 'str' =None, knowledge: 'str' =None, knowledge_configuration: 'V1KnowledgeConfiguration' =None, model: 'str' =None, model_provider: 'str' =None, name: 'str' =None, org_id: 'str' =None, prompt_suggestions: 'list[V1PromptSuggestion]' =None, prompt_template: 'str' =None, publish_status: 'str' =None, thumbnail_url: 'str' =None): # noqa: E501
82
84
  """ProjectIdAgentsBody - a model defined in Swagger""" # noqa: E501
83
85
  self._cloudspace_id = None
86
+ self._cloudy_compatible = None
84
87
  self._cluster_id = None
85
88
  self._description = None
86
89
  self._endpoint = None
@@ -99,6 +102,8 @@ class ProjectIdAgentsBody(object):
99
102
  self.discriminator = None
100
103
  if cloudspace_id is not None:
101
104
  self.cloudspace_id = cloudspace_id
105
+ if cloudy_compatible is not None:
106
+ self.cloudy_compatible = cloudy_compatible
102
107
  if cluster_id is not None:
103
108
  self.cluster_id = cluster_id
104
109
  if description is not None:
@@ -151,6 +156,27 @@ class ProjectIdAgentsBody(object):
151
156
 
152
157
  self._cloudspace_id = cloudspace_id
153
158
 
159
+ @property
160
+ def cloudy_compatible(self) -> 'bool':
161
+ """Gets the cloudy_compatible of this ProjectIdAgentsBody. # noqa: E501
162
+
163
+
164
+ :return: The cloudy_compatible of this ProjectIdAgentsBody. # noqa: E501
165
+ :rtype: bool
166
+ """
167
+ return self._cloudy_compatible
168
+
169
+ @cloudy_compatible.setter
170
+ def cloudy_compatible(self, cloudy_compatible: 'bool'):
171
+ """Sets the cloudy_compatible of this ProjectIdAgentsBody.
172
+
173
+
174
+ :param cloudy_compatible: The cloudy_compatible of this ProjectIdAgentsBody. # noqa: E501
175
+ :type: bool
176
+ """
177
+
178
+ self._cloudy_compatible = cloudy_compatible
179
+
154
180
  @property
155
181
  def cluster_id(self) -> 'str':
156
182
  """Gets the cluster_id of this ProjectIdAgentsBody. # noqa: E501
@@ -55,6 +55,7 @@ class ProjectIdCloudspacesBody(object):
55
55
  'plugins': 'list[str]',
56
56
  'requested_run_duration_seconds': 'str',
57
57
  'same_compute_on_resume': 'bool',
58
+ 'sandbox': 'bool',
58
59
  'seed_files': 'list[V1CloudSpaceSeedFile]',
59
60
  'source': 'V1CloudSpaceSourceType',
60
61
  'spot': 'bool'
@@ -75,12 +76,13 @@ class ProjectIdCloudspacesBody(object):
75
76
  'plugins': 'plugins',
76
77
  'requested_run_duration_seconds': 'requestedRunDurationSeconds',
77
78
  'same_compute_on_resume': 'sameComputeOnResume',
79
+ 'sandbox': 'sandbox',
78
80
  'seed_files': 'seedFiles',
79
81
  'source': 'source',
80
82
  'spot': 'spot'
81
83
  }
82
84
 
83
- 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, disable_secrets: 'bool' =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
85
+ 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, disable_secrets: 'bool' =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, sandbox: 'bool' =None, seed_files: 'list[V1CloudSpaceSeedFile]' =None, source: 'V1CloudSpaceSourceType' =None, spot: 'bool' =None): # noqa: E501
84
86
  """ProjectIdCloudspacesBody - a model defined in Swagger""" # noqa: E501
85
87
  self._can_download_source_code = None
86
88
  self._cloud_space_environment_template_id = None
@@ -96,6 +98,7 @@ class ProjectIdCloudspacesBody(object):
96
98
  self._plugins = None
97
99
  self._requested_run_duration_seconds = None
98
100
  self._same_compute_on_resume = None
101
+ self._sandbox = None
99
102
  self._seed_files = None
100
103
  self._source = None
101
104
  self._spot = None
@@ -128,6 +131,8 @@ class ProjectIdCloudspacesBody(object):
128
131
  self.requested_run_duration_seconds = requested_run_duration_seconds
129
132
  if same_compute_on_resume is not None:
130
133
  self.same_compute_on_resume = same_compute_on_resume
134
+ if sandbox is not None:
135
+ self.sandbox = sandbox
131
136
  if seed_files is not None:
132
137
  self.seed_files = seed_files
133
138
  if source is not None:
@@ -429,6 +434,27 @@ class ProjectIdCloudspacesBody(object):
429
434
 
430
435
  self._same_compute_on_resume = same_compute_on_resume
431
436
 
437
+ @property
438
+ def sandbox(self) -> 'bool':
439
+ """Gets the sandbox of this ProjectIdCloudspacesBody. # noqa: E501
440
+
441
+
442
+ :return: The sandbox of this ProjectIdCloudspacesBody. # noqa: E501
443
+ :rtype: bool
444
+ """
445
+ return self._sandbox
446
+
447
+ @sandbox.setter
448
+ def sandbox(self, sandbox: 'bool'):
449
+ """Sets the sandbox of this ProjectIdCloudspacesBody.
450
+
451
+
452
+ :param sandbox: The sandbox of this ProjectIdCloudspacesBody. # noqa: E501
453
+ :type: bool
454
+ """
455
+
456
+ self._sandbox = sandbox
457
+
432
458
  @property
433
459
  def seed_files(self) -> 'list[V1CloudSpaceSeedFile]':
434
460
  """Gets the seed_files of this ProjectIdCloudspacesBody. # noqa: E501
@@ -52,7 +52,8 @@ class Update(object):
52
52
  'name': 'str',
53
53
  'org_id': 'str',
54
54
  'plugins': 'list[str]',
55
- 'setup_script_text': 'str'
55
+ 'setup_script_text': 'str',
56
+ 'specialized_view': 'V1CloudSpaceSpecializedView'
56
57
  }
57
58
 
58
59
  attribute_map = {
@@ -67,10 +68,11 @@ class Update(object):
67
68
  'name': 'name',
68
69
  'org_id': 'orgId',
69
70
  'plugins': 'plugins',
70
- 'setup_script_text': 'setupScriptText'
71
+ 'setup_script_text': 'setupScriptText',
72
+ 'specialized_view': 'specializedView'
71
73
  }
72
74
 
73
- def __init__(self, allowed_machines: 'list[str]' =None, default_machine: 'str' =None, description: 'str' =None, disabled: 'bool' =None, environment_type: 'V1CloudSpaceEnvironmentType' =None, icon: 'str' =None, initial_setup_script_text: 'str' =None, machine_image_version: 'str' =None, name: 'str' =None, org_id: 'str' =None, plugins: 'list[str]' =None, setup_script_text: 'str' =None): # noqa: E501
75
+ def __init__(self, allowed_machines: 'list[str]' =None, default_machine: 'str' =None, description: 'str' =None, disabled: 'bool' =None, environment_type: 'V1CloudSpaceEnvironmentType' =None, icon: 'str' =None, initial_setup_script_text: 'str' =None, machine_image_version: 'str' =None, name: 'str' =None, org_id: 'str' =None, plugins: 'list[str]' =None, setup_script_text: 'str' =None, specialized_view: 'V1CloudSpaceSpecializedView' =None): # noqa: E501
74
76
  """Update - a model defined in Swagger""" # noqa: E501
75
77
  self._allowed_machines = None
76
78
  self._default_machine = None
@@ -84,6 +86,7 @@ class Update(object):
84
86
  self._org_id = None
85
87
  self._plugins = None
86
88
  self._setup_script_text = None
89
+ self._specialized_view = None
87
90
  self.discriminator = None
88
91
  if allowed_machines is not None:
89
92
  self.allowed_machines = allowed_machines
@@ -109,6 +112,8 @@ class Update(object):
109
112
  self.plugins = plugins
110
113
  if setup_script_text is not None:
111
114
  self.setup_script_text = setup_script_text
115
+ if specialized_view is not None:
116
+ self.specialized_view = specialized_view
112
117
 
113
118
  @property
114
119
  def allowed_machines(self) -> 'list[str]':
@@ -362,6 +367,27 @@ class Update(object):
362
367
 
363
368
  self._setup_script_text = setup_script_text
364
369
 
370
+ @property
371
+ def specialized_view(self) -> 'V1CloudSpaceSpecializedView':
372
+ """Gets the specialized_view of this Update. # noqa: E501
373
+
374
+
375
+ :return: The specialized_view of this Update. # noqa: E501
376
+ :rtype: V1CloudSpaceSpecializedView
377
+ """
378
+ return self._specialized_view
379
+
380
+ @specialized_view.setter
381
+ def specialized_view(self, specialized_view: 'V1CloudSpaceSpecializedView'):
382
+ """Sets the specialized_view of this Update.
383
+
384
+
385
+ :param specialized_view: The specialized_view of this Update. # noqa: E501
386
+ :type: V1CloudSpaceSpecializedView
387
+ """
388
+
389
+ self._specialized_view = specialized_view
390
+
365
391
  def to_dict(self) -> dict:
366
392
  """Returns the model properties as a dict"""
367
393
  result = {}
@@ -42,6 +42,7 @@ class V1Assistant(object):
42
42
  """
43
43
  swagger_types = {
44
44
  'cloudspace_id': 'str',
45
+ 'cloudy_compatible': 'bool',
45
46
  'cluster_id': 'str',
46
47
  'created_at': 'datetime',
47
48
  'deployment_details': 'V1DeploymentDetails',
@@ -70,6 +71,7 @@ class V1Assistant(object):
70
71
 
71
72
  attribute_map = {
72
73
  'cloudspace_id': 'cloudspaceId',
74
+ 'cloudy_compatible': 'cloudyCompatible',
73
75
  'cluster_id': 'clusterId',
74
76
  'created_at': 'createdAt',
75
77
  'deployment_details': 'deploymentDetails',
@@ -96,9 +98,10 @@ class V1Assistant(object):
96
98
  'user_id': 'userId'
97
99
  }
98
100
 
99
- def __init__(self, cloudspace_id: 'str' =None, cluster_id: 'str' =None, created_at: 'datetime' =None, deployment_details: 'V1DeploymentDetails' =None, description: 'str' =None, endpoint_id: 'str' =None, expected_cold_start_time: 'str' =None, file_uploads_enabled: 'bool' =None, id: 'str' =None, internal_assistant_name: 'str' =None, knowledge: 'str' =None, knowledge_configuration: 'V1KnowledgeConfiguration' =None, managed_endpoint_id: 'str' =None, model: 'str' =None, model_provider: 'str' =None, name: 'str' =None, org_id: 'str' =None, project_id: 'str' =None, prompt_suggestions: 'list[V1PromptSuggestion]' =None, prompt_template: 'str' =None, publish_status: 'str' =None, status: 'V1AssistantModelStatus' =None, thumbnail_url: 'str' =None, updated_at: 'datetime' =None, user_id: 'str' =None): # noqa: E501
101
+ def __init__(self, cloudspace_id: 'str' =None, cloudy_compatible: 'bool' =None, cluster_id: 'str' =None, created_at: 'datetime' =None, deployment_details: 'V1DeploymentDetails' =None, description: 'str' =None, endpoint_id: 'str' =None, expected_cold_start_time: 'str' =None, file_uploads_enabled: 'bool' =None, id: 'str' =None, internal_assistant_name: 'str' =None, knowledge: 'str' =None, knowledge_configuration: 'V1KnowledgeConfiguration' =None, managed_endpoint_id: 'str' =None, model: 'str' =None, model_provider: 'str' =None, name: 'str' =None, org_id: 'str' =None, project_id: 'str' =None, prompt_suggestions: 'list[V1PromptSuggestion]' =None, prompt_template: 'str' =None, publish_status: 'str' =None, status: 'V1AssistantModelStatus' =None, thumbnail_url: 'str' =None, updated_at: 'datetime' =None, user_id: 'str' =None): # noqa: E501
100
102
  """V1Assistant - a model defined in Swagger""" # noqa: E501
101
103
  self._cloudspace_id = None
104
+ self._cloudy_compatible = None
102
105
  self._cluster_id = None
103
106
  self._created_at = None
104
107
  self._deployment_details = None
@@ -126,6 +129,8 @@ class V1Assistant(object):
126
129
  self.discriminator = None
127
130
  if cloudspace_id is not None:
128
131
  self.cloudspace_id = cloudspace_id
132
+ if cloudy_compatible is not None:
133
+ self.cloudy_compatible = cloudy_compatible
129
134
  if cluster_id is not None:
130
135
  self.cluster_id = cluster_id
131
136
  if created_at is not None:
@@ -196,6 +201,27 @@ class V1Assistant(object):
196
201
 
197
202
  self._cloudspace_id = cloudspace_id
198
203
 
204
+ @property
205
+ def cloudy_compatible(self) -> 'bool':
206
+ """Gets the cloudy_compatible of this V1Assistant. # noqa: E501
207
+
208
+
209
+ :return: The cloudy_compatible of this V1Assistant. # noqa: E501
210
+ :rtype: bool
211
+ """
212
+ return self._cloudy_compatible
213
+
214
+ @cloudy_compatible.setter
215
+ def cloudy_compatible(self, cloudy_compatible: 'bool'):
216
+ """Sets the cloudy_compatible of this V1Assistant.
217
+
218
+
219
+ :param cloudy_compatible: The cloudy_compatible of this V1Assistant. # noqa: E501
220
+ :type: bool
221
+ """
222
+
223
+ self._cloudy_compatible = cloudy_compatible
224
+
199
225
  @property
200
226
  def cluster_id(self) -> 'str':
201
227
  """Gets the cluster_id of this V1Assistant. # noqa: E501
@@ -49,6 +49,7 @@ class V1CloudProvider(object):
49
49
  CLOUDFLARE = "CLOUDFLARE"
50
50
  LIGHTNING = "LIGHTNING"
51
51
  LIGHTNING_AGGREGATE = "LIGHTNING_AGGREGATE"
52
+ KUBERNETES = "KUBERNETES"
52
53
  """
53
54
  Attributes:
54
55
  swagger_types (dict): The key is attribute name
@@ -84,6 +84,7 @@ class V1CloudSpace(object):
84
84
  'publications': 'list[V1CloudSpaceVersionPublication]',
85
85
  'published_at': 'datetime',
86
86
  'published_to_org_at': 'datetime',
87
+ 'sandbox': 'bool',
87
88
  'state': 'V1CloudSpaceState',
88
89
  'switch_to_default_machine_on_idle': 'bool',
89
90
  'sync_duration': 'str',
@@ -144,6 +145,7 @@ class V1CloudSpace(object):
144
145
  'publications': 'publications',
145
146
  'published_at': 'publishedAt',
146
147
  'published_to_org_at': 'publishedToOrgAt',
148
+ 'sandbox': 'sandbox',
147
149
  'state': 'state',
148
150
  'switch_to_default_machine_on_idle': 'switchToDefaultMachineOnIdle',
149
151
  'sync_duration': 'syncDuration',
@@ -160,7 +162,7 @@ class V1CloudSpace(object):
160
162
  'web_path': 'webPath'
161
163
  }
162
164
 
163
- 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, 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
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
164
166
  """V1CloudSpace - a model defined in Swagger""" # noqa: E501
165
167
  self._auto_switch_machine = None
166
168
  self._cache_data_connection_id = None
@@ -205,6 +207,7 @@ class V1CloudSpace(object):
205
207
  self._publications = None
206
208
  self._published_at = None
207
209
  self._published_to_org_at = None
210
+ self._sandbox = None
208
211
  self._state = None
209
212
  self._switch_to_default_machine_on_idle = None
210
213
  self._sync_duration = None
@@ -306,6 +309,8 @@ class V1CloudSpace(object):
306
309
  self.published_at = published_at
307
310
  if published_to_org_at is not None:
308
311
  self.published_to_org_at = published_to_org_at
312
+ if sandbox is not None:
313
+ self.sandbox = sandbox
309
314
  if state is not None:
310
315
  self.state = state
311
316
  if switch_to_default_machine_on_idle is not None:
@@ -1238,6 +1243,27 @@ class V1CloudSpace(object):
1238
1243
 
1239
1244
  self._published_to_org_at = published_to_org_at
1240
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
+
1241
1267
  @property
1242
1268
  def state(self) -> 'V1CloudSpaceState':
1243
1269
  """Gets the state 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
@@ -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