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,251 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ clawsentry
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 CreateClawRequest(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
+ 'base': 'BaseForCreateClawInput',
37
+ 'claw_type': 'str',
38
+ 'external_claw_id': 'str',
39
+ 'name': 'str',
40
+ 'source': 'str'
41
+ }
42
+
43
+ attribute_map = {
44
+ 'base': 'Base',
45
+ 'claw_type': 'ClawType',
46
+ 'external_claw_id': 'ExternalClawID',
47
+ 'name': 'Name',
48
+ 'source': 'Source'
49
+ }
50
+
51
+ def __init__(self, base=None, claw_type=None, external_claw_id=None, name=None, source=None, _configuration=None): # noqa: E501
52
+ """CreateClawRequest - a model defined in Swagger""" # noqa: E501
53
+ if _configuration is None:
54
+ _configuration = Configuration()
55
+ self._configuration = _configuration
56
+
57
+ self._base = None
58
+ self._claw_type = None
59
+ self._external_claw_id = None
60
+ self._name = None
61
+ self._source = None
62
+ self.discriminator = None
63
+
64
+ if base is not None:
65
+ self.base = base
66
+ if claw_type is not None:
67
+ self.claw_type = claw_type
68
+ self.external_claw_id = external_claw_id
69
+ if name is not None:
70
+ self.name = name
71
+ if source is not None:
72
+ self.source = source
73
+
74
+ @property
75
+ def base(self):
76
+ """Gets the base of this CreateClawRequest. # noqa: E501
77
+
78
+
79
+ :return: The base of this CreateClawRequest. # noqa: E501
80
+ :rtype: BaseForCreateClawInput
81
+ """
82
+ return self._base
83
+
84
+ @base.setter
85
+ def base(self, base):
86
+ """Sets the base of this CreateClawRequest.
87
+
88
+
89
+ :param base: The base of this CreateClawRequest. # noqa: E501
90
+ :type: BaseForCreateClawInput
91
+ """
92
+
93
+ self._base = base
94
+
95
+ @property
96
+ def claw_type(self):
97
+ """Gets the claw_type of this CreateClawRequest. # noqa: E501
98
+
99
+
100
+ :return: The claw_type of this CreateClawRequest. # noqa: E501
101
+ :rtype: str
102
+ """
103
+ return self._claw_type
104
+
105
+ @claw_type.setter
106
+ def claw_type(self, claw_type):
107
+ """Sets the claw_type of this CreateClawRequest.
108
+
109
+
110
+ :param claw_type: The claw_type of this CreateClawRequest. # noqa: E501
111
+ :type: str
112
+ """
113
+ allowed_values = ["arkclaw", "openclaw", "hermes", "hibot", "doubao", "opencode", "codex", "coco", "trae"] # noqa: E501
114
+ if (self._configuration.client_side_validation and
115
+ claw_type not in allowed_values):
116
+ raise ValueError(
117
+ "Invalid value for `claw_type` ({0}), must be one of {1}" # noqa: E501
118
+ .format(claw_type, allowed_values)
119
+ )
120
+
121
+ self._claw_type = claw_type
122
+
123
+ @property
124
+ def external_claw_id(self):
125
+ """Gets the external_claw_id of this CreateClawRequest. # noqa: E501
126
+
127
+
128
+ :return: The external_claw_id of this CreateClawRequest. # noqa: E501
129
+ :rtype: str
130
+ """
131
+ return self._external_claw_id
132
+
133
+ @external_claw_id.setter
134
+ def external_claw_id(self, external_claw_id):
135
+ """Sets the external_claw_id of this CreateClawRequest.
136
+
137
+
138
+ :param external_claw_id: The external_claw_id of this CreateClawRequest. # noqa: E501
139
+ :type: str
140
+ """
141
+ if self._configuration.client_side_validation and external_claw_id is None:
142
+ raise ValueError("Invalid value for `external_claw_id`, must not be `None`") # noqa: E501
143
+ if (self._configuration.client_side_validation and
144
+ external_claw_id is not None and len(external_claw_id) > 256):
145
+ raise ValueError("Invalid value for `external_claw_id`, length must be less than or equal to `256`") # noqa: E501
146
+ if (self._configuration.client_side_validation and
147
+ external_claw_id is not None and len(external_claw_id) < 1):
148
+ raise ValueError("Invalid value for `external_claw_id`, length must be greater than or equal to `1`") # noqa: E501
149
+
150
+ self._external_claw_id = external_claw_id
151
+
152
+ @property
153
+ def name(self):
154
+ """Gets the name of this CreateClawRequest. # noqa: E501
155
+
156
+
157
+ :return: The name of this CreateClawRequest. # noqa: E501
158
+ :rtype: str
159
+ """
160
+ return self._name
161
+
162
+ @name.setter
163
+ def name(self, name):
164
+ """Sets the name of this CreateClawRequest.
165
+
166
+
167
+ :param name: The name of this CreateClawRequest. # noqa: E501
168
+ :type: str
169
+ """
170
+ if (self._configuration.client_side_validation and
171
+ name is not None and len(name) > 100):
172
+ raise ValueError("Invalid value for `name`, length must be less than or equal to `100`") # noqa: E501
173
+
174
+ self._name = name
175
+
176
+ @property
177
+ def source(self):
178
+ """Gets the source of this CreateClawRequest. # noqa: E501
179
+
180
+
181
+ :return: The source of this CreateClawRequest. # noqa: E501
182
+ :rtype: str
183
+ """
184
+ return self._source
185
+
186
+ @source.setter
187
+ def source(self, source):
188
+ """Sets the source of this CreateClawRequest.
189
+
190
+
191
+ :param source: The source of this CreateClawRequest. # noqa: E501
192
+ :type: str
193
+ """
194
+ allowed_values = ["arkclaw", "third_party", "hibot"] # noqa: E501
195
+ if (self._configuration.client_side_validation and
196
+ source not in allowed_values):
197
+ raise ValueError(
198
+ "Invalid value for `source` ({0}), must be one of {1}" # noqa: E501
199
+ .format(source, allowed_values)
200
+ )
201
+
202
+ self._source = source
203
+
204
+ def to_dict(self):
205
+ """Returns the model properties as a dict"""
206
+ result = {}
207
+
208
+ for attr, _ in six.iteritems(self.swagger_types):
209
+ value = getattr(self, attr)
210
+ if isinstance(value, list):
211
+ result[attr] = list(map(
212
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
213
+ value
214
+ ))
215
+ elif hasattr(value, "to_dict"):
216
+ result[attr] = value.to_dict()
217
+ elif isinstance(value, dict):
218
+ result[attr] = dict(map(
219
+ lambda item: (item[0], item[1].to_dict())
220
+ if hasattr(item[1], "to_dict") else item,
221
+ value.items()
222
+ ))
223
+ else:
224
+ result[attr] = value
225
+ if issubclass(CreateClawRequest, dict):
226
+ for key, value in self.items():
227
+ result[key] = value
228
+
229
+ return result
230
+
231
+ def to_str(self):
232
+ """Returns the string representation of the model"""
233
+ return pprint.pformat(self.to_dict())
234
+
235
+ def __repr__(self):
236
+ """For `print` and `pprint`"""
237
+ return self.to_str()
238
+
239
+ def __eq__(self, other):
240
+ """Returns true if both objects are equal"""
241
+ if not isinstance(other, CreateClawRequest):
242
+ return False
243
+
244
+ return self.to_dict() == other.to_dict()
245
+
246
+ def __ne__(self, other):
247
+ """Returns true if both objects are not equal"""
248
+ if not isinstance(other, CreateClawRequest):
249
+ return True
250
+
251
+ return self.to_dict() != other.to_dict()
@@ -0,0 +1,279 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ clawsentry
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 CreateClawResponse(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
+ 'center_endpoint': 'str',
37
+ 'claw_api_key': 'str',
38
+ 'claw_id': 'str',
39
+ 'conf_version': 'str',
40
+ 'gateway_endpoint': 'str',
41
+ 'lumen_endpoint': 'str',
42
+ 'scheme': 'str'
43
+ }
44
+
45
+ attribute_map = {
46
+ 'center_endpoint': 'CenterEndpoint',
47
+ 'claw_api_key': 'ClawApiKey',
48
+ 'claw_id': 'ClawID',
49
+ 'conf_version': 'ConfVersion',
50
+ 'gateway_endpoint': 'GatewayEndpoint',
51
+ 'lumen_endpoint': 'LumenEndpoint',
52
+ 'scheme': 'Scheme'
53
+ }
54
+
55
+ def __init__(self, center_endpoint=None, claw_api_key=None, claw_id=None, conf_version=None, gateway_endpoint=None, lumen_endpoint=None, scheme=None, _configuration=None): # noqa: E501
56
+ """CreateClawResponse - a model defined in Swagger""" # noqa: E501
57
+ if _configuration is None:
58
+ _configuration = Configuration()
59
+ self._configuration = _configuration
60
+
61
+ self._center_endpoint = None
62
+ self._claw_api_key = None
63
+ self._claw_id = None
64
+ self._conf_version = None
65
+ self._gateway_endpoint = None
66
+ self._lumen_endpoint = None
67
+ self._scheme = None
68
+ self.discriminator = None
69
+
70
+ if center_endpoint is not None:
71
+ self.center_endpoint = center_endpoint
72
+ if claw_api_key is not None:
73
+ self.claw_api_key = claw_api_key
74
+ if claw_id is not None:
75
+ self.claw_id = claw_id
76
+ if conf_version is not None:
77
+ self.conf_version = conf_version
78
+ if gateway_endpoint is not None:
79
+ self.gateway_endpoint = gateway_endpoint
80
+ if lumen_endpoint is not None:
81
+ self.lumen_endpoint = lumen_endpoint
82
+ if scheme is not None:
83
+ self.scheme = scheme
84
+
85
+ @property
86
+ def center_endpoint(self):
87
+ """Gets the center_endpoint of this CreateClawResponse. # noqa: E501
88
+
89
+
90
+ :return: The center_endpoint of this CreateClawResponse. # noqa: E501
91
+ :rtype: str
92
+ """
93
+ return self._center_endpoint
94
+
95
+ @center_endpoint.setter
96
+ def center_endpoint(self, center_endpoint):
97
+ """Sets the center_endpoint of this CreateClawResponse.
98
+
99
+
100
+ :param center_endpoint: The center_endpoint of this CreateClawResponse. # noqa: E501
101
+ :type: str
102
+ """
103
+
104
+ self._center_endpoint = center_endpoint
105
+
106
+ @property
107
+ def claw_api_key(self):
108
+ """Gets the claw_api_key of this CreateClawResponse. # noqa: E501
109
+
110
+
111
+ :return: The claw_api_key of this CreateClawResponse. # noqa: E501
112
+ :rtype: str
113
+ """
114
+ return self._claw_api_key
115
+
116
+ @claw_api_key.setter
117
+ def claw_api_key(self, claw_api_key):
118
+ """Sets the claw_api_key of this CreateClawResponse.
119
+
120
+
121
+ :param claw_api_key: The claw_api_key of this CreateClawResponse. # noqa: E501
122
+ :type: str
123
+ """
124
+
125
+ self._claw_api_key = claw_api_key
126
+
127
+ @property
128
+ def claw_id(self):
129
+ """Gets the claw_id of this CreateClawResponse. # noqa: E501
130
+
131
+
132
+ :return: The claw_id of this CreateClawResponse. # noqa: E501
133
+ :rtype: str
134
+ """
135
+ return self._claw_id
136
+
137
+ @claw_id.setter
138
+ def claw_id(self, claw_id):
139
+ """Sets the claw_id of this CreateClawResponse.
140
+
141
+
142
+ :param claw_id: The claw_id of this CreateClawResponse. # noqa: E501
143
+ :type: str
144
+ """
145
+
146
+ self._claw_id = claw_id
147
+
148
+ @property
149
+ def conf_version(self):
150
+ """Gets the conf_version of this CreateClawResponse. # noqa: E501
151
+
152
+
153
+ :return: The conf_version of this CreateClawResponse. # noqa: E501
154
+ :rtype: str
155
+ """
156
+ return self._conf_version
157
+
158
+ @conf_version.setter
159
+ def conf_version(self, conf_version):
160
+ """Sets the conf_version of this CreateClawResponse.
161
+
162
+
163
+ :param conf_version: The conf_version of this CreateClawResponse. # noqa: E501
164
+ :type: str
165
+ """
166
+
167
+ self._conf_version = conf_version
168
+
169
+ @property
170
+ def gateway_endpoint(self):
171
+ """Gets the gateway_endpoint of this CreateClawResponse. # noqa: E501
172
+
173
+
174
+ :return: The gateway_endpoint of this CreateClawResponse. # noqa: E501
175
+ :rtype: str
176
+ """
177
+ return self._gateway_endpoint
178
+
179
+ @gateway_endpoint.setter
180
+ def gateway_endpoint(self, gateway_endpoint):
181
+ """Sets the gateway_endpoint of this CreateClawResponse.
182
+
183
+
184
+ :param gateway_endpoint: The gateway_endpoint of this CreateClawResponse. # noqa: E501
185
+ :type: str
186
+ """
187
+
188
+ self._gateway_endpoint = gateway_endpoint
189
+
190
+ @property
191
+ def lumen_endpoint(self):
192
+ """Gets the lumen_endpoint of this CreateClawResponse. # noqa: E501
193
+
194
+
195
+ :return: The lumen_endpoint of this CreateClawResponse. # noqa: E501
196
+ :rtype: str
197
+ """
198
+ return self._lumen_endpoint
199
+
200
+ @lumen_endpoint.setter
201
+ def lumen_endpoint(self, lumen_endpoint):
202
+ """Sets the lumen_endpoint of this CreateClawResponse.
203
+
204
+
205
+ :param lumen_endpoint: The lumen_endpoint of this CreateClawResponse. # noqa: E501
206
+ :type: str
207
+ """
208
+
209
+ self._lumen_endpoint = lumen_endpoint
210
+
211
+ @property
212
+ def scheme(self):
213
+ """Gets the scheme of this CreateClawResponse. # noqa: E501
214
+
215
+
216
+ :return: The scheme of this CreateClawResponse. # noqa: E501
217
+ :rtype: str
218
+ """
219
+ return self._scheme
220
+
221
+ @scheme.setter
222
+ def scheme(self, scheme):
223
+ """Sets the scheme of this CreateClawResponse.
224
+
225
+
226
+ :param scheme: The scheme of this CreateClawResponse. # noqa: E501
227
+ :type: str
228
+ """
229
+
230
+ self._scheme = scheme
231
+
232
+ def to_dict(self):
233
+ """Returns the model properties as a dict"""
234
+ result = {}
235
+
236
+ for attr, _ in six.iteritems(self.swagger_types):
237
+ value = getattr(self, attr)
238
+ if isinstance(value, list):
239
+ result[attr] = list(map(
240
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
241
+ value
242
+ ))
243
+ elif hasattr(value, "to_dict"):
244
+ result[attr] = value.to_dict()
245
+ elif isinstance(value, dict):
246
+ result[attr] = dict(map(
247
+ lambda item: (item[0], item[1].to_dict())
248
+ if hasattr(item[1], "to_dict") else item,
249
+ value.items()
250
+ ))
251
+ else:
252
+ result[attr] = value
253
+ if issubclass(CreateClawResponse, dict):
254
+ for key, value in self.items():
255
+ result[key] = value
256
+
257
+ return result
258
+
259
+ def to_str(self):
260
+ """Returns the string representation of the model"""
261
+ return pprint.pformat(self.to_dict())
262
+
263
+ def __repr__(self):
264
+ """For `print` and `pprint`"""
265
+ return self.to_str()
266
+
267
+ def __eq__(self, other):
268
+ """Returns true if both objects are equal"""
269
+ if not isinstance(other, CreateClawResponse):
270
+ return False
271
+
272
+ return self.to_dict() == other.to_dict()
273
+
274
+ def __ne__(self, other):
275
+ """Returns true if both objects are not equal"""
276
+ if not isinstance(other, CreateClawResponse):
277
+ return True
278
+
279
+ return self.to_dict() != other.to_dict()
@@ -36,6 +36,7 @@ from byteplussdkcloudmonitor.models.condition_for_update_rule_input import Condi
36
36
  from byteplussdkcloudmonitor.models.contact_for_list_contact_group_by_ids_output import ContactForListContactGroupByIdsOutput
