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.
- huaweicloudsdkmsgsms/__init__.py +0 -0
- huaweicloudsdkmsgsms/v2/__init__.py +60 -0
- huaweicloudsdkmsgsms/v2/model/__init__.py +57 -0
- huaweicloudsdkmsgsms/v2/model/api_template_variable.py +289 -0
- huaweicloudsdkmsgsms/v2/model/create_app_request.py +111 -0
- huaweicloudsdkmsgsms/v2/model/create_app_response.py +203 -0
- huaweicloudsdkmsgsms/v2/model/create_signature_request.py +111 -0
- huaweicloudsdkmsgsms/v2/model/create_signature_response.py +174 -0
- huaweicloudsdkmsgsms/v2/model/create_template_request.py +111 -0
- huaweicloudsdkmsgsms/v2/model/create_template_response.py +145 -0
- huaweicloudsdkmsgsms/v2/model/delete_signature_request.py +114 -0
- huaweicloudsdkmsgsms/v2/model/delete_signature_response.py +85 -0
- huaweicloudsdkmsgsms/v2/model/delete_template_request.py +114 -0
- huaweicloudsdkmsgsms/v2/model/delete_template_response.py +85 -0
- huaweicloudsdkmsgsms/v2/model/enable_signature_request.py +114 -0
- huaweicloudsdkmsgsms/v2/model/enable_signature_response.py +85 -0
- huaweicloudsdkmsgsms/v2/model/list_app_details_request.py +347 -0
- huaweicloudsdkmsgsms/v2/model/list_app_details_response.py +145 -0
- huaweicloudsdkmsgsms/v2/model/list_send_country_details_request.py +144 -0
- huaweicloudsdkmsgsms/v2/model/list_send_country_details_response.py +112 -0
- huaweicloudsdkmsgsms/v2/model/list_signature_details_request.py +434 -0
- huaweicloudsdkmsgsms/v2/model/list_signature_details_response.py +145 -0
- huaweicloudsdkmsgsms/v2/model/list_template_details_request.py +521 -0
- huaweicloudsdkmsgsms/v2/model/list_template_details_response.py +145 -0
- huaweicloudsdkmsgsms/v2/model/list_template_varilable_details_request.py +114 -0
- huaweicloudsdkmsgsms/v2/model/list_template_varilable_details_response.py +145 -0
- huaweicloudsdkmsgsms/v2/model/show_app_count_request.py +114 -0
- huaweicloudsdkmsgsms/v2/model/show_app_count_response.py +145 -0
- huaweicloudsdkmsgsms/v2/model/show_app_request.py +114 -0
- huaweicloudsdkmsgsms/v2/model/show_app_response.py +721 -0
- huaweicloudsdkmsgsms/v2/model/show_signature_file_request.py +114 -0
- huaweicloudsdkmsgsms/v2/model/show_signature_file_response.py +348 -0
- huaweicloudsdkmsgsms/v2/model/show_signature_request.py +114 -0
- huaweicloudsdkmsgsms/v2/model/show_signature_response.py +837 -0
- huaweicloudsdkmsgsms/v2/model/show_template_request.py +114 -0
- huaweicloudsdkmsgsms/v2/model/show_template_response.py +953 -0
- huaweicloudsdkmsgsms/v2/model/sms_app_add_req.py +287 -0
- huaweicloudsdkmsgsms/v2/model/sms_app_query_resp.py +720 -0
- huaweicloudsdkmsgsms/v2/model/sms_app_update_req.py +258 -0
- huaweicloudsdkmsgsms/v2/model/sms_country_resp.py +173 -0
- huaweicloudsdkmsgsms/v2/model/sms_signature_req.py +371 -0
- huaweicloudsdkmsgsms/v2/model/sms_signature_resp.py +836 -0
- huaweicloudsdkmsgsms/v2/model/sms_template_req.py +429 -0
- huaweicloudsdkmsgsms/v2/model/sms_template_resp.py +952 -0
- huaweicloudsdkmsgsms/v2/model/sms_template_variable_attr_req.py +171 -0
- huaweicloudsdkmsgsms/v2/model/tenant_basic.py +173 -0
- huaweicloudsdkmsgsms/v2/model/update_app_request.py +139 -0
- huaweicloudsdkmsgsms/v2/model/update_app_response.py +174 -0
- huaweicloudsdkmsgsms/v2/model/update_signature_request.py +139 -0
- huaweicloudsdkmsgsms/v2/model/update_signature_response.py +174 -0
- huaweicloudsdkmsgsms/v2/model/update_template_request.py +139 -0
- huaweicloudsdkmsgsms/v2/model/update_template_response.py +145 -0
- huaweicloudsdkmsgsms/v2/model/upload_signature_file_request.py +140 -0
- huaweicloudsdkmsgsms/v2/model/upload_signature_file_request_body.py +114 -0
- huaweicloudsdkmsgsms/v2/model/upload_signature_file_response.py +116 -0
- huaweicloudsdkmsgsms/v2/msgsms_async_client.py +1461 -0
- huaweicloudsdkmsgsms/v2/msgsms_client.py +1458 -0
- huaweicloudsdkmsgsms/v2/region/__init__.py +0 -0
- huaweicloudsdkmsgsms/v2/region/msgsms_region.py +34 -0
- huaweicloudsdkmsgsms-3.1.160.dist-info/LICENSE +13 -0
- huaweicloudsdkmsgsms-3.1.160.dist-info/METADATA +26 -0
- huaweicloudsdkmsgsms-3.1.160.dist-info/RECORD +64 -0
- huaweicloudsdkmsgsms-3.1.160.dist-info/WHEEL +5 -0
- huaweicloudsdkmsgsms-3.1.160.dist-info/top_level.txt +1 -0
@@ -0,0 +1,203 @@
|
|
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 CreateAppResponse(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
|
+
'app_key': 'str',
|
22
|
+
'app_name': 'str',
|
23
|
+
'id': 'str',
|
24
|
+
'app_secret': 'str'
|
25
|
+
}
|
26
|
+
|
27
|
+
attribute_map = {
|
28
|
+
'app_key': 'app_key',
|
29
|
+
'app_name': 'app_name',
|
30
|
+
'id': 'id',
|
31
|
+
'app_secret': 'app_secret'
|
32
|
+
}
|
33
|
+
|
34
|
+
def __init__(self, app_key=None, app_name=None, id=None, app_secret=None):
|
35
|
+
r"""CreateAppResponse
|
36
|
+
|
37
|
+
The model defined in huaweicloud sdk
|
38
|
+
|
39
|
+
:param app_key: 应用KEY
|
40
|
+
:type app_key: str
|
41
|
+
:param app_name: 应用名称
|
42
|
+
:type app_name: str
|
43
|
+
:param id: 应用主键ID
|
44
|
+
:type id: str
|
45
|
+
:param app_secret: Application Secret,应用密钥
|
46
|
+
:type app_secret: str
|
47
|
+
"""
|
48
|
+
|
49
|
+
super(CreateAppResponse, self).__init__()
|
50
|
+
|
51
|
+
self._app_key = None
|
52
|
+
self._app_name = None
|
53
|
+
self._id = None
|
54
|
+
self._app_secret = None
|
55
|
+
self.discriminator = None
|
56
|
+
|
57
|
+
if app_key is not None:
|
58
|
+
self.app_key = app_key
|
59
|
+
if app_name is not None:
|
60
|
+
self.app_name = app_name
|
61
|
+
if id is not None:
|
62
|
+
self.id = id
|
63
|
+
if app_secret is not None:
|
64
|
+
self.app_secret = app_secret
|
65
|
+
|
66
|
+
@property
|
67
|
+
def app_key(self):
|
68
|
+
r"""Gets the app_key of this CreateAppResponse.
|
69
|
+
|
70
|
+
应用KEY
|
71
|
+
|
72
|
+
:return: The app_key of this CreateAppResponse.
|
73
|
+
:rtype: str
|
74
|
+
"""
|
75
|
+
return self._app_key
|
76
|
+
|
77
|
+
@app_key.setter
|
78
|
+
def app_key(self, app_key):
|
79
|
+
r"""Sets the app_key of this CreateAppResponse.
|
80
|
+
|
81
|
+
应用KEY
|
82
|
+
|
83
|
+
:param app_key: The app_key of this CreateAppResponse.
|
84
|
+
:type app_key: str
|
85
|
+
"""
|
86
|
+
self._app_key = app_key
|
87
|
+
|
88
|
+
@property
|
89
|
+
def app_name(self):
|
90
|
+
r"""Gets the app_name of this CreateAppResponse.
|
91
|
+
|
92
|
+
应用名称
|
93
|
+
|
94
|
+
:return: The app_name of this CreateAppResponse.
|
95
|
+
:rtype: str
|
96
|
+
"""
|
97
|
+
return self._app_name
|
98
|
+
|
99
|
+
@app_name.setter
|
100
|
+
def app_name(self, app_name):
|
101
|
+
r"""Sets the app_name of this CreateAppResponse.
|
102
|
+
|
103
|
+
应用名称
|
104
|
+
|
105
|
+
:param app_name: The app_name of this CreateAppResponse.
|
106
|
+
:type app_name: str
|
107
|
+
"""
|
108
|
+
self._app_name = app_name
|
109
|
+
|
110
|
+
@property
|
111
|
+
def id(self):
|
112
|
+
r"""Gets the id of this CreateAppResponse.
|
113
|
+
|
114
|
+
应用主键ID
|
115
|
+
|
116
|
+
:return: The id of this CreateAppResponse.
|
117
|
+
:rtype: str
|
118
|
+
"""
|
119
|
+
return self._id
|
120
|
+
|
121
|
+
@id.setter
|
122
|
+
def id(self, id):
|
123
|
+
r"""Sets the id of this CreateAppResponse.
|
124
|
+
|
125
|
+
应用主键ID
|
126
|
+
|
127
|
+
:param id: The id of this CreateAppResponse.
|
128
|
+
:type id: str
|
129
|
+
"""
|
130
|
+
self._id = id
|
131
|
+
|
132
|
+
@property
|
133
|
+
def app_secret(self):
|
134
|
+
r"""Gets the app_secret of this CreateAppResponse.
|
135
|
+
|
136
|
+
Application Secret,应用密钥
|
137
|
+
|
138
|
+
:return: The app_secret of this CreateAppResponse.
|
139
|
+
:rtype: str
|
140
|
+
"""
|
141
|
+
return self._app_secret
|
142
|
+
|
143
|
+
@app_secret.setter
|
144
|
+
def app_secret(self, app_secret):
|
145
|
+
r"""Sets the app_secret of this CreateAppResponse.
|
146
|
+
|
147
|
+
Application Secret,应用密钥
|
148
|
+
|
149
|
+
:param app_secret: The app_secret of this CreateAppResponse.
|
150
|
+
:type app_secret: str
|
151
|
+
"""
|
152
|
+
self._app_secret = app_secret
|
153
|
+
|
154
|
+
def to_dict(self):
|
155
|
+
"""Returns the model properties as a dict"""
|
156
|
+
result = {}
|
157
|
+
|
158
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
159
|
+
value = getattr(self, attr)
|
160
|
+
if isinstance(value, list):
|
161
|
+
result[attr] = list(map(
|
162
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
163
|
+
value
|
164
|
+
))
|
165
|
+
elif hasattr(value, "to_dict"):
|
166
|
+
result[attr] = value.to_dict()
|
167
|
+
elif isinstance(value, dict):
|
168
|
+
result[attr] = dict(map(
|
169
|
+
lambda item: (item[0], item[1].to_dict())
|
170
|
+
if hasattr(item[1], "to_dict") else item,
|
171
|
+
value.items()
|
172
|
+
))
|
173
|
+
else:
|
174
|
+
if attr in self.sensitive_list:
|
175
|
+
result[attr] = "****"
|
176
|
+
else:
|
177
|
+
result[attr] = value
|
178
|
+
|
179
|
+
return result
|
180
|
+
|
181
|
+
def to_str(self):
|
182
|
+
"""Returns the string representation of the model"""
|
183
|
+
import simplejson as json
|
184
|
+
if six.PY2:
|
185
|
+
import sys
|
186
|
+
reload(sys)
|
187
|
+
sys.setdefaultencoding("utf-8")
|
188
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
189
|
+
|
190
|
+
def __repr__(self):
|
191
|
+
"""For `print`"""
|
192
|
+
return self.to_str()
|
193
|
+
|
194
|
+
def __eq__(self, other):
|
195
|
+
"""Returns true if both objects are equal"""
|
196
|
+
if not isinstance(other, CreateAppResponse):
|
197
|
+
return False
|
198
|
+
|
199
|
+
return self.__dict__ == other.__dict__
|
200
|
+
|
201
|
+
def __ne__(self, other):
|
202
|
+
"""Returns true if both objects are not equal"""
|
203
|
+
return not self == other
|
@@ -0,0 +1,111 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class CreateSignatureRequest:
|
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
|
+
'body': 'SmsSignatureReq'
|
21
|
+
}
|
22
|
+
|
23
|
+
attribute_map = {
|
24
|
+
'body': 'body'
|
25
|
+
}
|
26
|
+
|
27
|
+
def __init__(self, body=None):
|
28
|
+
r"""CreateSignatureRequest
|
29
|
+
|
30
|
+
The model defined in huaweicloud sdk
|
31
|
+
|
32
|
+
:param body: Body of the CreateSignatureRequest
|
33
|
+
:type body: :class:`huaweicloudsdkmsgsms.v2.SmsSignatureReq`
|
34
|
+
"""
|
35
|
+
|
36
|
+
|
37
|
+
|
38
|
+
self._body = None
|
39
|
+
self.discriminator = None
|
40
|
+
|
41
|
+
if body is not None:
|
42
|
+
self.body = body
|
43
|
+
|
44
|
+
@property
|
45
|
+
def body(self):
|
46
|
+
r"""Gets the body of this CreateSignatureRequest.
|
47
|
+
|
48
|
+
:return: The body of this CreateSignatureRequest.
|
49
|
+
:rtype: :class:`huaweicloudsdkmsgsms.v2.SmsSignatureReq`
|
50
|
+
"""
|
51
|
+
return self._body
|
52
|
+
|
53
|
+
@body.setter
|
54
|
+
def body(self, body):
|
55
|
+
r"""Sets the body of this CreateSignatureRequest.
|
56
|
+
|
57
|
+
:param body: The body of this CreateSignatureRequest.
|
58
|
+
:type body: :class:`huaweicloudsdkmsgsms.v2.SmsSignatureReq`
|
59
|
+
"""
|
60
|
+
self._body = body
|
61
|
+
|
62
|
+
def to_dict(self):
|
63
|
+
"""Returns the model properties as a dict"""
|
64
|
+
result = {}
|
65
|
+
|
66
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
67
|
+
value = getattr(self, attr)
|
68
|
+
if isinstance(value, list):
|
69
|
+
result[attr] = list(map(
|
70
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
71
|
+
value
|
72
|
+
))
|
73
|
+
elif hasattr(value, "to_dict"):
|
74
|
+
result[attr] = value.to_dict()
|
75
|
+
elif isinstance(value, dict):
|
76
|
+
result[attr] = dict(map(
|
77
|
+
lambda item: (item[0], item[1].to_dict())
|
78
|
+
if hasattr(item[1], "to_dict") else item,
|
79
|
+
value.items()
|
80
|
+
))
|
81
|
+
else:
|
82
|
+
if attr in self.sensitive_list:
|
83
|
+
result[attr] = "****"
|
84
|
+
else:
|
85
|
+
result[attr] = value
|
86
|
+
|
87
|
+
return result
|
88
|
+
|
89
|
+
def to_str(self):
|
90
|
+
"""Returns the string representation of the model"""
|
91
|
+
import simplejson as json
|
92
|
+
if six.PY2:
|
93
|
+
import sys
|
94
|
+
reload(sys)
|
95
|
+
sys.setdefaultencoding("utf-8")
|
96
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
97
|
+
|
98
|
+
def __repr__(self):
|
99
|
+
"""For `print`"""
|
100
|
+
return self.to_str()
|
101
|
+
|
102
|
+
def __eq__(self, other):
|
103
|
+
"""Returns true if both objects are equal"""
|
104
|
+
if not isinstance(other, CreateSignatureRequest):
|
105
|
+
return False
|
106
|
+
|
107
|
+
return self.__dict__ == other.__dict__
|
108
|
+
|
109
|
+
def __ne__(self, other):
|
110
|
+
"""Returns true if both objects are not equal"""
|
111
|
+
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 CreateSignatureResponse(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"""CreateSignatureResponse
|
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(CreateSignatureResponse, 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 CreateSignatureResponse.
|
62
|
+
|
63
|
+
签名主键ID
|
64
|
+
|
65
|
+
:return: The id of this CreateSignatureResponse.
|
66
|
+
:rtype: str
|
67
|
+
"""
|
68
|
+
return self._id
|
69
|
+
|
70
|
+
@id.setter
|
71
|
+
def id(self, id):
|
72
|
+
r"""Sets the id of this CreateSignatureResponse.
|
73
|
+
|
74
|
+
签名主键ID
|
75
|
+
|
76
|
+
:param id: The id of this CreateSignatureResponse.
|
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 CreateSignatureResponse.
|
84
|
+
|
85
|
+
签名ID
|
86
|
+
|
87
|
+
:return: The signature_id of this CreateSignatureResponse.
|
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 CreateSignatureResponse.
|
95
|
+
|
96
|
+
签名ID
|
97
|
+
|
98
|
+
:param signature_id: The signature_id of this CreateSignatureResponse.
|
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 CreateSignatureResponse.
|
106
|
+
|
107
|
+
签名名称
|
108
|
+
|
109
|
+
:return: The signature_name of this CreateSignatureResponse.
|
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 CreateSignatureResponse.
|
117
|
+
|
118
|
+
签名名称
|
119
|
+
|
120
|
+
:param signature_name: The signature_name of this CreateSignatureResponse.
|
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, CreateSignatureResponse):
|
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,111 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class CreateTemplateRequest:
|
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
|
+
'body': 'SmsTemplateReq'
|
21
|
+
}
|
22
|
+
|
23
|
+
attribute_map = {
|
24
|
+
'body': 'body'
|
25
|
+
}
|
26
|
+
|
27
|
+
def __init__(self, body=None):
|
28
|
+
r"""CreateTemplateRequest
|
29
|
+
|
30
|
+
The model defined in huaweicloud sdk
|
31
|
+
|
32
|
+
:param body: Body of the CreateTemplateRequest
|
33
|
+
:type body: :class:`huaweicloudsdkmsgsms.v2.SmsTemplateReq`
|
34
|
+
"""
|
35
|
+
|
36
|
+
|
37
|
+
|
38
|
+
self._body = None
|
39
|
+
self.discriminator = None
|
40
|
+
|
41
|
+
if body is not None:
|
42
|
+
self.body = body
|
43
|
+
|
44
|
+
@property
|
45
|
+
def body(self):
|
46
|
+
r"""Gets the body of this CreateTemplateRequest.
|
47
|
+
|
48
|
+
:return: The body of this CreateTemplateRequest.
|
49
|
+
:rtype: :class:`huaweicloudsdkmsgsms.v2.SmsTemplateReq`
|
50
|
+
"""
|
51
|
+
return self._body
|
52
|
+
|
53
|
+
@body.setter
|
54
|
+
def body(self, body):
|
55
|
+
r"""Sets the body of this CreateTemplateRequest.
|
56
|
+
|
57
|
+
:param body: The body of this CreateTemplateRequest.
|
58
|
+
:type body: :class:`huaweicloudsdkmsgsms.v2.SmsTemplateReq`
|
59
|
+
"""
|
60
|
+
self._body = body
|
61
|
+
|
62
|
+
def to_dict(self):
|
63
|
+
"""Returns the model properties as a dict"""
|
64
|
+
result = {}
|
65
|
+
|
66
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
67
|
+
value = getattr(self, attr)
|
68
|
+
if isinstance(value, list):
|
69
|
+
result[attr] = list(map(
|
70
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
71
|
+
value
|
72
|
+
))
|
73
|
+
elif hasattr(value, "to_dict"):
|
74
|
+
result[attr] = value.to_dict()
|
75
|
+
elif isinstance(value, dict):
|
76
|
+
result[attr] = dict(map(
|
77
|
+
lambda item: (item[0], item[1].to_dict())
|
78
|
+
if hasattr(item[1], "to_dict") else item,
|
79
|
+
value.items()
|
80
|
+
))
|
81
|
+
else:
|
82
|
+
if attr in self.sensitive_list:
|
83
|
+
result[attr] = "****"
|
84
|
+
else:
|
85
|
+
result[attr] = value
|
86
|
+
|
87
|
+
return result
|
88
|
+
|
89
|
+
def to_str(self):
|
90
|
+
"""Returns the string representation of the model"""
|
91
|
+
import simplejson as json
|
92
|
+
if six.PY2:
|
93
|
+
import sys
|
94
|
+
reload(sys)
|
95
|
+
sys.setdefaultencoding("utf-8")
|
96
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
97
|
+
|
98
|
+
def __repr__(self):
|
99
|
+
"""For `print`"""
|
100
|
+
return self.to_str()
|
101
|
+
|
102
|
+
def __eq__(self, other):
|
103
|
+
"""Returns true if both objects are equal"""
|
104
|
+
if not isinstance(other, CreateTemplateRequest):
|
105
|
+
return False
|
106
|
+
|
107
|
+
return self.__dict__ == other.__dict__
|
108
|
+
|
109
|
+
def __ne__(self, other):
|
110
|
+
"""Returns true if both objects are not equal"""
|
111
|
+
return not self == other
|