lightning-sdk 0.1.29__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 (34) hide show
  1. lightning_sdk/__init__.py +1 -1
  2. lightning_sdk/api/teamspace_api.py +35 -5
  3. lightning_sdk/cli/download.py +19 -2
  4. lightning_sdk/cli/models.py +38 -0
  5. lightning_sdk/cli/upload.py +21 -2
  6. lightning_sdk/lightning_cloud/openapi/__init__.py +4 -0
  7. lightning_sdk/lightning_cloud/openapi/api/cloud_space_service_api.py +4 -4
  8. lightning_sdk/lightning_cloud/openapi/api/cluster_service_api.py +5 -5
  9. lightning_sdk/lightning_cloud/openapi/api/deployment_templates_service_api.py +105 -0
  10. lightning_sdk/lightning_cloud/openapi/api/jobs_service_api.py +5 -1
  11. lightning_sdk/lightning_cloud/openapi/api/models_store_api.py +118 -2
  12. lightning_sdk/lightning_cloud/openapi/models/__init__.py +4 -0
  13. lightning_sdk/lightning_cloud/openapi/models/cluster_id_capacityblock_body.py +15 -15
  14. lightning_sdk/lightning_cloud/openapi/models/deployments_id_body.py +27 -1
  15. lightning_sdk/lightning_cloud/openapi/models/deploymenttemplates_id_body.py +43 -17
  16. lightning_sdk/lightning_cloud/openapi/models/id_engage_body.py +3 -29
  17. lightning_sdk/lightning_cloud/openapi/models/id_engage_body1.py +149 -0
  18. lightning_sdk/lightning_cloud/openapi/models/model_id_versions_body.py +123 -0
  19. lightning_sdk/lightning_cloud/openapi/models/project_id_models_body.py +27 -1
  20. lightning_sdk/lightning_cloud/openapi/models/v1_create_deployment_template_request.py +17 -17
  21. lightning_sdk/lightning_cloud/openapi/models/v1_deployment.py +27 -1
  22. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_template.py +17 -17
  23. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_template_engagement_response.py +97 -0
  24. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_template_parameter_placement.py +2 -0
  25. lightning_sdk/lightning_cloud/openapi/models/v1_model_version_archive.py +27 -1
  26. lightning_sdk/lightning_cloud/openapi/models/v1_parameterization_spec.py +227 -0
  27. lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +27 -27
  28. lightning_sdk/teamspace.py +11 -0
  29. {lightning_sdk-0.1.29.dist-info → lightning_sdk-0.1.31.dist-info}/METADATA +1 -1
  30. {lightning_sdk-0.1.29.dist-info → lightning_sdk-0.1.31.dist-info}/RECORD +34 -29
  31. {lightning_sdk-0.1.29.dist-info → lightning_sdk-0.1.31.dist-info}/LICENSE +0 -0
  32. {lightning_sdk-0.1.29.dist-info → lightning_sdk-0.1.31.dist-info}/WHEEL +0 -0
  33. {lightning_sdk-0.1.29.dist-info → lightning_sdk-0.1.31.dist-info}/entry_points.txt +0 -0
  34. {lightning_sdk-0.1.29.dist-info → lightning_sdk-0.1.31.dist-info}/top_level.txt +0 -0
@@ -69,6 +69,7 @@ from lightning_sdk.lightning_cloud.openapi.models.id_codeconfig_body import IdCo
69
69
  from lightning_sdk.lightning_cloud.openapi.models.id_collaborate_body import IdCollaborateBody
70
70
  from lightning_sdk.lightning_cloud.openapi.models.id_complete_body import IdCompleteBody
71
71
  from lightning_sdk.lightning_cloud.openapi.models.id_engage_body import IdEngageBody
72
+ from lightning_sdk.lightning_cloud.openapi.models.id_engage_body1 import IdEngageBody1
72
73
  from lightning_sdk.lightning_cloud.openapi.models.id_execute_body import IdExecuteBody
73
74
  from lightning_sdk.lightning_cloud.openapi.models.id_execute_body1 import IdExecuteBody1
74
75
  from lightning_sdk.lightning_cloud.openapi.models.id_fork_body import IdForkBody
@@ -98,6 +99,7 @@ from lightning_sdk.lightning_cloud.openapi.models.metrics_stream_id_loggerartifa
98
99
  from lightning_sdk.lightning_cloud.openapi.models.metricsstream_create_body import MetricsstreamCreateBody
