anyscale 0.25.9__py3-none-any.whl → 0.25.10__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 (25) hide show
  1. anyscale/_private/anyscale_client/common.py +1 -1
  2. anyscale/_private/docgen/models.md +2 -2
  3. anyscale/client/README.md +10 -0
  4. anyscale/client/openapi_client/__init__.py +6 -0
  5. anyscale/client/openapi_client/api/default_api.py +456 -0
  6. anyscale/client/openapi_client/models/__init__.py +6 -0
  7. anyscale/client/openapi_client/models/baseimagesenum.py +51 -1
  8. anyscale/client/openapi_client/models/create_resource_alert.py +265 -0
  9. anyscale/client/openapi_client/models/list_resource_alerts_query.py +234 -0
  10. anyscale/client/openapi_client/models/resource_alert.py +437 -0
  11. anyscale/client/openapi_client/models/resource_alert_event_type.py +102 -0
  12. anyscale/client/openapi_client/models/resourcealert_list_response.py +147 -0
  13. anyscale/client/openapi_client/models/resourcealert_response.py +121 -0
  14. anyscale/client/openapi_client/models/supportedbaseimagesenum.py +51 -1
  15. anyscale/sdk/anyscale_client/models/baseimagesenum.py +51 -1
  16. anyscale/sdk/anyscale_client/models/supportedbaseimagesenum.py +51 -1
  17. anyscale/shared_anyscale_utils/latest_ray_version.py +1 -1
  18. anyscale/version.py +1 -1
  19. {anyscale-0.25.9.dist-info → anyscale-0.25.10.dist-info}/METADATA +1 -1
  20. {anyscale-0.25.9.dist-info → anyscale-0.25.10.dist-info}/RECORD +25 -19
  21. {anyscale-0.25.9.dist-info → anyscale-0.25.10.dist-info}/LICENSE +0 -0
  22. {anyscale-0.25.9.dist-info → anyscale-0.25.10.dist-info}/NOTICE +0 -0
  23. {anyscale-0.25.9.dist-info → anyscale-0.25.10.dist-info}/WHEEL +0 -0
  24. {anyscale-0.25.9.dist-info → anyscale-0.25.10.dist-info}/entry_points.txt +0 -0
  25. {anyscale-0.25.9.dist-info → anyscale-0.25.10.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,437 @@
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 ResourceAlert(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
+ 'name': 'str',
37
+ 'cloud_id': 'str',
38
+ 'project_id': 'str',
39
+ 'user_id': 'str',
40
+ 'alert_events': 'list[ResourceAlertEventType]',
41
+ 'notification_channel': 'CreateNotificationChannelRecord',
42
+ 'id': 'str',
43
+ 'is_enabled': 'bool',
44
+ 'created_at': 'datetime',
45
+ 'deleted_at': 'datetime',
46
+ 'creator': 'MiniUser',
47
+ 'cloud': 'MiniCloud'
48
+ }
49
+
50
+ attribute_map = {
51
+ 'name': 'name',
52
+ 'cloud_id': 'cloud_id',
53
+ 'project_id': 'project_id',
54
+ 'user_id': 'user_id',
55
+ 'alert_events': 'alert_events',
56
+ 'notification_channel': 'notification_channel',
57
+ 'id': 'id',
58
+ 'is_enabled': 'is_enabled',
59
+ 'created_at': 'created_at',
60
+ 'deleted_at': 'deleted_at',
61
+ 'creator': 'creator',
62
+ 'cloud': 'cloud'
63
+ }
64
+
65
+ def __init__(self, name=None, cloud_id=None, project_id=None, user_id=None, alert_events=None, notification_channel=None, id=None, is_enabled=True, created_at=None, deleted_at=None, creator=None, cloud=None, local_vars_configuration=None): # noqa: E501
66
+ """ResourceAlert - a model defined in OpenAPI""" # noqa: E501
67
+ if local_vars_configuration is None:
68
+ local_vars_configuration = Configuration()
69
+ self.local_vars_configuration = local_vars_configuration
70
+
71
+ self._name = None
72
+ self._cloud_id = None
73
+ self._project_id = None
74
+ self._user_id = None
75
+ self._alert_events = None
76
+ self._notification_channel = None
77
+ self._id = None
78
+ self._is_enabled = None
79
+ self._created_at = None
80
+ self._deleted_at = None
81
+ self._creator = None
82
+ self._cloud = None
83
+ self.discriminator = None
84
+
85
+ self.name = name
86
+ self.cloud_id = cloud_id
87
+ if project_id is not None:
88
+ self.project_id = project_id
89
+ if user_id is not None:
90
+ self.user_id = user_id
91
+ self.alert_events = alert_events
92
+ if notification_channel is not None:
93
+ self.notification_channel = notification_channel
94
+ self.id = id
95
+ if is_enabled is not None:
96
+ self.is_enabled = is_enabled
97
+ self.created_at = created_at
98
+ if deleted_at is not None:
99
+ self.deleted_at = deleted_at
100
+ self.creator = creator
101
+ self.cloud = cloud
102
+
103
+ @property
104
+ def name(self):
105
+ """Gets the name of this ResourceAlert. # noqa: E501
106
+
107
+ The name of this resource alert. # noqa: E501
108
+
109
+ :return: The name of this ResourceAlert. # noqa: E501
110
+ :rtype: str
111
+ """
112
+ return self._name
113
+
114
+ @name.setter
115
+ def name(self, name):
116
+ """Sets the name of this ResourceAlert.
117
+
118
+ The name of this resource alert. # noqa: E501
119
+
120
+ :param name: The name of this ResourceAlert. # noqa: E501
121
+ :type: str
122
+ """
123
+ if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501
124
+ raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501
125
+
126
+ self._name = name
127
+
128
+ @property
129
+ def cloud_id(self):
130
+ """Gets the cloud_id of this ResourceAlert. # noqa: E501
131
+
132
+ The ID of the cloud that this resource alert applies to. # noqa: E501
133
+
134
+ :return: The cloud_id of this ResourceAlert. # noqa: E501
135
+ :rtype: str
136
+ """
137
+ return self._cloud_id
138
+
139
+ @cloud_id.setter
140
+ def cloud_id(self, cloud_id):
141
+ """Sets the cloud_id of this ResourceAlert.
142
+
143
+ The ID of the cloud that this resource alert applies to. # noqa: E501
144
+
145
+ :param cloud_id: The cloud_id of this ResourceAlert. # noqa: E501
146
+ :type: str
147
+ """
148
+ if self.local_vars_configuration.client_side_validation and cloud_id is None: # noqa: E501
149
+ raise ValueError("Invalid value for `cloud_id`, must not be `None`") # noqa: E501
150
+
151
+ self._cloud_id = cloud_id
152
+
153
+ @property
154
+ def project_id(self):
155
+ """Gets the project_id of this ResourceAlert. # noqa: E501
156
+
157
+ The ID of the project that this resource alert applies to. # noqa: E501
158
+
159
+ :return: The project_id of this ResourceAlert. # noqa: E501
160
+ :rtype: str
161
+ """
162
+ return self._project_id
163
+
164
+ @project_id.setter
165
+ def project_id(self, project_id):
166
+ """Sets the project_id of this ResourceAlert.
167
+
168
+ The ID of the project that this resource alert applies to. # noqa: E501
169
+
170
+ :param project_id: The project_id of this ResourceAlert. # noqa: E501
171
+ :type: str
172
+ """
173
+
174
+ self._project_id = project_id
175
+
176
+ @property
177
+ def user_id(self):
178
+ """Gets the user_id of this ResourceAlert. # noqa: E501
179
+
180
+ The ID of the user that this resource alert applies to. # noqa: E501
181
+
182
+ :return: The user_id of this ResourceAlert. # noqa: E501
183
+ :rtype: str
184
+ """
185
+ return self._user_id
186
+
187
+ @user_id.setter
188
+ def user_id(self, user_id):
189
+ """Sets the user_id of this ResourceAlert.
190
+
191
+ The ID of the user that this resource alert applies to. # noqa: E501
192
+
193
+ :param user_id: The user_id of this ResourceAlert. # noqa: E501
194
+ :type: str
195
+ """
196
+
197
+ self._user_id = user_id
198
+
199
+ @property
200
+ def alert_events(self):
201
+ """Gets the alert_events of this ResourceAlert. # noqa: E501
202
+
203
+ The event types to alert on. # noqa: E501
204
+
205
+ :return: The alert_events of this ResourceAlert. # noqa: E501
206
+ :rtype: list[ResourceAlertEventType]
207
+ """
208
+ return self._alert_events
209
+
210
+ @alert_events.setter
211
+ def alert_events(self, alert_events):
212
+ """Sets the alert_events of this ResourceAlert.
213
+
214
+ The event types to alert on. # noqa: E501
215
+
216
+ :param alert_events: The alert_events of this ResourceAlert. # noqa: E501
217
+ :type: list[ResourceAlertEventType]
218
+ """
219
+ if self.local_vars_configuration.client_side_validation and alert_events is None: # noqa: E501
220
+ raise ValueError("Invalid value for `alert_events`, must not be `None`") # noqa: E501
221
+
222
+ self._alert_events = alert_events
223
+
224
+ @property
225
+ def notification_channel(self):
226
+ """Gets the notification_channel of this ResourceAlert. # noqa: E501
227
+
228
+ The notification channel that this resource alert sends notification to. # noqa: E501
229
+
230
+ :return: The notification_channel of this ResourceAlert. # noqa: E501
231
+ :rtype: CreateNotificationChannelRecord
232
+ """
233
+ return self._notification_channel
234
+
235
+ @notification_channel.setter
236
+ def notification_channel(self, notification_channel):
237
+ """Sets the notification_channel of this ResourceAlert.
238
+
239
+ The notification channel that this resource alert sends notification to. # noqa: E501
240
+
241
+ :param notification_channel: The notification_channel of this ResourceAlert. # noqa: E501
242
+ :type: CreateNotificationChannelRecord
243
+ """
244
+
245
+ self._notification_channel = notification_channel
246
+
247
+ @property
248
+ def id(self):
249
+ """Gets the id of this ResourceAlert. # noqa: E501
250
+
251
+ The ID of this resource alert. # noqa: E501
252
+
253
+ :return: The id of this ResourceAlert. # noqa: E501
254
+ :rtype: str
255
+ """
256
+ return self._id
257
+
258
+ @id.setter
259
+ def id(self, id):
260
+ """Sets the id of this ResourceAlert.
261
+
262
+ The ID of this resource alert. # noqa: E501
263
+
264
+ :param id: The id of this ResourceAlert. # noqa: E501
265
+ :type: str
266
+ """
267
+ if self.local_vars_configuration.client_side_validation and id is None: # noqa: E501
268
+ raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501
269
+
270
+ self._id = id
271
+
272
+ @property
273
+ def is_enabled(self):
274
+ """Gets the is_enabled of this ResourceAlert. # noqa: E501
275
+
276
+ Whether this resource alert is enabled. # noqa: E501
277
+
278
+ :return: The is_enabled of this ResourceAlert. # noqa: E501
279
+ :rtype: bool
280
+ """
281
+ return self._is_enabled
282
+
283
+ @is_enabled.setter
284
+ def is_enabled(self, is_enabled):
285
+ """Sets the is_enabled of this ResourceAlert.
286
+
287
+ Whether this resource alert is enabled. # noqa: E501
288
+
289
+ :param is_enabled: The is_enabled of this ResourceAlert. # noqa: E501
290
+ :type: bool
291
+ """
292
+
293
+ self._is_enabled = is_enabled
294
+
295
+ @property
296
+ def created_at(self):
297
+ """Gets the created_at of this ResourceAlert. # noqa: E501
298
+
299
+ The timestamp when this resource alert was created. # noqa: E501
300
+
301
+ :return: The created_at of this ResourceAlert. # noqa: E501
302
+ :rtype: datetime
303
+ """
304
+ return self._created_at
305
+
306
+ @created_at.setter
307
+ def created_at(self, created_at):
308
+ """Sets the created_at of this ResourceAlert.
309
+
310
+ The timestamp when this resource alert was created. # noqa: E501
311
+
312
+ :param created_at: The created_at of this ResourceAlert. # noqa: E501
313
+ :type: datetime
314
+ """
315
+ if self.local_vars_configuration.client_side_validation and created_at is None: # noqa: E501
316
+ raise ValueError("Invalid value for `created_at`, must not be `None`") # noqa: E501
317
+
318
+ self._created_at = created_at
319
+
320
+ @property
321
+ def deleted_at(self):
322
+ """Gets the deleted_at of this ResourceAlert. # noqa: E501
323
+
324
+ The timestamp when this resource alert was deleted. # noqa: E501
325
+
326
+ :return: The deleted_at of this ResourceAlert. # noqa: E501
327
+ :rtype: datetime
328
+ """
329
+ return self._deleted_at
330
+
331
+ @deleted_at.setter
332
+ def deleted_at(self, deleted_at):
333
+ """Sets the deleted_at of this ResourceAlert.
334
+
335
+ The timestamp when this resource alert was deleted. # noqa: E501
336
+
337
+ :param deleted_at: The deleted_at of this ResourceAlert. # noqa: E501
338
+ :type: datetime
339
+ """
340
+
341
+ self._deleted_at = deleted_at
342
+
343
+ @property
344
+ def creator(self):
345
+ """Gets the creator of this ResourceAlert. # noqa: E501
346
+
347
+ The user that created this resource alert. # noqa: E501
348
+
349
+ :return: The creator of this ResourceAlert. # noqa: E501
350
+ :rtype: MiniUser
351
+ """
352
+ return self._creator
353
+
354
+ @creator.setter
355
+ def creator(self, creator):
356
+ """Sets the creator of this ResourceAlert.
357
+
358
+ The user that created this resource alert. # noqa: E501
359
+
360
+ :param creator: The creator of this ResourceAlert. # noqa: E501
361
+ :type: MiniUser
362
+ """
363
+ if self.local_vars_configuration.client_side_validation and creator is None: # noqa: E501
364
+ raise ValueError("Invalid value for `creator`, must not be `None`") # noqa: E501
365
+
366
+ self._creator = creator
367
+
368
+ @property
369
+ def cloud(self):
370
+ """Gets the cloud of this ResourceAlert. # noqa: E501
371
+
372
+ The cloud that this resource alert applies to. # noqa: E501
373
+
374
+ :return: The cloud of this ResourceAlert. # noqa: E501
375
+ :rtype: MiniCloud
376
+ """
377
+ return self._cloud
378
+
379
+ @cloud.setter
380
+ def cloud(self, cloud):
381
+ """Sets the cloud of this ResourceAlert.
382
+
383
+ The cloud that this resource alert applies to. # noqa: E501
384
+
385
+ :param cloud: The cloud of this ResourceAlert. # noqa: E501
386
+ :type: MiniCloud
387
+ """
388
+ if self.local_vars_configuration.client_side_validation and cloud is None: # noqa: E501
389
+ raise ValueError("Invalid value for `cloud`, must not be `None`") # noqa: E501
390
+
391
+ self._cloud = cloud
392
+
393
+ def to_dict(self):
394
+ """Returns the model properties as a dict"""
395
+ result = {}
396
+
397
+ for attr, _ in six.iteritems(self.openapi_types):
398
+ value = getattr(self, attr)
399
+ if isinstance(value, list):
400
+ result[attr] = list(map(
401
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
402
+ value
403
+ ))
404
+ elif hasattr(value, "to_dict"):
405
+ result[attr] = value.to_dict()
406
+ elif isinstance(value, dict):
407
+ result[attr] = dict(map(
408
+ lambda item: (item[0], item[1].to_dict())
409
+ if hasattr(item[1], "to_dict") else item,
410
+ value.items()
411
+ ))
412
+ else:
413
+ result[attr] = value
414
+
415
+ return result
416
+
417
+ def to_str(self):
418
+ """Returns the string representation of the model"""
419
+ return pprint.pformat(self.to_dict())
420
+
421
+ def __repr__(self):
422
+ """For `print` and `pprint`"""
423
+ return self.to_str()
424
+
425
+ def __eq__(self, other):
426
+ """Returns true if both objects are equal"""
427
+ if not isinstance(other, ResourceAlert):
428
+ return False
429
+
430
+ return self.to_dict() == other.to_dict()
431
+
432
+ def __ne__(self, other):
433
+ """Returns true if both objects are not equal"""
434
+ if not isinstance(other, ResourceAlert):
435
+ return True
436
+
437
+ return self.to_dict() != other.to_dict()
@@ -0,0 +1,102 @@
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 ResourceAlertEventType(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
+ JOB_FAILED_USER = "NOTIFICATION_EVENT_TYPE_JOB_FAILED_USER"
32
+ JOB_FAILED_SYSTEM = "NOTIFICATION_EVENT_TYPE_JOB_FAILED_SYSTEM"
33
+ JOB_SUCCEEDED = "NOTIFICATION_EVENT_TYPE_JOB_SUCCEEDED"
34
+ SERVICE_UNHEALTHY = "NOTIFICATION_EVENT_TYPE_SERVICE_UNHEALTHY"
35
+
36
+ allowable_values = [JOB_FAILED_USER, JOB_FAILED_SYSTEM, JOB_SUCCEEDED, SERVICE_UNHEALTHY] # noqa: E501
37
+
38
+ """
39
+ Attributes:
40
+ openapi_types (dict): The key is attribute name
41
+ and the value is attribute type.
42
+ attribute_map (dict): The key is attribute name
43
+ and the value is json key in definition.
44
+ """
45
+ openapi_types = {
46
+ }
47
+
48
+ attribute_map = {
49
+ }
50
+
51
+ def __init__(self, local_vars_configuration=None): # noqa: E501
52
+ """ResourceAlertEventType - a model defined in OpenAPI""" # noqa: E501
53
+ if local_vars_configuration is None:
54
+ local_vars_configuration = Configuration()
55
+ self.local_vars_configuration = local_vars_configuration
56
+ self.discriminator = None
57
+
58
+ def to_dict(self):
59
+ """Returns the model properties as a dict"""
60
+ result = {}
61
+
62
+ for attr, _ in six.iteritems(self.openapi_types):
63
+ value = getattr(self, attr)
64
+ if isinstance(value, list):
65
+ result[attr] = list(map(
66
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
67
+ value
68
+ ))
69
+ elif hasattr(value, "to_dict"):
70
+ result[attr] = value.to_dict()
71
+ elif isinstance(value, dict):
72
+ result[attr] = dict(map(
73
+ lambda item: (item[0], item[1].to_dict())
74
+ if hasattr(item[1], "to_dict") else item,
75
+ value.items()
76
+ ))
77
+ else:
78
+ result[attr] = value
79
+
80
+ return result
81
+
82
+ def to_str(self):
83
+ """Returns the string representation of the model"""
84
+ return pprint.pformat(self.to_dict())
85
+
86
+ def __repr__(self):
87
+ """For `print` and `pprint`"""
88
+ return self.to_str()
89
+
90
+ def __eq__(self, other):
91
+ """Returns true if both objects are equal"""
92
+ if not isinstance(other, ResourceAlertEventType):
93
+ return False
94
+
95
+ return self.to_dict() == other.to_dict()
96
+
97
+ def __ne__(self, other):
98
+ """Returns true if both objects are not equal"""
99
+ if not isinstance(other, ResourceAlertEventType):
100
+ return True
101
+
102
+ 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 ResourcealertListResponse(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[ResourceAlert]',
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
+ """ResourcealertListResponse - 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 ResourcealertListResponse. # noqa: E501
62
+
63
+
64
+ :return: The results of this ResourcealertListResponse. # noqa: E501
65
+ :rtype: list[ResourceAlert]
66
+ """
67
+ return self._results
68
+
69
+ @results.setter
70
+ def results(self, results):
71
+ """Sets the results of this ResourcealertListResponse.
72
+
73
+
74
+ :param results: The results of this ResourcealertListResponse. # noqa: E501
75
+ :type: list[ResourceAlert]
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 ResourcealertListResponse. # noqa: E501
85
+
86
+
87
+ :return: The metadata of this ResourcealertListResponse. # 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 ResourcealertListResponse.
95
+
96
+
97
+ :param metadata: The metadata of this ResourcealertListResponse. # 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, ResourcealertListResponse):
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, ResourcealertListResponse):
145
+ return True
146
+
147
+ return self.to_dict() != other.to_dict()