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,139 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class UpdateSignatureRequest:
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
+ 'body': 'SmsSignatureReq'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'id': 'id',
26
+ 'body': 'body'
27
+ }
28
+
29
+ def __init__(self, id=None, body=None):
30
+ r"""UpdateSignatureRequest
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param id: 签名ID
35
+ :type id: str
36
+ :param body: Body of the UpdateSignatureRequest
37
+ :type body: :class:`huaweicloudsdkmsgsms.v2.SmsSignatureReq`
38
+ """
39
+
40
+
41
+
42
+ self._id = None
43
+ self._body = None
44
+ self.discriminator = None
45
+
46
+ self.id = id
47
+ if body is not None:
48
+ self.body = body
49
+
50
+ @property
51
+ def id(self):
52
+ r"""Gets the id of this UpdateSignatureRequest.
53
+
54
+ 签名ID
55
+
56
+ :return: The id of this UpdateSignatureRequest.
57
+ :rtype: str
58
+ """
59
+ return self._id
60
+
61
+ @id.setter
62
+ def id(self, id):
63
+ r"""Sets the id of this UpdateSignatureRequest.
64
+
65
+ 签名ID
66
+
67
+ :param id: The id of this UpdateSignatureRequest.
68
+ :type id: str
69
+ """
70
+ self._id = id
71
+
72
+ @property
73
+ def body(self):
74
+ r"""Gets the body of this UpdateSignatureRequest.
75
+
76
+ :return: The body of this UpdateSignatureRequest.
77
+ :rtype: :class:`huaweicloudsdkmsgsms.v2.SmsSignatureReq`
78
+ """
79
+ return self._body
80
+
81
+ @body.setter
82
+ def body(self, body):
83
+ r"""Sets the body of this UpdateSignatureRequest.
84
+
85
+ :param body: The body of this UpdateSignatureRequest.
86
+ :type body: :class:`huaweicloudsdkmsgsms.v2.SmsSignatureReq`
87
+ """
88
+ self._body = body
89
+
90
+ def to_dict(self):
91
+ """Returns the model properties as a dict"""
92
+ result = {}
93
+
94
+ for attr, _ in six.iteritems(self.openapi_types):
95
+ value = getattr(self, attr)
96
+ if isinstance(value, list):
97
+ result[attr] = list(map(
98
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
99
+ value
100
+ ))
101
+ elif hasattr(value, "to_dict"):
102
+ result[attr] = value.to_dict()
103
+ elif isinstance(value, dict):
104
+ result[attr] = dict(map(
105
+ lambda item: (item[0], item[1].to_dict())
106
+ if hasattr(item[1], "to_dict") else item,
107
+ value.items()
108
+ ))
109
+ else:
110
+ if attr in self.sensitive_list:
111
+ result[attr] = "****"
112
+ else:
113
+ result[attr] = value
114
+
115
+ return result
116
+
117
+ def to_str(self):
118
+ """Returns the string representation of the model"""
119
+ import simplejson as json
120
+ if six.PY2:
121
+ import sys
122
+ reload(sys)
123
+ sys.setdefaultencoding("utf-8")
124
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
125
+
126
+ def __repr__(self):
127
+ """For `print`"""
128
+ return self.to_str()
129
+
130
+ def __eq__(self, other):
131
+ """Returns true if both objects are equal"""
132
+ if not isinstance(other, UpdateSignatureRequest):
133
+ return False
134
+
135
+ return self.__dict__ == other.__dict__
136
+
137
+ def __ne__(self, other):
138
+ """Returns true if both objects are not equal"""
139
+ return not self == other
@@ -0,0 +1,174 @@
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 UpdateSignatureResponse(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
+ 'id': 'str',
22
+ 'signature_id': 'str',
23
+ 'signature_name': 'str'
24
+ }
25
+
26
+ attribute_map = {
27
+ 'id': 'id',
28
+ 'signature_id': 'signature_id',
29
+ 'signature_name': 'signature_name'
30
+ }
31
+
32
+ def __init__(self, id=None, signature_id=None, signature_name=None):
33
+ r"""UpdateSignatureResponse
34
+
35
+ The model defined in huaweicloud sdk
36
+
37
+ :param id: 签名主键ID
38
+ :type id: str
39
+ :param signature_id: 签名ID
40
+ :type signature_id: str
41
+ :param signature_name: 签名名称
42
+ :type signature_name: str
43
+ """
44
+
45
+ super(UpdateSignatureResponse, self).__init__()
46
+
47
+ self._id = None
48
+ self._signature_id = None
49
+ self._signature_name = None
50
+ self.discriminator = None
51
+
52
+ if id is not None:
53
+ self.id = id
54
+ if signature_id is not None:
55
+ self.signature_id = signature_id
56
+ if signature_name is not None:
57
+ self.signature_name = signature_name
58
+
59
+ @property
60
+ def id(self):
61
+ r"""Gets the id of this UpdateSignatureResponse.
62
+
63
+ 签名主键ID
64
+
65
+ :return: The id of this UpdateSignatureResponse.
66
+ :rtype: str
67
+ """
68
+ return self._id
69
+
70
+ @id.setter
71
+ def id(self, id):
72
+ r"""Sets the id of this UpdateSignatureResponse.
73
+
74
+ 签名主键ID
75
+
76
+ :param id: The id of this UpdateSignatureResponse.
77
+ :type id: str
78
+ """
79
+ self._id = id
80
+
81
+ @property
82
+ def signature_id(self):
83
+ r"""Gets the signature_id of this UpdateSignatureResponse.
84
+
85
+ 签名ID
86
+
87
+ :return: The signature_id of this UpdateSignatureResponse.
88
+ :rtype: str
89
+ """
90
+ return self._signature_id
91
+
92
+ @signature_id.setter
93
+ def signature_id(self, signature_id):
94
+ r"""Sets the signature_id of this UpdateSignatureResponse.
95
+
96
+ 签名ID
97
+
98
+ :param signature_id: The signature_id of this UpdateSignatureResponse.
99
+ :type signature_id: str
100
+ """
101
+ self._signature_id = signature_id
102
+
103
+ @property
104
+ def signature_name(self):
105
+ r"""Gets the signature_name of this UpdateSignatureResponse.
106
+
107
+ 签名名称
108
+
109
+ :return: The signature_name of this UpdateSignatureResponse.
110
+ :rtype: str
111
+ """
112
+ return self._signature_name
113
+
114
+ @signature_name.setter
115
+ def signature_name(self, signature_name):
116
+ r"""Sets the signature_name of this UpdateSignatureResponse.
117
+
118
+ 签名名称
119
+
120
+ :param signature_name: The signature_name of this UpdateSignatureResponse.
121
+ :type signature_name: str
122
+ """
123
+ self._signature_name = signature_name
124
+
125
+ def to_dict(self):
126
+ """Returns the model properties as a dict"""
127
+ result = {}
128
+
129
+ for attr, _ in six.iteritems(self.openapi_types):
130
+ value = getattr(self, attr)
131
+ if isinstance(value, list):
132
+ result[attr] = list(map(
133
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
134
+ value
135
+ ))
136
+ elif hasattr(value, "to_dict"):
137
+ result[attr] = value.to_dict()
138
+ elif isinstance(value, dict):
139
+ result[attr] = dict(map(
140
+ lambda item: (item[0], item[1].to_dict())
141
+ if hasattr(item[1], "to_dict") else item,
142
+ value.items()
143
+ ))
144
+ else:
145
+ if attr in self.sensitive_list:
146
+ result[attr] = "****"
147
+ else:
148
+ result[attr] = value
149
+
150
+ return result
151
+
152
+ def to_str(self):
153
+ """Returns the string representation of the model"""
154
+ import simplejson as json
155
+ if six.PY2:
156
+ import sys
157
+ reload(sys)
158
+ sys.setdefaultencoding("utf-8")
159
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
160
+
161
+ def __repr__(self):
162
+ """For `print`"""
163
+ return self.to_str()
164
+
165
+ def __eq__(self, other):
166
+ """Returns true if both objects are equal"""
167
+ if not isinstance(other, UpdateSignatureResponse):
168
+ return False
169
+
170
+ return self.__dict__ == other.__dict__
171
+
172
+ def __ne__(self, other):
173
+ """Returns true if both objects are not equal"""
174
+ return not self == other
@@ -0,0 +1,139 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class UpdateTemplateRequest:
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
+ 'body': 'SmsTemplateReq'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'id': 'id',
26
+ 'body': 'body'
27
+ }
28
+
29
+ def __init__(self, id=None, body=None):
30
+ r"""UpdateTemplateRequest
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param id: 模板ID
35
+ :type id: str
36
+ :param body: Body of the UpdateTemplateRequest
37
+ :type body: :class:`huaweicloudsdkmsgsms.v2.SmsTemplateReq`
38
+ """
39
+
40
+
41
+
42
+ self._id = None
43
+ self._body = None
44
+ self.discriminator = None
45
+
46
+ self.id = id
47
+ if body is not None:
48
+ self.body = body
49
+
50
+ @property
51
+ def id(self):
52
+ r"""Gets the id of this UpdateTemplateRequest.
53
+
54
+ 模板ID
55
+
56
+ :return: The id of this UpdateTemplateRequest.
57
+ :rtype: str
58
+ """
59
+ return self._id
60
+
61
+ @id.setter
62
+ def id(self, id):
63
+ r"""Sets the id of this UpdateTemplateRequest.
64
+
65
+ 模板ID
66
+
67
+ :param id: The id of this UpdateTemplateRequest.
68
+ :type id: str
69
+ """
70
+ self._id = id
71
+
72
+ @property
73
+ def body(self):
74
+ r"""Gets the body of this UpdateTemplateRequest.
75
+
76
+ :return: The body of this UpdateTemplateRequest.
77
+ :rtype: :class:`huaweicloudsdkmsgsms.v2.SmsTemplateReq`
78
+ """
79
+ return self._body
80
+
81
+ @body.setter
82
+ def body(self, body):
83
+ r"""Sets the body of this UpdateTemplateRequest.
84
+
85
+ :param body: The body of this UpdateTemplateRequest.
86
+ :type body: :class:`huaweicloudsdkmsgsms.v2.SmsTemplateReq`
87
+ """
88
+ self._body = body
89
+
90
+ def to_dict(self):
91
+ """Returns the model properties as a dict"""
92
+ result = {}
93
+
94
+ for attr, _ in six.iteritems(self.openapi_types):
95
+ value = getattr(self, attr)
96
+ if isinstance(value, list):
97
+ result[attr] = list(map(
98
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
99
+ value
100
+ ))
101
+ elif hasattr(value, "to_dict"):
102
+ result[attr] = value.to_dict()
103
+ elif isinstance(value, dict):
104
+ result[attr] = dict(map(
105
+ lambda item: (item[0], item[1].to_dict())
106
+ if hasattr(item[1], "to_dict") else item,
107
+ value.items()
108
+ ))
109
+ else:
110
+ if attr in self.sensitive_list:
111
+ result[attr] = "****"
112
+ else:
113
+ result[attr] = value
114
+
115
+ return result
116
+
117
+ def to_str(self):
118
+ """Returns the string representation of the model"""
119
+ import simplejson as json
120
+ if six.PY2:
121
+ import sys
122
+ reload(sys)
123
+ sys.setdefaultencoding("utf-8")
124
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
125
+
126
+ def __repr__(self):
127
+ """For `print`"""
128
+ return self.to_str()
129
+
130
+ def __eq__(self, other):
131
+ """Returns true if both objects are equal"""
132
+ if not isinstance(other, UpdateTemplateRequest):
133
+ return False
134
+
135
+ return self.__dict__ == other.__dict__
136
+
137
+ def __ne__(self, other):
138
+ """Returns true if both objects are not equal"""
139
+ return not self == other
@@ -0,0 +1,145 @@
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 UpdateTemplateResponse(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
+ 'id': 'str',
22
+ 'template_name': 'str'
23
+ }
24
+
25
+ attribute_map = {
26
+ 'id': 'id',
27
+ 'template_name': 'template_name'
28
+ }
29
+
30
+ def __init__(self, id=None, template_name=None):
31
+ r"""UpdateTemplateResponse
32
+
33
+ The model defined in huaweicloud sdk
34
+
35
+ :param id: 模板主键ID
36
+ :type id: str
37
+ :param template_name: 模板名称
38
+ :type template_name: str
39
+ """
40
+
41
+ super(UpdateTemplateResponse, self).__init__()
42
+
43
+ self._id = None
44
+ self._template_name = None
45
+ self.discriminator = None
46
+
47
+ if id is not None:
48
+ self.id = id
49
+ if template_name is not None:
50
+ self.template_name = template_name
51
+
52
+ @property
53
+ def id(self):
54
+ r"""Gets the id of this UpdateTemplateResponse.
55
+
56
+ 模板主键ID
57
+
58
+ :return: The id of this UpdateTemplateResponse.
59
+ :rtype: str
60
+ """
61
+ return self._id
62
+
63
+ @id.setter
64
+ def id(self, id):
65
+ r"""Sets the id of this UpdateTemplateResponse.
66
+
67
+ 模板主键ID
68
+
69
+ :param id: The id of this UpdateTemplateResponse.
70
+ :type id: str
71
+ """
72
+ self._id = id
73
+
74
+ @property
75
+ def template_name(self):
76
+ r"""Gets the template_name of this UpdateTemplateResponse.
77
+
78
+ 模板名称
79
+
80
+ :return: The template_name of this UpdateTemplateResponse.
81
+ :rtype: str
82
+ """
83
+ return self._template_name
84
+
85
+ @template_name.setter
86
+ def template_name(self, template_name):
87
+ r"""Sets the template_name of this UpdateTemplateResponse.
88
+
89
+ 模板名称
90
+
91
+ :param template_name: The template_name of this UpdateTemplateResponse.
92
+ :type template_name: str
93
+ """
94
+ self._template_name = template_name
95
+
96
+ def to_dict(self):
97
+ """Returns the model properties as a dict"""
98
+ result = {}
99
+
100
+ for attr, _ in six.iteritems(self.openapi_types):
101
+ value = getattr(self, attr)
102
+ if isinstance(value, list):
103
+ result[attr] = list(map(
104
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
105
+ value
106
+ ))
107
+ elif hasattr(value, "to_dict"):
108
+ result[attr] = value.to_dict()
109
+ elif isinstance(value, dict):
110
+ result[attr] = dict(map(
111
+ lambda item: (item[0], item[1].to_dict())
112
+ if hasattr(item[1], "to_dict") else item,
113
+ value.items()
114
+ ))
115
+ else:
116
+ if attr in self.sensitive_list:
117
+ result[attr] = "****"
118
+ else:
119
+ result[attr] = value
120
+
121
+ return result
122
+
123
+ def to_str(self):
124
+ """Returns the string representation of the model"""
125
+ import simplejson as json
126
+ if six.PY2:
127
+ import sys
128
+ reload(sys)
129
+ sys.setdefaultencoding("utf-8")
130
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
131
+
132
+ def __repr__(self):
133
+ """For `print`"""
134
+ return self.to_str()
135
+
136
+ def __eq__(self, other):
137
+ """Returns true if both objects are equal"""
138
+ if not isinstance(other, UpdateTemplateResponse):
139
+ return False
140
+
141
+ return self.__dict__ == other.__dict__
142
+
143
+ def __ne__(self, other):
144
+ """Returns true if both objects are not equal"""
145
+ return not self == other