37
37
  from byteplussdkcloudmonitor.models.contact_for_list_contact_groups_output import ContactForListContactGroupsOutput
38
38
  from byteplussdkcloudmonitor.models.contact_group_for_list_contacts_output import ContactGroupForListContactsOutput
39
+ from byteplussdkcloudmonitor.models.contact_send_result_for_list_alert_output import ContactSendResultForListAlertOutput
39
40
  from byteplussdkcloudmonitor.models.convert_condition_for_update_rule_input import ConvertConditionForUpdateRuleInput
40
41
  from byteplussdkcloudmonitor.models.convert_tag_for_create_rule_input import ConvertTagForCreateRuleInput
41
42
  from byteplussdkcloudmonitor.models.convert_tag_for_list_rules_by_ids_output import ConvertTagForListRulesByIdsOutput
@@ -70,6 +71,7 @@ from byteplussdkcloudmonitor.models.data_for_enable_event_rule_output import Dat
70
71
  from byteplussdkcloudmonitor.models.data_for_get_metric_data_output import DataForGetMetricDataOutput
71
72
  from byteplussdkcloudmonitor.models.data_for_get_top_data_output import DataForGetTopDataOutput
72
73
  from byteplussdkcloudmonitor.models.data_for_list_alert_group_output import DataForListAlertGroupOutput
