huaweicloudsdkgaussdbforopengauss 3.1.119__py2.py3-none-any.whl → 3.1.121__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.
- huaweicloudsdkgaussdbforopengauss/v3/__init__.py +30 -0
- huaweicloudsdkgaussdbforopengauss/v3/gaussdbforopengauss_async_client.py +635 -0
- huaweicloudsdkgaussdbforopengauss/v3/gaussdbforopengauss_client.py +635 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/__init__.py +30 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/create_limit_task_node_option.py +142 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/create_limit_task_node_result.py +144 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/create_limit_task_request.py +139 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/create_limit_task_request_body.py +458 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/create_limit_task_response.py +725 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/delete_limit_task_request.py +142 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/delete_limit_task_response.py +85 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/error_response.py +142 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/limit_task_rule_info_option.py +170 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_limit_task_request.py +404 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_limit_task_response.py +203 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_limit_task_response_result.py +695 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_node_limit_sql_model_request.py +229 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_node_limit_sql_model_response.py +203 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_node_limit_sql_model_response_result.py +144 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/show_limit_task_node_option.py +142 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/show_limit_task_request.py +142 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/show_limit_task_response.py +406 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/start_my_sql_compatibility_request_body.py +114 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/start_mysql_compatibility_request.py +168 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/start_mysql_compatibility_response.py +116 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/stop_instance_request.py +168 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/stop_instance_request_body.py +114 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/stop_instance_response.py +116 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/update_limit_task_request.py +167 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/update_limit_task_request_body.py +318 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/update_limit_task_response.py +406 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/update_my_sql_compatibility_request_body.py +115 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/update_mysql_compatibility_request.py +168 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/update_mysql_compatibility_response.py +116 -0
- {huaweicloudsdkgaussdbforopengauss-3.1.119.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.121.dist-info}/METADATA +2 -2
- {huaweicloudsdkgaussdbforopengauss-3.1.119.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.121.dist-info}/RECORD +39 -9
- {huaweicloudsdkgaussdbforopengauss-3.1.119.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.121.dist-info}/LICENSE +0 -0
- {huaweicloudsdkgaussdbforopengauss-3.1.119.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.121.dist-info}/WHEEL +0 -0
- {huaweicloudsdkgaussdbforopengauss-3.1.119.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.121.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,404 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ListLimitTaskRequest:
|
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
|
+
'instance_id': 'str',
|
21
|
+
'task_scope': 'str',
|
22
|
+
'limit_type': 'str',
|
23
|
+
'limit_type_value': 'str',
|
24
|
+
'task_name': 'str',
|
25
|
+
'sql_model': 'str',
|
26
|
+
'rule_name': 'str',
|
27
|
+
'start_time': 'str',
|
28
|
+
'end_time': 'str',
|
29
|
+
'offset': 'int',
|
30
|
+
'limit': 'int'
|
31
|
+
}
|
32
|
+
|
33
|
+
attribute_map = {
|
34
|
+
'instance_id': 'instance_id',
|
35
|
+
'task_scope': 'task_scope',
|
36
|
+
'limit_type': 'limit_type',
|
37
|
+
'limit_type_value': 'limit_type_value',
|
38
|
+
'task_name': 'task_name',
|
39
|
+
'sql_model': 'sql_model',
|
40
|
+
'rule_name': 'rule_name',
|
41
|
+
'start_time': 'start_time',
|
42
|
+
'end_time': 'end_time',
|
43
|
+
'offset': 'offset',
|
44
|
+
'limit': 'limit'
|
45
|
+
}
|
46
|
+
|
47
|
+
def __init__(self, instance_id=None, task_scope=None, limit_type=None, limit_type_value=None, task_name=None, sql_model=None, rule_name=None, start_time=None, end_time=None, offset=None, limit=None):
|
48
|
+
"""ListLimitTaskRequest
|
49
|
+
|
50
|
+
The model defined in huaweicloud sdk
|
51
|
+
|
52
|
+
:param instance_id: 实例ID。
|
53
|
+
:type instance_id: str
|
54
|
+
:param task_scope: 限流任务范围,目前支持SQL,SESSION。
|
55
|
+
:type task_scope: str
|
56
|
+
:param limit_type: 限流类型,支持SQL_ID、SQL_TYPE、SESSION_ACTIVE_MAX_COUNT类型。
|
57
|
+
:type limit_type: str
|
58
|
+
:param limit_type_value: 限流类型值,支持模糊匹配。
|
59
|
+
:type limit_type_value: str
|
60
|
+
:param task_name: 限流任务名,支持模糊匹配。
|
61
|
+
:type task_name: str
|
62
|
+
:param sql_model: sql模板,支持模糊匹配。
|
63
|
+
:type sql_model: str
|
64
|
+
:param rule_name: 规则名。
|
65
|
+
:type rule_name: str
|
66
|
+
:param start_time: 限流任务开始时间,格式为yyyy-mm-ddThh:mm:ssZ,当前时间指UTC时间。
|
67
|
+
:type start_time: str
|
68
|
+
:param end_time: 限流任务结束时间,格式为yyyy-mm-ddThh:mm:ssZ,当前时间指UTC时间。
|
69
|
+
:type end_time: str
|
70
|
+
:param offset: 索引位置,偏移量。从第一条数据偏移offset条数据后开始查询,默认为0(偏移0条数据,表示从第一条数据开始查询),必须为数字,不能为负数。 取值范围:0 - 10000
|
71
|
+
:type offset: int
|
72
|
+
:param limit: 查询记录数。默认为10,不能为负数,最小值为1,最大值为100。
|
73
|
+
:type limit: int
|
74
|
+
"""
|
75
|
+
|
76
|
+
|
77
|
+
|
78
|
+
self._instance_id = None
|
79
|
+
self._task_scope = None
|
80
|
+
self._limit_type = None
|
81
|
+
self._limit_type_value = None
|
82
|
+
self._task_name = None
|
83
|
+
self._sql_model = None
|
84
|
+
self._rule_name = None
|
85
|
+
self._start_time = None
|
86
|
+
self._end_time = None
|
87
|
+
self._offset = None
|
88
|
+
self._limit = None
|
89
|
+
self.discriminator = None
|
90
|
+
|
91
|
+
self.instance_id = instance_id
|
92
|
+
if task_scope is not None:
|
93
|
+
self.task_scope = task_scope
|
94
|
+
if limit_type is not None:
|
95
|
+
self.limit_type = limit_type
|
96
|
+
if limit_type_value is not None:
|
97
|
+
self.limit_type_value = limit_type_value
|
98
|
+
if task_name is not None:
|
99
|
+
self.task_name = task_name
|
100
|
+
if sql_model is not None:
|
101
|
+
self.sql_model = sql_model
|
102
|
+
if rule_name is not None:
|
103
|
+
self.rule_name = rule_name
|
104
|
+
if start_time is not None:
|
105
|
+
self.start_time = start_time
|
106
|
+
if end_time is not None:
|
107
|
+
self.end_time = end_time
|
108
|
+
if offset is not None:
|
109
|
+
self.offset = offset
|
110
|
+
if limit is not None:
|
111
|
+
self.limit = limit
|
112
|
+
|
113
|
+
@property
|
114
|
+
def instance_id(self):
|
115
|
+
"""Gets the instance_id of this ListLimitTaskRequest.
|
116
|
+
|
117
|
+
实例ID。
|
118
|
+
|
119
|
+
:return: The instance_id of this ListLimitTaskRequest.
|
120
|
+
:rtype: str
|
121
|
+
"""
|
122
|
+
return self._instance_id
|
123
|
+
|
124
|
+
@instance_id.setter
|
125
|
+
def instance_id(self, instance_id):
|
126
|
+
"""Sets the instance_id of this ListLimitTaskRequest.
|
127
|
+
|
128
|
+
实例ID。
|
129
|
+
|
130
|
+
:param instance_id: The instance_id of this ListLimitTaskRequest.
|
131
|
+
:type instance_id: str
|
132
|
+
"""
|
133
|
+
self._instance_id = instance_id
|
134
|
+
|
135
|
+
@property
|
136
|
+
def task_scope(self):
|
137
|
+
"""Gets the task_scope of this ListLimitTaskRequest.
|
138
|
+
|
139
|
+
限流任务范围,目前支持SQL,SESSION。
|
140
|
+
|
141
|
+
:return: The task_scope of this ListLimitTaskRequest.
|
142
|
+
:rtype: str
|
143
|
+
"""
|
144
|
+
return self._task_scope
|
145
|
+
|
146
|
+
@task_scope.setter
|
147
|
+
def task_scope(self, task_scope):
|
148
|
+
"""Sets the task_scope of this ListLimitTaskRequest.
|
149
|
+
|
150
|
+
限流任务范围,目前支持SQL,SESSION。
|
151
|
+
|
152
|
+
:param task_scope: The task_scope of this ListLimitTaskRequest.
|
153
|
+
:type task_scope: str
|
154
|
+
"""
|
155
|
+
self._task_scope = task_scope
|
156
|
+
|
157
|
+
@property
|
158
|
+
def limit_type(self):
|
159
|
+
"""Gets the limit_type of this ListLimitTaskRequest.
|
160
|
+
|
161
|
+
限流类型,支持SQL_ID、SQL_TYPE、SESSION_ACTIVE_MAX_COUNT类型。
|
162
|
+
|
163
|
+
:return: The limit_type of this ListLimitTaskRequest.
|
164
|
+
:rtype: str
|
165
|
+
"""
|
166
|
+
return self._limit_type
|
167
|
+
|
168
|
+
@limit_type.setter
|
169
|
+
def limit_type(self, limit_type):
|
170
|
+
"""Sets the limit_type of this ListLimitTaskRequest.
|
171
|
+
|
172
|
+
限流类型,支持SQL_ID、SQL_TYPE、SESSION_ACTIVE_MAX_COUNT类型。
|
173
|
+
|
174
|
+
:param limit_type: The limit_type of this ListLimitTaskRequest.
|
175
|
+
:type limit_type: str
|
176
|
+
"""
|
177
|
+
self._limit_type = limit_type
|
178
|
+
|
179
|
+
@property
|
180
|
+
def limit_type_value(self):
|
181
|
+
"""Gets the limit_type_value of this ListLimitTaskRequest.
|
182
|
+
|
183
|
+
限流类型值,支持模糊匹配。
|
184
|
+
|
185
|
+
:return: The limit_type_value of this ListLimitTaskRequest.
|
186
|
+
:rtype: str
|
187
|
+
"""
|
188
|
+
return self._limit_type_value
|
189
|
+
|
190
|
+
@limit_type_value.setter
|
191
|
+
def limit_type_value(self, limit_type_value):
|
192
|
+
"""Sets the limit_type_value of this ListLimitTaskRequest.
|
193
|
+
|
194
|
+
限流类型值,支持模糊匹配。
|
195
|
+
|
196
|
+
:param limit_type_value: The limit_type_value of this ListLimitTaskRequest.
|
197
|
+
:type limit_type_value: str
|
198
|
+
"""
|
199
|
+
self._limit_type_value = limit_type_value
|
200
|
+
|
201
|
+
@property
|
202
|
+
def task_name(self):
|
203
|
+
"""Gets the task_name of this ListLimitTaskRequest.
|
204
|
+
|
205
|
+
限流任务名,支持模糊匹配。
|
206
|
+
|
207
|
+
:return: The task_name of this ListLimitTaskRequest.
|
208
|
+
:rtype: str
|
209
|
+
"""
|
210
|
+
return self._task_name
|
211
|
+
|
212
|
+
@task_name.setter
|
213
|
+
def task_name(self, task_name):
|
214
|
+
"""Sets the task_name of this ListLimitTaskRequest.
|
215
|
+
|
216
|
+
限流任务名,支持模糊匹配。
|
217
|
+
|
218
|
+
:param task_name: The task_name of this ListLimitTaskRequest.
|
219
|
+
:type task_name: str
|
220
|
+
"""
|
221
|
+
self._task_name = task_name
|
222
|
+
|
223
|
+
@property
|
224
|
+
def sql_model(self):
|
225
|
+
"""Gets the sql_model of this ListLimitTaskRequest.
|
226
|
+
|
227
|
+
sql模板,支持模糊匹配。
|
228
|
+
|
229
|
+
:return: The sql_model of this ListLimitTaskRequest.
|
230
|
+
:rtype: str
|
231
|
+
"""
|
232
|
+
return self._sql_model
|
233
|
+
|
234
|
+
@sql_model.setter
|
235
|
+
def sql_model(self, sql_model):
|
236
|
+
"""Sets the sql_model of this ListLimitTaskRequest.
|
237
|
+
|
238
|
+
sql模板,支持模糊匹配。
|
239
|
+
|
240
|
+
:param sql_model: The sql_model of this ListLimitTaskRequest.
|
241
|
+
:type sql_model: str
|
242
|
+
"""
|
243
|
+
self._sql_model = sql_model
|
244
|
+
|
245
|
+
@property
|
246
|
+
def rule_name(self):
|
247
|
+
"""Gets the rule_name of this ListLimitTaskRequest.
|
248
|
+
|
249
|
+
规则名。
|
250
|
+
|
251
|
+
:return: The rule_name of this ListLimitTaskRequest.
|
252
|
+
:rtype: str
|
253
|
+
"""
|
254
|
+
return self._rule_name
|
255
|
+
|
256
|
+
@rule_name.setter
|
257
|
+
def rule_name(self, rule_name):
|
258
|
+
"""Sets the rule_name of this ListLimitTaskRequest.
|
259
|
+
|
260
|
+
规则名。
|
261
|
+
|
262
|
+
:param rule_name: The rule_name of this ListLimitTaskRequest.
|
263
|
+
:type rule_name: str
|
264
|
+
"""
|
265
|
+
self._rule_name = rule_name
|
266
|
+
|
267
|
+
@property
|
268
|
+
def start_time(self):
|
269
|
+
"""Gets the start_time of this ListLimitTaskRequest.
|
270
|
+
|
271
|
+
限流任务开始时间,格式为yyyy-mm-ddThh:mm:ssZ,当前时间指UTC时间。
|
272
|
+
|
273
|
+
:return: The start_time of this ListLimitTaskRequest.
|
274
|
+
:rtype: str
|
275
|
+
"""
|
276
|
+
return self._start_time
|
277
|
+
|
278
|
+
@start_time.setter
|
279
|
+
def start_time(self, start_time):
|
280
|
+
"""Sets the start_time of this ListLimitTaskRequest.
|
281
|
+
|
282
|
+
限流任务开始时间,格式为yyyy-mm-ddThh:mm:ssZ,当前时间指UTC时间。
|
283
|
+
|
284
|
+
:param start_time: The start_time of this ListLimitTaskRequest.
|
285
|
+
:type start_time: str
|
286
|
+
"""
|
287
|
+
self._start_time = start_time
|
288
|
+
|
289
|
+
@property
|
290
|
+
def end_time(self):
|
291
|
+
"""Gets the end_time of this ListLimitTaskRequest.
|
292
|
+
|
293
|
+
限流任务结束时间,格式为yyyy-mm-ddThh:mm:ssZ,当前时间指UTC时间。
|
294
|
+
|
295
|
+
:return: The end_time of this ListLimitTaskRequest.
|
296
|
+
:rtype: str
|
297
|
+
"""
|
298
|
+
return self._end_time
|
299
|
+
|
300
|
+
@end_time.setter
|
301
|
+
def end_time(self, end_time):
|
302
|
+
"""Sets the end_time of this ListLimitTaskRequest.
|
303
|
+
|
304
|
+
限流任务结束时间,格式为yyyy-mm-ddThh:mm:ssZ,当前时间指UTC时间。
|
305
|
+
|
306
|
+
:param end_time: The end_time of this ListLimitTaskRequest.
|
307
|
+
:type end_time: str
|
308
|
+
"""
|
309
|
+
self._end_time = end_time
|
310
|
+
|
311
|
+
@property
|
312
|
+
def offset(self):
|
313
|
+
"""Gets the offset of this ListLimitTaskRequest.
|
314
|
+
|
315
|
+
索引位置,偏移量。从第一条数据偏移offset条数据后开始查询,默认为0(偏移0条数据,表示从第一条数据开始查询),必须为数字,不能为负数。 取值范围:0 - 10000
|
316
|
+
|
317
|
+
:return: The offset of this ListLimitTaskRequest.
|
318
|
+
:rtype: int
|
319
|
+
"""
|
320
|
+
return self._offset
|
321
|
+
|
322
|
+
@offset.setter
|
323
|
+
def offset(self, offset):
|
324
|
+
"""Sets the offset of this ListLimitTaskRequest.
|
325
|
+
|
326
|
+
索引位置,偏移量。从第一条数据偏移offset条数据后开始查询,默认为0(偏移0条数据,表示从第一条数据开始查询),必须为数字,不能为负数。 取值范围:0 - 10000
|
327
|
+
|
328
|
+
:param offset: The offset of this ListLimitTaskRequest.
|
329
|
+
:type offset: int
|
330
|
+
"""
|
331
|
+
self._offset = offset
|
332
|
+
|
333
|
+
@property
|
334
|
+
def limit(self):
|
335
|
+
"""Gets the limit of this ListLimitTaskRequest.
|
336
|
+
|
337
|
+
查询记录数。默认为10,不能为负数,最小值为1,最大值为100。
|
338
|
+
|
339
|
+
:return: The limit of this ListLimitTaskRequest.
|
340
|
+
:rtype: int
|
341
|
+
"""
|
342
|
+
return self._limit
|
343
|
+
|
344
|
+
@limit.setter
|
345
|
+
def limit(self, limit):
|
346
|
+
"""Sets the limit of this ListLimitTaskRequest.
|
347
|
+
|
348
|
+
查询记录数。默认为10,不能为负数,最小值为1,最大值为100。
|
349
|
+
|
350
|
+
:param limit: The limit of this ListLimitTaskRequest.
|
351
|
+
:type limit: int
|
352
|
+
"""
|
353
|
+
self._limit = limit
|
354
|
+
|
355
|
+
def to_dict(self):
|
356
|
+
"""Returns the model properties as a dict"""
|
357
|
+
result = {}
|
358
|
+
|
359
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
360
|
+
value = getattr(self, attr)
|
361
|
+
if isinstance(value, list):
|
362
|
+
result[attr] = list(map(
|
363
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
364
|
+
value
|
365
|
+
))
|
366
|
+
elif hasattr(value, "to_dict"):
|
367
|
+
result[attr] = value.to_dict()
|
368
|
+
elif isinstance(value, dict):
|
369
|
+
result[attr] = dict(map(
|
370
|
+
lambda item: (item[0], item[1].to_dict())
|
371
|
+
if hasattr(item[1], "to_dict") else item,
|
372
|
+
value.items()
|
373
|
+
))
|
374
|
+
else:
|
375
|
+
if attr in self.sensitive_list:
|
376
|
+
result[attr] = "****"
|
377
|
+
else:
|
378
|
+
result[attr] = value
|
379
|
+
|
380
|
+
return result
|
381
|
+
|
382
|
+
def to_str(self):
|
383
|
+
"""Returns the string representation of the model"""
|
384
|
+
import simplejson as json
|
385
|
+
if six.PY2:
|
386
|
+
import sys
|
387
|
+
reload(sys)
|
388
|
+
sys.setdefaultencoding("utf-8")
|
389
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
390
|
+
|
391
|
+
def __repr__(self):
|
392
|
+
"""For `print`"""
|
393
|
+
return self.to_str()
|
394
|
+
|
395
|
+
def __eq__(self, other):
|
396
|
+
"""Returns true if both objects are equal"""
|
397
|
+
if not isinstance(other, ListLimitTaskRequest):
|
398
|
+
return False
|
399
|
+
|
400
|
+
return self.__dict__ == other.__dict__
|
401
|
+
|
402
|
+
def __ne__(self, other):
|
403
|
+
"""Returns true if both objects are not equal"""
|
404
|
+
return not self == other
|
@@ -0,0 +1,203 @@
|
|
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 ListLimitTaskResponse(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
|
+
'limit_task_list': 'list[ListLimitTaskResponseResult]',
|
22
|
+
'limit': 'int',
|
23
|
+
'offset': 'int',
|
24
|
+
'total_count': 'int'
|
25
|
+
}
|
26
|
+
|
27
|
+
attribute_map = {
|
28
|
+
'limit_task_list': 'limit_task_list',
|
29
|
+
'limit': 'limit',
|
30
|
+
'offset': 'offset',
|
31
|
+
'total_count': 'total_count'
|
32
|
+
}
|
33
|
+
|
34
|
+
def __init__(self, limit_task_list=None, limit=None, offset=None, total_count=None):
|
35
|
+
"""ListLimitTaskResponse
|
36
|
+
|
37
|
+
The model defined in huaweicloud sdk
|
38
|
+
|
39
|
+
:param limit_task_list: 限流任务列表
|
40
|
+
:type limit_task_list: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.ListLimitTaskResponseResult`]
|
41
|
+
:param limit: 查询记录数。
|
42
|
+
:type limit: int
|
43
|
+
:param offset: 索引位置。
|
44
|
+
:type offset: int
|
45
|
+
:param total_count: 总数。
|
46
|
+
:type total_count: int
|
47
|
+
"""
|
48
|
+
|
49
|
+
super(ListLimitTaskResponse, self).__init__()
|
50
|
+
|
51
|
+
self._limit_task_list = None
|
52
|
+
self._limit = None
|
53
|
+
self._offset = None
|
54
|
+
self._total_count = None
|
55
|
+
self.discriminator = None
|
56
|
+
|
57
|
+
if limit_task_list is not None:
|
58
|
+
self.limit_task_list = limit_task_list
|
59
|
+
if limit is not None:
|
60
|
+
self.limit = limit
|
61
|
+
if offset is not None:
|
62
|
+
self.offset = offset
|
63
|
+
if total_count is not None:
|
64
|
+
self.total_count = total_count
|
65
|
+
|
66
|
+
@property
|
67
|
+
def limit_task_list(self):
|
68
|
+
"""Gets the limit_task_list of this ListLimitTaskResponse.
|
69
|
+
|
70
|
+
限流任务列表
|
71
|
+
|
72
|
+
:return: The limit_task_list of this ListLimitTaskResponse.
|
73
|
+
:rtype: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.ListLimitTaskResponseResult`]
|
74
|
+
"""
|
75
|
+
return self._limit_task_list
|
76
|
+
|
77
|
+
@limit_task_list.setter
|
78
|
+
def limit_task_list(self, limit_task_list):
|
79
|
+
"""Sets the limit_task_list of this ListLimitTaskResponse.
|
80
|
+
|
81
|
+
限流任务列表
|
82
|
+
|
83
|
+
:param limit_task_list: The limit_task_list of this ListLimitTaskResponse.
|
84
|
+
:type limit_task_list: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.ListLimitTaskResponseResult`]
|
85
|
+
"""
|
86
|
+
self._limit_task_list = limit_task_list
|
87
|
+
|
88
|
+
@property
|
89
|
+
def limit(self):
|
90
|
+
"""Gets the limit of this ListLimitTaskResponse.
|
91
|
+
|
92
|
+
查询记录数。
|
93
|
+
|
94
|
+
:return: The limit of this ListLimitTaskResponse.
|
95
|
+
:rtype: int
|
96
|
+
"""
|
97
|
+
return self._limit
|
98
|
+
|
99
|
+
@limit.setter
|
100
|
+
def limit(self, limit):
|
101
|
+
"""Sets the limit of this ListLimitTaskResponse.
|
102
|
+
|
103
|
+
查询记录数。
|
104
|
+
|
105
|
+
:param limit: The limit of this ListLimitTaskResponse.
|
106
|
+
:type limit: int
|
107
|
+
"""
|
108
|
+
self._limit = limit
|
109
|
+
|
110
|
+
@property
|
111
|
+
def offset(self):
|
112
|
+
"""Gets the offset of this ListLimitTaskResponse.
|
113
|
+
|
114
|
+
索引位置。
|
115
|
+
|
116
|
+
:return: The offset of this ListLimitTaskResponse.
|
117
|
+
:rtype: int
|
118
|
+
"""
|
119
|
+
return self._offset
|
120
|
+
|
121
|
+
@offset.setter
|
122
|
+
def offset(self, offset):
|
123
|
+
"""Sets the offset of this ListLimitTaskResponse.
|
124
|
+
|
125
|
+
索引位置。
|
126
|
+
|
127
|
+
:param offset: The offset of this ListLimitTaskResponse.
|
128
|
+
:type offset: int
|
129
|
+
"""
|
130
|
+
self._offset = offset
|
131
|
+
|
132
|
+
@property
|
133
|
+
def total_count(self):
|
134
|
+
"""Gets the total_count of this ListLimitTaskResponse.
|
135
|
+
|
136
|
+
总数。
|
137
|
+
|
138
|
+
:return: The total_count of this ListLimitTaskResponse.
|
139
|
+
:rtype: int
|
140
|
+
"""
|
141
|
+
return self._total_count
|
142
|
+
|
143
|
+
@total_count.setter
|
144
|
+
def total_count(self, total_count):
|
145
|
+
"""Sets the total_count of this ListLimitTaskResponse.
|
146
|
+
|
147
|
+
总数。
|
148
|
+
|
149
|
+
:param total_count: The total_count of this ListLimitTaskResponse.
|
150
|
+
:type total_count: int
|
151
|
+
"""
|
152
|
+
self._total_count = total_count
|
153
|
+
|
154
|
+
def to_dict(self):
|
155
|
+
"""Returns the model properties as a dict"""
|
156
|
+
result = {}
|
157
|
+
|
158
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
159
|
+
value = getattr(self, attr)
|
160
|
+
if isinstance(value, list):
|
161
|
+
result[attr] = list(map(
|
162
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
163
|
+
value
|
164
|
+
))
|
165
|
+
elif hasattr(value, "to_dict"):
|
166
|
+
result[attr] = value.to_dict()
|
167
|
+
elif isinstance(value, dict):
|
168
|
+
result[attr] = dict(map(
|
169
|
+
lambda item: (item[0], item[1].to_dict())
|
170
|
+
if hasattr(item[1], "to_dict") else item,
|
171
|
+
value.items()
|
172
|
+
))
|
173
|
+
else:
|
174
|
+
if attr in self.sensitive_list:
|
175
|
+
result[attr] = "****"
|
176
|
+
else:
|
177
|
+
result[attr] = value
|
178
|
+
|
179
|
+
return result
|
180
|
+
|
181
|
+
def to_str(self):
|
182
|
+
"""Returns the string representation of the model"""
|
183
|
+
import simplejson as json
|
184
|
+
if six.PY2:
|
185
|
+
import sys
|
186
|
+
reload(sys)
|
187
|
+
sys.setdefaultencoding("utf-8")
|
188
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
189
|
+
|
190
|
+
def __repr__(self):
|
191
|
+
"""For `print`"""
|
192
|
+
return self.to_str()
|
193
|
+
|
194
|
+
def __eq__(self, other):
|
195
|
+
"""Returns true if both objects are equal"""
|
196
|
+
if not isinstance(other, ListLimitTaskResponse):
|
197
|
+
return False
|
198
|
+
|
199
|
+
return self.__dict__ == other.__dict__
|
200
|
+
|
201
|
+
def __ne__(self, other):
|
202
|
+
"""Returns true if both objects are not equal"""
|
203
|
+
return not self == other
|