huaweicloudsdkgaussdbforopengauss 3.1.127__py2.py3-none-any.whl → 3.1.129__py2.py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (62) hide show
  1. huaweicloudsdkgaussdbforopengauss/v3/__init__.py +52 -0
  2. huaweicloudsdkgaussdbforopengauss/v3/gaussdbforopengauss_async_client.py +1315 -46
  3. huaweicloudsdkgaussdbforopengauss/v3/gaussdbforopengauss_client.py +1315 -46
  4. huaweicloudsdkgaussdbforopengauss/v3/model/__init__.py +52 -0
  5. huaweicloudsdkgaussdbforopengauss/v3/model/allow_db_role_privileges_request.py +168 -0
  6. huaweicloudsdkgaussdbforopengauss/v3/model/allow_db_role_privileges_request_body.py +138 -0
  7. huaweicloudsdkgaussdbforopengauss/v3/model/allow_db_role_privileges_response.py +85 -0
  8. huaweicloudsdkgaussdbforopengauss/v3/model/batch_show_upgrade_candidate_versions_request.py +140 -0
  9. huaweicloudsdkgaussdbforopengauss/v3/model/batch_show_upgrade_candidate_versions_response.py +232 -0
  10. huaweicloudsdkgaussdbforopengauss/v3/model/can_be_rollbacked_hotfix_detail.py +202 -0
  11. huaweicloudsdkgaussdbforopengauss/v3/model/can_be_upgraded_hotfix_detail.py +202 -0
  12. huaweicloudsdkgaussdbforopengauss/v3/model/configurations_result.py +339 -0
  13. huaweicloudsdkgaussdbforopengauss/v3/model/create_database_instance_request.py +140 -0
  14. huaweicloudsdkgaussdbforopengauss/v3/model/create_database_instance_request_body.py +722 -0
  15. huaweicloudsdkgaussdbforopengauss/v3/model/create_database_instance_response.py +170 -0
  16. huaweicloudsdkgaussdbforopengauss/v3/model/create_database_instance_result.py +544 -0
  17. huaweicloudsdkgaussdbforopengauss/v3/model/create_db_role_request.py +168 -0
  18. huaweicloudsdkgaussdbforopengauss/v3/model/create_db_role_request_body.py +142 -0
  19. huaweicloudsdkgaussdbforopengauss/v3/model/create_db_role_response.py +85 -0
  20. huaweicloudsdkgaussdbforopengauss/v3/model/create_instance_datastore_option.py +143 -0
  21. huaweicloudsdkgaussdbforopengauss/v3/model/datastore_result.py +142 -0
  22. huaweicloudsdkgaussdbforopengauss/v3/model/delete_database_schema_request.py +168 -0
  23. huaweicloudsdkgaussdbforopengauss/v3/model/delete_database_schema_request_body.py +142 -0
  24. huaweicloudsdkgaussdbforopengauss/v3/model/delete_database_schema_response.py +85 -0
  25. huaweicloudsdkgaussdbforopengauss/v3/model/gauss_d_bfor_open_gauss_role_attributes.py +199 -0
  26. huaweicloudsdkgaussdbforopengauss/v3/model/gauss_db_list_database_roles.py +197 -0
  27. huaweicloudsdkgaussdbforopengauss/v3/model/gauss_db_list_database_roles_priv.py +347 -0
  28. huaweicloudsdkgaussdbforopengauss/v3/model/hotfix_info_result.py +202 -0
  29. huaweicloudsdkgaussdbforopengauss/v3/model/list_backups_details_request.py +318 -0
  30. huaweicloudsdkgaussdbforopengauss/v3/model/list_backups_details_response.py +145 -0
  31. huaweicloudsdkgaussdbforopengauss/v3/model/list_backups_result.py +372 -0
  32. huaweicloudsdkgaussdbforopengauss/v3/model/list_database_instances_request.py +405 -0
  33. huaweicloudsdkgaussdbforopengauss/v3/model/list_database_instances_response.py +145 -0
  34. huaweicloudsdkgaussdbforopengauss/v3/model/list_database_roles_request.py +201 -0
  35. huaweicloudsdkgaussdbforopengauss/v3/model/list_database_roles_response.py +145 -0
  36. huaweicloudsdkgaussdbforopengauss/v3/model/list_datastores_details_request.py +115 -0
  37. huaweicloudsdkgaussdbforopengauss/v3/model/list_datastores_details_response.py +112 -0
  38. huaweicloudsdkgaussdbforopengauss/v3/model/list_flavors_details_request.py +260 -0
  39. huaweicloudsdkgaussdbforopengauss/v3/model/list_flavors_details_response.py +145 -0
  40. huaweicloudsdkgaussdbforopengauss/v3/model/list_parameter_group_templates_request.py +173 -0
  41. huaweicloudsdkgaussdbforopengauss/v3/model/list_parameter_group_templates_response.py +145 -0
  42. huaweicloudsdkgaussdbforopengauss/v3/model/list_recycle_instances_details_request.py +202 -0
  43. huaweicloudsdkgaussdbforopengauss/v3/model/list_recycle_instances_details_response.py +145 -0
  44. huaweicloudsdkgaussdbforopengauss/v3/model/list_restorable_instances_details_request.py +259 -0
  45. huaweicloudsdkgaussdbforopengauss/v3/model/list_restorable_instances_details_response.py +145 -0
  46. huaweicloudsdkgaussdbforopengauss/v3/model/recycle_instances_detail_result_v1.py +566 -0
  47. huaweicloudsdkgaussdbforopengauss/v3/model/show_instance_param_group_detail_request.py +143 -0
  48. huaweicloudsdkgaussdbforopengauss/v3/model/show_instance_param_group_detail_response.py +232 -0
  49. huaweicloudsdkgaussdbforopengauss/v3/model/show_parameter_group_detail_request.py +143 -0
  50. huaweicloudsdkgaussdbforopengauss/v3/model/show_parameter_group_detail_response.py +319 -0
  51. huaweicloudsdkgaussdbforopengauss/v3/model/show_source_instance_detail_request.py +202 -0
  52. huaweicloudsdkgaussdbforopengauss/v3/model/show_source_instance_detail_response.py +348 -0
  53. huaweicloudsdkgaussdbforopengauss/v3/model/show_upgrade_candidate_versions_details_request.py +143 -0
  54. huaweicloudsdkgaussdbforopengauss/v3/model/show_upgrade_candidate_versions_details_response.py +373 -0
  55. huaweicloudsdkgaussdbforopengauss/v3/model/show_upgrade_candidate_versions_response.py +18 -10
  56. huaweicloudsdkgaussdbforopengauss/v3/model/sync_limit_data_request.py +114 -0
  57. huaweicloudsdkgaussdbforopengauss/v3/model/sync_limit_data_response.py +203 -0
  58. {huaweicloudsdkgaussdbforopengauss-3.1.127.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.129.dist-info}/METADATA +2 -2
  59. {huaweicloudsdkgaussdbforopengauss-3.1.127.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.129.dist-info}/RECORD +62 -10
  60. {huaweicloudsdkgaussdbforopengauss-3.1.127.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.129.dist-info}/LICENSE +0 -0
  61. {huaweicloudsdkgaussdbforopengauss-3.1.127.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.129.dist-info}/WHEEL +0 -0
  62. {huaweicloudsdkgaussdbforopengauss-3.1.127.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.129.dist-info}/top_level.txt +0 -0
@@ -170,6 +170,75 @@ class GaussDBforopenGaussAsyncClient(Client):
170
170
 
171
171
  return http_info
172
172
 
