huaweicloudsdkmsgsms 3.1.160__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.
- huaweicloudsdkmsgsms/__init__.py +0 -0
- huaweicloudsdkmsgsms/v2/__init__.py +60 -0
- huaweicloudsdkmsgsms/v2/model/__init__.py +57 -0
- huaweicloudsdkmsgsms/v2/model/api_template_variable.py +289 -0
- huaweicloudsdkmsgsms/v2/model/create_app_request.py +111 -0
- huaweicloudsdkmsgsms/v2/model/create_app_response.py +203 -0
- huaweicloudsdkmsgsms/v2/model/create_signature_request.py +111 -0
- huaweicloudsdkmsgsms/v2/model/create_signature_response.py +174 -0
- huaweicloudsdkmsgsms/v2/model/create_template_request.py +111 -0
- huaweicloudsdkmsgsms/v2/model/create_template_response.py +145 -0
- huaweicloudsdkmsgsms/v2/model/delete_signature_request.py +114 -0
- huaweicloudsdkmsgsms/v2/model/delete_signature_response.py +85 -0
- huaweicloudsdkmsgsms/v2/model/delete_template_request.py +114 -0
- huaweicloudsdkmsgsms/v2/model/delete_template_response.py +85 -0
- huaweicloudsdkmsgsms/v2/model/enable_signature_request.py +114 -0
- huaweicloudsdkmsgsms/v2/model/enable_signature_response.py +85 -0
- huaweicloudsdkmsgsms/v2/model/list_app_details_request.py +347 -0
- huaweicloudsdkmsgsms/v2/model/list_app_details_response.py +145 -0
- huaweicloudsdkmsgsms/v2/model/list_send_country_details_request.py +144 -0
- huaweicloudsdkmsgsms/v2/model/list_send_country_details_response.py +112 -0
- huaweicloudsdkmsgsms/v2/model/list_signature_details_request.py +434 -0
- huaweicloudsdkmsgsms/v2/model/list_signature_details_response.py +145 -0
- huaweicloudsdkmsgsms/v2/model/list_template_details_request.py +521 -0
- huaweicloudsdkmsgsms/v2/model/list_template_details_response.py +145 -0
- huaweicloudsdkmsgsms/v2/model/list_template_varilable_details_request.py +114 -0
- huaweicloudsdkmsgsms/v2/model/list_template_varilable_details_response.py +145 -0
- huaweicloudsdkmsgsms/v2/model/show_app_count_request.py +114 -0
- huaweicloudsdkmsgsms/v2/model/show_app_count_response.py +145 -0
- huaweicloudsdkmsgsms/v2/model/show_app_request.py +114 -0
- huaweicloudsdkmsgsms/v2/model/show_app_response.py +721 -0
- huaweicloudsdkmsgsms/v2/model/show_signature_file_request.py +114 -0
- huaweicloudsdkmsgsms/v2/model/show_signature_file_response.py +348 -0
- huaweicloudsdkmsgsms/v2/model/show_signature_request.py +114 -0
- huaweicloudsdkmsgsms/v2/model/show_signature_response.py +837 -0
- huaweicloudsdkmsgsms/v2/model/show_template_request.py +114 -0
- huaweicloudsdkmsgsms/v2/model/show_template_response.py +953 -0
- huaweicloudsdkmsgsms/v2/model/sms_app_add_req.py +287 -0
- huaweicloudsdkmsgsms/v2/model/sms_app_query_resp.py +720 -0
- huaweicloudsdkmsgsms/v2/model/sms_app_update_req.py +258 -0
- huaweicloudsdkmsgsms/v2/model/sms_country_resp.py +173 -0
- huaweicloudsdkmsgsms/v2/model/sms_signature_req.py +371 -0
- huaweicloudsdkmsgsms/v2/model/sms_signature_resp.py +836 -0
- huaweicloudsdkmsgsms/v2/model/sms_template_req.py +429 -0
- huaweicloudsdkmsgsms/v2/model/sms_template_resp.py +952 -0
- huaweicloudsdkmsgsms/v2/model/sms_template_variable_attr_req.py +171 -0
- huaweicloudsdkmsgsms/v2/model/tenant_basic.py +173 -0
- huaweicloudsdkmsgsms/v2/model/update_app_request.py +139 -0
- huaweicloudsdkmsgsms/v2/model/update_app_response.py +174 -0
- huaweicloudsdkmsgsms/v2/model/update_signature_request.py +139 -0
- huaweicloudsdkmsgsms/v2/model/update_signature_response.py +174 -0
- huaweicloudsdkmsgsms/v2/model/update_template_request.py +139 -0
- huaweicloudsdkmsgsms/v2/model/update_template_response.py +145 -0
- huaweicloudsdkmsgsms/v2/model/upload_signature_file_request.py +140 -0
- huaweicloudsdkmsgsms/v2/model/upload_signature_file_request_body.py +114 -0
- huaweicloudsdkmsgsms/v2/model/upload_signature_file_response.py +116 -0
- huaweicloudsdkmsgsms/v2/msgsms_async_client.py +1461 -0
- huaweicloudsdkmsgsms/v2/msgsms_client.py +1458 -0
- huaweicloudsdkmsgsms/v2/region/__init__.py +0 -0
- huaweicloudsdkmsgsms/v2/region/msgsms_region.py +34 -0
- huaweicloudsdkmsgsms-3.1.160.dist-info/LICENSE +13 -0
- huaweicloudsdkmsgsms-3.1.160.dist-info/METADATA +26 -0
- huaweicloudsdkmsgsms-3.1.160.dist-info/RECORD +64 -0
- huaweicloudsdkmsgsms-3.1.160.dist-info/WHEEL +5 -0
- huaweicloudsdkmsgsms-3.1.160.dist-info/top_level.txt +1 -0
@@ -0,0 +1,145 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.sdk_response import SdkResponse
|
6
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
7
|
+
|
8
|
+
|
9
|
+
class ListSignatureDetailsResponse(SdkResponse):
|
10
|
+
|
11
|
+
"""
|
12
|
+
Attributes:
|
13
|
+
openapi_types (dict): The key is attribute name
|
14
|
+
and the value is attribute type.
|
15
|
+
attribute_map (dict): The key is attribute name
|
16
|
+
and the value is json key in definition.
|
17
|
+
"""
|
18
|
+
sensitive_list = []
|
19
|
+
|
20
|
+
openapi_types = {
|
21
|
+
'results': 'list[SmsSignatureResp]',
|
22
|
+
'total': 'int'
|
23
|
+
}
|
24
|
+
|
25
|
+
attribute_map = {
|
26
|
+
'results': 'results',
|
27
|
+
'total': 'total'
|
28
|
+
}
|
29
|
+
|
30
|
+
def __init__(self, results=None, total=None):
|
31
|
+
r"""ListSignatureDetailsResponse
|
32
|
+
|
33
|
+
The model defined in huaweicloud sdk
|
34
|
+
|
35
|
+
:param results: 查询结果
|
36
|
+
:type results: list[:class:`huaweicloudsdkmsgsms.v2.SmsSignatureResp`]
|
37
|
+
:param total: 总数
|
38
|
+
:type total: int
|
39
|
+
"""
|
40
|
+
|
41
|
+
super(ListSignatureDetailsResponse, self).__init__()
|
42
|
+
|
43
|
+
self._results = None
|
44
|
+
self._total = None
|
45
|
+
self.discriminator = None
|
46
|
+
|
47
|
+
if results is not None:
|
48
|
+
self.results = results
|
49
|
+
if total is not None:
|
50
|
+
self.total = total
|
51
|
+
|
52
|
+
@property
|
53
|
+
def results(self):
|
54
|
+
r"""Gets the results of this ListSignatureDetailsResponse.
|
55
|
+
|
56
|
+
查询结果
|
57
|
+
|
58
|
+
:return: The results of this ListSignatureDetailsResponse.
|
59
|
+
:rtype: list[:class:`huaweicloudsdkmsgsms.v2.SmsSignatureResp`]
|
60
|
+
"""
|
61
|
+
return self._results
|
62
|
+
|
63
|
+
@results.setter
|
64
|
+
def results(self, results):
|
65
|
+
r"""Sets the results of this ListSignatureDetailsResponse.
|
66
|
+
|
67
|
+
查询结果
|
68
|
+
|
69
|
+
:param results: The results of this ListSignatureDetailsResponse.
|
70
|
+
:type results: list[:class:`huaweicloudsdkmsgsms.v2.SmsSignatureResp`]
|
71
|
+
"""
|
72
|
+
self._results = results
|
73
|
+
|
74
|
+
@property
|
75
|
+
def total(self):
|
76
|
+
r"""Gets the total of this ListSignatureDetailsResponse.
|
77
|
+
|
78
|
+
总数
|
79
|
+
|
80
|
+
:return: The total of this ListSignatureDetailsResponse.
|
81
|
+
:rtype: int
|
82
|
+
"""
|
83
|
+
return self._total
|
84
|
+
|
85
|
+
@total.setter
|
86
|
+
def total(self, total):
|
87
|
+
r"""Sets the total of this ListSignatureDetailsResponse.
|
88
|
+
|
89
|
+
总数
|
90
|
+
|
91
|
+
:param total: The total of this ListSignatureDetailsResponse.
|
92
|
+
:type total: int
|
93
|
+
"""
|
94
|
+
self._total = total
|
95
|
+
|
96
|
+
def to_dict(self):
|
97
|
+
"""Returns the model properties as a dict"""
|
98
|
+
result = {}
|
99
|
+
|
100
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
101
|
+
value = getattr(self, attr)
|
102
|
+
if isinstance(value, list):
|
103
|
+
result[attr] = list(map(
|
104
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
105
|
+
value
|
106
|
+
))
|
107
|
+
elif hasattr(value, "to_dict"):
|
108
|
+
result[attr] = value.to_dict()
|
109
|
+
elif isinstance(value, dict):
|
110
|
+
result[attr] = dict(map(
|
111
|
+
lambda item: (item[0], item[1].to_dict())
|
112
|
+
if hasattr(item[1], "to_dict") else item,
|
113
|
+
value.items()
|
114
|
+
))
|
115
|
+
else:
|
116
|
+
if attr in self.sensitive_list:
|
117
|
+
result[attr] = "****"
|
118
|
+
else:
|
119
|
+
result[attr] = value
|
120
|
+
|
121
|
+
return result
|
122
|
+
|
123
|
+
def to_str(self):
|
124
|
+
"""Returns the string representation of the model"""
|
125
|
+
import simplejson as json
|
126
|
+
if six.PY2:
|
127
|
+
import sys
|
128
|
+
reload(sys)
|
129
|
+
sys.setdefaultencoding("utf-8")
|
130
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
131
|
+
|
132
|
+
def __repr__(self):
|
133
|
+
"""For `print`"""
|
134
|
+
return self.to_str()
|
135
|
+
|
136
|
+
def __eq__(self, other):
|
137
|
+
"""Returns true if both objects are equal"""
|
138
|
+
if not isinstance(other, ListSignatureDetailsResponse):
|
139
|
+
return False
|
140
|
+
|
141
|
+
return self.__dict__ == other.__dict__
|
142
|
+
|
143
|
+
def __ne__(self, other):
|
144
|
+
"""Returns true if both objects are not equal"""
|
145
|
+
return not self == other
|
@@ -0,0 +1,521 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ListTemplateDetailsRequest:
|
9
|
+
|
10
|
+
"""
|
11
|
+
Attributes:
|
12
|
+
openapi_types (dict): The key is attribute name
|
13
|
+
and the value is attribute type.
|
14
|
+
attribute_map (dict): The key is attribute name
|
15
|
+
and the value is json key in definition.
|
16
|
+
"""
|
17
|
+
sensitive_list = []
|
18
|
+
|
19
|
+
openapi_types = {
|
20
|
+
'app_key': 'str',
|
21
|
+
'app_name': 'str',
|
22
|
+
'start_time': 'str',
|
23
|
+
'end_time': 'str',
|
24
|
+
'limit': 'int',
|
25
|
+
'offset': 'int',
|
26
|
+
'flow_status': 'str',
|
27
|
+
'has_variable': 'str',
|
28
|
+
'region': 'str',
|
29
|
+
'sign_name': 'str',
|
30
|
+
'sort_dir': 'str',
|
31
|
+
'sort_key': 'str',
|
32
|
+
'template_id': 'str',
|
33
|
+
'template_name': 'str',
|
34
|
+
'template_type': 'str'
|
35
|
+
}
|
36
|
+
|
37
|
+
attribute_map = {
|
38
|
+
'app_key': 'app_key',
|
39
|
+
'app_name': 'app_name',
|
40
|
+
'start_time': 'start_time',
|
41
|
+
'end_time': 'end_time',
|
42
|
+
'limit': 'limit',
|
43
|
+
'offset': 'offset',
|
44
|
+
'flow_status': 'flow_status',
|
45
|
+
'has_variable': 'has_variable',
|
46
|
+
'region': 'region',
|
47
|
+
'sign_name': 'sign_name',
|
48
|
+
'sort_dir': 'sort_dir',
|
49
|
+
'sort_key': 'sort_key',
|
50
|
+
'template_id': 'template_id',
|
51
|
+
'template_name': 'template_name',
|
52
|
+
'template_type': 'template_type'
|
53
|
+
}
|
54
|
+
|
55
|
+
def __init__(self, app_key=None, app_name=None, start_time=None, end_time=None, limit=None, offset=None, flow_status=None, has_variable=None, region=None, sign_name=None, sort_dir=None, sort_key=None, template_id=None, template_name=None, template_type=None):
|
56
|
+
r"""ListTemplateDetailsRequest
|
57
|
+
|
58
|
+
The model defined in huaweicloud sdk
|
59
|
+
|
60
|
+
:param app_key: 应用key
|
61
|
+
:type app_key: str
|
62
|
+
:param app_name: 应用名称
|
63
|
+
:type app_name: str
|
64
|
+
:param start_time: 开始时间
|
65
|
+
:type start_time: str
|
66
|
+
:param end_time: 结束时间
|
67
|
+
:type end_time: str
|
68
|
+
:param limit: 数量
|
69
|
+
:type limit: int
|
70
|
+
:param offset: 偏移量
|
71
|
+
:type offset: int
|
72
|
+
:param flow_status: 流程状态 1. Adopted: 通过 2. Reviewing: 审核中 3. Reject: 拒绝
|
73
|
+
:type flow_status: str
|
74
|
+
:param has_variable: 是否存在变量
|
75
|
+
:type has_variable: str
|
76
|
+
:param region: 地域 1. cn:国内 2. intl:国际
|
77
|
+
:type region: str
|
78
|
+
:param sign_name: 签名名称
|
79
|
+
:type sign_name: str
|
80
|
+
:param sort_dir: 排序方式 1. desc:降序 2. asc:升序
|
81
|
+
:type sort_dir: str
|
82
|
+
:param sort_key: 排序字段
|
83
|
+
:type sort_key: str
|
84
|
+
:param template_id: 模板ID
|
85
|
+
:type template_id: str
|
86
|
+
:param template_name: 模板名称
|
87
|
+
:type template_name: str
|
88
|
+
:param template_type: 模板类型 1. VERIFY_CODE_TYPE: 验证码类 2. PROMOTION_TYPE: 推广类 3. NOTIFY_TYPE: 通知类
|
89
|
+
:type template_type: str
|
90
|
+
"""
|
91
|
+
|
92
|
+
|
93
|
+
|
94
|
+
self._app_key = None
|
95
|
+
self._app_name = None
|
96
|
+
self._start_time = None
|
97
|
+
self._end_time = None
|
98
|
+
self._limit = None
|
99
|
+
self._offset = None
|
100
|
+
self._flow_status = None
|
101
|
+
self._has_variable = None
|
102
|
+
self._region = None
|
103
|
+
self._sign_name = None
|
104
|
+
self._sort_dir = None
|
105
|
+
self._sort_key = None
|
106
|
+
self._template_id = None
|
107
|
+
self._template_name = None
|
108
|
+
self._template_type = None
|
109
|
+
self.discriminator = None
|
110
|
+
|
111
|
+
if app_key is not None:
|
112
|
+
self.app_key = app_key
|
113
|
+
if app_name is not None:
|
114
|
+
self.app_name = app_name
|
115
|
+
if start_time is not None:
|
116
|
+
self.start_time = start_time
|
117
|
+
if end_time is not None:
|
118
|
+
self.end_time = end_time
|
119
|
+
if limit is not None:
|
120
|
+
self.limit = limit
|
121
|
+
if offset is not None:
|
122
|
+
self.offset = offset
|
123
|
+
if flow_status is not None:
|
124
|
+
self.flow_status = flow_status
|
125
|
+
if has_variable is not None:
|
126
|
+
self.has_variable = has_variable
|
127
|
+
if region is not None:
|
128
|
+
self.region = region
|
129
|
+
if sign_name is not None:
|
130
|
+
self.sign_name = sign_name
|
131
|
+
if sort_dir is not None:
|
132
|
+
self.sort_dir = sort_dir
|
133
|
+
if sort_key is not None:
|
134
|
+
self.sort_key = sort_key
|
135
|
+
if template_id is not None:
|
136
|
+
self.template_id = template_id
|
137
|
+
if template_name is not None:
|
138
|
+
self.template_name = template_name
|
139
|
+
if template_type is not None:
|
140
|
+
self.template_type = template_type
|
141
|
+
|
142
|
+
@property
|
143
|
+
def app_key(self):
|
144
|
+
r"""Gets the app_key of this ListTemplateDetailsRequest.
|
145
|
+
|
146
|
+
应用key
|
147
|
+
|
148
|
+
:return: The app_key of this ListTemplateDetailsRequest.
|
149
|
+
:rtype: str
|
150
|
+
"""
|
151
|
+
return self._app_key
|
152
|
+
|
153
|
+
@app_key.setter
|
154
|
+
def app_key(self, app_key):
|
155
|
+
r"""Sets the app_key of this ListTemplateDetailsRequest.
|
156
|
+
|
157
|
+
应用key
|
158
|
+
|
159
|
+
:param app_key: The app_key of this ListTemplateDetailsRequest.
|
160
|
+
:type app_key: str
|
161
|
+
"""
|
162
|
+
self._app_key = app_key
|
163
|
+
|
164
|
+
@property
|
165
|
+
def app_name(self):
|
166
|
+
r"""Gets the app_name of this ListTemplateDetailsRequest.
|
167
|
+
|
168
|
+
应用名称
|
169
|
+
|
170
|
+
:return: The app_name of this ListTemplateDetailsRequest.
|
171
|
+
:rtype: str
|
172
|
+
"""
|
173
|
+
return self._app_name
|
174
|
+
|
175
|
+
@app_name.setter
|
176
|
+
def app_name(self, app_name):
|
177
|
+
r"""Sets the app_name of this ListTemplateDetailsRequest.
|
178
|
+
|
179
|
+
应用名称
|
180
|
+
|
181
|
+
:param app_name: The app_name of this ListTemplateDetailsRequest.
|
182
|
+
:type app_name: str
|
183
|
+
"""
|
184
|
+
self._app_name = app_name
|
185
|
+
|
186
|
+
@property
|
187
|
+
def start_time(self):
|
188
|
+
r"""Gets the start_time of this ListTemplateDetailsRequest.
|
189
|
+
|
190
|
+
开始时间
|
191
|
+
|
192
|
+
:return: The start_time of this ListTemplateDetailsRequest.
|
193
|
+
:rtype: str
|
194
|
+
"""
|
195
|
+
return self._start_time
|
196
|
+
|
197
|
+
@start_time.setter
|
198
|
+
def start_time(self, start_time):
|
199
|
+
r"""Sets the start_time of this ListTemplateDetailsRequest.
|
200
|
+
|
201
|
+
开始时间
|
202
|
+
|
203
|
+
:param start_time: The start_time of this ListTemplateDetailsRequest.
|
204
|
+
:type start_time: str
|
205
|
+
"""
|
206
|
+
self._start_time = start_time
|
207
|
+
|
208
|
+
@property
|
209
|
+
def end_time(self):
|
210
|
+
r"""Gets the end_time of this ListTemplateDetailsRequest.
|
211
|
+
|
212
|
+
结束时间
|
213
|
+
|
214
|
+
:return: The end_time of this ListTemplateDetailsRequest.
|
215
|
+
:rtype: str
|
216
|
+
"""
|
217
|
+
return self._end_time
|
218
|
+
|
219
|
+
@end_time.setter
|
220
|
+
def end_time(self, end_time):
|
221
|
+
r"""Sets the end_time of this ListTemplateDetailsRequest.
|
222
|
+
|
223
|
+
结束时间
|
224
|
+
|
225
|
+
:param end_time: The end_time of this ListTemplateDetailsRequest.
|
226
|
+
:type end_time: str
|
227
|
+
"""
|
228
|
+
self._end_time = end_time
|
229
|
+
|
230
|
+
@property
|
231
|
+
def limit(self):
|
232
|
+
r"""Gets the limit of this ListTemplateDetailsRequest.
|
233
|
+
|
234
|
+
数量
|
235
|
+
|
236
|
+
:return: The limit of this ListTemplateDetailsRequest.
|
237
|
+
:rtype: int
|
238
|
+
"""
|
239
|
+
return self._limit
|
240
|
+
|
241
|
+
@limit.setter
|
242
|
+
def limit(self, limit):
|
243
|
+
r"""Sets the limit of this ListTemplateDetailsRequest.
|
244
|
+
|
245
|
+
数量
|
246
|
+
|
247
|
+
:param limit: The limit of this ListTemplateDetailsRequest.
|
248
|
+
:type limit: int
|
249
|
+
"""
|
250
|
+
self._limit = limit
|
251
|
+
|
252
|
+
@property
|
253
|
+
def offset(self):
|
254
|
+
r"""Gets the offset of this ListTemplateDetailsRequest.
|
255
|
+
|
256
|
+
偏移量
|
257
|
+
|
258
|
+
:return: The offset of this ListTemplateDetailsRequest.
|
259
|
+
:rtype: int
|
260
|
+
"""
|
261
|
+
return self._offset
|
262
|
+
|
263
|
+
@offset.setter
|
264
|
+
def offset(self, offset):
|
265
|
+
r"""Sets the offset of this ListTemplateDetailsRequest.
|
266
|
+
|
267
|
+
偏移量
|
268
|
+
|
269
|
+
:param offset: The offset of this ListTemplateDetailsRequest.
|
270
|
+
:type offset: int
|
271
|
+
"""
|
272
|
+
self._offset = offset
|
273
|
+
|
274
|
+
@property
|
275
|
+
def flow_status(self):
|
276
|
+
r"""Gets the flow_status of this ListTemplateDetailsRequest.
|
277
|
+
|
278
|
+
流程状态 1. Adopted: 通过 2. Reviewing: 审核中 3. Reject: 拒绝
|
279
|
+
|
280
|
+
:return: The flow_status of this ListTemplateDetailsRequest.
|
281
|
+
:rtype: str
|
282
|
+
"""
|
283
|
+
return self._flow_status
|
284
|
+
|
285
|
+
@flow_status.setter
|
286
|
+
def flow_status(self, flow_status):
|
287
|
+
r"""Sets the flow_status of this ListTemplateDetailsRequest.
|
288
|
+
|
289
|
+
流程状态 1. Adopted: 通过 2. Reviewing: 审核中 3. Reject: 拒绝
|
290
|
+
|
291
|
+
:param flow_status: The flow_status of this ListTemplateDetailsRequest.
|
292
|
+
:type flow_status: str
|
293
|
+
"""
|
294
|
+
self._flow_status = flow_status
|
295
|
+
|
296
|
+
@property
|
297
|
+
def has_variable(self):
|
298
|
+
r"""Gets the has_variable of this ListTemplateDetailsRequest.
|
299
|
+
|
300
|
+
是否存在变量
|
301
|
+
|
302
|
+
:return: The has_variable of this ListTemplateDetailsRequest.
|
303
|
+
:rtype: str
|
304
|
+
"""
|
305
|
+
return self._has_variable
|
306
|
+
|
307
|
+
@has_variable.setter
|
308
|
+
def has_variable(self, has_variable):
|
309
|
+
r"""Sets the has_variable of this ListTemplateDetailsRequest.
|
310
|
+
|
311
|
+
是否存在变量
|
312
|
+
|
313
|
+
:param has_variable: The has_variable of this ListTemplateDetailsRequest.
|
314
|
+
:type has_variable: str
|
315
|
+
"""
|
316
|
+
self._has_variable = has_variable
|
317
|
+
|
318
|
+
@property
|
319
|
+
def region(self):
|
320
|
+
r"""Gets the region of this ListTemplateDetailsRequest.
|
321
|
+
|
322
|
+
地域 1. cn:国内 2. intl:国际
|
323
|
+
|
324
|
+
:return: The region of this ListTemplateDetailsRequest.
|
325
|
+
:rtype: str
|
326
|
+
"""
|
327
|
+
return self._region
|
328
|
+
|
329
|
+
@region.setter
|
330
|
+
def region(self, region):
|
331
|
+
r"""Sets the region of this ListTemplateDetailsRequest.
|
332
|
+
|
333
|
+
地域 1. cn:国内 2. intl:国际
|
334
|
+
|
335
|
+
:param region: The region of this ListTemplateDetailsRequest.
|
336
|
+
:type region: str
|
337
|
+
"""
|
338
|
+
self._region = region
|
339
|
+
|
340
|
+
@property
|
341
|
+
def sign_name(self):
|
342
|
+
r"""Gets the sign_name of this ListTemplateDetailsRequest.
|
343
|
+
|
344
|
+
签名名称
|
345
|
+
|
346
|
+
:return: The sign_name of this ListTemplateDetailsRequest.
|
347
|
+
:rtype: str
|
348
|
+
"""
|
349
|
+
return self._sign_name
|
350
|
+
|
351
|
+
@sign_name.setter
|
352
|
+
def sign_name(self, sign_name):
|
353
|
+
r"""Sets the sign_name of this ListTemplateDetailsRequest.
|
354
|
+
|
355
|
+
签名名称
|
356
|
+
|
357
|
+
:param sign_name: The sign_name of this ListTemplateDetailsRequest.
|
358
|
+
:type sign_name: str
|
359
|
+
"""
|
360
|
+
self._sign_name = sign_name
|
361
|
+
|
362
|
+
@property
|
363
|
+
def sort_dir(self):
|
364
|
+
r"""Gets the sort_dir of this ListTemplateDetailsRequest.
|
365
|
+
|
366
|
+
排序方式 1. desc:降序 2. asc:升序
|
367
|
+
|
368
|
+
:return: The sort_dir of this ListTemplateDetailsRequest.
|
369
|
+
:rtype: str
|
370
|
+
"""
|
371
|
+
return self._sort_dir
|
372
|
+
|
373
|
+
@sort_dir.setter
|
374
|
+
def sort_dir(self, sort_dir):
|
375
|
+
r"""Sets the sort_dir of this ListTemplateDetailsRequest.
|
376
|
+
|
377
|
+
排序方式 1. desc:降序 2. asc:升序
|
378
|
+
|
379
|
+
:param sort_dir: The sort_dir of this ListTemplateDetailsRequest.
|
380
|
+
:type sort_dir: str
|
381
|
+
"""
|
382
|
+
self._sort_dir = sort_dir
|
383
|
+
|
384
|
+
@property
|
385
|
+
def sort_key(self):
|
386
|
+
r"""Gets the sort_key of this ListTemplateDetailsRequest.
|
387
|
+
|
388
|
+
排序字段
|
389
|
+
|
390
|
+
:return: The sort_key of this ListTemplateDetailsRequest.
|
391
|
+
:rtype: str
|
392
|
+
"""
|
393
|
+
return self._sort_key
|
394
|
+
|
395
|
+
@sort_key.setter
|
396
|
+
def sort_key(self, sort_key):
|
397
|
+
r"""Sets the sort_key of this ListTemplateDetailsRequest.
|
398
|
+
|
399
|
+
排序字段
|
400
|
+
|
401
|
+
:param sort_key: The sort_key of this ListTemplateDetailsRequest.
|
402
|
+
:type sort_key: str
|
403
|
+
"""
|
404
|
+
self._sort_key = sort_key
|
405
|
+
|
406
|
+
@property
|
407
|
+
def template_id(self):
|
408
|
+
r"""Gets the template_id of this ListTemplateDetailsRequest.
|
409
|
+
|
410
|
+
模板ID
|
411
|
+
|
412
|
+
:return: The template_id of this ListTemplateDetailsRequest.
|
413
|
+
:rtype: str
|
414
|
+
"""
|
415
|
+
return self._template_id
|
416
|
+
|
417
|
+
@template_id.setter
|
418
|
+
def template_id(self, template_id):
|
419
|
+
r"""Sets the template_id of this ListTemplateDetailsRequest.
|
420
|
+
|
421
|
+
模板ID
|
422
|
+
|
423
|
+
:param template_id: The template_id of this ListTemplateDetailsRequest.
|
424
|
+
:type template_id: str
|
425
|
+
"""
|
426
|
+
self._template_id = template_id
|
427
|
+
|
428
|
+
@property
|
429
|
+
def template_name(self):
|
430
|
+
r"""Gets the template_name of this ListTemplateDetailsRequest.
|
431
|
+
|
432
|
+
模板名称
|
433
|
+
|
434
|
+
:return: The template_name of this ListTemplateDetailsRequest.
|
435
|
+
:rtype: str
|
436
|
+
"""
|
437
|
+
return self._template_name
|
438
|
+
|
439
|
+
@template_name.setter
|
440
|
+
def template_name(self, template_name):
|
441
|
+
r"""Sets the template_name of this ListTemplateDetailsRequest.
|
442
|
+
|
443
|
+
模板名称
|
444
|
+
|
445
|
+
:param template_name: The template_name of this ListTemplateDetailsRequest.
|
446
|
+
:type template_name: str
|
447
|
+
"""
|
448
|
+
self._template_name = template_name
|
449
|
+
|
450
|
+
@property
|
451
|
+
def template_type(self):
|
452
|
+
r"""Gets the template_type of this ListTemplateDetailsRequest.
|
453
|
+
|
454
|
+
模板类型 1. VERIFY_CODE_TYPE: 验证码类 2. PROMOTION_TYPE: 推广类 3. NOTIFY_TYPE: 通知类
|
455
|
+
|
456
|
+
:return: The template_type of this ListTemplateDetailsRequest.
|
457
|
+
:rtype: str
|
458
|
+
"""
|
459
|
+
return self._template_type
|
460
|
+
|
461
|
+
@template_type.setter
|
462
|
+
def template_type(self, template_type):
|
463
|
+
r"""Sets the template_type of this ListTemplateDetailsRequest.
|
464
|
+
|
465
|
+
模板类型 1. VERIFY_CODE_TYPE: 验证码类 2. PROMOTION_TYPE: 推广类 3. NOTIFY_TYPE: 通知类
|
466
|
+
|
467
|
+
:param template_type: The template_type of this ListTemplateDetailsRequest.
|
468
|
+
:type template_type: str
|
469
|
+
"""
|
470
|
+
self._template_type = template_type
|
471
|
+
|
472
|
+
def to_dict(self):
|
473
|
+
"""Returns the model properties as a dict"""
|
474
|
+
result = {}
|
475
|
+
|
476
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
477
|
+
value = getattr(self, attr)
|
478
|
+
if isinstance(value, list):
|
479
|
+
result[attr] = list(map(
|
480
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
481
|
+
value
|
482
|
+
))
|
483
|
+
elif hasattr(value, "to_dict"):
|
484
|
+
result[attr] = value.to_dict()
|
485
|
+
elif isinstance(value, dict):
|
486
|
+
result[attr] = dict(map(
|
487
|
+
lambda item: (item[0], item[1].to_dict())
|
488
|
+
if hasattr(item[1], "to_dict") else item,
|
489
|
+
value.items()
|
490
|
+
))
|
491
|
+
else:
|
492
|
+
if attr in self.sensitive_list:
|
493
|
+
result[attr] = "****"
|
494
|
+
else:
|
495
|
+
result[attr] = value
|
496
|
+
|
497
|
+
return result
|
498
|
+
|
499
|
+
def to_str(self):
|
500
|
+
"""Returns the string representation of the model"""
|
501
|
+
import simplejson as json
|
502
|
+
if six.PY2:
|
503
|
+
import sys
|
504
|
+
reload(sys)
|
505
|
+
sys.setdefaultencoding("utf-8")
|
506
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
507
|
+
|
508
|
+
def __repr__(self):
|
509
|
+
"""For `print`"""
|
510
|
+
return self.to_str()
|
511
|
+
|
512
|
+
def __eq__(self, other):
|
513
|
+
"""Returns true if both objects are equal"""
|
514
|
+
if not isinstance(other, ListTemplateDetailsRequest):
|
515
|
+
return False
|
516
|
+
|
517
|
+
return self.__dict__ == other.__dict__
|
518
|
+
|
519
|
+
def __ne__(self, other):
|
520
|
+
"""Returns true if both objects are not equal"""
|
521
|
+
return not self == other
|