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.
- lightning_sdk/__init__.py +1 -1
- lightning_sdk/ai_hub.py +3 -1
- lightning_sdk/api/ai_hub_api.py +15 -0
- lightning_sdk/api/studio_api.py +0 -8
- lightning_sdk/cli/serve.py +29 -9
- lightning_sdk/deployment/deployment.py +32 -4
- lightning_sdk/lightning_cloud/openapi/__init__.py +57 -1
- lightning_sdk/lightning_cloud/openapi/api/__init__.py +4 -0
- lightning_sdk/lightning_cloud/openapi/api/cloud_space_environment_template_service_api.py +537 -0
- lightning_sdk/lightning_cloud/openapi/api/cluster_service_api.py +115 -6
- lightning_sdk/lightning_cloud/openapi/api/lit_dataset_service_api.py +1973 -0
- lightning_sdk/lightning_cloud/openapi/api/lit_registry_service_api.py +20 -4
- lightning_sdk/lightning_cloud/openapi/api/models_store_api.py +20 -20
- lightning_sdk/lightning_cloud/openapi/api/pipeline_templates_service_api.py +339 -0
- lightning_sdk/lightning_cloud/openapi/api/pipelines_service_api.py +5 -1
- lightning_sdk/lightning_cloud/openapi/api/schedules_service_api.py +573 -0
- lightning_sdk/lightning_cloud/openapi/api/slurm_jobs_user_service_api.py +202 -0
- lightning_sdk/lightning_cloud/openapi/models/__init__.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/cluster_id_capacityblock_body.py +15 -15
- lightning_sdk/lightning_cloud/openapi/models/cluster_id_slurmusers_body.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/dataset_id_versions_body.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/dataset_id_visibility_body.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/environmenttemplates_id_body.py +253 -0
- lightning_sdk/lightning_cloud/openapi/models/externalv1_cloud_space_instance_status.py +95 -69
- lightning_sdk/lightning_cloud/openapi/models/externalv1_cluster.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/litdatasets_dataset_id_body.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/orgs_id_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/pipelines_id_body.py +69 -17
- lightning_sdk/lightning_cloud/openapi/models/pipelinetemplates_id_body.py +331 -0
- lightning_sdk/lightning_cloud/openapi/models/project_id_cloudspaces_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/project_id_litdatasets_body.py +227 -0
- lightning_sdk/lightning_cloud/openapi/models/project_id_pipelines_body.py +17 -17
- lightning_sdk/lightning_cloud/openapi/models/project_id_schedules_body.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/schedules_id_body.py +383 -0
- lightning_sdk/lightning_cloud/openapi/models/server_id_alerts_body.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/slurm_jobs_body.py +15 -15
- lightning_sdk/lightning_cloud/openapi/models/upload_id_complete_body1.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/upload_id_parts_body1.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_agent_job.py +124 -20
- lightning_sdk/lightning_cloud/openapi/models/v1_assistant_model_status.py +2 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_provider.py +1 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_template.py +279 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_template_config.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_security_options.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_spec.py +157 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_complete_lit_dataset_multi_part_upload_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_complete_lit_dataset_upload_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_cloud_space_environment_template_request.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_lit_dataset_multi_part_upload_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_organization_request.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_create_pipeline_template_request.py +383 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_project_request.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_create_server_alert_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_data_connection.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/{v1_pipeline_schedule.py → v1_delete_cloud_space_environment_template_response.py} +32 -32
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_lit_dataset_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_lit_dataset_version_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_schedule_response.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_cloud_space_size_response.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_get_lit_dataset_file_upload_urls_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_lit_dataset_files_url_response.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_user_response.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_google_cloud_direct_v1.py +55 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_instance_overprovisioning_spec.py +79 -27
- lightning_sdk/lightning_cloud/openapi/models/v1_job_spec.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_lambda_labs_direct_v1.py +1 -29
- lightning_sdk/lightning_cloud/openapi/models/v1_list_cloud_space_environment_templates_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_lit_dataset_versions_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_lit_datasets_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_lit_registry_repository_image_artifact_versions_response.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_list_schedules_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_slurm_cluster_users_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_lit_dataset.py +539 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_lit_dataset_file.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_lit_dataset_version_archive.py +435 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_lit_registry_project.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_lit_repository.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_magic_link_login_request.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_managed_model.py +107 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_metadata.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_organization.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_pipeline.py +69 -17
- lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_parameter.py +435 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_parameter_placement.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_parameter_placement_type.py +106 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_parameter_type.py +106 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_template.py +513 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_template_visibility_type.py +105 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_project_settings.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_reservation_details.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_rule_resource.py +1 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_schedule.py +435 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_schedule_resource_type.py +103 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_server_alert.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_server_alert_severity.py +103 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_server_alert_type.py +105 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_slurm_cluster_user.py +227 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_slurm_job.py +58 -6
- lightning_sdk/lightning_cloud/openapi/models/v1_slurm_node.py +31 -291
- lightning_sdk/lightning_cloud/openapi/models/v1_subnet_spec.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_update_lit_dataset_visibility_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_update_user_request.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +223 -171
- lightning_sdk/lightning_cloud/openapi/models/v1_validate_managed_endpoint_response.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_voltage_park_direct_v1.py +203 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_vultr_direct_v1.py +1 -27
- lightning_sdk/lightning_cloud/openapi/models/version_default_body.py +29 -29
- lightning_sdk/lightning_cloud/openapi/models/version_default_body1.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/version_uploads_body1.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/versions_version_body1.py +123 -0
- lightning_sdk/lightning_cloud/rest_client.py +44 -40
- lightning_sdk/pipeline/types.py +28 -2
- lightning_sdk/pipeline/utils.py +1 -1
- lightning_sdk/plugin.py +0 -6
- lightning_sdk/serve.py +5 -3
- lightning_sdk/utils/resolve.py +1 -0
- {lightning_sdk-0.2.4.dist-info → lightning_sdk-0.2.6.dist-info}/METADATA +1 -1
- {lightning_sdk-0.2.4.dist-info → lightning_sdk-0.2.6.dist-info}/RECORD +123 -67
- {lightning_sdk-0.2.4.dist-info → lightning_sdk-0.2.6.dist-info}/WHEEL +1 -1
- {lightning_sdk-0.2.4.dist-info → lightning_sdk-0.2.6.dist-info}/LICENSE +0 -0
- {lightning_sdk-0.2.4.dist-info → lightning_sdk-0.2.6.dist-info}/entry_points.txt +0 -0
- {lightning_sdk-0.2.4.dist-info → lightning_sdk-0.2.6.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,383 @@
|
|
|
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 V1CreatePipelineTemplateRequest(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
|
+
'image_url': 'str',
|
|
47
|
+
'name': 'str',
|
|
48
|
+
'org_id': 'str',
|
|
49
|
+
'pipeline_id': 'str',
|
|
50
|
+
'project_id': 'str',
|
|
51
|
+
'thumbnail': 'str',
|
|
52
|
+
'thumbnail_file_type': 'str',
|
|
53
|
+
'version': 'int',
|
|
54
|
+
'visibility': 'V1PipelineTemplateVisibilityType'
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
attribute_map = {
|
|
58
|
+
'about_page_content': 'aboutPageContent',
|
|
59
|
+
'description': 'description',
|
|
60
|
+
'image_url': 'imageUrl',
|
|
61
|
+
'name': 'name',
|
|
62
|
+
'org_id': 'orgId',
|
|
63
|
+
'pipeline_id': 'pipelineId',
|
|
64
|
+
'project_id': 'projectId',
|
|
65
|
+
'thumbnail': 'thumbnail',
|
|
66
|
+
'thumbnail_file_type': 'thumbnailFileType',
|
|
67
|
+
'version': 'version',
|
|
68
|
+
'visibility': 'visibility'
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
def __init__(self, about_page_content: 'str' =None, description: 'str' =None, image_url: 'str' =None, name: 'str' =None, org_id: 'str' =None, pipeline_id: 'str' =None, project_id: 'str' =None, thumbnail: 'str' =None, thumbnail_file_type: 'str' =None, version: 'int' =None, visibility: 'V1PipelineTemplateVisibilityType' =None): # noqa: E501
|
|
72
|
+
"""V1CreatePipelineTemplateRequest - a model defined in Swagger""" # noqa: E501
|
|
73
|
+
self._about_page_content = None
|
|
74
|
+
self._description = None
|
|
75
|
+
self._image_url = None
|
|
76
|
+
self._name = None
|
|
77
|
+
self._org_id = None
|
|
78
|
+
self._pipeline_id = None
|
|
79
|
+
self._project_id = None
|
|
80
|
+
self._thumbnail = None
|
|
81
|
+
self._thumbnail_file_type = None
|
|
82
|
+
self._version = None
|
|
83
|
+
self._visibility = None
|
|
84
|
+
self.discriminator = None
|
|
85
|
+
if about_page_content is not None:
|
|
86
|
+
self.about_page_content = about_page_content
|
|
87
|
+
if description is not None:
|
|
88
|
+
self.description = description
|
|
89
|
+
if image_url is not None:
|
|
90
|
+
self.image_url = image_url
|
|
91
|
+
if name is not None:
|
|
92
|
+
self.name = name
|
|
93
|
+
if org_id is not None:
|
|
94
|
+
self.org_id = org_id
|
|
95
|
+
if pipeline_id is not None:
|
|
96
|
+
self.pipeline_id = pipeline_id
|
|
97
|
+
if project_id is not None:
|
|
98
|
+
self.project_id = project_id
|
|
99
|
+
if thumbnail is not None:
|
|
100
|
+
self.thumbnail = thumbnail
|
|
101
|
+
if thumbnail_file_type is not None:
|
|
102
|
+
self.thumbnail_file_type = thumbnail_file_type
|
|
103
|
+
if version is not None:
|
|
104
|
+
self.version = version
|
|
105
|
+
if visibility is not None:
|
|
106
|
+
self.visibility = visibility
|
|
107
|
+
|
|
108
|
+
@property
|
|
109
|
+
def about_page_content(self) -> 'str':
|
|
110
|
+
"""Gets the about_page_content of this V1CreatePipelineTemplateRequest. # noqa: E501
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
:return: The about_page_content of this V1CreatePipelineTemplateRequest. # noqa: E501
|
|
114
|
+
:rtype: str
|
|
115
|
+
"""
|
|
116
|
+
return self._about_page_content
|
|
117
|
+
|
|
118
|
+
@about_page_content.setter
|
|
119
|
+
def about_page_content(self, about_page_content: 'str'):
|
|
120
|
+
"""Sets the about_page_content of this V1CreatePipelineTemplateRequest.
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
:param about_page_content: The about_page_content of this V1CreatePipelineTemplateRequest. # noqa: E501
|
|
124
|
+
:type: str
|
|
125
|
+
"""
|
|
126
|
+
|
|
127
|
+
self._about_page_content = about_page_content
|
|
128
|
+
|
|
129
|
+
@property
|
|
130
|
+
def description(self) -> 'str':
|
|
131
|
+
"""Gets the description of this V1CreatePipelineTemplateRequest. # noqa: E501
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
:return: The description of this V1CreatePipelineTemplateRequest. # noqa: E501
|
|
135
|
+
:rtype: str
|
|
136
|
+
"""
|
|
137
|
+
return self._description
|
|
138
|
+
|
|
139
|
+
@description.setter
|
|
140
|
+
def description(self, description: 'str'):
|
|
141
|
+
"""Sets the description of this V1CreatePipelineTemplateRequest.
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
:param description: The description of this V1CreatePipelineTemplateRequest. # noqa: E501
|
|
145
|
+
:type: str
|
|
146
|
+
"""
|
|
147
|
+
|
|
148
|
+
self._description = description
|
|
149
|
+
|
|
150
|
+
@property
|
|
151
|
+
def image_url(self) -> 'str':
|
|
152
|
+
"""Gets the image_url of this V1CreatePipelineTemplateRequest. # noqa: E501
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
:return: The image_url of this V1CreatePipelineTemplateRequest. # noqa: E501
|
|
156
|
+
:rtype: str
|
|
157
|
+
"""
|
|
158
|
+
return self._image_url
|
|
159
|
+
|
|
160
|
+
@image_url.setter
|
|
161
|
+
def image_url(self, image_url: 'str'):
|
|
162
|
+
"""Sets the image_url of this V1CreatePipelineTemplateRequest.
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
:param image_url: The image_url of this V1CreatePipelineTemplateRequest. # noqa: E501
|
|
166
|
+
:type: str
|
|
167
|
+
"""
|
|
168
|
+
|
|
169
|
+
self._image_url = image_url
|
|
170
|
+
|
|
171
|
+
@property
|
|
172
|
+
def name(self) -> 'str':
|
|
173
|
+
"""Gets the name of this V1CreatePipelineTemplateRequest. # noqa: E501
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
:return: The name of this V1CreatePipelineTemplateRequest. # noqa: E501
|
|
177
|
+
:rtype: str
|
|
178
|
+
"""
|
|
179
|
+
return self._name
|
|
180
|
+
|
|
181
|
+
@name.setter
|
|
182
|
+
def name(self, name: 'str'):
|
|
183
|
+
"""Sets the name of this V1CreatePipelineTemplateRequest.
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
:param name: The name of this V1CreatePipelineTemplateRequest. # noqa: E501
|
|
187
|
+
:type: str
|
|
188
|
+
"""
|
|
189
|
+
|
|
190
|
+
self._name = name
|
|
191
|
+
|
|
192
|
+
@property
|
|
193
|
+
def org_id(self) -> 'str':
|
|
194
|
+
"""Gets the org_id of this V1CreatePipelineTemplateRequest. # noqa: E501
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
:return: The org_id of this V1CreatePipelineTemplateRequest. # noqa: E501
|
|
198
|
+
:rtype: str
|
|
199
|
+
"""
|
|
200
|
+
return self._org_id
|
|
201
|
+
|
|
202
|
+
@org_id.setter
|
|
203
|
+
def org_id(self, org_id: 'str'):
|
|
204
|
+
"""Sets the org_id of this V1CreatePipelineTemplateRequest.
|
|
205
|
+
|
|
206
|
+
|
|
207
|
+
:param org_id: The org_id of this V1CreatePipelineTemplateRequest. # noqa: E501
|
|
208
|
+
:type: str
|
|
209
|
+
"""
|
|
210
|
+
|
|
211
|
+
self._org_id = org_id
|
|
212
|
+
|
|
213
|
+
@property
|
|
214
|
+
def pipeline_id(self) -> 'str':
|
|
215
|
+
"""Gets the pipeline_id of this V1CreatePipelineTemplateRequest. # noqa: E501
|
|
216
|
+
|
|
217
|
+
|
|
218
|
+
:return: The pipeline_id of this V1CreatePipelineTemplateRequest. # noqa: E501
|
|
219
|
+
:rtype: str
|
|
220
|
+
"""
|
|
221
|
+
return self._pipeline_id
|
|
222
|
+
|
|
223
|
+
@pipeline_id.setter
|
|
224
|
+
def pipeline_id(self, pipeline_id: 'str'):
|
|
225
|
+
"""Sets the pipeline_id of this V1CreatePipelineTemplateRequest.
|
|
226
|
+
|
|
227
|
+
|
|
228
|
+
:param pipeline_id: The pipeline_id of this V1CreatePipelineTemplateRequest. # noqa: E501
|
|
229
|
+
:type: str
|
|
230
|
+
"""
|
|
231
|
+
|
|
232
|
+
self._pipeline_id = pipeline_id
|
|
233
|
+
|
|
234
|
+
@property
|
|
235
|
+
def project_id(self) -> 'str':
|
|
236
|
+
"""Gets the project_id of this V1CreatePipelineTemplateRequest. # noqa: E501
|
|
237
|
+
|
|
238
|
+
|
|
239
|
+
:return: The project_id of this V1CreatePipelineTemplateRequest. # noqa: E501
|
|
240
|
+
:rtype: str
|
|
241
|
+
"""
|
|
242
|
+
return self._project_id
|
|
243
|
+
|
|
244
|
+
@project_id.setter
|
|
245
|
+
def project_id(self, project_id: 'str'):
|
|
246
|
+
"""Sets the project_id of this V1CreatePipelineTemplateRequest.
|
|
247
|
+
|
|
248
|
+
|
|
249
|
+
:param project_id: The project_id of this V1CreatePipelineTemplateRequest. # noqa: E501
|
|
250
|
+
:type: str
|
|
251
|
+
"""
|
|
252
|
+
|
|
253
|
+
self._project_id = project_id
|
|
254
|
+
|
|
255
|
+
@property
|
|
256
|
+
def thumbnail(self) -> 'str':
|
|
257
|
+
"""Gets the thumbnail of this V1CreatePipelineTemplateRequest. # noqa: E501
|
|
258
|
+
|
|
259
|
+
|
|
260
|
+
:return: The thumbnail of this V1CreatePipelineTemplateRequest. # noqa: E501
|
|
261
|
+
:rtype: str
|
|
262
|
+
"""
|
|
263
|
+
return self._thumbnail
|
|
264
|
+
|
|
265
|
+
@thumbnail.setter
|
|
266
|
+
def thumbnail(self, thumbnail: 'str'):
|
|
267
|
+
"""Sets the thumbnail of this V1CreatePipelineTemplateRequest.
|
|
268
|
+
|
|
269
|
+
|
|
270
|
+
:param thumbnail: The thumbnail of this V1CreatePipelineTemplateRequest. # noqa: E501
|
|
271
|
+
:type: str
|
|
272
|
+
"""
|
|
273
|
+
|
|
274
|
+
self._thumbnail = thumbnail
|
|
275
|
+
|
|
276
|
+
@property
|
|
277
|
+
def thumbnail_file_type(self) -> 'str':
|
|
278
|
+
"""Gets the thumbnail_file_type of this V1CreatePipelineTemplateRequest. # noqa: E501
|
|
279
|
+
|
|
280
|
+
|
|
281
|
+
:return: The thumbnail_file_type of this V1CreatePipelineTemplateRequest. # noqa: E501
|
|
282
|
+
:rtype: str
|
|
283
|
+
"""
|
|
284
|
+
return self._thumbnail_file_type
|
|
285
|
+
|
|
286
|
+
@thumbnail_file_type.setter
|
|
287
|
+
def thumbnail_file_type(self, thumbnail_file_type: 'str'):
|
|
288
|
+
"""Sets the thumbnail_file_type of this V1CreatePipelineTemplateRequest.
|
|
289
|
+
|
|
290
|
+
|
|
291
|
+
:param thumbnail_file_type: The thumbnail_file_type of this V1CreatePipelineTemplateRequest. # noqa: E501
|
|
292
|
+
:type: str
|
|
293
|
+
"""
|
|
294
|
+
|
|
295
|
+
self._thumbnail_file_type = thumbnail_file_type
|
|
296
|
+
|
|
297
|
+
@property
|
|
298
|
+
def version(self) -> 'int':
|
|
299
|
+
"""Gets the version of this V1CreatePipelineTemplateRequest. # noqa: E501
|
|
300
|
+
|
|
301
|
+
|
|
302
|
+
:return: The version of this V1CreatePipelineTemplateRequest. # noqa: E501
|
|
303
|
+
:rtype: int
|
|
304
|
+
"""
|
|
305
|
+
return self._version
|
|
306
|
+
|
|
307
|
+
@version.setter
|
|
308
|
+
def version(self, version: 'int'):
|
|
309
|
+
"""Sets the version of this V1CreatePipelineTemplateRequest.
|
|
310
|
+
|
|
311
|
+
|
|
312
|
+
:param version: The version of this V1CreatePipelineTemplateRequest. # noqa: E501
|
|
313
|
+
:type: int
|
|
314
|
+
"""
|
|
315
|
+
|
|
316
|
+
self._version = version
|
|
317
|
+
|
|
318
|
+
@property
|
|
319
|
+
def visibility(self) -> 'V1PipelineTemplateVisibilityType':
|
|
320
|
+
"""Gets the visibility of this V1CreatePipelineTemplateRequest. # noqa: E501
|
|
321
|
+
|
|
322
|
+
|
|
323
|
+
:return: The visibility of this V1CreatePipelineTemplateRequest. # noqa: E501
|
|
324
|
+
:rtype: V1PipelineTemplateVisibilityType
|
|
325
|
+
"""
|
|
326
|
+
return self._visibility
|
|
327
|
+
|
|
328
|
+
@visibility.setter
|
|
329
|
+
def visibility(self, visibility: 'V1PipelineTemplateVisibilityType'):
|
|
330
|
+
"""Sets the visibility of this V1CreatePipelineTemplateRequest.
|
|
331
|
+
|
|
332
|
+
|
|
333
|
+
:param visibility: The visibility of this V1CreatePipelineTemplateRequest. # noqa: E501
|
|
334
|
+
:type: V1PipelineTemplateVisibilityType
|
|
335
|
+
"""
|
|
336
|
+
|
|
337
|
+
self._visibility = visibility
|
|
338
|
+
|
|
339
|
+
def to_dict(self) -> dict:
|
|
340
|
+
"""Returns the model properties as a dict"""
|
|
341
|
+
result = {}
|
|
342
|
+
|
|
343
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
344
|
+
value = getattr(self, attr)
|
|
345
|
+
if isinstance(value, list):
|
|
346
|
+
result[attr] = list(map(
|
|
347
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
348
|
+
value
|
|
349
|
+
))
|
|
350
|
+
elif hasattr(value, "to_dict"):
|
|
351
|
+
result[attr] = value.to_dict()
|
|
352
|
+
elif isinstance(value, dict):
|
|
353
|
+
result[attr] = dict(map(
|
|
354
|
+
lambda item: (item[0], item[1].to_dict())
|
|
355
|
+
if hasattr(item[1], "to_dict") else item,
|
|
356
|
+
value.items()
|
|
357
|
+
))
|
|
358
|
+
else:
|
|
359
|
+
result[attr] = value
|
|
360
|
+
if issubclass(V1CreatePipelineTemplateRequest, dict):
|
|
361
|
+
for key, value in self.items():
|
|
362
|
+
result[key] = value
|
|
363
|
+
|
|
364
|
+
return result
|
|
365
|
+
|
|
366
|
+
def to_str(self) -> str:
|
|
367
|
+
"""Returns the string representation of the model"""
|
|
368
|
+
return pprint.pformat(self.to_dict())
|
|
369
|
+
|
|
370
|
+
def __repr__(self) -> str:
|
|
371
|
+
"""For `print` and `pprint`"""
|
|
372
|
+
return self.to_str()
|
|
373
|
+
|
|
374
|
+
def __eq__(self, other: 'V1CreatePipelineTemplateRequest') -> bool:
|
|
375
|
+
"""Returns true if both objects are equal"""
|
|
376
|
+
if not isinstance(other, V1CreatePipelineTemplateRequest):
|
|
377
|
+
return False
|
|
378
|
+
|
|
379
|
+
return self.__dict__ == other.__dict__
|
|
380
|
+
|
|
381
|
+
def __ne__(self, other: 'V1CreatePipelineTemplateRequest') -> bool:
|
|
382
|
+
"""Returns true if both objects are not equal"""
|
|
383
|
+
return not self == other
|
|
@@ -41,6 +41,7 @@ class V1CreateProjectRequest(object):
|
|
|
41
41
|
and the value is json key in definition.
|
|
42
42
|
"""
|
|
43
43
|
swagger_types = {
|
|
44
|
+
'default_machine_image_version': 'str',
|
|
44
45
|
'description': 'str',
|
|
45
46
|
'display_name': 'str',
|
|
46
47
|
'name': 'str',
|
|
@@ -50,6 +51,7 @@ class V1CreateProjectRequest(object):
|
|
|
50
51
|
}
|
|
51
52
|
|
|
52
53
|
attribute_map = {
|
|
54
|
+
'default_machine_image_version': 'defaultMachineImageVersion',
|
|
53
55
|
'description': 'description',
|
|
54
56
|
'display_name': 'displayName',
|
|
55
57
|
'name': 'name',
|
|
@@ -58,8 +60,9 @@ class V1CreateProjectRequest(object):
|
|
|
58
60
|
'quotas': 'quotas'
|
|
59
61
|
}
|
|
60
62
|
|
|
61
|
-
def __init__(self, description: 'str' =None, display_name: 'str' =None, name: 'str' =None, organization_id: 'str' =None, preferred_cluster: 'str' =None, quotas: 'V1Quotas' =None): # noqa: E501
|
|
63
|
+
def __init__(self, default_machine_image_version: 'str' =None, description: 'str' =None, display_name: 'str' =None, name: 'str' =None, organization_id: 'str' =None, preferred_cluster: 'str' =None, quotas: 'V1Quotas' =None): # noqa: E501
|
|
62
64
|
"""V1CreateProjectRequest - a model defined in Swagger""" # noqa: E501
|
|
65
|
+
self._default_machine_image_version = None
|
|
63
66
|
self._description = None
|
|
64
67
|
self._display_name = None
|
|
65
68
|
self._name = None
|
|
@@ -67,6 +70,8 @@ class V1CreateProjectRequest(object):
|
|
|
67
70
|
self._preferred_cluster = None
|
|
68
71
|
self._quotas = None
|
|
69
72
|
self.discriminator = None
|
|
73
|
+
if default_machine_image_version is not None:
|
|
74
|
+
self.default_machine_image_version = default_machine_image_version
|
|
70
75
|
if description is not None:
|
|
71
76
|
self.description = description
|
|
72
77
|
if display_name is not None:
|
|
@@ -80,6 +85,27 @@ class V1CreateProjectRequest(object):
|
|
|
80
85
|
if quotas is not None:
|
|
81
86
|
self.quotas = quotas
|
|
82
87
|
|
|
88
|
+
@property
|
|
89
|
+
def default_machine_image_version(self) -> 'str':
|
|
90
|
+
"""Gets the default_machine_image_version of this V1CreateProjectRequest. # noqa: E501
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
:return: The default_machine_image_version of this V1CreateProjectRequest. # noqa: E501
|
|
94
|
+
:rtype: str
|
|
95
|
+
"""
|
|
96
|
+
return self._default_machine_image_version
|
|
97
|
+
|
|
98
|
+
@default_machine_image_version.setter
|
|
99
|
+
def default_machine_image_version(self, default_machine_image_version: 'str'):
|
|
100
|
+
"""Sets the default_machine_image_version of this V1CreateProjectRequest.
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
:param default_machine_image_version: The default_machine_image_version of this V1CreateProjectRequest. # noqa: E501
|
|
104
|
+
:type: str
|
|
105
|
+
"""
|
|
106
|
+
|
|
107
|
+
self._default_machine_image_version = default_machine_image_version
|
|
108
|
+
|
|
83
109
|
@property
|
|
84
110
|
def description(self) -> 'str':
|
|
85
111
|
"""Gets the description of this V1CreateProjectRequest. # noqa: E501
|
|
@@ -0,0 +1,97 @@
|
|
|
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 V1CreateServerAlertResponse(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
|
+
}
|
|
45
|
+
|
|
46
|
+
attribute_map = {
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
def __init__(self): # noqa: E501
|
|
50
|
+
"""V1CreateServerAlertResponse - a model defined in Swagger""" # noqa: E501
|
|
51
|
+
self.discriminator = None
|
|
52
|
+
|
|
53
|
+
def to_dict(self) -> dict:
|
|
54
|
+
"""Returns the model properties as a dict"""
|
|
55
|
+
result = {}
|
|
56
|
+
|
|
57
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
58
|
+
value = getattr(self, attr)
|
|
59
|
+
if isinstance(value, list):
|
|
60
|
+
result[attr] = list(map(
|
|
61
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
62
|
+
value
|
|
63
|
+
))
|
|
64
|
+
elif hasattr(value, "to_dict"):
|
|
65
|
+
result[attr] = value.to_dict()
|
|
66
|
+
elif isinstance(value, dict):
|
|
67
|
+
result[attr] = dict(map(
|
|
68
|
+
lambda item: (item[0], item[1].to_dict())
|
|
69
|
+
if hasattr(item[1], "to_dict") else item,
|
|
70
|
+
value.items()
|
|
71
|
+
))
|
|
72
|
+
else:
|
|
73
|
+
result[attr] = value
|
|
74
|
+
if issubclass(V1CreateServerAlertResponse, dict):
|
|
75
|
+
for key, value in self.items():
|
|
76
|
+
result[key] = value
|
|
77
|
+
|
|
78
|
+
return result
|
|
79
|
+
|
|
80
|
+
def to_str(self) -> str:
|
|
81
|
+
"""Returns the string representation of the model"""
|
|
82
|
+
return pprint.pformat(self.to_dict())
|
|
83
|
+
|
|
84
|
+
def __repr__(self) -> str:
|
|
85
|
+
"""For `print` and `pprint`"""
|
|
86
|
+
return self.to_str()
|
|
87
|
+
|
|
88
|
+
def __eq__(self, other: 'V1CreateServerAlertResponse') -> bool:
|
|
89
|
+
"""Returns true if both objects are equal"""
|
|
90
|
+
if not isinstance(other, V1CreateServerAlertResponse):
|
|
91
|
+
return False
|
|
92
|
+
|
|
93
|
+
return self.__dict__ == other.__dict__
|
|
94
|
+
|
|
95
|
+
def __ne__(self, other: 'V1CreateServerAlertResponse') -> bool:
|
|
96
|
+
"""Returns true if both objects are not equal"""
|
|
97
|
+
return not self == other
|
|
@@ -47,6 +47,7 @@ class V1DataConnection(object):
|
|
|
47
47
|
'cluster_id': 'str',
|
|
48
48
|
'created_at': 'datetime',
|
|
49
49
|
'efs': 'V1EfsConfig',
|
|
50
|
+
'error': 'str',
|
|
50
51
|
'filestore': 'V1FilestoreDataConnection',
|
|
51
52
|
'gcp': 'V1GcpDataConnection',
|
|
52
53
|
'gcs_folder': 'V1GCSFolderDataConnection',
|
|
@@ -74,6 +75,7 @@ class V1DataConnection(object):
|
|
|
74
75
|
'cluster_id': 'clusterId',
|
|
75
76
|
'created_at': 'createdAt',
|
|
76
77
|
'efs': 'efs',
|
|
78
|
+
'error': 'error',
|
|
77
79
|
'filestore': 'filestore',
|
|
78
80
|
'gcp': 'gcp',
|
|
79
81
|
'gcs_folder': 'gcsFolder',
|
|
@@ -94,7 +96,7 @@ class V1DataConnection(object):
|
|
|
94
96
|
'writable': 'writable'
|
|
95
97
|
}
|
|
96
98
|
|
|
97
|
-
def __init__(self, access_cluster_ids: 'list[str]' =None, accessible: 'bool' =None, aws: 'V1AwsDataConnection' =None, cluster_id: 'str' =None, created_at: 'datetime' =None, efs: 'V1EfsConfig' =None, filestore: 'V1FilestoreDataConnection' =None, gcp: 'V1GcpDataConnection' =None, gcs_folder: 'V1GCSFolderDataConnection' =None, id: 'str' =None, index: 'V1Index' =None, is_managed: 'bool' =None, lock_out: 'bool' =None, name: 'str' =None, number_of_files: 'str' =None, project_id: 'str' =None, run_cmds: 'list[str]' =None, s3_folder: 'V1S3FolderDataConnection' =None, snowflake: 'V1SnowflakeDataConnection' =None, state: 'V1DataConnectionState' =None, total_size_bytes: 'str' =None, type: 'str' =None, updated_at: 'datetime' =None, writable: 'bool' =None): # noqa: E501
|
|
99
|
+
def __init__(self, access_cluster_ids: 'list[str]' =None, accessible: 'bool' =None, aws: 'V1AwsDataConnection' =None, cluster_id: 'str' =None, created_at: 'datetime' =None, efs: 'V1EfsConfig' =None, error: 'str' =None, filestore: 'V1FilestoreDataConnection' =None, gcp: 'V1GcpDataConnection' =None, gcs_folder: 'V1GCSFolderDataConnection' =None, id: 'str' =None, index: 'V1Index' =None, is_managed: 'bool' =None, lock_out: 'bool' =None, name: 'str' =None, number_of_files: 'str' =None, project_id: 'str' =None, run_cmds: 'list[str]' =None, s3_folder: 'V1S3FolderDataConnection' =None, snowflake: 'V1SnowflakeDataConnection' =None, state: 'V1DataConnectionState' =None, total_size_bytes: 'str' =None, type: 'str' =None, updated_at: 'datetime' =None, writable: 'bool' =None): # noqa: E501
|
|
98
100
|
"""V1DataConnection - a model defined in Swagger""" # noqa: E501
|
|
99
101
|
self._access_cluster_ids = None
|
|
100
102
|
self._accessible = None
|
|
@@ -102,6 +104,7 @@ class V1DataConnection(object):
|
|
|
102
104
|
self._cluster_id = None
|
|
103
105
|
self._created_at = None
|
|
104
106
|
self._efs = None
|
|
107
|
+
self._error = None
|
|
105
108
|
self._filestore = None
|
|
106
109
|
self._gcp = None
|
|
107
110
|
self._gcs_folder = None
|
|
@@ -133,6 +136,8 @@ class V1DataConnection(object):
|
|
|
133
136
|
self.created_at = created_at
|
|
134
137
|
if efs is not None:
|
|
135
138
|
self.efs = efs
|
|
139
|
+
if error is not None:
|
|
140
|
+
self.error = error
|
|
136
141
|
if filestore is not None:
|
|
137
142
|
self.filestore = filestore
|
|
138
143
|
if gcp is not None:
|
|
@@ -296,6 +301,27 @@ class V1DataConnection(object):
|
|
|
296
301
|
|
|
297
302
|
self._efs = efs
|
|
298
303
|
|
|
304
|
+
@property
|
|
305
|
+
def error(self) -> 'str':
|
|
306
|
+
"""Gets the error of this V1DataConnection. # noqa: E501
|
|
307
|
+
|
|
308
|
+
|
|
309
|
+
:return: The error of this V1DataConnection. # noqa: E501
|
|
310
|
+
:rtype: str
|
|
311
|
+
"""
|
|
312
|
+
return self._error
|
|
313
|
+
|
|
314
|
+
@error.setter
|
|
315
|
+
def error(self, error: 'str'):
|
|
316
|
+
"""Sets the error of this V1DataConnection.
|
|
317
|
+
|
|
318
|
+
|
|
319
|
+
:param error: The error of this V1DataConnection. # noqa: E501
|
|
320
|
+
:type: str
|
|
321
|
+
"""
|
|
322
|
+
|
|
323
|
+
self._error = error
|
|
324
|
+
|
|
299
325
|
@property
|
|
300
326
|
def filestore(self) -> 'V1FilestoreDataConnection':
|
|
301
327
|
"""Gets the filestore of this V1DataConnection. # noqa: E501
|