huaweicloudsdkgaussdbforopengauss 3.1.103__py2.py3-none-any.whl → 3.1.105__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 (29) hide show
  1. huaweicloudsdkgaussdbforopengauss/v3/__init__.py +17 -1
  2. huaweicloudsdkgaussdbforopengauss/v3/gaussdbforopengauss_async_client.py +408 -0
  3. huaweicloudsdkgaussdbforopengauss/v3/gaussdbforopengauss_client.py +408 -0
  4. huaweicloudsdkgaussdbforopengauss/v3/model/__init__.py +17 -1
  5. huaweicloudsdkgaussdbforopengauss/v3/model/install_kernel_plugin_request.py +168 -0
  6. huaweicloudsdkgaussdbforopengauss/v3/model/install_kernel_plugin_request_body.py +170 -0
  7. huaweicloudsdkgaussdbforopengauss/v3/model/install_kernel_plugin_response.py +116 -0
  8. huaweicloudsdkgaussdbforopengauss/v3/model/list_datastore.py +61 -3
  9. huaweicloudsdkgaussdbforopengauss/v3/model/list_kernel_plugins_request.py +143 -0
  10. huaweicloudsdkgaussdbforopengauss/v3/model/list_kernel_plugins_response.py +116 -0
  11. huaweicloudsdkgaussdbforopengauss/v3/model/list_plugin_extensions_request.py +168 -0
  12. huaweicloudsdkgaussdbforopengauss/v3/model/list_plugin_extensions_request_body.py +142 -0
  13. huaweicloudsdkgaussdbforopengauss/v3/model/list_plugin_extensions_response.py +116 -0
  14. huaweicloudsdkgaussdbforopengauss/v3/model/list_support_kernel_plugins_request.py +115 -0
  15. huaweicloudsdkgaussdbforopengauss/v3/model/list_support_kernel_plugins_response.py +116 -0
  16. huaweicloudsdkgaussdbforopengauss/v3/model/plugin_extensions.py +144 -0
  17. huaweicloudsdkgaussdbforopengauss/v3/model/recovery_backup_source.py +8 -65
  18. huaweicloudsdkgaussdbforopengauss/v3/model/resume_plugin_extensions_request.py +168 -0
  19. huaweicloudsdkgaussdbforopengauss/v3/model/resume_plugin_extensions_request_body.py +198 -0
  20. huaweicloudsdkgaussdbforopengauss/v3/model/resume_plugin_extensions_response.py +112 -0
  21. huaweicloudsdkgaussdbforopengauss/v3/model/set_kernel_plugin_license_request.py +168 -0
  22. huaweicloudsdkgaussdbforopengauss/v3/model/set_kernel_plugin_license_request_body.py +114 -0
  23. huaweicloudsdkgaussdbforopengauss/v3/model/set_kernel_plugin_license_response.py +112 -0
  24. {huaweicloudsdkgaussdbforopengauss-3.1.103.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.105.dist-info}/METADATA +2 -2
  25. {huaweicloudsdkgaussdbforopengauss-3.1.103.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.105.dist-info}/RECORD +28 -12
  26. huaweicloudsdkgaussdbforopengauss/v3/model/restore_table_list_detail.py +0 -259
  27. {huaweicloudsdkgaussdbforopengauss-3.1.103.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.105.dist-info}/LICENSE +0 -0
  28. {huaweicloudsdkgaussdbforopengauss-3.1.103.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.105.dist-info}/WHEEL +0 -0
  29. {huaweicloudsdkgaussdbforopengauss-3.1.103.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.105.dist-info}/top_level.txt +0 -0
@@ -1459,6 +1459,75 @@ class GaussDBforopenGaussClient(Client):
1459
1459
 
1460
1460
  return http_info
1461
1461
 