173
+ def allow_db_role_privileges_async(self, request):
174
+ """授权数据库角色
175
+
176
+ 在数据库中设置角色的权限。
177
+
178
+ Please refer to HUAWEI cloud API Explorer for details.
179
+
180
+
181
+ :param request: Request instance for AllowDbRolePrivileges
182
+ :type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.AllowDbRolePrivilegesRequest`
183
+ :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.AllowDbRolePrivilegesResponse`
184
+ """
185
+ http_info = self._allow_db_role_privileges_http_info(request)
186
+ return self._call_api(**http_info)
187
+
188
+ def allow_db_role_privileges_async_invoker(self, request):
189
+ http_info = self._allow_db_role_privileges_http_info(request)
190
+ return AsyncInvoker(self, http_info)
191
+
192
+ def _allow_db_role_privileges_http_info(self, request):
193
+ http_info = {
194
+ "method": "POST",
195
+ "resource_path": "/v3.1/{project_id}/instances/{instance_id}/db-privilege",
196
+ "request_type": request.__class__.__name__,
197
+ "response_type": "AllowDbRolePrivilegesResponse"
198
+ }
199
+
200
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
201
+
202
+ cname = None
203
+
204
+ collection_formats = {}
205
+
206
+ path_params = {}
207
+ if 'instance_id' in local_var_params:
208
+ path_params['instance_id'] = local_var_params['instance_id']
209
+
210
+ query_params = []
211
+
212
+ header_params = {}
213
+ if 'x_language' in local_var_params:
214
+ header_params['X-Language'] = local_var_params['x_language']
215
+
216
+ form_params = {}
217
+
218
+ body = None
219
+ if 'body' in local_var_params:
220
+ body = local_var_params['body']
221
+ if isinstance(request, SdkStreamRequest):
222
+ body = request.get_file_stream()
223
+
224
+ response_headers = []
225
+
226
+ header_params['Content-Type'] = http_utils.select_header_content_type(
227
+ ['application/json;charset=UTF-8'])
228
+
229
+ auth_settings = []
230
+
231
+ http_info["cname"] = cname
232
+ http_info["collection_formats"] = collection_formats
233
+ http_info["path_params"] = path_params
234
+ http_info["query_params"] = query_params
235
+ http_info["header_params"] = header_params
236
+ http_info["post_params"] = form_params
237
+ http_info["body"] = body
238
+ http_info["response_headers"] = response_headers
239
+
240
+ return http_info
241
+
173
242
  def attach_eip_async(self, request):
174
243
  """绑定/解绑弹性公网IP
175
244
 
@@ -241,6 +310,73 @@ class GaussDBforopenGaussAsyncClient(Client):
241
310
 
242
311
  return http_info
243
312
 
313
+ def batch_show_upgrade_candidate_versions_async(self, request):
314
+ """查询批量实例可升级的版本和升级类型。
315
+
316
+ 查询批量实例可升级的版本和升级类型。
317
+
318
+ Please refer to HUAWEI cloud API Explorer for details.
319
+
320
+
321
+ :param request: Request instance for BatchShowUpgradeCandidateVersions
322
+ :type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.BatchShowUpgradeCandidateVersionsRequest`
323
+ :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.BatchShowUpgradeCandidateVersionsResponse`
324
+ """
325
+ http_info = self._batch_show_upgrade_candidate_versions_http_info(request)
326
+ return self._call_api(**http_info)
327
+
328
+ def batch_show_upgrade_candidate_versions_async_invoker(self, request):
329
+ http_info = self._batch_show_upgrade_candidate_versions_http_info(request)
330
+ return AsyncInvoker(self, http_info)
331
+
332
+ def _batch_show_upgrade_candidate_versions_http_info(self, request):
333
+ http_info = {
334
+ "method": "POST",
335
+ "resource_path": "/v3.1/{project_id}/instances/db-upgrade/candidate-versions",
336
+ "request_type": request.__class__.__name__,
337
+ "response_type": "BatchShowUpgradeCandidateVersionsResponse"
338
+ }
339
+
340
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
341
+
342
+ cname = None
343
+
344
+ collection_formats = {}
345
+
346
+ path_params = {}
347
+
348
+ query_params = []
349
+
350
+ header_params = {}
351
+ if 'x_language' in local_var_params:
352
+ header_params['X-Language'] = local_var_params['x_language']
353
+
354
+ form_params = {}
355
+
356
+ body = None
357
+ if 'body' in local_var_params:
358
+ body = local_var_params['body']
359
+ if isinstance(request, SdkStreamRequest):
360
+ body = request.get_file_stream()
361
+
362
+ response_headers = []
363
+
364
+ header_params['Content-Type'] = http_utils.select_header_content_type(
365
+ ['application/json;charset=UTF-8'])
366
+
367
+ auth_settings = []
368
+
369
+ http_info["cname"] = cname
370
+ http_info["collection_formats"] = collection_formats
371
+ http_info["path_params"] = path_params
372
+ http_info["query_params"] = query_params
373
+ http_info["header_params"] = header_params
374
+ http_info["post_params"] = form_params
375
+ http_info["body"] = body
376
+ http_info["response_headers"] = response_headers
377
+
378
+ return http_info
379
+
244
380
  def confirm_restored_data_async(self, request):
245
381
  """备份恢复到目标实例数据后执行数据确认
246
382
 
@@ -513,6 +649,73 @@ class GaussDBforopenGaussAsyncClient(Client):
513
649
 
514
650
  return http_info
515
651
 
652
+ def create_database_instance_async(self, request):
653
+ """创建数据库实例
654
+
655
+ 创建数据库实例
656
+
657
+ Please refer to HUAWEI cloud API Explorer for details.
658
+
659
+
660
+ :param request: Request instance for CreateDatabaseInstance
661
+ :type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.CreateDatabaseInstanceRequest`
662
+ :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.CreateDatabaseInstanceResponse`
663
+ """
664
+ http_info = self._create_database_instance_http_info(request)
665
+ return self._call_api(**http_info)
666
+
667
+ def create_database_instance_async_invoker(self, request):
668
+ http_info = self._create_database_instance_http_info(request)
669
+ return AsyncInvoker(self, http_info)
670
+
671
+ def _create_database_instance_http_info(self, request):
672
+ http_info = {
673
+ "method": "POST",
674
+ "resource_path": "/v3.2/{project_id}/instances",
675
+ "request_type": request.__class__.__name__,
676
+ "response_type": "CreateDatabaseInstanceResponse"
677
+ }
678
+
679
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
680
+
681
+ cname = None
682
+
683
+ collection_formats = {}
684
+
685
+ path_params = {}
686
+
687
+ query_params = []
688
+
689
+ header_params = {}
690
+ if 'x_language' in local_var_params:
691
+ header_params['X-Language'] = local_var_params['x_language']
692
+
693
+ form_params = {}
694
+
695
+ body = None
696
+ if 'body' in local_var_params:
697
+ body = local_var_params['body']
698
+ if isinstance(request, SdkStreamRequest):
699
+ body = request.get_file_stream()
700
+
701
+ response_headers = []
702
+
703
+ header_params['Content-Type'] = http_utils.select_header_content_type(
704
+ ['application/json;charset=UTF-8'])
705
+
706
+ auth_settings = []
707
+
708
+ http_info["cname"] = cname
709
+ http_info["collection_formats"] = collection_formats
710
+ http_info["path_params"] = path_params
711
+ http_info["query_params"] = query_params
712
+ http_info["header_params"] = header_params
713
+ http_info["post_params"] = form_params
714
+ http_info["body"] = body
715
+ http_info["response_headers"] = response_headers
716
+
717
+ return http_info
718
+
516
719
  def create_database_schemas_async(self, request):
517
720
  """创建数据库SCHEMA
518
721
 
@@ -649,6 +852,75 @@ class GaussDBforopenGaussAsyncClient(Client):
649
852
 
650
853
  return http_info
651
854
 
855
+ def create_db_role_async(self, request):
856
+ """创建数据库角色
857
+
858
+ 创建数据库角色。
859
+
860
+ Please refer to HUAWEI cloud API Explorer for details.
861
+
862
+
863
+ :param request: Request instance for CreateDbRole
864
+ :type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.CreateDbRoleRequest`
865
+ :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.CreateDbRoleResponse`
866
+ """
867
+ http_info = self._create_db_role_http_info(request)
868
+ return self._call_api(**http_info)
869
+
870
+ def create_db_role_async_invoker(self, request):
871
+ http_info = self._create_db_role_http_info(request)
872
+ return AsyncInvoker(self, http_info)
873
+
874
+ def _create_db_role_http_info(self, request):
875
+ http_info = {
876
+ "method": "POST",
877
+ "resource_path": "/v3.1/{project_id}/instances/{instance_id}/db-role",
878
+ "request_type": request.__class__.__name__,
879
+ "response_type": "CreateDbRoleResponse"
880
+ }
881
+
882
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
883
+
884
+ cname = None
885
+
886
+ collection_formats = {}
887
+
888
+ path_params = {}
889
+ if 'instance_id' in local_var_params:
890
+ path_params['instance_id'] = local_var_params['instance_id']
891
+
892
+ query_params = []
893
+
894
+ header_params = {}
895
+ if 'x_language' in local_var_params:
896
+ header_params['X-Language'] = local_var_params['x_language']
897
+
898
+ form_params = {}
899
+
900
+ body = None
901
+ if 'body' in local_var_params:
902
+ body = local_var_params['body']
903
+ if isinstance(request, SdkStreamRequest):
904
+ body = request.get_file_stream()
905
+
906
+ response_headers = []
907
+
908
+ header_params['Content-Type'] = http_utils.select_header_content_type(
909
+ ['application/json;charset=UTF-8'])
910
+
911
+ auth_settings = []
912
+
913
+ http_info["cname"] = cname
914
+ http_info["collection_formats"] = collection_formats
915
+ http_info["path_params"] = path_params
916
+ http_info["query_params"] = query_params
917
+ http_info["header_params"] = header_params
918
+ http_info["post_params"] = form_params
919
+ http_info["body"] = body
920
+ http_info["response_headers"] = response_headers
921
+
922
+ return http_info
923
+
652
924
  def create_db_user_async(self, request):
653
925
  """创建数据库用户
