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.
Files changed (64) hide show
  1. huaweicloudsdkmsgsms/__init__.py +0 -0
  2. huaweicloudsdkmsgsms/v2/__init__.py +60 -0
  3. huaweicloudsdkmsgsms/v2/model/__init__.py +57 -0
  4. huaweicloudsdkmsgsms/v2/model/api_template_variable.py +289 -0
  5. huaweicloudsdkmsgsms/v2/model/create_app_request.py +111 -0
  6. huaweicloudsdkmsgsms/v2/model/create_app_response.py +203 -0
  7. huaweicloudsdkmsgsms/v2/model/create_signature_request.py +111 -0
  8. huaweicloudsdkmsgsms/v2/model/create_signature_response.py +174 -0
  9. huaweicloudsdkmsgsms/v2/model/create_template_request.py +111 -0
  10. huaweicloudsdkmsgsms/v2/model/create_template_response.py +145 -0
  11. huaweicloudsdkmsgsms/v2/model/delete_signature_request.py +114 -0
  12. huaweicloudsdkmsgsms/v2/model/delete_signature_response.py +85 -0
  13. huaweicloudsdkmsgsms/v2/model/delete_template_request.py +114 -0
  14. huaweicloudsdkmsgsms/v2/model/delete_template_response.py +85 -0
  15. huaweicloudsdkmsgsms/v2/model/enable_signature_request.py +114 -0
  16. huaweicloudsdkmsgsms/v2/model/enable_signature_response.py +85 -0
  17. huaweicloudsdkmsgsms/v2/model/list_app_details_request.py +347 -0
  18. huaweicloudsdkmsgsms/v2/model/list_app_details_response.py +145 -0
  19. huaweicloudsdkmsgsms/v2/model/list_send_country_details_request.py +144 -0
  20. huaweicloudsdkmsgsms/v2/model/list_send_country_details_response.py +112 -0
  21. huaweicloudsdkmsgsms/v2/model/list_signature_details_request.py +434 -0
  22. huaweicloudsdkmsgsms/v2/model/list_signature_details_response.py +145 -0
  23. huaweicloudsdkmsgsms/v2/model/list_template_details_request.py +521 -0
  24. huaweicloudsdkmsgsms/v2/model/list_template_details_response.py +145 -0
  25. huaweicloudsdkmsgsms/v2/model/list_template_varilable_details_request.py +114 -0
  26. huaweicloudsdkmsgsms/v2/model/list_template_varilable_details_response.py +145 -0
  27. huaweicloudsdkmsgsms/v2/model/show_app_count_request.py +114 -0
  28. huaweicloudsdkmsgsms/v2/model/show_app_count_response.py +145 -0
  29. huaweicloudsdkmsgsms/v2/model/show_app_request.py +114 -0
  30. huaweicloudsdkmsgsms/v2/model/show_app_response.py +721 -0
  31. huaweicloudsdkmsgsms/v2/model/show_signature_file_request.py +114 -0
  32. huaweicloudsdkmsgsms/v2/model/show_signature_file_response.py +348 -0
  33. huaweicloudsdkmsgsms/v2/model/show_signature_request.py +114 -0
  34. huaweicloudsdkmsgsms/v2/model/show_signature_response.py +837 -0
  35. huaweicloudsdkmsgsms/v2/model/show_template_request.py +114 -0
  36. huaweicloudsdkmsgsms/v2/model/show_template_response.py +953 -0
  37. huaweicloudsdkmsgsms/v2/model/sms_app_add_req.py +287 -0
  38. huaweicloudsdkmsgsms/v2/model/sms_app_query_resp.py +720 -0
  39. huaweicloudsdkmsgsms/v2/model/sms_app_update_req.py +258 -0
  40. huaweicloudsdkmsgsms/v2/model/sms_country_resp.py +173 -0
  41. huaweicloudsdkmsgsms/v2/model/sms_signature_req.py +371 -0
  42. huaweicloudsdkmsgsms/v2/model/sms_signature_resp.py +836 -0
  43. huaweicloudsdkmsgsms/v2/model/sms_template_req.py +429 -0
  44. huaweicloudsdkmsgsms/v2/model/sms_template_resp.py +952 -0
  45. huaweicloudsdkmsgsms/v2/model/sms_template_variable_attr_req.py +171 -0
  46. huaweicloudsdkmsgsms/v2/model/tenant_basic.py +173 -0
  47. huaweicloudsdkmsgsms/v2/model/update_app_request.py +139 -0
  48. huaweicloudsdkmsgsms/v2/model/update_app_response.py +174 -0
  49. huaweicloudsdkmsgsms/v2/model/update_signature_request.py +139 -0
  50. huaweicloudsdkmsgsms/v2/model/update_signature_response.py +174 -0
  51. huaweicloudsdkmsgsms/v2/model/update_template_request.py +139 -0
  52. huaweicloudsdkmsgsms/v2/model/update_template_response.py +145 -0
  53. huaweicloudsdkmsgsms/v2/model/upload_signature_file_request.py +140 -0
  54. huaweicloudsdkmsgsms/v2/model/upload_signature_file_request_body.py +114 -0
  55. huaweicloudsdkmsgsms/v2/model/upload_signature_file_response.py +116 -0
  56. huaweicloudsdkmsgsms/v2/msgsms_async_client.py +1461 -0
  57. huaweicloudsdkmsgsms/v2/msgsms_client.py +1458 -0
  58. huaweicloudsdkmsgsms/v2/region/__init__.py +0 -0
  59. huaweicloudsdkmsgsms/v2/region/msgsms_region.py +34 -0
  60. huaweicloudsdkmsgsms-3.1.160.dist-info/LICENSE +13 -0
  61. huaweicloudsdkmsgsms-3.1.160.dist-info/METADATA +26 -0
  62. huaweicloudsdkmsgsms-3.1.160.dist-info/RECORD +64 -0
  63. huaweicloudsdkmsgsms-3.1.160.dist-info/WHEEL +5 -0
  64. huaweicloudsdkmsgsms-3.1.160.dist-info/top_level.txt +1 -0