1462
+ def install_kernel_plugin(self, request):
1463
+ """安装插件
1464
+
1465
+ 安装插件
1466
+
1467
+ Please refer to HUAWEI cloud API Explorer for details.
1468
+
1469
+ :param request: Request instance for InstallKernelPlugin
1470
+ :type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.InstallKernelPluginRequest`
1471
+ :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.InstallKernelPluginResponse`
1472
+ """
1473
+ http_info = self._install_kernel_plugin_http_info(request)
1474
+ return self._call_api(**http_info)
1475
+
1476
+ def install_kernel_plugin_invoker(self, request):
1477
+ http_info = self._install_kernel_plugin_http_info(request)
1478
+ return SyncInvoker(self, http_info)
1479
+
1480
+ @classmethod
1481
+ def _install_kernel_plugin_http_info(cls, request):
1482
+ http_info = {
1483
+ "method": "POST",
1484
+ "resource_path": "/v3/{project_id}/instances/{instance_id}/kernel-plugin",
1485
+ "request_type": request.__class__.__name__,
1486
+ "response_type": "InstallKernelPluginResponse"
1487
+ }
1488
+
1489
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1490
+
1491
+ cname = None
1492
+
1493
+ collection_formats = {}
1494
+
1495
+ path_params = {}
1496
+ if 'instance_id' in local_var_params:
1497
+ path_params['instance_id'] = local_var_params['instance_id']
1498
+
1499
+ query_params = []
1500
+
1501
+ header_params = {}
1502
+ if 'x_language' in local_var_params:
1503
+ header_params['X-Language'] = local_var_params['x_language']
1504
+
1505
+ form_params = {}
1506
+
1507
+ body = None
1508
+ if 'body' in local_var_params:
1509
+ body = local_var_params['body']
1510
+ if isinstance(request, SdkStreamRequest):
1511
+ body = request.get_file_stream()
1512
+
1513
+ response_headers = []
1514
+
1515
+ header_params['Content-Type'] = http_utils.select_header_content_type(
1516
+ ['application/json;charset=UTF-8'])
1517
+
1518
+ auth_settings = []
1519
+
1520
+ http_info["cname"] = cname
1521
+ http_info["collection_formats"] = collection_formats
1522
+ http_info["path_params"] = path_params
1523
+ http_info["query_params"] = query_params
1524
+ http_info["header_params"] = header_params
1525
+ http_info["post_params"] = form_params
1526
+ http_info["body"] = body
1527
+ http_info["response_headers"] = response_headers
1528
+
1529
+ return http_info
1530
+
1462
1531
  def list_applicable_instances(self, request):
1463
1532
  """查询可应用实例列表
1464
1533
 
@@ -3216,6 +3285,73 @@ class GaussDBforopenGaussClient(Client):
3216
3285
 
3217
3286
  return http_info
3218
3287
 
3288
+ def list_kernel_plugins(self, request):
3289
+ """查询实例已安装的插件列表
3290
+
3291
+ 查询实例已安装的插件列表
3292
+
3293
+ Please refer to HUAWEI cloud API Explorer for details.
3294
+
3295
+ :param request: Request instance for ListKernelPlugins
3296
+ :type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.ListKernelPluginsRequest`
3297
+ :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.ListKernelPluginsResponse`
3298
+ """
3299
+ http_info = self._list_kernel_plugins_http_info(request)
3300
+ return self._call_api(**http_info)
3301
+
3302
+ def list_kernel_plugins_invoker(self, request):
3303
+ http_info = self._list_kernel_plugins_http_info(request)
3304
+ return SyncInvoker(self, http_info)
3305
+
3306
+ @classmethod
3307
+ def _list_kernel_plugins_http_info(cls, request):
3308
+ http_info = {
3309
+ "method": "GET",
3310
+ "resource_path": "/v3/{project_id}/instances/{instance_id}/kernel-plugins",
3311
+ "request_type": request.__class__.__name__,
3312
+ "response_type": "ListKernelPluginsResponse"
3313
+ }
3314
+
3315
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
3316
+
3317
+ cname = None
3318
+
3319
+ collection_formats = {}
3320
+
3321
+ path_params = {}
3322
+ if 'instance_id' in local_var_params:
3323
+ path_params['instance_id'] = local_var_params['instance_id']
3324
+
3325
+ query_params = []
3326
+
3327
+ header_params = {}
3328
+ if 'x_language' in local_var_params:
3329
+ header_params['X-Language'] = local_var_params['x_language']
3330
+
3331
+ form_params = {}
3332
+
3333
+ body = None
3334
+ if isinstance(request, SdkStreamRequest):
3335
+ body = request.get_file_stream()
3336
+
3337
+ response_headers = []
3338
+
3339
+ header_params['Content-Type'] = http_utils.select_header_content_type(
3340
+ ['application/json'])
3341
+
3342
+ auth_settings = []
3343
+
3344
+ http_info["cname"] = cname
3345
+ http_info["collection_formats"] = collection_formats
3346
+ http_info["path_params"] = path_params
3347
+ http_info["query_params"] = query_params
3348
+ http_info["header_params"] = header_params
3349
+ http_info["post_params"] = form_params
3350
+ http_info["body"] = body
3351
+ http_info["response_headers"] = response_headers
3352
+
3353
+ return http_info
3354
+
3219
3355
  def list_param_group_templates(self, request):
3220
3356
  """获取参数模板列表