74
+ from byteplussdkcloudmonitor.models.data_for_list_alert_output import DataForListAlertOutput
73
75
  from byteplussdkcloudmonitor.models.data_for_list_alert_templates_output import DataForListAlertTemplatesOutput
74
76
  from byteplussdkcloudmonitor.models.data_for_list_contact_group_by_ids_output import DataForListContactGroupByIdsOutput
75
77
  from byteplussdkcloudmonitor.models.data_for_list_contact_groups_output import DataForListContactGroupsOutput
@@ -156,6 +158,8 @@ from byteplussdkcloudmonitor.models.level_condition_for_update_alert_template_in
156
158
  from byteplussdkcloudmonitor.models.level_condition_for_update_rule_input import LevelConditionForUpdateRuleInput
157
159
  from byteplussdkcloudmonitor.models.list_alert_group_request import ListAlertGroupRequest
158
160
  from byteplussdkcloudmonitor.models.list_alert_group_response import ListAlertGroupResponse
161
+ from byteplussdkcloudmonitor.models.list_alert_request import ListAlertRequest
162
+ from byteplussdkcloudmonitor.models.list_alert_response import ListAlertResponse
159
163
  from byteplussdkcloudmonitor.models.list_alert_templates_request import ListAlertTemplatesRequest
160
164
  from byteplussdkcloudmonitor.models.list_alert_templates_response import ListAlertTemplatesResponse
