lightning-sdk 2025.8.6rc0__py3-none-any.whl → 2025.8.6rc2__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/llm_api.py +48 -0
- lightning_sdk/lightning_cloud/login.py +1 -0
- lightning_sdk/lightning_cloud/openapi/__init__.py +15 -23
- lightning_sdk/lightning_cloud/openapi/api/__init__.py +1 -0
- lightning_sdk/lightning_cloud/openapi/api/assistants_service_api.py +5 -1
- lightning_sdk/lightning_cloud/openapi/api/cloud_space_service_api.py +228 -1
- lightning_sdk/lightning_cloud/openapi/api/endpoint_service_api.py +126 -2129
- lightning_sdk/lightning_cloud/openapi/api/k8_s_cluster_service_api.py +625 -0
- lightning_sdk/lightning_cloud/openapi/api/storage_service_api.py +5 -1
- lightning_sdk/lightning_cloud/openapi/models/__init__.py +14 -23
- lightning_sdk/lightning_cloud/openapi/models/cluster_id_metrics_body.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/orgs_id_body.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/projects_id_body.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_transfer_metadata.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloudflare_v1.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/{v1_complete_upload_service_execution_artifact_response.py → v1_complete_running_cloud_space_instance_transfer_response.py} +6 -6
- lightning_sdk/lightning_cloud/openapi/models/v1_container_metrics.py +461 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_metrics.py +227 -0
- lightning_sdk/lightning_cloud/openapi/models/{v1_list_file_endpoints_response.py → v1_list_container_metrics_response.py} +23 -23
- lightning_sdk/lightning_cloud/openapi/models/{service_artifact_artifact_kind.py → v1_list_node_file_system_metrics_response.py} +6 -13
- lightning_sdk/lightning_cloud/openapi/models/{v1_upload_service_execution_artifact_parts_response.py → v1_list_node_metrics_response.py} +23 -23
- lightning_sdk/lightning_cloud/openapi/models/v1_list_pod_metrics_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_managed_model.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_node_metrics.py +357 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_organization.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_pod_metrics.py +435 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_project_settings.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/{v1_delete_service_execution_response.py → v1_report_k8s_cluster_metrics_response.py} +6 -6
- lightning_sdk/lightning_cloud/openapi/models/{command_argument_command_argument_type.py → v1_request_cloud_space_access_response.py} +6 -12
- lightning_sdk/lightning_cloud/openapi/models/v1_update_cloud_space_instance_config_request.py +331 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +157 -53
- lightning_sdk/lightning_cloud/utils/data_connection.py +56 -1
- lightning_sdk/llm/llm.py +5 -15
- lightning_sdk/llm/public_assistants.py +17 -0
- lightning_sdk/services/file_endpoint.py +3 -4
- {lightning_sdk-2025.8.6rc0.dist-info → lightning_sdk-2025.8.6rc2.dist-info}/METADATA +1 -1
- {lightning_sdk-2025.8.6rc0.dist-info → lightning_sdk-2025.8.6rc2.dist-info}/RECORD +43 -51
- lightning_sdk/lightning_cloud/openapi/models/fileendpoints_id_body.py +0 -409
- lightning_sdk/lightning_cloud/openapi/models/id_complete_body.py +0 -175
- lightning_sdk/lightning_cloud/openapi/models/id_storage_body.py +0 -175
- lightning_sdk/lightning_cloud/openapi/models/id_uploads_body1.py +0 -175
- lightning_sdk/lightning_cloud/openapi/models/project_id_fileendpoints_body.py +0 -357
- lightning_sdk/lightning_cloud/openapi/models/project_id_serviceexecution_body.py +0 -175
- lightning_sdk/lightning_cloud/openapi/models/serviceexecution_id_body.py +0 -331
- lightning_sdk/lightning_cloud/openapi/models/v1_command_argument.py +0 -305
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_file_endpoint_response.py +0 -149
- lightning_sdk/lightning_cloud/openapi/models/v1_download_service_execution_artifact_response.py +0 -175
- lightning_sdk/lightning_cloud/openapi/models/v1_file_endpoint.py +0 -461
- lightning_sdk/lightning_cloud/openapi/models/v1_get_service_execution_status_response.py +0 -175
- lightning_sdk/lightning_cloud/openapi/models/v1_list_service_execution_lightningapp_instances_response.py +0 -175
- lightning_sdk/lightning_cloud/openapi/models/v1_list_service_executions_response.py +0 -123
- lightning_sdk/lightning_cloud/openapi/models/v1_service_artifact.py +0 -201
- lightning_sdk/lightning_cloud/openapi/models/v1_service_execution.py +0 -383
- lightning_sdk/lightning_cloud/openapi/models/v1_upload_service_execution_artifact_response.py +0 -149
- lightning_sdk/llm/public_assistants.json +0 -34
- {lightning_sdk-2025.8.6rc0.dist-info → lightning_sdk-2025.8.6rc2.dist-info}/LICENSE +0 -0
- {lightning_sdk-2025.8.6rc0.dist-info → lightning_sdk-2025.8.6rc2.dist-info}/WHEEL +0 -0
- {lightning_sdk-2025.8.6rc0.dist-info → lightning_sdk-2025.8.6rc2.dist-info}/entry_points.txt +0 -0
- {lightning_sdk-2025.8.6rc0.dist-info → lightning_sdk-2025.8.6rc2.dist-info}/top_level.txt +0 -0
|
@@ -1,409 +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 FileendpointsIdBody(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
|
-
'arguments': 'list[V1CommandArgument]',
|
|
45
|
-
'cloudspace_id': 'str',
|
|
46
|
-
'cluster_id': 'str',
|
|
47
|
-
'command': 'str',
|
|
48
|
-
'description': 'str',
|
|
49
|
-
'function_name': 'str',
|
|
50
|
-
'method': 'str',
|
|
51
|
-
'path': 'str',
|
|
52
|
-
'plugin_id': 'str',
|
|
53
|
-
'project_owner_name': 'str',
|
|
54
|
-
'published': 'bool',
|
|
55
|
-
'user_id': 'str'
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
attribute_map = {
|
|
59
|
-
'arguments': 'arguments',
|
|
60
|
-
'cloudspace_id': 'cloudspaceId',
|
|
61
|
-
'cluster_id': 'clusterId',
|
|
62
|
-
'command': 'command',
|
|
63
|
-
'description': 'description',
|
|
64
|
-
'function_name': 'functionName',
|
|
65
|
-
'method': 'method',
|
|
66
|
-
'path': 'path',
|
|
67
|
-
'plugin_id': 'pluginId',
|
|
68
|
-
'project_owner_name': 'projectOwnerName',
|
|
69
|
-
'published': 'published',
|
|
70
|
-
'user_id': 'userId'
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
def __init__(self, arguments: 'list[V1CommandArgument]' =None, cloudspace_id: 'str' =None, cluster_id: 'str' =None, command: 'str' =None, description: 'str' =None, function_name: 'str' =None, method: 'str' =None, path: 'str' =None, plugin_id: 'str' =None, project_owner_name: 'str' =None, published: 'bool' =None, user_id: 'str' =None): # noqa: E501
|
|
74
|
-
"""FileendpointsIdBody - a model defined in Swagger""" # noqa: E501
|
|
75
|
-
self._arguments = None
|
|
76
|
-
self._cloudspace_id = None
|
|
77
|
-
self._cluster_id = None
|
|
78
|
-
self._command = None
|
|
79
|
-
self._description = None
|
|
80
|
-
self._function_name = None
|
|
81
|
-
self._method = None
|
|
82
|
-
self._path = None
|
|
83
|
-
self._plugin_id = None
|
|
84
|
-
self._project_owner_name = None
|
|
85
|
-
self._published = None
|
|
86
|
-
self._user_id = None
|
|
87
|
-
self.discriminator = None
|
|
88
|
-
if arguments is not None:
|
|
89
|
-
self.arguments = arguments
|
|
90
|
-
if cloudspace_id is not None:
|
|
91
|
-
self.cloudspace_id = cloudspace_id
|
|
92
|
-
if cluster_id is not None:
|
|
93
|
-
self.cluster_id = cluster_id
|
|
94
|
-
if command is not None:
|
|
95
|
-
self.command = command
|
|
96
|
-
if description is not None:
|
|
97
|
-
self.description = description
|
|
98
|
-
if function_name is not None:
|
|
99
|
-
self.function_name = function_name
|
|
100
|
-
if method is not None:
|
|
101
|
-
self.method = method
|
|
102
|
-
if path is not None:
|
|
103
|
-
self.path = path
|
|
104
|
-
if plugin_id is not None:
|
|
105
|
-
self.plugin_id = plugin_id
|
|
106
|
-
if project_owner_name is not None:
|
|
107
|
-
self.project_owner_name = project_owner_name
|
|
108
|
-
if published is not None:
|
|
109
|
-
self.published = published
|
|
110
|
-
if user_id is not None:
|
|
111
|
-
self.user_id = user_id
|
|
112
|
-
|
|
113
|
-
@property
|
|
114
|
-
def arguments(self) -> 'list[V1CommandArgument]':
|
|
115
|
-
"""Gets the arguments of this FileendpointsIdBody. # noqa: E501
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
:return: The arguments of this FileendpointsIdBody. # noqa: E501
|
|
119
|
-
:rtype: list[V1CommandArgument]
|
|
120
|
-
"""
|
|
121
|
-
return self._arguments
|
|
122
|
-
|
|
123
|
-
@arguments.setter
|
|
124
|
-
def arguments(self, arguments: 'list[V1CommandArgument]'):
|
|
125
|
-
"""Sets the arguments of this FileendpointsIdBody.
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
:param arguments: The arguments of this FileendpointsIdBody. # noqa: E501
|
|
129
|
-
:type: list[V1CommandArgument]
|
|
130
|
-
"""
|
|
131
|
-
|
|
132
|
-
self._arguments = arguments
|
|
133
|
-
|
|
134
|
-
@property
|
|
135
|
-
def cloudspace_id(self) -> 'str':
|
|
136
|
-
"""Gets the cloudspace_id of this FileendpointsIdBody. # noqa: E501
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
:return: The cloudspace_id of this FileendpointsIdBody. # noqa: E501
|
|
140
|
-
:rtype: str
|
|
141
|
-
"""
|
|
142
|
-
return self._cloudspace_id
|
|
143
|
-
|
|
144
|
-
@cloudspace_id.setter
|
|
145
|
-
def cloudspace_id(self, cloudspace_id: 'str'):
|
|
146
|
-
"""Sets the cloudspace_id of this FileendpointsIdBody.
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
:param cloudspace_id: The cloudspace_id of this FileendpointsIdBody. # noqa: E501
|
|
150
|
-
:type: str
|
|
151
|
-
"""
|
|
152
|
-
|
|
153
|
-
self._cloudspace_id = cloudspace_id
|
|
154
|
-
|
|
155
|
-
@property
|
|
156
|
-
def cluster_id(self) -> 'str':
|
|
157
|
-
"""Gets the cluster_id of this FileendpointsIdBody. # noqa: E501
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
:return: The cluster_id of this FileendpointsIdBody. # noqa: E501
|
|
161
|
-
:rtype: str
|
|
162
|
-
"""
|
|
163
|
-
return self._cluster_id
|
|
164
|
-
|
|
165
|
-
@cluster_id.setter
|
|
166
|
-
def cluster_id(self, cluster_id: 'str'):
|
|
167
|
-
"""Sets the cluster_id of this FileendpointsIdBody.
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
:param cluster_id: The cluster_id of this FileendpointsIdBody. # noqa: E501
|
|
171
|
-
:type: str
|
|
172
|
-
"""
|
|
173
|
-
|
|
174
|
-
self._cluster_id = cluster_id
|
|
175
|
-
|
|
176
|
-
@property
|
|
177
|
-
def command(self) -> 'str':
|
|
178
|
-
"""Gets the command of this FileendpointsIdBody. # noqa: E501
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
:return: The command of this FileendpointsIdBody. # noqa: E501
|
|
182
|
-
:rtype: str
|
|
183
|
-
"""
|
|
184
|
-
return self._command
|
|
185
|
-
|
|
186
|
-
@command.setter
|
|
187
|
-
def command(self, command: 'str'):
|
|
188
|
-
"""Sets the command of this FileendpointsIdBody.
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
:param command: The command of this FileendpointsIdBody. # noqa: E501
|
|
192
|
-
:type: str
|
|
193
|
-
"""
|
|
194
|
-
|
|
195
|
-
self._command = command
|
|
196
|
-
|
|
197
|
-
@property
|
|
198
|
-
def description(self) -> 'str':
|
|
199
|
-
"""Gets the description of this FileendpointsIdBody. # noqa: E501
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
:return: The description of this FileendpointsIdBody. # noqa: E501
|
|
203
|
-
:rtype: str
|
|
204
|
-
"""
|
|
205
|
-
return self._description
|
|
206
|
-
|
|
207
|
-
@description.setter
|
|
208
|
-
def description(self, description: 'str'):
|
|
209
|
-
"""Sets the description of this FileendpointsIdBody.
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
:param description: The description of this FileendpointsIdBody. # noqa: E501
|
|
213
|
-
:type: str
|
|
214
|
-
"""
|
|
215
|
-
|
|
216
|
-
self._description = description
|
|
217
|
-
|
|
218
|
-
@property
|
|
219
|
-
def function_name(self) -> 'str':
|
|
220
|
-
"""Gets the function_name of this FileendpointsIdBody. # noqa: E501
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
:return: The function_name of this FileendpointsIdBody. # noqa: E501
|
|
224
|
-
:rtype: str
|
|
225
|
-
"""
|
|
226
|
-
return self._function_name
|
|
227
|
-
|
|
228
|
-
@function_name.setter
|
|
229
|
-
def function_name(self, function_name: 'str'):
|
|
230
|
-
"""Sets the function_name of this FileendpointsIdBody.
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
:param function_name: The function_name of this FileendpointsIdBody. # noqa: E501
|
|
234
|
-
:type: str
|
|
235
|
-
"""
|
|
236
|
-
|
|
237
|
-
self._function_name = function_name
|
|
238
|
-
|
|
239
|
-
@property
|
|
240
|
-
def method(self) -> 'str':
|
|
241
|
-
"""Gets the method of this FileendpointsIdBody. # noqa: E501
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
:return: The method of this FileendpointsIdBody. # noqa: E501
|
|
245
|
-
:rtype: str
|
|
246
|
-
"""
|
|
247
|
-
return self._method
|
|
248
|
-
|
|
249
|
-
@method.setter
|
|
250
|
-
def method(self, method: 'str'):
|
|
251
|
-
"""Sets the method of this FileendpointsIdBody.
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
:param method: The method of this FileendpointsIdBody. # noqa: E501
|
|
255
|
-
:type: str
|
|
256
|
-
"""
|
|
257
|
-
|
|
258
|
-
self._method = method
|
|
259
|
-
|
|
260
|
-
@property
|
|
261
|
-
def path(self) -> 'str':
|
|
262
|
-
"""Gets the path of this FileendpointsIdBody. # noqa: E501
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
:return: The path of this FileendpointsIdBody. # noqa: E501
|
|
266
|
-
:rtype: str
|
|
267
|
-
"""
|
|
268
|
-
return self._path
|
|
269
|
-
|
|
270
|
-
@path.setter
|
|
271
|
-
def path(self, path: 'str'):
|
|
272
|
-
"""Sets the path of this FileendpointsIdBody.
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
:param path: The path of this FileendpointsIdBody. # noqa: E501
|
|
276
|
-
:type: str
|
|
277
|
-
"""
|
|
278
|
-
|
|
279
|
-
self._path = path
|
|
280
|
-
|
|
281
|
-
@property
|
|
282
|
-
def plugin_id(self) -> 'str':
|
|
283
|
-
"""Gets the plugin_id of this FileendpointsIdBody. # noqa: E501
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
:return: The plugin_id of this FileendpointsIdBody. # noqa: E501
|
|
287
|
-
:rtype: str
|
|
288
|
-
"""
|
|
289
|
-
return self._plugin_id
|
|
290
|
-
|
|
291
|
-
@plugin_id.setter
|
|
292
|
-
def plugin_id(self, plugin_id: 'str'):
|
|
293
|
-
"""Sets the plugin_id of this FileendpointsIdBody.
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
:param plugin_id: The plugin_id of this FileendpointsIdBody. # noqa: E501
|
|
297
|
-
:type: str
|
|
298
|
-
"""
|
|
299
|
-
|
|
300
|
-
self._plugin_id = plugin_id
|
|
301
|
-
|
|
302
|
-
@property
|
|
303
|
-
def project_owner_name(self) -> 'str':
|
|
304
|
-
"""Gets the project_owner_name of this FileendpointsIdBody. # noqa: E501
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
:return: The project_owner_name of this FileendpointsIdBody. # noqa: E501
|
|
308
|
-
:rtype: str
|
|
309
|
-
"""
|
|
310
|
-
return self._project_owner_name
|
|
311
|
-
|
|
312
|
-
@project_owner_name.setter
|
|
313
|
-
def project_owner_name(self, project_owner_name: 'str'):
|
|
314
|
-
"""Sets the project_owner_name of this FileendpointsIdBody.
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
:param project_owner_name: The project_owner_name of this FileendpointsIdBody. # noqa: E501
|
|
318
|
-
:type: str
|
|
319
|
-
"""
|
|
320
|
-
|
|
321
|
-
self._project_owner_name = project_owner_name
|
|
322
|
-
|
|
323
|
-
@property
|
|
324
|
-
def published(self) -> 'bool':
|
|
325
|
-
"""Gets the published of this FileendpointsIdBody. # noqa: E501
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
:return: The published of this FileendpointsIdBody. # noqa: E501
|
|
329
|
-
:rtype: bool
|
|
330
|
-
"""
|
|
331
|
-
return self._published
|
|
332
|
-
|
|
333
|
-
@published.setter
|
|
334
|
-
def published(self, published: 'bool'):
|
|
335
|
-
"""Sets the published of this FileendpointsIdBody.
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
:param published: The published of this FileendpointsIdBody. # noqa: E501
|
|
339
|
-
:type: bool
|
|
340
|
-
"""
|
|
341
|
-
|
|
342
|
-
self._published = published
|
|
343
|
-
|
|
344
|
-
@property
|
|
345
|
-
def user_id(self) -> 'str':
|
|
346
|
-
"""Gets the user_id of this FileendpointsIdBody. # noqa: E501
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
:return: The user_id of this FileendpointsIdBody. # noqa: E501
|
|
350
|
-
:rtype: str
|
|
351
|
-
"""
|
|
352
|
-
return self._user_id
|
|
353
|
-
|
|
354
|
-
@user_id.setter
|
|
355
|
-
def user_id(self, user_id: 'str'):
|
|
356
|
-
"""Sets the user_id of this FileendpointsIdBody.
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
:param user_id: The user_id of this FileendpointsIdBody. # noqa: E501
|
|
360
|
-
:type: str
|
|
361
|
-
"""
|
|
362
|
-
|
|
363
|
-
self._user_id = user_id
|
|
364
|
-
|
|
365
|
-
def to_dict(self) -> dict:
|
|
366
|
-
"""Returns the model properties as a dict"""
|
|
367
|
-
result = {}
|
|
368
|
-
|
|
369
|
-
for attr, _ in six.iteritems(self.swagger_types):
|
|
370
|
-
value = getattr(self, attr)
|
|
371
|
-
if isinstance(value, list):
|
|
372
|
-
result[attr] = list(map(
|
|
373
|
-
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
374
|
-
value
|
|
375
|
-
))
|
|
376
|
-
elif hasattr(value, "to_dict"):
|
|
377
|
-
result[attr] = value.to_dict()
|
|
378
|
-
elif isinstance(value, dict):
|
|
379
|
-
result[attr] = dict(map(
|
|
380
|
-
lambda item: (item[0], item[1].to_dict())
|
|
381
|
-
if hasattr(item[1], "to_dict") else item,
|
|
382
|
-
value.items()
|
|
383
|
-
))
|
|
384
|
-
else:
|
|
385
|
-
result[attr] = value
|
|
386
|
-
if issubclass(FileendpointsIdBody, dict):
|
|
387
|
-
for key, value in self.items():
|
|
388
|
-
result[key] = value
|
|
389
|
-
|
|
390
|
-
return result
|
|
391
|
-
|
|
392
|
-
def to_str(self) -> str:
|
|
393
|
-
"""Returns the string representation of the model"""
|
|
394
|
-
return pprint.pformat(self.to_dict())
|
|
395
|
-
|
|
396
|
-
def __repr__(self) -> str:
|
|
397
|
-
"""For `print` and `pprint`"""
|
|
398
|
-
return self.to_str()
|
|
399
|
-
|
|
400
|
-
def __eq__(self, other: 'FileendpointsIdBody') -> bool:
|
|
401
|
-
"""Returns true if both objects are equal"""
|
|
402
|
-
if not isinstance(other, FileendpointsIdBody):
|
|
403
|
-
return False
|
|
404
|
-
|
|
405
|
-
return self.__dict__ == other.__dict__
|
|
406
|
-
|
|
407
|
-
def __ne__(self, other: 'FileendpointsIdBody') -> bool:
|
|
408
|
-
"""Returns true if both objects are not equal"""
|
|
409
|
-
return not self == other
|
|
@@ -1,175 +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 IdCompleteBody(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
|
-
'argument_upload_id': 'str',
|
|
45
|
-
'parts': 'list[V1CompleteUpload]',
|
|
46
|
-
'upload_id': 'str'
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
attribute_map = {
|
|
50
|
-
'argument_upload_id': 'argumentUploadId',
|
|
51
|
-
'parts': 'parts',
|
|
52
|
-
'upload_id': 'uploadId'
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
def __init__(self, argument_upload_id: 'str' =None, parts: 'list[V1CompleteUpload]' =None, upload_id: 'str' =None): # noqa: E501
|
|
56
|
-
"""IdCompleteBody - a model defined in Swagger""" # noqa: E501
|
|
57
|
-
self._argument_upload_id = None
|
|
58
|
-
self._parts = None
|
|
59
|
-
self._upload_id = None
|
|
60
|
-
self.discriminator = None
|
|
61
|
-
if argument_upload_id is not None:
|
|
62
|
-
self.argument_upload_id = argument_upload_id
|
|
63
|
-
if parts is not None:
|
|
64
|
-
self.parts = parts
|
|
65
|
-
if upload_id is not None:
|
|
66
|
-
self.upload_id = upload_id
|
|
67
|
-
|
|
68
|
-
@property
|
|
69
|
-
def argument_upload_id(self) -> 'str':
|
|
70
|
-
"""Gets the argument_upload_id of this IdCompleteBody. # noqa: E501
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
:return: The argument_upload_id of this IdCompleteBody. # noqa: E501
|
|
74
|
-
:rtype: str
|
|
75
|
-
"""
|
|
76
|
-
return self._argument_upload_id
|
|
77
|
-
|
|
78
|
-
@argument_upload_id.setter
|
|
79
|
-
def argument_upload_id(self, argument_upload_id: 'str'):
|
|
80
|
-
"""Sets the argument_upload_id of this IdCompleteBody.
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
:param argument_upload_id: The argument_upload_id of this IdCompleteBody. # noqa: E501
|
|
84
|
-
:type: str
|
|
85
|
-
"""
|
|
86
|
-
|
|
87
|
-
self._argument_upload_id = argument_upload_id
|
|
88
|
-
|
|
89
|
-
@property
|
|
90
|
-
def parts(self) -> 'list[V1CompleteUpload]':
|
|
91
|
-
"""Gets the parts of this IdCompleteBody. # noqa: E501
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
:return: The parts of this IdCompleteBody. # noqa: E501
|
|
95
|
-
:rtype: list[V1CompleteUpload]
|
|
96
|
-
"""
|
|
97
|
-
return self._parts
|
|
98
|
-
|
|
99
|
-
@parts.setter
|
|
100
|
-
def parts(self, parts: 'list[V1CompleteUpload]'):
|
|
101
|
-
"""Sets the parts of this IdCompleteBody.
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
:param parts: The parts of this IdCompleteBody. # noqa: E501
|
|
105
|
-
:type: list[V1CompleteUpload]
|
|
106
|
-
"""
|
|
107
|
-
|
|
108
|
-
self._parts = parts
|
|
109
|
-
|
|
110
|
-
@property
|
|
111
|
-
def upload_id(self) -> 'str':
|
|
112
|
-
"""Gets the upload_id of this IdCompleteBody. # noqa: E501
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
:return: The upload_id of this IdCompleteBody. # noqa: E501
|
|
116
|
-
:rtype: str
|
|
117
|
-
"""
|
|
118
|
-
return self._upload_id
|
|
119
|
-
|
|
120
|
-
@upload_id.setter
|
|
121
|
-
def upload_id(self, upload_id: 'str'):
|
|
122
|
-
"""Sets the upload_id of this IdCompleteBody.
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
:param upload_id: The upload_id of this IdCompleteBody. # noqa: E501
|
|
126
|
-
:type: str
|
|
127
|
-
"""
|
|
128
|
-
|
|
129
|
-
self._upload_id = upload_id
|
|
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(IdCompleteBody, 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: 'IdCompleteBody') -> bool:
|
|
167
|
-
"""Returns true if both objects are equal"""
|
|
168
|
-
if not isinstance(other, IdCompleteBody):
|
|
169
|
-
return False
|
|
170
|
-
|
|
171
|
-
return self.__dict__ == other.__dict__
|
|
172
|
-
|
|
173
|
-
def __ne__(self, other: 'IdCompleteBody') -> bool:
|
|
174
|
-
"""Returns true if both objects are not equal"""
|
|
175
|
-
return not self == other
|