lightning-sdk 0.2.19__py3-none-any.whl → 0.2.21__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 (62) hide show
  1. lightning_sdk/__init__.py +1 -1
  2. lightning_sdk/api/deployment_api.py +7 -2
  3. lightning_sdk/api/license_api.py +28 -6
  4. lightning_sdk/api/llm_api.py +118 -26
  5. lightning_sdk/api/studio_api.py +5 -0
  6. lightning_sdk/cli/configure.py +34 -27
  7. lightning_sdk/cli/connect.py +2 -2
  8. lightning_sdk/cli/deploy/_auth.py +11 -19
  9. lightning_sdk/cli/entrypoint.py +20 -2
  10. lightning_sdk/deployment/deployment.py +17 -3
  11. lightning_sdk/lightning_cloud/login.py +2 -2
  12. lightning_sdk/lightning_cloud/openapi/__init__.py +2 -3
  13. lightning_sdk/lightning_cloud/openapi/api/cluster_service_api.py +1 -5
  14. lightning_sdk/lightning_cloud/openapi/api/endpoint_service_api.py +11 -1
  15. lightning_sdk/lightning_cloud/openapi/api/jobs_service_api.py +121 -0
  16. lightning_sdk/lightning_cloud/openapi/api/user_service_api.py +0 -85
  17. lightning_sdk/lightning_cloud/openapi/models/__init__.py +2 -3
  18. lightning_sdk/lightning_cloud/openapi/models/alertingevents_id_body.py +409 -0
  19. lightning_sdk/lightning_cloud/openapi/models/id_codeconfig_body.py +29 -3
  20. lightning_sdk/lightning_cloud/openapi/models/update.py +105 -1
  21. lightning_sdk/lightning_cloud/openapi/models/v1_author.py +201 -0
  22. lightning_sdk/lightning_cloud/openapi/models/v1_blog_post.py +53 -1
  23. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space.py +27 -1
  24. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_template.py +53 -1
  25. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_template_config.py +27 -1
  26. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_deletion_options.py +27 -1
  27. lightning_sdk/lightning_cloud/openapi/models/v1_create_cloud_space_environment_template_request.py +105 -1
  28. lightning_sdk/lightning_cloud/openapi/models/v1_create_project_request.py +79 -1
  29. lightning_sdk/lightning_cloud/openapi/models/v1_data_connection.py +79 -1
  30. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_alerting_policy_type.py +1 -0
  31. lightning_sdk/lightning_cloud/openapi/models/v1_get_organization_storage_metadata_response.py +79 -1
  32. lightning_sdk/lightning_cloud/openapi/models/v1_get_project_storage_metadata_response.py +105 -1
  33. lightning_sdk/lightning_cloud/openapi/models/v1_get_user_response.py +79 -1
  34. lightning_sdk/lightning_cloud/openapi/models/v1_get_user_storage_breakdown_response.py +27 -1
  35. lightning_sdk/lightning_cloud/openapi/models/v1_membership.py +27 -1
  36. lightning_sdk/lightning_cloud/openapi/models/v1_message.py +53 -1
  37. lightning_sdk/lightning_cloud/openapi/models/v1_notification_type.py +1 -0
  38. lightning_sdk/lightning_cloud/openapi/models/v1_organization.py +105 -1
  39. lightning_sdk/lightning_cloud/openapi/models/v1_project_storage.py +131 -1
  40. lightning_sdk/lightning_cloud/openapi/models/v1_routing_telemetry.py +27 -1
  41. lightning_sdk/lightning_cloud/openapi/models/v1_storage_asset.py +27 -1
  42. lightning_sdk/lightning_cloud/openapi/models/v1_storage_asset_type.py +2 -0
  43. lightning_sdk/lightning_cloud/openapi/models/v1_transaction.py +27 -1
  44. lightning_sdk/lightning_cloud/openapi/models/v1_update_user_request.py +79 -1
  45. lightning_sdk/lightning_cloud/openapi/models/v1_usage.py +27 -27
  46. lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +79 -443
  47. lightning_sdk/lightning_cloud/openapi/models/v1_volume.py +499 -31
  48. lightning_sdk/lightning_cloud/rest_client.py +13 -11
  49. lightning_sdk/lightning_cloud/source_code/logs_socket_api.py +8 -3
  50. lightning_sdk/llm/llm.py +52 -1
  51. lightning_sdk/pipeline/pipeline.py +1 -1
  52. lightning_sdk/services/license.py +78 -22
  53. lightning_sdk/services/utilities.py +15 -1
  54. {lightning_sdk-0.2.19.dist-info → lightning_sdk-0.2.21.dist-info}/METADATA +1 -1
  55. {lightning_sdk-0.2.19.dist-info → lightning_sdk-0.2.21.dist-info}/RECORD +59 -60
  56. lightning_sdk/lightning_cloud/openapi/models/v1_ebs.py +0 -279
  57. lightning_sdk/lightning_cloud/openapi/models/v1_get_user_storage_response.py +0 -201
  58. lightning_sdk/lightning_cloud/openapi/models/v1_reservation_billing_session.py +0 -279
  59. {lightning_sdk-0.2.19.dist-info → lightning_sdk-0.2.21.dist-info}/LICENSE +0 -0
  60. {lightning_sdk-0.2.19.dist-info → lightning_sdk-0.2.21.dist-info}/WHEEL +0 -0
  61. {lightning_sdk-0.2.19.dist-info → lightning_sdk-0.2.21.dist-info}/entry_points.txt +0 -0
  62. {lightning_sdk-0.2.19.dist-info → lightning_sdk-0.2.21.dist-info}/top_level.txt +0 -0
