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.
Files changed (80) hide show
  1. lightning_sdk/__init__.py +3 -1
  2. lightning_sdk/ai_hub.py +29 -0
  3. lightning_sdk/api/__init__.py +2 -0
  4. lightning_sdk/api/ai_hub_api.py +15 -0
  5. lightning_sdk/api/teamspace_api.py +35 -5
  6. lightning_sdk/api/user_api.py +8 -2
  7. lightning_sdk/cli/upload.py +10 -6
  8. lightning_sdk/lightning_cloud/openapi/__init__.py +30 -0
  9. lightning_sdk/lightning_cloud/openapi/api/__init__.py +1 -0
  10. lightning_sdk/lightning_cloud/openapi/api/cloud_space_service_api.py +105 -4
  11. lightning_sdk/lightning_cloud/openapi/api/cluster_service_api.py +5 -5
  12. lightning_sdk/lightning_cloud/openapi/api/deployment_templates_service_api.py +105 -0
  13. lightning_sdk/lightning_cloud/openapi/api/file_system_service_api.py +674 -0
  14. lightning_sdk/lightning_cloud/openapi/api/jobs_service_api.py +5 -1
  15. lightning_sdk/lightning_cloud/openapi/api/lit_logger_service_api.py +396 -0
  16. lightning_sdk/lightning_cloud/openapi/api/models_store_api.py +118 -1
  17. lightning_sdk/lightning_cloud/openapi/models/__init__.py +29 -0
  18. lightning_sdk/lightning_cloud/openapi/models/cluster_id_capacityblock_body.py +15 -15
  19. lightning_sdk/lightning_cloud/openapi/models/create.py +79 -1
  20. lightning_sdk/lightning_cloud/openapi/models/deployments_id_body.py +27 -1
  21. lightning_sdk/lightning_cloud/openapi/models/deploymenttemplates_id_body.py +121 -17
  22. lightning_sdk/lightning_cloud/openapi/models/id_engage_body.py +3 -29
  23. lightning_sdk/lightning_cloud/openapi/models/id_engage_body1.py +149 -0
  24. lightning_sdk/lightning_cloud/openapi/models/litloggermetrics_id_body.py +175 -0
  25. lightning_sdk/lightning_cloud/openapi/models/model_id_versions_body.py +123 -0
  26. lightning_sdk/lightning_cloud/openapi/models/project_id_models_body.py +27 -1
  27. lightning_sdk/lightning_cloud/openapi/models/update.py +105 -1
  28. lightning_sdk/lightning_cloud/openapi/models/v1_affiliate_link.py +79 -1
  29. lightning_sdk/lightning_cloud/openapi/models/v1_app_type.py +104 -0
  30. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_accelerator.py +27 -1
  31. lightning_sdk/lightning_cloud/openapi/models/v1_create_deployment_template_request.py +95 -17
  32. lightning_sdk/lightning_cloud/openapi/models/v1_create_shared_metrics_stream_request.py +201 -0
  33. lightning_sdk/lightning_cloud/openapi/models/v1_create_shared_metrics_stream_response.py +123 -0
  34. lightning_sdk/lightning_cloud/openapi/models/v1_data_connection.py +79 -1
  35. lightning_sdk/lightning_cloud/openapi/models/v1_data_path.py +175 -0
  36. lightning_sdk/lightning_cloud/openapi/models/v1_delete_shared_metrics_stream_response.py +97 -0
  37. lightning_sdk/lightning_cloud/openapi/models/v1_deployment.py +27 -1
  38. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_metrics.py +123 -0
  39. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_template.py +95 -17
  40. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_template_engagement_response.py +97 -0
  41. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_template_parameter.py +69 -17
  42. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_template_parameter_placement.py +2 -0
  43. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_template_parameter_type.py +1 -0
  44. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_template_summary.py +27 -1
  45. lightning_sdk/lightning_cloud/openapi/models/v1_efs_folder_data_connection.py +201 -0
  46. lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_app.py +227 -0
  47. lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_cloud_space.py +149 -0
  48. lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_dataset.py +123 -0
  49. lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_job.py +175 -0
  50. lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_slurm_job.py +149 -0
  51. lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_snowflake_connection.py +123 -0
  52. lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_work.py +149 -0
  53. lightning_sdk/lightning_cloud/openapi/models/v1_gcs_folder_data_connection.py +123 -0
  54. lightning_sdk/lightning_cloud/openapi/models/v1_input.py +29 -3
  55. lightning_sdk/lightning_cloud/openapi/models/v1_job_spec.py +27 -1
  56. lightning_sdk/lightning_cloud/openapi/models/v1_lightningwork_spec.py +27 -1
  57. lightning_sdk/lightning_cloud/openapi/models/v1_list_cloud_space_python_versions_response.py +123 -0
  58. lightning_sdk/lightning_cloud/openapi/models/v1_list_filesystem_apps_response.py +123 -0
  59. lightning_sdk/lightning_cloud/openapi/models/v1_list_filesystem_cloud_spaces_response.py +123 -0
  60. lightning_sdk/lightning_cloud/openapi/models/v1_list_filesystem_datasets_response.py +123 -0
  61. lightning_sdk/lightning_cloud/openapi/models/v1_list_filesystem_jobs_response.py +123 -0
  62. lightning_sdk/lightning_cloud/openapi/models/v1_list_filesystem_slurm_jobs_response.py +123 -0
  63. lightning_sdk/lightning_cloud/openapi/models/v1_list_filesystem_snowflake_response.py +123 -0
  64. lightning_sdk/lightning_cloud/openapi/models/v1_model.py +6 -6
  65. lightning_sdk/lightning_cloud/openapi/models/v1_model_version_archive.py +79 -1
  66. lightning_sdk/lightning_cloud/openapi/models/v1_parameterization_spec.py +227 -0
  67. lightning_sdk/lightning_cloud/openapi/models/v1_s3_folder_data_connection.py +123 -0
  68. lightning_sdk/lightning_cloud/openapi/models/v1_transaction.py +27 -1
  69. lightning_sdk/lightning_cloud/openapi/models/v1_update_shared_metrics_stream_response.py +97 -0
  70. lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +76 -24
  71. lightning_sdk/lightning_cloud/openapi/models/v1_validate_data_connection_response.py +81 -3
  72. lightning_sdk/lightning_cloud/openapi/models/validate.py +81 -3
  73. lightning_sdk/lightning_cloud/rest_client.py +2 -0
  74. lightning_sdk/teamspace.py +11 -0
  75. {lightning_sdk-0.1.30.dist-info → lightning_sdk-0.1.32.dist-info}/METADATA +1 -1
  76. {lightning_sdk-0.1.30.dist-info → lightning_sdk-0.1.32.dist-info}/RECORD +80 -48
  77. {lightning_sdk-0.1.30.dist-info → lightning_sdk-0.1.32.dist-info}/LICENSE +0 -0
  78. {lightning_sdk-0.1.30.dist-info → lightning_sdk-0.1.32.dist-info}/WHEEL +0 -0
  79. {lightning_sdk-0.1.30.dist-info → lightning_sdk-0.1.32.dist-info}/entry_points.txt +0 -0
  80. {lightning_sdk-0.1.30.dist-info → lightning_sdk-0.1.32.dist-info}/top_level.txt +0 -0
