lightning-sdk 0.2.15__py3-none-any.whl → 0.2.16__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- lightning_sdk/__init__.py +1 -1
- lightning_sdk/api/base_studio_api.py +7 -1
- lightning_sdk/api/cluster_api.py +83 -1
- lightning_sdk/api/llm_api.py +24 -5
- lightning_sdk/api/studio_api.py +3 -0
- lightning_sdk/api/teamspace_api.py +127 -1
- lightning_sdk/api/utils.py +4 -0
- lightning_sdk/base_studio.py +14 -1
- lightning_sdk/cli/create.py +21 -1
- lightning_sdk/cli/deploy/__init__.py +0 -0
- lightning_sdk/cli/deploy/_auth.py +189 -0
- lightning_sdk/cli/deploy/devbox.py +157 -0
- lightning_sdk/cli/{serve.py → deploy/serve.py} +11 -322
- lightning_sdk/cli/download.py +44 -16
- lightning_sdk/cli/entrypoint.py +1 -1
- lightning_sdk/cli/open.py +21 -2
- lightning_sdk/cli/start.py +12 -3
- lightning_sdk/cli/upload.py +2 -4
- lightning_sdk/lightning_cloud/openapi/__init__.py +18 -0
- lightning_sdk/lightning_cloud/openapi/api/assistants_service_api.py +121 -0
- lightning_sdk/lightning_cloud/openapi/api/cloud_space_service_api.py +105 -0
- lightning_sdk/lightning_cloud/openapi/api/cluster_service_api.py +105 -0
- lightning_sdk/lightning_cloud/openapi/api/jobs_service_api.py +747 -105
- lightning_sdk/lightning_cloud/openapi/api/storage_service_api.py +93 -0
- lightning_sdk/lightning_cloud/openapi/models/__init__.py +18 -0
- lightning_sdk/lightning_cloud/openapi/models/assistant_id_conversations_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/cloudspaces_id_body.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/deployment_id_alertingpolicies_body.py +331 -0
- lightning_sdk/lightning_cloud/openapi/models/deployment_id_alertingpolicies_body1.py +305 -0
- lightning_sdk/lightning_cloud/openapi/models/deployments_id_body.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/models_id_body.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/orgs_id_body.py +105 -1
- lightning_sdk/lightning_cloud/openapi/models/project_id_cloudspaces_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/projects_id_body.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_source_type.py +103 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_tagging_options.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_deployment_alerting_policy_response.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_alerting_event.py +487 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_alerting_policy.py +383 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_alerting_policy_frequency.py +105 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_alerting_policy_operation.py +105 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_alerting_policy_severity.py +106 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_alerting_policy_type.py +111 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_ge_list_deployment_routing_telemetry_response.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_get_cloud_space_instance_open_ports_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_deployment_routing_telemetry_content_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_organization_storage_metadata_response.py +331 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_user_response.py +1 -27
- lightning_sdk/lightning_cloud/openapi/models/v1_google_cloud_direct_v1.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_list_deployment_alerting_events_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_deployment_alerting_policies_response.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_membership.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_organization.py +105 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_project.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_project_membership.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_project_settings.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_project_storage.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_routing_telemetry.py +253 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_server_alert_type.py +1 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_sleep_server_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_update_user_request.py +1 -27
- lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +79 -27
- lightning_sdk/lightning_cloud/openapi/models/v1_user_requested_compute_config.py +27 -1
- lightning_sdk/llm/llm.py +52 -8
- lightning_sdk/studio.py +32 -1
- lightning_sdk/teamspace.py +68 -0
- {lightning_sdk-0.2.15.dist-info → lightning_sdk-0.2.16.dist-info}/METADATA +1 -1
- {lightning_sdk-0.2.15.dist-info → lightning_sdk-0.2.16.dist-info}/RECORD +74 -53
- {lightning_sdk-0.2.15.dist-info → lightning_sdk-0.2.16.dist-info}/LICENSE +0 -0
- {lightning_sdk-0.2.15.dist-info → lightning_sdk-0.2.16.dist-info}/WHEEL +0 -0
- {lightning_sdk-0.2.15.dist-info → lightning_sdk-0.2.16.dist-info}/entry_points.txt +0 -0
- {lightning_sdk-0.2.15.dist-info → lightning_sdk-0.2.16.dist-info}/top_level.txt +0 -0
|
@@ -41,35 +41,43 @@ class V1ProjectStorage(object):
|
|
|
41
41
|
and the value is json key in definition.
|
|
42
42
|
"""
|
|
43
43
|
swagger_types = {
|
|
44
|
+
'billable_bytes': 'str',
|
|
44
45
|
'cloudspace_storage_bytes': 'str',
|
|
45
46
|
'data_connection_storage_bytes': 'str',
|
|
46
47
|
'display_name': 'str',
|
|
47
48
|
'id': 'str',
|
|
48
49
|
'job_storage_bytes': 'str',
|
|
50
|
+
'total_billed_per_day': 'float',
|
|
49
51
|
'total_storage_bytes': 'str',
|
|
50
52
|
'upload_storage_bytes': 'str'
|
|
51
53
|
}
|
|
52
54
|
|
|
53
55
|
attribute_map = {
|
|
56
|
+
'billable_bytes': 'billableBytes',
|
|
54
57
|
'cloudspace_storage_bytes': 'cloudspaceStorageBytes',
|
|
55
58
|
'data_connection_storage_bytes': 'dataConnectionStorageBytes',
|
|
56
59
|
'display_name': 'displayName',
|
|
57
60
|
'id': 'id',
|
|
58
61
|
'job_storage_bytes': 'jobStorageBytes',
|
|
62
|
+
'total_billed_per_day': 'totalBilledPerDay',
|
|
59
63
|
'total_storage_bytes': 'totalStorageBytes',
|
|
60
64
|
'upload_storage_bytes': 'uploadStorageBytes'
|
|
61
65
|
}
|
|
62
66
|
|
|
63
|
-
def __init__(self, cloudspace_storage_bytes: 'str' =None, data_connection_storage_bytes: 'str' =None, display_name: 'str' =None, id: 'str' =None, job_storage_bytes: 'str' =None, total_storage_bytes: 'str' =None, upload_storage_bytes: 'str' =None): # noqa: E501
|
|
67
|
+
def __init__(self, billable_bytes: 'str' =None, cloudspace_storage_bytes: 'str' =None, data_connection_storage_bytes: 'str' =None, display_name: 'str' =None, id: 'str' =None, job_storage_bytes: 'str' =None, total_billed_per_day: 'float' =None, total_storage_bytes: 'str' =None, upload_storage_bytes: 'str' =None): # noqa: E501
|
|
64
68
|
"""V1ProjectStorage - a model defined in Swagger""" # noqa: E501
|
|
69
|
+
self._billable_bytes = None
|
|
65
70
|
self._cloudspace_storage_bytes = None
|
|
66
71
|
self._data_connection_storage_bytes = None
|
|
67
72
|
self._display_name = None
|
|
68
73
|
self._id = None
|
|
69
74
|
self._job_storage_bytes = None
|
|
75
|
+
self._total_billed_per_day = None
|
|
70
76
|
self._total_storage_bytes = None
|
|
71
77
|
self._upload_storage_bytes = None
|
|
72
78
|
self.discriminator = None
|
|
79
|
+
if billable_bytes is not None:
|
|
80
|
+
self.billable_bytes = billable_bytes
|
|
73
81
|
if cloudspace_storage_bytes is not None:
|
|
74
82
|
self.cloudspace_storage_bytes = cloudspace_storage_bytes
|
|
75
83
|
if data_connection_storage_bytes is not None:
|
|
@@ -80,11 +88,34 @@ class V1ProjectStorage(object):
|
|
|
80
88
|
self.id = id
|
|
81
89
|
if job_storage_bytes is not None:
|
|
82
90
|
self.job_storage_bytes = job_storage_bytes
|
|
91
|
+
if total_billed_per_day is not None:
|
|
92
|
+
self.total_billed_per_day = total_billed_per_day
|
|
83
93
|
if total_storage_bytes is not None:
|
|
84
94
|
self.total_storage_bytes = total_storage_bytes
|
|
85
95
|
if upload_storage_bytes is not None:
|
|
86
96
|
self.upload_storage_bytes = upload_storage_bytes
|
|
87
97
|
|
|
98
|
+
@property
|
|
99
|
+
def billable_bytes(self) -> 'str':
|
|
100
|
+
"""Gets the billable_bytes of this V1ProjectStorage. # noqa: E501
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
:return: The billable_bytes of this V1ProjectStorage. # noqa: E501
|
|
104
|
+
:rtype: str
|
|
105
|
+
"""
|
|
106
|
+
return self._billable_bytes
|
|
107
|
+
|
|
108
|
+
@billable_bytes.setter
|
|
109
|
+
def billable_bytes(self, billable_bytes: 'str'):
|
|
110
|
+
"""Sets the billable_bytes of this V1ProjectStorage.
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
:param billable_bytes: The billable_bytes of this V1ProjectStorage. # noqa: E501
|
|
114
|
+
:type: str
|
|
115
|
+
"""
|
|
116
|
+
|
|
117
|
+
self._billable_bytes = billable_bytes
|
|
118
|
+
|
|
88
119
|
@property
|
|
89
120
|
def cloudspace_storage_bytes(self) -> 'str':
|
|
90
121
|
"""Gets the cloudspace_storage_bytes of this V1ProjectStorage. # noqa: E501
|
|
@@ -190,6 +221,27 @@ class V1ProjectStorage(object):
|
|
|
190
221
|
|
|
191
222
|
self._job_storage_bytes = job_storage_bytes
|
|
192
223
|
|
|
224
|
+
@property
|
|
225
|
+
def total_billed_per_day(self) -> 'float':
|
|
226
|
+
"""Gets the total_billed_per_day of this V1ProjectStorage. # noqa: E501
|
|
227
|
+
|
|
228
|
+
|
|
229
|
+
:return: The total_billed_per_day of this V1ProjectStorage. # noqa: E501
|
|
230
|
+
:rtype: float
|
|
231
|
+
"""
|
|
232
|
+
return self._total_billed_per_day
|
|
233
|
+
|
|
234
|
+
@total_billed_per_day.setter
|
|
235
|
+
def total_billed_per_day(self, total_billed_per_day: 'float'):
|
|
236
|
+
"""Sets the total_billed_per_day of this V1ProjectStorage.
|
|
237
|
+
|
|
238
|
+
|
|
239
|
+
:param total_billed_per_day: The total_billed_per_day of this V1ProjectStorage. # noqa: E501
|
|
240
|
+
:type: float
|
|
241
|
+
"""
|
|
242
|
+
|
|
243
|
+
self._total_billed_per_day = total_billed_per_day
|
|
244
|
+
|
|
193
245
|
@property
|
|
194
246
|
def total_storage_bytes(self) -> 'str':
|
|
195
247
|
"""Gets the total_storage_bytes of this V1ProjectStorage. # noqa: E501
|
|
@@ -0,0 +1,253 @@
|
|
|
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 V1RoutingTelemetry(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
|
+
'duration': 'float',
|
|
45
|
+
'id': 'str',
|
|
46
|
+
'method': 'str',
|
|
47
|
+
'path': 'str',
|
|
48
|
+
'received_at': 'datetime',
|
|
49
|
+
'status_code': 'int'
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
attribute_map = {
|
|
53
|
+
'duration': 'duration',
|
|
54
|
+
'id': 'id',
|
|
55
|
+
'method': 'method',
|
|
56
|
+
'path': 'path',
|
|
57
|
+
'received_at': 'receivedAt',
|
|
58
|
+
'status_code': 'statusCode'
|
|
59
|
+
}
|
|
60
|
+
|
|
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
|
|
62
|
+
"""V1RoutingTelemetry - a model defined in Swagger""" # noqa: E501
|
|
63
|
+
self._duration = None
|
|
64
|
+
self._id = None
|
|
65
|
+
self._method = None
|
|
66
|
+
self._path = None
|
|
67
|
+
self._received_at = None
|
|
68
|
+
self._status_code = None
|
|
69
|
+
self.discriminator = None
|
|
70
|
+
if duration is not None:
|
|
71
|
+
self.duration = duration
|
|
72
|
+
if id is not None:
|
|
73
|
+
self.id = id
|
|
74
|
+
if method is not None:
|
|
75
|
+
self.method = method
|
|
76
|
+
if path is not None:
|
|
77
|
+
self.path = path
|
|
78
|
+
if received_at is not None:
|
|
79
|
+
self.received_at = received_at
|
|
80
|
+
if status_code is not None:
|
|
81
|
+
self.status_code = status_code
|
|
82
|
+
|
|
83
|
+
@property
|
|
84
|
+
def duration(self) -> 'float':
|
|
85
|
+
"""Gets the duration of this V1RoutingTelemetry. # noqa: E501
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
:return: The duration of this V1RoutingTelemetry. # noqa: E501
|
|
89
|
+
:rtype: float
|
|
90
|
+
"""
|
|
91
|
+
return self._duration
|
|
92
|
+
|
|
93
|
+
@duration.setter
|
|
94
|
+
def duration(self, duration: 'float'):
|
|
95
|
+
"""Sets the duration of this V1RoutingTelemetry.
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
:param duration: The duration of this V1RoutingTelemetry. # noqa: E501
|
|
99
|
+
:type: float
|
|
100
|
+
"""
|
|
101
|
+
|
|
102
|
+
self._duration = duration
|
|
103
|
+
|
|
104
|
+
@property
|
|
105
|
+
def id(self) -> 'str':
|
|
106
|
+
"""Gets the id of this V1RoutingTelemetry. # noqa: E501
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
:return: The id of this V1RoutingTelemetry. # noqa: E501
|
|
110
|
+
:rtype: str
|
|
111
|
+
"""
|
|
112
|
+
return self._id
|
|
113
|
+
|
|
114
|
+
@id.setter
|
|
115
|
+
def id(self, id: 'str'):
|
|
116
|
+
"""Sets the id of this V1RoutingTelemetry.
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
:param id: The id of this V1RoutingTelemetry. # noqa: E501
|
|
120
|
+
:type: str
|
|
121
|
+
"""
|
|
122
|
+
|
|
123
|
+
self._id = id
|
|
124
|
+
|
|
125
|
+
@property
|
|
126
|
+
def method(self) -> 'str':
|
|
127
|
+
"""Gets the method of this V1RoutingTelemetry. # noqa: E501
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
:return: The method of this V1RoutingTelemetry. # noqa: E501
|
|
131
|
+
:rtype: str
|
|
132
|
+
"""
|
|
133
|
+
return self._method
|
|
134
|
+
|
|
135
|
+
@method.setter
|
|
136
|
+
def method(self, method: 'str'):
|
|
137
|
+
"""Sets the method of this V1RoutingTelemetry.
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
:param method: The method of this V1RoutingTelemetry. # noqa: E501
|
|
141
|
+
:type: str
|
|
142
|
+
"""
|
|
143
|
+
|
|
144
|
+
self._method = method
|
|
145
|
+
|
|
146
|
+
@property
|
|
147
|
+
def path(self) -> 'str':
|
|
148
|
+
"""Gets the path of this V1RoutingTelemetry. # noqa: E501
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
:return: The path of this V1RoutingTelemetry. # noqa: E501
|
|
152
|
+
:rtype: str
|
|
153
|
+
"""
|
|
154
|
+
return self._path
|
|
155
|
+
|
|
156
|
+
@path.setter
|
|
157
|
+
def path(self, path: 'str'):
|
|
158
|
+
"""Sets the path of this V1RoutingTelemetry.
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
:param path: The path of this V1RoutingTelemetry. # noqa: E501
|
|
162
|
+
:type: str
|
|
163
|
+
"""
|
|
164
|
+
|
|
165
|
+
self._path = path
|
|
166
|
+
|
|
167
|
+
@property
|
|
168
|
+
def received_at(self) -> 'datetime':
|
|
169
|
+
"""Gets the received_at of this V1RoutingTelemetry. # noqa: E501
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
:return: The received_at of this V1RoutingTelemetry. # noqa: E501
|
|
173
|
+
:rtype: datetime
|
|
174
|
+
"""
|
|
175
|
+
return self._received_at
|
|
176
|
+
|
|
177
|
+
@received_at.setter
|
|
178
|
+
def received_at(self, received_at: 'datetime'):
|
|
179
|
+
"""Sets the received_at of this V1RoutingTelemetry.
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
:param received_at: The received_at of this V1RoutingTelemetry. # noqa: E501
|
|
183
|
+
:type: datetime
|
|
184
|
+
"""
|
|
185
|
+
|
|
186
|
+
self._received_at = received_at
|
|
187
|
+
|
|
188
|
+
@property
|
|
189
|
+
def status_code(self) -> 'int':
|
|
190
|
+
"""Gets the status_code of this V1RoutingTelemetry. # noqa: E501
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
:return: The status_code of this V1RoutingTelemetry. # noqa: E501
|
|
194
|
+
:rtype: int
|
|
195
|
+
"""
|
|
196
|
+
return self._status_code
|
|
197
|
+
|
|
198
|
+
@status_code.setter
|
|
199
|
+
def status_code(self, status_code: 'int'):
|
|
200
|
+
"""Sets the status_code of this V1RoutingTelemetry.
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
:param status_code: The status_code of this V1RoutingTelemetry. # noqa: E501
|
|
204
|
+
:type: int
|
|
205
|
+
"""
|
|
206
|
+
|
|
207
|
+
self._status_code = status_code
|
|
208
|
+
|
|
209
|
+
def to_dict(self) -> dict:
|
|
210
|
+
"""Returns the model properties as a dict"""
|
|
211
|
+
result = {}
|
|
212
|
+
|
|
213
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
214
|
+
value = getattr(self, attr)
|
|
215
|
+
if isinstance(value, list):
|
|
216
|
+
result[attr] = list(map(
|
|
217
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
218
|
+
value
|
|
219
|
+
))
|
|
220
|
+
elif hasattr(value, "to_dict"):
|
|
221
|
+
result[attr] = value.to_dict()
|
|
222
|
+
elif isinstance(value, dict):
|
|
223
|
+
result[attr] = dict(map(
|
|
224
|
+
lambda item: (item[0], item[1].to_dict())
|
|
225
|
+
if hasattr(item[1], "to_dict") else item,
|
|
226
|
+
value.items()
|
|
227
|
+
))
|
|
228
|
+
else:
|
|
229
|
+
result[attr] = value
|
|
230
|
+
if issubclass(V1RoutingTelemetry, dict):
|
|
231
|
+
for key, value in self.items():
|
|
232
|
+
result[key] = value
|
|
233
|
+
|
|
234
|
+
return result
|
|
235
|
+
|
|
236
|
+
def to_str(self) -> str:
|
|
237
|
+
"""Returns the string representation of the model"""
|
|
238
|
+
return pprint.pformat(self.to_dict())
|
|
239
|
+
|
|
240
|
+
def __repr__(self) -> str:
|
|
241
|
+
"""For `print` and `pprint`"""
|
|
242
|
+
return self.to_str()
|
|
243
|
+
|
|
244
|
+
def __eq__(self, other: 'V1RoutingTelemetry') -> bool:
|
|
245
|
+
"""Returns true if both objects are equal"""
|
|
246
|
+
if not isinstance(other, V1RoutingTelemetry):
|
|
247
|
+
return False
|
|
248
|
+
|
|
249
|
+
return self.__dict__ == other.__dict__
|
|
250
|
+
|
|
251
|
+
def __ne__(self, other: 'V1RoutingTelemetry') -> bool:
|
|
252
|
+
"""Returns true if both objects are not equal"""
|
|
253
|
+
return not self == other
|
|
@@ -42,6 +42,7 @@ class V1ServerAlertType(object):
|
|
|
42
42
|
CONDA_RESTORE = "SERVER_ALERT_TYPE_CONDA_RESTORE"
|
|
43
43
|
SETTINGS_RESTORE = "SERVER_ALERT_TYPE_SETTINGS_RESTORE"
|
|
44
44
|
BASE_STUDIO_SETUP = "SERVER_ALERT_TYPE_BASE_STUDIO_SETUP"
|
|
45
|
+
FILESYSTEM = "SERVER_ALERT_TYPE_FILESYSTEM"
|
|
45
46
|
"""
|
|
46
47
|
Attributes:
|
|
47
48
|
swagger_types (dict): The key is attribute name
|
|
@@ -0,0 +1,97 @@
|
|
|
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 V1SleepServerResponse(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
|
+
}
|
|
45
|
+
|
|
46
|
+
attribute_map = {
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
def __init__(self): # noqa: E501
|
|
50
|
+
"""V1SleepServerResponse - a model defined in Swagger""" # noqa: E501
|
|
51
|
+
self.discriminator = None
|
|
52
|
+
|
|
53
|
+
def to_dict(self) -> dict:
|
|
54
|
+
"""Returns the model properties as a dict"""
|
|
55
|
+
result = {}
|
|
56
|
+
|
|
57
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
58
|
+
value = getattr(self, attr)
|
|
59
|
+
if isinstance(value, list):
|
|
60
|
+
result[attr] = list(map(
|
|
61
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
62
|
+
value
|
|
63
|
+
))
|
|
64
|
+
elif hasattr(value, "to_dict"):
|
|
65
|
+
result[attr] = value.to_dict()
|
|
66
|
+
elif isinstance(value, dict):
|
|
67
|
+
result[attr] = dict(map(
|
|
68
|
+
lambda item: (item[0], item[1].to_dict())
|
|
69
|
+
if hasattr(item[1], "to_dict") else item,
|
|
70
|
+
value.items()
|
|
71
|
+
))
|
|
72
|
+
else:
|
|
73
|
+
result[attr] = value
|
|
74
|
+
if issubclass(V1SleepServerResponse, dict):
|
|
75
|
+
for key, value in self.items():
|
|
76
|
+
result[key] = value
|
|
77
|
+
|
|
78
|
+
return result
|
|
79
|
+
|
|
80
|
+
def to_str(self) -> str:
|
|
81
|
+
"""Returns the string representation of the model"""
|
|
82
|
+
return pprint.pformat(self.to_dict())
|
|
83
|
+
|
|
84
|
+
def __repr__(self) -> str:
|
|
85
|
+
"""For `print` and `pprint`"""
|
|
86
|
+
return self.to_str()
|
|
87
|
+
|
|
88
|
+
def __eq__(self, other: 'V1SleepServerResponse') -> bool:
|
|
89
|
+
"""Returns true if both objects are equal"""
|
|
90
|
+
if not isinstance(other, V1SleepServerResponse):
|
|
91
|
+
return False
|
|
92
|
+
|
|
93
|
+
return self.__dict__ == other.__dict__
|
|
94
|
+
|
|
95
|
+
def __ne__(self, other: 'V1SleepServerResponse') -> bool:
|
|
96
|
+
"""Returns true if both objects are not equal"""
|
|
97
|
+
return not self == other
|
|
@@ -42,7 +42,6 @@ class V1UpdateUserRequest(object):
|
|
|
42
42
|
"""
|
|
43
43
|
swagger_types = {
|
|
44
44
|
'agree_to_terms_and_conditions': 'bool',
|
|
45
|
-
'auto_switch_machine': 'bool',
|
|
46
45
|
'complete_sign_up': 'bool',
|
|
47
46
|
'completed_project_onboarding': 'bool',
|
|
48
47
|
'country': 'str',
|
|
@@ -70,7 +69,6 @@ class V1UpdateUserRequest(object):
|
|
|
70
69
|
|
|
71
70
|
attribute_map = {
|
|
72
71
|
'agree_to_terms_and_conditions': 'agreeToTermsAndConditions',
|
|
73
|
-
'auto_switch_machine': 'autoSwitchMachine',
|
|
74
72
|
'complete_sign_up': 'completeSignUp',
|
|
75
73
|
'completed_project_onboarding': 'completedProjectOnboarding',
|
|
76
74
|
'country': 'country',
|
|
@@ -96,10 +94,9 @@ class V1UpdateUserRequest(object):
|
|
|
96
94
|
'website': 'website'
|
|
97
95
|
}
|
|
98
96
|
|
|
99
|
-
def __init__(self, agree_to_terms_and_conditions: 'bool' =None,
|
|
97
|
+
def __init__(self, agree_to_terms_and_conditions: 'bool' =None, complete_sign_up: 'bool' =None, completed_project_onboarding: 'bool' =None, country: 'str' =None, discounted_pro_plan: 'bool' =None, email: 'str' =None, experimentation_id: 'str' =None, first_name: 'str' =None, general_audience_mode: 'bool' =None, last_name: 'str' =None, non_developer_mode: 'bool' =None, opted_in_marketing_emails: 'bool' =None, organization: 'str' =None, preferred_color_scheme: 'str' =None, preferred_ide: 'str' =None, preferred_shell: 'str' =None, preferred_vscode_marketplace: 'str' =None, role: 'str' =None, saw_create_first_project_dialog: 'bool' =None, saw_forums_login_merge_dialog: 'bool' =None, saw_free_credits_notification: 'bool' =None, user_metadata: 'str' =None, username: 'str' =None, website: 'str' =None): # noqa: E501
|
|
100
98
|
"""V1UpdateUserRequest - a model defined in Swagger""" # noqa: E501
|
|
101
99
|
self._agree_to_terms_and_conditions = None
|
|
102
|
-
self._auto_switch_machine = None
|
|
103
100
|
self._complete_sign_up = None
|
|
104
101
|
self._completed_project_onboarding = None
|
|
105
102
|
self._country = None
|
|
@@ -126,8 +123,6 @@ class V1UpdateUserRequest(object):
|
|
|
126
123
|
self.discriminator = None
|
|
127
124
|
if agree_to_terms_and_conditions is not None:
|
|
128
125
|
self.agree_to_terms_and_conditions = agree_to_terms_and_conditions
|
|
129
|
-
if auto_switch_machine is not None:
|
|
130
|
-
self.auto_switch_machine = auto_switch_machine
|
|
131
126
|
if complete_sign_up is not None:
|
|
132
127
|
self.complete_sign_up = complete_sign_up
|
|
133
128
|
if completed_project_onboarding is not None:
|
|
@@ -196,27 +191,6 @@ class V1UpdateUserRequest(object):
|
|
|
196
191
|
|
|
197
192
|
self._agree_to_terms_and_conditions = agree_to_terms_and_conditions
|
|
198
193
|
|
|
199
|
-
@property
|
|
200
|
-
def auto_switch_machine(self) -> 'bool':
|
|
201
|
-
"""Gets the auto_switch_machine of this V1UpdateUserRequest. # noqa: E501
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
:return: The auto_switch_machine of this V1UpdateUserRequest. # noqa: E501
|
|
205
|
-
:rtype: bool
|
|
206
|
-
"""
|
|
207
|
-
return self._auto_switch_machine
|
|
208
|
-
|
|
209
|
-
@auto_switch_machine.setter
|
|
210
|
-
def auto_switch_machine(self, auto_switch_machine: 'bool'):
|
|
211
|
-
"""Sets the auto_switch_machine of this V1UpdateUserRequest.
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
:param auto_switch_machine: The auto_switch_machine of this V1UpdateUserRequest. # noqa: E501
|
|
215
|
-
:type: bool
|
|
216
|
-
"""
|
|
217
|
-
|
|
218
|
-
self._auto_switch_machine = auto_switch_machine
|
|
219
|
-
|
|
220
194
|
@property
|
|
221
195
|
def complete_sign_up(self) -> 'bool':
|
|
222
196
|
"""Gets the complete_sign_up of this V1UpdateUserRequest. # noqa: E501
|