lightning-sdk 0.2.14__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 (122) hide show
  1. lightning_sdk/__init__.py +1 -1
  2. lightning_sdk/api/base_studio_api.py +79 -0
  3. lightning_sdk/api/cluster_api.py +83 -1
  4. lightning_sdk/api/license_api.py +48 -0
  5. lightning_sdk/api/llm_api.py +73 -12
  6. lightning_sdk/api/studio_api.py +50 -1
  7. lightning_sdk/api/teamspace_api.py +127 -1
  8. lightning_sdk/api/utils.py +4 -0
  9. lightning_sdk/base_studio.py +83 -0
  10. lightning_sdk/cli/create.py +21 -1
  11. lightning_sdk/cli/delete.py +6 -8
  12. lightning_sdk/cli/deploy/__init__.py +0 -0
  13. lightning_sdk/cli/deploy/_auth.py +189 -0
  14. lightning_sdk/cli/deploy/devbox.py +157 -0
  15. lightning_sdk/cli/{serve.py → deploy/serve.py} +22 -281
  16. lightning_sdk/cli/download.py +69 -16
  17. lightning_sdk/cli/entrypoint.py +1 -1
  18. lightning_sdk/cli/open.py +21 -2
  19. lightning_sdk/cli/start.py +12 -3
  20. lightning_sdk/cli/teamspace_menu.py +9 -1
  21. lightning_sdk/cli/upload.py +2 -5
  22. lightning_sdk/lightning_cloud/openapi/__init__.py +29 -0
  23. lightning_sdk/lightning_cloud/openapi/api/__init__.py +1 -0
  24. lightning_sdk/lightning_cloud/openapi/api/assistants_service_api.py +121 -0
  25. lightning_sdk/lightning_cloud/openapi/api/billing_service_api.py +9 -1
  26. lightning_sdk/lightning_cloud/openapi/api/cloud_space_service_api.py +226 -0
  27. lightning_sdk/lightning_cloud/openapi/api/cluster_service_api.py +105 -0
  28. lightning_sdk/lightning_cloud/openapi/api/file_system_service_api.py +178 -0
  29. lightning_sdk/lightning_cloud/openapi/api/jobs_service_api.py +984 -101
  30. lightning_sdk/lightning_cloud/openapi/api/product_license_service_api.py +525 -0
  31. lightning_sdk/lightning_cloud/openapi/api/storage_service_api.py +93 -0
  32. lightning_sdk/lightning_cloud/openapi/configuration.py +1 -1
  33. lightning_sdk/lightning_cloud/openapi/models/__init__.py +28 -0
  34. lightning_sdk/lightning_cloud/openapi/models/assistant_id_conversations_body.py +79 -1
  35. lightning_sdk/lightning_cloud/openapi/models/cloudspaces_id_body.py +53 -1
  36. lightning_sdk/lightning_cloud/openapi/models/deployment_id_alertingpolicies_body.py +331 -0
  37. lightning_sdk/lightning_cloud/openapi/models/deployment_id_alertingpolicies_body1.py +305 -0
  38. lightning_sdk/lightning_cloud/openapi/models/deployments_id_body.py +53 -1
  39. lightning_sdk/lightning_cloud/openapi/models/endpoints_id_body.py +27 -1
  40. lightning_sdk/lightning_cloud/openapi/models/model_id_versions_body.py +27 -1
  41. lightning_sdk/lightning_cloud/openapi/models/models_id_body.py +123 -0
  42. lightning_sdk/lightning_cloud/openapi/models/orgs_id_body.py +183 -1
  43. lightning_sdk/lightning_cloud/openapi/models/pipelines_id_body.py +6 -6
  44. lightning_sdk/lightning_cloud/openapi/models/project_id_cloudspaces_body.py +27 -1
  45. lightning_sdk/lightning_cloud/openapi/models/project_id_storage_body.py +27 -1
  46. lightning_sdk/lightning_cloud/openapi/models/projects_id_body.py +107 -3
  47. lightning_sdk/lightning_cloud/openapi/models/storage_complete_body.py +27 -1
  48. lightning_sdk/lightning_cloud/openapi/models/update.py +79 -1
  49. lightning_sdk/lightning_cloud/openapi/models/uploads_upload_id_body1.py +55 -3
  50. lightning_sdk/lightning_cloud/openapi/models/v1_aws_direct_v1.py +53 -1
  51. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_provider.py +3 -0
  52. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space.py +79 -1
  53. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_config.py +123 -0
  54. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_template_config.py +79 -1
  55. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_type.py +104 -0
  56. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_source_type.py +103 -0
  57. lightning_sdk/lightning_cloud/openapi/models/v1_cloudflare_v1.py +66 -66
  58. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_spec.py +27 -1
  59. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_tagging_options.py +27 -1
  60. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_upload.py +149 -0
  61. lightning_sdk/lightning_cloud/openapi/models/v1_complete_upload.py +55 -3
  62. lightning_sdk/lightning_cloud/openapi/models/v1_conversation.py +27 -1
  63. lightning_sdk/lightning_cloud/openapi/models/v1_create_cloud_space_environment_template_request.py +79 -1
  64. lightning_sdk/lightning_cloud/openapi/models/v1_delete_deployment_alerting_policy_response.py +175 -0
  65. lightning_sdk/lightning_cloud/openapi/models/v1_deployment.py +53 -1
  66. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_alerting_event.py +487 -0
  67. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_alerting_policy.py +383 -0
  68. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_alerting_policy_frequency.py +105 -0
  69. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_alerting_policy_operation.py +105 -0
  70. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_alerting_policy_severity.py +106 -0
  71. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_alerting_policy_type.py +111 -0
  72. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_api.py +27 -1
  73. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_state.py +4 -4
  74. lightning_sdk/lightning_cloud/openapi/models/v1_endpoint.py +27 -1
  75. lightning_sdk/lightning_cloud/openapi/models/v1_external_search_user.py +27 -1
  76. lightning_sdk/lightning_cloud/openapi/models/v1_ge_list_deployment_routing_telemetry_response.py +123 -0
  77. lightning_sdk/lightning_cloud/openapi/models/v1_get_cloud_space_instance_open_ports_response.py +123 -0
  78. lightning_sdk/lightning_cloud/openapi/models/v1_get_deployment_routing_telemetry_content_response.py +123 -0
  79. lightning_sdk/lightning_cloud/openapi/models/v1_get_job_stats_response.py +53 -1
  80. lightning_sdk/lightning_cloud/openapi/models/v1_get_organization_storage_metadata_response.py +331 -0
  81. lightning_sdk/lightning_cloud/openapi/models/v1_get_project_balance_response.py +1 -27
  82. lightning_sdk/lightning_cloud/openapi/models/v1_google_cloud_direct_v1.py +27 -1
  83. lightning_sdk/lightning_cloud/openapi/models/v1_job_type.py +1 -0
  84. lightning_sdk/lightning_cloud/openapi/models/v1_list_deployment_alerting_events_response.py +123 -0
  85. lightning_sdk/lightning_cloud/openapi/models/v1_list_deployment_alerting_policies_response.py +175 -0
  86. lightning_sdk/lightning_cloud/openapi/models/v1_list_product_licenses_response.py +123 -0
  87. lightning_sdk/lightning_cloud/openapi/models/v1_managed_model.py +27 -1
  88. lightning_sdk/lightning_cloud/openapi/models/v1_membership.py +43 -17
  89. lightning_sdk/lightning_cloud/openapi/models/v1_modify_filesystem_volume_response.py +97 -0
  90. lightning_sdk/lightning_cloud/openapi/models/v1_organization.py +183 -1
  91. lightning_sdk/lightning_cloud/openapi/models/v1_pipeline.py +6 -6
  92. lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_state.py +111 -0
  93. lightning_sdk/lightning_cloud/openapi/models/v1_presigned_url.py +53 -1
  94. lightning_sdk/lightning_cloud/openapi/models/v1_product_license.py +409 -0
  95. lightning_sdk/lightning_cloud/openapi/models/v1_product_license_check_response.py +123 -0
  96. lightning_sdk/lightning_cloud/openapi/models/v1_project.py +27 -1
  97. lightning_sdk/lightning_cloud/openapi/models/v1_project_membership.py +43 -17
  98. lightning_sdk/lightning_cloud/openapi/models/v1_project_settings.py +107 -3
  99. lightning_sdk/lightning_cloud/openapi/models/v1_project_storage.py +53 -1
  100. lightning_sdk/lightning_cloud/openapi/models/v1_r2_data_connection.py +53 -1
  101. lightning_sdk/lightning_cloud/openapi/models/v1_routing_telemetry.py +253 -0
  102. lightning_sdk/lightning_cloud/openapi/models/v1_secret_type.py +1 -0
  103. lightning_sdk/lightning_cloud/openapi/models/v1_server_alert_type.py +2 -0
  104. lightning_sdk/lightning_cloud/openapi/models/v1_sleep_server_response.py +97 -0
  105. lightning_sdk/lightning_cloud/openapi/models/v1_trigger_filesystem_upgrade_response.py +123 -0
  106. lightning_sdk/lightning_cloud/openapi/models/v1_upload_project_artifact_response.py +27 -1
  107. lightning_sdk/lightning_cloud/openapi/models/v1_usage_report.py +79 -1
  108. lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +347 -113
  109. lightning_sdk/lightning_cloud/openapi/models/v1_user_requested_compute_config.py +27 -1
  110. lightning_sdk/lightning_cloud/rest_client.py +4 -0
  111. lightning_sdk/llm/llm.py +132 -40
  112. lightning_sdk/services/__init__.py +1 -1
  113. lightning_sdk/services/license.py +236 -0
  114. lightning_sdk/studio.py +62 -1
  115. lightning_sdk/teamspace.py +68 -0
  116. {lightning_sdk-0.2.14.dist-info → lightning_sdk-0.2.16.dist-info}/METADATA +1 -1
  117. {lightning_sdk-0.2.14.dist-info → lightning_sdk-0.2.16.dist-info}/RECORD +122 -86
  118. /lightning_sdk/services/{finetune/__init__.py → finetune_llm.py} +0 -0
  119. {lightning_sdk-0.2.14.dist-info → lightning_sdk-0.2.16.dist-info}/LICENSE +0 -0
  120. {lightning_sdk-0.2.14.dist-info → lightning_sdk-0.2.16.dist-info}/WHEEL +0 -0
  121. {lightning_sdk-0.2.14.dist-info → lightning_sdk-0.2.16.dist-info}/entry_points.txt +0 -0
  122. {lightning_sdk-0.2.14.dist-info → lightning_sdk-0.2.16.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,409 @@
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 V1ProductLicense(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
+ 'created_at': 'datetime',
45
+ 'expires_at': 'datetime',
46
+ 'is_valid': 'bool',
47
+ 'license_id': 'str',
48
+ 'license_key': 'str',
49
+ 'license_type': 'str',
50
+ 'owner_name': 'str',
51
+ 'owner_type': 'str',
52
+ 'product_name': 'str',
53
+ 'product_type': 'str',
54
+ 'product_version': 'str',
55
+ 'updated_at': 'datetime'
56
+ }
57
+
58
+ attribute_map = {
59
+ 'created_at': 'createdAt',
60
+ 'expires_at': 'expiresAt',
61
+ 'is_valid': 'isValid',
62
+ 'license_id': 'licenseId',
63
+ 'license_key': 'licenseKey',
64
+ 'license_type': 'licenseType',
65
+ 'owner_name': 'ownerName',
66
+ 'owner_type': 'ownerType',
67
+ 'product_name': 'productName',
68
+ 'product_type': 'productType',
69
+ 'product_version': 'productVersion',
70
+ 'updated_at': 'updatedAt'
71
+ }
72
+
73
+ def __init__(self, created_at: 'datetime' =None, expires_at: 'datetime' =None, is_valid: 'bool' =None, license_id: 'str' =None, license_key: 'str' =None, license_type: 'str' =None, owner_name: 'str' =None, owner_type: 'str' =None, product_name: 'str' =None, product_type: 'str' =None, product_version: 'str' =None, updated_at: 'datetime' =None): # noqa: E501
74
+ """V1ProductLicense - a model defined in Swagger""" # noqa: E501
75
+ self._created_at = None
76
+ self._expires_at = None
77
+ self._is_valid = None
78
+ self._license_id = None
79
+ self._license_key = None
80
+ self._license_type = None
81
+ self._owner_name = None
82
+ self._owner_type = None
83
+ self._product_name = None
84
+ self._product_type = None
85
+ self._product_version = None
86
+ self._updated_at = None
87
+ self.discriminator = None
88
+ if created_at is not None:
89
+ self.created_at = created_at
90
+ if expires_at is not None:
91
+ self.expires_at = expires_at
92
+ if is_valid is not None:
93
+ self.is_valid = is_valid
94
+ if license_id is not None:
95
+ self.license_id = license_id
96
+ if license_key is not None:
97
+ self.license_key = license_key
98
+ if license_type is not None:
99
+ self.license_type = license_type
100
+ if owner_name is not None:
101
+ self.owner_name = owner_name
102
+ if owner_type is not None:
103
+ self.owner_type = owner_type
104
+ if product_name is not None:
105
+ self.product_name = product_name
106
+ if product_type is not None:
107
+ self.product_type = product_type
108
+ if product_version is not None:
109
+ self.product_version = product_version
110
+ if updated_at is not None:
111
+ self.updated_at = updated_at
112
+
113
+ @property
114
+ def created_at(self) -> 'datetime':
115
+ """Gets the created_at of this V1ProductLicense. # noqa: E501
116
+
117
+
118
+ :return: The created_at of this V1ProductLicense. # noqa: E501
119
+ :rtype: datetime
120
+ """
121
+ return self._created_at
122
+
123
+ @created_at.setter
124
+ def created_at(self, created_at: 'datetime'):
125
+ """Sets the created_at of this V1ProductLicense.
126
+
127
+
128
+ :param created_at: The created_at of this V1ProductLicense. # noqa: E501
129
+ :type: datetime
130
+ """
131
+
132
+ self._created_at = created_at
133
+
134
+ @property
135
+ def expires_at(self) -> 'datetime':
136
+ """Gets the expires_at of this V1ProductLicense. # noqa: E501
137
+
138
+
139
+ :return: The expires_at of this V1ProductLicense. # noqa: E501
140
+ :rtype: datetime
141
+ """
142
+ return self._expires_at
143
+
144
+ @expires_at.setter
145
+ def expires_at(self, expires_at: 'datetime'):
146
+ """Sets the expires_at of this V1ProductLicense.
147
+
148
+
149
+ :param expires_at: The expires_at of this V1ProductLicense. # noqa: E501
150
+ :type: datetime
151
+ """
152
+
153
+ self._expires_at = expires_at
154
+
155
+ @property
156
+ def is_valid(self) -> 'bool':
157
+ """Gets the is_valid of this V1ProductLicense. # noqa: E501
158
+
159
+
160
+ :return: The is_valid of this V1ProductLicense. # noqa: E501
161
+ :rtype: bool
162
+ """
163
+ return self._is_valid
164
+
165
+ @is_valid.setter
166
+ def is_valid(self, is_valid: 'bool'):
167
+ """Sets the is_valid of this V1ProductLicense.
168
+
169
+
170
+ :param is_valid: The is_valid of this V1ProductLicense. # noqa: E501
171
+ :type: bool
172
+ """
173
+
174
+ self._is_valid = is_valid
175
+
176
+ @property
177
+ def license_id(self) -> 'str':
178
+ """Gets the license_id of this V1ProductLicense. # noqa: E501
179
+
180
+
181
+ :return: The license_id of this V1ProductLicense. # noqa: E501
182
+ :rtype: str
183
+ """
184
+ return self._license_id
185
+
186
+ @license_id.setter
187
+ def license_id(self, license_id: 'str'):
188
+ """Sets the license_id of this V1ProductLicense.
189
+
190
+
191
+ :param license_id: The license_id of this V1ProductLicense. # noqa: E501
192
+ :type: str
193
+ """
194
+
195
+ self._license_id = license_id
196
+
197
+ @property
198
+ def license_key(self) -> 'str':
199
+ """Gets the license_key of this V1ProductLicense. # noqa: E501
200
+
201
+
202
+ :return: The license_key of this V1ProductLicense. # noqa: E501
203
+ :rtype: str
204
+ """
205
+ return self._license_key
206
+
207
+ @license_key.setter
208
+ def license_key(self, license_key: 'str'):
209
+ """Sets the license_key of this V1ProductLicense.
210
+
211
+
212
+ :param license_key: The license_key of this V1ProductLicense. # noqa: E501
213
+ :type: str
214
+ """
215
+
216
+ self._license_key = license_key
217
+
218
+ @property
219
+ def license_type(self) -> 'str':
220
+ """Gets the license_type of this V1ProductLicense. # noqa: E501
221
+
222
+
223
+ :return: The license_type of this V1ProductLicense. # noqa: E501
224
+ :rtype: str
225
+ """
226
+ return self._license_type
227
+
228
+ @license_type.setter
229
+ def license_type(self, license_type: 'str'):
230
+ """Sets the license_type of this V1ProductLicense.
231
+
232
+
233
+ :param license_type: The license_type of this V1ProductLicense. # noqa: E501
234
+ :type: str
235
+ """
236
+
237
+ self._license_type = license_type
238
+
239
+ @property
240
+ def owner_name(self) -> 'str':
241
+ """Gets the owner_name of this V1ProductLicense. # noqa: E501
242
+
243
+
244
+ :return: The owner_name of this V1ProductLicense. # noqa: E501
245
+ :rtype: str
246
+ """
247
+ return self._owner_name
248
+
249
+ @owner_name.setter
250
+ def owner_name(self, owner_name: 'str'):
251
+ """Sets the owner_name of this V1ProductLicense.
252
+
253
+
254
+ :param owner_name: The owner_name of this V1ProductLicense. # noqa: E501
255
+ :type: str
256
+ """
257
+
258
+ self._owner_name = owner_name
259
+
260
+ @property
261
+ def owner_type(self) -> 'str':
262
+ """Gets the owner_type of this V1ProductLicense. # noqa: E501
263
+
264
+
265
+ :return: The owner_type of this V1ProductLicense. # noqa: E501
266
+ :rtype: str
267
+ """
268
+ return self._owner_type
269
+
270
+ @owner_type.setter
271
+ def owner_type(self, owner_type: 'str'):
272
+ """Sets the owner_type of this V1ProductLicense.
273
+
274
+
275
+ :param owner_type: The owner_type of this V1ProductLicense. # noqa: E501
276
+ :type: str
277
+ """
278
+
279
+ self._owner_type = owner_type
280
+
281
+ @property
282
+ def product_name(self) -> 'str':
283
+ """Gets the product_name of this V1ProductLicense. # noqa: E501
284
+
285
+
286
+ :return: The product_name of this V1ProductLicense. # noqa: E501
287
+ :rtype: str
288
+ """
289
+ return self._product_name
290
+
291
+ @product_name.setter
292
+ def product_name(self, product_name: 'str'):
293
+ """Sets the product_name of this V1ProductLicense.
294
+
295
+
296
+ :param product_name: The product_name of this V1ProductLicense. # noqa: E501
297
+ :type: str
298
+ """
299
+
300
+ self._product_name = product_name
301
+
302
+ @property
303
+ def product_type(self) -> 'str':
304
+ """Gets the product_type of this V1ProductLicense. # noqa: E501
305
+
306
+
307
+ :return: The product_type of this V1ProductLicense. # noqa: E501
308
+ :rtype: str
309
+ """
310
+ return self._product_type
311
+
312
+ @product_type.setter
313
+ def product_type(self, product_type: 'str'):
314
+ """Sets the product_type of this V1ProductLicense.
315
+
316
+
317
+ :param product_type: The product_type of this V1ProductLicense. # noqa: E501
318
+ :type: str
319
+ """
320
+
321
+ self._product_type = product_type
322
+
323
+ @property
324
+ def product_version(self) -> 'str':
325
+ """Gets the product_version of this V1ProductLicense. # noqa: E501
326
+
327
+
328
+ :return: The product_version of this V1ProductLicense. # noqa: E501
329
+ :rtype: str
330
+ """
331
+ return self._product_version
332
+
333
+ @product_version.setter
334
+ def product_version(self, product_version: 'str'):
335
+ """Sets the product_version of this V1ProductLicense.
336
+
337
+
338
+ :param product_version: The product_version of this V1ProductLicense. # noqa: E501
339
+ :type: str
340
+ """
341
+
342
+ self._product_version = product_version
343
+
344
+ @property
345
+ def updated_at(self) -> 'datetime':
346
+ """Gets the updated_at of this V1ProductLicense. # noqa: E501
347
+
348
+
349
+ :return: The updated_at of this V1ProductLicense. # noqa: E501
350
+ :rtype: datetime
351
+ """
352
+ return self._updated_at
353
+
354
+ @updated_at.setter
355
+ def updated_at(self, updated_at: 'datetime'):
356
+ """Sets the updated_at of this V1ProductLicense.
357
+
358
+
359
+ :param updated_at: The updated_at of this V1ProductLicense. # noqa: E501
360
+ :type: datetime
361
+ """
362
+
363
+ self._updated_at = updated_at
364
+
365
+ def to_dict(self) -> dict:
366
+ """Returns the model properties as a dict"""
367
+ result = {}
368
+
369
+ for attr, _ in six.iteritems(self.swagger_types):
370
+ value = getattr(self, attr)
371
+ if isinstance(value, list):
372
+ result[attr] = list(map(
373
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
374
+ value
375
+ ))
376
+ elif hasattr(value, "to_dict"):
377
+ result[attr] = value.to_dict()
378
+ elif isinstance(value, dict):
379
+ result[attr] = dict(map(
380
+ lambda item: (item[0], item[1].to_dict())
381
+ if hasattr(item[1], "to_dict") else item,
382
+ value.items()
383
+ ))
384
+ else:
385
+ result[attr] = value
386
+ if issubclass(V1ProductLicense, dict):
387
+ for key, value in self.items():
388
+ result[key] = value
389
+
390
+ return result
391
+
392
+ def to_str(self) -> str:
393
+ """Returns the string representation of the model"""
394
+ return pprint.pformat(self.to_dict())
395
+
396
+ def __repr__(self) -> str:
397
+ """For `print` and `pprint`"""
398
+ return self.to_str()
399
+
400
+ def __eq__(self, other: 'V1ProductLicense') -> bool:
401
+ """Returns true if both objects are equal"""
402
+ if not isinstance(other, V1ProductLicense):
403
+ return False
404
+
405
+ return self.__dict__ == other.__dict__
406
+
407
+ def __ne__(self, other: 'V1ProductLicense') -> bool:
408
+ """Returns true if both objects are not equal"""
409
+ return not self == other
@@ -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 V1ProductLicenseCheckResponse(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
+ 'valid': 'bool'
45
+ }
46
+
47
+ attribute_map = {
48
+ 'valid': 'valid'
49
+ }
50
+
51
+ def __init__(self, valid: 'bool' =None): # noqa: E501
52
+ """V1ProductLicenseCheckResponse - a model defined in Swagger""" # noqa: E501
53
+ self._valid = None
54
+ self.discriminator = None
55
+ if valid is not None:
56
+ self.valid = valid
57
+
58
+ @property
59
+ def valid(self) -> 'bool':
60
+ """Gets the valid of this V1ProductLicenseCheckResponse. # noqa: E501
61
+
62
+
63
+ :return: The valid of this V1ProductLicenseCheckResponse. # noqa: E501
64
+ :rtype: bool
65
+ """
66
+ return self._valid
67
+
68
+ @valid.setter
69
+ def valid(self, valid: 'bool'):
70
+ """Sets the valid of this V1ProductLicenseCheckResponse.
71
+
72
+
73
+ :param valid: The valid of this V1ProductLicenseCheckResponse. # noqa: E501
74
+ :type: bool
75
+ """
76
+
77
+ self._valid = valid
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(V1ProductLicenseCheckResponse, 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: 'V1ProductLicenseCheckResponse') -> bool:
115
+ """Returns true if both objects are equal"""
116
+ if not isinstance(other, V1ProductLicenseCheckResponse):
117
+ return False
118
+
119
+ return self.__dict__ == other.__dict__
120
+
121
+ def __ne__(self, other: 'V1ProductLicenseCheckResponse') -> bool:
122
+ """Returns true if both objects are not equal"""
123
+ return not self == other
@@ -46,6 +46,7 @@ class V1Project(object):
46
46
  'creator_id': 'str',
47
47
  'description': 'str',
48
48
  'display_name': 'str',
49
+ 'gcp_bucket_name': 'str',
49
50
  'id': 'str',
50
51
  'is_default': 'bool',
51
52
  'lock_out_uploads': 'bool',
@@ -66,6 +67,7 @@ class V1Project(object):
66
67
  'creator_id': 'creatorId',
67
68
  'description': 'description',
68
69
  'display_name': 'displayName',
70
+ 'gcp_bucket_name': 'gcpBucketName',
69
71
  'id': 'id',
70
72
  'is_default': 'isDefault',
71
73
  'lock_out_uploads': 'lockOutUploads',
@@ -80,13 +82,14 @@ class V1Project(object):
80
82
  'updated_at': 'updatedAt'
81
83
  }
