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
@@ -6285,6 +6285,75 @@ class GaussDBforopenGaussAsyncClient(Client):
|
|
6285
6285
|
|
6286
6286
|
return http_info
|
6287
6287
|
|
6288
|
+
def start_mysql_compatibility_async(self, request):
|
6289
|
+
"""开启MySQl兼容端口服务
|
6290
|
+
|
6291
|
+
开启指定实例的MySQl兼容端口。
|
6292
|
+
|
6293
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
6294
|
+
|
6295
|
+
|
6296
|
+
:param request: Request instance for StartMysqlCompatibility
|
6297
|
+
:type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.StartMysqlCompatibilityRequest`
|
6298
|
+
:rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.StartMysqlCompatibilityResponse`
|
6299
|
+
"""
|
6300
|
+
http_info = self._start_mysql_compatibility_http_info(request)
|
6301
|
+
return self._call_api(**http_info)
|
6302
|
+
|
6303
|
+
def start_mysql_compatibility_async_invoker(self, request):
|
6304
|
+
http_info = self._start_mysql_compatibility_http_info(request)
|
6305
|
+
return AsyncInvoker(self, http_info)
|
6306
|
+
|
6307
|
+
def _start_mysql_compatibility_http_info(self, request):
|
6308
|
+
http_info = {
|
6309
|
+
"method": "POST",
|
6310
|
+
"resource_path": "/v3/{project_id}/instances/{instance_id}/mysql-compatibility",
|
6311
|
+
"request_type": request.__class__.__name__,
|
6312
|
+
"response_type": "StartMysqlCompatibilityResponse"
|
6313
|
+
}
|
6314
|
+
|
6315
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
6316
|
+
|
6317
|
+
cname = None
|
6318
|
+
|
6319
|
+
collection_formats = {}
|
6320
|
+
|
6321
|
+
path_params = {}
|
6322
|
+
if 'instance_id' in local_var_params:
|
6323
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
6324
|
+
|
6325
|
+
query_params = []
|
6326
|
+
|
6327
|
+
header_params = {}
|
6328
|
+
if 'x_language' in local_var_params:
|
6329
|
+
header_params['X-Language'] = local_var_params['x_language']
|
6330
|
+
|
6331
|
+
form_params = {}
|
6332
|
+
|
6333
|
+
body = None
|
6334
|
+
if 'body' in local_var_params:
|
6335
|
+
body = local_var_params['body']
|
6336
|
+
if isinstance(request, SdkStreamRequest):
|
6337
|
+
body = request.get_file_stream()
|
6338
|
+
|
6339
|
+
response_headers = []
|
6340
|
+
|
6341
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
6342
|
+
['application/json;charset=UTF-8'])
|
6343
|
+
|
6344
|
+
auth_settings = []
|
6345
|
+
|
6346
|
+
http_info["cname"] = cname
|
6347
|
+
http_info["collection_formats"] = collection_formats
|
6348
|
+
http_info["path_params"] = path_params
|
6349
|
+
http_info["query_params"] = query_params
|
6350
|
+
http_info["header_params"] = header_params
|
6351
|
+
http_info["post_params"] = form_params
|
6352
|
+
http_info["body"] = body
|
6353
|
+
http_info["response_headers"] = response_headers
|
6354
|
+
|
6355
|
+
return http_info
|
6356
|
+
|
6288
6357
|
def stop_backup_async(self, request):
|
6289
6358
|
"""停止备份
|
6290
6359
|
|
@@ -6352,6 +6421,75 @@ class GaussDBforopenGaussAsyncClient(Client):
|
|
6352
6421
|
|
6353
6422
|
return http_info
|
6354
6423
|
|
6424
|
+
def stop_instance_async(self, request):
|
6425
|
+
"""停止数据库
|
6426
|
+
|
6427
|
+
停止数据库,同时支持节点级别的停止操作
|
6428
|
+
|
6429
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
6430
|
+
|
6431
|
+
|
6432
|
+
:param request: Request instance for StopInstance
|
6433
|
+
:type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.StopInstanceRequest`
|
6434
|
+
:rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.StopInstanceResponse`
|
6435
|
+
"""
|
6436
|
+
http_info = self._stop_instance_http_info(request)
|
6437
|
+
return self._call_api(**http_info)
|
6438
|
+
|
6439
|
+
def stop_instance_async_invoker(self, request):
|
6440
|
+
http_info = self._stop_instance_http_info(request)
|
6441
|
+
return AsyncInvoker(self, http_info)
|
6442
|
+
|
6443
|
+
def _stop_instance_http_info(self, request):
|
6444
|
+
http_info = {
|
6445
|
+
"method": "POST",
|
6446
|
+
"resource_path": "/v3/{project_id}/instances/{instance_id}/db-stop",
|
6447
|
+
"request_type": request.__class__.__name__,
|
6448
|
+
"response_type": "StopInstanceResponse"
|
6449
|
+
}
|
6450
|
+
|
6451
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
6452
|
+
|
6453
|
+
cname = None
|
6454
|
+
|
6455
|
+
collection_formats = {}
|
6456
|
+
|
6457
|
+
path_params = {}
|
6458
|
+
if 'instance_id' in local_var_params:
|
6459
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
6460
|
+
|
6461
|
+
query_params = []
|
6462
|
+
|
6463
|
+
header_params = {}
|
6464
|
+
if 'x_language' in local_var_params:
|
6465
|
+
header_params['X-Language'] = local_var_params['x_language']
|
6466
|
+
|
6467
|
+
form_params = {}
|
6468
|
+
|
6469
|
+
body = None
|
6470
|
+
if 'body' in local_var_params:
|
6471
|
+
body = local_var_params['body']
|
6472
|
+
if isinstance(request, SdkStreamRequest):
|
6473
|
+
body = request.get_file_stream()
|
6474
|
+
|
6475
|
+
response_headers = []
|
6476
|
+
|
6477
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
6478
|
+
['application/json;charset=UTF-8'])
|
6479
|
+
|
6480
|
+
auth_settings = []
|
6481
|
+
|
6482
|
+
http_info["cname"] = cname
|
6483
|
+
http_info["collection_formats"] = collection_formats
|
6484
|
+
http_info["path_params"] = path_params
|
6485
|
+
http_info["query_params"] = query_params
|
6486
|
+
http_info["header_params"] = header_params
|
6487
|
+
http_info["post_params"] = form_params
|
6488
|
+
http_info["body"] = body
|
6489
|
+
http_info["response_headers"] = response_headers
|
6490
|
+
|
6491
|
+
return http_info
|
6492
|
+
|
6355
6493
|
def switch_configuration_async(self, request):
|
6356
6494
|
"""应用参数模板
|
6357
6495
|
|
@@ -6628,6 +6766,75 @@ class GaussDBforopenGaussAsyncClient(Client):
|
|
6628
6766
|
|
6629
6767
|
return http_info
|
6630
6768
|
|
6769
|
+
def update_mysql_compatibility_async(self, request):
|
6770
|
+
"""更新/关闭MySQl兼容端口服务
|
6771
|
+
|
6772
|
+
更新指定实例的MySQl兼容端口服务配置。
|
6773
|
+
|
6774
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
6775
|
+
|
6776
|
+
|
6777
|
+
:param request: Request instance for UpdateMysqlCompatibility
|
6778
|
+
:type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.UpdateMysqlCompatibilityRequest`
|
6779
|
+
:rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.UpdateMysqlCompatibilityResponse`
|
6780
|
+
"""
|
6781
|
+
http_info = self._update_mysql_compatibility_http_info(request)
|
6782
|
+
return self._call_api(**http_info)
|
6783
|
+
|
6784
|
+
def update_mysql_compatibility_async_invoker(self, request):
|
6785
|
+
http_info = self._update_mysql_compatibility_http_info(request)
|
6786
|
+
return AsyncInvoker(self, http_info)
|
6787
|
+
|
6788
|
+
def _update_mysql_compatibility_http_info(self, request):
|
6789
|
+
http_info = {
|
6790
|
+
"method": "PUT",
|
6791
|
+
"resource_path": "/v3/{project_id}/instances/{instance_id}/mysql-compatibility",
|
6792
|
+
"request_type": request.__class__.__name__,
|
6793
|
+
"response_type": "UpdateMysqlCompatibilityResponse"
|
6794
|
+
}
|
6795
|
+
|
6796
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
6797
|
+
|
6798
|
+
cname = None
|
6799
|
+
|
6800
|
+
collection_formats = {}
|
6801
|
+
|
6802
|
+
path_params = {}
|
6803
|
+
if 'instance_id' in local_var_params:
|
6804
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
6805
|
+
|
6806
|
+
query_params = []
|
6807
|
+
|
6808
|
+
header_params = {}
|
6809
|
+
if 'x_language' in local_var_params:
|
6810
|
+
header_params['X-Language'] = local_var_params['x_language']
|
6811
|
+
|
6812
|
+
form_params = {}
|
6813
|
+
|
6814
|
+
body = None
|
6815
|
+
if 'body' in local_var_params:
|
6816
|
+
body = local_var_params['body']
|
6817
|
+
if isinstance(request, SdkStreamRequest):
|
6818
|
+
body = request.get_file_stream()
|
6819
|
+
|
6820
|
+
response_headers = []
|
6821
|
+
|
6822
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
6823
|
+
['application/json;charset=UTF-8'])
|
6824
|
+
|
6825
|
+
auth_settings = []
|
6826
|
+
|
6827
|
+
http_info["cname"] = cname
|
6828
|
+
http_info["collection_formats"] = collection_formats
|
6829
|
+
http_info["path_params"] = path_params
|
6830
|
+
http_info["query_params"] = query_params
|
6831
|
+
http_info["header_params"] = header_params
|
6832
|
+
http_info["post_params"] = form_params
|
6833
|
+
http_info["body"] = body
|
6834
|
+
http_info["response_headers"] = response_headers
|
6835
|
+
|
6836
|
+
return http_info
|
6837
|
+
|
6631
6838
|
def upgrade_instance_version_async(self, request):
|
6632
6839
|
"""实例内核版本升级
|
6633
6840
|
|
@@ -6919,6 +7126,434 @@ class GaussDBforopenGaussAsyncClient(Client):
|
|
6919
7126
|
|
6920
7127
|
return http_info
|
6921
7128
|
|
7129
|
+
def create_limit_task_async(self, request):
|
7130
|
+
"""创建限流任务
|
7131
|
+
|
7132
|
+
根据具体范围和类型,进行限流任务的创建
|
7133
|
+
|
7134
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
7135
|
+
|
7136
|
+
|
7137
|
+
:param request: Request instance for CreateLimitTask
|
7138
|
+
:type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.CreateLimitTaskRequest`
|
7139
|
+
:rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.CreateLimitTaskResponse`
|
7140
|
+
"""
|
7141
|
+
http_info = self._create_limit_task_http_info(request)
|
7142
|
+
return self._call_api(**http_info)
|
7143
|
+
|
7144
|
+
def create_limit_task_async_invoker(self, request):
|
7145
|
+
http_info = self._create_limit_task_http_info(request)
|
7146
|
+
return AsyncInvoker(self, http_info)
|
7147
|
+
|
7148
|
+
def _create_limit_task_http_info(self, request):
|
7149
|
+
http_info = {
|
7150
|
+
"method": "POST",
|
7151
|
+
"resource_path": "/v3/{project_id}/instances/{instance_id}/limit-task",
|
7152
|
+
"request_type": request.__class__.__name__,
|
7153
|
+
"response_type": "CreateLimitTaskResponse"
|
7154
|
+
}
|
7155
|
+
|
7156
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
7157
|
+
|
7158
|
+
cname = None
|
7159
|
+
|
7160
|
+
collection_formats = {}
|
7161
|
+
|
7162
|
+
path_params = {}
|
7163
|
+
if 'instance_id' in local_var_params:
|
7164
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
7165
|
+
|
7166
|
+
query_params = []
|
7167
|
+
|
7168
|
+
header_params = {}
|
7169
|
+
|
7170
|
+
form_params = {}
|
7171
|
+
|
7172
|
+
body = None
|
7173
|
+
if 'body' in local_var_params:
|
7174
|
+
body = local_var_params['body']
|
7175
|
+
if isinstance(request, SdkStreamRequest):
|
7176
|
+
body = request.get_file_stream()
|
7177
|
+
|
7178
|
+
response_headers = []
|
7179
|
+
|
7180
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
7181
|
+
['application/json;charset=UTF-8'])
|
7182
|
+
|
7183
|
+
auth_settings = []
|
7184
|
+
|
7185
|
+
http_info["cname"] = cname
|
7186
|
+
http_info["collection_formats"] = collection_formats
|
7187
|
+
http_info["path_params"] = path_params
|
7188
|
+
http_info["query_params"] = query_params
|
7189
|
+
http_info["header_params"] = header_params
|
7190
|
+
http_info["post_params"] = form_params
|
7191
|
+
http_info["body"] = body
|
7192
|
+
http_info["response_headers"] = response_headers
|
7193
|
+
|
7194
|
+
return http_info
|
7195
|
+
|
7196
|
+
def delete_limit_task_async(self, request):
|
7197
|
+
"""删除限流任务
|
7198
|
+
|
7199
|
+
根据task_id进行限流任务的删除
|
7200
|
+
|
7201
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
7202
|
+
|
7203
|
+
|
7204
|
+
:param request: Request instance for DeleteLimitTask
|
7205
|
+
:type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.DeleteLimitTaskRequest`
|
7206
|
+
:rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.DeleteLimitTaskResponse`
|
7207
|
+
"""
|
7208
|
+
http_info = self._delete_limit_task_http_info(request)
|
7209
|
+
return self._call_api(**http_info)
|
7210
|
+
|
7211
|
+
def delete_limit_task_async_invoker(self, request):
|
7212
|
+
http_info = self._delete_limit_task_http_info(request)
|
7213
|
+
return AsyncInvoker(self, http_info)
|
7214
|
+
|
7215
|
+
def _delete_limit_task_http_info(self, request):
|
7216
|
+
http_info = {
|
7217
|
+
"method": "DELETE",
|
7218
|
+
"resource_path": "/v3/{project_id}/instances/{instance_id}/limit-task/{task_id}",
|
7219
|
+
"request_type": request.__class__.__name__,
|
7220
|
+
"response_type": "DeleteLimitTaskResponse"
|
7221
|
+
}
|
7222
|
+
|
7223
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
7224
|
+
|
7225
|
+
cname = None
|
7226
|
+
|
7227
|
+
collection_formats = {}
|
7228
|
+
|
7229
|
+
path_params = {}
|
7230
|
+
if 'task_id' in local_var_params:
|
7231
|
+
path_params['task_id'] = local_var_params['task_id']
|
7232
|
+
if 'instance_id' in local_var_params:
|
7233
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
7234
|
+
|
7235
|
+
query_params = []
|
7236
|
+
|
7237
|
+
header_params = {}
|
7238
|
+
|
7239
|
+
form_params = {}
|
7240
|
+
|
7241
|
+
body = None
|
7242
|
+
if isinstance(request, SdkStreamRequest):
|
7243
|
+
body = request.get_file_stream()
|
7244
|
+
|
7245
|
+
response_headers = []
|
7246
|
+
|
7247
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
7248
|
+
['application/json'])
|
7249
|
+
|
7250
|
+
auth_settings = []
|
7251
|
+
|
7252
|
+
http_info["cname"] = cname
|
7253
|
+
http_info["collection_formats"] = collection_formats
|
7254
|
+
http_info["path_params"] = path_params
|
7255
|
+
http_info["query_params"] = query_params
|
7256
|
+
http_info["header_params"] = header_params
|
7257
|
+
http_info["post_params"] = form_params
|
7258
|
+
http_info["body"] = body
|
7259
|
+
http_info["response_headers"] = response_headers
|
7260
|
+
|
7261
|
+
return http_info
|
7262
|
+
|
7263
|
+
def list_limit_task_async(self, request):
|
7264
|
+
"""根据指定条件查询限流任务列表
|
7265
|
+
|
7266
|
+
根据指定条件查询限流任务列表
|
7267
|
+
|
7268
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
7269
|
+
|
7270
|
+
|
7271
|
+
:param request: Request instance for ListLimitTask
|
7272
|
+
:type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.ListLimitTaskRequest`
|
7273
|
+
:rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.ListLimitTaskResponse`
|
7274
|
+
"""
|
7275
|
+
http_info = self._list_limit_task_http_info(request)
|
7276
|
+
return self._call_api(**http_info)
|
7277
|
+
|
7278
|
+
def list_limit_task_async_invoker(self, request):
|
7279
|
+
http_info = self._list_limit_task_http_info(request)
|
7280
|
+
return AsyncInvoker(self, http_info)
|
7281
|
+
|
7282
|
+
def _list_limit_task_http_info(self, request):
|
7283
|
+
http_info = {
|
7284
|
+
"method": "GET",
|
7285
|
+
"resource_path": "/v3/{project_id}/instances/{instance_id}/limit-task-list",
|
7286
|
+
"request_type": request.__class__.__name__,
|
7287
|
+
"response_type": "ListLimitTaskResponse"
|
7288
|
+
}
|
7289
|
+
|
7290
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
7291
|
+
|
7292
|
+
cname = None
|
7293
|
+
|
7294
|
+
collection_formats = {}
|
7295
|
+
|
7296
|
+
path_params = {}
|
7297
|
+
if 'instance_id' in local_var_params:
|
7298
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
7299
|
+
|
7300
|
+
query_params = []
|
7301
|
+
if 'task_scope' in local_var_params:
|
7302
|
+
query_params.append(('task_scope', local_var_params['task_scope']))
|
7303
|
+
if 'limit_type' in local_var_params:
|
7304
|
+
query_params.append(('limit_type', local_var_params['limit_type']))
|
7305
|
+
if 'limit_type_value' in local_var_params:
|
7306
|
+
query_params.append(('limit_type_value', local_var_params['limit_type_value']))
|
7307
|
+
if 'task_name' in local_var_params:
|
7308
|
+
query_params.append(('task_name', local_var_params['task_name']))
|
7309
|
+
if 'sql_model' in local_var_params:
|
7310
|
+
query_params.append(('sql_model', local_var_params['sql_model']))
|
7311
|
+
if 'rule_name' in local_var_params:
|
7312
|
+
query_params.append(('rule_name', local_var_params['rule_name']))
|
7313
|
+
if 'start_time' in local_var_params:
|
7314
|
+
query_params.append(('start_time', local_var_params['start_time']))
|
7315
|
+
if 'end_time' in local_var_params:
|
7316
|
+
query_params.append(('end_time', local_var_params['end_time']))
|
7317
|
+
if 'offset' in local_var_params:
|
7318
|
+
query_params.append(('offset', local_var_params['offset']))
|
7319
|
+
if 'limit' in local_var_params:
|
7320
|
+
query_params.append(('limit', local_var_params['limit']))
|
7321
|
+
|
7322
|
+
header_params = {}
|
7323
|
+
|
7324
|
+
form_params = {}
|
7325
|
+
|
7326
|
+
body = None
|
7327
|
+
if isinstance(request, SdkStreamRequest):
|
7328
|
+
body = request.get_file_stream()
|
7329
|
+
|
7330
|
+
response_headers = []
|
7331
|
+
|
7332
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
7333
|
+
['application/json'])
|
7334
|
+
|
7335
|
+
auth_settings = []
|
7336
|
+
|
7337
|
+
http_info["cname"] = cname
|
7338
|
+
http_info["collection_formats"] = collection_formats
|
7339
|
+
http_info["path_params"] = path_params
|
7340
|
+
http_info["query_params"] = query_params
|
7341
|
+
http_info["header_params"] = header_params
|
7342
|
+
http_info["post_params"] = form_params
|
7343
|
+
http_info["body"] = body
|
7344
|
+
http_info["response_headers"] = response_headers
|
7345
|
+
|
7346
|
+
return http_info
|
7347
|
+
|
7348
|
+
def list_node_limit_sql_model_async(self, request):
|
7349
|
+
"""查询节点的sql模板列表
|
7350
|
+
|
7351
|
+
查询节点的sql模板列表
|
7352
|
+
|
7353
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
7354
|
+
|
7355
|
+
|
7356
|
+
:param request: Request instance for ListNodeLimitSqlModel
|
7357
|
+
:type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.ListNodeLimitSqlModelRequest`
|
7358
|
+
:rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.ListNodeLimitSqlModelResponse`
|
7359
|
+
"""
|
7360
|
+
http_info = self._list_node_limit_sql_model_http_info(request)
|
7361
|
+
return self._call_api(**http_info)
|
7362
|
+
|
7363
|
+
def list_node_limit_sql_model_async_invoker(self, request):
|
7364
|
+
http_info = self._list_node_limit_sql_model_http_info(request)
|
7365
|
+
return AsyncInvoker(self, http_info)
|
7366
|
+
|
7367
|
+
def _list_node_limit_sql_model_http_info(self, request):
|
7368
|
+
http_info = {
|
7369
|
+
"method": "GET",
|
7370
|
+
"resource_path": "/v3/{project_id}/instances/{instance_id}/list-node-limit-sql-model",
|
7371
|
+
"request_type": request.__class__.__name__,
|
7372
|
+
"response_type": "ListNodeLimitSqlModelResponse"
|
7373
|
+
}
|
7374
|
+
|
7375
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
7376
|
+
|
7377
|
+
cname = None
|
7378
|
+
|
7379
|
+
collection_formats = {}
|
7380
|
+
|
7381
|
+
path_params = {}
|
7382
|
+
if 'instance_id' in local_var_params:
|
7383
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
7384
|
+
|
7385
|
+
query_params = []
|
7386
|
+
if 'node_id' in local_var_params:
|
7387
|
+
query_params.append(('node_id', local_var_params['node_id']))
|
7388
|
+
if 'sql_model' in local_var_params:
|
7389
|
+
query_params.append(('sql_model', local_var_params['sql_model']))
|
7390
|
+
if 'offset' in local_var_params:
|
7391
|
+
query_params.append(('offset', local_var_params['offset']))
|
7392
|
+
if 'limit' in local_var_params:
|
7393
|
+
query_params.append(('limit', local_var_params['limit']))
|
7394
|
+
|
7395
|
+
header_params = {}
|
7396
|
+
|
7397
|
+
form_params = {}
|
7398
|
+
|
7399
|
+
body = None
|
7400
|
+
if isinstance(request, SdkStreamRequest):
|
7401
|
+
body = request.get_file_stream()
|
7402
|
+
|
7403
|
+
response_headers = []
|
7404
|
+
|
7405
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
7406
|
+
['application/json'])
|
7407
|
+
|
7408
|
+
auth_settings = []
|
7409
|
+
|
7410
|
+
http_info["cname"] = cname
|
7411
|
+
http_info["collection_formats"] = collection_formats
|
7412
|
+
http_info["path_params"] = path_params
|
7413
|
+
http_info["query_params"] = query_params
|
7414
|
+
http_info["header_params"] = header_params
|
7415
|
+
http_info["post_params"] = form_params
|
7416
|
+
http_info["body"] = body
|
7417
|
+
http_info["response_headers"] = response_headers
|
7418
|
+
|
7419
|
+
return http_info
|
7420
|
+
|
7421
|
+
def show_limit_task_async(self, request):
|
7422
|
+
"""查询限流任务详情
|
7423
|
+
|
7424
|
+
查询限流任务详情
|
7425
|
+
|
7426
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
7427
|
+
|
7428
|
+
|
7429
|
+
:param request: Request instance for ShowLimitTask
|
7430
|
+
:type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.ShowLimitTaskRequest`
|
7431
|
+
:rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.ShowLimitTaskResponse`
|
7432
|
+
"""
|
7433
|
+
http_info = self._show_limit_task_http_info(request)
|
7434
|
+
return self._call_api(**http_info)
|
7435
|
+
|
7436
|
+
def show_limit_task_async_invoker(self, request):
|
7437
|
+
http_info = self._show_limit_task_http_info(request)
|
7438
|
+
return AsyncInvoker(self, http_info)
|
7439
|
+
|
7440
|
+
def _show_limit_task_http_info(self, request):
|
7441
|
+
http_info = {
|
7442
|
+
"method": "GET",
|
7443
|
+
"resource_path": "/v3/{project_id}/instances/{instance_id}/limit-task/{task_id}",
|
7444
|
+
"request_type": request.__class__.__name__,
|
7445
|
+
"response_type": "ShowLimitTaskResponse"
|
7446
|
+
}
|
7447
|
+
|
7448
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
7449
|
+
|
7450
|
+
cname = None
|
7451
|
+
|
7452
|
+
collection_formats = {}
|
7453
|
+
|
7454
|
+
path_params = {}
|
7455
|
+
if 'task_id' in local_var_params:
|
7456
|
+
path_params['task_id'] = local_var_params['task_id']
|
7457
|
+
if 'instance_id' in local_var_params:
|
7458
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
7459
|
+
|
7460
|
+
query_params = []
|
7461
|
+
|
7462
|
+
header_params = {}
|
7463
|
+
|
7464
|
+
form_params = {}
|
7465
|
+
|
7466
|
+
body = None
|
7467
|
+
if isinstance(request, SdkStreamRequest):
|
7468
|
+
body = request.get_file_stream()
|
7469
|
+
|
7470
|
+
response_headers = []
|
7471
|
+
|
7472
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
7473
|
+
['application/json'])
|
7474
|
+
|
7475
|
+
auth_settings = []
|
7476
|
+
|
7477
|
+
http_info["cname"] = cname
|
7478
|
+
http_info["collection_formats"] = collection_formats
|
7479
|
+
http_info["path_params"] = path_params
|
7480
|
+
http_info["query_params"] = query_params
|
7481
|
+
http_info["header_params"] = header_params
|
7482
|
+
http_info["post_params"] = form_params
|
7483
|
+
http_info["body"] = body
|
7484
|
+
http_info["response_headers"] = response_headers
|
7485
|
+
|
7486
|
+
return http_info
|
7487
|
+
|
7488
|
+
def update_limit_task_async(self, request):
|
7489
|
+
"""修改限流任务
|
7490
|
+
|
7491
|
+
根据新的条件进行限流任务的更新
|
7492
|
+
|
7493
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
7494
|
+
|
7495
|
+
|
7496
|
+
:param request: Request instance for UpdateLimitTask
|
7497
|
+
:type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.UpdateLimitTaskRequest`
|
7498
|
+
:rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.UpdateLimitTaskResponse`
|
7499
|
+
"""
|
7500
|
+
http_info = self._update_limit_task_http_info(request)
|
7501
|
+
return self._call_api(**http_info)
|
7502
|
+
|
7503
|
+
def update_limit_task_async_invoker(self, request):
|
7504
|
+
http_info = self._update_limit_task_http_info(request)
|
7505
|
+
return AsyncInvoker(self, http_info)
|
7506
|
+
|
7507
|
+
def _update_limit_task_http_info(self, request):
|
7508
|
+
http_info = {
|
7509
|
+
"method": "PUT",
|
7510
|
+
"resource_path": "/v3/{project_id}/instances/{instance_id}/limit-task/{task_id}",
|
7511
|
+
"request_type": request.__class__.__name__,
|
7512
|
+
"response_type": "UpdateLimitTaskResponse"
|
7513
|
+
}
|
7514
|
+
|
7515
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
7516
|
+
|
7517
|
+
cname = None
|
7518
|
+
|
7519
|
+
collection_formats = {}
|
7520
|
+
|
7521
|
+
path_params = {}
|
7522
|
+
if 'task_id' in local_var_params:
|
7523
|
+
path_params['task_id'] = local_var_params['task_id']
|
7524
|
+
if 'instance_id' in local_var_params:
|
7525
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
7526
|
+
|
7527
|
+
query_params = []
|
7528
|
+
|
7529
|
+
header_params = {}
|
7530
|
+
|
7531
|
+
form_params = {}
|
7532
|
+
|
7533
|
+
body = None
|
7534
|
+
if 'body' in local_var_params:
|
7535
|
+
body = local_var_params['body']
|
7536
|
+
if isinstance(request, SdkStreamRequest):
|
7537
|
+
body = request.get_file_stream()
|
7538
|
+
|
7539
|
+
response_headers = []
|
7540
|
+
|
7541
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
7542
|
+
['application/json;charset=UTF-8'])
|
7543
|
+
|
7544
|
+
auth_settings = []
|
7545
|
+
|
7546
|
+
http_info["cname"] = cname
|
7547
|
+
http_info["collection_formats"] = collection_formats
|
7548
|
+
http_info["path_params"] = path_params
|
7549
|
+
http_info["query_params"] = query_params
|
7550
|
+
http_info["header_params"] = header_params
|
7551
|
+
http_info["post_params"] = form_params
|
7552
|
+
http_info["body"] = body
|
7553
|
+
http_info["response_headers"] = response_headers
|
7554
|
+
|
7555
|
+
return http_info
|
7556
|
+
|
6922
7557
|
def _call_api(self, **kwargs):
|
6923
7558
|
try:
|
6924
7559
|
kwargs["async_request"] = True
|