lightning-sdk 0.1.58__py3-none-any.whl → 0.2.1__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 +5 -3
- lightning_sdk/api/deployment_api.py +23 -11
- lightning_sdk/api/job_api.py +42 -7
- lightning_sdk/api/lit_container_api.py +23 -3
- lightning_sdk/api/mmt_api.py +46 -8
- lightning_sdk/api/pipeline_api.py +50 -0
- lightning_sdk/api/teamspace_api.py +2 -2
- lightning_sdk/api/utils.py +15 -5
- lightning_sdk/cli/ai_hub.py +30 -65
- lightning_sdk/cli/coloring.py +60 -0
- lightning_sdk/cli/configure.py +25 -40
- lightning_sdk/cli/connect.py +7 -20
- lightning_sdk/cli/create.py +83 -0
- lightning_sdk/cli/delete.py +72 -75
- lightning_sdk/cli/docker.py +22 -0
- lightning_sdk/cli/download.py +78 -113
- lightning_sdk/cli/entrypoint.py +44 -65
- lightning_sdk/cli/generate.py +28 -43
- lightning_sdk/cli/inspect.py +22 -50
- lightning_sdk/cli/list.py +281 -222
- lightning_sdk/cli/mmts_menu.py +1 -1
- lightning_sdk/cli/open.py +62 -0
- lightning_sdk/cli/run.py +430 -263
- lightning_sdk/cli/serve.py +128 -191
- lightning_sdk/cli/start.py +55 -36
- lightning_sdk/cli/stop.py +97 -55
- lightning_sdk/cli/switch.py +53 -36
- lightning_sdk/cli/upload.py +318 -255
- lightning_sdk/deployment/__init__.py +2 -0
- lightning_sdk/deployment/deployment.py +33 -8
- lightning_sdk/lightning_cloud/openapi/__init__.py +23 -0
- lightning_sdk/lightning_cloud/openapi/api/__init__.py +1 -0
- lightning_sdk/lightning_cloud/openapi/api/assistants_service_api.py +10 -6
- lightning_sdk/lightning_cloud/openapi/api/jobs_service_api.py +355 -4
- lightning_sdk/lightning_cloud/openapi/api/lit_logger_service_api.py +4 -4
- lightning_sdk/lightning_cloud/openapi/api/lit_registry_service_api.py +14 -2
- lightning_sdk/lightning_cloud/openapi/api/pipelines_service_api.py +674 -0
- lightning_sdk/lightning_cloud/openapi/api/storage_service_api.py +303 -4
- lightning_sdk/lightning_cloud/openapi/models/__init__.py +22 -0
- lightning_sdk/lightning_cloud/openapi/models/agents_id_body.py +17 -69
- lightning_sdk/lightning_cloud/openapi/models/cluster_id_capacityreservations_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/create.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/create_deployment_request_defines_a_spec_for_the_job_that_allows_for_autoscaling_jobs.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/deployments_id_body.py +105 -1
- lightning_sdk/lightning_cloud/openapi/models/id_visibility_body1.py +1 -27
- lightning_sdk/lightning_cloud/openapi/models/id_visibility_body2.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/org_id_memberships_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/orgs_id_body.py +157 -1
- lightning_sdk/lightning_cloud/openapi/models/pipelines_id_body.py +461 -0
- lightning_sdk/lightning_cloud/openapi/models/project_id_pipelines_body.py +227 -0
- lightning_sdk/lightning_cloud/openapi/models/projects_id_body.py +157 -1
- lightning_sdk/lightning_cloud/openapi/models/slurm_jobs_body.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/uploads_upload_id_body.py +1 -27
- lightning_sdk/lightning_cloud/openapi/models/uploads_upload_id_body1.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_agent_job.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_assistant.py +17 -69
- lightning_sdk/lightning_cloud/openapi/models/v1_capacity_block_offering.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_artifact_event_type.py +1 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_accelerator.py +131 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_capacity_reservation.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_security_options.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_complete_upload_temporary_artifact_request.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_deployment_request.py +461 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_deployment_template_request.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_create_job_request.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_managed_endpoint_response.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_multi_machine_job_request.py +253 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_data_connection.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_pipeline_response.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment.py +105 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_details.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_template.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_filestore_data_connection.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_job.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_mmt.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_find_capacity_block_offering_response.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_job.py +133 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_job_artifacts_type.py +103 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_job_spec.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_job_timing.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_list_pipelines_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_lit_registry_artifact.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_lit_repository.py +29 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_managed_model.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_multi_machine_job.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_multi_machine_job_state.py +2 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_organization.py +209 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_pipeline.py +513 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_schedule.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_step.py +253 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_step_status.py +331 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_step_type.py +104 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_project_settings.py +157 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_restart_timing.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_rule_resource.py +1 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_shared_filesystem.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_slurm_job.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_update_job_visibility_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_upload_temporary_artifact_request.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +95 -355
- lightning_sdk/lightning_cloud/openapi/models/validate.py +27 -1
- lightning_sdk/lightning_cloud/rest_client.py +4 -2
- lightning_sdk/machine.py +25 -1
- lightning_sdk/models.py +18 -12
- lightning_sdk/pipeline/__init__.py +4 -0
- lightning_sdk/pipeline/pipeline.py +109 -0
- lightning_sdk/pipeline/types.py +268 -0
- lightning_sdk/pipeline/utils.py +69 -0
- lightning_sdk/plugin.py +9 -10
- lightning_sdk/serve.py +134 -0
- lightning_sdk/services/utilities.py +2 -2
- lightning_sdk/studio.py +5 -1
- lightning_sdk/teamspace.py +1 -1
- lightning_sdk/utils/resolve.py +12 -1
- {lightning_sdk-0.1.58.dist-info → lightning_sdk-0.2.1.dist-info}/METADATA +6 -8
- {lightning_sdk-0.1.58.dist-info → lightning_sdk-0.2.1.dist-info}/RECORD +120 -88
- lightning_sdk/cli/legacy.py +0 -135
- {lightning_sdk-0.1.58.dist-info → lightning_sdk-0.2.1.dist-info}/LICENSE +0 -0
- {lightning_sdk-0.1.58.dist-info → lightning_sdk-0.2.1.dist-info}/WHEEL +0 -0
- {lightning_sdk-0.1.58.dist-info → lightning_sdk-0.2.1.dist-info}/entry_points.txt +0 -0
- {lightning_sdk-0.1.58.dist-info → lightning_sdk-0.2.1.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,461 @@
|
|
|
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 PipelinesIdBody(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
|
+
'display_name': 'str',
|
|
47
|
+
'error': 'str',
|
|
48
|
+
'message': 'str',
|
|
49
|
+
'name': 'str',
|
|
50
|
+
'parent_pipeline_id': 'str',
|
|
51
|
+
'schedules': 'list[V1PipelineSchedule]',
|
|
52
|
+
'shared_filesystem': 'V1SharedFilesystem',
|
|
53
|
+
'state': 'str',
|
|
54
|
+
'statuses': 'list[V1PipelineStepStatus]',
|
|
55
|
+
'steps': 'list[V1PipelineStep]',
|
|
56
|
+
'updated_at': 'datetime',
|
|
57
|
+
'user_id': 'str'
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
attribute_map = {
|
|
61
|
+
'cluster_id': 'clusterId',
|
|
62
|
+
'created_at': 'createdAt',
|
|
63
|
+
'display_name': 'displayName',
|
|
64
|
+
'error': 'error',
|
|
65
|
+
'message': 'message',
|
|
66
|
+
'name': 'name',
|
|
67
|
+
'parent_pipeline_id': 'parentPipelineId',
|
|
68
|
+
'schedules': 'schedules',
|
|
69
|
+
'shared_filesystem': 'sharedFilesystem',
|
|
70
|
+
'state': 'state',
|
|
71
|
+
'statuses': 'statuses',
|
|
72
|
+
'steps': 'steps',
|
|
73
|
+
'updated_at': 'updatedAt',
|
|
74
|
+
'user_id': 'userId'
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
def __init__(self, cluster_id: 'str' =None, created_at: 'datetime' =None, display_name: 'str' =None, error: 'str' =None, message: 'str' =None, name: 'str' =None, parent_pipeline_id: 'str' =None, schedules: 'list[V1PipelineSchedule]' =None, shared_filesystem: 'V1SharedFilesystem' =None, state: 'str' =None, statuses: 'list[V1PipelineStepStatus]' =None, steps: 'list[V1PipelineStep]' =None, updated_at: 'datetime' =None, user_id: 'str' =None): # noqa: E501
|
|
78
|
+
"""PipelinesIdBody - a model defined in Swagger""" # noqa: E501
|
|
79
|
+
self._cluster_id = None
|
|
80
|
+
self._created_at = None
|
|
81
|
+
self._display_name = None
|
|
82
|
+
self._error = None
|
|
83
|
+
self._message = None
|
|
84
|
+
self._name = None
|
|
85
|
+
self._parent_pipeline_id = None
|
|
86
|
+
self._schedules = None
|
|
87
|
+
self._shared_filesystem = None
|
|
88
|
+
self._state = None
|
|
89
|
+
self._statuses = None
|
|
90
|
+
self._steps = None
|
|
91
|
+
self._updated_at = None
|
|
92
|
+
self._user_id = None
|
|
93
|
+
self.discriminator = None
|
|
94
|
+
if cluster_id is not None:
|
|
95
|
+
self.cluster_id = cluster_id
|
|
96
|
+
if created_at is not None:
|
|
97
|
+
self.created_at = created_at
|
|
98
|
+
if display_name is not None:
|
|
99
|
+
self.display_name = display_name
|
|
100
|
+
if error is not None:
|
|
101
|
+
self.error = error
|
|
102
|
+
if message is not None:
|
|
103
|
+
self.message = message
|
|
104
|
+
if name is not None:
|
|
105
|
+
self.name = name
|
|
106
|
+
if parent_pipeline_id is not None:
|
|
107
|
+
self.parent_pipeline_id = parent_pipeline_id
|
|
108
|
+
if schedules is not None:
|
|
109
|
+
self.schedules = schedules
|
|
110
|
+
if shared_filesystem is not None:
|
|
111
|
+
self.shared_filesystem = shared_filesystem
|
|
112
|
+
if state is not None:
|
|
113
|
+
self.state = state
|
|
114
|
+
if statuses is not None:
|
|
115
|
+
self.statuses = statuses
|
|
116
|
+
if steps is not None:
|
|
117
|
+
self.steps = steps
|
|
118
|
+
if updated_at is not None:
|
|
119
|
+
self.updated_at = updated_at
|
|
120
|
+
if user_id is not None:
|
|
121
|
+
self.user_id = user_id
|
|
122
|
+
|
|
123
|
+
@property
|
|
124
|
+
def cluster_id(self) -> 'str':
|
|
125
|
+
"""Gets the cluster_id of this PipelinesIdBody. # noqa: E501
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
:return: The cluster_id of this PipelinesIdBody. # noqa: E501
|
|
129
|
+
:rtype: str
|
|
130
|
+
"""
|
|
131
|
+
return self._cluster_id
|
|
132
|
+
|
|
133
|
+
@cluster_id.setter
|
|
134
|
+
def cluster_id(self, cluster_id: 'str'):
|
|
135
|
+
"""Sets the cluster_id of this PipelinesIdBody.
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
:param cluster_id: The cluster_id of this PipelinesIdBody. # noqa: E501
|
|
139
|
+
:type: str
|
|
140
|
+
"""
|
|
141
|
+
|
|
142
|
+
self._cluster_id = cluster_id
|
|
143
|
+
|
|
144
|
+
@property
|
|
145
|
+
def created_at(self) -> 'datetime':
|
|
146
|
+
"""Gets the created_at of this PipelinesIdBody. # noqa: E501
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
:return: The created_at of this PipelinesIdBody. # noqa: E501
|
|
150
|
+
:rtype: datetime
|
|
151
|
+
"""
|
|
152
|
+
return self._created_at
|
|
153
|
+
|
|
154
|
+
@created_at.setter
|
|
155
|
+
def created_at(self, created_at: 'datetime'):
|
|
156
|
+
"""Sets the created_at of this PipelinesIdBody.
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
:param created_at: The created_at of this PipelinesIdBody. # noqa: E501
|
|
160
|
+
:type: datetime
|
|
161
|
+
"""
|
|
162
|
+
|
|
163
|
+
self._created_at = created_at
|
|
164
|
+
|
|
165
|
+
@property
|
|
166
|
+
def display_name(self) -> 'str':
|
|
167
|
+
"""Gets the display_name of this PipelinesIdBody. # noqa: E501
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
:return: The display_name of this PipelinesIdBody. # noqa: E501
|
|
171
|
+
:rtype: str
|
|
172
|
+
"""
|
|
173
|
+
return self._display_name
|
|
174
|
+
|
|
175
|
+
@display_name.setter
|
|
176
|
+
def display_name(self, display_name: 'str'):
|
|
177
|
+
"""Sets the display_name of this PipelinesIdBody.
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
:param display_name: The display_name of this PipelinesIdBody. # noqa: E501
|
|
181
|
+
:type: str
|
|
182
|
+
"""
|
|
183
|
+
|
|
184
|
+
self._display_name = display_name
|
|
185
|
+
|
|
186
|
+
@property
|
|
187
|
+
def error(self) -> 'str':
|
|
188
|
+
"""Gets the error of this PipelinesIdBody. # noqa: E501
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
:return: The error of this PipelinesIdBody. # noqa: E501
|
|
192
|
+
:rtype: str
|
|
193
|
+
"""
|
|
194
|
+
return self._error
|
|
195
|
+
|
|
196
|
+
@error.setter
|
|
197
|
+
def error(self, error: 'str'):
|
|
198
|
+
"""Sets the error of this PipelinesIdBody.
|
|
199
|
+
|
|
200
|
+
|
|
201
|
+
:param error: The error of this PipelinesIdBody. # noqa: E501
|
|
202
|
+
:type: str
|
|
203
|
+
"""
|
|
204
|
+
|
|
205
|
+
self._error = error
|
|
206
|
+
|
|
207
|
+
@property
|
|
208
|
+
def message(self) -> 'str':
|
|
209
|
+
"""Gets the message of this PipelinesIdBody. # noqa: E501
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
:return: The message of this PipelinesIdBody. # noqa: E501
|
|
213
|
+
:rtype: str
|
|
214
|
+
"""
|
|
215
|
+
return self._message
|
|
216
|
+
|
|
217
|
+
@message.setter
|
|
218
|
+
def message(self, message: 'str'):
|
|
219
|
+
"""Sets the message of this PipelinesIdBody.
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
:param message: The message of this PipelinesIdBody. # noqa: E501
|
|
223
|
+
:type: str
|
|
224
|
+
"""
|
|
225
|
+
|
|
226
|
+
self._message = message
|
|
227
|
+
|
|
228
|
+
@property
|
|
229
|
+
def name(self) -> 'str':
|
|
230
|
+
"""Gets the name of this PipelinesIdBody. # noqa: E501
|
|
231
|
+
|
|
232
|
+
|
|
233
|
+
:return: The name of this PipelinesIdBody. # noqa: E501
|
|
234
|
+
:rtype: str
|
|
235
|
+
"""
|
|
236
|
+
return self._name
|
|
237
|
+
|
|
238
|
+
@name.setter
|
|
239
|
+
def name(self, name: 'str'):
|
|
240
|
+
"""Sets the name of this PipelinesIdBody.
|
|
241
|
+
|
|
242
|
+
|
|
243
|
+
:param name: The name of this PipelinesIdBody. # noqa: E501
|
|
244
|
+
:type: str
|
|
245
|
+
"""
|
|
246
|
+
|
|
247
|
+
self._name = name
|
|
248
|
+
|
|
249
|
+
@property
|
|
250
|
+
def parent_pipeline_id(self) -> 'str':
|
|
251
|
+
"""Gets the parent_pipeline_id of this PipelinesIdBody. # noqa: E501
|
|
252
|
+
|
|
253
|
+
|
|
254
|
+
:return: The parent_pipeline_id of this PipelinesIdBody. # noqa: E501
|
|
255
|
+
:rtype: str
|
|
256
|
+
"""
|
|
257
|
+
return self._parent_pipeline_id
|
|
258
|
+
|
|
259
|
+
@parent_pipeline_id.setter
|
|
260
|
+
def parent_pipeline_id(self, parent_pipeline_id: 'str'):
|
|
261
|
+
"""Sets the parent_pipeline_id of this PipelinesIdBody.
|
|
262
|
+
|
|
263
|
+
|
|
264
|
+
:param parent_pipeline_id: The parent_pipeline_id of this PipelinesIdBody. # noqa: E501
|
|
265
|
+
:type: str
|
|
266
|
+
"""
|
|
267
|
+
|
|
268
|
+
self._parent_pipeline_id = parent_pipeline_id
|
|
269
|
+
|
|
270
|
+
@property
|
|
271
|
+
def schedules(self) -> 'list[V1PipelineSchedule]':
|
|
272
|
+
"""Gets the schedules of this PipelinesIdBody. # noqa: E501
|
|
273
|
+
|
|
274
|
+
|
|
275
|
+
:return: The schedules of this PipelinesIdBody. # noqa: E501
|
|
276
|
+
:rtype: list[V1PipelineSchedule]
|
|
277
|
+
"""
|
|
278
|
+
return self._schedules
|
|
279
|
+
|
|
280
|
+
@schedules.setter
|
|
281
|
+
def schedules(self, schedules: 'list[V1PipelineSchedule]'):
|
|
282
|
+
"""Sets the schedules of this PipelinesIdBody.
|
|
283
|
+
|
|
284
|
+
|
|
285
|
+
:param schedules: The schedules of this PipelinesIdBody. # noqa: E501
|
|
286
|
+
:type: list[V1PipelineSchedule]
|
|
287
|
+
"""
|
|
288
|
+
|
|
289
|
+
self._schedules = schedules
|
|
290
|
+
|
|
291
|
+
@property
|
|
292
|
+
def shared_filesystem(self) -> 'V1SharedFilesystem':
|
|
293
|
+
"""Gets the shared_filesystem of this PipelinesIdBody. # noqa: E501
|
|
294
|
+
|
|
295
|
+
|
|
296
|
+
:return: The shared_filesystem of this PipelinesIdBody. # noqa: E501
|
|
297
|
+
:rtype: V1SharedFilesystem
|
|
298
|
+
"""
|
|
299
|
+
return self._shared_filesystem
|
|
300
|
+
|
|
301
|
+
@shared_filesystem.setter
|
|
302
|
+
def shared_filesystem(self, shared_filesystem: 'V1SharedFilesystem'):
|
|
303
|
+
"""Sets the shared_filesystem of this PipelinesIdBody.
|
|
304
|
+
|
|
305
|
+
|
|
306
|
+
:param shared_filesystem: The shared_filesystem of this PipelinesIdBody. # noqa: E501
|
|
307
|
+
:type: V1SharedFilesystem
|
|
308
|
+
"""
|
|
309
|
+
|
|
310
|
+
self._shared_filesystem = shared_filesystem
|
|
311
|
+
|
|
312
|
+
@property
|
|
313
|
+
def state(self) -> 'str':
|
|
314
|
+
"""Gets the state of this PipelinesIdBody. # noqa: E501
|
|
315
|
+
|
|
316
|
+
|
|
317
|
+
:return: The state of this PipelinesIdBody. # noqa: E501
|
|
318
|
+
:rtype: str
|
|
319
|
+
"""
|
|
320
|
+
return self._state
|
|
321
|
+
|
|
322
|
+
@state.setter
|
|
323
|
+
def state(self, state: 'str'):
|
|
324
|
+
"""Sets the state of this PipelinesIdBody.
|
|
325
|
+
|
|
326
|
+
|
|
327
|
+
:param state: The state of this PipelinesIdBody. # noqa: E501
|
|
328
|
+
:type: str
|
|
329
|
+
"""
|
|
330
|
+
|
|
331
|
+
self._state = state
|
|
332
|
+
|
|
333
|
+
@property
|
|
334
|
+
def statuses(self) -> 'list[V1PipelineStepStatus]':
|
|
335
|
+
"""Gets the statuses of this PipelinesIdBody. # noqa: E501
|
|
336
|
+
|
|
337
|
+
|
|
338
|
+
:return: The statuses of this PipelinesIdBody. # noqa: E501
|
|
339
|
+
:rtype: list[V1PipelineStepStatus]
|
|
340
|
+
"""
|
|
341
|
+
return self._statuses
|
|
342
|
+
|
|
343
|
+
@statuses.setter
|
|
344
|
+
def statuses(self, statuses: 'list[V1PipelineStepStatus]'):
|
|
345
|
+
"""Sets the statuses of this PipelinesIdBody.
|
|
346
|
+
|
|
347
|
+
|
|
348
|
+
:param statuses: The statuses of this PipelinesIdBody. # noqa: E501
|
|
349
|
+
:type: list[V1PipelineStepStatus]
|
|
350
|
+
"""
|
|
351
|
+
|
|
352
|
+
self._statuses = statuses
|
|
353
|
+
|
|
354
|
+
@property
|
|
355
|
+
def steps(self) -> 'list[V1PipelineStep]':
|
|
356
|
+
"""Gets the steps of this PipelinesIdBody. # noqa: E501
|
|
357
|
+
|
|
358
|
+
|
|
359
|
+
:return: The steps of this PipelinesIdBody. # noqa: E501
|
|
360
|
+
:rtype: list[V1PipelineStep]
|
|
361
|
+
"""
|
|
362
|
+
return self._steps
|
|
363
|
+
|
|
364
|
+
@steps.setter
|
|
365
|
+
def steps(self, steps: 'list[V1PipelineStep]'):
|
|
366
|
+
"""Sets the steps of this PipelinesIdBody.
|
|
367
|
+
|
|
368
|
+
|
|
369
|
+
:param steps: The steps of this PipelinesIdBody. # noqa: E501
|
|
370
|
+
:type: list[V1PipelineStep]
|
|
371
|
+
"""
|
|
372
|
+
|
|
373
|
+
self._steps = steps
|
|
374
|
+
|
|
375
|
+
@property
|
|
376
|
+
def updated_at(self) -> 'datetime':
|
|
377
|
+
"""Gets the updated_at of this PipelinesIdBody. # noqa: E501
|
|
378
|
+
|
|
379
|
+
|
|
380
|
+
:return: The updated_at of this PipelinesIdBody. # noqa: E501
|
|
381
|
+
:rtype: datetime
|
|
382
|
+
"""
|
|
383
|
+
return self._updated_at
|
|
384
|
+
|
|
385
|
+
@updated_at.setter
|
|
386
|
+
def updated_at(self, updated_at: 'datetime'):
|
|
387
|
+
"""Sets the updated_at of this PipelinesIdBody.
|
|
388
|
+
|
|
389
|
+
|
|
390
|
+
:param updated_at: The updated_at of this PipelinesIdBody. # noqa: E501
|
|
391
|
+
:type: datetime
|
|
392
|
+
"""
|
|
393
|
+
|
|
394
|
+
self._updated_at = updated_at
|
|
395
|
+
|
|
396
|
+
@property
|
|
397
|
+
def user_id(self) -> 'str':
|
|
398
|
+
"""Gets the user_id of this PipelinesIdBody. # noqa: E501
|
|
399
|
+
|
|
400
|
+
|
|
401
|
+
:return: The user_id of this PipelinesIdBody. # noqa: E501
|
|
402
|
+
:rtype: str
|
|
403
|
+
"""
|
|
404
|
+
return self._user_id
|
|
405
|
+
|
|
406
|
+
@user_id.setter
|
|
407
|
+
def user_id(self, user_id: 'str'):
|
|
408
|
+
"""Sets the user_id of this PipelinesIdBody.
|
|
409
|
+
|
|
410
|
+
|
|
411
|
+
:param user_id: The user_id of this PipelinesIdBody. # noqa: E501
|
|
412
|
+
:type: str
|
|
413
|
+
"""
|
|
414
|
+
|
|
415
|
+
self._user_id = user_id
|
|
416
|
+
|
|
417
|
+
def to_dict(self) -> dict:
|
|
418
|
+
"""Returns the model properties as a dict"""
|
|
419
|
+
result = {}
|
|
420
|
+
|
|
421
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
422
|
+
value = getattr(self, attr)
|
|
423
|
+
if isinstance(value, list):
|
|
424
|
+
result[attr] = list(map(
|
|
425
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
426
|
+
value
|
|
427
|
+
))
|
|
428
|
+
elif hasattr(value, "to_dict"):
|
|
429
|
+
result[attr] = value.to_dict()
|
|
430
|
+
elif isinstance(value, dict):
|
|
431
|
+
result[attr] = dict(map(
|
|
432
|
+
lambda item: (item[0], item[1].to_dict())
|
|
433
|
+
if hasattr(item[1], "to_dict") else item,
|
|
434
|
+
value.items()
|
|
435
|
+
))
|
|
436
|
+
else:
|
|
437
|
+
result[attr] = value
|
|
438
|
+
if issubclass(PipelinesIdBody, dict):
|
|
439
|
+
for key, value in self.items():
|
|
440
|
+
result[key] = value
|
|
441
|
+
|
|
442
|
+
return result
|
|
443
|
+
|
|
444
|
+
def to_str(self) -> str:
|
|
445
|
+
"""Returns the string representation of the model"""
|
|
446
|
+
return pprint.pformat(self.to_dict())
|
|
447
|
+
|
|
448
|
+
def __repr__(self) -> str:
|
|
449
|
+
"""For `print` and `pprint`"""
|
|
450
|
+
return self.to_str()
|
|
451
|
+
|
|
452
|
+
def __eq__(self, other: 'PipelinesIdBody') -> bool:
|
|
453
|
+
"""Returns true if both objects are equal"""
|
|
454
|
+
if not isinstance(other, PipelinesIdBody):
|
|
455
|
+
return False
|
|
456
|
+
|
|
457
|
+
return self.__dict__ == other.__dict__
|
|
458
|
+
|
|
459
|
+
def __ne__(self, other: 'PipelinesIdBody') -> bool:
|
|
460
|
+
"""Returns true if both objects are not equal"""
|
|
461
|
+
return not self == other
|
|
@@ -0,0 +1,227 @@
|
|
|
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 ProjectIdPipelinesBody(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
|
+
'name': 'str',
|
|
46
|
+
'schedules': 'list[V1PipelineSchedule]',
|
|
47
|
+
'shared_filesystem': 'V1SharedFilesystem',
|
|
48
|
+
'steps': 'list[V1PipelineStep]'
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
attribute_map = {
|
|
52
|
+
'cluster_id': 'clusterId',
|
|
53
|
+
'name': 'name',
|
|
54
|
+
'schedules': 'schedules',
|
|
55
|
+
'shared_filesystem': 'sharedFilesystem',
|
|
56
|
+
'steps': 'steps'
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
def __init__(self, cluster_id: 'str' =None, name: 'str' =None, schedules: 'list[V1PipelineSchedule]' =None, shared_filesystem: 'V1SharedFilesystem' =None, steps: 'list[V1PipelineStep]' =None): # noqa: E501
|
|
60
|
+
"""ProjectIdPipelinesBody - a model defined in Swagger""" # noqa: E501
|
|
61
|
+
self._cluster_id = None
|
|
62
|
+
self._name = None
|
|
63
|
+
self._schedules = None
|
|
64
|
+
self._shared_filesystem = None
|
|
65
|
+
self._steps = None
|
|
66
|
+
self.discriminator = None
|
|
67
|
+
if cluster_id is not None:
|
|
68
|
+
self.cluster_id = cluster_id
|
|
69
|
+
if name is not None:
|
|
70
|
+
self.name = name
|
|
71
|
+
if schedules is not None:
|
|
72
|
+
self.schedules = schedules
|
|
73
|
+
if shared_filesystem is not None:
|
|
74
|
+
self.shared_filesystem = shared_filesystem
|
|
75
|
+
if steps is not None:
|
|
76
|
+
self.steps = steps
|
|
77
|
+
|
|
78
|
+
@property
|
|
79
|
+
def cluster_id(self) -> 'str':
|
|
80
|
+
"""Gets the cluster_id of this ProjectIdPipelinesBody. # noqa: E501
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
:return: The cluster_id of this ProjectIdPipelinesBody. # noqa: E501
|
|
84
|
+
:rtype: str
|
|
85
|
+
"""
|
|
86
|
+
return self._cluster_id
|
|
87
|
+
|
|
88
|
+
@cluster_id.setter
|
|
89
|
+
def cluster_id(self, cluster_id: 'str'):
|
|
90
|
+
"""Sets the cluster_id of this ProjectIdPipelinesBody.
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
:param cluster_id: The cluster_id of this ProjectIdPipelinesBody. # noqa: E501
|
|
94
|
+
:type: str
|
|
95
|
+
"""
|
|
96
|
+
|
|
97
|
+
self._cluster_id = cluster_id
|
|
98
|
+
|
|
99
|
+
@property
|
|
100
|
+
def name(self) -> 'str':
|
|
101
|
+
"""Gets the name of this ProjectIdPipelinesBody. # noqa: E501
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
:return: The name of this ProjectIdPipelinesBody. # noqa: E501
|
|
105
|
+
:rtype: str
|
|
106
|
+
"""
|
|
107
|
+
return self._name
|
|
108
|
+
|
|
109
|
+
@name.setter
|
|
110
|
+
def name(self, name: 'str'):
|
|
111
|
+
"""Sets the name of this ProjectIdPipelinesBody.
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
:param name: The name of this ProjectIdPipelinesBody. # noqa: E501
|
|
115
|
+
:type: str
|
|
116
|
+
"""
|
|
117
|
+
|
|
118
|
+
self._name = name
|
|
119
|
+
|
|
120
|
+
@property
|
|
121
|
+
def schedules(self) -> 'list[V1PipelineSchedule]':
|
|
122
|
+
"""Gets the schedules of this ProjectIdPipelinesBody. # noqa: E501
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
:return: The schedules of this ProjectIdPipelinesBody. # noqa: E501
|
|
126
|
+
:rtype: list[V1PipelineSchedule]
|
|
127
|
+
"""
|
|
128
|
+
return self._schedules
|
|
129
|
+
|
|
130
|
+
@schedules.setter
|
|
131
|
+
def schedules(self, schedules: 'list[V1PipelineSchedule]'):
|
|
132
|
+
"""Sets the schedules of this ProjectIdPipelinesBody.
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
:param schedules: The schedules of this ProjectIdPipelinesBody. # noqa: E501
|
|
136
|
+
:type: list[V1PipelineSchedule]
|
|
137
|
+
"""
|
|
138
|
+
|
|
139
|
+
self._schedules = schedules
|
|
140
|
+
|
|
141
|
+
@property
|
|
142
|
+
def shared_filesystem(self) -> 'V1SharedFilesystem':
|
|
143
|
+
"""Gets the shared_filesystem of this ProjectIdPipelinesBody. # noqa: E501
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
:return: The shared_filesystem of this ProjectIdPipelinesBody. # noqa: E501
|
|
147
|
+
:rtype: V1SharedFilesystem
|
|
148
|
+
"""
|
|
149
|
+
return self._shared_filesystem
|
|
150
|
+
|
|
151
|
+
@shared_filesystem.setter
|
|
152
|
+
def shared_filesystem(self, shared_filesystem: 'V1SharedFilesystem'):
|
|
153
|
+
"""Sets the shared_filesystem of this ProjectIdPipelinesBody.
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
:param shared_filesystem: The shared_filesystem of this ProjectIdPipelinesBody. # noqa: E501
|
|
157
|
+
:type: V1SharedFilesystem
|
|
158
|
+
"""
|
|
159
|
+
|
|
160
|
+
self._shared_filesystem = shared_filesystem
|
|
161
|
+
|
|
162
|
+
@property
|
|
163
|
+
def steps(self) -> 'list[V1PipelineStep]':
|
|
164
|
+
"""Gets the steps of this ProjectIdPipelinesBody. # noqa: E501
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
:return: The steps of this ProjectIdPipelinesBody. # noqa: E501
|
|
168
|
+
:rtype: list[V1PipelineStep]
|
|
169
|
+
"""
|
|
170
|
+
return self._steps
|
|
171
|
+
|
|
172
|
+
@steps.setter
|
|
173
|
+
def steps(self, steps: 'list[V1PipelineStep]'):
|
|
174
|
+
"""Sets the steps of this ProjectIdPipelinesBody.
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
:param steps: The steps of this ProjectIdPipelinesBody. # noqa: E501
|
|
178
|
+
:type: list[V1PipelineStep]
|
|
179
|
+
"""
|
|
180
|
+
|
|
181
|
+
self._steps = steps
|
|
182
|
+
|
|
183
|
+
def to_dict(self) -> dict:
|
|
184
|
+
"""Returns the model properties as a dict"""
|
|
185
|
+
result = {}
|
|
186
|
+
|
|
187
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
188
|
+
value = getattr(self, attr)
|
|
189
|
+
if isinstance(value, list):
|
|
190
|
+
result[attr] = list(map(
|
|
191
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
192
|
+
value
|
|
193
|
+
))
|
|
194
|
+
elif hasattr(value, "to_dict"):
|
|
195
|
+
result[attr] = value.to_dict()
|
|
196
|
+
elif isinstance(value, dict):
|
|
197
|
+
result[attr] = dict(map(
|
|
198
|
+
lambda item: (item[0], item[1].to_dict())
|
|
199
|
+
if hasattr(item[1], "to_dict") else item,
|
|
200
|
+
value.items()
|
|
201
|
+
))
|
|
202
|
+
else:
|
|
203
|
+
result[attr] = value
|
|
204
|
+
if issubclass(ProjectIdPipelinesBody, dict):
|
|
205
|
+
for key, value in self.items():
|
|
206
|
+
result[key] = value
|
|
207
|
+
|
|
208
|
+
return result
|
|
209
|
+
|
|
210
|
+
def to_str(self) -> str:
|
|
211
|
+
"""Returns the string representation of the model"""
|
|
212
|
+
return pprint.pformat(self.to_dict())
|
|
213
|
+
|
|
214
|
+
def __repr__(self) -> str:
|
|
215
|
+
"""For `print` and `pprint`"""
|
|
216
|
+
return self.to_str()
|
|
217
|
+
|
|
218
|
+
def __eq__(self, other: 'ProjectIdPipelinesBody') -> bool:
|
|
219
|
+
"""Returns true if both objects are equal"""
|
|
220
|
+
if not isinstance(other, ProjectIdPipelinesBody):
|
|
221
|
+
return False
|
|
222
|
+
|
|
223
|
+
return self.__dict__ == other.__dict__
|
|
224
|
+
|
|
225
|
+
def __ne__(self, other: 'ProjectIdPipelinesBody') -> bool:
|
|
226
|
+
"""Returns true if both objects are not equal"""
|
|
227
|
+
return not self == other
|