lightning-sdk 2025.11.13.post0__py3-none-any.whl → 2025.11.21__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 +2 -0
- lightning_sdk/__version__.py +1 -1
- lightning_sdk/api/__init__.py +2 -9
- lightning_sdk/api/k8s_api.py +105 -0
- lightning_sdk/api/studio_api.py +19 -0
- lightning_sdk/api/utils.py +19 -0
- lightning_sdk/exceptions.py +2 -0
- lightning_sdk/k8s_cluster.py +83 -0
- lightning_sdk/lightning_cloud/openapi/__init__.py +15 -0
- lightning_sdk/lightning_cloud/openapi/api/assistants_service_api.py +134 -1
- lightning_sdk/lightning_cloud/openapi/api/cluster_service_api.py +5 -1
- lightning_sdk/lightning_cloud/openapi/api/jobs_service_api.py +539 -2
- lightning_sdk/lightning_cloud/openapi/api/k8_s_cluster_service_api.py +114 -0
- lightning_sdk/lightning_cloud/openapi/api/markets_service_api.py +5 -1
- lightning_sdk/lightning_cloud/openapi/api/organizations_service_api.py +99 -2
- lightning_sdk/lightning_cloud/openapi/api/projects_service_api.py +5 -1
- lightning_sdk/lightning_cloud/openapi/models/__init__.py +15 -0
- lightning_sdk/lightning_cloud/openapi/models/cluster_id_metrics_body.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/deployments_deployment_id_body.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/id_content_body.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/job_id_systemmetrics_body.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/message_id_actions_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/projects_id_body.py +1 -27
- lightning_sdk/lightning_cloud/openapi/models/v1_aws_direct_v1.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_security_options.py +107 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_spec.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_compute_cluster_machines.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_compute_cluster_request.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_project_request.py +1 -27
- lightning_sdk/lightning_cloud/openapi/models/v1_generic_job.py +305 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_project_balance_response.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_kubernetes_direct_v1.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_kubernetes_pod.py +435 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_all_jobs_response.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_jobs_sort_by.py +104 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_jobs_sort_order.py +104 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_kubernetes_pods_response.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_pipelines_response.py +55 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_machine_direct_v1.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_magic_link_login_request.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_membership.py +1 -27
- lightning_sdk/lightning_cloud/openapi/models/v1_message.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_message_action.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_org_deployment_visibility.py +227 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_pod_preemption_event.py +305 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_project_membership.py +1 -27
- lightning_sdk/lightning_cloud/openapi/models/v1_project_settings.py +1 -27
- lightning_sdk/lightning_cloud/openapi/models/v1_report_job_system_metrics_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_resource_visibility.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_rule_resource.py +1 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_update_conversation_message_content_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +133 -107
- lightning_sdk/lightning_cloud/openapi/models/v1_validate_storage_transfer_response.py +15 -15
- lightning_sdk/lightning_cloud/rest_client.py +2 -0
- lightning_sdk/studio.py +12 -0
- {lightning_sdk-2025.11.13.post0.dist-info → lightning_sdk-2025.11.21.dist-info}/METADATA +2 -1
- {lightning_sdk-2025.11.13.post0.dist-info → lightning_sdk-2025.11.21.dist-info}/RECORD +61 -43
- {lightning_sdk-2025.11.13.post0.dist-info → lightning_sdk-2025.11.21.dist-info}/LICENSE +0 -0
- {lightning_sdk-2025.11.13.post0.dist-info → lightning_sdk-2025.11.21.dist-info}/WHEEL +0 -0
- {lightning_sdk-2025.11.13.post0.dist-info → lightning_sdk-2025.11.21.dist-info}/entry_points.txt +0 -0
- {lightning_sdk-2025.11.13.post0.dist-info → lightning_sdk-2025.11.21.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,435 @@
|
|
|
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 V1KubernetesPod(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
|
+
'created_at': 'datetime',
|
|
46
|
+
'deleted_at': 'datetime',
|
|
47
|
+
'id': 'str',
|
|
48
|
+
'job_name': 'str',
|
|
49
|
+
'name': 'str',
|
|
50
|
+
'namespace': 'str',
|
|
51
|
+
'node_name': 'str',
|
|
52
|
+
'pod': 'str',
|
|
53
|
+
'preemption_event': 'V1PodPreemptionEvent',
|
|
54
|
+
'priority': 'str',
|
|
55
|
+
'queue_name': 'str',
|
|
56
|
+
'user_id': 'str'
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
attribute_map = {
|
|
60
|
+
'cluster_id': 'clusterId',
|
|
61
|
+
'created_at': 'createdAt',
|
|
62
|
+
'deleted_at': 'deletedAt',
|
|
63
|
+
'id': 'id',
|
|
64
|
+
'job_name': 'jobName',
|
|
65
|
+
'name': 'name',
|
|
66
|
+
'namespace': 'namespace',
|
|
67
|
+
'node_name': 'nodeName',
|
|
68
|
+
'pod': 'pod',
|
|
69
|
+
'preemption_event': 'preemptionEvent',
|
|
70
|
+
'priority': 'priority',
|
|
71
|
+
'queue_name': 'queueName',
|
|
72
|
+
'user_id': 'userId'
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
def __init__(self, cluster_id: 'str' =None, created_at: 'datetime' =None, deleted_at: 'datetime' =None, id: 'str' =None, job_name: 'str' =None, name: 'str' =None, namespace: 'str' =None, node_name: 'str' =None, pod: 'str' =None, preemption_event: 'V1PodPreemptionEvent' =None, priority: 'str' =None, queue_name: 'str' =None, user_id: 'str' =None): # noqa: E501
|
|
76
|
+
"""V1KubernetesPod - a model defined in Swagger""" # noqa: E501
|
|
77
|
+
self._cluster_id = None
|
|
78
|
+
self._created_at = None
|
|
79
|
+
self._deleted_at = None
|
|
80
|
+
self._id = None
|
|
81
|
+
self._job_name = None
|
|
82
|
+
self._name = None
|
|
83
|
+
self._namespace = None
|
|
84
|
+
self._node_name = None
|
|
85
|
+
self._pod = None
|
|
86
|
+
self._preemption_event = None
|
|
87
|
+
self._priority = None
|
|
88
|
+
self._queue_name = None
|
|
89
|
+
self._user_id = None
|
|
90
|
+
self.discriminator = None
|
|
91
|
+
if cluster_id is not None:
|
|
92
|
+
self.cluster_id = cluster_id
|
|
93
|
+
if created_at is not None:
|
|
94
|
+
self.created_at = created_at
|
|
95
|
+
if deleted_at is not None:
|
|
96
|
+
self.deleted_at = deleted_at
|
|
97
|
+
if id is not None:
|
|
98
|
+
self.id = id
|
|
99
|
+
if job_name is not None:
|
|
100
|
+
self.job_name = job_name
|
|
101
|
+
if name is not None:
|
|
102
|
+
self.name = name
|
|
103
|
+
if namespace is not None:
|
|
104
|
+
self.namespace = namespace
|
|
105
|
+
if node_name is not None:
|
|
106
|
+
self.node_name = node_name
|
|
107
|
+
if pod is not None:
|
|
108
|
+
self.pod = pod
|
|
109
|
+
if preemption_event is not None:
|
|
110
|
+
self.preemption_event = preemption_event
|
|
111
|
+
if priority is not None:
|
|
112
|
+
self.priority = priority
|
|
113
|
+
if queue_name is not None:
|
|
114
|
+
self.queue_name = queue_name
|
|
115
|
+
if user_id is not None:
|
|
116
|
+
self.user_id = user_id
|
|
117
|
+
|
|
118
|
+
@property
|
|
119
|
+
def cluster_id(self) -> 'str':
|
|
120
|
+
"""Gets the cluster_id of this V1KubernetesPod. # noqa: E501
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
:return: The cluster_id of this V1KubernetesPod. # noqa: E501
|
|
124
|
+
:rtype: str
|
|
125
|
+
"""
|
|
126
|
+
return self._cluster_id
|
|
127
|
+
|
|
128
|
+
@cluster_id.setter
|
|
129
|
+
def cluster_id(self, cluster_id: 'str'):
|
|
130
|
+
"""Sets the cluster_id of this V1KubernetesPod.
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
:param cluster_id: The cluster_id of this V1KubernetesPod. # noqa: E501
|
|
134
|
+
:type: str
|
|
135
|
+
"""
|
|
136
|
+
|
|
137
|
+
self._cluster_id = cluster_id
|
|
138
|
+
|
|
139
|
+
@property
|
|
140
|
+
def created_at(self) -> 'datetime':
|
|
141
|
+
"""Gets the created_at of this V1KubernetesPod. # noqa: E501
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
:return: The created_at of this V1KubernetesPod. # noqa: E501
|
|
145
|
+
:rtype: datetime
|
|
146
|
+
"""
|
|
147
|
+
return self._created_at
|
|
148
|
+
|
|
149
|
+
@created_at.setter
|
|
150
|
+
def created_at(self, created_at: 'datetime'):
|
|
151
|
+
"""Sets the created_at of this V1KubernetesPod.
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
:param created_at: The created_at of this V1KubernetesPod. # noqa: E501
|
|
155
|
+
:type: datetime
|
|
156
|
+
"""
|
|
157
|
+
|
|
158
|
+
self._created_at = created_at
|
|
159
|
+
|
|
160
|
+
@property
|
|
161
|
+
def deleted_at(self) -> 'datetime':
|
|
162
|
+
"""Gets the deleted_at of this V1KubernetesPod. # noqa: E501
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
:return: The deleted_at of this V1KubernetesPod. # noqa: E501
|
|
166
|
+
:rtype: datetime
|
|
167
|
+
"""
|
|
168
|
+
return self._deleted_at
|
|
169
|
+
|
|
170
|
+
@deleted_at.setter
|
|
171
|
+
def deleted_at(self, deleted_at: 'datetime'):
|
|
172
|
+
"""Sets the deleted_at of this V1KubernetesPod.
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
:param deleted_at: The deleted_at of this V1KubernetesPod. # noqa: E501
|
|
176
|
+
:type: datetime
|
|
177
|
+
"""
|
|
178
|
+
|
|
179
|
+
self._deleted_at = deleted_at
|
|
180
|
+
|
|
181
|
+
@property
|
|
182
|
+
def id(self) -> 'str':
|
|
183
|
+
"""Gets the id of this V1KubernetesPod. # noqa: E501
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
:return: The id of this V1KubernetesPod. # noqa: E501
|
|
187
|
+
:rtype: str
|
|
188
|
+
"""
|
|
189
|
+
return self._id
|
|
190
|
+
|
|
191
|
+
@id.setter
|
|
192
|
+
def id(self, id: 'str'):
|
|
193
|
+
"""Sets the id of this V1KubernetesPod.
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
:param id: The id of this V1KubernetesPod. # noqa: E501
|
|
197
|
+
:type: str
|
|
198
|
+
"""
|
|
199
|
+
|
|
200
|
+
self._id = id
|
|
201
|
+
|
|
202
|
+
@property
|
|
203
|
+
def job_name(self) -> 'str':
|
|
204
|
+
"""Gets the job_name of this V1KubernetesPod. # noqa: E501
|
|
205
|
+
|
|
206
|
+
|
|
207
|
+
:return: The job_name of this V1KubernetesPod. # noqa: E501
|
|
208
|
+
:rtype: str
|
|
209
|
+
"""
|
|
210
|
+
return self._job_name
|
|
211
|
+
|
|
212
|
+
@job_name.setter
|
|
213
|
+
def job_name(self, job_name: 'str'):
|
|
214
|
+
"""Sets the job_name of this V1KubernetesPod.
|
|
215
|
+
|
|
216
|
+
|
|
217
|
+
:param job_name: The job_name of this V1KubernetesPod. # noqa: E501
|
|
218
|
+
:type: str
|
|
219
|
+
"""
|
|
220
|
+
|
|
221
|
+
self._job_name = job_name
|
|
222
|
+
|
|
223
|
+
@property
|
|
224
|
+
def name(self) -> 'str':
|
|
225
|
+
"""Gets the name of this V1KubernetesPod. # noqa: E501
|
|
226
|
+
|
|
227
|
+
|
|
228
|
+
:return: The name of this V1KubernetesPod. # noqa: E501
|
|
229
|
+
:rtype: str
|
|
230
|
+
"""
|
|
231
|
+
return self._name
|
|
232
|
+
|
|
233
|
+
@name.setter
|
|
234
|
+
def name(self, name: 'str'):
|
|
235
|
+
"""Sets the name of this V1KubernetesPod.
|
|
236
|
+
|
|
237
|
+
|
|
238
|
+
:param name: The name of this V1KubernetesPod. # noqa: E501
|
|
239
|
+
:type: str
|
|
240
|
+
"""
|
|
241
|
+
|
|
242
|
+
self._name = name
|
|
243
|
+
|
|
244
|
+
@property
|
|
245
|
+
def namespace(self) -> 'str':
|
|
246
|
+
"""Gets the namespace of this V1KubernetesPod. # noqa: E501
|
|
247
|
+
|
|
248
|
+
|
|
249
|
+
:return: The namespace of this V1KubernetesPod. # noqa: E501
|
|
250
|
+
:rtype: str
|
|
251
|
+
"""
|
|
252
|
+
return self._namespace
|
|
253
|
+
|
|
254
|
+
@namespace.setter
|
|
255
|
+
def namespace(self, namespace: 'str'):
|
|
256
|
+
"""Sets the namespace of this V1KubernetesPod.
|
|
257
|
+
|
|
258
|
+
|
|
259
|
+
:param namespace: The namespace of this V1KubernetesPod. # noqa: E501
|
|
260
|
+
:type: str
|
|
261
|
+
"""
|
|
262
|
+
|
|
263
|
+
self._namespace = namespace
|
|
264
|
+
|
|
265
|
+
@property
|
|
266
|
+
def node_name(self) -> 'str':
|
|
267
|
+
"""Gets the node_name of this V1KubernetesPod. # noqa: E501
|
|
268
|
+
|
|
269
|
+
|
|
270
|
+
:return: The node_name of this V1KubernetesPod. # noqa: E501
|
|
271
|
+
:rtype: str
|
|
272
|
+
"""
|
|
273
|
+
return self._node_name
|
|
274
|
+
|
|
275
|
+
@node_name.setter
|
|
276
|
+
def node_name(self, node_name: 'str'):
|
|
277
|
+
"""Sets the node_name of this V1KubernetesPod.
|
|
278
|
+
|
|
279
|
+
|
|
280
|
+
:param node_name: The node_name of this V1KubernetesPod. # noqa: E501
|
|
281
|
+
:type: str
|
|
282
|
+
"""
|
|
283
|
+
|
|
284
|
+
self._node_name = node_name
|
|
285
|
+
|
|
286
|
+
@property
|
|
287
|
+
def pod(self) -> 'str':
|
|
288
|
+
"""Gets the pod of this V1KubernetesPod. # noqa: E501
|
|
289
|
+
|
|
290
|
+
|
|
291
|
+
:return: The pod of this V1KubernetesPod. # noqa: E501
|
|
292
|
+
:rtype: str
|
|
293
|
+
"""
|
|
294
|
+
return self._pod
|
|
295
|
+
|
|
296
|
+
@pod.setter
|
|
297
|
+
def pod(self, pod: 'str'):
|
|
298
|
+
"""Sets the pod of this V1KubernetesPod.
|
|
299
|
+
|
|
300
|
+
|
|
301
|
+
:param pod: The pod of this V1KubernetesPod. # noqa: E501
|
|
302
|
+
:type: str
|
|
303
|
+
"""
|
|
304
|
+
|
|
305
|
+
self._pod = pod
|
|
306
|
+
|
|
307
|
+
@property
|
|
308
|
+
def preemption_event(self) -> 'V1PodPreemptionEvent':
|
|
309
|
+
"""Gets the preemption_event of this V1KubernetesPod. # noqa: E501
|
|
310
|
+
|
|
311
|
+
|
|
312
|
+
:return: The preemption_event of this V1KubernetesPod. # noqa: E501
|
|
313
|
+
:rtype: V1PodPreemptionEvent
|
|
314
|
+
"""
|
|
315
|
+
return self._preemption_event
|
|
316
|
+
|
|
317
|
+
@preemption_event.setter
|
|
318
|
+
def preemption_event(self, preemption_event: 'V1PodPreemptionEvent'):
|
|
319
|
+
"""Sets the preemption_event of this V1KubernetesPod.
|
|
320
|
+
|
|
321
|
+
|
|
322
|
+
:param preemption_event: The preemption_event of this V1KubernetesPod. # noqa: E501
|
|
323
|
+
:type: V1PodPreemptionEvent
|
|
324
|
+
"""
|
|
325
|
+
|
|
326
|
+
self._preemption_event = preemption_event
|
|
327
|
+
|
|
328
|
+
@property
|
|
329
|
+
def priority(self) -> 'str':
|
|
330
|
+
"""Gets the priority of this V1KubernetesPod. # noqa: E501
|
|
331
|
+
|
|
332
|
+
|
|
333
|
+
:return: The priority of this V1KubernetesPod. # noqa: E501
|
|
334
|
+
:rtype: str
|
|
335
|
+
"""
|
|
336
|
+
return self._priority
|
|
337
|
+
|
|
338
|
+
@priority.setter
|
|
339
|
+
def priority(self, priority: 'str'):
|
|
340
|
+
"""Sets the priority of this V1KubernetesPod.
|
|
341
|
+
|
|
342
|
+
|
|
343
|
+
:param priority: The priority of this V1KubernetesPod. # noqa: E501
|
|
344
|
+
:type: str
|
|
345
|
+
"""
|
|
346
|
+
|
|
347
|
+
self._priority = priority
|
|
348
|
+
|
|
349
|
+
@property
|
|
350
|
+
def queue_name(self) -> 'str':
|
|
351
|
+
"""Gets the queue_name of this V1KubernetesPod. # noqa: E501
|
|
352
|
+
|
|
353
|
+
|
|
354
|
+
:return: The queue_name of this V1KubernetesPod. # noqa: E501
|
|
355
|
+
:rtype: str
|
|
356
|
+
"""
|
|
357
|
+
return self._queue_name
|
|
358
|
+
|
|
359
|
+
@queue_name.setter
|
|
360
|
+
def queue_name(self, queue_name: 'str'):
|
|
361
|
+
"""Sets the queue_name of this V1KubernetesPod.
|
|
362
|
+
|
|
363
|
+
|
|
364
|
+
:param queue_name: The queue_name of this V1KubernetesPod. # noqa: E501
|
|
365
|
+
:type: str
|
|
366
|
+
"""
|
|
367
|
+
|
|
368
|
+
self._queue_name = queue_name
|
|
369
|
+
|
|
370
|
+
@property
|
|
371
|
+
def user_id(self) -> 'str':
|
|
372
|
+
"""Gets the user_id of this V1KubernetesPod. # noqa: E501
|
|
373
|
+
|
|
374
|
+
|
|
375
|
+
:return: The user_id of this V1KubernetesPod. # noqa: E501
|
|
376
|
+
:rtype: str
|
|
377
|
+
"""
|
|
378
|
+
return self._user_id
|
|
379
|
+
|
|
380
|
+
@user_id.setter
|
|
381
|
+
def user_id(self, user_id: 'str'):
|
|
382
|
+
"""Sets the user_id of this V1KubernetesPod.
|
|
383
|
+
|
|
384
|
+
|
|
385
|
+
:param user_id: The user_id of this V1KubernetesPod. # noqa: E501
|
|
386
|
+
:type: str
|
|
387
|
+
"""
|
|
388
|
+
|
|
389
|
+
self._user_id = user_id
|
|
390
|
+
|
|
391
|
+
def to_dict(self) -> dict:
|
|
392
|
+
"""Returns the model properties as a dict"""
|
|
393
|
+
result = {}
|
|
394
|
+
|
|
395
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
396
|
+
value = getattr(self, attr)
|
|
397
|
+
if isinstance(value, list):
|
|
398
|
+
result[attr] = list(map(
|
|
399
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
400
|
+
value
|
|
401
|
+
))
|
|
402
|
+
elif hasattr(value, "to_dict"):
|
|
403
|
+
result[attr] = value.to_dict()
|
|
404
|
+
elif isinstance(value, dict):
|
|
405
|
+
result[attr] = dict(map(
|
|
406
|
+
lambda item: (item[0], item[1].to_dict())
|
|
407
|
+
if hasattr(item[1], "to_dict") else item,
|
|
408
|
+
value.items()
|
|
409
|
+
))
|
|
410
|
+
else:
|
|
411
|
+
result[attr] = value
|
|
412
|
+
if issubclass(V1KubernetesPod, dict):
|
|
413
|
+
for key, value in self.items():
|
|
414
|
+
result[key] = value
|
|
415
|
+
|
|
416
|
+
return result
|
|
417
|
+
|
|
418
|
+
def to_str(self) -> str:
|
|
419
|
+
"""Returns the string representation of the model"""
|
|
420
|
+
return pprint.pformat(self.to_dict())
|
|
421
|
+
|
|
422
|
+
def __repr__(self) -> str:
|
|
423
|
+
"""For `print` and `pprint`"""
|
|
424
|
+
return self.to_str()
|
|
425
|
+
|
|
426
|
+
def __eq__(self, other: 'V1KubernetesPod') -> bool:
|
|
427
|
+
"""Returns true if both objects are equal"""
|
|
428
|
+
if not isinstance(other, V1KubernetesPod):
|
|
429
|
+
return False
|
|
430
|
+
|
|
431
|
+
return self.__dict__ == other.__dict__
|
|
432
|
+
|
|
433
|
+
def __ne__(self, other: 'V1KubernetesPod') -> bool:
|
|
434
|
+
"""Returns true if both objects are not equal"""
|
|
435
|
+
return not self == other
|
|
@@ -0,0 +1,175 @@
|
|
|
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 V1ListAllJobsResponse(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
|
+
'all_jobs': 'list[V1GenericJob]',
|
|
45
|
+
'next_page_token': 'str',
|
|
46
|
+
'previous_page_token': 'str'
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
attribute_map = {
|
|
50
|
+
'all_jobs': 'allJobs',
|
|
51
|
+
'next_page_token': 'nextPageToken',
|
|
52
|
+
'previous_page_token': 'previousPageToken'
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
def __init__(self, all_jobs: 'list[V1GenericJob]' =None, next_page_token: 'str' =None, previous_page_token: 'str' =None): # noqa: E501
|
|
56
|
+
"""V1ListAllJobsResponse - a model defined in Swagger""" # noqa: E501
|
|
57
|
+
self._all_jobs = None
|
|
58
|
+
self._next_page_token = None
|
|
59
|
+
self._previous_page_token = None
|
|
60
|
+
self.discriminator = None
|
|
61
|
+
if all_jobs is not None:
|
|
62
|
+
self.all_jobs = all_jobs
|
|
63
|
+
if next_page_token is not None:
|
|
64
|
+
self.next_page_token = next_page_token
|
|
65
|
+
if previous_page_token is not None:
|
|
66
|
+
self.previous_page_token = previous_page_token
|
|
67
|
+
|
|
68
|
+
@property
|
|
69
|
+
def all_jobs(self) -> 'list[V1GenericJob]':
|
|
70
|
+
"""Gets the all_jobs of this V1ListAllJobsResponse. # noqa: E501
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
:return: The all_jobs of this V1ListAllJobsResponse. # noqa: E501
|
|
74
|
+
:rtype: list[V1GenericJob]
|
|
75
|
+
"""
|
|
76
|
+
return self._all_jobs
|
|
77
|
+
|
|
78
|
+
@all_jobs.setter
|
|
79
|
+
def all_jobs(self, all_jobs: 'list[V1GenericJob]'):
|
|
80
|
+
"""Sets the all_jobs of this V1ListAllJobsResponse.
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
:param all_jobs: The all_jobs of this V1ListAllJobsResponse. # noqa: E501
|
|
84
|
+
:type: list[V1GenericJob]
|
|
85
|
+
"""
|
|
86
|
+
|
|
87
|
+
self._all_jobs = all_jobs
|
|
88
|
+
|
|
89
|
+
@property
|
|
90
|
+
def next_page_token(self) -> 'str':
|
|
91
|
+
"""Gets the next_page_token of this V1ListAllJobsResponse. # noqa: E501
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
:return: The next_page_token of this V1ListAllJobsResponse. # noqa: E501
|
|
95
|
+
:rtype: str
|
|
96
|
+
"""
|
|
97
|
+
return self._next_page_token
|
|
98
|
+
|
|
99
|
+
@next_page_token.setter
|
|
100
|
+
def next_page_token(self, next_page_token: 'str'):
|
|
101
|
+
"""Sets the next_page_token of this V1ListAllJobsResponse.
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
:param next_page_token: The next_page_token of this V1ListAllJobsResponse. # noqa: E501
|
|
105
|
+
:type: str
|
|
106
|
+
"""
|
|
107
|
+
|
|
108
|
+
self._next_page_token = next_page_token
|
|
109
|
+
|
|
110
|
+
@property
|
|
111
|
+
def previous_page_token(self) -> 'str':
|
|
112
|
+
"""Gets the previous_page_token of this V1ListAllJobsResponse. # noqa: E501
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
:return: The previous_page_token of this V1ListAllJobsResponse. # noqa: E501
|
|
116
|
+
:rtype: str
|
|
117
|
+
"""
|
|
118
|
+
return self._previous_page_token
|
|
119
|
+
|
|
120
|
+
@previous_page_token.setter
|
|
121
|
+
def previous_page_token(self, previous_page_token: 'str'):
|
|
122
|
+
"""Sets the previous_page_token of this V1ListAllJobsResponse.
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
:param previous_page_token: The previous_page_token of this V1ListAllJobsResponse. # noqa: E501
|
|
126
|
+
:type: str
|
|
127
|
+
"""
|
|
128
|
+
|
|
129
|
+
self._previous_page_token = previous_page_token
|
|
130
|
+
|
|
131
|
+
def to_dict(self) -> dict:
|
|
132
|
+
"""Returns the model properties as a dict"""
|
|
133
|
+
result = {}
|
|
134
|
+
|
|
135
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
136
|
+
value = getattr(self, attr)
|
|
137
|
+
if isinstance(value, list):
|
|
138
|
+
result[attr] = list(map(
|
|
139
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
140
|
+
value
|
|
141
|
+
))
|
|
142
|
+
elif hasattr(value, "to_dict"):
|
|
143
|
+
result[attr] = value.to_dict()
|
|
144
|
+
elif isinstance(value, dict):
|
|
145
|
+
result[attr] = dict(map(
|
|
146
|
+
lambda item: (item[0], item[1].to_dict())
|
|
147
|
+
if hasattr(item[1], "to_dict") else item,
|
|
148
|
+
value.items()
|
|
149
|
+
))
|
|
150
|
+
else:
|
|
151
|
+
result[attr] = value
|
|
152
|
+
if issubclass(V1ListAllJobsResponse, dict):
|
|
153
|
+
for key, value in self.items():
|
|
154
|
+
result[key] = value
|
|
155
|
+
|
|
156
|
+
return result
|
|
157
|
+
|
|
158
|
+
def to_str(self) -> str:
|
|
159
|
+
"""Returns the string representation of the model"""
|
|
160
|
+
return pprint.pformat(self.to_dict())
|
|
161
|
+
|
|
162
|
+
def __repr__(self) -> str:
|
|
163
|
+
"""For `print` and `pprint`"""
|
|
164
|
+
return self.to_str()
|
|
165
|
+
|
|
166
|
+
def __eq__(self, other: 'V1ListAllJobsResponse') -> bool:
|
|
167
|
+
"""Returns true if both objects are equal"""
|
|
168
|
+
if not isinstance(other, V1ListAllJobsResponse):
|
|
169
|
+
return False
|
|
170
|
+
|
|
171
|
+
return self.__dict__ == other.__dict__
|
|
172
|
+
|
|
173
|
+
def __ne__(self, other: 'V1ListAllJobsResponse') -> bool:
|
|
174
|
+
"""Returns true if both objects are not equal"""
|
|
175
|
+
return not self == other
|
|
@@ -0,0 +1,104 @@
|
|
|
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 V1ListJobsSortBy(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
|
+
"""
|
|
38
|
+
allowed enum values
|
|
39
|
+
"""
|
|
40
|
+
UNSPECIFIED = "LIST_JOBS_SORT_BY_UNSPECIFIED"
|
|
41
|
+
NAME = "LIST_JOBS_SORT_BY_NAME"
|
|
42
|
+
STARTED_AT = "LIST_JOBS_SORT_BY_STARTED_AT"
|
|
43
|
+
"""
|
|
44
|
+
Attributes:
|
|
45
|
+
swagger_types (dict): The key is attribute name
|
|
46
|
+
and the value is attribute type.
|
|
47
|
+
attribute_map (dict): The key is attribute name
|
|
48
|
+
and the value is json key in definition.
|
|
49
|
+
"""
|
|
50
|
+
swagger_types = {
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
attribute_map = {
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
def __init__(self): # noqa: E501
|
|
57
|
+
"""V1ListJobsSortBy - a model defined in Swagger""" # noqa: E501
|
|
58
|
+
self.discriminator = None
|
|
59
|
+
|
|
60
|
+
def to_dict(self) -> dict:
|
|
61
|
+
"""Returns the model properties as a dict"""
|
|
62
|
+
result = {}
|
|
63
|
+
|
|
64
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
65
|
+
value = getattr(self, attr)
|
|
66
|
+
if isinstance(value, list):
|
|
67
|
+
result[attr] = list(map(
|
|
68
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
69
|
+
value
|
|
70
|
+
))
|
|
71
|
+
elif hasattr(value, "to_dict"):
|
|
72
|
+
result[attr] = value.to_dict()
|
|
73
|
+
elif isinstance(value, dict):
|
|
74
|
+
result[attr] = dict(map(
|
|
75
|
+
lambda item: (item[0], item[1].to_dict())
|
|
76
|
+
if hasattr(item[1], "to_dict") else item,
|
|
77
|
+
value.items()
|
|
78
|
+
))
|
|
79
|
+
else:
|
|
80
|
+
result[attr] = value
|
|
81
|
+
if issubclass(V1ListJobsSortBy, dict):
|
|
82
|
+
for key, value in self.items():
|
|
83
|
+
result[key] = value
|
|
84
|
+
|
|
85
|
+
return result
|
|
86
|
+
|
|
87
|
+
def to_str(self) -> str:
|
|
88
|
+
"""Returns the string representation of the model"""
|
|
89
|
+
return pprint.pformat(self.to_dict())
|
|
90
|
+
|
|
91
|
+
def __repr__(self) -> str:
|
|
92
|
+
"""For `print` and `pprint`"""
|
|
93
|
+
return self.to_str()
|
|
94
|
+
|
|
95
|
+
def __eq__(self, other: 'V1ListJobsSortBy') -> bool:
|
|
96
|
+
"""Returns true if both objects are equal"""
|
|
97
|
+
if not isinstance(other, V1ListJobsSortBy):
|
|
98
|
+
return False
|
|
99
|
+
|
|
100
|
+
return self.__dict__ == other.__dict__
|
|
101
|
+
|
|
102
|
+
def __ne__(self, other: 'V1ListJobsSortBy') -> bool:
|
|
103
|
+
"""Returns true if both objects are not equal"""
|
|
104
|
+
return not self == other
|