82
84
 
83
- def __init__(self, abac_enabled: 'bool' =None, created_at: 'datetime' =None, creator_id: 'str' =None, description: 'str' =None, display_name: 'str' =None, id: 'str' =None, is_default: 'bool' =None, lock_out_uploads: 'bool' =None, name: 'str' =None, number_of_files_uploads: 'str' =None, owner_id: 'str' =None, owner_type: 'V1OwnerType' =None, private: 'bool' =None, project_settings: 'V1ProjectSettings' =None, quotas: 'V1Quotas' =None, total_size_uploads_bytes: 'str' =None, updated_at: 'datetime' =None): # noqa: E501
85
+ def __init__(self, abac_enabled: 'bool' =None, created_at: 'datetime' =None, creator_id: 'str' =None, description: 'str' =None, display_name: 'str' =None, gcp_bucket_name: 'str' =None, id: 'str' =None, is_default: 'bool' =None, lock_out_uploads: 'bool' =None, name: 'str' =None, number_of_files_uploads: 'str' =None, owner_id: 'str' =None, owner_type: 'V1OwnerType' =None, private: 'bool' =None, project_settings: 'V1ProjectSettings' =None, quotas: 'V1Quotas' =None, total_size_uploads_bytes: 'str' =None, updated_at: 'datetime' =None): # noqa: E501
84
86
  """V1Project - a model defined in Swagger""" # noqa: E501
