lightning-sdk 0.2.4__py3-none-any.whl → 0.2.6__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 (123) hide show
  1. lightning_sdk/__init__.py +1 -1
  2. lightning_sdk/ai_hub.py +3 -1
  3. lightning_sdk/api/ai_hub_api.py +15 -0
  4. lightning_sdk/api/studio_api.py +0 -8
  5. lightning_sdk/cli/serve.py +29 -9
  6. lightning_sdk/deployment/deployment.py +32 -4
  7. lightning_sdk/lightning_cloud/openapi/__init__.py +57 -1
  8. lightning_sdk/lightning_cloud/openapi/api/__init__.py +4 -0
  9. lightning_sdk/lightning_cloud/openapi/api/cloud_space_environment_template_service_api.py +537 -0
  10. lightning_sdk/lightning_cloud/openapi/api/cluster_service_api.py +115 -6
  11. lightning_sdk/lightning_cloud/openapi/api/lit_dataset_service_api.py +1973 -0
  12. lightning_sdk/lightning_cloud/openapi/api/lit_registry_service_api.py +20 -4
  13. lightning_sdk/lightning_cloud/openapi/api/models_store_api.py +20 -20
  14. lightning_sdk/lightning_cloud/openapi/api/pipeline_templates_service_api.py +339 -0
  15. lightning_sdk/lightning_cloud/openapi/api/pipelines_service_api.py +5 -1
  16. lightning_sdk/lightning_cloud/openapi/api/schedules_service_api.py +573 -0
  17. lightning_sdk/lightning_cloud/openapi/api/slurm_jobs_user_service_api.py +202 -0
  18. lightning_sdk/lightning_cloud/openapi/models/__init__.py +53 -1
  19. lightning_sdk/lightning_cloud/openapi/models/cluster_id_capacityblock_body.py +15 -15
  20. lightning_sdk/lightning_cloud/openapi/models/cluster_id_slurmusers_body.py +201 -0
  21. lightning_sdk/lightning_cloud/openapi/models/dataset_id_versions_body.py +149 -0
  22. lightning_sdk/lightning_cloud/openapi/models/dataset_id_visibility_body.py +149 -0
  23. lightning_sdk/lightning_cloud/openapi/models/environmenttemplates_id_body.py +253 -0
  24. lightning_sdk/lightning_cloud/openapi/models/externalv1_cloud_space_instance_status.py +95 -69
  25. lightning_sdk/lightning_cloud/openapi/models/externalv1_cluster.py +27 -1
  26. lightning_sdk/lightning_cloud/openapi/models/litdatasets_dataset_id_body.py +149 -0
  27. lightning_sdk/lightning_cloud/openapi/models/orgs_id_body.py +27 -1
  28. lightning_sdk/lightning_cloud/openapi/models/pipelines_id_body.py +69 -17
  29. lightning_sdk/lightning_cloud/openapi/models/pipelinetemplates_id_body.py +331 -0
  30. lightning_sdk/lightning_cloud/openapi/models/project_id_cloudspaces_body.py +27 -1
  31. lightning_sdk/lightning_cloud/openapi/models/project_id_litdatasets_body.py +227 -0
  32. lightning_sdk/lightning_cloud/openapi/models/project_id_pipelines_body.py +17 -17
  33. lightning_sdk/lightning_cloud/openapi/models/project_id_schedules_body.py +201 -0
  34. lightning_sdk/lightning_cloud/openapi/models/schedules_id_body.py +383 -0
  35. lightning_sdk/lightning_cloud/openapi/models/server_id_alerts_body.py +175 -0
  36. lightning_sdk/lightning_cloud/openapi/models/slurm_jobs_body.py +15 -15
  37. lightning_sdk/lightning_cloud/openapi/models/upload_id_complete_body1.py +149 -0
  38. lightning_sdk/lightning_cloud/openapi/models/upload_id_parts_body1.py +149 -0
  39. lightning_sdk/lightning_cloud/openapi/models/v1_agent_job.py +124 -20
  40. lightning_sdk/lightning_cloud/openapi/models/v1_assistant_model_status.py +2 -0
  41. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_provider.py +1 -0
  42. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space.py +27 -1
  43. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_template.py +279 -0
  44. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_template_config.py +123 -0
  45. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_security_options.py +27 -1
  46. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_spec.py +157 -1
  47. lightning_sdk/lightning_cloud/openapi/models/v1_complete_lit_dataset_multi_part_upload_response.py +97 -0
  48. lightning_sdk/lightning_cloud/openapi/models/v1_complete_lit_dataset_upload_response.py +97 -0
  49. lightning_sdk/lightning_cloud/openapi/models/v1_create_cloud_space_environment_template_request.py +175 -0
  50. lightning_sdk/lightning_cloud/openapi/models/v1_create_lit_dataset_multi_part_upload_response.py +123 -0
  51. lightning_sdk/lightning_cloud/openapi/models/v1_create_organization_request.py +27 -1
  52. lightning_sdk/lightning_cloud/openapi/models/v1_create_pipeline_template_request.py +383 -0
  53. lightning_sdk/lightning_cloud/openapi/models/v1_create_project_request.py +27 -1
  54. lightning_sdk/lightning_cloud/openapi/models/v1_create_server_alert_response.py +97 -0
  55. lightning_sdk/lightning_cloud/openapi/models/v1_data_connection.py +27 -1
  56. lightning_sdk/lightning_cloud/openapi/models/{v1_pipeline_schedule.py → v1_delete_cloud_space_environment_template_response.py} +32 -32
  57. lightning_sdk/lightning_cloud/openapi/models/v1_delete_lit_dataset_response.py +97 -0
  58. lightning_sdk/lightning_cloud/openapi/models/v1_delete_lit_dataset_version_response.py +97 -0
  59. lightning_sdk/lightning_cloud/openapi/models/v1_delete_schedule_response.py +175 -0
  60. lightning_sdk/lightning_cloud/openapi/models/v1_get_cloud_space_size_response.py +79 -1
  61. lightning_sdk/lightning_cloud/openapi/models/v1_get_lit_dataset_file_upload_urls_response.py +123 -0
  62. lightning_sdk/lightning_cloud/openapi/models/v1_get_lit_dataset_files_url_response.py +149 -0
  63. lightning_sdk/lightning_cloud/openapi/models/v1_get_user_response.py +27 -1
  64. lightning_sdk/lightning_cloud/openapi/models/v1_google_cloud_direct_v1.py +55 -3
  65. lightning_sdk/lightning_cloud/openapi/models/v1_instance_overprovisioning_spec.py +79 -27
  66. lightning_sdk/lightning_cloud/openapi/models/v1_job_spec.py +27 -1
  67. lightning_sdk/lightning_cloud/openapi/models/v1_lambda_labs_direct_v1.py +1 -29
  68. lightning_sdk/lightning_cloud/openapi/models/v1_list_cloud_space_environment_templates_response.py +123 -0
  69. lightning_sdk/lightning_cloud/openapi/models/v1_list_lit_dataset_versions_response.py +123 -0
  70. lightning_sdk/lightning_cloud/openapi/models/v1_list_lit_datasets_response.py +123 -0
  71. lightning_sdk/lightning_cloud/openapi/models/v1_list_lit_registry_repository_image_artifact_versions_response.py +27 -1
  72. lightning_sdk/lightning_cloud/openapi/models/v1_list_schedules_response.py +123 -0
  73. lightning_sdk/lightning_cloud/openapi/models/v1_list_slurm_cluster_users_response.py +123 -0
  74. lightning_sdk/lightning_cloud/openapi/models/v1_lit_dataset.py +539 -0
  75. lightning_sdk/lightning_cloud/openapi/models/v1_lit_dataset_file.py +175 -0
  76. lightning_sdk/lightning_cloud/openapi/models/v1_lit_dataset_version_archive.py +435 -0
  77. lightning_sdk/lightning_cloud/openapi/models/v1_lit_registry_project.py +27 -1
  78. lightning_sdk/lightning_cloud/openapi/models/v1_lit_repository.py +27 -1
  79. lightning_sdk/lightning_cloud/openapi/models/v1_magic_link_login_request.py +27 -1
  80. lightning_sdk/lightning_cloud/openapi/models/v1_managed_model.py +107 -3
  81. lightning_sdk/lightning_cloud/openapi/models/v1_metadata.py +27 -1
  82. lightning_sdk/lightning_cloud/openapi/models/v1_organization.py +53 -1
  83. lightning_sdk/lightning_cloud/openapi/models/v1_pipeline.py +69 -17
  84. lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_parameter.py +435 -0
  85. lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_parameter_placement.py +149 -0
  86. lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_parameter_placement_type.py +106 -0
  87. lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_parameter_type.py +106 -0
  88. lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_template.py +513 -0
  89. lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_template_visibility_type.py +105 -0
  90. lightning_sdk/lightning_cloud/openapi/models/v1_project_settings.py +27 -1
  91. lightning_sdk/lightning_cloud/openapi/models/v1_reservation_details.py +201 -0
  92. lightning_sdk/lightning_cloud/openapi/models/v1_rule_resource.py +1 -0
  93. lightning_sdk/lightning_cloud/openapi/models/v1_schedule.py +435 -0
  94. lightning_sdk/lightning_cloud/openapi/models/v1_schedule_resource_type.py +103 -0
  95. lightning_sdk/lightning_cloud/openapi/models/v1_server_alert.py +175 -0
  96. lightning_sdk/lightning_cloud/openapi/models/v1_server_alert_severity.py +103 -0
  97. lightning_sdk/lightning_cloud/openapi/models/v1_server_alert_type.py +105 -0
  98. lightning_sdk/lightning_cloud/openapi/models/v1_slurm_cluster_user.py +227 -0
  99. lightning_sdk/lightning_cloud/openapi/models/v1_slurm_job.py +58 -6
  100. lightning_sdk/lightning_cloud/openapi/models/v1_slurm_node.py +31 -291
  101. lightning_sdk/lightning_cloud/openapi/models/v1_subnet_spec.py +149 -0
  102. lightning_sdk/lightning_cloud/openapi/models/v1_update_lit_dataset_visibility_response.py +123 -0
  103. lightning_sdk/lightning_cloud/openapi/models/v1_update_user_request.py +27 -1
  104. lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +223 -171
  105. lightning_sdk/lightning_cloud/openapi/models/v1_validate_managed_endpoint_response.py +27 -1
  106. lightning_sdk/lightning_cloud/openapi/models/v1_voltage_park_direct_v1.py +203 -0
  107. lightning_sdk/lightning_cloud/openapi/models/v1_vultr_direct_v1.py +1 -27
  108. lightning_sdk/lightning_cloud/openapi/models/version_default_body.py +29 -29
  109. lightning_sdk/lightning_cloud/openapi/models/version_default_body1.py +149 -0
  110. lightning_sdk/lightning_cloud/openapi/models/version_uploads_body1.py +123 -0
  111. lightning_sdk/lightning_cloud/openapi/models/versions_version_body1.py +123 -0
  112. lightning_sdk/lightning_cloud/rest_client.py +44 -40
  113. lightning_sdk/pipeline/types.py +28 -2
  114. lightning_sdk/pipeline/utils.py +1 -1
  115. lightning_sdk/plugin.py +0 -6
  116. lightning_sdk/serve.py +5 -3
  117. lightning_sdk/utils/resolve.py +1 -0
  118. {lightning_sdk-0.2.4.dist-info → lightning_sdk-0.2.6.dist-info}/METADATA +1 -1
  119. {lightning_sdk-0.2.4.dist-info → lightning_sdk-0.2.6.dist-info}/RECORD +123 -67
  120. {lightning_sdk-0.2.4.dist-info → lightning_sdk-0.2.6.dist-info}/WHEEL +1 -1
  121. {lightning_sdk-0.2.4.dist-info → lightning_sdk-0.2.6.dist-info}/LICENSE +0 -0
  122. {lightning_sdk-0.2.4.dist-info → lightning_sdk-0.2.6.dist-info}/entry_points.txt +0 -0
  123. {lightning_sdk-0.2.4.dist-info → lightning_sdk-0.2.6.dist-info}/top_level.txt +0 -0