99
100
  from lightning_sdk.lightning_cloud.openapi.models.metricsstream_delete_body import MetricsstreamDeleteBody
100
101
  from lightning_sdk.lightning_cloud.openapi.models.metricsstream_id_body import MetricsstreamIdBody
102
+ from lightning_sdk.lightning_cloud.openapi.models.model_id_versions_body import ModelIdVersionsBody
101
103
  from lightning_sdk.lightning_cloud.openapi.models.models_model_id_body import ModelsModelIdBody
102
104
  from lightning_sdk.lightning_cloud.openapi.models.multipartuploads_upload_id_body import MultipartuploadsUploadIdBody
103
105
  from lightning_sdk.lightning_cloud.openapi.models.org_id_memberships_body import OrgIdMembershipsBody
@@ -324,6 +326,7 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_deployment_state import V1D
324
326
  from lightning_sdk.lightning_cloud.openapi.models.v1_deployment_status import V1DeploymentStatus
325
327
  from lightning_sdk.lightning_cloud.openapi.models.v1_deployment_strategy import V1DeploymentStrategy
326
328
  from lightning_sdk.lightning_cloud.openapi.models.v1_deployment_template import V1DeploymentTemplate
329
+ from lightning_sdk.lightning_cloud.openapi.models.v1_deployment_template_engagement_response import V1DeploymentTemplateEngagementResponse
327
330
  from lightning_sdk.lightning_cloud.openapi.models.v1_deployment_template_gallery_response import V1DeploymentTemplateGalleryResponse
328
331
  from lightning_sdk.lightning_cloud.openapi.models.v1_deployment_template_parameter import V1DeploymentTemplateParameter
329
332
  from lightning_sdk.lightning_cloud.openapi.models.v1_deployment_template_parameter_placement import V1DeploymentTemplateParameterPlacement
@@ -556,6 +559,7 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_org_role import V1OrgRole
556
559
  from lightning_sdk.lightning_cloud.openapi.models.v1_organization import V1Organization
557
560
  from lightning_sdk.lightning_cloud.openapi.models.v1_owner_type import V1OwnerType
558
561
  from lightning_sdk.lightning_cloud.openapi.models.v1_package_manager import V1PackageManager
562
+ from lightning_sdk.lightning_cloud.openapi.models.v1_parameterization_spec import V1ParameterizationSpec
559
563
  from lightning_sdk.lightning_cloud.openapi.models.v1_path_telemetry import V1PathTelemetry
560
564
  from lightning_sdk.lightning_cloud.openapi.models.v1_phase_type import V1PhaseType
561
565
  from lightning_sdk.lightning_cloud.openapi.models.v1_plugin import V1Plugin
@@ -41,7 +41,7 @@ class ClusterIdCapacityblockBody(object):
41
41
  and the value is json key in definition.
42
42
  """
43
43
  swagger_types = {
44
- 'capacity_block_duration_hours': 'int',
44
+ 'capacity_block_duration_days': 'int',
45
45
  'instance_count': 'int',
46
46
  'instance_type': 'str',
47
47
  'org_id': 'str',
@@ -50,7 +50,7 @@ class ClusterIdCapacityblockBody(object):
50
50
  }
51
51
 
52
52
  attribute_map = {
53
- 'capacity_block_duration_hours': 'capacityBlockDurationHours',
53
+ 'capacity_block_duration_days': 'capacityBlockDurationDays',
54
54
  'instance_count': 'instanceCount',
55
55
  'instance_type': 'instanceType',
56
56
  'org_id': 'orgId',
@@ -58,17 +58,17 @@ class ClusterIdCapacityblockBody(object):
58
58
  'timezone': 'timezone'
59
59
  }
60
60
 
61
- def __init__(self, capacity_block_duration_hours: 'int' =None, instance_count: 'int' =None, instance_type: 'str' =None, org_id: 'str' =None, start_date: 'datetime' =None, timezone: 'str' =None): # noqa: E501
61
+ def __init__(self, capacity_block_duration_days: 'int' =None, instance_count: 'int' =None, instance_type: 'str' =None, org_id: 'str' =None, start_date: 'datetime' =None, timezone: 'str' =None): # noqa: E501
62
62
  """ClusterIdCapacityblockBody - a model defined in Swagger""" # noqa: E501
63
- self._capacity_block_duration_hours = None
63
+ self._capacity_block_duration_days = None
64
64
  self._instance_count = None
65
65
  self._instance_type = None
66
66
  self._org_id = None
67
67
  self._start_date = None
68
68
  self._timezone = None
69
69
  self.discriminator = None
70
- if capacity_block_duration_hours is not None:
71
- self.capacity_block_duration_hours = capacity_block_duration_hours
70
+ if capacity_block_duration_days is not None:
71
+ self.capacity_block_duration_days = capacity_block_duration_days
72
72
  if instance_count is not None:
73
73
  self.instance_count = instance_count
74
74
  if instance_type is not None:
@@ -81,25 +81,25 @@ class ClusterIdCapacityblockBody(object):
81
81
  self.timezone = timezone
82
82
 
83
83
  @property
84
- def capacity_block_duration_hours(self) -> 'int':
85
- """Gets the capacity_block_duration_hours of this ClusterIdCapacityblockBody. # noqa: E501
84
+ def capacity_block_duration_days(self) -> 'int':
85
+ """Gets the capacity_block_duration_days of this ClusterIdCapacityblockBody. # noqa: E501
86
86
 
87
87
 
88
- :return: The capacity_block_duration_hours of this ClusterIdCapacityblockBody. # noqa: E501
88
+ :return: The capacity_block_duration_days of this ClusterIdCapacityblockBody. # noqa: E501
89
89
  :rtype: int
90
90
  """
