huaweicloudsdkgaussdb 3.1.164__py3-none-any.whl → 3.1.166__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 (63) hide show
  1. huaweicloudsdkgaussdb/v3/__init__.py +54 -0
  2. huaweicloudsdkgaussdb/v3/gaussdb_async_client.py +1239 -48
  3. huaweicloudsdkgaussdb/v3/gaussdb_client.py +1239 -48
  4. huaweicloudsdkgaussdb/v3/model/__init__.py +54 -0
  5. huaweicloudsdkgaussdb/v3/model/audit_log_detail.py +231 -0
  6. huaweicloudsdkgaussdb/v3/model/audit_log_download_link_request_body.py +114 -0
  7. huaweicloudsdkgaussdb/v3/model/batch_upgrade_databases_request.py +140 -0
  8. huaweicloudsdkgaussdb/v3/model/batch_upgrade_databases_request_body.py +171 -0
  9. huaweicloudsdkgaussdb/v3/model/batch_upgrade_databases_response.py +116 -0
  10. huaweicloudsdkgaussdb/v3/model/create_proxy_dns_name_request.py +171 -0
  11. huaweicloudsdkgaussdb/v3/model/create_proxy_dns_name_response.py +116 -0
  12. huaweicloudsdkgaussdb/v3/model/database_tables_info.py +144 -0
  13. huaweicloudsdkgaussdb/v3/model/delete_proxy_private_dns_name_request.py +171 -0
  14. huaweicloudsdkgaussdb/v3/model/delete_proxy_private_dns_name_response.py +116 -0
  15. huaweicloudsdkgaussdb/v3/model/htap_error_log_detail_response_error_log_list.py +226 -0
  16. huaweicloudsdkgaussdb/v3/model/htap_error_log_query_request_body.py +255 -0
  17. huaweicloudsdkgaussdb/v3/model/htap_lts_config_response_instance.py +284 -0
  18. huaweicloudsdkgaussdb/v3/model/htap_lts_config_response_instance_lts_configs.py +138 -0
  19. huaweicloudsdkgaussdb/v3/model/htap_lts_config_response_lts_configs.py +198 -0
  20. huaweicloudsdkgaussdb/v3/model/htap_node_info_response_body_node_list.py +170 -0
  21. huaweicloudsdkgaussdb/v3/model/list_audit_logs_request.py +255 -0
  22. huaweicloudsdkgaussdb/v3/model/list_audit_logs_response.py +145 -0
  23. huaweicloudsdkgaussdb/v3/model/list_instance_node_request.py +142 -0
  24. huaweicloudsdkgaussdb/v3/model/list_instance_node_response.py +116 -0
  25. huaweicloudsdkgaussdb/v3/model/modify_star_rocks_security_group_req.py +114 -0
  26. huaweicloudsdkgaussdb/v3/model/modify_star_rocks_security_group_request.py +168 -0
  27. huaweicloudsdkgaussdb/v3/model/modify_star_rocks_security_group_response.py +116 -0
  28. huaweicloudsdkgaussdb/v3/model/proxy_flavor.py +260 -0
  29. huaweicloudsdkgaussdb/v3/model/proxy_flavor_group.py +144 -0
  30. huaweicloudsdkgaussdb/v3/model/query_data_base_request_v3.py +144 -0
  31. huaweicloudsdkgaussdb/v3/model/query_table_request_v3.py +202 -0
  32. huaweicloudsdkgaussdb/v3/model/rds_error_log_download.py +289 -0
  33. huaweicloudsdkgaussdb/v3/model/set_audit_log_policy_request.py +168 -0
  34. huaweicloudsdkgaussdb/v3/model/set_audit_log_policy_request_body.py +172 -0
  35. huaweicloudsdkgaussdb/v3/model/set_audit_log_policy_response.py +145 -0
  36. huaweicloudsdkgaussdb/v3/model/show_audit_log_download_link_request.py +168 -0
  37. huaweicloudsdkgaussdb/v3/model/show_audit_log_download_link_response.py +116 -0
  38. huaweicloudsdkgaussdb/v3/model/show_audit_log_policy_request.py +143 -0
  39. huaweicloudsdkgaussdb/v3/model/show_audit_log_policy_response.py +174 -0
  40. huaweicloudsdkgaussdb/v3/model/show_error_log_download_link_request.py +171 -0
  41. huaweicloudsdkgaussdb/v3/model/show_error_log_download_link_response.py +145 -0
  42. huaweicloudsdkgaussdb/v3/model/show_htap_error_log_detail_request.py +167 -0
  43. huaweicloudsdkgaussdb/v3/model/show_htap_error_log_detail_response.py +116 -0
  44. huaweicloudsdkgaussdb/v3/model/show_htap_lts_config_request.py +259 -0
  45. huaweicloudsdkgaussdb/v3/model/show_htap_lts_config_response.py +145 -0
  46. huaweicloudsdkgaussdb/v3/model/show_instance_databases_for_htap_request.py +225 -0
  47. huaweicloudsdkgaussdb/v3/model/show_instance_databases_for_htap_response.py +174 -0
  48. huaweicloudsdkgaussdb/v3/model/show_instance_tables_for_htap_request.py +225 -0
  49. huaweicloudsdkgaussdb/v3/model/show_instance_tables_for_htap_response.py +145 -0
  50. huaweicloudsdkgaussdb/v3/model/show_proxy_flavors_by_az_code_request.py +171 -0
  51. huaweicloudsdkgaussdb/v3/model/show_proxy_flavors_by_az_code_response.py +116 -0
  52. huaweicloudsdkgaussdb/v3/model/show_table_meta_info_request.py +201 -0
  53. huaweicloudsdkgaussdb/v3/model/show_table_meta_info_response.py +174 -0
  54. huaweicloudsdkgaussdb/v3/model/table_meta_info.py +260 -0
  55. huaweicloudsdkgaussdb/v3/model/update_proxy_private_dns_name.py +142 -0
  56. huaweicloudsdkgaussdb/v3/model/update_proxy_private_dns_name_request.py +196 -0
  57. huaweicloudsdkgaussdb/v3/model/update_proxy_private_dns_name_response.py +116 -0
  58. huaweicloudsdkgaussdb/v3/model/upgrade_databases_single_instance.py +142 -0
  59. {huaweicloudsdkgaussdb-3.1.164.dist-info → huaweicloudsdkgaussdb-3.1.166.dist-info}/METADATA +9 -10
  60. {huaweicloudsdkgaussdb-3.1.164.dist-info → huaweicloudsdkgaussdb-3.1.166.dist-info}/RECORD +62 -9
  61. {huaweicloudsdkgaussdb-3.1.164.dist-info → huaweicloudsdkgaussdb-3.1.166.dist-info}/WHEEL +1 -2
  62. huaweicloudsdkgaussdb-3.1.164.dist-info/top_level.txt +0 -1
  63. {huaweicloudsdkgaussdb-3.1.164.dist-info → huaweicloudsdkgaussdb-3.1.166.dist-info/licenses}/LICENSE +0 -0
