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.
Files changed (31) hide show
  1. lightning_sdk/__init__.py +1 -1
  2. lightning_sdk/api/teamspace_api.py +35 -5
  3. lightning_sdk/lightning_cloud/openapi/__init__.py +4 -0
  4. lightning_sdk/lightning_cloud/openapi/api/cloud_space_service_api.py +4 -4
  5. lightning_sdk/lightning_cloud/openapi/api/cluster_service_api.py +5 -5
  6. lightning_sdk/lightning_cloud/openapi/api/deployment_templates_service_api.py +105 -0
  7. lightning_sdk/lightning_cloud/openapi/api/jobs_service_api.py +5 -1
  8. lightning_sdk/lightning_cloud/openapi/api/models_store_api.py +118 -2
  9. lightning_sdk/lightning_cloud/openapi/models/__init__.py +4 -0
  10. lightning_sdk/lightning_cloud/openapi/models/cluster_id_capacityblock_body.py +15 -15
  11. lightning_sdk/lightning_cloud/openapi/models/deployments_id_body.py +27 -1
  12. lightning_sdk/lightning_cloud/openapi/models/deploymenttemplates_id_body.py +43 -17
  13. lightning_sdk/lightning_cloud/openapi/models/id_engage_body.py +3 -29
  14. lightning_sdk/lightning_cloud/openapi/models/id_engage_body1.py +149 -0
  15. lightning_sdk/lightning_cloud/openapi/models/model_id_versions_body.py +123 -0
  16. lightning_sdk/lightning_cloud/openapi/models/project_id_models_body.py +27 -1
  17. lightning_sdk/lightning_cloud/openapi/models/v1_create_deployment_template_request.py +17 -17
  18. lightning_sdk/lightning_cloud/openapi/models/v1_deployment.py +27 -1
  19. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_template.py +17 -17
  20. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_template_engagement_response.py +97 -0
  21. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_template_parameter_placement.py +2 -0
  22. lightning_sdk/lightning_cloud/openapi/models/v1_model_version_archive.py +27 -1
  23. lightning_sdk/lightning_cloud/openapi/models/v1_parameterization_spec.py +227 -0
  24. lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +27 -27
  25. lightning_sdk/teamspace.py +11 -0
  26. {lightning_sdk-0.1.30.dist-info → lightning_sdk-0.1.31.dist-info}/METADATA +1 -1
  27. {lightning_sdk-0.1.30.dist-info → lightning_sdk-0.1.31.dist-info}/RECORD +31 -27
  28. {lightning_sdk-0.1.30.dist-info → lightning_sdk-0.1.31.dist-info}/LICENSE +0 -0
  29. {lightning_sdk-0.1.30.dist-info → lightning_sdk-0.1.31.dist-info}/WHEEL +0 -0
  30. {lightning_sdk-0.1.30.dist-info → lightning_sdk-0.1.31.dist-info}/entry_points.txt +0 -0
  31. {lightning_sdk-0.1.30.dist-info → lightning_sdk-0.1.31.dist-info}/top_level.txt +0 -0
@@ -46,6 +46,7 @@ class V1Deployment(object):
46
46
  'desired_state': 'V1DeploymentState',
47
47
  'endpoint': 'V1Endpoint',
48
48
  'id': 'str',
49
+ 'is_published': 'bool',
49
50
  'name': 'str',
50
51
  'project_id': 'str',
51
52
  'release_id': 'str',
@@ -63,6 +64,7 @@ class V1Deployment(object):
63
64
  'desired_state': 'desiredState',
64
65
  'endpoint': 'endpoint',
65
66
  'id': 'id',
67
+ 'is_published': 'isPublished',
66
68
  'name': 'name',
67
69
  'project_id': 'projectId',
68
70
  'release_id': 'releaseId',
@@ -74,13 +76,14 @@ class V1Deployment(object):
74
76
  'user_id': 'userId'
75
77
  }
76
78
 