@@ -44,12 +44,16 @@ 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',
49
+ 'metrics': 'list[V1DeploymentMetrics]',
48
50
  'name': 'str',
49
51
  'org_id': 'str',
50
- 'parameters': 'list[V1DeploymentTemplateParameter]',
52
+ 'parameter_spec': 'V1ParameterizationSpec',
51
53
  'spec': 'str',
52
54
  'tags': 'list[V1ResourceTag]',
55
+ 'thumbnail': 'str',
56
+ 'thumbnail_file_type': 'str',
53
57
  'visibility': 'V1DeploymentTemplateType'
54
58
  }
55
59
 
@@ -57,26 +61,34 @@ class DeploymenttemplatesIdBody(object):
57
61
  'about_page_content': 'aboutPageContent',
58
62
  'categories': 'categories',
59
63
  'description': 'description',
64
+ 'featured': 'featured',
60
65
  'image_url': 'imageUrl',
66
+ 'metrics': 'metrics',
61
67
  'name': 'name',
62
68
  'org_id': 'orgId',
63
- 'parameters': 'parameters',
69
+ 'parameter_spec': 'parameterSpec',
64
70
  'spec': 'spec',
65
71
  'tags': 'tags',
72
+ 'thumbnail': 'thumbnail',
73
+ 'thumbnail_file_type': 'thumbnailFileType',
66
74
  'visibility': 'visibility'
67
75
  }
68
76
 
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
77
+ def __init__(self, about_page_content: 'str' =None, categories: 'list[str]' =None, description: 'str' =None, featured: 'bool' =None, image_url: 'str' =None, metrics: 'list[V1DeploymentMetrics]' =None, name: 'str' =None, org_id: 'str' =None, parameter_spec: 'V1ParameterizationSpec' =None, spec: 'str' =None, tags: 'list[V1ResourceTag]' =None, thumbnail: 'str' =None, thumbnail_file_type: 'str' =None, visibility: 'V1DeploymentTemplateType' =None): # noqa: E501
70
78
  """DeploymenttemplatesIdBody - a model defined in Swagger""" # noqa: E501
