lightning-sdk 0.2.15__py3-none-any.whl → 0.2.17__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 (80) hide show
  1. lightning_sdk/__init__.py +1 -1
  2. lightning_sdk/api/base_studio_api.py +7 -1
  3. lightning_sdk/api/cluster_api.py +83 -1
  4. lightning_sdk/api/llm_api.py +27 -5
  5. lightning_sdk/api/studio_api.py +64 -0
  6. lightning_sdk/api/teamspace_api.py +127 -1
  7. lightning_sdk/api/utils.py +4 -0
  8. lightning_sdk/base_studio.py +14 -1
  9. lightning_sdk/cli/create.py +21 -1
  10. lightning_sdk/cli/deploy/__init__.py +0 -0
  11. lightning_sdk/cli/deploy/_auth.py +189 -0
  12. lightning_sdk/cli/deploy/devbox.py +157 -0
  13. lightning_sdk/cli/{serve.py → deploy/serve.py} +11 -322
  14. lightning_sdk/cli/download.py +44 -16
  15. lightning_sdk/cli/entrypoint.py +1 -1
  16. lightning_sdk/cli/open.py +21 -2
  17. lightning_sdk/cli/start.py +12 -3
  18. lightning_sdk/cli/upload.py +2 -4
  19. lightning_sdk/lightning_cloud/openapi/__init__.py +19 -0
  20. lightning_sdk/lightning_cloud/openapi/api/assistants_service_api.py +126 -1
  21. lightning_sdk/lightning_cloud/openapi/api/cloud_space_environment_template_service_api.py +97 -0
  22. lightning_sdk/lightning_cloud/openapi/api/cloud_space_service_api.py +105 -0
  23. lightning_sdk/lightning_cloud/openapi/api/cluster_service_api.py +105 -0
  24. lightning_sdk/lightning_cloud/openapi/api/jobs_service_api.py +752 -106
  25. lightning_sdk/lightning_cloud/openapi/api/storage_service_api.py +93 -0
  26. lightning_sdk/lightning_cloud/openapi/models/__init__.py +19 -0
  27. lightning_sdk/lightning_cloud/openapi/models/assistant_id_conversations_body.py +53 -1
  28. lightning_sdk/lightning_cloud/openapi/models/cloudspaces_id_body.py +53 -1
  29. lightning_sdk/lightning_cloud/openapi/models/create_deployment_request_defines_a_spec_for_the_job_that_allows_for_autoscaling_jobs.py +27 -1
  30. lightning_sdk/lightning_cloud/openapi/models/deployment_id_alertingpolicies_body.py +357 -0
  31. lightning_sdk/lightning_cloud/openapi/models/deployment_id_alertingpolicies_body1.py +331 -0
  32. lightning_sdk/lightning_cloud/openapi/models/deployments_id_body.py +79 -1
  33. lightning_sdk/lightning_cloud/openapi/models/models_id_body.py +123 -0
  34. lightning_sdk/lightning_cloud/openapi/models/orgs_id_body.py +105 -1
  35. lightning_sdk/lightning_cloud/openapi/models/project_id_cloudspaces_body.py +27 -1
  36. lightning_sdk/lightning_cloud/openapi/models/projects_id_body.py +29 -3
  37. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space.py +79 -1
  38. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_template.py +27 -1
  39. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_source_type.py +103 -0
  40. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_tagging_options.py +27 -1
  41. lightning_sdk/lightning_cloud/openapi/models/v1_create_deployment_request.py +27 -1
  42. lightning_sdk/lightning_cloud/openapi/models/v1_data_connection.py +27 -1
  43. lightning_sdk/lightning_cloud/openapi/models/v1_delete_deployment_alerting_policy_response.py +175 -0
  44. lightning_sdk/lightning_cloud/openapi/models/v1_deployment.py +79 -1
  45. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_alerting_event.py +487 -0
  46. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_alerting_policy.py +409 -0
  47. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_alerting_policy_frequency.py +105 -0
  48. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_alerting_policy_operation.py +105 -0
  49. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_alerting_policy_severity.py +106 -0
  50. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_alerting_policy_type.py +111 -0
  51. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_alerting_recipients.py +175 -0
  52. lightning_sdk/lightning_cloud/openapi/models/v1_ge_list_deployment_routing_telemetry_response.py +27 -1
  53. lightning_sdk/lightning_cloud/openapi/models/v1_get_cloud_space_instance_open_ports_response.py +123 -0
  54. lightning_sdk/lightning_cloud/openapi/models/v1_get_deployment_routing_telemetry_content_response.py +123 -0
  55. lightning_sdk/lightning_cloud/openapi/models/v1_get_organization_storage_metadata_response.py +331 -0
  56. lightning_sdk/lightning_cloud/openapi/models/v1_get_user_response.py +1 -27
  57. lightning_sdk/lightning_cloud/openapi/models/v1_google_cloud_direct_v1.py +27 -1
  58. lightning_sdk/lightning_cloud/openapi/models/v1_list_deployment_alerting_events_response.py +123 -0
  59. lightning_sdk/lightning_cloud/openapi/models/v1_list_deployment_alerting_policies_response.py +175 -0
  60. lightning_sdk/lightning_cloud/openapi/models/v1_membership.py +27 -1
  61. lightning_sdk/lightning_cloud/openapi/models/v1_organization.py +105 -1
  62. lightning_sdk/lightning_cloud/openapi/models/v1_project.py +27 -1
  63. lightning_sdk/lightning_cloud/openapi/models/v1_project_membership.py +27 -1
  64. lightning_sdk/lightning_cloud/openapi/models/v1_project_settings.py +29 -3
  65. lightning_sdk/lightning_cloud/openapi/models/v1_project_storage.py +53 -1
  66. lightning_sdk/lightning_cloud/openapi/models/v1_routing_telemetry.py +253 -0
  67. lightning_sdk/lightning_cloud/openapi/models/v1_server_alert_type.py +1 -0
  68. lightning_sdk/lightning_cloud/openapi/models/v1_sleep_server_response.py +97 -0
  69. lightning_sdk/lightning_cloud/openapi/models/v1_update_user_request.py +1 -27
  70. lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +105 -53
  71. lightning_sdk/lightning_cloud/openapi/models/v1_user_requested_compute_config.py +27 -1
  72. lightning_sdk/llm/llm.py +54 -8
  73. lightning_sdk/studio.py +40 -1
  74. lightning_sdk/teamspace.py +68 -0
  75. {lightning_sdk-0.2.15.dist-info → lightning_sdk-0.2.17.dist-info}/METADATA +1 -1
  76. {lightning_sdk-0.2.15.dist-info → lightning_sdk-0.2.17.dist-info}/RECORD +80 -58
  77. {lightning_sdk-0.2.15.dist-info → lightning_sdk-0.2.17.dist-info}/LICENSE +0 -0
  78. {lightning_sdk-0.2.15.dist-info → lightning_sdk-0.2.17.dist-info}/WHEEL +0 -0
  79. {lightning_sdk-0.2.15.dist-info → lightning_sdk-0.2.17.dist-info}/entry_points.txt +0 -0
  80. {lightning_sdk-0.2.15.dist-info → lightning_sdk-0.2.17.dist-info}/top_level.txt +0 -0
