byteplus-python-sdk-v2 3.0.45__py2.py3-none-any.whl → 3.0.46__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.45.dist-info → byteplus_python_sdk_v2-3.0.46.dist-info}/METADATA +1 -1
- {byteplus_python_sdk_v2-3.0.45.dist-info → byteplus_python_sdk_v2-3.0.46.dist-info}/RECORD +70 -19
- {byteplus_python_sdk_v2-3.0.45.dist-info → byteplus_python_sdk_v2-3.0.46.dist-info}/top_level.txt +1 -0
- byteplussdkbilling/models/list_for_list_amortized_cost_bill_daily_output.py +27 -1
- byteplussdkbilling/models/list_for_list_amortized_cost_bill_detail_output.py +53 -1
- byteplussdkbilling/models/list_for_list_amortized_cost_bill_monthly_output.py +53 -1
- byteplussdkbilling/models/list_for_list_bill_detail_output.py +79 -1
- byteplussdkbilling/models/list_for_list_coupons_output.py +29 -3
- byteplussdkbilling/models/list_for_list_split_bill_detail_output.py +79 -1
- 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 +56 -0
- byteplussdkcpaas/api/__init__.py +6 -0
- byteplussdkcpaas/api/cpaas_api.py +519 -0
- byteplussdkcpaas/models/__init__.py +52 -0
- byteplussdkcpaas/models/action_for_create_template_v2_input.py +201 -0
- byteplussdkcpaas/models/action_for_get_template_v2_output.py +201 -0
- byteplussdkcpaas/models/create_template_v2_request.py +306 -0
- byteplussdkcpaas/models/create_template_v2_response.py +175 -0
- byteplussdkcpaas/models/data_for_create_template_v2_output.py +149 -0
- byteplussdkcpaas/models/data_for_get_template_v2_output.py +253 -0
- byteplussdkcpaas/models/data_for_list_template_v2_output.py +305 -0
- byteplussdkcpaas/models/data_for_send_batch_message_output.py +123 -0
- byteplussdkcpaas/models/data_for_send_message_output.py +123 -0
- byteplussdkcpaas/models/element_style_for_create_template_v2_input.py +305 -0
- byteplussdkcpaas/models/element_style_for_get_template_v2_output.py +305 -0
- byteplussdkcpaas/models/extend_attrs_for_create_template_v2_input.py +227 -0
- byteplussdkcpaas/models/extend_attrs_for_get_template_v2_output.py +227 -0
- byteplussdkcpaas/models/get_template_v2_request.py +150 -0
- byteplussdkcpaas/models/get_template_v2_response.py +201 -0
- byteplussdkcpaas/models/list_template_v2_request.py +255 -0
- byteplussdkcpaas/models/list_template_v2_response.py +201 -0
- byteplussdkcpaas/models/page_dto_list_for_create_template_v2_input.py +175 -0
- byteplussdkcpaas/models/page_dto_list_for_get_template_v2_output.py +175 -0
- byteplussdkcpaas/models/page_element_dto_list_for_create_template_v2_input.py +149 -0
- byteplussdkcpaas/models/page_element_dto_list_for_get_template_v2_output.py +149 -0
- byteplussdkcpaas/models/page_link_list_for_create_template_v2_input.py +227 -0
- byteplussdkcpaas/models/page_link_list_for_get_template_v2_output.py +227 -0
- byteplussdkcpaas/models/priority_for_send_batch_message_input.py +279 -0
- byteplussdkcpaas/models/priority_for_send_message_input.py +279 -0
- byteplussdkcpaas/models/receiver_for_send_batch_message_input.py +149 -0
- byteplussdkcpaas/models/send_batch_message_request.py +281 -0
- byteplussdkcpaas/models/send_batch_message_response.py +175 -0
- byteplussdkcpaas/models/send_message_request.py +281 -0
- byteplussdkcpaas/models/send_message_response.py +175 -0
- byteplussdkcpaas/models/template_list_for_create_template_v2_input.py +305 -0
- byteplussdkcpaas/models/template_list_for_get_template_v2_output.py +305 -0
- byteplussdkcpaas/models/template_status_for_list_template_v2_output.py +175 -0
- byteplussdkcpaas/models/variables_dto_list_for_create_template_v2_input.py +227 -0
- byteplussdkcpaas/models/variables_dto_list_for_get_template_v2_output.py +227 -0
- byteplussdkrdsmssql/__init__.py +12 -0
- byteplussdkrdsmssql/api/rds_mssql_api.py +485 -0
- byteplussdkrdsmssql/models/__init__.py +12 -0
- byteplussdkrdsmssql/models/db_status_for_describe_db_instance_tde_output.py +149 -0
- byteplussdkrdsmssql/models/db_status_for_modify_db_instance_tde_input.py +149 -0
- byteplussdkrdsmssql/models/describe_db_instance_ssl_request.py +124 -0
- byteplussdkrdsmssql/models/describe_db_instance_ssl_response.py +331 -0
- byteplussdkrdsmssql/models/describe_db_instance_tde_request.py +124 -0
- byteplussdkrdsmssql/models/describe_db_instance_tde_response.py +201 -0
- byteplussdkrdsmssql/models/download_ssl_certificate_request.py +124 -0
- byteplussdkrdsmssql/models/download_ssl_certificate_response.py +123 -0
- byteplussdkrdsmssql/models/modify_db_instance_ssl_request.py +229 -0
- byteplussdkrdsmssql/models/modify_db_instance_ssl_response.py +95 -0
- byteplussdkrdsmssql/models/modify_db_instance_tde_request.py +296 -0
- byteplussdkrdsmssql/models/modify_db_instance_tde_response.py +95 -0
- {byteplus_python_sdk_v2-3.0.45.dist-info → byteplus_python_sdk_v2-3.0.46.dist-info}/WHEEL +0 -0
- {byteplus_python_sdk_v2-3.0.45.dist-info → byteplus_python_sdk_v2-3.0.46.dist-info}/licenses/LICENSE.txt +0 -0
- {byteplus_python_sdk_v2-3.0.45.dist-info → byteplus_python_sdk_v2-3.0.46.dist-info}/licenses/NOTICE.md +0 -0
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
cpaas
|
|
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 ActionForCreateTemplateV2Input(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
|
+
'action': 'str',
|
|
37
|
+
'event_name': 'str',
|
|
38
|
+
'event_type': 'str',
|
|
39
|
+
'extend_attrs': 'ExtendAttrsForCreateTemplateV2Input'
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
attribute_map = {
|
|
43
|
+
'action': 'Action',
|
|
44
|
+
'event_name': 'EventName',
|
|
45
|
+
'event_type': 'EventType',
|
|
46
|
+
'extend_attrs': 'ExtendAttrs'
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
def __init__(self, action=None, event_name=None, event_type=None, extend_attrs=None, _configuration=None): # noqa: E501
|
|
50
|
+
"""ActionForCreateTemplateV2Input - a model defined in Swagger""" # noqa: E501
|
|
51
|
+
if _configuration is None:
|
|
52
|
+
_configuration = Configuration()
|
|
53
|
+
self._configuration = _configuration
|
|
54
|
+
|
|
55
|
+
self._action = None
|
|
56
|
+
self._event_name = None
|
|
57
|
+
self._event_type = None
|
|
58
|
+
self._extend_attrs = None
|
|
59
|
+
self.discriminator = None
|
|
60
|
+
|
|
61
|
+
if action is not None:
|
|
62
|
+
self.action = action
|
|
63
|
+
if event_name is not None:
|
|
64
|
+
self.event_name = event_name
|
|
65
|
+
if event_type is not None:
|
|
66
|
+
self.event_type = event_type
|
|
67
|
+
if extend_attrs is not None:
|
|
68
|
+
self.extend_attrs = extend_attrs
|
|
69
|
+
|
|
70
|
+
@property
|
|
71
|
+
def action(self):
|
|
72
|
+
"""Gets the action of this ActionForCreateTemplateV2Input. # noqa: E501
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
:return: The action of this ActionForCreateTemplateV2Input. # noqa: E501
|
|
76
|
+
:rtype: str
|
|
77
|
+
"""
|
|
78
|
+
return self._action
|
|
79
|
+
|
|
80
|
+
@action.setter
|
|
81
|
+
def action(self, action):
|
|
82
|
+
"""Sets the action of this ActionForCreateTemplateV2Input.
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
:param action: The action of this ActionForCreateTemplateV2Input. # noqa: E501
|
|
86
|
+
:type: str
|
|
87
|
+
"""
|
|
88
|
+
|
|
89
|
+
self._action = action
|
|
90
|
+
|
|
91
|
+
@property
|
|
92
|
+
def event_name(self):
|
|
93
|
+
"""Gets the event_name of this ActionForCreateTemplateV2Input. # noqa: E501
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
:return: The event_name of this ActionForCreateTemplateV2Input. # noqa: E501
|
|
97
|
+
:rtype: str
|
|
98
|
+
"""
|
|
99
|
+
return self._event_name
|
|
100
|
+
|
|
101
|
+
@event_name.setter
|
|
102
|
+
def event_name(self, event_name):
|
|
103
|
+
"""Sets the event_name of this ActionForCreateTemplateV2Input.
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
:param event_name: The event_name of this ActionForCreateTemplateV2Input. # noqa: E501
|
|
107
|
+
:type: str
|
|
108
|
+
"""
|
|
109
|
+
|
|
110
|
+
self._event_name = event_name
|
|
111
|
+
|
|
112
|
+
@property
|
|
113
|
+
def event_type(self):
|
|
114
|
+
"""Gets the event_type of this ActionForCreateTemplateV2Input. # noqa: E501
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
:return: The event_type of this ActionForCreateTemplateV2Input. # noqa: E501
|
|
118
|
+
:rtype: str
|
|
119
|
+
"""
|
|
120
|
+
return self._event_type
|
|
121
|
+
|
|
122
|
+
@event_type.setter
|
|
123
|
+
def event_type(self, event_type):
|
|
124
|
+
"""Sets the event_type of this ActionForCreateTemplateV2Input.
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
:param event_type: The event_type of this ActionForCreateTemplateV2Input. # noqa: E501
|
|
128
|
+
:type: str
|
|
129
|
+
"""
|
|
130
|
+
|
|
131
|
+
self._event_type = event_type
|
|
132
|
+
|
|
133
|
+
@property
|
|
134
|
+
def extend_attrs(self):
|
|
135
|
+
"""Gets the extend_attrs of this ActionForCreateTemplateV2Input. # noqa: E501
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
:return: The extend_attrs of this ActionForCreateTemplateV2Input. # noqa: E501
|
|
139
|
+
:rtype: ExtendAttrsForCreateTemplateV2Input
|
|
140
|
+
"""
|
|
141
|
+
return self._extend_attrs
|
|
142
|
+
|
|
143
|
+
@extend_attrs.setter
|
|
144
|
+
def extend_attrs(self, extend_attrs):
|
|
145
|
+
"""Sets the extend_attrs of this ActionForCreateTemplateV2Input.
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
:param extend_attrs: The extend_attrs of this ActionForCreateTemplateV2Input. # noqa: E501
|
|
149
|
+
:type: ExtendAttrsForCreateTemplateV2Input
|
|
150
|
+
"""
|
|
151
|
+
|
|
152
|
+
self._extend_attrs = extend_attrs
|
|
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(ActionForCreateTemplateV2Input, 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, ActionForCreateTemplateV2Input):
|
|
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, ActionForCreateTemplateV2Input):
|
|
199
|
+
return True
|
|
200
|
+
|
|
201
|
+
return self.to_dict() != other.to_dict()
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
cpaas
|
|
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 ActionForGetTemplateV2Output(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
|
+
'action': 'str',
|
|
37
|
+
'event_name': 'str',
|
|
38
|
+
'event_type': 'str',
|
|
39
|
+
'extend_attrs': 'ExtendAttrsForGetTemplateV2Output'
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
attribute_map = {
|
|
43
|
+
'action': 'Action',
|
|
44
|
+
'event_name': 'EventName',
|
|
45
|
+
'event_type': 'EventType',
|
|
46
|
+
'extend_attrs': 'ExtendAttrs'
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
def __init__(self, action=None, event_name=None, event_type=None, extend_attrs=None, _configuration=None): # noqa: E501
|
|
50
|
+
"""ActionForGetTemplateV2Output - a model defined in Swagger""" # noqa: E501
|
|
51
|
+
if _configuration is None:
|
|
52
|
+
_configuration = Configuration()
|
|
53
|
+
self._configuration = _configuration
|
|
54
|
+
|
|
55
|
+
self._action = None
|
|
56
|
+
self._event_name = None
|
|
57
|
+
self._event_type = None
|
|
58
|
+
self._extend_attrs = None
|
|
59
|
+
self.discriminator = None
|
|
60
|
+
|
|
61
|
+
if action is not None:
|
|
62
|
+
self.action = action
|
|
63
|
+
if event_name is not None:
|
|
64
|
+
self.event_name = event_name
|
|
65
|
+
if event_type is not None:
|
|
66
|
+
self.event_type = event_type
|
|
67
|
+
if extend_attrs is not None:
|
|
68
|
+
self.extend_attrs = extend_attrs
|
|
69
|
+
|
|
70
|
+
@property
|
|
71
|
+
def action(self):
|
|
72
|
+
"""Gets the action of this ActionForGetTemplateV2Output. # noqa: E501
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
:return: The action of this ActionForGetTemplateV2Output. # noqa: E501
|
|
76
|
+
:rtype: str
|
|
77
|
+
"""
|
|
78
|
+
return self._action
|
|
79
|
+
|
|
80
|
+
@action.setter
|
|
81
|
+
def action(self, action):
|
|
82
|
+
"""Sets the action of this ActionForGetTemplateV2Output.
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
:param action: The action of this ActionForGetTemplateV2Output. # noqa: E501
|
|
86
|
+
:type: str
|
|
87
|
+
"""
|
|
88
|
+
|
|
89
|
+
self._action = action
|
|
90
|
+
|
|
91
|
+
@property
|
|
92
|
+
def event_name(self):
|
|
93
|
+
"""Gets the event_name of this ActionForGetTemplateV2Output. # noqa: E501
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
:return: The event_name of this ActionForGetTemplateV2Output. # noqa: E501
|
|
97
|
+
:rtype: str
|
|
98
|
+
"""
|
|
99
|
+
return self._event_name
|
|
100
|
+
|
|
101
|
+
@event_name.setter
|
|
102
|
+
def event_name(self, event_name):
|
|
103
|
+
"""Sets the event_name of this ActionForGetTemplateV2Output.
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
:param event_name: The event_name of this ActionForGetTemplateV2Output. # noqa: E501
|
|
107
|
+
:type: str
|
|
108
|
+
"""
|
|
109
|
+
|
|
110
|
+
self._event_name = event_name
|
|
111
|
+
|
|
112
|
+
@property
|
|
113
|
+
def event_type(self):
|
|
114
|
+
"""Gets the event_type of this ActionForGetTemplateV2Output. # noqa: E501
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
:return: The event_type of this ActionForGetTemplateV2Output. # noqa: E501
|
|
118
|
+
:rtype: str
|
|
119
|
+
"""
|
|
120
|
+
return self._event_type
|
|
121
|
+
|
|
122
|
+
@event_type.setter
|
|
123
|
+
def event_type(self, event_type):
|
|
124
|
+
"""Sets the event_type of this ActionForGetTemplateV2Output.
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
:param event_type: The event_type of this ActionForGetTemplateV2Output. # noqa: E501
|
|
128
|
+
:type: str
|
|
129
|
+
"""
|
|
130
|
+
|
|
131
|
+
self._event_type = event_type
|
|
132
|
+
|
|
133
|
+
@property
|
|
134
|
+
def extend_attrs(self):
|
|
135
|
+
"""Gets the extend_attrs of this ActionForGetTemplateV2Output. # noqa: E501
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
:return: The extend_attrs of this ActionForGetTemplateV2Output. # noqa: E501
|
|
139
|
+
:rtype: ExtendAttrsForGetTemplateV2Output
|
|
140
|
+
"""
|
|
141
|
+
return self._extend_attrs
|
|
142
|
+
|
|
143
|
+
@extend_attrs.setter
|
|
144
|
+
def extend_attrs(self, extend_attrs):
|
|
145
|
+
"""Sets the extend_attrs of this ActionForGetTemplateV2Output.
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
:param extend_attrs: The extend_attrs of this ActionForGetTemplateV2Output. # noqa: E501
|
|
149
|
+
:type: ExtendAttrsForGetTemplateV2Output
|
|
150
|
+
"""
|
|
151
|
+
|
|
152
|
+
self._extend_attrs = extend_attrs
|
|
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(ActionForGetTemplateV2Output, 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, ActionForGetTemplateV2Output):
|
|
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, ActionForGetTemplateV2Output):
|
|
199
|
+
return True
|
|
200
|
+
|
|
201
|
+
return self.to_dict() != other.to_dict()
|
|
@@ -0,0 +1,306 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
cpaas
|
|
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 CreateTemplateV2Request(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
|
+
'business_type': 'str',
|
|
37
|
+
'enable_short_url': 'str',
|
|
38
|
+
'language': 'str',
|
|
39
|
+
'scene_template_name': 'str',
|
|
40
|
+
'signature': 'str',
|
|
41
|
+
'sub_account_id': 'str',
|
|
42
|
+
'template_list': 'list[TemplateListForCreateTemplateV2Input]',
|
|
43
|
+
'waba_id': 'str'
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
attribute_map = {
|
|
47
|
+
'business_type': 'BusinessType',
|
|
48
|
+
'enable_short_url': 'EnableShortUrl',
|
|
49
|
+
'language': 'Language',
|
|
50
|
+
'scene_template_name': 'SceneTemplateName',
|
|
51
|
+
'signature': 'Signature',
|
|
52
|
+
'sub_account_id': 'SubAccountId',
|
|
53
|
+
'template_list': 'TemplateList',
|
|
54
|
+
'waba_id': 'WabaId'
|
|
55
|
+
}
|
|
56
|
+
|
|
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
|
|
58
|
+
"""CreateTemplateV2Request - a model defined in Swagger""" # noqa: E501
|
|
59
|
+
if _configuration is None:
|
|
60
|
+
_configuration = Configuration()
|
|
61
|
+
self._configuration = _configuration
|
|
62
|
+
|
|
63
|
+
self._business_type = None
|
|
64
|
+
self._enable_short_url = None
|
|
65
|
+
self._language = None
|
|
66
|
+
self._scene_template_name = None
|
|
67
|
+
self._signature = None
|
|
68
|
+
self._sub_account_id = None
|
|
69
|
+
self._template_list = None
|
|
70
|
+
self._waba_id = None
|
|
71
|
+
self.discriminator = None
|
|
72
|
+
|
|
73
|
+
if business_type is not None:
|
|
74
|
+
self.business_type = business_type
|
|
75
|
+
if enable_short_url is not None:
|
|
76
|
+
self.enable_short_url = enable_short_url
|
|
77
|
+
if language is not None:
|
|
78
|
+
self.language = language
|
|
79
|
+
self.scene_template_name = scene_template_name
|
|
80
|
+
if signature is not None:
|
|
81
|
+
self.signature = signature
|
|
82
|
+
if sub_account_id is not None:
|
|
83
|
+
self.sub_account_id = sub_account_id
|
|
84
|
+
if template_list is not None:
|
|
85
|
+
self.template_list = template_list
|
|
86
|
+
if waba_id is not None:
|
|
87
|
+
self.waba_id = waba_id
|
|
88
|
+
|
|
89
|
+
@property
|
|
90
|
+
def business_type(self):
|
|
91
|
+
"""Gets the business_type of this CreateTemplateV2Request. # noqa: E501
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
:return: The business_type of this CreateTemplateV2Request. # noqa: E501
|
|
95
|
+
:rtype: str
|
|
96
|
+
"""
|
|
97
|
+
return self._business_type
|
|
98
|
+
|
|
99
|
+
@business_type.setter
|
|
100
|
+
def business_type(self, business_type):
|
|
101
|
+
"""Sets the business_type of this CreateTemplateV2Request.
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
:param business_type: The business_type of this CreateTemplateV2Request. # noqa: E501
|
|
105
|
+
:type: str
|
|
106
|
+
"""
|
|
107
|
+
|
|
108
|
+
self._business_type = business_type
|
|
109
|
+
|
|
110
|
+
@property
|
|
111
|
+
def enable_short_url(self):
|
|
112
|
+
"""Gets the enable_short_url of this CreateTemplateV2Request. # noqa: E501
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
:return: The enable_short_url of this CreateTemplateV2Request. # noqa: E501
|
|
116
|
+
:rtype: str
|
|
117
|
+
"""
|
|
118
|
+
return self._enable_short_url
|
|
119
|
+
|
|
120
|
+
@enable_short_url.setter
|
|
121
|
+
def enable_short_url(self, enable_short_url):
|
|
122
|
+
"""Sets the enable_short_url of this CreateTemplateV2Request.
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
:param enable_short_url: The enable_short_url of this CreateTemplateV2Request. # noqa: E501
|
|
126
|
+
:type: str
|
|
127
|
+
"""
|
|
128
|
+
|
|
129
|
+
self._enable_short_url = enable_short_url
|
|
130
|
+
|
|
131
|
+
@property
|
|
132
|
+
def language(self):
|
|
133
|
+
"""Gets the language of this CreateTemplateV2Request. # noqa: E501
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
:return: The language of this CreateTemplateV2Request. # noqa: E501
|
|
137
|
+
:rtype: str
|
|
138
|
+
"""
|
|
139
|
+
return self._language
|
|
140
|
+
|
|
141
|
+
@language.setter
|
|
142
|
+
def language(self, language):
|
|
143
|
+
"""Sets the language of this CreateTemplateV2Request.
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
:param language: The language of this CreateTemplateV2Request. # noqa: E501
|
|
147
|
+
:type: str
|
|
148
|
+
"""
|
|
149
|
+
|
|
150
|
+
self._language = language
|
|
151
|
+
|
|
152
|
+
@property
|
|
153
|
+
def scene_template_name(self):
|
|
154
|
+
"""Gets the scene_template_name of this CreateTemplateV2Request. # noqa: E501
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
:return: The scene_template_name of this CreateTemplateV2Request. # noqa: E501
|
|
158
|
+
:rtype: str
|
|
159
|
+
"""
|
|
160
|
+
return self._scene_template_name
|
|
161
|
+
|
|
162
|
+
@scene_template_name.setter
|
|
163
|
+
def scene_template_name(self, scene_template_name):
|
|
164
|
+
"""Sets the scene_template_name of this CreateTemplateV2Request.
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
:param scene_template_name: The scene_template_name of this CreateTemplateV2Request. # noqa: E501
|
|
168
|
+
:type: str
|
|
169
|
+
"""
|
|
170
|
+
if self._configuration.client_side_validation and scene_template_name is None:
|
|
171
|
+
raise ValueError("Invalid value for `scene_template_name`, must not be `None`") # noqa: E501
|
|
172
|
+
|
|
173
|
+
self._scene_template_name = scene_template_name
|
|
174
|
+
|
|
175
|
+
@property
|
|
176
|
+
def signature(self):
|
|
177
|
+
"""Gets the signature of this CreateTemplateV2Request. # noqa: E501
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
:return: The signature of this CreateTemplateV2Request. # noqa: E501
|
|
181
|
+
:rtype: str
|
|
182
|
+
"""
|
|
183
|
+
return self._signature
|
|
184
|
+
|
|
185
|
+
@signature.setter
|
|
186
|
+
def signature(self, signature):
|
|
187
|
+
"""Sets the signature of this CreateTemplateV2Request.
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
:param signature: The signature of this CreateTemplateV2Request. # noqa: E501
|
|
191
|
+
:type: str
|
|
192
|
+
"""
|
|
193
|
+
|
|
194
|
+
self._signature = signature
|
|
195
|
+
|
|
196
|
+
@property
|
|
197
|
+
def sub_account_id(self):
|
|
198
|
+
"""Gets the sub_account_id of this CreateTemplateV2Request. # noqa: E501
|
|
199
|
+
|
|
200
|
+
|
|
201
|
+
:return: The sub_account_id of this CreateTemplateV2Request. # noqa: E501
|
|
202
|
+
:rtype: str
|
|
203
|
+
"""
|
|
204
|
+
return self._sub_account_id
|
|
205
|
+
|
|
206
|
+
@sub_account_id.setter
|
|
207
|
+
def sub_account_id(self, sub_account_id):
|
|
208
|
+
"""Sets the sub_account_id of this CreateTemplateV2Request.
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
:param sub_account_id: The sub_account_id of this CreateTemplateV2Request. # noqa: E501
|
|
212
|
+
:type: str
|
|
213
|
+
"""
|
|
214
|
+
|
|
215
|
+
self._sub_account_id = sub_account_id
|
|
216
|
+
|
|
217
|
+
@property
|
|
218
|
+
def template_list(self):
|
|
219
|
+
"""Gets the template_list of this CreateTemplateV2Request. # noqa: E501
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
:return: The template_list of this CreateTemplateV2Request. # noqa: E501
|
|
223
|
+
:rtype: list[TemplateListForCreateTemplateV2Input]
|
|
224
|
+
"""
|
|
225
|
+
return self._template_list
|
|
226
|
+
|
|
227
|
+
@template_list.setter
|
|
228
|
+
def template_list(self, template_list):
|
|
229
|
+
"""Sets the template_list of this CreateTemplateV2Request.
|
|
230
|
+
|
|
231
|
+
|
|
232
|
+
:param template_list: The template_list of this CreateTemplateV2Request. # noqa: E501
|
|
233
|
+
:type: list[TemplateListForCreateTemplateV2Input]
|
|
234
|
+
"""
|
|
235
|
+
|
|
236
|
+
self._template_list = template_list
|
|
237
|
+
|
|
238
|
+
@property
|
|
239
|
+
def waba_id(self):
|
|
240
|
+
"""Gets the waba_id of this CreateTemplateV2Request. # noqa: E501
|
|
241
|
+
|
|
242
|
+
|
|
243
|
+
:return: The waba_id of this CreateTemplateV2Request. # noqa: E501
|
|
244
|
+
:rtype: str
|
|
245
|
+
"""
|
|
246
|
+
return self._waba_id
|
|
247
|
+
|
|
248
|
+
@waba_id.setter
|
|
249
|
+
def waba_id(self, waba_id):
|
|
250
|
+
"""Sets the waba_id of this CreateTemplateV2Request.
|
|
251
|
+
|
|
252
|
+
|
|
253
|
+
:param waba_id: The waba_id of this CreateTemplateV2Request. # noqa: E501
|
|
254
|
+
:type: str
|
|
255
|
+
"""
|
|
256
|
+
|
|
257
|
+
self._waba_id = waba_id
|
|
258
|
+
|
|
259
|
+
def to_dict(self):
|
|
260
|
+
"""Returns the model properties as a dict"""
|
|
261
|
+
result = {}
|
|
262
|
+
|
|
263
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
264
|
+
value = getattr(self, attr)
|
|
265
|
+
if isinstance(value, list):
|
|
266
|
+
result[attr] = list(map(
|
|
267
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
268
|
+
value
|
|
269
|
+
))
|
|
270
|
+
elif hasattr(value, "to_dict"):
|
|
271
|
+
result[attr] = value.to_dict()
|
|
272
|
+
elif isinstance(value, dict):
|
|
273
|
+
result[attr] = dict(map(
|
|
274
|
+
lambda item: (item[0], item[1].to_dict())
|
|
275
|
+
if hasattr(item[1], "to_dict") else item,
|
|
276
|
+
value.items()
|
|
277
|
+
))
|
|
278
|
+
else:
|
|
279
|
+
result[attr] = value
|
|
280
|
+
if issubclass(CreateTemplateV2Request, dict):
|
|
281
|
+
for key, value in self.items():
|
|
282
|
+
result[key] = value
|
|
283
|
+
|
|
284
|
+
return result
|
|
285
|
+
|
|
286
|
+
def to_str(self):
|
|
287
|
+
"""Returns the string representation of the model"""
|
|
288
|
+
return pprint.pformat(self.to_dict())
|
|
289
|
+
|
|
290
|
+
def __repr__(self):
|
|
291
|
+
"""For `print` and `pprint`"""
|
|
292
|
+
return self.to_str()
|
|
293
|
+
|
|
294
|
+
def __eq__(self, other):
|
|
295
|
+
"""Returns true if both objects are equal"""
|
|
296
|
+
if not isinstance(other, CreateTemplateV2Request):
|
|
297
|
+
return False
|
|
298
|
+
|
|
299
|
+
return self.to_dict() == other.to_dict()
|
|
300
|
+
|
|
301
|
+
def __ne__(self, other):
|
|
302
|
+
"""Returns true if both objects are not equal"""
|
|
303
|
+
if not isinstance(other, CreateTemplateV2Request):
|
|
304
|
+
return True
|
|
305
|
+
|
|
306
|
+
return self.to_dict() != other.to_dict()
|