@@ -43,7 +43,9 @@ class V1CloudSpaceEnvironmentTemplate(object):
43
43
  swagger_types = {
44
44
  'config': 'V1CloudSpaceEnvironmentTemplateConfig',
45
45
  'created_at': 'datetime',
46
+ 'description': 'str',
46
47
  'disabled': 'bool',
48
+ 'icon': 'str',
47
49
  'id': 'str',
48
50
  'managed': 'bool',
49
51
  'managed_id': 'str',
@@ -56,7 +58,9 @@ class V1CloudSpaceEnvironmentTemplate(object):
56
58
  attribute_map = {
57
59
  'config': 'config',
58
60
  'created_at': 'createdAt',
61
+ 'description': 'description',
59
62
  'disabled': 'disabled',
63
+ 'icon': 'icon',
60
64
  'id': 'id',
61
65
  'managed': 'managed',
62
66
  'managed_id': 'managedId',
@@ -66,11 +70,13 @@ class V1CloudSpaceEnvironmentTemplate(object):
66
70
  'user_id': 'userId'
67
71
  }
68
72
 
69
- def __init__(self, config: 'V1CloudSpaceEnvironmentTemplateConfig' =None, created_at: 'datetime' =None, disabled: 'bool' =None, id: 'str' =None, managed: 'bool' =None, managed_id: 'str' =None, name: 'str' =None, org_id: 'str' =None, updated_at: 'datetime' =None, user_id: 'str' =None): # noqa: E501
73
+ def __init__(self, config: 'V1CloudSpaceEnvironmentTemplateConfig' =None, created_at: 'datetime' =None, description: 'str' =None, disabled: 'bool' =None, icon: 'str' =None, id: 'str' =None, managed: 'bool' =None, managed_id: 'str' =None, name: 'str' =None, org_id: 'str' =None, updated_at: 'datetime' =None, user_id: 'str' =None): # noqa: E501
70
74
  """V1CloudSpaceEnvironmentTemplate - a model defined in Swagger""" # noqa: E501
71
75
  self._config = None
72
76
  self._created_at = None
77
+ self._description = None
73
78
  self._disabled = None
79
+ self._icon = None
74
80
  self._id = None
75
81
  self._managed = None
76
82
  self._managed_id = None
@@ -83,8 +89,12 @@ class V1CloudSpaceEnvironmentTemplate(object):
83
89
  self.config = config
84
90
  if created_at is not None:
85
91
  self.created_at = created_at
92
+ if description is not None:
93
+ self.description = description
86
94
  if disabled is not None:
87
95
  self.disabled = disabled
96
+ if icon is not None:
97
+ self.icon = icon
88
98
  if id is not None:
89
99
  self.id = id
90
100
  if managed is not None:
@@ -142,6 +152,27 @@ class V1CloudSpaceEnvironmentTemplate(object):
142
152
 
143
153
  self._created_at = created_at
144
154
 
155
+ @property
156
+ def description(self) -> 'str':
157
+ """Gets the description of this V1CloudSpaceEnvironmentTemplate. # noqa: E501
158
+
159
+
160
+ :return: The description of this V1CloudSpaceEnvironmentTemplate. # noqa: E501
161
+ :rtype: str
162
+ """
163
+ return self._description
164
+
165
+ @description.setter
166
+ def description(self, description: 'str'):
167
+ """Sets the description of this V1CloudSpaceEnvironmentTemplate.
168
+
169
+
170
+ :param description: The description of this V1CloudSpaceEnvironmentTemplate. # noqa: E501
171
+ :type: str
172
+ """
173
+
174
+ self._description = description
175
+
145
176
  @property
146
177
  def disabled(self) -> 'bool':
147
178
  """Gets the disabled of this V1CloudSpaceEnvironmentTemplate. # noqa: E501
@@ -163,6 +194,27 @@ class V1CloudSpaceEnvironmentTemplate(object):
163
194
 
164
195
  self._disabled = disabled
165
196
 
197
+ @property
198
+ def icon(self) -> 'str':
199
+ """Gets the icon of this V1CloudSpaceEnvironmentTemplate. # noqa: E501
200
+
201
+
202
+ :return: The icon of this V1CloudSpaceEnvironmentTemplate. # noqa: E501
203
+ :rtype: str
204
+ """
205
+ return self._icon
206
+
207
+ @icon.setter
208
+ def icon(self, icon: 'str'):
209
+ """Sets the icon of this V1CloudSpaceEnvironmentTemplate.
210
+
211
+
212
+ :param icon: The icon of this V1CloudSpaceEnvironmentTemplate. # noqa: E501
213
+ :type: str
214
+ """
215
+
216
+ self._icon = icon
217
+
166
218
  @property
167
219
  def id(self) -> 'str':
168
220
  """Gets the id of this V1CloudSpaceEnvironmentTemplate. # noqa: E501
@@ -44,6 +44,7 @@ class V1CloudSpaceEnvironmentTemplateConfig(object):
44
44
  'allowed_machines': 'list[str]',
45
45
  'default_machine': 'str',
46
46
  'environment_type': 'V1CloudSpaceEnvironmentType',
47
+ 'initial_setup_script_text': 'str',
47
48
  'machine_image_version': 'str',
48
49
  'plugins': 'list[str]',
49
50
  'setup_script_text': 'str'
@@ -53,16 +54,18 @@ class V1CloudSpaceEnvironmentTemplateConfig(object):
53
54
  'allowed_machines': 'allowedMachines',
54
55
  'default_machine': 'defaultMachine',
55
56
  'environment_type': 'environmentType',
57
+ 'initial_setup_script_text': 'initialSetupScriptText',
56
58
  'machine_image_version': 'machineImageVersion',
57
59
  'plugins': 'plugins',
58
60
  'setup_script_text': 'setupScriptText'
59
61
  }