@@ -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 PipelinetemplatesIdBody(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
+ 'about_page_content': 'str',
45
+ 'description': 'str',
46
+ 'featured': 'bool',
47
+ 'image_url': 'str',
48
+ 'name': 'str',
49
+ 'org_id': 'str',
50
+ 'thumbnail': 'str',
51
+ 'thumbnail_file_type': 'str',
52
+ 'visibility': 'V1PipelineTemplateVisibilityType'
53
+ }
54
+
55
+ attribute_map = {
56
+ 'about_page_content': 'aboutPageContent',
57
+ 'description': 'description',
58
+ 'featured': 'featured',
59
+ 'image_url': 'imageUrl',
60
+ 'name': 'name',
61
+ 'org_id': 'orgId',
62
+ 'thumbnail': 'thumbnail',
63
+ 'thumbnail_file_type': 'thumbnailFileType',
64
+ 'visibility': 'visibility'
65
+ }
66
+
67
+ def __init__(self, about_page_content: 'str' =None, description: 'str' =None, featured: 'bool' =None, image_url: 'str' =None, name: 'str' =None, org_id: 'str' =None, thumbnail: 'str' =None, thumbnail_file_type: 'str' =None, visibility: 'V1PipelineTemplateVisibilityType' =None): # noqa: E501
68
+ """PipelinetemplatesIdBody - a model defined in Swagger""" # noqa: E501
69
+ self._about_page_content = None
70
+ self._description = None
71
+ self._featured = None
72
+ self._image_url = None
73
+ self._name = None
74
+ self._org_id = None
75
+ self._thumbnail = None
76
+ self._thumbnail_file_type = None
77
+ self._visibility = None
78
+ self.discriminator = None
79
+ if about_page_content is not None:
80
+ self.about_page_content = about_page_content
81
+ if description is not None:
82
+ self.description = description
83
+ if featured is not None:
84
+ self.featured = featured
85
+ if image_url is not None:
86
+ self.image_url = image_url
87
+ if name is not None:
88
+ self.name = name
89
+ if org_id is not None:
90
+ self.org_id = org_id
91
+ if thumbnail is not None:
92
+ self.thumbnail = thumbnail
93
+ if thumbnail_file_type is not None:
94
+ self.thumbnail_file_type = thumbnail_file_type
95
+ if visibility is not None:
96
+ self.visibility = visibility
97
+
98
+ @property
99
+ def about_page_content(self) -> 'str':
100
+ """Gets the about_page_content of this PipelinetemplatesIdBody. # noqa: E501
101
+
102
+
103
+ :return: The about_page_content of this PipelinetemplatesIdBody. # noqa: E501
104
+ :rtype: str
105
+ """
106
+ return self._about_page_content
107
+
108
+ @about_page_content.setter
109
+ def about_page_content(self, about_page_content: 'str'):
110
+ """Sets the about_page_content of this PipelinetemplatesIdBody.
111
+
112
+
113
+ :param about_page_content: The about_page_content of this PipelinetemplatesIdBody. # noqa: E501
114
+ :type: str
115
+ """
116
+
117
+ self._about_page_content = about_page_content
118
+
119
+ @property
120
+ def description(self) -> 'str':
121
+ """Gets the description of this PipelinetemplatesIdBody. # noqa: E501
122
+
123
+
124
+ :return: The description of this PipelinetemplatesIdBody. # noqa: E501
125
+ :rtype: str
126
+ """
127
+ return self._description
128
+
129
+ @description.setter
130
+ def description(self, description: 'str'):
131
+ """Sets the description of this PipelinetemplatesIdBody.
132
+
133
+
134
+ :param description: The description of this PipelinetemplatesIdBody. # noqa: E501
135
+ :type: str
136
+ """
137
+
138
+ self._description = description
139
+
140
+ @property
141
+ def featured(self) -> 'bool':
142
+ """Gets the featured of this PipelinetemplatesIdBody. # noqa: E501
143
+
144
+
145
+ :return: The featured of this PipelinetemplatesIdBody. # noqa: E501
146
+ :rtype: bool
147
+ """
148
+ return self._featured
149
+
150
+ @featured.setter
151
+ def featured(self, featured: 'bool'):
152
+ """Sets the featured of this PipelinetemplatesIdBody.
153
+
154
+
155
+ :param featured: The featured of this PipelinetemplatesIdBody. # noqa: E501
156
+ :type: bool
157
+ """
158
+
159
+ self._featured = featured
160
+
161
+ @property
162
+ def image_url(self) -> 'str':
163
+ """Gets the image_url of this PipelinetemplatesIdBody. # noqa: E501
164
+
165
+
166
+ :return: The image_url of this PipelinetemplatesIdBody. # noqa: E501
167
+ :rtype: str
168
+ """
169
+ return self._image_url
170
+
171
+ @image_url.setter
172
+ def image_url(self, image_url: 'str'):
173
+ """Sets the image_url of this PipelinetemplatesIdBody.
174
+
175
+
176
+ :param image_url: The image_url of this PipelinetemplatesIdBody. # noqa: E501
177
+ :type: str
178
+ """
179
+
180
+ self._image_url = image_url
181
+
182
+ @property
183
+ def name(self) -> 'str':
184
+ """Gets the name of this PipelinetemplatesIdBody. # noqa: E501
185
+
186
+
187
+ :return: The name of this PipelinetemplatesIdBody. # noqa: E501
188
+ :rtype: str
189
+ """
190
+ return self._name
191
+
192
+ @name.setter
193
+ def name(self, name: 'str'):
194
+ """Sets the name of this PipelinetemplatesIdBody.
195
+
196
+
197
+ :param name: The name of this PipelinetemplatesIdBody. # noqa: E501
198
+ :type: str
199
+ """
200
+
201
+ self._name = name
202
+
203
+ @property
204
+ def org_id(self) -> 'str':
205
+ """Gets the org_id of this PipelinetemplatesIdBody. # noqa: E501
206
+
207
+
208
+ :return: The org_id of this PipelinetemplatesIdBody. # noqa: E501
209
+ :rtype: str
210
+ """
211
+ return self._org_id
212
+
213
+ @org_id.setter
214
+ def org_id(self, org_id: 'str'):
215
+ """Sets the org_id of this PipelinetemplatesIdBody.
216
+
217
+
218
+ :param org_id: The org_id of this PipelinetemplatesIdBody. # noqa: E501
219
+ :type: str
220
+ """
221
+
222
+ self._org_id = org_id
223
+
224
+ @property
225
+ def thumbnail(self) -> 'str':
226
+ """Gets the thumbnail of this PipelinetemplatesIdBody. # noqa: E501
227
+
228
+
229
+ :return: The thumbnail of this PipelinetemplatesIdBody. # noqa: E501
230
+ :rtype: str
231
+ """
232
+ return self._thumbnail
233
+
234
+ @thumbnail.setter
235
+ def thumbnail(self, thumbnail: 'str'):
236
+ """Sets the thumbnail of this PipelinetemplatesIdBody.
237
+
238
+
239
+ :param thumbnail: The thumbnail of this PipelinetemplatesIdBody. # noqa: E501
240
+ :type: str
241
+ """
242
+
243
+ self._thumbnail = thumbnail
244
+
245
+ @property
246
+ def thumbnail_file_type(self) -> 'str':
247
+ """Gets the thumbnail_file_type of this PipelinetemplatesIdBody. # noqa: E501
248
+
249
+
250
+ :return: The thumbnail_file_type of this PipelinetemplatesIdBody. # noqa: E501
251
+ :rtype: str
252
+ """
253
+ return self._thumbnail_file_type
254
+
255
+ @thumbnail_file_type.setter
256
+ def thumbnail_file_type(self, thumbnail_file_type: 'str'):
257
+ """Sets the thumbnail_file_type of this PipelinetemplatesIdBody.
258
+
259
+
260
+ :param thumbnail_file_type: The thumbnail_file_type of this PipelinetemplatesIdBody. # noqa: E501
261
+ :type: str
262
+ """
263
+
264
+ self._thumbnail_file_type = thumbnail_file_type
265
+
266
+ @property
267
+ def visibility(self) -> 'V1PipelineTemplateVisibilityType':
268
+ """Gets the visibility of this PipelinetemplatesIdBody. # noqa: E501
269
+
270
+
271
+ :return: The visibility of this PipelinetemplatesIdBody. # noqa: E501
272
+ :rtype: V1PipelineTemplateVisibilityType
273
+ """
274
+ return self._visibility
275
+
276
+ @visibility.setter
277
+ def visibility(self, visibility: 'V1PipelineTemplateVisibilityType'):
278
+ """Sets the visibility of this PipelinetemplatesIdBody.
279
+
280
+
281
+ :param visibility: The visibility of this PipelinetemplatesIdBody. # noqa: E501
282
+ :type: V1PipelineTemplateVisibilityType
283
+ """
284
+
285
+ self._visibility = visibility
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(PipelinetemplatesIdBody, 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: 'PipelinetemplatesIdBody') -> bool:
323
+ """Returns true if both objects are equal"""
324
+ if not isinstance(other, PipelinetemplatesIdBody):
325
+ return False
326
+
327
+ return self.__dict__ == other.__dict__
328
+
329
+ def __ne__(self, other: 'PipelinetemplatesIdBody') -> bool:
330
+ """Returns true if both objects are not equal"""
331
+ return not self == other
@@ -42,6 +42,7 @@ class ProjectIdCloudspacesBody(object):
42
42
  """
43
43
  swagger_types = {
44
44
  'can_download_source_code': 'bool',
45
+ 'cloud_space_environment_template_id': 'str',
45
46
  'cloud_space_instance_cpu_image_override': 'str',
46
47
  'cloud_space_instance_gpu_image_override': 'str',
47
48
  'cluster_id': 'str',
@@ -59,6 +60,7 @@ class ProjectIdCloudspacesBody(object):
59
60
 
60
61
  attribute_map = {
61
62
  'can_download_source_code': 'canDownloadSourceCode',
63
+ 'cloud_space_environment_template_id': 'cloudSpaceEnvironmentTemplateId',
62
64
  'cloud_space_instance_cpu_image_override': 'cloudSpaceInstanceCpuImageOverride',
63
65
  'cloud_space_instance_gpu_image_override': 'cloudSpaceInstanceGpuImageOverride',
64
66
  'cluster_id': 'clusterId',
@@ -74,9 +76,10 @@ class ProjectIdCloudspacesBody(object):
74
76
  'spot': 'spot'
75
77
  }
76
78
 
77
- def __init__(self, can_download_source_code: 'bool' =None, cloud_space_instance_cpu_image_override: 'str' =None, cloud_space_instance_gpu_image_override: 'str' =None, cluster_id: 'str' =None, compute_name: 'str' =None, data_connection_mounts: 'list[V1DataConnectionMount]' =None, disk_size: 'str' =None, display_name: 'str' =None, name: 'str' =None, plugins: 'list[str]' =None, requested_run_duration_seconds: 'str' =None, same_compute_on_resume: 'bool' =None, seed_files: 'list[V1CloudSpaceSeedFile]' =None, spot: 'bool' =None): # noqa: E501
79
+ def __init__(self, can_download_source_code: 'bool' =None, cloud_space_environment_template_id: 'str' =None, cloud_space_instance_cpu_image_override: 'str' =None, cloud_space_instance_gpu_image_override: 'str' =None, cluster_id: 'str' =None, compute_name: 'str' =None, data_connection_mounts: 'list[V1DataConnectionMount]' =None, disk_size: 'str' =None, display_name: 'str' =None, name: 'str' =None, plugins: 'list[str]' =None, requested_run_duration_seconds: 'str' =None, same_compute_on_resume: 'bool' =None, seed_files: 'list[V1CloudSpaceSeedFile]' =None, spot: 'bool' =None): # noqa: E501
78
80
  """ProjectIdCloudspacesBody - a model defined in Swagger""" # noqa: E501
79
81
  self._can_download_source_code = None
82
+ self._cloud_space_environment_template_id = None
80
83
  self._cloud_space_instance_cpu_image_override = None
81
84
  self._cloud_space_instance_gpu_image_override = None
82
85
  self._cluster_id = None
@@ -93,6 +96,8 @@ class ProjectIdCloudspacesBody(object):
93
96
  self.discriminator = None
94
97
  if can_download_source_code is not None:
95
98
  self.can_download_source_code = can_download_source_code
99
+ if cloud_space_environment_template_id is not None:
100
+ self.cloud_space_environment_template_id = cloud_space_environment_template_id
96
101
  if cloud_space_instance_cpu_image_override is not None:
97
102
  self.cloud_space_instance_cpu_image_override = cloud_space_instance_cpu_image_override
98
103
  if cloud_space_instance_gpu_image_override is not None:
@@ -141,6 +146,27 @@ class ProjectIdCloudspacesBody(object):
141
146
 
142
147
  self._can_download_source_code = can_download_source_code
143
148
 
149
+ @property
150
+ def cloud_space_environment_template_id(self) -> 'str':
151
+ """Gets the cloud_space_environment_template_id of this ProjectIdCloudspacesBody. # noqa: E501
152
+
153
+
154
+ :return: The cloud_space_environment_template_id of this ProjectIdCloudspacesBody. # noqa: E501
155
+ :rtype: str
156
+ """
157
+ return self._cloud_space_environment_template_id
158
+
159
+ @cloud_space_environment_template_id.setter
160
+ def cloud_space_environment_template_id(self, cloud_space_environment_template_id: 'str'):
161
+ """Sets the cloud_space_environment_template_id of this ProjectIdCloudspacesBody.
162
+
163
+
164
+ :param cloud_space_environment_template_id: The cloud_space_environment_template_id of this ProjectIdCloudspacesBody. # noqa: E501
165
+ :type: str
166
+ """
167
+
168
+ self._cloud_space_environment_template_id = cloud_space_environment_template_id
169
+
144
170
  @property
145
171
  def cloud_space_instance_cpu_image_override(self) -> 'str':
146
172
  """Gets the cloud_space_instance_cpu_image_override of this ProjectIdCloudspacesBody. # noqa: E501