161
165
  from byteplussdkcloudmonitor.models.list_contact_group_by_ids_request import ListContactGroupByIdsRequest
@@ -223,6 +227,7 @@ from byteplussdkcloudmonitor.models.meta_for_list_silence_policy_output import M
223
227
  from byteplussdkcloudmonitor.models.meta_for_update_object_group_input import MetaForUpdateObjectGroupInput
224
228
  from byteplussdkcloudmonitor.models.meta_for_update_rule_input import MetaForUpdateRuleInput
225
229
  from byteplussdkcloudmonitor.models.meta_for_update_silence_policy_input import MetaForUpdateSilencePolicyInput
230
+ from byteplussdkcloudmonitor.models.metric_condition_for_list_alert_output import MetricConditionForListAlertOutput
226
231
  from byteplussdkcloudmonitor.models.metric_data_result_for_get_metric_data_output import MetricDataResultForGetMetricDataOutput
227
232
  from byteplussdkcloudmonitor.models.modify_state_of_silence_policy_by_ids_request import ModifyStateOfSilencePolicyByIdsRequest
228
233
  from byteplussdkcloudmonitor.models.modify_state_of_silence_policy_by_ids_response import ModifyStateOfSilencePolicyByIdsResponse
@@ -278,6 +283,11 @@ from byteplussdkcloudmonitor.models.recovery_notify_for_list_rules_output import
278
283
  from byteplussdkcloudmonitor.models.recovery_notify_for_update_alert_template_input import RecoveryNotifyForUpdateAlertTemplateInput
