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,253 @@
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 V1PipelineStep(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
+ 'deployment': 'V1CreateDeploymentRequest',
45
+ 'job': 'V1CreateJobRequest',
46
+ 'mmt': 'V1CreateMultiMachineJobRequest',
47
+ 'name': 'str',
48
+ 'type': 'V1PipelineStepType',
49
+ 'wait_for': 'list[str]'
50
+ }
51
+
52
+ attribute_map = {
53
+ 'deployment': 'deployment',
54
+ 'job': 'job',
55
+ 'mmt': 'mmt',
56
+ 'name': 'name',
57
+ 'type': 'type',
58
+ 'wait_for': 'waitFor'
59
+ }
60
+
61
+ def __init__(self, deployment: 'V1CreateDeploymentRequest' =None, job: 'V1CreateJobRequest' =None, mmt: 'V1CreateMultiMachineJobRequest' =None, name: 'str' =None, type: 'V1PipelineStepType' =None, wait_for: 'list[str]' =None): # noqa: E501
62
+ """V1PipelineStep - a model defined in Swagger""" # noqa: E501
63
+ self._deployment = None
64
+ self._job = None
65
+ self._mmt = None
66
+ self._name = None
67
+ self._type = None
68
+ self._wait_for = None
69
+ self.discriminator = None
70
+ if deployment is not None:
71
+ self.deployment = deployment
72
+ if job is not None:
73
+ self.job = job
74
+ if mmt is not None:
75
+ self.mmt = mmt
76
+ if name is not None:
77
+ self.name = name
78
+ if type is not None:
79
+ self.type = type
80
+ if wait_for is not None:
81
+ self.wait_for = wait_for
82
+
83
+ @property
84
+ def deployment(self) -> 'V1CreateDeploymentRequest':
85
+ """Gets the deployment of this V1PipelineStep. # noqa: E501
86
+
87
+
88
+ :return: The deployment of this V1PipelineStep. # noqa: E501
89
+ :rtype: V1CreateDeploymentRequest
90
+ """
91
+ return self._deployment
92
+
93
+ @deployment.setter
94
+ def deployment(self, deployment: 'V1CreateDeploymentRequest'):
95
+ """Sets the deployment of this V1PipelineStep.
96
+
97
+
98
+ :param deployment: The deployment of this V1PipelineStep. # noqa: E501
99
+ :type: V1CreateDeploymentRequest
100
+ """
101
+
102
+ self._deployment = deployment
103
+
104
+ @property
105
+ def job(self) -> 'V1CreateJobRequest':
106
+ """Gets the job of this V1PipelineStep. # noqa: E501
107
+
108
+
109
+ :return: The job of this V1PipelineStep. # noqa: E501
110
+ :rtype: V1CreateJobRequest
111
+ """
112
+ return self._job
113
+
114
+ @job.setter
115
+ def job(self, job: 'V1CreateJobRequest'):
116
+ """Sets the job of this V1PipelineStep.
117
+
118
+
119
+ :param job: The job of this V1PipelineStep. # noqa: E501
120
+ :type: V1CreateJobRequest
121
+ """
122
+
123
+ self._job = job
124
+
125
+ @property
126
+ def mmt(self) -> 'V1CreateMultiMachineJobRequest':
127
+ """Gets the mmt of this V1PipelineStep. # noqa: E501
128
+
129
+
130
+ :return: The mmt of this V1PipelineStep. # noqa: E501
131
+ :rtype: V1CreateMultiMachineJobRequest
132
+ """
133
+ return self._mmt
134
+
135
+ @mmt.setter
136
+ def mmt(self, mmt: 'V1CreateMultiMachineJobRequest'):
137
+ """Sets the mmt of this V1PipelineStep.
138
+
139
+
140
+ :param mmt: The mmt of this V1PipelineStep. # noqa: E501
141
+ :type: V1CreateMultiMachineJobRequest
142
+ """
143
+
144
+ self._mmt = mmt
145
+
146
+ @property
147
+ def name(self) -> 'str':
148
+ """Gets the name of this V1PipelineStep. # noqa: E501
149
+
150
+
151
+ :return: The name of this V1PipelineStep. # noqa: E501
152
+ :rtype: str
153
+ """
154
+ return self._name
155
+
156
+ @name.setter
157
+ def name(self, name: 'str'):
158
+ """Sets the name of this V1PipelineStep.
159
+
160
+
161
+ :param name: The name of this V1PipelineStep. # noqa: E501
162
+ :type: str
163
+ """
164
+
165
+ self._name = name
166
+
167
+ @property
168
+ def type(self) -> 'V1PipelineStepType':
169
+ """Gets the type of this V1PipelineStep. # noqa: E501
170
+
171
+
172
+ :return: The type of this V1PipelineStep. # noqa: E501
173
+ :rtype: V1PipelineStepType
174
+ """
175
+ return self._type
176
+
177
+ @type.setter
178
+ def type(self, type: 'V1PipelineStepType'):
179
+ """Sets the type of this V1PipelineStep.
180
+
181
+
182
+ :param type: The type of this V1PipelineStep. # noqa: E501
183
+ :type: V1PipelineStepType
184
+ """
185
+
186
+ self._type = type
187
+
188
+ @property
189
+ def wait_for(self) -> 'list[str]':
190
+ """Gets the wait_for of this V1PipelineStep. # noqa: E501
191
+
192
+
193
+ :return: The wait_for of this V1PipelineStep. # noqa: E501
194
+ :rtype: list[str]
195
+ """
196
+ return self._wait_for
197
+
198
+ @wait_for.setter
199
+ def wait_for(self, wait_for: 'list[str]'):
200
+ """Sets the wait_for of this V1PipelineStep.
201
+
202
+
203
+ :param wait_for: The wait_for of this V1PipelineStep. # noqa: E501
204
+ :type: list[str]
205
+ """
206
+
207
+ self._wait_for = wait_for
208
+
209
+ def to_dict(self) -> dict:
210
+ """Returns the model properties as a dict"""
211
+ result = {}
212
+
213
+ for attr, _ in six.iteritems(self.swagger_types):
214
+ value = getattr(self, attr)
215
+ if isinstance(value, list):
216
+ result[attr] = list(map(
217
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
218
+ value
219
+ ))
220
+ elif hasattr(value, "to_dict"):
221
+ result[attr] = value.to_dict()
222
+ elif isinstance(value, dict):
223
+ result[attr] = dict(map(
224
+ lambda item: (item[0], item[1].to_dict())
225
+ if hasattr(item[1], "to_dict") else item,
226
+ value.items()
227
+ ))
228
+ else:
229
+ result[attr] = value
230
+ if issubclass(V1PipelineStep, dict):
231
+ for key, value in self.items():
232
+ result[key] = value
233
+
234
+ return result
235
+
236
+ def to_str(self) -> str:
237
+ """Returns the string representation of the model"""
238
+ return pprint.pformat(self.to_dict())
239
+
240
+ def __repr__(self) -> str:
241
+ """For `print` and `pprint`"""
242
+ return self.to_str()
243
+
244
+ def __eq__(self, other: 'V1PipelineStep') -> bool:
245
+ """Returns true if both objects are equal"""
246
+ if not isinstance(other, V1PipelineStep):
247
+ return False
248
+
249
+ return self.__dict__ == other.__dict__
250
+
251
+ def __ne__(self, other: 'V1PipelineStep') -> bool:
252
+ """Returns true if both objects are not equal"""
253
+ return not self == other
@@ -0,0 +1,331 @@
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 V1PipelineStepStatus(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
+ 'error': 'str',
45
+ 'message': 'str',
46
+ 'name': 'str',
47
+ 'resource_id': 'str',
48
+ 'resource_name': 'str',
49
+ 'started_at': 'datetime',
50
+ 'state': 'str',
51
+ 'stopped_at': 'datetime',
52
+ 'type': 'V1PipelineStepType'
53
+ }
54
+
55
+ attribute_map = {
56
+ 'error': 'error',
57
+ 'message': 'message',
58
+ 'name': 'name',
59
+ 'resource_id': 'resourceId',
60
+ 'resource_name': 'resourceName',
61
+ 'started_at': 'startedAt',
62
+ 'state': 'state',
63
+ 'stopped_at': 'stoppedAt',
64
+ 'type': 'type'
65
+ }
66
+
67
+ def __init__(self, error: 'str' =None, message: 'str' =None, name: 'str' =None, resource_id: 'str' =None, resource_name: 'str' =None, started_at: 'datetime' =None, state: 'str' =None, stopped_at: 'datetime' =None, type: 'V1PipelineStepType' =None): # noqa: E501
68
+ """V1PipelineStepStatus - a model defined in Swagger""" # noqa: E501
69
+ self._error = None
70
+ self._message = None
71
+ self._name = None
72
+ self._resource_id = None
73
+ self._resource_name = None
74
+ self._started_at = None
75
+ self._state = None
76
+ self._stopped_at = None
77
+ self._type = None
78
+ self.discriminator = None
79
+ if error is not None:
80
+ self.error = error
81
+ if message is not None:
82
+ self.message = message
83
+ if name is not None:
84
+ self.name = name
85
+ if resource_id is not None:
86
+ self.resource_id = resource_id
87
+ if resource_name is not None:
88
+ self.resource_name = resource_name
89
+ if started_at is not None:
90
+ self.started_at = started_at
91
+ if state is not None:
92
+ self.state = state
93
+ if stopped_at is not None:
94
+ self.stopped_at = stopped_at
95
+ if type is not None:
96
+ self.type = type
97
+
98
+ @property
99
+ def error(self) -> 'str':
100
+ """Gets the error of this V1PipelineStepStatus. # noqa: E501
101
+
102
+
103
+ :return: The error of this V1PipelineStepStatus. # noqa: E501
104
+ :rtype: str
105
+ """
106
+ return self._error
107
+
108
+ @error.setter
109
+ def error(self, error: 'str'):
110
+ """Sets the error of this V1PipelineStepStatus.
111
+
112
+
113
+ :param error: The error of this V1PipelineStepStatus. # noqa: E501
114
+ :type: str
115
+ """
116
+
117
+ self._error = error
118
+
119
+ @property
120
+ def message(self) -> 'str':
121
+ """Gets the message of this V1PipelineStepStatus. # noqa: E501
122
+
123
+
124
+ :return: The message of this V1PipelineStepStatus. # noqa: E501
125
+ :rtype: str
126
+ """
127
+ return self._message
128
+
129
+ @message.setter
130
+ def message(self, message: 'str'):
131
+ """Sets the message of this V1PipelineStepStatus.
132
+
133
+
134
+ :param message: The message of this V1PipelineStepStatus. # noqa: E501
135
+ :type: str
136
+ """
137
+
138
+ self._message = message
139
+
140
+ @property
141
+ def name(self) -> 'str':
142
+ """Gets the name of this V1PipelineStepStatus. # noqa: E501
143
+
144
+
145
+ :return: The name of this V1PipelineStepStatus. # noqa: E501
146
+ :rtype: str
147
+ """
148
+ return self._name
149
+
150
+ @name.setter
151
+ def name(self, name: 'str'):
152
+ """Sets the name of this V1PipelineStepStatus.
153
+
154
+
155
+ :param name: The name of this V1PipelineStepStatus. # noqa: E501
156
+ :type: str
157
+ """
158
+
159
+ self._name = name
160
+
161
+ @property
162
+ def resource_id(self) -> 'str':
163
+ """Gets the resource_id of this V1PipelineStepStatus. # noqa: E501
164
+
165
+
166
+ :return: The resource_id of this V1PipelineStepStatus. # noqa: E501
167
+ :rtype: str
168
+ """
169
+ return self._resource_id
170
+
171
+ @resource_id.setter
172
+ def resource_id(self, resource_id: 'str'):
173
+ """Sets the resource_id of this V1PipelineStepStatus.
174
+
175
+
176
+ :param resource_id: The resource_id of this V1PipelineStepStatus. # noqa: E501
177
+ :type: str
178
+ """
179
+
180
+ self._resource_id = resource_id
181
+
182
+ @property
183
+ def resource_name(self) -> 'str':
184
+ """Gets the resource_name of this V1PipelineStepStatus. # noqa: E501
185
+
186
+
187
+ :return: The resource_name of this V1PipelineStepStatus. # noqa: E501
188
+ :rtype: str
189
+ """
190
+ return self._resource_name
191
+
192
+ @resource_name.setter
193
+ def resource_name(self, resource_name: 'str'):
194
+ """Sets the resource_name of this V1PipelineStepStatus.
195
+
196
+
197
+ :param resource_name: The resource_name of this V1PipelineStepStatus. # noqa: E501
198
+ :type: str
199
+ """
200
+
201
+ self._resource_name = resource_name
202
+
203
+ @property
204
+ def started_at(self) -> 'datetime':
205
+ """Gets the started_at of this V1PipelineStepStatus. # noqa: E501
206
+
207
+
208
+ :return: The started_at of this V1PipelineStepStatus. # noqa: E501
209
+ :rtype: datetime
210
+ """
211
+ return self._started_at
212
+
213
+ @started_at.setter
214
+ def started_at(self, started_at: 'datetime'):
215
+ """Sets the started_at of this V1PipelineStepStatus.
216
+
217
+
218
+ :param started_at: The started_at of this V1PipelineStepStatus. # noqa: E501
219
+ :type: datetime
220
+ """
221
+
222
+ self._started_at = started_at
223
+
224
+ @property
225
+ def state(self) -> 'str':
226
+ """Gets the state of this V1PipelineStepStatus. # noqa: E501
227
+
228
+
229
+ :return: The state of this V1PipelineStepStatus. # noqa: E501
230
+ :rtype: str
231
+ """
232
+ return self._state
233
+
234
+ @state.setter
235
+ def state(self, state: 'str'):
236
+ """Sets the state of this V1PipelineStepStatus.
237
+
238
+
239
+ :param state: The state of this V1PipelineStepStatus. # noqa: E501
240
+ :type: str
241
+ """
242
+
243
+ self._state = state
244
+
245
+ @property
246
+ def stopped_at(self) -> 'datetime':
247
+ """Gets the stopped_at of this V1PipelineStepStatus. # noqa: E501
248
+
249
+
250
+ :return: The stopped_at of this V1PipelineStepStatus. # noqa: E501
251
+ :rtype: datetime
252
+ """
253
+ return self._stopped_at
254
+
255
+ @stopped_at.setter
256
+ def stopped_at(self, stopped_at: 'datetime'):
257
+ """Sets the stopped_at of this V1PipelineStepStatus.
258
+
259
+
260
+ :param stopped_at: The stopped_at of this V1PipelineStepStatus. # noqa: E501
261
+ :type: datetime
262
+ """
263
+
264
+ self._stopped_at = stopped_at
265
+
266
+ @property
267
+ def type(self) -> 'V1PipelineStepType':
268
+ """Gets the type of this V1PipelineStepStatus. # noqa: E501
269
+
270
+
271
+ :return: The type of this V1PipelineStepStatus. # noqa: E501
272
+ :rtype: V1PipelineStepType
273
+ """
274
+ return self._type
275
+
276
+ @type.setter
277
+ def type(self, type: 'V1PipelineStepType'):
278
+ """Sets the type of this V1PipelineStepStatus.
279
+
280
+
281
+ :param type: The type of this V1PipelineStepStatus. # noqa: E501
282
+ :type: V1PipelineStepType
283
+ """
284
+
285
+ self._type = type
286
+
287
+ def to_dict(self) -> dict:
288
+ """Returns the model properties as a dict"""
289
+ result = {}
290
+
291
+ for attr, _ in six.iteritems(self.swagger_types):
292
+ value = getattr(self, attr)
293
+ if isinstance(value, list):
294
+ result[attr] = list(map(
295
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
296
+ value
297
+ ))
298
+ elif hasattr(value, "to_dict"):
299
+ result[attr] = value.to_dict()
300
+ elif isinstance(value, dict):
301
+ result[attr] = dict(map(
302
+ lambda item: (item[0], item[1].to_dict())
303
+ if hasattr(item[1], "to_dict") else item,
304
+ value.items()
305
+ ))
306
+ else:
307
+ result[attr] = value
308
+ if issubclass(V1PipelineStepStatus, dict):
309
+ for key, value in self.items():
310
+ result[key] = value
311
+
312
+ return result
313
+
314
+ def to_str(self) -> str:
315
+ """Returns the string representation of the model"""
316
+ return pprint.pformat(self.to_dict())
317
+
318
+ def __repr__(self) -> str:
319
+ """For `print` and `pprint`"""
320
+ return self.to_str()
321
+
322
+ def __eq__(self, other: 'V1PipelineStepStatus') -> bool:
323
+ """Returns true if both objects are equal"""
324
+ if not isinstance(other, V1PipelineStepStatus):
325
+ return False
326
+
327
+ return self.__dict__ == other.__dict__
328
+
329
+ def __ne__(self, other: 'V1PipelineStepStatus') -> bool:
330
+ """Returns true if both objects are not equal"""
331
+ return not self == other
@@ -0,0 +1,104 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ external/v1/auth_service.proto
5
+
6
+ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
7
+
8
+ OpenAPI spec version: version not set
9
+
10
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
11
+
12
+ NOTE
13
+ ----
14
+ standard swagger-codegen-cli for this python client has been modified
15
+ by custom templates. The purpose of these templates is to include
16
+ typing information in the API and Model code. Please refer to the
17
+ main grid repository for more info
18
+ """
19
+
20
+ import pprint
21
+ import re # noqa: F401
22
+
23
+ from typing import TYPE_CHECKING
24
+
25
+ import six
26
+
27
+ if TYPE_CHECKING:
28
+ from datetime import datetime
29
+ from lightning_sdk.lightning_cloud.openapi.models import *
30
+
31
+ class V1PipelineStepType(object):
32
+ """NOTE: This class is auto generated by the swagger code generator program.
33
+
34
+ Do not edit the class manually.
35
+ """
36
+
37
+ """
38
+ allowed enum values
39
+ """
40
+ JOB = "PIPELINE_STEP_TYPE_JOB"
41
+ DEPLOYMENT = "PIPELINE_STEP_TYPE_DEPLOYMENT"
42
+ MMT = "PIPELINE_STEP_TYPE_MMT"
43
+ """
44
+ Attributes:
45
+ swagger_types (dict): The key is attribute name
46
+ and the value is attribute type.
47
+ attribute_map (dict): The key is attribute name
48
+ and the value is json key in definition.
49
+ """
50
+ swagger_types = {
51
+ }
52
+
53
+ attribute_map = {
54
+ }
55
+
56
+ def __init__(self): # noqa: E501
57
+ """V1PipelineStepType - a model defined in Swagger""" # noqa: E501
58
+ self.discriminator = None
59
+
60
+ def to_dict(self) -> dict:
61
+ """Returns the model properties as a dict"""
62
+ result = {}
63
+
64
+ for attr, _ in six.iteritems(self.swagger_types):
65
+ value = getattr(self, attr)
66
+ if isinstance(value, list):
67
+ result[attr] = list(map(
68
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
69
+ value
70
+ ))
71
+ elif hasattr(value, "to_dict"):
72
+ result[attr] = value.to_dict()
73
+ elif isinstance(value, dict):
74
+ result[attr] = dict(map(
75
+ lambda item: (item[0], item[1].to_dict())
76
+ if hasattr(item[1], "to_dict") else item,
77
+ value.items()
78
+ ))
79
+ else:
80
+ result[attr] = value
81
+ if issubclass(V1PipelineStepType, dict):
82
+ for key, value in self.items():
83
+ result[key] = value
84
+
85
+ return result
86
+
87
+ def to_str(self) -> str:
88
+ """Returns the string representation of the model"""
89
+ return pprint.pformat(self.to_dict())
90
+
91
+ def __repr__(self) -> str:
92
+ """For `print` and `pprint`"""
93
+ return self.to_str()
94
+
95
+ def __eq__(self, other: 'V1PipelineStepType') -> bool:
96
+ """Returns true if both objects are equal"""
97
+ if not isinstance(other, V1PipelineStepType):
98
+ return False
99
+
100
+ return self.__dict__ == other.__dict__
101
+
102
+ def __ne__(self, other: 'V1PipelineStepType') -> bool:
103
+ """Returns true if both objects are not equal"""
104
+ return not self == other