3221
3357
 
@@ -3285,6 +3421,75 @@ class GaussDBforopenGaussClient(Client):
3285
3421
 
3286
3422
  return http_info
3287
3423
 
3424
+ def list_plugin_extensions(self, request):
3425
+ """查询实例插件拓展信息
3426
+
3427
+ 查询实例插件拓展信息
3428
+
3429
+ Please refer to HUAWEI cloud API Explorer for details.
3430
+
3431
+ :param request: Request instance for ListPluginExtensions
3432
+ :type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.ListPluginExtensionsRequest`
3433
+ :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.ListPluginExtensionsResponse`
3434
+ """
3435
+ http_info = self._list_plugin_extensions_http_info(request)
3436
+ return self._call_api(**http_info)
3437
+
3438
+ def list_plugin_extensions_invoker(self, request):
3439
+ http_info = self._list_plugin_extensions_http_info(request)
3440
+ return SyncInvoker(self, http_info)
3441
+
3442
+ @classmethod
3443
+ def _list_plugin_extensions_http_info(cls, request):
3444
+ http_info = {
3445
+ "method": "GET",
3446
+ "resource_path": "/v3/{project_id}/instances/{instance_id}/plugin-extensions",
3447
+ "request_type": request.__class__.__name__,
3448
+ "response_type": "ListPluginExtensionsResponse"
3449
+ }
3450
+
3451
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
3452
+
3453
+ cname = None
3454
+
3455
+ collection_formats = {}
3456
+
3457
+ path_params = {}
3458
+ if 'instance_id' in local_var_params:
3459
+ path_params['instance_id'] = local_var_params['instance_id']
3460
+
3461
+ query_params = []
3462
+
3463
+ header_params = {}
3464
+ if 'x_language' in local_var_params:
3465
+ header_params['X-Language'] = local_var_params['x_language']
3466
+
3467
+ form_params = {}
3468
+
3469
+ body = None
3470
+ if 'body' in local_var_params:
3471
+ body = local_var_params['body']
3472
+ if isinstance(request, SdkStreamRequest):
3473
+ body = request.get_file_stream()
3474
+
3475
+ response_headers = []
3476
+
3477
+ header_params['Content-Type'] = http_utils.select_header_content_type(
3478
+ ['application/json;charset=UTF-8'])
3479
+
3480
+ auth_settings = []
3481
+
3482
+ http_info["cname"] = cname
3483
+ http_info["collection_formats"] = collection_formats
3484
+ http_info["path_params"] = path_params
3485
+ http_info["query_params"] = query_params
3486
+ http_info["header_params"] = header_params
3487
+ http_info["post_params"] = form_params
3488
+ http_info["body"] = body
3489
+ http_info["response_headers"] = response_headers
3490
+
3491
+ return http_info
3492
+
3288
3493
  def list_predefined_tags(self, request):
