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,371 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class SmsSignatureReq:
|
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_id': 'str',
|
21
|
+
'apply_desc': 'str',
|
22
|
+
'file_id': 'str',
|
23
|
+
'is_involved_third': 'str',
|
24
|
+
'power_attorney_fileid': 'str',
|
25
|
+
'signature_name': 'str',
|
26
|
+
'signature_source': 'int',
|
27
|
+
'signature_type': 'str',
|
28
|
+
'source_title_content': 'str',
|
29
|
+
'qualification_id': 'str'
|
30
|
+
}
|
31
|
+
|
32
|
+
attribute_map = {
|
33
|
+
'app_id': 'app_id',
|
34
|
+
'apply_desc': 'apply_desc',
|
35
|
+
'file_id': 'file_id',
|
36
|
+
'is_involved_third': 'is_involved_third',
|
37
|
+
'power_attorney_fileid': 'power_attorney_fileid',
|
38
|
+
'signature_name': 'signature_name',
|
39
|
+
'signature_source': 'signature_source',
|
40
|
+
'signature_type': 'signature_type',
|
41
|
+
'source_title_content': 'source_title_content',
|
42
|
+
'qualification_id': 'qualification_id'
|
43
|
+
}
|
44
|
+
|
45
|
+
def __init__(self, app_id=None, apply_desc=None, file_id=None, is_involved_third=None, power_attorney_fileid=None, signature_name=None, signature_source=None, signature_type=None, source_title_content=None, qualification_id=None):
|
46
|
+
r"""SmsSignatureReq
|
47
|
+
|
48
|
+
The model defined in huaweicloud sdk
|
49
|
+
|
50
|
+
:param app_id: 应用主键ID
|
51
|
+
:type app_id: str
|
52
|
+
:param apply_desc: 申请说明
|
53
|
+
:type apply_desc: str
|
54
|
+
:param file_id: 营业执照文件ID
|
55
|
+
:type file_id: str
|
56
|
+
:param is_involved_third: 是否涉及第三方权益 1. Yes: 是 2. No:
|
57
|
+
:type is_involved_third: str
|
58
|
+
:param power_attorney_fileid: 授权委托书文件ID
|
59
|
+
:type power_attorney_fileid: str
|
60
|
+
:param signature_name: 签名名称
|
61
|
+
:type signature_name: str
|
62
|
+
:param signature_source: 签名来源。支持枚举值: 1. 0:企事业单位的全称或简称 2. 1:工信部备案网站的全称或简称 3. 2: APP应用的全称或简称 4. 3:公众号或小程序的全称或简称 5. 4:电商平台店铺名的全称或简称 6. 5:商标名的全称或简称
|
63
|
+
:type signature_source: int
|
64
|
+
:param signature_type: 签名类型。支持枚举值: 1. VERIFY_CODE_TYPE: 验证码类 2. PROMOTION_TYPE: 推广类 3. NOTIFY_TYPE: 通知类
|
65
|
+
:type signature_type: str
|
66
|
+
:param source_title_content: 签名来源标题内容
|
67
|
+
:type source_title_content: str
|
68
|
+
:param qualification_id: 资质ID ,当前考虑存量应用的接口兼容性,代码未做强制校验,但创建签名时请务必携带资质ID,否则会导致资质审核失败
|
69
|
+
:type qualification_id: str
|
70
|
+
"""
|
71
|
+
|
72
|
+
|
73
|
+
|
74
|
+
self._app_id = None
|
75
|
+
self._apply_desc = None
|
76
|
+
self._file_id = None
|
77
|
+
self._is_involved_third = None
|
78
|
+
self._power_attorney_fileid = None
|
79
|
+
self._signature_name = None
|
80
|
+
self._signature_source = None
|
81
|
+
self._signature_type = None
|
82
|
+
self._source_title_content = None
|
83
|
+
self._qualification_id = None
|
84
|
+
self.discriminator = None
|
85
|
+
|
86
|
+
self.app_id = app_id
|
87
|
+
if apply_desc is not None:
|
88
|
+
self.apply_desc = apply_desc
|
89
|
+
if file_id is not None:
|
90
|
+
self.file_id = file_id
|
91
|
+
self.is_involved_third = is_involved_third
|
92
|
+
if power_attorney_fileid is not None:
|
93
|
+
self.power_attorney_fileid = power_attorney_fileid
|
94
|
+
self.signature_name = signature_name
|
95
|
+
self.signature_source = signature_source
|
96
|
+
self.signature_type = signature_type
|
97
|
+
if source_title_content is not None:
|
98
|
+
self.source_title_content = source_title_content
|
99
|
+
if qualification_id is not None:
|
100
|
+
self.qualification_id = qualification_id
|
101
|
+
|
102
|
+
@property
|
103
|
+
def app_id(self):
|
104
|
+
r"""Gets the app_id of this SmsSignatureReq.
|
105
|
+
|
106
|
+
应用主键ID
|
107
|
+
|
108
|
+
:return: The app_id of this SmsSignatureReq.
|
109
|
+
:rtype: str
|
110
|
+
"""
|
111
|
+
return self._app_id
|
112
|
+
|
113
|
+
@app_id.setter
|
114
|
+
def app_id(self, app_id):
|
115
|
+
r"""Sets the app_id of this SmsSignatureReq.
|
116
|
+
|
117
|
+
应用主键ID
|
118
|
+
|
119
|
+
:param app_id: The app_id of this SmsSignatureReq.
|
120
|
+
:type app_id: str
|
121
|
+
"""
|
122
|
+
self._app_id = app_id
|
123
|
+
|
124
|
+
@property
|
125
|
+
def apply_desc(self):
|
126
|
+
r"""Gets the apply_desc of this SmsSignatureReq.
|
127
|
+
|
128
|
+
申请说明
|
129
|
+
|
130
|
+
:return: The apply_desc of this SmsSignatureReq.
|
131
|
+
:rtype: str
|
132
|
+
"""
|
133
|
+
return self._apply_desc
|
134
|
+
|
135
|
+
@apply_desc.setter
|
136
|
+
def apply_desc(self, apply_desc):
|
137
|
+
r"""Sets the apply_desc of this SmsSignatureReq.
|
138
|
+
|
139
|
+
申请说明
|
140
|
+
|
141
|
+
:param apply_desc: The apply_desc of this SmsSignatureReq.
|
142
|
+
:type apply_desc: str
|
143
|
+
"""
|
144
|
+
self._apply_desc = apply_desc
|
145
|
+
|
146
|
+
@property
|
147
|
+
def file_id(self):
|
148
|
+
r"""Gets the file_id of this SmsSignatureReq.
|
149
|
+
|
150
|
+
营业执照文件ID
|
151
|
+
|
152
|
+
:return: The file_id of this SmsSignatureReq.
|
153
|
+
:rtype: str
|
154
|
+
"""
|
155
|
+
return self._file_id
|
156
|
+
|
157
|
+
@file_id.setter
|
158
|
+
def file_id(self, file_id):
|
159
|
+
r"""Sets the file_id of this SmsSignatureReq.
|
160
|
+
|
161
|
+
营业执照文件ID
|
162
|
+
|
163
|
+
:param file_id: The file_id of this SmsSignatureReq.
|
164
|
+
:type file_id: str
|
165
|
+
"""
|
166
|
+
self._file_id = file_id
|
167
|
+
|
168
|
+
@property
|
169
|
+
def is_involved_third(self):
|
170
|
+
r"""Gets the is_involved_third of this SmsSignatureReq.
|
171
|
+
|
172
|
+
是否涉及第三方权益 1. Yes: 是 2. No:
|
173
|
+
|
174
|
+
:return: The is_involved_third of this SmsSignatureReq.
|
175
|
+
:rtype: str
|
176
|
+
"""
|
177
|
+
return self._is_involved_third
|
178
|
+
|
179
|
+
@is_involved_third.setter
|
180
|
+
def is_involved_third(self, is_involved_third):
|
181
|
+
r"""Sets the is_involved_third of this SmsSignatureReq.
|
182
|
+
|
183
|
+
是否涉及第三方权益 1. Yes: 是 2. No:
|
184
|
+
|
185
|
+
:param is_involved_third: The is_involved_third of this SmsSignatureReq.
|
186
|
+
:type is_involved_third: str
|
187
|
+
"""
|
188
|
+
self._is_involved_third = is_involved_third
|
189
|
+
|
190
|
+
@property
|
191
|
+
def power_attorney_fileid(self):
|
192
|
+
r"""Gets the power_attorney_fileid of this SmsSignatureReq.
|
193
|
+
|
194
|
+
授权委托书文件ID
|
195
|
+
|
196
|
+
:return: The power_attorney_fileid of this SmsSignatureReq.
|
197
|
+
:rtype: str
|
198
|
+
"""
|
199
|
+
return self._power_attorney_fileid
|
200
|
+
|
201
|
+
@power_attorney_fileid.setter
|
202
|
+
def power_attorney_fileid(self, power_attorney_fileid):
|
203
|
+
r"""Sets the power_attorney_fileid of this SmsSignatureReq.
|
204
|
+
|
205
|
+
授权委托书文件ID
|
206
|
+
|
207
|
+
:param power_attorney_fileid: The power_attorney_fileid of this SmsSignatureReq.
|
208
|
+
:type power_attorney_fileid: str
|
209
|
+
"""
|
210
|
+
self._power_attorney_fileid = power_attorney_fileid
|
211
|
+
|
212
|
+
@property
|
213
|
+
def signature_name(self):
|
214
|
+
r"""Gets the signature_name of this SmsSignatureReq.
|
215
|
+
|
216
|
+
签名名称
|
217
|
+
|
218
|
+
:return: The signature_name of this SmsSignatureReq.
|
219
|
+
:rtype: str
|
220
|
+
"""
|
221
|
+
return self._signature_name
|
222
|
+
|
223
|
+
@signature_name.setter
|
224
|
+
def signature_name(self, signature_name):
|
225
|
+
r"""Sets the signature_name of this SmsSignatureReq.
|
226
|
+
|
227
|
+
签名名称
|
228
|
+
|
229
|
+
:param signature_name: The signature_name of this SmsSignatureReq.
|
230
|
+
:type signature_name: str
|
231
|
+
"""
|
232
|
+
self._signature_name = signature_name
|
233
|
+
|
234
|
+
@property
|
235
|
+
def signature_source(self):
|
236
|
+
r"""Gets the signature_source of this SmsSignatureReq.
|
237
|
+
|
238
|
+
签名来源。支持枚举值: 1. 0:企事业单位的全称或简称 2. 1:工信部备案网站的全称或简称 3. 2: APP应用的全称或简称 4. 3:公众号或小程序的全称或简称 5. 4:电商平台店铺名的全称或简称 6. 5:商标名的全称或简称
|
239
|
+
|
240
|
+
:return: The signature_source of this SmsSignatureReq.
|
241
|
+
:rtype: int
|
242
|
+
"""
|
243
|
+
return self._signature_source
|
244
|
+
|
245
|
+
@signature_source.setter
|
246
|
+
def signature_source(self, signature_source):
|
247
|
+
r"""Sets the signature_source of this SmsSignatureReq.
|
248
|
+
|
249
|
+
签名来源。支持枚举值: 1. 0:企事业单位的全称或简称 2. 1:工信部备案网站的全称或简称 3. 2: APP应用的全称或简称 4. 3:公众号或小程序的全称或简称 5. 4:电商平台店铺名的全称或简称 6. 5:商标名的全称或简称
|
250
|
+
|
251
|
+
:param signature_source: The signature_source of this SmsSignatureReq.
|
252
|
+
:type signature_source: int
|
253
|
+
"""
|
254
|
+
self._signature_source = signature_source
|
255
|
+
|
256
|
+
@property
|
257
|
+
def signature_type(self):
|
258
|
+
r"""Gets the signature_type of this SmsSignatureReq.
|
259
|
+
|
260
|
+
签名类型。支持枚举值: 1. VERIFY_CODE_TYPE: 验证码类 2. PROMOTION_TYPE: 推广类 3. NOTIFY_TYPE: 通知类
|
261
|
+
|
262
|
+
:return: The signature_type of this SmsSignatureReq.
|
263
|
+
:rtype: str
|
264
|
+
"""
|
265
|
+
return self._signature_type
|
266
|
+
|
267
|
+
@signature_type.setter
|
268
|
+
def signature_type(self, signature_type):
|
269
|
+
r"""Sets the signature_type of this SmsSignatureReq.
|
270
|
+
|
271
|
+
签名类型。支持枚举值: 1. VERIFY_CODE_TYPE: 验证码类 2. PROMOTION_TYPE: 推广类 3. NOTIFY_TYPE: 通知类
|
272
|
+
|
273
|
+
:param signature_type: The signature_type of this SmsSignatureReq.
|
274
|
+
:type signature_type: str
|
275
|
+
"""
|
276
|
+
self._signature_type = signature_type
|
277
|
+
|
278
|
+
@property
|
279
|
+
def source_title_content(self):
|
280
|
+
r"""Gets the source_title_content of this SmsSignatureReq.
|
281
|
+
|
282
|
+
签名来源标题内容
|
283
|
+
|
284
|
+
:return: The source_title_content of this SmsSignatureReq.
|
285
|
+
:rtype: str
|
286
|
+
"""
|
287
|
+
return self._source_title_content
|
288
|
+
|
289
|
+
@source_title_content.setter
|
290
|
+
def source_title_content(self, source_title_content):
|
291
|
+
r"""Sets the source_title_content of this SmsSignatureReq.
|
292
|
+
|
293
|
+
签名来源标题内容
|
294
|
+
|
295
|
+
:param source_title_content: The source_title_content of this SmsSignatureReq.
|
296
|
+
:type source_title_content: str
|
297
|
+
"""
|
298
|
+
self._source_title_content = source_title_content
|
299
|
+
|
300
|
+
@property
|
301
|
+
def qualification_id(self):
|
302
|
+
r"""Gets the qualification_id of this SmsSignatureReq.
|
303
|
+
|
304
|
+
资质ID ,当前考虑存量应用的接口兼容性,代码未做强制校验,但创建签名时请务必携带资质ID,否则会导致资质审核失败
|
305
|
+
|
306
|
+
:return: The qualification_id of this SmsSignatureReq.
|
307
|
+
:rtype: str
|
308
|
+
"""
|
309
|
+
return self._qualification_id
|
310
|
+
|
311
|
+
@qualification_id.setter
|
312
|
+
def qualification_id(self, qualification_id):
|
313
|
+
r"""Sets the qualification_id of this SmsSignatureReq.
|
314
|
+
|
315
|
+
资质ID ,当前考虑存量应用的接口兼容性,代码未做强制校验,但创建签名时请务必携带资质ID,否则会导致资质审核失败
|
316
|
+
|
317
|
+
:param qualification_id: The qualification_id of this SmsSignatureReq.
|
318
|
+
:type qualification_id: str
|
319
|
+
"""
|
320
|
+
self._qualification_id = qualification_id
|
321
|
+
|
322
|
+
def to_dict(self):
|
323
|
+
"""Returns the model properties as a dict"""
|
324
|
+
result = {}
|
325
|
+
|
326
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
327
|
+
value = getattr(self, attr)
|
328
|
+
if isinstance(value, list):
|
329
|
+
result[attr] = list(map(
|
330
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
331
|
+
value
|
332
|
+
))
|
333
|
+
elif hasattr(value, "to_dict"):
|
334
|
+
result[attr] = value.to_dict()
|
335
|
+
elif isinstance(value, dict):
|
336
|
+
result[attr] = dict(map(
|
337
|
+
lambda item: (item[0], item[1].to_dict())
|
338
|
+
if hasattr(item[1], "to_dict") else item,
|
339
|
+
value.items()
|
340
|
+
))
|
341
|
+
else:
|
342
|
+
if attr in self.sensitive_list:
|
343
|
+
result[attr] = "****"
|
344
|
+
else:
|
345
|
+
result[attr] = value
|
346
|
+
|
347
|
+
return result
|
348
|
+
|
349
|
+
def to_str(self):
|
350
|
+
"""Returns the string representation of the model"""
|
351
|
+
import simplejson as json
|
352
|
+
if six.PY2:
|
353
|
+
import sys
|
354
|
+
reload(sys)
|
355
|
+
sys.setdefaultencoding("utf-8")
|
356
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
357
|
+
|
358
|
+
def __repr__(self):
|
359
|
+
"""For `print`"""
|
360
|
+
return self.to_str()
|
361
|
+
|
362
|
+
def __eq__(self, other):
|
363
|
+
"""Returns true if both objects are equal"""
|
364
|
+
if not isinstance(other, SmsSignatureReq):
|
365
|
+
return False
|
366
|
+
|
367
|
+
return self.__dict__ == other.__dict__
|
368
|
+
|
369
|
+
def __ne__(self, other):
|
370
|
+
"""Returns true if both objects are not equal"""
|
371
|
+
return not self == other
|