@@ -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 ProjectIdLitdatasetsBody(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
+ 'always_create': 'bool',
45
+ 'cluster_id': 'str',
46
+ 'metadata': 'dict(str, str)',
47
+ 'name': 'str',
48
+ 'private': 'bool'
49
+ }
50
+
51
+ attribute_map = {
52
+ 'always_create': 'alwaysCreate',
53
+ 'cluster_id': 'clusterId',
54
+ 'metadata': 'metadata',
55
+ 'name': 'name',
56
+ 'private': 'private'
57
+ }
58
+
59
+ def __init__(self, always_create: 'bool' =None, cluster_id: 'str' =None, metadata: 'dict(str, str)' =None, name: 'str' =None, private: 'bool' =None): # noqa: E501
60
+ """ProjectIdLitdatasetsBody - a model defined in Swagger""" # noqa: E501
61
+ self._always_create = None
62
+ self._cluster_id = None
63
+ self._metadata = None
64
+ self._name = None
65
+ self._private = None
66
+ self.discriminator = None
67
+ if always_create is not None:
68
+ self.always_create = always_create
69
+ if cluster_id is not None:
70
+ self.cluster_id = cluster_id
71
+ if metadata is not None:
72
+ self.metadata = metadata
73
+ if name is not None:
74
+ self.name = name
75
+ if private is not None:
76
+ self.private = private
77
+
78
+ @property
79
+ def always_create(self) -> 'bool':
80
+ """Gets the always_create of this ProjectIdLitdatasetsBody. # noqa: E501
81
+
82
+
83
+ :return: The always_create of this ProjectIdLitdatasetsBody. # noqa: E501
84
+ :rtype: bool
85
+ """
86
+ return self._always_create
87
+
88
+ @always_create.setter
89
+ def always_create(self, always_create: 'bool'):
90
+ """Sets the always_create of this ProjectIdLitdatasetsBody.
91
+
92
+
93
+ :param always_create: The always_create of this ProjectIdLitdatasetsBody. # noqa: E501
94
+ :type: bool
95
+ """
96
+
97
+ self._always_create = always_create
98
+
99
+ @property
100
+ def cluster_id(self) -> 'str':
101
+ """Gets the cluster_id of this ProjectIdLitdatasetsBody. # noqa: E501
102
+
103
+
104
+ :return: The cluster_id of this ProjectIdLitdatasetsBody. # noqa: E501
105
+ :rtype: str
106
+ """
107
+ return self._cluster_id
108
+
109
+ @cluster_id.setter
110
+ def cluster_id(self, cluster_id: 'str'):
111
+ """Sets the cluster_id of this ProjectIdLitdatasetsBody.
112
+
113
+
114
+ :param cluster_id: The cluster_id of this ProjectIdLitdatasetsBody. # noqa: E501
115
+ :type: str
116
+ """
117
+
118
+ self._cluster_id = cluster_id
119
+
120
+ @property
121
+ def metadata(self) -> 'dict(str, str)':
122
+ """Gets the metadata of this ProjectIdLitdatasetsBody. # noqa: E501
123
+
124
+
125
+ :return: The metadata of this ProjectIdLitdatasetsBody. # noqa: E501
126
+ :rtype: dict(str, str)
127
+ """
128
+ return self._metadata
129
+
130
+ @metadata.setter
131
+ def metadata(self, metadata: 'dict(str, str)'):
132
+ """Sets the metadata of this ProjectIdLitdatasetsBody.
133
+
134
+
135
+ :param metadata: The metadata of this ProjectIdLitdatasetsBody. # noqa: E501
136
+ :type: dict(str, str)
137
+ """
138
+
139
+ self._metadata = metadata
140
+
141
+ @property
142
+ def name(self) -> 'str':
143
+ """Gets the name of this ProjectIdLitdatasetsBody. # noqa: E501
144
+
145
+
146
+ :return: The name of this ProjectIdLitdatasetsBody. # noqa: E501
147
+ :rtype: str
148
+ """
149
+ return self._name
150
+
151
+ @name.setter
152
+ def name(self, name: 'str'):
153
+ """Sets the name of this ProjectIdLitdatasetsBody.
154
+
155
+
156
+ :param name: The name of this ProjectIdLitdatasetsBody. # noqa: E501
157
+ :type: str
158
+ """
159
+
160
+ self._name = name
161
+
162
+ @property
163
+ def private(self) -> 'bool':
164
+ """Gets the private of this ProjectIdLitdatasetsBody. # noqa: E501
165
+
166
+
167
+ :return: The private of this ProjectIdLitdatasetsBody. # noqa: E501
168
+ :rtype: bool
169
+ """
170
+ return self._private
171
+
172
+ @private.setter
173
+ def private(self, private: 'bool'):
174
+ """Sets the private of this ProjectIdLitdatasetsBody.
175
+
176
+
177
+ :param private: The private of this ProjectIdLitdatasetsBody. # noqa: E501
178
+ :type: bool
179
+ """
180
+
181
+ self._private = private
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(ProjectIdLitdatasetsBody, 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: 'ProjectIdLitdatasetsBody') -> bool:
219
+ """Returns true if both objects are equal"""
220
+ if not isinstance(other, ProjectIdLitdatasetsBody):
221
+ return False
222
+
223
+ return self.__dict__ == other.__dict__
224
+
225
+ def __ne__(self, other: 'ProjectIdLitdatasetsBody') -> bool:
226
+ """Returns true if both objects are not equal"""
227
+ return not self == other
@@ -43,7 +43,7 @@ class ProjectIdPipelinesBody(object):
43
43
  swagger_types = {
44
44
  'cluster_id': 'str',
45
45
  'name': 'str',
46
- 'schedules': 'list[V1PipelineSchedule]',
46
+ 'parameters': 'list[V1PipelineParameter]',
47
47
  'shared_filesystem': 'V1SharedFilesystem',
48
48
  'steps': 'list[V1PipelineStep]'
49
49
  }