@@ -41,6 +41,8 @@ class V1CloudSpace(object):
41
41
  and the value is json key in definition.
42
42
  """
43
43
  swagger_types = {
44
+ 'auto_switch_machine': 'bool',
45
+ 'cache_data_connection_id': 'str',
44
46
  'can_download_source_code': 'bool',
45
47
  'cluster_id': 'str',
46
48
  'code_config': 'V1CloudSpaceInstanceConfig',
@@ -81,6 +83,7 @@ class V1CloudSpace(object):
81
83
  'published_at': 'datetime',
82
84
  'published_to_org_at': 'datetime',
83
85
  'state': 'V1CloudSpaceState',
86
+ 'switch_to_default_machine_on_idle': 'bool',
84
87
  'sync_duration': 'str',
85
88
  'sync_percentage': 'str',
86
89
  'tags': 'list[V1ResourceTag]',
@@ -95,6 +98,8 @@ class V1CloudSpace(object):
95
98
  }
96
99
 
97
100
  attribute_map = {
101
+ 'auto_switch_machine': 'autoSwitchMachine',
102
+ 'cache_data_connection_id': 'cacheDataConnectionId',
98
103
  'can_download_source_code': 'canDownloadSourceCode',
99
104
  'cluster_id': 'clusterId',
100
105
  'code_config': 'codeConfig',
@@ -135,6 +140,7 @@ class V1CloudSpace(object):
135
140
  'published_at': 'publishedAt',
136
141
  'published_to_org_at': 'publishedToOrgAt',
137
142
  'state': 'state',
143
+ 'switch_to_default_machine_on_idle': 'switchToDefaultMachineOnIdle',
138
144
  'sync_duration': 'syncDuration',
139
145
  'sync_percentage': 'syncPercentage',
140
146
  'tags': 'tags',
@@ -148,8 +154,10 @@ class V1CloudSpace(object):
148
154
  'web_path': 'webPath'
149
155
  }
150
156
 
151
- 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_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, 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
157
+ 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, 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
152
158
  """V1CloudSpace - a model defined in Swagger""" # noqa: E501
159
+ self._auto_switch_machine = None
160
+ self._cache_data_connection_id = None
153
161
  self._can_download_source_code = None
154
162
  self._cluster_id = None
155
163
  self._code_config = None
@@ -190,6 +198,7 @@ class V1CloudSpace(object):
190
198
  self._published_at = None
191
199
  self._published_to_org_at = None
192
200
  self._state = None
201
+ self._switch_to_default_machine_on_idle = None
193
202
  self._sync_duration = None
194
203
  self._sync_percentage = None
195
204
  self._tags = None
@@ -202,6 +211,10 @@ class V1CloudSpace(object):
202
211
  self._user_metadata = None
203
212
  self._web_path = None
204
213
  self.discriminator = None
214
+ if auto_switch_machine is not None:
215
+ self.auto_switch_machine = auto_switch_machine
216
+ if cache_data_connection_id is not None:
217
+ self.cache_data_connection_id = cache_data_connection_id
205
218
  if can_download_source_code is not None:
206
219
  self.can_download_source_code = can_download_source_code
207
220
  if cluster_id is not None:
@@ -282,6 +295,8 @@ class V1CloudSpace(object):
282
295
  self.published_to_org_at = published_to_org_at
283
296
  if state is not None:
284
297
  self.state = state
298
+ if switch_to_default_machine_on_idle is not None:
299
+ self.switch_to_default_machine_on_idle = switch_to_default_machine_on_idle
285
300
  if sync_duration is not None:
286
301
  self.sync_duration = sync_duration
287
302
  if sync_percentage is not None:
@@ -305,6 +320,48 @@ class V1CloudSpace(object):
305
320
  if web_path is not None:
306
321
  self.web_path = web_path
307
322
 
323
+ @property
324
+ def auto_switch_machine(self) -> 'bool':
325
+ """Gets the auto_switch_machine of this V1CloudSpace. # noqa: E501
326
+
327
+
328
+ :return: The auto_switch_machine of this V1CloudSpace. # noqa: E501
329
+ :rtype: bool
330
+ """
331
+ return self._auto_switch_machine
332
+
333
+ @auto_switch_machine.setter
334
+ def auto_switch_machine(self, auto_switch_machine: 'bool'):
335
+ """Sets the auto_switch_machine of this V1CloudSpace.
336
+
337
+
338
+ :param auto_switch_machine: The auto_switch_machine of this V1CloudSpace. # noqa: E501
339
+ :type: bool
340
+ """
341
+
342
+ self._auto_switch_machine = auto_switch_machine
343
+
344
+ @property
345
+ def cache_data_connection_id(self) -> 'str':
346
+ """Gets the cache_data_connection_id of this V1CloudSpace. # noqa: E501
347
+
348
+
349
+ :return: The cache_data_connection_id of this V1CloudSpace. # noqa: E501
350
+ :rtype: str
351
+ """
352
+ return self._cache_data_connection_id
353
+
354
+ @cache_data_connection_id.setter
355
+ def cache_data_connection_id(self, cache_data_connection_id: 'str'):
356
+ """Sets the cache_data_connection_id of this V1CloudSpace.
357
+
358
+
359
+ :param cache_data_connection_id: The cache_data_connection_id of this V1CloudSpace. # noqa: E501
360
+ :type: str
361
+ """
362
+
363
+ self._cache_data_connection_id = cache_data_connection_id
364
+
308
365
  @property
309
366
  def can_download_source_code(self) -> 'bool':
310
367
  """Gets the can_download_source_code of this V1CloudSpace. # noqa: E501