279
284
  from byteplussdkcloudmonitor.models.recovery_notify_for_update_rule_input import RecoveryNotifyForUpdateRuleInput
280
285
  from byteplussdkcloudmonitor.models.rule_for_list_object_groups_output import RuleForListObjectGroupsOutput
286
+ from byteplussdkcloudmonitor.models.send_alert_contact_for_list_alert_output import SendAlertContactForListAlertOutput
287
+ from byteplussdkcloudmonitor.models.send_alert_notification_for_list_alert_output import SendAlertNotificationForListAlertOutput
288
+ from byteplussdkcloudmonitor.models.send_alert_ooss_for_list_alert_output import SendAlertOOSsForListAlertOutput
289
+ from byteplussdkcloudmonitor.models.send_alert_result_for_list_alert_output import SendAlertResultForListAlertOutput
290
+ from byteplussdkcloudmonitor.models.send_alert_webhook_for_list_alert_output import SendAlertWebhookForListAlertOutput
281
291
  from byteplussdkcloudmonitor.models.send_result_for_list_send_alert_output import SendResultForListSendAlertOutput
282
292
  from byteplussdkcloudmonitor.models.set_state_of_rules_by_ids_request import SetStateOfRulesByIdsRequest
283
293
  from byteplussdkcloudmonitor.models.set_state_of_rules_by_ids_response import SetStateOfRulesByIdsResponse