91
- return self._capacity_block_duration_hours
91
+ return self._capacity_block_duration_days
92
92
 
93
- @capacity_block_duration_hours.setter
94
- def capacity_block_duration_hours(self, capacity_block_duration_hours: 'int'):
95
- """Sets the capacity_block_duration_hours of this ClusterIdCapacityblockBody.
93
+ @capacity_block_duration_days.setter
94
+ def capacity_block_duration_days(self, capacity_block_duration_days: 'int'):
95
+ """Sets the capacity_block_duration_days of this ClusterIdCapacityblockBody.
96
96
 
97
97
 
98
- :param capacity_block_duration_hours: The capacity_block_duration_hours of this ClusterIdCapacityblockBody. # noqa: E501
98
+ :param capacity_block_duration_days: The capacity_block_duration_days of this ClusterIdCapacityblockBody. # noqa: E501
99
99
  :type: int
100
100
  """
101
101
 
102
- self._capacity_block_duration_hours = capacity_block_duration_hours
102
+ self._capacity_block_duration_days = capacity_block_duration_days
103
103
 
104
104
  @property
105
105
  def instance_count(self) -> 'int':
@@ -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
- 'parameters': 'list[V1DeploymentTemplateParameter]',
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
- 'parameters': 'parameters',
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, parameters: 'list[V1DeploymentTemplateParameter]' =None, spec: 'str' =None, tags: 'list[V1ResourceTag]' =None, visibility: 'V1DeploymentTemplateType' =None): # noqa: E501
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._parameters = None
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 parameters is not None:
95
- self.parameters = parameters
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 parameters(self) -> 'list[V1DeploymentTemplateParameter]':
231
- """Gets the parameters of this DeploymenttemplatesIdBody. # noqa: E501
256
+ def parameter_spec(self) -> 'V1ParameterizationSpec':
257
+ """Gets the parameter_spec of this DeploymenttemplatesIdBody. # noqa: E501
232
258
 
233
259
 
234
- :return: The parameters of this DeploymenttemplatesIdBody. # noqa: E501
235
- :rtype: list[V1DeploymentTemplateParameter]
260
+ :return: The parameter_spec of this DeploymenttemplatesIdBody. # noqa: E501
261
+ :rtype: V1ParameterizationSpec
236
262
  """
237
- return self._parameters
263
+ return self._parameter_spec
238
264
 
239
- @parameters.setter
240
- def parameters(self, parameters: 'list[V1DeploymentTemplateParameter]'):
241
- """Sets the parameters of this DeploymenttemplatesIdBody.
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 parameters: The parameters of this DeploymenttemplatesIdBody. # noqa: E501
245
- :type: list[V1DeploymentTemplateParameter]
270
+ :param parameter_spec: The parameter_spec of this DeploymenttemplatesIdBody. # noqa: E501
271
+ :type: V1ParameterizationSpec
246
272
  """
247
273
 
248
- self._parameters = parameters
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, invert: 'bool' =None): # noqa: E501
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