654
926
 
@@ -1191,31 +1463,31 @@ class GaussDBforopenGaussAsyncClient(Client):
1191
1463
 
1192
1464
  return http_info
1193
1465
 
1194
- def delete_instance_async(self, request):
1195
- """删除实例
1466
+ def delete_database_schema_async(self, request):
1467
+ """删除数据库SCHEMA
1196
1468
 
1197
- 删除数据库实例。
1469
+ 删除数据库schema。
1198
1470
 
1199
1471
  Please refer to HUAWEI cloud API Explorer for details.
1200
1472
 
1201
1473
 
1202
- :param request: Request instance for DeleteInstance
1203
- :type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.DeleteInstanceRequest`
1204
- :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.DeleteInstanceResponse`
1474
+ :param request: Request instance for DeleteDatabaseSchema
1475
+ :type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.DeleteDatabaseSchemaRequest`
1476
+ :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.DeleteDatabaseSchemaResponse`
1205
1477
  """
1206
- http_info = self._delete_instance_http_info(request)
1478
+ http_info = self._delete_database_schema_http_info(request)
1207
1479
  return self._call_api(**http_info)
1208
1480
 
1209
- def delete_instance_async_invoker(self, request):
1210
- http_info = self._delete_instance_http_info(request)
1481
+ def delete_database_schema_async_invoker(self, request):
1482
+ http_info = self._delete_database_schema_http_info(request)
1211
1483
  return AsyncInvoker(self, http_info)
1212
1484
 
1213
- def _delete_instance_http_info(self, request):
1485
+ def _delete_database_schema_http_info(self, request):
1214
1486
  http_info = {
1215
1487
  "method": "DELETE",
1216
- "resource_path": "/v3/{project_id}/instances/{instance_id}",
1488
+ "resource_path": "/v3/{project_id}/instances/{instance_id}/schema",
1217
1489
  "request_type": request.__class__.__name__,
1218
- "response_type": "DeleteInstanceResponse"
1490
+ "response_type": "DeleteDatabaseSchemaResponse"
1219
1491
  }
1220
1492
 
1221
1493
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -1237,13 +1509,15 @@ class GaussDBforopenGaussAsyncClient(Client):
1237
1509
  form_params = {}
1238
1510
 
1239
1511
  body = None
1512
+ if 'body' in local_var_params:
1513
+ body = local_var_params['body']
1240
1514
  if isinstance(request, SdkStreamRequest):
1241
1515
  body = request.get_file_stream()
1242
1516
 
1243
1517
  response_headers = []
1244
1518
 
1245
1519
  header_params['Content-Type'] = http_utils.select_header_content_type(
1246
- ['application/json'])
1520
+ ['application/json;charset=UTF-8'])
1247
1521
 
1248
1522
  auth_settings = []
1249
1523
 
@@ -1258,18 +1532,85 @@ class GaussDBforopenGaussAsyncClient(Client):
1258
1532
 
1259
1533
  return http_info
1260
1534
 
1261
- def delete_instance_tag_async(self, request):
1262
- """删除实例标签
1535
+ def delete_instance_async(self, request):
1536
+ """删除实例
1263
1537
 
1264
- 删除实例标签
1538
+ 删除数据库实例。
1265
1539
 
1266
1540
  Please refer to HUAWEI cloud API Explorer for details.
1267
1541
 
1268
1542
 
1269
- :param request: Request instance for DeleteInstanceTag
1270
- :type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.DeleteInstanceTagRequest`
1271
- :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.DeleteInstanceTagResponse`
1272
- """
1543
+ :param request: Request instance for DeleteInstance
1544
+ :type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.DeleteInstanceRequest`
1545
+ :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.DeleteInstanceResponse`
1546
+ """
1547
+ http_info = self._delete_instance_http_info(request)
1548
+ return self._call_api(**http_info)
1549
+
1550
+ def delete_instance_async_invoker(self, request):
1551
+ http_info = self._delete_instance_http_info(request)
1552
+ return AsyncInvoker(self, http_info)
1553
+
1554
+ def _delete_instance_http_info(self, request):
1555
+ http_info = {
1556
+ "method": "DELETE",
1557
+ "resource_path": "/v3/{project_id}/instances/{instance_id}",
1558
+ "request_type": request.__class__.__name__,
1559
+ "response_type": "DeleteInstanceResponse"
1560
+ }
1561
+
1562
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1563
+
1564
+ cname = None
1565
+
1566
+ collection_formats = {}
1567
+
1568
+ path_params = {}
1569
+ if 'instance_id' in local_var_params:
1570
+ path_params['instance_id'] = local_var_params['instance_id']
1571
+
1572
+ query_params = []
1573
+
1574
+ header_params = {}
1575
+ if 'x_language' in local_var_params:
1576
+ header_params['X-Language'] = local_var_params['x_language']
1577
+
1578
+ form_params = {}
1579
+
1580
+ body = None
1581
+ if isinstance(request, SdkStreamRequest):
1582
+ body = request.get_file_stream()
1583
+
1584
+ response_headers = []
1585
+
1586
+ header_params['Content-Type'] = http_utils.select_header_content_type(
1587
+ ['application/json'])
1588
+
1589
+ auth_settings = []
1590
+
1591
+ http_info["cname"] = cname
1592
+ http_info["collection_formats"] = collection_formats
1593
+ http_info["path_params"] = path_params
1594
+ http_info["query_params"] = query_params
1595
+ http_info["header_params"] = header_params
1596
+ http_info["post_params"] = form_params
1597
+ http_info["body"] = body
1598
+ http_info["response_headers"] = response_headers
1599
+
1600
+ return http_info
1601
+
1602
+ def delete_instance_tag_async(self, request):
1603
+ """删除实例标签
1604
+
1605
+ 删除实例标签
1606
+
1607
+ Please refer to HUAWEI cloud API Explorer for details.
1608
+
1609
+
1610
+ :param request: Request instance for DeleteInstanceTag
1611
+ :type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.DeleteInstanceTagRequest`
1612
+ :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.DeleteInstanceTagResponse`
1613
+ """
1273
1614
  http_info = self._delete_instance_tag_http_info(request)
1274
1615
  return self._call_api(**http_info)
1275
1616
 
@@ -1889,6 +2230,85 @@ class GaussDBforopenGaussAsyncClient(Client):
1889
2230
 
1890
2231
  return http_info
1891
2232
 
2233
+ def list_backups_details_async(self, request):
2234
+ """查询备份列表
2235
+
2236
+ 获取备份列表。
2237
+
2238
+ Please refer to HUAWEI cloud API Explorer for details.
2239
+
2240
+
2241
+ :param request: Request instance for ListBackupsDetails
2242
+ :type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.ListBackupsDetailsRequest`
2243
+ :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.ListBackupsDetailsResponse`
2244
+ """
2245
+ http_info = self._list_backups_details_http_info(request)
2246
+ return self._call_api(**http_info)
2247
+
2248
+ def list_backups_details_async_invoker(self, request):
2249
+ http_info = self._list_backups_details_http_info(request)
2250
+ return AsyncInvoker(self, http_info)
2251
+
2252
+ def _list_backups_details_http_info(self, request):
2253
+ http_info = {
2254
+ "method": "GET",
2255
+ "resource_path": "/v3.2/{project_id}/backups",
2256
+ "request_type": request.__class__.__name__,
2257
+ "response_type": "ListBackupsDetailsResponse"
2258
+ }
2259
+
2260
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2261
+
2262
+ cname = None
2263
+
2264
+ collection_formats = {}
2265
+
2266
+ path_params = {}
2267
+
2268
+ query_params = []
2269
+ if 'instance_id' in local_var_params:
2270
+ query_params.append(('instance_id', local_var_params['instance_id']))
2271
+ if 'backup_id' in local_var_params:
2272
+ query_params.append(('backup_id', local_var_params['backup_id']))
2273
+ if 'backup_type' in local_var_params:
2274
+ query_params.append(('backup_type', local_var_params['backup_type']))
2275
+ if 'offset' in local_var_params:
2276
+ query_params.append(('offset', local_var_params['offset']))
2277
+ if 'limit' in local_var_params:
2278
+ query_params.append(('limit', local_var_params['limit']))
2279
+ if 'begin_time' in local_var_params:
2280
+ query_params.append(('begin_time', local_var_params['begin_time']))
2281
+ if 'end_time' in local_var_params:
2282
+ query_params.append(('end_time', local_var_params['end_time']))
2283
+
2284
+ header_params = {}
2285
+ if 'x_language' in local_var_params:
2286
+ header_params['X-Language'] = local_var_params['x_language']
2287
+
2288
+ form_params = {}
2289
+
2290
+ body = None
2291
+ if isinstance(request, SdkStreamRequest):
2292
+ body = request.get_file_stream()
2293
+
2294
+ response_headers = []
2295
+
2296
+ header_params['Content-Type'] = http_utils.select_header_content_type(
2297
+ ['application/json'])
2298
+
2299
+ auth_settings = []
2300
+
2301
+ http_info["cname"] = cname
2302
+ http_info["collection_formats"] = collection_formats
2303
+ http_info["path_params"] = path_params
2304
+ http_info["query_params"] = query_params
2305
+ http_info["header_params"] = header_params
2306
+ http_info["post_params"] = form_params
2307
+ http_info["body"] = body
2308
+ http_info["response_headers"] = response_headers
2309
+
2310
+ return http_info
2311
+
1892
2312
  def list_binded_eips_async(self, request):
1893
2313
  """查询实例已绑定EIP列表
