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.
- {byteplus_python_sdk_v2-3.0.53.dist-info → byteplus_python_sdk_v2-3.0.55.dist-info}/METADATA +1 -1
- {byteplus_python_sdk_v2-3.0.53.dist-info → byteplus_python_sdk_v2-3.0.55.dist-info}/RECORD +63 -33
- {byteplus_python_sdk_v2-3.0.53.dist-info → byteplus_python_sdk_v2-3.0.55.dist-info}/top_level.txt +2 -0
- byteplussdkclawsentry/__init__.py +24 -0
- byteplussdkclawsentry/api/__init__.py +6 -0
- byteplussdkclawsentry/api/clawsentry_api.py +131 -0
- byteplussdkclawsentry/models/__init__.py +20 -0
- byteplussdkclawsentry/models/base_for_create_claw_input.py +126 -0
- byteplussdkclawsentry/models/create_claw_request.py +251 -0
- byteplussdkclawsentry/models/create_claw_response.py +279 -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
- byteplussdkcore/endpoint/providers/default_provider.py +7 -0
- byteplussdkcore/endpoint/providers/standard_provider.py +1 -0
- byteplussdkcpaas/__init__.py +4 -0
- byteplussdkcpaas/models/__init__.py +4 -0
- byteplussdkcpaas/models/create_template_v2_request.py +27 -1
- byteplussdkcpaas/models/data_for_get_template_v2_output.py +79 -1
- byteplussdkcpaas/models/element_style_for_create_template_v2_input.py +497 -3
- byteplussdkcpaas/models/element_style_for_get_template_v2_output.py +497 -3
- byteplussdkcpaas/models/extend_attrs_for_create_template_v2_input.py +79 -1
- byteplussdkcpaas/models/extend_attrs_for_get_template_v2_output.py +79 -1
- byteplussdkcpaas/models/item_for_create_template_v2_input.py +149 -0
- byteplussdkcpaas/models/item_for_get_template_v2_output.py +149 -0
- byteplussdkcpaas/models/page_dto_list_for_create_template_v2_input.py +29 -3
- byteplussdkcpaas/models/page_dto_list_for_get_template_v2_output.py +29 -3
- byteplussdkcpaas/models/page_element_dto_list_for_create_template_v2_input.py +29 -3
- byteplussdkcpaas/models/page_element_dto_list_for_get_template_v2_output.py +29 -3
- byteplussdkcpaas/models/template_button_list_for_create_template_v2_input.py +227 -0
- byteplussdkcpaas/models/template_button_list_for_get_template_v2_output.py +227 -0
- byteplussdkcpaas/models/template_list_for_create_template_v2_input.py +235 -1
- byteplussdkcpaas/models/template_list_for_get_template_v2_output.py +235 -1
- byteplussdkcpaas/models/template_status_for_list_template_v2_output.py +79 -1
- byteplussdkcpaas/models/variables_dto_list_for_create_template_v2_input.py +27 -1
- byteplussdkcpaas/models/variables_dto_list_for_get_template_v2_output.py +27 -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.53.dist-info → byteplus_python_sdk_v2-3.0.55.dist-info}/WHEEL +0 -0
- {byteplus_python_sdk_v2-3.0.53.dist-info → byteplus_python_sdk_v2-3.0.55.dist-info}/licenses/LICENSE.txt +0 -0
- {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,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
|
|
@@ -233,6 +233,13 @@ default_endpoint = {
|
|
|
233
233
|
region_endpoint_map={},
|
|
234
234
|
fallback_endpoint=fallback_endpoint,
|
|
235
235
|
),
|
|
236
|
+
'clawsentry': ServiceEndpointInfo(
|
|
237
|
+
service='clawsentry',
|
|
238
|
+
is_global=False,
|
|
239
|
+
global_endpoint='',
|
|
240
|
+
region_endpoint_map={},
|
|
241
|
+
fallback_endpoint=fallback_endpoint,
|
|
242
|
+
),
|
|
236
243
|
}
|
|
237
244
|
|
|
238
245
|
|
byteplussdkcpaas/__init__.py
CHANGED
|
@@ -34,6 +34,8 @@ from byteplussdkcpaas.models.extend_attrs_for_create_template_v2_input import Ex
|
|
|
34
34
|
from byteplussdkcpaas.models.extend_attrs_for_get_template_v2_output import ExtendAttrsForGetTemplateV2Output
|
|
35
35
|
from byteplussdkcpaas.models.get_template_v2_request import GetTemplateV2Request
|
|
36
36
|
from byteplussdkcpaas.models.get_template_v2_response import GetTemplateV2Response
|
|
37
|
+
from byteplussdkcpaas.models.item_for_create_template_v2_input import ItemForCreateTemplateV2Input
|
|
38
|
+
from byteplussdkcpaas.models.item_for_get_template_v2_output import ItemForGetTemplateV2Output
|
|
37
39
|
from byteplussdkcpaas.models.list_template_v2_request import ListTemplateV2Request
|
|
38
40
|
from byteplussdkcpaas.models.list_template_v2_response import ListTemplateV2Response
|
|
39
41
|
from byteplussdkcpaas.models.page_dto_list_for_create_template_v2_input import PageDTOListForCreateTemplateV2Input
|
|
@@ -49,6 +51,8 @@ from byteplussdkcpaas.models.send_batch_message_request import SendBatchMessageR
|
|
|
49
51
|
from byteplussdkcpaas.models.send_batch_message_response import SendBatchMessageResponse
|
|
50
52
|
from byteplussdkcpaas.models.send_message_request import SendMessageRequest
|
|
51
53
|
from byteplussdkcpaas.models.send_message_response import SendMessageResponse
|
|
54
|
+
from byteplussdkcpaas.models.template_button_list_for_create_template_v2_input import TemplateButtonListForCreateTemplateV2Input
|
|
55
|
+
from byteplussdkcpaas.models.template_button_list_for_get_template_v2_output import TemplateButtonListForGetTemplateV2Output
|
|
52
56
|
from byteplussdkcpaas.models.template_list_for_create_template_v2_input import TemplateListForCreateTemplateV2Input
|
|
53
57
|
from byteplussdkcpaas.models.template_list_for_get_template_v2_output import TemplateListForGetTemplateV2Output
|
|
54
58
|
from byteplussdkcpaas.models.template_status_for_list_template_v2_output import TemplateStatusForListTemplateV2Output
|
|
@@ -30,6 +30,8 @@ from byteplussdkcpaas.models.extend_attrs_for_create_template_v2_input import Ex
|
|
|
30
30
|
from byteplussdkcpaas.models.extend_attrs_for_get_template_v2_output import ExtendAttrsForGetTemplateV2Output
|
|
31
31
|
from byteplussdkcpaas.models.get_template_v2_request import GetTemplateV2Request
|
|
32
32
|
from byteplussdkcpaas.models.get_template_v2_response import GetTemplateV2Response
|
|
33
|
+
from byteplussdkcpaas.models.item_for_create_template_v2_input import ItemForCreateTemplateV2Input
|
|
34
|
+
from byteplussdkcpaas.models.item_for_get_template_v2_output import ItemForGetTemplateV2Output
|
|
33
35
|
from byteplussdkcpaas.models.list_template_v2_request import ListTemplateV2Request
|
|
34
36
|
from byteplussdkcpaas.models.list_template_v2_response import ListTemplateV2Response
|
|
35
37
|
from byteplussdkcpaas.models.page_dto_list_for_create_template_v2_input import PageDTOListForCreateTemplateV2Input
|
|
@@ -45,6 +47,8 @@ from byteplussdkcpaas.models.send_batch_message_request import SendBatchMessageR
|
|
|
45
47
|
from byteplussdkcpaas.models.send_batch_message_response import SendBatchMessageResponse
|
|
46
48
|
from byteplussdkcpaas.models.send_message_request import SendMessageRequest
|
|
47
49
|
from byteplussdkcpaas.models.send_message_response import SendMessageResponse
|
|
50
|
+
from byteplussdkcpaas.models.template_button_list_for_create_template_v2_input import TemplateButtonListForCreateTemplateV2Input
|
|
51
|
+
from byteplussdkcpaas.models.template_button_list_for_get_template_v2_output import TemplateButtonListForGetTemplateV2Output
|
|
48
52
|
from byteplussdkcpaas.models.template_list_for_create_template_v2_input import TemplateListForCreateTemplateV2Input
|
|
49
53
|
from byteplussdkcpaas.models.template_list_for_get_template_v2_output import TemplateListForGetTemplateV2Output
|
|
50
54
|
from byteplussdkcpaas.models.template_status_for_list_template_v2_output import TemplateStatusForListTemplateV2Output
|
|
@@ -37,6 +37,7 @@ class CreateTemplateV2Request(object):
|
|
|
37
37
|
'enable_short_url': 'str',
|
|
38
38
|
'language': 'str',
|
|
39
39
|
'scene_template_name': 'str',
|
|
40
|
+
'send_audit': 'str',
|
|
40
41
|
'signature': 'str',
|
|
41
42
|
'sub_account_id': 'str',
|
|
42
43
|
'template_list': 'list[TemplateListForCreateTemplateV2Input]',
|
|
@@ -48,13 +49,14 @@ class CreateTemplateV2Request(object):
|
|
|
48
49
|
'enable_short_url': 'EnableShortUrl',
|
|
49
50
|
'language': 'Language',
|
|
50
51
|
'scene_template_name': 'SceneTemplateName',
|
|
52
|
+
'send_audit': 'SendAudit',
|
|
51
53
|
'signature': 'Signature',
|
|
52
54
|
'sub_account_id': 'SubAccountId',
|
|
53
55
|
'template_list': 'TemplateList',
|
|
54
56
|
'waba_id': 'WabaId'
|
|
55
57
|
}
|
|
56
58
|
|
|
57
|
-
def __init__(self, business_type=None, enable_short_url=None, language=None, scene_template_name=None, signature=None, sub_account_id=None, template_list=None, waba_id=None, _configuration=None): # noqa: E501
|
|
59
|
+
def __init__(self, business_type=None, enable_short_url=None, language=None, scene_template_name=None, send_audit=None, signature=None, sub_account_id=None, template_list=None, waba_id=None, _configuration=None): # noqa: E501
|
|
58
60
|
"""CreateTemplateV2Request - a model defined in Swagger""" # noqa: E501
|
|
59
61
|
if _configuration is None:
|
|
60
62
|
_configuration = Configuration()
|
|
@@ -64,6 +66,7 @@ class CreateTemplateV2Request(object):
|
|
|
64
66
|
self._enable_short_url = None
|
|
65
67
|
self._language = None
|
|
66
68
|
self._scene_template_name = None
|
|
69
|
+
self._send_audit = None
|
|
67
70
|
self._signature = None
|
|
68
71
|
self._sub_account_id = None
|
|
69
72
|
self._template_list = None
|
|
@@ -77,6 +80,8 @@ class CreateTemplateV2Request(object):
|
|
|
77
80
|
if language is not None:
|
|
78
81
|
self.language = language
|
|
79
82
|
self.scene_template_name = scene_template_name
|
|
83
|
+
if send_audit is not None:
|
|
84
|
+
self.send_audit = send_audit
|
|
80
85
|
if signature is not None:
|
|
81
86
|
self.signature = signature
|
|
82
87
|
if sub_account_id is not None:
|
|
@@ -172,6 +177,27 @@ class CreateTemplateV2Request(object):
|
|
|
172
177
|
|
|
173
178
|
self._scene_template_name = scene_template_name
|
|
174
179
|
|
|
180
|
+
@property
|
|
181
|
+
def send_audit(self):
|
|
182
|
+
"""Gets the send_audit of this CreateTemplateV2Request. # noqa: E501
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
:return: The send_audit of this CreateTemplateV2Request. # noqa: E501
|
|
186
|
+
:rtype: str
|
|
187
|
+
"""
|
|
188
|
+
return self._send_audit
|
|
189
|
+
|
|
190
|
+
@send_audit.setter
|
|
191
|
+
def send_audit(self, send_audit):
|
|
192
|
+
"""Sets the send_audit of this CreateTemplateV2Request.
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
:param send_audit: The send_audit of this CreateTemplateV2Request. # noqa: E501
|
|
196
|
+
:type: str
|
|
197
|
+
"""
|
|
198
|
+
|
|
199
|
+
self._send_audit = send_audit
|
|
200
|
+
|
|
175
201
|
@property
|
|
176
202
|
def signature(self):
|
|
177
203
|
"""Gets the signature of this CreateTemplateV2Request. # noqa: E501
|