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,171 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class SmsTemplateVariableAttrReq:
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
+ 'variable_desc': 'str',
21
+ 'variable_index': 'int',
22
+ 'variable_type': 'str'
23
+ }
24
+
25
+ attribute_map = {
26
+ 'variable_desc': 'variable_desc',
27
+ 'variable_index': 'variable_index',
28
+ 'variable_type': 'variable_type'
29
+ }
30
+
31
+ def __init__(self, variable_desc=None, variable_index=None, variable_type=None):
32
+ r"""SmsTemplateVariableAttrReq
33
+
34
+ The model defined in huaweicloud sdk
35
+
36
+ :param variable_desc: 变量说明,当变量类型为TEXT时,必填
37
+ :type variable_desc: str
38
+ :param variable_index: 变量索引,对应模板内容变量索引
39
+ :type variable_index: int
40
+ :param variable_type: 变量类型,目前支持:PHONE|CHARDIGIT|DATETIME|MONEY|TEXT|NEWTEXT|LONGTEXT
41
+ :type variable_type: str
42
+ """
43
+
44
+
45
+
46
+ self._variable_desc = None
47
+ self._variable_index = None
48
+ self._variable_type = None
49
+ self.discriminator = None
50
+
51
+ if variable_desc is not None:
52
+ self.variable_desc = variable_desc
53
+ self.variable_index = variable_index
54
+ self.variable_type = variable_type
55
+
56
+ @property
57
+ def variable_desc(self):
58
+ r"""Gets the variable_desc of this SmsTemplateVariableAttrReq.
59
+
60
+ 变量说明,当变量类型为TEXT时,必填
61
+
62
+ :return: The variable_desc of this SmsTemplateVariableAttrReq.
63
+ :rtype: str
64
+ """
65
+ return self._variable_desc
66
+
67
+ @variable_desc.setter
68
+ def variable_desc(self, variable_desc):
69
+ r"""Sets the variable_desc of this SmsTemplateVariableAttrReq.
70
+
71
+ 变量说明,当变量类型为TEXT时,必填
72
+
73
+ :param variable_desc: The variable_desc of this SmsTemplateVariableAttrReq.
74
+ :type variable_desc: str
75
+ """
76
+ self._variable_desc = variable_desc
77
+
78
+ @property
79
+ def variable_index(self):
80
+ r"""Gets the variable_index of this SmsTemplateVariableAttrReq.
81
+
82
+ 变量索引,对应模板内容变量索引
83
+
84
+ :return: The variable_index of this SmsTemplateVariableAttrReq.
85
+ :rtype: int
86
+ """
87
+ return self._variable_index
88
+
89
+ @variable_index.setter
90
+ def variable_index(self, variable_index):
91
+ r"""Sets the variable_index of this SmsTemplateVariableAttrReq.
92
+
93
+ 变量索引,对应模板内容变量索引
94
+
95
+ :param variable_index: The variable_index of this SmsTemplateVariableAttrReq.
96
+ :type variable_index: int
97
+ """
98
+ self._variable_index = variable_index
99
+
100
+ @property
101
+ def variable_type(self):
102
+ r"""Gets the variable_type of this SmsTemplateVariableAttrReq.
103
+
104
+ 变量类型,目前支持:PHONE|CHARDIGIT|DATETIME|MONEY|TEXT|NEWTEXT|LONGTEXT
105
+
106
+ :return: The variable_type of this SmsTemplateVariableAttrReq.
107
+ :rtype: str
108
+ """
109
+ return self._variable_type
110
+
111
+ @variable_type.setter
112
+ def variable_type(self, variable_type):
113
+ r"""Sets the variable_type of this SmsTemplateVariableAttrReq.
114
+
115
+ 变量类型,目前支持:PHONE|CHARDIGIT|DATETIME|MONEY|TEXT|NEWTEXT|LONGTEXT
116
+
117
+ :param variable_type: The variable_type of this SmsTemplateVariableAttrReq.
118
+ :type variable_type: str
119
+ """
120
+ self._variable_type = variable_type
121
+
122
+ def to_dict(self):
123
+ """Returns the model properties as a dict"""
124
+ result = {}
125
+
126
+ for attr, _ in six.iteritems(self.openapi_types):
127
+ value = getattr(self, attr)
128
+ if isinstance(value, list):
129
+ result[attr] = list(map(
130
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
131
+ value
132
+ ))
133
+ elif hasattr(value, "to_dict"):
134
+ result[attr] = value.to_dict()
135
+ elif isinstance(value, dict):
136
+ result[attr] = dict(map(
137
+ lambda item: (item[0], item[1].to_dict())
138
+ if hasattr(item[1], "to_dict") else item,
139
+ value.items()
140
+ ))
141
+ else:
142
+ if attr in self.sensitive_list:
143
+ result[attr] = "****"
144
+ else:
145
+ result[attr] = value
146
+
147
+ return result
148
+
149
+ def to_str(self):
150
+ """Returns the string representation of the model"""
151
+ import simplejson as json
152
+ if six.PY2:
153
+ import sys
154
+ reload(sys)
155
+ sys.setdefaultencoding("utf-8")
156
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
157
+
158
+ def __repr__(self):
159
+ """For `print`"""
160
+ return self.to_str()
161
+
162
+ def __eq__(self, other):
163
+ """Returns true if both objects are equal"""
164
+ if not isinstance(other, SmsTemplateVariableAttrReq):
165
+ return False
166
+
167
+ return self.__dict__ == other.__dict__
168
+
169
+ def __ne__(self, other):
170
+ """Returns true if both objects are not equal"""
171
+ 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 TenantBasic:
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
+ 'customer_id': 'str',
21
+ 'customer_name': 'str',
22
+ 'enterprise_name': 'str'
23
+ }
24
+
25
+ attribute_map = {
26
+ 'customer_id': 'customer_id',
27
+ 'customer_name': 'customer_name',
28
+ 'enterprise_name': 'enterprise_name'
29
+ }
30
+
31
+ def __init__(self, customer_id=None, customer_name=None, enterprise_name=None):
32
+ r"""TenantBasic
33
+
34
+ The model defined in huaweicloud sdk
35
+
36
+ :param customer_id: 租户custom id
37
+ :type customer_id: str
38
+ :param customer_name: 租户custom name
39
+ :type customer_name: str
40
+ :param enterprise_name: 租户企业名称
41
+ :type enterprise_name: str
42
+ """
43
+
44
+
45
+
46
+ self._customer_id = None
47
+ self._customer_name = None
48
+ self._enterprise_name = None
49
+ self.discriminator = None
50
+
51
+ if customer_id is not None:
52
+ self.customer_id = customer_id
53
+ if customer_name is not None:
54
+ self.customer_name = customer_name
55
+ if enterprise_name is not None:
56
+ self.enterprise_name = enterprise_name
57
+
58
+ @property
59
+ def customer_id(self):
60
+ r"""Gets the customer_id of this TenantBasic.
61
+
62
+ 租户custom id
63
+
64
+ :return: The customer_id of this TenantBasic.
65
+ :rtype: str
66
+ """
67
+ return self._customer_id
68
+
69
+ @customer_id.setter
70
+ def customer_id(self, customer_id):
71
+ r"""Sets the customer_id of this TenantBasic.
72
+
73
+ 租户custom id
74
+
75
+ :param customer_id: The customer_id of this TenantBasic.
76
+ :type customer_id: str
77
+ """
78
+ self._customer_id = customer_id
79
+
80
+ @property
81
+ def customer_name(self):
82
+ r"""Gets the customer_name of this TenantBasic.
83
+
84
+ 租户custom name
85
+
86
+ :return: The customer_name of this TenantBasic.
87
+ :rtype: str
88
+ """
89
+ return self._customer_name
90
+
91
+ @customer_name.setter
92
+ def customer_name(self, customer_name):
93
+ r"""Sets the customer_name of this TenantBasic.
94
+
95
+ 租户custom name
96
+
97
+ :param customer_name: The customer_name of this TenantBasic.
98
+ :type customer_name: str
99
+ """
100
+ self._customer_name = customer_name
101
+
102
+ @property
103
+ def enterprise_name(self):
104
+ r"""Gets the enterprise_name of this TenantBasic.
105
+
106
+ 租户企业名称
107
+
108
+ :return: The enterprise_name of this TenantBasic.
109
+ :rtype: str
110
+ """
111
+ return self._enterprise_name
112
+
113
+ @enterprise_name.setter
114
+ def enterprise_name(self, enterprise_name):
115
+ r"""Sets the enterprise_name of this TenantBasic.
116
+
117
+ 租户企业名称
118
+
119
+ :param enterprise_name: The enterprise_name of this TenantBasic.
120
+ :type enterprise_name: str
121
+ """
122
+ self._enterprise_name = enterprise_name
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, TenantBasic):
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
@@ -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 UpdateAppRequest:
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': 'SmsAppUpdateReq'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'id': 'id',
26
+ 'body': 'body'
27
+ }
28
+
29
+ def __init__(self, id=None, body=None):
30
+ r"""UpdateAppRequest
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param id: 应用主键ID
35
+ :type id: str
36
+ :param body: Body of the UpdateAppRequest
37
+ :type body: :class:`huaweicloudsdkmsgsms.v2.SmsAppUpdateReq`
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 UpdateAppRequest.
53
+
54
+ 应用主键ID
55
+
56
+ :return: The id of this UpdateAppRequest.
57
+ :rtype: str
58
+ """
59
+ return self._id
60
+
61
+ @id.setter
62
+ def id(self, id):
63
+ r"""Sets the id of this UpdateAppRequest.
64
+
65
+ 应用主键ID
66
+
67
+ :param id: The id of this UpdateAppRequest.
68
+ :type id: str
69
+ """
70
+ self._id = id
71
+
72
+ @property
73
+ def body(self):
74
+ r"""Gets the body of this UpdateAppRequest.
75
+
76
+ :return: The body of this UpdateAppRequest.
77
+ :rtype: :class:`huaweicloudsdkmsgsms.v2.SmsAppUpdateReq`
78
+ """
79
+ return self._body
80
+
81
+ @body.setter
82
+ def body(self, body):
83
+ r"""Sets the body of this UpdateAppRequest.
84
+
85
+ :param body: The body of this UpdateAppRequest.
86
+ :type body: :class:`huaweicloudsdkmsgsms.v2.SmsAppUpdateReq`
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, UpdateAppRequest):
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 UpdateAppResponse(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
+ }
25
+
26
+ attribute_map = {
27
+ 'app_key': 'app_key',
28
+ 'app_name': 'app_name',
29
+ 'id': 'id'
30
+ }
31
+
32
+ def __init__(self, app_key=None, app_name=None, id=None):
33
+ r"""UpdateAppResponse
34
+
35
+ The model defined in huaweicloud sdk
36
+
37
+ :param app_key: 应用KEY
38
+ :type app_key: str
39
+ :param app_name: 应用名称
40
+ :type app_name: str
41
+ :param id: 应用主键ID
42
+ :type id: str
43
+ """
44
+
45
+ super(UpdateAppResponse, self).__init__()
46
+
47
+ self._app_key = None
48
+ self._app_name = None
49
+ self._id = None
50
+ self.discriminator = None
51
+
52
+ if app_key is not None:
53
+ self.app_key = app_key
54
+ if app_name is not None:
55
+ self.app_name = app_name
56
+ if id is not None:
57
+ self.id = id
58
+
59
+ @property
60
+ def app_key(self):
61
+ r"""Gets the app_key of this UpdateAppResponse.
62
+
63
+ 应用KEY
64
+
65
+ :return: The app_key of this UpdateAppResponse.
66
+ :rtype: str
67
+ """
68
+ return self._app_key
69
+
70
+ @app_key.setter
71
+ def app_key(self, app_key):
72
+ r"""Sets the app_key of this UpdateAppResponse.
73
+
74
+ 应用KEY
75
+
76
+ :param app_key: The app_key of this UpdateAppResponse.
77
+ :type app_key: str
78
+ """
79
+ self._app_key = app_key
80
+
81
+ @property
82
+ def app_name(self):
83
+ r"""Gets the app_name of this UpdateAppResponse.
84
+
85
+ 应用名称
86
+
87
+ :return: The app_name of this UpdateAppResponse.
88
+ :rtype: str
89
+ """
90
+ return self._app_name
91
+
92
+ @app_name.setter
93
+ def app_name(self, app_name):
94
+ r"""Sets the app_name of this UpdateAppResponse.
95
+
96
+ 应用名称
97
+
98
+ :param app_name: The app_name of this UpdateAppResponse.
99
+ :type app_name: str
100
+ """
101
+ self._app_name = app_name
102
+
103
+ @property
104
+ def id(self):
105
+ r"""Gets the id of this UpdateAppResponse.
106
+
107
+ 应用主键ID
108
+
109
+ :return: The id of this UpdateAppResponse.
110
+ :rtype: str
111
+ """
112
+ return self._id
113
+
114
+ @id.setter
115
+ def id(self, id):
116
+ r"""Sets the id of this UpdateAppResponse.
117
+
118
+ 应用主键ID
119
+
120
+ :param id: The id of this UpdateAppResponse.
121
+ :type id: str
122
+ """
123
+ self._id = id
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, UpdateAppResponse):
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