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,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 ListTemplateDetailsResponse(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[SmsTemplateResp]',
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"""ListTemplateDetailsResponse
32
+
33
+ The model defined in huaweicloud sdk
34
+
35
+ :param results: 查询结果
36
+ :type results: list[:class:`huaweicloudsdkmsgsms.v2.SmsTemplateResp`]
37
+ :param total: 总数
38
+ :type total: int
39
+ """
40
+
41
+ super(ListTemplateDetailsResponse, 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 ListTemplateDetailsResponse.
55
+
56
+ 查询结果
57
+
58
+ :return: The results of this ListTemplateDetailsResponse.
59
+ :rtype: list[:class:`huaweicloudsdkmsgsms.v2.SmsTemplateResp`]
60
+ """
61
+ return self._results
62
+
63
+ @results.setter
64
+ def results(self, results):
65
+ r"""Sets the results of this ListTemplateDetailsResponse.
66
+
67
+ 查询结果
68
+
69
+ :param results: The results of this ListTemplateDetailsResponse.
70
+ :type results: list[:class:`huaweicloudsdkmsgsms.v2.SmsTemplateResp`]
71
+ """
72
+ self._results = results
73
+
74
+ @property
75
+ def total(self):
76
+ r"""Gets the total of this ListTemplateDetailsResponse.
77
+
78
+ 总数
79
+
80
+ :return: The total of this ListTemplateDetailsResponse.
81
+ :rtype: int
82
+ """
83
+ return self._total
84
+
85
+ @total.setter
86
+ def total(self, total):
87
+ r"""Sets the total of this ListTemplateDetailsResponse.
88
+
89
+ 总数
90
+
91
+ :param total: The total of this ListTemplateDetailsResponse.
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, ListTemplateDetailsResponse):
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
@@ -0,0 +1,114 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class ListTemplateVarilableDetailsRequest:
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
+ }
22
+
23
+ attribute_map = {
24
+ 'id': 'id'
25
+ }
26
+
27
+ def __init__(self, id=None):
28
+ r"""ListTemplateVarilableDetailsRequest
29
+
30
+ The model defined in huaweicloud sdk
31
+
32
+ :param id: 模板ID
33
+ :type id: str
34
+ """
35
+
36
+
37
+
38
+ self._id = None
39
+ self.discriminator = None
40
+
41
+ self.id = id
42
+
43
+ @property
44
+ def id(self):
45
+ r"""Gets the id of this ListTemplateVarilableDetailsRequest.
46
+
47
+ 模板ID
48
+
49
+ :return: The id of this ListTemplateVarilableDetailsRequest.
50
+ :rtype: str
51
+ """
52
+ return self._id
53
+
54
+ @id.setter
55
+ def id(self, id):
56
+ r"""Sets the id of this ListTemplateVarilableDetailsRequest.
57
+
58
+ 模板ID
59
+
60
+ :param id: The id of this ListTemplateVarilableDetailsRequest.
61
+ :type id: str
62
+ """
63
+ self._id = id
64
+
65
+ def to_dict(self):
66
+ """Returns the model properties as a dict"""
67
+ result = {}
68
+
69
+ for attr, _ in six.iteritems(self.openapi_types):
70
+ value = getattr(self, attr)
71
+ if isinstance(value, list):
72
+ result[attr] = list(map(
73
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
74
+ value
75
+ ))
76
+ elif hasattr(value, "to_dict"):
77
+ result[attr] = value.to_dict()
78
+ elif isinstance(value, dict):
79
+ result[attr] = dict(map(
80
+ lambda item: (item[0], item[1].to_dict())
81
+ if hasattr(item[1], "to_dict") else item,
82
+ value.items()
83
+ ))
84
+ else:
85
+ if attr in self.sensitive_list:
86
+ result[attr] = "****"
87
+ else:
88
+ result[attr] = value
89
+
90
+ return result
91
+
92
+ def to_str(self):
93
+ """Returns the string representation of the model"""
94
+ import simplejson as json
95
+ if six.PY2:
96
+ import sys
97
+ reload(sys)
98
+ sys.setdefaultencoding("utf-8")
99
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
100
+
101
+ def __repr__(self):
102
+ """For `print`"""
103
+ return self.to_str()
104
+
105
+ def __eq__(self, other):
106
+ """Returns true if both objects are equal"""
107
+ if not isinstance(other, ListTemplateVarilableDetailsRequest):
108
+ return False
109
+
110
+ return self.__dict__ == other.__dict__
111
+
112
+ def __ne__(self, other):
113
+ """Returns true if both objects are not equal"""
114
+ 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 ListTemplateVarilableDetailsResponse(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[ApiTemplateVariable]',
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"""ListTemplateVarilableDetailsResponse
32
+
33
+ The model defined in huaweicloud sdk
34
+
35
+ :param results: 查询结果
36
+ :type results: list[:class:`huaweicloudsdkmsgsms.v2.ApiTemplateVariable`]
37
+ :param total: 总数
38
+ :type total: int
39
+ """
40
+
41
+ super(ListTemplateVarilableDetailsResponse, 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 ListTemplateVarilableDetailsResponse.
55
+
56
+ 查询结果
57
+
58
+ :return: The results of this ListTemplateVarilableDetailsResponse.
59
+ :rtype: list[:class:`huaweicloudsdkmsgsms.v2.ApiTemplateVariable`]
60
+ """
61
+ return self._results
62
+
63
+ @results.setter
64
+ def results(self, results):
65
+ r"""Sets the results of this ListTemplateVarilableDetailsResponse.
66
+
67
+ 查询结果
68
+
69
+ :param results: The results of this ListTemplateVarilableDetailsResponse.
70
+ :type results: list[:class:`huaweicloudsdkmsgsms.v2.ApiTemplateVariable`]
71
+ """
72
+ self._results = results
73
+
74
+ @property
75
+ def total(self):
76
+ r"""Gets the total of this ListTemplateVarilableDetailsResponse.
77
+
78
+ 总数
79
+
80
+ :return: The total of this ListTemplateVarilableDetailsResponse.
81
+ :rtype: int
82
+ """
83
+ return self._total
84
+
85
+ @total.setter
86
+ def total(self, total):
87
+ r"""Sets the total of this ListTemplateVarilableDetailsResponse.
88
+
89
+ 总数
90
+
91
+ :param total: The total of this ListTemplateVarilableDetailsResponse.
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, ListTemplateVarilableDetailsResponse):
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
@@ -0,0 +1,114 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class ShowAppCountRequest:
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
+ 'region': 'str'
21
+ }
22
+
23
+ attribute_map = {
24
+ 'region': 'region'
25
+ }
26
+
27
+ def __init__(self, region=None):
28
+ r"""ShowAppCountRequest
29
+
30
+ The model defined in huaweicloud sdk
31
+
32
+ :param region: 地域 1. cn:国内 2. intl:国际
33
+ :type region: str
34
+ """
35
+
36
+
37
+
38
+ self._region = None
39
+ self.discriminator = None
40
+
41
+ self.region = region
42
+
43
+ @property
44
+ def region(self):
45
+ r"""Gets the region of this ShowAppCountRequest.
46
+
47
+ 地域 1. cn:国内 2. intl:国际
48
+
49
+ :return: The region of this ShowAppCountRequest.
50
+ :rtype: str
51
+ """
52
+ return self._region
53
+
54
+ @region.setter
55
+ def region(self, region):
56
+ r"""Sets the region of this ShowAppCountRequest.
57
+
58
+ 地域 1. cn:国内 2. intl:国际
59
+
60
+ :param region: The region of this ShowAppCountRequest.
61
+ :type region: str
62
+ """
63
+ self._region = region
64
+
65
+ def to_dict(self):
66
+ """Returns the model properties as a dict"""
67
+ result = {}
68
+
69
+ for attr, _ in six.iteritems(self.openapi_types):
70
+ value = getattr(self, attr)
71
+ if isinstance(value, list):
72
+ result[attr] = list(map(
73
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
74
+ value
75
+ ))
76
+ elif hasattr(value, "to_dict"):
77
+ result[attr] = value.to_dict()
78
+ elif isinstance(value, dict):
79
+ result[attr] = dict(map(
80
+ lambda item: (item[0], item[1].to_dict())
81
+ if hasattr(item[1], "to_dict") else item,
82
+ value.items()
83
+ ))
84
+ else:
85
+ if attr in self.sensitive_list:
86
+ result[attr] = "****"
87
+ else:
88
+ result[attr] = value
89
+
90
+ return result
91
+
92
+ def to_str(self):
93
+ """Returns the string representation of the model"""
94
+ import simplejson as json
95
+ if six.PY2:
96
+ import sys
97
+ reload(sys)
98
+ sys.setdefaultencoding("utf-8")
99
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
100
+
101
+ def __repr__(self):
102
+ """For `print`"""
103
+ return self.to_str()
104
+
105
+ def __eq__(self, other):
106
+ """Returns true if both objects are equal"""
107
+ if not isinstance(other, ShowAppCountRequest):
108
+ return False
109
+
110
+ return self.__dict__ == other.__dict__
111
+
112
+ def __ne__(self, other):
113
+ """Returns true if both objects are not equal"""
114
+ 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 ShowAppCountResponse(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
+ 'total': 'int',
22
+ 'used': 'int'
23
+ }
24
+
25
+ attribute_map = {
26
+ 'total': 'total',
27
+ 'used': 'used'
28
+ }
29
+
30
+ def __init__(self, total=None, used=None):
31
+ r"""ShowAppCountResponse
32
+
33
+ The model defined in huaweicloud sdk
34
+
35
+ :param total: 总数
36
+ :type total: int
37
+ :param used: 已使用数
38
+ :type used: int
39
+ """
40
+
41
+ super(ShowAppCountResponse, self).__init__()
42
+
43
+ self._total = None
44
+ self._used = None
45
+ self.discriminator = None
46
+
47
+ if total is not None:
48
+ self.total = total
49
+ if used is not None:
50
+ self.used = used
51
+
52
+ @property
53
+ def total(self):
54
+ r"""Gets the total of this ShowAppCountResponse.
55
+
56
+ 总数
57
+
58
+ :return: The total of this ShowAppCountResponse.
59
+ :rtype: int
60
+ """
61
+ return self._total
62
+
63
+ @total.setter
64
+ def total(self, total):
65
+ r"""Sets the total of this ShowAppCountResponse.
66
+
67
+ 总数
68
+
69
+ :param total: The total of this ShowAppCountResponse.
70
+ :type total: int
71
+ """
72
+ self._total = total
73
+
74
+ @property
75
+ def used(self):
76
+ r"""Gets the used of this ShowAppCountResponse.
77
+
78
+ 已使用数
79
+
80
+ :return: The used of this ShowAppCountResponse.
81
+ :rtype: int
82
+ """
83
+ return self._used
84
+
85
+ @used.setter
86
+ def used(self, used):
87
+ r"""Sets the used of this ShowAppCountResponse.
88
+
89
+ 已使用数
90
+
91
+ :param used: The used of this ShowAppCountResponse.
92
+ :type used: int
93
+ """
94
+ self._used = used
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, ShowAppCountResponse):
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