@@ -0,0 +1,429 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class SmsTemplateReq:
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
+ 'brackets': 'str',
22
+ 'region': 'str',
23
+ 'send_country': 'list[int]',
24
+ 'sign_id': 'str',
25
+ 'template_content': 'str',
26
+ 'template_desc': 'str',
27
+ 'template_name': 'str',
28
+ 'template_type': 'str',
29
+ 'universal_template': 'int',
30
+ 'variable_attributes': 'list[SmsTemplateVariableAttrReq]',
31
+ 'flow_status': 'str'
32
+ }
33
+
34
+ attribute_map = {
35
+ 'app_id': 'app_id',
36
+ 'brackets': 'brackets',
37
+ 'region': 'region',
38
+ 'send_country': 'send_country',
39
+ 'sign_id': 'sign_id',
40
+ 'template_content': 'template_content',
41
+ 'template_desc': 'template_desc',
42
+ 'template_name': 'template_name',
43
+ 'template_type': 'template_type',
44
+ 'universal_template': 'universal_template',
45
+ 'variable_attributes': 'variable_attributes',
46
+ 'flow_status': 'flow_status'
47
+ }
48
+
49
+ def __init__(self, app_id=None, brackets=None, region=None, send_country=None, sign_id=None, template_content=None, template_desc=None, template_name=None, template_type=None, universal_template=None, variable_attributes=None, flow_status=None):
50
+ r"""SmsTemplateReq
51
+
52
+ The model defined in huaweicloud sdk
53
+
54
+ :param app_id: 应用主键ID
55
+ :type app_id: str
56
+ :param brackets: 中括号类型。支持枚举值: 1. CN: 中文类型 2. GB: 英文类型
57
+ :type brackets: str
58
+ :param region: 地域 1. cn:国内 2. intl:
59
+ :type region: str
60
+ :param send_country: 发送国家id列表,只有地域为国际时,该字段有效
61
+ :type send_country: list[int]
62
+ :param sign_id: 签名主键ID,只有地域为国内时,该字段有效
63
+ :type sign_id: str
64
+ :param template_content: 模板内容
65
+ :type template_content: str
66
+ :param template_desc: 模板描述
67
+ :type template_desc: str
68
+ :param template_name: 模板名称
69
+ :type template_name: str
70
+ :param template_type: 模板类型。只有地域为国内时,该字段有效。支持枚举值: 1. VERIFY_CODE_TYPE: 验证码类 2. PROMOTION_TYPE: 推广类 3. NOTIFY_TYPE: 通知类
71
+ :type template_type: str
72
+ :param universal_template: 是否为通用模板 1. 0: 非通用模板 2. 1: 通用模板
73
+ :type universal_template: int
74
+ :param variable_attributes: 模板参数
75
+ :type variable_attributes: list[:class:`huaweicloudsdkmsgsms.v2.SmsTemplateVariableAttrReq`]
76
+ :param flow_status: 流程状态 1. Pending: 待提交 2. Reviewing: 待审核 3. Disable:停用
77
+ :type flow_status: str
78
+ """
79
+
80
+
81
+
82
+ self._app_id = None
83
+ self._brackets = None
84
+ self._region = None
85
+ self._send_country = None
86
+ self._sign_id = None
87
+ self._template_content = None
88
+ self._template_desc = None
89
+ self._template_name = None
90
+ self._template_type = None
91
+ self._universal_template = None
92
+ self._variable_attributes = None
93
+ self._flow_status = None
94
+ self.discriminator = None
95
+
96
+ self.app_id = app_id
97
+ if brackets is not None:
98
+ self.brackets = brackets
99
+ self.region = region
100
+ if send_country is not None:
101
+ self.send_country = send_country
102
+ if sign_id is not None:
103
+ self.sign_id = sign_id
104
+ self.template_content = template_content
105
+ if template_desc is not None:
106
+ self.template_desc = template_desc
107
+ self.template_name = template_name
108
+ self.template_type = template_type
109
+ if universal_template is not None:
110
+ self.universal_template = universal_template
111
+ if variable_attributes is not None:
112
+ self.variable_attributes = variable_attributes
113
+ if flow_status is not None:
114
+ self.flow_status = flow_status
115
+
116
+ @property
117
+ def app_id(self):
118
+ r"""Gets the app_id of this SmsTemplateReq.
119
+
120
+ 应用主键ID
121
+
122
+ :return: The app_id of this SmsTemplateReq.
123
+ :rtype: str
124
+ """
125
+ return self._app_id
126
+
127
+ @app_id.setter
128
+ def app_id(self, app_id):
129
+ r"""Sets the app_id of this SmsTemplateReq.
130
+
131
+ 应用主键ID
132
+
133
+ :param app_id: The app_id of this SmsTemplateReq.
134
+ :type app_id: str
135
+ """
136
+ self._app_id = app_id
137
+
138
+ @property
139
+ def brackets(self):
140
+ r"""Gets the brackets of this SmsTemplateReq.
141
+
142
+ 中括号类型。支持枚举值: 1. CN: 中文类型 2. GB: 英文类型
143
+
144
+ :return: The brackets of this SmsTemplateReq.
145
+ :rtype: str
146
+ """
147
+ return self._brackets
148
+
149
+ @brackets.setter
150
+ def brackets(self, brackets):
151
+ r"""Sets the brackets of this SmsTemplateReq.
152
+
153
+ 中括号类型。支持枚举值: 1. CN: 中文类型 2. GB: 英文类型
154
+
155
+ :param brackets: The brackets of this SmsTemplateReq.
156
+ :type brackets: str
157
+ """
158
+ self._brackets = brackets
159
+
160
+ @property
161
+ def region(self):
162
+ r"""Gets the region of this SmsTemplateReq.
163
+
164
+ 地域 1. cn:国内 2. intl:
165
+
166
+ :return: The region of this SmsTemplateReq.
167
+ :rtype: str
168
+ """
169
+ return self._region
170
+
171
+ @region.setter
172
+ def region(self, region):
173
+ r"""Sets the region of this SmsTemplateReq.
174
+
175
+ 地域 1. cn:国内 2. intl:
176
+
177
+ :param region: The region of this SmsTemplateReq.
178
+ :type region: str
179
+ """
180
+ self._region = region
181
+
182
+ @property
183
+ def send_country(self):
184
+ r"""Gets the send_country of this SmsTemplateReq.
185
+
186
+ 发送国家id列表,只有地域为国际时,该字段有效
187
+
188
+ :return: The send_country of this SmsTemplateReq.
189
+ :rtype: list[int]
190
+ """
191
+ return self._send_country
192
+
193
+ @send_country.setter
194
+ def send_country(self, send_country):
195
+ r"""Sets the send_country of this SmsTemplateReq.
196
+
197
+ 发送国家id列表,只有地域为国际时,该字段有效
198
+
199
+ :param send_country: The send_country of this SmsTemplateReq.
200
+ :type send_country: list[int]
201
+ """
202
+ self._send_country = send_country
203
+
204
+ @property
205
+ def sign_id(self):
206
+ r"""Gets the sign_id of this SmsTemplateReq.
207
+
208
+ 签名主键ID,只有地域为国内时,该字段有效
209
+
210
+ :return: The sign_id of this SmsTemplateReq.
211
+ :rtype: str
212
+ """
213
+ return self._sign_id
214
+
215
+ @sign_id.setter
216
+ def sign_id(self, sign_id):
217
+ r"""Sets the sign_id of this SmsTemplateReq.
218
+
219
+ 签名主键ID,只有地域为国内时,该字段有效
220
+
221
+ :param sign_id: The sign_id of this SmsTemplateReq.
222
+ :type sign_id: str
223
+ """
224
+ self._sign_id = sign_id
225
+
226
+ @property
227
+ def template_content(self):
228
+ r"""Gets the template_content of this SmsTemplateReq.
229
+
230
+ 模板内容
231
+
232
+ :return: The template_content of this SmsTemplateReq.
233
+ :rtype: str
234
+ """
235
+ return self._template_content
236
+
237
+ @template_content.setter
238
+ def template_content(self, template_content):
239
+ r"""Sets the template_content of this SmsTemplateReq.
240
+
241
+ 模板内容
242
+
243
+ :param template_content: The template_content of this SmsTemplateReq.
244
+ :type template_content: str
245
+ """
246
+ self._template_content = template_content
247
+
248
+ @property
249
+ def template_desc(self):
250
+ r"""Gets the template_desc of this SmsTemplateReq.
251
+
252
+ 模板描述
253
+
254
+ :return: The template_desc of this SmsTemplateReq.
255
+ :rtype: str
256
+ """
257
+ return self._template_desc
258
+
259
+ @template_desc.setter
260
+ def template_desc(self, template_desc):
261
+ r"""Sets the template_desc of this SmsTemplateReq.
262
+
263
+ 模板描述
264
+
265
+ :param template_desc: The template_desc of this SmsTemplateReq.
266
+ :type template_desc: str
267
+ """
268
+ self._template_desc = template_desc
269
+
270
+ @property
271
+ def template_name(self):
272
+ r"""Gets the template_name of this SmsTemplateReq.
273
+
274
+ 模板名称
275
+
276
+ :return: The template_name of this SmsTemplateReq.
277
+ :rtype: str
278
+ """
279
+ return self._template_name
280
+
281
+ @template_name.setter
282
+ def template_name(self, template_name):
283
+ r"""Sets the template_name of this SmsTemplateReq.
284
+
285
+ 模板名称
286
+
287
+ :param template_name: The template_name of this SmsTemplateReq.
288
+ :type template_name: str
289
+ """
290
+ self._template_name = template_name
291
+
292
+ @property
293
+ def template_type(self):
294
+ r"""Gets the template_type of this SmsTemplateReq.
295
+
296
+ 模板类型。只有地域为国内时,该字段有效。支持枚举值: 1. VERIFY_CODE_TYPE: 验证码类 2. PROMOTION_TYPE: 推广类 3. NOTIFY_TYPE: 通知类
297
+
298
+ :return: The template_type of this SmsTemplateReq.
299
+ :rtype: str
300
+ """
301
+ return self._template_type
302
+
303
+ @template_type.setter
304
+ def template_type(self, template_type):
305
+ r"""Sets the template_type of this SmsTemplateReq.
306
+
307
+ 模板类型。只有地域为国内时,该字段有效。支持枚举值: 1. VERIFY_CODE_TYPE: 验证码类 2. PROMOTION_TYPE: 推广类 3. NOTIFY_TYPE: 通知类
308
+
309
+ :param template_type: The template_type of this SmsTemplateReq.
310
+ :type template_type: str
311
+ """
312
+ self._template_type = template_type
313
+
314
+ @property
315
+ def universal_template(self):
316
+ r"""Gets the universal_template of this SmsTemplateReq.
317
+
318
+ 是否为通用模板 1. 0: 非通用模板 2. 1: 通用模板
319
+
320
+ :return: The universal_template of this SmsTemplateReq.
321
+ :rtype: int
322
+ """
323
+ return self._universal_template
324
+
325
+ @universal_template.setter
326
+ def universal_template(self, universal_template):
327
+ r"""Sets the universal_template of this SmsTemplateReq.
328
+
329
+ 是否为通用模板 1. 0: 非通用模板 2. 1: 通用模板
330
+
331
+ :param universal_template: The universal_template of this SmsTemplateReq.
332
+ :type universal_template: int
333
+ """
334
+ self._universal_template = universal_template
335
+
336
+ @property
337
+ def variable_attributes(self):
338
+ r"""Gets the variable_attributes of this SmsTemplateReq.
339
+
340
+ 模板参数
341
+
342
+ :return: The variable_attributes of this SmsTemplateReq.
343
+ :rtype: list[:class:`huaweicloudsdkmsgsms.v2.SmsTemplateVariableAttrReq`]
344
+ """
345
+ return self._variable_attributes
346
+
347
+ @variable_attributes.setter
348
+ def variable_attributes(self, variable_attributes):
349
+ r"""Sets the variable_attributes of this SmsTemplateReq.
350
+
351
+ 模板参数
352
+
353
+ :param variable_attributes: The variable_attributes of this SmsTemplateReq.
354
+ :type variable_attributes: list[:class:`huaweicloudsdkmsgsms.v2.SmsTemplateVariableAttrReq`]
355
+ """
356
+ self._variable_attributes = variable_attributes
357
+
358
+ @property
359
+ def flow_status(self):
360
+ r"""Gets the flow_status of this SmsTemplateReq.
361
+
362
+ 流程状态 1. Pending: 待提交 2. Reviewing: 待审核 3. Disable:停用
363
+
364
+ :return: The flow_status of this SmsTemplateReq.
365
+ :rtype: str
366
+ """
367
+ return self._flow_status
368
+
369
+ @flow_status.setter
370
+ def flow_status(self, flow_status):
371
+ r"""Sets the flow_status of this SmsTemplateReq.
372
+
373
+ 流程状态 1. Pending: 待提交 2. Reviewing: 待审核 3. Disable:停用
374
+
375
+ :param flow_status: The flow_status of this SmsTemplateReq.
376
+ :type flow_status: str
377
+ """
378
+ self._flow_status = flow_status
379
+
380
+ def to_dict(self):
381
+ """Returns the model properties as a dict"""
382
+ result = {}
383
+
384
+ for attr, _ in six.iteritems(self.openapi_types):
385
+ value = getattr(self, attr)
386
+ if isinstance(value, list):
387
+ result[attr] = list(map(
388
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
389
+ value
390
+ ))
391
+ elif hasattr(value, "to_dict"):
392
+ result[attr] = value.to_dict()
393
+ elif isinstance(value, dict):
394
+ result[attr] = dict(map(
395
+ lambda item: (item[0], item[1].to_dict())
396
+ if hasattr(item[1], "to_dict") else item,
397
+ value.items()
398
+ ))
399
+ else:
400
+ if attr in self.sensitive_list:
401
+ result[attr] = "****"
402
+ else:
403
+ result[attr] = value
404
+
405
+ return result
406
+
407
+ def to_str(self):
408
+ """Returns the string representation of the model"""
409
+ import simplejson as json
410
+ if six.PY2:
411
+ import sys
412
+ reload(sys)
413
+ sys.setdefaultencoding("utf-8")
414
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
415
+
416
+ def __repr__(self):
417
+ """For `print`"""
418
+ return self.to_str()
419
+
420
+ def __eq__(self, other):
421
+ """Returns true if both objects are equal"""
422
+ if not isinstance(other, SmsTemplateReq):
423
+ return False
424
+
425
+ return self.__dict__ == other.__dict__
426
+
427
+ def __ne__(self, other):
428
+ """Returns true if both objects are not equal"""
429
+ return not self == other