3289
3494
  """查询预定义标签
3290
3495
 
@@ -3700,6 +3905,71 @@ class GaussDBforopenGaussClient(Client):
3700
3905
 
3701
3906
  return http_info
3702
3907
 
3908
+ def list_support_kernel_plugins(self, request):
3909
+ """查询支持的插件列表
3910
+
3911
+ 查询支持的插件列表
3912
+
3913
+ Please refer to HUAWEI cloud API Explorer for details.
3914
+
3915
+ :param request: Request instance for ListSupportKernelPlugins
3916
+ :type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.ListSupportKernelPluginsRequest`
3917
+ :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.ListSupportKernelPluginsResponse`
3918
+ """
3919
+ http_info = self._list_support_kernel_plugins_http_info(request)
3920
+ return self._call_api(**http_info)
3921
+
3922
+ def list_support_kernel_plugins_invoker(self, request):
3923
+ http_info = self._list_support_kernel_plugins_http_info(request)
3924
+ return SyncInvoker(self, http_info)
3925
+
3926
+ @classmethod
3927
+ def _list_support_kernel_plugins_http_info(cls, request):
3928
+ http_info = {
3929
+ "method": "GET",
3930
+ "resource_path": "/v3/{project_id}/instances/kernel-plugins",
3931
+ "request_type": request.__class__.__name__,
3932
+ "response_type": "ListSupportKernelPluginsResponse"
3933
+ }
3934
+
3935
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
3936
+
3937
+ cname = None
3938
+
3939
+ collection_formats = {}
3940
+
3941
+ path_params = {}
3942
+
3943
+ query_params = []
3944
+
3945
+ header_params = {}
3946
+ if 'x_language' in local_var_params:
3947
+ header_params['X-Language'] = local_var_params['x_language']
3948
+
3949
+ form_params = {}
3950
+
3951
+ body = None
3952
+ if isinstance(request, SdkStreamRequest):
3953
+ body = request.get_file_stream()
3954
+
3955
+ response_headers = []
3956
+
3957
+ header_params['Content-Type'] = http_utils.select_header_content_type(
3958
+ ['application/json'])
3959
+
3960
+ auth_settings = []
3961
+
3962
+ http_info["cname"] = cname
3963
+ http_info["collection_formats"] = collection_formats
3964
+ http_info["path_params"] = path_params
3965
+ http_info["query_params"] = query_params
3966
+ http_info["header_params"] = header_params
3967
+ http_info["post_params"] = form_params
3968
+ http_info["body"] = body
3969
+ http_info["response_headers"] = response_headers
3970
+
3971
+ return http_info
3972
+
3703
3973
  def list_tasks(self, request):
3704
3974
  """查询任务列表
3705
3975
 
@@ -4258,6 +4528,75 @@ class GaussDBforopenGaussClient(Client):
4258
4528
 
4259
4529
  return http_info
4260
4530
 
4531
+ def resume_plugin_extensions(self, request):
4532
+ """配置插件拓展能力
4533
+
4534
+ 配置插件拓展能力
4535
+
4536
+ Please refer to HUAWEI cloud API Explorer for details.
4537
+
4538
+ :param request: Request instance for ResumePluginExtensions
4539
+ :type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.ResumePluginExtensionsRequest`
4540
+ :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.ResumePluginExtensionsResponse`
4541
+ """
4542
+ http_info = self._resume_plugin_extensions_http_info(request)
4543
+ return self._call_api(**http_info)
4544
+
4545
+ def resume_plugin_extensions_invoker(self, request):
4546
+ http_info = self._resume_plugin_extensions_http_info(request)
4547
+ return SyncInvoker(self, http_info)
4548
+
4549
+ @classmethod
4550
+ def _resume_plugin_extensions_http_info(cls, request):
4551
+ http_info = {
4552
+ "method": "POST",
4553
+ "resource_path": "/v3/{project_id}/instances/{instance_id}/config-plugin-extensions",
4554
+ "request_type": request.__class__.__name__,
4555
+ "response_type": "ResumePluginExtensionsResponse"
4556
+ }
4557
+
4558
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
4559
+
4560
+ cname = None
4561
+
4562
+ collection_formats = {}
4563
+
4564
+ path_params = {}
4565
+ if 'instance_id' in local_var_params:
4566
+ path_params['instance_id'] = local_var_params['instance_id']
4567
+
4568
+ query_params = []
4569
+
4570
+ header_params = {}
4571
+ if 'x_language' in local_var_params:
4572
+ header_params['X-Language'] = local_var_params['x_language']
4573
+
4574
+ form_params = {}
4575
+
4576
+ body = None
4577
+ if 'body' in local_var_params:
4578
+ body = local_var_params['body']
4579
+ if isinstance(request, SdkStreamRequest):
4580
+ body = request.get_file_stream()
4581
+
4582
+ response_headers = []
4583
+
4584
+ header_params['Content-Type'] = http_utils.select_header_content_type(
4585
+ ['application/json;charset=UTF-8'])
4586
+
4587
+ auth_settings = []
4588
+
4589
+ http_info["cname"] = cname
4590
+ http_info["collection_formats"] = collection_formats
4591
+ http_info["path_params"] = path_params
4592
+ http_info["query_params"] = query_params
4593
+ http_info["header_params"] = header_params
4594
+ http_info["post_params"] = form_params
4595
+ http_info["body"] = body
4596
+ http_info["response_headers"] = response_headers
4597
+
4598
+ return http_info
4599
+
4261
4600
  def run_instance_action(self, request):