1894
2314
 
@@ -2238,6 +2658,163 @@ class GaussDBforopenGaussAsyncClient(Client):
2238
2658
 
2239
2659
  return http_info
2240
2660
 
2661
+ def list_database_instances_async(self, request):
2662
+ """查询数据库实例列表/查询实例详情
2663
+
2664
+ 查询数据库实例列表/查询实例详情
2665
+
2666
+ Please refer to HUAWEI cloud API Explorer for details.
2667
+
2668
+
2669
+ :param request: Request instance for ListDatabaseInstances
2670
+ :type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.ListDatabaseInstancesRequest`
2671
+ :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.ListDatabaseInstancesResponse`
2672
+ """
2673
+ http_info = self._list_database_instances_http_info(request)
2674
+ return self._call_api(**http_info)
2675
+
2676
+ def list_database_instances_async_invoker(self, request):
2677
+ http_info = self._list_database_instances_http_info(request)
2678
+ return AsyncInvoker(self, http_info)
2679
+
2680
+ def _list_database_instances_http_info(self, request):
2681
+ http_info = {
2682
+ "method": "GET",
2683
+ "resource_path": "/v3.3/{project_id}/instances",
2684
+ "request_type": request.__class__.__name__,
2685
+ "response_type": "ListDatabaseInstancesResponse"
2686
+ }
2687
+
2688
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2689
+
2690
+ cname = None
2691
+
2692
+ collection_formats = {}
2693
+
2694
+ path_params = {}
2695
+
2696
+ query_params = []
2697
+ if 'id' in local_var_params:
2698
+ query_params.append(('id', local_var_params['id']))
2699
+ if 'name' in local_var_params:
2700
+ query_params.append(('name', local_var_params['name']))
2701
+ if 'type' in local_var_params:
2702
+ query_params.append(('type', local_var_params['type']))
2703
+ if 'datastore_type' in local_var_params:
2704
+ query_params.append(('datastore_type', local_var_params['datastore_type']))
2705
+ if 'vpc_id' in local_var_params:
2706
+ query_params.append(('vpc_id', local_var_params['vpc_id']))
2707
+ if 'subnet_id' in local_var_params:
2708
+ query_params.append(('subnet_id', local_var_params['subnet_id']))
2709
+ if 'offset' in local_var_params:
2710
+ query_params.append(('offset', local_var_params['offset']))
2711
+ if 'limit' in local_var_params:
2712
+ query_params.append(('limit', local_var_params['limit']))
2713
+ if 'tags' in local_var_params:
2714
+ query_params.append(('tags', local_var_params['tags']))
2715
+ collection_formats['tags'] = 'csv'
2716
+ if 'charge_mode' in local_var_params:
2717
+ query_params.append(('charge_mode', local_var_params['charge_mode']))
2718
+
2719
+ header_params = {}
2720
+ if 'x_language' in local_var_params:
2721
+ header_params['X-Language'] = local_var_params['x_language']
2722
+
2723
+ form_params = {}
2724
+
2725
+ body = None
2726
+ if isinstance(request, SdkStreamRequest):
2727
+ body = request.get_file_stream()
2728
+
2729
+ response_headers = []
2730
+
2731
+ header_params['Content-Type'] = http_utils.select_header_content_type(
2732
+ ['application/json'])
2733
+
2734
+ auth_settings = []
2735
+
2736
+ http_info["cname"] = cname
2737
+ http_info["collection_formats"] = collection_formats
2738
+ http_info["path_params"] = path_params
2739
+ http_info["query_params"] = query_params
2740
+ http_info["header_params"] = header_params
2741
+ http_info["post_params"] = form_params
2742
+ http_info["body"] = body
2743
+ http_info["response_headers"] = response_headers
2744
+
2745
+ return http_info
2746
+
2747
+ def list_database_roles_async(self, request):
2748
+ """查询数据库角色列表
2749
+
2750
+ 查询数据库角色列表。
2751
+
2752
+ Please refer to HUAWEI cloud API Explorer for details.
2753
+
2754
+
2755
+ :param request: Request instance for ListDatabaseRoles
2756
+ :type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.ListDatabaseRolesRequest`
2757
+ :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.ListDatabaseRolesResponse`
2758
+ """
2759
+ http_info = self._list_database_roles_http_info(request)
2760
+ return self._call_api(**http_info)
2761
+
2762
+ def list_database_roles_async_invoker(self, request):
2763
+ http_info = self._list_database_roles_http_info(request)
2764
+ return AsyncInvoker(self, http_info)
2765
+
2766
+ def _list_database_roles_http_info(self, request):
2767
+ http_info = {
2768
+ "method": "GET",
2769
+ "resource_path": "/v3.1/{project_id}/instances/{instance_id}/db-role",
2770
+ "request_type": request.__class__.__name__,
2771
+ "response_type": "ListDatabaseRolesResponse"
2772
+ }
2773
+
2774
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2775
+
2776
+ cname = None
2777
+
2778
+ collection_formats = {}
2779
+
2780
+ path_params = {}
2781
+ if 'instance_id' in local_var_params:
2782
+ path_params['instance_id'] = local_var_params['instance_id']
2783
+
2784
+ query_params = []
2785
+ if 'offset' in local_var_params:
2786
+ query_params.append(('offset', local_var_params['offset']))
2787
+ if 'limit' in local_var_params:
2788
+ query_params.append(('limit', local_var_params['limit']))
2789
+
2790
+ header_params = {}
2791
+ if 'x_language' in local_var_params:
2792
+ header_params['X-Language'] = local_var_params['x_language']
2793
+
2794
+ form_params = {}
2795
+
2796
+ body = None
2797
+ if isinstance(request, SdkStreamRequest):
2798
+ body = request.get_file_stream()
2799
+
2800
+ response_headers = []
2801
+
2802
+ header_params['Content-Type'] = http_utils.select_header_content_type(
2803
+ ['application/json'])
2804
+
2805
+ auth_settings = []
2806
+
2807
+ http_info["cname"] = cname
2808
+ http_info["collection_formats"] = collection_formats
2809
+ http_info["path_params"] = path_params
2810
+ http_info["query_params"] = query_params
2811
+ http_info["header_params"] = header_params
2812
+ http_info["post_params"] = form_params
2813
+ http_info["body"] = body
2814
+ http_info["response_headers"] = response_headers
2815
+
2816
+ return http_info
2817
+
2241
2818
  def list_database_schemas_async(self, request):
