lightning-sdk 0.2.3__py3-none-any.whl → 0.2.5__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 +10 -17
- lightning_sdk/api/ai_hub_api.py +20 -3
- lightning_sdk/api/studio_api.py +0 -8
- lightning_sdk/cli/serve.py +139 -22
- lightning_sdk/deployment/deployment.py +32 -4
- lightning_sdk/lightning_cloud/openapi/__init__.py +49 -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 +10 -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 +5 -1
- 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 +45 -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 +227 -0
- lightning_sdk/lightning_cloud/openapi/models/externalv1_cloud_space_instance_status.py +69 -69
- 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_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/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 +253 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_spec.py +27 -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 +149 -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_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_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_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_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_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_schedule.py +435 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_schedule_resource_type.py +103 -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_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 +157 -105
- 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/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 +2 -0
- lightning_sdk/lit_container.py +8 -1
- lightning_sdk/mmt/mmt.py +1 -18
- lightning_sdk/mmt/v1.py +1 -28
- lightning_sdk/models.py +15 -6
- lightning_sdk/pipeline/pipeline.py +2 -2
- lightning_sdk/pipeline/types.py +28 -2
- lightning_sdk/pipeline/utils.py +1 -1
- lightning_sdk/plugin.py +0 -6
- lightning_sdk/serve.py +55 -22
- lightning_sdk/utils/resolve.py +1 -0
- {lightning_sdk-0.2.3.dist-info → lightning_sdk-0.2.5.dist-info}/METADATA +1 -1
- {lightning_sdk-0.2.3.dist-info → lightning_sdk-0.2.5.dist-info}/RECORD +110 -62
- {lightning_sdk-0.2.3.dist-info → lightning_sdk-0.2.5.dist-info}/WHEEL +1 -1
- {lightning_sdk-0.2.3.dist-info → lightning_sdk-0.2.5.dist-info}/LICENSE +0 -0
- {lightning_sdk-0.2.3.dist-info → lightning_sdk-0.2.5.dist-info}/entry_points.txt +0 -0
- {lightning_sdk-0.2.3.dist-info → lightning_sdk-0.2.5.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,539 @@
|
|
|
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 V1LitDataset(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
|
+
'categories': 'list[str]',
|
|
45
|
+
'created_at': 'datetime',
|
|
46
|
+
'creator_username': 'str',
|
|
47
|
+
'dataset_metadata': 'dict(str, str)',
|
|
48
|
+
'default_version': 'V1LitDatasetVersionArchive',
|
|
49
|
+
'description': 'str',
|
|
50
|
+
'downloads': 'str',
|
|
51
|
+
'id': 'str',
|
|
52
|
+
'latest_version': 'V1LitDatasetVersionArchive',
|
|
53
|
+
'license': 'str',
|
|
54
|
+
'name': 'str',
|
|
55
|
+
'private': 'bool',
|
|
56
|
+
'project_id': 'str',
|
|
57
|
+
'tags': 'list[str]',
|
|
58
|
+
'updated_at': 'datetime',
|
|
59
|
+
'user_id': 'str',
|
|
60
|
+
'visibility': 'V1ResourceVisibility'
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
attribute_map = {
|
|
64
|
+
'categories': 'categories',
|
|
65
|
+
'created_at': 'createdAt',
|
|
66
|
+
'creator_username': 'creatorUsername',
|
|
67
|
+
'dataset_metadata': 'datasetMetadata',
|
|
68
|
+
'default_version': 'defaultVersion',
|
|
69
|
+
'description': 'description',
|
|
70
|
+
'downloads': 'downloads',
|
|
71
|
+
'id': 'id',
|
|
72
|
+
'latest_version': 'latestVersion',
|
|
73
|
+
'license': 'license',
|
|
74
|
+
'name': 'name',
|
|
75
|
+
'private': 'private',
|
|
76
|
+
'project_id': 'projectId',
|
|
77
|
+
'tags': 'tags',
|
|
78
|
+
'updated_at': 'updatedAt',
|
|
79
|
+
'user_id': 'userId',
|
|
80
|
+
'visibility': 'visibility'
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
def __init__(self, categories: 'list[str]' =None, created_at: 'datetime' =None, creator_username: 'str' =None, dataset_metadata: 'dict(str, str)' =None, default_version: 'V1LitDatasetVersionArchive' =None, description: 'str' =None, downloads: 'str' =None, id: 'str' =None, latest_version: 'V1LitDatasetVersionArchive' =None, license: 'str' =None, name: 'str' =None, private: 'bool' =None, project_id: 'str' =None, tags: 'list[str]' =None, updated_at: 'datetime' =None, user_id: 'str' =None, visibility: 'V1ResourceVisibility' =None): # noqa: E501
|
|
84
|
+
"""V1LitDataset - a model defined in Swagger""" # noqa: E501
|
|
85
|
+
self._categories = None
|
|
86
|
+
self._created_at = None
|
|
87
|
+
self._creator_username = None
|
|
88
|
+
self._dataset_metadata = None
|
|
89
|
+
self._default_version = None
|
|
90
|
+
self._description = None
|
|
91
|
+
self._downloads = None
|
|
92
|
+
self._id = None
|
|
93
|
+
self._latest_version = None
|
|
94
|
+
self._license = None
|
|
95
|
+
self._name = None
|
|
96
|
+
self._private = None
|
|
97
|
+
self._project_id = None
|
|
98
|
+
self._tags = None
|
|
99
|
+
self._updated_at = None
|
|
100
|
+
self._user_id = None
|
|
101
|
+
self._visibility = None
|
|
102
|
+
self.discriminator = None
|
|
103
|
+
if categories is not None:
|
|
104
|
+
self.categories = categories
|
|
105
|
+
if created_at is not None:
|
|
106
|
+
self.created_at = created_at
|
|
107
|
+
if creator_username is not None:
|
|
108
|
+
self.creator_username = creator_username
|
|
109
|
+
if dataset_metadata is not None:
|
|
110
|
+
self.dataset_metadata = dataset_metadata
|
|
111
|
+
if default_version is not None:
|
|
112
|
+
self.default_version = default_version
|
|
113
|
+
if description is not None:
|
|
114
|
+
self.description = description
|
|
115
|
+
if downloads is not None:
|
|
116
|
+
self.downloads = downloads
|
|
117
|
+
if id is not None:
|
|
118
|
+
self.id = id
|
|
119
|
+
if latest_version is not None:
|
|
120
|
+
self.latest_version = latest_version
|
|
121
|
+
if license is not None:
|
|
122
|
+
self.license = license
|
|
123
|
+
if name is not None:
|
|
124
|
+
self.name = name
|
|
125
|
+
if private is not None:
|
|
126
|
+
self.private = private
|
|
127
|
+
if project_id is not None:
|
|
128
|
+
self.project_id = project_id
|
|
129
|
+
if tags is not None:
|
|
130
|
+
self.tags = tags
|
|
131
|
+
if updated_at is not None:
|
|
132
|
+
self.updated_at = updated_at
|
|
133
|
+
if user_id is not None:
|
|
134
|
+
self.user_id = user_id
|
|
135
|
+
if visibility is not None:
|
|
136
|
+
self.visibility = visibility
|
|
137
|
+
|
|
138
|
+
@property
|
|
139
|
+
def categories(self) -> 'list[str]':
|
|
140
|
+
"""Gets the categories of this V1LitDataset. # noqa: E501
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
:return: The categories of this V1LitDataset. # noqa: E501
|
|
144
|
+
:rtype: list[str]
|
|
145
|
+
"""
|
|
146
|
+
return self._categories
|
|
147
|
+
|
|
148
|
+
@categories.setter
|
|
149
|
+
def categories(self, categories: 'list[str]'):
|
|
150
|
+
"""Sets the categories of this V1LitDataset.
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
:param categories: The categories of this V1LitDataset. # noqa: E501
|
|
154
|
+
:type: list[str]
|
|
155
|
+
"""
|
|
156
|
+
|
|
157
|
+
self._categories = categories
|
|
158
|
+
|
|
159
|
+
@property
|
|
160
|
+
def created_at(self) -> 'datetime':
|
|
161
|
+
"""Gets the created_at of this V1LitDataset. # noqa: E501
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
:return: The created_at of this V1LitDataset. # noqa: E501
|
|
165
|
+
:rtype: datetime
|
|
166
|
+
"""
|
|
167
|
+
return self._created_at
|
|
168
|
+
|
|
169
|
+
@created_at.setter
|
|
170
|
+
def created_at(self, created_at: 'datetime'):
|
|
171
|
+
"""Sets the created_at of this V1LitDataset.
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
:param created_at: The created_at of this V1LitDataset. # noqa: E501
|
|
175
|
+
:type: datetime
|
|
176
|
+
"""
|
|
177
|
+
|
|
178
|
+
self._created_at = created_at
|
|
179
|
+
|
|
180
|
+
@property
|
|
181
|
+
def creator_username(self) -> 'str':
|
|
182
|
+
"""Gets the creator_username of this V1LitDataset. # noqa: E501
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
:return: The creator_username of this V1LitDataset. # noqa: E501
|
|
186
|
+
:rtype: str
|
|
187
|
+
"""
|
|
188
|
+
return self._creator_username
|
|
189
|
+
|
|
190
|
+
@creator_username.setter
|
|
191
|
+
def creator_username(self, creator_username: 'str'):
|
|
192
|
+
"""Sets the creator_username of this V1LitDataset.
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
:param creator_username: The creator_username of this V1LitDataset. # noqa: E501
|
|
196
|
+
:type: str
|
|
197
|
+
"""
|
|
198
|
+
|
|
199
|
+
self._creator_username = creator_username
|
|
200
|
+
|
|
201
|
+
@property
|
|
202
|
+
def dataset_metadata(self) -> 'dict(str, str)':
|
|
203
|
+
"""Gets the dataset_metadata of this V1LitDataset. # noqa: E501
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
:return: The dataset_metadata of this V1LitDataset. # noqa: E501
|
|
207
|
+
:rtype: dict(str, str)
|
|
208
|
+
"""
|
|
209
|
+
return self._dataset_metadata
|
|
210
|
+
|
|
211
|
+
@dataset_metadata.setter
|
|
212
|
+
def dataset_metadata(self, dataset_metadata: 'dict(str, str)'):
|
|
213
|
+
"""Sets the dataset_metadata of this V1LitDataset.
|
|
214
|
+
|
|
215
|
+
|
|
216
|
+
:param dataset_metadata: The dataset_metadata of this V1LitDataset. # noqa: E501
|
|
217
|
+
:type: dict(str, str)
|
|
218
|
+
"""
|
|
219
|
+
|
|
220
|
+
self._dataset_metadata = dataset_metadata
|
|
221
|
+
|
|
222
|
+
@property
|
|
223
|
+
def default_version(self) -> 'V1LitDatasetVersionArchive':
|
|
224
|
+
"""Gets the default_version of this V1LitDataset. # noqa: E501
|
|
225
|
+
|
|
226
|
+
|
|
227
|
+
:return: The default_version of this V1LitDataset. # noqa: E501
|
|
228
|
+
:rtype: V1LitDatasetVersionArchive
|
|
229
|
+
"""
|
|
230
|
+
return self._default_version
|
|
231
|
+
|
|
232
|
+
@default_version.setter
|
|
233
|
+
def default_version(self, default_version: 'V1LitDatasetVersionArchive'):
|
|
234
|
+
"""Sets the default_version of this V1LitDataset.
|
|
235
|
+
|
|
236
|
+
|
|
237
|
+
:param default_version: The default_version of this V1LitDataset. # noqa: E501
|
|
238
|
+
:type: V1LitDatasetVersionArchive
|
|
239
|
+
"""
|
|
240
|
+
|
|
241
|
+
self._default_version = default_version
|
|
242
|
+
|
|
243
|
+
@property
|
|
244
|
+
def description(self) -> 'str':
|
|
245
|
+
"""Gets the description of this V1LitDataset. # noqa: E501
|
|
246
|
+
|
|
247
|
+
|
|
248
|
+
:return: The description of this V1LitDataset. # noqa: E501
|
|
249
|
+
:rtype: str
|
|
250
|
+
"""
|
|
251
|
+
return self._description
|
|
252
|
+
|
|
253
|
+
@description.setter
|
|
254
|
+
def description(self, description: 'str'):
|
|
255
|
+
"""Sets the description of this V1LitDataset.
|
|
256
|
+
|
|
257
|
+
|
|
258
|
+
:param description: The description of this V1LitDataset. # noqa: E501
|
|
259
|
+
:type: str
|
|
260
|
+
"""
|
|
261
|
+
|
|
262
|
+
self._description = description
|
|
263
|
+
|
|
264
|
+
@property
|
|
265
|
+
def downloads(self) -> 'str':
|
|
266
|
+
"""Gets the downloads of this V1LitDataset. # noqa: E501
|
|
267
|
+
|
|
268
|
+
|
|
269
|
+
:return: The downloads of this V1LitDataset. # noqa: E501
|
|
270
|
+
:rtype: str
|
|
271
|
+
"""
|
|
272
|
+
return self._downloads
|
|
273
|
+
|
|
274
|
+
@downloads.setter
|
|
275
|
+
def downloads(self, downloads: 'str'):
|
|
276
|
+
"""Sets the downloads of this V1LitDataset.
|
|
277
|
+
|
|
278
|
+
|
|
279
|
+
:param downloads: The downloads of this V1LitDataset. # noqa: E501
|
|
280
|
+
:type: str
|
|
281
|
+
"""
|
|
282
|
+
|
|
283
|
+
self._downloads = downloads
|
|
284
|
+
|
|
285
|
+
@property
|
|
286
|
+
def id(self) -> 'str':
|
|
287
|
+
"""Gets the id of this V1LitDataset. # noqa: E501
|
|
288
|
+
|
|
289
|
+
|
|
290
|
+
:return: The id of this V1LitDataset. # noqa: E501
|
|
291
|
+
:rtype: str
|
|
292
|
+
"""
|
|
293
|
+
return self._id
|
|
294
|
+
|
|
295
|
+
@id.setter
|
|
296
|
+
def id(self, id: 'str'):
|
|
297
|
+
"""Sets the id of this V1LitDataset.
|
|
298
|
+
|
|
299
|
+
|
|
300
|
+
:param id: The id of this V1LitDataset. # noqa: E501
|
|
301
|
+
:type: str
|
|
302
|
+
"""
|
|
303
|
+
|
|
304
|
+
self._id = id
|
|
305
|
+
|
|
306
|
+
@property
|
|
307
|
+
def latest_version(self) -> 'V1LitDatasetVersionArchive':
|
|
308
|
+
"""Gets the latest_version of this V1LitDataset. # noqa: E501
|
|
309
|
+
|
|
310
|
+
|
|
311
|
+
:return: The latest_version of this V1LitDataset. # noqa: E501
|
|
312
|
+
:rtype: V1LitDatasetVersionArchive
|
|
313
|
+
"""
|
|
314
|
+
return self._latest_version
|
|
315
|
+
|
|
316
|
+
@latest_version.setter
|
|
317
|
+
def latest_version(self, latest_version: 'V1LitDatasetVersionArchive'):
|
|
318
|
+
"""Sets the latest_version of this V1LitDataset.
|
|
319
|
+
|
|
320
|
+
|
|
321
|
+
:param latest_version: The latest_version of this V1LitDataset. # noqa: E501
|
|
322
|
+
:type: V1LitDatasetVersionArchive
|
|
323
|
+
"""
|
|
324
|
+
|
|
325
|
+
self._latest_version = latest_version
|
|
326
|
+
|
|
327
|
+
@property
|
|
328
|
+
def license(self) -> 'str':
|
|
329
|
+
"""Gets the license of this V1LitDataset. # noqa: E501
|
|
330
|
+
|
|
331
|
+
|
|
332
|
+
:return: The license of this V1LitDataset. # noqa: E501
|
|
333
|
+
:rtype: str
|
|
334
|
+
"""
|
|
335
|
+
return self._license
|
|
336
|
+
|
|
337
|
+
@license.setter
|
|
338
|
+
def license(self, license: 'str'):
|
|
339
|
+
"""Sets the license of this V1LitDataset.
|
|
340
|
+
|
|
341
|
+
|
|
342
|
+
:param license: The license of this V1LitDataset. # noqa: E501
|
|
343
|
+
:type: str
|
|
344
|
+
"""
|
|
345
|
+
|
|
346
|
+
self._license = license
|
|
347
|
+
|
|
348
|
+
@property
|
|
349
|
+
def name(self) -> 'str':
|
|
350
|
+
"""Gets the name of this V1LitDataset. # noqa: E501
|
|
351
|
+
|
|
352
|
+
|
|
353
|
+
:return: The name of this V1LitDataset. # noqa: E501
|
|
354
|
+
:rtype: str
|
|
355
|
+
"""
|
|
356
|
+
return self._name
|
|
357
|
+
|
|
358
|
+
@name.setter
|
|
359
|
+
def name(self, name: 'str'):
|
|
360
|
+
"""Sets the name of this V1LitDataset.
|
|
361
|
+
|
|
362
|
+
|
|
363
|
+
:param name: The name of this V1LitDataset. # noqa: E501
|
|
364
|
+
:type: str
|
|
365
|
+
"""
|
|
366
|
+
|
|
367
|
+
self._name = name
|
|
368
|
+
|
|
369
|
+
@property
|
|
370
|
+
def private(self) -> 'bool':
|
|
371
|
+
"""Gets the private of this V1LitDataset. # noqa: E501
|
|
372
|
+
|
|
373
|
+
|
|
374
|
+
:return: The private of this V1LitDataset. # noqa: E501
|
|
375
|
+
:rtype: bool
|
|
376
|
+
"""
|
|
377
|
+
return self._private
|
|
378
|
+
|
|
379
|
+
@private.setter
|
|
380
|
+
def private(self, private: 'bool'):
|
|
381
|
+
"""Sets the private of this V1LitDataset.
|
|
382
|
+
|
|
383
|
+
|
|
384
|
+
:param private: The private of this V1LitDataset. # noqa: E501
|
|
385
|
+
:type: bool
|
|
386
|
+
"""
|
|
387
|
+
|
|
388
|
+
self._private = private
|
|
389
|
+
|
|
390
|
+
@property
|
|
391
|
+
def project_id(self) -> 'str':
|
|
392
|
+
"""Gets the project_id of this V1LitDataset. # noqa: E501
|
|
393
|
+
|
|
394
|
+
|
|
395
|
+
:return: The project_id of this V1LitDataset. # noqa: E501
|
|
396
|
+
:rtype: str
|
|
397
|
+
"""
|
|
398
|
+
return self._project_id
|
|
399
|
+
|
|
400
|
+
@project_id.setter
|
|
401
|
+
def project_id(self, project_id: 'str'):
|
|
402
|
+
"""Sets the project_id of this V1LitDataset.
|
|
403
|
+
|
|
404
|
+
|
|
405
|
+
:param project_id: The project_id of this V1LitDataset. # noqa: E501
|
|
406
|
+
:type: str
|
|
407
|
+
"""
|
|
408
|
+
|
|
409
|
+
self._project_id = project_id
|
|
410
|
+
|
|
411
|
+
@property
|
|
412
|
+
def tags(self) -> 'list[str]':
|
|
413
|
+
"""Gets the tags of this V1LitDataset. # noqa: E501
|
|
414
|
+
|
|
415
|
+
|
|
416
|
+
:return: The tags of this V1LitDataset. # noqa: E501
|
|
417
|
+
:rtype: list[str]
|
|
418
|
+
"""
|
|
419
|
+
return self._tags
|
|
420
|
+
|
|
421
|
+
@tags.setter
|
|
422
|
+
def tags(self, tags: 'list[str]'):
|
|
423
|
+
"""Sets the tags of this V1LitDataset.
|
|
424
|
+
|
|
425
|
+
|
|
426
|
+
:param tags: The tags of this V1LitDataset. # noqa: E501
|
|
427
|
+
:type: list[str]
|
|
428
|
+
"""
|
|
429
|
+
|
|
430
|
+
self._tags = tags
|
|
431
|
+
|
|
432
|
+
@property
|
|
433
|
+
def updated_at(self) -> 'datetime':
|
|
434
|
+
"""Gets the updated_at of this V1LitDataset. # noqa: E501
|
|
435
|
+
|
|
436
|
+
|
|
437
|
+
:return: The updated_at of this V1LitDataset. # noqa: E501
|
|
438
|
+
:rtype: datetime
|
|
439
|
+
"""
|
|
440
|
+
return self._updated_at
|
|
441
|
+
|
|
442
|
+
@updated_at.setter
|
|
443
|
+
def updated_at(self, updated_at: 'datetime'):
|
|
444
|
+
"""Sets the updated_at of this V1LitDataset.
|
|
445
|
+
|
|
446
|
+
|
|
447
|
+
:param updated_at: The updated_at of this V1LitDataset. # noqa: E501
|
|
448
|
+
:type: datetime
|
|
449
|
+
"""
|
|
450
|
+
|
|
451
|
+
self._updated_at = updated_at
|
|
452
|
+
|
|
453
|
+
@property
|
|
454
|
+
def user_id(self) -> 'str':
|
|
455
|
+
"""Gets the user_id of this V1LitDataset. # noqa: E501
|
|
456
|
+
|
|
457
|
+
|
|
458
|
+
:return: The user_id of this V1LitDataset. # noqa: E501
|
|
459
|
+
:rtype: str
|
|
460
|
+
"""
|
|
461
|
+
return self._user_id
|
|
462
|
+
|
|
463
|
+
@user_id.setter
|
|
464
|
+
def user_id(self, user_id: 'str'):
|
|
465
|
+
"""Sets the user_id of this V1LitDataset.
|
|
466
|
+
|
|
467
|
+
|
|
468
|
+
:param user_id: The user_id of this V1LitDataset. # noqa: E501
|
|
469
|
+
:type: str
|
|
470
|
+
"""
|
|
471
|
+
|
|
472
|
+
self._user_id = user_id
|
|
473
|
+
|
|
474
|
+
@property
|
|
475
|
+
def visibility(self) -> 'V1ResourceVisibility':
|
|
476
|
+
"""Gets the visibility of this V1LitDataset. # noqa: E501
|
|
477
|
+
|
|
478
|
+
|
|
479
|
+
:return: The visibility of this V1LitDataset. # noqa: E501
|
|
480
|
+
:rtype: V1ResourceVisibility
|
|
481
|
+
"""
|
|
482
|
+
return self._visibility
|
|
483
|
+
|
|
484
|
+
@visibility.setter
|
|
485
|
+
def visibility(self, visibility: 'V1ResourceVisibility'):
|
|
486
|
+
"""Sets the visibility of this V1LitDataset.
|
|
487
|
+
|
|
488
|
+
|
|
489
|
+
:param visibility: The visibility of this V1LitDataset. # noqa: E501
|
|
490
|
+
:type: V1ResourceVisibility
|
|
491
|
+
"""
|
|
492
|
+
|
|
493
|
+
self._visibility = visibility
|
|
494
|
+
|
|
495
|
+
def to_dict(self) -> dict:
|
|
496
|
+
"""Returns the model properties as a dict"""
|
|
497
|
+
result = {}
|
|
498
|
+
|
|
499
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
500
|
+
value = getattr(self, attr)
|
|
501
|
+
if isinstance(value, list):
|
|
502
|
+
result[attr] = list(map(
|
|
503
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
504
|
+
value
|
|
505
|
+
))
|
|
506
|
+
elif hasattr(value, "to_dict"):
|
|
507
|
+
result[attr] = value.to_dict()
|
|
508
|
+
elif isinstance(value, dict):
|
|
509
|
+
result[attr] = dict(map(
|
|
510
|
+
lambda item: (item[0], item[1].to_dict())
|
|
511
|
+
if hasattr(item[1], "to_dict") else item,
|
|
512
|
+
value.items()
|
|
513
|
+
))
|
|
514
|
+
else:
|
|
515
|
+
result[attr] = value
|
|
516
|
+
if issubclass(V1LitDataset, dict):
|
|
517
|
+
for key, value in self.items():
|
|
518
|
+
result[key] = value
|
|
519
|
+
|
|
520
|
+
return result
|
|
521
|
+
|
|
522
|
+
def to_str(self) -> str:
|
|
523
|
+
"""Returns the string representation of the model"""
|
|
524
|
+
return pprint.pformat(self.to_dict())
|
|
525
|
+
|
|
526
|
+
def __repr__(self) -> str:
|
|
527
|
+
"""For `print` and `pprint`"""
|
|
528
|
+
return self.to_str()
|
|
529
|
+
|
|
530
|
+
def __eq__(self, other: 'V1LitDataset') -> bool:
|
|
531
|
+
"""Returns true if both objects are equal"""
|
|
532
|
+
if not isinstance(other, V1LitDataset):
|
|
533
|
+
return False
|
|
534
|
+
|
|
535
|
+
return self.__dict__ == other.__dict__
|
|
536
|
+
|
|
537
|
+
def __ne__(self, other: 'V1LitDataset') -> bool:
|
|
538
|
+
"""Returns true if both objects are not equal"""
|
|
539
|
+
return not self == other
|
|
@@ -0,0 +1,175 @@
|
|
|
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 V1LitDatasetFile(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
|
+
'filepath': 'str',
|
|
45
|
+
'size': 'str',
|
|
46
|
+
'url': 'str'
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
attribute_map = {
|
|
50
|
+
'filepath': 'filepath',
|
|
51
|
+
'size': 'size',
|
|
52
|
+
'url': 'url'
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
def __init__(self, filepath: 'str' =None, size: 'str' =None, url: 'str' =None): # noqa: E501
|
|
56
|
+
"""V1LitDatasetFile - a model defined in Swagger""" # noqa: E501
|
|
57
|
+
self._filepath = None
|
|
58
|
+
self._size = None
|
|
59
|
+
self._url = None
|
|
60
|
+
self.discriminator = None
|
|
61
|
+
if filepath is not None:
|
|
62
|
+
self.filepath = filepath
|
|
63
|
+
if size is not None:
|
|
64
|
+
self.size = size
|
|
65
|
+
if url is not None:
|
|
66
|
+
self.url = url
|
|
67
|
+
|
|
68
|
+
@property
|
|
69
|
+
def filepath(self) -> 'str':
|
|
70
|
+
"""Gets the filepath of this V1LitDatasetFile. # noqa: E501
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
:return: The filepath of this V1LitDatasetFile. # noqa: E501
|
|
74
|
+
:rtype: str
|
|
75
|
+
"""
|
|
76
|
+
return self._filepath
|
|
77
|
+
|
|
78
|
+
@filepath.setter
|
|
79
|
+
def filepath(self, filepath: 'str'):
|
|
80
|
+
"""Sets the filepath of this V1LitDatasetFile.
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
:param filepath: The filepath of this V1LitDatasetFile. # noqa: E501
|
|
84
|
+
:type: str
|
|
85
|
+
"""
|
|
86
|
+
|
|
87
|
+
self._filepath = filepath
|
|
88
|
+
|
|
89
|
+
@property
|
|
90
|
+
def size(self) -> 'str':
|
|
91
|
+
"""Gets the size of this V1LitDatasetFile. # noqa: E501
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
:return: The size of this V1LitDatasetFile. # noqa: E501
|
|
95
|
+
:rtype: str
|
|
96
|
+
"""
|
|
97
|
+
return self._size
|
|
98
|
+
|
|
99
|
+
@size.setter
|
|
100
|
+
def size(self, size: 'str'):
|
|
101
|
+
"""Sets the size of this V1LitDatasetFile.
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
:param size: The size of this V1LitDatasetFile. # noqa: E501
|
|
105
|
+
:type: str
|
|
106
|
+
"""
|
|
107
|
+
|
|
108
|
+
self._size = size
|
|
109
|
+
|
|
110
|
+
@property
|
|
111
|
+
def url(self) -> 'str':
|
|
112
|
+
"""Gets the url of this V1LitDatasetFile. # noqa: E501
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
:return: The url of this V1LitDatasetFile. # noqa: E501
|
|
116
|
+
:rtype: str
|
|
117
|
+
"""
|
|
118
|
+
return self._url
|
|
119
|
+
|
|
120
|
+
@url.setter
|
|
121
|
+
def url(self, url: 'str'):
|
|
122
|
+
"""Sets the url of this V1LitDatasetFile.
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
:param url: The url of this V1LitDatasetFile. # noqa: E501
|
|
126
|
+
:type: str
|
|
127
|
+
"""
|
|
128
|
+
|
|
129
|
+
self._url = url
|
|
130
|
+
|
|
131
|
+
def to_dict(self) -> dict:
|
|
132
|
+
"""Returns the model properties as a dict"""
|
|
133
|
+
result = {}
|
|
134
|
+
|
|
135
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
136
|
+
value = getattr(self, attr)
|
|
137
|
+
if isinstance(value, list):
|
|
138
|
+
result[attr] = list(map(
|
|
139
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
140
|
+
value
|
|
141
|
+
))
|
|
142
|
+
elif hasattr(value, "to_dict"):
|
|
143
|
+
result[attr] = value.to_dict()
|
|
144
|
+
elif isinstance(value, dict):
|
|
145
|
+
result[attr] = dict(map(
|
|
146
|
+
lambda item: (item[0], item[1].to_dict())
|
|
147
|
+
if hasattr(item[1], "to_dict") else item,
|
|
148
|
+
value.items()
|
|
149
|
+
))
|
|
150
|
+
else:
|
|
151
|
+
result[attr] = value
|
|
152
|
+
if issubclass(V1LitDatasetFile, dict):
|
|
153
|
+
for key, value in self.items():
|
|
154
|
+
result[key] = value
|
|
155
|
+
|
|
156
|
+
return result
|
|
157
|
+
|
|
158
|
+
def to_str(self) -> str:
|
|
159
|
+
"""Returns the string representation of the model"""
|
|
160
|
+
return pprint.pformat(self.to_dict())
|
|
161
|
+
|
|
162
|
+
def __repr__(self) -> str:
|
|
163
|
+
"""For `print` and `pprint`"""
|
|
164
|
+
return self.to_str()
|
|
165
|
+
|
|
166
|
+
def __eq__(self, other: 'V1LitDatasetFile') -> bool:
|
|
167
|
+
"""Returns true if both objects are equal"""
|
|
168
|
+
if not isinstance(other, V1LitDatasetFile):
|
|
169
|
+
return False
|
|
170
|
+
|
|
171
|
+
return self.__dict__ == other.__dict__
|
|
172
|
+
|
|
173
|
+
def __ne__(self, other: 'V1LitDatasetFile') -> bool:
|
|
174
|
+
"""Returns true if both objects are not equal"""
|
|
175
|
+
return not self == other
|