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,226 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class HtapErrorLogDetailResponseErrorLogList:
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
+ 'time': 'str',
22
+ 'level': 'str',
23
+ 'content': 'str',
24
+ 'line_num': 'str'
25
+ }
26
+
27
+ attribute_map = {
28
+ 'node_id': 'node_id',
29
+ 'time': 'time',
30
+ 'level': 'level',
31
+ 'content': 'content',
32
+ 'line_num': 'line_num'
33
+ }
34
+
35
+ def __init__(self, node_id=None, time=None, level=None, content=None, line_num=None):
36
+ r"""HtapErrorLogDetailResponseErrorLogList
37
+
38
+ The model defined in huaweicloud sdk
39
+
40
+ :param node_id: **参数解释**: HTAP标准版实例节点ID。 **取值范围**: 不涉及。
41
+ :type node_id: str
42
+ :param time: **参数解释**: 日志时间。 **取值范围**: 不涉及。
43
+ :type time: str
44
+ :param level: **参数解释**: 日志级别。 **取值范围**: 不涉及。
45
+ :type level: str
46
+ :param content: **参数解释**: 日志内容。 **取值范围**: 不涉及。
47
+ :type content: str
48
+ :param line_num: **参数解释**: 日志单行序列号,第一次查询时不需要此参数,后续分页查询时需要使用,可从上次查询的返回信息中获取。 **取值范围**: 不涉及。
49
+ :type line_num: str
50
+ """
51
+
52
+
53
+
54
+ self._node_id = None
55
+ self._time = None
56
+ self._level = None
57
+ self._content = None
58
+ self._line_num = None
59
+ self.discriminator = None
60
+
61
+ self.node_id = node_id
62
+ self.time = time
63
+ self.level = level
64
+ self.content = content
65
+ self.line_num = line_num
66
+
67
+ @property
68
+ def node_id(self):
69
+ r"""Gets the node_id of this HtapErrorLogDetailResponseErrorLogList.
70
+
71
+ **参数解释**: HTAP标准版实例节点ID。 **取值范围**: 不涉及。
72
+
73
+ :return: The node_id of this HtapErrorLogDetailResponseErrorLogList.
74
+ :rtype: str
75
+ """
76
+ return self._node_id
77
+
78
+ @node_id.setter
79
+ def node_id(self, node_id):
80
+ r"""Sets the node_id of this HtapErrorLogDetailResponseErrorLogList.
81
+
82
+ **参数解释**: HTAP标准版实例节点ID。 **取值范围**: 不涉及。
83
+
84
+ :param node_id: The node_id of this HtapErrorLogDetailResponseErrorLogList.
85
+ :type node_id: str
86
+ """
87
+ self._node_id = node_id
88
+
89
+ @property
90
+ def time(self):
91
+ r"""Gets the time of this HtapErrorLogDetailResponseErrorLogList.
92
+
93
+ **参数解释**: 日志时间。 **取值范围**: 不涉及。
94
+
95
+ :return: The time of this HtapErrorLogDetailResponseErrorLogList.
96
+ :rtype: str
97
+ """
98
+ return self._time
99
+
100
+ @time.setter
101
+ def time(self, time):
102
+ r"""Sets the time of this HtapErrorLogDetailResponseErrorLogList.
103
+
104
+ **参数解释**: 日志时间。 **取值范围**: 不涉及。
105
+
106
+ :param time: The time of this HtapErrorLogDetailResponseErrorLogList.
107
+ :type time: str
108
+ """
109
+ self._time = time
110
+
111
+ @property
112
+ def level(self):
113
+ r"""Gets the level of this HtapErrorLogDetailResponseErrorLogList.
114
+
115
+ **参数解释**: 日志级别。 **取值范围**: 不涉及。
116
+
117
+ :return: The level of this HtapErrorLogDetailResponseErrorLogList.
118
+ :rtype: str
119
+ """
120
+ return self._level
121
+
122
+ @level.setter
123
+ def level(self, level):
124
+ r"""Sets the level of this HtapErrorLogDetailResponseErrorLogList.
125
+
126
+ **参数解释**: 日志级别。 **取值范围**: 不涉及。
127
+
128
+ :param level: The level of this HtapErrorLogDetailResponseErrorLogList.
129
+ :type level: str
130
+ """
131
+ self._level = level
132
+
133
+ @property
134
+ def content(self):
135
+ r"""Gets the content of this HtapErrorLogDetailResponseErrorLogList.
136
+
137
+ **参数解释**: 日志内容。 **取值范围**: 不涉及。
138
+
139
+ :return: The content of this HtapErrorLogDetailResponseErrorLogList.
140
+ :rtype: str
141
+ """
142
+ return self._content
143
+
144
+ @content.setter
145
+ def content(self, content):
146
+ r"""Sets the content of this HtapErrorLogDetailResponseErrorLogList.
147
+
148
+ **参数解释**: 日志内容。 **取值范围**: 不涉及。
149
+
150
+ :param content: The content of this HtapErrorLogDetailResponseErrorLogList.
151
+ :type content: str
152
+ """
153
+ self._content = content
154
+
155
+ @property
156
+ def line_num(self):
157
+ r"""Gets the line_num of this HtapErrorLogDetailResponseErrorLogList.
158
+
159
+ **参数解释**: 日志单行序列号,第一次查询时不需要此参数,后续分页查询时需要使用,可从上次查询的返回信息中获取。 **取值范围**: 不涉及。
160
+
161
+ :return: The line_num of this HtapErrorLogDetailResponseErrorLogList.
162
+ :rtype: str
163
+ """
164
+ return self._line_num
165
+
166
+ @line_num.setter
167
+ def line_num(self, line_num):
168
+ r"""Sets the line_num of this HtapErrorLogDetailResponseErrorLogList.
169
+
170
+ **参数解释**: 日志单行序列号,第一次查询时不需要此参数,后续分页查询时需要使用,可从上次查询的返回信息中获取。 **取值范围**: 不涉及。
171
+
172
+ :param line_num: The line_num of this HtapErrorLogDetailResponseErrorLogList.
173
+ :type line_num: str
174
+ """
175
+ self._line_num = line_num
176
+
177
+ def to_dict(self):
178
+ """Returns the model properties as a dict"""
179
+ result = {}
180
+
181
+ for attr, _ in six.iteritems(self.openapi_types):
182
+ value = getattr(self, attr)
183
+ if isinstance(value, list):
184
+ result[attr] = list(map(
185
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
186
+ value
187
+ ))
188
+ elif hasattr(value, "to_dict"):
189
+ result[attr] = value.to_dict()
190
+ elif isinstance(value, dict):
191
+ result[attr] = dict(map(
192
+ lambda item: (item[0], item[1].to_dict())
193
+ if hasattr(item[1], "to_dict") else item,
194
+ value.items()
195
+ ))
196
+ else:
197
+ if attr in self.sensitive_list:
198
+ result[attr] = "****"
199
+ else:
200
+ result[attr] = value
201
+
202
+ return result
203
+
204
+ def to_str(self):
205
+ """Returns the string representation of the model"""
206
+ import simplejson as json
207
+ if six.PY2:
208
+ import sys
209
+ reload(sys)
210
+ sys.setdefaultencoding("utf-8")
211
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
212
+
213
+ def __repr__(self):
214
+ """For `print`"""
215
+ return self.to_str()
216
+
217
+ def __eq__(self, other):
218
+ """Returns true if both objects are equal"""
219
+ if not isinstance(other, HtapErrorLogDetailResponseErrorLogList):
220
+ return False
221
+
222
+ return self.__dict__ == other.__dict__
223
+
224
+ def __ne__(self, other):
225
+ """Returns true if both objects are not equal"""
226
+ 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 HtapErrorLogQueryRequestBody:
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
+ 'start_time': 'str',
22
+ 'end_time': 'str',
23
+ 'level': 'str',
24
+ 'limit': 'int',
25
+ 'line_num': 'str'
26
+ }
27
+
28
+ attribute_map = {
29
+ 'node_id': 'node_id',
30
+ 'start_time': 'start_time',
31
+ 'end_time': 'end_time',
32
+ 'level': 'level',
33
+ 'limit': 'limit',
34
+ 'line_num': 'line_num'
35
+ }
36
+
37
+ def __init__(self, node_id=None, start_time=None, end_time=None, level=None, limit=None, line_num=None):
38
+ r"""HtapErrorLogQueryRequestBody
39
+
40
+ The model defined in huaweicloud sdk
41
+
42
+ :param node_id: **参数解释**: HTAP标准版实例节点ID。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
43
+ :type node_id: str
44
+ :param start_time: **参数解释**: 日志开始时间,格式为“yyyy-mm-ddThh:mm:ssZ”。 其中,T指某个时间的开始;Z指时区偏移量,例如偏移1个小时显示为+0100。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **取值范围**: 不涉及。
45
+ :type start_time: str
46
+ :param end_time: **参数解释**: 日志结束时间,格式为“yyyy-mm-ddThh:mm:ssZ”。 其中,T指某个时间的开始;Z指时区偏移量,例如偏移1个小时显示为+0100。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
47
+ :type end_time: str
48
+ :param level: **参数解释**: 日志级别。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **取值范围**: 不涉及。
49
+ :type level: str
50
+ :param limit: **参数解释**: 查询记录数。 **约束限制**: 不涉及。 **取值范围**: 0-100。 **默认取值**: 不涉及。
51
+ :type limit: int
52
+ :param line_num: **参数解释**: 日志单行序列号,第一次查询时不需要此参数,后续分页查询时需要使用,可从上次查询的返回信息中获取。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
53
+ :type line_num: str
54
+ """
55
+
56
+
57
+
58
+ self._node_id = None
59
+ self._start_time = None
60
+ self._end_time = None
61
+ self._level = None
62
+ self._limit = None
63
+ self._line_num = None
64
+ self.discriminator = None
65
+
66
+ self.node_id = node_id
67
+ self.start_time = start_time
68
+ self.end_time = end_time
69
+ self.level = level
70
+ self.limit = limit
71
+ if line_num is not None:
72
+ self.line_num = line_num
73
+
74
+ @property
75
+ def node_id(self):
76
+ r"""Gets the node_id of this HtapErrorLogQueryRequestBody.
77
+
78
+ **参数解释**: HTAP标准版实例节点ID。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
79
+
80
+ :return: The node_id of this HtapErrorLogQueryRequestBody.
81
+ :rtype: str
82
+ """
83
+ return self._node_id
84
+
85
+ @node_id.setter
86
+ def node_id(self, node_id):
87
+ r"""Sets the node_id of this HtapErrorLogQueryRequestBody.
88
+
89
+ **参数解释**: HTAP标准版实例节点ID。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
90
+
91
+ :param node_id: The node_id of this HtapErrorLogQueryRequestBody.
92
+ :type node_id: str
93
+ """
94
+ self._node_id = node_id
95
+
96
+ @property
97
+ def start_time(self):
98
+ r"""Gets the start_time of this HtapErrorLogQueryRequestBody.
99
+
100
+ **参数解释**: 日志开始时间,格式为“yyyy-mm-ddThh:mm:ssZ”。 其中,T指某个时间的开始;Z指时区偏移量,例如偏移1个小时显示为+0100。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **取值范围**: 不涉及。
101
+
102
+ :return: The start_time of this HtapErrorLogQueryRequestBody.
103
+ :rtype: str
104
+ """
105
+ return self._start_time
106
+
107
+ @start_time.setter
108
+ def start_time(self, start_time):
109
+ r"""Sets the start_time of this HtapErrorLogQueryRequestBody.
110
+
111
+ **参数解释**: 日志开始时间,格式为“yyyy-mm-ddThh:mm:ssZ”。 其中,T指某个时间的开始;Z指时区偏移量,例如偏移1个小时显示为+0100。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **取值范围**: 不涉及。
112
+
113
+ :param start_time: The start_time of this HtapErrorLogQueryRequestBody.
114
+ :type start_time: str
115
+ """
116
+ self._start_time = start_time
117
+
118
+ @property
119
+ def end_time(self):
120
+ r"""Gets the end_time of this HtapErrorLogQueryRequestBody.
121
+
122
+ **参数解释**: 日志结束时间,格式为“yyyy-mm-ddThh:mm:ssZ”。 其中,T指某个时间的开始;Z指时区偏移量,例如偏移1个小时显示为+0100。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
123
+
124
+ :return: The end_time of this HtapErrorLogQueryRequestBody.
125
+ :rtype: str
126
+ """
127
+ return self._end_time
128
+
129
+ @end_time.setter
130
+ def end_time(self, end_time):
131
+ r"""Sets the end_time of this HtapErrorLogQueryRequestBody.
132
+
133
+ **参数解释**: 日志结束时间,格式为“yyyy-mm-ddThh:mm:ssZ”。 其中,T指某个时间的开始;Z指时区偏移量,例如偏移1个小时显示为+0100。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
134
+
135
+ :param end_time: The end_time of this HtapErrorLogQueryRequestBody.
136
+ :type end_time: str
137
+ """
138
+ self._end_time = end_time
139
+
140
+ @property
141
+ def level(self):
142
+ r"""Gets the level of this HtapErrorLogQueryRequestBody.
143
+
144
+ **参数解释**: 日志级别。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **取值范围**: 不涉及。
145
+
146
+ :return: The level of this HtapErrorLogQueryRequestBody.
147
+ :rtype: str
148
+ """
149
+ return self._level
150
+
151
+ @level.setter
152
+ def level(self, level):
153
+ r"""Sets the level of this HtapErrorLogQueryRequestBody.
154
+
155
+ **参数解释**: 日志级别。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **取值范围**: 不涉及。
156
+
157
+ :param level: The level of this HtapErrorLogQueryRequestBody.
158
+ :type level: str
159
+ """
160
+ self._level = level
161
+
162
+ @property
163
+ def limit(self):
164
+ r"""Gets the limit of this HtapErrorLogQueryRequestBody.
165
+
166
+ **参数解释**: 查询记录数。 **约束限制**: 不涉及。 **取值范围**: 0-100。 **默认取值**: 不涉及。
167
+
168
+ :return: The limit of this HtapErrorLogQueryRequestBody.
169
+ :rtype: int
170
+ """
171
+ return self._limit
172
+
173
+ @limit.setter
174
+ def limit(self, limit):
175
+ r"""Sets the limit of this HtapErrorLogQueryRequestBody.
176
+
177
+ **参数解释**: 查询记录数。 **约束限制**: 不涉及。 **取值范围**: 0-100。 **默认取值**: 不涉及。
178
+
179
+ :param limit: The limit of this HtapErrorLogQueryRequestBody.
180
+ :type limit: int
181
+ """
182
+ self._limit = limit
183
+
184
+ @property
185
+ def line_num(self):
186
+ r"""Gets the line_num of this HtapErrorLogQueryRequestBody.
187
+
188
+ **参数解释**: 日志单行序列号,第一次查询时不需要此参数,后续分页查询时需要使用,可从上次查询的返回信息中获取。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
189
+
190
+ :return: The line_num of this HtapErrorLogQueryRequestBody.
191
+ :rtype: str
192
+ """
193
+ return self._line_num
194
+
195
+ @line_num.setter
196
+ def line_num(self, line_num):
197
+ r"""Sets the line_num of this HtapErrorLogQueryRequestBody.
198
+
199
+ **参数解释**: 日志单行序列号,第一次查询时不需要此参数,后续分页查询时需要使用,可从上次查询的返回信息中获取。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
200
+
201
+ :param line_num: The line_num of this HtapErrorLogQueryRequestBody.
202
+ :type line_num: str
203
+ """
204
+ self._line_num = line_num
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, HtapErrorLogQueryRequestBody):
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