2242
2819
  """查询数据库SCHEMA列表
2243
2820
 
@@ -2447,6 +3024,71 @@ class GaussDBforopenGaussAsyncClient(Client):
2447
3024
 
2448
3025
  return http_info
2449
3026
 
3027
+ def list_datastores_details_async(self, request):
3028
+ """查询引擎列表
3029
+
3030
+ 查询引擎列表。
3031
+
3032
+ Please refer to HUAWEI cloud API Explorer for details.
3033
+
3034
+
3035
+ :param request: Request instance for ListDatastoresDetails
3036
+ :type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.ListDatastoresDetailsRequest`
3037
+ :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.ListDatastoresDetailsResponse`
3038
+ """
3039
+ http_info = self._list_datastores_details_http_info(request)
3040
+ return self._call_api(**http_info)
3041
+
3042
+ def list_datastores_details_async_invoker(self, request):
3043
+ http_info = self._list_datastores_details_http_info(request)
3044
+ return AsyncInvoker(self, http_info)
3045
+
3046
+ def _list_datastores_details_http_info(self, request):
3047
+ http_info = {
3048
+ "method": "GET",
3049
+ "resource_path": "/v3.1/{project_id}/datastores",
3050
+ "request_type": request.__class__.__name__,
3051
+ "response_type": "ListDatastoresDetailsResponse"
3052
+ }
3053
+
3054
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
3055
+
3056
+ cname = None
3057
+
3058
+ collection_formats = {}
3059
+
3060
+ path_params = {}
3061
+
3062
+ query_params = []
3063
+
3064
+ header_params = {}
3065
+ if 'x_language' in local_var_params:
3066
+ header_params['X-Language'] = local_var_params['x_language']
3067
+
3068
+ form_params = {}
3069
+
3070
+ body = None
3071
+ if isinstance(request, SdkStreamRequest):
3072
+ body = request.get_file_stream()
3073
+
3074
+ response_headers = []
3075
+
3076
+ header_params['Content-Type'] = http_utils.select_header_content_type(
3077
+ ['application/json'])
3078
+
3079
+ auth_settings = []
3080
+
3081
+ http_info["cname"] = cname
3082
+ http_info["collection_formats"] = collection_formats
3083
+ http_info["path_params"] = path_params
3084
+ http_info["query_params"] = query_params
3085
+ http_info["header_params"] = header_params
3086
+ http_info["post_params"] = form_params
3087
+ http_info["body"] = body
3088
+ http_info["response_headers"] = response_headers
3089
+
3090
+ return http_info
3091
+
2450
3092
  def list_db_backups_async(self, request):
2451
3093
  """查询备份列表
2452
3094
 
@@ -2829,12 +3471,87 @@ class GaussDBforopenGaussAsyncClient(Client):
2829
3471
  http_info = self._list_flavors_http_info(request)
2830
3472
  return AsyncInvoker(self, http_info)
2831
3473
 
2832
- def _list_flavors_http_info(self, request):
3474
+ def _list_flavors_http_info(self, request):
3475
+ http_info = {
3476
+ "method": "GET",
3477
+ "resource_path": "/v3/{project_id}/flavors",
3478
+ "request_type": request.__class__.__name__,
3479
+ "response_type": "ListFlavorsResponse"
3480
+ }
3481
+
3482
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
3483
+
3484
+ cname = None
3485
+
3486
+ collection_formats = {}
3487
+
3488
+ path_params = {}
3489
+
3490
+ query_params = []
3491
+ if 'version' in local_var_params:
3492
+ query_params.append(('version', local_var_params['version']))
3493
+ if 'spec_code' in local_var_params:
3494
+ query_params.append(('spec_code', local_var_params['spec_code']))
3495
+ if 'ha_mode' in local_var_params:
3496
+ query_params.append(('ha_mode', local_var_params['ha_mode']))
3497
+ if 'limit' in local_var_params:
3498
+ query_params.append(('limit', local_var_params['limit']))
3499
+ if 'offset' in local_var_params:
3500
+ query_params.append(('offset', local_var_params['offset']))
3501
+
3502
+ header_params = {}
3503
+ if 'x_language' in local_var_params:
3504
+ header_params['X-Language'] = local_var_params['x_language']
3505
+
3506
+ form_params = {}
3507
+
3508
+ body = None
3509
+ if isinstance(request, SdkStreamRequest):
3510
+ body = request.get_file_stream()
3511
+
3512
+ response_headers = []
3513
+
3514
+ header_params['Content-Type'] = http_utils.select_header_content_type(
3515
+ ['application/json'])
3516
+
3517
+ auth_settings = []
3518
+
3519
+ http_info["cname"] = cname
3520
+ http_info["collection_formats"] = collection_formats
3521
+ http_info["path_params"] = path_params
3522
+ http_info["query_params"] = query_params
3523
+ http_info["header_params"] = header_params
3524
+ http_info["post_params"] = form_params
3525
+ http_info["body"] = body
3526
+ http_info["response_headers"] = response_headers
3527
+
3528
+ return http_info
3529
+
3530
+ def list_flavors_details_async(self, request):
3531
+ """查询数据库规格
3532
+
3533
+ 查询数据库的规格信息。
3534
+
3535
+ Please refer to HUAWEI cloud API Explorer for details.
3536
+
3537
+
3538
+ :param request: Request instance for ListFlavorsDetails
3539
+ :type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.ListFlavorsDetailsRequest`
3540
+ :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.ListFlavorsDetailsResponse`
3541
+ """
3542
+ http_info = self._list_flavors_details_http_info(request)
3543
+ return self._call_api(**http_info)
3544
+
3545
+ def list_flavors_details_async_invoker(self, request):
3546
+ http_info = self._list_flavors_details_http_info(request)
3547
+ return AsyncInvoker(self, http_info)
3548
+
3549
+ def _list_flavors_details_http_info(self, request):
2833
3550
  http_info = {
2834
3551
  "method": "GET",
2835
- "resource_path": "/v3/{project_id}/flavors",
3552
+ "resource_path": "/v3.2/{project_id}/flavors",
2836
3553
  "request_type": request.__class__.__name__,
2837
- "response_type": "ListFlavorsResponse"
3554
+ "response_type": "ListFlavorsDetailsResponse"
2838
3555
  }
2839
3556
 
2840
3557
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -3557,6 +4274,75 @@ class GaussDBforopenGaussAsyncClient(Client):
3557
4274
 
3558
4275
  return http_info
3559
4276
 
4277
+ def list_parameter_group_templates_async(self, request):
4278
+ """获取参数模板列表
4279
+
4280
+ 获取参数模板列表,包括所有数据库的默认参数模板和用户创建的参数模板。
4281
+
4282
+ Please refer to HUAWEI cloud API Explorer for details.
4283
+
4284
+
4285
+ :param request: Request instance for ListParameterGroupTemplates
4286
+ :type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.ListParameterGroupTemplatesRequest`
4287
+ :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.ListParameterGroupTemplatesResponse`
4288
+ """
4289
+ http_info = self._list_parameter_group_templates_http_info(request)
4290
+ return self._call_api(**http_info)
4291
+
4292
+ def list_parameter_group_templates_async_invoker(self, request):
4293
+ http_info = self._list_parameter_group_templates_http_info(request)
4294
+ return AsyncInvoker(self, http_info)
4295
+
4296
+ def _list_parameter_group_templates_http_info(self, request):
4297
+ http_info = {
4298
+ "method": "GET",
4299
+ "resource_path": "/v3.2/{project_id}/configurations",
4300
+ "request_type": request.__class__.__name__,
4301
+ "response_type": "ListParameterGroupTemplatesResponse"
4302
+ }
4303
+
4304
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
4305
+
4306
+ cname = None
4307
+
4308
+ collection_formats = {}
4309
+
4310
+ path_params = {}
4311
+
4312
+ query_params = []
4313
+ if 'offset' in local_var_params:
4314
+ query_params.append(('offset', local_var_params['offset']))
4315
+ if 'limit' in local_var_params:
4316
+ query_params.append(('limit', local_var_params['limit']))
4317
+
4318
+ header_params = {}
4319
+ if 'x_language' in local_var_params:
4320
+ header_params['X-Language'] = local_var_params['x_language']
4321
+
4322
+ form_params = {}
4323
+
4324
+ body = None
4325
+ if isinstance(request, SdkStreamRequest):
4326
+ body = request.get_file_stream()
4327
+
4328
+ response_headers = []
4329
+
4330
+ header_params['Content-Type'] = http_utils.select_header_content_type(
4331
+ ['application/json'])
4332
+
4333
+ auth_settings = []
4334
+
4335
+ http_info["cname"] = cname
4336
+ http_info["collection_formats"] = collection_formats
4337
+ http_info["path_params"] = path_params
4338
+ http_info["query_params"] = query_params
4339
+ http_info["header_params"] = header_params
4340
+ http_info["post_params"] = form_params
4341
+ http_info["body"] = body
4342
+ http_info["response_headers"] = response_headers
4343
+
4344
+ return http_info
4345
+
3560
4346
  def list_plugin_extensions_async(self, request):