60
62
 
61
- def __init__(self, allowed_machines: 'list[str]' =None, default_machine: 'str' =None, environment_type: 'V1CloudSpaceEnvironmentType' =None, machine_image_version: 'str' =None, plugins: 'list[str]' =None, setup_script_text: 'str' =None): # noqa: E501
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
62
64
  """V1CloudSpaceEnvironmentTemplateConfig - a model defined in Swagger""" # noqa: E501
63
65
  self._allowed_machines = None
64
66
  self._default_machine = None
65
67
  self._environment_type = None
68
+ self._initial_setup_script_text = None
66
69
  self._machine_image_version = None
67
70
  self._plugins = None
68
71
  self._setup_script_text = None
@@ -73,6 +76,8 @@ class V1CloudSpaceEnvironmentTemplateConfig(object):
73
76
  self.default_machine = default_machine
74
77
  if environment_type is not None:
75
78
  self.environment_type = environment_type
79
+ if initial_setup_script_text is not None:
80
+ self.initial_setup_script_text = initial_setup_script_text
76
81
  if machine_image_version is not None:
77
82
  self.machine_image_version = machine_image_version
78
83
  if plugins is not None:
@@ -143,6 +148,27 @@ class V1CloudSpaceEnvironmentTemplateConfig(object):
143
148
 
144
149
  self._environment_type = environment_type
145
150
 
151
+ @property
152
+ def initial_setup_script_text(self) -> 'str':
153
+ """Gets the initial_setup_script_text of this V1CloudSpaceEnvironmentTemplateConfig. # noqa: E501
154
+
155
+
156
+ :return: The initial_setup_script_text of this V1CloudSpaceEnvironmentTemplateConfig. # noqa: E501
157
+ :rtype: str
158
+ """
159
+ return self._initial_setup_script_text
160
+
161
+ @initial_setup_script_text.setter
162
+ def initial_setup_script_text(self, initial_setup_script_text: 'str'):
163
+ """Sets the initial_setup_script_text of this V1CloudSpaceEnvironmentTemplateConfig.
164
+
165
+
166
+ :param initial_setup_script_text: The initial_setup_script_text of this V1CloudSpaceEnvironmentTemplateConfig. # noqa: E501
167
+ :type: str
168
+ """
169
+
170
+ self._initial_setup_script_text = initial_setup_script_text
171
+
146
172
  @property
147
173
  def machine_image_version(self) -> 'str':
148
174
  """Gets the machine_image_version of this V1CloudSpaceEnvironmentTemplateConfig. # noqa: E501
@@ -42,21 +42,26 @@ class V1ClusterDeletionOptions(object):
42
42
  """
43
43
  swagger_types = {
44
44
  'delete_artifacts': 'bool',
45
+ 'delete_filesystems': 'bool',
45
46
  'delete_system_logs': 'bool'
46
47
  }