4262
4601
  """CN横向扩容/DN分片扩容/磁盘扩容
4263
4602
 
@@ -4532,6 +4871,75 @@ class GaussDBforopenGaussClient(Client):
4532
4871
 
4533
4872
  return http_info
4534
4873
 
4874
+ def set_kernel_plugin_license(self, request):
4875
+ """配置插件license
4876
+
4877
+ 配置插件license
4878
+
4879
+ Please refer to HUAWEI cloud API Explorer for details.
4880
+
4881
+ :param request: Request instance for SetKernelPluginLicense
4882
+ :type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.SetKernelPluginLicenseRequest`
4883
+ :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.SetKernelPluginLicenseResponse`
4884
+ """
4885
+ http_info = self._set_kernel_plugin_license_http_info(request)
4886
+ return self._call_api(**http_info)
4887
+
4888
+ def set_kernel_plugin_license_invoker(self, request):
4889
+ http_info = self._set_kernel_plugin_license_http_info(request)
4890
+ return SyncInvoker(self, http_info)
4891
+
4892
+ @classmethod
4893
+ def _set_kernel_plugin_license_http_info(cls, request):
4894
+ http_info = {
4895
+ "method": "PUT",
4896
+ "resource_path": "/v3/{project_id}/instances/{instance_id}/kernel-plugin-license",
4897
+ "request_type": request.__class__.__name__,
4898
+ "response_type": "SetKernelPluginLicenseResponse"
4899
+ }
4900
+
4901
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
4902
+
4903
+ cname = None
4904
+
4905
+ collection_formats = {}
4906
+
4907
+ path_params = {}
4908
+ if 'instance_id' in local_var_params:
4909
+ path_params['instance_id'] = local_var_params['instance_id']
4910
+
4911
+ query_params = []
4912
+
4913
+ header_params = {}
4914
+ if 'x_language' in local_var_params:
4915
+ header_params['X-Language'] = local_var_params['x_language']
4916
+
4917
+ form_params = {}
4918
+
4919
+ body = None
4920
+ if 'body' in local_var_params:
4921
+ body = local_var_params['body']
4922
+ if isinstance(request, SdkStreamRequest):
4923
+ body = request.get_file_stream()
4924
+
4925
+ response_headers = []
4926
+
4927
+ header_params['Content-Type'] = http_utils.select_header_content_type(
4928
+ ['application/json;charset=UTF-8'])
4929
+
4930
+ auth_settings = []
4931
+
4932
+ http_info["cname"] = cname
4933
+ http_info["collection_formats"] = collection_formats
4934
+ http_info["path_params"] = path_params
4935
+ http_info["query_params"] = query_params
4936
+ http_info["header_params"] = header_params
4937
+ http_info["post_params"] = form_params
4938
+ http_info["body"] = body
4939
+ http_info["response_headers"] = response_headers
4940
+
4941
+ return http_info
4942
+
4535
4943
  def set_new_backup_policy(self, request):
4536
4944
  """设置自动备份策略
4537
4945
 
@@ -92,6 +92,9 @@ from huaweicloudsdkgaussdbforopengauss.v3.model.hotfix_info import HotfixInfo
92
92
  from huaweicloudsdkgaussdbforopengauss.v3.model.hotfix_rollback_infos import HotfixRollbackInfos
93
93
  from huaweicloudsdkgaussdbforopengauss.v3.model.hotfix_upgrade_infos import HotfixUpgradeInfos
94
94
  from huaweicloudsdkgaussdbforopengauss.v3.model.hotfix_version_info import HotfixVersionInfo
95
+ from huaweicloudsdkgaussdbforopengauss.v3.model.install_kernel_plugin_request import InstallKernelPluginRequest
96
+ from huaweicloudsdkgaussdbforopengauss.v3.model.install_kernel_plugin_request_body import InstallKernelPluginRequestBody
97
+ from huaweicloudsdkgaussdbforopengauss.v3.model.install_kernel_plugin_response import InstallKernelPluginResponse
95
98
  from huaweicloudsdkgaussdbforopengauss.v3.model.instance_info_result import InstanceInfoResult