77
- def __init__(self, autoscaling: 'V1AutoscalingSpec' =None, created_at: 'datetime' =None, desired_state: 'V1DeploymentState' =None, endpoint: 'V1Endpoint' =None, id: 'str' =None, name: 'str' =None, project_id: '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
79
+ def __init__(self, autoscaling: 'V1AutoscalingSpec' =None, created_at: 'datetime' =None, desired_state: 'V1DeploymentState' =None, endpoint: 'V1Endpoint' =None, id: 'str' =None, is_published: 'bool' =None, name: 'str' =None, project_id: '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
78
80
  """V1Deployment - a model defined in Swagger""" # noqa: E501
79
81
  self._autoscaling = None
80
82
  self._created_at = None
81
83
  self._desired_state = None
82
84
  self._endpoint = None
83
85
  self._id = None
86
+ self._is_published = None
84
87
  self._name = None
85
88
  self._project_id = None
86
89
  self._release_id = None
@@ -101,6 +104,8 @@ class V1Deployment(object):
101
104
  self.endpoint = endpoint
102
105
  if id is not None:
103
106
  self.id = id
107
+ if is_published is not None:
108
+ self.is_published = is_published
104
109
  if name is not None:
105
110
  self.name = name
106
111
  if project_id is not None:
@@ -225,6 +230,27 @@ class V1Deployment(object):
225
230
 
226
231
  self._id = id
227
232
 
233
+ @property
234
+ def is_published(self) -> 'bool':
235
+ """Gets the is_published of this V1Deployment. # noqa: E501
236
+
237
+
238
+ :return: The is_published of this V1Deployment. # noqa: E501
239
+ :rtype: bool
240
+ """
241
+ return self._is_published
242
+
243
+ @is_published.setter
244
+ def is_published(self, is_published: 'bool'):
245
+ """Sets the is_published of this V1Deployment.
246
+
247
+
248
+ :param is_published: The is_published of this V1Deployment. # noqa: E501
249
+ :type: bool
250
+ """
251
+
252
+ self._is_published = is_published
253
+
228
254
  @property
229
255
  def name(self) -> 'str':
230
256
  """Gets the name of this V1Deployment. # noqa: E501
@@ -53,7 +53,7 @@ class V1DeploymentTemplate(object):
53
53
  'image_url': 'str',
54
54
  'name': 'str',
55
55
  'org_id': 'str',
56
- 'parameters': 'list[V1DeploymentTemplateParameter]',
56
+ 'parameter_spec': 'V1ParameterizationSpec',
57
57
  'project_id': 'str',
58
58
  'spec': 'V1JobSpec',
59
59
  'spec_v2': 'V1DeploymentSpec',
@@ -76,7 +76,7 @@ class V1DeploymentTemplate(object):
76
76
  'image_url': 'imageUrl',
77
77
  'name': 'name',
78
78
  'org_id': 'orgId',
79
- 'parameters': 'parameters',
79
+ 'parameter_spec': 'parameterSpec',
80
80
  'project_id': 'projectId',
81
81
  'spec': 'spec',
82
82
  'spec_v2': 'specV2',
@@ -86,7 +86,7 @@ class V1DeploymentTemplate(object):
86
86
  'user_id': 'userId'
87
87
  }
88
88
 
89
- 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, parameters: 'list[V1DeploymentTemplateParameter]' =None, project_id: 'str' =None, spec: 'V1JobSpec' =None, spec_v2: 'V1DeploymentSpec' =None, tags: 'list[V1ResourceTag]' =None, unpublished: 'bool' =None, updated_at: 'datetime' =None, user_id: 'str' =None): # noqa: E501
89
+ 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, parameter_spec: 'V1ParameterizationSpec' =None, project_id: 'str' =None, spec: 'V1JobSpec' =None, spec_v2: 'V1DeploymentSpec' =None, tags: 'list[V1ResourceTag]' =None, unpublished: 'bool' =None, updated_at: 'datetime' =None, user_id: 'str' =None): # noqa: E501
90
90
  """V1DeploymentTemplate - a model defined in Swagger""" # noqa: E501
91
91
  self._about_page_content = None
92
92
  self._about_page_id = None
@@ -100,7 +100,7 @@ class V1DeploymentTemplate(object):
100
100
  self._image_url = None
101
101
  self._name = None
102
102
  self._org_id = None
103
- self._parameters = None
103
+ self._parameter_spec = None
104
104
  self._project_id = None
105
105
  self._spec = None
106
106
  self._spec_v2 = None
@@ -133,8 +133,8 @@ class V1DeploymentTemplate(object):
133
133
  self.name = name
134
134
  if org_id is not None:
135
135
  self.org_id = org_id
136
- if parameters is not None:
137
- self.parameters = parameters
136
+ if parameter_spec is not None:
137
+ self.parameter_spec = parameter_spec
138
138
  if project_id is not None:
139
139
  self.project_id = project_id
140
140
  if spec is not None:
@@ -403,25 +403,25 @@ class V1DeploymentTemplate(object):
403
403
  self._org_id = org_id
404
404
 
405
405
  @property
406
- def parameters(self) -> 'list[V1DeploymentTemplateParameter]':
407
- """Gets the parameters of this V1DeploymentTemplate. # noqa: E501
406
+ def parameter_spec(self) -> 'V1ParameterizationSpec':
407
+ """Gets the parameter_spec of this V1DeploymentTemplate. # noqa: E501
408
408
 
409
409
 
410
- :return: The parameters of this V1DeploymentTemplate. # noqa: E501
411
- :rtype: list[V1DeploymentTemplateParameter]
410
+ :return: The parameter_spec of this V1DeploymentTemplate. # noqa: E501
411
+ :rtype: V1ParameterizationSpec
412
412
  """
413
- return self._parameters
413
+ return self._parameter_spec
414
414
 
415
- @parameters.setter
416
- def parameters(self, parameters: 'list[V1DeploymentTemplateParameter]'):
417
- """Sets the parameters of this V1DeploymentTemplate.
415
+ @parameter_spec.setter
416
+ def parameter_spec(self, parameter_spec: 'V1ParameterizationSpec'):
417
+ """Sets the parameter_spec of this V1DeploymentTemplate.
418
418
 
419
419
 
420
- :param parameters: The parameters of this V1DeploymentTemplate. # noqa: E501
421
- :type: list[V1DeploymentTemplateParameter]
420
+ :param parameter_spec: The parameter_spec of this V1DeploymentTemplate. # noqa: E501
421
+ :type: V1ParameterizationSpec
422
422
  """
423
423
 
424
- self._parameters = parameters
424
+ self._parameter_spec = parameter_spec
425
425
 
426
426
  @property
427
427
  def project_id(self) -> 'str':
@@ -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
@@ -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
@@ -44,6 +44,7 @@ class V1ModelVersionArchive(object):
44
44
  'cluster_id': 'str',
45
45
  'created_at': 'datetime',
46
46
  'downloads': 'str',
47
+ 'index': 'int',
47
48
  'metadata': 'dict(str, str)',
48
49
  'model_id': 'str',
49
50
  'project_id': 'str',
@@ -57,6 +58,7 @@ class V1ModelVersionArchive(object):
57
58
  'cluster_id': 'clusterId',
58
59
  'created_at': 'createdAt',
59
60
  'downloads': 'downloads',
61
+ 'index': 'index',
60
62
  'metadata': 'metadata',
61
63
  'model_id': 'modelId',
62
64
  'project_id': 'projectId',
@@ -66,11 +68,12 @@ class V1ModelVersionArchive(object):
66
68
  'version': 'version'
67
69
  }
68
70
 
69
- def __init__(self, cluster_id: 'str' =None, created_at: 'datetime' =None, downloads: 'str' =None, metadata: 'dict(str, str)' =None, model_id: 'str' =None, project_id: 'str' =None, updated_at: 'datetime' =None, upload_complete: 'bool' =None, user_id: 'str' =None, version: 'str' =None): # noqa: E501
71
+ def __init__(self, cluster_id: 'str' =None, created_at: 'datetime' =None, downloads: 'str' =None, index: 'int' =None, metadata: 'dict(str, str)' =None, model_id: 'str' =None, project_id: 'str' =None, updated_at: 'datetime' =None, upload_complete: 'bool' =None, user_id: 'str' =None, version: 'str' =None): # noqa: E501
70
72
  """V1ModelVersionArchive - a model defined in Swagger""" # noqa: E501
71
73
  self._cluster_id = None
72
74
  self._created_at = None
73
75
  self._downloads = None
76
+ self._index = None
74
77
  self._metadata = None
75
78
  self._model_id = None
76
79
  self._project_id = None
@@ -85,6 +88,8 @@ class V1ModelVersionArchive(object):
85
88
  self.created_at = created_at
86
89
  if downloads is not None:
87
90
  self.downloads = downloads
91
+ if index is not None:
92
+ self.index = index
88
93
  if metadata is not None:
89
94
  self.metadata = metadata
90
95
  if model_id is not None:
@@ -163,6 +168,27 @@ class V1ModelVersionArchive(object):
163
168
 
164
169
  self._downloads = downloads
165
170
 
171
+ @property
172
+ def index(self) -> 'int':
173
+ """Gets the index of this V1ModelVersionArchive. # noqa: E501
174
+
175
+
176
+ :return: The index of this V1ModelVersionArchive. # noqa: E501
177
+ :rtype: int
178
+ """
179
+ return self._index
180
+
181
+ @index.setter
182
+ def index(self, index: 'int'):
183
+ """Sets the index of this V1ModelVersionArchive.
184
+
185
+
186
+ :param index: The index of this V1ModelVersionArchive. # noqa: E501
187
+ :type: int
188
+ """
189
+
190
+ self._index = index
191
+
166
192
  @property
167
193
  def metadata(self) -> 'dict(str, str)':
168
194
  """Gets the metadata of this V1ModelVersionArchive. # noqa: E501
@@ -0,0 +1,227 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ external/v1/auth_service.proto
5
+
6
+ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
7
+
8
+ OpenAPI spec version: version not set
9
+
10
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
11
+
12
+ NOTE
13
+ ----
14
+ standard swagger-codegen-cli for this python client has been modified
15
+ by custom templates. The purpose of these templates is to include
16
+ typing information in the API and Model code. Please refer to the
17
+ main grid repository for more info
18
+ """
19
+
20
+ import pprint
21
+ import re # noqa: F401
22
+
23
+ from typing import TYPE_CHECKING
24
+
25
+ import six
26
+
27
+ if TYPE_CHECKING:
28
+ from datetime import datetime
29
+ from lightning_sdk.lightning_cloud.openapi.models import *
30
+
31
+ class V1ParameterizationSpec(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
+ 'command': 'str',
45
+ 'entrypoint': 'str',
46
+ 'env': 'list[V1EnvVar]',
47
+ 'image': 'str',
48
+ 'parameters': 'list[V1DeploymentTemplateParameter]'
49
+ }
50
+
51
+ attribute_map = {
52
+ 'command': 'command',
53
+ 'entrypoint': 'entrypoint',
54
+ 'env': 'env',
55
+ 'image': 'image',
56
+ 'parameters': 'parameters'
57
+ }
58
+
59
+ def __init__(self, command: 'str' =None, entrypoint: 'str' =None, env: 'list[V1EnvVar]' =None, image: 'str' =None, parameters: 'list[V1DeploymentTemplateParameter]' =None): # noqa: E501
60
+ """V1ParameterizationSpec - a model defined in Swagger""" # noqa: E501
61
+ self._command = None
62
+ self._entrypoint = None
63
+ self._env = None
64
+ self._image = None
65
+ self._parameters = None
66
+ self.discriminator = None
67
+ if command is not None:
68
+ self.command = command
69
+ if entrypoint is not None:
70
+ self.entrypoint = entrypoint
71
+ if env is not None:
72
+ self.env = env
73
+ if image is not None:
74
+ self.image = image
75
+ if parameters is not None:
76
+ self.parameters = parameters
77
+
78
+ @property
79
+ def command(self) -> 'str':
80
+ """Gets the command of this V1ParameterizationSpec. # noqa: E501
81
+
82
+
83
+ :return: The command of this V1ParameterizationSpec. # noqa: E501
84
+ :rtype: str
85
+ """
86
+ return self._command
87
+
88
+ @command.setter
89
+ def command(self, command: 'str'):
90
+ """Sets the command of this V1ParameterizationSpec.
91
+
92
+
93
+ :param command: The command of this V1ParameterizationSpec. # noqa: E501
94
+ :type: str
95
+ """
96
+
97
+ self._command = command
98
+
99
+ @property
100
+ def entrypoint(self) -> 'str':
101
+ """Gets the entrypoint of this V1ParameterizationSpec. # noqa: E501
102
+
103
+
104
+ :return: The entrypoint of this V1ParameterizationSpec. # noqa: E501
105
+ :rtype: str
106
+ """
107
+ return self._entrypoint
108
+
109
+ @entrypoint.setter
110
+ def entrypoint(self, entrypoint: 'str'):
111
+ """Sets the entrypoint of this V1ParameterizationSpec.
112
+
113
+
114
+ :param entrypoint: The entrypoint of this V1ParameterizationSpec. # noqa: E501
115
+ :type: str
116
+ """
117
+
118
+ self._entrypoint = entrypoint
119
+
120
+ @property
121
+ def env(self) -> 'list[V1EnvVar]':
122
+ """Gets the env of this V1ParameterizationSpec. # noqa: E501
123
+
124
+
125
+ :return: The env of this V1ParameterizationSpec. # noqa: E501
126
+ :rtype: list[V1EnvVar]
127
+ """
128
+ return self._env
129
+
130
+ @env.setter
131
+ def env(self, env: 'list[V1EnvVar]'):
132
+ """Sets the env of this V1ParameterizationSpec.
133
+
134
+
135
+ :param env: The env of this V1ParameterizationSpec. # noqa: E501
136
+ :type: list[V1EnvVar]
137
+ """
138
+
139
+ self._env = env
140
+
141
+ @property
142
+ def image(self) -> 'str':
143
+ """Gets the image of this V1ParameterizationSpec. # noqa: E501
144
+
145
+
146
+ :return: The image of this V1ParameterizationSpec. # noqa: E501
147
+ :rtype: str
148
+ """
149
+ return self._image
150
+
151
+ @image.setter
152
+ def image(self, image: 'str'):
153
+ """Sets the image of this V1ParameterizationSpec.
154
+
155
+
156
+ :param image: The image of this V1ParameterizationSpec. # noqa: E501
157
+ :type: str
158
+ """
159
+
160
+ self._image = image
161
+
162
+ @property
163
+ def parameters(self) -> 'list[V1DeploymentTemplateParameter]':
164
+ """Gets the parameters of this V1ParameterizationSpec. # noqa: E501
165
+
166
+
167
+ :return: The parameters of this V1ParameterizationSpec. # noqa: E501
168
+ :rtype: list[V1DeploymentTemplateParameter]
169
+ """
170
+ return self._parameters
171
+
172
+ @parameters.setter
173
+ def parameters(self, parameters: 'list[V1DeploymentTemplateParameter]'):
174
+ """Sets the parameters of this V1ParameterizationSpec.
175
+
176
+
177
+ :param parameters: The parameters of this V1ParameterizationSpec. # noqa: E501
178
+ :type: list[V1DeploymentTemplateParameter]
179
+ """
180
+
181
+ self._parameters = parameters
182
+
183
+ def to_dict(self) -> dict:
184
+ """Returns the model properties as a dict"""
185
+ result = {}
186
+
187
+ for attr, _ in six.iteritems(self.swagger_types):
188
+ value = getattr(self, attr)
189
+ if isinstance(value, list):
190
+ result[attr] = list(map(
191
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
192
+ value
193
+ ))
194
+ elif hasattr(value, "to_dict"):
195
+ result[attr] = value.to_dict()
196
+ elif isinstance(value, dict):
197
+ result[attr] = dict(map(
198
+ lambda item: (item[0], item[1].to_dict())
199
+ if hasattr(item[1], "to_dict") else item,
200
+ value.items()
201
+ ))
202
+ else:
203
+ result[attr] = value
204
+ if issubclass(V1ParameterizationSpec, dict):
205
+ for key, value in self.items():
206
+ result[key] = value
207
+
208
+ return result
209
+
210
+ def to_str(self) -> str:
211
+ """Returns the string representation of the model"""
212
+ return pprint.pformat(self.to_dict())
213
+
214
+ def __repr__(self) -> str:
215
+ """For `print` and `pprint`"""
216
+ return self.to_str()
217
+
218
+ def __eq__(self, other: 'V1ParameterizationSpec') -> bool:
219
+ """Returns true if both objects are equal"""
220
+ if not isinstance(other, V1ParameterizationSpec):
221
+ return False
222
+
223
+ return self.__dict__ == other.__dict__
224
+
225
+ def __ne__(self, other: 'V1ParameterizationSpec') -> bool:
226
+ """Returns true if both objects are not equal"""
227
+ return not self == other