lightning-sdk 0.2.19__py3-none-any.whl → 0.2.21rc0__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/license_api.py +28 -6
- lightning_sdk/api/llm_api.py +53 -1
- lightning_sdk/api/studio_api.py +5 -0
- lightning_sdk/cli/deploy/_auth.py +11 -19
- lightning_sdk/cli/entrypoint.py +20 -2
- lightning_sdk/lightning_cloud/login.py +2 -2
- lightning_sdk/lightning_cloud/openapi/__init__.py +2 -3
- lightning_sdk/lightning_cloud/openapi/api/endpoint_service_api.py +11 -1
- lightning_sdk/lightning_cloud/openapi/api/jobs_service_api.py +121 -0
- lightning_sdk/lightning_cloud/openapi/api/user_service_api.py +0 -85
- lightning_sdk/lightning_cloud/openapi/models/__init__.py +2 -3
- lightning_sdk/lightning_cloud/openapi/models/alertingevents_id_body.py +409 -0
- lightning_sdk/lightning_cloud/openapi/models/id_codeconfig_body.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/update.py +105 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_author.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_blog_post.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_template.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_template_config.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_deletion_options.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_create_cloud_space_environment_template_request.py +105 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_create_project_request.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_data_connection.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_alerting_policy_type.py +1 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_organization_storage_metadata_response.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_get_project_storage_metadata_response.py +105 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_get_user_storage_breakdown_response.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_membership.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_message.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_notification_type.py +1 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_organization.py +105 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_project_storage.py +131 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_routing_telemetry.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_storage_asset.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_storage_asset_type.py +2 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_transaction.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_usage.py +27 -27
- lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +79 -365
- lightning_sdk/lightning_cloud/openapi/models/v1_volume.py +499 -31
- lightning_sdk/lightning_cloud/rest_client.py +13 -11
- lightning_sdk/lightning_cloud/source_code/logs_socket_api.py +8 -3
- lightning_sdk/llm/__init__.py +2 -1
- lightning_sdk/llm/asyncllm.py +48 -0
- lightning_sdk/services/license.py +78 -22
- lightning_sdk/services/utilities.py +15 -1
- {lightning_sdk-0.2.19.dist-info → lightning_sdk-0.2.21rc0.dist-info}/METADATA +1 -1
- {lightning_sdk-0.2.19.dist-info → lightning_sdk-0.2.21rc0.dist-info}/RECORD +52 -52
- lightning_sdk/lightning_cloud/openapi/models/v1_ebs.py +0 -279
- lightning_sdk/lightning_cloud/openapi/models/v1_get_user_storage_response.py +0 -201
- lightning_sdk/lightning_cloud/openapi/models/v1_reservation_billing_session.py +0 -279
- {lightning_sdk-0.2.19.dist-info → lightning_sdk-0.2.21rc0.dist-info}/LICENSE +0 -0
- {lightning_sdk-0.2.19.dist-info → lightning_sdk-0.2.21rc0.dist-info}/WHEEL +0 -0
- {lightning_sdk-0.2.19.dist-info → lightning_sdk-0.2.21rc0.dist-info}/entry_points.txt +0 -0
- {lightning_sdk-0.2.19.dist-info → lightning_sdk-0.2.21rc0.dist-info}/top_level.txt +0 -0
|
@@ -44,12 +44,17 @@ class V1ProjectStorage(object):
|
|
|
44
44
|
'billable_bytes': 'str',
|
|
45
45
|
'cloudspace_storage_bytes': 'str',
|
|
46
46
|
'container_registry_storage_bytes': 'str',
|
|
47
|
+
'daily_read_bytes': 'str',
|
|
48
|
+
'daily_write_bytes': 'str',
|
|
47
49
|
'data_connection_storage_bytes': 'str',
|
|
48
50
|
'display_name': 'str',
|
|
51
|
+
'efs_folder_bytes': 'str',
|
|
49
52
|
'estimated_daily_cost': 'float',
|
|
53
|
+
'estimated_efs_cost': 'float',
|
|
50
54
|
'folder_storage_bytes': 'str',
|
|
51
55
|
'id': 'str',
|
|
52
56
|
'job_storage_bytes': 'str',
|
|
57
|
+
'model_storage_bytes': 'str',
|
|
53
58
|
'total_storage_bytes': 'str',
|
|
54
59
|
'upload_storage_bytes': 'str'
|
|
55
60
|
}
|
|
@@ -58,27 +63,37 @@ class V1ProjectStorage(object):
|
|
|
58
63
|
'billable_bytes': 'billableBytes',
|
|
59
64
|
'cloudspace_storage_bytes': 'cloudspaceStorageBytes',
|
|
60
65
|
'container_registry_storage_bytes': 'containerRegistryStorageBytes',
|
|
66
|
+
'daily_read_bytes': 'dailyReadBytes',
|
|
67
|
+
'daily_write_bytes': 'dailyWriteBytes',
|
|
61
68
|
'data_connection_storage_bytes': 'dataConnectionStorageBytes',
|
|
62
69
|
'display_name': 'displayName',
|
|
70
|
+
'efs_folder_bytes': 'efsFolderBytes',
|
|
63
71
|
'estimated_daily_cost': 'estimatedDailyCost',
|
|
72
|
+
'estimated_efs_cost': 'estimatedEfsCost',
|
|
64
73
|
'folder_storage_bytes': 'folderStorageBytes',
|
|
65
74
|
'id': 'id',
|
|
66
75
|
'job_storage_bytes': 'jobStorageBytes',
|
|
76
|
+
'model_storage_bytes': 'modelStorageBytes',
|
|
67
77
|
'total_storage_bytes': 'totalStorageBytes',
|
|
68
78
|
'upload_storage_bytes': 'uploadStorageBytes'
|
|
69
79
|
}
|
|
70
80
|
|
|
71
|
-
def __init__(self, billable_bytes: 'str' =None, cloudspace_storage_bytes: 'str' =None, container_registry_storage_bytes: 'str' =None, data_connection_storage_bytes: 'str' =None, display_name: 'str' =None, estimated_daily_cost: 'float' =None, folder_storage_bytes: 'str' =None, id: 'str' =None, job_storage_bytes: 'str' =None, total_storage_bytes: 'str' =None, upload_storage_bytes: 'str' =None): # noqa: E501
|
|
81
|
+
def __init__(self, billable_bytes: 'str' =None, cloudspace_storage_bytes: 'str' =None, container_registry_storage_bytes: 'str' =None, daily_read_bytes: 'str' =None, daily_write_bytes: 'str' =None, data_connection_storage_bytes: 'str' =None, display_name: 'str' =None, efs_folder_bytes: 'str' =None, estimated_daily_cost: 'float' =None, estimated_efs_cost: 'float' =None, folder_storage_bytes: 'str' =None, id: 'str' =None, job_storage_bytes: 'str' =None, model_storage_bytes: 'str' =None, total_storage_bytes: 'str' =None, upload_storage_bytes: 'str' =None): # noqa: E501
|
|
72
82
|
"""V1ProjectStorage - a model defined in Swagger""" # noqa: E501
|
|
73
83
|
self._billable_bytes = None
|
|
74
84
|
self._cloudspace_storage_bytes = None
|
|
75
85
|
self._container_registry_storage_bytes = None
|
|
86
|
+
self._daily_read_bytes = None
|
|
87
|
+
self._daily_write_bytes = None
|
|
76
88
|
self._data_connection_storage_bytes = None
|
|
77
89
|
self._display_name = None
|
|
90
|
+
self._efs_folder_bytes = None
|
|
78
91
|
self._estimated_daily_cost = None
|
|
92
|
+
self._estimated_efs_cost = None
|
|
79
93
|
self._folder_storage_bytes = None
|
|
80
94
|
self._id = None
|
|
81
95
|
self._job_storage_bytes = None
|
|
96
|
+
self._model_storage_bytes = None
|
|
82
97
|
self._total_storage_bytes = None
|
|
83
98
|
self._upload_storage_bytes = None
|
|
84
99
|
self.discriminator = None
|
|
@@ -88,18 +103,28 @@ class V1ProjectStorage(object):
|
|
|
88
103
|
self.cloudspace_storage_bytes = cloudspace_storage_bytes
|
|
89
104
|
if container_registry_storage_bytes is not None:
|
|
90
105
|
self.container_registry_storage_bytes = container_registry_storage_bytes
|
|
106
|
+
if daily_read_bytes is not None:
|
|
107
|
+
self.daily_read_bytes = daily_read_bytes
|
|
108
|
+
if daily_write_bytes is not None:
|
|
109
|
+
self.daily_write_bytes = daily_write_bytes
|
|
91
110
|
if data_connection_storage_bytes is not None:
|
|
92
111
|
self.data_connection_storage_bytes = data_connection_storage_bytes
|
|
93
112
|
if display_name is not None:
|
|
94
113
|
self.display_name = display_name
|
|
114
|
+
if efs_folder_bytes is not None:
|
|
115
|
+
self.efs_folder_bytes = efs_folder_bytes
|
|
95
116
|
if estimated_daily_cost is not None:
|
|
96
117
|
self.estimated_daily_cost = estimated_daily_cost
|
|
118
|
+
if estimated_efs_cost is not None:
|
|
119
|
+
self.estimated_efs_cost = estimated_efs_cost
|
|
97
120
|
if folder_storage_bytes is not None:
|
|
98
121
|
self.folder_storage_bytes = folder_storage_bytes
|
|
99
122
|
if id is not None:
|
|
100
123
|
self.id = id
|
|
101
124
|
if job_storage_bytes is not None:
|
|
102
125
|
self.job_storage_bytes = job_storage_bytes
|
|
126
|
+
if model_storage_bytes is not None:
|
|
127
|
+
self.model_storage_bytes = model_storage_bytes
|
|
103
128
|
if total_storage_bytes is not None:
|
|
104
129
|
self.total_storage_bytes = total_storage_bytes
|
|
105
130
|
if upload_storage_bytes is not None:
|
|
@@ -168,6 +193,48 @@ class V1ProjectStorage(object):
|
|
|
168
193
|
|
|
169
194
|
self._container_registry_storage_bytes = container_registry_storage_bytes
|
|
170
195
|
|
|
196
|
+
@property
|
|
197
|
+
def daily_read_bytes(self) -> 'str':
|
|
198
|
+
"""Gets the daily_read_bytes of this V1ProjectStorage. # noqa: E501
|
|
199
|
+
|
|
200
|
+
|
|
201
|
+
:return: The daily_read_bytes of this V1ProjectStorage. # noqa: E501
|
|
202
|
+
:rtype: str
|
|
203
|
+
"""
|
|
204
|
+
return self._daily_read_bytes
|
|
205
|
+
|
|
206
|
+
@daily_read_bytes.setter
|
|
207
|
+
def daily_read_bytes(self, daily_read_bytes: 'str'):
|
|
208
|
+
"""Sets the daily_read_bytes of this V1ProjectStorage.
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
:param daily_read_bytes: The daily_read_bytes of this V1ProjectStorage. # noqa: E501
|
|
212
|
+
:type: str
|
|
213
|
+
"""
|
|
214
|
+
|
|
215
|
+
self._daily_read_bytes = daily_read_bytes
|
|
216
|
+
|
|
217
|
+
@property
|
|
218
|
+
def daily_write_bytes(self) -> 'str':
|
|
219
|
+
"""Gets the daily_write_bytes of this V1ProjectStorage. # noqa: E501
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
:return: The daily_write_bytes of this V1ProjectStorage. # noqa: E501
|
|
223
|
+
:rtype: str
|
|
224
|
+
"""
|
|
225
|
+
return self._daily_write_bytes
|
|
226
|
+
|
|
227
|
+
@daily_write_bytes.setter
|
|
228
|
+
def daily_write_bytes(self, daily_write_bytes: 'str'):
|
|
229
|
+
"""Sets the daily_write_bytes of this V1ProjectStorage.
|
|
230
|
+
|
|
231
|
+
|
|
232
|
+
:param daily_write_bytes: The daily_write_bytes of this V1ProjectStorage. # noqa: E501
|
|
233
|
+
:type: str
|
|
234
|
+
"""
|
|
235
|
+
|
|
236
|
+
self._daily_write_bytes = daily_write_bytes
|
|
237
|
+
|
|
171
238
|
@property
|
|
172
239
|
def data_connection_storage_bytes(self) -> 'str':
|
|
173
240
|
"""Gets the data_connection_storage_bytes of this V1ProjectStorage. # noqa: E501
|
|
@@ -210,6 +277,27 @@ class V1ProjectStorage(object):
|
|
|
210
277
|
|
|
211
278
|
self._display_name = display_name
|
|
212
279
|
|
|
280
|
+
@property
|
|
281
|
+
def efs_folder_bytes(self) -> 'str':
|
|
282
|
+
"""Gets the efs_folder_bytes of this V1ProjectStorage. # noqa: E501
|
|
283
|
+
|
|
284
|
+
|
|
285
|
+
:return: The efs_folder_bytes of this V1ProjectStorage. # noqa: E501
|
|
286
|
+
:rtype: str
|
|
287
|
+
"""
|
|
288
|
+
return self._efs_folder_bytes
|
|
289
|
+
|
|
290
|
+
@efs_folder_bytes.setter
|
|
291
|
+
def efs_folder_bytes(self, efs_folder_bytes: 'str'):
|
|
292
|
+
"""Sets the efs_folder_bytes of this V1ProjectStorage.
|
|
293
|
+
|
|
294
|
+
|
|
295
|
+
:param efs_folder_bytes: The efs_folder_bytes of this V1ProjectStorage. # noqa: E501
|
|
296
|
+
:type: str
|
|
297
|
+
"""
|
|
298
|
+
|
|
299
|
+
self._efs_folder_bytes = efs_folder_bytes
|
|
300
|
+
|
|
213
301
|
@property
|
|
214
302
|
def estimated_daily_cost(self) -> 'float':
|
|
215
303
|
"""Gets the estimated_daily_cost of this V1ProjectStorage. # noqa: E501
|
|
@@ -231,6 +319,27 @@ class V1ProjectStorage(object):
|
|
|
231
319
|
|
|
232
320
|
self._estimated_daily_cost = estimated_daily_cost
|
|
233
321
|
|
|
322
|
+
@property
|
|
323
|
+
def estimated_efs_cost(self) -> 'float':
|
|
324
|
+
"""Gets the estimated_efs_cost of this V1ProjectStorage. # noqa: E501
|
|
325
|
+
|
|
326
|
+
|
|
327
|
+
:return: The estimated_efs_cost of this V1ProjectStorage. # noqa: E501
|
|
328
|
+
:rtype: float
|
|
329
|
+
"""
|
|
330
|
+
return self._estimated_efs_cost
|
|
331
|
+
|
|
332
|
+
@estimated_efs_cost.setter
|
|
333
|
+
def estimated_efs_cost(self, estimated_efs_cost: 'float'):
|
|
334
|
+
"""Sets the estimated_efs_cost of this V1ProjectStorage.
|
|
335
|
+
|
|
336
|
+
|
|
337
|
+
:param estimated_efs_cost: The estimated_efs_cost of this V1ProjectStorage. # noqa: E501
|
|
338
|
+
:type: float
|
|
339
|
+
"""
|
|
340
|
+
|
|
341
|
+
self._estimated_efs_cost = estimated_efs_cost
|
|
342
|
+
|
|
234
343
|
@property
|
|
235
344
|
def folder_storage_bytes(self) -> 'str':
|
|
236
345
|
"""Gets the folder_storage_bytes of this V1ProjectStorage. # noqa: E501
|
|
@@ -294,6 +403,27 @@ class V1ProjectStorage(object):
|
|
|
294
403
|
|
|
295
404
|
self._job_storage_bytes = job_storage_bytes
|
|
296
405
|
|
|
406
|
+
@property
|
|
407
|
+
def model_storage_bytes(self) -> 'str':
|
|
408
|
+
"""Gets the model_storage_bytes of this V1ProjectStorage. # noqa: E501
|
|
409
|
+
|
|
410
|
+
|
|
411
|
+
:return: The model_storage_bytes of this V1ProjectStorage. # noqa: E501
|
|
412
|
+
:rtype: str
|
|
413
|
+
"""
|
|
414
|
+
return self._model_storage_bytes
|
|
415
|
+
|
|
416
|
+
@model_storage_bytes.setter
|
|
417
|
+
def model_storage_bytes(self, model_storage_bytes: 'str'):
|
|
418
|
+
"""Sets the model_storage_bytes of this V1ProjectStorage.
|
|
419
|
+
|
|
420
|
+
|
|
421
|
+
:param model_storage_bytes: The model_storage_bytes of this V1ProjectStorage. # noqa: E501
|
|
422
|
+
:type: str
|
|
423
|
+
"""
|
|
424
|
+
|
|
425
|
+
self._model_storage_bytes = model_storage_bytes
|
|
426
|
+
|
|
297
427
|
@property
|
|
298
428
|
def total_storage_bytes(self) -> 'str':
|
|
299
429
|
"""Gets the total_storage_bytes of this V1ProjectStorage. # noqa: E501
|
|
@@ -46,6 +46,7 @@ class V1RoutingTelemetry(object):
|
|
|
46
46
|
'method': 'str',
|
|
47
47
|
'path': 'str',
|
|
48
48
|
'received_at': 'datetime',
|
|
49
|
+
'resource_id': 'str',
|
|
49
50
|
'status_code': 'int'
|
|
50
51
|
}
|
|
51
52
|
|
|
@@ -55,16 +56,18 @@ class V1RoutingTelemetry(object):
|
|
|
55
56
|
'method': 'method',
|
|
56
57
|
'path': 'path',
|
|
57
58
|
'received_at': 'receivedAt',
|
|
59
|
+
'resource_id': 'resourceId',
|
|
58
60
|
'status_code': 'statusCode'
|
|
59
61
|
}
|
|
60
62
|
|
|
61
|
-
def __init__(self, duration: 'float' =None, id: 'str' =None, method: 'str' =None, path: 'str' =None, received_at: 'datetime' =None, status_code: 'int' =None): # noqa: E501
|
|
63
|
+
def __init__(self, duration: 'float' =None, id: 'str' =None, method: 'str' =None, path: 'str' =None, received_at: 'datetime' =None, resource_id: 'str' =None, status_code: 'int' =None): # noqa: E501
|
|
62
64
|
"""V1RoutingTelemetry - a model defined in Swagger""" # noqa: E501
|
|
63
65
|
self._duration = None
|
|
64
66
|
self._id = None
|
|
65
67
|
self._method = None
|
|
66
68
|
self._path = None
|
|
67
69
|
self._received_at = None
|
|
70
|
+
self._resource_id = None
|
|
68
71
|
self._status_code = None
|
|
69
72
|
self.discriminator = None
|
|
70
73
|
if duration is not None:
|
|
@@ -77,6 +80,8 @@ class V1RoutingTelemetry(object):
|
|
|
77
80
|
self.path = path
|
|
78
81
|
if received_at is not None:
|
|
79
82
|
self.received_at = received_at
|
|
83
|
+
if resource_id is not None:
|
|
84
|
+
self.resource_id = resource_id
|
|
80
85
|
if status_code is not None:
|
|
81
86
|
self.status_code = status_code
|
|
82
87
|
|
|
@@ -185,6 +190,27 @@ class V1RoutingTelemetry(object):
|
|
|
185
190
|
|
|
186
191
|
self._received_at = received_at
|
|
187
192
|
|
|
193
|
+
@property
|
|
194
|
+
def resource_id(self) -> 'str':
|
|
195
|
+
"""Gets the resource_id of this V1RoutingTelemetry. # noqa: E501
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
:return: The resource_id of this V1RoutingTelemetry. # noqa: E501
|
|
199
|
+
:rtype: str
|
|
200
|
+
"""
|
|
201
|
+
return self._resource_id
|
|
202
|
+
|
|
203
|
+
@resource_id.setter
|
|
204
|
+
def resource_id(self, resource_id: 'str'):
|
|
205
|
+
"""Sets the resource_id of this V1RoutingTelemetry.
|
|
206
|
+
|
|
207
|
+
|
|
208
|
+
:param resource_id: The resource_id of this V1RoutingTelemetry. # noqa: E501
|
|
209
|
+
:type: str
|
|
210
|
+
"""
|
|
211
|
+
|
|
212
|
+
self._resource_id = resource_id
|
|
213
|
+
|
|
188
214
|
@property
|
|
189
215
|
def status_code(self) -> 'int':
|
|
190
216
|
"""Gets the status_code of this V1RoutingTelemetry. # noqa: E501
|
|
@@ -46,6 +46,7 @@ class V1StorageAsset(object):
|
|
|
46
46
|
'id': 'str',
|
|
47
47
|
'name': 'str',
|
|
48
48
|
'storage_bytes': 'str',
|
|
49
|
+
'sub_type': 'str',
|
|
49
50
|
'type': 'V1StorageAssetType'
|
|
50
51
|
}
|
|
51
52
|
|
|
@@ -55,16 +56,18 @@ class V1StorageAsset(object):
|
|
|
55
56
|
'id': 'id',
|
|
56
57
|
'name': 'name',
|
|
57
58
|
'storage_bytes': 'storageBytes',
|
|
59
|
+
'sub_type': 'subType',
|
|
58
60
|
'type': 'type'
|
|
59
61
|
}
|
|
60
62
|
|
|
61
|
-
def __init__(self, created_at: 'datetime' =None, created_by: 'str' =None, id: 'str' =None, name: 'str' =None, storage_bytes: 'str' =None, type: 'V1StorageAssetType' =None): # noqa: E501
|
|
63
|
+
def __init__(self, created_at: 'datetime' =None, created_by: 'str' =None, id: 'str' =None, name: 'str' =None, storage_bytes: 'str' =None, sub_type: 'str' =None, type: 'V1StorageAssetType' =None): # noqa: E501
|
|
62
64
|
"""V1StorageAsset - a model defined in Swagger""" # noqa: E501
|
|
63
65
|
self._created_at = None
|
|
64
66
|
self._created_by = None
|
|
65
67
|
self._id = None
|
|
66
68
|
self._name = None
|
|
67
69
|
self._storage_bytes = None
|
|
70
|
+
self._sub_type = None
|
|
68
71
|
self._type = None
|
|
69
72
|
self.discriminator = None
|
|
70
73
|
if created_at is not None:
|
|
@@ -77,6 +80,8 @@ class V1StorageAsset(object):
|
|
|
77
80
|
self.name = name
|
|
78
81
|
if storage_bytes is not None:
|
|
79
82
|
self.storage_bytes = storage_bytes
|
|
83
|
+
if sub_type is not None:
|
|
84
|
+
self.sub_type = sub_type
|
|
80
85
|
if type is not None:
|
|
81
86
|
self.type = type
|
|
82
87
|
|
|
@@ -185,6 +190,27 @@ class V1StorageAsset(object):
|
|
|
185
190
|
|
|
186
191
|
self._storage_bytes = storage_bytes
|
|
187
192
|
|
|
193
|
+
@property
|
|
194
|
+
def sub_type(self) -> 'str':
|
|
195
|
+
"""Gets the sub_type of this V1StorageAsset. # noqa: E501
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
:return: The sub_type of this V1StorageAsset. # noqa: E501
|
|
199
|
+
:rtype: str
|
|
200
|
+
"""
|
|
201
|
+
return self._sub_type
|
|
202
|
+
|
|
203
|
+
@sub_type.setter
|
|
204
|
+
def sub_type(self, sub_type: 'str'):
|
|
205
|
+
"""Sets the sub_type of this V1StorageAsset.
|
|
206
|
+
|
|
207
|
+
|
|
208
|
+
:param sub_type: The sub_type of this V1StorageAsset. # noqa: E501
|
|
209
|
+
:type: str
|
|
210
|
+
"""
|
|
211
|
+
|
|
212
|
+
self._sub_type = sub_type
|
|
213
|
+
|
|
188
214
|
@property
|
|
189
215
|
def type(self) -> 'V1StorageAssetType':
|
|
190
216
|
"""Gets the type of this V1StorageAsset. # noqa: E501
|
|
@@ -44,6 +44,7 @@ class V1Transaction(object):
|
|
|
44
44
|
'amount': 'float',
|
|
45
45
|
'created_at': 'datetime',
|
|
46
46
|
'display_name': 'str',
|
|
47
|
+
'project_name': 'str',
|
|
47
48
|
'type': 'str'
|
|
48
49
|
}
|
|
49
50
|
|
|
@@ -51,14 +52,16 @@ class V1Transaction(object):
|
|
|
51
52
|
'amount': 'amount',
|
|
52
53
|
'created_at': 'createdAt',
|
|
53
54
|
'display_name': 'displayName',
|
|
55
|
+
'project_name': 'projectName',
|
|
54
56
|
'type': 'type'
|
|
55
57
|
}
|
|
56
58
|
|
|
57
|
-
def __init__(self, amount: 'float' =None, created_at: 'datetime' =None, display_name: 'str' =None, type: 'str' =None): # noqa: E501
|
|
59
|
+
def __init__(self, amount: 'float' =None, created_at: 'datetime' =None, display_name: 'str' =None, project_name: 'str' =None, type: 'str' =None): # noqa: E501
|
|
58
60
|
"""V1Transaction - a model defined in Swagger""" # noqa: E501
|
|
59
61
|
self._amount = None
|
|
60
62
|
self._created_at = None
|
|
61
63
|
self._display_name = None
|
|
64
|
+
self._project_name = None
|
|
62
65
|
self._type = None
|
|
63
66
|
self.discriminator = None
|
|
64
67
|
if amount is not None:
|
|
@@ -67,6 +70,8 @@ class V1Transaction(object):
|
|
|
67
70
|
self.created_at = created_at
|
|
68
71
|
if display_name is not None:
|
|
69
72
|
self.display_name = display_name
|
|
73
|
+
if project_name is not None:
|
|
74
|
+
self.project_name = project_name
|
|
70
75
|
if type is not None:
|
|
71
76
|
self.type = type
|
|
72
77
|
|
|
@@ -133,6 +138,27 @@ class V1Transaction(object):
|
|
|
133
138
|
|
|
134
139
|
self._display_name = display_name
|
|
135
140
|
|
|
141
|
+
@property
|
|
142
|
+
def project_name(self) -> 'str':
|
|
143
|
+
"""Gets the project_name of this V1Transaction. # noqa: E501
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
:return: The project_name of this V1Transaction. # noqa: E501
|
|
147
|
+
:rtype: str
|
|
148
|
+
"""
|
|
149
|
+
return self._project_name
|
|
150
|
+
|
|
151
|
+
@project_name.setter
|
|
152
|
+
def project_name(self, project_name: 'str'):
|
|
153
|
+
"""Sets the project_name of this V1Transaction.
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
:param project_name: The project_name of this V1Transaction. # noqa: E501
|
|
157
|
+
:type: str
|
|
158
|
+
"""
|
|
159
|
+
|
|
160
|
+
self._project_name = project_name
|
|
161
|
+
|
|
136
162
|
@property
|
|
137
163
|
def type(self) -> 'str':
|
|
138
164
|
"""Gets the type of this V1Transaction. # noqa: E501
|
|
@@ -48,9 +48,9 @@ class V1Usage(object):
|
|
|
48
48
|
'deleted_at': 'datetime',
|
|
49
49
|
'free': 'bool',
|
|
50
50
|
'id': 'str',
|
|
51
|
+
'instance_type': 'str',
|
|
51
52
|
'name': 'str',
|
|
52
53
|
'project_id': 'str',
|
|
53
|
-
'reservations': 'list[V1ReservationBillingSession]',
|
|
54
54
|
'resource_type': 'str',
|
|
55
55
|
'saved_cost': 'float',
|
|
56
56
|
'session_ended_at': 'datetime',
|
|
@@ -70,9 +70,9 @@ class V1Usage(object):
|
|
|
70
70
|
'deleted_at': 'deletedAt',
|
|
71
71
|
'free': 'free',
|
|
72
72
|
'id': 'id',
|
|
73
|
+
'instance_type': 'instanceType',
|
|
73
74
|
'name': 'name',
|
|
74
75
|
'project_id': 'projectId',
|
|
75
|
-
'reservations': 'reservations',
|
|
76
76
|
'resource_type': 'resourceType',
|
|
77
77
|
'saved_cost': 'savedCost',
|
|
78
78
|
'session_ended_at': 'sessionEndedAt',
|
|
@@ -84,7 +84,7 @@ class V1Usage(object):
|
|
|
84
84
|
'user_id': 'userId'
|
|
85
85
|
}
|
|
86
86
|
|
|
87
|
-
def __init__(self, billed_time_seconds: 'str' =None, cluster_id: 'str' =None, cost: 'float' =None, created_at: 'datetime' =None, deleted_at: 'datetime' =None, free: 'bool' =None, id: 'str' =None,
|
|
87
|
+
def __init__(self, billed_time_seconds: 'str' =None, cluster_id: 'str' =None, cost: 'float' =None, created_at: 'datetime' =None, deleted_at: 'datetime' =None, free: 'bool' =None, id: 'str' =None, instance_type: 'str' =None, name: 'str' =None, project_id: 'str' =None, resource_type: 'str' =None, saved_cost: 'float' =None, session_ended_at: 'datetime' =None, session_started_at: 'datetime' =None, spot: 'bool' =None, total_completion_tokens: 'str' =None, total_num_messages: 'str' =None, total_prompt_tokens: 'str' =None, user_id: 'str' =None): # noqa: E501
|
|
88
88
|
"""V1Usage - a model defined in Swagger""" # noqa: E501
|
|
89
89
|
self._billed_time_seconds = None
|
|
90
90
|
self._cluster_id = None
|
|
@@ -93,9 +93,9 @@ class V1Usage(object):
|
|
|
93
93
|
self._deleted_at = None
|
|
94
94
|
self._free = None
|
|
95
95
|
self._id = None
|
|
96
|
+
self._instance_type = None
|
|
96
97
|
self._name = None
|
|
97
98
|
self._project_id = None
|
|
98
|
-
self._reservations = None
|
|
99
99
|
self._resource_type = None
|
|
100
100
|
self._saved_cost = None
|
|
101
101
|
self._session_ended_at = None
|
|
@@ -120,12 +120,12 @@ class V1Usage(object):
|
|
|
120
120
|
self.free = free
|
|
121
121
|
if id is not None:
|
|
122
122
|
self.id = id
|
|
123
|
+
if instance_type is not None:
|
|
124
|
+
self.instance_type = instance_type
|
|
123
125
|
if name is not None:
|
|
124
126
|
self.name = name
|
|
125
127
|
if project_id is not None:
|
|
126
128
|
self.project_id = project_id
|
|
127
|
-
if reservations is not None:
|
|
128
|
-
self.reservations = reservations
|
|
129
129
|
if resource_type is not None:
|
|
130
130
|
self.resource_type = resource_type
|
|
131
131
|
if saved_cost is not None:
|
|
@@ -292,6 +292,27 @@ class V1Usage(object):
|
|
|
292
292
|
|
|
293
293
|
self._id = id
|
|
294
294
|
|
|
295
|
+
@property
|
|
296
|
+
def instance_type(self) -> 'str':
|
|
297
|
+
"""Gets the instance_type of this V1Usage. # noqa: E501
|
|
298
|
+
|
|
299
|
+
|
|
300
|
+
:return: The instance_type of this V1Usage. # noqa: E501
|
|
301
|
+
:rtype: str
|
|
302
|
+
"""
|
|
303
|
+
return self._instance_type
|
|
304
|
+
|
|
305
|
+
@instance_type.setter
|
|
306
|
+
def instance_type(self, instance_type: 'str'):
|
|
307
|
+
"""Sets the instance_type of this V1Usage.
|
|
308
|
+
|
|
309
|
+
|
|
310
|
+
:param instance_type: The instance_type of this V1Usage. # noqa: E501
|
|
311
|
+
:type: str
|
|
312
|
+
"""
|
|
313
|
+
|
|
314
|
+
self._instance_type = instance_type
|
|
315
|
+
|
|
295
316
|
@property
|
|
296
317
|
def name(self) -> 'str':
|
|
297
318
|
"""Gets the name of this V1Usage. # noqa: E501
|
|
@@ -334,27 +355,6 @@ class V1Usage(object):
|
|
|
334
355
|
|
|
335
356
|
self._project_id = project_id
|
|
336
357
|
|
|
337
|
-
@property
|
|
338
|
-
def reservations(self) -> 'list[V1ReservationBillingSession]':
|
|
339
|
-
"""Gets the reservations of this V1Usage. # noqa: E501
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
:return: The reservations of this V1Usage. # noqa: E501
|
|
343
|
-
:rtype: list[V1ReservationBillingSession]
|
|
344
|
-
"""
|
|
345
|
-
return self._reservations
|
|
346
|
-
|
|
347
|
-
@reservations.setter
|
|
348
|
-
def reservations(self, reservations: 'list[V1ReservationBillingSession]'):
|
|
349
|
-
"""Sets the reservations of this V1Usage.
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
:param reservations: The reservations of this V1Usage. # noqa: E501
|
|
353
|
-
:type: list[V1ReservationBillingSession]
|
|
354
|
-
"""
|
|
355
|
-
|
|
356
|
-
self._reservations = reservations
|
|
357
|
-
|
|
358
358
|
@property
|
|
359
359
|
def resource_type(self) -> 'str':
|
|
360
360
|
"""Gets the resource_type of this V1Usage. # noqa: E501
|