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,287 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class SmsAppAddReq:
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_name': 'str',
21
+ 'create_sign_and_template': 'bool',
22
+ 'enterprise_project_id': 'str',
23
+ 'enterprise_project_name': 'str',
24
+ 'region': 'str',
25
+ 'up_link_addr': 'str',
26
+ 'show_secret': 'bool'
27
+ }
28
+
29
+ attribute_map = {
30
+ 'app_name': 'app_name',
31
+ 'create_sign_and_template': 'create_sign_and_template',
32
+ 'enterprise_project_id': 'enterprise_project_id',
33
+ 'enterprise_project_name': 'enterprise_project_name',
34
+ 'region': 'region',
35
+ 'up_link_addr': 'up_link_addr',
36
+ 'show_secret': 'show_secret'
37
+ }
38
+
39
+ def __init__(self, app_name=None, create_sign_and_template=None, enterprise_project_id=None, enterprise_project_name=None, region=None, up_link_addr=None, show_secret=None):
40
+ r"""SmsAppAddReq
41
+
42
+ The model defined in huaweicloud sdk
43
+
44
+ :param app_name: 应用名称
45
+ :type app_name: str
46
+ :param create_sign_and_template: 是否创建测试签名和模板。只有地域为国内时,该字段有效 true:是 false:否
47
+ :type create_sign_and_template: bool
48
+ :param enterprise_project_id: 企业项目ID,默认为0
49
+ :type enterprise_project_id: str
50
+ :param enterprise_project_name: 企业项目名称,默认为default
51
+ :type enterprise_project_name: str
52
+ :param region: 地域 1. cn:国内 2. intl:国际
53
+ :type region: str
54
+ :param up_link_addr: 上行回调地址。只有地域为国内时,
55
+ :type up_link_addr: str
56
+ :param show_secret: 是否在返回体中显示app_secret字段
57
+ :type show_secret: bool
58
+ """
59
+
60
+
61
+
62
+ self._app_name = None
63
+ self._create_sign_and_template = None
64
+ self._enterprise_project_id = None
65
+ self._enterprise_project_name = None
66
+ self._region = None
67
+ self._up_link_addr = None
68
+ self._show_secret = None
69
+ self.discriminator = None
70
+
71
+ self.app_name = app_name
72
+ if create_sign_and_template is not None:
73
+ self.create_sign_and_template = create_sign_and_template
74
+ if enterprise_project_id is not None:
75
+ self.enterprise_project_id = enterprise_project_id
76
+ if enterprise_project_name is not None:
77
+ self.enterprise_project_name = enterprise_project_name
78
+ self.region = region
79
+ if up_link_addr is not None:
80
+ self.up_link_addr = up_link_addr
81
+ if show_secret is not None:
82
+ self.show_secret = show_secret
83
+
84
+ @property
85
+ def app_name(self):
86
+ r"""Gets the app_name of this SmsAppAddReq.
87
+
88
+ 应用名称
89
+
90
+ :return: The app_name of this SmsAppAddReq.
91
+ :rtype: str
92
+ """
93
+ return self._app_name
94
+
95
+ @app_name.setter
96
+ def app_name(self, app_name):
97
+ r"""Sets the app_name of this SmsAppAddReq.
98
+
99
+ 应用名称
100
+
101
+ :param app_name: The app_name of this SmsAppAddReq.
102
+ :type app_name: str
103
+ """
104
+ self._app_name = app_name
105
+
106
+ @property
107
+ def create_sign_and_template(self):
108
+ r"""Gets the create_sign_and_template of this SmsAppAddReq.
109
+
110
+ 是否创建测试签名和模板。只有地域为国内时,该字段有效 true:是 false:否
111
+
112
+ :return: The create_sign_and_template of this SmsAppAddReq.
113
+ :rtype: bool
114
+ """
115
+ return self._create_sign_and_template
116
+
117
+ @create_sign_and_template.setter
118
+ def create_sign_and_template(self, create_sign_and_template):
119
+ r"""Sets the create_sign_and_template of this SmsAppAddReq.
120
+
121
+ 是否创建测试签名和模板。只有地域为国内时,该字段有效 true:是 false:否
122
+
123
+ :param create_sign_and_template: The create_sign_and_template of this SmsAppAddReq.
124
+ :type create_sign_and_template: bool
125
+ """
126
+ self._create_sign_and_template = create_sign_and_template
127
+
128
+ @property
129
+ def enterprise_project_id(self):
130
+ r"""Gets the enterprise_project_id of this SmsAppAddReq.
131
+
132
+ 企业项目ID,默认为0
133
+
134
+ :return: The enterprise_project_id of this SmsAppAddReq.
135
+ :rtype: str
136
+ """
137
+ return self._enterprise_project_id
138
+
139
+ @enterprise_project_id.setter
140
+ def enterprise_project_id(self, enterprise_project_id):
141
+ r"""Sets the enterprise_project_id of this SmsAppAddReq.
142
+
143
+ 企业项目ID,默认为0
144
+
145
+ :param enterprise_project_id: The enterprise_project_id of this SmsAppAddReq.
146
+ :type enterprise_project_id: str
147
+ """
148
+ self._enterprise_project_id = enterprise_project_id
149
+
150
+ @property
151
+ def enterprise_project_name(self):
152
+ r"""Gets the enterprise_project_name of this SmsAppAddReq.
153
+
154
+ 企业项目名称,默认为default
155
+
156
+ :return: The enterprise_project_name of this SmsAppAddReq.
157
+ :rtype: str
158
+ """
159
+ return self._enterprise_project_name
160
+
161
+ @enterprise_project_name.setter
162
+ def enterprise_project_name(self, enterprise_project_name):
163
+ r"""Sets the enterprise_project_name of this SmsAppAddReq.
164
+
165
+ 企业项目名称,默认为default
166
+
167
+ :param enterprise_project_name: The enterprise_project_name of this SmsAppAddReq.
168
+ :type enterprise_project_name: str
169
+ """
170
+ self._enterprise_project_name = enterprise_project_name
171
+
172
+ @property
173
+ def region(self):
174
+ r"""Gets the region of this SmsAppAddReq.
175
+
176
+ 地域 1. cn:国内 2. intl:国际
177
+
178
+ :return: The region of this SmsAppAddReq.
179
+ :rtype: str
180
+ """
181
+ return self._region
182
+
183
+ @region.setter
184
+ def region(self, region):
185
+ r"""Sets the region of this SmsAppAddReq.
186
+
187
+ 地域 1. cn:国内 2. intl:国际
188
+
189
+ :param region: The region of this SmsAppAddReq.
190
+ :type region: str
191
+ """
192
+ self._region = region
193
+
194
+ @property
195
+ def up_link_addr(self):
196
+ r"""Gets the up_link_addr of this SmsAppAddReq.
197
+
198
+ 上行回调地址。只有地域为国内时,
199
+
200
+ :return: The up_link_addr of this SmsAppAddReq.
201
+ :rtype: str
202
+ """
203
+ return self._up_link_addr
204
+
205
+ @up_link_addr.setter
206
+ def up_link_addr(self, up_link_addr):
207
+ r"""Sets the up_link_addr of this SmsAppAddReq.
208
+
209
+ 上行回调地址。只有地域为国内时,
210
+
211
+ :param up_link_addr: The up_link_addr of this SmsAppAddReq.
212
+ :type up_link_addr: str
213
+ """
214
+ self._up_link_addr = up_link_addr
215
+
216
+ @property
217
+ def show_secret(self):
218
+ r"""Gets the show_secret of this SmsAppAddReq.
219
+
220
+ 是否在返回体中显示app_secret字段
221
+
222
+ :return: The show_secret of this SmsAppAddReq.
223
+ :rtype: bool
224
+ """
225
+ return self._show_secret
226
+
227
+ @show_secret.setter
228
+ def show_secret(self, show_secret):
229
+ r"""Sets the show_secret of this SmsAppAddReq.
230
+
231
+ 是否在返回体中显示app_secret字段
232
+
233
+ :param show_secret: The show_secret of this SmsAppAddReq.
234
+ :type show_secret: bool
235
+ """
236
+ self._show_secret = show_secret
237
+
238
+ def to_dict(self):
239
+ """Returns the model properties as a dict"""
240
+ result = {}
241
+
242
+ for attr, _ in six.iteritems(self.openapi_types):
243
+ value = getattr(self, attr)
244
+ if isinstance(value, list):
245
+ result[attr] = list(map(
246
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
247
+ value
248
+ ))
249
+ elif hasattr(value, "to_dict"):
250
+ result[attr] = value.to_dict()
251
+ elif isinstance(value, dict):
252
+ result[attr] = dict(map(
253
+ lambda item: (item[0], item[1].to_dict())
254
+ if hasattr(item[1], "to_dict") else item,
255
+ value.items()
256
+ ))
257
+ else:
258
+ if attr in self.sensitive_list:
259
+ result[attr] = "****"
260
+ else:
261
+ result[attr] = value
262
+
263
+ return result
264
+
265
+ def to_str(self):
266
+ """Returns the string representation of the model"""
267
+ import simplejson as json
268
+ if six.PY2:
269
+ import sys
270
+ reload(sys)
271
+ sys.setdefaultencoding("utf-8")
272
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
273
+
274
+ def __repr__(self):
275
+ """For `print`"""
276
+ return self.to_str()
277
+
278
+ def __eq__(self, other):
279
+ """Returns true if both objects are equal"""
280
+ if not isinstance(other, SmsAppAddReq):
281
+ return False
282
+
283
+ return self.__dict__ == other.__dict__
284
+
285
+ def __ne__(self, other):
286
+ """Returns true if both objects are not equal"""
287
+ return not self == other