anyscale 0.26.67__py3-none-any.whl → 0.26.68__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 (30) hide show
  1. anyscale/client/README.md +20 -0
  2. anyscale/client/openapi_client/__init__.py +15 -0
  3. anyscale/client/openapi_client/api/default_api.py +656 -0
  4. anyscale/client/openapi_client/models/__init__.py +15 -0
  5. anyscale/client/openapi_client/models/lineage_artifact.py +383 -0
  6. anyscale/client/openapi_client/models/lineage_artifact_sort_field.py +101 -0
  7. anyscale/client/openapi_client/models/lineage_artifact_type.py +100 -0
  8. anyscale/client/openapi_client/models/lineage_direction.py +101 -0
  9. anyscale/client/openapi_client/models/lineage_graph.py +179 -0
  10. anyscale/client/openapi_client/models/lineage_graph_node.py +439 -0
  11. anyscale/client/openapi_client/models/lineage_node_type.py +100 -0
  12. anyscale/client/openapi_client/models/lineage_workload.py +355 -0
  13. anyscale/client/openapi_client/models/lineage_workload_sort_field.py +101 -0
  14. anyscale/client/openapi_client/models/lineage_workload_type.py +101 -0
  15. anyscale/client/openapi_client/models/lineageartifact_list_response.py +147 -0
  16. anyscale/client/openapi_client/models/lineageartifact_response.py +121 -0
  17. anyscale/client/openapi_client/models/lineagegraph_response.py +121 -0
  18. anyscale/client/openapi_client/models/lineageworkload_list_response.py +147 -0
  19. anyscale/client/openapi_client/models/lineageworkload_response.py +121 -0
  20. anyscale/commands/setup_k8s.py +460 -40
  21. anyscale/controllers/cloud_controller.py +10 -10
  22. anyscale/controllers/kubernetes_verifier.py +57 -11
  23. anyscale/version.py +1 -1
  24. {anyscale-0.26.67.dist-info → anyscale-0.26.68.dist-info}/METADATA +1 -1
  25. {anyscale-0.26.67.dist-info → anyscale-0.26.68.dist-info}/RECORD +30 -15
  26. {anyscale-0.26.67.dist-info → anyscale-0.26.68.dist-info}/WHEEL +0 -0
  27. {anyscale-0.26.67.dist-info → anyscale-0.26.68.dist-info}/entry_points.txt +0 -0
  28. {anyscale-0.26.67.dist-info → anyscale-0.26.68.dist-info}/licenses/LICENSE +0 -0
  29. {anyscale-0.26.67.dist-info → anyscale-0.26.68.dist-info}/licenses/NOTICE +0 -0
  30. {anyscale-0.26.67.dist-info → anyscale-0.26.68.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,355 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ Managed Ray API
5
+
6
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
7
+
8
+ The version of the OpenAPI document: 0.1.0
9
+ Generated by: https://openapi-generator.tech
10
+ """
11
+
12
+
13
+ import pprint
14
+ import re # noqa: F401
15
+
16
+ import six
17
+
18
+ from openapi_client.configuration import Configuration
19
+
20
+
21
+ class LineageWorkload(object):
22
+ """NOTE: This class is auto generated by OpenAPI Generator.
23
+ Ref: https://openapi-generator.tech
24
+
25
+ Do not edit the class manually.
26
+ """
27
+
28
+ """
29
+ Attributes:
30
+ openapi_types (dict): The key is attribute name
31
+ and the value is attribute type.
32
+ attribute_map (dict): The key is attribute name
33
+ and the value is json key in definition.
34
+ """
35
+ openapi_types = {
36
+ 'id': 'str',
37
+ 'name': 'str',
38
+ 'namespace_name': 'str',
39
+ 'uri': 'str',
40
+ 'created_at': 'datetime',
41
+ 'updated_at': 'datetime',
42
+ 'created_by': 'str',
43
+ 'updated_by': 'str',
44
+ 'workload_type': 'LineageWorkloadType'
45
+ }
46
+
47
+ attribute_map = {
48
+ 'id': 'id',
49
+ 'name': 'name',
50
+ 'namespace_name': 'namespace_name',
51
+ 'uri': 'uri',
52
+ 'created_at': 'created_at',
53
+ 'updated_at': 'updated_at',
54
+ 'created_by': 'created_by',
55
+ 'updated_by': 'updated_by',
56
+ 'workload_type': 'workload_type'
57
+ }
58
+
59
+ def __init__(self, id=None, name=None, namespace_name=None, uri=None, created_at=None, updated_at=None, created_by=None, updated_by=None, workload_type=None, local_vars_configuration=None): # noqa: E501
60
+ """LineageWorkload - a model defined in OpenAPI""" # noqa: E501
61
+ if local_vars_configuration is None:
62
+ local_vars_configuration = Configuration()
63
+ self.local_vars_configuration = local_vars_configuration
64
+
65
+ self._id = None
66
+ self._name = None
67
+ self._namespace_name = None
68
+ self._uri = None
69
+ self._created_at = None
70
+ self._updated_at = None
71
+ self._created_by = None
72
+ self._updated_by = None
73
+ self._workload_type = None
74
+ self.discriminator = None
75
+
76
+ self.id = id
77
+ self.name = name
78
+ self.namespace_name = namespace_name
79
+ self.uri = uri
80
+ self.created_at = created_at
81
+ self.updated_at = updated_at
82
+ self.created_by = created_by
83
+ self.updated_by = updated_by
84
+ self.workload_type = workload_type
85
+
86
+ @property
87
+ def id(self):
88
+ """Gets the id of this LineageWorkload. # noqa: E501
89
+
90
+ ID of the lineage node # noqa: E501
91
+
92
+ :return: The id of this LineageWorkload. # noqa: E501
93
+ :rtype: str
94
+ """
95
+ return self._id
96
+
97
+ @id.setter
98
+ def id(self, id):
99
+ """Sets the id of this LineageWorkload.
100
+
101
+ ID of the lineage node # noqa: E501
102
+
103
+ :param id: The id of this LineageWorkload. # noqa: E501
104
+ :type: str
105
+ """
106
+ if self.local_vars_configuration.client_side_validation and id is None: # noqa: E501
107
+ raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501
108
+
109
+ self._id = id
110
+
111
+ @property
112
+ def name(self):
113
+ """Gets the name of this LineageWorkload. # noqa: E501
114
+
115
+ Name of the node # noqa: E501
116
+
117
+ :return: The name of this LineageWorkload. # noqa: E501
118
+ :rtype: str
119
+ """
120
+ return self._name
121
+
122
+ @name.setter
123
+ def name(self, name):
124
+ """Sets the name of this LineageWorkload.
125
+
126
+ Name of the node # noqa: E501
127
+
128
+ :param name: The name of this LineageWorkload. # noqa: E501
129
+ :type: str
130
+ """
131
+ if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501
132
+ raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501
133
+
134
+ self._name = name
135
+
136
+ @property
137
+ def namespace_name(self):
138
+ """Gets the namespace_name of this LineageWorkload. # noqa: E501
139
+
140
+ Namespace name # noqa: E501
141
+
142
+ :return: The namespace_name of this LineageWorkload. # noqa: E501
143
+ :rtype: str
144
+ """
145
+ return self._namespace_name
146
+
147
+ @namespace_name.setter
148
+ def namespace_name(self, namespace_name):
149
+ """Sets the namespace_name of this LineageWorkload.
150
+
151
+ Namespace name # noqa: E501
152
+
153
+ :param namespace_name: The namespace_name of this LineageWorkload. # noqa: E501
154
+ :type: str
155
+ """
156
+ if self.local_vars_configuration.client_side_validation and namespace_name is None: # noqa: E501
157
+ raise ValueError("Invalid value for `namespace_name`, must not be `None`") # noqa: E501
158
+
159
+ self._namespace_name = namespace_name
160
+
161
+ @property
162
+ def uri(self):
163
+ """Gets the uri of this LineageWorkload. # noqa: E501
164
+
165
+ URI of the node # noqa: E501
166
+
167
+ :return: The uri of this LineageWorkload. # noqa: E501
168
+ :rtype: str
169
+ """
170
+ return self._uri
171
+
172
+ @uri.setter
173
+ def uri(self, uri):
174
+ """Sets the uri of this LineageWorkload.
175
+
176
+ URI of the node # noqa: E501
177
+
178
+ :param uri: The uri of this LineageWorkload. # noqa: E501
179
+ :type: str
180
+ """
181
+ if self.local_vars_configuration.client_side_validation and uri is None: # noqa: E501
182
+ raise ValueError("Invalid value for `uri`, must not be `None`") # noqa: E501
183
+
184
+ self._uri = uri
185
+
186
+ @property
187
+ def created_at(self):
188
+ """Gets the created_at of this LineageWorkload. # noqa: E501
189
+
190
+ Creation datetime # noqa: E501
191
+
192
+ :return: The created_at of this LineageWorkload. # noqa: E501
193
+ :rtype: datetime
194
+ """
195
+ return self._created_at
196
+
197
+ @created_at.setter
198
+ def created_at(self, created_at):
199
+ """Sets the created_at of this LineageWorkload.
200
+
201
+ Creation datetime # noqa: E501
202
+
203
+ :param created_at: The created_at of this LineageWorkload. # noqa: E501
204
+ :type: datetime
205
+ """
206
+ if self.local_vars_configuration.client_side_validation and created_at is None: # noqa: E501
207
+ raise ValueError("Invalid value for `created_at`, must not be `None`") # noqa: E501
208
+
209
+ self._created_at = created_at
210
+
211
+ @property
212
+ def updated_at(self):
213
+ """Gets the updated_at of this LineageWorkload. # noqa: E501
214
+
215
+ Last update datetime # noqa: E501
216
+
217
+ :return: The updated_at of this LineageWorkload. # noqa: E501
218
+ :rtype: datetime
219
+ """
220
+ return self._updated_at
221
+
222
+ @updated_at.setter
223
+ def updated_at(self, updated_at):
224
+ """Sets the updated_at of this LineageWorkload.
225
+
226
+ Last update datetime # noqa: E501
227
+
228
+ :param updated_at: The updated_at of this LineageWorkload. # noqa: E501
229
+ :type: datetime
230
+ """
231
+ if self.local_vars_configuration.client_side_validation and updated_at is None: # noqa: E501
232
+ raise ValueError("Invalid value for `updated_at`, must not be `None`") # noqa: E501
233
+
234
+ self._updated_at = updated_at
235
+
236
+ @property
237
+ def created_by(self):
238
+ """Gets the created_by of this LineageWorkload. # noqa: E501
239
+
240
+ User who created the node # noqa: E501
241
+
242
+ :return: The created_by of this LineageWorkload. # noqa: E501
243
+ :rtype: str
244
+ """
245
+ return self._created_by
246
+
247
+ @created_by.setter
248
+ def created_by(self, created_by):
249
+ """Sets the created_by of this LineageWorkload.
250
+
251
+ User who created the node # noqa: E501
252
+
253
+ :param created_by: The created_by of this LineageWorkload. # noqa: E501
254
+ :type: str
255
+ """
256
+ if self.local_vars_configuration.client_side_validation and created_by is None: # noqa: E501
257
+ raise ValueError("Invalid value for `created_by`, must not be `None`") # noqa: E501
258
+
259
+ self._created_by = created_by
260
+
261
+ @property
262
+ def updated_by(self):
263
+ """Gets the updated_by of this LineageWorkload. # noqa: E501
264
+
265
+ User who last updated the node # noqa: E501
266
+
267
+ :return: The updated_by of this LineageWorkload. # noqa: E501
268
+ :rtype: str
269
+ """
270
+ return self._updated_by
271
+
272
+ @updated_by.setter
273
+ def updated_by(self, updated_by):
274
+ """Sets the updated_by of this LineageWorkload.
275
+
276
+ User who last updated the node # noqa: E501
277
+
278
+ :param updated_by: The updated_by of this LineageWorkload. # noqa: E501
279
+ :type: str
280
+ """
281
+ if self.local_vars_configuration.client_side_validation and updated_by is None: # noqa: E501
282
+ raise ValueError("Invalid value for `updated_by`, must not be `None`") # noqa: E501
283
+
284
+ self._updated_by = updated_by
285
+
286
+ @property
287
+ def workload_type(self):
288
+ """Gets the workload_type of this LineageWorkload. # noqa: E501
289
+
290
+ Type of workload (WORKSPACE/SERVICE/JOB) # noqa: E501
291
+
292
+ :return: The workload_type of this LineageWorkload. # noqa: E501
293
+ :rtype: LineageWorkloadType
294
+ """
295
+ return self._workload_type
296
+
297
+ @workload_type.setter
298
+ def workload_type(self, workload_type):
299
+ """Sets the workload_type of this LineageWorkload.
300
+
301
+ Type of workload (WORKSPACE/SERVICE/JOB) # noqa: E501
302
+
303
+ :param workload_type: The workload_type of this LineageWorkload. # noqa: E501
304
+ :type: LineageWorkloadType
305
+ """
306
+ if self.local_vars_configuration.client_side_validation and workload_type is None: # noqa: E501
307
+ raise ValueError("Invalid value for `workload_type`, must not be `None`") # noqa: E501
308
+
309
+ self._workload_type = workload_type
310
+
311
+ def to_dict(self):
312
+ """Returns the model properties as a dict"""
313
+ result = {}
314
+
315
+ for attr, _ in six.iteritems(self.openapi_types):
316
+ value = getattr(self, attr)
317
+ if isinstance(value, list):
318
+ result[attr] = list(map(
319
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
320
+ value
321
+ ))
322
+ elif hasattr(value, "to_dict"):
323
+ result[attr] = value.to_dict()
324
+ elif isinstance(value, dict):
325
+ result[attr] = dict(map(
326
+ lambda item: (item[0], item[1].to_dict())
327
+ if hasattr(item[1], "to_dict") else item,
328
+ value.items()
329
+ ))
330
+ else:
331
+ result[attr] = value
332
+
333
+ return result
334
+
335
+ def to_str(self):
336
+ """Returns the string representation of the model"""
337
+ return pprint.pformat(self.to_dict())
338
+
339
+ def __repr__(self):
340
+ """For `print` and `pprint`"""
341
+ return self.to_str()
342
+
343
+ def __eq__(self, other):
344
+ """Returns true if both objects are equal"""
345
+ if not isinstance(other, LineageWorkload):
346
+ return False
347
+
348
+ return self.to_dict() == other.to_dict()
349
+
350
+ def __ne__(self, other):
351
+ """Returns true if both objects are not equal"""
352
+ if not isinstance(other, LineageWorkload):
353
+ return True
354
+
355
+ return self.to_dict() != other.to_dict()
@@ -0,0 +1,101 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ Managed Ray API
5
+
6
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
7
+
8
+ The version of the OpenAPI document: 0.1.0
9
+ Generated by: https://openapi-generator.tech
10
+ """
11
+
12
+
13
+ import pprint
14
+ import re # noqa: F401
15
+
16
+ import six
17
+
18
+ from openapi_client.configuration import Configuration
19
+
20
+
21
+ class LineageWorkloadSortField(object):
22
+ """NOTE: This class is auto generated by OpenAPI Generator.
23
+ Ref: https://openapi-generator.tech
24
+
25
+ Do not edit the class manually.
26
+ """
27
+
28
+ """
29
+ allowed enum values
30
+ """
31
+ NAME = "name"
32
+ CREATED_AT = "created_at"
33
+ UPDATED_AT = "updated_at"
34
+
35
+ allowable_values = [NAME, CREATED_AT, UPDATED_AT] # noqa: E501
36
+
37
+ """
38
+ Attributes:
39
+ openapi_types (dict): The key is attribute name
40
+ and the value is attribute type.
41
+ attribute_map (dict): The key is attribute name
42
+ and the value is json key in definition.
43
+ """
44
+ openapi_types = {
45
+ }
46
+
47
+ attribute_map = {
48
+ }
49
+
50
+ def __init__(self, local_vars_configuration=None): # noqa: E501
51
+ """LineageWorkloadSortField - a model defined in OpenAPI""" # noqa: E501
52
+ if local_vars_configuration is None:
53
+ local_vars_configuration = Configuration()
54
+ self.local_vars_configuration = local_vars_configuration
55
+ self.discriminator = None
56
+
57
+ def to_dict(self):
58
+ """Returns the model properties as a dict"""
59
+ result = {}
60
+
61
+ for attr, _ in six.iteritems(self.openapi_types):
62
+ value = getattr(self, attr)
63
+ if isinstance(value, list):
64
+ result[attr] = list(map(
65
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
66
+ value
67
+ ))
68
+ elif hasattr(value, "to_dict"):
69
+ result[attr] = value.to_dict()
70
+ elif isinstance(value, dict):
71
+ result[attr] = dict(map(
72
+ lambda item: (item[0], item[1].to_dict())
73
+ if hasattr(item[1], "to_dict") else item,
74
+ value.items()
75
+ ))
76
+ else:
77
+ result[attr] = value
78
+
79
+ return result
80
+
81
+ def to_str(self):
82
+ """Returns the string representation of the model"""
83
+ return pprint.pformat(self.to_dict())
84
+
85
+ def __repr__(self):
86
+ """For `print` and `pprint`"""
87
+ return self.to_str()
88
+
89
+ def __eq__(self, other):
90
+ """Returns true if both objects are equal"""
91
+ if not isinstance(other, LineageWorkloadSortField):
92
+ return False
93
+
94
+ return self.to_dict() == other.to_dict()
95
+
96
+ def __ne__(self, other):
97
+ """Returns true if both objects are not equal"""
98
+ if not isinstance(other, LineageWorkloadSortField):
99
+ return True
100
+
101
+ return self.to_dict() != other.to_dict()
@@ -0,0 +1,101 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ Managed Ray API
5
+
6
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
7
+
8
+ The version of the OpenAPI document: 0.1.0
9
+ Generated by: https://openapi-generator.tech
10
+ """
11
+
12
+
13
+ import pprint
14
+ import re # noqa: F401
15
+
16
+ import six
17
+
18
+ from openapi_client.configuration import Configuration
19
+
20
+
21
+ class LineageWorkloadType(object):
22
+ """NOTE: This class is auto generated by OpenAPI Generator.
23
+ Ref: https://openapi-generator.tech
24
+
25
+ Do not edit the class manually.
26
+ """
27
+
28
+ """
29
+ allowed enum values
30
+ """
31
+ WORKSPACE = "ANYSCALE_WORKSPACE"
32
+ SERVICE = "ANYSCALE_SERVICE"
33
+ JOB = "ANYSCALE_JOB"
34
+
35
+ allowable_values = [WORKSPACE, SERVICE, JOB] # noqa: E501
36
+
37
+ """
38
+ Attributes:
39
+ openapi_types (dict): The key is attribute name
40
+ and the value is attribute type.
41
+ attribute_map (dict): The key is attribute name
42
+ and the value is json key in definition.
43
+ """
44
+ openapi_types = {
45
+ }
46
+
47
+ attribute_map = {
48
+ }
49
+
50
+ def __init__(self, local_vars_configuration=None): # noqa: E501
51
+ """LineageWorkloadType - a model defined in OpenAPI""" # noqa: E501
52
+ if local_vars_configuration is None:
53
+ local_vars_configuration = Configuration()
54
+ self.local_vars_configuration = local_vars_configuration
55
+ self.discriminator = None
56
+
57
+ def to_dict(self):
58
+ """Returns the model properties as a dict"""
59
+ result = {}
60
+
61
+ for attr, _ in six.iteritems(self.openapi_types):
62
+ value = getattr(self, attr)
63
+ if isinstance(value, list):
64
+ result[attr] = list(map(
65
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
66
+ value
67
+ ))
68
+ elif hasattr(value, "to_dict"):
69
+ result[attr] = value.to_dict()
70
+ elif isinstance(value, dict):
71
+ result[attr] = dict(map(
72
+ lambda item: (item[0], item[1].to_dict())
73
+ if hasattr(item[1], "to_dict") else item,
74
+ value.items()
75
+ ))
76
+ else:
77
+ result[attr] = value
78
+
79
+ return result
80
+
81
+ def to_str(self):
82
+ """Returns the string representation of the model"""
83
+ return pprint.pformat(self.to_dict())
84
+
85
+ def __repr__(self):
86
+ """For `print` and `pprint`"""
87
+ return self.to_str()
88
+
89
+ def __eq__(self, other):
90
+ """Returns true if both objects are equal"""
91
+ if not isinstance(other, LineageWorkloadType):
92
+ return False
93
+
94
+ return self.to_dict() == other.to_dict()
95
+
96
+ def __ne__(self, other):
97
+ """Returns true if both objects are not equal"""
98
+ if not isinstance(other, LineageWorkloadType):
99
+ return True
100
+
101
+ return self.to_dict() != other.to_dict()
@@ -0,0 +1,147 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ Managed Ray API
5
+
6
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
7
+
8
+ The version of the OpenAPI document: 0.1.0
9
+ Generated by: https://openapi-generator.tech
10
+ """
11
+
12
+
13
+ import pprint
14
+ import re # noqa: F401
15
+
16
+ import six
17
+
18
+ from openapi_client.configuration import Configuration
19
+
20
+
21
+ class LineageartifactListResponse(object):
22
+ """NOTE: This class is auto generated by OpenAPI Generator.
23
+ Ref: https://openapi-generator.tech
24
+
25
+ Do not edit the class manually.
26
+ """
27
+
28
+ """
29
+ Attributes:
30
+ openapi_types (dict): The key is attribute name
31
+ and the value is attribute type.
32
+ attribute_map (dict): The key is attribute name
33
+ and the value is json key in definition.
34
+ """
35
+ openapi_types = {
36
+ 'results': 'list[LineageArtifact]',
37
+ 'metadata': 'ListResponseMetadata'
38
+ }
39
+
40
+ attribute_map = {
41
+ 'results': 'results',
42
+ 'metadata': 'metadata'
43
+ }
44
+
45
+ def __init__(self, results=None, metadata=None, local_vars_configuration=None): # noqa: E501
46
+ """LineageartifactListResponse - a model defined in OpenAPI""" # noqa: E501
47
+ if local_vars_configuration is None:
48
+ local_vars_configuration = Configuration()
49
+ self.local_vars_configuration = local_vars_configuration
50
+
51
+ self._results = None
52
+ self._metadata = None
53
+ self.discriminator = None
54
+
55
+ self.results = results
56
+ if metadata is not None:
57
+ self.metadata = metadata
58
+
59
+ @property
60
+ def results(self):
61
+ """Gets the results of this LineageartifactListResponse. # noqa: E501
62
+
63
+
64
+ :return: The results of this LineageartifactListResponse. # noqa: E501
65
+ :rtype: list[LineageArtifact]
66
+ """
67
+ return self._results
68
+
69
+ @results.setter
70
+ def results(self, results):
71
+ """Sets the results of this LineageartifactListResponse.
72
+
73
+
74
+ :param results: The results of this LineageartifactListResponse. # noqa: E501
75
+ :type: list[LineageArtifact]
76
+ """
77
+ if self.local_vars_configuration.client_side_validation and results is None: # noqa: E501
78
+ raise ValueError("Invalid value for `results`, must not be `None`") # noqa: E501
79
+
80
+ self._results = results
81
+
82
+ @property
83
+ def metadata(self):
84
+ """Gets the metadata of this LineageartifactListResponse. # noqa: E501
85
+
86
+
87
+ :return: The metadata of this LineageartifactListResponse. # noqa: E501
88
+ :rtype: ListResponseMetadata
89
+ """
90
+ return self._metadata
91
+
92
+ @metadata.setter
93
+ def metadata(self, metadata):
94
+ """Sets the metadata of this LineageartifactListResponse.
95
+
96
+
97
+ :param metadata: The metadata of this LineageartifactListResponse. # noqa: E501
98
+ :type: ListResponseMetadata
99
+ """
100
+
101
+ self._metadata = metadata
102
+
103
+ def to_dict(self):
104
+ """Returns the model properties as a dict"""
105
+ result = {}
106
+
107
+ for attr, _ in six.iteritems(self.openapi_types):
108
+ value = getattr(self, attr)
109
+ if isinstance(value, list):
110
+ result[attr] = list(map(
111
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
112
+ value
113
+ ))
114
+ elif hasattr(value, "to_dict"):
115
+ result[attr] = value.to_dict()
116
+ elif isinstance(value, dict):
117
+ result[attr] = dict(map(
118
+ lambda item: (item[0], item[1].to_dict())
119
+ if hasattr(item[1], "to_dict") else item,
120
+ value.items()
121
+ ))
122
+ else:
123
+ result[attr] = value
124
+
125
+ return result
126
+
127
+ def to_str(self):
128
+ """Returns the string representation of the model"""
129
+ return pprint.pformat(self.to_dict())
130
+
131
+ def __repr__(self):
132
+ """For `print` and `pprint`"""
133
+ return self.to_str()
134
+
135
+ def __eq__(self, other):
136
+ """Returns true if both objects are equal"""
137
+ if not isinstance(other, LineageartifactListResponse):
138
+ return False
139
+
140
+ return self.to_dict() == other.to_dict()
141
+
142
+ def __ne__(self, other):
143
+ """Returns true if both objects are not equal"""
144
+ if not isinstance(other, LineageartifactListResponse):
145
+ return True
146
+
147
+ return self.to_dict() != other.to_dict()