@@ -1145,6 +1202,27 @@ class V1CloudSpace(object):
1145
1202
 
1146
1203
  self._state = state
1147
1204
 
1205
+ @property
1206
+ def switch_to_default_machine_on_idle(self) -> 'bool':
1207
+ """Gets the switch_to_default_machine_on_idle of this V1CloudSpace. # noqa: E501
1208
+
1209
+
1210
+ :return: The switch_to_default_machine_on_idle of this V1CloudSpace. # noqa: E501
1211
+ :rtype: bool
1212
+ """
1213
+ return self._switch_to_default_machine_on_idle
1214
+
1215
+ @switch_to_default_machine_on_idle.setter
1216
+ def switch_to_default_machine_on_idle(self, switch_to_default_machine_on_idle: 'bool'):
1217
+ """Sets the switch_to_default_machine_on_idle of this V1CloudSpace.
1218
+
1219
+
1220
+ :param switch_to_default_machine_on_idle: The switch_to_default_machine_on_idle of this V1CloudSpace. # noqa: E501
1221
+ :type: bool
1222
+ """
1223
+
1224
+ self._switch_to_default_machine_on_idle = switch_to_default_machine_on_idle
1225
+
1148
1226
  @property
1149
1227
  def sync_duration(self) -> 'str':
1150
1228
  """Gets the sync_duration of this V1CloudSpace. # noqa: E501
@@ -45,6 +45,7 @@ class V1CloudSpaceEnvironmentTemplate(object):
45
45
  'created_at': 'datetime',
46
46
  'disabled': 'bool',
47
47
  'id': 'str',
48
+ 'managed': 'bool',
48
49
  'name': 'str',
49
50
  'org_id': 'str',
50
51
  'updated_at': 'datetime',
@@ -56,18 +57,20 @@ class V1CloudSpaceEnvironmentTemplate(object):
56
57
  'created_at': 'createdAt',
57
58
  'disabled': 'disabled',
58
59
  'id': 'id',
60
+ 'managed': 'managed',
59
61
  'name': 'name',
60
62
  'org_id': 'orgId',
61
63
  'updated_at': 'updatedAt',
62
64
  'user_id': 'userId'
63
65
  }
64
66
 
65
- def __init__(self, config: 'V1CloudSpaceEnvironmentTemplateConfig' =None, created_at: 'datetime' =None, disabled: 'bool' =None, id: 'str' =None, name: 'str' =None, org_id: 'str' =None, updated_at: 'datetime' =None, user_id: 'str' =None): # noqa: E501
67
+ def __init__(self, config: 'V1CloudSpaceEnvironmentTemplateConfig' =None, created_at: 'datetime' =None, disabled: 'bool' =None, id: 'str' =None, managed: 'bool' =None, name: 'str' =None, org_id: 'str' =None, updated_at: 'datetime' =None, user_id: 'str' =None): # noqa: E501
66
68
  """V1CloudSpaceEnvironmentTemplate - a model defined in Swagger""" # noqa: E501
67
69
  self._config = None
68
70
  self._created_at = None
69
71
  self._disabled = None
70
72
  self._id = None
73
+ self._managed = None
71
74
  self._name = None
72
75
  self._org_id = None
73
76
  self._updated_at = None
@@ -81,6 +84,8 @@ class V1CloudSpaceEnvironmentTemplate(object):
81
84
  self.disabled = disabled
82
85
  if id is not None:
83
86
  self.id = id
87
+ if managed is not None:
88
+ self.managed = managed
84
89
  if name is not None:
85
90
  self.name = name
86
91
  if org_id is not None:
@@ -174,6 +179,27 @@ class V1CloudSpaceEnvironmentTemplate(object):
174
179
 
175
180
  self._id = id
176
181
 
182
+ @property
183
+ def managed(self) -> 'bool':
184
+ """Gets the managed of this V1CloudSpaceEnvironmentTemplate. # noqa: E501
185
+
186
+
187
+ :return: The managed of this V1CloudSpaceEnvironmentTemplate. # noqa: E501
188
+ :rtype: bool
189
+ """
190
+ return self._managed
191
+
192
+ @managed.setter
193
+ def managed(self, managed: 'bool'):
194
+ """Sets the managed of this V1CloudSpaceEnvironmentTemplate.
195
+
196
+
197
+ :param managed: The managed of this V1CloudSpaceEnvironmentTemplate. # noqa: E501
198
+ :type: bool
199
+ """
200
+
201
+ self._managed = managed
202
+
177
203
  @property
178
204
  def name(self) -> 'str':
179
205
  """Gets the name of this V1CloudSpaceEnvironmentTemplate. # noqa: E501