@@ -2846,6 +2846,103 @@ class CLOUDMONITORApi(object):
2846
2846
  _request_timeout=params.get('_request_timeout'),
2847
2847
  collection_formats=collection_formats)
2848
2848
 
2849
+ def list_alert(self, body, **kwargs): # noqa: E501
2850
+ """list_alert # noqa: E501
2851
+
2852
+ This method makes a synchronous HTTP request by default. To make an
2853
+ asynchronous HTTP request, please pass async_req=True
2854
+ >>> thread = api.list_alert(body, async_req=True)
2855
+ >>> result = thread.get()
2856
+
2857
+ :param async_req bool
2858
+ :param ListAlertRequest body: (required)
2859
+ :return: ListAlertResponse
2860
+ If the method is called asynchronously,
2861
+ returns the request thread.
2862
+ """
2863
+ kwargs['_return_http_data_only'] = True
2864
+ if kwargs.get('async_req'):
2865
+ return self.list_alert_with_http_info(body, **kwargs) # noqa: E501
2866
+ else:
2867
+ (data) = self.list_alert_with_http_info(body, **kwargs) # noqa: E501
2868
+ return data
2869
+
2870
+ def list_alert_with_http_info(self, body, **kwargs): # noqa: E501
2871
+ """list_alert # noqa: E501
2872
+
2873
+ This method makes a synchronous HTTP request by default. To make an
2874
+ asynchronous HTTP request, please pass async_req=True
2875
+ >>> thread = api.list_alert_with_http_info(body, async_req=True)
2876
+ >>> result = thread.get()
2877
+
2878
+ :param async_req bool
2879
+ :param ListAlertRequest body: (required)
2880
+ :return: ListAlertResponse
2881
+ If the method is called asynchronously,
2882
+ returns the request thread.
2883
+ """
2884
+
2885
+ all_params = ['body'] # noqa: E501
2886
+ all_params.append('async_req')
2887
+ all_params.append('_return_http_data_only')
2888
+ all_params.append('_preload_content')
2889
+ all_params.append('_request_timeout')
2890
+
2891
+ params = locals()
2892
+ for key, val in six.iteritems(params['kwargs']):
2893
+ if key not in all_params:
2894
+ raise TypeError(
2895
+ "Got an unexpected keyword argument '%s'"
2896
+ " to method list_alert" % key
2897
+ )
2898
+ params[key] = val
2899
+ del params['kwargs']
2900
+ # verify the required parameter 'body' is set
2901
+ if self.api_client.client_side_validation and ('body' not in params or
2902
+ params['body'] is None): # noqa: E501
2903
+ raise ValueError("Missing the required parameter `body` when calling `list_alert`") # noqa: E501
2904
+
2905
+ collection_formats = {}
2906
+
2907
+ path_params = {}
2908
+
2909
+ query_params = []
2910
+
2911
+ header_params = {}
2912
+
2913
+ form_params = []
2914
+ local_var_files = {}
2915
+
2916
+ body_params = None
2917
+ if 'body' in params:
2918
+ body_params = params['body']
2919
+ # HTTP header `Accept`
2920
+ header_params['Accept'] = self.api_client.select_header_accept(
2921
+ ['application/json']) # noqa: E501
2922
+
2923
+ # HTTP header `Content-Type`
2924
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
2925
+ ['application/json']) # noqa: E501
2926
+
2927
+ # Authentication setting
2928
+ auth_settings = ['byteplusSign'] # noqa: E501
2929
+
2930
+ return self.api_client.call_api(
2931
+ '/ListAlert/2018-01-01/cloudmonitor/post/application_json/', 'POST',
2932
+ path_params,
2933
+ query_params,
2934
+ header_params,
2935
+ body=body_params,
2936
+ post_params=form_params,
2937
+ files=local_var_files,
2938
+ response_type='ListAlertResponse', # noqa: E501
2939
+ auth_settings=auth_settings,
2940
+ async_req=params.get('async_req'),
2941
+ _return_http_data_only=params.get('_return_http_data_only'),
2942
+ _preload_content=params.get('_preload_content', True),
2943
+ _request_timeout=params.get('_request_timeout'),
2944
+ collection_formats=collection_formats)
2945
+
2849
2946
  def list_alert_group(self, body, **kwargs): # noqa: E501
2850
2947
  """list_alert_group # noqa: E501
2851
2948