47
48
 
48
49
  attribute_map = {
49
50
  'delete_artifacts': 'deleteArtifacts',
51
+ 'delete_filesystems': 'deleteFilesystems',
50
52
  'delete_system_logs': 'deleteSystemLogs'
51
53
  }
52
54
 
53
- def __init__(self, delete_artifacts: 'bool' =None, delete_system_logs: 'bool' =None): # noqa: E501
55
+ def __init__(self, delete_artifacts: 'bool' =None, delete_filesystems: 'bool' =None, delete_system_logs: 'bool' =None): # noqa: E501
54
56
  """V1ClusterDeletionOptions - a model defined in Swagger""" # noqa: E501
55
57
  self._delete_artifacts = None
58
+ self._delete_filesystems = None
56
59
  self._delete_system_logs = None
57
60
  self.discriminator = None
58
61
  if delete_artifacts is not None:
59
62
  self.delete_artifacts = delete_artifacts
63
+ if delete_filesystems is not None:
64
+ self.delete_filesystems = delete_filesystems
60
65
  if delete_system_logs is not None:
61
66
  self.delete_system_logs = delete_system_logs
62
67
 
@@ -81,6 +86,27 @@ class V1ClusterDeletionOptions(object):
81
86
 
82
87
  self._delete_artifacts = delete_artifacts
83
88
 
89
+ @property
90
+ def delete_filesystems(self) -> 'bool':
91
+ """Gets the delete_filesystems of this V1ClusterDeletionOptions. # noqa: E501
92
+
93
+
94
+ :return: The delete_filesystems of this V1ClusterDeletionOptions. # noqa: E501
95
+ :rtype: bool
96
+ """
97
+ return self._delete_filesystems
98
+
99
+ @delete_filesystems.setter
100
+ def delete_filesystems(self, delete_filesystems: 'bool'):
101
+ """Sets the delete_filesystems of this V1ClusterDeletionOptions.
102
+
103
+
104
+ :param delete_filesystems: The delete_filesystems of this V1ClusterDeletionOptions. # noqa: E501
105
+ :type: bool
106
+ """
107
+
108
+ self._delete_filesystems = delete_filesystems
109
+
84
110
  @property
85
111
  def delete_system_logs(self) -> 'bool':
86
112
  """Gets the delete_system_logs of this V1ClusterDeletionOptions. # noqa: E501
@@ -43,45 +43,65 @@ class V1CreateCloudSpaceEnvironmentTemplateRequest(object):
43
43
  swagger_types = {
44
44
  'allowed_machines': 'list[str]',
45
45
  'default_machine': 'str',
46
+ 'description': 'str',
46
47
  'environment_type': 'V1CloudSpaceEnvironmentType',
48
+ 'icon': 'str',
49
+ 'initial_setup_script_text': 'str',
47
50
  'machine_image_version': 'str',
48
51
  'name': 'str',
49
52
  'org_id': 'str',
53
+ 'plugins': 'list[str]',
50
54
  'setup_script_text': 'str'
51
55
  }
52
56
 
53
57
  attribute_map = {
54
58
  'allowed_machines': 'allowedMachines',
55
59
  'default_machine': 'defaultMachine',
60
+ 'description': 'description',
56
61
  'environment_type': 'environmentType',
62
+ 'icon': 'icon',
63
+ 'initial_setup_script_text': 'initialSetupScriptText',
57
64
  'machine_image_version': 'machineImageVersion',
58
65
  'name': 'name',
59
66
  'org_id': 'orgId',
67
+ 'plugins': 'plugins',
60
68
  'setup_script_text': 'setupScriptText'
61
69
  }
62
70
 
63
- def __init__(self, allowed_machines: 'list[str]' =None, default_machine: 'str' =None, environment_type: 'V1CloudSpaceEnvironmentType' =None, machine_image_version: 'str' =None, name: 'str' =None, org_id: 'str' =None, setup_script_text: 'str' =None): # noqa: E501
71
+ def __init__(self, allowed_machines: 'list[str]' =None, default_machine: 'str' =None, description: 'str' =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
64
72
  """V1CreateCloudSpaceEnvironmentTemplateRequest - a model defined in Swagger""" # noqa: E501
65
73
  self._allowed_machines = None
66
74
  self._default_machine = None
75
+ self._description = None
67
76
  self._environment_type = None
77
+ self._icon = None
78
+ self._initial_setup_script_text = None
68
79
  self._machine_image_version = None
69
80
  self._name = None
70
81
  self._org_id = None
82
+ self._plugins = None
71
83
  self._setup_script_text = None
72
84
  self.discriminator = None
73
85
  if allowed_machines is not None:
74
86
  self.allowed_machines = allowed_machines
75
87
  if default_machine is not None:
76
88
  self.default_machine = default_machine
89
+ if description is not None:
90
+ self.description = description
77
91
  if environment_type is not None:
78
92
  self.environment_type = environment_type
93
+ if icon is not None:
94
+ self.icon = icon
95
+ if initial_setup_script_text is not None:
96
+ self.initial_setup_script_text = initial_setup_script_text
79
97
  if machine_image_version is not None:
80
98
  self.machine_image_version = machine_image_version
81
99
  if name is not None:
82
100
  self.name = name
83
101
  if org_id is not None:
84
102
  self.org_id = org_id
103
+ if plugins is not None:
104
+ self.plugins = plugins
85
105
  if setup_script_text is not None:
86
106
  self.setup_script_text = setup_script_text
87
107
 
@@ -127,6 +147,27 @@ class V1CreateCloudSpaceEnvironmentTemplateRequest(object):
127
147
 
128
148
  self._default_machine = default_machine
129
149
 
150
+ @property
151
+ def description(self) -> 'str':
152
+ """Gets the description of this V1CreateCloudSpaceEnvironmentTemplateRequest. # noqa: E501
153
+
154
+
155
+ :return: The description of this V1CreateCloudSpaceEnvironmentTemplateRequest. # noqa: E501
156
+ :rtype: str
157
+ """
158
+ return self._description
159
+
160
+ @description.setter
161
+ def description(self, description: 'str'):
162
+ """Sets the description of this V1CreateCloudSpaceEnvironmentTemplateRequest.
163
+
164
+
165
+ :param description: The description of this V1CreateCloudSpaceEnvironmentTemplateRequest. # noqa: E501
166
+ :type: str
167
+ """
168
+
169
+ self._description = description
170
+
130
171
  @property
131
172
  def environment_type(self) -> 'V1CloudSpaceEnvironmentType':
132
173
  """Gets the environment_type of this V1CreateCloudSpaceEnvironmentTemplateRequest. # noqa: E501