96
99
  from huaweicloudsdkgaussdbforopengauss.v3.model.instance_log_file import InstanceLogFile
97
100
  from huaweicloudsdkgaussdbforopengauss.v3.model.instances_list_result import InstancesListResult
@@ -156,8 +159,13 @@ from huaweicloudsdkgaussdbforopengauss.v3.model.list_instances_details_response
156
159
  from huaweicloudsdkgaussdbforopengauss.v3.model.list_instances_request import ListInstancesRequest
157
160
  from huaweicloudsdkgaussdbforopengauss.v3.model.list_instances_response import ListInstancesResponse
158
161
  from huaweicloudsdkgaussdbforopengauss.v3.model.list_instances_result import ListInstancesResult
162
+ from huaweicloudsdkgaussdbforopengauss.v3.model.list_kernel_plugins_request import ListKernelPluginsRequest
163
+ from huaweicloudsdkgaussdbforopengauss.v3.model.list_kernel_plugins_response import ListKernelPluginsResponse
159
164
  from huaweicloudsdkgaussdbforopengauss.v3.model.list_param_group_templates_request import ListParamGroupTemplatesRequest
160
165
  from huaweicloudsdkgaussdbforopengauss.v3.model.list_param_group_templates_response import ListParamGroupTemplatesResponse
166
+ from huaweicloudsdkgaussdbforopengauss.v3.model.list_plugin_extensions_request import ListPluginExtensionsRequest
167
+ from huaweicloudsdkgaussdbforopengauss.v3.model.list_plugin_extensions_request_body import ListPluginExtensionsRequestBody
168
+ from huaweicloudsdkgaussdbforopengauss.v3.model.list_plugin_extensions_response import ListPluginExtensionsResponse
161
169
  from huaweicloudsdkgaussdbforopengauss.v3.model.list_predefined_tags_request import ListPredefinedTagsRequest
162
170
  from huaweicloudsdkgaussdbforopengauss.v3.model.list_predefined_tags_response import ListPredefinedTagsResponse
163
171
  from huaweicloudsdkgaussdbforopengauss.v3.model.list_project_tags_request import ListProjectTagsRequest
@@ -171,6 +179,8 @@ from huaweicloudsdkgaussdbforopengauss.v3.model.list_restore_times_request impor
171
179
  from huaweicloudsdkgaussdbforopengauss.v3.model.list_restore_times_response import ListRestoreTimesResponse
172
180
  from huaweicloudsdkgaussdbforopengauss.v3.model.list_storage_types_request import ListStorageTypesRequest
173
181
  from huaweicloudsdkgaussdbforopengauss.v3.model.list_storage_types_response import ListStorageTypesResponse
182
+ from huaweicloudsdkgaussdbforopengauss.v3.model.list_support_kernel_plugins_request import ListSupportKernelPluginsRequest
183
+ from huaweicloudsdkgaussdbforopengauss.v3.model.list_support_kernel_plugins_response import ListSupportKernelPluginsResponse
174
184
  from huaweicloudsdkgaussdbforopengauss.v3.model.list_tasks_request import ListTasksRequest
175
185
  from huaweicloudsdkgaussdbforopengauss.v3.model.list_tasks_response import ListTasksResponse
176
186
  from huaweicloudsdkgaussdbforopengauss.v3.model.list_top_io_traffics_request import ListTopIoTrafficsRequest
@@ -218,6 +228,7 @@ from huaweicloudsdkgaussdbforopengauss.v3.model.para_error_response_body import
218
228
  from huaweicloudsdkgaussdbforopengauss.v3.model.para_group_parameter_result import ParaGroupParameterResult
219
229
  from huaweicloudsdkgaussdbforopengauss.v3.model.param_group_copy_request_body import ParamGroupCopyRequestBody
220
230
  from huaweicloudsdkgaussdbforopengauss.v3.model.param_group_diff_request_body import ParamGroupDiffRequestBody
231
+ from huaweicloudsdkgaussdbforopengauss.v3.model.plugin_extensions import PluginExtensions
221
232
  from huaweicloudsdkgaussdbforopengauss.v3.model.project_quotas_result import ProjectQuotasResult
