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,114 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class ShowSignatureFileRequest:
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
+ 'file_id': 'str'
21
+ }
22
+
23
+ attribute_map = {
24
+ 'file_id': 'file_id'
25
+ }
26
+
27
+ def __init__(self, file_id=None):
28
+ r"""ShowSignatureFileRequest
29
+
30
+ The model defined in huaweicloud sdk
31
+
32
+ :param file_id: 营业执照ID
33
+ :type file_id: str
34
+ """
35
+
36
+
37
+
38
+ self._file_id = None
39
+ self.discriminator = None
40
+
41
+ self.file_id = file_id
42
+
43
+ @property
44
+ def file_id(self):
45
+ r"""Gets the file_id of this ShowSignatureFileRequest.
46
+
47
+ 营业执照ID
48
+
49
+ :return: The file_id of this ShowSignatureFileRequest.
50
+ :rtype: str
51
+ """
52
+ return self._file_id
53
+
54
+ @file_id.setter
55
+ def file_id(self, file_id):
56
+ r"""Sets the file_id of this ShowSignatureFileRequest.
57
+
58
+ 营业执照ID
59
+
60
+ :param file_id: The file_id of this ShowSignatureFileRequest.
61
+ :type file_id: str
62
+ """
63
+ self._file_id = file_id
64
+
65
+ def to_dict(self):
66
+ """Returns the model properties as a dict"""
67
+ result = {}
68
+
69
+ for attr, _ in six.iteritems(self.openapi_types):
70
+ value = getattr(self, attr)
71
+ if isinstance(value, list):
72
+ result[attr] = list(map(
73
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
74
+ value
75
+ ))
76
+ elif hasattr(value, "to_dict"):
77
+ result[attr] = value.to_dict()
78
+ elif isinstance(value, dict):
79
+ result[attr] = dict(map(
80
+ lambda item: (item[0], item[1].to_dict())
81
+ if hasattr(item[1], "to_dict") else item,
82
+ value.items()
83
+ ))
84
+ else:
85
+ if attr in self.sensitive_list:
86
+ result[attr] = "****"
87
+ else:
88
+ result[attr] = value
89
+
90
+ return result
91
+
92
+ def to_str(self):
93
+ """Returns the string representation of the model"""
94
+ import simplejson as json
95
+ if six.PY2:
96
+ import sys
97
+ reload(sys)
98
+ sys.setdefaultencoding("utf-8")
99
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
100
+
101
+ def __repr__(self):
102
+ """For `print`"""
103
+ return self.to_str()
104
+
105
+ def __eq__(self, other):
106
+ """Returns true if both objects are equal"""
107
+ if not isinstance(other, ShowSignatureFileRequest):
108
+ return False
109
+
110
+ return self.__dict__ == other.__dict__
111
+
112
+ def __ne__(self, other):
113
+ """Returns true if both objects are not equal"""
114
+ return not self == other
@@ -0,0 +1,348 @@
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 ShowSignatureFileResponse(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
+ 'file_id': 'str',
22
+ 'file_name': 'str',
23
+ 'file_ref': 'int',
24
+ 'file_size': 'int',
25
+ 'file_type': 'int',
26
+ 'module_type': 'int',
27
+ 'operator': 'str',
28
+ 'file_desc': 'str',
29
+ 'update_time': 'str'
30
+ }
31
+
32
+ attribute_map = {
33
+ 'file_id': 'file_id',
34
+ 'file_name': 'file_name',
35
+ 'file_ref': 'file_ref',
36
+ 'file_size': 'file_size',
37
+ 'file_type': 'file_type',
38
+ 'module_type': 'module_type',
39
+ 'operator': 'operator',
40
+ 'file_desc': 'file_desc',
41
+ 'update_time': 'update_time'
42
+ }
43
+
44
+ def __init__(self, file_id=None, file_name=None, file_ref=None, file_size=None, file_type=None, module_type=None, operator=None, file_desc=None, update_time=None):
45
+ r"""ShowSignatureFileResponse
46
+
47
+ The model defined in huaweicloud sdk
48
+
49
+ :param file_id: 文件ID
50
+ :type file_id: str
51
+ :param file_name: 文件名称
52
+ :type file_name: str
53
+ :param file_ref: 文件引用
54
+ :type file_ref: int
55
+ :param file_size: 文件大小
56
+ :type file_size: int
57
+ :param file_type: 文件类型
58
+ :type file_type: int
59
+ :param module_type: 模块类型
60
+ :type module_type: int
61
+ :param operator: 操作人
62
+ :type operator: str
63
+ :param file_desc: 描述
64
+ :type file_desc: str
65
+ :param update_time: 更新时间
66
+ :type update_time: str
67
+ """
68
+
69
+ super(ShowSignatureFileResponse, self).__init__()
70
+
71
+ self._file_id = None
72
+ self._file_name = None
73
+ self._file_ref = None
74
+ self._file_size = None
75
+ self._file_type = None
76
+ self._module_type = None
77
+ self._operator = None
78
+ self._file_desc = None
79
+ self._update_time = None
80
+ self.discriminator = None
81
+
82
+ if file_id is not None:
83
+ self.file_id = file_id
84
+ if file_name is not None:
85
+ self.file_name = file_name
86
+ if file_ref is not None:
87
+ self.file_ref = file_ref
88
+ if file_size is not None:
89
+ self.file_size = file_size
90
+ if file_type is not None:
91
+ self.file_type = file_type
92
+ if module_type is not None:
93
+ self.module_type = module_type
94
+ if operator is not None:
95
+ self.operator = operator
96
+ if file_desc is not None:
97
+ self.file_desc = file_desc
98
+ if update_time is not None:
99
+ self.update_time = update_time
100
+
101
+ @property
102
+ def file_id(self):
103
+ r"""Gets the file_id of this ShowSignatureFileResponse.
104
+
105
+ 文件ID
106
+
107
+ :return: The file_id of this ShowSignatureFileResponse.
108
+ :rtype: str
109
+ """
110
+ return self._file_id
111
+
112
+ @file_id.setter
113
+ def file_id(self, file_id):
114
+ r"""Sets the file_id of this ShowSignatureFileResponse.
115
+
116
+ 文件ID
117
+
118
+ :param file_id: The file_id of this ShowSignatureFileResponse.
119
+ :type file_id: str
120
+ """
121
+ self._file_id = file_id
122
+
123
+ @property
124
+ def file_name(self):
125
+ r"""Gets the file_name of this ShowSignatureFileResponse.
126
+
127
+ 文件名称
128
+
129
+ :return: The file_name of this ShowSignatureFileResponse.
130
+ :rtype: str
131
+ """
132
+ return self._file_name
133
+
134
+ @file_name.setter
135
+ def file_name(self, file_name):
136
+ r"""Sets the file_name of this ShowSignatureFileResponse.
137
+
138
+ 文件名称
139
+
140
+ :param file_name: The file_name of this ShowSignatureFileResponse.
141
+ :type file_name: str
142
+ """
143
+ self._file_name = file_name
144
+
145
+ @property
146
+ def file_ref(self):
147
+ r"""Gets the file_ref of this ShowSignatureFileResponse.
148
+
149
+ 文件引用
150
+
151
+ :return: The file_ref of this ShowSignatureFileResponse.
152
+ :rtype: int
153
+ """
154
+ return self._file_ref
155
+
156
+ @file_ref.setter
157
+ def file_ref(self, file_ref):
158
+ r"""Sets the file_ref of this ShowSignatureFileResponse.
159
+
160
+ 文件引用
161
+
162
+ :param file_ref: The file_ref of this ShowSignatureFileResponse.
163
+ :type file_ref: int
164
+ """
165
+ self._file_ref = file_ref
166
+
167
+ @property
168
+ def file_size(self):
169
+ r"""Gets the file_size of this ShowSignatureFileResponse.
170
+
171
+ 文件大小
172
+
173
+ :return: The file_size of this ShowSignatureFileResponse.
174
+ :rtype: int
175
+ """
176
+ return self._file_size
177
+
178
+ @file_size.setter
179
+ def file_size(self, file_size):
180
+ r"""Sets the file_size of this ShowSignatureFileResponse.
181
+
182
+ 文件大小
183
+
184
+ :param file_size: The file_size of this ShowSignatureFileResponse.
185
+ :type file_size: int
186
+ """
187
+ self._file_size = file_size
188
+
189
+ @property
190
+ def file_type(self):
191
+ r"""Gets the file_type of this ShowSignatureFileResponse.
192
+
193
+ 文件类型
194
+
195
+ :return: The file_type of this ShowSignatureFileResponse.
196
+ :rtype: int
197
+ """
198
+ return self._file_type
199
+
200
+ @file_type.setter
201
+ def file_type(self, file_type):
202
+ r"""Sets the file_type of this ShowSignatureFileResponse.
203
+
204
+ 文件类型
205
+
206
+ :param file_type: The file_type of this ShowSignatureFileResponse.
207
+ :type file_type: int
208
+ """
209
+ self._file_type = file_type
210
+
211
+ @property
212
+ def module_type(self):
213
+ r"""Gets the module_type of this ShowSignatureFileResponse.
214
+
215
+ 模块类型
216
+
217
+ :return: The module_type of this ShowSignatureFileResponse.
218
+ :rtype: int
219
+ """
220
+ return self._module_type
221
+
222
+ @module_type.setter
223
+ def module_type(self, module_type):
224
+ r"""Sets the module_type of this ShowSignatureFileResponse.
225
+
226
+ 模块类型
227
+
228
+ :param module_type: The module_type of this ShowSignatureFileResponse.
229
+ :type module_type: int
230
+ """
231
+ self._module_type = module_type
232
+
233
+ @property
234
+ def operator(self):
235
+ r"""Gets the operator of this ShowSignatureFileResponse.
236
+
237
+ 操作人
238
+
239
+ :return: The operator of this ShowSignatureFileResponse.
240
+ :rtype: str
241
+ """
242
+ return self._operator
243
+
244
+ @operator.setter
245
+ def operator(self, operator):
246
+ r"""Sets the operator of this ShowSignatureFileResponse.
247
+
248
+ 操作人
249
+
250
+ :param operator: The operator of this ShowSignatureFileResponse.
251
+ :type operator: str
252
+ """
253
+ self._operator = operator
254
+
255
+ @property
256
+ def file_desc(self):
257
+ r"""Gets the file_desc of this ShowSignatureFileResponse.
258
+
259
+ 描述
260
+
261
+ :return: The file_desc of this ShowSignatureFileResponse.
262
+ :rtype: str
263
+ """
264
+ return self._file_desc
265
+
266
+ @file_desc.setter
267
+ def file_desc(self, file_desc):
268
+ r"""Sets the file_desc of this ShowSignatureFileResponse.
269
+
270
+ 描述
271
+
272
+ :param file_desc: The file_desc of this ShowSignatureFileResponse.
273
+ :type file_desc: str
274
+ """
275
+ self._file_desc = file_desc
276
+
277
+ @property
278
+ def update_time(self):
279
+ r"""Gets the update_time of this ShowSignatureFileResponse.
280
+
281
+ 更新时间
282
+
283
+ :return: The update_time of this ShowSignatureFileResponse.
284
+ :rtype: str
285
+ """
286
+ return self._update_time
287
+
288
+ @update_time.setter
289
+ def update_time(self, update_time):
290
+ r"""Sets the update_time of this ShowSignatureFileResponse.
291
+
292
+ 更新时间
293
+
294
+ :param update_time: The update_time of this ShowSignatureFileResponse.
295
+ :type update_time: str
296
+ """
297
+ self._update_time = update_time
298
+
299
+ def to_dict(self):
300
+ """Returns the model properties as a dict"""
301
+ result = {}
302
+
303
+ for attr, _ in six.iteritems(self.openapi_types):
304
+ value = getattr(self, attr)
305
+ if isinstance(value, list):
306
+ result[attr] = list(map(
307
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
308
+ value
309
+ ))
310
+ elif hasattr(value, "to_dict"):
311
+ result[attr] = value.to_dict()
312
+ elif isinstance(value, dict):
313
+ result[attr] = dict(map(
314
+ lambda item: (item[0], item[1].to_dict())
315
+ if hasattr(item[1], "to_dict") else item,
316
+ value.items()
317
+ ))
318
+ else:
319
+ if attr in self.sensitive_list:
320
+ result[attr] = "****"
321
+ else:
322
+ result[attr] = value
323
+
324
+ return result
325
+
326
+ def to_str(self):
327
+ """Returns the string representation of the model"""
328
+ import simplejson as json
329
+ if six.PY2:
330
+ import sys
331
+ reload(sys)
332
+ sys.setdefaultencoding("utf-8")
333
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
334
+
335
+ def __repr__(self):
336
+ """For `print`"""
337
+ return self.to_str()
338
+
339
+ def __eq__(self, other):
340
+ """Returns true if both objects are equal"""
341
+ if not isinstance(other, ShowSignatureFileResponse):
342
+ return False
343
+
344
+ return self.__dict__ == other.__dict__
345
+
346
+ def __ne__(self, other):
347
+ """Returns true if both objects are not equal"""
348
+ return not self == other
@@ -0,0 +1,114 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class ShowSignatureRequest:
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
+ 'id': 'str'
21
+ }
22
+
23
+ attribute_map = {
24
+ 'id': 'id'
25
+ }
26
+
27
+ def __init__(self, id=None):
28
+ r"""ShowSignatureRequest
29
+
30
+ The model defined in huaweicloud sdk
31
+
32
+ :param id: 签名ID
33
+ :type id: str
34
+ """
35
+
36
+
37
+
38
+ self._id = None
39
+ self.discriminator = None
40
+
41
+ self.id = id
42
+
43
+ @property
44
+ def id(self):
45
+ r"""Gets the id of this ShowSignatureRequest.
46
+
47
+ 签名ID
48
+
49
+ :return: The id of this ShowSignatureRequest.
50
+ :rtype: str
51
+ """
52
+ return self._id
53
+
54
+ @id.setter
55
+ def id(self, id):
56
+ r"""Sets the id of this ShowSignatureRequest.
57
+
58
+ 签名ID
59
+
60
+ :param id: The id of this ShowSignatureRequest.
61
+ :type id: str
62
+ """
63
+ self._id = id
64
+
65
+ def to_dict(self):
66
+ """Returns the model properties as a dict"""
67
+ result = {}
68
+
69
+ for attr, _ in six.iteritems(self.openapi_types):
70
+ value = getattr(self, attr)
71
+ if isinstance(value, list):
72
+ result[attr] = list(map(
73
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
74
+ value
75
+ ))
76
+ elif hasattr(value, "to_dict"):
77
+ result[attr] = value.to_dict()
78
+ elif isinstance(value, dict):
79
+ result[attr] = dict(map(
80
+ lambda item: (item[0], item[1].to_dict())
81
+ if hasattr(item[1], "to_dict") else item,
82
+ value.items()
83
+ ))
84
+ else:
85
+ if attr in self.sensitive_list:
86
+ result[attr] = "****"
87
+ else:
88
+ result[attr] = value
89
+
90
+ return result
91
+
92
+ def to_str(self):
93
+ """Returns the string representation of the model"""
94
+ import simplejson as json
95
+ if six.PY2:
96
+ import sys
97
+ reload(sys)
98
+ sys.setdefaultencoding("utf-8")
99
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
100
+
101
+ def __repr__(self):
102
+ """For `print`"""
103
+ return self.to_str()
104
+
105
+ def __eq__(self, other):
106
+ """Returns true if both objects are equal"""
107
+ if not isinstance(other, ShowSignatureRequest):
108
+ return False
109
+
110
+ return self.__dict__ == other.__dict__
111
+
112
+ def __ne__(self, other):
113
+ """Returns true if both objects are not equal"""
114
+ return not self == other