huaweicloudsdkgaussdb 3.1.164__py3-none-any.whl → 3.1.166__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 +54 -0
- huaweicloudsdkgaussdb/v3/gaussdb_async_client.py +1239 -48
- huaweicloudsdkgaussdb/v3/gaussdb_client.py +1239 -48
- huaweicloudsdkgaussdb/v3/model/__init__.py +54 -0
- huaweicloudsdkgaussdb/v3/model/audit_log_detail.py +231 -0
- huaweicloudsdkgaussdb/v3/model/audit_log_download_link_request_body.py +114 -0
- huaweicloudsdkgaussdb/v3/model/batch_upgrade_databases_request.py +140 -0
- huaweicloudsdkgaussdb/v3/model/batch_upgrade_databases_request_body.py +171 -0
- huaweicloudsdkgaussdb/v3/model/batch_upgrade_databases_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/create_proxy_dns_name_request.py +171 -0
- huaweicloudsdkgaussdb/v3/model/create_proxy_dns_name_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/database_tables_info.py +144 -0
- huaweicloudsdkgaussdb/v3/model/delete_proxy_private_dns_name_request.py +171 -0
- huaweicloudsdkgaussdb/v3/model/delete_proxy_private_dns_name_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/htap_error_log_detail_response_error_log_list.py +226 -0
- huaweicloudsdkgaussdb/v3/model/htap_error_log_query_request_body.py +255 -0
- huaweicloudsdkgaussdb/v3/model/htap_lts_config_response_instance.py +284 -0
- huaweicloudsdkgaussdb/v3/model/htap_lts_config_response_instance_lts_configs.py +138 -0
- huaweicloudsdkgaussdb/v3/model/htap_lts_config_response_lts_configs.py +198 -0
- huaweicloudsdkgaussdb/v3/model/htap_node_info_response_body_node_list.py +170 -0
- huaweicloudsdkgaussdb/v3/model/list_audit_logs_request.py +255 -0
- huaweicloudsdkgaussdb/v3/model/list_audit_logs_response.py +145 -0
- huaweicloudsdkgaussdb/v3/model/list_instance_node_request.py +142 -0
- huaweicloudsdkgaussdb/v3/model/list_instance_node_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/modify_star_rocks_security_group_req.py +114 -0
- huaweicloudsdkgaussdb/v3/model/modify_star_rocks_security_group_request.py +168 -0
- huaweicloudsdkgaussdb/v3/model/modify_star_rocks_security_group_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/proxy_flavor.py +260 -0
- huaweicloudsdkgaussdb/v3/model/proxy_flavor_group.py +144 -0
- huaweicloudsdkgaussdb/v3/model/query_data_base_request_v3.py +144 -0
- huaweicloudsdkgaussdb/v3/model/query_table_request_v3.py +202 -0
- huaweicloudsdkgaussdb/v3/model/rds_error_log_download.py +289 -0
- huaweicloudsdkgaussdb/v3/model/set_audit_log_policy_request.py +168 -0
- huaweicloudsdkgaussdb/v3/model/set_audit_log_policy_request_body.py +172 -0
- huaweicloudsdkgaussdb/v3/model/set_audit_log_policy_response.py +145 -0
- huaweicloudsdkgaussdb/v3/model/show_audit_log_download_link_request.py +168 -0
- huaweicloudsdkgaussdb/v3/model/show_audit_log_download_link_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/show_audit_log_policy_request.py +143 -0
- huaweicloudsdkgaussdb/v3/model/show_audit_log_policy_response.py +174 -0
- huaweicloudsdkgaussdb/v3/model/show_error_log_download_link_request.py +171 -0
- huaweicloudsdkgaussdb/v3/model/show_error_log_download_link_response.py +145 -0
- huaweicloudsdkgaussdb/v3/model/show_htap_error_log_detail_request.py +167 -0
- huaweicloudsdkgaussdb/v3/model/show_htap_error_log_detail_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/show_htap_lts_config_request.py +259 -0
- huaweicloudsdkgaussdb/v3/model/show_htap_lts_config_response.py +145 -0
- huaweicloudsdkgaussdb/v3/model/show_instance_databases_for_htap_request.py +225 -0
- huaweicloudsdkgaussdb/v3/model/show_instance_databases_for_htap_response.py +174 -0
- huaweicloudsdkgaussdb/v3/model/show_instance_tables_for_htap_request.py +225 -0
- huaweicloudsdkgaussdb/v3/model/show_instance_tables_for_htap_response.py +145 -0
- huaweicloudsdkgaussdb/v3/model/show_proxy_flavors_by_az_code_request.py +171 -0
- huaweicloudsdkgaussdb/v3/model/show_proxy_flavors_by_az_code_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/show_table_meta_info_request.py +201 -0
- huaweicloudsdkgaussdb/v3/model/show_table_meta_info_response.py +174 -0
- huaweicloudsdkgaussdb/v3/model/table_meta_info.py +260 -0
- huaweicloudsdkgaussdb/v3/model/update_proxy_private_dns_name.py +142 -0
- huaweicloudsdkgaussdb/v3/model/update_proxy_private_dns_name_request.py +196 -0
- huaweicloudsdkgaussdb/v3/model/update_proxy_private_dns_name_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/upgrade_databases_single_instance.py +142 -0
- {huaweicloudsdkgaussdb-3.1.164.dist-info → huaweicloudsdkgaussdb-3.1.166.dist-info}/METADATA +9 -10
- {huaweicloudsdkgaussdb-3.1.164.dist-info → huaweicloudsdkgaussdb-3.1.166.dist-info}/RECORD +62 -9
- {huaweicloudsdkgaussdb-3.1.164.dist-info → huaweicloudsdkgaussdb-3.1.166.dist-info}/WHEEL +1 -2
- huaweicloudsdkgaussdb-3.1.164.dist-info/top_level.txt +0 -1
- {huaweicloudsdkgaussdb-3.1.164.dist-info → huaweicloudsdkgaussdb-3.1.166.dist-info/licenses}/LICENSE +0 -0
@@ -171,6 +171,73 @@ class GaussDBAsyncClient(Client):
|
|
171
171
|
|
172
172
|
return http_info
|
173
173
|
|
174
|
+
def batch_upgrade_databases_async(self, request):
|
175
|
+
r"""批量实例小版本升级
|
176
|
+
|
177
|
+
批量实例小版本升级
|
178
|
+
|
179
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
180
|
+
|
181
|
+
|
182
|
+
:param request: Request instance for BatchUpgradeDatabases
|
183
|
+
:type request: :class:`huaweicloudsdkgaussdb.v3.BatchUpgradeDatabasesRequest`
|
184
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.BatchUpgradeDatabasesResponse`
|
185
|
+
"""
|
186
|
+
http_info = self._batch_upgrade_databases_http_info(request)
|
187
|
+
return self._call_api(**http_info)
|
188
|
+
|
189
|
+
def batch_upgrade_databases_async_invoker(self, request):
|
190
|
+
http_info = self._batch_upgrade_databases_http_info(request)
|
191
|
+
return AsyncInvoker(self, http_info)
|
192
|
+
|
193
|
+
def _batch_upgrade_databases_http_info(self, request):
|
194
|
+
http_info = {
|
195
|
+
"method": "POST",
|
196
|
+
"resource_path": "/v3/{project_id}/instances/database-version/upgrade",
|
197
|
+
"request_type": request.__class__.__name__,
|
198
|
+
"response_type": "BatchUpgradeDatabasesResponse"
|
199
|
+
}
|
200
|
+
|
201
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
202
|
+
|
203
|
+
cname = None
|
204
|
+
|
205
|
+
collection_formats = {}
|
206
|
+
|
207
|
+
path_params = {}
|
208
|
+
|
209
|
+
query_params = []
|
210
|
+
|
211
|
+
header_params = {}
|
212
|
+
if 'x_language' in local_var_params:
|
213
|
+
header_params['X-Language'] = local_var_params['x_language']
|
214
|
+
|
215
|
+
form_params = {}
|
216
|
+
|
217
|
+
body = None
|
218
|
+
if 'body' in local_var_params:
|
219
|
+
body = local_var_params['body']
|
220
|
+
if isinstance(request, SdkStreamRequest):
|
221
|
+
body = request.get_file_stream()
|
222
|
+
|
223
|
+
response_headers = []
|
224
|
+
|
225
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
226
|
+
['application/json;charset=UTF-8'])
|
227
|
+
|
228
|
+
auth_settings = []
|
229
|
+
|
230
|
+
http_info["cname"] = cname
|
231
|
+
http_info["collection_formats"] = collection_formats
|
232
|
+
http_info["path_params"] = path_params
|
233
|
+
http_info["query_params"] = query_params
|
234
|
+
http_info["header_params"] = header_params
|
235
|
+
http_info["post_params"] = form_params
|
236
|
+
http_info["body"] = body
|
237
|
+
http_info["response_headers"] = response_headers
|
238
|
+
|
239
|
+
return http_info
|
240
|
+
|
174
241
|
def cancel_gauss_my_sql_instance_eip_async(self, request):
|
175
242
|
r"""解绑弹性公网IP
|
176
243
|
|
@@ -1336,6 +1403,75 @@ class GaussDBAsyncClient(Client):
|
|
1336
1403
|
|
1337
1404
|
return http_info
|
1338
1405
|
|
1406
|
+
def create_proxy_dns_name_async(self, request):
|
1407
|
+
r"""开启proxy内网DNS
|
1408
|
+
|
1409
|
+
开启proxy内网DNS。
|
1410
|
+
|
1411
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
1412
|
+
|
1413
|
+
|
1414
|
+
:param request: Request instance for CreateProxyDnsName
|
1415
|
+
:type request: :class:`huaweicloudsdkgaussdb.v3.CreateProxyDnsNameRequest`
|
1416
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.CreateProxyDnsNameResponse`
|
1417
|
+
"""
|
1418
|
+
http_info = self._create_proxy_dns_name_http_info(request)
|
1419
|
+
return self._call_api(**http_info)
|
1420
|
+
|
1421
|
+
def create_proxy_dns_name_async_invoker(self, request):
|
1422
|
+
http_info = self._create_proxy_dns_name_http_info(request)
|
1423
|
+
return AsyncInvoker(self, http_info)
|
1424
|
+
|
1425
|
+
def _create_proxy_dns_name_http_info(self, request):
|
1426
|
+
http_info = {
|
1427
|
+
"method": "POST",
|
1428
|
+
"resource_path": "/v3/{project_id}/instances/{instance_id}/proxy/{proxy_id}/dns",
|
1429
|
+
"request_type": request.__class__.__name__,
|
1430
|
+
"response_type": "CreateProxyDnsNameResponse"
|
1431
|
+
}
|
1432
|
+
|
1433
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
1434
|
+
|
1435
|
+
cname = None
|
1436
|
+
|
1437
|
+
collection_formats = {}
|
1438
|
+
|
1439
|
+
path_params = {}
|
1440
|
+
if 'instance_id' in local_var_params:
|
1441
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
1442
|
+
if 'proxy_id' in local_var_params:
|
1443
|
+
path_params['proxy_id'] = local_var_params['proxy_id']
|
1444
|
+
|
1445
|
+
query_params = []
|
1446
|
+
|
1447
|
+
header_params = {}
|
1448
|
+
if 'x_language' in local_var_params:
|
1449
|
+
header_params['X-Language'] = local_var_params['x_language']
|
1450
|
+
|
1451
|
+
form_params = {}
|
1452
|
+
|
1453
|
+
body = None
|
1454
|
+
if isinstance(request, SdkStreamRequest):
|
1455
|
+
body = request.get_file_stream()
|
1456
|
+
|
1457
|
+
response_headers = []
|
1458
|
+
|
1459
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
1460
|
+
['application/json'])
|
1461
|
+
|
1462
|
+
auth_settings = []
|
1463
|
+
|
1464
|
+
http_info["cname"] = cname
|
1465
|
+
http_info["collection_formats"] = collection_formats
|
1466
|
+
http_info["path_params"] = path_params
|
1467
|
+
http_info["query_params"] = query_params
|
1468
|
+
http_info["header_params"] = header_params
|
1469
|
+
http_info["post_params"] = form_params
|
1470
|
+
http_info["body"] = body
|
1471
|
+
http_info["response_headers"] = response_headers
|
1472
|
+
|
1473
|
+
return http_info
|
1474
|
+
|
1339
1475
|
def create_restore_tables_async(self, request):
|
1340
1476
|
r"""表级时间点恢复
|
1341
1477
|
|
@@ -2018,6 +2154,75 @@ class GaussDBAsyncClient(Client):
|
|
2018
2154
|
|
2019
2155
|
return http_info
|
2020
2156
|
|
2157
|
+
def delete_proxy_private_dns_name_async(self, request):
|
2158
|
+
r"""删除proxy内网dns
|
2159
|
+
|
2160
|
+
删除proxy内网dns。
|
2161
|
+
|
2162
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
2163
|
+
|
2164
|
+
|
2165
|
+
:param request: Request instance for DeleteProxyPrivateDnsName
|
2166
|
+
:type request: :class:`huaweicloudsdkgaussdb.v3.DeleteProxyPrivateDnsNameRequest`
|
2167
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.DeleteProxyPrivateDnsNameResponse`
|
2168
|
+
"""
|
2169
|
+
http_info = self._delete_proxy_private_dns_name_http_info(request)
|
2170
|
+
return self._call_api(**http_info)
|
2171
|
+
|
2172
|
+
def delete_proxy_private_dns_name_async_invoker(self, request):
|
2173
|
+
http_info = self._delete_proxy_private_dns_name_http_info(request)
|
2174
|
+
return AsyncInvoker(self, http_info)
|
2175
|
+
|
2176
|
+
def _delete_proxy_private_dns_name_http_info(self, request):
|
2177
|
+
http_info = {
|
2178
|
+
"method": "DELETE",
|
2179
|
+
"resource_path": "/v3/{project_id}/instances/{instance_id}/proxy/{proxy_id}/dns",
|
2180
|
+
"request_type": request.__class__.__name__,
|
2181
|
+
"response_type": "DeleteProxyPrivateDnsNameResponse"
|
2182
|
+
}
|
2183
|
+
|
2184
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
2185
|
+
|
2186
|
+
cname = None
|
2187
|
+
|
2188
|
+
collection_formats = {}
|
2189
|
+
|
2190
|
+
path_params = {}
|
2191
|
+
if 'instance_id' in local_var_params:
|
2192
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
2193
|
+
if 'proxy_id' in local_var_params:
|
2194
|
+
path_params['proxy_id'] = local_var_params['proxy_id']
|
2195
|
+
|
2196
|
+
query_params = []
|
2197
|
+
|
2198
|
+
header_params = {}
|
2199
|
+
if 'x_language' in local_var_params:
|
2200
|
+
header_params['X-Language'] = local_var_params['x_language']
|
2201
|
+
|
2202
|
+
form_params = {}
|
2203
|
+
|
2204
|
+
body = None
|
2205
|
+
if isinstance(request, SdkStreamRequest):
|
2206
|
+
body = request.get_file_stream()
|
2207
|
+
|
2208
|
+
response_headers = []
|
2209
|
+
|
2210
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
2211
|
+
['application/json'])
|
2212
|
+
|
2213
|
+
auth_settings = []
|
2214
|
+
|
2215
|
+
http_info["cname"] = cname
|
2216
|
+
http_info["collection_formats"] = collection_formats
|
2217
|
+
http_info["path_params"] = path_params
|
2218
|
+
http_info["query_params"] = query_params
|
2219
|
+
http_info["header_params"] = header_params
|
2220
|
+
http_info["post_params"] = form_params
|
2221
|
+
http_info["body"] = body
|
2222
|
+
http_info["response_headers"] = response_headers
|
2223
|
+
|
2224
|
+
return http_info
|
2225
|
+
|
2021
2226
|
def delete_schedule_tas_k_async(self, request):
|
2022
2227
|
r"""删除定时任务
|
2023
2228
|
|
@@ -2715,6 +2920,81 @@ class GaussDBAsyncClient(Client):
|
|
2715
2920
|
|
2716
2921
|
return http_info
|
2717
2922
|
|
2923
|
+
def list_audit_logs_async(self, request):
|
2924
|
+
r"""获取审计日志列表
|
2925
|
+
|
2926
|
+
获取审计日志列表。
|
2927
|
+
|
2928
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
2929
|
+
|
2930
|
+
|
2931
|
+
:param request: Request instance for ListAuditLogs
|
2932
|
+
:type request: :class:`huaweicloudsdkgaussdb.v3.ListAuditLogsRequest`
|
2933
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.ListAuditLogsResponse`
|
2934
|
+
"""
|
2935
|
+
http_info = self._list_audit_logs_http_info(request)
|
2936
|
+
return self._call_api(**http_info)
|
2937
|
+
|
2938
|
+
def list_audit_logs_async_invoker(self, request):
|
2939
|
+
http_info = self._list_audit_logs_http_info(request)
|
2940
|
+
return AsyncInvoker(self, http_info)
|
2941
|
+
|
2942
|
+
def _list_audit_logs_http_info(self, request):
|
2943
|
+
http_info = {
|
2944
|
+
"method": "GET",
|
2945
|
+
"resource_path": "/v3/{project_id}/instances/{instance_id}/audit-logs",
|
2946
|
+
"request_type": request.__class__.__name__,
|
2947
|
+
"response_type": "ListAuditLogsResponse"
|
2948
|
+
}
|
2949
|
+
|
2950
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
2951
|
+
|
2952
|
+
cname = None
|
2953
|
+
|
2954
|
+
collection_formats = {}
|
2955
|
+
|
2956
|
+
path_params = {}
|
2957
|
+
if 'instance_id' in local_var_params:
|
2958
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
2959
|
+
|
2960
|
+
query_params = []
|
2961
|
+
if 'start_time' in local_var_params:
|
2962
|
+
query_params.append(('start_time', local_var_params['start_time']))
|
2963
|
+
if 'end_time' in local_var_params:
|
2964
|
+
query_params.append(('end_time', local_var_params['end_time']))
|
2965
|
+
if 'offset' in local_var_params:
|
2966
|
+
query_params.append(('offset', local_var_params['offset']))
|
2967
|
+
if 'limit' in local_var_params:
|
2968
|
+
query_params.append(('limit', local_var_params['limit']))
|
2969
|
+
|
2970
|
+
header_params = {}
|
2971
|
+
if 'x_language' in local_var_params:
|
2972
|
+
header_params['X-Language'] = local_var_params['x_language']
|
2973
|
+
|
2974
|
+
form_params = {}
|
2975
|
+
|
2976
|
+
body = None
|
2977
|
+
if isinstance(request, SdkStreamRequest):
|
2978
|
+
body = request.get_file_stream()
|
2979
|
+
|
2980
|
+
response_headers = []
|
2981
|
+
|
2982
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
2983
|
+
['application/json'])
|
2984
|
+
|
2985
|
+
auth_settings = []
|
2986
|
+
|
2987
|
+
http_info["cname"] = cname
|
2988
|
+
http_info["collection_formats"] = collection_formats
|
2989
|
+
http_info["path_params"] = path_params
|
2990
|
+
http_info["query_params"] = query_params
|
2991
|
+
http_info["header_params"] = header_params
|
2992
|
+
http_info["post_params"] = form_params
|
2993
|
+
http_info["body"] = body
|
2994
|
+
http_info["response_headers"] = response_headers
|
2995
|
+
|
2996
|
+
return http_info
|
2997
|
+
|
2718
2998
|
def list_configurations_differences_async(self, request):
|
2719
2999
|
r"""对比参数模板
|
2720
3000
|
|
@@ -5206,31 +5486,31 @@ class GaussDBAsyncClient(Client):
|
|
5206
5486
|
|
5207
5487
|
return http_info
|
5208
5488
|
|
5209
|
-
def
|
5210
|
-
r"""
|
5489
|
+
def set_audit_log_policy_async(self, request):
|
5490
|
+
r"""设置审计日志策略
|
5211
5491
|
|
5212
|
-
|
5492
|
+
设置审计日志策略。
|
5213
5493
|
|
5214
5494
|
Please refer to HUAWEI cloud API Explorer for details.
|
5215
5495
|
|
5216
5496
|
|
5217
|
-
:param request: Request instance for
|
5218
|
-
:type request: :class:`huaweicloudsdkgaussdb.v3.
|
5219
|
-
:rtype: :class:`huaweicloudsdkgaussdb.v3.
|
5497
|
+
:param request: Request instance for SetAuditLogPolicy
|
5498
|
+
:type request: :class:`huaweicloudsdkgaussdb.v3.SetAuditLogPolicyRequest`
|
5499
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.SetAuditLogPolicyResponse`
|
5220
5500
|
"""
|
5221
|
-
http_info = self.
|
5501
|
+
http_info = self._set_audit_log_policy_http_info(request)
|
5222
5502
|
return self._call_api(**http_info)
|
5223
5503
|
|
5224
|
-
def
|
5225
|
-
http_info = self.
|
5504
|
+
def set_audit_log_policy_async_invoker(self, request):
|
5505
|
+
http_info = self._set_audit_log_policy_http_info(request)
|
5226
5506
|
return AsyncInvoker(self, http_info)
|
5227
5507
|
|
5228
|
-
def
|
5508
|
+
def _set_audit_log_policy_http_info(self, request):
|
5229
5509
|
http_info = {
|
5230
5510
|
"method": "PUT",
|
5231
|
-
"resource_path": "/v3/{project_id}/instances/{instance_id}/
|
5511
|
+
"resource_path": "/v3/{project_id}/instances/{instance_id}/audit-log-policy",
|
5232
5512
|
"request_type": request.__class__.__name__,
|
5233
|
-
"response_type": "
|
5513
|
+
"response_type": "SetAuditLogPolicyResponse"
|
5234
5514
|
}
|
5235
5515
|
|
5236
5516
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
@@ -5242,8 +5522,6 @@ class GaussDBAsyncClient(Client):
|
|
5242
5522
|
path_params = {}
|
5243
5523
|
if 'instance_id' in local_var_params:
|
5244
5524
|
path_params['instance_id'] = local_var_params['instance_id']
|
5245
|
-
if 'proxy_id' in local_var_params:
|
5246
|
-
path_params['proxy_id'] = local_var_params['proxy_id']
|
5247
5525
|
|
5248
5526
|
query_params = []
|
5249
5527
|
|
@@ -5277,18 +5555,89 @@ class GaussDBAsyncClient(Client):
|
|
5277
5555
|
|
5278
5556
|
return http_info
|
5279
5557
|
|
5280
|
-
def
|
5281
|
-
r"""
|
5558
|
+
def set_gauss_my_sql_proxy_weight_async(self, request):
|
5559
|
+
r"""设置读写分离权重
|
5282
5560
|
|
5283
|
-
|
5561
|
+
设置读写分离权重。
|
5284
5562
|
|
5285
5563
|
Please refer to HUAWEI cloud API Explorer for details.
|
5286
5564
|
|
5287
5565
|
|
5288
|
-
:param request: Request instance for
|
5289
|
-
:type request: :class:`huaweicloudsdkgaussdb.v3.
|
5290
|
-
:rtype: :class:`huaweicloudsdkgaussdb.v3.
|
5291
|
-
"""
|
5566
|
+
:param request: Request instance for SetGaussMySqlProxyWeight
|
5567
|
+
:type request: :class:`huaweicloudsdkgaussdb.v3.SetGaussMySqlProxyWeightRequest`
|
5568
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.SetGaussMySqlProxyWeightResponse`
|
5569
|
+
"""
|
5570
|
+
http_info = self._set_gauss_my_sql_proxy_weight_http_info(request)
|
5571
|
+
return self._call_api(**http_info)
|
5572
|
+
|
5573
|
+
def set_gauss_my_sql_proxy_weight_async_invoker(self, request):
|
5574
|
+
http_info = self._set_gauss_my_sql_proxy_weight_http_info(request)
|
5575
|
+
return AsyncInvoker(self, http_info)
|
5576
|
+
|
5577
|
+
def _set_gauss_my_sql_proxy_weight_http_info(self, request):
|
5578
|
+
http_info = {
|
5579
|
+
"method": "PUT",
|
5580
|
+
"resource_path": "/v3/{project_id}/instances/{instance_id}/proxy/{proxy_id}/weight",
|
5581
|
+
"request_type": request.__class__.__name__,
|
5582
|
+
"response_type": "SetGaussMySqlProxyWeightResponse"
|
5583
|
+
}
|
5584
|
+
|
5585
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
5586
|
+
|
5587
|
+
cname = None
|
5588
|
+
|
5589
|
+
collection_formats = {}
|
5590
|
+
|
5591
|
+
path_params = {}
|
5592
|
+
if 'instance_id' in local_var_params:
|
5593
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
5594
|
+
if 'proxy_id' in local_var_params:
|
5595
|
+
path_params['proxy_id'] = local_var_params['proxy_id']
|
5596
|
+
|
5597
|
+
query_params = []
|
5598
|
+
|
5599
|
+
header_params = {}
|
5600
|
+
if 'x_language' in local_var_params:
|
5601
|
+
header_params['X-Language'] = local_var_params['x_language']
|
5602
|
+
|
5603
|
+
form_params = {}
|
5604
|
+
|
5605
|
+
body = None
|
5606
|
+
if 'body' in local_var_params:
|
5607
|
+
body = local_var_params['body']
|
5608
|
+
if isinstance(request, SdkStreamRequest):
|
5609
|
+
body = request.get_file_stream()
|
5610
|
+
|
5611
|
+
response_headers = []
|
5612
|
+
|
5613
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
5614
|
+
['application/json;charset=UTF-8'])
|
5615
|
+
|
5616
|
+
auth_settings = []
|
5617
|
+
|
5618
|
+
http_info["cname"] = cname
|
5619
|
+
http_info["collection_formats"] = collection_formats
|
5620
|
+
http_info["path_params"] = path_params
|
5621
|
+
http_info["query_params"] = query_params
|
5622
|
+
http_info["header_params"] = header_params
|
5623
|
+
http_info["post_params"] = form_params
|
5624
|
+
http_info["body"] = body
|
5625
|
+
http_info["response_headers"] = response_headers
|
5626
|
+
|
5627
|
+
return http_info
|
5628
|
+
|
5629
|
+
def set_gauss_my_sql_quotas_async(self, request):
|
5630
|
+
r"""设置租户基于企业项目的资源配额
|
5631
|
+
|
5632
|
+
设置指定企业项目的资源配额。
|
5633
|
+
|
5634
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
5635
|
+
|
5636
|
+
|
5637
|
+
:param request: Request instance for SetGaussMySqlQuotas
|
5638
|
+
:type request: :class:`huaweicloudsdkgaussdb.v3.SetGaussMySqlQuotasRequest`
|
5639
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.SetGaussMySqlQuotasResponse`
|
5640
|
+
"""
|
5292
5641
|
http_info = self._set_gauss_my_sql_quotas_http_info(request)
|
5293
5642
|
return self._call_api(**http_info)
|
5294
5643
|
|
@@ -5547,6 +5896,142 @@ class GaussDBAsyncClient(Client):
|
|
5547
5896
|
|
5548
5897
|
return http_info
|
5549
5898
|
|
5899
|
+
def show_audit_log_download_link_async(self, request):
|
5900
|
+
r"""生成审计日志下载链接
|
5901
|
+
|
5902
|
+
生成审计日志下载链接。
|
5903
|
+
|
5904
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
5905
|
+
|
5906
|
+
|
5907
|
+
:param request: Request instance for ShowAuditLogDownloadLink
|
5908
|
+
:type request: :class:`huaweicloudsdkgaussdb.v3.ShowAuditLogDownloadLinkRequest`
|
5909
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.ShowAuditLogDownloadLinkResponse`
|
5910
|
+
"""
|
5911
|
+
http_info = self._show_audit_log_download_link_http_info(request)
|
5912
|
+
return self._call_api(**http_info)
|
5913
|
+
|
5914
|
+
def show_audit_log_download_link_async_invoker(self, request):
|
5915
|
+
http_info = self._show_audit_log_download_link_http_info(request)
|
5916
|
+
return AsyncInvoker(self, http_info)
|
5917
|
+
|
5918
|
+
def _show_audit_log_download_link_http_info(self, request):
|
5919
|
+
http_info = {
|
5920
|
+
"method": "POST",
|
5921
|
+
"resource_path": "/v3/{project_id}/instances/{instance_id}/audit-log-link",
|
5922
|
+
"request_type": request.__class__.__name__,
|
5923
|
+
"response_type": "ShowAuditLogDownloadLinkResponse"
|
5924
|
+
}
|
5925
|
+
|
5926
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
5927
|
+
|
5928
|
+
cname = None
|
5929
|
+
|
5930
|
+
collection_formats = {}
|
5931
|
+
|
5932
|
+
path_params = {}
|
5933
|
+
if 'instance_id' in local_var_params:
|
5934
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
5935
|
+
|
5936
|
+
query_params = []
|
5937
|
+
|
5938
|
+
header_params = {}
|
5939
|
+
if 'x_language' in local_var_params:
|
5940
|
+
header_params['X-Language'] = local_var_params['x_language']
|
5941
|
+
|
5942
|
+
form_params = {}
|
5943
|
+
|
5944
|
+
body = None
|
5945
|
+
if 'body' in local_var_params:
|
5946
|
+
body = local_var_params['body']
|
5947
|
+
if isinstance(request, SdkStreamRequest):
|
5948
|
+
body = request.get_file_stream()
|
5949
|
+
|
5950
|
+
response_headers = []
|
5951
|
+
|
5952
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
5953
|
+
['application/json;charset=UTF-8'])
|
5954
|
+
|
5955
|
+
auth_settings = []
|
5956
|
+
|
5957
|
+
http_info["cname"] = cname
|
5958
|
+
http_info["collection_formats"] = collection_formats
|
5959
|
+
http_info["path_params"] = path_params
|
5960
|
+
http_info["query_params"] = query_params
|
5961
|
+
http_info["header_params"] = header_params
|
5962
|
+
http_info["post_params"] = form_params
|
5963
|
+
http_info["body"] = body
|
5964
|
+
http_info["response_headers"] = response_headers
|
5965
|
+
|
5966
|
+
return http_info
|
5967
|
+
|
5968
|
+
def show_audit_log_policy_async(self, request):
|
5969
|
+
r"""查询审计日志策略
|
5970
|
+
|
5971
|
+
查询审计日志策略。
|
5972
|
+
|
5973
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
5974
|
+
|
5975
|
+
|
5976
|
+
:param request: Request instance for ShowAuditLogPolicy
|
5977
|
+
:type request: :class:`huaweicloudsdkgaussdb.v3.ShowAuditLogPolicyRequest`
|
5978
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.ShowAuditLogPolicyResponse`
|
5979
|
+
"""
|
5980
|
+
http_info = self._show_audit_log_policy_http_info(request)
|
5981
|
+
return self._call_api(**http_info)
|
5982
|
+
|
5983
|
+
def show_audit_log_policy_async_invoker(self, request):
|
5984
|
+
http_info = self._show_audit_log_policy_http_info(request)
|
5985
|
+
return AsyncInvoker(self, http_info)
|
5986
|
+
|
5987
|
+
def _show_audit_log_policy_http_info(self, request):
|
5988
|
+
http_info = {
|
5989
|
+
"method": "GET",
|
5990
|
+
"resource_path": "/v3/{project_id}/instances/{instance_id}/audit-log-policy",
|
5991
|
+
"request_type": request.__class__.__name__,
|
5992
|
+
"response_type": "ShowAuditLogPolicyResponse"
|
5993
|
+
}
|
5994
|
+
|
5995
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
5996
|
+
|
5997
|
+
cname = None
|
5998
|
+
|
5999
|
+
collection_formats = {}
|
6000
|
+
|
6001
|
+
path_params = {}
|
6002
|
+
if 'instance_id' in local_var_params:
|
6003
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
6004
|
+
|
6005
|
+
query_params = []
|
6006
|
+
|
6007
|
+
header_params = {}
|
6008
|
+
if 'x_language' in local_var_params:
|
6009
|
+
header_params['X-Language'] = local_var_params['x_language']
|
6010
|
+
|
6011
|
+
form_params = {}
|
6012
|
+
|
6013
|
+
body = None
|
6014
|
+
if isinstance(request, SdkStreamRequest):
|
6015
|
+
body = request.get_file_stream()
|
6016
|
+
|
6017
|
+
response_headers = []
|
6018
|
+
|
6019
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
6020
|
+
['application/json'])
|
6021
|
+
|
6022
|
+
auth_settings = []
|
6023
|
+
|
6024
|
+
http_info["cname"] = cname
|
6025
|
+
http_info["collection_formats"] = collection_formats
|
6026
|
+
http_info["path_params"] = path_params
|
6027
|
+
http_info["query_params"] = query_params
|
6028
|
+
http_info["header_params"] = header_params
|
6029
|
+
http_info["post_params"] = form_params
|
6030
|
+
http_info["body"] = body
|
6031
|
+
http_info["response_headers"] = response_headers
|
6032
|
+
|
6033
|
+
return http_info
|
6034
|
+
|
5550
6035
|
def show_auto_expand_policy_async(self, request):
|
5551
6036
|
r"""查询存储空间自动扩容策略。
|
5552
6037
|
|
@@ -5888,6 +6373,75 @@ class GaussDBAsyncClient(Client):
|
|
5888
6373
|
|
5889
6374
|
return http_info
|
5890
6375
|
|
6376
|
+
def show_error_log_download_link_async(self, request):
|
6377
|
+
r"""错误日志下载
|
6378
|
+
|
6379
|
+
错误日志下载。
|
6380
|
+
|
6381
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
6382
|
+
|
6383
|
+
|
6384
|
+
:param request: Request instance for ShowErrorLogDownloadLink
|
6385
|
+
:type request: :class:`huaweicloudsdkgaussdb.v3.ShowErrorLogDownloadLinkRequest`
|
6386
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.ShowErrorLogDownloadLinkResponse`
|
6387
|
+
"""
|
6388
|
+
http_info = self._show_error_log_download_link_http_info(request)
|
6389
|
+
return self._call_api(**http_info)
|
6390
|
+
|
6391
|
+
def show_error_log_download_link_async_invoker(self, request):
|
6392
|
+
http_info = self._show_error_log_download_link_http_info(request)
|
6393
|
+
return AsyncInvoker(self, http_info)
|
6394
|
+
|
6395
|
+
def _show_error_log_download_link_http_info(self, request):
|
6396
|
+
http_info = {
|
6397
|
+
"method": "POST",
|
6398
|
+
"resource_path": "/v3/{project_id}/instances/{instance_id}/{node_id}/errorlog-download",
|
6399
|
+
"request_type": request.__class__.__name__,
|
6400
|
+
"response_type": "ShowErrorLogDownloadLinkResponse"
|
6401
|
+
}
|
6402
|
+
|
6403
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
6404
|
+
|
6405
|
+
cname = None
|
6406
|
+
|
6407
|
+
collection_formats = {}
|
6408
|
+
|
6409
|
+
path_params = {}
|
6410
|
+
if 'instance_id' in local_var_params:
|
6411
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
6412
|
+
if 'node_id' in local_var_params:
|
6413
|
+
path_params['node_id'] = local_var_params['node_id']
|
6414
|
+
|
6415
|
+
query_params = []
|
6416
|
+
|
6417
|
+
header_params = {}
|
6418
|
+
if 'x_language' in local_var_params:
|
6419
|
+
header_params['X-Language'] = local_var_params['x_language']
|
6420
|
+
|
6421
|
+
form_params = {}
|
6422
|
+
|
6423
|
+
body = None
|
6424
|
+
if isinstance(request, SdkStreamRequest):
|
6425
|
+
body = request.get_file_stream()
|
6426
|
+
|
6427
|
+
response_headers = []
|
6428
|
+
|
6429
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
6430
|
+
['application/json'])
|
6431
|
+
|
6432
|
+
auth_settings = []
|
6433
|
+
|
6434
|
+
http_info["cname"] = cname
|
6435
|
+
http_info["collection_formats"] = collection_formats
|
6436
|
+
http_info["path_params"] = path_params
|
6437
|
+
http_info["query_params"] = query_params
|
6438
|
+
http_info["header_params"] = header_params
|
6439
|
+
http_info["post_params"] = form_params
|
6440
|
+
http_info["body"] = body
|
6441
|
+
http_info["response_headers"] = response_headers
|
6442
|
+
|
6443
|
+
return http_info
|
6444
|
+
|
5891
6445
|
def show_gauss_my_sql_backup_list_async(self, request):
|
5892
6446
|
r"""查询全量备份列表
|
5893
6447
|
|
@@ -7351,31 +7905,100 @@ class GaussDBAsyncClient(Client):
|
|
7351
7905
|
|
7352
7906
|
return http_info
|
7353
7907
|
|
7354
|
-
def
|
7355
|
-
r"""
|
7908
|
+
def show_proxy_flavors_by_az_code_async(self, request):
|
7909
|
+
r"""根据azCode查询数据库代理规格信息
|
7356
7910
|
|
7357
|
-
|
7911
|
+
根据azCode查询数据库代理规格信息。
|
7358
7912
|
|
7359
7913
|
Please refer to HUAWEI cloud API Explorer for details.
|
7360
7914
|
|
7361
7915
|
|
7362
|
-
:param request: Request instance for
|
7363
|
-
:type request: :class:`huaweicloudsdkgaussdb.v3.
|
7364
|
-
:rtype: :class:`huaweicloudsdkgaussdb.v3.
|
7916
|
+
:param request: Request instance for ShowProxyFlavorsByAzCode
|
7917
|
+
:type request: :class:`huaweicloudsdkgaussdb.v3.ShowProxyFlavorsByAzCodeRequest`
|
7918
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.ShowProxyFlavorsByAzCodeResponse`
|
7365
7919
|
"""
|
7366
|
-
http_info = self.
|
7920
|
+
http_info = self._show_proxy_flavors_by_az_code_http_info(request)
|
7367
7921
|
return self._call_api(**http_info)
|
7368
7922
|
|
7369
|
-
def
|
7370
|
-
http_info = self.
|
7923
|
+
def show_proxy_flavors_by_az_code_async_invoker(self, request):
|
7924
|
+
http_info = self._show_proxy_flavors_by_az_code_http_info(request)
|
7371
7925
|
return AsyncInvoker(self, http_info)
|
7372
7926
|
|
7373
|
-
def
|
7927
|
+
def _show_proxy_flavors_by_az_code_http_info(self, request):
|
7374
7928
|
http_info = {
|
7375
7929
|
"method": "GET",
|
7376
|
-
"resource_path": "/v3/{project_id}/
|
7930
|
+
"resource_path": "/v3/{project_id}/proxy/flavors",
|
7377
7931
|
"request_type": request.__class__.__name__,
|
7378
|
-
"response_type": "
|
7932
|
+
"response_type": "ShowProxyFlavorsByAzCodeResponse"
|
7933
|
+
}
|
7934
|
+
|
7935
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
7936
|
+
|
7937
|
+
cname = None
|
7938
|
+
|
7939
|
+
collection_formats = {}
|
7940
|
+
|
7941
|
+
path_params = {}
|
7942
|
+
|
7943
|
+
query_params = []
|
7944
|
+
if 'az_codes' in local_var_params:
|
7945
|
+
query_params.append(('az_codes', local_var_params['az_codes']))
|
7946
|
+
if 'proxy_engine_name' in local_var_params:
|
7947
|
+
query_params.append(('proxy_engine_name', local_var_params['proxy_engine_name']))
|
7948
|
+
|
7949
|
+
header_params = {}
|
7950
|
+
if 'x_language' in local_var_params:
|
7951
|
+
header_params['X-Language'] = local_var_params['x_language']
|
7952
|
+
|
7953
|
+
form_params = {}
|
7954
|
+
|
7955
|
+
body = None
|
7956
|
+
if isinstance(request, SdkStreamRequest):
|
7957
|
+
body = request.get_file_stream()
|
7958
|
+
|
7959
|
+
response_headers = []
|
7960
|
+
|
7961
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
7962
|
+
['application/json'])
|
7963
|
+
|
7964
|
+
auth_settings = []
|
7965
|
+
|
7966
|
+
http_info["cname"] = cname
|
7967
|
+
http_info["collection_formats"] = collection_formats
|
7968
|
+
http_info["path_params"] = path_params
|
7969
|
+
http_info["query_params"] = query_params
|
7970
|
+
http_info["header_params"] = header_params
|
7971
|
+
http_info["post_params"] = form_params
|
7972
|
+
http_info["body"] = body
|
7973
|
+
http_info["response_headers"] = response_headers
|
7974
|
+
|
7975
|
+
return http_info
|
7976
|
+
|
7977
|
+
def show_proxy_ipgroup_async(self, request):
|
7978
|
+
r"""查询代理实例访问控制
|
7979
|
+
|
7980
|
+
查询代理实例访问控制
|
7981
|
+
|
7982
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
7983
|
+
|
7984
|
+
|
7985
|
+
:param request: Request instance for ShowProxyIpgroup
|
7986
|
+
:type request: :class:`huaweicloudsdkgaussdb.v3.ShowProxyIpgroupRequest`
|
7987
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.ShowProxyIpgroupResponse`
|
7988
|
+
"""
|
7989
|
+
http_info = self._show_proxy_ipgroup_http_info(request)
|
7990
|
+
return self._call_api(**http_info)
|
7991
|
+
|
7992
|
+
def show_proxy_ipgroup_async_invoker(self, request):
|
7993
|
+
http_info = self._show_proxy_ipgroup_http_info(request)
|
7994
|
+
return AsyncInvoker(self, http_info)
|
7995
|
+
|
7996
|
+
def _show_proxy_ipgroup_http_info(self, request):
|
7997
|
+
http_info = {
|
7998
|
+
"method": "GET",
|
7999
|
+
"resource_path": "/v3/{project_id}/instances/{instance_id}/proxy/{proxy_id}/ipgroup",
|
8000
|
+
"request_type": request.__class__.__name__,
|
8001
|
+
"response_type": "ShowProxyIpgroupResponse"
|
7379
8002
|
}
|
7380
8003
|
|
7381
8004
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
@@ -7980,6 +8603,77 @@ class GaussDBAsyncClient(Client):
|
|
7980
8603
|
|
7981
8604
|
return http_info
|
7982
8605
|
|
8606
|
+
def show_table_meta_info_async(self, request):
|
8607
|
+
r"""查询实例库表信息
|
8608
|
+
|
8609
|
+
查询实例库表信息
|
8610
|
+
|
8611
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
8612
|
+
|
8613
|
+
|
8614
|
+
:param request: Request instance for ShowTableMetaInfo
|
8615
|
+
:type request: :class:`huaweicloudsdkgaussdb.v3.ShowTableMetaInfoRequest`
|
8616
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.ShowTableMetaInfoResponse`
|
8617
|
+
"""
|
8618
|
+
http_info = self._show_table_meta_info_http_info(request)
|
8619
|
+
return self._call_api(**http_info)
|
8620
|
+
|
8621
|
+
def show_table_meta_info_async_invoker(self, request):
|
8622
|
+
http_info = self._show_table_meta_info_http_info(request)
|
8623
|
+
return AsyncInvoker(self, http_info)
|
8624
|
+
|
8625
|
+
def _show_table_meta_info_http_info(self, request):
|
8626
|
+
http_info = {
|
8627
|
+
"method": "GET",
|
8628
|
+
"resource_path": "/v3/{project_id}/instances/{instance_id}/table-info",
|
8629
|
+
"request_type": request.__class__.__name__,
|
8630
|
+
"response_type": "ShowTableMetaInfoResponse"
|
8631
|
+
}
|
8632
|
+
|
8633
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
8634
|
+
|
8635
|
+
cname = None
|
8636
|
+
|
8637
|
+
collection_formats = {}
|
8638
|
+
|
8639
|
+
path_params = {}
|
8640
|
+
if 'instance_id' in local_var_params:
|
8641
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
8642
|
+
|
8643
|
+
query_params = []
|
8644
|
+
if 'database_name' in local_var_params:
|
8645
|
+
query_params.append(('database_name', local_var_params['database_name']))
|
8646
|
+
if 'table_name' in local_var_params:
|
8647
|
+
query_params.append(('table_name', local_var_params['table_name']))
|
8648
|
+
|
8649
|
+
header_params = {}
|
8650
|
+
if 'x_language' in local_var_params:
|
8651
|
+
header_params['X-Language'] = local_var_params['x_language']
|
8652
|
+
|
8653
|
+
form_params = {}
|
8654
|
+
|
8655
|
+
body = None
|
8656
|
+
if isinstance(request, SdkStreamRequest):
|
8657
|
+
body = request.get_file_stream()
|
8658
|
+
|
8659
|
+
response_headers = []
|
8660
|
+
|
8661
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
8662
|
+
['application/json'])
|
8663
|
+
|
8664
|
+
auth_settings = []
|
8665
|
+
|
8666
|
+
http_info["cname"] = cname
|
8667
|
+
http_info["collection_formats"] = collection_formats
|
8668
|
+
http_info["path_params"] = path_params
|
8669
|
+
http_info["query_params"] = query_params
|
8670
|
+
http_info["header_params"] = header_params
|
8671
|
+
http_info["post_params"] = form_params
|
8672
|
+
http_info["body"] = body
|
8673
|
+
http_info["response_headers"] = response_headers
|
8674
|
+
|
8675
|
+
return http_info
|
8676
|
+
|
7983
8677
|
def shrink_gauss_my_sql_proxy_async(self, request):
|
7984
8678
|
r"""减少数据库代理节点的数量
|
7985
8679
|
|
@@ -9998,6 +10692,77 @@ class GaussDBAsyncClient(Client):
|
|
9998
10692
|
|
9999
10693
|
return http_info
|
10000
10694
|
|
10695
|
+
def update_proxy_private_dns_name_async(self, request):
|
10696
|
+
r"""修改proxy内网dns
|
10697
|
+
|
10698
|
+
修改proxy内网dns
|
10699
|
+
|
10700
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
10701
|
+
|
10702
|
+
|
10703
|
+
:param request: Request instance for UpdateProxyPrivateDnsName
|
10704
|
+
:type request: :class:`huaweicloudsdkgaussdb.v3.UpdateProxyPrivateDnsNameRequest`
|
10705
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.UpdateProxyPrivateDnsNameResponse`
|
10706
|
+
"""
|
10707
|
+
http_info = self._update_proxy_private_dns_name_http_info(request)
|
10708
|
+
return self._call_api(**http_info)
|
10709
|
+
|
10710
|
+
def update_proxy_private_dns_name_async_invoker(self, request):
|
10711
|
+
http_info = self._update_proxy_private_dns_name_http_info(request)
|
10712
|
+
return AsyncInvoker(self, http_info)
|
10713
|
+
|
10714
|
+
def _update_proxy_private_dns_name_http_info(self, request):
|
10715
|
+
http_info = {
|
10716
|
+
"method": "PUT",
|
10717
|
+
"resource_path": "/v3/{project_id}/instances/{instance_id}/proxy/{proxy_id}/dns",
|
10718
|
+
"request_type": request.__class__.__name__,
|
10719
|
+
"response_type": "UpdateProxyPrivateDnsNameResponse"
|
10720
|
+
}
|
10721
|
+
|
10722
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
10723
|
+
|
10724
|
+
cname = None
|
10725
|
+
|
10726
|
+
collection_formats = {}
|
10727
|
+
|
10728
|
+
path_params = {}
|
10729
|
+
if 'instance_id' in local_var_params:
|
10730
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
10731
|
+
if 'proxy_id' in local_var_params:
|
10732
|
+
path_params['proxy_id'] = local_var_params['proxy_id']
|
10733
|
+
|
10734
|
+
query_params = []
|
10735
|
+
|
10736
|
+
header_params = {}
|
10737
|
+
if 'x_language' in local_var_params:
|
10738
|
+
header_params['X-Language'] = local_var_params['x_language']
|
10739
|
+
|
10740
|
+
form_params = {}
|
10741
|
+
|
10742
|
+
body = None
|
10743
|
+
if 'body' in local_var_params:
|
10744
|
+
body = local_var_params['body']
|
10745
|
+
if isinstance(request, SdkStreamRequest):
|
10746
|
+
body = request.get_file_stream()
|
10747
|
+
|
10748
|
+
response_headers = []
|
10749
|
+
|
10750
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
10751
|
+
['application/json;charset=UTF-8'])
|
10752
|
+
|
10753
|
+
auth_settings = []
|
10754
|
+
|
10755
|
+
http_info["cname"] = cname
|
10756
|
+
http_info["collection_formats"] = collection_formats
|
10757
|
+
http_info["path_params"] = path_params
|
10758
|
+
http_info["query_params"] = query_params
|
10759
|
+
http_info["header_params"] = header_params
|
10760
|
+
http_info["post_params"] = form_params
|
10761
|
+
http_info["body"] = body
|
10762
|
+
http_info["response_headers"] = response_headers
|
10763
|
+
|
10764
|
+
return http_info
|
10765
|
+
|
10001
10766
|
def update_proxy_session_consistence_async(self, request):
|
10002
10767
|
r"""修改代理会话一致性
|
10003
10768
|
|
@@ -12622,6 +13387,73 @@ class GaussDBAsyncClient(Client):
|
|
12622
13387
|
|
12623
13388
|
return http_info
|
12624
13389
|
|
13390
|
+
def list_instance_node_async(self, request):
|
13391
|
+
r"""查询节点信息
|
13392
|
+
|
13393
|
+
查询节点信息
|
13394
|
+
|
13395
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
13396
|
+
|
13397
|
+
|
13398
|
+
:param request: Request instance for ListInstanceNode
|
13399
|
+
:type request: :class:`huaweicloudsdkgaussdb.v3.ListInstanceNodeRequest`
|
13400
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.ListInstanceNodeResponse`
|
13401
|
+
"""
|
13402
|
+
http_info = self._list_instance_node_http_info(request)
|
13403
|
+
return self._call_api(**http_info)
|
13404
|
+
|
13405
|
+
def list_instance_node_async_invoker(self, request):
|
13406
|
+
http_info = self._list_instance_node_http_info(request)
|
13407
|
+
return AsyncInvoker(self, http_info)
|
13408
|
+
|
13409
|
+
def _list_instance_node_http_info(self, request):
|
13410
|
+
http_info = {
|
13411
|
+
"method": "GET",
|
13412
|
+
"resource_path": "/v3/{project_id}/instances/{instance_id}/starrocks/nodes",
|
13413
|
+
"request_type": request.__class__.__name__,
|
13414
|
+
"response_type": "ListInstanceNodeResponse"
|
13415
|
+
}
|
13416
|
+
|
13417
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
13418
|
+
|
13419
|
+
cname = None
|
13420
|
+
|
13421
|
+
collection_formats = {}
|
13422
|
+
|
13423
|
+
path_params = {}
|
13424
|
+
if 'instance_id' in local_var_params:
|
13425
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
13426
|
+
|
13427
|
+
query_params = []
|
13428
|
+
|
13429
|
+
header_params = {}
|
13430
|
+
if 'x_language' in local_var_params:
|
13431
|
+
header_params['X-Language'] = local_var_params['x_language']
|
13432
|
+
|
13433
|
+
form_params = {}
|
13434
|
+
|
13435
|
+
body = None
|
13436
|
+
if isinstance(request, SdkStreamRequest):
|
13437
|
+
body = request.get_file_stream()
|
13438
|
+
|
13439
|
+
response_headers = []
|
13440
|
+
|
13441
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
13442
|
+
['application/json'])
|
13443
|
+
|
13444
|
+
auth_settings = []
|
13445
|
+
|
13446
|
+
http_info["cname"] = cname
|
13447
|
+
http_info["collection_formats"] = collection_formats
|
13448
|
+
http_info["path_params"] = path_params
|
13449
|
+
http_info["query_params"] = query_params
|
13450
|
+
http_info["header_params"] = header_params
|
13451
|
+
http_info["post_params"] = form_params
|
13452
|
+
http_info["body"] = body
|
13453
|
+
http_info["response_headers"] = response_headers
|
13454
|
+
|
13455
|
+
return http_info
|
13456
|
+
|
12625
13457
|
def list_star_rocks_data_bases_async(self, request):
|
12626
13458
|
r"""查询StarRocks数据库
|
12627
13459
|
|
@@ -13113,31 +13945,31 @@ class GaussDBAsyncClient(Client):
|
|
13113
13945
|
|
13114
13946
|
return http_info
|
13115
13947
|
|
13116
|
-
def
|
13117
|
-
r"""
|
13948
|
+
def modify_star_rocks_security_group_async(self, request):
|
13949
|
+
r"""修改StarRocks安全组
|
13118
13950
|
|
13119
|
-
|
13951
|
+
修改StarRocks安全组。
|
13120
13952
|
|
13121
13953
|
Please refer to HUAWEI cloud API Explorer for details.
|
13122
13954
|
|
13123
13955
|
|
13124
|
-
:param request: Request instance for
|
13125
|
-
:type request: :class:`huaweicloudsdkgaussdb.v3.
|
13126
|
-
:rtype: :class:`huaweicloudsdkgaussdb.v3.
|
13956
|
+
:param request: Request instance for ModifyStarRocksSecurityGroup
|
13957
|
+
:type request: :class:`huaweicloudsdkgaussdb.v3.ModifyStarRocksSecurityGroupRequest`
|
13958
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.ModifyStarRocksSecurityGroupResponse`
|
13127
13959
|
"""
|
13128
|
-
http_info = self.
|
13960
|
+
http_info = self._modify_star_rocks_security_group_http_info(request)
|
13129
13961
|
return self._call_api(**http_info)
|
13130
13962
|
|
13131
|
-
def
|
13132
|
-
http_info = self.
|
13963
|
+
def modify_star_rocks_security_group_async_invoker(self, request):
|
13964
|
+
http_info = self._modify_star_rocks_security_group_http_info(request)
|
13133
13965
|
return AsyncInvoker(self, http_info)
|
13134
13966
|
|
13135
|
-
def
|
13967
|
+
def _modify_star_rocks_security_group_http_info(self, request):
|
13136
13968
|
http_info = {
|
13137
|
-
"method": "
|
13138
|
-
"resource_path": "/v3/{project_id}/instances/{instance_id}/starrocks/
|
13969
|
+
"method": "PUT",
|
13970
|
+
"resource_path": "/v3/{project_id}/instances/{instance_id}/starrocks/security-group",
|
13139
13971
|
"request_type": request.__class__.__name__,
|
13140
|
-
"response_type": "
|
13972
|
+
"response_type": "ModifyStarRocksSecurityGroupResponse"
|
13141
13973
|
}
|
13142
13974
|
|
13143
13975
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
@@ -13182,8 +14014,77 @@ class GaussDBAsyncClient(Client):
|
|
13182
14014
|
|
13183
14015
|
return http_info
|
13184
14016
|
|
13185
|
-
def
|
13186
|
-
r"""
|
14017
|
+
def pause_star_rocks_data_replication_async(self, request):
|
14018
|
+
r"""暂停StarRocks数据同步
|
14019
|
+
|
14020
|
+
暂停StarRocks数据同步。
|
14021
|
+
|
14022
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
14023
|
+
|
14024
|
+
|
14025
|
+
:param request: Request instance for PauseStarRocksDataReplication
|
14026
|
+
:type request: :class:`huaweicloudsdkgaussdb.v3.PauseStarRocksDataReplicationRequest`
|
14027
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.PauseStarRocksDataReplicationResponse`
|
14028
|
+
"""
|
14029
|
+
http_info = self._pause_star_rocks_data_replication_http_info(request)
|
14030
|
+
return self._call_api(**http_info)
|
14031
|
+
|
14032
|
+
def pause_star_rocks_data_replication_async_invoker(self, request):
|
14033
|
+
http_info = self._pause_star_rocks_data_replication_http_info(request)
|
14034
|
+
return AsyncInvoker(self, http_info)
|
14035
|
+
|
14036
|
+
def _pause_star_rocks_data_replication_http_info(self, request):
|
14037
|
+
http_info = {
|
14038
|
+
"method": "POST",
|
14039
|
+
"resource_path": "/v3/{project_id}/instances/{instance_id}/starrocks/databases/replication/pause",
|
14040
|
+
"request_type": request.__class__.__name__,
|
14041
|
+
"response_type": "PauseStarRocksDataReplicationResponse"
|
14042
|
+
}
|
14043
|
+
|
14044
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
14045
|
+
|
14046
|
+
cname = None
|
14047
|
+
|
14048
|
+
collection_formats = {}
|
14049
|
+
|
14050
|
+
path_params = {}
|
14051
|
+
if 'instance_id' in local_var_params:
|
14052
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
14053
|
+
|
14054
|
+
query_params = []
|
14055
|
+
|
14056
|
+
header_params = {}
|
14057
|
+
if 'x_language' in local_var_params:
|
14058
|
+
header_params['X-Language'] = local_var_params['x_language']
|
14059
|
+
|
14060
|
+
form_params = {}
|
14061
|
+
|
14062
|
+
body = None
|
14063
|
+
if 'body' in local_var_params:
|
14064
|
+
body = local_var_params['body']
|
14065
|
+
if isinstance(request, SdkStreamRequest):
|
14066
|
+
body = request.get_file_stream()
|
14067
|
+
|
14068
|
+
response_headers = []
|
14069
|
+
|
14070
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
14071
|
+
['application/json;charset=UTF-8'])
|
14072
|
+
|
14073
|
+
auth_settings = []
|
14074
|
+
|
14075
|
+
http_info["cname"] = cname
|
14076
|
+
http_info["collection_formats"] = collection_formats
|
14077
|
+
http_info["path_params"] = path_params
|
14078
|
+
http_info["query_params"] = query_params
|
14079
|
+
http_info["header_params"] = header_params
|
14080
|
+
http_info["post_params"] = form_params
|
14081
|
+
http_info["body"] = body
|
14082
|
+
http_info["response_headers"] = response_headers
|
14083
|
+
|
14084
|
+
return http_info
|
14085
|
+
|
14086
|
+
def reboot_click_house_instance_async(self, request):
|
14087
|
+
r"""重启实例
|
13187
14088
|
|
13188
14089
|
重启实例。
|
13189
14090
|
|
@@ -13945,6 +14846,296 @@ class GaussDBAsyncClient(Client):
|
|
13945
14846
|
|
13946
14847
|
return http_info
|
13947
14848
|
|
14849
|
+
def show_htap_error_log_detail_async(self, request):
|
14850
|
+
r"""查询错误日志
|
14851
|
+
|
14852
|
+
获取内核错误日志信息
|
14853
|
+
|
14854
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
14855
|
+
|
14856
|
+
|
14857
|
+
:param request: Request instance for ShowHtapErrorLogDetail
|
14858
|
+
:type request: :class:`huaweicloudsdkgaussdb.v3.ShowHtapErrorLogDetailRequest`
|
14859
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.ShowHtapErrorLogDetailResponse`
|
14860
|
+
"""
|
14861
|
+
http_info = self._show_htap_error_log_detail_http_info(request)
|
14862
|
+
return self._call_api(**http_info)
|
14863
|
+
|
14864
|
+
def show_htap_error_log_detail_async_invoker(self, request):
|
14865
|
+
http_info = self._show_htap_error_log_detail_http_info(request)
|
14866
|
+
return AsyncInvoker(self, http_info)
|
14867
|
+
|
14868
|
+
def _show_htap_error_log_detail_http_info(self, request):
|
14869
|
+
http_info = {
|
14870
|
+
"method": "POST",
|
14871
|
+
"resource_path": "/v3/{project_id}/instances/{instance_id}/starrocks/error-logs",
|
14872
|
+
"request_type": request.__class__.__name__,
|
14873
|
+
"response_type": "ShowHtapErrorLogDetailResponse"
|
14874
|
+
}
|
14875
|
+
|
14876
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
14877
|
+
|
14878
|
+
cname = None
|
14879
|
+
|
14880
|
+
collection_formats = {}
|
14881
|
+
|
14882
|
+
path_params = {}
|
14883
|
+
if 'instance_id' in local_var_params:
|
14884
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
14885
|
+
|
14886
|
+
query_params = []
|
14887
|
+
|
14888
|
+
header_params = {}
|
14889
|
+
if 'x_language' in local_var_params:
|
14890
|
+
header_params['X-Language'] = local_var_params['x_language']
|
14891
|
+
|
14892
|
+
form_params = {}
|
14893
|
+
|
14894
|
+
body = None
|
14895
|
+
if 'body' in local_var_params:
|
14896
|
+
body = local_var_params['body']
|
14897
|
+
if isinstance(request, SdkStreamRequest):
|
14898
|
+
body = request.get_file_stream()
|
14899
|
+
|
14900
|
+
response_headers = []
|
14901
|
+
|
14902
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
14903
|
+
['application/json;charset=UTF-8'])
|
14904
|
+
|
14905
|
+
auth_settings = []
|
14906
|
+
|
14907
|
+
http_info["cname"] = cname
|
14908
|
+
http_info["collection_formats"] = collection_formats
|
14909
|
+
http_info["path_params"] = path_params
|
14910
|
+
http_info["query_params"] = query_params
|
14911
|
+
http_info["header_params"] = header_params
|
14912
|
+
http_info["post_params"] = form_params
|
14913
|
+
http_info["body"] = body
|
14914
|
+
http_info["response_headers"] = response_headers
|
14915
|
+
|
14916
|
+
return http_info
|
14917
|
+
|
14918
|
+
def show_htap_lts_config_async(self, request):
|
14919
|
+
r"""查询实例LTS日志配置列表
|
14920
|
+
|
14921
|
+
查询实例LTS日志配置列表
|
14922
|
+
|
14923
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
14924
|
+
|
14925
|
+
|
14926
|
+
:param request: Request instance for ShowHtapLtsConfig
|
14927
|
+
:type request: :class:`huaweicloudsdkgaussdb.v3.ShowHtapLtsConfigRequest`
|
14928
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.ShowHtapLtsConfigResponse`
|
14929
|
+
"""
|
14930
|
+
http_info = self._show_htap_lts_config_http_info(request)
|
14931
|
+
return self._call_api(**http_info)
|
14932
|
+
|
14933
|
+
def show_htap_lts_config_async_invoker(self, request):
|
14934
|
+
http_info = self._show_htap_lts_config_http_info(request)
|
14935
|
+
return AsyncInvoker(self, http_info)
|
14936
|
+
|
14937
|
+
def _show_htap_lts_config_http_info(self, request):
|
14938
|
+
http_info = {
|
14939
|
+
"method": "GET",
|
14940
|
+
"resource_path": "/v3/{project_id}/starrocks/instances/logs/lts-configs",
|
14941
|
+
"request_type": request.__class__.__name__,
|
14942
|
+
"response_type": "ShowHtapLtsConfigResponse"
|
14943
|
+
}
|
14944
|
+
|
14945
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
14946
|
+
|
14947
|
+
cname = None
|
14948
|
+
|
14949
|
+
collection_formats = {}
|
14950
|
+
|
14951
|
+
path_params = {}
|
14952
|
+
|
14953
|
+
query_params = []
|
14954
|
+
if 'instance_id' in local_var_params:
|
14955
|
+
query_params.append(('instance_id', local_var_params['instance_id']))
|
14956
|
+
if 'enterprise_project_id' in local_var_params:
|
14957
|
+
query_params.append(('enterprise_project_id', local_var_params['enterprise_project_id']))
|
14958
|
+
if 'instance_name' in local_var_params:
|
14959
|
+
query_params.append(('instance_name', local_var_params['instance_name']))
|
14960
|
+
if 'limit' in local_var_params:
|
14961
|
+
query_params.append(('limit', local_var_params['limit']))
|
14962
|
+
if 'offset' in local_var_params:
|
14963
|
+
query_params.append(('offset', local_var_params['offset']))
|
14964
|
+
|
14965
|
+
header_params = {}
|
14966
|
+
if 'x_language' in local_var_params:
|
14967
|
+
header_params['X-Language'] = local_var_params['x_language']
|
14968
|
+
|
14969
|
+
form_params = {}
|
14970
|
+
|
14971
|
+
body = None
|
14972
|
+
if isinstance(request, SdkStreamRequest):
|
14973
|
+
body = request.get_file_stream()
|
14974
|
+
|
14975
|
+
response_headers = []
|
14976
|
+
|
14977
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
14978
|
+
['application/json'])
|
14979
|
+
|
14980
|
+
auth_settings = []
|
14981
|
+
|
14982
|
+
http_info["cname"] = cname
|
14983
|
+
http_info["collection_formats"] = collection_formats
|
14984
|
+
http_info["path_params"] = path_params
|
14985
|
+
http_info["query_params"] = query_params
|
14986
|
+
http_info["header_params"] = header_params
|
14987
|
+
http_info["post_params"] = form_params
|
14988
|
+
http_info["body"] = body
|
14989
|
+
http_info["response_headers"] = response_headers
|
14990
|
+
|
14991
|
+
return http_info
|
14992
|
+
|
14993
|
+
def show_instance_databases_for_htap_async(self, request):
|
14994
|
+
r"""查询HTAP主实例数据库
|
14995
|
+
|
14996
|
+
查询HTAP主实例数据库。
|
14997
|
+
|
14998
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
14999
|
+
|
15000
|
+
|
15001
|
+
:param request: Request instance for ShowInstanceDatabasesForHtap
|
15002
|
+
:type request: :class:`huaweicloudsdkgaussdb.v3.ShowInstanceDatabasesForHtapRequest`
|
15003
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.ShowInstanceDatabasesForHtapResponse`
|
15004
|
+
"""
|
15005
|
+
http_info = self._show_instance_databases_for_htap_http_info(request)
|
15006
|
+
return self._call_api(**http_info)
|
15007
|
+
|
15008
|
+
def show_instance_databases_for_htap_async_invoker(self, request):
|
15009
|
+
http_info = self._show_instance_databases_for_htap_http_info(request)
|
15010
|
+
return AsyncInvoker(self, http_info)
|
15011
|
+
|
15012
|
+
def _show_instance_databases_for_htap_http_info(self, request):
|
15013
|
+
http_info = {
|
15014
|
+
"method": "POST",
|
15015
|
+
"resource_path": "/v3/{project_id}/instances/{instance_id}/htap/databases",
|
15016
|
+
"request_type": request.__class__.__name__,
|
15017
|
+
"response_type": "ShowInstanceDatabasesForHtapResponse"
|
15018
|
+
}
|
15019
|
+
|
15020
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
15021
|
+
|
15022
|
+
cname = None
|
15023
|
+
|
15024
|
+
collection_formats = {}
|
15025
|
+
|
15026
|
+
path_params = {}
|
15027
|
+
if 'instance_id' in local_var_params:
|
15028
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
15029
|
+
|
15030
|
+
query_params = []
|
15031
|
+
if 'limit' in local_var_params:
|
15032
|
+
query_params.append(('limit', local_var_params['limit']))
|
15033
|
+
if 'offset' in local_var_params:
|
15034
|
+
query_params.append(('offset', local_var_params['offset']))
|
15035
|
+
|
15036
|
+
header_params = {}
|
15037
|
+
if 'x_language' in local_var_params:
|
15038
|
+
header_params['X-Language'] = local_var_params['x_language']
|
15039
|
+
|
15040
|
+
form_params = {}
|
15041
|
+
|
15042
|
+
body = None
|
15043
|
+
if 'body' in local_var_params:
|
15044
|
+
body = local_var_params['body']
|
15045
|
+
if isinstance(request, SdkStreamRequest):
|
15046
|
+
body = request.get_file_stream()
|
15047
|
+
|
15048
|
+
response_headers = []
|
15049
|
+
|
15050
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
15051
|
+
['application/json;charset=UTF-8'])
|
15052
|
+
|
15053
|
+
auth_settings = []
|
15054
|
+
|
15055
|
+
http_info["cname"] = cname
|
15056
|
+
http_info["collection_formats"] = collection_formats
|
15057
|
+
http_info["path_params"] = path_params
|
15058
|
+
http_info["query_params"] = query_params
|
15059
|
+
http_info["header_params"] = header_params
|
15060
|
+
http_info["post_params"] = form_params
|
15061
|
+
http_info["body"] = body
|
15062
|
+
http_info["response_headers"] = response_headers
|
15063
|
+
|
15064
|
+
return http_info
|
15065
|
+
|
15066
|
+
def show_instance_tables_for_htap_async(self, request):
|
15067
|
+
r"""查询HTAP主实例数据库表列表
|
15068
|
+
|
15069
|
+
查询HTAP主实例数据表列表。
|
15070
|
+
|
15071
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
15072
|
+
|
15073
|
+
|
15074
|
+
:param request: Request instance for ShowInstanceTablesForHtap
|
15075
|
+
:type request: :class:`huaweicloudsdkgaussdb.v3.ShowInstanceTablesForHtapRequest`
|
15076
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.ShowInstanceTablesForHtapResponse`
|
15077
|
+
"""
|
15078
|
+
http_info = self._show_instance_tables_for_htap_http_info(request)
|
15079
|
+
return self._call_api(**http_info)
|
15080
|
+
|
15081
|
+
def show_instance_tables_for_htap_async_invoker(self, request):
|
15082
|
+
http_info = self._show_instance_tables_for_htap_http_info(request)
|
15083
|
+
return AsyncInvoker(self, http_info)
|
15084
|
+
|
15085
|
+
def _show_instance_tables_for_htap_http_info(self, request):
|
15086
|
+
http_info = {
|
15087
|
+
"method": "POST",
|
15088
|
+
"resource_path": "/v3/{project_id}/instances/{instance_id}/htap/tables",
|
15089
|
+
"request_type": request.__class__.__name__,
|
15090
|
+
"response_type": "ShowInstanceTablesForHtapResponse"
|
15091
|
+
}
|
15092
|
+
|
15093
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
15094
|
+
|
15095
|
+
cname = None
|
15096
|
+
|
15097
|
+
collection_formats = {}
|
15098
|
+
|
15099
|
+
path_params = {}
|
15100
|
+
if 'instance_id' in local_var_params:
|
15101
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
15102
|
+
|
15103
|
+
query_params = []
|
15104
|
+
if 'limit' in local_var_params:
|
15105
|
+
query_params.append(('limit', local_var_params['limit']))
|
15106
|
+
if 'offset' in local_var_params:
|
15107
|
+
query_params.append(('offset', local_var_params['offset']))
|
15108
|
+
|
15109
|
+
header_params = {}
|
15110
|
+
if 'x_language' in local_var_params:
|
15111
|
+
header_params['X-Language'] = local_var_params['x_language']
|
15112
|
+
|
15113
|
+
form_params = {}
|
15114
|
+
|
15115
|
+
body = None
|
15116
|
+
if 'body' in local_var_params:
|
15117
|
+
body = local_var_params['body']
|
15118
|
+
if isinstance(request, SdkStreamRequest):
|
15119
|
+
body = request.get_file_stream()
|
15120
|
+
|
15121
|
+
response_headers = []
|
15122
|
+
|
15123
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
15124
|
+
['application/json;charset=UTF-8'])
|
15125
|
+
|
15126
|
+
auth_settings = []
|
15127
|
+
|
15128
|
+
http_info["cname"] = cname
|
15129
|
+
http_info["collection_formats"] = collection_formats
|
15130
|
+
http_info["path_params"] = path_params
|
15131
|
+
http_info["query_params"] = query_params
|
15132
|
+
http_info["header_params"] = header_params
|
15133
|
+
http_info["post_params"] = form_params
|
15134
|
+
http_info["body"] = body
|
15135
|
+
http_info["response_headers"] = response_headers
|
15136
|
+
|
15137
|
+
return http_info
|
15138
|
+
|
13948
15139
|
def show_star_rocks_database_user_async(self, request):
|
13949
15140
|
r"""查询数据库账户
|
13950
15141
|
|