@@ -0,0 +1,103 @@
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 V1CloudSpaceSourceType(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_SOURCE_UNSPECIFIED"
41
+ LITSERVE = "CLOUD_SPACE_SOURCE_LITSERVE"
42
+ """
43
+ Attributes:
44
+ swagger_types (dict): The key is attribute name
45
+ and the value is attribute type.
46
+ attribute_map (dict): The key is attribute name
47
+ and the value is json key in definition.
48
+ """
49
+ swagger_types = {
50
+ }
51
+
52
+ attribute_map = {
53
+ }
54
+
55
+ def __init__(self): # noqa: E501
56
+ """V1CloudSpaceSourceType - a model defined in Swagger""" # noqa: E501
57
+ self.discriminator = None
58
+
59
+ def to_dict(self) -> dict:
60
+ """Returns the model properties as a dict"""
61
+ result = {}
62
+
63
+ for attr, _ in six.iteritems(self.swagger_types):
64
+ value = getattr(self, attr)
65
+ if isinstance(value, list):
66
+ result[attr] = list(map(
67
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
68
+ value
69
+ ))
70
+ elif hasattr(value, "to_dict"):
71
+ result[attr] = value.to_dict()
72
+ elif isinstance(value, dict):
73
+ result[attr] = dict(map(
74
+ lambda item: (item[0], item[1].to_dict())
75
+ if hasattr(item[1], "to_dict") else item,
76
+ value.items()
77
+ ))
78
+ else:
79
+ result[attr] = value
80
+ if issubclass(V1CloudSpaceSourceType, dict):
81
+ for key, value in self.items():
82
+ result[key] = value
83
+
84
+ return result
85
+
86
+ def to_str(self) -> str:
87
+ """Returns the string representation of the model"""
88
+ return pprint.pformat(self.to_dict())
89
+
90
+ def __repr__(self) -> str:
91
+ """For `print` and `pprint`"""
92
+ return self.to_str()
93
+
94
+ def __eq__(self, other: 'V1CloudSpaceSourceType') -> bool:
95
+ """Returns true if both objects are equal"""
96
+ if not isinstance(other, V1CloudSpaceSourceType):
97
+ return False
98
+
99
+ return self.__dict__ == other.__dict__
100
+
101
+ def __ne__(self, other: 'V1CloudSpaceSourceType') -> bool:
102
+ """Returns true if both objects are not equal"""
103
+ return not self == other
@@ -42,6 +42,7 @@ class V1ClusterTaggingOptions(object):
42
42
  """
43
43
  swagger_types = {
44
44
  'custom_tags': 'list[V1ClusterResourceTag]',
45
+ 'tag_bucket_objects': 'bool',
45
46
  'tag_instances_with_teamspace_name': 'bool',
46
47
  'tag_instances_with_username': 'bool',
47
48
  'tag_instances_with_workload_name': 'bool'
@@ -49,20 +50,24 @@ class V1ClusterTaggingOptions(object):
49
50
 
50
51
  attribute_map = {
51
52
  'custom_tags': 'customTags',
53
+ 'tag_bucket_objects': 'tagBucketObjects',
52
54
  'tag_instances_with_teamspace_name': 'tagInstancesWithTeamspaceName',
53
55
  'tag_instances_with_username': 'tagInstancesWithUsername',
54
56
  'tag_instances_with_workload_name': 'tagInstancesWithWorkloadName'
55
57
  }
56
58
 
57
- def __init__(self, custom_tags: 'list[V1ClusterResourceTag]' =None, tag_instances_with_teamspace_name: 'bool' =None, tag_instances_with_username: 'bool' =None, tag_instances_with_workload_name: 'bool' =None): # noqa: E501
59
+ def __init__(self, custom_tags: 'list[V1ClusterResourceTag]' =None, tag_bucket_objects: 'bool' =None, tag_instances_with_teamspace_name: 'bool' =None, tag_instances_with_username: 'bool' =None, tag_instances_with_workload_name: 'bool' =None): # noqa: E501
58
60
  """V1ClusterTaggingOptions - a model defined in Swagger""" # noqa: E501
59
61
  self._custom_tags = None
62
+ self._tag_bucket_objects = None
60
63
  self._tag_instances_with_teamspace_name = None
61
64
  self._tag_instances_with_username = None
62
65
  self._tag_instances_with_workload_name = None
63
66
  self.discriminator = None
64
67
  if custom_tags is not None:
65
68
  self.custom_tags = custom_tags
69
+ if tag_bucket_objects is not None:
70
+ self.tag_bucket_objects = tag_bucket_objects
66
71
  if tag_instances_with_teamspace_name is not None:
67
72
  self.tag_instances_with_teamspace_name = tag_instances_with_teamspace_name
68
73
  if tag_instances_with_username is not None:
@@ -91,6 +96,27 @@ class V1ClusterTaggingOptions(object):
91
96
 
92
97
  self._custom_tags = custom_tags
93
98
 
99
+ @property
100
+ def tag_bucket_objects(self) -> 'bool':
101
+ """Gets the tag_bucket_objects of this V1ClusterTaggingOptions. # noqa: E501
102
+
103
+
104
+ :return: The tag_bucket_objects of this V1ClusterTaggingOptions. # noqa: E501
105
+ :rtype: bool
106
+ """
107
+ return self._tag_bucket_objects
108
+
109
+ @tag_bucket_objects.setter
110
+ def tag_bucket_objects(self, tag_bucket_objects: 'bool'):
111
+ """Sets the tag_bucket_objects of this V1ClusterTaggingOptions.
112
+
113
+
114
+ :param tag_bucket_objects: The tag_bucket_objects of this V1ClusterTaggingOptions. # noqa: E501
115
+ :type: bool
116
+ """
117
+
118
+ self._tag_bucket_objects = tag_bucket_objects
119
+
94
120
  @property
95
121
  def tag_instances_with_teamspace_name(self) -> 'bool':
96
122
  """Gets the tag_instances_with_teamspace_name of this V1ClusterTaggingOptions. # noqa: E501
@@ -53,6 +53,7 @@ class V1CreateDeploymentRequest(object):
53
53
  'parameter_spec': 'V1ParameterizationSpec',
54
54
  'parent_template_id': 'str',
55
55
  'project_id': 'str',
56
+ 'recipients': 'V1DeploymentAlertingRecipients',
56
57
  'replicas': 'int',
57
58
  'spec': 'V1JobSpec',
58
59
  'strategy': 'V1DeploymentStrategy'
@@ -71,12 +72,13 @@ class V1CreateDeploymentRequest(object):
71
72
  'parameter_spec': 'parameterSpec',
72
73
  'parent_template_id': 'parentTemplateId',
73
74
  'project_id': 'projectId',
75
+ 'recipients': 'recipients',
74
76
  'replicas': 'replicas',
75
77
  'spec': 'spec',
76
78
  'strategy': 'strategy'
77
79
  }