222
233
  from huaweicloudsdkgaussdbforopengauss.v3.model.pwd_reset_request import PwdResetRequest
223
234
  from huaweicloudsdkgaussdbforopengauss.v3.model.recovery_backup_source import RecoveryBackupSource
@@ -239,7 +250,9 @@ from huaweicloudsdkgaussdbforopengauss.v3.model.restore_instance_request import
239
250
  from huaweicloudsdkgaussdbforopengauss.v3.model.restore_instance_request_body import RestoreInstanceRequestBody
240
251
  from huaweicloudsdkgaussdbforopengauss.v3.model.restore_instance_response import RestoreInstanceResponse
241
252
  from huaweicloudsdkgaussdbforopengauss.v3.model.restore_point import RestorePoint
242
- from huaweicloudsdkgaussdbforopengauss.v3.model.restore_table_list_detail import RestoreTableListDetail
253
+ from huaweicloudsdkgaussdbforopengauss.v3.model.resume_plugin_extensions_request import ResumePluginExtensionsRequest
254
+ from huaweicloudsdkgaussdbforopengauss.v3.model.resume_plugin_extensions_request_body import ResumePluginExtensionsRequestBody
255
+ from huaweicloudsdkgaussdbforopengauss.v3.model.resume_plugin_extensions_response import ResumePluginExtensionsResponse
243
256
  from huaweicloudsdkgaussdbforopengauss.v3.model.roll_upgrade_progress import RollUpgradeProgress
244
257
  from huaweicloudsdkgaussdbforopengauss.v3.model.run_instance_action_request import RunInstanceActionRequest
245
258
  from huaweicloudsdkgaussdbforopengauss.v3.model.run_instance_action_response import RunInstanceActionResponse
@@ -250,6 +263,9 @@ from huaweicloudsdkgaussdbforopengauss.v3.model.set_backup_policy_request_body i
250
263
  from huaweicloudsdkgaussdbforopengauss.v3.model.set_backup_policy_response import SetBackupPolicyResponse
251
264
  from huaweicloudsdkgaussdbforopengauss.v3.model.set_db_user_pwd_request import SetDbUserPwdRequest
252
265
  from huaweicloudsdkgaussdbforopengauss.v3.model.set_db_user_pwd_response import SetDbUserPwdResponse
266
+ from huaweicloudsdkgaussdbforopengauss.v3.model.set_kernel_plugin_license_request import SetKernelPluginLicenseRequest
267
+ from huaweicloudsdkgaussdbforopengauss.v3.model.set_kernel_plugin_license_request_body import SetKernelPluginLicenseRequestBody
268
+ from huaweicloudsdkgaussdbforopengauss.v3.model.set_kernel_plugin_license_response import SetKernelPluginLicenseResponse
253
269
  from huaweicloudsdkgaussdbforopengauss.v3.model.set_new_backup_policy_request import SetNewBackupPolicyRequest
254
270
  from huaweicloudsdkgaussdbforopengauss.v3.model.set_new_backup_policy_request_body import SetNewBackupPolicyRequestBody
255
271
  from huaweicloudsdkgaussdbforopengauss.v3.model.set_new_backup_policy_response import SetNewBackupPolicyResponse
