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,85 @@
|
|
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 EnableSignatureResponse(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
|
+
}
|
22
|
+
|
23
|
+
attribute_map = {
|
24
|
+
}
|
25
|
+
|
26
|
+
def __init__(self):
|
27
|
+
r"""EnableSignatureResponse
|
28
|
+
|
29
|
+
The model defined in huaweicloud sdk
|
30
|
+
|
31
|
+
"""
|
32
|
+
|
33
|
+
super(EnableSignatureResponse, self).__init__()
|
34
|
+
self.discriminator = None
|
35
|
+
|
36
|
+
def to_dict(self):
|
37
|
+
"""Returns the model properties as a dict"""
|
38
|
+
result = {}
|
39
|
+
|
40
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
41
|
+
value = getattr(self, attr)
|
42
|
+
if isinstance(value, list):
|
43
|
+
result[attr] = list(map(
|
44
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
45
|
+
value
|
46
|
+
))
|
47
|
+
elif hasattr(value, "to_dict"):
|
48
|
+
result[attr] = value.to_dict()
|
49
|
+
elif isinstance(value, dict):
|
50
|
+
result[attr] = dict(map(
|
51
|
+
lambda item: (item[0], item[1].to_dict())
|
52
|
+
if hasattr(item[1], "to_dict") else item,
|
53
|
+
value.items()
|
54
|
+
))
|
55
|
+
else:
|
56
|
+
if attr in self.sensitive_list:
|
57
|
+
result[attr] = "****"
|
58
|
+
else:
|
59
|
+
result[attr] = value
|
60
|
+
|
61
|
+
return result
|
62
|
+
|
63
|
+
def to_str(self):
|
64
|
+
"""Returns the string representation of the model"""
|
65
|
+
import simplejson as json
|
66
|
+
if six.PY2:
|
67
|
+
import sys
|
68
|
+
reload(sys)
|
69
|
+
sys.setdefaultencoding("utf-8")
|
70
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
71
|
+
|
72
|
+
def __repr__(self):
|
73
|
+
"""For `print`"""
|
74
|
+
return self.to_str()
|
75
|
+
|
76
|
+
def __eq__(self, other):
|
77
|
+
"""Returns true if both objects are equal"""
|
78
|
+
if not isinstance(other, EnableSignatureResponse):
|
79
|
+
return False
|
80
|
+
|
81
|
+
return self.__dict__ == other.__dict__
|
82
|
+
|
83
|
+
def __ne__(self, other):
|
84
|
+
"""Returns true if both objects are not equal"""
|
85
|
+
return not self == other
|
@@ -0,0 +1,347 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ListAppDetailsRequest:
|
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
|
+
'start_time': 'str',
|
22
|
+
'end_time': 'str',
|
23
|
+
'limit': 'int',
|
24
|
+
'offset': 'int',
|
25
|
+
'region': 'str',
|
26
|
+
'sort_dir': 'str',
|
27
|
+
'sort_key': 'str',
|
28
|
+
'status': 'str'
|
29
|
+
}
|
30
|
+
|
31
|
+
attribute_map = {
|
32
|
+
'app_name': 'app_name',
|
33
|
+
'start_time': 'start_time',
|
34
|
+
'end_time': 'end_time',
|
35
|
+
'limit': 'limit',
|
36
|
+
'offset': 'offset',
|
37
|
+
'region': 'region',
|
38
|
+
'sort_dir': 'sort_dir',
|
39
|
+
'sort_key': 'sort_key',
|
40
|
+
'status': 'status'
|
41
|
+
}
|
42
|
+
|
43
|
+
def __init__(self, app_name=None, start_time=None, end_time=None, limit=None, offset=None, region=None, sort_dir=None, sort_key=None, status=None):
|
44
|
+
r"""ListAppDetailsRequest
|
45
|
+
|
46
|
+
The model defined in huaweicloud sdk
|
47
|
+
|
48
|
+
:param app_name: 应用名称
|
49
|
+
:type app_name: str
|
50
|
+
:param start_time: 开始时间
|
51
|
+
:type start_time: str
|
52
|
+
:param end_time: 结束时间
|
53
|
+
:type end_time: str
|
54
|
+
:param limit: 数量
|
55
|
+
:type limit: int
|
56
|
+
:param offset: 偏移量
|
57
|
+
:type offset: int
|
58
|
+
:param region: 地域 1. cn:国内 2. intl:国际
|
59
|
+
:type region: str
|
60
|
+
:param sort_dir: 排序方式 1. desc:降序 2. asc:升序
|
61
|
+
:type sort_dir: str
|
62
|
+
:param sort_key: 排序字段
|
63
|
+
:type sort_key: str
|
64
|
+
:param status: 应用状态 1. CREATED:待上线。应用暂未创建成功,请稍候。 2. SUSPENDED:暂停。无法发起业务请求。当客户所发短信内容触发业务违规,或客户申请退订短信业务时,运营经理会将客户短信应用暂停。 3. LAUNCHED:正常。应用添加成功,可以正常使用。 4. PROCESSING:资源待分配。请联系客户经理或通过工单系统申请配置资源。
|
65
|
+
:type status: str
|
66
|
+
"""
|
67
|
+
|
68
|
+
|
69
|
+
|
70
|
+
self._app_name = None
|
71
|
+
self._start_time = None
|
72
|
+
self._end_time = None
|
73
|
+
self._limit = None
|
74
|
+
self._offset = None
|
75
|
+
self._region = None
|
76
|
+
self._sort_dir = None
|
77
|
+
self._sort_key = None
|
78
|
+
self._status = None
|
79
|
+
self.discriminator = None
|
80
|
+
|
81
|
+
if app_name is not None:
|
82
|
+
self.app_name = app_name
|
83
|
+
if start_time is not None:
|
84
|
+
self.start_time = start_time
|
85
|
+
if end_time is not None:
|
86
|
+
self.end_time = end_time
|
87
|
+
if limit is not None:
|
88
|
+
self.limit = limit
|
89
|
+
if offset is not None:
|
90
|
+
self.offset = offset
|
91
|
+
if region is not None:
|
92
|
+
self.region = region
|
93
|
+
if sort_dir is not None:
|
94
|
+
self.sort_dir = sort_dir
|
95
|
+
if sort_key is not None:
|
96
|
+
self.sort_key = sort_key
|
97
|
+
if status is not None:
|
98
|
+
self.status = status
|
99
|
+
|
100
|
+
@property
|
101
|
+
def app_name(self):
|
102
|
+
r"""Gets the app_name of this ListAppDetailsRequest.
|
103
|
+
|
104
|
+
应用名称
|
105
|
+
|
106
|
+
:return: The app_name of this ListAppDetailsRequest.
|
107
|
+
:rtype: str
|
108
|
+
"""
|
109
|
+
return self._app_name
|
110
|
+
|
111
|
+
@app_name.setter
|
112
|
+
def app_name(self, app_name):
|
113
|
+
r"""Sets the app_name of this ListAppDetailsRequest.
|
114
|
+
|
115
|
+
应用名称
|
116
|
+
|
117
|
+
:param app_name: The app_name of this ListAppDetailsRequest.
|
118
|
+
:type app_name: str
|
119
|
+
"""
|
120
|
+
self._app_name = app_name
|
121
|
+
|
122
|
+
@property
|
123
|
+
def start_time(self):
|
124
|
+
r"""Gets the start_time of this ListAppDetailsRequest.
|
125
|
+
|
126
|
+
开始时间
|
127
|
+
|
128
|
+
:return: The start_time of this ListAppDetailsRequest.
|
129
|
+
:rtype: str
|
130
|
+
"""
|
131
|
+
return self._start_time
|
132
|
+
|
133
|
+
@start_time.setter
|
134
|
+
def start_time(self, start_time):
|
135
|
+
r"""Sets the start_time of this ListAppDetailsRequest.
|
136
|
+
|
137
|
+
开始时间
|
138
|
+
|
139
|
+
:param start_time: The start_time of this ListAppDetailsRequest.
|
140
|
+
:type start_time: str
|
141
|
+
"""
|
142
|
+
self._start_time = start_time
|
143
|
+
|
144
|
+
@property
|
145
|
+
def end_time(self):
|
146
|
+
r"""Gets the end_time of this ListAppDetailsRequest.
|
147
|
+
|
148
|
+
结束时间
|
149
|
+
|
150
|
+
:return: The end_time of this ListAppDetailsRequest.
|
151
|
+
:rtype: str
|
152
|
+
"""
|
153
|
+
return self._end_time
|
154
|
+
|
155
|
+
@end_time.setter
|
156
|
+
def end_time(self, end_time):
|
157
|
+
r"""Sets the end_time of this ListAppDetailsRequest.
|
158
|
+
|
159
|
+
结束时间
|
160
|
+
|
161
|
+
:param end_time: The end_time of this ListAppDetailsRequest.
|
162
|
+
:type end_time: str
|
163
|
+
"""
|
164
|
+
self._end_time = end_time
|
165
|
+
|
166
|
+
@property
|
167
|
+
def limit(self):
|
168
|
+
r"""Gets the limit of this ListAppDetailsRequest.
|
169
|
+
|
170
|
+
数量
|
171
|
+
|
172
|
+
:return: The limit of this ListAppDetailsRequest.
|
173
|
+
:rtype: int
|
174
|
+
"""
|
175
|
+
return self._limit
|
176
|
+
|
177
|
+
@limit.setter
|
178
|
+
def limit(self, limit):
|
179
|
+
r"""Sets the limit of this ListAppDetailsRequest.
|
180
|
+
|
181
|
+
数量
|
182
|
+
|
183
|
+
:param limit: The limit of this ListAppDetailsRequest.
|
184
|
+
:type limit: int
|
185
|
+
"""
|
186
|
+
self._limit = limit
|
187
|
+
|
188
|
+
@property
|
189
|
+
def offset(self):
|
190
|
+
r"""Gets the offset of this ListAppDetailsRequest.
|
191
|
+
|
192
|
+
偏移量
|
193
|
+
|
194
|
+
:return: The offset of this ListAppDetailsRequest.
|
195
|
+
:rtype: int
|
196
|
+
"""
|
197
|
+
return self._offset
|
198
|
+
|
199
|
+
@offset.setter
|
200
|
+
def offset(self, offset):
|
201
|
+
r"""Sets the offset of this ListAppDetailsRequest.
|
202
|
+
|
203
|
+
偏移量
|
204
|
+
|
205
|
+
:param offset: The offset of this ListAppDetailsRequest.
|
206
|
+
:type offset: int
|
207
|
+
"""
|
208
|
+
self._offset = offset
|
209
|
+
|
210
|
+
@property
|
211
|
+
def region(self):
|
212
|
+
r"""Gets the region of this ListAppDetailsRequest.
|
213
|
+
|
214
|
+
地域 1. cn:国内 2. intl:国际
|
215
|
+
|
216
|
+
:return: The region of this ListAppDetailsRequest.
|
217
|
+
:rtype: str
|
218
|
+
"""
|
219
|
+
return self._region
|
220
|
+
|
221
|
+
@region.setter
|
222
|
+
def region(self, region):
|
223
|
+
r"""Sets the region of this ListAppDetailsRequest.
|
224
|
+
|
225
|
+
地域 1. cn:国内 2. intl:国际
|
226
|
+
|
227
|
+
:param region: The region of this ListAppDetailsRequest.
|
228
|
+
:type region: str
|
229
|
+
"""
|
230
|
+
self._region = region
|
231
|
+
|
232
|
+
@property
|
233
|
+
def sort_dir(self):
|
234
|
+
r"""Gets the sort_dir of this ListAppDetailsRequest.
|
235
|
+
|
236
|
+
排序方式 1. desc:降序 2. asc:升序
|
237
|
+
|
238
|
+
:return: The sort_dir of this ListAppDetailsRequest.
|
239
|
+
:rtype: str
|
240
|
+
"""
|
241
|
+
return self._sort_dir
|
242
|
+
|
243
|
+
@sort_dir.setter
|
244
|
+
def sort_dir(self, sort_dir):
|
245
|
+
r"""Sets the sort_dir of this ListAppDetailsRequest.
|
246
|
+
|
247
|
+
排序方式 1. desc:降序 2. asc:升序
|
248
|
+
|
249
|
+
:param sort_dir: The sort_dir of this ListAppDetailsRequest.
|
250
|
+
:type sort_dir: str
|
251
|
+
"""
|
252
|
+
self._sort_dir = sort_dir
|
253
|
+
|
254
|
+
@property
|
255
|
+
def sort_key(self):
|
256
|
+
r"""Gets the sort_key of this ListAppDetailsRequest.
|
257
|
+
|
258
|
+
排序字段
|
259
|
+
|
260
|
+
:return: The sort_key of this ListAppDetailsRequest.
|
261
|
+
:rtype: str
|
262
|
+
"""
|
263
|
+
return self._sort_key
|
264
|
+
|
265
|
+
@sort_key.setter
|
266
|
+
def sort_key(self, sort_key):
|
267
|
+
r"""Sets the sort_key of this ListAppDetailsRequest.
|
268
|
+
|
269
|
+
排序字段
|
270
|
+
|
271
|
+
:param sort_key: The sort_key of this ListAppDetailsRequest.
|
272
|
+
:type sort_key: str
|
273
|
+
"""
|
274
|
+
self._sort_key = sort_key
|
275
|
+
|
276
|
+
@property
|
277
|
+
def status(self):
|
278
|
+
r"""Gets the status of this ListAppDetailsRequest.
|
279
|
+
|
280
|
+
应用状态 1. CREATED:待上线。应用暂未创建成功,请稍候。 2. SUSPENDED:暂停。无法发起业务请求。当客户所发短信内容触发业务违规,或客户申请退订短信业务时,运营经理会将客户短信应用暂停。 3. LAUNCHED:正常。应用添加成功,可以正常使用。 4. PROCESSING:资源待分配。请联系客户经理或通过工单系统申请配置资源。
|
281
|
+
|
282
|
+
:return: The status of this ListAppDetailsRequest.
|
283
|
+
:rtype: str
|
284
|
+
"""
|
285
|
+
return self._status
|
286
|
+
|
287
|
+
@status.setter
|
288
|
+
def status(self, status):
|
289
|
+
r"""Sets the status of this ListAppDetailsRequest.
|
290
|
+
|
291
|
+
应用状态 1. CREATED:待上线。应用暂未创建成功,请稍候。 2. SUSPENDED:暂停。无法发起业务请求。当客户所发短信内容触发业务违规,或客户申请退订短信业务时,运营经理会将客户短信应用暂停。 3. LAUNCHED:正常。应用添加成功,可以正常使用。 4. PROCESSING:资源待分配。请联系客户经理或通过工单系统申请配置资源。
|
292
|
+
|
293
|
+
:param status: The status of this ListAppDetailsRequest.
|
294
|
+
:type status: str
|
295
|
+
"""
|
296
|
+
self._status = status
|
297
|
+
|
298
|
+
def to_dict(self):
|
299
|
+
"""Returns the model properties as a dict"""
|
300
|
+
result = {}
|
301
|
+
|
302
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
303
|
+
value = getattr(self, attr)
|
304
|
+
if isinstance(value, list):
|
305
|
+
result[attr] = list(map(
|
306
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
307
|
+
value
|
308
|
+
))
|
309
|
+
elif hasattr(value, "to_dict"):
|
310
|
+
result[attr] = value.to_dict()
|
311
|
+
elif isinstance(value, dict):
|
312
|
+
result[attr] = dict(map(
|
313
|
+
lambda item: (item[0], item[1].to_dict())
|
314
|
+
if hasattr(item[1], "to_dict") else item,
|
315
|
+
value.items()
|
316
|
+
))
|
317
|
+
else:
|
318
|
+
if attr in self.sensitive_list:
|
319
|
+
result[attr] = "****"
|
320
|
+
else:
|
321
|
+
result[attr] = value
|
322
|
+
|
323
|
+
return result
|
324
|
+
|
325
|
+
def to_str(self):
|
326
|
+
"""Returns the string representation of the model"""
|
327
|
+
import simplejson as json
|
328
|
+
if six.PY2:
|
329
|
+
import sys
|
330
|
+
reload(sys)
|
331
|
+
sys.setdefaultencoding("utf-8")
|
332
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
333
|
+
|
334
|
+
def __repr__(self):
|
335
|
+
"""For `print`"""
|
336
|
+
return self.to_str()
|
337
|
+
|
338
|
+
def __eq__(self, other):
|
339
|
+
"""Returns true if both objects are equal"""
|
340
|
+
if not isinstance(other, ListAppDetailsRequest):
|
341
|
+
return False
|
342
|
+
|
343
|
+
return self.__dict__ == other.__dict__
|
344
|
+
|
345
|
+
def __ne__(self, other):
|
346
|
+
"""Returns true if both objects are not equal"""
|
347
|
+
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 ListAppDetailsResponse(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
|
+
'results': 'list[SmsAppQueryResp]',
|
22
|
+
'total': 'int'
|
23
|
+
}
|
24
|
+
|
25
|
+
attribute_map = {
|
26
|
+
'results': 'results',
|
27
|
+
'total': 'total'
|
28
|
+
}
|
29
|
+
|
30
|
+
def __init__(self, results=None, total=None):
|
31
|
+
r"""ListAppDetailsResponse
|
32
|
+
|
33
|
+
The model defined in huaweicloud sdk
|
34
|
+
|
35
|
+
:param results: 查询结果
|
36
|
+
:type results: list[:class:`huaweicloudsdkmsgsms.v2.SmsAppQueryResp`]
|
37
|
+
:param total: 总数
|
38
|
+
:type total: int
|
39
|
+
"""
|
40
|
+
|
41
|
+
super(ListAppDetailsResponse, self).__init__()
|
42
|
+
|
43
|
+
self._results = None
|
44
|
+
self._total = None
|
45
|
+
self.discriminator = None
|
46
|
+
|
47
|
+
if results is not None:
|
48
|
+
self.results = results
|
49
|
+
if total is not None:
|
50
|
+
self.total = total
|
51
|
+
|
52
|
+
@property
|
53
|
+
def results(self):
|
54
|
+
r"""Gets the results of this ListAppDetailsResponse.
|
55
|
+
|
56
|
+
查询结果
|
57
|
+
|
58
|
+
:return: The results of this ListAppDetailsResponse.
|
59
|
+
:rtype: list[:class:`huaweicloudsdkmsgsms.v2.SmsAppQueryResp`]
|
60
|
+
"""
|
61
|
+
return self._results
|
62
|
+
|
63
|
+
@results.setter
|
64
|
+
def results(self, results):
|
65
|
+
r"""Sets the results of this ListAppDetailsResponse.
|
66
|
+
|
67
|
+
查询结果
|
68
|
+
|
69
|
+
:param results: The results of this ListAppDetailsResponse.
|
70
|
+
:type results: list[:class:`huaweicloudsdkmsgsms.v2.SmsAppQueryResp`]
|
71
|
+
"""
|
72
|
+
self._results = results
|
73
|
+
|
74
|
+
@property
|
75
|
+
def total(self):
|
76
|
+
r"""Gets the total of this ListAppDetailsResponse.
|
77
|
+
|
78
|
+
总数
|
79
|
+
|
80
|
+
:return: The total of this ListAppDetailsResponse.
|
81
|
+
:rtype: int
|
82
|
+
"""
|
83
|
+
return self._total
|
84
|
+
|
85
|
+
@total.setter
|
86
|
+
def total(self, total):
|
87
|
+
r"""Sets the total of this ListAppDetailsResponse.
|
88
|
+
|
89
|
+
总数
|
90
|
+
|
91
|
+
:param total: The total of this ListAppDetailsResponse.
|
92
|
+
:type total: int
|
93
|
+
"""
|
94
|
+
self._total = total
|
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, ListAppDetailsResponse):
|
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
|