78
80
 
79
- def __init__(self, api_standard: 'str' =None, apis: 'list[V1DeploymentAPI]' =None, autoscaling: 'V1AutoscalingSpec' =None, cloudspace_id: 'str' =None, cluster_id: 'str' =None, endpoint: 'V1Endpoint' =None, from_litserve: 'bool' =None, from_onboarding: 'bool' =None, name: 'str' =None, parameter_spec: 'V1ParameterizationSpec' =None, parent_template_id: 'str' =None, project_id: 'str' =None, replicas: 'int' =None, spec: 'V1JobSpec' =None, strategy: 'V1DeploymentStrategy' =None): # noqa: E501
81
+ def __init__(self, api_standard: 'str' =None, apis: 'list[V1DeploymentAPI]' =None, autoscaling: 'V1AutoscalingSpec' =None, cloudspace_id: 'str' =None, cluster_id: 'str' =None, endpoint: 'V1Endpoint' =None, from_litserve: 'bool' =None, from_onboarding: 'bool' =None, name: 'str' =None, parameter_spec: 'V1ParameterizationSpec' =None, parent_template_id: 'str' =None, project_id: 'str' =None, recipients: 'V1DeploymentAlertingRecipients' =None, replicas: 'int' =None, spec: 'V1JobSpec' =None, strategy: 'V1DeploymentStrategy' =None): # noqa: E501
80
82
  """V1CreateDeploymentRequest - a model defined in Swagger""" # noqa: E501