85
87
  self._abac_enabled = None
86
88
  self._created_at = None
87
89
  self._creator_id = None
88
90
  self._description = None
89
91
  self._display_name = None
92
+ self._gcp_bucket_name = None
90
93
  self._id = None
91
94
  self._is_default = None
92
95
  self._lock_out_uploads = None
@@ -110,6 +113,8 @@ class V1Project(object):
110
113
  self.description = description
111
114
  if display_name is not None:
112
115
  self.display_name = display_name
116
+ if gcp_bucket_name is not None:
117
+ self.gcp_bucket_name = gcp_bucket_name
113
118
  if id is not None:
114
119
  self.id = id
115
120
  if is_default is not None:
@@ -240,6 +245,27 @@ class V1Project(object):
240
245
 
241
246
  self._display_name = display_name
242
247
 
248
+ @property
249
+ def gcp_bucket_name(self) -> 'str':
250
+ """Gets the gcp_bucket_name of this V1Project. # noqa: E501
251
+
252
+
253
+ :return: The gcp_bucket_name of this V1Project. # noqa: E501
254
+ :rtype: str
255
+ """
256
+ return self._gcp_bucket_name
257
+
258
+ @gcp_bucket_name.setter
259
+ def gcp_bucket_name(self, gcp_bucket_name: 'str'):
260
+ """Sets the gcp_bucket_name of this V1Project.
261
+
262
+
263
+ :param gcp_bucket_name: The gcp_bucket_name of this V1Project. # noqa: E501
264
+ :type: str
265
+ """
266
+
267
+ self._gcp_bucket_name = gcp_bucket_name
268
+
243
269
  @property
244
270
  def id(self) -> 'str':
245
271
  """Gets the id of this V1Project. # noqa: E501