@@ -51,16 +51,16 @@ class ProjectIdPipelinesBody(object):
51
51
  attribute_map = {
52
52
  'cluster_id': 'clusterId',
53
53
  'name': 'name',
54
- 'schedules': 'schedules',
54
+ 'parameters': 'parameters',
55
55
  'shared_filesystem': 'sharedFilesystem',
56
56
  'steps': 'steps'
57
57
  }
58
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
59
+ def __init__(self, cluster_id: 'str' =None, name: 'str' =None, parameters: 'list[V1PipelineParameter]' =None, shared_filesystem: 'V1SharedFilesystem' =None, steps: 'list[V1PipelineStep]' =None): # noqa: E501
60
60
  """ProjectIdPipelinesBody - a model defined in Swagger""" # noqa: E501
61
61
  self._cluster_id = None
62
62
  self._name = None
63
- self._schedules = None
63
+ self._parameters = None
64
64
  self._shared_filesystem = None
65
65
  self._steps = None
66
66
  self.discriminator = None
@@ -68,8 +68,8 @@ class ProjectIdPipelinesBody(object):
68
68
  self.cluster_id = cluster_id
69
69
  if name is not None:
70
70
  self.name = name
71
- if schedules is not None:
72
- self.schedules = schedules
71
+ if parameters is not None:
72
+ self.parameters = parameters
73
73
  if shared_filesystem is not None:
74
74
  self.shared_filesystem = shared_filesystem
75
75
  if steps is not None:
@@ -118,25 +118,25 @@ class ProjectIdPipelinesBody(object):
118
118
  self._name = name
119
119
 
120
120
  @property
121
- def schedules(self) -> 'list[V1PipelineSchedule]':
122
- """Gets the schedules of this ProjectIdPipelinesBody. # noqa: E501
121
+ def parameters(self) -> 'list[V1PipelineParameter]':
122
+ """Gets the parameters of this ProjectIdPipelinesBody. # noqa: E501
123
123
 
124
124
 
125
- :return: The schedules of this ProjectIdPipelinesBody. # noqa: E501
126
- :rtype: list[V1PipelineSchedule]
125
+ :return: The parameters of this ProjectIdPipelinesBody. # noqa: E501
126
+ :rtype: list[V1PipelineParameter]
127
127
  """
128
- return self._schedules
128
+ return self._parameters
129
129
 
130
- @schedules.setter
131
- def schedules(self, schedules: 'list[V1PipelineSchedule]'):
132
- """Sets the schedules of this ProjectIdPipelinesBody.
130
+ @parameters.setter
131
+ def parameters(self, parameters: 'list[V1PipelineParameter]'):
132
+ """Sets the parameters of this ProjectIdPipelinesBody.
133
133
 
134
134
 
135
- :param schedules: The schedules of this ProjectIdPipelinesBody. # noqa: E501
136
- :type: list[V1PipelineSchedule]
135
+ :param parameters: The parameters of this ProjectIdPipelinesBody. # noqa: E501
136
+ :type: list[V1PipelineParameter]
137
137
  """
138
138
 
139
- self._schedules = schedules
139
+ self._parameters = parameters
140
140
 
141
141
  @property
142
142
  def shared_filesystem(self) -> 'V1SharedFilesystem':