71
79
  self._about_page_content = None
72
80
  self._categories = None
73
81
  self._description = None
82
+ self._featured = None
74
83
  self._image_url = None
84
+ self._metrics = None
75
85
  self._name = None
76
86
  self._org_id = None
77
- self._parameters = None
87
+ self._parameter_spec = None
78
88
  self._spec = None
79
89
  self._tags = None
90
+ self._thumbnail = None
91
+ self._thumbnail_file_type = None
80
92
  self._visibility = None
81
93
  self.discriminator = None
82
94
  if about_page_content is not None:
@@ -85,18 +97,26 @@ class DeploymenttemplatesIdBody(object):
85
97
  self.categories = categories
86
98
  if description is not None:
87
99
  self.description = description
100
+ if featured is not None:
101
+ self.featured = featured
88
102
  if image_url is not None:
89
103
  self.image_url = image_url
104
+ if metrics is not None:
105
+ self.metrics = metrics
90
106
  if name is not None:
91
107
  self.name = name
92
108
  if org_id is not None:
93
109
  self.org_id = org_id
94
- if parameters is not None:
95
- self.parameters = parameters
110
+ if parameter_spec is not None:
111
+ self.parameter_spec = parameter_spec
96
112
  if spec is not None:
97
113
  self.spec = spec
98
114
  if tags is not None:
99
115
  self.tags = tags
116
+ if thumbnail is not None:
117
+ self.thumbnail = thumbnail
118
+ if thumbnail_file_type is not None:
119
+ self.thumbnail_file_type = thumbnail_file_type
100
120
  if visibility is not None:
101
121
  self.visibility = visibility
102
122
 
@@ -163,6 +183,27 @@ class DeploymenttemplatesIdBody(object):
163
183
 
164
184
  self._description = description
165
185
 
186
+ @property
187
+ def featured(self) -> 'bool':
188
+ """Gets the featured of this DeploymenttemplatesIdBody. # noqa: E501
189
+
190
+
191
+ :return: The featured of this DeploymenttemplatesIdBody. # noqa: E501
192
+ :rtype: bool
193
+ """
194
+ return self._featured
195
+
196
+ @featured.setter
197
+ def featured(self, featured: 'bool'):
198
+ """Sets the featured of this DeploymenttemplatesIdBody.
199
+
200
+
201
+ :param featured: The featured of this DeploymenttemplatesIdBody. # noqa: E501
202
+ :type: bool
203
+ """
204
+
205
+ self._featured = featured
206
+
166
207
  @property
167
208
  def image_url(self) -> 'str':
168
209
  """Gets the image_url of this DeploymenttemplatesIdBody. # noqa: E501
@@ -184,6 +225,27 @@ class DeploymenttemplatesIdBody(object):
184
225
 
185
226
  self._image_url = image_url
186
227
 
228
+ @property
229
+ def metrics(self) -> 'list[V1DeploymentMetrics]':
230
+ """Gets the metrics of this DeploymenttemplatesIdBody. # noqa: E501
231
+
232
+
233
+ :return: The metrics of this DeploymenttemplatesIdBody. # noqa: E501
234
+ :rtype: list[V1DeploymentMetrics]
235
+ """
236
+ return self._metrics
237
+
238
+ @metrics.setter
239
+ def metrics(self, metrics: 'list[V1DeploymentMetrics]'):
240
+ """Sets the metrics of this DeploymenttemplatesIdBody.
241
+
242
+
243
+ :param metrics: The metrics of this DeploymenttemplatesIdBody. # noqa: E501
244
+ :type: list[V1DeploymentMetrics]
245
+ """
246
+
247
+ self._metrics = metrics
248
+
187
249
  @property
188
250
  def name(self) -> 'str':
189
251
  """Gets the name of this DeploymenttemplatesIdBody. # noqa: E501
@@ -227,25 +289,25 @@ class DeploymenttemplatesIdBody(object):
227
289
  self._org_id = org_id
228
290
 
229
291
  @property
230
- def parameters(self) -> 'list[V1DeploymentTemplateParameter]':
231
- """Gets the parameters of this DeploymenttemplatesIdBody. # noqa: E501
292
+ def parameter_spec(self) -> 'V1ParameterizationSpec':
293
+ """Gets the parameter_spec of this DeploymenttemplatesIdBody. # noqa: E501
232
294
 
