huaweicloudsdkgaussdb 3.1.144__py2.py3-none-any.whl → 3.1.146__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.
- huaweicloudsdkgaussdb/v3/__init__.py +13 -0
- huaweicloudsdkgaussdb/v3/gaussdb_async_client.py +743 -388
- huaweicloudsdkgaussdb/v3/gaussdb_client.py +743 -388
- huaweicloudsdkgaussdb/v3/model/__init__.py +13 -0
- huaweicloudsdkgaussdb/v3/model/delete_taurus_db_node_processes_request.py +196 -0
- huaweicloudsdkgaussdb/v3/model/delete_taurus_db_node_processes_request_body.py +114 -0
- huaweicloudsdkgaussdb/v3/model/delete_taurus_db_node_processes_response.py +145 -0
- huaweicloudsdkgaussdb/v3/model/list_taurus_db_node_processes_request.py +229 -0
- huaweicloudsdkgaussdb/v3/model/list_taurus_db_node_processes_response.py +145 -0
- huaweicloudsdkgaussdb/v3/model/modify_auto_expand_policy_req.py +202 -0
- huaweicloudsdkgaussdb/v3/model/modify_auto_expand_policy_request.py +168 -0
- huaweicloudsdkgaussdb/v3/model/modify_auto_expand_policy_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/modify_node_data_ip_request.py +3 -3
- huaweicloudsdkgaussdb/v3/model/show_auto_expand_policy_request.py +143 -0
- huaweicloudsdkgaussdb/v3/model/show_auto_expand_policy_response.py +203 -0
- huaweicloudsdkgaussdb/v3/model/show_restore_available_tables_request.py +257 -0
- huaweicloudsdkgaussdb/v3/model/show_restore_available_tables_response.py +145 -0
- huaweicloudsdkgaussdb/v3/model/taurus_db_process_info.py +310 -0
- {huaweicloudsdkgaussdb-3.1.144.dist-info → huaweicloudsdkgaussdb-3.1.146.dist-info}/METADATA +2 -2
- {huaweicloudsdkgaussdb-3.1.144.dist-info → huaweicloudsdkgaussdb-3.1.146.dist-info}/RECORD +23 -10
- {huaweicloudsdkgaussdb-3.1.144.dist-info → huaweicloudsdkgaussdb-3.1.146.dist-info}/LICENSE +0 -0
- {huaweicloudsdkgaussdb-3.1.144.dist-info → huaweicloudsdkgaussdb-3.1.146.dist-info}/WHEEL +0 -0
- {huaweicloudsdkgaussdb-3.1.144.dist-info → huaweicloudsdkgaussdb-3.1.146.dist-info}/top_level.txt +0 -0
@@ -2087,6 +2087,75 @@ class GaussDBClient(Client):
|
|
2087
2087
|
|
2088
2088
|
return http_info
|
2089
2089
|
|
2090
|
+
def delete_sql_filter_rule(self, request):
|
2091
|
+
r"""删除SQL限流规则
|
2092
|
+
|
2093
|
+
删除SQL限流规则。
|
2094
|
+
|
2095
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
2096
|
+
|
2097
|
+
:param request: Request instance for DeleteSqlFilterRule
|
2098
|
+
:type request: :class:`huaweicloudsdkgaussdb.v3.DeleteSqlFilterRuleRequest`
|
2099
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.DeleteSqlFilterRuleResponse`
|
2100
|
+
"""
|
2101
|
+
http_info = self._delete_sql_filter_rule_http_info(request)
|
2102
|
+
return self._call_api(**http_info)
|
2103
|
+
|
2104
|
+
def delete_sql_filter_rule_invoker(self, request):
|
2105
|
+
http_info = self._delete_sql_filter_rule_http_info(request)
|
2106
|
+
return SyncInvoker(self, http_info)
|
2107
|
+
|
2108
|
+
@classmethod
|
2109
|
+
def _delete_sql_filter_rule_http_info(cls, request):
|
2110
|
+
http_info = {
|
2111
|
+
"method": "DELETE",
|
2112
|
+
"resource_path": "/v3/{project_id}/instances/{instance_id}/sql-filter/rules",
|
2113
|
+
"request_type": request.__class__.__name__,
|
2114
|
+
"response_type": "DeleteSqlFilterRuleResponse"
|
2115
|
+
}
|
2116
|
+
|
2117
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
2118
|
+
|
2119
|
+
cname = None
|
2120
|
+
|
2121
|
+
collection_formats = {}
|
2122
|
+
|
2123
|
+
path_params = {}
|
2124
|
+
if 'instance_id' in local_var_params:
|
2125
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
2126
|
+
|
2127
|
+
query_params = []
|
2128
|
+
|
2129
|
+
header_params = {}
|
2130
|
+
if 'x_language' in local_var_params:
|
2131
|
+
header_params['X-Language'] = local_var_params['x_language']
|
2132
|
+
|
2133
|
+
form_params = {}
|
2134
|
+
|
2135
|
+
body = None
|
2136
|
+
if 'body' in local_var_params:
|
2137
|
+
body = local_var_params['body']
|
2138
|
+
if isinstance(request, SdkStreamRequest):
|
2139
|
+
body = request.get_file_stream()
|
2140
|
+
|
2141
|
+
response_headers = []
|
2142
|
+
|
2143
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
2144
|
+
['application/json;charset=UTF-8'])
|
2145
|
+
|
2146
|
+
auth_settings = []
|
2147
|
+
|
2148
|
+
http_info["cname"] = cname
|
2149
|
+
http_info["collection_formats"] = collection_formats
|
2150
|
+
http_info["path_params"] = path_params
|
2151
|
+
http_info["query_params"] = query_params
|
2152
|
+
http_info["header_params"] = header_params
|
2153
|
+
http_info["post_params"] = form_params
|
2154
|
+
http_info["body"] = body
|
2155
|
+
http_info["response_headers"] = response_headers
|
2156
|
+
|
2157
|
+
return http_info
|
2158
|
+
|
2090
2159
|
def delete_task_record(self, request):
|
2091
2160
|
r"""删除指定任务记录
|
2092
2161
|
|
@@ -2154,6 +2223,77 @@ class GaussDBClient(Client):
|
|
2154
2223
|
|
2155
2224
|
return http_info
|
2156
2225
|
|
2226
|
+
def delete_taurus_db_node_processes(self, request):
|
2227
|
+
r"""终止节点用户会话线程
|
2228
|
+
|
2229
|
+
终止TaurusDB节点中指定的用户会话线程,执行时将排除传入的内部会话线程。
|
2230
|
+
|
2231
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
2232
|
+
|
2233
|
+
:param request: Request instance for DeleteTaurusDbNodeProcesses
|
2234
|
+
:type request: :class:`huaweicloudsdkgaussdb.v3.DeleteTaurusDbNodeProcessesRequest`
|
2235
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.DeleteTaurusDbNodeProcessesResponse`
|
2236
|
+
"""
|
2237
|
+
http_info = self._delete_taurus_db_node_processes_http_info(request)
|
2238
|
+
return self._call_api(**http_info)
|
2239
|
+
|
2240
|
+
def delete_taurus_db_node_processes_invoker(self, request):
|
2241
|
+
http_info = self._delete_taurus_db_node_processes_http_info(request)
|
2242
|
+
return SyncInvoker(self, http_info)
|
2243
|
+
|
2244
|
+
@classmethod
|
2245
|
+
def _delete_taurus_db_node_processes_http_info(cls, request):
|
2246
|
+
http_info = {
|
2247
|
+
"method": "DELETE",
|
2248
|
+
"resource_path": "/v3/{project_id}/instances/{instance_id}/nodes/{node_id}/processes",
|
2249
|
+
"request_type": request.__class__.__name__,
|
2250
|
+
"response_type": "DeleteTaurusDbNodeProcessesResponse"
|
2251
|
+
}
|
2252
|
+
|
2253
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
2254
|
+
|
2255
|
+
cname = None
|
2256
|
+
|
2257
|
+
collection_formats = {}
|
2258
|
+
|
2259
|
+
path_params = {}
|
2260
|
+
if 'instance_id' in local_var_params:
|
2261
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
2262
|
+
if 'node_id' in local_var_params:
|
2263
|
+
path_params['node_id'] = local_var_params['node_id']
|
2264
|
+
|
2265
|
+
query_params = []
|
2266
|
+
|
2267
|
+
header_params = {}
|
2268
|
+
if 'x_language' in local_var_params:
|
2269
|
+
header_params['X-Language'] = local_var_params['x_language']
|
2270
|
+
|
2271
|
+
form_params = {}
|
2272
|
+
|
2273
|
+
body = None
|
2274
|
+
if 'body' in local_var_params:
|
2275
|
+
body = local_var_params['body']
|
2276
|
+
if isinstance(request, SdkStreamRequest):
|
2277
|
+
body = request.get_file_stream()
|
2278
|
+
|
2279
|
+
response_headers = []
|
2280
|
+
|
2281
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
2282
|
+
['application/json;charset=UTF-8'])
|
2283
|
+
|
2284
|
+
auth_settings = []
|
2285
|
+
|
2286
|
+
http_info["cname"] = cname
|
2287
|
+
http_info["collection_formats"] = collection_formats
|
2288
|
+
http_info["path_params"] = path_params
|
2289
|
+
http_info["query_params"] = query_params
|
2290
|
+
http_info["header_params"] = header_params
|
2291
|
+
http_info["post_params"] = form_params
|
2292
|
+
http_info["body"] = body
|
2293
|
+
http_info["response_headers"] = response_headers
|
2294
|
+
|
2295
|
+
return http_info
|
2296
|
+
|
2157
2297
|
def describe_backup_encrypt_status(self, request):
|
2158
2298
|
r"""查询实例是否开启备份加密功能
|
2159
2299
|
|
@@ -4161,6 +4301,148 @@ class GaussDBClient(Client):
|
|
4161
4301
|
|
4162
4302
|
return http_info
|
4163
4303
|
|
4304
|
+
def list_taurus_db_node_processes(self, request):
|
4305
|
+
r"""查询节点用户会话线程
|
4306
|
+
|
4307
|
+
分页查询TaurusDB节点中的用户会话线程,对应于show processlist命令,返回结果不含内部会话线程。
|
4308
|
+
|
4309
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
4310
|
+
|
4311
|
+
:param request: Request instance for ListTaurusDbNodeProcesses
|
4312
|
+
:type request: :class:`huaweicloudsdkgaussdb.v3.ListTaurusDbNodeProcessesRequest`
|
4313
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.ListTaurusDbNodeProcessesResponse`
|
4314
|
+
"""
|
4315
|
+
http_info = self._list_taurus_db_node_processes_http_info(request)
|
4316
|
+
return self._call_api(**http_info)
|
4317
|
+
|
4318
|
+
def list_taurus_db_node_processes_invoker(self, request):
|
4319
|
+
http_info = self._list_taurus_db_node_processes_http_info(request)
|
4320
|
+
return SyncInvoker(self, http_info)
|
4321
|
+
|
4322
|
+
@classmethod
|
4323
|
+
def _list_taurus_db_node_processes_http_info(cls, request):
|
4324
|
+
http_info = {
|
4325
|
+
"method": "GET",
|
4326
|
+
"resource_path": "/v3/{project_id}/instances/{instance_id}/nodes/{node_id}/processes",
|
4327
|
+
"request_type": request.__class__.__name__,
|
4328
|
+
"response_type": "ListTaurusDbNodeProcessesResponse"
|
4329
|
+
}
|
4330
|
+
|
4331
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
4332
|
+
|
4333
|
+
cname = None
|
4334
|
+
|
4335
|
+
collection_formats = {}
|
4336
|
+
|
4337
|
+
path_params = {}
|
4338
|
+
if 'instance_id' in local_var_params:
|
4339
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
4340
|
+
if 'node_id' in local_var_params:
|
4341
|
+
path_params['node_id'] = local_var_params['node_id']
|
4342
|
+
|
4343
|
+
query_params = []
|
4344
|
+
if 'offset' in local_var_params:
|
4345
|
+
query_params.append(('offset', local_var_params['offset']))
|
4346
|
+
if 'limit' in local_var_params:
|
4347
|
+
query_params.append(('limit', local_var_params['limit']))
|
4348
|
+
|
4349
|
+
header_params = {}
|
4350
|
+
if 'x_language' in local_var_params:
|
4351
|
+
header_params['X-Language'] = local_var_params['x_language']
|
4352
|
+
|
4353
|
+
form_params = {}
|
4354
|
+
|
4355
|
+
body = None
|
4356
|
+
if isinstance(request, SdkStreamRequest):
|
4357
|
+
body = request.get_file_stream()
|
4358
|
+
|
4359
|
+
response_headers = []
|
4360
|
+
|
4361
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
4362
|
+
['application/json'])
|
4363
|
+
|
4364
|
+
auth_settings = []
|
4365
|
+
|
4366
|
+
http_info["cname"] = cname
|
4367
|
+
http_info["collection_formats"] = collection_formats
|
4368
|
+
http_info["path_params"] = path_params
|
4369
|
+
http_info["query_params"] = query_params
|
4370
|
+
http_info["header_params"] = header_params
|
4371
|
+
http_info["post_params"] = form_params
|
4372
|
+
http_info["body"] = body
|
4373
|
+
http_info["response_headers"] = response_headers
|
4374
|
+
|
4375
|
+
return http_info
|
4376
|
+
|
4377
|
+
def modify_auto_expand_policy(self, request):
|
4378
|
+
r"""修改存储空间自动扩容策略。
|
4379
|
+
|
4380
|
+
修改存储空间自动扩容策略。
|
4381
|
+
|
4382
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
4383
|
+
|
4384
|
+
:param request: Request instance for ModifyAutoExpandPolicy
|
4385
|
+
:type request: :class:`huaweicloudsdkgaussdb.v3.ModifyAutoExpandPolicyRequest`
|
4386
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.ModifyAutoExpandPolicyResponse`
|
4387
|
+
"""
|
4388
|
+
http_info = self._modify_auto_expand_policy_http_info(request)
|
4389
|
+
return self._call_api(**http_info)
|
4390
|
+
|
4391
|
+
def modify_auto_expand_policy_invoker(self, request):
|
4392
|
+
http_info = self._modify_auto_expand_policy_http_info(request)
|
4393
|
+
return SyncInvoker(self, http_info)
|
4394
|
+
|
4395
|
+
@classmethod
|
4396
|
+
def _modify_auto_expand_policy_http_info(cls, request):
|
4397
|
+
http_info = {
|
4398
|
+
"method": "PUT",
|
4399
|
+
"resource_path": "/v3/{project_id}/instances/{instance_id}/storage/auto-expand-policy",
|
4400
|
+
"request_type": request.__class__.__name__,
|
4401
|
+
"response_type": "ModifyAutoExpandPolicyResponse"
|
4402
|
+
}
|
4403
|
+
|
4404
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
4405
|
+
|
4406
|
+
cname = None
|
4407
|
+
|
4408
|
+
collection_formats = {}
|
4409
|
+
|
4410
|
+
path_params = {}
|
4411
|
+
if 'instance_id' in local_var_params:
|
4412
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
4413
|
+
|
4414
|
+
query_params = []
|
4415
|
+
|
4416
|
+
header_params = {}
|
4417
|
+
if 'x_language' in local_var_params:
|
4418
|
+
header_params['X-Language'] = local_var_params['x_language']
|
4419
|
+
|
4420
|
+
form_params = {}
|
4421
|
+
|
4422
|
+
body = None
|
4423
|
+
if 'body' in local_var_params:
|
4424
|
+
body = local_var_params['body']
|
4425
|
+
if isinstance(request, SdkStreamRequest):
|
4426
|
+
body = request.get_file_stream()
|
4427
|
+
|
4428
|
+
response_headers = []
|
4429
|
+
|
4430
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
4431
|
+
['application/json;charset=UTF-8'])
|
4432
|
+
|
4433
|
+
auth_settings = []
|
4434
|
+
|
4435
|
+
http_info["cname"] = cname
|
4436
|
+
http_info["collection_formats"] = collection_formats
|
4437
|
+
http_info["path_params"] = path_params
|
4438
|
+
http_info["query_params"] = query_params
|
4439
|
+
http_info["header_params"] = header_params
|
4440
|
+
http_info["post_params"] = form_params
|
4441
|
+
http_info["body"] = body
|
4442
|
+
http_info["response_headers"] = response_headers
|
4443
|
+
|
4444
|
+
return http_info
|
4445
|
+
|
4164
4446
|
def modify_backup_encrypt_status(self, request):
|
4165
4447
|
r"""打开或关闭备份加密
|
4166
4448
|
|
@@ -5129,17 +5411,86 @@ class GaussDBClient(Client):
|
|
5129
5411
|
|
5130
5412
|
return http_info
|
5131
5413
|
|
5132
|
-
def
|
5133
|
-
r"""
|
5414
|
+
def set_sql_filter_rule(self, request):
|
5415
|
+
r"""设置SQL限流规则
|
5134
5416
|
|
5135
|
-
|
5417
|
+
设置SQL限流规则。
|
5136
5418
|
|
5137
5419
|
Please refer to HUAWEI cloud API Explorer for details.
|
5138
5420
|
|
5139
|
-
:param request: Request instance for
|
5140
|
-
:type request: :class:`huaweicloudsdkgaussdb.v3.
|
5141
|
-
:rtype: :class:`huaweicloudsdkgaussdb.v3.
|
5142
|
-
"""
|
5421
|
+
:param request: Request instance for SetSqlFilterRule
|
5422
|
+
:type request: :class:`huaweicloudsdkgaussdb.v3.SetSqlFilterRuleRequest`
|
5423
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.SetSqlFilterRuleResponse`
|
5424
|
+
"""
|
5425
|
+
http_info = self._set_sql_filter_rule_http_info(request)
|
5426
|
+
return self._call_api(**http_info)
|
5427
|
+
|
5428
|
+
def set_sql_filter_rule_invoker(self, request):
|
5429
|
+
http_info = self._set_sql_filter_rule_http_info(request)
|
5430
|
+
return SyncInvoker(self, http_info)
|
5431
|
+
|
5432
|
+
@classmethod
|
5433
|
+
def _set_sql_filter_rule_http_info(cls, request):
|
5434
|
+
http_info = {
|
5435
|
+
"method": "PUT",
|
5436
|
+
"resource_path": "/v3/{project_id}/instances/{instance_id}/sql-filter/rules",
|
5437
|
+
"request_type": request.__class__.__name__,
|
5438
|
+
"response_type": "SetSqlFilterRuleResponse"
|
5439
|
+
}
|
5440
|
+
|
5441
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
5442
|
+
|
5443
|
+
cname = None
|
5444
|
+
|
5445
|
+
collection_formats = {}
|
5446
|
+
|
5447
|
+
path_params = {}
|
5448
|
+
if 'instance_id' in local_var_params:
|
5449
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
5450
|
+
|
5451
|
+
query_params = []
|
5452
|
+
|
5453
|
+
header_params = {}
|
5454
|
+
if 'x_language' in local_var_params:
|
5455
|
+
header_params['X-Language'] = local_var_params['x_language']
|
5456
|
+
|
5457
|
+
form_params = {}
|
5458
|
+
|
5459
|
+
body = None
|
5460
|
+
if 'body' in local_var_params:
|
5461
|
+
body = local_var_params['body']
|
5462
|
+
if isinstance(request, SdkStreamRequest):
|
5463
|
+
body = request.get_file_stream()
|
5464
|
+
|
5465
|
+
response_headers = []
|
5466
|
+
|
5467
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
5468
|
+
['application/json;charset=UTF-8'])
|
5469
|
+
|
5470
|
+
auth_settings = []
|
5471
|
+
|
5472
|
+
http_info["cname"] = cname
|
5473
|
+
http_info["collection_formats"] = collection_formats
|
5474
|
+
http_info["path_params"] = path_params
|
5475
|
+
http_info["query_params"] = query_params
|
5476
|
+
http_info["header_params"] = header_params
|
5477
|
+
http_info["post_params"] = form_params
|
5478
|
+
http_info["body"] = body
|
5479
|
+
http_info["response_headers"] = response_headers
|
5480
|
+
|
5481
|
+
return http_info
|
5482
|
+
|
5483
|
+
def show_audit_log(self, request):
|
5484
|
+
r"""查询全量SQL开关状态
|
5485
|
+
|
5486
|
+
查询全量SQL开关状态。
|
5487
|
+
|
5488
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
5489
|
+
|
5490
|
+
:param request: Request instance for ShowAuditLog
|
5491
|
+
:type request: :class:`huaweicloudsdkgaussdb.v3.ShowAuditLogRequest`
|
5492
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.ShowAuditLogResponse`
|
5493
|
+
"""
|
5143
5494
|
http_info = self._show_audit_log_http_info(request)
|
5144
5495
|
return self._call_api(**http_info)
|
5145
5496
|
|
@@ -5196,6 +5547,73 @@ class GaussDBClient(Client):
|
|
5196
5547
|
|
5197
5548
|
return http_info
|
5198
5549
|
|
5550
|
+
def show_auto_expand_policy(self, request):
|
5551
|
+
r"""查询存储空间自动扩容策略。
|
5552
|
+
|
5553
|
+
查询存储空间自动扩容策略。
|
5554
|
+
|
5555
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
5556
|
+
|
5557
|
+
:param request: Request instance for ShowAutoExpandPolicy
|
5558
|
+
:type request: :class:`huaweicloudsdkgaussdb.v3.ShowAutoExpandPolicyRequest`
|
5559
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.ShowAutoExpandPolicyResponse`
|
5560
|
+
"""
|
5561
|
+
http_info = self._show_auto_expand_policy_http_info(request)
|
5562
|
+
return self._call_api(**http_info)
|
5563
|
+
|
5564
|
+
def show_auto_expand_policy_invoker(self, request):
|
5565
|
+
http_info = self._show_auto_expand_policy_http_info(request)
|
5566
|
+
return SyncInvoker(self, http_info)
|
5567
|
+
|
5568
|
+
@classmethod
|
5569
|
+
def _show_auto_expand_policy_http_info(cls, request):
|
5570
|
+
http_info = {
|
5571
|
+
"method": "GET",
|
5572
|
+
"resource_path": "/v3/{project_id}/instances/{instance_id}/storage/auto-expand-policy",
|
5573
|
+
"request_type": request.__class__.__name__,
|
5574
|
+
"response_type": "ShowAutoExpandPolicyResponse"
|
5575
|
+
}
|
5576
|
+
|
5577
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
5578
|
+
|
5579
|
+
cname = None
|
5580
|
+
|
5581
|
+
collection_formats = {}
|
5582
|
+
|
5583
|
+
path_params = {}
|
5584
|
+
if 'instance_id' in local_var_params:
|
5585
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
5586
|
+
|
5587
|
+
query_params = []
|
5588
|
+
|
5589
|
+
header_params = {}
|
5590
|
+
if 'x_language' in local_var_params:
|
5591
|
+
header_params['X-Language'] = local_var_params['x_language']
|
5592
|
+
|
5593
|
+
form_params = {}
|
5594
|
+
|
5595
|
+
body = None
|
5596
|
+
if isinstance(request, SdkStreamRequest):
|
5597
|
+
body = request.get_file_stream()
|
5598
|
+
|
5599
|
+
response_headers = []
|
5600
|
+
|
5601
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
5602
|
+
['application/json'])
|
5603
|
+
|
5604
|
+
auth_settings = []
|
5605
|
+
|
5606
|
+
http_info["cname"] = cname
|
5607
|
+
http_info["collection_formats"] = collection_formats
|
5608
|
+
http_info["path_params"] = path_params
|
5609
|
+
http_info["query_params"] = query_params
|
5610
|
+
http_info["header_params"] = header_params
|
5611
|
+
http_info["post_params"] = form_params
|
5612
|
+
http_info["body"] = body
|
5613
|
+
http_info["response_headers"] = response_headers
|
5614
|
+
|
5615
|
+
return http_info
|
5616
|
+
|
5199
5617
|
def show_auto_scaling_history(self, request):
|
5200
5618
|
r"""查询自动变配历史记录.
|
5201
5619
|
|
@@ -7138,6 +7556,81 @@ class GaussDBClient(Client):
|
|
7138
7556
|
|
7139
7557
|
return http_info
|
7140
7558
|
|
7559
|
+
def show_restore_available_tables(self, request):
|
7560
|
+
r"""查询表级时间点恢复可选表
|
7561
|
+
|
7562
|
+
查询表级时间点恢复可选表。
|
7563
|
+
|
7564
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
7565
|
+
|
7566
|
+
:param request: Request instance for ShowRestoreAvailableTables
|
7567
|
+
:type request: :class:`huaweicloudsdkgaussdb.v3.ShowRestoreAvailableTablesRequest`
|
7568
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.ShowRestoreAvailableTablesResponse`
|
7569
|
+
"""
|
7570
|
+
http_info = self._show_restore_available_tables_http_info(request)
|
7571
|
+
return self._call_api(**http_info)
|
7572
|
+
|
7573
|
+
def show_restore_available_tables_invoker(self, request):
|
7574
|
+
http_info = self._show_restore_available_tables_http_info(request)
|
7575
|
+
return SyncInvoker(self, http_info)
|
7576
|
+
|
7577
|
+
@classmethod
|
7578
|
+
def _show_restore_available_tables_http_info(cls, request):
|
7579
|
+
http_info = {
|
7580
|
+
"method": "GET",
|
7581
|
+
"resource_path": "/v3.1/{project_id}/instances/{instance_id}/backups/restore/tables",
|
7582
|
+
"request_type": request.__class__.__name__,
|
7583
|
+
"response_type": "ShowRestoreAvailableTablesResponse"
|
7584
|
+
}
|
7585
|
+
|
7586
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
7587
|
+
|
7588
|
+
cname = None
|
7589
|
+
|
7590
|
+
collection_formats = {}
|
7591
|
+
|
7592
|
+
path_params = {}
|
7593
|
+
if 'instance_id' in local_var_params:
|
7594
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
7595
|
+
|
7596
|
+
query_params = []
|
7597
|
+
if 'restore_time' in local_var_params:
|
7598
|
+
query_params.append(('restore_time', local_var_params['restore_time']))
|
7599
|
+
if 'last_table_info' in local_var_params:
|
7600
|
+
query_params.append(('last_table_info', local_var_params['last_table_info']))
|
7601
|
+
if 'database_name' in local_var_params:
|
7602
|
+
query_params.append(('database_name', local_var_params['database_name']))
|
7603
|
+
if 'table_name' in local_var_params:
|
7604
|
+
query_params.append(('table_name', local_var_params['table_name']))
|
7605
|
+
|
7606
|
+
header_params = {}
|
7607
|
+
if 'x_language' in local_var_params:
|
7608
|
+
header_params['X-Language'] = local_var_params['x_language']
|
7609
|
+
|
7610
|
+
form_params = {}
|
7611
|
+
|
7612
|
+
body = None
|
7613
|
+
if isinstance(request, SdkStreamRequest):
|
7614
|
+
body = request.get_file_stream()
|
7615
|
+
|
7616
|
+
response_headers = []
|
7617
|
+
|
7618
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
7619
|
+
['application/json'])
|
7620
|
+
|
7621
|
+
auth_settings = []
|
7622
|
+
|
7623
|
+
http_info["cname"] = cname
|
7624
|
+
http_info["collection_formats"] = collection_formats
|
7625
|
+
http_info["path_params"] = path_params
|
7626
|
+
http_info["query_params"] = query_params
|
7627
|
+
http_info["header_params"] = header_params
|
7628
|
+
http_info["post_params"] = form_params
|
7629
|
+
http_info["body"] = body
|
7630
|
+
http_info["response_headers"] = response_headers
|
7631
|
+
|
7632
|
+
return http_info
|
7633
|
+
|
7141
7634
|
def show_restore_tables(self, request):
|
7142
7635
|
r"""查询表级时间点恢复可选表
|
7143
7636
|
|
@@ -7349,32 +7842,31 @@ class GaussDBClient(Client):
|
|
7349
7842
|
|
7350
7843
|
return http_info
|
7351
7844
|
|
7352
|
-
def
|
7353
|
-
r"""
|
7845
|
+
def show_sql_filter_control(self, request):
|
7846
|
+
r"""查询SQL限流开关状态
|
7354
7847
|
|
7355
|
-
|
7356
|
-
DeC专属云账号暂不支持数据库代理。
|
7848
|
+
查询SQL限流开关状态。
|
7357
7849
|
|
7358
7850
|
Please refer to HUAWEI cloud API Explorer for details.
|
7359
7851
|
|
7360
|
-
:param request: Request instance for
|
7361
|
-
:type request: :class:`huaweicloudsdkgaussdb.v3.
|
7362
|
-
:rtype: :class:`huaweicloudsdkgaussdb.v3.
|
7852
|
+
:param request: Request instance for ShowSqlFilterControl
|
7853
|
+
:type request: :class:`huaweicloudsdkgaussdb.v3.ShowSqlFilterControlRequest`
|
7854
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.ShowSqlFilterControlResponse`
|
7363
7855
|
"""
|
7364
|
-
http_info = self.
|
7856
|
+
http_info = self._show_sql_filter_control_http_info(request)
|
7365
7857
|
return self._call_api(**http_info)
|
7366
7858
|
|
7367
|
-
def
|
7368
|
-
http_info = self.
|
7859
|
+
def show_sql_filter_control_invoker(self, request):
|
7860
|
+
http_info = self._show_sql_filter_control_http_info(request)
|
7369
7861
|
return SyncInvoker(self, http_info)
|
7370
7862
|
|
7371
7863
|
@classmethod
|
7372
|
-
def
|
7864
|
+
def _show_sql_filter_control_http_info(cls, request):
|
7373
7865
|
http_info = {
|
7374
|
-
"method": "
|
7375
|
-
"resource_path": "/v3/{project_id}/instances/{instance_id}/
|
7866
|
+
"method": "GET",
|
7867
|
+
"resource_path": "/v3/{project_id}/instances/{instance_id}/sql-filter/switch",
|
7376
7868
|
"request_type": request.__class__.__name__,
|
7377
|
-
"response_type": "
|
7869
|
+
"response_type": "ShowSqlFilterControlResponse"
|
7378
7870
|
}
|
7379
7871
|
|
7380
7872
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
@@ -7386,8 +7878,6 @@ class GaussDBClient(Client):
|
|
7386
7878
|
path_params = {}
|
7387
7879
|
if 'instance_id' in local_var_params:
|
7388
7880
|
path_params['instance_id'] = local_var_params['instance_id']
|
7389
|
-
if 'proxy_id' in local_var_params:
|
7390
|
-
path_params['proxy_id'] = local_var_params['proxy_id']
|
7391
7881
|
|
7392
7882
|
query_params = []
|
7393
7883
|
|
@@ -7398,15 +7888,13 @@ class GaussDBClient(Client):
|
|
7398
7888
|
form_params = {}
|
7399
7889
|
|
7400
7890
|
body = None
|
7401
|
-
if 'body' in local_var_params:
|
7402
|
-
body = local_var_params['body']
|
7403
7891
|
if isinstance(request, SdkStreamRequest):
|
7404
7892
|
body = request.get_file_stream()
|
7405
7893
|
|
7406
7894
|
response_headers = []
|
7407
7895
|
|
7408
7896
|
header_params['Content-Type'] = http_utils.select_header_content_type(
|
7409
|
-
['application/json
|
7897
|
+
['application/json'])
|
7410
7898
|
|
7411
7899
|
auth_settings = []
|
7412
7900
|
|
@@ -7421,31 +7909,31 @@ class GaussDBClient(Client):
|
|
7421
7909
|
|
7422
7910
|
return http_info
|
7423
7911
|
|
7424
|
-
def
|
7425
|
-
r"""
|
7912
|
+
def show_sql_filter_rule(self, request):
|
7913
|
+
r"""查询SQL限流规则
|
7426
7914
|
|
7427
|
-
|
7915
|
+
查询SQL限流规则。
|
7428
7916
|
|
7429
7917
|
Please refer to HUAWEI cloud API Explorer for details.
|
7430
7918
|
|
7431
|
-
:param request: Request instance for
|
7432
|
-
:type request: :class:`huaweicloudsdkgaussdb.v3.
|
7433
|
-
:rtype: :class:`huaweicloudsdkgaussdb.v3.
|
7919
|
+
:param request: Request instance for ShowSqlFilterRule
|
7920
|
+
:type request: :class:`huaweicloudsdkgaussdb.v3.ShowSqlFilterRuleRequest`
|
7921
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.ShowSqlFilterRuleResponse`
|
7434
7922
|
"""
|
7435
|
-
http_info = self.
|
7923
|
+
http_info = self._show_sql_filter_rule_http_info(request)
|
7436
7924
|
return self._call_api(**http_info)
|
7437
7925
|
|
7438
|
-
def
|
7439
|
-
http_info = self.
|
7926
|
+
def show_sql_filter_rule_invoker(self, request):
|
7927
|
+
http_info = self._show_sql_filter_rule_http_info(request)
|
7440
7928
|
return SyncInvoker(self, http_info)
|
7441
7929
|
|
7442
7930
|
@classmethod
|
7443
|
-
def
|
7931
|
+
def _show_sql_filter_rule_http_info(cls, request):
|
7444
7932
|
http_info = {
|
7445
|
-
"method": "
|
7446
|
-
"resource_path": "/v3/{project_id}/instances/{instance_id}/
|
7933
|
+
"method": "GET",
|
7934
|
+
"resource_path": "/v3/{project_id}/instances/{instance_id}/sql-filter/rules",
|
7447
7935
|
"request_type": request.__class__.__name__,
|
7448
|
-
"response_type": "
|
7936
|
+
"response_type": "ShowSqlFilterRuleResponse"
|
7449
7937
|
}
|
7450
7938
|
|
7451
7939
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
@@ -7457,12 +7945,155 @@ class GaussDBClient(Client):
|
|
7457
7945
|
path_params = {}
|
7458
7946
|
if 'instance_id' in local_var_params:
|
7459
7947
|
path_params['instance_id'] = local_var_params['instance_id']
|
7460
|
-
if 'proxy_id' in local_var_params:
|
7461
|
-
path_params['proxy_id'] = local_var_params['proxy_id']
|
7462
7948
|
|
7463
7949
|
query_params = []
|
7464
|
-
|
7465
|
-
|
7950
|
+
if 'node_id' in local_var_params:
|
7951
|
+
query_params.append(('node_id', local_var_params['node_id']))
|
7952
|
+
if 'sql_type' in local_var_params:
|
7953
|
+
query_params.append(('sql_type', local_var_params['sql_type']))
|
7954
|
+
|
7955
|
+
header_params = {}
|
7956
|
+
if 'x_language' in local_var_params:
|
7957
|
+
header_params['X-Language'] = local_var_params['x_language']
|
7958
|
+
|
7959
|
+
form_params = {}
|
7960
|
+
|
7961
|
+
body = None
|
7962
|
+
if isinstance(request, SdkStreamRequest):
|
7963
|
+
body = request.get_file_stream()
|
7964
|
+
|
7965
|
+
response_headers = []
|
7966
|
+
|
7967
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
7968
|
+
['application/json'])
|
7969
|
+
|
7970
|
+
auth_settings = []
|
7971
|
+
|
7972
|
+
http_info["cname"] = cname
|
7973
|
+
http_info["collection_formats"] = collection_formats
|
7974
|
+
http_info["path_params"] = path_params
|
7975
|
+
http_info["query_params"] = query_params
|
7976
|
+
http_info["header_params"] = header_params
|
7977
|
+
http_info["post_params"] = form_params
|
7978
|
+
http_info["body"] = body
|
7979
|
+
http_info["response_headers"] = response_headers
|
7980
|
+
|
7981
|
+
return http_info
|
7982
|
+
|
7983
|
+
def shrink_gauss_my_sql_proxy(self, request):
|
7984
|
+
r"""减少数据库代理节点的数量
|
7985
|
+
|
7986
|
+
缩容数据库代理节点的数量。
|
7987
|
+
DeC专属云账号暂不支持数据库代理。
|
7988
|
+
|
7989
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
7990
|
+
|
7991
|
+
:param request: Request instance for ShrinkGaussMySqlProxy
|
7992
|
+
:type request: :class:`huaweicloudsdkgaussdb.v3.ShrinkGaussMySqlProxyRequest`
|
7993
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.ShrinkGaussMySqlProxyResponse`
|
7994
|
+
"""
|
7995
|
+
http_info = self._shrink_gauss_my_sql_proxy_http_info(request)
|
7996
|
+
return self._call_api(**http_info)
|
7997
|
+
|
7998
|
+
def shrink_gauss_my_sql_proxy_invoker(self, request):
|
7999
|
+
http_info = self._shrink_gauss_my_sql_proxy_http_info(request)
|
8000
|
+
return SyncInvoker(self, http_info)
|
8001
|
+
|
8002
|
+
@classmethod
|
8003
|
+
def _shrink_gauss_my_sql_proxy_http_info(cls, request):
|
8004
|
+
http_info = {
|
8005
|
+
"method": "PUT",
|
8006
|
+
"resource_path": "/v3/{project_id}/instances/{instance_id}/proxy/{proxy_id}/reduce",
|
8007
|
+
"request_type": request.__class__.__name__,
|
8008
|
+
"response_type": "ShrinkGaussMySqlProxyResponse"
|
8009
|
+
}
|
8010
|
+
|
8011
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
8012
|
+
|
8013
|
+
cname = None
|
8014
|
+
|
8015
|
+
collection_formats = {}
|
8016
|
+
|
8017
|
+
path_params = {}
|
8018
|
+
if 'instance_id' in local_var_params:
|
8019
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
8020
|
+
if 'proxy_id' in local_var_params:
|
8021
|
+
path_params['proxy_id'] = local_var_params['proxy_id']
|
8022
|
+
|
8023
|
+
query_params = []
|
8024
|
+
|
8025
|
+
header_params = {}
|
8026
|
+
if 'x_language' in local_var_params:
|
8027
|
+
header_params['X-Language'] = local_var_params['x_language']
|
8028
|
+
|
8029
|
+
form_params = {}
|
8030
|
+
|
8031
|
+
body = None
|
8032
|
+
if 'body' in local_var_params:
|
8033
|
+
body = local_var_params['body']
|
8034
|
+
if isinstance(request, SdkStreamRequest):
|
8035
|
+
body = request.get_file_stream()
|
8036
|
+
|
8037
|
+
response_headers = []
|
8038
|
+
|
8039
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
8040
|
+
['application/json;charset=UTF-8'])
|
8041
|
+
|
8042
|
+
auth_settings = []
|
8043
|
+
|
8044
|
+
http_info["cname"] = cname
|
8045
|
+
http_info["collection_formats"] = collection_formats
|
8046
|
+
http_info["path_params"] = path_params
|
8047
|
+
http_info["query_params"] = query_params
|
8048
|
+
http_info["header_params"] = header_params
|
8049
|
+
http_info["post_params"] = form_params
|
8050
|
+
http_info["body"] = body
|
8051
|
+
http_info["response_headers"] = response_headers
|
8052
|
+
|
8053
|
+
return http_info
|
8054
|
+
|
8055
|
+
def switch_access_control(self, request):
|
8056
|
+
r"""开启或关闭访问控制
|
8057
|
+
|
8058
|
+
开启或关闭访问控制。
|
8059
|
+
|
8060
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
8061
|
+
|
8062
|
+
:param request: Request instance for SwitchAccessControl
|
8063
|
+
:type request: :class:`huaweicloudsdkgaussdb.v3.SwitchAccessControlRequest`
|
8064
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.SwitchAccessControlResponse`
|
8065
|
+
"""
|
8066
|
+
http_info = self._switch_access_control_http_info(request)
|
8067
|
+
return self._call_api(**http_info)
|
8068
|
+
|
8069
|
+
def switch_access_control_invoker(self, request):
|
8070
|
+
http_info = self._switch_access_control_http_info(request)
|
8071
|
+
return SyncInvoker(self, http_info)
|
8072
|
+
|
8073
|
+
@classmethod
|
8074
|
+
def _switch_access_control_http_info(cls, request):
|
8075
|
+
http_info = {
|
8076
|
+
"method": "POST",
|
8077
|
+
"resource_path": "/v3/{project_id}/instances/{instance_id}/proxy/{proxy_id}/access-control-switch",
|
8078
|
+
"request_type": request.__class__.__name__,
|
8079
|
+
"response_type": "SwitchAccessControlResponse"
|
8080
|
+
}
|
8081
|
+
|
8082
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
8083
|
+
|
8084
|
+
cname = None
|
8085
|
+
|
8086
|
+
collection_formats = {}
|
8087
|
+
|
8088
|
+
path_params = {}
|
8089
|
+
if 'instance_id' in local_var_params:
|
8090
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
8091
|
+
if 'proxy_id' in local_var_params:
|
8092
|
+
path_params['proxy_id'] = local_var_params['proxy_id']
|
8093
|
+
|
8094
|
+
query_params = []
|
8095
|
+
|
8096
|
+
header_params = {}
|
7466
8097
|
if 'x_language' in local_var_params:
|
7467
8098
|
header_params['X-Language'] = local_var_params['x_language']
|
7468
8099
|
|
@@ -9505,6 +10136,75 @@ class GaussDBClient(Client):
|
|
9505
10136
|
|
9506
10137
|
return http_info
|
9507
10138
|
|
10139
|
+
def update_sql_filter_control(self, request):
|
10140
|
+
r"""开启或者关闭SQL限流
|
10141
|
+
|
10142
|
+
开启或者关闭SQL限流。
|
10143
|
+
|
10144
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
10145
|
+
|
10146
|
+
:param request: Request instance for UpdateSqlFilterControl
|
10147
|
+
:type request: :class:`huaweicloudsdkgaussdb.v3.UpdateSqlFilterControlRequest`
|
10148
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.UpdateSqlFilterControlResponse`
|
10149
|
+
"""
|
10150
|
+
http_info = self._update_sql_filter_control_http_info(request)
|
10151
|
+
return self._call_api(**http_info)
|
10152
|
+
|
10153
|
+
def update_sql_filter_control_invoker(self, request):
|
10154
|
+
http_info = self._update_sql_filter_control_http_info(request)
|
10155
|
+
return SyncInvoker(self, http_info)
|
10156
|
+
|
10157
|
+
@classmethod
|
10158
|
+
def _update_sql_filter_control_http_info(cls, request):
|
10159
|
+
http_info = {
|
10160
|
+
"method": "POST",
|
10161
|
+
"resource_path": "/v3/{project_id}/instances/{instance_id}/sql-filter/switch",
|
10162
|
+
"request_type": request.__class__.__name__,
|
10163
|
+
"response_type": "UpdateSqlFilterControlResponse"
|
10164
|
+
}
|
10165
|
+
|
10166
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
10167
|
+
|
10168
|
+
cname = None
|
10169
|
+
|
10170
|
+
collection_formats = {}
|
10171
|
+
|
10172
|
+
path_params = {}
|
10173
|
+
if 'instance_id' in local_var_params:
|
10174
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
10175
|
+
|
10176
|
+
query_params = []
|
10177
|
+
|
10178
|
+
header_params = {}
|
10179
|
+
if 'x_language' in local_var_params:
|
10180
|
+
header_params['X-Language'] = local_var_params['x_language']
|
10181
|
+
|
10182
|
+
form_params = {}
|
10183
|
+
|
10184
|
+
body = None
|
10185
|
+
if 'body' in local_var_params:
|
10186
|
+
body = local_var_params['body']
|
10187
|
+
if isinstance(request, SdkStreamRequest):
|
10188
|
+
body = request.get_file_stream()
|
10189
|
+
|
10190
|
+
response_headers = []
|
10191
|
+
|
10192
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
10193
|
+
['application/json;charset=UTF-8'])
|
10194
|
+
|
10195
|
+
auth_settings = []
|
10196
|
+
|
10197
|
+
http_info["cname"] = cname
|
10198
|
+
http_info["collection_formats"] = collection_formats
|
10199
|
+
http_info["path_params"] = path_params
|
10200
|
+
http_info["query_params"] = query_params
|
10201
|
+
http_info["header_params"] = header_params
|
10202
|
+
http_info["post_params"] = form_params
|
10203
|
+
http_info["body"] = body
|
10204
|
+
http_info["response_headers"] = response_headers
|
10205
|
+
|
10206
|
+
return http_info
|
10207
|
+
|
9508
10208
|
def update_taurus_node_data_ip(self, request):
|
9509
10209
|
r"""修改只读节点的读内网地址
|
9510
10210
|
|
@@ -14008,351 +14708,6 @@ class GaussDBClient(Client):
|
|
14008
14708
|
|
14009
14709
|
return http_info
|
14010
14710
|
|
14011
|
-
def delete_sql_filter_rule(self, request):
|
14012
|
-
r"""删除SQL限流规则
|
14013
|
-
|
14014
|
-
删除SQL限流规则。
|
14015
|
-
|
14016
|
-
Please refer to HUAWEI cloud API Explorer for details.
|
14017
|
-
|
14018
|
-
:param request: Request instance for DeleteSqlFilterRule
|
14019
|
-
:type request: :class:`huaweicloudsdkgaussdb.v3.DeleteSqlFilterRuleRequest`
|
14020
|
-
:rtype: :class:`huaweicloudsdkgaussdb.v3.DeleteSqlFilterRuleResponse`
|
14021
|
-
"""
|
14022
|
-
http_info = self._delete_sql_filter_rule_http_info(request)
|
14023
|
-
return self._call_api(**http_info)
|
14024
|
-
|
14025
|
-
def delete_sql_filter_rule_invoker(self, request):
|
14026
|
-
http_info = self._delete_sql_filter_rule_http_info(request)
|
14027
|
-
return SyncInvoker(self, http_info)
|
14028
|
-
|
14029
|
-
@classmethod
|
14030
|
-
def _delete_sql_filter_rule_http_info(cls, request):
|
14031
|
-
http_info = {
|
14032
|
-
"method": "DELETE",
|
14033
|
-
"resource_path": "/v3/{project_id}/instances/{instance_id}/sql-filter/rules",
|
14034
|
-
"request_type": request.__class__.__name__,
|
14035
|
-
"response_type": "DeleteSqlFilterRuleResponse"
|
14036
|
-
}
|
14037
|
-
|
14038
|
-
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
14039
|
-
|
14040
|
-
cname = None
|
14041
|
-
|
14042
|
-
collection_formats = {}
|
14043
|
-
|
14044
|
-
path_params = {}
|
14045
|
-
if 'instance_id' in local_var_params:
|
14046
|
-
path_params['instance_id'] = local_var_params['instance_id']
|
14047
|
-
|
14048
|
-
query_params = []
|
14049
|
-
|
14050
|
-
header_params = {}
|
14051
|
-
if 'x_language' in local_var_params:
|
14052
|
-
header_params['X-Language'] = local_var_params['x_language']
|
14053
|
-
|
14054
|
-
form_params = {}
|
14055
|
-
|
14056
|
-
body = None
|
14057
|
-
if 'body' in local_var_params:
|
14058
|
-
body = local_var_params['body']
|
14059
|
-
if isinstance(request, SdkStreamRequest):
|
14060
|
-
body = request.get_file_stream()
|
14061
|
-
|
14062
|
-
response_headers = []
|
14063
|
-
|
14064
|
-
header_params['Content-Type'] = http_utils.select_header_content_type(
|
14065
|
-
['application/json;charset=UTF-8'])
|
14066
|
-
|
14067
|
-
auth_settings = []
|
14068
|
-
|
14069
|
-
http_info["cname"] = cname
|
14070
|
-
http_info["collection_formats"] = collection_formats
|
14071
|
-
http_info["path_params"] = path_params
|
14072
|
-
http_info["query_params"] = query_params
|
14073
|
-
http_info["header_params"] = header_params
|
14074
|
-
http_info["post_params"] = form_params
|
14075
|
-
http_info["body"] = body
|
14076
|
-
http_info["response_headers"] = response_headers
|
14077
|
-
|
14078
|
-
return http_info
|
14079
|
-
|
14080
|
-
def set_sql_filter_rule(self, request):
|
14081
|
-
r"""设置SQL限流规则
|
14082
|
-
|
14083
|
-
设置SQL限流规则。
|
14084
|
-
|
14085
|
-
Please refer to HUAWEI cloud API Explorer for details.
|
14086
|
-
|
14087
|
-
:param request: Request instance for SetSqlFilterRule
|
14088
|
-
:type request: :class:`huaweicloudsdkgaussdb.v3.SetSqlFilterRuleRequest`
|
14089
|
-
:rtype: :class:`huaweicloudsdkgaussdb.v3.SetSqlFilterRuleResponse`
|
14090
|
-
"""
|
14091
|
-
http_info = self._set_sql_filter_rule_http_info(request)
|
14092
|
-
return self._call_api(**http_info)
|
14093
|
-
|
14094
|
-
def set_sql_filter_rule_invoker(self, request):
|
14095
|
-
http_info = self._set_sql_filter_rule_http_info(request)
|
14096
|
-
return SyncInvoker(self, http_info)
|
14097
|
-
|
14098
|
-
@classmethod
|
14099
|
-
def _set_sql_filter_rule_http_info(cls, request):
|
14100
|
-
http_info = {
|
14101
|
-
"method": "PUT",
|
14102
|
-
"resource_path": "/v3/{project_id}/instances/{instance_id}/sql-filter/rules",
|
14103
|
-
"request_type": request.__class__.__name__,
|
14104
|
-
"response_type": "SetSqlFilterRuleResponse"
|
14105
|
-
}
|
14106
|
-
|
14107
|
-
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
14108
|
-
|
14109
|
-
cname = None
|
14110
|
-
|
14111
|
-
collection_formats = {}
|
14112
|
-
|
14113
|
-
path_params = {}
|
14114
|
-
if 'instance_id' in local_var_params:
|
14115
|
-
path_params['instance_id'] = local_var_params['instance_id']
|
14116
|
-
|
14117
|
-
query_params = []
|
14118
|
-
|
14119
|
-
header_params = {}
|
14120
|
-
if 'x_language' in local_var_params:
|
14121
|
-
header_params['X-Language'] = local_var_params['x_language']
|
14122
|
-
|
14123
|
-
form_params = {}
|
14124
|
-
|
14125
|
-
body = None
|
14126
|
-
if 'body' in local_var_params:
|
14127
|
-
body = local_var_params['body']
|
14128
|
-
if isinstance(request, SdkStreamRequest):
|
14129
|
-
body = request.get_file_stream()
|
14130
|
-
|
14131
|
-
response_headers = []
|
14132
|
-
|
14133
|
-
header_params['Content-Type'] = http_utils.select_header_content_type(
|
14134
|
-
['application/json;charset=UTF-8'])
|
14135
|
-
|
14136
|
-
auth_settings = []
|
14137
|
-
|
14138
|
-
http_info["cname"] = cname
|
14139
|
-
http_info["collection_formats"] = collection_formats
|
14140
|
-
http_info["path_params"] = path_params
|
14141
|
-
http_info["query_params"] = query_params
|
14142
|
-
http_info["header_params"] = header_params
|
14143
|
-
http_info["post_params"] = form_params
|
14144
|
-
http_info["body"] = body
|
14145
|
-
http_info["response_headers"] = response_headers
|
14146
|
-
|
14147
|
-
return http_info
|
14148
|
-
|
14149
|
-
def show_sql_filter_control(self, request):
|
14150
|
-
r"""查询SQL限流开关状态
|
14151
|
-
|
14152
|
-
查询SQL限流开关状态。
|
14153
|
-
|
14154
|
-
Please refer to HUAWEI cloud API Explorer for details.
|
14155
|
-
|
14156
|
-
:param request: Request instance for ShowSqlFilterControl
|
14157
|
-
:type request: :class:`huaweicloudsdkgaussdb.v3.ShowSqlFilterControlRequest`
|
14158
|
-
:rtype: :class:`huaweicloudsdkgaussdb.v3.ShowSqlFilterControlResponse`
|
14159
|
-
"""
|
14160
|
-
http_info = self._show_sql_filter_control_http_info(request)
|
14161
|
-
return self._call_api(**http_info)
|
14162
|
-
|
14163
|
-
def show_sql_filter_control_invoker(self, request):
|
14164
|
-
http_info = self._show_sql_filter_control_http_info(request)
|
14165
|
-
return SyncInvoker(self, http_info)
|
14166
|
-
|
14167
|
-
@classmethod
|
14168
|
-
def _show_sql_filter_control_http_info(cls, request):
|
14169
|
-
http_info = {
|
14170
|
-
"method": "GET",
|
14171
|
-
"resource_path": "/v3/{project_id}/instances/{instance_id}/sql-filter/switch",
|
14172
|
-
"request_type": request.__class__.__name__,
|
14173
|
-
"response_type": "ShowSqlFilterControlResponse"
|
14174
|
-
}
|
14175
|
-
|
14176
|
-
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
14177
|
-
|
14178
|
-
cname = None
|
14179
|
-
|
14180
|
-
collection_formats = {}
|
14181
|
-
|
14182
|
-
path_params = {}
|
14183
|
-
if 'instance_id' in local_var_params:
|
14184
|
-
path_params['instance_id'] = local_var_params['instance_id']
|
14185
|
-
|
14186
|
-
query_params = []
|
14187
|
-
|
14188
|
-
header_params = {}
|
14189
|
-
if 'x_language' in local_var_params:
|
14190
|
-
header_params['X-Language'] = local_var_params['x_language']
|
14191
|
-
|
14192
|
-
form_params = {}
|
14193
|
-
|
14194
|
-
body = None
|
14195
|
-
if isinstance(request, SdkStreamRequest):
|
14196
|
-
body = request.get_file_stream()
|
14197
|
-
|
14198
|
-
response_headers = []
|
14199
|
-
|
14200
|
-
header_params['Content-Type'] = http_utils.select_header_content_type(
|
14201
|
-
['application/json'])
|
14202
|
-
|
14203
|
-
auth_settings = []
|
14204
|
-
|
14205
|
-
http_info["cname"] = cname
|
14206
|
-
http_info["collection_formats"] = collection_formats
|
14207
|
-
http_info["path_params"] = path_params
|
14208
|
-
http_info["query_params"] = query_params
|
14209
|
-
http_info["header_params"] = header_params
|
14210
|
-
http_info["post_params"] = form_params
|
14211
|
-
http_info["body"] = body
|
14212
|
-
http_info["response_headers"] = response_headers
|
14213
|
-
|
14214
|
-
return http_info
|
14215
|
-
|
14216
|
-
def show_sql_filter_rule(self, request):
|
14217
|
-
r"""查询SQL限流规则
|
14218
|
-
|
14219
|
-
查询SQL限流规则。
|
14220
|
-
|
14221
|
-
Please refer to HUAWEI cloud API Explorer for details.
|
14222
|
-
|
14223
|
-
:param request: Request instance for ShowSqlFilterRule
|
14224
|
-
:type request: :class:`huaweicloudsdkgaussdb.v3.ShowSqlFilterRuleRequest`
|
14225
|
-
:rtype: :class:`huaweicloudsdkgaussdb.v3.ShowSqlFilterRuleResponse`
|
14226
|
-
"""
|
14227
|
-
http_info = self._show_sql_filter_rule_http_info(request)
|
14228
|
-
return self._call_api(**http_info)
|
14229
|
-
|
14230
|
-
def show_sql_filter_rule_invoker(self, request):
|
14231
|
-
http_info = self._show_sql_filter_rule_http_info(request)
|
14232
|
-
return SyncInvoker(self, http_info)
|
14233
|
-
|
14234
|
-
@classmethod
|
14235
|
-
def _show_sql_filter_rule_http_info(cls, request):
|
14236
|
-
http_info = {
|
14237
|
-
"method": "GET",
|
14238
|
-
"resource_path": "/v3/{project_id}/instances/{instance_id}/sql-filter/rules",
|
14239
|
-
"request_type": request.__class__.__name__,
|
14240
|
-
"response_type": "ShowSqlFilterRuleResponse"
|
14241
|
-
}
|
14242
|
-
|
14243
|
-
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
14244
|
-
|
14245
|
-
cname = None
|
14246
|
-
|
14247
|
-
collection_formats = {}
|
14248
|
-
|
14249
|
-
path_params = {}
|
14250
|
-
if 'instance_id' in local_var_params:
|
14251
|
-
path_params['instance_id'] = local_var_params['instance_id']
|
14252
|
-
|
14253
|
-
query_params = []
|
14254
|
-
if 'node_id' in local_var_params:
|
14255
|
-
query_params.append(('node_id', local_var_params['node_id']))
|
14256
|
-
if 'sql_type' in local_var_params:
|
14257
|
-
query_params.append(('sql_type', local_var_params['sql_type']))
|
14258
|
-
|
14259
|
-
header_params = {}
|
14260
|
-
if 'x_language' in local_var_params:
|
14261
|
-
header_params['X-Language'] = local_var_params['x_language']
|
14262
|
-
|
14263
|
-
form_params = {}
|
14264
|
-
|
14265
|
-
body = None
|
14266
|
-
if isinstance(request, SdkStreamRequest):
|
14267
|
-
body = request.get_file_stream()
|
14268
|
-
|
14269
|
-
response_headers = []
|
14270
|
-
|
14271
|
-
header_params['Content-Type'] = http_utils.select_header_content_type(
|
14272
|
-
['application/json'])
|
14273
|
-
|
14274
|
-
auth_settings = []
|
14275
|
-
|
14276
|
-
http_info["cname"] = cname
|
14277
|
-
http_info["collection_formats"] = collection_formats
|
14278
|
-
http_info["path_params"] = path_params
|
14279
|
-
http_info["query_params"] = query_params
|
14280
|
-
http_info["header_params"] = header_params
|
14281
|
-
http_info["post_params"] = form_params
|
14282
|
-
http_info["body"] = body
|
14283
|
-
http_info["response_headers"] = response_headers
|
14284
|
-
|
14285
|
-
return http_info
|
14286
|
-
|
14287
|
-
def update_sql_filter_control(self, request):
|
14288
|
-
r"""开启或者关闭SQL限流
|
14289
|
-
|
14290
|
-
开启或者关闭SQL限流。
|
14291
|
-
|
14292
|
-
Please refer to HUAWEI cloud API Explorer for details.
|
14293
|
-
|
14294
|
-
:param request: Request instance for UpdateSqlFilterControl
|
14295
|
-
:type request: :class:`huaweicloudsdkgaussdb.v3.UpdateSqlFilterControlRequest`
|
14296
|
-
:rtype: :class:`huaweicloudsdkgaussdb.v3.UpdateSqlFilterControlResponse`
|
14297
|
-
"""
|
14298
|
-
http_info = self._update_sql_filter_control_http_info(request)
|
14299
|
-
return self._call_api(**http_info)
|
14300
|
-
|
14301
|
-
def update_sql_filter_control_invoker(self, request):
|
14302
|
-
http_info = self._update_sql_filter_control_http_info(request)
|
14303
|
-
return SyncInvoker(self, http_info)
|
14304
|
-
|
14305
|
-
@classmethod
|
14306
|
-
def _update_sql_filter_control_http_info(cls, request):
|
14307
|
-
http_info = {
|
14308
|
-
"method": "POST",
|
14309
|
-
"resource_path": "/v3/{project_id}/instances/{instance_id}/sql-filter/switch",
|
14310
|
-
"request_type": request.__class__.__name__,
|
14311
|
-
"response_type": "UpdateSqlFilterControlResponse"
|
14312
|
-
}
|
14313
|
-
|
14314
|
-
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
14315
|
-
|
14316
|
-
cname = None
|
14317
|
-
|
14318
|
-
collection_formats = {}
|
14319
|
-
|
14320
|
-
path_params = {}
|
14321
|
-
if 'instance_id' in local_var_params:
|
14322
|
-
path_params['instance_id'] = local_var_params['instance_id']
|
14323
|
-
|
14324
|
-
query_params = []
|
14325
|
-
|
14326
|
-
header_params = {}
|
14327
|
-
if 'x_language' in local_var_params:
|
14328
|
-
header_params['X-Language'] = local_var_params['x_language']
|
14329
|
-
|
14330
|
-
form_params = {}
|
14331
|
-
|
14332
|
-
body = None
|
14333
|
-
if 'body' in local_var_params:
|
14334
|
-
body = local_var_params['body']
|
14335
|
-
if isinstance(request, SdkStreamRequest):
|
14336
|
-
body = request.get_file_stream()
|
14337
|
-
|
14338
|
-
response_headers = []
|
14339
|
-
|
14340
|
-
header_params['Content-Type'] = http_utils.select_header_content_type(
|
14341
|
-
['application/json;charset=UTF-8'])
|
14342
|
-
|
14343
|
-
auth_settings = []
|
14344
|
-
|
14345
|
-
http_info["cname"] = cname
|
14346
|
-
http_info["collection_formats"] = collection_formats
|
14347
|
-
http_info["path_params"] = path_params
|
14348
|
-
http_info["query_params"] = query_params
|
14349
|
-
http_info["header_params"] = header_params
|
14350
|
-
http_info["post_params"] = form_params
|
14351
|
-
http_info["body"] = body
|
14352
|
-
http_info["response_headers"] = response_headers
|
14353
|
-
|
14354
|
-
return http_info
|
14355
|
-
|
14356
14711
|
def _call_api(self, **kwargs):
|
14357
14712
|
try:
|
14358
14713
|
return self.do_http_request(**kwargs)
|