@@ -148,6 +189,48 @@ class V1CreateCloudSpaceEnvironmentTemplateRequest(object):
148
189
 
149
190
  self._environment_type = environment_type
150
191
 
192
+ @property
193
+ def icon(self) -> 'str':
194
+ """Gets the icon of this V1CreateCloudSpaceEnvironmentTemplateRequest. # noqa: E501
195
+
196
+
197
+ :return: The icon of this V1CreateCloudSpaceEnvironmentTemplateRequest. # noqa: E501
198
+ :rtype: str
199
+ """
200
+ return self._icon
201
+
202
+ @icon.setter
203
+ def icon(self, icon: 'str'):
204
+ """Sets the icon of this V1CreateCloudSpaceEnvironmentTemplateRequest.
205
+
206
+
207
+ :param icon: The icon of this V1CreateCloudSpaceEnvironmentTemplateRequest. # noqa: E501
208
+ :type: str
209
+ """
210
+
211
+ self._icon = icon
212
+
213
+ @property
214
+ def initial_setup_script_text(self) -> 'str':
215
+ """Gets the initial_setup_script_text of this V1CreateCloudSpaceEnvironmentTemplateRequest. # noqa: E501
216
+
217
+
218
+ :return: The initial_setup_script_text of this V1CreateCloudSpaceEnvironmentTemplateRequest. # noqa: E501
219
+ :rtype: str
220
+ """
221
+ return self._initial_setup_script_text
222
+
223
+ @initial_setup_script_text.setter
224
+ def initial_setup_script_text(self, initial_setup_script_text: 'str'):
225
+ """Sets the initial_setup_script_text of this V1CreateCloudSpaceEnvironmentTemplateRequest.
226
+
227
+
228
+ :param initial_setup_script_text: The initial_setup_script_text of this V1CreateCloudSpaceEnvironmentTemplateRequest. # noqa: E501
229
+ :type: str
230
+ """
231
+
232
+ self._initial_setup_script_text = initial_setup_script_text
233
+
151
234
  @property
152
235
  def machine_image_version(self) -> 'str':
153
236
  """Gets the machine_image_version of this V1CreateCloudSpaceEnvironmentTemplateRequest. # noqa: E501
@@ -211,6 +294,27 @@ class V1CreateCloudSpaceEnvironmentTemplateRequest(object):
211
294
 
212
295
  self._org_id = org_id
213
296
 
297
+ @property
298
+ def plugins(self) -> 'list[str]':
299
+ """Gets the plugins of this V1CreateCloudSpaceEnvironmentTemplateRequest. # noqa: E501
300
+
301
+
302
+ :return: The plugins of this V1CreateCloudSpaceEnvironmentTemplateRequest. # noqa: E501
303
+ :rtype: list[str]
304
+ """
305
+ return self._plugins
306
+
307
+ @plugins.setter
308
+ def plugins(self, plugins: 'list[str]'):
309
+ """Sets the plugins of this V1CreateCloudSpaceEnvironmentTemplateRequest.
310
+
311
+
312
+ :param plugins: The plugins of this V1CreateCloudSpaceEnvironmentTemplateRequest. # noqa: E501
313
+ :type: list[str]
314
+ """
315
+
316
+ self._plugins = plugins
317
+
214
318
  @property
215
319
  def setup_script_text(self) -> 'str':
216
320
  """Gets the setup_script_text of this V1CreateCloudSpaceEnvironmentTemplateRequest. # noqa: E501