@@ -0,0 +1,170 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class HtapNodeInfoResponseBodyNodeList:
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
+ 'node_id': 'str',
21
+ 'node_name': 'str',
22
+ 'role': 'str'
23
+ }
24
+
25
+ attribute_map = {
26
+ 'node_id': 'node_id',
27
+ 'node_name': 'node_name',
28
+ 'role': 'role'
29
+ }
30
+
31
+ def __init__(self, node_id=None, node_name=None, role=None):
32
+ r"""HtapNodeInfoResponseBodyNodeList
33
+
34
+ The model defined in huaweicloud sdk
35
+
36
+ :param node_id: **参数解释**: HTAP标准版实例节点ID。 **取值范围**: 不涉及。
37
+ :type node_id: str
38
+ :param node_name: **参数解释**: HTAP标准版实例节点名称。 **取值范围**: 不涉及。
39
+ :type node_name: str
40
+ :param role: **参数解释**: HTAP标准版实例节点角色。 **取值范围**: - fe-leader - fe-follower - fe-observer - be
41
+ :type role: str
42
+ """
43
+
44
+
45
+
46
+ self._node_id = None
47
+ self._node_name = None
48
+ self._role = None
49
+ self.discriminator = None
50
+
51
+ self.node_id = node_id
52
+ self.node_name = node_name
53
+ self.role = role
54
+
55
+ @property
56
+ def node_id(self):
57
+ r"""Gets the node_id of this HtapNodeInfoResponseBodyNodeList.
58
+
59
+ **参数解释**: HTAP标准版实例节点ID。 **取值范围**: 不涉及。
60
+
61
+ :return: The node_id of this HtapNodeInfoResponseBodyNodeList.
62
+ :rtype: str
63
+ """
64
+ return self._node_id
65
+
66
+ @node_id.setter
67
+ def node_id(self, node_id):
68
+ r"""Sets the node_id of this HtapNodeInfoResponseBodyNodeList.
69
+
70
+ **参数解释**: HTAP标准版实例节点ID。 **取值范围**: 不涉及。
71
+
72
+ :param node_id: The node_id of this HtapNodeInfoResponseBodyNodeList.
73
+ :type node_id: str
74
+ """
75
+ self._node_id = node_id
76
+
77
+ @property
78
+ def node_name(self):
79
+ r"""Gets the node_name of this HtapNodeInfoResponseBodyNodeList.
80
+
81
+ **参数解释**: HTAP标准版实例节点名称。 **取值范围**: 不涉及。
82
+
83
+ :return: The node_name of this HtapNodeInfoResponseBodyNodeList.
84
+ :rtype: str
85
+ """
86
+ return self._node_name
87
+
88
+ @node_name.setter
89
+ def node_name(self, node_name):
90
+ r"""Sets the node_name of this HtapNodeInfoResponseBodyNodeList.
91
+
92
+ **参数解释**: HTAP标准版实例节点名称。 **取值范围**: 不涉及。
93
+
94
+ :param node_name: The node_name of this HtapNodeInfoResponseBodyNodeList.
95
+ :type node_name: str
96
+ """
97
+ self._node_name = node_name
98
+
99
+ @property
100
+ def role(self):
101
+ r"""Gets the role of this HtapNodeInfoResponseBodyNodeList.
102
+
103
+ **参数解释**: HTAP标准版实例节点角色。 **取值范围**: - fe-leader - fe-follower - fe-observer - be
104
+
105
+ :return: The role of this HtapNodeInfoResponseBodyNodeList.
106
+ :rtype: str
107
+ """
108
+ return self._role
109
+
110
+ @role.setter
111
+ def role(self, role):
112
+ r"""Sets the role of this HtapNodeInfoResponseBodyNodeList.
113
+
114
+ **参数解释**: HTAP标准版实例节点角色。 **取值范围**: - fe-leader - fe-follower - fe-observer - be
115
+
116
+ :param role: The role of this HtapNodeInfoResponseBodyNodeList.
117
+ :type role: str
118
+ """
119
+ self._role = role
120
+
121
+ def to_dict(self):
122
+ """Returns the model properties as a dict"""
123
+ result = {}
124
+
125
+ for attr, _ in six.iteritems(self.openapi_types):
126
+ value = getattr(self, attr)
127
+ if isinstance(value, list):
128
+ result[attr] = list(map(
129
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
130
+ value
131
+ ))
132
+ elif hasattr(value, "to_dict"):
133
+ result[attr] = value.to_dict()
134
+ elif isinstance(value, dict):
135
+ result[attr] = dict(map(
136
+ lambda item: (item[0], item[1].to_dict())
137
+ if hasattr(item[1], "to_dict") else item,
138
+ value.items()
139
+ ))
140
+ else:
141
+ if attr in self.sensitive_list:
142
+ result[attr] = "****"
143
+ else:
144
+ result[attr] = value
145
+
146
+ return result
147
+
148
+ def to_str(self):
149
+ """Returns the string representation of the model"""
150
+ import simplejson as json
151
+ if six.PY2:
152
+ import sys
153
+ reload(sys)
154
+ sys.setdefaultencoding("utf-8")
155
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
156
+
157
+ def __repr__(self):
158
+ """For `print`"""
159
+ return self.to_str()
160
+
161
+ def __eq__(self, other):
162
+ """Returns true if both objects are equal"""
163
+ if not isinstance(other, HtapNodeInfoResponseBodyNodeList):
164
+ return False
165
+
166
+ return self.__dict__ == other.__dict__
167
+
168
+ def __ne__(self, other):
169
+ """Returns true if both objects are not equal"""
170
+ return not self == other
@@ -0,0 +1,255 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class ListAuditLogsRequest:
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
+ 'x_language': 'str',
21
+ 'instance_id': 'str',
22
+ 'start_time': 'str',
23
+ 'end_time': 'str',
24
+ 'offset': 'int',
25
+ 'limit': 'int'
26
+ }
27
+
28
+ attribute_map = {
29
+ 'x_language': 'X-Language',
30
+ 'instance_id': 'instance_id',
31
+ 'start_time': 'start_time',
32
+ 'end_time': 'end_time',
33
+ 'offset': 'offset',
34
+ 'limit': 'limit'
35
+ }
36
+
37
+ def __init__(self, x_language=None, instance_id=None, start_time=None, end_time=None, offset=None, limit=None):
38
+ r"""ListAuditLogsRequest
39
+
40
+ The model defined in huaweicloud sdk
41
+
42
+ :param x_language: **参数解释**: 请求语言类型。 **约束限制**: 不涉及。 **取值范围**: - en-us - zh-cn **默认取值**: en-us。
43
+ :type x_language: str
44
+ :param instance_id: **参数解释**: 实例ID,此参数是实例的唯一标识。 **约束限制**: 不涉及。 **取值范围**: 只能由英文字母、数字组成,后缀为in07,长度为36个字符。 **默认取值**: 不涉及。
45
+ :type instance_id: str
46
+ :param start_time: **参数解释**: 查询开始时间。 **约束限制**: 格式为“yyyy-mm-ddThh:mm:ssZ”。 其中,T指某个时间的开始;Z指时区偏移量,例如北京时间偏移显示为+0800。。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
47
+ :type start_time: str
48
+ :param end_time: **参数解释**: 查询结束时间。 **约束限制**: 格式为“yyyy-mm-ddThh:mm:ssZ”, 大于查询开始时间,时间跨度不超过30天, 其中,T指某个时间的开始,Z指时区偏移量,例如北京时间偏移显示为+0800。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
49
+ :type end_time: str
50
+ :param offset: **参数解释**: 索引位置,偏移量。从第一条数据偏移offset条数据后开始查询。 **约束限制**: 必须为整数,不能为负数。 **取值范围**: ≥0 **默认取值**: 0
51
+ :type offset: int
52
+ :param limit: **参数解释**: 查询记录数。 **约束限制**: 必须为整数,不能为负数。 **取值范围**: 1-100 **默认取值**: 10
53
+ :type limit: int
54
+ """
55
+
56
+
57
+
58
+ self._x_language = None
59
+ self._instance_id = None
60
+ self._start_time = None
61
+ self._end_time = None
62
+ self._offset = None
63
+ self._limit = None
64
+ self.discriminator = None
65
+
66
+ if x_language is not None:
67
+ self.x_language = x_language
68
+ self.instance_id = instance_id
69
+ self.start_time = start_time
70
+ self.end_time = end_time
71
+ self.offset = offset
72
+ self.limit = limit
73
+
74
+ @property
75
+ def x_language(self):
76
+ r"""Gets the x_language of this ListAuditLogsRequest.
77
+
78
+ **参数解释**: 请求语言类型。 **约束限制**: 不涉及。 **取值范围**: - en-us - zh-cn **默认取值**: en-us。
79
+
80
+ :return: The x_language of this ListAuditLogsRequest.
81
+ :rtype: str
82
+ """
83
+ return self._x_language
84
+
85
+ @x_language.setter
86
+ def x_language(self, x_language):
87
+ r"""Sets the x_language of this ListAuditLogsRequest.
88
+
89
+ **参数解释**: 请求语言类型。 **约束限制**: 不涉及。 **取值范围**: - en-us - zh-cn **默认取值**: en-us。
90
+
91
+ :param x_language: The x_language of this ListAuditLogsRequest.
92
+ :type x_language: str
93
+ """
94
+ self._x_language = x_language
95
+
96
+ @property
97
+ def instance_id(self):
98
+ r"""Gets the instance_id of this ListAuditLogsRequest.
99
+
100
+ **参数解释**: 实例ID,此参数是实例的唯一标识。 **约束限制**: 不涉及。 **取值范围**: 只能由英文字母、数字组成,后缀为in07,长度为36个字符。 **默认取值**: 不涉及。
101
+
102
+ :return: The instance_id of this ListAuditLogsRequest.
103
+ :rtype: str
104
+ """
105
+ return self._instance_id
106
+
107
+ @instance_id.setter
108
+ def instance_id(self, instance_id):
109
+ r"""Sets the instance_id of this ListAuditLogsRequest.
110
+
111
+ **参数解释**: 实例ID,此参数是实例的唯一标识。 **约束限制**: 不涉及。 **取值范围**: 只能由英文字母、数字组成,后缀为in07,长度为36个字符。 **默认取值**: 不涉及。
112
+
113
+ :param instance_id: The instance_id of this ListAuditLogsRequest.
114
+ :type instance_id: str
115
+ """
116
+ self._instance_id = instance_id
117
+
118
+ @property
119
+ def start_time(self):
120
+ r"""Gets the start_time of this ListAuditLogsRequest.
121
+
122
+ **参数解释**: 查询开始时间。 **约束限制**: 格式为“yyyy-mm-ddThh:mm:ssZ”。 其中,T指某个时间的开始;Z指时区偏移量,例如北京时间偏移显示为+0800。。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
123
+
124
+ :return: The start_time of this ListAuditLogsRequest.
125
+ :rtype: str
126
+ """
127
+ return self._start_time
128
+
129
+ @start_time.setter
130
+ def start_time(self, start_time):
131
+ r"""Sets the start_time of this ListAuditLogsRequest.
132
+
133
+ **参数解释**: 查询开始时间。 **约束限制**: 格式为“yyyy-mm-ddThh:mm:ssZ”。 其中,T指某个时间的开始;Z指时区偏移量,例如北京时间偏移显示为+0800。。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
134
+
135
+ :param start_time: The start_time of this ListAuditLogsRequest.
136
+ :type start_time: str
137
+ """
138
+ self._start_time = start_time
139
+
140
+ @property
141
+ def end_time(self):
142
+ r"""Gets the end_time of this ListAuditLogsRequest.
143
+
144
+ **参数解释**: 查询结束时间。 **约束限制**: 格式为“yyyy-mm-ddThh:mm:ssZ”, 大于查询开始时间,时间跨度不超过30天, 其中,T指某个时间的开始,Z指时区偏移量,例如北京时间偏移显示为+0800。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
145
+
146
+ :return: The end_time of this ListAuditLogsRequest.
147
+ :rtype: str
148
+ """
149
+ return self._end_time
150
+
151
+ @end_time.setter
152
+ def end_time(self, end_time):
153
+ r"""Sets the end_time of this ListAuditLogsRequest.
154
+
155
+ **参数解释**: 查询结束时间。 **约束限制**: 格式为“yyyy-mm-ddThh:mm:ssZ”, 大于查询开始时间,时间跨度不超过30天, 其中,T指某个时间的开始,Z指时区偏移量,例如北京时间偏移显示为+0800。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
156
+
157
+ :param end_time: The end_time of this ListAuditLogsRequest.
158
+ :type end_time: str
159
+ """
160
+ self._end_time = end_time
161
+
162
+ @property
163
+ def offset(self):
164
+ r"""Gets the offset of this ListAuditLogsRequest.
165
+
166
+ **参数解释**: 索引位置,偏移量。从第一条数据偏移offset条数据后开始查询。 **约束限制**: 必须为整数,不能为负数。 **取值范围**: ≥0 **默认取值**: 0
167
+
168
+ :return: The offset of this ListAuditLogsRequest.
169
+ :rtype: int
170
+ """
171
+ return self._offset
172
+
173
+ @offset.setter
174
+ def offset(self, offset):
175
+ r"""Sets the offset of this ListAuditLogsRequest.
176
+
177
+ **参数解释**: 索引位置,偏移量。从第一条数据偏移offset条数据后开始查询。 **约束限制**: 必须为整数,不能为负数。 **取值范围**: ≥0 **默认取值**: 0
178
+
179
+ :param offset: The offset of this ListAuditLogsRequest.
180
+ :type offset: int
181
+ """
182
+ self._offset = offset
183
+
184
+ @property
185
+ def limit(self):
186
+ r"""Gets the limit of this ListAuditLogsRequest.
187
+
188
+ **参数解释**: 查询记录数。 **约束限制**: 必须为整数,不能为负数。 **取值范围**: 1-100 **默认取值**: 10
189
+
190
+ :return: The limit of this ListAuditLogsRequest.
191
+ :rtype: int
192
+ """
193
+ return self._limit
194
+
195
+ @limit.setter
196
+ def limit(self, limit):
197
+ r"""Sets the limit of this ListAuditLogsRequest.
198
+
199
+ **参数解释**: 查询记录数。 **约束限制**: 必须为整数,不能为负数。 **取值范围**: 1-100 **默认取值**: 10
200
+
201
+ :param limit: The limit of this ListAuditLogsRequest.
202
+ :type limit: int
203
+ """
204
+ self._limit = limit
205
+
206
+ def to_dict(self):
207
+ """Returns the model properties as a dict"""
208
+ result = {}
209
+
210
+ for attr, _ in six.iteritems(self.openapi_types):
211
+ value = getattr(self, attr)
212
+ if isinstance(value, list):
213
+ result[attr] = list(map(
214
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
215
+ value
216
+ ))
217
+ elif hasattr(value, "to_dict"):
218
+ result[attr] = value.to_dict()
219
+ elif isinstance(value, dict):
220
+ result[attr] = dict(map(
221
+ lambda item: (item[0], item[1].to_dict())
222
+ if hasattr(item[1], "to_dict") else item,
223
+ value.items()
224
+ ))
225
+ else:
226
+ if attr in self.sensitive_list:
227
+ result[attr] = "****"
228
+ else:
229
+ result[attr] = value
230
+
231
+ return result
232
+
233
+ def to_str(self):
234
+ """Returns the string representation of the model"""
235
+ import simplejson as json
236
+ if six.PY2:
237
+ import sys
238
+ reload(sys)
239
+ sys.setdefaultencoding("utf-8")
240
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
241
+
242
+ def __repr__(self):
243
+ """For `print`"""
244
+ return self.to_str()
245
+
246
+ def __eq__(self, other):
247
+ """Returns true if both objects are equal"""
248
+ if not isinstance(other, ListAuditLogsRequest):
249
+ return False
250
+
251
+ return self.__dict__ == other.__dict__
252
+
253
+ def __ne__(self, other):
254
+ """Returns true if both objects are not equal"""
255
+ 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 ListAuditLogsResponse(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
+ 'audit_logs': 'list[AuditLogDetail]',
22
+ 'total_count': 'int'
23
+ }
24
+
25
+ attribute_map = {
26
+ 'audit_logs': 'audit_logs',
27
+ 'total_count': 'total_count'
28
+ }
29
+
30
+ def __init__(self, audit_logs=None, total_count=None):
31
+ r"""ListAuditLogsResponse
32
+
33
+ The model defined in huaweicloud sdk
34
+
35
+ :param audit_logs: **参数解释**: 记录列表。 **取值范围**: 不涉及。
36
+ :type audit_logs: list[:class:`huaweicloudsdkgaussdb.v3.AuditLogDetail`]
37
+ :param total_count: **参数解释**: 总记录数。 **取值范围**: 不小于0。
38
+ :type total_count: int
39
+ """
40
+
41
+ super(ListAuditLogsResponse, self).__init__()
42
+
43
+ self._audit_logs = None
44
+ self._total_count = None
45
+ self.discriminator = None
46
+
47
+ if audit_logs is not None:
48
+ self.audit_logs = audit_logs
49
+ if total_count is not None:
50
+ self.total_count = total_count
51
+
52
+ @property
53
+ def audit_logs(self):
54
+ r"""Gets the audit_logs of this ListAuditLogsResponse.
55
+
56
+ **参数解释**: 记录列表。 **取值范围**: 不涉及。
57
+
58
+ :return: The audit_logs of this ListAuditLogsResponse.
59
+ :rtype: list[:class:`huaweicloudsdkgaussdb.v3.AuditLogDetail`]
60
+ """
61
+ return self._audit_logs
62
+
63
+ @audit_logs.setter
64
+ def audit_logs(self, audit_logs):
65
+ r"""Sets the audit_logs of this ListAuditLogsResponse.
66
+
67
+ **参数解释**: 记录列表。 **取值范围**: 不涉及。
68
+
69
+ :param audit_logs: The audit_logs of this ListAuditLogsResponse.
70
+ :type audit_logs: list[:class:`huaweicloudsdkgaussdb.v3.AuditLogDetail`]
71
+ """
72
+ self._audit_logs = audit_logs
73
+
74
+ @property
75
+ def total_count(self):
76
+ r"""Gets the total_count of this ListAuditLogsResponse.
77
+
78
+ **参数解释**: 总记录数。 **取值范围**: 不小于0。
79
+
80
+ :return: The total_count of this ListAuditLogsResponse.
81
+ :rtype: int
82
+ """
83
+ return self._total_count
84
+
85
+ @total_count.setter
86
+ def total_count(self, total_count):
87
+ r"""Sets the total_count of this ListAuditLogsResponse.
88
+
89
+ **参数解释**: 总记录数。 **取值范围**: 不小于0。
90
+
91
+ :param total_count: The total_count of this ListAuditLogsResponse.
92
+ :type total_count: int
93
+ """
94
+ self._total_count = total_count
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, ListAuditLogsResponse):
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