byteplus-python-sdk-v2 3.0.54__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.
- {byteplus_python_sdk_v2-3.0.54.dist-info → byteplus_python_sdk_v2-3.0.55.dist-info}/METADATA +1 -1
- {byteplus_python_sdk_v2-3.0.54.dist-info → byteplus_python_sdk_v2-3.0.55.dist-info}/RECORD +33 -14
- {byteplus_python_sdk_v2-3.0.54.dist-info → byteplus_python_sdk_v2-3.0.55.dist-info}/top_level.txt +1 -0
- byteplussdkcloudmonitor/__init__.py +10 -0
- byteplussdkcloudmonitor/api/cloudmonitor_api.py +97 -0
- byteplussdkcloudmonitor/models/__init__.py +10 -0
- byteplussdkcloudmonitor/models/contact_send_result_for_list_alert_output.py +227 -0
- byteplussdkcloudmonitor/models/data_for_list_alert_group_output.py +27 -1
- byteplussdkcloudmonitor/models/data_for_list_alert_output.py +331 -0
- byteplussdkcloudmonitor/models/get_metric_data_request.py +27 -1
- byteplussdkcloudmonitor/models/list_alert_request.py +228 -0
- byteplussdkcloudmonitor/models/list_alert_response.py +227 -0
- byteplussdkcloudmonitor/models/metric_condition_for_list_alert_output.py +201 -0
- byteplussdkcloudmonitor/models/metric_data_result_for_get_metric_data_output.py +29 -3
- byteplussdkcloudmonitor/models/send_alert_contact_for_list_alert_output.py +175 -0
- byteplussdkcloudmonitor/models/send_alert_notification_for_list_alert_output.py +331 -0
- byteplussdkcloudmonitor/models/send_alert_ooss_for_list_alert_output.py +227 -0
- byteplussdkcloudmonitor/models/send_alert_result_for_list_alert_output.py +201 -0
- byteplussdkcloudmonitor/models/send_alert_webhook_for_list_alert_output.py +253 -0
- byteplussdkcore/api_client.py +1 -1
- byteplussdkcore/configuration.py +1 -1
- byteplussdkvs20260714/__init__.py +26 -0
- byteplussdkvs20260714/api/__init__.py +6 -0
- byteplussdkvs20260714/api/vs20260714_api.py +131 -0
- byteplussdkvs20260714/models/__init__.py +22 -0
- byteplussdkvs20260714/models/create_voice_task_request.py +387 -0
- byteplussdkvs20260714/models/create_voice_task_response.py +175 -0
- byteplussdkvs20260714/models/data_for_create_voice_task_output.py +123 -0
- byteplussdkvs20260714/models/number_info_list_for_create_voice_task_input.py +149 -0
- byteplussdkvs20260714/models/voice_content_for_create_voice_task_input.py +279 -0
- {byteplus_python_sdk_v2-3.0.54.dist-info → byteplus_python_sdk_v2-3.0.55.dist-info}/WHEEL +0 -0
- {byteplus_python_sdk_v2-3.0.54.dist-info → byteplus_python_sdk_v2-3.0.55.dist-info}/licenses/LICENSE.txt +0 -0
- {byteplus_python_sdk_v2-3.0.54.dist-info → byteplus_python_sdk_v2-3.0.55.dist-info}/licenses/NOTICE.md +0 -0
|
@@ -0,0 +1,201 @@
|
|
|
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 SendAlertResultForListAlertOutput(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
|
+
'is_send_alert': 'bool',
|
|
37
|
+
'send_alert_notifications': 'list[SendAlertNotificationForListAlertOutput]',
|
|
38
|
+
'silence_policy_id': 'str',
|
|
39
|
+
'status': 'str'
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
attribute_map = {
|
|
43
|
+
'is_send_alert': 'IsSendAlert',
|
|
44
|
+
'send_alert_notifications': 'SendAlertNotifications',
|
|
45
|
+
'silence_policy_id': 'SilencePolicyId',
|
|
46
|
+
'status': 'Status'
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
def __init__(self, is_send_alert=None, send_alert_notifications=None, silence_policy_id=None, status=None, _configuration=None): # noqa: E501
|
|
50
|
+
"""SendAlertResultForListAlertOutput - a model defined in Swagger""" # noqa: E501
|
|
51
|
+
if _configuration is None:
|
|
52
|
+
_configuration = Configuration()
|
|
53
|
+
self._configuration = _configuration
|
|
54
|
+
|
|
55
|
+
self._is_send_alert = None
|
|
56
|
+
self._send_alert_notifications = None
|
|
57
|
+
self._silence_policy_id = None
|
|
58
|
+
self._status = None
|
|
59
|
+
self.discriminator = None
|
|
60
|
+
|
|
61
|
+
if is_send_alert is not None:
|
|
62
|
+
self.is_send_alert = is_send_alert
|
|
63
|
+
if send_alert_notifications is not None:
|
|
64
|
+
self.send_alert_notifications = send_alert_notifications
|
|
65
|
+
if silence_policy_id is not None:
|
|
66
|
+
self.silence_policy_id = silence_policy_id
|
|
67
|
+
if status is not None:
|
|
68
|
+
self.status = status
|
|
69
|
+
|
|
70
|
+
@property
|
|
71
|
+
def is_send_alert(self):
|
|
72
|
+
"""Gets the is_send_alert of this SendAlertResultForListAlertOutput. # noqa: E501
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
:return: The is_send_alert of this SendAlertResultForListAlertOutput. # noqa: E501
|
|
76
|
+
:rtype: bool
|
|
77
|
+
"""
|
|
78
|
+
return self._is_send_alert
|
|
79
|
+
|
|
80
|
+
@is_send_alert.setter
|
|
81
|
+
def is_send_alert(self, is_send_alert):
|
|
82
|
+
"""Sets the is_send_alert of this SendAlertResultForListAlertOutput.
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
:param is_send_alert: The is_send_alert of this SendAlertResultForListAlertOutput. # noqa: E501
|
|
86
|
+
:type: bool
|
|
87
|
+
"""
|
|
88
|
+
|
|
89
|
+
self._is_send_alert = is_send_alert
|
|
90
|
+
|
|
91
|
+
@property
|
|
92
|
+
def send_alert_notifications(self):
|
|
93
|
+
"""Gets the send_alert_notifications of this SendAlertResultForListAlertOutput. # noqa: E501
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
:return: The send_alert_notifications of this SendAlertResultForListAlertOutput. # noqa: E501
|
|
97
|
+
:rtype: list[SendAlertNotificationForListAlertOutput]
|
|
98
|
+
"""
|
|
99
|
+
return self._send_alert_notifications
|
|
100
|
+
|
|
101
|
+
@send_alert_notifications.setter
|
|
102
|
+
def send_alert_notifications(self, send_alert_notifications):
|
|
103
|
+
"""Sets the send_alert_notifications of this SendAlertResultForListAlertOutput.
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
:param send_alert_notifications: The send_alert_notifications of this SendAlertResultForListAlertOutput. # noqa: E501
|
|
107
|
+
:type: list[SendAlertNotificationForListAlertOutput]
|
|
108
|
+
"""
|
|
109
|
+
|
|
110
|
+
self._send_alert_notifications = send_alert_notifications
|
|
111
|
+
|
|
112
|
+
@property
|
|
113
|
+
def silence_policy_id(self):
|
|
114
|
+
"""Gets the silence_policy_id of this SendAlertResultForListAlertOutput. # noqa: E501
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
:return: The silence_policy_id of this SendAlertResultForListAlertOutput. # noqa: E501
|
|
118
|
+
:rtype: str
|
|
119
|
+
"""
|
|
120
|
+
return self._silence_policy_id
|
|
121
|
+
|
|
122
|
+
@silence_policy_id.setter
|
|
123
|
+
def silence_policy_id(self, silence_policy_id):
|
|
124
|
+
"""Sets the silence_policy_id of this SendAlertResultForListAlertOutput.
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
:param silence_policy_id: The silence_policy_id of this SendAlertResultForListAlertOutput. # noqa: E501
|
|
128
|
+
:type: str
|
|
129
|
+
"""
|
|
130
|
+
|
|
131
|
+
self._silence_policy_id = silence_policy_id
|
|
132
|
+
|
|
133
|
+
@property
|
|
134
|
+
def status(self):
|
|
135
|
+
"""Gets the status of this SendAlertResultForListAlertOutput. # noqa: E501
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
:return: The status of this SendAlertResultForListAlertOutput. # noqa: E501
|
|
139
|
+
:rtype: str
|
|
140
|
+
"""
|
|
141
|
+
return self._status
|
|
142
|
+
|
|
143
|
+
@status.setter
|
|
144
|
+
def status(self, status):
|
|
145
|
+
"""Sets the status of this SendAlertResultForListAlertOutput.
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
:param status: The status of this SendAlertResultForListAlertOutput. # noqa: E501
|
|
149
|
+
:type: str
|
|
150
|
+
"""
|
|
151
|
+
|
|
152
|
+
self._status = status
|
|
153
|
+
|
|
154
|
+
def to_dict(self):
|
|
155
|
+
"""Returns the model properties as a dict"""
|
|
156
|
+
result = {}
|
|
157
|
+
|
|
158
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
159
|
+
value = getattr(self, attr)
|
|
160
|
+
if isinstance(value, list):
|
|
161
|
+
result[attr] = list(map(
|
|
162
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
163
|
+
value
|
|
164
|
+
))
|
|
165
|
+
elif hasattr(value, "to_dict"):
|
|
166
|
+
result[attr] = value.to_dict()
|
|
167
|
+
elif isinstance(value, dict):
|
|
168
|
+
result[attr] = dict(map(
|
|
169
|
+
lambda item: (item[0], item[1].to_dict())
|
|
170
|
+
if hasattr(item[1], "to_dict") else item,
|
|
171
|
+
value.items()
|
|
172
|
+
))
|
|
173
|
+
else:
|
|
174
|
+
result[attr] = value
|
|
175
|
+
if issubclass(SendAlertResultForListAlertOutput, dict):
|
|
176
|
+
for key, value in self.items():
|
|
177
|
+
result[key] = value
|
|
178
|
+
|
|
179
|
+
return result
|
|
180
|
+
|
|
181
|
+
def to_str(self):
|
|
182
|
+
"""Returns the string representation of the model"""
|
|
183
|
+
return pprint.pformat(self.to_dict())
|
|
184
|
+
|
|
185
|
+
def __repr__(self):
|
|
186
|
+
"""For `print` and `pprint`"""
|
|
187
|
+
return self.to_str()
|
|
188
|
+
|
|
189
|
+
def __eq__(self, other):
|
|
190
|
+
"""Returns true if both objects are equal"""
|
|
191
|
+
if not isinstance(other, SendAlertResultForListAlertOutput):
|
|
192
|
+
return False
|
|
193
|
+
|
|
194
|
+
return self.to_dict() == other.to_dict()
|
|
195
|
+
|
|
196
|
+
def __ne__(self, other):
|
|
197
|
+
"""Returns true if both objects are not equal"""
|
|
198
|
+
if not isinstance(other, SendAlertResultForListAlertOutput):
|
|
199
|
+
return True
|
|
200
|
+
|
|
201
|
+
return self.to_dict() != other.to_dict()
|
|
@@ -0,0 +1,253 @@
|
|
|
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 SendAlertWebhookForListAlertOutput(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
|
+
'name': 'str',
|
|
38
|
+
'status': 'str',
|
|
39
|
+
'success': 'bool',
|
|
40
|
+
'type': 'str',
|
|
41
|
+
'url': 'str'
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
attribute_map = {
|
|
45
|
+
'err_msg': 'ErrMsg',
|
|
46
|
+
'name': 'Name',
|
|
47
|
+
'status': 'Status',
|
|
48
|
+
'success': 'Success',
|
|
49
|
+
'type': 'Type',
|
|
50
|
+
'url': 'Url'
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
def __init__(self, err_msg=None, name=None, status=None, success=None, type=None, url=None, _configuration=None): # noqa: E501
|
|
54
|
+
"""SendAlertWebhookForListAlertOutput - a model defined in Swagger""" # noqa: E501
|
|
55
|
+
if _configuration is None:
|
|
56
|
+
_configuration = Configuration()
|
|
57
|
+
self._configuration = _configuration
|
|
58
|
+
|
|
59
|
+
self._err_msg = None
|
|
60
|
+
self._name = None
|
|
61
|
+
self._status = None
|
|
62
|
+
self._success = None
|
|
63
|
+
self._type = None
|
|
64
|
+
self._url = None
|
|
65
|
+
self.discriminator = None
|
|
66
|
+
|
|
67
|
+
if err_msg is not None:
|
|
68
|
+
self.err_msg = err_msg
|
|
69
|
+
if name is not None:
|
|
70
|
+
self.name = name
|
|
71
|
+
if status is not None:
|
|
72
|
+
self.status = status
|
|
73
|
+
if success is not None:
|
|
74
|
+
self.success = success
|
|
75
|
+
if type is not None:
|
|
76
|
+
self.type = type
|
|
77
|
+
if url is not None:
|
|
78
|
+
self.url = url
|
|
79
|
+
|
|
80
|
+
@property
|
|
81
|
+
def err_msg(self):
|
|
82
|
+
"""Gets the err_msg of this SendAlertWebhookForListAlertOutput. # noqa: E501
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
:return: The err_msg of this SendAlertWebhookForListAlertOutput. # noqa: E501
|
|
86
|
+
:rtype: str
|
|
87
|
+
"""
|
|
88
|
+
return self._err_msg
|
|
89
|
+
|
|
90
|
+
@err_msg.setter
|
|
91
|
+
def err_msg(self, err_msg):
|
|
92
|
+
"""Sets the err_msg of this SendAlertWebhookForListAlertOutput.
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
:param err_msg: The err_msg of this SendAlertWebhookForListAlertOutput. # noqa: E501
|
|
96
|
+
:type: str
|
|
97
|
+
"""
|
|
98
|
+
|
|
99
|
+
self._err_msg = err_msg
|
|
100
|
+
|
|
101
|
+
@property
|
|
102
|
+
def name(self):
|
|
103
|
+
"""Gets the name of this SendAlertWebhookForListAlertOutput. # noqa: E501
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
:return: The name of this SendAlertWebhookForListAlertOutput. # noqa: E501
|
|
107
|
+
:rtype: str
|
|
108
|
+
"""
|
|
109
|
+
return self._name
|
|
110
|
+
|
|
111
|
+
@name.setter
|
|
112
|
+
def name(self, name):
|
|
113
|
+
"""Sets the name of this SendAlertWebhookForListAlertOutput.
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
:param name: The name of this SendAlertWebhookForListAlertOutput. # noqa: E501
|
|
117
|
+
:type: str
|
|
118
|
+
"""
|
|
119
|
+
|
|
120
|
+
self._name = name
|
|
121
|
+
|
|
122
|
+
@property
|
|
123
|
+
def status(self):
|
|
124
|
+
"""Gets the status of this SendAlertWebhookForListAlertOutput. # noqa: E501
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
:return: The status of this SendAlertWebhookForListAlertOutput. # noqa: E501
|
|
128
|
+
:rtype: str
|
|
129
|
+
"""
|
|
130
|
+
return self._status
|
|
131
|
+
|
|
132
|
+
@status.setter
|
|
133
|
+
def status(self, status):
|
|
134
|
+
"""Sets the status of this SendAlertWebhookForListAlertOutput.
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
:param status: The status of this SendAlertWebhookForListAlertOutput. # noqa: E501
|
|
138
|
+
:type: str
|
|
139
|
+
"""
|
|
140
|
+
|
|
141
|
+
self._status = status
|
|
142
|
+
|
|
143
|
+
@property
|
|
144
|
+
def success(self):
|
|
145
|
+
"""Gets the success of this SendAlertWebhookForListAlertOutput. # noqa: E501
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
:return: The success of this SendAlertWebhookForListAlertOutput. # noqa: E501
|
|
149
|
+
:rtype: bool
|
|
150
|
+
"""
|
|
151
|
+
return self._success
|
|
152
|
+
|
|
153
|
+
@success.setter
|
|
154
|
+
def success(self, success):
|
|
155
|
+
"""Sets the success of this SendAlertWebhookForListAlertOutput.
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
:param success: The success of this SendAlertWebhookForListAlertOutput. # noqa: E501
|
|
159
|
+
:type: bool
|
|
160
|
+
"""
|
|
161
|
+
|
|
162
|
+
self._success = success
|
|
163
|
+
|
|
164
|
+
@property
|
|
165
|
+
def type(self):
|
|
166
|
+
"""Gets the type of this SendAlertWebhookForListAlertOutput. # noqa: E501
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
:return: The type of this SendAlertWebhookForListAlertOutput. # noqa: E501
|
|
170
|
+
:rtype: str
|
|
171
|
+
"""
|
|
172
|
+
return self._type
|
|
173
|
+
|
|
174
|
+
@type.setter
|
|
175
|
+
def type(self, type):
|
|
176
|
+
"""Sets the type of this SendAlertWebhookForListAlertOutput.
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
:param type: The type of this SendAlertWebhookForListAlertOutput. # noqa: E501
|
|
180
|
+
:type: str
|
|
181
|
+
"""
|
|
182
|
+
|
|
183
|
+
self._type = type
|
|
184
|
+
|
|
185
|
+
@property
|
|
186
|
+
def url(self):
|
|
187
|
+
"""Gets the url of this SendAlertWebhookForListAlertOutput. # noqa: E501
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
:return: The url of this SendAlertWebhookForListAlertOutput. # noqa: E501
|
|
191
|
+
:rtype: str
|
|
192
|
+
"""
|
|
193
|
+
return self._url
|
|
194
|
+
|
|
195
|
+
@url.setter
|
|
196
|
+
def url(self, url):
|
|
197
|
+
"""Sets the url of this SendAlertWebhookForListAlertOutput.
|
|
198
|
+
|
|
199
|
+
|
|
200
|
+
:param url: The url of this SendAlertWebhookForListAlertOutput. # noqa: E501
|
|
201
|
+
:type: str
|
|
202
|
+
"""
|
|
203
|
+
|
|
204
|
+
self._url = url
|
|
205
|
+
|
|
206
|
+
def to_dict(self):
|
|
207
|
+
"""Returns the model properties as a dict"""
|
|
208
|
+
result = {}
|
|
209
|
+
|
|
210
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
211
|
+
value = getattr(self, attr)
|
|
212
|
+
if isinstance(value, list):
|
|
213
|
+
result[attr] = list(map(
|
|
214
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
215
|
+
value
|
|
216
|
+
))
|
|
217
|
+
elif hasattr(value, "to_dict"):
|
|
218
|
+
result[attr] = value.to_dict()
|
|
219
|
+
elif isinstance(value, dict):
|
|
220
|
+
result[attr] = dict(map(
|
|
221
|
+
lambda item: (item[0], item[1].to_dict())
|
|
222
|
+
if hasattr(item[1], "to_dict") else item,
|
|
223
|
+
value.items()
|
|
224
|
+
))
|
|
225
|
+
else:
|
|
226
|
+
result[attr] = value
|
|
227
|
+
if issubclass(SendAlertWebhookForListAlertOutput, dict):
|
|
228
|
+
for key, value in self.items():
|
|
229
|
+
result[key] = value
|
|
230
|
+
|
|
231
|
+
return result
|
|
232
|
+
|
|
233
|
+
def to_str(self):
|
|
234
|
+
"""Returns the string representation of the model"""
|
|
235
|
+
return pprint.pformat(self.to_dict())
|
|
236
|
+
|
|
237
|
+
def __repr__(self):
|
|
238
|
+
"""For `print` and `pprint`"""
|
|
239
|
+
return self.to_str()
|
|
240
|
+
|
|
241
|
+
def __eq__(self, other):
|
|
242
|
+
"""Returns true if both objects are equal"""
|
|
243
|
+
if not isinstance(other, SendAlertWebhookForListAlertOutput):
|
|
244
|
+
return False
|
|
245
|
+
|
|
246
|
+
return self.to_dict() == other.to_dict()
|
|
247
|
+
|
|
248
|
+
def __ne__(self, other):
|
|
249
|
+
"""Returns true if both objects are not equal"""
|
|
250
|
+
if not isinstance(other, SendAlertWebhookForListAlertOutput):
|
|
251
|
+
return True
|
|
252
|
+
|
|
253
|
+
return self.to_dict() != other.to_dict()
|
byteplussdkcore/api_client.py
CHANGED
|
@@ -68,7 +68,7 @@ class ApiClient(object):
|
|
|
68
68
|
self.default_headers[header_name] = header_value
|
|
69
69
|
self.cookie = cookie
|
|
70
70
|
# Set default User-Agent.
|
|
71
|
-
self.user_agent = 'byteplus-python-sdk-v2/3.0.
|
|
71
|
+
self.user_agent = 'byteplus-python-sdk-v2/3.0.55'
|
|
72
72
|
self.client_side_validation = configuration.client_side_validation
|
|
73
73
|
|
|
74
74
|
self.interceptor_chain = InterceptorChain()
|
byteplussdkcore/configuration.py
CHANGED
|
@@ -287,7 +287,7 @@ class Configuration(six.with_metaclass(TypeWithDefault, object)):
|
|
|
287
287
|
"OS: {env}\n" \
|
|
288
288
|
"Python Version: {pyversion}\n" \
|
|
289
289
|
"Version of the API: 0.1.0\n" \
|
|
290
|
-
"SDK Package Version: 3.0.
|
|
290
|
+
"SDK Package Version: 3.0.55".\
|
|
291
291
|
format(env=sys.platform, pyversion=sys.version)
|
|
292
292
|
|
|
293
293
|
@property
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
# flake8: noqa
|
|
4
|
+
|
|
5
|
+
"""
|
|
6
|
+
vs20260714
|
|
7
|
+
|
|
8
|
+
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
|
|
9
|
+
|
|
10
|
+
OpenAPI spec version: common-version
|
|
11
|
+
|
|
12
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
from __future__ import absolute_import
|
|
17
|
+
|
|
18
|
+
# import apis into sdk package
|
|
19
|
+
from byteplussdkvs20260714.api.vs20260714_api import VS20260714Api
|
|
20
|
+
|
|
21
|
+
# import models into sdk package
|
|
22
|
+
from byteplussdkvs20260714.models.create_voice_task_request import CreateVoiceTaskRequest
|
|
23
|
+
from byteplussdkvs20260714.models.create_voice_task_response import CreateVoiceTaskResponse
|
|
24
|
+
from byteplussdkvs20260714.models.data_for_create_voice_task_output import DataForCreateVoiceTaskOutput
|
|
25
|
+
from byteplussdkvs20260714.models.number_info_list_for_create_voice_task_input import NumberInfoListForCreateVoiceTaskInput
|
|
26
|
+
from byteplussdkvs20260714.models.voice_content_for_create_voice_task_input import VoiceContentForCreateVoiceTaskInput
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
vs20260714
|
|
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
|
+
from __future__ import absolute_import
|
|
15
|
+
|
|
16
|
+
import re # noqa: F401
|
|
17
|
+
|
|
18
|
+
# python 2 and python 3 compatibility library
|
|
19
|
+
import six
|
|
20
|
+
|
|
21
|
+
import byteplussdkcore
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
class VS20260714Api(object):
|
|
25
|
+
"""NOTE: This class is auto generated by the swagger code generator program.
|
|
26
|
+
|
|
27
|
+
Do not edit the class manually.
|
|
28
|
+
Ref: https://github.com/swagger-api/swagger-codegen
|
|
29
|
+
"""
|
|
30
|
+
|
|
31
|
+
def __init__(self, api_client=None):
|
|
32
|
+
if api_client is None:
|
|
33
|
+
api_client = byteplussdkcore.ApiClient()
|
|
34
|
+
self.api_client = api_client
|
|
35
|
+
|
|
36
|
+
def create_voice_task(self, body, **kwargs): # noqa: E501
|
|
37
|
+
"""create_voice_task # noqa: E501
|
|
38
|
+
|
|
39
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
40
|
+
asynchronous HTTP request, please pass async_req=True
|
|
41
|
+
>>> thread = api.create_voice_task(body, async_req=True)
|
|
42
|
+
>>> result = thread.get()
|
|
43
|
+
|
|
44
|
+
:param async_req bool
|
|
45
|
+
:param CreateVoiceTaskRequest body: (required)
|
|
46
|
+
:return: CreateVoiceTaskResponse
|
|
47
|
+
If the method is called asynchronously,
|
|
48
|
+
returns the request thread.
|
|
49
|
+
"""
|
|
50
|
+
kwargs['_return_http_data_only'] = True
|
|
51
|
+
if kwargs.get('async_req'):
|
|
52
|
+
return self.create_voice_task_with_http_info(body, **kwargs) # noqa: E501
|
|
53
|
+
else:
|
|
54
|
+
(data) = self.create_voice_task_with_http_info(body, **kwargs) # noqa: E501
|
|
55
|
+
return data
|
|
56
|
+
|
|
57
|
+
def create_voice_task_with_http_info(self, body, **kwargs): # noqa: E501
|
|
58
|
+
"""create_voice_task # noqa: E501
|
|
59
|
+
|
|
60
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
61
|
+
asynchronous HTTP request, please pass async_req=True
|
|
62
|
+
>>> thread = api.create_voice_task_with_http_info(body, async_req=True)
|
|
63
|
+
>>> result = thread.get()
|
|
64
|
+
|
|
65
|
+
:param async_req bool
|
|
66
|
+
:param CreateVoiceTaskRequest body: (required)
|
|
67
|
+
:return: CreateVoiceTaskResponse
|
|
68
|
+
If the method is called asynchronously,
|
|
69
|
+
returns the request thread.
|
|
70
|
+
"""
|
|
71
|
+
|
|
72
|
+
all_params = ['body'] # noqa: E501
|
|
73
|
+
all_params.append('async_req')
|
|
74
|
+
all_params.append('_return_http_data_only')
|
|
75
|
+
all_params.append('_preload_content')
|
|
76
|
+
all_params.append('_request_timeout')
|
|
77
|
+
|
|
78
|
+
params = locals()
|
|
79
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
80
|
+
if key not in all_params:
|
|
81
|
+
raise TypeError(
|
|
82
|
+
"Got an unexpected keyword argument '%s'"
|
|
83
|
+
" to method create_voice_task" % key
|
|
84
|
+
)
|
|
85
|
+
params[key] = val
|
|
86
|
+
del params['kwargs']
|
|
87
|
+
# verify the required parameter 'body' is set
|
|
88
|
+
if self.api_client.client_side_validation and ('body' not in params or
|
|
89
|
+
params['body'] is None): # noqa: E501
|
|
90
|
+
raise ValueError("Missing the required parameter `body` when calling `create_voice_task`") # noqa: E501
|
|
91
|
+
|
|
92
|
+
collection_formats = {}
|
|
93
|
+
|
|
94
|
+
path_params = {}
|
|
95
|
+
|
|
96
|
+
query_params = []
|
|
97
|
+
|
|
98
|
+
header_params = {}
|
|
99
|
+
|
|
100
|
+
form_params = []
|
|
101
|
+
local_var_files = {}
|
|
102
|
+
|
|
103
|
+
body_params = None
|
|
104
|
+
if 'body' in params:
|
|
105
|
+
body_params = params['body']
|
|
106
|
+
# HTTP header `Accept`
|
|
107
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
108
|
+
['application/json']) # noqa: E501
|
|
109
|
+
|
|
110
|
+
# HTTP header `Content-Type`
|
|
111
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
112
|
+
['application/json']) # noqa: E501
|
|
113
|
+
|
|
114
|
+
# Authentication setting
|
|
115
|
+
auth_settings = ['byteplusSign'] # noqa: E501
|
|
116
|
+
|
|
117
|
+
return self.api_client.call_api(
|
|
118
|
+
'/CreateVoiceTask/2026-07-14/vs/post/application_json/', 'POST',
|
|
119
|
+
path_params,
|
|
120
|
+
query_params,
|
|
121
|
+
header_params,
|
|
122
|
+
body=body_params,
|
|
123
|
+
post_params=form_params,
|
|
124
|
+
files=local_var_files,
|
|
125
|
+
response_type='CreateVoiceTaskResponse', # noqa: E501
|
|
126
|
+
auth_settings=auth_settings,
|
|
127
|
+
async_req=params.get('async_req'),
|
|
128
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
129
|
+
_preload_content=params.get('_preload_content', True),
|
|
130
|
+
_request_timeout=params.get('_request_timeout'),
|
|
131
|
+
collection_formats=collection_formats)
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
# flake8: noqa
|
|
4
|
+
"""
|
|
5
|
+
vs20260714
|
|
6
|
+
|
|
7
|
+
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
|
|
8
|
+
|
|
9
|
+
OpenAPI spec version: common-version
|
|
10
|
+
|
|
11
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
12
|
+
"""
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
from __future__ import absolute_import
|
|
16
|
+
|
|
17
|
+
# import models into model package
|
|
18
|
+
from byteplussdkvs20260714.models.create_voice_task_request import CreateVoiceTaskRequest
|
|
19
|
+
from byteplussdkvs20260714.models.create_voice_task_response import CreateVoiceTaskResponse
|
|
20
|
+
from byteplussdkvs20260714.models.data_for_create_voice_task_output import DataForCreateVoiceTaskOutput
|
|
21
|
+
from byteplussdkvs20260714.models.number_info_list_for_create_voice_task_input import NumberInfoListForCreateVoiceTaskInput
|
|
22
|
+
from byteplussdkvs20260714.models.voice_content_for_create_voice_task_input import VoiceContentForCreateVoiceTaskInput
|