byteplus-python-sdk-v2 3.0.53__py2.py3-none-any.whl → 3.0.55__py2.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 (63) hide show
  1. {byteplus_python_sdk_v2-3.0.53.dist-info → byteplus_python_sdk_v2-3.0.55.dist-info}/METADATA +1 -1
  2. {byteplus_python_sdk_v2-3.0.53.dist-info → byteplus_python_sdk_v2-3.0.55.dist-info}/RECORD +63 -33
  3. {byteplus_python_sdk_v2-3.0.53.dist-info → byteplus_python_sdk_v2-3.0.55.dist-info}/top_level.txt +2 -0
  4. byteplussdkclawsentry/__init__.py +24 -0
  5. byteplussdkclawsentry/api/__init__.py +6 -0
  6. byteplussdkclawsentry/api/clawsentry_api.py +131 -0
  7. byteplussdkclawsentry/models/__init__.py +20 -0
  8. byteplussdkclawsentry/models/base_for_create_claw_input.py +126 -0
  9. byteplussdkclawsentry/models/create_claw_request.py +251 -0
  10. byteplussdkclawsentry/models/create_claw_response.py +279 -0
  11. byteplussdkcloudmonitor/__init__.py +10 -0
  12. byteplussdkcloudmonitor/api/cloudmonitor_api.py +97 -0
  13. byteplussdkcloudmonitor/models/__init__.py +10 -0
  14. byteplussdkcloudmonitor/models/contact_send_result_for_list_alert_output.py +227 -0
  15. byteplussdkcloudmonitor/models/data_for_list_alert_group_output.py +27 -1
  16. byteplussdkcloudmonitor/models/data_for_list_alert_output.py +331 -0
  17. byteplussdkcloudmonitor/models/get_metric_data_request.py +27 -1
  18. byteplussdkcloudmonitor/models/list_alert_request.py +228 -0
  19. byteplussdkcloudmonitor/models/list_alert_response.py +227 -0
  20. byteplussdkcloudmonitor/models/metric_condition_for_list_alert_output.py +201 -0
  21. byteplussdkcloudmonitor/models/metric_data_result_for_get_metric_data_output.py +29 -3
  22. byteplussdkcloudmonitor/models/send_alert_contact_for_list_alert_output.py +175 -0
  23. byteplussdkcloudmonitor/models/send_alert_notification_for_list_alert_output.py +331 -0
  24. byteplussdkcloudmonitor/models/send_alert_ooss_for_list_alert_output.py +227 -0
  25. byteplussdkcloudmonitor/models/send_alert_result_for_list_alert_output.py +201 -0
  26. byteplussdkcloudmonitor/models/send_alert_webhook_for_list_alert_output.py +253 -0
  27. byteplussdkcore/api_client.py +1 -1
  28. byteplussdkcore/configuration.py +1 -1
  29. byteplussdkcore/endpoint/providers/default_provider.py +7 -0
  30. byteplussdkcore/endpoint/providers/standard_provider.py +1 -0
  31. byteplussdkcpaas/__init__.py +4 -0
  32. byteplussdkcpaas/models/__init__.py +4 -0
  33. byteplussdkcpaas/models/create_template_v2_request.py +27 -1
  34. byteplussdkcpaas/models/data_for_get_template_v2_output.py +79 -1
  35. byteplussdkcpaas/models/element_style_for_create_template_v2_input.py +497 -3
  36. byteplussdkcpaas/models/element_style_for_get_template_v2_output.py +497 -3
  37. byteplussdkcpaas/models/extend_attrs_for_create_template_v2_input.py +79 -1
  38. byteplussdkcpaas/models/extend_attrs_for_get_template_v2_output.py +79 -1
  39. byteplussdkcpaas/models/item_for_create_template_v2_input.py +149 -0
  40. byteplussdkcpaas/models/item_for_get_template_v2_output.py +149 -0
  41. byteplussdkcpaas/models/page_dto_list_for_create_template_v2_input.py +29 -3
  42. byteplussdkcpaas/models/page_dto_list_for_get_template_v2_output.py +29 -3
  43. byteplussdkcpaas/models/page_element_dto_list_for_create_template_v2_input.py +29 -3
  44. byteplussdkcpaas/models/page_element_dto_list_for_get_template_v2_output.py +29 -3
  45. byteplussdkcpaas/models/template_button_list_for_create_template_v2_input.py +227 -0
  46. byteplussdkcpaas/models/template_button_list_for_get_template_v2_output.py +227 -0
  47. byteplussdkcpaas/models/template_list_for_create_template_v2_input.py +235 -1
  48. byteplussdkcpaas/models/template_list_for_get_template_v2_output.py +235 -1
  49. byteplussdkcpaas/models/template_status_for_list_template_v2_output.py +79 -1
  50. byteplussdkcpaas/models/variables_dto_list_for_create_template_v2_input.py +27 -1
  51. byteplussdkcpaas/models/variables_dto_list_for_get_template_v2_output.py +27 -1
  52. byteplussdkvs20260714/__init__.py +26 -0
  53. byteplussdkvs20260714/api/__init__.py +6 -0
  54. byteplussdkvs20260714/api/vs20260714_api.py +131 -0
  55. byteplussdkvs20260714/models/__init__.py +22 -0
  56. byteplussdkvs20260714/models/create_voice_task_request.py +387 -0
  57. byteplussdkvs20260714/models/create_voice_task_response.py +175 -0
  58. byteplussdkvs20260714/models/data_for_create_voice_task_output.py +123 -0
  59. byteplussdkvs20260714/models/number_info_list_for_create_voice_task_input.py +149 -0
  60. byteplussdkvs20260714/models/voice_content_for_create_voice_task_input.py +279 -0
  61. {byteplus_python_sdk_v2-3.0.53.dist-info → byteplus_python_sdk_v2-3.0.55.dist-info}/WHEEL +0 -0
  62. {byteplus_python_sdk_v2-3.0.53.dist-info → byteplus_python_sdk_v2-3.0.55.dist-info}/licenses/LICENSE.txt +0 -0
  63. {byteplus_python_sdk_v2-3.0.53.dist-info → byteplus_python_sdk_v2-3.0.55.dist-info}/licenses/NOTICE.md +0 -0