3561
4347
  """查询实例插件拓展信息
3562
4348
 
@@ -3827,6 +4613,77 @@ class GaussDBforopenGaussAsyncClient(Client):
3827
4613
 
3828
4614
  return http_info
3829
4615
 
4616
+ def list_recycle_instances_details_async(self, request):
4617
+ """查询回收站所有引擎实例列表。
4618
+
4619
+ 查询回收站所有引擎实例列表。
4620
+
4621
+ Please refer to HUAWEI cloud API Explorer for details.
4622
+
4623
+
4624
+ :param request: Request instance for ListRecycleInstancesDetails
4625
+ :type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.ListRecycleInstancesDetailsRequest`
4626
+ :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.ListRecycleInstancesDetailsResponse`
4627
+ """
4628
+ http_info = self._list_recycle_instances_details_http_info(request)
4629
+ return self._call_api(**http_info)
4630
+
4631
+ def list_recycle_instances_details_async_invoker(self, request):
4632
+ http_info = self._list_recycle_instances_details_http_info(request)
4633
+ return AsyncInvoker(self, http_info)
4634
+
4635
+ def _list_recycle_instances_details_http_info(self, request):
4636
+ http_info = {
4637
+ "method": "GET",
4638
+ "resource_path": "/v3.1/{project_id}/recycle-instances",
4639
+ "request_type": request.__class__.__name__,
4640
+ "response_type": "ListRecycleInstancesDetailsResponse"
4641
+ }
4642
+
4643
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
4644
+
4645
+ cname = None
4646
+
4647
+ collection_formats = {}
4648
+
4649
+ path_params = {}
4650
+
4651
+ query_params = []
4652
+ if 'instance_name' in local_var_params:
4653
+ query_params.append(('instance_name', local_var_params['instance_name']))
4654
+ if 'offset' in local_var_params:
4655
+ query_params.append(('offset', local_var_params['offset']))
4656
+ if 'limit' in local_var_params:
4657
+ query_params.append(('limit', local_var_params['limit']))
4658
+
4659
+ header_params = {}
4660
+ if 'x_language' in local_var_params:
4661
+ header_params['X-Language'] = local_var_params['x_language']
4662
+
4663
+ form_params = {}
4664
+
4665
+ body = None
4666
+ if isinstance(request, SdkStreamRequest):
4667
+ body = request.get_file_stream()
4668
+
4669
+ response_headers = []
4670
+
4671
+ header_params['Content-Type'] = http_utils.select_header_content_type(
4672
+ ['application/json'])
4673
+
4674
+ auth_settings = []
4675
+
4676
+ http_info["cname"] = cname
4677
+ http_info["collection_formats"] = collection_formats
4678
+ http_info["path_params"] = path_params
4679
+ http_info["query_params"] = query_params
4680
+ http_info["header_params"] = header_params
4681
+ http_info["post_params"] = form_params
4682
+ http_info["body"] = body
4683
+ http_info["response_headers"] = response_headers
4684
+
4685
+ return http_info
4686
+
3830
4687
  def list_restorable_instances_async(self, request):
3831
4688
  """查询可用于备份恢复的实例列表
3832
4689
 
@@ -3902,6 +4759,81 @@ class GaussDBforopenGaussAsyncClient(Client):
3902
4759
 
3903
4760
  return http_info
3904
4761
 
4762
+ def list_restorable_instances_details_async(self, request):
4763
+ """查询可用于备份恢复的实例列表
4764
+
4765
+ 查询可用于备份恢复的实例列表,实例信息要符合备份条件。
4766
+
4767
+ Please refer to HUAWEI cloud API Explorer for details.
4768
+
4769
+
4770
+ :param request: Request instance for ListRestorableInstancesDetails
4771
+ :type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.ListRestorableInstancesDetailsRequest`
4772
+ :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.ListRestorableInstancesDetailsResponse`
4773
+ """
4774
+ http_info = self._list_restorable_instances_details_http_info(request)
4775
+ return self._call_api(**http_info)
4776
+
4777
+ def list_restorable_instances_details_async_invoker(self, request):
4778
+ http_info = self._list_restorable_instances_details_http_info(request)
4779
+ return AsyncInvoker(self, http_info)
4780
+
4781
+ def _list_restorable_instances_details_http_info(self, request):
4782
+ http_info = {
4783
+ "method": "GET",
4784
+ "resource_path": "/v3.1/{project_id}/restorable-instances",
4785
+ "request_type": request.__class__.__name__,
4786
+ "response_type": "ListRestorableInstancesDetailsResponse"
4787
+ }
4788
+
4789
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
4790
+
4791
+ cname = None
4792
+
4793
+ collection_formats = {}
4794
+
4795
+ path_params = {}
4796
+
4797
+ query_params = []
4798
+ if 'source_instance_id' in local_var_params:
4799
+ query_params.append(('source_instance_id', local_var_params['source_instance_id']))
4800
+ if 'backup_id' in local_var_params:
4801
+ query_params.append(('backup_id', local_var_params['backup_id']))
4802
+ if 'restore_time' in local_var_params:
4803
+ query_params.append(('restore_time', local_var_params['restore_time']))
4804
+ if 'offset' in local_var_params:
4805
+ query_params.append(('offset', local_var_params['offset']))
4806
+ if 'limit' in local_var_params:
4807
+ query_params.append(('limit', local_var_params['limit']))
4808
+
4809
+ header_params = {}
4810
+ if 'x_language' in local_var_params:
4811
+ header_params['X-Language'] = local_var_params['x_language']
4812
+
4813
+ form_params = {}
4814
+
4815
+ body = None
4816
+ if isinstance(request, SdkStreamRequest):
4817
+ body = request.get_file_stream()
4818
+
4819
+ response_headers = []
4820
+
4821
+ header_params['Content-Type'] = http_utils.select_header_content_type(
4822
+ ['application/json'])
4823
+
4824
+ auth_settings = []
4825
+
4826
+ http_info["cname"] = cname
4827
+ http_info["collection_formats"] = collection_formats
4828
+ http_info["path_params"] = path_params
4829
+ http_info["query_params"] = query_params
4830
+ http_info["header_params"] = header_params
4831
+ http_info["post_params"] = form_params
4832
+ http_info["body"] = body
4833
+ http_info["response_headers"] = response_headers
4834
+
4835
+ return http_info
4836
+
3905
4837
  def list_restore_times_async(self, request):
3906
4838
  """查询可恢复时间段
3907
4839
 
@@ -5693,19 +6625,86 @@ class GaussDBforopenGaussAsyncClient(Client):
5693
6625
  :type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.ShowInstanceDiskRequest`
5694
6626
  :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.ShowInstanceDiskResponse`
5695
6627
  """
5696
- http_info = self._show_instance_disk_http_info(request)
6628
+ http_info = self._show_instance_disk_http_info(request)
6629
+ return self._call_api(**http_info)
6630
+
6631
+ def show_instance_disk_async_invoker(self, request):
6632
+ http_info = self._show_instance_disk_http_info(request)
6633
+ return AsyncInvoker(self, http_info)
6634
+
6635
+ def _show_instance_disk_http_info(self, request):
6636
+ http_info = {
6637
+ "method": "GET",
6638
+ "resource_path": "/v3/{project_id}/instances/{instance_id}/volume-usage",
6639
+ "request_type": request.__class__.__name__,
6640
+ "response_type": "ShowInstanceDiskResponse"
6641
+ }
6642
+
6643
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
6644
+
6645
+ cname = None
6646
+
6647
+ collection_formats = {}
6648
+
6649
+ path_params = {}
6650
+ if 'instance_id' in local_var_params:
6651
+ path_params['instance_id'] = local_var_params['instance_id']
6652
+
6653
+ query_params = []
6654
+
6655
+ header_params = {}
6656
+ if 'x_language' in local_var_params:
6657
+ header_params['X-Language'] = local_var_params['x_language']
6658
+
6659
+ form_params = {}
6660
+
6661
+ body = None
6662
+ if isinstance(request, SdkStreamRequest):
6663
+ body = request.get_file_stream()
6664
+
6665
+ response_headers = []
6666
+
6667
+ header_params['Content-Type'] = http_utils.select_header_content_type(
6668
+ ['application/json'])
6669
+
6670
+ auth_settings = []
6671
+
6672
+ http_info["cname"] = cname
6673
+ http_info["collection_formats"] = collection_formats
6674
+ http_info["path_params"] = path_params
6675
+ http_info["query_params"] = query_params
6676
+ http_info["header_params"] = header_params
6677
+ http_info["post_params"] = form_params
6678
+ http_info["body"] = body
6679
+ http_info["response_headers"] = response_headers
6680
+
6681
+ return http_info
6682
+
6683
+ def show_instance_param_group_async(self, request):
6684
+ """获取指定实例的参数模板
6685
+
6686
+ 获取指定实例的参数模板。
6687
+
6688
+ Please refer to HUAWEI cloud API Explorer for details.
6689
+
6690
+
6691
+ :param request: Request instance for ShowInstanceParamGroup
6692
+ :type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.ShowInstanceParamGroupRequest`
6693
+ :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.ShowInstanceParamGroupResponse`
6694
+ """
6695
+ http_info = self._show_instance_param_group_http_info(request)
5697
6696
  return self._call_api(**http_info)
5698
6697
 