233
295
 
234
- :return: The parameters of this DeploymenttemplatesIdBody. # noqa: E501
235
- :rtype: list[V1DeploymentTemplateParameter]
296
+ :return: The parameter_spec of this DeploymenttemplatesIdBody. # noqa: E501
297
+ :rtype: V1ParameterizationSpec
236
298
  """
237
- return self._parameters
299
+ return self._parameter_spec
238
300
 
239
- @parameters.setter
240
- def parameters(self, parameters: 'list[V1DeploymentTemplateParameter]'):
241
- """Sets the parameters of this DeploymenttemplatesIdBody.
301
+ @parameter_spec.setter
302
+ def parameter_spec(self, parameter_spec: 'V1ParameterizationSpec'):
303
+ """Sets the parameter_spec of this DeploymenttemplatesIdBody.
242
304
 
243
305
 
244
- :param parameters: The parameters of this DeploymenttemplatesIdBody. # noqa: E501
245
- :type: list[V1DeploymentTemplateParameter]
306
+ :param parameter_spec: The parameter_spec of this DeploymenttemplatesIdBody. # noqa: E501
307
+ :type: V1ParameterizationSpec
246
308
  """
247
309
 
248
- self._parameters = parameters
310
+ self._parameter_spec = parameter_spec
249
311
 
250
312
  @property
251
313
  def spec(self) -> 'str':
@@ -289,6 +351,48 @@ class DeploymenttemplatesIdBody(object):
289
351
 
290
352
  self._tags = tags
291
353
 
354
+ @property
355
+ def thumbnail(self) -> 'str':
356
+ """Gets the thumbnail of this DeploymenttemplatesIdBody. # noqa: E501
357
+
358
+
359
+ :return: The thumbnail of this DeploymenttemplatesIdBody. # noqa: E501
360
+ :rtype: str
361
+ """
362
+ return self._thumbnail
363
+
364
+ @thumbnail.setter
365
+ def thumbnail(self, thumbnail: 'str'):
366
+ """Sets the thumbnail of this DeploymenttemplatesIdBody.
367
+
368
+
369
+ :param thumbnail: The thumbnail of this DeploymenttemplatesIdBody. # noqa: E501
370
+ :type: str
371
+ """
372
+
373
+ self._thumbnail = thumbnail
374
+
375
+ @property
376
+ def thumbnail_file_type(self) -> 'str':
377
+ """Gets the thumbnail_file_type of this DeploymenttemplatesIdBody. # noqa: E501
378
+
379
+
380
+ :return: The thumbnail_file_type of this DeploymenttemplatesIdBody. # noqa: E501
381
+ :rtype: str
382
+ """
383
+ return self._thumbnail_file_type
384
+
385
+ @thumbnail_file_type.setter
386
+ def thumbnail_file_type(self, thumbnail_file_type: 'str'):
387
+ """Sets the thumbnail_file_type of this DeploymenttemplatesIdBody.
388
+
389
+
390
+ :param thumbnail_file_type: The thumbnail_file_type of this DeploymenttemplatesIdBody. # noqa: E501
391
+ :type: str
392
+ """
393
+
394
+ self._thumbnail_file_type = thumbnail_file_type
395
+
292
396
  @property
293
397
  def visibility(self) -> 'V1DeploymentTemplateType':
