huaweicloudsdkgaussdb 3.1.102__py2.py3-none-any.whl → 3.1.103__py2.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 (121) hide show
  1. huaweicloudsdkgaussdb/v3/__init__.py +111 -1
  2. huaweicloudsdkgaussdb/v3/gaussdb_async_client.py +2346 -272
  3. huaweicloudsdkgaussdb/v3/gaussdb_client.py +2346 -272
  4. huaweicloudsdkgaussdb/v3/model/__init__.py +111 -1
  5. huaweicloudsdkgaussdb/v3/model/ch_database_config_check_result.py +170 -0
  6. huaweicloudsdkgaussdb/v3/model/ch_database_config_response.py +142 -0
  7. huaweicloudsdkgaussdb/v3/model/ch_database_configs_info.py +142 -0
  8. huaweicloudsdkgaussdb/v3/model/ch_database_parameter_info.py +226 -0
  9. huaweicloudsdkgaussdb/v3/model/ch_database_replication_info.py +254 -0
  10. huaweicloudsdkgaussdb/v3/model/ch_database_table_config_check_result.py +170 -0
  11. huaweicloudsdkgaussdb/v3/model/ch_database_table_repl_config_info.py +142 -0
  12. huaweicloudsdkgaussdb/v3/model/ch_database_tables_configs_info.py +142 -0
  13. huaweicloudsdkgaussdb/v3/model/ch_enlarge_volume_request_body.py +114 -0
  14. huaweicloudsdkgaussdb/v3/model/ch_instance_lts_configs.py +140 -0
  15. huaweicloudsdkgaussdb/v3/model/ch_instance_lts_configs_instance.py +318 -0
  16. huaweicloudsdkgaussdb/v3/model/ch_instances_info_rsponse_instance.py +1179 -0
  17. huaweicloudsdkgaussdb/v3/model/ch_instances_info_rsponse_instance_groups.py +198 -0
  18. huaweicloudsdkgaussdb/v3/model/ch_instances_info_rsponse_instance_ops_window.py +171 -0
  19. huaweicloudsdkgaussdb/v3/model/ch_instances_info_rsponse_instance_param_group.py +144 -0
  20. huaweicloudsdkgaussdb/v3/model/ch_instances_info_rsponse_instance_port_info.py +226 -0
  21. huaweicloudsdkgaussdb/v3/model/ch_lts_configs.py +202 -0
  22. huaweicloudsdkgaussdb/v3/model/ch_query_action_info.py +318 -0
  23. huaweicloudsdkgaussdb/v3/model/ch_slow_log_detail_response_slow_log_list.py +450 -0
  24. huaweicloudsdkgaussdb/v3/model/ch_slow_log_query_request_body.py +285 -0
  25. huaweicloudsdkgaussdb/v3/model/ch_slowlog_sensitive_response.py +114 -0
  26. huaweicloudsdkgaussdb/v3/model/check_ch_database_config_request_body.py +223 -0
  27. huaweicloudsdkgaussdb/v3/model/check_ch_database_table_config_request_body.py +251 -0
  28. huaweicloudsdkgaussdb/v3/model/check_click_house_data_base_config_request.py +168 -0
  29. huaweicloudsdkgaussdb/v3/model/check_click_house_data_base_config_response.py +145 -0
  30. huaweicloudsdkgaussdb/v3/model/check_click_house_table_config_request.py +168 -0
  31. huaweicloudsdkgaussdb/v3/model/check_click_house_table_config_response.py +145 -0
  32. huaweicloudsdkgaussdb/v3/model/click_house_database_user_info.py +199 -0
  33. huaweicloudsdkgaussdb/v3/model/click_house_database_user_p_sinfo.py +170 -0
  34. huaweicloudsdkgaussdb/v3/model/click_house_database_user_p_winfo.py +142 -0
  35. huaweicloudsdkgaussdb/v3/model/click_house_engine_info.py +142 -0
  36. huaweicloudsdkgaussdb/v3/model/click_house_node_info.py +979 -0
  37. huaweicloudsdkgaussdb/v3/model/click_house_node_info_datastore.py +170 -0
  38. huaweicloudsdkgaussdb/v3/model/click_house_node_info_response_body_node_list.py +170 -0
  39. huaweicloudsdkgaussdb/v3/model/click_house_node_info_volume.py +200 -0
  40. huaweicloudsdkgaussdb/v3/model/click_house_resize_flavor_request_body.py +171 -0
  41. huaweicloudsdkgaussdb/v3/model/create_ch_database_replication_request_body.py +171 -0
  42. huaweicloudsdkgaussdb/v3/model/create_ch_instance_info.py +522 -0
  43. huaweicloudsdkgaussdb/v3/model/create_ch_instance_info_pay_info.py +226 -0
  44. huaweicloudsdkgaussdb/v3/model/create_ch_instance_info_tags_info.py +144 -0
  45. huaweicloudsdkgaussdb/v3/model/{sr_create_instance_rsp_instance_tags_info_tags.py → create_ch_instance_info_tags_info_tags.py} +11 -11
  46. huaweicloudsdkgaussdb/v3/model/create_ch_instance_request_body.py +376 -0
  47. huaweicloudsdkgaussdb/v3/model/create_ch_instance_request_body_ha.py +114 -0
  48. huaweicloudsdkgaussdb/v3/model/create_ch_instance_request_body_pay_info.py +231 -0
  49. huaweicloudsdkgaussdb/v3/model/create_ch_instance_request_body_tags_info.py +114 -0
  50. huaweicloudsdkgaussdb/v3/model/create_ch_instance_request_body_tags_info_sys_tags.py +142 -0
  51. huaweicloudsdkgaussdb/v3/model/create_ch_instance_request_body_volume.py +142 -0
  52. huaweicloudsdkgaussdb/v3/model/create_ch_lts_config_request_body.py +114 -0
  53. huaweicloudsdkgaussdb/v3/model/create_ch_lts_config_request_body_log_configs.py +198 -0
  54. huaweicloudsdkgaussdb/v3/model/create_click_house_data_base_replication_request.py +168 -0
  55. huaweicloudsdkgaussdb/v3/model/create_click_house_data_base_replication_response.py +116 -0
  56. huaweicloudsdkgaussdb/v3/model/create_click_house_database_user_request.py +168 -0
  57. huaweicloudsdkgaussdb/v3/model/create_click_house_database_user_response.py +116 -0
  58. huaweicloudsdkgaussdb/v3/model/create_click_house_instance_request.py +168 -0
  59. huaweicloudsdkgaussdb/v3/model/create_click_house_instance_response.py +141 -0
  60. huaweicloudsdkgaussdb/v3/model/delete_ch_lts_config_request_body.py +114 -0
  61. huaweicloudsdkgaussdb/v3/model/delete_ch_lts_config_request_body_log_configs.py +142 -0
  62. huaweicloudsdkgaussdb/v3/model/delete_click_house_data_base_config_request.py +171 -0
  63. huaweicloudsdkgaussdb/v3/model/delete_click_house_data_base_config_response.py +116 -0
  64. huaweicloudsdkgaussdb/v3/model/delete_click_house_data_base_replication_request.py +171 -0
  65. huaweicloudsdkgaussdb/v3/model/delete_click_house_data_base_replication_response.py +116 -0
  66. huaweicloudsdkgaussdb/v3/model/delete_click_house_database_user_request.py +171 -0
  67. huaweicloudsdkgaussdb/v3/model/delete_click_house_database_user_response.py +116 -0
  68. huaweicloudsdkgaussdb/v3/model/delete_click_house_instance_request.py +171 -0
  69. huaweicloudsdkgaussdb/v3/model/delete_click_house_instance_response.py +116 -0
  70. huaweicloudsdkgaussdb/v3/model/delete_click_house_lts_config_request.py +140 -0
  71. huaweicloudsdkgaussdb/v3/model/delete_click_house_lts_config_response.py +85 -0
  72. huaweicloudsdkgaussdb/v3/model/list_click_house_data_base_parameter_request.py +143 -0
  73. huaweicloudsdkgaussdb/v3/model/list_click_house_data_base_parameter_response.py +116 -0
  74. huaweicloudsdkgaussdb/v3/model/list_click_house_data_base_replication_config_request.py +171 -0
  75. huaweicloudsdkgaussdb/v3/model/list_click_house_data_base_replication_config_response.py +307 -0
  76. huaweicloudsdkgaussdb/v3/model/list_click_house_data_base_replication_request.py +201 -0
  77. huaweicloudsdkgaussdb/v3/model/list_click_house_data_base_replication_response.py +174 -0
  78. huaweicloudsdkgaussdb/v3/model/list_click_house_data_base_request.py +230 -0
  79. huaweicloudsdkgaussdb/v3/model/list_click_house_data_base_response.py +145 -0
  80. huaweicloudsdkgaussdb/v3/model/list_click_house_instance_node_request.py +143 -0
  81. huaweicloudsdkgaussdb/v3/model/list_click_house_instance_node_response.py +116 -0
  82. huaweicloudsdkgaussdb/v3/model/list_click_house_instance_request.py +171 -0
  83. huaweicloudsdkgaussdb/v3/model/list_click_house_instance_response.py +112 -0
  84. huaweicloudsdkgaussdb/v3/model/pause_star_rocks_data_replication.py +114 -0
  85. huaweicloudsdkgaussdb/v3/model/pause_star_rocks_data_replication_request.py +167 -0
  86. huaweicloudsdkgaussdb/v3/model/pause_star_rocks_data_replication_response.py +116 -0
  87. huaweicloudsdkgaussdb/v3/model/reboot_click_house_instance_request.py +143 -0
  88. huaweicloudsdkgaussdb/v3/model/reboot_click_house_instance_response.py +116 -0
  89. huaweicloudsdkgaussdb/v3/model/resize_click_house_flavor_request.py +168 -0
  90. huaweicloudsdkgaussdb/v3/model/resize_click_house_flavor_response.py +116 -0
  91. huaweicloudsdkgaussdb/v3/model/resize_click_house_instance_request.py +168 -0
  92. huaweicloudsdkgaussdb/v3/model/resize_click_house_instance_response.py +116 -0
  93. huaweicloudsdkgaussdb/v3/model/resume_star_rocks_data_replication.py +114 -0
  94. huaweicloudsdkgaussdb/v3/model/resume_star_rocks_data_replication_request.py +167 -0
  95. huaweicloudsdkgaussdb/v3/model/resume_star_rocks_data_replication_response.py +116 -0
  96. huaweicloudsdkgaussdb/v3/model/show_click_house_database_user_request.py +230 -0
  97. huaweicloudsdkgaussdb/v3/model/show_click_house_database_user_response.py +145 -0
  98. huaweicloudsdkgaussdb/v3/model/show_click_house_database_users_user_details.py +198 -0
  99. huaweicloudsdkgaussdb/v3/model/show_click_house_lts_config_request.py +260 -0
  100. huaweicloudsdkgaussdb/v3/model/show_click_house_lts_config_response.py +145 -0
  101. huaweicloudsdkgaussdb/v3/model/show_click_house_slow_log_detail_request.py +168 -0
  102. huaweicloudsdkgaussdb/v3/model/show_click_house_slow_log_detail_response.py +116 -0
  103. huaweicloudsdkgaussdb/v3/model/show_click_house_slow_log_sensitive_status_request.py +143 -0
  104. huaweicloudsdkgaussdb/v3/model/show_click_house_slow_log_sensitive_status_response.py +116 -0
  105. huaweicloudsdkgaussdb/v3/model/sr_create_instance_rsp_instance_tags_info.py +4 -4
  106. huaweicloudsdkgaussdb/v3/model/update_ch_database_config_request_body.py +199 -0
  107. huaweicloudsdkgaussdb/v3/model/update_click_house_data_base_config_request.py +168 -0
  108. huaweicloudsdkgaussdb/v3/model/update_click_house_data_base_config_response.py +116 -0
  109. huaweicloudsdkgaussdb/v3/model/update_click_house_database_user_password_request.py +168 -0
  110. huaweicloudsdkgaussdb/v3/model/update_click_house_database_user_password_response.py +116 -0
  111. huaweicloudsdkgaussdb/v3/model/update_click_house_database_user_permission_request.py +168 -0
  112. huaweicloudsdkgaussdb/v3/model/update_click_house_database_user_permission_response.py +116 -0
  113. huaweicloudsdkgaussdb/v3/model/update_click_house_lts_config_request.py +140 -0
  114. huaweicloudsdkgaussdb/v3/model/update_click_house_lts_config_response.py +85 -0
  115. huaweicloudsdkgaussdb/v3/model/update_click_house_slow_log_sensitive_status_request.py +168 -0
  116. huaweicloudsdkgaussdb/v3/model/update_click_house_slow_log_sensitive_status_response.py +116 -0
  117. {huaweicloudsdkgaussdb-3.1.102.dist-info → huaweicloudsdkgaussdb-3.1.103.dist-info}/METADATA +2 -2
  118. {huaweicloudsdkgaussdb-3.1.102.dist-info → huaweicloudsdkgaussdb-3.1.103.dist-info}/RECORD +121 -11
  119. {huaweicloudsdkgaussdb-3.1.102.dist-info → huaweicloudsdkgaussdb-3.1.103.dist-info}/LICENSE +0 -0
  120. {huaweicloudsdkgaussdb-3.1.102.dist-info → huaweicloudsdkgaussdb-3.1.103.dist-info}/WHEEL +0 -0
  121. {huaweicloudsdkgaussdb-3.1.102.dist-info → huaweicloudsdkgaussdb-3.1.103.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,285 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class ChSlowLogQueryRequestBody:
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
+ 'limit': 'int',
24
+ 'line_num': 'str',
25
+ 'operate_type': 'str',
26
+ 'database': 'str'
27
+ }
28
+
29
+ attribute_map = {
30
+ 'node_id': 'node_id',
31
+ 'start_time': 'start_time',
32
+ 'end_time': 'end_time',
33
+ 'limit': 'limit',
34
+ 'line_num': 'line_num',
35
+ 'operate_type': 'operate_type',
36
+ 'database': 'database'
37
+ }
38
+
39
+ def __init__(self, node_id=None, start_time=None, end_time=None, limit=None, line_num=None, operate_type=None, database=None):
40
+ """ChSlowLogQueryRequestBody
41
+
42
+ The model defined in huaweicloud sdk
43
+
44
+ :param node_id: 实例节点ID。
45
+ :type node_id: str
46
+ :param start_time: 开始时间,格式为“yyyy-mm-ddThh:mm:ssZ”。 其中,T指某个时间的开始;Z指时区偏移量,例如偏移1个小时显示为+0100。
47
+ :type start_time: str
48
+ :param end_time: 开始时间,格式为“yyyy-mm-ddThh:mm:ssZ”。 其中,T指某个时间的开始;Z指时区偏移量,例如偏移1个小时显示为+0100。
49
+ :type end_time: str
50
+ :param limit: 查询记录数。
51
+ :type limit: int
52
+ :param line_num: 日志单行序列号,第一次查询时不需要此参数,后续分页查询时需要使用,可从上次查询的返回信息中获取。
53
+ :type line_num: str
54
+ :param operate_type: 慢日志操作类型。
55
+ :type operate_type: str
56
+ :param database: 数据库名。
57
+ :type database: str
58
+ """
59
+
60
+
61
+
62
+ self._node_id = None
63
+ self._start_time = None
64
+ self._end_time = None
65
+ self._limit = None
66
+ self._line_num = None
67
+ self._operate_type = None
68
+ self._database = None
69
+ self.discriminator = None
70
+
71
+ self.node_id = node_id
72
+ self.start_time = start_time
73
+ self.end_time = end_time
74
+ self.limit = limit
75
+ if line_num is not None:
76
+ self.line_num = line_num
77
+ if operate_type is not None:
78
+ self.operate_type = operate_type
79
+ if database is not None:
80
+ self.database = database
81
+
82
+ @property
83
+ def node_id(self):
84
+ """Gets the node_id of this ChSlowLogQueryRequestBody.
85
+
86
+ 实例节点ID。
87
+
88
+ :return: The node_id of this ChSlowLogQueryRequestBody.
89
+ :rtype: str
90
+ """
91
+ return self._node_id
92
+
93
+ @node_id.setter
94
+ def node_id(self, node_id):
95
+ """Sets the node_id of this ChSlowLogQueryRequestBody.
96
+
97
+ 实例节点ID。
98
+
99
+ :param node_id: The node_id of this ChSlowLogQueryRequestBody.
100
+ :type node_id: str
101
+ """
102
+ self._node_id = node_id
103
+
104
+ @property
105
+ def start_time(self):
106
+ """Gets the start_time of this ChSlowLogQueryRequestBody.
107
+
108
+ 开始时间,格式为“yyyy-mm-ddThh:mm:ssZ”。 其中,T指某个时间的开始;Z指时区偏移量,例如偏移1个小时显示为+0100。
109
+
110
+ :return: The start_time of this ChSlowLogQueryRequestBody.
111
+ :rtype: str
112
+ """
113
+ return self._start_time
114
+
115
+ @start_time.setter
116
+ def start_time(self, start_time):
117
+ """Sets the start_time of this ChSlowLogQueryRequestBody.
118
+
119
+ 开始时间,格式为“yyyy-mm-ddThh:mm:ssZ”。 其中,T指某个时间的开始;Z指时区偏移量,例如偏移1个小时显示为+0100。
120
+
121
+ :param start_time: The start_time of this ChSlowLogQueryRequestBody.
122
+ :type start_time: str
123
+ """
124
+ self._start_time = start_time
125
+
126
+ @property
127
+ def end_time(self):
128
+ """Gets the end_time of this ChSlowLogQueryRequestBody.
129
+
130
+ 开始时间,格式为“yyyy-mm-ddThh:mm:ssZ”。 其中,T指某个时间的开始;Z指时区偏移量,例如偏移1个小时显示为+0100。
131
+
132
+ :return: The end_time of this ChSlowLogQueryRequestBody.
133
+ :rtype: str
134
+ """
135
+ return self._end_time
136
+
137
+ @end_time.setter
138
+ def end_time(self, end_time):
139
+ """Sets the end_time of this ChSlowLogQueryRequestBody.
140
+
141
+ 开始时间,格式为“yyyy-mm-ddThh:mm:ssZ”。 其中,T指某个时间的开始;Z指时区偏移量,例如偏移1个小时显示为+0100。
142
+
143
+ :param end_time: The end_time of this ChSlowLogQueryRequestBody.
144
+ :type end_time: str
145
+ """
146
+ self._end_time = end_time
147
+
148
+ @property
149
+ def limit(self):
150
+ """Gets the limit of this ChSlowLogQueryRequestBody.
151
+
152
+ 查询记录数。
153
+
154
+ :return: The limit of this ChSlowLogQueryRequestBody.
155
+ :rtype: int
156
+ """
157
+ return self._limit
158
+
159
+ @limit.setter
160
+ def limit(self, limit):
161
+ """Sets the limit of this ChSlowLogQueryRequestBody.
162
+
163
+ 查询记录数。
164
+
165
+ :param limit: The limit of this ChSlowLogQueryRequestBody.
166
+ :type limit: int
167
+ """
168
+ self._limit = limit
169
+
170
+ @property
171
+ def line_num(self):
172
+ """Gets the line_num of this ChSlowLogQueryRequestBody.
173
+
174
+ 日志单行序列号,第一次查询时不需要此参数,后续分页查询时需要使用,可从上次查询的返回信息中获取。
175
+
176
+ :return: The line_num of this ChSlowLogQueryRequestBody.
177
+ :rtype: str
178
+ """
179
+ return self._line_num
180
+
181
+ @line_num.setter
182
+ def line_num(self, line_num):
183
+ """Sets the line_num of this ChSlowLogQueryRequestBody.
184
+
185
+ 日志单行序列号,第一次查询时不需要此参数,后续分页查询时需要使用,可从上次查询的返回信息中获取。
186
+
187
+ :param line_num: The line_num of this ChSlowLogQueryRequestBody.
188
+ :type line_num: str
189
+ """
190
+ self._line_num = line_num
191
+
192
+ @property
193
+ def operate_type(self):
194
+ """Gets the operate_type of this ChSlowLogQueryRequestBody.
195
+
196
+ 慢日志操作类型。
197
+
198
+ :return: The operate_type of this ChSlowLogQueryRequestBody.
199
+ :rtype: str
200
+ """
201
+ return self._operate_type
202
+
203
+ @operate_type.setter
204
+ def operate_type(self, operate_type):
205
+ """Sets the operate_type of this ChSlowLogQueryRequestBody.
206
+
207
+ 慢日志操作类型。
208
+
209
+ :param operate_type: The operate_type of this ChSlowLogQueryRequestBody.
210
+ :type operate_type: str
211
+ """
212
+ self._operate_type = operate_type
213
+
214
+ @property
215
+ def database(self):
216
+ """Gets the database of this ChSlowLogQueryRequestBody.
217
+
218
+ 数据库名。
219
+
220
+ :return: The database of this ChSlowLogQueryRequestBody.
221
+ :rtype: str
222
+ """
223
+ return self._database
224
+
225
+ @database.setter
226
+ def database(self, database):
227
+ """Sets the database of this ChSlowLogQueryRequestBody.
228
+
229
+ 数据库名。
230
+
231
+ :param database: The database of this ChSlowLogQueryRequestBody.
232
+ :type database: str
233
+ """
234
+ self._database = database
235
+
236
+ def to_dict(self):
237
+ """Returns the model properties as a dict"""
238
+ result = {}
239
+
240
+ for attr, _ in six.iteritems(self.openapi_types):
241
+ value = getattr(self, attr)
242
+ if isinstance(value, list):
243
+ result[attr] = list(map(
244
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
245
+ value
246
+ ))
247
+ elif hasattr(value, "to_dict"):
248
+ result[attr] = value.to_dict()
249
+ elif isinstance(value, dict):
250
+ result[attr] = dict(map(
251
+ lambda item: (item[0], item[1].to_dict())
252
+ if hasattr(item[1], "to_dict") else item,
253
+ value.items()
254
+ ))
255
+ else:
256
+ if attr in self.sensitive_list:
257
+ result[attr] = "****"
258
+ else:
259
+ result[attr] = value
260
+
261
+ return result
262
+
263
+ def to_str(self):
264
+ """Returns the string representation of the model"""
265
+ import simplejson as json
266
+ if six.PY2:
267
+ import sys
268
+ reload(sys)
269
+ sys.setdefaultencoding("utf-8")
270
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
271
+
272
+ def __repr__(self):
273
+ """For `print`"""
274
+ return self.to_str()
275
+
276
+ def __eq__(self, other):
277
+ """Returns true if both objects are equal"""
278
+ if not isinstance(other, ChSlowLogQueryRequestBody):
279
+ return False
280
+
281
+ return self.__dict__ == other.__dict__
282
+
283
+ def __ne__(self, other):
284
+ """Returns true if both objects are not equal"""
285
+ 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 ChSlowlogSensitiveResponse:
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
+ 'open_slow_log_switch': 'str'
21
+ }
22
+
23
+ attribute_map = {
24
+ 'open_slow_log_switch': 'open_slow_log_switch'
25
+ }
26
+
27
+ def __init__(self, open_slow_log_switch=None):
28
+ """ChSlowlogSensitiveResponse
29
+
30
+ The model defined in huaweicloud sdk
31
+
32
+ :param open_slow_log_switch: 慢日志脱敏开关。
33
+ :type open_slow_log_switch: str
34
+ """
35
+
36
+
37
+
38
+ self._open_slow_log_switch = None
39
+ self.discriminator = None
40
+
41
+ self.open_slow_log_switch = open_slow_log_switch
42
+
43
+ @property
44
+ def open_slow_log_switch(self):
45
+ """Gets the open_slow_log_switch of this ChSlowlogSensitiveResponse.
46
+
47
+ 慢日志脱敏开关。
48
+
49
+ :return: The open_slow_log_switch of this ChSlowlogSensitiveResponse.
50
+ :rtype: str
51
+ """
52
+ return self._open_slow_log_switch
53
+
54
+ @open_slow_log_switch.setter
55
+ def open_slow_log_switch(self, open_slow_log_switch):
56
+ """Sets the open_slow_log_switch of this ChSlowlogSensitiveResponse.
57
+
58
+ 慢日志脱敏开关。
59
+
60
+ :param open_slow_log_switch: The open_slow_log_switch of this ChSlowlogSensitiveResponse.
61
+ :type open_slow_log_switch: str
62
+ """
63
+ self._open_slow_log_switch = open_slow_log_switch
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, ChSlowlogSensitiveResponse):
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,223 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class CheckChDatabaseConfigRequestBody:
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
+ 'source_instance_id': 'str',
21
+ 'source_node_id': 'str',
22
+ 'source_database_name': 'str',
23
+ 'db_configs': 'list[ChDatabaseConfigsInfo]',
24
+ 'table_repl_config': 'ChDatabaseTableReplConfigInfo'
25
+ }
26
+
27
+ attribute_map = {
28
+ 'source_instance_id': 'source_instance_id',
29
+ 'source_node_id': 'source_node_id',
30
+ 'source_database_name': 'source_database_name',
31
+ 'db_configs': 'db_configs',
32
+ 'table_repl_config': 'table_repl_config'
33
+ }
34
+
35
+ def __init__(self, source_instance_id=None, source_node_id=None, source_database_name=None, db_configs=None, table_repl_config=None):
36
+ """CheckChDatabaseConfigRequestBody
37
+
38
+ The model defined in huaweicloud sdk
39
+
40
+ :param source_instance_id: 源实例ID,严格匹配UUID规则。
41
+ :type source_instance_id: str
42
+ :param source_node_id: 源节点ID。GaussDB(for MySQL)只读节点ID。如为空,则取GaussDB(for MySQL)主节点ID。
43
+ :type source_node_id: str
44
+ :param source_database_name: 源数据库名。
45
+ :type source_database_name: str
46
+ :param db_configs: 库配置列表。
47
+ :type db_configs: list[:class:`huaweicloudsdkgaussdb.v3.ChDatabaseConfigsInfo`]
48
+ :param table_repl_config:
49
+ :type table_repl_config: :class:`huaweicloudsdkgaussdb.v3.ChDatabaseTableReplConfigInfo`
50
+ """
51
+
52
+
53
+
54
+ self._source_instance_id = None
55
+ self._source_node_id = None
56
+ self._source_database_name = None
57
+ self._db_configs = None
58
+ self._table_repl_config = None
59
+ self.discriminator = None
60
+
61
+ self.source_instance_id = source_instance_id
62
+ if source_node_id is not None:
63
+ self.source_node_id = source_node_id
64
+ self.source_database_name = source_database_name
65
+ self.db_configs = db_configs
66
+ self.table_repl_config = table_repl_config
67
+
68
+ @property
69
+ def source_instance_id(self):
70
+ """Gets the source_instance_id of this CheckChDatabaseConfigRequestBody.
71
+
72
+ 源实例ID,严格匹配UUID规则。
73
+
74
+ :return: The source_instance_id of this CheckChDatabaseConfigRequestBody.
75
+ :rtype: str
76
+ """
77
+ return self._source_instance_id
78
+
79
+ @source_instance_id.setter
80
+ def source_instance_id(self, source_instance_id):
81
+ """Sets the source_instance_id of this CheckChDatabaseConfigRequestBody.
82
+
83
+ 源实例ID,严格匹配UUID规则。
84
+
85
+ :param source_instance_id: The source_instance_id of this CheckChDatabaseConfigRequestBody.
86
+ :type source_instance_id: str
87
+ """
88
+ self._source_instance_id = source_instance_id
89
+
90
+ @property
91
+ def source_node_id(self):
92
+ """Gets the source_node_id of this CheckChDatabaseConfigRequestBody.
93
+
94
+ 源节点ID。GaussDB(for MySQL)只读节点ID。如为空,则取GaussDB(for MySQL)主节点ID。
95
+
96
+ :return: The source_node_id of this CheckChDatabaseConfigRequestBody.
97
+ :rtype: str
98
+ """
99
+ return self._source_node_id
100
+
101
+ @source_node_id.setter
102
+ def source_node_id(self, source_node_id):
103
+ """Sets the source_node_id of this CheckChDatabaseConfigRequestBody.
104
+
105
+ 源节点ID。GaussDB(for MySQL)只读节点ID。如为空,则取GaussDB(for MySQL)主节点ID。
106
+
107
+ :param source_node_id: The source_node_id of this CheckChDatabaseConfigRequestBody.
108
+ :type source_node_id: str
109
+ """
110
+ self._source_node_id = source_node_id
111
+
112
+ @property
113
+ def source_database_name(self):
114
+ """Gets the source_database_name of this CheckChDatabaseConfigRequestBody.
115
+
116
+ 源数据库名。
117
+
118
+ :return: The source_database_name of this CheckChDatabaseConfigRequestBody.
119
+ :rtype: str
120
+ """
121
+ return self._source_database_name
122
+
123
+ @source_database_name.setter
124
+ def source_database_name(self, source_database_name):
125
+ """Sets the source_database_name of this CheckChDatabaseConfigRequestBody.
126
+
127
+ 源数据库名。
128
+
129
+ :param source_database_name: The source_database_name of this CheckChDatabaseConfigRequestBody.
130
+ :type source_database_name: str
131
+ """
132
+ self._source_database_name = source_database_name
133
+
134
+ @property
135
+ def db_configs(self):
136
+ """Gets the db_configs of this CheckChDatabaseConfigRequestBody.
137
+
138
+ 库配置列表。
139
+
140
+ :return: The db_configs of this CheckChDatabaseConfigRequestBody.
141
+ :rtype: list[:class:`huaweicloudsdkgaussdb.v3.ChDatabaseConfigsInfo`]
142
+ """
143
+ return self._db_configs
144
+
145
+ @db_configs.setter
146
+ def db_configs(self, db_configs):
147
+ """Sets the db_configs of this CheckChDatabaseConfigRequestBody.
148
+
149
+ 库配置列表。
150
+
151
+ :param db_configs: The db_configs of this CheckChDatabaseConfigRequestBody.
152
+ :type db_configs: list[:class:`huaweicloudsdkgaussdb.v3.ChDatabaseConfigsInfo`]
153
+ """
154
+ self._db_configs = db_configs
155
+
156
+ @property
157
+ def table_repl_config(self):
158
+ """Gets the table_repl_config of this CheckChDatabaseConfigRequestBody.
159
+
160
+ :return: The table_repl_config of this CheckChDatabaseConfigRequestBody.
161
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.ChDatabaseTableReplConfigInfo`
162
+ """
163
+ return self._table_repl_config
164
+
165
+ @table_repl_config.setter
166
+ def table_repl_config(self, table_repl_config):
167
+ """Sets the table_repl_config of this CheckChDatabaseConfigRequestBody.
168
+
169
+ :param table_repl_config: The table_repl_config of this CheckChDatabaseConfigRequestBody.
170
+ :type table_repl_config: :class:`huaweicloudsdkgaussdb.v3.ChDatabaseTableReplConfigInfo`
171
+ """
172
+ self._table_repl_config = table_repl_config
173
+
174
+ def to_dict(self):
175
+ """Returns the model properties as a dict"""
176
+ result = {}
177
+
178
+ for attr, _ in six.iteritems(self.openapi_types):
179
+ value = getattr(self, attr)
180
+ if isinstance(value, list):
181
+ result[attr] = list(map(
182
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
183
+ value
184
+ ))
185
+ elif hasattr(value, "to_dict"):
186
+ result[attr] = value.to_dict()
187
+ elif isinstance(value, dict):
188
+ result[attr] = dict(map(
189
+ lambda item: (item[0], item[1].to_dict())
190
+ if hasattr(item[1], "to_dict") else item,
191
+ value.items()
192
+ ))
193
+ else:
194
+ if attr in self.sensitive_list:
195
+ result[attr] = "****"
196
+ else:
197
+ result[attr] = value
198
+
199
+ return result
200
+
201
+ def to_str(self):
202
+ """Returns the string representation of the model"""
203
+ import simplejson as json
204
+ if six.PY2:
205
+ import sys
206
+ reload(sys)
207
+ sys.setdefaultencoding("utf-8")
208
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
209
+
210
+ def __repr__(self):
211
+ """For `print`"""
212
+ return self.to_str()
213
+
214
+ def __eq__(self, other):
215
+ """Returns true if both objects are equal"""
216
+ if not isinstance(other, CheckChDatabaseConfigRequestBody):
217
+ return False
218
+
219
+ return self.__dict__ == other.__dict__
220
+
221
+ def __ne__(self, other):
222
+ """Returns true if both objects are not equal"""
223
+ return not self == other