5699
- def show_instance_disk_async_invoker(self, request):
5700
- http_info = self._show_instance_disk_http_info(request)
6698
+ def show_instance_param_group_async_invoker(self, request):
6699
+ http_info = self._show_instance_param_group_http_info(request)
5701
6700
  return AsyncInvoker(self, http_info)
5702
6701
 
5703
- def _show_instance_disk_http_info(self, request):
6702
+ def _show_instance_param_group_http_info(self, request):
5704
6703
  http_info = {
5705
6704
  "method": "GET",
5706
- "resource_path": "/v3/{project_id}/instances/{instance_id}/volume-usage",
6705
+ "resource_path": "/v3.1/{project_id}/instances/{instance_id}/configurations",
5707
6706
  "request_type": request.__class__.__name__,
5708
- "response_type": "ShowInstanceDiskResponse"
6707
+ "response_type": "ShowInstanceParamGroupResponse"
5709
6708
  }
5710
6709
 
5711
6710
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -5748,7 +6747,7 @@ class GaussDBforopenGaussAsyncClient(Client):
5748
6747
 
5749
6748
  return http_info
5750
6749
 
5751
- def show_instance_param_group_async(self, request):
6750
+ def show_instance_param_group_detail_async(self, request):
5752
6751
  """获取指定实例的参数模板
5753
6752
 
5754
6753
  获取指定实例的参数模板。
@@ -5756,23 +6755,23 @@ class GaussDBforopenGaussAsyncClient(Client):
5756
6755
  Please refer to HUAWEI cloud API Explorer for details.
5757
6756
 
5758
6757
 
5759
- :param request: Request instance for ShowInstanceParamGroup
5760
- :type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.ShowInstanceParamGroupRequest`
5761
- :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.ShowInstanceParamGroupResponse`
6758
+ :param request: Request instance for ShowInstanceParamGroupDetail
6759
+ :type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.ShowInstanceParamGroupDetailRequest`
6760
+ :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.ShowInstanceParamGroupDetailResponse`
5762
6761
  """
5763
- http_info = self._show_instance_param_group_http_info(request)
6762
+ http_info = self._show_instance_param_group_detail_http_info(request)
5764
6763
  return self._call_api(**http_info)
5765
6764
 
5766
- def show_instance_param_group_async_invoker(self, request):
5767
- http_info = self._show_instance_param_group_http_info(request)
6765
+ def show_instance_param_group_detail_async_invoker(self, request):
6766
+ http_info = self._show_instance_param_group_detail_http_info(request)
5768
6767
  return AsyncInvoker(self, http_info)
5769
6768
 
5770
- def _show_instance_param_group_http_info(self, request):
6769
+ def _show_instance_param_group_detail_http_info(self, request):
5771
6770
  http_info = {
5772
6771
  "method": "GET",
5773
- "resource_path": "/v3.1/{project_id}/instances/{instance_id}/configurations",
6772
+ "resource_path": "/v3.2/{project_id}/instances/{instance_id}/configurations",
5774
6773
  "request_type": request.__class__.__name__,
5775
- "response_type": "ShowInstanceParamGroupResponse"
6774
+ "response_type": "ShowInstanceParamGroupDetailResponse"
5776
6775
  }
5777
6776
 
5778
6777
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -5951,6 +6950,73 @@ class GaussDBforopenGaussAsyncClient(Client):
5951
6950
 
5952
6951
  return http_info
5953
6952
 
6953
+ def show_parameter_group_detail_async(self, request):
6954
+ """查询参数模板详情
6955
+
6956
+ 根据参数模板ID获取指定参数模板详情。
6957
+
6958
+ Please refer to HUAWEI cloud API Explorer for details.
6959
+
6960
+
6961
+ :param request: Request instance for ShowParameterGroupDetail
6962
+ :type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.ShowParameterGroupDetailRequest`
6963
+ :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.ShowParameterGroupDetailResponse`
6964
+ """
6965
+ http_info = self._show_parameter_group_detail_http_info(request)
6966
+ return self._call_api(**http_info)
6967
+
6968
+ def show_parameter_group_detail_async_invoker(self, request):
6969
+ http_info = self._show_parameter_group_detail_http_info(request)
6970
+ return AsyncInvoker(self, http_info)
6971
+
6972
+ def _show_parameter_group_detail_http_info(self, request):
6973
+ http_info = {
6974
+ "method": "GET",
6975
+ "resource_path": "/v3.1/{project_id}/configurations/{config_id}",
6976
+ "request_type": request.__class__.__name__,
6977
+ "response_type": "ShowParameterGroupDetailResponse"
6978
+ }
6979
+
6980
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
6981
+
6982
+ cname = None
6983
+
6984
+ collection_formats = {}
6985
+
6986
+ path_params = {}
6987
+ if 'config_id' in local_var_params:
6988
+ path_params['config_id'] = local_var_params['config_id']
6989
+
6990
+ query_params = []
6991
+
6992
+ header_params = {}
6993
+ if 'x_language' in local_var_params:
6994
+ header_params['X-Language'] = local_var_params['x_language']
6995
+
6996
+ form_params = {}
6997
+
6998
+ body = None
6999
+ if isinstance(request, SdkStreamRequest):
7000
+ body = request.get_file_stream()
7001
+
7002
+ response_headers = []
7003
+
7004
+ header_params['Content-Type'] = http_utils.select_header_content_type(
7005
+ ['application/json'])
7006
+
7007
+ auth_settings = []
7008
+
7009
+ http_info["cname"] = cname
7010
+ http_info["collection_formats"] = collection_formats
7011
+ http_info["path_params"] = path_params
7012
+ http_info["query_params"] = query_params
7013
+ http_info["header_params"] = header_params
7014
+ http_info["post_params"] = form_params
7015
+ http_info["body"] = body
7016
+ http_info["response_headers"] = response_headers
7017
+
7018
+ return http_info
7019
+
5954
7020
  def show_project_quotas_async(self, request):
5955
7021
  """查询租户的实例配额
5956
7022
 
@@ -6149,6 +7215,77 @@ class GaussDBforopenGaussAsyncClient(Client):
6149
7215
 
6150
7216
  return http_info
6151
7217
 
7218
+ def show_source_instance_detail_async(self, request):
7219
+ """根据时间点或者备份文件查询原实例信息
7220
+
7221
+ 根据时间点或者备份文件查询原实例信息。
7222
+
7223
+ Please refer to HUAWEI cloud API Explorer for details.
7224
+
7225
+
7226
+ :param request: Request instance for ShowSourceInstanceDetail
7227
+ :type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.ShowSourceInstanceDetailRequest`
7228
+ :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.ShowSourceInstanceDetailResponse`
7229
+ """
7230
+ http_info = self._show_source_instance_detail_http_info(request)
7231
+ return self._call_api(**http_info)
7232
+
7233
+ def show_source_instance_detail_async_invoker(self, request):
7234
+ http_info = self._show_source_instance_detail_http_info(request)
7235
+ return AsyncInvoker(self, http_info)
7236
+
7237
+ def _show_source_instance_detail_http_info(self, request):
7238
+ http_info = {
7239
+ "method": "GET",
7240
+ "resource_path": "/v3.1/{project_id}/instance-snapshot",
7241
+ "request_type": request.__class__.__name__,
7242
+ "response_type": "ShowSourceInstanceDetailResponse"
7243
+ }
7244
+
7245
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
7246
+
7247
+ cname = None
7248
+
7249
+ collection_formats = {}
7250
+
7251
+ path_params = {}
7252
+
7253
+ query_params = []
7254
+ if 'instance_id' in local_var_params:
7255
+ query_params.append(('instance_id', local_var_params['instance_id']))
7256
+ if 'restore_time' in local_var_params:
7257
+ query_params.append(('restore_time', local_var_params['restore_time']))
7258
+ if 'backup_id' in local_var_params:
7259
+ query_params.append(('backup_id', local_var_params['backup_id']))
7260
+
7261
+ header_params = {}
7262
+ if 'x_language' in local_var_params:
7263
+ header_params['X-Language'] = local_var_params['x_language']
7264
+
7265
+ form_params = {}
7266
+
7267
+ body = None
7268
+ if isinstance(request, SdkStreamRequest):
7269
+ body = request.get_file_stream()
7270
+
7271
+ response_headers = []
7272
+
7273
+ header_params['Content-Type'] = http_utils.select_header_content_type(
7274
+ ['application/json'])
7275
+
7276
+ auth_settings = []
7277
+
7278
+ http_info["cname"] = cname
7279
+ http_info["collection_formats"] = collection_formats
7280
+ http_info["path_params"] = path_params
7281
+ http_info["query_params"] = query_params
7282
+ http_info["header_params"] = header_params
7283
+ http_info["post_params"] = form_params
7284
+ http_info["body"] = body
7285
+ http_info["response_headers"] = response_headers
7286
+
7287
+ return http_info
7288
+
6152
7289
  def show_ssl_cert_download_link_async(self, request):
6153
7290
  """查询实例SSL证书下载地址