@@ -41,6 +41,9 @@ class V1CreateProjectRequest(object):
41
41
  and the value is json key in definition.
42
42
  """
43
43
  swagger_types = {
44
+ 'allow_credits_auto_replenish': 'bool',
45
+ 'auto_replenish_amount': 'float',
46
+ 'auto_replenish_threshold': 'float',
44
47
  'default_machine_image_version': 'str',
45
48
  'default_machine_type': 'str',
46
49
  'description': 'str',
@@ -52,6 +55,9 @@ class V1CreateProjectRequest(object):
52
55
  }
53
56
 
54
57
  attribute_map = {
58
+ 'allow_credits_auto_replenish': 'allowCreditsAutoReplenish',
59
+ 'auto_replenish_amount': 'autoReplenishAmount',
60
+ 'auto_replenish_threshold': 'autoReplenishThreshold',
55
61
  'default_machine_image_version': 'defaultMachineImageVersion',
56
62
  'default_machine_type': 'defaultMachineType',
57
63
  'description': 'description',
@@ -62,8 +68,11 @@ class V1CreateProjectRequest(object):
62
68
  'quotas': 'quotas'
63
69
  }
64
70
 
65
- def __init__(self, default_machine_image_version: 'str' =None, default_machine_type: 'str' =None, description: 'str' =None, display_name: 'str' =None, name: 'str' =None, organization_id: 'str' =None, preferred_cluster: 'str' =None, quotas: 'V1Quotas' =None): # noqa: E501
71
+ def __init__(self, allow_credits_auto_replenish: 'bool' =None, auto_replenish_amount: 'float' =None, auto_replenish_threshold: 'float' =None, default_machine_image_version: 'str' =None, default_machine_type: 'str' =None, description: 'str' =None, display_name: 'str' =None, name: 'str' =None, organization_id: 'str' =None, preferred_cluster: 'str' =None, quotas: 'V1Quotas' =None): # noqa: E501
66
72
  """V1CreateProjectRequest - a model defined in Swagger""" # noqa: E501
73
+ self._allow_credits_auto_replenish = None
74
+ self._auto_replenish_amount = None
75
+ self._auto_replenish_threshold = None
67
76
  self._default_machine_image_version = None
68
77
  self._default_machine_type = None
69
78
  self._description = None
@@ -73,6 +82,12 @@ class V1CreateProjectRequest(object):
73
82
  self._preferred_cluster = None
74
83
  self._quotas = None
75
84
  self.discriminator = None
85
+ if allow_credits_auto_replenish is not None:
86
+ self.allow_credits_auto_replenish = allow_credits_auto_replenish
87
+ if auto_replenish_amount is not None:
88
+ self.auto_replenish_amount = auto_replenish_amount
89
+ if auto_replenish_threshold is not None:
90
+ self.auto_replenish_threshold = auto_replenish_threshold
76
91
  if default_machine_image_version is not None:
77
92
  self.default_machine_image_version = default_machine_image_version
78
93
  if default_machine_type is not None:
@@ -90,6 +105,69 @@ class V1CreateProjectRequest(object):
90
105
  if quotas is not None:
91
106
  self.quotas = quotas
92
107
 
108
+ @property
109
+ def allow_credits_auto_replenish(self) -> 'bool':
110
+ """Gets the allow_credits_auto_replenish of this V1CreateProjectRequest. # noqa: E501
111
+
112
+
113
+ :return: The allow_credits_auto_replenish of this V1CreateProjectRequest. # noqa: E501
114
+ :rtype: bool
115
+ """
116
+ return self._allow_credits_auto_replenish
117
+
118
+ @allow_credits_auto_replenish.setter
119
+ def allow_credits_auto_replenish(self, allow_credits_auto_replenish: 'bool'):
120
+ """Sets the allow_credits_auto_replenish of this V1CreateProjectRequest.
121
+
122
+
123
+ :param allow_credits_auto_replenish: The allow_credits_auto_replenish of this V1CreateProjectRequest. # noqa: E501
124
+ :type: bool
125
+ """
126
+
127
+ self._allow_credits_auto_replenish = allow_credits_auto_replenish
128
+
129
+ @property
130
+ def auto_replenish_amount(self) -> 'float':
131
+ """Gets the auto_replenish_amount of this V1CreateProjectRequest. # noqa: E501
132
+
133
+
134
+ :return: The auto_replenish_amount of this V1CreateProjectRequest. # noqa: E501
135
+ :rtype: float
136
+ """
137
+ return self._auto_replenish_amount
138
+
139
+ @auto_replenish_amount.setter
140
+ def auto_replenish_amount(self, auto_replenish_amount: 'float'):
141
+ """Sets the auto_replenish_amount of this V1CreateProjectRequest.
142
+
143
+
144
+ :param auto_replenish_amount: The auto_replenish_amount of this V1CreateProjectRequest. # noqa: E501
145
+ :type: float
146
+ """
147
+
148
+ self._auto_replenish_amount = auto_replenish_amount
149
+
150
+ @property
151
+ def auto_replenish_threshold(self) -> 'float':
152
+ """Gets the auto_replenish_threshold of this V1CreateProjectRequest. # noqa: E501
153
+
154
+
155
+ :return: The auto_replenish_threshold of this V1CreateProjectRequest. # noqa: E501
156
+ :rtype: float
157
+ """
158
+ return self._auto_replenish_threshold
159
+
160
+ @auto_replenish_threshold.setter
161
+ def auto_replenish_threshold(self, auto_replenish_threshold: 'float'):
162
+ """Sets the auto_replenish_threshold of this V1CreateProjectRequest.
163
+
164
+
165
+ :param auto_replenish_threshold: The auto_replenish_threshold of this V1CreateProjectRequest. # noqa: E501
166
+ :type: float
167
+ """
168
+
169
+ self._auto_replenish_threshold = auto_replenish_threshold
170
+
93
171
  @property
94
172
  def default_machine_image_version(self) -> 'str':
95
173
  """Gets the default_machine_image_version of this V1CreateProjectRequest. # noqa: E501
