huaweicloudsdkgaussdb 3.1.123__py2.py3-none-any.whl → 3.1.124__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 (21) hide show
  1. huaweicloudsdkgaussdb/v3/__init__.py +12 -0
  2. huaweicloudsdkgaussdb/v3/gaussdb_async_client.py +274 -0
  3. huaweicloudsdkgaussdb/v3/gaussdb_client.py +274 -0
  4. huaweicloudsdkgaussdb/v3/model/__init__.py +12 -0
  5. huaweicloudsdkgaussdb/v3/model/download_slow_log_file_item.py +289 -0
  6. huaweicloudsdkgaussdb/v3/model/download_slow_log_file_request.py +171 -0
  7. huaweicloudsdkgaussdb/v3/model/download_slow_log_file_response.py +145 -0
  8. huaweicloudsdkgaussdb/v3/model/operate_multi_tenant_req.py +114 -0
  9. huaweicloudsdkgaussdb/v3/model/show_multi_tenant_request.py +143 -0
  10. huaweicloudsdkgaussdb/v3/model/show_multi_tenant_response.py +116 -0
  11. huaweicloudsdkgaussdb/v3/model/show_slow_log_statistics_item.py +405 -0
  12. huaweicloudsdkgaussdb/v3/model/show_slow_log_statistics_request.py +168 -0
  13. huaweicloudsdkgaussdb/v3/model/show_slow_log_statistics_request_body.py +344 -0
  14. huaweicloudsdkgaussdb/v3/model/show_slow_log_statistics_response.py +145 -0
  15. huaweicloudsdkgaussdb/v3/model/update_multi_tenant_request.py +168 -0
  16. huaweicloudsdkgaussdb/v3/model/update_multi_tenant_response.py +116 -0
  17. {huaweicloudsdkgaussdb-3.1.123.dist-info → huaweicloudsdkgaussdb-3.1.124.dist-info}/METADATA +2 -2
  18. {huaweicloudsdkgaussdb-3.1.123.dist-info → huaweicloudsdkgaussdb-3.1.124.dist-info}/RECORD +21 -9
  19. {huaweicloudsdkgaussdb-3.1.123.dist-info → huaweicloudsdkgaussdb-3.1.124.dist-info}/WHEEL +1 -1
  20. {huaweicloudsdkgaussdb-3.1.123.dist-info → huaweicloudsdkgaussdb-3.1.124.dist-info}/LICENSE +0 -0
  21. {huaweicloudsdkgaussdb-3.1.123.dist-info → huaweicloudsdkgaussdb-3.1.124.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,344 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class ShowSlowLogStatisticsRequestBody:
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
+ 'limit': 'int',
21
+ 'offset': 'int',
22
+ 'node_id': 'str',
23
+ 'type': 'str',
24
+ 'database': 'str',
25
+ 'start_time': 'str',
26
+ 'end_time': 'str',
27
+ 'sort': 'str',
28
+ 'order': 'str'
29
+ }
30
+
31
+ attribute_map = {
32
+ 'limit': 'limit',
33
+ 'offset': 'offset',
34
+ 'node_id': 'node_id',
35
+ 'type': 'type',
36
+ 'database': 'database',
37
+ 'start_time': 'start_time',
38
+ 'end_time': 'end_time',
39
+ 'sort': 'sort',
40
+ 'order': 'order'
41
+ }
42
+
43
+ def __init__(self, limit=None, offset=None, node_id=None, type=None, database=None, start_time=None, end_time=None, sort=None, order=None):
44
+ """ShowSlowLogStatisticsRequestBody
45
+
46
+ The model defined in huaweicloud sdk
47
+
48
+ :param limit: 每页多少条记录(查询结果),取值范围是1~100,不填时默认为10。
49
+ :type limit: int
50
+ :param offset: 索引位置,偏移量。默认为0,表示从第一条数据开始查询。
51
+ :type offset: int
52
+ :param node_id: 节点ID。
53
+ :type node_id: str
54
+ :param type: 语句类型,取空值,表示查询所有语句类型。 枚举值: - INSERT - UPDATE - SELECT - DELETE - CREATE - ALL
55
+ :type type: str
56
+ :param database: 数据库名称。数据库名称不支持包含特殊字符 < > & 等的搜索。
57
+ :type database: str
58
+ :param start_time: 开始日期,格式为“yyyy-mm-ddThh:mm:ssZ”。 其中,T指某个时间的开始;Z指时区偏移量,例如北京时间偏移显示为+0800。
59
+ :type start_time: str
60
+ :param end_time: 结束时间,格式为“yyyy-mm-ddThh:mm:ssZ”。 其中,T指某个时间的开始;Z指时区偏移量,例如北京时间偏移显示为+0800。只能查询当前时间前一个月内的慢日志。
61
+ :type end_time: str
62
+ :param sort: 指定排序字段。 - executeTime:表示按照平均执行时间降序排序。 - 字段为空或传入其他值,表示按照执行次数降序排序。
63
+ :type sort: str
64
+ :param order: 排序顺序。默认desc。 枚举值: - desc - asc
65
+ :type order: str
66
+ """
67
+
68
+
69
+
70
+ self._limit = None
71
+ self._offset = None
72
+ self._node_id = None
73
+ self._type = None
74
+ self._database = None
75
+ self._start_time = None
76
+ self._end_time = None
77
+ self._sort = None
78
+ self._order = None
79
+ self.discriminator = None
80
+
81
+ if limit is not None:
82
+ self.limit = limit
83
+ if offset is not None:
84
+ self.offset = offset
85
+ self.node_id = node_id
86
+ if type is not None:
87
+ self.type = type
88
+ if database is not None:
89
+ self.database = database
90
+ self.start_time = start_time
91
+ self.end_time = end_time
92
+ if sort is not None:
93
+ self.sort = sort
94
+ if order is not None:
95
+ self.order = order
96
+
97
+ @property
98
+ def limit(self):
99
+ """Gets the limit of this ShowSlowLogStatisticsRequestBody.
100
+
101
+ 每页多少条记录(查询结果),取值范围是1~100,不填时默认为10。
102
+
103
+ :return: The limit of this ShowSlowLogStatisticsRequestBody.
104
+ :rtype: int
105
+ """
106
+ return self._limit
107
+
108
+ @limit.setter
109
+ def limit(self, limit):
110
+ """Sets the limit of this ShowSlowLogStatisticsRequestBody.
111
+
112
+ 每页多少条记录(查询结果),取值范围是1~100,不填时默认为10。
113
+
114
+ :param limit: The limit of this ShowSlowLogStatisticsRequestBody.
115
+ :type limit: int
116
+ """
117
+ self._limit = limit
118
+
119
+ @property
120
+ def offset(self):
121
+ """Gets the offset of this ShowSlowLogStatisticsRequestBody.
122
+
123
+ 索引位置,偏移量。默认为0,表示从第一条数据开始查询。
124
+
125
+ :return: The offset of this ShowSlowLogStatisticsRequestBody.
126
+ :rtype: int
127
+ """
128
+ return self._offset
129
+
130
+ @offset.setter
131
+ def offset(self, offset):
132
+ """Sets the offset of this ShowSlowLogStatisticsRequestBody.
133
+
134
+ 索引位置,偏移量。默认为0,表示从第一条数据开始查询。
135
+
136
+ :param offset: The offset of this ShowSlowLogStatisticsRequestBody.
137
+ :type offset: int
138
+ """
139
+ self._offset = offset
140
+
141
+ @property
142
+ def node_id(self):
143
+ """Gets the node_id of this ShowSlowLogStatisticsRequestBody.
144
+
145
+ 节点ID。
146
+
147
+ :return: The node_id of this ShowSlowLogStatisticsRequestBody.
148
+ :rtype: str
149
+ """
150
+ return self._node_id
151
+
152
+ @node_id.setter
153
+ def node_id(self, node_id):
154
+ """Sets the node_id of this ShowSlowLogStatisticsRequestBody.
155
+
156
+ 节点ID。
157
+
158
+ :param node_id: The node_id of this ShowSlowLogStatisticsRequestBody.
159
+ :type node_id: str
160
+ """
161
+ self._node_id = node_id
162
+
163
+ @property
164
+ def type(self):
165
+ """Gets the type of this ShowSlowLogStatisticsRequestBody.
166
+
167
+ 语句类型,取空值,表示查询所有语句类型。 枚举值: - INSERT - UPDATE - SELECT - DELETE - CREATE - ALL
168
+
169
+ :return: The type of this ShowSlowLogStatisticsRequestBody.
170
+ :rtype: str
171
+ """
172
+ return self._type
173
+
174
+ @type.setter
175
+ def type(self, type):
176
+ """Sets the type of this ShowSlowLogStatisticsRequestBody.
177
+
178
+ 语句类型,取空值,表示查询所有语句类型。 枚举值: - INSERT - UPDATE - SELECT - DELETE - CREATE - ALL
179
+
180
+ :param type: The type of this ShowSlowLogStatisticsRequestBody.
181
+ :type type: str
182
+ """
183
+ self._type = type
184
+
185
+ @property
186
+ def database(self):
187
+ """Gets the database of this ShowSlowLogStatisticsRequestBody.
188
+
189
+ 数据库名称。数据库名称不支持包含特殊字符 < > & 等的搜索。
190
+
191
+ :return: The database of this ShowSlowLogStatisticsRequestBody.
192
+ :rtype: str
193
+ """
194
+ return self._database
195
+
196
+ @database.setter
197
+ def database(self, database):
198
+ """Sets the database of this ShowSlowLogStatisticsRequestBody.
199
+
200
+ 数据库名称。数据库名称不支持包含特殊字符 < > & 等的搜索。
201
+
202
+ :param database: The database of this ShowSlowLogStatisticsRequestBody.
203
+ :type database: str
204
+ """
205
+ self._database = database
206
+
207
+ @property
208
+ def start_time(self):
209
+ """Gets the start_time of this ShowSlowLogStatisticsRequestBody.
210
+
211
+ 开始日期,格式为“yyyy-mm-ddThh:mm:ssZ”。 其中,T指某个时间的开始;Z指时区偏移量,例如北京时间偏移显示为+0800。
212
+
213
+ :return: The start_time of this ShowSlowLogStatisticsRequestBody.
214
+ :rtype: str
215
+ """
216
+ return self._start_time
217
+
218
+ @start_time.setter
219
+ def start_time(self, start_time):
220
+ """Sets the start_time of this ShowSlowLogStatisticsRequestBody.
221
+
222
+ 开始日期,格式为“yyyy-mm-ddThh:mm:ssZ”。 其中,T指某个时间的开始;Z指时区偏移量,例如北京时间偏移显示为+0800。
223
+
224
+ :param start_time: The start_time of this ShowSlowLogStatisticsRequestBody.
225
+ :type start_time: str
226
+ """
227
+ self._start_time = start_time
228
+
229
+ @property
230
+ def end_time(self):
231
+ """Gets the end_time of this ShowSlowLogStatisticsRequestBody.
232
+
233
+ 结束时间,格式为“yyyy-mm-ddThh:mm:ssZ”。 其中,T指某个时间的开始;Z指时区偏移量,例如北京时间偏移显示为+0800。只能查询当前时间前一个月内的慢日志。
234
+
235
+ :return: The end_time of this ShowSlowLogStatisticsRequestBody.
236
+ :rtype: str
237
+ """
238
+ return self._end_time
239
+
240
+ @end_time.setter
241
+ def end_time(self, end_time):
242
+ """Sets the end_time of this ShowSlowLogStatisticsRequestBody.
243
+
244
+ 结束时间,格式为“yyyy-mm-ddThh:mm:ssZ”。 其中,T指某个时间的开始;Z指时区偏移量,例如北京时间偏移显示为+0800。只能查询当前时间前一个月内的慢日志。
245
+
246
+ :param end_time: The end_time of this ShowSlowLogStatisticsRequestBody.
247
+ :type end_time: str
248
+ """
249
+ self._end_time = end_time
250
+
251
+ @property
252
+ def sort(self):
253
+ """Gets the sort of this ShowSlowLogStatisticsRequestBody.
254
+
255
+ 指定排序字段。 - executeTime:表示按照平均执行时间降序排序。 - 字段为空或传入其他值,表示按照执行次数降序排序。
256
+
257
+ :return: The sort of this ShowSlowLogStatisticsRequestBody.
258
+ :rtype: str
259
+ """
260
+ return self._sort
261
+
262
+ @sort.setter
263
+ def sort(self, sort):
264
+ """Sets the sort of this ShowSlowLogStatisticsRequestBody.
265
+
266
+ 指定排序字段。 - executeTime:表示按照平均执行时间降序排序。 - 字段为空或传入其他值,表示按照执行次数降序排序。
267
+
268
+ :param sort: The sort of this ShowSlowLogStatisticsRequestBody.
269
+ :type sort: str
270
+ """
271
+ self._sort = sort
272
+
273
+ @property
274
+ def order(self):
275
+ """Gets the order of this ShowSlowLogStatisticsRequestBody.
276
+
277
+ 排序顺序。默认desc。 枚举值: - desc - asc
278
+
279
+ :return: The order of this ShowSlowLogStatisticsRequestBody.
280
+ :rtype: str
281
+ """
282
+ return self._order
283
+
284
+ @order.setter
285
+ def order(self, order):
286
+ """Sets the order of this ShowSlowLogStatisticsRequestBody.
287
+
288
+ 排序顺序。默认desc。 枚举值: - desc - asc
289
+
290
+ :param order: The order of this ShowSlowLogStatisticsRequestBody.
291
+ :type order: str
292
+ """
293
+ self._order = order
294
+
295
+ def to_dict(self):
296
+ """Returns the model properties as a dict"""
297
+ result = {}
298
+
299
+ for attr, _ in six.iteritems(self.openapi_types):
300
+ value = getattr(self, attr)
301
+ if isinstance(value, list):
302
+ result[attr] = list(map(
303
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
304
+ value
305
+ ))
306
+ elif hasattr(value, "to_dict"):
307
+ result[attr] = value.to_dict()
308
+ elif isinstance(value, dict):
309
+ result[attr] = dict(map(
310
+ lambda item: (item[0], item[1].to_dict())
311
+ if hasattr(item[1], "to_dict") else item,
312
+ value.items()
313
+ ))
314
+ else:
315
+ if attr in self.sensitive_list:
316
+ result[attr] = "****"
317
+ else:
318
+ result[attr] = value
319
+
320
+ return result
321
+
322
+ def to_str(self):
323
+ """Returns the string representation of the model"""
324
+ import simplejson as json
325
+ if six.PY2:
326
+ import sys
327
+ reload(sys)
328
+ sys.setdefaultencoding("utf-8")
329
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
330
+
331
+ def __repr__(self):
332
+ """For `print`"""
333
+ return self.to_str()
334
+
335
+ def __eq__(self, other):
336
+ """Returns true if both objects are equal"""
337
+ if not isinstance(other, ShowSlowLogStatisticsRequestBody):
338
+ return False
339
+
340
+ return self.__dict__ == other.__dict__
341
+
342
+ def __ne__(self, other):
343
+ """Returns true if both objects are not equal"""
344
+ 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 ShowSlowLogStatisticsResponse(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
+ 'slow_log_list': 'list[ShowSlowLogStatisticsItem]',
22
+ 'total_count': 'int'
23
+ }
24
+
25
+ attribute_map = {
26
+ 'slow_log_list': 'slow_log_list',
27
+ 'total_count': 'total_count'
28
+ }
29
+
30
+ def __init__(self, slow_log_list=None, total_count=None):
31
+ """ShowSlowLogStatisticsResponse
32
+
33
+ The model defined in huaweicloud sdk
34
+
35
+ :param slow_log_list: 慢日志统计信息列表。
36
+ :type slow_log_list: list[:class:`huaweicloudsdkgaussdb.v3.ShowSlowLogStatisticsItem`]
37
+ :param total_count: 总条数。
38
+ :type total_count: int
39
+ """
40
+
41
+ super(ShowSlowLogStatisticsResponse, self).__init__()
42
+
43
+ self._slow_log_list = None
44
+ self._total_count = None
45
+ self.discriminator = None
46
+
47
+ if slow_log_list is not None:
48
+ self.slow_log_list = slow_log_list
49
+ if total_count is not None:
50
+ self.total_count = total_count
51
+
52
+ @property
53
+ def slow_log_list(self):
54
+ """Gets the slow_log_list of this ShowSlowLogStatisticsResponse.
55
+
56
+ 慢日志统计信息列表。
57
+
58
+ :return: The slow_log_list of this ShowSlowLogStatisticsResponse.
59
+ :rtype: list[:class:`huaweicloudsdkgaussdb.v3.ShowSlowLogStatisticsItem`]
60
+ """
61
+ return self._slow_log_list
62
+
63
+ @slow_log_list.setter
64
+ def slow_log_list(self, slow_log_list):
65
+ """Sets the slow_log_list of this ShowSlowLogStatisticsResponse.
66
+
67
+ 慢日志统计信息列表。
68
+
69
+ :param slow_log_list: The slow_log_list of this ShowSlowLogStatisticsResponse.
70
+ :type slow_log_list: list[:class:`huaweicloudsdkgaussdb.v3.ShowSlowLogStatisticsItem`]
71
+ """
72
+ self._slow_log_list = slow_log_list
73
+
74
+ @property
75
+ def total_count(self):
76
+ """Gets the total_count of this ShowSlowLogStatisticsResponse.
77
+
78
+ 总条数。
79
+
80
+ :return: The total_count of this ShowSlowLogStatisticsResponse.
81
+ :rtype: int
82
+ """
83
+ return self._total_count
84
+
85
+ @total_count.setter
86
+ def total_count(self, total_count):
87
+ """Sets the total_count of this ShowSlowLogStatisticsResponse.
88
+
89
+ 总条数。
90
+
91
+ :param total_count: The total_count of this ShowSlowLogStatisticsResponse.
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, ShowSlowLogStatisticsResponse):
139
+ return False
140
+
141
+ return self.__dict__ == other.__dict__
142
+
143
+ def __ne__(self, other):
144
+ """Returns true if both objects are not equal"""
145
+ return not self == other
@@ -0,0 +1,168 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class UpdateMultiTenantRequest:
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
+ 'body': 'OperateMultiTenantReq'
23
+ }
24
+
25
+ attribute_map = {
26
+ 'x_language': 'X-Language',
27
+ 'instance_id': 'instance_id',
28
+ 'body': 'body'
29
+ }
30
+
31
+ def __init__(self, x_language=None, instance_id=None, body=None):
32
+ """UpdateMultiTenantRequest
33
+
34
+ The model defined in huaweicloud sdk
35
+
36
+ :param x_language: 请求语言类型。默认en-us。 取值范围: - en-us - zh-cn
37
+ :type x_language: str
38
+ :param instance_id: 实例ID,严格匹配UUID规则。
39
+ :type instance_id: str
40
+ :param body: Body of the UpdateMultiTenantRequest
41
+ :type body: :class:`huaweicloudsdkgaussdb.v3.OperateMultiTenantReq`
42
+ """
43
+
44
+
45
+
46
+ self._x_language = None
47
+ self._instance_id = None
48
+ self._body = None
49
+ self.discriminator = None
50
+
51
+ if x_language is not None:
52
+ self.x_language = x_language
53
+ self.instance_id = instance_id
54
+ if body is not None:
55
+ self.body = body
56
+
57
+ @property
58
+ def x_language(self):
59
+ """Gets the x_language of this UpdateMultiTenantRequest.
60
+
61
+ 请求语言类型。默认en-us。 取值范围: - en-us - zh-cn
62
+
63
+ :return: The x_language of this UpdateMultiTenantRequest.
64
+ :rtype: str
65
+ """
66
+ return self._x_language
67
+
68
+ @x_language.setter
69
+ def x_language(self, x_language):
70
+ """Sets the x_language of this UpdateMultiTenantRequest.
71
+
72
+ 请求语言类型。默认en-us。 取值范围: - en-us - zh-cn
73
+
74
+ :param x_language: The x_language of this UpdateMultiTenantRequest.
75
+ :type x_language: str
76
+ """
77
+ self._x_language = x_language
78
+
79
+ @property
80
+ def instance_id(self):
81
+ """Gets the instance_id of this UpdateMultiTenantRequest.
82
+
83
+ 实例ID,严格匹配UUID规则。
84
+
85
+ :return: The instance_id of this UpdateMultiTenantRequest.
86
+ :rtype: str
87
+ """
88
+ return self._instance_id
89
+
90
+ @instance_id.setter
91
+ def instance_id(self, instance_id):
92
+ """Sets the instance_id of this UpdateMultiTenantRequest.
93
+
94
+ 实例ID,严格匹配UUID规则。
95
+
96
+ :param instance_id: The instance_id of this UpdateMultiTenantRequest.
97
+ :type instance_id: str
98
+ """
99
+ self._instance_id = instance_id
100
+
101
+ @property
102
+ def body(self):
103
+ """Gets the body of this UpdateMultiTenantRequest.
104
+
105
+ :return: The body of this UpdateMultiTenantRequest.
106
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.OperateMultiTenantReq`
107
+ """
108
+ return self._body
109
+
110
+ @body.setter
111
+ def body(self, body):
112
+ """Sets the body of this UpdateMultiTenantRequest.
113
+
114
+ :param body: The body of this UpdateMultiTenantRequest.
115
+ :type body: :class:`huaweicloudsdkgaussdb.v3.OperateMultiTenantReq`
116
+ """
117
+ self._body = body
118
+
119
+ def to_dict(self):
120
+ """Returns the model properties as a dict"""
121
+ result = {}
122
+
123
+ for attr, _ in six.iteritems(self.openapi_types):
124
+ value = getattr(self, attr)
125
+ if isinstance(value, list):
126
+ result[attr] = list(map(
127
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
128
+ value
129
+ ))
130
+ elif hasattr(value, "to_dict"):
131
+ result[attr] = value.to_dict()
132
+ elif isinstance(value, dict):
133
+ result[attr] = dict(map(
134
+ lambda item: (item[0], item[1].to_dict())
135
+ if hasattr(item[1], "to_dict") else item,
136
+ value.items()
137
+ ))
138
+ else:
139
+ if attr in self.sensitive_list:
140
+ result[attr] = "****"
141
+ else:
142
+ result[attr] = value
143
+
144
+ return result
145
+
146
+ def to_str(self):
147
+ """Returns the string representation of the model"""
148
+ import simplejson as json
149
+ if six.PY2:
150
+ import sys
151
+ reload(sys)
152
+ sys.setdefaultencoding("utf-8")
153
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
154
+
155
+ def __repr__(self):
156
+ """For `print`"""
157
+ return self.to_str()
158
+
159
+ def __eq__(self, other):
160
+ """Returns true if both objects are equal"""
161
+ if not isinstance(other, UpdateMultiTenantRequest):
162
+ return False
163
+
164
+ return self.__dict__ == other.__dict__
165
+
166
+ def __ne__(self, other):
167
+ """Returns true if both objects are not equal"""
168
+ return not self == other