294
398
  """Gets the visibility of this DeploymenttemplatesIdBody. # noqa: E501
@@ -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,175 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ external/v1/auth_service.proto
5
+
6
+ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
7
+
8
+ OpenAPI spec version: version not set
9
+
10
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
11
+
12
+ NOTE
13
+ ----
14
+ standard swagger-codegen-cli for this python client has been modified
15
+ by custom templates. The purpose of these templates is to include
16
+ typing information in the API and Model code. Please refer to the
17
+ main grid repository for more info
18
+ """
19
+
20
+ import pprint
21
+ import re # noqa: F401
22
+
23
+ from typing import TYPE_CHECKING
24
+
25
+ import six
26
+
27
+ if TYPE_CHECKING:
28
+ from datetime import datetime
29
+ from lightning_sdk.lightning_cloud.openapi.models import *
30
+
31
+ class LitloggermetricsIdBody(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
+ 'allowed_org_id': 'str',
45
+ 'allowed_user_ids': 'list[str]',
46
+ 'public': 'bool'
47
+ }
48
+
49
+ attribute_map = {
50
+ 'allowed_org_id': 'allowedOrgId',
51
+ 'allowed_user_ids': 'allowedUserIds',
52
+ 'public': 'public'
53
+ }
54
+
55
+ def __init__(self, allowed_org_id: 'str' =None, allowed_user_ids: 'list[str]' =None, public: 'bool' =None): # noqa: E501
56
+ """LitloggermetricsIdBody - a model defined in Swagger""" # noqa: E501
57
+ self._allowed_org_id = None
58
+ self._allowed_user_ids = None
59
+ self._public = None
60
+ self.discriminator = None
61
+ if allowed_org_id is not None:
62
+ self.allowed_org_id = allowed_org_id
63
+ if allowed_user_ids is not None:
64
+ self.allowed_user_ids = allowed_user_ids
65
+ if public is not None:
66
+ self.public = public
67
+
68
+ @property
69
+ def allowed_org_id(self) -> 'str':
70
+ """Gets the allowed_org_id of this LitloggermetricsIdBody. # noqa: E501
71
+
72
+
73
+ :return: The allowed_org_id of this LitloggermetricsIdBody. # noqa: E501
74
+ :rtype: str
75
+ """
76
+ return self._allowed_org_id
77
+
78
+ @allowed_org_id.setter
79
+ def allowed_org_id(self, allowed_org_id: 'str'):
80
+ """Sets the allowed_org_id of this LitloggermetricsIdBody.
81
+
82
+
83
+ :param allowed_org_id: The allowed_org_id of this LitloggermetricsIdBody. # noqa: E501
84
+ :type: str
85
+ """
86
+
87
+ self._allowed_org_id = allowed_org_id
88
+
89
+ @property
90
+ def allowed_user_ids(self) -> 'list[str]':
91
+ """Gets the allowed_user_ids of this LitloggermetricsIdBody. # noqa: E501
92
+
93
+
94
+ :return: The allowed_user_ids of this LitloggermetricsIdBody. # noqa: E501
95
+ :rtype: list[str]
96
+ """
97
+ return self._allowed_user_ids
98
+
99
+ @allowed_user_ids.setter
100
+ def allowed_user_ids(self, allowed_user_ids: 'list[str]'):
101
+ """Sets the allowed_user_ids of this LitloggermetricsIdBody.
102
+
103
+
104
+ :param allowed_user_ids: The allowed_user_ids of this LitloggermetricsIdBody. # noqa: E501
105
+ :type: list[str]
106
+ """
107
+
108
+ self._allowed_user_ids = allowed_user_ids
109
+
110
+ @property
111
+ def public(self) -> 'bool':
112
+ """Gets the public of this LitloggermetricsIdBody. # noqa: E501
113
+
114
+
115
+ :return: The public of this LitloggermetricsIdBody. # noqa: E501
116
+ :rtype: bool
117
+ """
118
+ return self._public
119
+
120
+ @public.setter
121
+ def public(self, public: 'bool'):
122
+ """Sets the public of this LitloggermetricsIdBody.
123
+
124
+
125
+ :param public: The public of this LitloggermetricsIdBody. # noqa: E501
126
+ :type: bool
127
+ """
128
+
129
+ self._public = public
130
+
131
+ def to_dict(self) -> dict:
132
+ """Returns the model properties as a dict"""
133
+ result = {}
134
+
135
+ for attr, _ in six.iteritems(self.swagger_types):
136
+ value = getattr(self, attr)
137
+ if isinstance(value, list):
138
+ result[attr] = list(map(
139
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
140
+ value
141
+ ))
142
+ elif hasattr(value, "to_dict"):
143
+ result[attr] = value.to_dict()
144
+ elif isinstance(value, dict):
145
+ result[attr] = dict(map(
146
+ lambda item: (item[0], item[1].to_dict())
147
+ if hasattr(item[1], "to_dict") else item,
148
+ value.items()
149
+ ))
150
+ else:
151
+ result[attr] = value
152
+ if issubclass(LitloggermetricsIdBody, dict):
153
+ for key, value in self.items():
154
+ result[key] = value
155
+
156
+ return result
157
+
158
+ def to_str(self) -> str:
159
+ """Returns the string representation of the model"""
160
+ return pprint.pformat(self.to_dict())
161
+
162
+ def __repr__(self) -> str:
163
+ """For `print` and `pprint`"""
164
+ return self.to_str()
165
+
166
+ def __eq__(self, other: 'LitloggermetricsIdBody') -> bool:
167
+ """Returns true if both objects are equal"""
168
+ if not isinstance(other, LitloggermetricsIdBody):
169
+ return False
170
+
171
+ return self.__dict__ == other.__dict__
172
+
173
+ def __ne__(self, other: 'LitloggermetricsIdBody') -> bool:
174
+ """Returns true if both objects are not equal"""
175
+ return not self == other