81
83
  self._api_standard = None
82
84
  self._apis = None
@@ -90,6 +92,7 @@ class V1CreateDeploymentRequest(object):
90
92
  self._parameter_spec = None
91
93
  self._parent_template_id = None
92
94
  self._project_id = None
95
+ self._recipients = None
93
96
  self._replicas = None
94
97
  self._spec = None
95
98
  self._strategy = None
@@ -118,6 +121,8 @@ class V1CreateDeploymentRequest(object):
118
121
  self.parent_template_id = parent_template_id
119
122
  if project_id is not None:
120
123
  self.project_id = project_id
124
+ if recipients is not None:
125
+ self.recipients = recipients
121
126
  if replicas is not None:
122
127
  self.replicas = replicas
123
128
  if spec is not None:
@@ -377,6 +382,27 @@ class V1CreateDeploymentRequest(object):
377
382
 
378
383
  self._project_id = project_id
379
384
 
385
+ @property
386
+ def recipients(self) -> 'V1DeploymentAlertingRecipients':
387
+ """Gets the recipients of this V1CreateDeploymentRequest. # noqa: E501
388
+
389
+
390
+ :return: The recipients of this V1CreateDeploymentRequest. # noqa: E501
391
+ :rtype: V1DeploymentAlertingRecipients
392
+ """
393
+ return self._recipients
394
+
395
+ @recipients.setter
396
+ def recipients(self, recipients: 'V1DeploymentAlertingRecipients'):
397
+ """Sets the recipients of this V1CreateDeploymentRequest.
398
+
399
+
400
+ :param recipients: The recipients of this V1CreateDeploymentRequest. # noqa: E501
401
+ :type: V1DeploymentAlertingRecipients
402
+ """
403
+
404
+ self._recipients = recipients
405
+
380
406
  @property
