lightning-sdk 0.1.30__py3-none-any.whl → 0.1.31__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/api/teamspace_api.py +35 -5
- lightning_sdk/lightning_cloud/openapi/__init__.py +4 -0
- lightning_sdk/lightning_cloud/openapi/api/cloud_space_service_api.py +4 -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/jobs_service_api.py +5 -1
- lightning_sdk/lightning_cloud/openapi/api/models_store_api.py +118 -2
- lightning_sdk/lightning_cloud/openapi/models/__init__.py +4 -0
- lightning_sdk/lightning_cloud/openapi/models/cluster_id_capacityblock_body.py +15 -15
- lightning_sdk/lightning_cloud/openapi/models/deployments_id_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/deploymenttemplates_id_body.py +43 -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/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/v1_create_deployment_template_request.py +17 -17
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_template.py +17 -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_placement.py +2 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_model_version_archive.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_parameterization_spec.py +227 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +27 -27
- lightning_sdk/teamspace.py +11 -0
- {lightning_sdk-0.1.30.dist-info → lightning_sdk-0.1.31.dist-info}/METADATA +1 -1
- {lightning_sdk-0.1.30.dist-info → lightning_sdk-0.1.31.dist-info}/RECORD +31 -27
- {lightning_sdk-0.1.30.dist-info → lightning_sdk-0.1.31.dist-info}/LICENSE +0 -0
- {lightning_sdk-0.1.30.dist-info → lightning_sdk-0.1.31.dist-info}/WHEEL +0 -0
- {lightning_sdk-0.1.30.dist-info → lightning_sdk-0.1.31.dist-info}/entry_points.txt +0 -0
- {lightning_sdk-0.1.30.dist-info → lightning_sdk-0.1.31.dist-info}/top_level.txt +0 -0
|
@@ -45,6 +45,7 @@ class DeploymentsIdBody(object):
|
|
|
45
45
|
'created_at': 'datetime',
|
|
46
46
|
'desired_state': 'V1DeploymentState',
|
|
47
47
|
'endpoint': 'V1Endpoint',
|
|
48
|
+
'is_published': 'bool',
|
|
48
49
|
'name': 'str',
|
|
49
50
|
'release_id': 'str',
|
|
50
51
|
'replicas': 'int',
|
|
@@ -60,6 +61,7 @@ class DeploymentsIdBody(object):
|
|
|
60
61
|
'created_at': 'createdAt',
|
|
61
62
|
'desired_state': 'desiredState',
|
|
62
63
|
'endpoint': 'endpoint',
|
|
64
|
+
'is_published': 'isPublished',
|
|
63
65
|
'name': 'name',
|
|
64
66
|
'release_id': 'releaseId',
|
|
65
67
|
'replicas': 'replicas',
|
|
@@ -70,12 +72,13 @@ class DeploymentsIdBody(object):
|
|
|
70
72
|
'user_id': 'userId'
|
|
71
73
|
}
|
|
72
74
|
|
|
73
|
-
def __init__(self, autoscaling: 'V1AutoscalingSpec' =None, created_at: 'datetime' =None, desired_state: 'V1DeploymentState' =None, endpoint: 'V1Endpoint' =None, name: 'str' =None, release_id: 'str' =None, replicas: 'int' =None, spec: 'V1JobSpec' =None, status: 'V1DeploymentStatus' =None, strategy: 'V1DeploymentStrategy' =None, updated_at: 'datetime' =None, user_id: 'str' =None): # noqa: E501
|
|
75
|
+
def __init__(self, autoscaling: 'V1AutoscalingSpec' =None, created_at: 'datetime' =None, desired_state: 'V1DeploymentState' =None, endpoint: 'V1Endpoint' =None, is_published: 'bool' =None, name: 'str' =None, release_id: 'str' =None, replicas: 'int' =None, spec: 'V1JobSpec' =None, status: 'V1DeploymentStatus' =None, strategy: 'V1DeploymentStrategy' =None, updated_at: 'datetime' =None, user_id: 'str' =None): # noqa: E501
|
|
74
76
|
"""DeploymentsIdBody - a model defined in Swagger""" # noqa: E501
|
|
75
77
|
self._autoscaling = None
|
|
76
78
|
self._created_at = None
|
|
77
79
|
self._desired_state = None
|
|
78
80
|
self._endpoint = None
|
|
81
|
+
self._is_published = None
|
|
79
82
|
self._name = None
|
|
80
83
|
self._release_id = None
|
|
81
84
|
self._replicas = None
|
|
@@ -93,6 +96,8 @@ class DeploymentsIdBody(object):
|
|
|
93
96
|
self.desired_state = desired_state
|
|
94
97
|
if endpoint is not None:
|
|
95
98
|
self.endpoint = endpoint
|
|
99
|
+
if is_published is not None:
|
|
100
|
+
self.is_published = is_published
|
|
96
101
|
if name is not None:
|
|
97
102
|
self.name = name
|
|
98
103
|
if release_id is not None:
|
|
@@ -194,6 +199,27 @@ class DeploymentsIdBody(object):
|
|
|
194
199
|
|
|
195
200
|
self._endpoint = endpoint
|
|
196
201
|
|
|
202
|
+
@property
|
|
203
|
+
def is_published(self) -> 'bool':
|
|
204
|
+
"""Gets the is_published of this DeploymentsIdBody. # noqa: E501
|
|
205
|
+
|
|
206
|
+
|
|
207
|
+
:return: The is_published of this DeploymentsIdBody. # noqa: E501
|
|
208
|
+
:rtype: bool
|
|
209
|
+
"""
|
|
210
|
+
return self._is_published
|
|
211
|
+
|
|
212
|
+
@is_published.setter
|
|
213
|
+
def is_published(self, is_published: 'bool'):
|
|
214
|
+
"""Sets the is_published of this DeploymentsIdBody.
|
|
215
|
+
|
|
216
|
+
|
|
217
|
+
:param is_published: The is_published of this DeploymentsIdBody. # noqa: E501
|
|
218
|
+
:type: bool
|
|
219
|
+
"""
|
|
220
|
+
|
|
221
|
+
self._is_published = is_published
|
|
222
|
+
|
|
197
223
|
@property
|
|
198
224
|
def name(self) -> 'str':
|
|
199
225
|
"""Gets the name of this DeploymentsIdBody. # noqa: E501
|
|
@@ -44,10 +44,11 @@ class DeploymenttemplatesIdBody(object):
|
|
|
44
44
|
'about_page_content': 'str',
|
|
45
45
|
'categories': 'list[str]',
|
|
46
46
|
'description': 'str',
|
|
47
|
+
'featured': 'bool',
|
|
47
48
|
'image_url': 'str',
|
|
48
49
|
'name': 'str',
|
|
49
50
|
'org_id': 'str',
|
|
50
|
-
'
|
|
51
|
+
'parameter_spec': 'V1ParameterizationSpec',
|
|
51
52
|
'spec': 'str',
|
|
52
53
|
'tags': 'list[V1ResourceTag]',
|
|
53
54
|
'visibility': 'V1DeploymentTemplateType'
|
|
@@ -57,24 +58,26 @@ class DeploymenttemplatesIdBody(object):
|
|
|
57
58
|
'about_page_content': 'aboutPageContent',
|
|
58
59
|
'categories': 'categories',
|
|
59
60
|
'description': 'description',
|
|
61
|
+
'featured': 'featured',
|
|
60
62
|
'image_url': 'imageUrl',
|
|
61
63
|
'name': 'name',
|
|
62
64
|
'org_id': 'orgId',
|
|
63
|
-
'
|
|
65
|
+
'parameter_spec': 'parameterSpec',
|
|
64
66
|
'spec': 'spec',
|
|
65
67
|
'tags': 'tags',
|
|
66
68
|
'visibility': 'visibility'
|
|
67
69
|
}
|
|
68
70
|
|
|
69
|
-
def __init__(self, about_page_content: 'str' =None, categories: 'list[str]' =None, description: 'str' =None, image_url: 'str' =None, name: 'str' =None, org_id: 'str' =None,
|
|
71
|
+
def __init__(self, about_page_content: 'str' =None, categories: 'list[str]' =None, description: 'str' =None, featured: 'bool' =None, image_url: 'str' =None, name: 'str' =None, org_id: 'str' =None, parameter_spec: 'V1ParameterizationSpec' =None, spec: 'str' =None, tags: 'list[V1ResourceTag]' =None, visibility: 'V1DeploymentTemplateType' =None): # noqa: E501
|
|
70
72
|
"""DeploymenttemplatesIdBody - a model defined in Swagger""" # noqa: E501
|
|
71
73
|
self._about_page_content = None
|
|
72
74
|
self._categories = None
|
|
73
75
|
self._description = None
|
|
76
|
+
self._featured = None
|
|
74
77
|
self._image_url = None
|
|
75
78
|
self._name = None
|
|
76
79
|
self._org_id = None
|
|
77
|
-
self.
|
|
80
|
+
self._parameter_spec = None
|
|
78
81
|
self._spec = None
|
|
79
82
|
self._tags = None
|
|
80
83
|
self._visibility = None
|
|
@@ -85,14 +88,16 @@ class DeploymenttemplatesIdBody(object):
|
|
|
85
88
|
self.categories = categories
|
|
86
89
|
if description is not None:
|
|
87
90
|
self.description = description
|
|
91
|
+
if featured is not None:
|
|
92
|
+
self.featured = featured
|
|
88
93
|
if image_url is not None:
|
|
89
94
|
self.image_url = image_url
|
|
90
95
|
if name is not None:
|
|
91
96
|
self.name = name
|
|
92
97
|
if org_id is not None:
|
|
93
98
|
self.org_id = org_id
|
|
94
|
-
if
|
|
95
|
-
self.
|
|
99
|
+
if parameter_spec is not None:
|
|
100
|
+
self.parameter_spec = parameter_spec
|
|
96
101
|
if spec is not None:
|
|
97
102
|
self.spec = spec
|
|
98
103
|
if tags is not None:
|
|
@@ -163,6 +168,27 @@ class DeploymenttemplatesIdBody(object):
|
|
|
163
168
|
|
|
164
169
|
self._description = description
|
|
165
170
|
|
|
171
|
+
@property
|
|
172
|
+
def featured(self) -> 'bool':
|
|
173
|
+
"""Gets the featured of this DeploymenttemplatesIdBody. # noqa: E501
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
:return: The featured of this DeploymenttemplatesIdBody. # noqa: E501
|
|
177
|
+
:rtype: bool
|
|
178
|
+
"""
|
|
179
|
+
return self._featured
|
|
180
|
+
|
|
181
|
+
@featured.setter
|
|
182
|
+
def featured(self, featured: 'bool'):
|
|
183
|
+
"""Sets the featured of this DeploymenttemplatesIdBody.
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
:param featured: The featured of this DeploymenttemplatesIdBody. # noqa: E501
|
|
187
|
+
:type: bool
|
|
188
|
+
"""
|
|
189
|
+
|
|
190
|
+
self._featured = featured
|
|
191
|
+
|
|
166
192
|
@property
|
|
167
193
|
def image_url(self) -> 'str':
|
|
168
194
|
"""Gets the image_url of this DeploymenttemplatesIdBody. # noqa: E501
|
|
@@ -227,25 +253,25 @@ class DeploymenttemplatesIdBody(object):
|
|
|
227
253
|
self._org_id = org_id
|
|
228
254
|
|
|
229
255
|
@property
|
|
230
|
-
def
|
|
231
|
-
"""Gets the
|
|
256
|
+
def parameter_spec(self) -> 'V1ParameterizationSpec':
|
|
257
|
+
"""Gets the parameter_spec of this DeploymenttemplatesIdBody. # noqa: E501
|
|
232
258
|
|
|
233
259
|
|
|
234
|
-
:return: The
|
|
235
|
-
:rtype:
|
|
260
|
+
:return: The parameter_spec of this DeploymenttemplatesIdBody. # noqa: E501
|
|
261
|
+
:rtype: V1ParameterizationSpec
|
|
236
262
|
"""
|
|
237
|
-
return self.
|
|
263
|
+
return self._parameter_spec
|
|
238
264
|
|
|
239
|
-
@
|
|
240
|
-
def
|
|
241
|
-
"""Sets the
|
|
265
|
+
@parameter_spec.setter
|
|
266
|
+
def parameter_spec(self, parameter_spec: 'V1ParameterizationSpec'):
|
|
267
|
+
"""Sets the parameter_spec of this DeploymenttemplatesIdBody.
|
|
242
268
|
|
|
243
269
|
|
|
244
|
-
:param
|
|
245
|
-
:type:
|
|
270
|
+
:param parameter_spec: The parameter_spec of this DeploymenttemplatesIdBody. # noqa: E501
|
|
271
|
+
:type: V1ParameterizationSpec
|
|
246
272
|
"""
|
|
247
273
|
|
|
248
|
-
self.
|
|
274
|
+
self._parameter_spec = parameter_spec
|
|
249
275
|
|
|
250
276
|
@property
|
|
251
277
|
def spec(self) -> 'str':
|
|
@@ -41,24 +41,19 @@ class IdEngageBody(object):
|
|
|
41
41
|
and the value is json key in definition.
|
|
42
42
|
"""
|
|
43
43
|
swagger_types = {
|
|
44
|
-
'action': 'str'
|
|
45
|
-
'invert': 'bool'
|
|
44
|
+
'action': 'str'
|
|
46
45
|
}
|
|
47
46
|
|
|
48
47
|
attribute_map = {
|
|
49
|
-
'action': 'action'
|
|
50
|
-
'invert': 'invert'
|
|
48
|
+
'action': 'action'
|
|
51
49
|
}
|
|
52
50
|
|
|
53
|
-
def __init__(self, action: 'str' =None
|
|
51
|
+
def __init__(self, action: 'str' =None): # noqa: E501
|
|
54
52
|
"""IdEngageBody - a model defined in Swagger""" # noqa: E501
|
|
55
53
|
self._action = None
|
|
56
|
-
self._invert = None
|
|
57
54
|
self.discriminator = None
|
|
58
55
|
if action is not None:
|
|
59
56
|
self.action = action
|
|
60
|
-
if invert is not None:
|
|
61
|
-
self.invert = invert
|
|
62
57
|
|
|
63
58
|
@property
|
|
64
59
|
def action(self) -> 'str':
|
|
@@ -81,27 +76,6 @@ class IdEngageBody(object):
|
|
|
81
76
|
|
|
82
77
|
self._action = action
|
|
83
78
|
|
|
84
|
-
@property
|
|
85
|
-
def invert(self) -> 'bool':
|
|
86
|
-
"""Gets the invert of this IdEngageBody. # noqa: E501
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
:return: The invert of this IdEngageBody. # noqa: E501
|
|
90
|
-
:rtype: bool
|
|
91
|
-
"""
|
|
92
|
-
return self._invert
|
|
93
|
-
|
|
94
|
-
@invert.setter
|
|
95
|
-
def invert(self, invert: 'bool'):
|
|
96
|
-
"""Sets the invert of this IdEngageBody.
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
:param invert: The invert of this IdEngageBody. # noqa: E501
|
|
100
|
-
:type: bool
|
|
101
|
-
"""
|
|
102
|
-
|
|
103
|
-
self._invert = invert
|
|
104
|
-
|
|
105
79
|
def to_dict(self) -> dict:
|
|
106
80
|
"""Returns the model properties as a dict"""
|
|
107
81
|
result = {}
|
|
@@ -0,0 +1,149 @@
|
|
|
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 IdEngageBody1(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
|
+
'action': 'str',
|
|
45
|
+
'invert': 'bool'
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
attribute_map = {
|
|
49
|
+
'action': 'action',
|
|
50
|
+
'invert': 'invert'
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
def __init__(self, action: 'str' =None, invert: 'bool' =None): # noqa: E501
|
|
54
|
+
"""IdEngageBody1 - a model defined in Swagger""" # noqa: E501
|
|
55
|
+
self._action = None
|
|
56
|
+
self._invert = None
|
|
57
|
+
self.discriminator = None
|
|
58
|
+
if action is not None:
|
|
59
|
+
self.action = action
|
|
60
|
+
if invert is not None:
|
|
61
|
+
self.invert = invert
|
|
62
|
+
|
|
63
|
+
@property
|
|
64
|
+
def action(self) -> 'str':
|
|
65
|
+
"""Gets the action of this IdEngageBody1. # noqa: E501
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
:return: The action of this IdEngageBody1. # noqa: E501
|
|
69
|
+
:rtype: str
|
|
70
|
+
"""
|
|
71
|
+
return self._action
|
|
72
|
+
|
|
73
|
+
@action.setter
|
|
74
|
+
def action(self, action: 'str'):
|
|
75
|
+
"""Sets the action of this IdEngageBody1.
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
:param action: The action of this IdEngageBody1. # noqa: E501
|
|
79
|
+
:type: str
|
|
80
|
+
"""
|
|
81
|
+
|
|
82
|
+
self._action = action
|
|
83
|
+
|
|
84
|
+
@property
|
|
85
|
+
def invert(self) -> 'bool':
|
|
86
|
+
"""Gets the invert of this IdEngageBody1. # noqa: E501
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
:return: The invert of this IdEngageBody1. # noqa: E501
|
|
90
|
+
:rtype: bool
|
|
91
|
+
"""
|
|
92
|
+
return self._invert
|
|
93
|
+
|
|
94
|
+
@invert.setter
|
|
95
|
+
def invert(self, invert: 'bool'):
|
|
96
|
+
"""Sets the invert of this IdEngageBody1.
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
:param invert: The invert of this IdEngageBody1. # noqa: E501
|
|
100
|
+
:type: bool
|
|
101
|
+
"""
|
|
102
|
+
|
|
103
|
+
self._invert = invert
|
|
104
|
+
|
|
105
|
+
def to_dict(self) -> dict:
|
|
106
|
+
"""Returns the model properties as a dict"""
|
|
107
|
+
result = {}
|
|
108
|
+
|
|
109
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
110
|
+
value = getattr(self, attr)
|
|
111
|
+
if isinstance(value, list):
|
|
112
|
+
result[attr] = list(map(
|
|
113
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
114
|
+
value
|
|
115
|
+
))
|
|
116
|
+
elif hasattr(value, "to_dict"):
|
|
117
|
+
result[attr] = value.to_dict()
|
|
118
|
+
elif isinstance(value, dict):
|
|
119
|
+
result[attr] = dict(map(
|
|
120
|
+
lambda item: (item[0], item[1].to_dict())
|
|
121
|
+
if hasattr(item[1], "to_dict") else item,
|
|
122
|
+
value.items()
|
|
123
|
+
))
|
|
124
|
+
else:
|
|
125
|
+
result[attr] = value
|
|
126
|
+
if issubclass(IdEngageBody1, dict):
|
|
127
|
+
for key, value in self.items():
|
|
128
|
+
result[key] = value
|
|
129
|
+
|
|
130
|
+
return result
|
|
131
|
+
|
|
132
|
+
def to_str(self) -> str:
|
|
133
|
+
"""Returns the string representation of the model"""
|
|
134
|
+
return pprint.pformat(self.to_dict())
|
|
135
|
+
|
|
136
|
+
def __repr__(self) -> str:
|
|
137
|
+
"""For `print` and `pprint`"""
|
|
138
|
+
return self.to_str()
|
|
139
|
+
|
|
140
|
+
def __eq__(self, other: 'IdEngageBody1') -> bool:
|
|
141
|
+
"""Returns true if both objects are equal"""
|
|
142
|
+
if not isinstance(other, IdEngageBody1):
|
|
143
|
+
return False
|
|
144
|
+
|
|
145
|
+
return self.__dict__ == other.__dict__
|
|
146
|
+
|
|
147
|
+
def __ne__(self, other: 'IdEngageBody1') -> bool:
|
|
148
|
+
"""Returns true if both objects are not equal"""
|
|
149
|
+
return not self == other
|
|
@@ -0,0 +1,123 @@
|
|
|
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 ModelIdVersionsBody(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
|
+
'cluster_id': 'str'
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
attribute_map = {
|
|
48
|
+
'cluster_id': 'clusterId'
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
def __init__(self, cluster_id: 'str' =None): # noqa: E501
|
|
52
|
+
"""ModelIdVersionsBody - a model defined in Swagger""" # noqa: E501
|
|
53
|
+
self._cluster_id = None
|
|
54
|
+
self.discriminator = None
|
|
55
|
+
if cluster_id is not None:
|
|
56
|
+
self.cluster_id = cluster_id
|
|
57
|
+
|
|
58
|
+
@property
|
|
59
|
+
def cluster_id(self) -> 'str':
|
|
60
|
+
"""Gets the cluster_id of this ModelIdVersionsBody. # noqa: E501
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
:return: The cluster_id of this ModelIdVersionsBody. # noqa: E501
|
|
64
|
+
:rtype: str
|
|
65
|
+
"""
|
|
66
|
+
return self._cluster_id
|
|
67
|
+
|
|
68
|
+
@cluster_id.setter
|
|
69
|
+
def cluster_id(self, cluster_id: 'str'):
|
|
70
|
+
"""Sets the cluster_id of this ModelIdVersionsBody.
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
:param cluster_id: The cluster_id of this ModelIdVersionsBody. # noqa: E501
|
|
74
|
+
:type: str
|
|
75
|
+
"""
|
|
76
|
+
|
|
77
|
+
self._cluster_id = cluster_id
|
|
78
|
+
|
|
79
|
+
def to_dict(self) -> dict:
|
|
80
|
+
"""Returns the model properties as a dict"""
|
|
81
|
+
result = {}
|
|
82
|
+
|
|
83
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
84
|
+
value = getattr(self, attr)
|
|
85
|
+
if isinstance(value, list):
|
|
86
|
+
result[attr] = list(map(
|
|
87
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
88
|
+
value
|
|
89
|
+
))
|
|
90
|
+
elif hasattr(value, "to_dict"):
|
|
91
|
+
result[attr] = value.to_dict()
|
|
92
|
+
elif isinstance(value, dict):
|
|
93
|
+
result[attr] = dict(map(
|
|
94
|
+
lambda item: (item[0], item[1].to_dict())
|
|
95
|
+
if hasattr(item[1], "to_dict") else item,
|
|
96
|
+
value.items()
|
|
97
|
+
))
|
|
98
|
+
else:
|
|
99
|
+
result[attr] = value
|
|
100
|
+
if issubclass(ModelIdVersionsBody, dict):
|
|
101
|
+
for key, value in self.items():
|
|
102
|
+
result[key] = value
|
|
103
|
+
|
|
104
|
+
return result
|
|
105
|
+
|
|
106
|
+
def to_str(self) -> str:
|
|
107
|
+
"""Returns the string representation of the model"""
|
|
108
|
+
return pprint.pformat(self.to_dict())
|
|
109
|
+
|
|
110
|
+
def __repr__(self) -> str:
|
|
111
|
+
"""For `print` and `pprint`"""
|
|
112
|
+
return self.to_str()
|
|
113
|
+
|
|
114
|
+
def __eq__(self, other: 'ModelIdVersionsBody') -> bool:
|
|
115
|
+
"""Returns true if both objects are equal"""
|
|
116
|
+
if not isinstance(other, ModelIdVersionsBody):
|
|
117
|
+
return False
|
|
118
|
+
|
|
119
|
+
return self.__dict__ == other.__dict__
|
|
120
|
+
|
|
121
|
+
def __ne__(self, other: 'ModelIdVersionsBody') -> bool:
|
|
122
|
+
"""Returns true if both objects are not equal"""
|
|
123
|
+
return not self == other
|
|
@@ -41,6 +41,7 @@ class ProjectIdModelsBody(object):
|
|
|
41
41
|
and the value is json key in definition.
|
|
42
42
|
"""
|
|
43
43
|
swagger_types = {
|
|
44
|
+
'always_create': 'bool',
|
|
44
45
|
'cluster_id': 'str',
|
|
45
46
|
'metadata': 'dict(str, str)',
|
|
46
47
|
'name': 'str',
|
|
@@ -48,19 +49,23 @@ class ProjectIdModelsBody(object):
|
|
|
48
49
|
}
|
|
49
50
|
|
|
50
51
|
attribute_map = {
|
|
52
|
+
'always_create': 'alwaysCreate',
|
|
51
53
|
'cluster_id': 'clusterId',
|
|
52
54
|
'metadata': 'metadata',
|
|
53
55
|
'name': 'name',
|
|
54
56
|
'private': 'private'
|
|
55
57
|
}
|
|
56
58
|
|
|
57
|
-
def __init__(self, cluster_id: 'str' =None, metadata: 'dict(str, str)' =None, name: 'str' =None, private: 'bool' =None): # noqa: E501
|
|
59
|
+
def __init__(self, always_create: 'bool' =None, cluster_id: 'str' =None, metadata: 'dict(str, str)' =None, name: 'str' =None, private: 'bool' =None): # noqa: E501
|
|
58
60
|
"""ProjectIdModelsBody - a model defined in Swagger""" # noqa: E501
|
|
61
|
+
self._always_create = None
|
|
59
62
|
self._cluster_id = None
|
|
60
63
|
self._metadata = None
|
|
61
64
|
self._name = None
|
|
62
65
|
self._private = None
|
|
63
66
|
self.discriminator = None
|
|
67
|
+
if always_create is not None:
|
|
68
|
+
self.always_create = always_create
|
|
64
69
|
if cluster_id is not None:
|
|
65
70
|
self.cluster_id = cluster_id
|
|
66
71
|
if metadata is not None:
|
|
@@ -70,6 +75,27 @@ class ProjectIdModelsBody(object):
|
|
|
70
75
|
if private is not None:
|
|
71
76
|
self.private = private
|
|
72
77
|
|
|
78
|
+
@property
|
|
79
|
+
def always_create(self) -> 'bool':
|
|
80
|
+
"""Gets the always_create of this ProjectIdModelsBody. # noqa: E501
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
:return: The always_create of this ProjectIdModelsBody. # noqa: E501
|
|
84
|
+
:rtype: bool
|
|
85
|
+
"""
|
|
86
|
+
return self._always_create
|
|
87
|
+
|
|
88
|
+
@always_create.setter
|
|
89
|
+
def always_create(self, always_create: 'bool'):
|
|
90
|
+
"""Sets the always_create of this ProjectIdModelsBody.
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
:param always_create: The always_create of this ProjectIdModelsBody. # noqa: E501
|
|
94
|
+
:type: bool
|
|
95
|
+
"""
|
|
96
|
+
|
|
97
|
+
self._always_create = always_create
|
|
98
|
+
|
|
73
99
|
@property
|
|
74
100
|
def cluster_id(self) -> 'str':
|
|
75
101
|
"""Gets the cluster_id of this ProjectIdModelsBody. # noqa: E501
|
|
@@ -48,7 +48,7 @@ class V1CreateDeploymentTemplateRequest(object):
|
|
|
48
48
|
'image_url': 'str',
|
|
49
49
|
'name': 'str',
|
|
50
50
|
'org_id': 'str',
|
|
51
|
-
'
|
|
51
|
+
'parameter_spec': 'V1ParameterizationSpec',
|
|
52
52
|
'project_id': 'str',
|
|
53
53
|
'spec': 'str',
|
|
54
54
|
'tags': 'list[V1ResourceTag]',
|
|
@@ -64,7 +64,7 @@ class V1CreateDeploymentTemplateRequest(object):
|
|
|
64
64
|
'image_url': 'imageUrl',
|
|
65
65
|
'name': 'name',
|
|
66
66
|
'org_id': 'orgId',
|
|
67
|
-
'
|
|
67
|
+
'parameter_spec': 'parameterSpec',
|
|
68
68
|
'project_id': 'projectId',
|
|
69
69
|
'spec': 'spec',
|
|
70
70
|
'tags': 'tags',
|
|
@@ -72,7 +72,7 @@ class V1CreateDeploymentTemplateRequest(object):
|
|
|
72
72
|
'visibility': 'visibility'
|
|
73
73
|
}
|
|
74
74
|
|
|
75
|
-
def __init__(self, about_page_content: 'str' =None, categories: 'list[str]' =None, deployment_id: 'str' =None, description: 'str' =None, image_url: 'str' =None, name: 'str' =None, org_id: 'str' =None,
|
|
75
|
+
def __init__(self, about_page_content: 'str' =None, categories: 'list[str]' =None, deployment_id: 'str' =None, description: 'str' =None, image_url: 'str' =None, name: 'str' =None, org_id: 'str' =None, parameter_spec: 'V1ParameterizationSpec' =None, project_id: 'str' =None, spec: 'str' =None, tags: 'list[V1ResourceTag]' =None, version: 'str' =None, visibility: 'V1DeploymentTemplateType' =None): # noqa: E501
|
|
76
76
|
"""V1CreateDeploymentTemplateRequest - a model defined in Swagger""" # noqa: E501
|
|
77
77
|
self._about_page_content = None
|
|
78
78
|
self._categories = None
|
|
@@ -81,7 +81,7 @@ class V1CreateDeploymentTemplateRequest(object):
|
|
|
81
81
|
self._image_url = None
|
|
82
82
|
self._name = None
|
|
83
83
|
self._org_id = None
|
|
84
|
-
self.
|
|
84
|
+
self._parameter_spec = None
|
|
85
85
|
self._project_id = None
|
|
86
86
|
self._spec = None
|
|
87
87
|
self._tags = None
|
|
@@ -102,8 +102,8 @@ class V1CreateDeploymentTemplateRequest(object):
|
|
|
102
102
|
self.name = name
|
|
103
103
|
if org_id is not None:
|
|
104
104
|
self.org_id = org_id
|
|
105
|
-
if
|
|
106
|
-
self.
|
|
105
|
+
if parameter_spec is not None:
|
|
106
|
+
self.parameter_spec = parameter_spec
|
|
107
107
|
if project_id is not None:
|
|
108
108
|
self.project_id = project_id
|
|
109
109
|
if spec is not None:
|
|
@@ -263,25 +263,25 @@ class V1CreateDeploymentTemplateRequest(object):
|
|
|
263
263
|
self._org_id = org_id
|
|
264
264
|
|
|
265
265
|
@property
|
|
266
|
-
def
|
|
267
|
-
"""Gets the
|
|
266
|
+
def parameter_spec(self) -> 'V1ParameterizationSpec':
|
|
267
|
+
"""Gets the parameter_spec of this V1CreateDeploymentTemplateRequest. # noqa: E501
|
|
268
268
|
|
|
269
269
|
|
|
270
|
-
:return: The
|
|
271
|
-
:rtype:
|
|
270
|
+
:return: The parameter_spec of this V1CreateDeploymentTemplateRequest. # noqa: E501
|
|
271
|
+
:rtype: V1ParameterizationSpec
|
|
272
272
|
"""
|
|
273
|
-
return self.
|
|
273
|
+
return self._parameter_spec
|
|
274
274
|
|
|
275
|
-
@
|
|
276
|
-
def
|
|
277
|
-
"""Sets the
|
|
275
|
+
@parameter_spec.setter
|
|
276
|
+
def parameter_spec(self, parameter_spec: 'V1ParameterizationSpec'):
|
|
277
|
+
"""Sets the parameter_spec of this V1CreateDeploymentTemplateRequest.
|
|
278
278
|
|
|
279
279
|
|
|
280
|
-
:param
|
|
281
|
-
:type:
|
|
280
|
+
:param parameter_spec: The parameter_spec of this V1CreateDeploymentTemplateRequest. # noqa: E501
|
|
281
|
+
:type: V1ParameterizationSpec
|
|
282
282
|
"""
|
|
283
283
|
|
|
284
|
-
self.
|
|
284
|
+
self._parameter_spec = parameter_spec
|
|
285
285
|
|
|
286
286
|
@property
|
|
287
287
|
def project_id(self) -> 'str':
|