lightning-sdk 0.2.22__py3-none-any.whl → 0.2.23__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 (57) hide show
  1. lightning_sdk/__init__.py +1 -1
  2. lightning_sdk/api/license_api.py +2 -2
  3. lightning_sdk/api/llm_api.py +2 -0
  4. lightning_sdk/api/pipeline_api.py +1 -0
  5. lightning_sdk/api/studio_api.py +2 -0
  6. lightning_sdk/cli/entrypoint.py +15 -13
  7. lightning_sdk/cli/start.py +5 -2
  8. lightning_sdk/lightning_cloud/openapi/__init__.py +8 -0
  9. lightning_sdk/lightning_cloud/openapi/api/cloud_space_service_api.py +206 -0
  10. lightning_sdk/lightning_cloud/openapi/api/cluster_service_api.py +97 -0
  11. lightning_sdk/lightning_cloud/openapi/api/pipelines_service_api.py +118 -1
  12. lightning_sdk/lightning_cloud/openapi/configuration.py +1 -1
  13. lightning_sdk/lightning_cloud/openapi/models/__init__.py +8 -0
  14. lightning_sdk/lightning_cloud/openapi/models/assistant_id_conversations_body.py +29 -3
  15. lightning_sdk/lightning_cloud/openapi/models/cloudspace_id_visibility_body.py +123 -0
  16. lightning_sdk/lightning_cloud/openapi/models/create_deployment_request_defines_a_spec_for_the_job_that_allows_for_autoscaling_jobs.py +27 -1
  17. lightning_sdk/lightning_cloud/openapi/models/metricsstream_create_body.py +27 -1
  18. lightning_sdk/lightning_cloud/openapi/models/pipelines_id_body.py +27 -1
  19. lightning_sdk/lightning_cloud/openapi/models/project_id_cloudspaces_body.py +27 -1
  20. lightning_sdk/lightning_cloud/openapi/models/v1_check_cluster_name_availability_request.py +123 -0
  21. lightning_sdk/lightning_cloud/openapi/models/v1_check_cluster_name_availability_response.py +123 -0
  22. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_provider.py +1 -0
  23. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space.py +53 -1
  24. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_session.py +29 -3
  25. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_security_options.py +27 -1
  26. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_spec.py +79 -1
  27. lightning_sdk/lightning_cloud/openapi/models/v1_create_deployment_request.py +27 -1
  28. lightning_sdk/lightning_cloud/openapi/models/v1_external_cluster.py +253 -0
  29. lightning_sdk/lightning_cloud/openapi/models/v1_external_cluster_spec.py +827 -0
  30. lightning_sdk/lightning_cloud/openapi/models/v1_get_user_response.py +27 -1
  31. lightning_sdk/lightning_cloud/openapi/models/v1_instance_overprovisioning_spec.py +29 -1
  32. lightning_sdk/lightning_cloud/openapi/models/v1_lightning_run.py +53 -1
  33. lightning_sdk/lightning_cloud/openapi/models/v1_list_clusters_response.py +6 -6
  34. lightning_sdk/lightning_cloud/openapi/models/v1_list_project_clusters_response.py +6 -6
  35. lightning_sdk/lightning_cloud/openapi/models/v1_lite_published_cloud_space_response.py +513 -0
  36. lightning_sdk/lightning_cloud/openapi/models/v1_metrics_stream.py +27 -1
  37. lightning_sdk/lightning_cloud/openapi/models/v1_pipeline.py +27 -1
  38. lightning_sdk/lightning_cloud/openapi/models/v1_shared_filesystem.py +131 -1
  39. lightning_sdk/lightning_cloud/openapi/models/v1_update_cloud_space_visibility_response.py +97 -0
  40. lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +53 -79
  41. lightning_sdk/lightning_cloud/openapi/models/v1_volume.py +78 -104
  42. lightning_sdk/lightning_cloud/openapi/models/v1_volume_state.py +104 -0
  43. lightning_sdk/pipeline/__init__.py +11 -2
  44. lightning_sdk/pipeline/pipeline.py +38 -13
  45. lightning_sdk/pipeline/printer.py +29 -10
  46. lightning_sdk/pipeline/schedule.py +2 -1
  47. lightning_sdk/pipeline/{types.py → steps.py} +74 -56
  48. lightning_sdk/pipeline/utils.py +39 -2
  49. lightning_sdk/sandbox.py +157 -0
  50. lightning_sdk/services/license.py +12 -6
  51. lightning_sdk/studio.py +7 -1
  52. {lightning_sdk-0.2.22.dist-info → lightning_sdk-0.2.23.dist-info}/METADATA +1 -1
  53. {lightning_sdk-0.2.22.dist-info → lightning_sdk-0.2.23.dist-info}/RECORD +57 -48
  54. {lightning_sdk-0.2.22.dist-info → lightning_sdk-0.2.23.dist-info}/LICENSE +0 -0
  55. {lightning_sdk-0.2.22.dist-info → lightning_sdk-0.2.23.dist-info}/WHEEL +0 -0
  56. {lightning_sdk-0.2.22.dist-info → lightning_sdk-0.2.23.dist-info}/entry_points.txt +0 -0
  57. {lightning_sdk-0.2.22.dist-info → lightning_sdk-0.2.23.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 V1ExternalCluster(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
+ 'created_at': 'datetime',
45
+ 'id': 'str',
46
+ 'name': 'str',
47
+ 'protected': 'bool',
48
+ 'spec': 'V1ExternalClusterSpec',
49
+ 'status': 'V1ClusterStatus'
50
+ }
51
+
52
+ attribute_map = {
53
+ 'created_at': 'createdAt',
54
+ 'id': 'id',
55
+ 'name': 'name',
56
+ 'protected': 'protected',
57
+ 'spec': 'spec',
58
+ 'status': 'status'
59
+ }
60
+
61
+ def __init__(self, created_at: 'datetime' =None, id: 'str' =None, name: 'str' =None, protected: 'bool' =None, spec: 'V1ExternalClusterSpec' =None, status: 'V1ClusterStatus' =None): # noqa: E501
62
+ """V1ExternalCluster - a model defined in Swagger""" # noqa: E501
63
+ self._created_at = None
64
+ self._id = None
65
+ self._name = None
66
+ self._protected = None
67
+ self._spec = None
68
+ self._status = None
69
+ self.discriminator = None
70
+ if created_at is not None:
71
+ self.created_at = created_at
72
+ if id is not None:
73
+ self.id = id
74
+ if name is not None:
75
+ self.name = name
76
+ if protected is not None:
77
+ self.protected = protected
78
+ if spec is not None:
79
+ self.spec = spec
80
+ if status is not None:
81
+ self.status = status
82
+
83
+ @property
84
+ def created_at(self) -> 'datetime':
85
+ """Gets the created_at of this V1ExternalCluster. # noqa: E501
86
+
87
+
88
+ :return: The created_at of this V1ExternalCluster. # noqa: E501
89
+ :rtype: datetime
90
+ """
91
+ return self._created_at
92
+
93
+ @created_at.setter
94
+ def created_at(self, created_at: 'datetime'):
95
+ """Sets the created_at of this V1ExternalCluster.
96
+
97
+
98
+ :param created_at: The created_at of this V1ExternalCluster. # noqa: E501
99
+ :type: datetime
100
+ """
101
+
102
+ self._created_at = created_at
103
+
104
+ @property
105
+ def id(self) -> 'str':
106
+ """Gets the id of this V1ExternalCluster. # noqa: E501
107
+
108
+
109
+ :return: The id of this V1ExternalCluster. # noqa: E501
110
+ :rtype: str
111
+ """
112
+ return self._id
113
+
114
+ @id.setter
115
+ def id(self, id: 'str'):
116
+ """Sets the id of this V1ExternalCluster.
117
+
118
+
119
+ :param id: The id of this V1ExternalCluster. # noqa: E501
120
+ :type: str
121
+ """
122
+
123
+ self._id = id
124
+
125
+ @property
126
+ def name(self) -> 'str':
127
+ """Gets the name of this V1ExternalCluster. # noqa: E501
128
+
129
+
130
+ :return: The name of this V1ExternalCluster. # noqa: E501
131
+ :rtype: str
132
+ """
133
+ return self._name
134
+
135
+ @name.setter
136
+ def name(self, name: 'str'):
137
+ """Sets the name of this V1ExternalCluster.
138
+
139
+
140
+ :param name: The name of this V1ExternalCluster. # noqa: E501
141
+ :type: str
142
+ """
143
+
144
+ self._name = name
145
+
146
+ @property
147
+ def protected(self) -> 'bool':
148
+ """Gets the protected of this V1ExternalCluster. # noqa: E501
149
+
150
+
151
+ :return: The protected of this V1ExternalCluster. # noqa: E501
152
+ :rtype: bool
153
+ """
154
+ return self._protected
155
+
156
+ @protected.setter
157
+ def protected(self, protected: 'bool'):
158
+ """Sets the protected of this V1ExternalCluster.
159
+
160
+
161
+ :param protected: The protected of this V1ExternalCluster. # noqa: E501
162
+ :type: bool
163
+ """
164
+
165
+ self._protected = protected
166
+
167
+ @property
168
+ def spec(self) -> 'V1ExternalClusterSpec':
169
+ """Gets the spec of this V1ExternalCluster. # noqa: E501
170
+
171
+
172
+ :return: The spec of this V1ExternalCluster. # noqa: E501
173
+ :rtype: V1ExternalClusterSpec
174
+ """
175
+ return self._spec
176
+
177
+ @spec.setter
178
+ def spec(self, spec: 'V1ExternalClusterSpec'):
179
+ """Sets the spec of this V1ExternalCluster.
180
+
181
+
182
+ :param spec: The spec of this V1ExternalCluster. # noqa: E501
183
+ :type: V1ExternalClusterSpec
184
+ """
185
+
186
+ self._spec = spec
187
+
188
+ @property
189
+ def status(self) -> 'V1ClusterStatus':
190
+ """Gets the status of this V1ExternalCluster. # noqa: E501
191
+
192
+
193
+ :return: The status of this V1ExternalCluster. # noqa: E501
194
+ :rtype: V1ClusterStatus
195
+ """
196
+ return self._status
197
+
198
+ @status.setter
199
+ def status(self, status: 'V1ClusterStatus'):
200
+ """Sets the status of this V1ExternalCluster.
201
+
202
+
203
+ :param status: The status of this V1ExternalCluster. # noqa: E501
204
+ :type: V1ClusterStatus
205
+ """
206
+
207
+ self._status = status
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(V1ExternalCluster, 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: 'V1ExternalCluster') -> bool:
245
+ """Returns true if both objects are equal"""
246
+ if not isinstance(other, V1ExternalCluster):
247
+ return False
248
+
249
+ return self.__dict__ == other.__dict__
250
+
251
+ def __ne__(self, other: 'V1ExternalCluster') -> bool:
252
+ """Returns true if both objects are not equal"""
253
+ return not self == other