lightning-sdk 0.2.14__py3-none-any.whl → 0.2.15__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.
- lightning_sdk/__init__.py +1 -1
- lightning_sdk/api/base_studio_api.py +73 -0
- lightning_sdk/api/license_api.py +48 -0
- lightning_sdk/api/llm_api.py +50 -8
- lightning_sdk/api/studio_api.py +47 -1
- lightning_sdk/base_studio.py +70 -0
- lightning_sdk/cli/delete.py +6 -8
- lightning_sdk/cli/download.py +25 -0
- lightning_sdk/cli/serve.py +82 -30
- lightning_sdk/cli/teamspace_menu.py +9 -1
- lightning_sdk/cli/upload.py +0 -1
- lightning_sdk/lightning_cloud/openapi/__init__.py +11 -0
- lightning_sdk/lightning_cloud/openapi/api/__init__.py +1 -0
- lightning_sdk/lightning_cloud/openapi/api/billing_service_api.py +9 -1
- lightning_sdk/lightning_cloud/openapi/api/cloud_space_service_api.py +121 -0
- lightning_sdk/lightning_cloud/openapi/api/file_system_service_api.py +178 -0
- lightning_sdk/lightning_cloud/openapi/api/jobs_service_api.py +243 -2
- lightning_sdk/lightning_cloud/openapi/api/product_license_service_api.py +525 -0
- lightning_sdk/lightning_cloud/openapi/configuration.py +1 -1
- lightning_sdk/lightning_cloud/openapi/models/__init__.py +10 -0
- lightning_sdk/lightning_cloud/openapi/models/assistant_id_conversations_body.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/endpoints_id_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/model_id_versions_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/orgs_id_body.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/pipelines_id_body.py +6 -6
- lightning_sdk/lightning_cloud/openapi/models/project_id_storage_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/projects_id_body.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/storage_complete_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/update.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/uploads_upload_id_body1.py +55 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_aws_direct_v1.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_provider.py +3 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_config.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_template_config.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_type.py +104 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloudflare_v1.py +66 -66
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_spec.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_upload.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_complete_upload.py +55 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_conversation.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_create_cloud_space_environment_template_request.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_api.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_state.py +4 -4
- lightning_sdk/lightning_cloud/openapi/models/v1_endpoint.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_external_search_user.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_ge_list_deployment_routing_telemetry_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_job_stats_response.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_get_project_balance_response.py +1 -27
- lightning_sdk/lightning_cloud/openapi/models/v1_get_user_response.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_job_type.py +1 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_product_licenses_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_managed_model.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_membership.py +17 -17
- lightning_sdk/lightning_cloud/openapi/models/v1_modify_filesystem_volume_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_organization.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_pipeline.py +6 -6
- lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_state.py +111 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_presigned_url.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_product_license.py +409 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_product_license_check_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_project_membership.py +17 -17
- lightning_sdk/lightning_cloud/openapi/models/v1_project_settings.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_r2_data_connection.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_secret_type.py +1 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_server_alert_type.py +1 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_trigger_filesystem_upgrade_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_update_user_request.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_upload_project_artifact_response.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_usage_report.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +295 -113
- lightning_sdk/lightning_cloud/rest_client.py +4 -0
- lightning_sdk/llm/llm.py +88 -40
- lightning_sdk/services/__init__.py +1 -1
- lightning_sdk/services/license.py +236 -0
- lightning_sdk/studio.py +30 -0
- {lightning_sdk-0.2.14.dist-info → lightning_sdk-0.2.15.dist-info}/METADATA +1 -1
- {lightning_sdk-0.2.14.dist-info → lightning_sdk-0.2.15.dist-info}/RECORD +83 -68
- /lightning_sdk/services/{finetune/__init__.py → finetune_llm.py} +0 -0
- {lightning_sdk-0.2.14.dist-info → lightning_sdk-0.2.15.dist-info}/LICENSE +0 -0
- {lightning_sdk-0.2.14.dist-info → lightning_sdk-0.2.15.dist-info}/WHEEL +0 -0
- {lightning_sdk-0.2.14.dist-info → lightning_sdk-0.2.15.dist-info}/entry_points.txt +0 -0
- {lightning_sdk-0.2.14.dist-info → lightning_sdk-0.2.15.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
|
|
@@ -58,7 +58,7 @@ class V1ProjectMembership(object):
|
|
|
58
58
|
'last_name': 'str',
|
|
59
59
|
'membership_count': 'str',
|
|
60
60
|
'name': 'str',
|
|
61
|
-
'
|
|
61
|
+
'next_free_credits_grant': 'str',
|
|
62
62
|
'organization': 'str',
|
|
63
63
|
'owner_id': 'str',
|
|
64
64
|
'owner_type': 'V1OwnerType',
|
|
@@ -88,7 +88,7 @@ class V1ProjectMembership(object):
|
|
|
88
88
|
'last_name': 'lastName',
|
|
89
89
|
'membership_count': 'membershipCount',
|
|
90
90
|
'name': 'name',
|
|
91
|
-
'
|
|
91
|
+
'next_free_credits_grant': 'nextFreeCreditsGrant',
|
|
92
92
|
'organization': 'organization',
|
|
93
93
|
'owner_id': 'ownerId',
|
|
94
94
|
'owner_type': 'ownerType',
|
|
@@ -100,7 +100,7 @@ class V1ProjectMembership(object):
|
|
|
100
100
|
'username': 'username'
|
|
101
101
|
}
|
|
102
102
|
|
|
103
|
-
def __init__(self, avatar_url: 'str' =None, balance: 'float' =None, created_at: 'datetime' =None, creator_id: 'str' =None, datastore_count: 'str' =None, description: 'str' =None, display_name: 'str' =None, email: 'str' =None, first_name: 'str' =None, free_credits_enabled: 'bool' =None, inactive: 'bool' =None, is_default: 'bool' =None, job_count: 'str' =None, job_title: 'str' =None, last_name: 'str' =None, membership_count: 'str' =None, name: 'str' =None,
|
|
103
|
+
def __init__(self, avatar_url: 'str' =None, balance: 'float' =None, created_at: 'datetime' =None, creator_id: 'str' =None, datastore_count: 'str' =None, description: 'str' =None, display_name: 'str' =None, email: 'str' =None, first_name: 'str' =None, free_credits_enabled: 'bool' =None, inactive: 'bool' =None, is_default: 'bool' =None, job_count: 'str' =None, job_title: 'str' =None, last_name: 'str' =None, membership_count: 'str' =None, name: 'str' =None, next_free_credits_grant: 'str' =None, organization: 'str' =None, owner_id: 'str' =None, owner_type: 'V1OwnerType' =None, project_id: 'str' =None, quotas: 'V1Quotas' =None, roles: 'list[V1Role]' =None, updated_at: 'datetime' =None, user_id: 'str' =None, username: 'str' =None): # noqa: E501
|
|
104
104
|
"""V1ProjectMembership - a model defined in Swagger""" # noqa: E501
|
|
105
105
|
self._avatar_url = None
|
|
106
106
|
self._balance = None
|
|
@@ -119,7 +119,7 @@ class V1ProjectMembership(object):
|
|
|
119
119
|
self._last_name = None
|
|
120
120
|
self._membership_count = None
|
|
121
121
|
self._name = None
|
|
122
|
-
self.
|
|
122
|
+
self._next_free_credits_grant = None
|
|
123
123
|
self._organization = None
|
|
124
124
|
self._owner_id = None
|
|
125
125
|
self._owner_type = None
|
|
@@ -164,8 +164,8 @@ class V1ProjectMembership(object):
|
|
|
164
164
|
self.membership_count = membership_count
|
|
165
165
|
if name is not None:
|
|
166
166
|
self.name = name
|
|
167
|
-
if
|
|
168
|
-
self.
|
|
167
|
+
if next_free_credits_grant is not None:
|
|
168
|
+
self.next_free_credits_grant = next_free_credits_grant
|
|
169
169
|
if organization is not None:
|
|
170
170
|
self.organization = organization
|
|
171
171
|
if owner_id is not None:
|
|
@@ -543,25 +543,25 @@ class V1ProjectMembership(object):
|
|
|
543
543
|
self._name = name
|
|
544
544
|
|
|
545
545
|
@property
|
|
546
|
-
def
|
|
547
|
-
"""Gets the
|
|
546
|
+
def next_free_credits_grant(self) -> 'str':
|
|
547
|
+
"""Gets the next_free_credits_grant of this V1ProjectMembership. # noqa: E501
|
|
548
548
|
|
|
549
549
|
|
|
550
|
-
:return: The
|
|
551
|
-
:rtype:
|
|
550
|
+
:return: The next_free_credits_grant of this V1ProjectMembership. # noqa: E501
|
|
551
|
+
:rtype: str
|
|
552
552
|
"""
|
|
553
|
-
return self.
|
|
553
|
+
return self._next_free_credits_grant
|
|
554
554
|
|
|
555
|
-
@
|
|
556
|
-
def
|
|
557
|
-
"""Sets the
|
|
555
|
+
@next_free_credits_grant.setter
|
|
556
|
+
def next_free_credits_grant(self, next_free_credits_grant: 'str'):
|
|
557
|
+
"""Sets the next_free_credits_grant of this V1ProjectMembership.
|
|
558
558
|
|
|
559
559
|
|
|
560
|
-
:param
|
|
561
|
-
:type:
|
|
560
|
+
:param next_free_credits_grant: The next_free_credits_grant of this V1ProjectMembership. # noqa: E501
|
|
561
|
+
:type: str
|
|
562
562
|
"""
|
|
563
563
|
|
|
564
|
-
self.
|
|
564
|
+
self._next_free_credits_grant = next_free_credits_grant
|
|
565
565
|
|
|
566
566
|
@property
|
|
567
567
|
def organization(self) -> 'str':
|