6154
7291
 
@@ -6283,6 +7420,73 @@ class GaussDBforopenGaussAsyncClient(Client):
6283
7420
 
6284
7421
  return http_info
6285
7422
 
7423
+ def show_upgrade_candidate_versions_details_async(self, request):
7424
+ """查询实例可升级版本
7425
+
7426
+ 查询实例可升级版本。
7427
+
7428
+ Please refer to HUAWEI cloud API Explorer for details.
7429
+
7430
+
7431
+ :param request: Request instance for ShowUpgradeCandidateVersionsDetails
7432
+ :type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.ShowUpgradeCandidateVersionsDetailsRequest`
7433
+ :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.ShowUpgradeCandidateVersionsDetailsResponse`
7434
+ """
7435
+ http_info = self._show_upgrade_candidate_versions_details_http_info(request)
7436
+ return self._call_api(**http_info)
7437
+
7438
+ def show_upgrade_candidate_versions_details_async_invoker(self, request):
7439
+ http_info = self._show_upgrade_candidate_versions_details_http_info(request)
7440
+ return AsyncInvoker(self, http_info)
7441
+
7442
+ def _show_upgrade_candidate_versions_details_http_info(self, request):
7443
+ http_info = {
7444
+ "method": "GET",
7445
+ "resource_path": "/v3.1/{project_id}/instances/{instance_id}/db-upgrade/candidate-versions",
7446
+ "request_type": request.__class__.__name__,
7447
+ "response_type": "ShowUpgradeCandidateVersionsDetailsResponse"
7448
+ }
7449
+
7450
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
7451
+
7452
+ cname = None
7453
+
7454
+ collection_formats = {}
7455
+
7456
+ path_params = {}
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
+ if 'x_language' in local_var_params:
7464
+ header_params['X-Language'] = local_var_params['x_language']
7465
+
7466
+ form_params = {}
7467
+
7468
+ body = None
7469
+ if isinstance(request, SdkStreamRequest):
7470
+ body = request.get_file_stream()
7471
+
7472
+ response_headers = []
7473
+
7474
+ header_params['Content-Type'] = http_utils.select_header_content_type(
7475
+ ['application/json'])
7476
+
7477
+ auth_settings = []
7478
+
7479
+ http_info["cname"] = cname
7480
+ http_info["collection_formats"] = collection_formats
7481
+ http_info["path_params"] = path_params
7482
+ http_info["query_params"] = query_params
7483
+ http_info["header_params"] = header_params
7484
+ http_info["post_params"] = form_params
7485
+ http_info["body"] = body
7486
+ http_info["response_headers"] = response_headers
7487
+
7488
+ return http_info
7489
+
6286
7490
  def start_instance_async(self, request):
6287
7491
  """启动数据库
6288
7492
 
@@ -7053,14 +8257,14 @@ class GaussDBforopenGaussAsyncClient(Client):
7053
8257
  def upgrade_instances_version_async(self, request):
7054
8258
  """批量实例内核版本升级
7055
8259
 
7056
- GaussDB批量实例版本升级。包括灰度升级,就地升级、热补丁升级三种升级方式。
8260
+ GaussDB批量实例版本升级。包括灰度升级,就地升级、热补丁升级三种升级方式。
7057
8261
  就地升级:
7058
- 就地升级需要停止业务进行,会一次性升级集群中所有节点。就地升级需要暂停业务30分钟来升级。
7059
- 灰度升级:
7060
- 升级自动提交:所有节点进程一起升级,在升级过程中有大概10秒的业务中断,不阻塞其他业务操作。
7061
- 升级待观察:升级待观察,将数据库升级过程细分为升级,提交两个阶段。升级阶段可以根据部署方式细分为按分片或者按az的滚动升级,提交阶段可以对升级完成后的实例进行业务测试,根据需要可以选择提交升级,或者升级回退。每个主dn或者cn组件升级就有一次10秒业务中断。升级过程均是先管理面,再数据面,由备到主的升级方式。 分布式实例:根据分片数滚动升级,每次滚动升级可以根据选择的分片数进行指定分片数量的节点进行升级。 主备版实例:根据AZ数进行滚动升级,每次滚动升级可以根据选择的AZ进行1个分区或者多个分区进行升级。
7062
- 热补丁升级:
7063
- 升级自动提交:热补丁自动升级并提交,中间无业务中断,仅修复产品bug。
8262
+ 就地升级需要停止业务进行,会一次性升级集群中所有节点。就地升级需要暂停业务30分钟来升级。
8263
+ 灰度升级:
8264
+ 升级自动提交:所有节点进程一起升级,在升级过程中有大概10秒的业务中断,不阻塞其他业务操作。
8265
+ 升级待观察:升级待观察,将数据库升级过程细分为升级,提交两个阶段。升级阶段可以根据部署方式细分为按分片或者按az的滚动升级,提交阶段可以对升级完成后的实例进行业务测试,根据需要可以选择提交升级,或者升级回退。每个主dn或者cn组件升级就有一次10秒业务中断。升级过程均是先管理面,再数据面,由备到主的升级方式。 分布式实例:根据分片数滚动升级,每次滚动升级可以根据选择的分片数进行指定分片数量的节点进行升级。 主备版实例:根据AZ数进行滚动升级,每次滚动升级可以根据选择的AZ进行1个分区或者多个分区进行升级。
8266
+ 热补丁升级:
8267
+ 升级自动提交:热补丁自动升级并提交,中间无业务中断,仅修复产品bug。
7064
8268
  提交升级:提交升级。在升级完成,进入提交阶段时。业务测试正常后提交升级,完成本次升级流程。
7065
8269
  升级回退:升级回退,在升级完成,进入提交阶段时。可以根据需要回退本次升级,回退到升级前的版本。
7066
8270
  批量实例可升级版本大于当前所有实例的引擎版本,且选择的所有实例,其升级方式和操作方式要保持一致。
@@ -7621,6 +8825,71 @@ class GaussDBforopenGaussAsyncClient(Client):
7621
8825
 
7622
8826
  return http_info
7623
8827
 
8828
+ def sync_limit_data_async(self, request):
8829
+ """同步内核侧sql限流数据至管控侧
8830
+
8831
+ 同步内核侧sql限流数据至管控侧
8832
+
8833
+ Please refer to HUAWEI cloud API Explorer for details.
8834
+
8835
+
8836
+ :param request: Request instance for SyncLimitData
8837
+ :type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.SyncLimitDataRequest`
8838
+ :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.SyncLimitDataResponse`
8839
+ """
8840
+ http_info = self._sync_limit_data_http_info(request)
8841
+ return self._call_api(**http_info)
8842
+
8843
+ def sync_limit_data_async_invoker(self, request):
8844
+ http_info = self._sync_limit_data_http_info(request)
8845
+ return AsyncInvoker(self, http_info)
8846
+
8847
+ def _sync_limit_data_http_info(self, request):
8848
+ http_info = {
8849
+ "method": "POST",
8850
+ "resource_path": "/v3/{project_id}/instances/{instance_id}/sync-limit-task",
8851
+ "request_type": request.__class__.__name__,
8852
+ "response_type": "SyncLimitDataResponse"
8853
+ }
8854
+
8855
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
8856
+
8857
+ cname = None
8858
+
8859
+ collection_formats = {}
8860
+
8861
+ path_params = {}
8862
+ if 'instance_id' in local_var_params:
8863
+ path_params['instance_id'] = local_var_params['instance_id']
8864
+
8865
+ query_params = []
8866
+
8867
+ header_params = {}
8868
+
8869
+ form_params = {}
8870
+
8871
+ body = None
8872
+ if isinstance(request, SdkStreamRequest):
8873
+ body = request.get_file_stream()
8874
+
8875
+ response_headers = []
8876
+
8877
+ header_params['Content-Type'] = http_utils.select_header_content_type(
8878
+ ['application/json'])
8879
+
8880
+ auth_settings = []
8881
+
8882
+ http_info["cname"] = cname
8883
+ http_info["collection_formats"] = collection_formats
8884
+ http_info["path_params"] = path_params
8885
+ http_info["query_params"] = query_params
8886
+ http_info["header_params"] = header_params
8887
+ http_info["post_params"] = form_params
8888
+ http_info["body"] = body
8889
+ http_info["response_headers"] = response_headers
8890
+
8891
+ return http_info
8892
+
7624
8893
  def update_limit_task_async(self, request):
7625
8894
  """修改限流任务
7626
8895