@@ -53,6 +53,7 @@ class V1DataConnection(object):
53
53
  'gcs_folder': 'V1GCSFolderDataConnection',
54
54
  'id': 'str',
55
55
  'index': 'V1Index',
56
+ 'is_billable_folder': 'bool',
56
57
  'is_cache': 'bool',
57
58
  'is_managed': 'bool',
58
59
  'lock_out': 'bool',
@@ -64,6 +65,8 @@ class V1DataConnection(object):
64
65
  's3_folder': 'V1S3FolderDataConnection',
65
66
  'snowflake': 'V1SnowflakeDataConnection',
66
67
  'state': 'V1DataConnectionState',
68
+ 'total_daily_read_bytes': 'str',
69
+ 'total_daily_write_bytes': 'str',
67
70
  'total_size_bytes': 'str',
68
71
  'type': 'str',
69
72
  'updated_at': 'datetime',
@@ -84,6 +87,7 @@ class V1DataConnection(object):
84
87
  'gcs_folder': 'gcsFolder',
85
88
  'id': 'id',
86
89
  'index': 'index',
90
+ 'is_billable_folder': 'isBillableFolder',
87
91
  'is_cache': 'isCache',
88
92
  'is_managed': 'isManaged',
89
93
  'lock_out': 'lockOut',
@@ -95,6 +99,8 @@ class V1DataConnection(object):
95
99
  's3_folder': 's3Folder',
96
100
  'snowflake': 'snowflake',
97
101
  'state': 'state',
102
+ 'total_daily_read_bytes': 'totalDailyReadBytes',
103
+ 'total_daily_write_bytes': 'totalDailyWriteBytes',
98
104
  'total_size_bytes': 'totalSizeBytes',
99
105
  'type': 'type',
100
106
  'updated_at': 'updatedAt',
@@ -102,7 +108,7 @@ class V1DataConnection(object):
102
108
  'writable': 'writable'
103
109
  }
104
110
 
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
111
+ 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_billable_folder: 'bool' =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_daily_read_bytes: 'str' =None, total_daily_write_bytes: 'str' =None, total_size_bytes: 'str' =None, type: 'str' =None, updated_at: 'datetime' =None, weka: 'V1WekaDataConnection' =None, writable: 'bool' =None): # noqa: E501
106
112
  """V1DataConnection - a model defined in Swagger""" # noqa: E501
107
113
  self._access_cluster_ids = None
108
114
  self._accessible = None
@@ -116,6 +122,7 @@ class V1DataConnection(object):
116
122
  self._gcs_folder = None
117
123
  self._id = None
118
124
  self._index = None
125
+ self._is_billable_folder = None
119
126
  self._is_cache = None
120
127
  self._is_managed = None
121
128
  self._lock_out = None
@@ -127,6 +134,8 @@ class V1DataConnection(object):
127
134
  self._s3_folder = None
