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,305 +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 V1CommandArgument(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
|
-
'defaults': 'list[str]',
|
|
45
|
-
'description': 'str',
|
|
46
|
-
'id': 'str',
|
|
47
|
-
'name': 'str',
|
|
48
|
-
'ready': 'bool',
|
|
49
|
-
'required': 'bool',
|
|
50
|
-
'type': 'CommandArgumentCommandArgumentType',
|
|
51
|
-
'value': 'str'
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
attribute_map = {
|
|
55
|
-
'defaults': 'defaults',
|
|
56
|
-
'description': 'description',
|
|
57
|
-
'id': 'id',
|
|
58
|
-
'name': 'name',
|
|
59
|
-
'ready': 'ready',
|
|
60
|
-
'required': 'required',
|
|
61
|
-
'type': 'type',
|
|
62
|
-
'value': 'value'
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
def __init__(self, defaults: 'list[str]' =None, description: 'str' =None, id: 'str' =None, name: 'str' =None, ready: 'bool' =None, required: 'bool' =None, type: 'CommandArgumentCommandArgumentType' =None, value: 'str' =None): # noqa: E501
|
|
66
|
-
"""V1CommandArgument - a model defined in Swagger""" # noqa: E501
|
|
67
|
-
self._defaults = None
|
|
68
|
-
self._description = None
|
|
69
|
-
self._id = None
|
|
70
|
-
self._name = None
|
|
71
|
-
self._ready = None
|
|
72
|
-
self._required = None
|
|
73
|
-
self._type = None
|
|
74
|
-
self._value = None
|
|
75
|
-
self.discriminator = None
|
|
76
|
-
if defaults is not None:
|
|
77
|
-
self.defaults = defaults
|
|
78
|
-
if description is not None:
|
|
79
|
-
self.description = description
|
|
80
|
-
if id is not None:
|
|
81
|
-
self.id = id
|
|
82
|
-
if name is not None:
|
|
83
|
-
self.name = name
|
|
84
|
-
if ready is not None:
|
|
85
|
-
self.ready = ready
|
|
86
|
-
if required is not None:
|
|
87
|
-
self.required = required
|
|
88
|
-
if type is not None:
|
|
89
|
-
self.type = type
|
|
90
|
-
if value is not None:
|
|
91
|
-
self.value = value
|
|
92
|
-
|
|
93
|
-
@property
|
|
94
|
-
def defaults(self) -> 'list[str]':
|
|
95
|
-
"""Gets the defaults of this V1CommandArgument. # noqa: E501
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
:return: The defaults of this V1CommandArgument. # noqa: E501
|
|
99
|
-
:rtype: list[str]
|
|
100
|
-
"""
|
|
101
|
-
return self._defaults
|
|
102
|
-
|
|
103
|
-
@defaults.setter
|
|
104
|
-
def defaults(self, defaults: 'list[str]'):
|
|
105
|
-
"""Sets the defaults of this V1CommandArgument.
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
:param defaults: The defaults of this V1CommandArgument. # noqa: E501
|
|
109
|
-
:type: list[str]
|
|
110
|
-
"""
|
|
111
|
-
|
|
112
|
-
self._defaults = defaults
|
|
113
|
-
|
|
114
|
-
@property
|
|
115
|
-
def description(self) -> 'str':
|
|
116
|
-
"""Gets the description of this V1CommandArgument. # noqa: E501
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
:return: The description of this V1CommandArgument. # noqa: E501
|
|
120
|
-
:rtype: str
|
|
121
|
-
"""
|
|
122
|
-
return self._description
|
|
123
|
-
|
|
124
|
-
@description.setter
|
|
125
|
-
def description(self, description: 'str'):
|
|
126
|
-
"""Sets the description of this V1CommandArgument.
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
:param description: The description of this V1CommandArgument. # noqa: E501
|
|
130
|
-
:type: str
|
|
131
|
-
"""
|
|
132
|
-
|
|
133
|
-
self._description = description
|
|
134
|
-
|
|
135
|
-
@property
|
|
136
|
-
def id(self) -> 'str':
|
|
137
|
-
"""Gets the id of this V1CommandArgument. # noqa: E501
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
:return: The id of this V1CommandArgument. # noqa: E501
|
|
141
|
-
:rtype: str
|
|
142
|
-
"""
|
|
143
|
-
return self._id
|
|
144
|
-
|
|
145
|
-
@id.setter
|
|
146
|
-
def id(self, id: 'str'):
|
|
147
|
-
"""Sets the id of this V1CommandArgument.
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
:param id: The id of this V1CommandArgument. # noqa: E501
|
|
151
|
-
:type: str
|
|
152
|
-
"""
|
|
153
|
-
|
|
154
|
-
self._id = id
|
|
155
|
-
|
|
156
|
-
@property
|
|
157
|
-
def name(self) -> 'str':
|
|
158
|
-
"""Gets the name of this V1CommandArgument. # noqa: E501
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
:return: The name of this V1CommandArgument. # noqa: E501
|
|
162
|
-
:rtype: str
|
|
163
|
-
"""
|
|
164
|
-
return self._name
|
|
165
|
-
|
|
166
|
-
@name.setter
|
|
167
|
-
def name(self, name: 'str'):
|
|
168
|
-
"""Sets the name of this V1CommandArgument.
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
:param name: The name of this V1CommandArgument. # noqa: E501
|
|
172
|
-
:type: str
|
|
173
|
-
"""
|
|
174
|
-
|
|
175
|
-
self._name = name
|
|
176
|
-
|
|
177
|
-
@property
|
|
178
|
-
def ready(self) -> 'bool':
|
|
179
|
-
"""Gets the ready of this V1CommandArgument. # noqa: E501
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
:return: The ready of this V1CommandArgument. # noqa: E501
|
|
183
|
-
:rtype: bool
|
|
184
|
-
"""
|
|
185
|
-
return self._ready
|
|
186
|
-
|
|
187
|
-
@ready.setter
|
|
188
|
-
def ready(self, ready: 'bool'):
|
|
189
|
-
"""Sets the ready of this V1CommandArgument.
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
:param ready: The ready of this V1CommandArgument. # noqa: E501
|
|
193
|
-
:type: bool
|
|
194
|
-
"""
|
|
195
|
-
|
|
196
|
-
self._ready = ready
|
|
197
|
-
|
|
198
|
-
@property
|
|
199
|
-
def required(self) -> 'bool':
|
|
200
|
-
"""Gets the required of this V1CommandArgument. # noqa: E501
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
:return: The required of this V1CommandArgument. # noqa: E501
|
|
204
|
-
:rtype: bool
|
|
205
|
-
"""
|
|
206
|
-
return self._required
|
|
207
|
-
|
|
208
|
-
@required.setter
|
|
209
|
-
def required(self, required: 'bool'):
|
|
210
|
-
"""Sets the required of this V1CommandArgument.
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
:param required: The required of this V1CommandArgument. # noqa: E501
|
|
214
|
-
:type: bool
|
|
215
|
-
"""
|
|
216
|
-
|
|
217
|
-
self._required = required
|
|
218
|
-
|
|
219
|
-
@property
|
|
220
|
-
def type(self) -> 'CommandArgumentCommandArgumentType':
|
|
221
|
-
"""Gets the type of this V1CommandArgument. # noqa: E501
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
:return: The type of this V1CommandArgument. # noqa: E501
|
|
225
|
-
:rtype: CommandArgumentCommandArgumentType
|
|
226
|
-
"""
|
|
227
|
-
return self._type
|
|
228
|
-
|
|
229
|
-
@type.setter
|
|
230
|
-
def type(self, type: 'CommandArgumentCommandArgumentType'):
|
|
231
|
-
"""Sets the type of this V1CommandArgument.
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
:param type: The type of this V1CommandArgument. # noqa: E501
|
|
235
|
-
:type: CommandArgumentCommandArgumentType
|
|
236
|
-
"""
|
|
237
|
-
|
|
238
|
-
self._type = type
|
|
239
|
-
|
|
240
|
-
@property
|
|
241
|
-
def value(self) -> 'str':
|
|
242
|
-
"""Gets the value of this V1CommandArgument. # noqa: E501
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
:return: The value of this V1CommandArgument. # noqa: E501
|
|
246
|
-
:rtype: str
|
|
247
|
-
"""
|
|
248
|
-
return self._value
|
|
249
|
-
|
|
250
|
-
@value.setter
|
|
251
|
-
def value(self, value: 'str'):
|
|
252
|
-
"""Sets the value of this V1CommandArgument.
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
:param value: The value of this V1CommandArgument. # noqa: E501
|
|
256
|
-
:type: str
|
|
257
|
-
"""
|
|
258
|
-
|
|
259
|
-
self._value = value
|
|
260
|
-
|
|
261
|
-
def to_dict(self) -> dict:
|
|
262
|
-
"""Returns the model properties as a dict"""
|
|
263
|
-
result = {}
|
|
264
|
-
|
|
265
|
-
for attr, _ in six.iteritems(self.swagger_types):
|
|
266
|
-
value = getattr(self, attr)
|
|
267
|
-
if isinstance(value, list):
|
|
268
|
-
result[attr] = list(map(
|
|
269
|
-
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
270
|
-
value
|
|
271
|
-
))
|
|
272
|
-
elif hasattr(value, "to_dict"):
|
|
273
|
-
result[attr] = value.to_dict()
|
|
274
|
-
elif isinstance(value, dict):
|
|
275
|
-
result[attr] = dict(map(
|
|
276
|
-
lambda item: (item[0], item[1].to_dict())
|
|
277
|
-
if hasattr(item[1], "to_dict") else item,
|
|
278
|
-
value.items()
|
|
279
|
-
))
|
|
280
|
-
else:
|
|
281
|
-
result[attr] = value
|
|
282
|
-
if issubclass(V1CommandArgument, dict):
|
|
283
|
-
for key, value in self.items():
|
|
284
|
-
result[key] = value
|
|
285
|
-
|
|
286
|
-
return result
|
|
287
|
-
|
|
288
|
-
def to_str(self) -> str:
|
|
289
|
-
"""Returns the string representation of the model"""
|
|
290
|
-
return pprint.pformat(self.to_dict())
|
|
291
|
-
|
|
292
|
-
def __repr__(self) -> str:
|
|
293
|
-
"""For `print` and `pprint`"""
|
|
294
|
-
return self.to_str()
|
|
295
|
-
|
|
296
|
-
def __eq__(self, other: 'V1CommandArgument') -> bool:
|
|
297
|
-
"""Returns true if both objects are equal"""
|
|
298
|
-
if not isinstance(other, V1CommandArgument):
|
|
299
|
-
return False
|
|
300
|
-
|
|
301
|
-
return self.__dict__ == other.__dict__
|
|
302
|
-
|
|
303
|
-
def __ne__(self, other: 'V1CommandArgument') -> bool:
|
|
304
|
-
"""Returns true if both objects are not equal"""
|
|
305
|
-
return not self == other
|
|
@@ -1,149 +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 V1DeleteFileEndpointResponse(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
|
-
'cloudspace_id': 'str',
|
|
45
|
-
'project_id': 'str'
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
attribute_map = {
|
|
49
|
-
'cloudspace_id': 'cloudspaceId',
|
|
50
|
-
'project_id': 'projectId'
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
def __init__(self, cloudspace_id: 'str' =None, project_id: 'str' =None): # noqa: E501
|
|
54
|
-
"""V1DeleteFileEndpointResponse - a model defined in Swagger""" # noqa: E501
|
|
55
|
-
self._cloudspace_id = None
|
|
56
|
-
self._project_id = None
|
|
57
|
-
self.discriminator = None
|
|
58
|
-
if cloudspace_id is not None:
|
|
59
|
-
self.cloudspace_id = cloudspace_id
|
|
60
|
-
if project_id is not None:
|
|
61
|
-
self.project_id = project_id
|
|
62
|
-
|
|
63
|
-
@property
|
|
64
|
-
def cloudspace_id(self) -> 'str':
|
|
65
|
-
"""Gets the cloudspace_id of this V1DeleteFileEndpointResponse. # noqa: E501
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
:return: The cloudspace_id of this V1DeleteFileEndpointResponse. # noqa: E501
|
|
69
|
-
:rtype: str
|
|
70
|
-
"""
|
|
71
|
-
return self._cloudspace_id
|
|
72
|
-
|
|
73
|
-
@cloudspace_id.setter
|
|
74
|
-
def cloudspace_id(self, cloudspace_id: 'str'):
|
|
75
|
-
"""Sets the cloudspace_id of this V1DeleteFileEndpointResponse.
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
:param cloudspace_id: The cloudspace_id of this V1DeleteFileEndpointResponse. # noqa: E501
|
|
79
|
-
:type: str
|
|
80
|
-
"""
|
|
81
|
-
|
|
82
|
-
self._cloudspace_id = cloudspace_id
|
|
83
|
-
|
|
84
|
-
@property
|
|
85
|
-
def project_id(self) -> 'str':
|
|
86
|
-
"""Gets the project_id of this V1DeleteFileEndpointResponse. # noqa: E501
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
:return: The project_id of this V1DeleteFileEndpointResponse. # noqa: E501
|
|
90
|
-
:rtype: str
|
|
91
|
-
"""
|
|
92
|
-
return self._project_id
|
|
93
|
-
|
|
94
|
-
@project_id.setter
|
|
95
|
-
def project_id(self, project_id: 'str'):
|
|
96
|
-
"""Sets the project_id of this V1DeleteFileEndpointResponse.
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
:param project_id: The project_id of this V1DeleteFileEndpointResponse. # noqa: E501
|
|
100
|
-
:type: str
|
|
101
|
-
"""
|
|
102
|
-
|
|
103
|
-
self._project_id = project_id
|
|
104
|
-
|
|
105
|
-
def to_dict(self) -> dict:
|
|
106
|
-
"""Returns the model properties as a dict"""
|
|
107
|
-
result = {}
|
|
108
|
-
|
|
109
|
-
for attr, _ in six.iteritems(self.swagger_types):
|
|
110
|
-
value = getattr(self, attr)
|
|
111
|
-
if isinstance(value, list):
|
|
112
|
-
result[attr] = list(map(
|
|
113
|
-
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
114
|
-
value
|
|
115
|
-
))
|
|
116
|
-
elif hasattr(value, "to_dict"):
|
|
117
|
-
result[attr] = value.to_dict()
|
|
118
|
-
elif isinstance(value, dict):
|
|
119
|
-
result[attr] = dict(map(
|
|
120
|
-
lambda item: (item[0], item[1].to_dict())
|
|
121
|
-
if hasattr(item[1], "to_dict") else item,
|
|
122
|
-
value.items()
|
|
123
|
-
))
|
|
124
|
-
else:
|
|
125
|
-
result[attr] = value
|
|
126
|
-
if issubclass(V1DeleteFileEndpointResponse, dict):
|
|
127
|
-
for key, value in self.items():
|
|
128
|
-
result[key] = value
|
|
129
|
-
|
|
130
|
-
return result
|
|
131
|
-
|
|
132
|
-
def to_str(self) -> str:
|
|
133
|
-
"""Returns the string representation of the model"""
|
|
134
|
-
return pprint.pformat(self.to_dict())
|
|
135
|
-
|
|
136
|
-
def __repr__(self) -> str:
|
|
137
|
-
"""For `print` and `pprint`"""
|
|
138
|
-
return self.to_str()
|
|
139
|
-
|
|
140
|
-
def __eq__(self, other: 'V1DeleteFileEndpointResponse') -> bool:
|
|
141
|
-
"""Returns true if both objects are equal"""
|
|
142
|
-
if not isinstance(other, V1DeleteFileEndpointResponse):
|
|
143
|
-
return False
|
|
144
|
-
|
|
145
|
-
return self.__dict__ == other.__dict__
|
|
146
|
-
|
|
147
|
-
def __ne__(self, other: 'V1DeleteFileEndpointResponse') -> bool:
|
|
148
|
-
"""Returns true if both objects are not equal"""
|
|
149
|
-
return not self == other
|
lightning_sdk/lightning_cloud/openapi/models/v1_download_service_execution_artifact_response.py
DELETED
|
@@ -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 V1DownloadServiceExecutionArtifactResponse(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
|
-
'artifacts': 'list[V1ProjectArtifact]',
|
|
45
|
-
'next_page_token': 'str',
|
|
46
|
-
'previous_page_token': 'str'
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
attribute_map = {
|
|
50
|
-
'artifacts': 'artifacts',
|
|
51
|
-
'next_page_token': 'nextPageToken',
|
|
52
|
-
'previous_page_token': 'previousPageToken'
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
def __init__(self, artifacts: 'list[V1ProjectArtifact]' =None, next_page_token: 'str' =None, previous_page_token: 'str' =None): # noqa: E501
|
|
56
|
-
"""V1DownloadServiceExecutionArtifactResponse - a model defined in Swagger""" # noqa: E501
|
|
57
|
-
self._artifacts = None
|
|
58
|
-
self._next_page_token = None
|
|
59
|
-
self._previous_page_token = None
|
|
60
|
-
self.discriminator = None
|
|
61
|
-
if artifacts is not None:
|
|
62
|
-
self.artifacts = artifacts
|
|
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 artifacts(self) -> 'list[V1ProjectArtifact]':
|
|
70
|
-
"""Gets the artifacts of this V1DownloadServiceExecutionArtifactResponse. # noqa: E501
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
:return: The artifacts of this V1DownloadServiceExecutionArtifactResponse. # noqa: E501
|
|
74
|
-
:rtype: list[V1ProjectArtifact]
|
|
75
|
-
"""
|
|
76
|
-
return self._artifacts
|
|
77
|
-
|
|
78
|
-
@artifacts.setter
|
|
79
|
-
def artifacts(self, artifacts: 'list[V1ProjectArtifact]'):
|
|
80
|
-
"""Sets the artifacts of this V1DownloadServiceExecutionArtifactResponse.
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
:param artifacts: The artifacts of this V1DownloadServiceExecutionArtifactResponse. # noqa: E501
|
|
84
|
-
:type: list[V1ProjectArtifact]
|
|
85
|
-
"""
|
|
86
|
-
|
|
87
|
-
self._artifacts = artifacts
|
|
88
|
-
|
|
89
|
-
@property
|
|
90
|
-
def next_page_token(self) -> 'str':
|
|
91
|
-
"""Gets the next_page_token of this V1DownloadServiceExecutionArtifactResponse. # noqa: E501
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
:return: The next_page_token of this V1DownloadServiceExecutionArtifactResponse. # 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 V1DownloadServiceExecutionArtifactResponse.
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
:param next_page_token: The next_page_token of this V1DownloadServiceExecutionArtifactResponse. # 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 V1DownloadServiceExecutionArtifactResponse. # noqa: E501
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
:return: The previous_page_token of this V1DownloadServiceExecutionArtifactResponse. # 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 V1DownloadServiceExecutionArtifactResponse.
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
:param previous_page_token: The previous_page_token of this V1DownloadServiceExecutionArtifactResponse. # 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(V1DownloadServiceExecutionArtifactResponse, 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: 'V1DownloadServiceExecutionArtifactResponse') -> bool:
|
|
167
|
-
"""Returns true if both objects are equal"""
|
|
168
|
-
if not isinstance(other, V1DownloadServiceExecutionArtifactResponse):
|
|
169
|
-
return False
|
|
170
|
-
|
|
171
|
-
return self.__dict__ == other.__dict__
|
|
172
|
-
|
|
173
|
-
def __ne__(self, other: 'V1DownloadServiceExecutionArtifactResponse') -> bool:
|
|
174
|
-
"""Returns true if both objects are not equal"""
|
|
175
|
-
return not self == other
|