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
|
@@ -1,279 +0,0 @@
|
|
|
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 V1ReservationBillingSession(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
|
-
'cluster_id': 'str',
|
|
45
|
-
'cost': 'float',
|
|
46
|
-
'end_time': 'datetime',
|
|
47
|
-
'machine_type': 'str',
|
|
48
|
-
'num_instances': 'str',
|
|
49
|
-
'project_id': 'str',
|
|
50
|
-
'start_time': 'datetime'
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
attribute_map = {
|
|
54
|
-
'cluster_id': 'clusterId',
|
|
55
|
-
'cost': 'cost',
|
|
56
|
-
'end_time': 'endTime',
|
|
57
|
-
'machine_type': 'machineType',
|
|
58
|
-
'num_instances': 'numInstances',
|
|
59
|
-
'project_id': 'projectId',
|
|
60
|
-
'start_time': 'startTime'
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
def __init__(self, cluster_id: 'str' =None, cost: 'float' =None, end_time: 'datetime' =None, machine_type: 'str' =None, num_instances: 'str' =None, project_id: 'str' =None, start_time: 'datetime' =None): # noqa: E501
|
|
64
|
-
"""V1ReservationBillingSession - a model defined in Swagger""" # noqa: E501
|
|
65
|
-
self._cluster_id = None
|
|
66
|
-
self._cost = None
|
|
67
|
-
self._end_time = None
|
|
68
|
-
self._machine_type = None
|
|
69
|
-
self._num_instances = None
|
|
70
|
-
self._project_id = None
|
|
71
|
-
self._start_time = None
|
|
72
|
-
self.discriminator = None
|
|
73
|
-
if cluster_id is not None:
|
|
74
|
-
self.cluster_id = cluster_id
|
|
75
|
-
if cost is not None:
|
|
76
|
-
self.cost = cost
|
|
77
|
-
if end_time is not None:
|
|
78
|
-
self.end_time = end_time
|
|
79
|
-
if machine_type is not None:
|
|
80
|
-
self.machine_type = machine_type
|
|
81
|
-
if num_instances is not None:
|
|
82
|
-
self.num_instances = num_instances
|
|
83
|
-
if project_id is not None:
|
|
84
|
-
self.project_id = project_id
|
|
85
|
-
if start_time is not None:
|
|
86
|
-
self.start_time = start_time
|
|
87
|
-
|
|
88
|
-
@property
|
|
89
|
-
def cluster_id(self) -> 'str':
|
|
90
|
-
"""Gets the cluster_id of this V1ReservationBillingSession. # noqa: E501
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
:return: The cluster_id of this V1ReservationBillingSession. # noqa: E501
|
|
94
|
-
:rtype: str
|
|
95
|
-
"""
|
|
96
|
-
return self._cluster_id
|
|
97
|
-
|
|
98
|
-
@cluster_id.setter
|
|
99
|
-
def cluster_id(self, cluster_id: 'str'):
|
|
100
|
-
"""Sets the cluster_id of this V1ReservationBillingSession.
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
:param cluster_id: The cluster_id of this V1ReservationBillingSession. # noqa: E501
|
|
104
|
-
:type: str
|
|
105
|
-
"""
|
|
106
|
-
|
|
107
|
-
self._cluster_id = cluster_id
|
|
108
|
-
|
|
109
|
-
@property
|
|
110
|
-
def cost(self) -> 'float':
|
|
111
|
-
"""Gets the cost of this V1ReservationBillingSession. # noqa: E501
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
:return: The cost of this V1ReservationBillingSession. # noqa: E501
|
|
115
|
-
:rtype: float
|
|
116
|
-
"""
|
|
117
|
-
return self._cost
|
|
118
|
-
|
|
119
|
-
@cost.setter
|
|
120
|
-
def cost(self, cost: 'float'):
|
|
121
|
-
"""Sets the cost of this V1ReservationBillingSession.
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
:param cost: The cost of this V1ReservationBillingSession. # noqa: E501
|
|
125
|
-
:type: float
|
|
126
|
-
"""
|
|
127
|
-
|
|
128
|
-
self._cost = cost
|
|
129
|
-
|
|
130
|
-
@property
|
|
131
|
-
def end_time(self) -> 'datetime':
|
|
132
|
-
"""Gets the end_time of this V1ReservationBillingSession. # noqa: E501
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
:return: The end_time of this V1ReservationBillingSession. # noqa: E501
|
|
136
|
-
:rtype: datetime
|
|
137
|
-
"""
|
|
138
|
-
return self._end_time
|
|
139
|
-
|
|
140
|
-
@end_time.setter
|
|
141
|
-
def end_time(self, end_time: 'datetime'):
|
|
142
|
-
"""Sets the end_time of this V1ReservationBillingSession.
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
:param end_time: The end_time of this V1ReservationBillingSession. # noqa: E501
|
|
146
|
-
:type: datetime
|
|
147
|
-
"""
|
|
148
|
-
|
|
149
|
-
self._end_time = end_time
|
|
150
|
-
|
|
151
|
-
@property
|
|
152
|
-
def machine_type(self) -> 'str':
|
|
153
|
-
"""Gets the machine_type of this V1ReservationBillingSession. # noqa: E501
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
:return: The machine_type of this V1ReservationBillingSession. # noqa: E501
|
|
157
|
-
:rtype: str
|
|
158
|
-
"""
|
|
159
|
-
return self._machine_type
|
|
160
|
-
|
|
161
|
-
@machine_type.setter
|
|
162
|
-
def machine_type(self, machine_type: 'str'):
|
|
163
|
-
"""Sets the machine_type of this V1ReservationBillingSession.
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
:param machine_type: The machine_type of this V1ReservationBillingSession. # noqa: E501
|
|
167
|
-
:type: str
|
|
168
|
-
"""
|
|
169
|
-
|
|
170
|
-
self._machine_type = machine_type
|
|
171
|
-
|
|
172
|
-
@property
|
|
173
|
-
def num_instances(self) -> 'str':
|
|
174
|
-
"""Gets the num_instances of this V1ReservationBillingSession. # noqa: E501
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
:return: The num_instances of this V1ReservationBillingSession. # noqa: E501
|
|
178
|
-
:rtype: str
|
|
179
|
-
"""
|
|
180
|
-
return self._num_instances
|
|
181
|
-
|
|
182
|
-
@num_instances.setter
|
|
183
|
-
def num_instances(self, num_instances: 'str'):
|
|
184
|
-
"""Sets the num_instances of this V1ReservationBillingSession.
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
:param num_instances: The num_instances of this V1ReservationBillingSession. # noqa: E501
|
|
188
|
-
:type: str
|
|
189
|
-
"""
|
|
190
|
-
|
|
191
|
-
self._num_instances = num_instances
|
|
192
|
-
|
|
193
|
-
@property
|
|
194
|
-
def project_id(self) -> 'str':
|
|
195
|
-
"""Gets the project_id of this V1ReservationBillingSession. # noqa: E501
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
:return: The project_id of this V1ReservationBillingSession. # noqa: E501
|
|
199
|
-
:rtype: str
|
|
200
|
-
"""
|
|
201
|
-
return self._project_id
|
|
202
|
-
|
|
203
|
-
@project_id.setter
|
|
204
|
-
def project_id(self, project_id: 'str'):
|
|
205
|
-
"""Sets the project_id of this V1ReservationBillingSession.
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
:param project_id: The project_id of this V1ReservationBillingSession. # noqa: E501
|
|
209
|
-
:type: str
|
|
210
|
-
"""
|
|
211
|
-
|
|
212
|
-
self._project_id = project_id
|
|
213
|
-
|
|
214
|
-
@property
|
|
215
|
-
def start_time(self) -> 'datetime':
|
|
216
|
-
"""Gets the start_time of this V1ReservationBillingSession. # noqa: E501
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
:return: The start_time of this V1ReservationBillingSession. # noqa: E501
|
|
220
|
-
:rtype: datetime
|
|
221
|
-
"""
|
|
222
|
-
return self._start_time
|
|
223
|
-
|
|
224
|
-
@start_time.setter
|
|
225
|
-
def start_time(self, start_time: 'datetime'):
|
|
226
|
-
"""Sets the start_time of this V1ReservationBillingSession.
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
:param start_time: The start_time of this V1ReservationBillingSession. # noqa: E501
|
|
230
|
-
:type: datetime
|
|
231
|
-
"""
|
|
232
|
-
|
|
233
|
-
self._start_time = start_time
|
|
234
|
-
|
|
235
|
-
def to_dict(self) -> dict:
|
|
236
|
-
"""Returns the model properties as a dict"""
|
|
237
|
-
result = {}
|
|
238
|
-
|
|
239
|
-
for attr, _ in six.iteritems(self.swagger_types):
|
|
240
|
-
value = getattr(self, attr)
|
|
241
|
-
if isinstance(value, list):
|
|
242
|
-
result[attr] = list(map(
|
|
243
|
-
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
244
|
-
value
|
|
245
|
-
))
|
|
246
|
-
elif hasattr(value, "to_dict"):
|
|
247
|
-
result[attr] = value.to_dict()
|
|
248
|
-
elif isinstance(value, dict):
|
|
249
|
-
result[attr] = dict(map(
|
|
250
|
-
lambda item: (item[0], item[1].to_dict())
|
|
251
|
-
if hasattr(item[1], "to_dict") else item,
|
|
252
|
-
value.items()
|
|
253
|
-
))
|
|
254
|
-
else:
|
|
255
|
-
result[attr] = value
|
|
256
|
-
if issubclass(V1ReservationBillingSession, dict):
|
|
257
|
-
for key, value in self.items():
|
|
258
|
-
result[key] = value
|
|
259
|
-
|
|
260
|
-
return result
|
|
261
|
-
|
|
262
|
-
def to_str(self) -> str:
|
|
263
|
-
"""Returns the string representation of the model"""
|
|
264
|
-
return pprint.pformat(self.to_dict())
|
|
265
|
-
|
|
266
|
-
def __repr__(self) -> str:
|
|
267
|
-
"""For `print` and `pprint`"""
|
|
268
|
-
return self.to_str()
|
|
269
|
-
|
|
270
|
-
def __eq__(self, other: 'V1ReservationBillingSession') -> bool:
|
|
271
|
-
"""Returns true if both objects are equal"""
|
|
272
|
-
if not isinstance(other, V1ReservationBillingSession):
|
|
273
|
-
return False
|
|
274
|
-
|
|
275
|
-
return self.__dict__ == other.__dict__
|
|
276
|
-
|
|
277
|
-
def __ne__(self, other: 'V1ReservationBillingSession') -> bool:
|
|
278
|
-
"""Returns true if both objects are not equal"""
|
|
279
|
-
return not self == other
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|