lightning-sdk 0.1.30__py3-none-any.whl → 0.1.32__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 +3 -1
- lightning_sdk/ai_hub.py +29 -0
- lightning_sdk/api/__init__.py +2 -0
- lightning_sdk/api/ai_hub_api.py +15 -0
- lightning_sdk/api/teamspace_api.py +35 -5
- lightning_sdk/api/user_api.py +8 -2
- lightning_sdk/cli/upload.py +10 -6
- lightning_sdk/lightning_cloud/openapi/__init__.py +30 -0
- lightning_sdk/lightning_cloud/openapi/api/__init__.py +1 -0
- lightning_sdk/lightning_cloud/openapi/api/cloud_space_service_api.py +105 -4
- lightning_sdk/lightning_cloud/openapi/api/cluster_service_api.py +5 -5
- lightning_sdk/lightning_cloud/openapi/api/deployment_templates_service_api.py +105 -0
- lightning_sdk/lightning_cloud/openapi/api/file_system_service_api.py +674 -0
- lightning_sdk/lightning_cloud/openapi/api/jobs_service_api.py +5 -1
- lightning_sdk/lightning_cloud/openapi/api/lit_logger_service_api.py +396 -0
- lightning_sdk/lightning_cloud/openapi/api/models_store_api.py +118 -1
- lightning_sdk/lightning_cloud/openapi/models/__init__.py +29 -0
- lightning_sdk/lightning_cloud/openapi/models/cluster_id_capacityblock_body.py +15 -15
- lightning_sdk/lightning_cloud/openapi/models/create.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/deployments_id_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/deploymenttemplates_id_body.py +121 -17
- lightning_sdk/lightning_cloud/openapi/models/id_engage_body.py +3 -29
- lightning_sdk/lightning_cloud/openapi/models/id_engage_body1.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/litloggermetrics_id_body.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/model_id_versions_body.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/project_id_models_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/update.py +105 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_affiliate_link.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_app_type.py +104 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_accelerator.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_create_deployment_template_request.py +95 -17
- lightning_sdk/lightning_cloud/openapi/models/v1_create_shared_metrics_stream_request.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_shared_metrics_stream_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_data_connection.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_data_path.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_shared_metrics_stream_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_metrics.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_template.py +95 -17
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_template_engagement_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_template_parameter.py +69 -17
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_template_parameter_placement.py +2 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_template_parameter_type.py +1 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_template_summary.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_efs_folder_data_connection.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_app.py +227 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_cloud_space.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_dataset.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_job.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_slurm_job.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_snowflake_connection.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_work.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_gcs_folder_data_connection.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_input.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_job_spec.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_lightningwork_spec.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_list_cloud_space_python_versions_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_filesystem_apps_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_filesystem_cloud_spaces_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_filesystem_datasets_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_filesystem_jobs_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_filesystem_slurm_jobs_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_filesystem_snowflake_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_model.py +6 -6
- lightning_sdk/lightning_cloud/openapi/models/v1_model_version_archive.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_parameterization_spec.py +227 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_s3_folder_data_connection.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_transaction.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_update_shared_metrics_stream_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +76 -24
- lightning_sdk/lightning_cloud/openapi/models/v1_validate_data_connection_response.py +81 -3
- lightning_sdk/lightning_cloud/openapi/models/validate.py +81 -3
- lightning_sdk/lightning_cloud/rest_client.py +2 -0
- lightning_sdk/teamspace.py +11 -0
- {lightning_sdk-0.1.30.dist-info → lightning_sdk-0.1.32.dist-info}/METADATA +1 -1
- {lightning_sdk-0.1.30.dist-info → lightning_sdk-0.1.32.dist-info}/RECORD +80 -48
- {lightning_sdk-0.1.30.dist-info → lightning_sdk-0.1.32.dist-info}/LICENSE +0 -0
- {lightning_sdk-0.1.30.dist-info → lightning_sdk-0.1.32.dist-info}/WHEEL +0 -0
- {lightning_sdk-0.1.30.dist-info → lightning_sdk-0.1.32.dist-info}/entry_points.txt +0 -0
- {lightning_sdk-0.1.30.dist-info → lightning_sdk-0.1.32.dist-info}/top_level.txt +0 -0
|
@@ -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 V1DeploymentTemplateEngagementResponse(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
|
+
"""V1DeploymentTemplateEngagementResponse - 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(V1DeploymentTemplateEngagementResponse, 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: 'V1DeploymentTemplateEngagementResponse') -> bool:
|
|
89
|
+
"""Returns true if both objects are equal"""
|
|
90
|
+
if not isinstance(other, V1DeploymentTemplateEngagementResponse):
|
|
91
|
+
return False
|
|
92
|
+
|
|
93
|
+
return self.__dict__ == other.__dict__
|
|
94
|
+
|
|
95
|
+
def __ne__(self, other: 'V1DeploymentTemplateEngagementResponse') -> bool:
|
|
96
|
+
"""Returns true if both objects are not equal"""
|
|
97
|
+
return not self == other
|
|
@@ -41,10 +41,12 @@ class V1DeploymentTemplateParameter(object):
|
|
|
41
41
|
and the value is json key in definition.
|
|
42
42
|
"""
|
|
43
43
|
swagger_types = {
|
|
44
|
+
'data_path': 'V1DataPath',
|
|
45
|
+
'display_name': 'str',
|
|
44
46
|
'input': 'V1Input',
|
|
45
47
|
'long_description': 'str',
|
|
46
48
|
'name': 'str',
|
|
47
|
-
'
|
|
49
|
+
'placements': 'list[V1DeploymentTemplateParameterPlacement]',
|
|
48
50
|
'readonly': 'bool',
|
|
49
51
|
'required': 'bool',
|
|
50
52
|
'select': 'V1Select',
|
|
@@ -53,10 +55,12 @@ class V1DeploymentTemplateParameter(object):
|
|
|
53
55
|
}
|
|
54
56
|
|
|
55
57
|
attribute_map = {
|
|
58
|
+
'data_path': 'dataPath',
|
|
59
|
+
'display_name': 'displayName',
|
|
56
60
|
'input': 'input',
|
|
57
61
|
'long_description': 'longDescription',
|
|
58
62
|
'name': 'name',
|
|
59
|
-
'
|
|
63
|
+
'placements': 'placements',
|
|
60
64
|
'readonly': 'readonly',
|
|
61
65
|
'required': 'required',
|
|
62
66
|
'select': 'select',
|
|
@@ -64,26 +68,32 @@ class V1DeploymentTemplateParameter(object):
|
|
|
64
68
|
'type': 'type'
|
|
65
69
|
}
|
|
66
70
|
|
|
67
|
-
def __init__(self, input: 'V1Input' =None, long_description: 'str' =None, name: 'str' =None,
|
|
71
|
+
def __init__(self, data_path: 'V1DataPath' =None, display_name: 'str' =None, input: 'V1Input' =None, long_description: 'str' =None, name: 'str' =None, placements: 'list[V1DeploymentTemplateParameterPlacement]' =None, readonly: 'bool' =None, required: 'bool' =None, select: 'V1Select' =None, short_description: 'str' =None, type: 'V1DeploymentTemplateParameterType' =None): # noqa: E501
|
|
68
72
|
"""V1DeploymentTemplateParameter - a model defined in Swagger""" # noqa: E501
|
|
73
|
+
self._data_path = None
|
|
74
|
+
self._display_name = None
|
|
69
75
|
self._input = None
|
|
70
76
|
self._long_description = None
|
|
71
77
|
self._name = None
|
|
72
|
-
self.
|
|
78
|
+
self._placements = None
|
|
73
79
|
self._readonly = None
|
|
74
80
|
self._required = None
|
|
75
81
|
self._select = None
|
|
76
82
|
self._short_description = None
|
|
77
83
|
self._type = None
|
|
78
84
|
self.discriminator = None
|
|
85
|
+
if data_path is not None:
|
|
86
|
+
self.data_path = data_path
|
|
87
|
+
if display_name is not None:
|
|
88
|
+
self.display_name = display_name
|
|
79
89
|
if input is not None:
|
|
80
90
|
self.input = input
|
|
81
91
|
if long_description is not None:
|
|
82
92
|
self.long_description = long_description
|
|
83
93
|
if name is not None:
|
|
84
94
|
self.name = name
|
|
85
|
-
if
|
|
86
|
-
self.
|
|
95
|
+
if placements is not None:
|
|
96
|
+
self.placements = placements
|
|
87
97
|
if readonly is not None:
|
|
88
98
|
self.readonly = readonly
|
|
89
99
|
if required is not None:
|
|
@@ -95,6 +105,48 @@ class V1DeploymentTemplateParameter(object):
|
|
|
95
105
|
if type is not None:
|
|
96
106
|
self.type = type
|
|
97
107
|
|
|
108
|
+
@property
|
|
109
|
+
def data_path(self) -> 'V1DataPath':
|
|
110
|
+
"""Gets the data_path of this V1DeploymentTemplateParameter. # noqa: E501
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
:return: The data_path of this V1DeploymentTemplateParameter. # noqa: E501
|
|
114
|
+
:rtype: V1DataPath
|
|
115
|
+
"""
|
|
116
|
+
return self._data_path
|
|
117
|
+
|
|
118
|
+
@data_path.setter
|
|
119
|
+
def data_path(self, data_path: 'V1DataPath'):
|
|
120
|
+
"""Sets the data_path of this V1DeploymentTemplateParameter.
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
:param data_path: The data_path of this V1DeploymentTemplateParameter. # noqa: E501
|
|
124
|
+
:type: V1DataPath
|
|
125
|
+
"""
|
|
126
|
+
|
|
127
|
+
self._data_path = data_path
|
|
128
|
+
|
|
129
|
+
@property
|
|
130
|
+
def display_name(self) -> 'str':
|
|
131
|
+
"""Gets the display_name of this V1DeploymentTemplateParameter. # noqa: E501
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
:return: The display_name of this V1DeploymentTemplateParameter. # noqa: E501
|
|
135
|
+
:rtype: str
|
|
136
|
+
"""
|
|
137
|
+
return self._display_name
|
|
138
|
+
|
|
139
|
+
@display_name.setter
|
|
140
|
+
def display_name(self, display_name: 'str'):
|
|
141
|
+
"""Sets the display_name of this V1DeploymentTemplateParameter.
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
:param display_name: The display_name of this V1DeploymentTemplateParameter. # noqa: E501
|
|
145
|
+
:type: str
|
|
146
|
+
"""
|
|
147
|
+
|
|
148
|
+
self._display_name = display_name
|
|
149
|
+
|
|
98
150
|
@property
|
|
99
151
|
def input(self) -> 'V1Input':
|
|
100
152
|
"""Gets the input of this V1DeploymentTemplateParameter. # noqa: E501
|
|
@@ -159,25 +211,25 @@ class V1DeploymentTemplateParameter(object):
|
|
|
159
211
|
self._name = name
|
|
160
212
|
|
|
161
213
|
@property
|
|
162
|
-
def
|
|
163
|
-
"""Gets the
|
|
214
|
+
def placements(self) -> 'list[V1DeploymentTemplateParameterPlacement]':
|
|
215
|
+
"""Gets the placements of this V1DeploymentTemplateParameter. # noqa: E501
|
|
164
216
|
|
|
165
217
|
|
|
166
|
-
:return: The
|
|
167
|
-
:rtype: V1DeploymentTemplateParameterPlacement
|
|
218
|
+
:return: The placements of this V1DeploymentTemplateParameter. # noqa: E501
|
|
219
|
+
:rtype: list[V1DeploymentTemplateParameterPlacement]
|
|
168
220
|
"""
|
|
169
|
-
return self.
|
|
221
|
+
return self._placements
|
|
170
222
|
|
|
171
|
-
@
|
|
172
|
-
def
|
|
173
|
-
"""Sets the
|
|
223
|
+
@placements.setter
|
|
224
|
+
def placements(self, placements: 'list[V1DeploymentTemplateParameterPlacement]'):
|
|
225
|
+
"""Sets the placements of this V1DeploymentTemplateParameter.
|
|
174
226
|
|
|
175
227
|
|
|
176
|
-
:param
|
|
177
|
-
:type: V1DeploymentTemplateParameterPlacement
|
|
228
|
+
:param placements: The placements of this V1DeploymentTemplateParameter. # noqa: E501
|
|
229
|
+
:type: list[V1DeploymentTemplateParameterPlacement]
|
|
178
230
|
"""
|
|
179
231
|
|
|
180
|
-
self.
|
|
232
|
+
self._placements = placements
|
|
181
233
|
|
|
182
234
|
@property
|
|
183
235
|
def readonly(self) -> 'bool':
|
|
@@ -37,9 +37,11 @@ class V1DeploymentTemplateParameterPlacement(object):
|
|
|
37
37
|
"""
|
|
38
38
|
allowed enum values
|
|
39
39
|
"""
|
|
40
|
+
UNSPECIFIED = "DEPLOYMENT_TEMPLATE_UNSPECIFIED"
|
|
40
41
|
COMMAND = "DEPLOYMENT_TEMPLATE_COMMAND"
|
|
41
42
|
ENV = "DEPLOYMENT_TEMPLATE_ENV"
|
|
42
43
|
ENTRYPOINT = "DEPLOYMENT_TEMPLATE_ENTRYPOINT"
|
|
44
|
+
IMAGE = "DEPLOYMENT_TEMPLATE_IMAGE"
|
|
43
45
|
"""
|
|
44
46
|
Attributes:
|
|
45
47
|
swagger_types (dict): The key is attribute name
|
|
@@ -54,6 +54,7 @@ class V1DeploymentTemplateSummary(object):
|
|
|
54
54
|
'name': 'str',
|
|
55
55
|
'org_id': 'str',
|
|
56
56
|
'project_id': 'str',
|
|
57
|
+
'thumbnail_url': 'str',
|
|
57
58
|
'unpublished': 'bool',
|
|
58
59
|
'updated_at': 'datetime',
|
|
59
60
|
'user_id': 'str',
|
|
@@ -74,13 +75,14 @@ class V1DeploymentTemplateSummary(object):
|
|
|
74
75
|
'name': 'name',
|
|
75
76
|
'org_id': 'orgId',
|
|
76
77
|
'project_id': 'projectId',
|
|
78
|
+
'thumbnail_url': 'thumbnailUrl',
|
|
77
79
|
'unpublished': 'unpublished',
|
|
78
80
|
'updated_at': 'updatedAt',
|
|
79
81
|
'user_id': 'userId',
|
|
80
82
|
'version': 'version'
|
|
81
83
|
}
|
|
82
84
|
|
|
83
|
-
def __init__(self, about_page_content: 'str' =None, about_page_id: 'str' =None, categories: 'list[str]' =None, created_at: 'datetime' =None, deployment_id: 'str' =None, description: 'str' =None, featured: 'bool' =None, globally_visible: 'bool' =None, id: 'str' =None, image_url: 'str' =None, name: 'str' =None, org_id: 'str' =None, project_id: 'str' =None, unpublished: 'bool' =None, updated_at: 'datetime' =None, user_id: 'str' =None, version: 'str' =None): # noqa: E501
|
|
85
|
+
def __init__(self, about_page_content: 'str' =None, about_page_id: 'str' =None, categories: 'list[str]' =None, created_at: 'datetime' =None, deployment_id: 'str' =None, description: 'str' =None, featured: 'bool' =None, globally_visible: 'bool' =None, id: 'str' =None, image_url: 'str' =None, name: 'str' =None, org_id: 'str' =None, project_id: 'str' =None, thumbnail_url: 'str' =None, unpublished: 'bool' =None, updated_at: 'datetime' =None, user_id: 'str' =None, version: 'str' =None): # noqa: E501
|
|
84
86
|
"""V1DeploymentTemplateSummary - a model defined in Swagger""" # noqa: E501
|
|
85
87
|
self._about_page_content = None
|
|
86
88
|
self._about_page_id = None
|
|
@@ -95,6 +97,7 @@ class V1DeploymentTemplateSummary(object):
|
|
|
95
97
|
self._name = None
|
|
96
98
|
self._org_id = None
|
|
97
99
|
self._project_id = None
|
|
100
|
+
self._thumbnail_url = None
|
|
98
101
|
self._unpublished = None
|
|
99
102
|
self._updated_at = None
|
|
100
103
|
self._user_id = None
|
|
@@ -126,6 +129,8 @@ class V1DeploymentTemplateSummary(object):
|
|
|
126
129
|
self.org_id = org_id
|
|
127
130
|
if project_id is not None:
|
|
128
131
|
self.project_id = project_id
|
|
132
|
+
if thumbnail_url is not None:
|
|
133
|
+
self.thumbnail_url = thumbnail_url
|
|
129
134
|
if unpublished is not None:
|
|
130
135
|
self.unpublished = unpublished
|
|
131
136
|
if updated_at is not None:
|
|
@@ -408,6 +413,27 @@ class V1DeploymentTemplateSummary(object):
|
|
|
408
413
|
|
|
409
414
|
self._project_id = project_id
|
|
410
415
|
|
|
416
|
+
@property
|
|
417
|
+
def thumbnail_url(self) -> 'str':
|
|
418
|
+
"""Gets the thumbnail_url of this V1DeploymentTemplateSummary. # noqa: E501
|
|
419
|
+
|
|
420
|
+
|
|
421
|
+
:return: The thumbnail_url of this V1DeploymentTemplateSummary. # noqa: E501
|
|
422
|
+
:rtype: str
|
|
423
|
+
"""
|
|
424
|
+
return self._thumbnail_url
|
|
425
|
+
|
|
426
|
+
@thumbnail_url.setter
|
|
427
|
+
def thumbnail_url(self, thumbnail_url: 'str'):
|
|
428
|
+
"""Sets the thumbnail_url of this V1DeploymentTemplateSummary.
|
|
429
|
+
|
|
430
|
+
|
|
431
|
+
:param thumbnail_url: The thumbnail_url of this V1DeploymentTemplateSummary. # noqa: E501
|
|
432
|
+
:type: str
|
|
433
|
+
"""
|
|
434
|
+
|
|
435
|
+
self._thumbnail_url = thumbnail_url
|
|
436
|
+
|
|
411
437
|
@property
|
|
412
438
|
def unpublished(self) -> 'bool':
|
|
413
439
|
"""Gets the unpublished of this V1DeploymentTemplateSummary. # noqa: E501
|
|
@@ -0,0 +1,201 @@
|
|
|
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 V1EFSFolderDataConnection(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
|
+
'file_system_id': 'str',
|
|
45
|
+
'mount_targets': 'list[V1MountTarget]',
|
|
46
|
+
'region': 'str',
|
|
47
|
+
'source': 'str'
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
attribute_map = {
|
|
51
|
+
'file_system_id': 'fileSystemId',
|
|
52
|
+
'mount_targets': 'mountTargets',
|
|
53
|
+
'region': 'region',
|
|
54
|
+
'source': 'source'
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
def __init__(self, file_system_id: 'str' =None, mount_targets: 'list[V1MountTarget]' =None, region: 'str' =None, source: 'str' =None): # noqa: E501
|
|
58
|
+
"""V1EFSFolderDataConnection - a model defined in Swagger""" # noqa: E501
|
|
59
|
+
self._file_system_id = None
|
|
60
|
+
self._mount_targets = None
|
|
61
|
+
self._region = None
|
|
62
|
+
self._source = None
|
|
63
|
+
self.discriminator = None
|
|
64
|
+
if file_system_id is not None:
|
|
65
|
+
self.file_system_id = file_system_id
|
|
66
|
+
if mount_targets is not None:
|
|
67
|
+
self.mount_targets = mount_targets
|
|
68
|
+
if region is not None:
|
|
69
|
+
self.region = region
|
|
70
|
+
if source is not None:
|
|
71
|
+
self.source = source
|
|
72
|
+
|
|
73
|
+
@property
|
|
74
|
+
def file_system_id(self) -> 'str':
|
|
75
|
+
"""Gets the file_system_id of this V1EFSFolderDataConnection. # noqa: E501
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
:return: The file_system_id of this V1EFSFolderDataConnection. # noqa: E501
|
|
79
|
+
:rtype: str
|
|
80
|
+
"""
|
|
81
|
+
return self._file_system_id
|
|
82
|
+
|
|
83
|
+
@file_system_id.setter
|
|
84
|
+
def file_system_id(self, file_system_id: 'str'):
|
|
85
|
+
"""Sets the file_system_id of this V1EFSFolderDataConnection.
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
:param file_system_id: The file_system_id of this V1EFSFolderDataConnection. # noqa: E501
|
|
89
|
+
:type: str
|
|
90
|
+
"""
|
|
91
|
+
|
|
92
|
+
self._file_system_id = file_system_id
|
|
93
|
+
|
|
94
|
+
@property
|
|
95
|
+
def mount_targets(self) -> 'list[V1MountTarget]':
|
|
96
|
+
"""Gets the mount_targets of this V1EFSFolderDataConnection. # noqa: E501
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
:return: The mount_targets of this V1EFSFolderDataConnection. # noqa: E501
|
|
100
|
+
:rtype: list[V1MountTarget]
|
|
101
|
+
"""
|
|
102
|
+
return self._mount_targets
|
|
103
|
+
|
|
104
|
+
@mount_targets.setter
|
|
105
|
+
def mount_targets(self, mount_targets: 'list[V1MountTarget]'):
|
|
106
|
+
"""Sets the mount_targets of this V1EFSFolderDataConnection.
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
:param mount_targets: The mount_targets of this V1EFSFolderDataConnection. # noqa: E501
|
|
110
|
+
:type: list[V1MountTarget]
|
|
111
|
+
"""
|
|
112
|
+
|
|
113
|
+
self._mount_targets = mount_targets
|
|
114
|
+
|
|
115
|
+
@property
|
|
116
|
+
def region(self) -> 'str':
|
|
117
|
+
"""Gets the region of this V1EFSFolderDataConnection. # noqa: E501
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
:return: The region of this V1EFSFolderDataConnection. # noqa: E501
|
|
121
|
+
:rtype: str
|
|
122
|
+
"""
|
|
123
|
+
return self._region
|
|
124
|
+
|
|
125
|
+
@region.setter
|
|
126
|
+
def region(self, region: 'str'):
|
|
127
|
+
"""Sets the region of this V1EFSFolderDataConnection.
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
:param region: The region of this V1EFSFolderDataConnection. # noqa: E501
|
|
131
|
+
:type: str
|
|
132
|
+
"""
|
|
133
|
+
|
|
134
|
+
self._region = region
|
|
135
|
+
|
|
136
|
+
@property
|
|
137
|
+
def source(self) -> 'str':
|
|
138
|
+
"""Gets the source of this V1EFSFolderDataConnection. # noqa: E501
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
:return: The source of this V1EFSFolderDataConnection. # noqa: E501
|
|
142
|
+
:rtype: str
|
|
143
|
+
"""
|
|
144
|
+
return self._source
|
|
145
|
+
|
|
146
|
+
@source.setter
|
|
147
|
+
def source(self, source: 'str'):
|
|
148
|
+
"""Sets the source of this V1EFSFolderDataConnection.
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
:param source: The source of this V1EFSFolderDataConnection. # noqa: E501
|
|
152
|
+
:type: str
|
|
153
|
+
"""
|
|
154
|
+
|
|
155
|
+
self._source = source
|
|
156
|
+
|
|
157
|
+
def to_dict(self) -> dict:
|
|
158
|
+
"""Returns the model properties as a dict"""
|
|
159
|
+
result = {}
|
|
160
|
+
|
|
161
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
162
|
+
value = getattr(self, attr)
|
|
163
|
+
if isinstance(value, list):
|
|
164
|
+
result[attr] = list(map(
|
|
165
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
166
|
+
value
|
|
167
|
+
))
|
|
168
|
+
elif hasattr(value, "to_dict"):
|
|
169
|
+
result[attr] = value.to_dict()
|
|
170
|
+
elif isinstance(value, dict):
|
|
171
|
+
result[attr] = dict(map(
|
|
172
|
+
lambda item: (item[0], item[1].to_dict())
|
|
173
|
+
if hasattr(item[1], "to_dict") else item,
|
|
174
|
+
value.items()
|
|
175
|
+
))
|
|
176
|
+
else:
|
|
177
|
+
result[attr] = value
|
|
178
|
+
if issubclass(V1EFSFolderDataConnection, dict):
|
|
179
|
+
for key, value in self.items():
|
|
180
|
+
result[key] = value
|
|
181
|
+
|
|
182
|
+
return result
|
|
183
|
+
|
|
184
|
+
def to_str(self) -> str:
|
|
185
|
+
"""Returns the string representation of the model"""
|
|
186
|
+
return pprint.pformat(self.to_dict())
|
|
187
|
+
|
|
188
|
+
def __repr__(self) -> str:
|
|
189
|
+
"""For `print` and `pprint`"""
|
|
190
|
+
return self.to_str()
|
|
191
|
+
|
|
192
|
+
def __eq__(self, other: 'V1EFSFolderDataConnection') -> bool:
|
|
193
|
+
"""Returns true if both objects are equal"""
|
|
194
|
+
if not isinstance(other, V1EFSFolderDataConnection):
|
|
195
|
+
return False
|
|
196
|
+
|
|
197
|
+
return self.__dict__ == other.__dict__
|
|
198
|
+
|
|
199
|
+
def __ne__(self, other: 'V1EFSFolderDataConnection') -> bool:
|
|
200
|
+
"""Returns true if both objects are not equal"""
|
|
201
|
+
return not self == other
|