381
407
  def replicas(self) -> 'int':
382
408
  """Gets the replicas of this V1CreateDeploymentRequest. # noqa: E501
@@ -53,6 +53,7 @@ class V1DataConnection(object):
53
53
  'gcs_folder': 'V1GCSFolderDataConnection',
54
54
  'id': 'str',
55
55
  'index': 'V1Index',
56
+ 'is_cache': 'bool',
56
57
  'is_managed': 'bool',
57
58
  'lock_out': 'bool',
58
59
  'name': 'str',
@@ -83,6 +84,7 @@ class V1DataConnection(object):
83
84
  'gcs_folder': 'gcsFolder',
84
85
  'id': 'id',
85
86
  'index': 'index',
87
+ 'is_cache': 'isCache',
86
88
  'is_managed': 'isManaged',
87
89
  'lock_out': 'lockOut',
88
90
  'name': 'name',
@@ -100,7 +102,7 @@ class V1DataConnection(object):
100
102
  'writable': 'writable'
101
103
  }
102
104
 
103
- def __init__(self, access_cluster_ids: 'list[str]' =None, accessible: 'bool' =None, aws: 'V1AwsDataConnection' =None, cluster_id: 'str' =None, created_at: 'datetime' =None, efs: 'V1EfsConfig' =None, error: 'str' =None, filestore: 'V1FilestoreDataConnection' =None, gcp: 'V1GcpDataConnection' =None, gcs_folder: 'V1GCSFolderDataConnection' =None, id: 'str' =None, index: 'V1Index' =None, is_managed: 'bool' =None, lock_out: 'bool' =None, name: 'str' =None, number_of_files: 'str' =None, project_id: 'str' =None, r2: 'V1R2DataConnection' =None, run_cmds: 'list[str]' =None, s3_folder: 'V1S3FolderDataConnection' =None, snowflake: 'V1SnowflakeDataConnection' =None, state: 'V1DataConnectionState' =None, total_size_bytes: 'str' =None, type: 'str' =None, updated_at: 'datetime' =None, weka: 'V1WekaDataConnection' =None, writable: 'bool' =None): # noqa: E501
105
+ def __init__(self, access_cluster_ids: 'list[str]' =None, accessible: 'bool' =None, aws: 'V1AwsDataConnection' =None, cluster_id: 'str' =None, created_at: 'datetime' =None, efs: 'V1EfsConfig' =None, error: 'str' =None, filestore: 'V1FilestoreDataConnection' =None, gcp: 'V1GcpDataConnection' =None, gcs_folder: 'V1GCSFolderDataConnection' =None, id: 'str' =None, index: 'V1Index' =None, is_cache: 'bool' =None, is_managed: 'bool' =None, lock_out: 'bool' =None, name: 'str' =None, number_of_files: 'str' =None, project_id: 'str' =None, r2: 'V1R2DataConnection' =None, run_cmds: 'list[str]' =None, s3_folder: 'V1S3FolderDataConnection' =None, snowflake: 'V1SnowflakeDataConnection' =None, state: 'V1DataConnectionState' =None, total_size_bytes: 'str' =None, type: 'str' =None, updated_at: 'datetime' =None, weka: 'V1WekaDataConnection' =None, writable: 'bool' =None): # noqa: E501
104
106
  """V1DataConnection - a model defined in Swagger""" # noqa: E501
105
107
  self._access_cluster_ids = None
106
108
  self._accessible = None
@@ -114,6 +116,7 @@ class V1DataConnection(object):
114
116
  self._gcs_folder = None
115
117
  self._id = None
116
118
  self._index = None
119
+ self._is_cache = None
117
120
  self._is_managed = None
118
121
  self._lock_out = None
119
122
  self._name = None
@@ -154,6 +157,8 @@ class V1DataConnection(object):
154
157
  self.id = id
155
158
  if index is not None:
156
159
  self.index = index
160
+ if is_cache is not None:
161
+ self.is_cache = is_cache
157
162
  if is_managed is not None:
158
163
  self.is_managed = is_managed
159
164
  if lock_out is not None:
@@ -437,6 +442,27 @@ class V1DataConnection(object):
437
442
 
438
443
  self._index = index
439
444
 
445
+ @property
446
+ def is_cache(self) -> 'bool':
447
+ """Gets the is_cache of this V1DataConnection. # noqa: E501
448
+
449
+
450
+ :return: The is_cache of this V1DataConnection. # noqa: E501
451
+ :rtype: bool
452
+ """
453
+ return self._is_cache
454
+
455
+ @is_cache.setter
456
+ def is_cache(self, is_cache: 'bool'):
457
+ """Sets the is_cache of this V1DataConnection.
458
+
459
+
460
+ :param is_cache: The is_cache of this V1DataConnection. # noqa: E501
461
+ :type: bool
462
+ """
463
+
464
+ self._is_cache = is_cache
465
+
440
466
  @property
441
467
  def is_managed(self) -> 'bool':
442
468
  """Gets the is_managed of this V1DataConnection. # noqa: E501