lightning-sdk 0.2.15__py3-none-any.whl → 0.2.16__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (74) 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 +24 -5
  5. lightning_sdk/api/studio_api.py +3 -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 +18 -0
  20. lightning_sdk/lightning_cloud/openapi/api/assistants_service_api.py +121 -0
  21. lightning_sdk/lightning_cloud/openapi/api/cloud_space_service_api.py +105 -0
  22. lightning_sdk/lightning_cloud/openapi/api/cluster_service_api.py +105 -0
  23. lightning_sdk/lightning_cloud/openapi/api/jobs_service_api.py +747 -105
  24. lightning_sdk/lightning_cloud/openapi/api/storage_service_api.py +93 -0
  25. lightning_sdk/lightning_cloud/openapi/models/__init__.py +18 -0
  26. lightning_sdk/lightning_cloud/openapi/models/assistant_id_conversations_body.py +27 -1
  27. lightning_sdk/lightning_cloud/openapi/models/cloudspaces_id_body.py +53 -1
  28. lightning_sdk/lightning_cloud/openapi/models/deployment_id_alertingpolicies_body.py +331 -0
  29. lightning_sdk/lightning_cloud/openapi/models/deployment_id_alertingpolicies_body1.py +305 -0
  30. lightning_sdk/lightning_cloud/openapi/models/deployments_id_body.py +53 -1
  31. lightning_sdk/lightning_cloud/openapi/models/models_id_body.py +123 -0
  32. lightning_sdk/lightning_cloud/openapi/models/orgs_id_body.py +105 -1
  33. lightning_sdk/lightning_cloud/openapi/models/project_id_cloudspaces_body.py +27 -1
  34. lightning_sdk/lightning_cloud/openapi/models/projects_id_body.py +29 -3
  35. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space.py +53 -1
  36. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_source_type.py +103 -0
  37. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_tagging_options.py +27 -1
  38. lightning_sdk/lightning_cloud/openapi/models/v1_delete_deployment_alerting_policy_response.py +175 -0
  39. lightning_sdk/lightning_cloud/openapi/models/v1_deployment.py +53 -1
  40. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_alerting_event.py +487 -0
  41. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_alerting_policy.py +383 -0
  42. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_alerting_policy_frequency.py +105 -0
  43. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_alerting_policy_operation.py +105 -0
  44. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_alerting_policy_severity.py +106 -0
  45. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_alerting_policy_type.py +111 -0
  46. lightning_sdk/lightning_cloud/openapi/models/v1_ge_list_deployment_routing_telemetry_response.py +27 -1
  47. lightning_sdk/lightning_cloud/openapi/models/v1_get_cloud_space_instance_open_ports_response.py +123 -0
  48. lightning_sdk/lightning_cloud/openapi/models/v1_get_deployment_routing_telemetry_content_response.py +123 -0
  49. lightning_sdk/lightning_cloud/openapi/models/v1_get_organization_storage_metadata_response.py +331 -0
  50. lightning_sdk/lightning_cloud/openapi/models/v1_get_user_response.py +1 -27
  51. lightning_sdk/lightning_cloud/openapi/models/v1_google_cloud_direct_v1.py +27 -1
  52. lightning_sdk/lightning_cloud/openapi/models/v1_list_deployment_alerting_events_response.py +123 -0
  53. lightning_sdk/lightning_cloud/openapi/models/v1_list_deployment_alerting_policies_response.py +175 -0
  54. lightning_sdk/lightning_cloud/openapi/models/v1_membership.py +27 -1
  55. lightning_sdk/lightning_cloud/openapi/models/v1_organization.py +105 -1
  56. lightning_sdk/lightning_cloud/openapi/models/v1_project.py +27 -1
  57. lightning_sdk/lightning_cloud/openapi/models/v1_project_membership.py +27 -1
  58. lightning_sdk/lightning_cloud/openapi/models/v1_project_settings.py +29 -3
  59. lightning_sdk/lightning_cloud/openapi/models/v1_project_storage.py +53 -1
  60. lightning_sdk/lightning_cloud/openapi/models/v1_routing_telemetry.py +253 -0
  61. lightning_sdk/lightning_cloud/openapi/models/v1_server_alert_type.py +1 -0
  62. lightning_sdk/lightning_cloud/openapi/models/v1_sleep_server_response.py +97 -0
  63. lightning_sdk/lightning_cloud/openapi/models/v1_update_user_request.py +1 -27
  64. lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +79 -27
  65. lightning_sdk/lightning_cloud/openapi/models/v1_user_requested_compute_config.py +27 -1
  66. lightning_sdk/llm/llm.py +52 -8
  67. lightning_sdk/studio.py +32 -1
  68. lightning_sdk/teamspace.py +68 -0
  69. {lightning_sdk-0.2.15.dist-info → lightning_sdk-0.2.16.dist-info}/METADATA +1 -1
  70. {lightning_sdk-0.2.15.dist-info → lightning_sdk-0.2.16.dist-info}/RECORD +74 -53
  71. {lightning_sdk-0.2.15.dist-info → lightning_sdk-0.2.16.dist-info}/LICENSE +0 -0
  72. {lightning_sdk-0.2.15.dist-info → lightning_sdk-0.2.16.dist-info}/WHEEL +0 -0
  73. {lightning_sdk-0.2.15.dist-info → lightning_sdk-0.2.16.dist-info}/entry_points.txt +0 -0
  74. {lightning_sdk-0.2.15.dist-info → lightning_sdk-0.2.16.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,331 @@
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 V1GetOrganizationStorageMetadataResponse(object):
32
+ """NOTE: This class is auto generated by the swagger code generator program.
33
+
34
+ Do not edit the class manually.
35
+ """
36
+ """
37
+ Attributes:
38
+ swagger_types (dict): The key is attribute name
39
+ and the value is attribute type.
40
+ attribute_map (dict): The key is attribute name
41
+ and the value is json key in definition.
42
+ """
43
+ swagger_types = {
44
+ 'account_limit_bytes': 'str',
45
+ 'id': 'str',
46
+ 'project_metadata': 'list[V1ProjectStorage]',
47
+ 'total_billable_bytes': 'str',
48
+ 'total_cloudspace_storage_bytes': 'str',
49
+ 'total_data_connection_storage_bytes': 'str',
50
+ 'total_job_storage_bytes': 'str',
51
+ 'total_storage_bytes': 'str',
52
+ 'total_upload_storage_bytes': 'str'
53
+ }
54
+
55
+ attribute_map = {
56
+ 'account_limit_bytes': 'accountLimitBytes',
57
+ 'id': 'id',
58
+ 'project_metadata': 'projectMetadata',
59
+ 'total_billable_bytes': 'totalBillableBytes',
60
+ 'total_cloudspace_storage_bytes': 'totalCloudspaceStorageBytes',
61
+ 'total_data_connection_storage_bytes': 'totalDataConnectionStorageBytes',
62
+ 'total_job_storage_bytes': 'totalJobStorageBytes',
63
+ 'total_storage_bytes': 'totalStorageBytes',
64
+ 'total_upload_storage_bytes': 'totalUploadStorageBytes'
65
+ }
66
+
67
+ def __init__(self, account_limit_bytes: 'str' =None, id: 'str' =None, project_metadata: 'list[V1ProjectStorage]' =None, total_billable_bytes: 'str' =None, total_cloudspace_storage_bytes: 'str' =None, total_data_connection_storage_bytes: 'str' =None, total_job_storage_bytes: 'str' =None, total_storage_bytes: 'str' =None, total_upload_storage_bytes: 'str' =None): # noqa: E501
68
+ """V1GetOrganizationStorageMetadataResponse - a model defined in Swagger""" # noqa: E501
69
+ self._account_limit_bytes = None
70
+ self._id = None
71
+ self._project_metadata = None
72
+ self._total_billable_bytes = None
73
+ self._total_cloudspace_storage_bytes = None
74
+ self._total_data_connection_storage_bytes = None
75
+ self._total_job_storage_bytes = None
76
+ self._total_storage_bytes = None
77
+ self._total_upload_storage_bytes = None
78
+ self.discriminator = None
79
+ if account_limit_bytes is not None:
80
+ self.account_limit_bytes = account_limit_bytes
81
+ if id is not None:
82
+ self.id = id
83
+ if project_metadata is not None:
84
+ self.project_metadata = project_metadata
85
+ if total_billable_bytes is not None:
86
+ self.total_billable_bytes = total_billable_bytes
87
+ if total_cloudspace_storage_bytes is not None:
88
+ self.total_cloudspace_storage_bytes = total_cloudspace_storage_bytes
89
+ if total_data_connection_storage_bytes is not None:
90
+ self.total_data_connection_storage_bytes = total_data_connection_storage_bytes
91
+ if total_job_storage_bytes is not None:
92
+ self.total_job_storage_bytes = total_job_storage_bytes
93
+ if total_storage_bytes is not None:
94
+ self.total_storage_bytes = total_storage_bytes
95
+ if total_upload_storage_bytes is not None:
96
+ self.total_upload_storage_bytes = total_upload_storage_bytes
97
+
98
+ @property
99
+ def account_limit_bytes(self) -> 'str':
100
+ """Gets the account_limit_bytes of this V1GetOrganizationStorageMetadataResponse. # noqa: E501
101
+
102
+
103
+ :return: The account_limit_bytes of this V1GetOrganizationStorageMetadataResponse. # noqa: E501
104
+ :rtype: str
105
+ """
106
+ return self._account_limit_bytes
107
+
108
+ @account_limit_bytes.setter
109
+ def account_limit_bytes(self, account_limit_bytes: 'str'):
110
+ """Sets the account_limit_bytes of this V1GetOrganizationStorageMetadataResponse.
111
+
112
+
113
+ :param account_limit_bytes: The account_limit_bytes of this V1GetOrganizationStorageMetadataResponse. # noqa: E501
114
+ :type: str
115
+ """
116
+
117
+ self._account_limit_bytes = account_limit_bytes
118
+
119
+ @property
120
+ def id(self) -> 'str':
121
+ """Gets the id of this V1GetOrganizationStorageMetadataResponse. # noqa: E501
122
+
123
+
124
+ :return: The id of this V1GetOrganizationStorageMetadataResponse. # noqa: E501
125
+ :rtype: str
126
+ """
127
+ return self._id
128
+
129
+ @id.setter
130
+ def id(self, id: 'str'):
131
+ """Sets the id of this V1GetOrganizationStorageMetadataResponse.
132
+
133
+
134
+ :param id: The id of this V1GetOrganizationStorageMetadataResponse. # noqa: E501
135
+ :type: str
136
+ """
137
+
138
+ self._id = id
139
+
140
+ @property
141
+ def project_metadata(self) -> 'list[V1ProjectStorage]':
142
+ """Gets the project_metadata of this V1GetOrganizationStorageMetadataResponse. # noqa: E501
143
+
144
+
145
+ :return: The project_metadata of this V1GetOrganizationStorageMetadataResponse. # noqa: E501
146
+ :rtype: list[V1ProjectStorage]
147
+ """
148
+ return self._project_metadata
149
+
150
+ @project_metadata.setter
151
+ def project_metadata(self, project_metadata: 'list[V1ProjectStorage]'):
152
+ """Sets the project_metadata of this V1GetOrganizationStorageMetadataResponse.
153
+
154
+
155
+ :param project_metadata: The project_metadata of this V1GetOrganizationStorageMetadataResponse. # noqa: E501
156
+ :type: list[V1ProjectStorage]
157
+ """
158
+
159
+ self._project_metadata = project_metadata
160
+
161
+ @property
162
+ def total_billable_bytes(self) -> 'str':
163
+ """Gets the total_billable_bytes of this V1GetOrganizationStorageMetadataResponse. # noqa: E501
164
+
165
+
166
+ :return: The total_billable_bytes of this V1GetOrganizationStorageMetadataResponse. # noqa: E501
167
+ :rtype: str
168
+ """
169
+ return self._total_billable_bytes
170
+
171
+ @total_billable_bytes.setter
172
+ def total_billable_bytes(self, total_billable_bytes: 'str'):
173
+ """Sets the total_billable_bytes of this V1GetOrganizationStorageMetadataResponse.
174
+
175
+
176
+ :param total_billable_bytes: The total_billable_bytes of this V1GetOrganizationStorageMetadataResponse. # noqa: E501
177
+ :type: str
178
+ """
179
+
180
+ self._total_billable_bytes = total_billable_bytes
181
+
182
+ @property
183
+ def total_cloudspace_storage_bytes(self) -> 'str':
184
+ """Gets the total_cloudspace_storage_bytes of this V1GetOrganizationStorageMetadataResponse. # noqa: E501
185
+
186
+
187
+ :return: The total_cloudspace_storage_bytes of this V1GetOrganizationStorageMetadataResponse. # noqa: E501
188
+ :rtype: str
189
+ """
190
+ return self._total_cloudspace_storage_bytes
191
+
192
+ @total_cloudspace_storage_bytes.setter
193
+ def total_cloudspace_storage_bytes(self, total_cloudspace_storage_bytes: 'str'):
194
+ """Sets the total_cloudspace_storage_bytes of this V1GetOrganizationStorageMetadataResponse.
195
+
196
+
197
+ :param total_cloudspace_storage_bytes: The total_cloudspace_storage_bytes of this V1GetOrganizationStorageMetadataResponse. # noqa: E501
198
+ :type: str
199
+ """
200
+
201
+ self._total_cloudspace_storage_bytes = total_cloudspace_storage_bytes
202
+
203
+ @property
204
+ def total_data_connection_storage_bytes(self) -> 'str':
205
+ """Gets the total_data_connection_storage_bytes of this V1GetOrganizationStorageMetadataResponse. # noqa: E501
206
+
207
+
208
+ :return: The total_data_connection_storage_bytes of this V1GetOrganizationStorageMetadataResponse. # noqa: E501
209
+ :rtype: str
210
+ """
211
+ return self._total_data_connection_storage_bytes
212
+
213
+ @total_data_connection_storage_bytes.setter
214
+ def total_data_connection_storage_bytes(self, total_data_connection_storage_bytes: 'str'):
215
+ """Sets the total_data_connection_storage_bytes of this V1GetOrganizationStorageMetadataResponse.
216
+
217
+
218
+ :param total_data_connection_storage_bytes: The total_data_connection_storage_bytes of this V1GetOrganizationStorageMetadataResponse. # noqa: E501
219
+ :type: str
220
+ """
221
+
222
+ self._total_data_connection_storage_bytes = total_data_connection_storage_bytes
223
+
224
+ @property
225
+ def total_job_storage_bytes(self) -> 'str':
226
+ """Gets the total_job_storage_bytes of this V1GetOrganizationStorageMetadataResponse. # noqa: E501
227
+
228
+
229
+ :return: The total_job_storage_bytes of this V1GetOrganizationStorageMetadataResponse. # noqa: E501
230
+ :rtype: str
231
+ """
232
+ return self._total_job_storage_bytes
233
+
234
+ @total_job_storage_bytes.setter
235
+ def total_job_storage_bytes(self, total_job_storage_bytes: 'str'):
236
+ """Sets the total_job_storage_bytes of this V1GetOrganizationStorageMetadataResponse.
237
+
238
+
239
+ :param total_job_storage_bytes: The total_job_storage_bytes of this V1GetOrganizationStorageMetadataResponse. # noqa: E501
240
+ :type: str
241
+ """
242
+
243
+ self._total_job_storage_bytes = total_job_storage_bytes
244
+
245
+ @property
246
+ def total_storage_bytes(self) -> 'str':
247
+ """Gets the total_storage_bytes of this V1GetOrganizationStorageMetadataResponse. # noqa: E501
248
+
249
+
250
+ :return: The total_storage_bytes of this V1GetOrganizationStorageMetadataResponse. # noqa: E501
251
+ :rtype: str
252
+ """
253
+ return self._total_storage_bytes
254
+
255
+ @total_storage_bytes.setter
256
+ def total_storage_bytes(self, total_storage_bytes: 'str'):
257
+ """Sets the total_storage_bytes of this V1GetOrganizationStorageMetadataResponse.
258
+
259
+
260
+ :param total_storage_bytes: The total_storage_bytes of this V1GetOrganizationStorageMetadataResponse. # noqa: E501
261
+ :type: str
262
+ """
263
+
264
+ self._total_storage_bytes = total_storage_bytes
265
+
266
+ @property
267
+ def total_upload_storage_bytes(self) -> 'str':
268
+ """Gets the total_upload_storage_bytes of this V1GetOrganizationStorageMetadataResponse. # noqa: E501
269
+
270
+
271
+ :return: The total_upload_storage_bytes of this V1GetOrganizationStorageMetadataResponse. # noqa: E501
272
+ :rtype: str
273
+ """
274
+ return self._total_upload_storage_bytes
275
+
276
+ @total_upload_storage_bytes.setter
277
+ def total_upload_storage_bytes(self, total_upload_storage_bytes: 'str'):
278
+ """Sets the total_upload_storage_bytes of this V1GetOrganizationStorageMetadataResponse.
279
+
280
+
281
+ :param total_upload_storage_bytes: The total_upload_storage_bytes of this V1GetOrganizationStorageMetadataResponse. # noqa: E501
282
+ :type: str
283
+ """
284
+
285
+ self._total_upload_storage_bytes = total_upload_storage_bytes
286
+
287
+ def to_dict(self) -> dict:
288
+ """Returns the model properties as a dict"""
289
+ result = {}
290
+
291
+ for attr, _ in six.iteritems(self.swagger_types):
292
+ value = getattr(self, attr)
293
+ if isinstance(value, list):
294
+ result[attr] = list(map(
295
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
296
+ value
297
+ ))
298
+ elif hasattr(value, "to_dict"):
299
+ result[attr] = value.to_dict()
300
+ elif isinstance(value, dict):
301
+ result[attr] = dict(map(
302
+ lambda item: (item[0], item[1].to_dict())
303
+ if hasattr(item[1], "to_dict") else item,
304
+ value.items()
305
+ ))
306
+ else:
307
+ result[attr] = value
308
+ if issubclass(V1GetOrganizationStorageMetadataResponse, dict):
309
+ for key, value in self.items():
310
+ result[key] = value
311
+
312
+ return result
313
+
314
+ def to_str(self) -> str:
315
+ """Returns the string representation of the model"""
316
+ return pprint.pformat(self.to_dict())
317
+
318
+ def __repr__(self) -> str:
319
+ """For `print` and `pprint`"""
320
+ return self.to_str()
321
+
322
+ def __eq__(self, other: 'V1GetOrganizationStorageMetadataResponse') -> bool:
323
+ """Returns true if both objects are equal"""
324
+ if not isinstance(other, V1GetOrganizationStorageMetadataResponse):
325
+ return False
326
+
327
+ return self.__dict__ == other.__dict__
328
+
329
+ def __ne__(self, other: 'V1GetOrganizationStorageMetadataResponse') -> bool:
330
+ """Returns true if both objects are not equal"""
331
+ return not self == other
@@ -43,7 +43,6 @@ class V1GetUserResponse(object):
43
43
  swagger_types = {
44
44
  'agree_to_terms_and_conditions': 'bool',
45
45
  'api_key': 'str',
46
- 'auto_switch_machine': 'bool',
47
46
  'country': 'str',
48
47
  'discounted_pro_plan': 'bool',
49
48
  'email': 'str',
@@ -82,7 +81,6 @@ class V1GetUserResponse(object):
82
81
  attribute_map = {
83
82
  'agree_to_terms_and_conditions': 'agreeToTermsAndConditions',
84
83
  'api_key': 'apiKey',
85
- 'auto_switch_machine': 'autoSwitchMachine',
86
84
  'country': 'country',
87
85
  'discounted_pro_plan': 'discountedProPlan',
88
86
  'email': 'email',
@@ -118,11 +116,10 @@ class V1GetUserResponse(object):
118
116
  'website': 'website'
119
117
  }
120
118
 
121
- def __init__(self, agree_to_terms_and_conditions: 'bool' =None, api_key: 'str' =None, auto_switch_machine: 'bool' =None, country: 'str' =None, discounted_pro_plan: 'bool' =None, email: 'str' =None, experimentation_id: 'str' =None, features: 'V1UserFeatures' =None, first_name: 'str' =None, general_audience_mode: 'bool' =None, id: 'str' =None, internal_docs_admin: 'bool' =None, invite_code: 'str' =None, is_internal: 'bool' =None, last_name: 'str' =None, non_developer_mode: 'bool' =None, opted_in_marketing_emails: 'bool' =None, organization: 'str' =None, organizations: 'list[V1Organization]' =None, phone_number: 'str' =None, picture_url: 'str' =None, preferred_color_scheme: 'str' =None, preferred_ide: 'str' =None, preferred_shell: 'str' =None, preferred_vscode_marketplace: 'str' =None, role: 'str' =None, saw_create_first_project_dialog: 'bool' =None, saw_forums_login_merge_dialog: 'bool' =None, saw_free_credits_notification: 'bool' =None, sb: 'bool' =None, status: 'Externalv1UserStatus' =None, storage_bytes: 'str' =None, user_metadata: 'str' =None, username: 'str' =None, waitlisted: 'bool' =None, website: 'str' =None): # noqa: E501
119
+ def __init__(self, agree_to_terms_and_conditions: 'bool' =None, api_key: 'str' =None, country: 'str' =None, discounted_pro_plan: 'bool' =None, email: 'str' =None, experimentation_id: 'str' =None, features: 'V1UserFeatures' =None, first_name: 'str' =None, general_audience_mode: 'bool' =None, id: 'str' =None, internal_docs_admin: 'bool' =None, invite_code: 'str' =None, is_internal: 'bool' =None, last_name: 'str' =None, non_developer_mode: 'bool' =None, opted_in_marketing_emails: 'bool' =None, organization: 'str' =None, organizations: 'list[V1Organization]' =None, phone_number: 'str' =None, picture_url: 'str' =None, preferred_color_scheme: 'str' =None, preferred_ide: 'str' =None, preferred_shell: 'str' =None, preferred_vscode_marketplace: 'str' =None, role: 'str' =None, saw_create_first_project_dialog: 'bool' =None, saw_forums_login_merge_dialog: 'bool' =None, saw_free_credits_notification: 'bool' =None, sb: 'bool' =None, status: 'Externalv1UserStatus' =None, storage_bytes: 'str' =None, user_metadata: 'str' =None, username: 'str' =None, waitlisted: 'bool' =None, website: 'str' =None): # noqa: E501
122
120
  """V1GetUserResponse - a model defined in Swagger""" # noqa: E501
123
121
  self._agree_to_terms_and_conditions = None
124
122
  self._api_key = None
125
- self._auto_switch_machine = None
126
123
  self._country = None
127
124
  self._discounted_pro_plan = None
128
125
  self._email = None
@@ -161,8 +158,6 @@ class V1GetUserResponse(object):
161
158
  self.agree_to_terms_and_conditions = agree_to_terms_and_conditions
162
159
  if api_key is not None:
163
160
  self.api_key = api_key
164
- if auto_switch_machine is not None:
165
- self.auto_switch_machine = auto_switch_machine
166
161
  if country is not None:
167
162
  self.country = country
168
163
  if discounted_pro_plan is not None:
@@ -272,27 +267,6 @@ class V1GetUserResponse(object):
272
267
 
273
268
  self._api_key = api_key
274
269
 
275
- @property
276
- def auto_switch_machine(self) -> 'bool':
277
- """Gets the auto_switch_machine of this V1GetUserResponse. # noqa: E501
278
-
279
-
280
- :return: The auto_switch_machine of this V1GetUserResponse. # noqa: E501
281
- :rtype: bool
282
- """
283
- return self._auto_switch_machine
284
-
285
- @auto_switch_machine.setter
286
- def auto_switch_machine(self, auto_switch_machine: 'bool'):
287
- """Sets the auto_switch_machine of this V1GetUserResponse.
288
-
289
-
290
- :param auto_switch_machine: The auto_switch_machine of this V1GetUserResponse. # noqa: E501
291
- :type: bool
292
- """
293
-
294
- self._auto_switch_machine = auto_switch_machine
295
-
296
270
  @property
297
271
  def country(self) -> 'str':
298
272
  """Gets the country of this V1GetUserResponse. # noqa: E501
@@ -47,6 +47,7 @@ class V1GoogleCloudDirectV1(object):
47
47
  'credentials_secret_id': 'str',
48
48
  'credentials_service_account_email': 'str',
49
49
  'custom_subnet_mode': 'bool',
50
+ 'migration_bucket_name': 'str',
50
51
  'primary_region': 'str',
51
52
  'project_id': 'str',
52
53
  'project_sa_enabled': 'bool',
@@ -64,6 +65,7 @@ class V1GoogleCloudDirectV1(object):
64
65
  'credentials_secret_id': 'credentialsSecretId',
65
66
  'credentials_service_account_email': 'credentialsServiceAccountEmail',
66
67
  'custom_subnet_mode': 'customSubnetMode',
68
+ 'migration_bucket_name': 'migrationBucketName',
67
69
  'primary_region': 'primaryRegion',
68
70
  'project_id': 'projectId',
69
71
  'project_sa_enabled': 'projectSaEnabled',
@@ -74,7 +76,7 @@ class V1GoogleCloudDirectV1(object):
74
76
  'vpcs': 'vpcs'
75
77
  }
76
78
 
77
- def __init__(self, bucket_name: 'str' =None, compute_project_role: 'str' =None, compute_service_account_email: 'str' =None, credentials_secret_id: 'str' =None, credentials_service_account_email: 'str' =None, custom_subnet_mode: 'bool' =None, primary_region: 'str' =None, project_id: 'str' =None, project_sa_enabled: 'bool' =None, regions: 'list[str]' =None, service_account_email: 'str' =None, source_cidr_ips: 'list[str]' =None, subnets: 'list[V1SubnetSpec]' =None, vpcs: 'list[V1GCPDirectVPC]' =None): # noqa: E501
79
+ def __init__(self, bucket_name: 'str' =None, compute_project_role: 'str' =None, compute_service_account_email: 'str' =None, credentials_secret_id: 'str' =None, credentials_service_account_email: 'str' =None, custom_subnet_mode: 'bool' =None, migration_bucket_name: 'str' =None, primary_region: 'str' =None, project_id: 'str' =None, project_sa_enabled: 'bool' =None, regions: 'list[str]' =None, service_account_email: 'str' =None, source_cidr_ips: 'list[str]' =None, subnets: 'list[V1SubnetSpec]' =None, vpcs: 'list[V1GCPDirectVPC]' =None): # noqa: E501
78
80
  """V1GoogleCloudDirectV1 - a model defined in Swagger""" # noqa: E501
79
81
  self._bucket_name = None
80
82
  self._compute_project_role = None
@@ -82,6 +84,7 @@ class V1GoogleCloudDirectV1(object):
82
84
  self._credentials_secret_id = None
83
85
  self._credentials_service_account_email = None
84
86
  self._custom_subnet_mode = None
87
+ self._migration_bucket_name = None
85
88
  self._primary_region = None
86
89
  self._project_id = None
87
90
  self._project_sa_enabled = None
@@ -103,6 +106,8 @@ class V1GoogleCloudDirectV1(object):
103
106
  self.credentials_service_account_email = credentials_service_account_email
104
107
  if custom_subnet_mode is not None:
105
108
  self.custom_subnet_mode = custom_subnet_mode
109
+ if migration_bucket_name is not None:
110
+ self.migration_bucket_name = migration_bucket_name
106
111
  if primary_region is not None:
107
112
  self.primary_region = primary_region
108
113
  if project_id is not None:
@@ -248,6 +253,27 @@ class V1GoogleCloudDirectV1(object):
248
253
 
249
254
  self._custom_subnet_mode = custom_subnet_mode
250
255
 
256
+ @property
257
+ def migration_bucket_name(self) -> 'str':
258
+ """Gets the migration_bucket_name of this V1GoogleCloudDirectV1. # noqa: E501
259
+
260
+
261
+ :return: The migration_bucket_name of this V1GoogleCloudDirectV1. # noqa: E501
262
+ :rtype: str
263
+ """
264
+ return self._migration_bucket_name
265
+
266
+ @migration_bucket_name.setter
267
+ def migration_bucket_name(self, migration_bucket_name: 'str'):
268
+ """Sets the migration_bucket_name of this V1GoogleCloudDirectV1.
269
+
270
+
271
+ :param migration_bucket_name: The migration_bucket_name of this V1GoogleCloudDirectV1. # noqa: E501
272
+ :type: str
273
+ """
274
+
275
+ self._migration_bucket_name = migration_bucket_name
276
+
251
277
  @property
252
278
  def primary_region(self) -> 'str':
253
279
  """Gets the primary_region of this V1GoogleCloudDirectV1. # noqa: E501
@@ -0,0 +1,123 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ external/v1/auth_service.proto
5
+
6
+ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
7
+
8
+ OpenAPI spec version: version not set
9
+
10
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
11
+
12
+ NOTE
13
+ ----
14
+ standard swagger-codegen-cli for this python client has been modified
15
+ by custom templates. The purpose of these templates is to include
16
+ typing information in the API and Model code. Please refer to the
17
+ main grid repository for more info
18
+ """
19
+
20
+ import pprint
21
+ import re # noqa: F401
22
+
23
+ from typing import TYPE_CHECKING
24
+
25
+ import six
26
+
27
+ if TYPE_CHECKING:
28
+ from datetime import datetime
29
+ from lightning_sdk.lightning_cloud.openapi.models import *
30
+
31
+ class V1ListDeploymentAlertingEventsResponse(object):
32
+ """NOTE: This class is auto generated by the swagger code generator program.
33
+
34
+ Do not edit the class manually.
35
+ """
36
+ """
37
+ Attributes:
38
+ swagger_types (dict): The key is attribute name
39
+ and the value is attribute type.
40
+ attribute_map (dict): The key is attribute name
41
+ and the value is json key in definition.
42
+ """
43
+ swagger_types = {
44
+ 'events': 'list[V1DeploymentAlertingEvent]'
45
+ }
46
+
47
+ attribute_map = {
48
+ 'events': 'events'
49
+ }
50
+
51
+ def __init__(self, events: 'list[V1DeploymentAlertingEvent]' =None): # noqa: E501
52
+ """V1ListDeploymentAlertingEventsResponse - a model defined in Swagger""" # noqa: E501
53
+ self._events = None
54
+ self.discriminator = None
55
+ if events is not None:
56
+ self.events = events
57
+
58
+ @property
59
+ def events(self) -> 'list[V1DeploymentAlertingEvent]':
60
+ """Gets the events of this V1ListDeploymentAlertingEventsResponse. # noqa: E501
61
+
62
+
63
+ :return: The events of this V1ListDeploymentAlertingEventsResponse. # noqa: E501
64
+ :rtype: list[V1DeploymentAlertingEvent]
65
+ """
66
+ return self._events
67
+
68
+ @events.setter
69
+ def events(self, events: 'list[V1DeploymentAlertingEvent]'):
70
+ """Sets the events of this V1ListDeploymentAlertingEventsResponse.
71
+
72
+
73
+ :param events: The events of this V1ListDeploymentAlertingEventsResponse. # noqa: E501
74
+ :type: list[V1DeploymentAlertingEvent]
75
+ """
76
+
77
+ self._events = events
78
+
79
+ def to_dict(self) -> dict:
80
+ """Returns the model properties as a dict"""
81
+ result = {}
82
+
83
+ for attr, _ in six.iteritems(self.swagger_types):
84
+ value = getattr(self, attr)
85
+ if isinstance(value, list):
86
+ result[attr] = list(map(
87
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
88
+ value
89
+ ))
90
+ elif hasattr(value, "to_dict"):
91
+ result[attr] = value.to_dict()
92
+ elif isinstance(value, dict):
93
+ result[attr] = dict(map(
94
+ lambda item: (item[0], item[1].to_dict())
95
+ if hasattr(item[1], "to_dict") else item,
96
+ value.items()
97
+ ))
98
+ else:
99
+ result[attr] = value
100
+ if issubclass(V1ListDeploymentAlertingEventsResponse, dict):
101
+ for key, value in self.items():
102
+ result[key] = value
103
+
104
+ return result
105
+
106
+ def to_str(self) -> str:
107
+ """Returns the string representation of the model"""
108
+ return pprint.pformat(self.to_dict())
109
+
110
+ def __repr__(self) -> str:
111
+ """For `print` and `pprint`"""
112
+ return self.to_str()
113
+
114
+ def __eq__(self, other: 'V1ListDeploymentAlertingEventsResponse') -> bool:
115
+ """Returns true if both objects are equal"""
116
+ if not isinstance(other, V1ListDeploymentAlertingEventsResponse):
117
+ return False
118
+
119
+ return self.__dict__ == other.__dict__
120
+
121
+ def __ne__(self, other: 'V1ListDeploymentAlertingEventsResponse') -> bool:
122
+ """Returns true if both objects are not equal"""
123
+ return not self == other