128
135
  self._snowflake = None
129
136
  self._state = None
137
+ self._total_daily_read_bytes = None
138
+ self._total_daily_write_bytes = None
130
139
  self._total_size_bytes = None
131
140
  self._type = None
132
141
  self._updated_at = None
@@ -157,6 +166,8 @@ class V1DataConnection(object):
157
166
  self.id = id
158
167
  if index is not None:
159
168
  self.index = index
169
+ if is_billable_folder is not None:
170
+ self.is_billable_folder = is_billable_folder
160
171
  if is_cache is not None:
161
172
  self.is_cache = is_cache
162
173
  if is_managed is not None:
@@ -179,6 +190,10 @@ class V1DataConnection(object):
179
190
  self.snowflake = snowflake
180
191
  if state is not None:
181
192
  self.state = state
193
+ if total_daily_read_bytes is not None:
194
+ self.total_daily_read_bytes = total_daily_read_bytes
195
+ if total_daily_write_bytes is not None:
196
+ self.total_daily_write_bytes = total_daily_write_bytes
182
197
  if total_size_bytes is not None:
183
198
  self.total_size_bytes = total_size_bytes
184
199
  if type is not None:
@@ -442,6 +457,27 @@ class V1DataConnection(object):
442
457
 
443
458
  self._index = index
444
459
 
460
+ @property
461
+ def is_billable_folder(self) -> 'bool':
462
+ """Gets the is_billable_folder of this V1DataConnection. # noqa: E501
463
+
464
+
465
+ :return: The is_billable_folder of this V1DataConnection. # noqa: E501
466
+ :rtype: bool
467
+ """
468
+ return self._is_billable_folder
469
+
470
+ @is_billable_folder.setter
471
+ def is_billable_folder(self, is_billable_folder: 'bool'):
472
+ """Sets the is_billable_folder of this V1DataConnection.
473
+
474
+
475
+ :param is_billable_folder: The is_billable_folder of this V1DataConnection. # noqa: E501
476
+ :type: bool
477
+ """
478
+
479
+ self._is_billable_folder = is_billable_folder
480
+
445
481
  @property
446
482
  def is_cache(self) -> 'bool':
447
483
  """Gets the is_cache of this V1DataConnection. # noqa: E501
@@ -673,6 +709,48 @@ class V1DataConnection(object):
673
709
 
674
710
  self._state = state
675
711
 
712
+ @property
713
+ def total_daily_read_bytes(self) -> 'str':
714
+ """Gets the total_daily_read_bytes of this V1DataConnection. # noqa: E501
715
+
716
+
717
+ :return: The total_daily_read_bytes of this V1DataConnection. # noqa: E501
718
+ :rtype: str
719
+ """
720
+ return self._total_daily_read_bytes
721
+
722
+ @total_daily_read_bytes.setter
723
+ def total_daily_read_bytes(self, total_daily_read_bytes: 'str'):
724
+ """Sets the total_daily_read_bytes of this V1DataConnection.
725
+
726
+
727
+ :param total_daily_read_bytes: The total_daily_read_bytes of this V1DataConnection. # noqa: E501
728
+ :type: str
729
+ """
730
+
731
+ self._total_daily_read_bytes = total_daily_read_bytes
732
+
733
+ @property
734
+ def total_daily_write_bytes(self) -> 'str':
735
+ """Gets the total_daily_write_bytes of this V1DataConnection. # noqa: E501
736
+
737
+
738
+ :return: The total_daily_write_bytes of this V1DataConnection. # noqa: E501
739
+ :rtype: str
740
+ """
741
+ return self._total_daily_write_bytes
742
+
743
+ @total_daily_write_bytes.setter
744
+ def total_daily_write_bytes(self, total_daily_write_bytes: 'str'):
745
+ """Sets the total_daily_write_bytes of this V1DataConnection.
746
+
747
+
748
+ :param total_daily_write_bytes: The total_daily_write_bytes of this V1DataConnection. # noqa: E501
749
+ :type: str
750
+ """
751
+
752
+ self._total_daily_write_bytes = total_daily_write_bytes
753
+
676
754
  @property
677
755
  def total_size_bytes(self) -> 'str':
678
756
  """Gets the total_size_bytes of this V1DataConnection. # noqa: E501
@@ -47,6 +47,7 @@ class V1DeploymentAlertingPolicyType(object):
47
47
  STATUSCODES1XX = "StatusCodes1xx"
48
48
  THROUGHPUT = "Throughput"
49
49
  LATENCYQ95 = "LatencyQ95"
50
+ DEPLOYMENTSUSPENDED = "DeploymentSuspended"
50
51
  """
51
52
  Attributes:
52
53
  swagger_types (dict): The key is attribute name