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