@@ -0,0 +1,331 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ cloudmonitor
5
+
6
+ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
7
+
8
+ OpenAPI spec version: common-version
9
+
10
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
11
+ """
12
+
13
+
14
+ import pprint
15
+ import re # noqa: F401
16
+
17
+ import six
18
+
19
+ from byteplussdkcore.configuration import Configuration
20
+
21
+
22
+ class SendAlertNotificationForListAlertOutput(object):
23
+ """NOTE: This class is auto generated by the swagger code generator program.
24
+
25
+ Do not edit the class manually.
26
+ """
27
+
28
+ """
29
+ Attributes:
30
+ swagger_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
+ swagger_types = {
36
+ 'err_msg': 'str',
37
+ 'level': 'str',
38
+ 'send_alert_contacts': 'list[SendAlertContactForListAlertOutput]',
39
+ 'send_alert_ooss': 'list[SendAlertOOSsForListAlertOutput]',
40
+ 'send_alert_webhooks': 'list[SendAlertWebhookForListAlertOutput]',
41
+ 'send_at': 'str',
42
+ 'silence_policy_id': 'str',
43
+ 'status': 'str',
44
+ 'type': 'str'
45
+ }
46
+
47
+ attribute_map = {
48
+ 'err_msg': 'ErrMsg',
49
+ 'level': 'Level',
50
+ 'send_alert_contacts': 'SendAlertContacts',
51
+ 'send_alert_ooss': 'SendAlertOOSs',
52
+ 'send_alert_webhooks': 'SendAlertWebhooks',
53
+ 'send_at': 'SendAt',
54
+ 'silence_policy_id': 'SilencePolicyId',
55
+ 'status': 'Status',
56
+ 'type': 'Type'
57
+ }
58
+
59
+ def __init__(self, err_msg=None, level=None, send_alert_contacts=None, send_alert_ooss=None, send_alert_webhooks=None, send_at=None, silence_policy_id=None, status=None, type=None, _configuration=None): # noqa: E501
60
+ """SendAlertNotificationForListAlertOutput - a model defined in Swagger""" # noqa: E501
61
+ if _configuration is None:
62
+ _configuration = Configuration()
63
+ self._configuration = _configuration
64
+
65
+ self._err_msg = None
66
+ self._level = None
67
+ self._send_alert_contacts = None
68
+ self._send_alert_ooss = None
69
+ self._send_alert_webhooks = None
70
+ self._send_at = None
71
+ self._silence_policy_id = None
72
+ self._status = None
73
+ self._type = None
74
+ self.discriminator = None
75
+
76
+ if err_msg is not None:
77
+ self.err_msg = err_msg
78
+ if level is not None:
79
+ self.level = level
80
+ if send_alert_contacts is not None:
81
+ self.send_alert_contacts = send_alert_contacts
82
+ if send_alert_ooss is not None:
83
+ self.send_alert_ooss = send_alert_ooss
84
+ if send_alert_webhooks is not None:
85
+ self.send_alert_webhooks = send_alert_webhooks
86
+ if send_at is not None:
87
+ self.send_at = send_at
88
+ if silence_policy_id is not None:
89
+ self.silence_policy_id = silence_policy_id
90
+ if status is not None:
91
+ self.status = status
92
+ if type is not None:
93
+ self.type = type
94
+
95
+ @property
96
+ def err_msg(self):
97
+ """Gets the err_msg of this SendAlertNotificationForListAlertOutput. # noqa: E501
98
+
99
+
100
+ :return: The err_msg of this SendAlertNotificationForListAlertOutput. # noqa: E501
101
+ :rtype: str
102
+ """
103
+ return self._err_msg
104
+
105
+ @err_msg.setter
106
+ def err_msg(self, err_msg):
107
+ """Sets the err_msg of this SendAlertNotificationForListAlertOutput.
108
+
109
+
110
+ :param err_msg: The err_msg of this SendAlertNotificationForListAlertOutput. # noqa: E501
111
+ :type: str
112
+ """
113
+
114
+ self._err_msg = err_msg
115
+
116
+ @property
117
+ def level(self):
118
+ """Gets the level of this SendAlertNotificationForListAlertOutput. # noqa: E501
119
+
120
+
121
+ :return: The level of this SendAlertNotificationForListAlertOutput. # noqa: E501
122
+ :rtype: str
123
+ """
124
+ return self._level
125
+
126
+ @level.setter
127
+ def level(self, level):
128
+ """Sets the level of this SendAlertNotificationForListAlertOutput.
129
+
130
+
131
+ :param level: The level of this SendAlertNotificationForListAlertOutput. # noqa: E501
132
+ :type: str
133
+ """
134
+
135
+ self._level = level
136
+
137
+ @property
138
+ def send_alert_contacts(self):
139
+ """Gets the send_alert_contacts of this SendAlertNotificationForListAlertOutput. # noqa: E501
140
+
141
+
142
+ :return: The send_alert_contacts of this SendAlertNotificationForListAlertOutput. # noqa: E501
143
+ :rtype: list[SendAlertContactForListAlertOutput]
144
+ """
145
+ return self._send_alert_contacts
146
+
147
+ @send_alert_contacts.setter
148
+ def send_alert_contacts(self, send_alert_contacts):
149
+ """Sets the send_alert_contacts of this SendAlertNotificationForListAlertOutput.
150
+
151
+
152
+ :param send_alert_contacts: The send_alert_contacts of this SendAlertNotificationForListAlertOutput. # noqa: E501
153
+ :type: list[SendAlertContactForListAlertOutput]
154
+ """
155
+
156
+ self._send_alert_contacts = send_alert_contacts
157
+
158
+ @property
159
+ def send_alert_ooss(self):
160
+ """Gets the send_alert_ooss of this SendAlertNotificationForListAlertOutput. # noqa: E501
161
+
162
+
163
+ :return: The send_alert_ooss of this SendAlertNotificationForListAlertOutput. # noqa: E501
164
+ :rtype: list[SendAlertOOSsForListAlertOutput]
165
+ """
166
+ return self._send_alert_ooss
167
+
168
+ @send_alert_ooss.setter
169
+ def send_alert_ooss(self, send_alert_ooss):
170
+ """Sets the send_alert_ooss of this SendAlertNotificationForListAlertOutput.
171
+
172
+
173
+ :param send_alert_ooss: The send_alert_ooss of this SendAlertNotificationForListAlertOutput. # noqa: E501
174
+ :type: list[SendAlertOOSsForListAlertOutput]
175
+ """
176
+
177
+ self._send_alert_ooss = send_alert_ooss
178
+
179
+ @property
180
+ def send_alert_webhooks(self):
181
+ """Gets the send_alert_webhooks of this SendAlertNotificationForListAlertOutput. # noqa: E501
182
+
183
+
184
+ :return: The send_alert_webhooks of this SendAlertNotificationForListAlertOutput. # noqa: E501
185
+ :rtype: list[SendAlertWebhookForListAlertOutput]
186
+ """
187
+ return self._send_alert_webhooks
188
+
189
+ @send_alert_webhooks.setter
190
+ def send_alert_webhooks(self, send_alert_webhooks):
191
+ """Sets the send_alert_webhooks of this SendAlertNotificationForListAlertOutput.
192
+
193
+
194
+ :param send_alert_webhooks: The send_alert_webhooks of this SendAlertNotificationForListAlertOutput. # noqa: E501
195
+ :type: list[SendAlertWebhookForListAlertOutput]
196
+ """
197
+
198
+ self._send_alert_webhooks = send_alert_webhooks
199
+
200
+ @property
201
+ def send_at(self):
202
+ """Gets the send_at of this SendAlertNotificationForListAlertOutput. # noqa: E501
203
+
204
+
205
+ :return: The send_at of this SendAlertNotificationForListAlertOutput. # noqa: E501
206
+ :rtype: str
207
+ """
208
+ return self._send_at
209
+
210
+ @send_at.setter
211
+ def send_at(self, send_at):
212
+ """Sets the send_at of this SendAlertNotificationForListAlertOutput.
213
+
214
+
215
+ :param send_at: The send_at of this SendAlertNotificationForListAlertOutput. # noqa: E501
216
+ :type: str
217
+ """
218
+
219
+ self._send_at = send_at
220
+
221
+ @property
222
+ def silence_policy_id(self):
223
+ """Gets the silence_policy_id of this SendAlertNotificationForListAlertOutput. # noqa: E501
224
+
225
+
226
+ :return: The silence_policy_id of this SendAlertNotificationForListAlertOutput. # noqa: E501
227
+ :rtype: str
228
+ """
229
+ return self._silence_policy_id
230
+
231
+ @silence_policy_id.setter
232
+ def silence_policy_id(self, silence_policy_id):
233
+ """Sets the silence_policy_id of this SendAlertNotificationForListAlertOutput.
234
+
235
+
236
+ :param silence_policy_id: The silence_policy_id of this SendAlertNotificationForListAlertOutput. # noqa: E501
237
+ :type: str
238
+ """
239
+
240
+ self._silence_policy_id = silence_policy_id
241
+
242
+ @property
243
+ def status(self):
244
+ """Gets the status of this SendAlertNotificationForListAlertOutput. # noqa: E501
245
+
246
+
247
+ :return: The status of this SendAlertNotificationForListAlertOutput. # noqa: E501
248
+ :rtype: str
249
+ """
250
+ return self._status
251
+
252
+ @status.setter
253
+ def status(self, status):
254
+ """Sets the status of this SendAlertNotificationForListAlertOutput.
255
+
256
+
257
+ :param status: The status of this SendAlertNotificationForListAlertOutput. # noqa: E501
258
+ :type: str
259
+ """
260
+
261
+ self._status = status
262
+
263
+ @property
264
+ def type(self):
265
+ """Gets the type of this SendAlertNotificationForListAlertOutput. # noqa: E501
266
+
267
+
268
+ :return: The type of this SendAlertNotificationForListAlertOutput. # noqa: E501
269
+ :rtype: str
270
+ """
271
+ return self._type
272
+
273
+ @type.setter
274
+ def type(self, type):
275
+ """Sets the type of this SendAlertNotificationForListAlertOutput.
276
+
277
+
278
+ :param type: The type of this SendAlertNotificationForListAlertOutput. # noqa: E501
279
+ :type: str
280
+ """
281
+
282
+ self._type = type
283
+
284
+ def to_dict(self):
285
+ """Returns the model properties as a dict"""
286
+ result = {}
287
+
288
+ for attr, _ in six.iteritems(self.swagger_types):
289
+ value = getattr(self, attr)
290
+ if isinstance(value, list):
291
+ result[attr] = list(map(
292
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
293
+ value
294
+ ))
295
+ elif hasattr(value, "to_dict"):
296
+ result[attr] = value.to_dict()
297
+ elif isinstance(value, dict):
298
+ result[attr] = dict(map(
299
+ lambda item: (item[0], item[1].to_dict())
300
+ if hasattr(item[1], "to_dict") else item,
301
+ value.items()
302
+ ))
303
+ else:
304
+ result[attr] = value
305
+ if issubclass(SendAlertNotificationForListAlertOutput, dict):
306
+ for key, value in self.items():
307
+ result[key] = value
308
+
309
+ return result
310
+
311
+ def to_str(self):
312
+ """Returns the string representation of the model"""
313
+ return pprint.pformat(self.to_dict())
314
+
315
+ def __repr__(self):
316
+ """For `print` and `pprint`"""
317
+ return self.to_str()
318
+
319
+ def __eq__(self, other):
320
+ """Returns true if both objects are equal"""
321
+ if not isinstance(other, SendAlertNotificationForListAlertOutput):
322
+ return False
323
+
324
+ return self.to_dict() == other.to_dict()
325
+
326
+ def __ne__(self, other):
327
+ """Returns true if both objects are not equal"""
328
+ if not isinstance(other, SendAlertNotificationForListAlertOutput):
329
+ return True
330
+
331
+ return self.to_dict() != other.to_dict()
@@ -0,0 +1,227 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ cloudmonitor
5
+
6
+ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
7
+
8
+ OpenAPI spec version: common-version
9
+
10
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
11
+ """
12
+
13
+
14
+ import pprint
15
+ import re # noqa: F401
16
+
17
+ import six
18
+
19
+ from byteplussdkcore.configuration import Configuration
20
+
21
+
22
+ class SendAlertOOSsForListAlertOutput(object):
23
+ """NOTE: This class is auto generated by the swagger code generator program.
24
+
25
+ Do not edit the class manually.
26
+ """
27
+
28
+ """
29
+ Attributes:
30
+ swagger_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
+ swagger_types = {
36
+ 'err_msg': 'str',
37
+ 'orchestration_plan_id': 'str',
38
+ 'region': 'str',
39
+ 'status': 'str',
40
+ 'success': 'bool'
41
+ }
42
+
43
+ attribute_map = {
44
+ 'err_msg': 'ErrMsg',
45
+ 'orchestration_plan_id': 'OrchestrationPlanId',
46
+ 'region': 'Region',
47
+ 'status': 'Status',
48
+ 'success': 'Success'
49
+ }
50
+
51
+ def __init__(self, err_msg=None, orchestration_plan_id=None, region=None, status=None, success=None, _configuration=None): # noqa: E501
52
+ """SendAlertOOSsForListAlertOutput - a model defined in Swagger""" # noqa: E501
53
+ if _configuration is None:
54
+ _configuration = Configuration()
55
+ self._configuration = _configuration
56
+
57
+ self._err_msg = None
58
+ self._orchestration_plan_id = None
59
+ self._region = None
60
+ self._status = None
61
+ self._success = None
62
+ self.discriminator = None
63
+
64
+ if err_msg is not None:
65
+ self.err_msg = err_msg
66
+ if orchestration_plan_id is not None:
67
+ self.orchestration_plan_id = orchestration_plan_id
68
+ if region is not None:
69
+ self.region = region
70
+ if status is not None:
71
+ self.status = status
72
+ if success is not None:
73
+ self.success = success
74
+
75
+ @property
76
+ def err_msg(self):
77
+ """Gets the err_msg of this SendAlertOOSsForListAlertOutput. # noqa: E501
78
+
79
+
80
+ :return: The err_msg of this SendAlertOOSsForListAlertOutput. # noqa: E501
81
+ :rtype: str
82
+ """
83
+ return self._err_msg
84
+
85
+ @err_msg.setter
86
+ def err_msg(self, err_msg):
87
+ """Sets the err_msg of this SendAlertOOSsForListAlertOutput.
88
+
89
+
90
+ :param err_msg: The err_msg of this SendAlertOOSsForListAlertOutput. # noqa: E501
91
+ :type: str
92
+ """
93
+
94
+ self._err_msg = err_msg
95
+
96
+ @property
97
+ def orchestration_plan_id(self):
98
+ """Gets the orchestration_plan_id of this SendAlertOOSsForListAlertOutput. # noqa: E501
99
+
100
+
101
+ :return: The orchestration_plan_id of this SendAlertOOSsForListAlertOutput. # noqa: E501
102
+ :rtype: str
103
+ """
104
+ return self._orchestration_plan_id
105
+
106
+ @orchestration_plan_id.setter
107
+ def orchestration_plan_id(self, orchestration_plan_id):
108
+ """Sets the orchestration_plan_id of this SendAlertOOSsForListAlertOutput.
109
+
110
+
111
+ :param orchestration_plan_id: The orchestration_plan_id of this SendAlertOOSsForListAlertOutput. # noqa: E501
112
+ :type: str
113
+ """
114
+
115
+ self._orchestration_plan_id = orchestration_plan_id
116
+
117
+ @property
118
+ def region(self):
119
+ """Gets the region of this SendAlertOOSsForListAlertOutput. # noqa: E501
120
+
121
+
122
+ :return: The region of this SendAlertOOSsForListAlertOutput. # noqa: E501
123
+ :rtype: str
124
+ """
125
+ return self._region
126
+
127
+ @region.setter
128
+ def region(self, region):
129
+ """Sets the region of this SendAlertOOSsForListAlertOutput.
130
+
131
+
132
+ :param region: The region of this SendAlertOOSsForListAlertOutput. # noqa: E501
133
+ :type: str
134
+ """
135
+
136
+ self._region = region
137
+
138
+ @property
139
+ def status(self):
140
+ """Gets the status of this SendAlertOOSsForListAlertOutput. # noqa: E501
141
+
142
+
143
+ :return: The status of this SendAlertOOSsForListAlertOutput. # noqa: E501
144
+ :rtype: str
145
+ """
146
+ return self._status
147
+
148
+ @status.setter
149
+ def status(self, status):
150
+ """Sets the status of this SendAlertOOSsForListAlertOutput.
151
+
152
+
153
+ :param status: The status of this SendAlertOOSsForListAlertOutput. # noqa: E501
154
+ :type: str
155
+ """
156
+
157
+ self._status = status
158
+
159
+ @property
160
+ def success(self):
161
+ """Gets the success of this SendAlertOOSsForListAlertOutput. # noqa: E501
162
+
163
+
164
+ :return: The success of this SendAlertOOSsForListAlertOutput. # noqa: E501
165
+ :rtype: bool
166
+ """
167
+ return self._success
168
+
169
+ @success.setter
170
+ def success(self, success):
171
+ """Sets the success of this SendAlertOOSsForListAlertOutput.
172
+
173
+
174
+ :param success: The success of this SendAlertOOSsForListAlertOutput. # noqa: E501
175
+ :type: bool
176
+ """
177
+
178
+ self._success = success
179
+
180
+ def to_dict(self):
181
+ """Returns the model properties as a dict"""
182
+ result = {}
183
+
184
+ for attr, _ in six.iteritems(self.swagger_types):
185
+ value = getattr(self, attr)
186
+ if isinstance(value, list):
187
+ result[attr] = list(map(
188
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
189
+ value
190
+ ))
191
+ elif hasattr(value, "to_dict"):
192
+ result[attr] = value.to_dict()
193
+ elif isinstance(value, dict):
194
+ result[attr] = dict(map(
195
+ lambda item: (item[0], item[1].to_dict())
196
+ if hasattr(item[1], "to_dict") else item,
197
+ value.items()
198
+ ))
199
+ else:
200
+ result[attr] = value
201
+ if issubclass(SendAlertOOSsForListAlertOutput, dict):
202
+ for key, value in self.items():
203
+ result[key] = value
204
+
205
+ return result
206
+
207
+ def to_str(self):
208
+ """Returns the string representation of the model"""
209
+ return pprint.pformat(self.to_dict())
210
+
211
+ def __repr__(self):
212
+ """For `print` and `pprint`"""
213
+ return self.to_str()
214
+
215
+ def __eq__(self, other):
216
+ """Returns true if both objects are equal"""
217
+ if not isinstance(other, SendAlertOOSsForListAlertOutput):
218
+ return False
219
+
220
+ return self.to_dict() == other.to_dict()
221
+
222
+ def __ne__(self, other):
223
+ """Returns true if both objects are not equal"""
224
+ if not isinstance(other, SendAlertOOSsForListAlertOutput):
225
+ return True
226
+
227
+ return self.to_dict() != other.to_dict()