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