@@ -0,0 +1,168 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class InstallKernelPluginRequest:
9
+
10
+ """
11
+ Attributes:
12
+ openapi_types (dict): The key is attribute name
13
+ and the value is attribute type.
14
+ attribute_map (dict): The key is attribute name
15
+ and the value is json key in definition.
16
+ """
17
+ sensitive_list = []
18
+
19
+ openapi_types = {
20
+ 'x_language': 'str',
21
+ 'instance_id': 'str',
22
+ 'body': 'InstallKernelPluginRequestBody'
23
+ }
24
+
25
+ attribute_map = {
26
+ 'x_language': 'X-Language',
27
+ 'instance_id': 'instance_id',
28
+ 'body': 'body'
29
+ }
30
+
31
+ def __init__(self, x_language=None, instance_id=None, body=None):
32
+ """InstallKernelPluginRequest
33
+
34
+ The model defined in huaweicloud sdk
35
+
36
+ :param x_language: 语言。
37
+ :type x_language: str
38
+ :param instance_id: 需要安装插件的实例id
39
+ :type instance_id: str
40
+ :param body: Body of the InstallKernelPluginRequest
41
+ :type body: :class:`huaweicloudsdkgaussdbforopengauss.v3.InstallKernelPluginRequestBody`
42
+ """
43
+
44
+
45
+
46
+ self._x_language = None
47
+ self._instance_id = None
48
+ self._body = None
49
+ self.discriminator = None
50
+
51
+ if x_language is not None:
52
+ self.x_language = x_language
53
+ self.instance_id = instance_id
54
+ if body is not None:
55
+ self.body = body
56
+
57
+ @property
58
+ def x_language(self):
59
+ """Gets the x_language of this InstallKernelPluginRequest.
60
+
61
+ 语言。
62
+
63
+ :return: The x_language of this InstallKernelPluginRequest.
64
+ :rtype: str
65
+ """
66
+ return self._x_language
67
+
68
+ @x_language.setter
69
+ def x_language(self, x_language):
70
+ """Sets the x_language of this InstallKernelPluginRequest.
71
+
72
+ 语言。
73
+
74
+ :param x_language: The x_language of this InstallKernelPluginRequest.
75
+ :type x_language: str
76
+ """
77
+ self._x_language = x_language
78
+
79
+ @property
80
+ def instance_id(self):
81
+ """Gets the instance_id of this InstallKernelPluginRequest.
82
+
83
+ 需要安装插件的实例id
84
+
85
+ :return: The instance_id of this InstallKernelPluginRequest.
86
+ :rtype: str
87
+ """
88
+ return self._instance_id
89
+
90
+ @instance_id.setter
91
+ def instance_id(self, instance_id):
92
+ """Sets the instance_id of this InstallKernelPluginRequest.
93
+
94
+ 需要安装插件的实例id
95
+
96
+ :param instance_id: The instance_id of this InstallKernelPluginRequest.
97
+ :type instance_id: str
98
+ """
99
+ self._instance_id = instance_id
100
+
101
+ @property
102
+ def body(self):
103
+ """Gets the body of this InstallKernelPluginRequest.
104
+
105
+ :return: The body of this InstallKernelPluginRequest.
106
+ :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.InstallKernelPluginRequestBody`
107
+ """
108
+ return self._body
109
+
110
+ @body.setter
111
+ def body(self, body):
112
+ """Sets the body of this InstallKernelPluginRequest.
113
+
114
+ :param body: The body of this InstallKernelPluginRequest.
115
+ :type body: :class:`huaweicloudsdkgaussdbforopengauss.v3.InstallKernelPluginRequestBody`
116
+ """
117
+ self._body = body
118
+
119
+ def to_dict(self):
120
+ """Returns the model properties as a dict"""
121
+ result = {}
122
+
123
+ for attr, _ in six.iteritems(self.openapi_types):
124
+ value = getattr(self, attr)
125
+ if isinstance(value, list):
126
+ result[attr] = list(map(
127
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
128
+ value
129
+ ))
130
+ elif hasattr(value, "to_dict"):
131
+ result[attr] = value.to_dict()
132
+ elif isinstance(value, dict):
133
+ result[attr] = dict(map(
134
+ lambda item: (item[0], item[1].to_dict())
135
+ if hasattr(item[1], "to_dict") else item,
136
+ value.items()
137
+ ))
138
+ else:
139
+ if attr in self.sensitive_list:
140
+ result[attr] = "****"
141
+ else:
142
+ result[attr] = value
143
+
144
+ return result
145
+
146
+ def to_str(self):
147
+ """Returns the string representation of the model"""
148
+ import simplejson as json
149
+ if six.PY2:
150
+ import sys
151
+ reload(sys)
152
+ sys.setdefaultencoding("utf-8")
153
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
154
+
155
+ def __repr__(self):
156
+ """For `print`"""
157
+ return self.to_str()
158
+
159
+ def __eq__(self, other):
160
+ """Returns true if both objects are equal"""
161
+ if not isinstance(other, InstallKernelPluginRequest):
162
+ return False
163
+
164
+ return self.__dict__ == other.__dict__
165
+
166
+ def __ne__(self, other):
167
+ """Returns true if both objects are not equal"""
168
+ return not self == other