alibabacloud-rds20140815 7.3.1__py3-none-any.whl → 8.0.0__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.
@@ -788,6 +788,234 @@ class Client(OpenApiClient):
788
788
  runtime = util_models.RuntimeOptions()
789
789
  return await self.allocate_read_write_splitting_connection_with_options_async(request, runtime)
790
790
 
791
+ def attach_rcdisk_with_options(
792
+ self,
793
+ request: rds_20140815_models.AttachRCDiskRequest,
794
+ runtime: util_models.RuntimeOptions,
795
+ ) -> rds_20140815_models.AttachRCDiskResponse:
796
+ """
797
+ @summary 挂载RC云盘
798
+
799
+ @param request: AttachRCDiskRequest
800
+ @param runtime: runtime options for this request RuntimeOptions
801
+ @return: AttachRCDiskResponse
802
+ """
803
+ UtilClient.validate_model(request)
804
+ query = {}
805
+ if not UtilClient.is_unset(request.delete_with_instance):
806
+ query['DeleteWithInstance'] = request.delete_with_instance
807
+ if not UtilClient.is_unset(request.disk_id):
808
+ query['DiskId'] = request.disk_id
809
+ if not UtilClient.is_unset(request.instance_id):
810
+ query['InstanceId'] = request.instance_id
811
+ if not UtilClient.is_unset(request.region_id):
812
+ query['RegionId'] = request.region_id
813
+ req = open_api_models.OpenApiRequest(
814
+ query=OpenApiUtilClient.query(query)
815
+ )
816
+ params = open_api_models.Params(
817
+ action='AttachRCDisk',
818
+ version='2014-08-15',
819
+ protocol='HTTPS',
820
+ pathname='/',
821
+ method='POST',
822
+ auth_type='AK',
823
+ style='RPC',
824
+ req_body_type='formData',
825
+ body_type='json'
826
+ )
827
+ return TeaCore.from_map(
828
+ rds_20140815_models.AttachRCDiskResponse(),
829
+ self.call_api(params, req, runtime)
830
+ )
831
+
832
+ async def attach_rcdisk_with_options_async(
833
+ self,
834
+ request: rds_20140815_models.AttachRCDiskRequest,
835
+ runtime: util_models.RuntimeOptions,
836
+ ) -> rds_20140815_models.AttachRCDiskResponse:
837
+ """
838
+ @summary 挂载RC云盘
839
+
840
+ @param request: AttachRCDiskRequest
841
+ @param runtime: runtime options for this request RuntimeOptions
842
+ @return: AttachRCDiskResponse
843
+ """
844
+ UtilClient.validate_model(request)
845
+ query = {}
846
+ if not UtilClient.is_unset(request.delete_with_instance):
847
+ query['DeleteWithInstance'] = request.delete_with_instance
848
+ if not UtilClient.is_unset(request.disk_id):
849
+ query['DiskId'] = request.disk_id
850
+ if not UtilClient.is_unset(request.instance_id):
851
+ query['InstanceId'] = request.instance_id
852
+ if not UtilClient.is_unset(request.region_id):
853
+ query['RegionId'] = request.region_id
854
+ req = open_api_models.OpenApiRequest(
855
+ query=OpenApiUtilClient.query(query)
856
+ )
857
+ params = open_api_models.Params(
858
+ action='AttachRCDisk',
859
+ version='2014-08-15',
860
+ protocol='HTTPS',
861
+ pathname='/',
862
+ method='POST',
863
+ auth_type='AK',
864
+ style='RPC',
865
+ req_body_type='formData',
866
+ body_type='json'
867
+ )
868
+ return TeaCore.from_map(
869
+ rds_20140815_models.AttachRCDiskResponse(),
870
+ await self.call_api_async(params, req, runtime)
871
+ )
872
+
873
+ def attach_rcdisk(
874
+ self,
875
+ request: rds_20140815_models.AttachRCDiskRequest,
876
+ ) -> rds_20140815_models.AttachRCDiskResponse:
877
+ """
878
+ @summary 挂载RC云盘
879
+
880
+ @param request: AttachRCDiskRequest
881
+ @return: AttachRCDiskResponse
882
+ """
883
+ runtime = util_models.RuntimeOptions()
884
+ return self.attach_rcdisk_with_options(request, runtime)
885
+
886
+ async def attach_rcdisk_async(
887
+ self,
888
+ request: rds_20140815_models.AttachRCDiskRequest,
889
+ ) -> rds_20140815_models.AttachRCDiskResponse:
890
+ """
891
+ @summary 挂载RC云盘
892
+
893
+ @param request: AttachRCDiskRequest
894
+ @return: AttachRCDiskResponse
895
+ """
896
+ runtime = util_models.RuntimeOptions()
897
+ return await self.attach_rcdisk_with_options_async(request, runtime)
898
+
899
+ def attach_rcinstances_with_options(
900
+ self,
901
+ tmp_req: rds_20140815_models.AttachRCInstancesRequest,
902
+ runtime: util_models.RuntimeOptions,
903
+ ) -> rds_20140815_models.AttachRCInstancesResponse:
904
+ """
905
+ @summary Adds RDS Custom nodes to a Container Service for Kubernetes (ACK) cluster.
906
+
907
+ @param tmp_req: AttachRCInstancesRequest
908
+ @param runtime: runtime options for this request RuntimeOptions
909
+ @return: AttachRCInstancesResponse
910
+ """
911
+ UtilClient.validate_model(tmp_req)
912
+ request = rds_20140815_models.AttachRCInstancesShrinkRequest()
913
+ OpenApiUtilClient.convert(tmp_req, request)
914
+ if not UtilClient.is_unset(tmp_req.instance_ids):
915
+ request.instance_ids_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.instance_ids, 'InstanceIds', 'simple')
916
+ query = {}
917
+ if not UtilClient.is_unset(request.instance_ids_shrink):
918
+ query['InstanceIds'] = request.instance_ids_shrink
919
+ if not UtilClient.is_unset(request.key_pair):
920
+ query['KeyPair'] = request.key_pair
921
+ if not UtilClient.is_unset(request.password):
922
+ query['Password'] = request.password
923
+ if not UtilClient.is_unset(request.region_id):
924
+ query['RegionId'] = request.region_id
925
+ if not UtilClient.is_unset(request.vpc_id):
926
+ query['VpcId'] = request.vpc_id
927
+ req = open_api_models.OpenApiRequest(
928
+ query=OpenApiUtilClient.query(query)
929
+ )
930
+ params = open_api_models.Params(
931
+ action='AttachRCInstances',
932
+ version='2014-08-15',
933
+ protocol='HTTPS',
934
+ pathname='/',
935
+ method='POST',
936
+ auth_type='AK',
937
+ style='RPC',
938
+ req_body_type='formData',
939
+ body_type='json'
940
+ )
941
+ return TeaCore.from_map(
942
+ rds_20140815_models.AttachRCInstancesResponse(),
943
+ self.call_api(params, req, runtime)
944
+ )
945
+
946
+ async def attach_rcinstances_with_options_async(
947
+ self,
948
+ tmp_req: rds_20140815_models.AttachRCInstancesRequest,
949
+ runtime: util_models.RuntimeOptions,
950
+ ) -> rds_20140815_models.AttachRCInstancesResponse:
951
+ """
952
+ @summary Adds RDS Custom nodes to a Container Service for Kubernetes (ACK) cluster.
953
+
954
+ @param tmp_req: AttachRCInstancesRequest
955
+ @param runtime: runtime options for this request RuntimeOptions
956
+ @return: AttachRCInstancesResponse
957
+ """
958
+ UtilClient.validate_model(tmp_req)
959
+ request = rds_20140815_models.AttachRCInstancesShrinkRequest()
960
+ OpenApiUtilClient.convert(tmp_req, request)
961
+ if not UtilClient.is_unset(tmp_req.instance_ids):
962
+ request.instance_ids_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.instance_ids, 'InstanceIds', 'simple')
963
+ query = {}
964
+ if not UtilClient.is_unset(request.instance_ids_shrink):
965
+ query['InstanceIds'] = request.instance_ids_shrink
966
+ if not UtilClient.is_unset(request.key_pair):
967
+ query['KeyPair'] = request.key_pair
968
+ if not UtilClient.is_unset(request.password):
969
+ query['Password'] = request.password
970
+ if not UtilClient.is_unset(request.region_id):
971
+ query['RegionId'] = request.region_id
972
+ if not UtilClient.is_unset(request.vpc_id):
973
+ query['VpcId'] = request.vpc_id
974
+ req = open_api_models.OpenApiRequest(
975
+ query=OpenApiUtilClient.query(query)
976
+ )
977
+ params = open_api_models.Params(
978
+ action='AttachRCInstances',
979
+ version='2014-08-15',
980
+ protocol='HTTPS',
981
+ pathname='/',
982
+ method='POST',
983
+ auth_type='AK',
984
+ style='RPC',
985
+ req_body_type='formData',
986
+ body_type='json'
987
+ )
988
+ return TeaCore.from_map(
989
+ rds_20140815_models.AttachRCInstancesResponse(),
990
+ await self.call_api_async(params, req, runtime)
991
+ )
992
+
993
+ def attach_rcinstances(
994
+ self,
995
+ request: rds_20140815_models.AttachRCInstancesRequest,
996
+ ) -> rds_20140815_models.AttachRCInstancesResponse:
997
+ """
998
+ @summary Adds RDS Custom nodes to a Container Service for Kubernetes (ACK) cluster.
999
+
1000
+ @param request: AttachRCInstancesRequest
1001
+ @return: AttachRCInstancesResponse
1002
+ """
1003
+ runtime = util_models.RuntimeOptions()
1004
+ return self.attach_rcinstances_with_options(request, runtime)
1005
+
1006
+ async def attach_rcinstances_async(
1007
+ self,
1008
+ request: rds_20140815_models.AttachRCInstancesRequest,
1009
+ ) -> rds_20140815_models.AttachRCInstancesResponse:
1010
+ """
1011
+ @summary Adds RDS Custom nodes to a Container Service for Kubernetes (ACK) cluster.
1012
+
1013
+ @param request: AttachRCInstancesRequest
1014
+ @return: AttachRCInstancesResponse
1015
+ """
1016
+ runtime = util_models.RuntimeOptions()
1017
+ return await self.attach_rcinstances_with_options_async(request, runtime)
1018
+
791
1019
  def attach_whitelist_template_to_instance_with_options(
792
1020
  self,
793
1021
  request: rds_20140815_models.AttachWhitelistTemplateToInstanceRequest,
@@ -1082,24 +1310,24 @@ class Client(OpenApiClient):
1082
1310
  runtime: util_models.RuntimeOptions,
1083
1311
  ) -> rds_20140815_models.CancelActiveOperationTasksResponse:
1084
1312
  """
1085
- @summary This interface is used to cancel maintenance tasks that have not yet started.
1086
-
1087
- @description ### Supported Engines
1088
- - RDS MySQL
1089
- - RDS PostgreSQL
1090
- - RDS SQL Server
1091
- - RDS MariaDB
1092
- ### Related Function Documentation
1093
- >Notice: Before using this interface, please carefully read the function documentation to ensure you fully understand the prerequisites and the impact of using the interface before proceeding with the operation.
1094
- - [RDS MySQL Scheduled Events](https://help.aliyun.com/document_detail/104183.html)
1095
- - [RDS PostgreSQL Scheduled Events](https://help.aliyun.com/document_detail/104452.html)
1096
- - [RDS SQL Server Scheduled Events](https://help.aliyun.com/document_detail/104451.html)
1097
- - [RDS MariaDB Scheduled Events](https://help.aliyun.com/document_detail/104454.html)
1098
- ### Usage Restrictions
1099
- The task cannot be canceled under the following conditions:
1100
- - `allowCancel` is 0.
1101
- - The current time is later than the task start time.
1102
- - The task status is not 3 (waiting for execution).
1313
+ @summary Cancels O\\&M tasks that are not started.
1314
+
1315
+ @description ### [](#)Supported database engines
1316
+ MySQL
1317
+ PostgreSQL
1318
+ SQL Server
1319
+ MariaDB
1320
+ ### [](#)References
1321
+ > Before you call this operation, read the following topics and make sure that you fully understand the prerequisites and impacts of this operation.
1322
+ [Scheduled events for ApsaraDB RDS for MySQL instances](https://help.aliyun.com/document_detail/104183.html)
1323
+ [Scheduled events for ApsaraDB RDS for PostgreSQL instances](https://help.aliyun.com/document_detail/104452.html)
1324
+ [Scheduled events for ApsaraDB RDS for SQL Server instances](https://help.aliyun.com/document_detail/104451.html)
1325
+ [Scheduled events for ApsaraDB RDS for MariaDB instances](https://help.aliyun.com/document_detail/104454.html)
1326
+ ### [](#)Usage notes
1327
+ Tasks cannot be canceled in the following situations:
1328
+ The allowCancel parameter is set to 0.
1329
+ The current time is later than the task start time.
1330
+ The status of the task is not set to 3. The value 3 specifies that the task is waiting to be executed.
1103
1331
 
1104
1332
  @param request: CancelActiveOperationTasksRequest
1105
1333
  @param runtime: runtime options for this request RuntimeOptions
@@ -1144,24 +1372,24 @@ class Client(OpenApiClient):
1144
1372
  runtime: util_models.RuntimeOptions,
1145
1373
  ) -> rds_20140815_models.CancelActiveOperationTasksResponse:
1146
1374
  """
1147
- @summary This interface is used to cancel maintenance tasks that have not yet started.
1148
-
1149
- @description ### Supported Engines
1150
- - RDS MySQL
1151
- - RDS PostgreSQL
1152
- - RDS SQL Server
1153
- - RDS MariaDB
1154
- ### Related Function Documentation
1155
- >Notice: Before using this interface, please carefully read the function documentation to ensure you fully understand the prerequisites and the impact of using the interface before proceeding with the operation.
1156
- - [RDS MySQL Scheduled Events](https://help.aliyun.com/document_detail/104183.html)
1157
- - [RDS PostgreSQL Scheduled Events](https://help.aliyun.com/document_detail/104452.html)
1158
- - [RDS SQL Server Scheduled Events](https://help.aliyun.com/document_detail/104451.html)
1159
- - [RDS MariaDB Scheduled Events](https://help.aliyun.com/document_detail/104454.html)
1160
- ### Usage Restrictions
1161
- The task cannot be canceled under the following conditions:
1162
- - `allowCancel` is 0.
1163
- - The current time is later than the task start time.
1164
- - The task status is not 3 (waiting for execution).
1375
+ @summary Cancels O\\&M tasks that are not started.
1376
+
1377
+ @description ### [](#)Supported database engines
1378
+ MySQL
1379
+ PostgreSQL
1380
+ SQL Server
1381
+ MariaDB
1382
+ ### [](#)References
1383
+ > Before you call this operation, read the following topics and make sure that you fully understand the prerequisites and impacts of this operation.
1384
+ [Scheduled events for ApsaraDB RDS for MySQL instances](https://help.aliyun.com/document_detail/104183.html)
1385
+ [Scheduled events for ApsaraDB RDS for PostgreSQL instances](https://help.aliyun.com/document_detail/104452.html)
1386
+ [Scheduled events for ApsaraDB RDS for SQL Server instances](https://help.aliyun.com/document_detail/104451.html)
1387
+ [Scheduled events for ApsaraDB RDS for MariaDB instances](https://help.aliyun.com/document_detail/104454.html)
1388
+ ### [](#)Usage notes
1389
+ Tasks cannot be canceled in the following situations:
1390
+ The allowCancel parameter is set to 0.
1391
+ The current time is later than the task start time.
1392
+ The status of the task is not set to 3. The value 3 specifies that the task is waiting to be executed.
1165
1393
 
1166
1394
  @param request: CancelActiveOperationTasksRequest
1167
1395
  @param runtime: runtime options for this request RuntimeOptions
@@ -1205,24 +1433,24 @@ class Client(OpenApiClient):
1205
1433
  request: rds_20140815_models.CancelActiveOperationTasksRequest,
1206
1434
  ) -> rds_20140815_models.CancelActiveOperationTasksResponse:
1207
1435
  """
1208
- @summary This interface is used to cancel maintenance tasks that have not yet started.
1209
-
1210
- @description ### Supported Engines
1211
- - RDS MySQL
1212
- - RDS PostgreSQL
1213
- - RDS SQL Server
1214
- - RDS MariaDB
1215
- ### Related Function Documentation
1216
- >Notice: Before using this interface, please carefully read the function documentation to ensure you fully understand the prerequisites and the impact of using the interface before proceeding with the operation.
1217
- - [RDS MySQL Scheduled Events](https://help.aliyun.com/document_detail/104183.html)
1218
- - [RDS PostgreSQL Scheduled Events](https://help.aliyun.com/document_detail/104452.html)
1219
- - [RDS SQL Server Scheduled Events](https://help.aliyun.com/document_detail/104451.html)
1220
- - [RDS MariaDB Scheduled Events](https://help.aliyun.com/document_detail/104454.html)
1221
- ### Usage Restrictions
1222
- The task cannot be canceled under the following conditions:
1223
- - `allowCancel` is 0.
1224
- - The current time is later than the task start time.
1225
- - The task status is not 3 (waiting for execution).
1436
+ @summary Cancels O\\&M tasks that are not started.
1437
+
1438
+ @description ### [](#)Supported database engines
1439
+ MySQL
1440
+ PostgreSQL
1441
+ SQL Server
1442
+ MariaDB
1443
+ ### [](#)References
1444
+ > Before you call this operation, read the following topics and make sure that you fully understand the prerequisites and impacts of this operation.
1445
+ [Scheduled events for ApsaraDB RDS for MySQL instances](https://help.aliyun.com/document_detail/104183.html)
1446
+ [Scheduled events for ApsaraDB RDS for PostgreSQL instances](https://help.aliyun.com/document_detail/104452.html)
1447
+ [Scheduled events for ApsaraDB RDS for SQL Server instances](https://help.aliyun.com/document_detail/104451.html)
1448
+ [Scheduled events for ApsaraDB RDS for MariaDB instances](https://help.aliyun.com/document_detail/104454.html)
1449
+ ### [](#)Usage notes
1450
+ Tasks cannot be canceled in the following situations:
1451
+ The allowCancel parameter is set to 0.
1452
+ The current time is later than the task start time.
1453
+ The status of the task is not set to 3. The value 3 specifies that the task is waiting to be executed.
1226
1454
 
1227
1455
  @param request: CancelActiveOperationTasksRequest
1228
1456
  @return: CancelActiveOperationTasksResponse
@@ -1235,24 +1463,24 @@ class Client(OpenApiClient):
1235
1463
  request: rds_20140815_models.CancelActiveOperationTasksRequest,
1236
1464
  ) -> rds_20140815_models.CancelActiveOperationTasksResponse:
1237
1465
  """
1238
- @summary This interface is used to cancel maintenance tasks that have not yet started.
1239
-
1240
- @description ### Supported Engines
1241
- - RDS MySQL
1242
- - RDS PostgreSQL
1243
- - RDS SQL Server
1244
- - RDS MariaDB
1245
- ### Related Function Documentation
1246
- >Notice: Before using this interface, please carefully read the function documentation to ensure you fully understand the prerequisites and the impact of using the interface before proceeding with the operation.
1247
- - [RDS MySQL Scheduled Events](https://help.aliyun.com/document_detail/104183.html)
1248
- - [RDS PostgreSQL Scheduled Events](https://help.aliyun.com/document_detail/104452.html)
1249
- - [RDS SQL Server Scheduled Events](https://help.aliyun.com/document_detail/104451.html)
1250
- - [RDS MariaDB Scheduled Events](https://help.aliyun.com/document_detail/104454.html)
1251
- ### Usage Restrictions
1252
- The task cannot be canceled under the following conditions:
1253
- - `allowCancel` is 0.
1254
- - The current time is later than the task start time.
1255
- - The task status is not 3 (waiting for execution).
1466
+ @summary Cancels O\\&M tasks that are not started.
1467
+
1468
+ @description ### [](#)Supported database engines
1469
+ MySQL
1470
+ PostgreSQL
1471
+ SQL Server
1472
+ MariaDB
1473
+ ### [](#)References
1474
+ > Before you call this operation, read the following topics and make sure that you fully understand the prerequisites and impacts of this operation.
1475
+ [Scheduled events for ApsaraDB RDS for MySQL instances](https://help.aliyun.com/document_detail/104183.html)
1476
+ [Scheduled events for ApsaraDB RDS for PostgreSQL instances](https://help.aliyun.com/document_detail/104452.html)
1477
+ [Scheduled events for ApsaraDB RDS for SQL Server instances](https://help.aliyun.com/document_detail/104451.html)
1478
+ [Scheduled events for ApsaraDB RDS for MariaDB instances](https://help.aliyun.com/document_detail/104454.html)
1479
+ ### [](#)Usage notes
1480
+ Tasks cannot be canceled in the following situations:
1481
+ The allowCancel parameter is set to 0.
1482
+ The current time is later than the task start time.
1483
+ The status of the task is not set to 3. The value 3 specifies that the task is waiting to be executed.
1256
1484
 
1257
1485
  @param request: CancelActiveOperationTasksRequest
1258
1486
  @return: CancelActiveOperationTasksResponse
@@ -3682,6 +3910,8 @@ class Client(OpenApiClient):
3682
3910
  query['AutoPay'] = request.auto_pay
3683
3911
  if not UtilClient.is_unset(request.auto_renew):
3684
3912
  query['AutoRenew'] = request.auto_renew
3913
+ if not UtilClient.is_unset(request.auto_use_coupon):
3914
+ query['AutoUseCoupon'] = request.auto_use_coupon
3685
3915
  if not UtilClient.is_unset(request.babelfish_config):
3686
3916
  query['BabelfishConfig'] = request.babelfish_config
3687
3917
  if not UtilClient.is_unset(request.bpe_enabled):
@@ -3742,6 +3972,8 @@ class Client(OpenApiClient):
3742
3972
  query['Port'] = request.port
3743
3973
  if not UtilClient.is_unset(request.private_ip_address):
3744
3974
  query['PrivateIpAddress'] = request.private_ip_address
3975
+ if not UtilClient.is_unset(request.promotion_code):
3976
+ query['PromotionCode'] = request.promotion_code
3745
3977
  if not UtilClient.is_unset(request.region_id):
3746
3978
  query['RegionId'] = request.region_id
3747
3979
  if not UtilClient.is_unset(request.resource_group_id):
@@ -3849,6 +4081,8 @@ class Client(OpenApiClient):
3849
4081
  query['AutoPay'] = request.auto_pay
3850
4082
  if not UtilClient.is_unset(request.auto_renew):
3851
4083
  query['AutoRenew'] = request.auto_renew
4084
+ if not UtilClient.is_unset(request.auto_use_coupon):
4085
+ query['AutoUseCoupon'] = request.auto_use_coupon
3852
4086
  if not UtilClient.is_unset(request.babelfish_config):
3853
4087
  query['BabelfishConfig'] = request.babelfish_config
3854
4088
  if not UtilClient.is_unset(request.bpe_enabled):
@@ -3909,6 +4143,8 @@ class Client(OpenApiClient):
3909
4143
  query['Port'] = request.port
3910
4144
  if not UtilClient.is_unset(request.private_ip_address):
3911
4145
  query['PrivateIpAddress'] = request.private_ip_address
4146
+ if not UtilClient.is_unset(request.promotion_code):
4147
+ query['PromotionCode'] = request.promotion_code
3912
4148
  if not UtilClient.is_unset(request.region_id):
3913
4149
  query['RegionId'] = request.region_id
3914
4150
  if not UtilClient.is_unset(request.resource_group_id):
@@ -5484,122 +5720,6 @@ class Client(OpenApiClient):
5484
5720
  runtime = util_models.RuntimeOptions()
5485
5721
  return await self.create_ddr_instance_with_options_async(request, runtime)
5486
5722
 
5487
- def create_diagnostic_report_with_options(
5488
- self,
5489
- request: rds_20140815_models.CreateDiagnosticReportRequest,
5490
- runtime: util_models.RuntimeOptions,
5491
- ) -> rds_20140815_models.CreateDiagnosticReportResponse:
5492
- """
5493
- @summary Creates a diagnostic report.
5494
-
5495
- @description > This operation is no longer maintained. You can call the CreateDiagnosticReport operation of Database Autonomy Service (DAS) to create a diagnostic report.
5496
- After you call this operation to create a diagnostic report, you can call the DescribeDiagnosticReportList operation to download the diagnostic report.
5497
-
5498
- @param request: CreateDiagnosticReportRequest
5499
- @param runtime: runtime options for this request RuntimeOptions
5500
- @return: CreateDiagnosticReportResponse
5501
- """
5502
- UtilClient.validate_model(request)
5503
- query = {}
5504
- if not UtilClient.is_unset(request.dbinstance_id):
5505
- query['DBInstanceId'] = request.dbinstance_id
5506
- if not UtilClient.is_unset(request.end_time):
5507
- query['EndTime'] = request.end_time
5508
- if not UtilClient.is_unset(request.start_time):
5509
- query['StartTime'] = request.start_time
5510
- req = open_api_models.OpenApiRequest(
5511
- query=OpenApiUtilClient.query(query)
5512
- )
5513
- params = open_api_models.Params(
5514
- action='CreateDiagnosticReport',
5515
- version='2014-08-15',
5516
- protocol='HTTPS',
5517
- pathname='/',
5518
- method='POST',
5519
- auth_type='AK',
5520
- style='RPC',
5521
- req_body_type='formData',
5522
- body_type='json'
5523
- )
5524
- return TeaCore.from_map(
5525
- rds_20140815_models.CreateDiagnosticReportResponse(),
5526
- self.call_api(params, req, runtime)
5527
- )
5528
-
5529
- async def create_diagnostic_report_with_options_async(
5530
- self,
5531
- request: rds_20140815_models.CreateDiagnosticReportRequest,
5532
- runtime: util_models.RuntimeOptions,
5533
- ) -> rds_20140815_models.CreateDiagnosticReportResponse:
5534
- """
5535
- @summary Creates a diagnostic report.
5536
-
5537
- @description > This operation is no longer maintained. You can call the CreateDiagnosticReport operation of Database Autonomy Service (DAS) to create a diagnostic report.
5538
- After you call this operation to create a diagnostic report, you can call the DescribeDiagnosticReportList operation to download the diagnostic report.
5539
-
5540
- @param request: CreateDiagnosticReportRequest
5541
- @param runtime: runtime options for this request RuntimeOptions
5542
- @return: CreateDiagnosticReportResponse
5543
- """
5544
- UtilClient.validate_model(request)
5545
- query = {}
5546
- if not UtilClient.is_unset(request.dbinstance_id):
5547
- query['DBInstanceId'] = request.dbinstance_id
5548
- if not UtilClient.is_unset(request.end_time):
5549
- query['EndTime'] = request.end_time
5550
- if not UtilClient.is_unset(request.start_time):
5551
- query['StartTime'] = request.start_time
5552
- req = open_api_models.OpenApiRequest(
5553
- query=OpenApiUtilClient.query(query)
5554
- )
5555
- params = open_api_models.Params(
5556
- action='CreateDiagnosticReport',
5557
- version='2014-08-15',
5558
- protocol='HTTPS',
5559
- pathname='/',
5560
- method='POST',
5561
- auth_type='AK',
5562
- style='RPC',
5563
- req_body_type='formData',
5564
- body_type='json'
5565
- )
5566
- return TeaCore.from_map(
5567
- rds_20140815_models.CreateDiagnosticReportResponse(),
5568
- await self.call_api_async(params, req, runtime)
5569
- )
5570
-
5571
- def create_diagnostic_report(
5572
- self,
5573
- request: rds_20140815_models.CreateDiagnosticReportRequest,
5574
- ) -> rds_20140815_models.CreateDiagnosticReportResponse:
5575
- """
5576
- @summary Creates a diagnostic report.
5577
-
5578
- @description > This operation is no longer maintained. You can call the CreateDiagnosticReport operation of Database Autonomy Service (DAS) to create a diagnostic report.
5579
- After you call this operation to create a diagnostic report, you can call the DescribeDiagnosticReportList operation to download the diagnostic report.
5580
-
5581
- @param request: CreateDiagnosticReportRequest
5582
- @return: CreateDiagnosticReportResponse
5583
- """
5584
- runtime = util_models.RuntimeOptions()
5585
- return self.create_diagnostic_report_with_options(request, runtime)
5586
-
5587
- async def create_diagnostic_report_async(
5588
- self,
5589
- request: rds_20140815_models.CreateDiagnosticReportRequest,
5590
- ) -> rds_20140815_models.CreateDiagnosticReportResponse:
5591
- """
5592
- @summary Creates a diagnostic report.
5593
-
5594
- @description > This operation is no longer maintained. You can call the CreateDiagnosticReport operation of Database Autonomy Service (DAS) to create a diagnostic report.
5595
- After you call this operation to create a diagnostic report, you can call the DescribeDiagnosticReportList operation to download the diagnostic report.
5596
-
5597
- @param request: CreateDiagnosticReportRequest
5598
- @return: CreateDiagnosticReportResponse
5599
- """
5600
- runtime = util_models.RuntimeOptions()
5601
- return await self.create_diagnostic_report_with_options_async(request, runtime)
5602
-
5603
5723
  def create_gadinstance_with_options(
5604
5724
  self,
5605
5725
  request: rds_20140815_models.CreateGADInstanceRequest,
@@ -6729,14 +6849,14 @@ class Client(OpenApiClient):
6729
6849
  @summary Creates an extension for a database.
6730
6850
 
6731
6851
  @description ### [](#)Supported database engines
6732
- RDS PostgreSQL
6852
+ PostgreSQL
6733
6853
  ### [](#)References
6734
- > : Before you call this operation, carefully read the following documentation. Make sure that you fully understand the prerequisites and impacts for calling this operation.
6854
+ > Before you call this operation, read the following topics and make sure that you fully understand the prerequisites and impacts of this operation.
6735
6855
  [Manage extensions](https://help.aliyun.com/document_detail/2402409.html)
6736
- ### [](#)Precautions
6737
- Install only the plug-ins that are supported by the major engine version of the instance. Otherwise, the installation fails.
6738
- For more information, see [Extensions supported by ApsaraDB RDS for PostgreSQL](https://help.aliyun.com/document_detail/142340.html).
6739
- You can call the [DescribeDBInstanceAttribute](https://help.aliyun.com/document_detail/610394.html) operation to query the major engine version of an instance.
6856
+ ### [](#)Usage notes
6857
+ Install only the extensions that are supported by the major engine version of the instance. Otherwise, the installation fails.
6858
+ For more information, see [Supported extensions](https://help.aliyun.com/document_detail/142340.html).
6859
+ You can call an API operation to query the major engine version of the instance. For more information, see [DescribeDBInstanceAttribute](https://help.aliyun.com/document_detail/610394.html).
6740
6860
 
6741
6861
  @param request: CreatePostgresExtensionsRequest
6742
6862
  @param runtime: runtime options for this request RuntimeOptions
@@ -6796,14 +6916,14 @@ class Client(OpenApiClient):
6796
6916
  @summary Creates an extension for a database.
6797
6917
 
6798
6918
  @description ### [](#)Supported database engines
6799
- RDS PostgreSQL
6919
+ PostgreSQL
6800
6920
  ### [](#)References
6801
- > : Before you call this operation, carefully read the following documentation. Make sure that you fully understand the prerequisites and impacts for calling this operation.
6921
+ > Before you call this operation, read the following topics and make sure that you fully understand the prerequisites and impacts of this operation.
6802
6922
  [Manage extensions](https://help.aliyun.com/document_detail/2402409.html)
6803
- ### [](#)Precautions
6804
- Install only the plug-ins that are supported by the major engine version of the instance. Otherwise, the installation fails.
6805
- For more information, see [Extensions supported by ApsaraDB RDS for PostgreSQL](https://help.aliyun.com/document_detail/142340.html).
6806
- You can call the [DescribeDBInstanceAttribute](https://help.aliyun.com/document_detail/610394.html) operation to query the major engine version of an instance.
6923
+ ### [](#)Usage notes
6924
+ Install only the extensions that are supported by the major engine version of the instance. Otherwise, the installation fails.
6925
+ For more information, see [Supported extensions](https://help.aliyun.com/document_detail/142340.html).
6926
+ You can call an API operation to query the major engine version of the instance. For more information, see [DescribeDBInstanceAttribute](https://help.aliyun.com/document_detail/610394.html).
6807
6927
 
6808
6928
  @param request: CreatePostgresExtensionsRequest
6809
6929
  @param runtime: runtime options for this request RuntimeOptions
@@ -6862,14 +6982,14 @@ class Client(OpenApiClient):
6862
6982
  @summary Creates an extension for a database.
6863
6983
 
6864
6984
  @description ### [](#)Supported database engines
6865
- RDS PostgreSQL
6985
+ PostgreSQL
6866
6986
  ### [](#)References
6867
- > : Before you call this operation, carefully read the following documentation. Make sure that you fully understand the prerequisites and impacts for calling this operation.
6987
+ > Before you call this operation, read the following topics and make sure that you fully understand the prerequisites and impacts of this operation.
6868
6988
  [Manage extensions](https://help.aliyun.com/document_detail/2402409.html)
6869
- ### [](#)Precautions
6870
- Install only the plug-ins that are supported by the major engine version of the instance. Otherwise, the installation fails.
6871
- For more information, see [Extensions supported by ApsaraDB RDS for PostgreSQL](https://help.aliyun.com/document_detail/142340.html).
6872
- You can call the [DescribeDBInstanceAttribute](https://help.aliyun.com/document_detail/610394.html) operation to query the major engine version of an instance.
6989
+ ### [](#)Usage notes
6990
+ Install only the extensions that are supported by the major engine version of the instance. Otherwise, the installation fails.
6991
+ For more information, see [Supported extensions](https://help.aliyun.com/document_detail/142340.html).
6992
+ You can call an API operation to query the major engine version of the instance. For more information, see [DescribeDBInstanceAttribute](https://help.aliyun.com/document_detail/610394.html).
6873
6993
 
6874
6994
  @param request: CreatePostgresExtensionsRequest
6875
6995
  @return: CreatePostgresExtensionsResponse
@@ -6885,14 +7005,14 @@ class Client(OpenApiClient):
6885
7005
  @summary Creates an extension for a database.
6886
7006
 
6887
7007
  @description ### [](#)Supported database engines
6888
- RDS PostgreSQL
7008
+ PostgreSQL
6889
7009
  ### [](#)References
6890
- > : Before you call this operation, carefully read the following documentation. Make sure that you fully understand the prerequisites and impacts for calling this operation.
7010
+ > Before you call this operation, read the following topics and make sure that you fully understand the prerequisites and impacts of this operation.
6891
7011
  [Manage extensions](https://help.aliyun.com/document_detail/2402409.html)
6892
- ### [](#)Precautions
6893
- Install only the plug-ins that are supported by the major engine version of the instance. Otherwise, the installation fails.
6894
- For more information, see [Extensions supported by ApsaraDB RDS for PostgreSQL](https://help.aliyun.com/document_detail/142340.html).
6895
- You can call the [DescribeDBInstanceAttribute](https://help.aliyun.com/document_detail/610394.html) operation to query the major engine version of an instance.
7012
+ ### [](#)Usage notes
7013
+ Install only the extensions that are supported by the major engine version of the instance. Otherwise, the installation fails.
7014
+ For more information, see [Supported extensions](https://help.aliyun.com/document_detail/142340.html).
7015
+ You can call an API operation to query the major engine version of the instance. For more information, see [DescribeDBInstanceAttribute](https://help.aliyun.com/document_detail/610394.html).
6896
7016
 
6897
7017
  @param request: CreatePostgresExtensionsRequest
6898
7018
  @return: CreatePostgresExtensionsResponse
@@ -6928,6 +7048,8 @@ class Client(OpenApiClient):
6928
7048
  query['RegionId'] = request.region_id
6929
7049
  if not UtilClient.is_unset(request.strategy):
6930
7050
  query['Strategy'] = request.strategy
7051
+ if not UtilClient.is_unset(request.tag):
7052
+ query['Tag'] = request.tag
6931
7053
  req = open_api_models.OpenApiRequest(
6932
7054
  query=OpenApiUtilClient.query(query)
6933
7055
  )
@@ -6975,6 +7097,8 @@ class Client(OpenApiClient):
6975
7097
  query['RegionId'] = request.region_id
6976
7098
  if not UtilClient.is_unset(request.strategy):
6977
7099
  query['Strategy'] = request.strategy
7100
+ if not UtilClient.is_unset(request.tag):
7101
+ query['Tag'] = request.tag
6978
7102
  req = open_api_models.OpenApiRequest(
6979
7103
  query=OpenApiUtilClient.query(query)
6980
7104
  )
@@ -7020,6 +7144,310 @@ class Client(OpenApiClient):
7020
7144
  runtime = util_models.RuntimeOptions()
7021
7145
  return await self.create_rcdeployment_set_with_options_async(request, runtime)
7022
7146
 
7147
+ def create_rcdisk_with_options(
7148
+ self,
7149
+ request: rds_20140815_models.CreateRCDiskRequest,
7150
+ runtime: util_models.RuntimeOptions,
7151
+ ) -> rds_20140815_models.CreateRCDiskResponse:
7152
+ """
7153
+ @summary Creates a data disk for an RDS Custom instance.
7154
+
7155
+ @param request: CreateRCDiskRequest
7156
+ @param runtime: runtime options for this request RuntimeOptions
7157
+ @return: CreateRCDiskResponse
7158
+ """
7159
+ UtilClient.validate_model(request)
7160
+ query = {}
7161
+ if not UtilClient.is_unset(request.auto_pay):
7162
+ query['AutoPay'] = request.auto_pay
7163
+ if not UtilClient.is_unset(request.auto_renew):
7164
+ query['AutoRenew'] = request.auto_renew
7165
+ if not UtilClient.is_unset(request.description):
7166
+ query['Description'] = request.description
7167
+ if not UtilClient.is_unset(request.disk_category):
7168
+ query['DiskCategory'] = request.disk_category
7169
+ if not UtilClient.is_unset(request.disk_name):
7170
+ query['DiskName'] = request.disk_name
7171
+ if not UtilClient.is_unset(request.instance_charge_type):
7172
+ query['InstanceChargeType'] = request.instance_charge_type
7173
+ if not UtilClient.is_unset(request.performance_level):
7174
+ query['PerformanceLevel'] = request.performance_level
7175
+ if not UtilClient.is_unset(request.period):
7176
+ query['Period'] = request.period
7177
+ if not UtilClient.is_unset(request.period_unit):
7178
+ query['PeriodUnit'] = request.period_unit
7179
+ if not UtilClient.is_unset(request.region_id):
7180
+ query['RegionId'] = request.region_id
7181
+ if not UtilClient.is_unset(request.size):
7182
+ query['Size'] = request.size
7183
+ if not UtilClient.is_unset(request.snapshot_id):
7184
+ query['SnapshotId'] = request.snapshot_id
7185
+ if not UtilClient.is_unset(request.zone_id):
7186
+ query['ZoneId'] = request.zone_id
7187
+ req = open_api_models.OpenApiRequest(
7188
+ query=OpenApiUtilClient.query(query)
7189
+ )
7190
+ params = open_api_models.Params(
7191
+ action='CreateRCDisk',
7192
+ version='2014-08-15',
7193
+ protocol='HTTPS',
7194
+ pathname='/',
7195
+ method='POST',
7196
+ auth_type='AK',
7197
+ style='RPC',
7198
+ req_body_type='formData',
7199
+ body_type='json'
7200
+ )
7201
+ return TeaCore.from_map(
7202
+ rds_20140815_models.CreateRCDiskResponse(),
7203
+ self.call_api(params, req, runtime)
7204
+ )
7205
+
7206
+ async def create_rcdisk_with_options_async(
7207
+ self,
7208
+ request: rds_20140815_models.CreateRCDiskRequest,
7209
+ runtime: util_models.RuntimeOptions,
7210
+ ) -> rds_20140815_models.CreateRCDiskResponse:
7211
+ """
7212
+ @summary Creates a data disk for an RDS Custom instance.
7213
+
7214
+ @param request: CreateRCDiskRequest
7215
+ @param runtime: runtime options for this request RuntimeOptions
7216
+ @return: CreateRCDiskResponse
7217
+ """
7218
+ UtilClient.validate_model(request)
7219
+ query = {}
7220
+ if not UtilClient.is_unset(request.auto_pay):
7221
+ query['AutoPay'] = request.auto_pay
7222
+ if not UtilClient.is_unset(request.auto_renew):
7223
+ query['AutoRenew'] = request.auto_renew
7224
+ if not UtilClient.is_unset(request.description):
7225
+ query['Description'] = request.description
7226
+ if not UtilClient.is_unset(request.disk_category):
7227
+ query['DiskCategory'] = request.disk_category
7228
+ if not UtilClient.is_unset(request.disk_name):
7229
+ query['DiskName'] = request.disk_name
7230
+ if not UtilClient.is_unset(request.instance_charge_type):
7231
+ query['InstanceChargeType'] = request.instance_charge_type
7232
+ if not UtilClient.is_unset(request.performance_level):
7233
+ query['PerformanceLevel'] = request.performance_level
7234
+ if not UtilClient.is_unset(request.period):
7235
+ query['Period'] = request.period
7236
+ if not UtilClient.is_unset(request.period_unit):
7237
+ query['PeriodUnit'] = request.period_unit
7238
+ if not UtilClient.is_unset(request.region_id):
7239
+ query['RegionId'] = request.region_id
7240
+ if not UtilClient.is_unset(request.size):
7241
+ query['Size'] = request.size
7242
+ if not UtilClient.is_unset(request.snapshot_id):
7243
+ query['SnapshotId'] = request.snapshot_id
7244
+ if not UtilClient.is_unset(request.zone_id):
7245
+ query['ZoneId'] = request.zone_id
7246
+ req = open_api_models.OpenApiRequest(
7247
+ query=OpenApiUtilClient.query(query)
7248
+ )
7249
+ params = open_api_models.Params(
7250
+ action='CreateRCDisk',
7251
+ version='2014-08-15',
7252
+ protocol='HTTPS',
7253
+ pathname='/',
7254
+ method='POST',
7255
+ auth_type='AK',
7256
+ style='RPC',
7257
+ req_body_type='formData',
7258
+ body_type='json'
7259
+ )
7260
+ return TeaCore.from_map(
7261
+ rds_20140815_models.CreateRCDiskResponse(),
7262
+ await self.call_api_async(params, req, runtime)
7263
+ )
7264
+
7265
+ def create_rcdisk(
7266
+ self,
7267
+ request: rds_20140815_models.CreateRCDiskRequest,
7268
+ ) -> rds_20140815_models.CreateRCDiskResponse:
7269
+ """
7270
+ @summary Creates a data disk for an RDS Custom instance.
7271
+
7272
+ @param request: CreateRCDiskRequest
7273
+ @return: CreateRCDiskResponse
7274
+ """
7275
+ runtime = util_models.RuntimeOptions()
7276
+ return self.create_rcdisk_with_options(request, runtime)
7277
+
7278
+ async def create_rcdisk_async(
7279
+ self,
7280
+ request: rds_20140815_models.CreateRCDiskRequest,
7281
+ ) -> rds_20140815_models.CreateRCDiskResponse:
7282
+ """
7283
+ @summary Creates a data disk for an RDS Custom instance.
7284
+
7285
+ @param request: CreateRCDiskRequest
7286
+ @return: CreateRCDiskResponse
7287
+ """
7288
+ runtime = util_models.RuntimeOptions()
7289
+ return await self.create_rcdisk_with_options_async(request, runtime)
7290
+
7291
+ def create_rcsnapshot_with_options(
7292
+ self,
7293
+ request: rds_20140815_models.CreateRCSnapshotRequest,
7294
+ runtime: util_models.RuntimeOptions,
7295
+ ) -> rds_20140815_models.CreateRCSnapshotResponse:
7296
+ """
7297
+ @summary Creates a snapshot for a cloud disk.
7298
+
7299
+ @description In the following scenarios, you cannot create snapshots for a specific disk:
7300
+ The number of manual snapshots of the disk has reached 256.
7301
+ A snapshot is being created for the disk.
7302
+ The instance to which the disk is attached has never been started.
7303
+ The instance to which the disk is attached is not in the **Stopped** or **Running** state.
7304
+ When you create a snapshot, take note of the following items:
7305
+ If a snapshot is being created, the snapshot cannot be used to create a custom image by calling the CreateImage operation.
7306
+ When a snapshot is being created for a disk that is attached to an RDS Custom instance, do not change the instance state.
7307
+ You can create snapshots for a disk that is in the **Expired** state. If the release time scheduled for a disk arrives when a snapshot is being created for the disk, the snapshot in the Creating state is deleted when the disk is released.
7308
+
7309
+ @param request: CreateRCSnapshotRequest
7310
+ @param runtime: runtime options for this request RuntimeOptions
7311
+ @return: CreateRCSnapshotResponse
7312
+ """
7313
+ UtilClient.validate_model(request)
7314
+ query = {}
7315
+ if not UtilClient.is_unset(request.description):
7316
+ query['Description'] = request.description
7317
+ if not UtilClient.is_unset(request.disk_id):
7318
+ query['DiskId'] = request.disk_id
7319
+ if not UtilClient.is_unset(request.instant_access):
7320
+ query['InstantAccess'] = request.instant_access
7321
+ if not UtilClient.is_unset(request.instant_access_retention_days):
7322
+ query['InstantAccessRetentionDays'] = request.instant_access_retention_days
7323
+ if not UtilClient.is_unset(request.region_id):
7324
+ query['RegionId'] = request.region_id
7325
+ if not UtilClient.is_unset(request.retention_days):
7326
+ query['RetentionDays'] = request.retention_days
7327
+ if not UtilClient.is_unset(request.zone_id):
7328
+ query['ZoneId'] = request.zone_id
7329
+ req = open_api_models.OpenApiRequest(
7330
+ query=OpenApiUtilClient.query(query)
7331
+ )
7332
+ params = open_api_models.Params(
7333
+ action='CreateRCSnapshot',
7334
+ version='2014-08-15',
7335
+ protocol='HTTPS',
7336
+ pathname='/',
7337
+ method='POST',
7338
+ auth_type='AK',
7339
+ style='RPC',
7340
+ req_body_type='formData',
7341
+ body_type='json'
7342
+ )
7343
+ return TeaCore.from_map(
7344
+ rds_20140815_models.CreateRCSnapshotResponse(),
7345
+ self.call_api(params, req, runtime)
7346
+ )
7347
+
7348
+ async def create_rcsnapshot_with_options_async(
7349
+ self,
7350
+ request: rds_20140815_models.CreateRCSnapshotRequest,
7351
+ runtime: util_models.RuntimeOptions,
7352
+ ) -> rds_20140815_models.CreateRCSnapshotResponse:
7353
+ """
7354
+ @summary Creates a snapshot for a cloud disk.
7355
+
7356
+ @description In the following scenarios, you cannot create snapshots for a specific disk:
7357
+ The number of manual snapshots of the disk has reached 256.
7358
+ A snapshot is being created for the disk.
7359
+ The instance to which the disk is attached has never been started.
7360
+ The instance to which the disk is attached is not in the **Stopped** or **Running** state.
7361
+ When you create a snapshot, take note of the following items:
7362
+ If a snapshot is being created, the snapshot cannot be used to create a custom image by calling the CreateImage operation.
7363
+ When a snapshot is being created for a disk that is attached to an RDS Custom instance, do not change the instance state.
7364
+ You can create snapshots for a disk that is in the **Expired** state. If the release time scheduled for a disk arrives when a snapshot is being created for the disk, the snapshot in the Creating state is deleted when the disk is released.
7365
+
7366
+ @param request: CreateRCSnapshotRequest
7367
+ @param runtime: runtime options for this request RuntimeOptions
7368
+ @return: CreateRCSnapshotResponse
7369
+ """
7370
+ UtilClient.validate_model(request)
7371
+ query = {}
7372
+ if not UtilClient.is_unset(request.description):
7373
+ query['Description'] = request.description
7374
+ if not UtilClient.is_unset(request.disk_id):
7375
+ query['DiskId'] = request.disk_id
7376
+ if not UtilClient.is_unset(request.instant_access):
7377
+ query['InstantAccess'] = request.instant_access
7378
+ if not UtilClient.is_unset(request.instant_access_retention_days):
7379
+ query['InstantAccessRetentionDays'] = request.instant_access_retention_days
7380
+ if not UtilClient.is_unset(request.region_id):
7381
+ query['RegionId'] = request.region_id
7382
+ if not UtilClient.is_unset(request.retention_days):
7383
+ query['RetentionDays'] = request.retention_days
7384
+ if not UtilClient.is_unset(request.zone_id):
7385
+ query['ZoneId'] = request.zone_id
7386
+ req = open_api_models.OpenApiRequest(
7387
+ query=OpenApiUtilClient.query(query)
7388
+ )
7389
+ params = open_api_models.Params(
7390
+ action='CreateRCSnapshot',
7391
+ version='2014-08-15',
7392
+ protocol='HTTPS',
7393
+ pathname='/',
7394
+ method='POST',
7395
+ auth_type='AK',
7396
+ style='RPC',
7397
+ req_body_type='formData',
7398
+ body_type='json'
7399
+ )
7400
+ return TeaCore.from_map(
7401
+ rds_20140815_models.CreateRCSnapshotResponse(),
7402
+ await self.call_api_async(params, req, runtime)
7403
+ )
7404
+
7405
+ def create_rcsnapshot(
7406
+ self,
7407
+ request: rds_20140815_models.CreateRCSnapshotRequest,
7408
+ ) -> rds_20140815_models.CreateRCSnapshotResponse:
7409
+ """
7410
+ @summary Creates a snapshot for a cloud disk.
7411
+
7412
+ @description In the following scenarios, you cannot create snapshots for a specific disk:
7413
+ The number of manual snapshots of the disk has reached 256.
7414
+ A snapshot is being created for the disk.
7415
+ The instance to which the disk is attached has never been started.
7416
+ The instance to which the disk is attached is not in the **Stopped** or **Running** state.
7417
+ When you create a snapshot, take note of the following items:
7418
+ If a snapshot is being created, the snapshot cannot be used to create a custom image by calling the CreateImage operation.
7419
+ When a snapshot is being created for a disk that is attached to an RDS Custom instance, do not change the instance state.
7420
+ You can create snapshots for a disk that is in the **Expired** state. If the release time scheduled for a disk arrives when a snapshot is being created for the disk, the snapshot in the Creating state is deleted when the disk is released.
7421
+
7422
+ @param request: CreateRCSnapshotRequest
7423
+ @return: CreateRCSnapshotResponse
7424
+ """
7425
+ runtime = util_models.RuntimeOptions()
7426
+ return self.create_rcsnapshot_with_options(request, runtime)
7427
+
7428
+ async def create_rcsnapshot_async(
7429
+ self,
7430
+ request: rds_20140815_models.CreateRCSnapshotRequest,
7431
+ ) -> rds_20140815_models.CreateRCSnapshotResponse:
7432
+ """
7433
+ @summary Creates a snapshot for a cloud disk.
7434
+
7435
+ @description In the following scenarios, you cannot create snapshots for a specific disk:
7436
+ The number of manual snapshots of the disk has reached 256.
7437
+ A snapshot is being created for the disk.
7438
+ The instance to which the disk is attached has never been started.
7439
+ The instance to which the disk is attached is not in the **Stopped** or **Running** state.
7440
+ When you create a snapshot, take note of the following items:
7441
+ If a snapshot is being created, the snapshot cannot be used to create a custom image by calling the CreateImage operation.
7442
+ When a snapshot is being created for a disk that is attached to an RDS Custom instance, do not change the instance state.
7443
+ You can create snapshots for a disk that is in the **Expired** state. If the release time scheduled for a disk arrives when a snapshot is being created for the disk, the snapshot in the Creating state is deleted when the disk is released.
7444
+
7445
+ @param request: CreateRCSnapshotRequest
7446
+ @return: CreateRCSnapshotResponse
7447
+ """
7448
+ runtime = util_models.RuntimeOptions()
7449
+ return await self.create_rcsnapshot_with_options_async(request, runtime)
7450
+
7023
7451
  def create_read_only_dbinstance_with_options(
7024
7452
  self,
7025
7453
  request: rds_20140815_models.CreateReadOnlyDBInstanceRequest,
@@ -7050,6 +7478,8 @@ class Client(OpenApiClient):
7050
7478
  query['AutoPay'] = request.auto_pay
7051
7479
  if not UtilClient.is_unset(request.auto_renew):
7052
7480
  query['AutoRenew'] = request.auto_renew
7481
+ if not UtilClient.is_unset(request.auto_use_coupon):
7482
+ query['AutoUseCoupon'] = request.auto_use_coupon
7053
7483
  if not UtilClient.is_unset(request.bpe_enabled):
7054
7484
  query['BpeEnabled'] = request.bpe_enabled
7055
7485
  if not UtilClient.is_unset(request.bursting_enabled):
@@ -7094,6 +7524,8 @@ class Client(OpenApiClient):
7094
7524
  query['Port'] = request.port
7095
7525
  if not UtilClient.is_unset(request.private_ip_address):
7096
7526
  query['PrivateIpAddress'] = request.private_ip_address
7527
+ if not UtilClient.is_unset(request.promotion_code):
7528
+ query['PromotionCode'] = request.promotion_code
7097
7529
  if not UtilClient.is_unset(request.region_id):
7098
7530
  query['RegionId'] = request.region_id
7099
7531
  if not UtilClient.is_unset(request.resource_group_id):
@@ -7165,6 +7597,8 @@ class Client(OpenApiClient):
7165
7597
  query['AutoPay'] = request.auto_pay
7166
7598
  if not UtilClient.is_unset(request.auto_renew):
7167
7599
  query['AutoRenew'] = request.auto_renew
7600
+ if not UtilClient.is_unset(request.auto_use_coupon):
7601
+ query['AutoUseCoupon'] = request.auto_use_coupon
7168
7602
  if not UtilClient.is_unset(request.bpe_enabled):
7169
7603
  query['BpeEnabled'] = request.bpe_enabled
7170
7604
  if not UtilClient.is_unset(request.bursting_enabled):
@@ -7209,6 +7643,8 @@ class Client(OpenApiClient):
7209
7643
  query['Port'] = request.port
7210
7644
  if not UtilClient.is_unset(request.private_ip_address):
7211
7645
  query['PrivateIpAddress'] = request.private_ip_address
7646
+ if not UtilClient.is_unset(request.promotion_code):
7647
+ query['PromotionCode'] = request.promotion_code
7212
7648
  if not UtilClient.is_unset(request.region_id):
7213
7649
  query['RegionId'] = request.region_id
7214
7650
  if not UtilClient.is_unset(request.resource_group_id):
@@ -10172,29 +10608,39 @@ class Client(OpenApiClient):
10172
10608
  runtime = util_models.RuntimeOptions()
10173
10609
  return await self.delete_postgres_extensions_with_options_async(request, runtime)
10174
10610
 
10175
- def delete_rcdeployment_set_with_options(
10611
+ def delete_rccluster_nodes_with_options(
10176
10612
  self,
10177
- request: rds_20140815_models.DeleteRCDeploymentSetRequest,
10613
+ tmp_req: rds_20140815_models.DeleteRCClusterNodesRequest,
10178
10614
  runtime: util_models.RuntimeOptions,
10179
- ) -> rds_20140815_models.DeleteRCDeploymentSetResponse:
10615
+ ) -> rds_20140815_models.DeleteRCClusterNodesResponse:
10180
10616
  """
10181
- @summary Deletes a deployment set for an RDS Custom instance. Before you call this operation, you must specify parameters such as RegionId and DeploymentSetId.
10617
+ @summary Deletes a RDS Custom node from a Container Service for Kubernetes (ACK) cluster.
10182
10618
 
10183
- @param request: DeleteRCDeploymentSetRequest
10619
+ @param tmp_req: DeleteRCClusterNodesRequest
10184
10620
  @param runtime: runtime options for this request RuntimeOptions
10185
- @return: DeleteRCDeploymentSetResponse
10621
+ @return: DeleteRCClusterNodesResponse
10186
10622
  """
10187
- UtilClient.validate_model(request)
10623
+ UtilClient.validate_model(tmp_req)
10624
+ request = rds_20140815_models.DeleteRCClusterNodesShrinkRequest()
10625
+ OpenApiUtilClient.convert(tmp_req, request)
10626
+ if not UtilClient.is_unset(tmp_req.instance_ids):
10627
+ request.instance_ids_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.instance_ids, 'InstanceIds', 'simple')
10628
+ if not UtilClient.is_unset(tmp_req.nodes):
10629
+ request.nodes_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.nodes, 'Nodes', 'simple')
10188
10630
  query = {}
10189
- if not UtilClient.is_unset(request.deployment_set_id):
10190
- query['DeploymentSetId'] = request.deployment_set_id
10631
+ if not UtilClient.is_unset(request.instance_ids_shrink):
10632
+ query['InstanceIds'] = request.instance_ids_shrink
10633
+ if not UtilClient.is_unset(request.nodes_shrink):
10634
+ query['Nodes'] = request.nodes_shrink
10191
10635
  if not UtilClient.is_unset(request.region_id):
10192
10636
  query['RegionId'] = request.region_id
10637
+ if not UtilClient.is_unset(request.vpc_id):
10638
+ query['VpcId'] = request.vpc_id
10193
10639
  req = open_api_models.OpenApiRequest(
10194
10640
  query=OpenApiUtilClient.query(query)
10195
10641
  )
10196
10642
  params = open_api_models.Params(
10197
- action='DeleteRCDeploymentSet',
10643
+ action='DeleteRCClusterNodes',
10198
10644
  version='2014-08-15',
10199
10645
  protocol='HTTPS',
10200
10646
  pathname='/',
@@ -10205,11 +10651,121 @@ class Client(OpenApiClient):
10205
10651
  body_type='json'
10206
10652
  )
10207
10653
  return TeaCore.from_map(
10208
- rds_20140815_models.DeleteRCDeploymentSetResponse(),
10654
+ rds_20140815_models.DeleteRCClusterNodesResponse(),
10209
10655
  self.call_api(params, req, runtime)
10210
10656
  )
10211
10657
 
10212
- async def delete_rcdeployment_set_with_options_async(
10658
+ async def delete_rccluster_nodes_with_options_async(
10659
+ self,
10660
+ tmp_req: rds_20140815_models.DeleteRCClusterNodesRequest,
10661
+ runtime: util_models.RuntimeOptions,
10662
+ ) -> rds_20140815_models.DeleteRCClusterNodesResponse:
10663
+ """
10664
+ @summary Deletes a RDS Custom node from a Container Service for Kubernetes (ACK) cluster.
10665
+
10666
+ @param tmp_req: DeleteRCClusterNodesRequest
10667
+ @param runtime: runtime options for this request RuntimeOptions
10668
+ @return: DeleteRCClusterNodesResponse
10669
+ """
10670
+ UtilClient.validate_model(tmp_req)
10671
+ request = rds_20140815_models.DeleteRCClusterNodesShrinkRequest()
10672
+ OpenApiUtilClient.convert(tmp_req, request)
10673
+ if not UtilClient.is_unset(tmp_req.instance_ids):
10674
+ request.instance_ids_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.instance_ids, 'InstanceIds', 'simple')
10675
+ if not UtilClient.is_unset(tmp_req.nodes):
10676
+ request.nodes_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.nodes, 'Nodes', 'simple')
10677
+ query = {}
10678
+ if not UtilClient.is_unset(request.instance_ids_shrink):
10679
+ query['InstanceIds'] = request.instance_ids_shrink
10680
+ if not UtilClient.is_unset(request.nodes_shrink):
10681
+ query['Nodes'] = request.nodes_shrink
10682
+ if not UtilClient.is_unset(request.region_id):
10683
+ query['RegionId'] = request.region_id
10684
+ if not UtilClient.is_unset(request.vpc_id):
10685
+ query['VpcId'] = request.vpc_id
10686
+ req = open_api_models.OpenApiRequest(
10687
+ query=OpenApiUtilClient.query(query)
10688
+ )
10689
+ params = open_api_models.Params(
10690
+ action='DeleteRCClusterNodes',
10691
+ version='2014-08-15',
10692
+ protocol='HTTPS',
10693
+ pathname='/',
10694
+ method='POST',
10695
+ auth_type='AK',
10696
+ style='RPC',
10697
+ req_body_type='formData',
10698
+ body_type='json'
10699
+ )
10700
+ return TeaCore.from_map(
10701
+ rds_20140815_models.DeleteRCClusterNodesResponse(),
10702
+ await self.call_api_async(params, req, runtime)
10703
+ )
10704
+
10705
+ def delete_rccluster_nodes(
10706
+ self,
10707
+ request: rds_20140815_models.DeleteRCClusterNodesRequest,
10708
+ ) -> rds_20140815_models.DeleteRCClusterNodesResponse:
10709
+ """
10710
+ @summary Deletes a RDS Custom node from a Container Service for Kubernetes (ACK) cluster.
10711
+
10712
+ @param request: DeleteRCClusterNodesRequest
10713
+ @return: DeleteRCClusterNodesResponse
10714
+ """
10715
+ runtime = util_models.RuntimeOptions()
10716
+ return self.delete_rccluster_nodes_with_options(request, runtime)
10717
+
10718
+ async def delete_rccluster_nodes_async(
10719
+ self,
10720
+ request: rds_20140815_models.DeleteRCClusterNodesRequest,
10721
+ ) -> rds_20140815_models.DeleteRCClusterNodesResponse:
10722
+ """
10723
+ @summary Deletes a RDS Custom node from a Container Service for Kubernetes (ACK) cluster.
10724
+
10725
+ @param request: DeleteRCClusterNodesRequest
10726
+ @return: DeleteRCClusterNodesResponse
10727
+ """
10728
+ runtime = util_models.RuntimeOptions()
10729
+ return await self.delete_rccluster_nodes_with_options_async(request, runtime)
10730
+
10731
+ def delete_rcdeployment_set_with_options(
10732
+ self,
10733
+ request: rds_20140815_models.DeleteRCDeploymentSetRequest,
10734
+ runtime: util_models.RuntimeOptions,
10735
+ ) -> rds_20140815_models.DeleteRCDeploymentSetResponse:
10736
+ """
10737
+ @summary Deletes a deployment set for an RDS Custom instance. Before you call this operation, you must specify parameters such as RegionId and DeploymentSetId.
10738
+
10739
+ @param request: DeleteRCDeploymentSetRequest
10740
+ @param runtime: runtime options for this request RuntimeOptions
10741
+ @return: DeleteRCDeploymentSetResponse
10742
+ """
10743
+ UtilClient.validate_model(request)
10744
+ query = {}
10745
+ if not UtilClient.is_unset(request.deployment_set_id):
10746
+ query['DeploymentSetId'] = request.deployment_set_id
10747
+ if not UtilClient.is_unset(request.region_id):
10748
+ query['RegionId'] = request.region_id
10749
+ req = open_api_models.OpenApiRequest(
10750
+ query=OpenApiUtilClient.query(query)
10751
+ )
10752
+ params = open_api_models.Params(
10753
+ action='DeleteRCDeploymentSet',
10754
+ version='2014-08-15',
10755
+ protocol='HTTPS',
10756
+ pathname='/',
10757
+ method='POST',
10758
+ auth_type='AK',
10759
+ style='RPC',
10760
+ req_body_type='formData',
10761
+ body_type='json'
10762
+ )
10763
+ return TeaCore.from_map(
10764
+ rds_20140815_models.DeleteRCDeploymentSetResponse(),
10765
+ self.call_api(params, req, runtime)
10766
+ )
10767
+
10768
+ async def delete_rcdeployment_set_with_options_async(
10213
10769
  self,
10214
10770
  request: rds_20140815_models.DeleteRCDeploymentSetRequest,
10215
10771
  runtime: util_models.RuntimeOptions,
@@ -10272,6 +10828,126 @@ class Client(OpenApiClient):
10272
10828
  runtime = util_models.RuntimeOptions()
10273
10829
  return await self.delete_rcdeployment_set_with_options_async(request, runtime)
10274
10830
 
10831
+ def delete_rcdisk_with_options(
10832
+ self,
10833
+ request: rds_20140815_models.DeleteRCDiskRequest,
10834
+ runtime: util_models.RuntimeOptions,
10835
+ ) -> rds_20140815_models.DeleteRCDiskResponse:
10836
+ """
10837
+ @summary Releases a pay-as-you-go data disk. The data disk can be a basic disk, an ultra disk, a standard SSD, or an Enterprise SSD (ESSD).
10838
+
10839
+ @description Before you call this operation, take note of the following items:
10840
+ Manual snapshots of the disk are retained.
10841
+ The disk must be in the Unattached (Available) state.
10842
+ If no disk with the specified disk ID exists, the request will be ignored.
10843
+
10844
+ @param request: DeleteRCDiskRequest
10845
+ @param runtime: runtime options for this request RuntimeOptions
10846
+ @return: DeleteRCDiskResponse
10847
+ """
10848
+ UtilClient.validate_model(request)
10849
+ query = {}
10850
+ if not UtilClient.is_unset(request.disk_id):
10851
+ query['DiskId'] = request.disk_id
10852
+ if not UtilClient.is_unset(request.region_id):
10853
+ query['RegionId'] = request.region_id
10854
+ req = open_api_models.OpenApiRequest(
10855
+ query=OpenApiUtilClient.query(query)
10856
+ )
10857
+ params = open_api_models.Params(
10858
+ action='DeleteRCDisk',
10859
+ version='2014-08-15',
10860
+ protocol='HTTPS',
10861
+ pathname='/',
10862
+ method='POST',
10863
+ auth_type='AK',
10864
+ style='RPC',
10865
+ req_body_type='formData',
10866
+ body_type='json'
10867
+ )
10868
+ return TeaCore.from_map(
10869
+ rds_20140815_models.DeleteRCDiskResponse(),
10870
+ self.call_api(params, req, runtime)
10871
+ )
10872
+
10873
+ async def delete_rcdisk_with_options_async(
10874
+ self,
10875
+ request: rds_20140815_models.DeleteRCDiskRequest,
10876
+ runtime: util_models.RuntimeOptions,
10877
+ ) -> rds_20140815_models.DeleteRCDiskResponse:
10878
+ """
10879
+ @summary Releases a pay-as-you-go data disk. The data disk can be a basic disk, an ultra disk, a standard SSD, or an Enterprise SSD (ESSD).
10880
+
10881
+ @description Before you call this operation, take note of the following items:
10882
+ Manual snapshots of the disk are retained.
10883
+ The disk must be in the Unattached (Available) state.
10884
+ If no disk with the specified disk ID exists, the request will be ignored.
10885
+
10886
+ @param request: DeleteRCDiskRequest
10887
+ @param runtime: runtime options for this request RuntimeOptions
10888
+ @return: DeleteRCDiskResponse
10889
+ """
10890
+ UtilClient.validate_model(request)
10891
+ query = {}
10892
+ if not UtilClient.is_unset(request.disk_id):
10893
+ query['DiskId'] = request.disk_id
10894
+ if not UtilClient.is_unset(request.region_id):
10895
+ query['RegionId'] = request.region_id
10896
+ req = open_api_models.OpenApiRequest(
10897
+ query=OpenApiUtilClient.query(query)
10898
+ )
10899
+ params = open_api_models.Params(
10900
+ action='DeleteRCDisk',
10901
+ version='2014-08-15',
10902
+ protocol='HTTPS',
10903
+ pathname='/',
10904
+ method='POST',
10905
+ auth_type='AK',
10906
+ style='RPC',
10907
+ req_body_type='formData',
10908
+ body_type='json'
10909
+ )
10910
+ return TeaCore.from_map(
10911
+ rds_20140815_models.DeleteRCDiskResponse(),
10912
+ await self.call_api_async(params, req, runtime)
10913
+ )
10914
+
10915
+ def delete_rcdisk(
10916
+ self,
10917
+ request: rds_20140815_models.DeleteRCDiskRequest,
10918
+ ) -> rds_20140815_models.DeleteRCDiskResponse:
10919
+ """
10920
+ @summary Releases a pay-as-you-go data disk. The data disk can be a basic disk, an ultra disk, a standard SSD, or an Enterprise SSD (ESSD).
10921
+
10922
+ @description Before you call this operation, take note of the following items:
10923
+ Manual snapshots of the disk are retained.
10924
+ The disk must be in the Unattached (Available) state.
10925
+ If no disk with the specified disk ID exists, the request will be ignored.
10926
+
10927
+ @param request: DeleteRCDiskRequest
10928
+ @return: DeleteRCDiskResponse
10929
+ """
10930
+ runtime = util_models.RuntimeOptions()
10931
+ return self.delete_rcdisk_with_options(request, runtime)
10932
+
10933
+ async def delete_rcdisk_async(
10934
+ self,
10935
+ request: rds_20140815_models.DeleteRCDiskRequest,
10936
+ ) -> rds_20140815_models.DeleteRCDiskResponse:
10937
+ """
10938
+ @summary Releases a pay-as-you-go data disk. The data disk can be a basic disk, an ultra disk, a standard SSD, or an Enterprise SSD (ESSD).
10939
+
10940
+ @description Before you call this operation, take note of the following items:
10941
+ Manual snapshots of the disk are retained.
10942
+ The disk must be in the Unattached (Available) state.
10943
+ If no disk with the specified disk ID exists, the request will be ignored.
10944
+
10945
+ @param request: DeleteRCDiskRequest
10946
+ @return: DeleteRCDiskResponse
10947
+ """
10948
+ runtime = util_models.RuntimeOptions()
10949
+ return await self.delete_rcdisk_with_options_async(request, runtime)
10950
+
10275
10951
  def delete_rcinstance_with_options(
10276
10952
  self,
10277
10953
  request: rds_20140815_models.DeleteRCInstanceRequest,
@@ -10504,6 +11180,130 @@ class Client(OpenApiClient):
10504
11180
  runtime = util_models.RuntimeOptions()
10505
11181
  return await self.delete_rcinstances_with_options_async(request, runtime)
10506
11182
 
11183
+ def delete_rcsnapshot_with_options(
11184
+ self,
11185
+ request: rds_20140815_models.DeleteRCSnapshotRequest,
11186
+ runtime: util_models.RuntimeOptions,
11187
+ ) -> rds_20140815_models.DeleteRCSnapshotResponse:
11188
+ """
11189
+ @summary Deletes a cloud disk snapshot.
11190
+
11191
+ @description Before you call this operation, take note of the following items:
11192
+ If the specified snapshot ID does not exist, the request will be ignored.
11193
+ If the snapshot is used to create custom images, the snapshot cannot be deleted. You must delete the created custom images before you can delete the snapshot.
11194
+ If the snapshot is used to create cloud disks and `Force` is not specified or is set to `false`, the snapshot cannot be directly deleted. If you want to delete the snapshot, set `Force` to true to forcefully delete the snapshot. The cloud disks created from the snapshot cannot be re-initialized after the snapshot is forcefully deleted.
11195
+
11196
+ @param request: DeleteRCSnapshotRequest
11197
+ @param runtime: runtime options for this request RuntimeOptions
11198
+ @return: DeleteRCSnapshotResponse
11199
+ """
11200
+ UtilClient.validate_model(request)
11201
+ query = {}
11202
+ if not UtilClient.is_unset(request.force):
11203
+ query['Force'] = request.force
11204
+ if not UtilClient.is_unset(request.region_id):
11205
+ query['RegionId'] = request.region_id
11206
+ if not UtilClient.is_unset(request.snapshot_id):
11207
+ query['SnapshotId'] = request.snapshot_id
11208
+ req = open_api_models.OpenApiRequest(
11209
+ query=OpenApiUtilClient.query(query)
11210
+ )
11211
+ params = open_api_models.Params(
11212
+ action='DeleteRCSnapshot',
11213
+ version='2014-08-15',
11214
+ protocol='HTTPS',
11215
+ pathname='/',
11216
+ method='POST',
11217
+ auth_type='AK',
11218
+ style='RPC',
11219
+ req_body_type='formData',
11220
+ body_type='json'
11221
+ )
11222
+ return TeaCore.from_map(
11223
+ rds_20140815_models.DeleteRCSnapshotResponse(),
11224
+ self.call_api(params, req, runtime)
11225
+ )
11226
+
11227
+ async def delete_rcsnapshot_with_options_async(
11228
+ self,
11229
+ request: rds_20140815_models.DeleteRCSnapshotRequest,
11230
+ runtime: util_models.RuntimeOptions,
11231
+ ) -> rds_20140815_models.DeleteRCSnapshotResponse:
11232
+ """
11233
+ @summary Deletes a cloud disk snapshot.
11234
+
11235
+ @description Before you call this operation, take note of the following items:
11236
+ If the specified snapshot ID does not exist, the request will be ignored.
11237
+ If the snapshot is used to create custom images, the snapshot cannot be deleted. You must delete the created custom images before you can delete the snapshot.
11238
+ If the snapshot is used to create cloud disks and `Force` is not specified or is set to `false`, the snapshot cannot be directly deleted. If you want to delete the snapshot, set `Force` to true to forcefully delete the snapshot. The cloud disks created from the snapshot cannot be re-initialized after the snapshot is forcefully deleted.
11239
+
11240
+ @param request: DeleteRCSnapshotRequest
11241
+ @param runtime: runtime options for this request RuntimeOptions
11242
+ @return: DeleteRCSnapshotResponse
11243
+ """
11244
+ UtilClient.validate_model(request)
11245
+ query = {}
11246
+ if not UtilClient.is_unset(request.force):
11247
+ query['Force'] = request.force
11248
+ if not UtilClient.is_unset(request.region_id):
11249
+ query['RegionId'] = request.region_id
11250
+ if not UtilClient.is_unset(request.snapshot_id):
11251
+ query['SnapshotId'] = request.snapshot_id
11252
+ req = open_api_models.OpenApiRequest(
11253
+ query=OpenApiUtilClient.query(query)
11254
+ )
11255
+ params = open_api_models.Params(
11256
+ action='DeleteRCSnapshot',
11257
+ version='2014-08-15',
11258
+ protocol='HTTPS',
11259
+ pathname='/',
11260
+ method='POST',
11261
+ auth_type='AK',
11262
+ style='RPC',
11263
+ req_body_type='formData',
11264
+ body_type='json'
11265
+ )
11266
+ return TeaCore.from_map(
11267
+ rds_20140815_models.DeleteRCSnapshotResponse(),
11268
+ await self.call_api_async(params, req, runtime)
11269
+ )
11270
+
11271
+ def delete_rcsnapshot(
11272
+ self,
11273
+ request: rds_20140815_models.DeleteRCSnapshotRequest,
11274
+ ) -> rds_20140815_models.DeleteRCSnapshotResponse:
11275
+ """
11276
+ @summary Deletes a cloud disk snapshot.
11277
+
11278
+ @description Before you call this operation, take note of the following items:
11279
+ If the specified snapshot ID does not exist, the request will be ignored.
11280
+ If the snapshot is used to create custom images, the snapshot cannot be deleted. You must delete the created custom images before you can delete the snapshot.
11281
+ If the snapshot is used to create cloud disks and `Force` is not specified or is set to `false`, the snapshot cannot be directly deleted. If you want to delete the snapshot, set `Force` to true to forcefully delete the snapshot. The cloud disks created from the snapshot cannot be re-initialized after the snapshot is forcefully deleted.
11282
+
11283
+ @param request: DeleteRCSnapshotRequest
11284
+ @return: DeleteRCSnapshotResponse
11285
+ """
11286
+ runtime = util_models.RuntimeOptions()
11287
+ return self.delete_rcsnapshot_with_options(request, runtime)
11288
+
11289
+ async def delete_rcsnapshot_async(
11290
+ self,
11291
+ request: rds_20140815_models.DeleteRCSnapshotRequest,
11292
+ ) -> rds_20140815_models.DeleteRCSnapshotResponse:
11293
+ """
11294
+ @summary Deletes a cloud disk snapshot.
11295
+
11296
+ @description Before you call this operation, take note of the following items:
11297
+ If the specified snapshot ID does not exist, the request will be ignored.
11298
+ If the snapshot is used to create custom images, the snapshot cannot be deleted. You must delete the created custom images before you can delete the snapshot.
11299
+ If the snapshot is used to create cloud disks and `Force` is not specified or is set to `false`, the snapshot cannot be directly deleted. If you want to delete the snapshot, set `Force` to true to forcefully delete the snapshot. The cloud disks created from the snapshot cannot be re-initialized after the snapshot is forcefully deleted.
11300
+
11301
+ @param request: DeleteRCSnapshotRequest
11302
+ @return: DeleteRCSnapshotResponse
11303
+ """
11304
+ runtime = util_models.RuntimeOptions()
11305
+ return await self.delete_rcsnapshot_with_options_async(request, runtime)
11306
+
10507
11307
  def delete_replication_link_with_options(
10508
11308
  self,
10509
11309
  request: rds_20140815_models.DeleteReplicationLinkRequest,
@@ -15154,6 +15954,8 @@ class Client(OpenApiClient):
15154
15954
  runtime: util_models.RuntimeOptions,
15155
15955
  ) -> rds_20140815_models.DescribeCustinsResourceInfoResponse:
15156
15956
  """
15957
+ @summary 查询实例资源使用情况
15958
+
15157
15959
  @param request: DescribeCustinsResourceInfoRequest
15158
15960
  @param runtime: runtime options for this request RuntimeOptions
15159
15961
  @return: DescribeCustinsResourceInfoResponse
@@ -15195,6 +15997,8 @@ class Client(OpenApiClient):
15195
15997
  runtime: util_models.RuntimeOptions,
15196
15998
  ) -> rds_20140815_models.DescribeCustinsResourceInfoResponse:
15197
15999
  """
16000
+ @summary 查询实例资源使用情况
16001
+
15198
16002
  @param request: DescribeCustinsResourceInfoRequest
15199
16003
  @param runtime: runtime options for this request RuntimeOptions
15200
16004
  @return: DescribeCustinsResourceInfoResponse
@@ -15235,6 +16039,8 @@ class Client(OpenApiClient):
15235
16039
  request: rds_20140815_models.DescribeCustinsResourceInfoRequest,
15236
16040
  ) -> rds_20140815_models.DescribeCustinsResourceInfoResponse:
15237
16041
  """
16042
+ @summary 查询实例资源使用情况
16043
+
15238
16044
  @param request: DescribeCustinsResourceInfoRequest
15239
16045
  @return: DescribeCustinsResourceInfoResponse
15240
16046
  """
@@ -15246,6 +16052,8 @@ class Client(OpenApiClient):
15246
16052
  request: rds_20140815_models.DescribeCustinsResourceInfoRequest,
15247
16053
  ) -> rds_20140815_models.DescribeCustinsResourceInfoResponse:
15248
16054
  """
16055
+ @summary 查询实例资源使用情况
16056
+
15249
16057
  @param request: DescribeCustinsResourceInfoRequest
15250
16058
  @return: DescribeCustinsResourceInfoResponse
15251
16059
  """
@@ -18906,7 +19714,7 @@ class Client(OpenApiClient):
18906
19714
  runtime: util_models.RuntimeOptions,
18907
19715
  ) -> rds_20140815_models.DescribeDBProxyResponse:
18908
19716
  """
18909
- @summary Queries the settings of the dedicated proxy for an instance.
19717
+ @summary Queries the settings of the database proxy feature for an instance.
18910
19718
 
18911
19719
  @description ### [](#)Supported database engines
18912
19720
  RDS MySQL
@@ -18959,7 +19767,7 @@ class Client(OpenApiClient):
18959
19767
  runtime: util_models.RuntimeOptions,
18960
19768
  ) -> rds_20140815_models.DescribeDBProxyResponse:
18961
19769
  """
18962
- @summary Queries the settings of the dedicated proxy for an instance.
19770
+ @summary Queries the settings of the database proxy feature for an instance.
18963
19771
 
18964
19772
  @description ### [](#)Supported database engines
18965
19773
  RDS MySQL
@@ -19011,7 +19819,7 @@ class Client(OpenApiClient):
19011
19819
  request: rds_20140815_models.DescribeDBProxyRequest,
19012
19820
  ) -> rds_20140815_models.DescribeDBProxyResponse:
19013
19821
  """
19014
- @summary Queries the settings of the dedicated proxy for an instance.
19822
+ @summary Queries the settings of the database proxy feature for an instance.
19015
19823
 
19016
19824
  @description ### [](#)Supported database engines
19017
19825
  RDS MySQL
@@ -19028,7 +19836,7 @@ class Client(OpenApiClient):
19028
19836
  request: rds_20140815_models.DescribeDBProxyRequest,
19029
19837
  ) -> rds_20140815_models.DescribeDBProxyResponse:
19030
19838
  """
19031
- @summary Queries the settings of the dedicated proxy for an instance.
19839
+ @summary Queries the settings of the database proxy feature for an instance.
19032
19840
 
19033
19841
  @description ### [](#)Supported database engines
19034
19842
  RDS MySQL
@@ -19215,6 +20023,8 @@ class Client(OpenApiClient):
19215
20023
  query['DBProxyEngineType'] = request.dbproxy_engine_type
19216
20024
  if not UtilClient.is_unset(request.dbproxy_instance_type):
19217
20025
  query['DBProxyInstanceType'] = request.dbproxy_instance_type
20026
+ if not UtilClient.is_unset(request.dimension):
20027
+ query['Dimension'] = request.dimension
19218
20028
  if not UtilClient.is_unset(request.end_time):
19219
20029
  query['EndTime'] = request.end_time
19220
20030
  if not UtilClient.is_unset(request.metrics_name):
@@ -19279,6 +20089,8 @@ class Client(OpenApiClient):
19279
20089
  query['DBProxyEngineType'] = request.dbproxy_engine_type
19280
20090
  if not UtilClient.is_unset(request.dbproxy_instance_type):
19281
20091
  query['DBProxyInstanceType'] = request.dbproxy_instance_type
20092
+ if not UtilClient.is_unset(request.dimension):
20093
+ query['Dimension'] = request.dimension
19282
20094
  if not UtilClient.is_unset(request.end_time):
19283
20095
  query['EndTime'] = request.end_time
19284
20096
  if not UtilClient.is_unset(request.metrics_name):
@@ -21550,6 +22362,8 @@ class Client(OpenApiClient):
21550
22362
  runtime: util_models.RuntimeOptions,
21551
22363
  ) -> rds_20140815_models.DescribeHostGroupElasticStrategyParametersResponse:
21552
22364
  """
22365
+ @summary 查询主机组弹性策略参数
22366
+
21553
22367
  @param request: DescribeHostGroupElasticStrategyParametersRequest
21554
22368
  @param runtime: runtime options for this request RuntimeOptions
21555
22369
  @return: DescribeHostGroupElasticStrategyParametersResponse
@@ -21589,6 +22403,8 @@ class Client(OpenApiClient):
21589
22403
  runtime: util_models.RuntimeOptions,
21590
22404
  ) -> rds_20140815_models.DescribeHostGroupElasticStrategyParametersResponse:
21591
22405
  """
22406
+ @summary 查询主机组弹性策略参数
22407
+
21592
22408
  @param request: DescribeHostGroupElasticStrategyParametersRequest
21593
22409
  @param runtime: runtime options for this request RuntimeOptions
21594
22410
  @return: DescribeHostGroupElasticStrategyParametersResponse
@@ -21627,6 +22443,8 @@ class Client(OpenApiClient):
21627
22443
  request: rds_20140815_models.DescribeHostGroupElasticStrategyParametersRequest,
21628
22444
  ) -> rds_20140815_models.DescribeHostGroupElasticStrategyParametersResponse:
21629
22445
  """
22446
+ @summary 查询主机组弹性策略参数
22447
+
21630
22448
  @param request: DescribeHostGroupElasticStrategyParametersRequest
21631
22449
  @return: DescribeHostGroupElasticStrategyParametersResponse
21632
22450
  """
@@ -21638,6 +22456,8 @@ class Client(OpenApiClient):
21638
22456
  request: rds_20140815_models.DescribeHostGroupElasticStrategyParametersRequest,
21639
22457
  ) -> rds_20140815_models.DescribeHostGroupElasticStrategyParametersResponse:
21640
22458
  """
22459
+ @summary 查询主机组弹性策略参数
22460
+
21641
22461
  @param request: DescribeHostGroupElasticStrategyParametersRequest
21642
22462
  @return: DescribeHostGroupElasticStrategyParametersResponse
21643
22463
  """
@@ -25152,6 +25972,322 @@ class Client(OpenApiClient):
25152
25972
  runtime = util_models.RuntimeOptions()
25153
25973
  return await self.describe_quick_sale_config_with_options_async(request, runtime)
25154
25974
 
25975
+ def describe_rccluster_config_with_options(
25976
+ self,
25977
+ request: rds_20140815_models.DescribeRCClusterConfigRequest,
25978
+ runtime: util_models.RuntimeOptions,
25979
+ ) -> rds_20140815_models.DescribeRCClusterConfigResponse:
25980
+ """
25981
+ @summary Queries the kubeconfig file of a Container Service for Kubernetes (ACK) cluster in which an RDS Custom instance resides.
25982
+
25983
+ @description Kubeconfig files store identity and authentication information that is used by clients to access ACK clusters. To use kubectl to manage an ACK cluster, you must use the kubeconfig file to connect to the ACK cluster. We recommend that you keep kubeconfig files confidential and revoke kubeconfig files that are not in use. This helps prevent data leaks caused by the disclosure of kubeconfig files.
25984
+
25985
+ @param request: DescribeRCClusterConfigRequest
25986
+ @param runtime: runtime options for this request RuntimeOptions
25987
+ @return: DescribeRCClusterConfigResponse
25988
+ """
25989
+ UtilClient.validate_model(request)
25990
+ query = {}
25991
+ if not UtilClient.is_unset(request.region_id):
25992
+ query['RegionId'] = request.region_id
25993
+ if not UtilClient.is_unset(request.temporary_duration_minutes):
25994
+ query['TemporaryDurationMinutes'] = request.temporary_duration_minutes
25995
+ if not UtilClient.is_unset(request.vpc_id):
25996
+ query['VpcId'] = request.vpc_id
25997
+ req = open_api_models.OpenApiRequest(
25998
+ query=OpenApiUtilClient.query(query)
25999
+ )
26000
+ params = open_api_models.Params(
26001
+ action='DescribeRCClusterConfig',
26002
+ version='2014-08-15',
26003
+ protocol='HTTPS',
26004
+ pathname='/',
26005
+ method='POST',
26006
+ auth_type='AK',
26007
+ style='RPC',
26008
+ req_body_type='formData',
26009
+ body_type='json'
26010
+ )
26011
+ return TeaCore.from_map(
26012
+ rds_20140815_models.DescribeRCClusterConfigResponse(),
26013
+ self.call_api(params, req, runtime)
26014
+ )
26015
+
26016
+ async def describe_rccluster_config_with_options_async(
26017
+ self,
26018
+ request: rds_20140815_models.DescribeRCClusterConfigRequest,
26019
+ runtime: util_models.RuntimeOptions,
26020
+ ) -> rds_20140815_models.DescribeRCClusterConfigResponse:
26021
+ """
26022
+ @summary Queries the kubeconfig file of a Container Service for Kubernetes (ACK) cluster in which an RDS Custom instance resides.
26023
+
26024
+ @description Kubeconfig files store identity and authentication information that is used by clients to access ACK clusters. To use kubectl to manage an ACK cluster, you must use the kubeconfig file to connect to the ACK cluster. We recommend that you keep kubeconfig files confidential and revoke kubeconfig files that are not in use. This helps prevent data leaks caused by the disclosure of kubeconfig files.
26025
+
26026
+ @param request: DescribeRCClusterConfigRequest
26027
+ @param runtime: runtime options for this request RuntimeOptions
26028
+ @return: DescribeRCClusterConfigResponse
26029
+ """
26030
+ UtilClient.validate_model(request)
26031
+ query = {}
26032
+ if not UtilClient.is_unset(request.region_id):
26033
+ query['RegionId'] = request.region_id
26034
+ if not UtilClient.is_unset(request.temporary_duration_minutes):
26035
+ query['TemporaryDurationMinutes'] = request.temporary_duration_minutes
26036
+ if not UtilClient.is_unset(request.vpc_id):
26037
+ query['VpcId'] = request.vpc_id
26038
+ req = open_api_models.OpenApiRequest(
26039
+ query=OpenApiUtilClient.query(query)
26040
+ )
26041
+ params = open_api_models.Params(
26042
+ action='DescribeRCClusterConfig',
26043
+ version='2014-08-15',
26044
+ protocol='HTTPS',
26045
+ pathname='/',
26046
+ method='POST',
26047
+ auth_type='AK',
26048
+ style='RPC',
26049
+ req_body_type='formData',
26050
+ body_type='json'
26051
+ )
26052
+ return TeaCore.from_map(
26053
+ rds_20140815_models.DescribeRCClusterConfigResponse(),
26054
+ await self.call_api_async(params, req, runtime)
26055
+ )
26056
+
26057
+ def describe_rccluster_config(
26058
+ self,
26059
+ request: rds_20140815_models.DescribeRCClusterConfigRequest,
26060
+ ) -> rds_20140815_models.DescribeRCClusterConfigResponse:
26061
+ """
26062
+ @summary Queries the kubeconfig file of a Container Service for Kubernetes (ACK) cluster in which an RDS Custom instance resides.
26063
+
26064
+ @description Kubeconfig files store identity and authentication information that is used by clients to access ACK clusters. To use kubectl to manage an ACK cluster, you must use the kubeconfig file to connect to the ACK cluster. We recommend that you keep kubeconfig files confidential and revoke kubeconfig files that are not in use. This helps prevent data leaks caused by the disclosure of kubeconfig files.
26065
+
26066
+ @param request: DescribeRCClusterConfigRequest
26067
+ @return: DescribeRCClusterConfigResponse
26068
+ """
26069
+ runtime = util_models.RuntimeOptions()
26070
+ return self.describe_rccluster_config_with_options(request, runtime)
26071
+
26072
+ async def describe_rccluster_config_async(
26073
+ self,
26074
+ request: rds_20140815_models.DescribeRCClusterConfigRequest,
26075
+ ) -> rds_20140815_models.DescribeRCClusterConfigResponse:
26076
+ """
26077
+ @summary Queries the kubeconfig file of a Container Service for Kubernetes (ACK) cluster in which an RDS Custom instance resides.
26078
+
26079
+ @description Kubeconfig files store identity and authentication information that is used by clients to access ACK clusters. To use kubectl to manage an ACK cluster, you must use the kubeconfig file to connect to the ACK cluster. We recommend that you keep kubeconfig files confidential and revoke kubeconfig files that are not in use. This helps prevent data leaks caused by the disclosure of kubeconfig files.
26080
+
26081
+ @param request: DescribeRCClusterConfigRequest
26082
+ @return: DescribeRCClusterConfigResponse
26083
+ """
26084
+ runtime = util_models.RuntimeOptions()
26085
+ return await self.describe_rccluster_config_with_options_async(request, runtime)
26086
+
26087
+ def describe_rccluster_nodes_with_options(
26088
+ self,
26089
+ request: rds_20140815_models.DescribeRCClusterNodesRequest,
26090
+ runtime: util_models.RuntimeOptions,
26091
+ ) -> rds_20140815_models.DescribeRCClusterNodesResponse:
26092
+ """
26093
+ @summary Queries the RDS custom nodes in a Container Service for Kubernetes (ACK) cluster.
26094
+
26095
+ @param request: DescribeRCClusterNodesRequest
26096
+ @param runtime: runtime options for this request RuntimeOptions
26097
+ @return: DescribeRCClusterNodesResponse
26098
+ """
26099
+ UtilClient.validate_model(request)
26100
+ query = {}
26101
+ if not UtilClient.is_unset(request.page_number):
26102
+ query['PageNumber'] = request.page_number
26103
+ if not UtilClient.is_unset(request.page_size):
26104
+ query['PageSize'] = request.page_size
26105
+ if not UtilClient.is_unset(request.region_id):
26106
+ query['RegionId'] = request.region_id
26107
+ if not UtilClient.is_unset(request.vpc_id):
26108
+ query['VpcId'] = request.vpc_id
26109
+ req = open_api_models.OpenApiRequest(
26110
+ query=OpenApiUtilClient.query(query)
26111
+ )
26112
+ params = open_api_models.Params(
26113
+ action='DescribeRCClusterNodes',
26114
+ version='2014-08-15',
26115
+ protocol='HTTPS',
26116
+ pathname='/',
26117
+ method='POST',
26118
+ auth_type='AK',
26119
+ style='RPC',
26120
+ req_body_type='formData',
26121
+ body_type='json'
26122
+ )
26123
+ return TeaCore.from_map(
26124
+ rds_20140815_models.DescribeRCClusterNodesResponse(),
26125
+ self.call_api(params, req, runtime)
26126
+ )
26127
+
26128
+ async def describe_rccluster_nodes_with_options_async(
26129
+ self,
26130
+ request: rds_20140815_models.DescribeRCClusterNodesRequest,
26131
+ runtime: util_models.RuntimeOptions,
26132
+ ) -> rds_20140815_models.DescribeRCClusterNodesResponse:
26133
+ """
26134
+ @summary Queries the RDS custom nodes in a Container Service for Kubernetes (ACK) cluster.
26135
+
26136
+ @param request: DescribeRCClusterNodesRequest
26137
+ @param runtime: runtime options for this request RuntimeOptions
26138
+ @return: DescribeRCClusterNodesResponse
26139
+ """
26140
+ UtilClient.validate_model(request)
26141
+ query = {}
26142
+ if not UtilClient.is_unset(request.page_number):
26143
+ query['PageNumber'] = request.page_number
26144
+ if not UtilClient.is_unset(request.page_size):
26145
+ query['PageSize'] = request.page_size
26146
+ if not UtilClient.is_unset(request.region_id):
26147
+ query['RegionId'] = request.region_id
26148
+ if not UtilClient.is_unset(request.vpc_id):
26149
+ query['VpcId'] = request.vpc_id
26150
+ req = open_api_models.OpenApiRequest(
26151
+ query=OpenApiUtilClient.query(query)
26152
+ )
26153
+ params = open_api_models.Params(
26154
+ action='DescribeRCClusterNodes',
26155
+ version='2014-08-15',
26156
+ protocol='HTTPS',
26157
+ pathname='/',
26158
+ method='POST',
26159
+ auth_type='AK',
26160
+ style='RPC',
26161
+ req_body_type='formData',
26162
+ body_type='json'
26163
+ )
26164
+ return TeaCore.from_map(
26165
+ rds_20140815_models.DescribeRCClusterNodesResponse(),
26166
+ await self.call_api_async(params, req, runtime)
26167
+ )
26168
+
26169
+ def describe_rccluster_nodes(
26170
+ self,
26171
+ request: rds_20140815_models.DescribeRCClusterNodesRequest,
26172
+ ) -> rds_20140815_models.DescribeRCClusterNodesResponse:
26173
+ """
26174
+ @summary Queries the RDS custom nodes in a Container Service for Kubernetes (ACK) cluster.
26175
+
26176
+ @param request: DescribeRCClusterNodesRequest
26177
+ @return: DescribeRCClusterNodesResponse
26178
+ """
26179
+ runtime = util_models.RuntimeOptions()
26180
+ return self.describe_rccluster_nodes_with_options(request, runtime)
26181
+
26182
+ async def describe_rccluster_nodes_async(
26183
+ self,
26184
+ request: rds_20140815_models.DescribeRCClusterNodesRequest,
26185
+ ) -> rds_20140815_models.DescribeRCClusterNodesResponse:
26186
+ """
26187
+ @summary Queries the RDS custom nodes in a Container Service for Kubernetes (ACK) cluster.
26188
+
26189
+ @param request: DescribeRCClusterNodesRequest
26190
+ @return: DescribeRCClusterNodesResponse
26191
+ """
26192
+ runtime = util_models.RuntimeOptions()
26193
+ return await self.describe_rccluster_nodes_with_options_async(request, runtime)
26194
+
26195
+ def describe_rcclusters_with_options(
26196
+ self,
26197
+ request: rds_20140815_models.DescribeRCClustersRequest,
26198
+ runtime: util_models.RuntimeOptions,
26199
+ ) -> rds_20140815_models.DescribeRCClustersResponse:
26200
+ """
26201
+ @summary Queries Container Service for Kubernetes (ACK) clusters to which RDS Custom nodes reside in a specific region.
26202
+
26203
+ @param request: DescribeRCClustersRequest
26204
+ @param runtime: runtime options for this request RuntimeOptions
26205
+ @return: DescribeRCClustersResponse
26206
+ """
26207
+ UtilClient.validate_model(request)
26208
+ query = {}
26209
+ if not UtilClient.is_unset(request.region_id):
26210
+ query['RegionId'] = request.region_id
26211
+ req = open_api_models.OpenApiRequest(
26212
+ query=OpenApiUtilClient.query(query)
26213
+ )
26214
+ params = open_api_models.Params(
26215
+ action='DescribeRCClusters',
26216
+ version='2014-08-15',
26217
+ protocol='HTTPS',
26218
+ pathname='/',
26219
+ method='POST',
26220
+ auth_type='AK',
26221
+ style='RPC',
26222
+ req_body_type='formData',
26223
+ body_type='json'
26224
+ )
26225
+ return TeaCore.from_map(
26226
+ rds_20140815_models.DescribeRCClustersResponse(),
26227
+ self.call_api(params, req, runtime)
26228
+ )
26229
+
26230
+ async def describe_rcclusters_with_options_async(
26231
+ self,
26232
+ request: rds_20140815_models.DescribeRCClustersRequest,
26233
+ runtime: util_models.RuntimeOptions,
26234
+ ) -> rds_20140815_models.DescribeRCClustersResponse:
26235
+ """
26236
+ @summary Queries Container Service for Kubernetes (ACK) clusters to which RDS Custom nodes reside in a specific region.
26237
+
26238
+ @param request: DescribeRCClustersRequest
26239
+ @param runtime: runtime options for this request RuntimeOptions
26240
+ @return: DescribeRCClustersResponse
26241
+ """
26242
+ UtilClient.validate_model(request)
26243
+ query = {}
26244
+ if not UtilClient.is_unset(request.region_id):
26245
+ query['RegionId'] = request.region_id
26246
+ req = open_api_models.OpenApiRequest(
26247
+ query=OpenApiUtilClient.query(query)
26248
+ )
26249
+ params = open_api_models.Params(
26250
+ action='DescribeRCClusters',
26251
+ version='2014-08-15',
26252
+ protocol='HTTPS',
26253
+ pathname='/',
26254
+ method='POST',
26255
+ auth_type='AK',
26256
+ style='RPC',
26257
+ req_body_type='formData',
26258
+ body_type='json'
26259
+ )
26260
+ return TeaCore.from_map(
26261
+ rds_20140815_models.DescribeRCClustersResponse(),
26262
+ await self.call_api_async(params, req, runtime)
26263
+ )
26264
+
26265
+ def describe_rcclusters(
26266
+ self,
26267
+ request: rds_20140815_models.DescribeRCClustersRequest,
26268
+ ) -> rds_20140815_models.DescribeRCClustersResponse:
26269
+ """
26270
+ @summary Queries Container Service for Kubernetes (ACK) clusters to which RDS Custom nodes reside in a specific region.
26271
+
26272
+ @param request: DescribeRCClustersRequest
26273
+ @return: DescribeRCClustersResponse
26274
+ """
26275
+ runtime = util_models.RuntimeOptions()
26276
+ return self.describe_rcclusters_with_options(request, runtime)
26277
+
26278
+ async def describe_rcclusters_async(
26279
+ self,
26280
+ request: rds_20140815_models.DescribeRCClustersRequest,
26281
+ ) -> rds_20140815_models.DescribeRCClustersResponse:
26282
+ """
26283
+ @summary Queries Container Service for Kubernetes (ACK) clusters to which RDS Custom nodes reside in a specific region.
26284
+
26285
+ @param request: DescribeRCClustersRequest
26286
+ @return: DescribeRCClustersResponse
26287
+ """
26288
+ runtime = util_models.RuntimeOptions()
26289
+ return await self.describe_rcclusters_with_options_async(request, runtime)
26290
+
25155
26291
  def describe_rcdeployment_sets_with_options(
25156
26292
  self,
25157
26293
  request: rds_20140815_models.DescribeRCDeploymentSetsRequest,
@@ -25244,6 +26380,98 @@ class Client(OpenApiClient):
25244
26380
  runtime = util_models.RuntimeOptions()
25245
26381
  return await self.describe_rcdeployment_sets_with_options_async(request, runtime)
25246
26382
 
26383
+ def describe_rcdisks_with_options(
26384
+ self,
26385
+ request: rds_20140815_models.DescribeRCDisksRequest,
26386
+ runtime: util_models.RuntimeOptions,
26387
+ ) -> rds_20140815_models.DescribeRCDisksResponse:
26388
+ """
26389
+ @summary Queries the disk information about an RDS Custom instance.
26390
+
26391
+ @param request: DescribeRCDisksRequest
26392
+ @param runtime: runtime options for this request RuntimeOptions
26393
+ @return: DescribeRCDisksResponse
26394
+ """
26395
+ UtilClient.validate_model(request)
26396
+ query = OpenApiUtilClient.query(UtilClient.to_map(request))
26397
+ req = open_api_models.OpenApiRequest(
26398
+ query=OpenApiUtilClient.query(query)
26399
+ )
26400
+ params = open_api_models.Params(
26401
+ action='DescribeRCDisks',
26402
+ version='2014-08-15',
26403
+ protocol='HTTPS',
26404
+ pathname='/',
26405
+ method='GET',
26406
+ auth_type='AK',
26407
+ style='RPC',
26408
+ req_body_type='formData',
26409
+ body_type='json'
26410
+ )
26411
+ return TeaCore.from_map(
26412
+ rds_20140815_models.DescribeRCDisksResponse(),
26413
+ self.call_api(params, req, runtime)
26414
+ )
26415
+
26416
+ async def describe_rcdisks_with_options_async(
26417
+ self,
26418
+ request: rds_20140815_models.DescribeRCDisksRequest,
26419
+ runtime: util_models.RuntimeOptions,
26420
+ ) -> rds_20140815_models.DescribeRCDisksResponse:
26421
+ """
26422
+ @summary Queries the disk information about an RDS Custom instance.
26423
+
26424
+ @param request: DescribeRCDisksRequest
26425
+ @param runtime: runtime options for this request RuntimeOptions
26426
+ @return: DescribeRCDisksResponse
26427
+ """
26428
+ UtilClient.validate_model(request)
26429
+ query = OpenApiUtilClient.query(UtilClient.to_map(request))
26430
+ req = open_api_models.OpenApiRequest(
26431
+ query=OpenApiUtilClient.query(query)
26432
+ )
26433
+ params = open_api_models.Params(
26434
+ action='DescribeRCDisks',
26435
+ version='2014-08-15',
26436
+ protocol='HTTPS',
26437
+ pathname='/',
26438
+ method='GET',
26439
+ auth_type='AK',
26440
+ style='RPC',
26441
+ req_body_type='formData',
26442
+ body_type='json'
26443
+ )
26444
+ return TeaCore.from_map(
26445
+ rds_20140815_models.DescribeRCDisksResponse(),
26446
+ await self.call_api_async(params, req, runtime)
26447
+ )
26448
+
26449
+ def describe_rcdisks(
26450
+ self,
26451
+ request: rds_20140815_models.DescribeRCDisksRequest,
26452
+ ) -> rds_20140815_models.DescribeRCDisksResponse:
26453
+ """
26454
+ @summary Queries the disk information about an RDS Custom instance.
26455
+
26456
+ @param request: DescribeRCDisksRequest
26457
+ @return: DescribeRCDisksResponse
26458
+ """
26459
+ runtime = util_models.RuntimeOptions()
26460
+ return self.describe_rcdisks_with_options(request, runtime)
26461
+
26462
+ async def describe_rcdisks_async(
26463
+ self,
26464
+ request: rds_20140815_models.DescribeRCDisksRequest,
26465
+ ) -> rds_20140815_models.DescribeRCDisksResponse:
26466
+ """
26467
+ @summary Queries the disk information about an RDS Custom instance.
26468
+
26469
+ @param request: DescribeRCDisksRequest
26470
+ @return: DescribeRCDisksResponse
26471
+ """
26472
+ runtime = util_models.RuntimeOptions()
26473
+ return await self.describe_rcdisks_with_options_async(request, runtime)
26474
+
25247
26475
  def describe_rcimage_list_with_options(
25248
26476
  self,
25249
26477
  request: rds_20140815_models.DescribeRCImageListRequest,
@@ -25349,7 +26577,11 @@ class Client(OpenApiClient):
25349
26577
  @return: DescribeRCInstanceAttributeResponse
25350
26578
  """
25351
26579
  UtilClient.validate_model(request)
25352
- query = OpenApiUtilClient.query(UtilClient.to_map(request))
26580
+ query = {}
26581
+ if not UtilClient.is_unset(request.instance_id):
26582
+ query['InstanceId'] = request.instance_id
26583
+ if not UtilClient.is_unset(request.region_id):
26584
+ query['RegionId'] = request.region_id
25353
26585
  req = open_api_models.OpenApiRequest(
25354
26586
  query=OpenApiUtilClient.query(query)
25355
26587
  )
@@ -25358,7 +26590,7 @@ class Client(OpenApiClient):
25358
26590
  version='2014-08-15',
25359
26591
  protocol='HTTPS',
25360
26592
  pathname='/',
25361
- method='GET',
26593
+ method='POST',
25362
26594
  auth_type='AK',
25363
26595
  style='RPC',
25364
26596
  req_body_type='formData',
@@ -25382,7 +26614,11 @@ class Client(OpenApiClient):
25382
26614
  @return: DescribeRCInstanceAttributeResponse
25383
26615
  """
25384
26616
  UtilClient.validate_model(request)
25385
- query = OpenApiUtilClient.query(UtilClient.to_map(request))
26617
+ query = {}
26618
+ if not UtilClient.is_unset(request.instance_id):
26619
+ query['InstanceId'] = request.instance_id
26620
+ if not UtilClient.is_unset(request.region_id):
26621
+ query['RegionId'] = request.region_id
25386
26622
  req = open_api_models.OpenApiRequest(
25387
26623
  query=OpenApiUtilClient.query(query)
25388
26624
  )
@@ -25391,7 +26627,7 @@ class Client(OpenApiClient):
25391
26627
  version='2014-08-15',
25392
26628
  protocol='HTTPS',
25393
26629
  pathname='/',
25394
- method='GET',
26630
+ method='POST',
25395
26631
  auth_type='AK',
25396
26632
  style='RPC',
25397
26633
  req_body_type='formData',
@@ -25428,6 +26664,118 @@ class Client(OpenApiClient):
25428
26664
  runtime = util_models.RuntimeOptions()
25429
26665
  return await self.describe_rcinstance_attribute_with_options_async(request, runtime)
25430
26666
 
26667
+ def describe_rcinstance_vnc_url_with_options(
26668
+ self,
26669
+ request: rds_20140815_models.DescribeRCInstanceVncUrlRequest,
26670
+ runtime: util_models.RuntimeOptions,
26671
+ ) -> rds_20140815_models.DescribeRCInstanceVncUrlResponse:
26672
+ """
26673
+ @summary Queries the Virtual Network Computing (VNC) logon address of an RDS Custom instance.
26674
+
26675
+ @description The address returned is valid only for 15 seconds. If you do not use the returned address to establish a connection within 15 seconds, the address expires and you must call the operation again to obtain a new address.
26676
+
26677
+ @param request: DescribeRCInstanceVncUrlRequest
26678
+ @param runtime: runtime options for this request RuntimeOptions
26679
+ @return: DescribeRCInstanceVncUrlResponse
26680
+ """
26681
+ UtilClient.validate_model(request)
26682
+ query = {}
26683
+ if not UtilClient.is_unset(request.db_type):
26684
+ query['DbType'] = request.db_type
26685
+ if not UtilClient.is_unset(request.instance_id):
26686
+ query['InstanceId'] = request.instance_id
26687
+ if not UtilClient.is_unset(request.region_id):
26688
+ query['RegionId'] = request.region_id
26689
+ req = open_api_models.OpenApiRequest(
26690
+ query=OpenApiUtilClient.query(query)
26691
+ )
26692
+ params = open_api_models.Params(
26693
+ action='DescribeRCInstanceVncUrl',
26694
+ version='2014-08-15',
26695
+ protocol='HTTPS',
26696
+ pathname='/',
26697
+ method='POST',
26698
+ auth_type='AK',
26699
+ style='RPC',
26700
+ req_body_type='formData',
26701
+ body_type='json'
26702
+ )
26703
+ return TeaCore.from_map(
26704
+ rds_20140815_models.DescribeRCInstanceVncUrlResponse(),
26705
+ self.call_api(params, req, runtime)
26706
+ )
26707
+
26708
+ async def describe_rcinstance_vnc_url_with_options_async(
26709
+ self,
26710
+ request: rds_20140815_models.DescribeRCInstanceVncUrlRequest,
26711
+ runtime: util_models.RuntimeOptions,
26712
+ ) -> rds_20140815_models.DescribeRCInstanceVncUrlResponse:
26713
+ """
26714
+ @summary Queries the Virtual Network Computing (VNC) logon address of an RDS Custom instance.
26715
+
26716
+ @description The address returned is valid only for 15 seconds. If you do not use the returned address to establish a connection within 15 seconds, the address expires and you must call the operation again to obtain a new address.
26717
+
26718
+ @param request: DescribeRCInstanceVncUrlRequest
26719
+ @param runtime: runtime options for this request RuntimeOptions
26720
+ @return: DescribeRCInstanceVncUrlResponse
26721
+ """
26722
+ UtilClient.validate_model(request)
26723
+ query = {}
26724
+ if not UtilClient.is_unset(request.db_type):
26725
+ query['DbType'] = request.db_type
26726
+ if not UtilClient.is_unset(request.instance_id):
26727
+ query['InstanceId'] = request.instance_id
26728
+ if not UtilClient.is_unset(request.region_id):
26729
+ query['RegionId'] = request.region_id
26730
+ req = open_api_models.OpenApiRequest(
26731
+ query=OpenApiUtilClient.query(query)
26732
+ )
26733
+ params = open_api_models.Params(
26734
+ action='DescribeRCInstanceVncUrl',
26735
+ version='2014-08-15',
26736
+ protocol='HTTPS',
26737
+ pathname='/',
26738
+ method='POST',
26739
+ auth_type='AK',
26740
+ style='RPC',
26741
+ req_body_type='formData',
26742
+ body_type='json'
26743
+ )
26744
+ return TeaCore.from_map(
26745
+ rds_20140815_models.DescribeRCInstanceVncUrlResponse(),
26746
+ await self.call_api_async(params, req, runtime)
26747
+ )
26748
+
26749
+ def describe_rcinstance_vnc_url(
26750
+ self,
26751
+ request: rds_20140815_models.DescribeRCInstanceVncUrlRequest,
26752
+ ) -> rds_20140815_models.DescribeRCInstanceVncUrlResponse:
26753
+ """
26754
+ @summary Queries the Virtual Network Computing (VNC) logon address of an RDS Custom instance.
26755
+
26756
+ @description The address returned is valid only for 15 seconds. If you do not use the returned address to establish a connection within 15 seconds, the address expires and you must call the operation again to obtain a new address.
26757
+
26758
+ @param request: DescribeRCInstanceVncUrlRequest
26759
+ @return: DescribeRCInstanceVncUrlResponse
26760
+ """
26761
+ runtime = util_models.RuntimeOptions()
26762
+ return self.describe_rcinstance_vnc_url_with_options(request, runtime)
26763
+
26764
+ async def describe_rcinstance_vnc_url_async(
26765
+ self,
26766
+ request: rds_20140815_models.DescribeRCInstanceVncUrlRequest,
26767
+ ) -> rds_20140815_models.DescribeRCInstanceVncUrlResponse:
26768
+ """
26769
+ @summary Queries the Virtual Network Computing (VNC) logon address of an RDS Custom instance.
26770
+
26771
+ @description The address returned is valid only for 15 seconds. If you do not use the returned address to establish a connection within 15 seconds, the address expires and you must call the operation again to obtain a new address.
26772
+
26773
+ @param request: DescribeRCInstanceVncUrlRequest
26774
+ @return: DescribeRCInstanceVncUrlResponse
26775
+ """
26776
+ runtime = util_models.RuntimeOptions()
26777
+ return await self.describe_rcinstance_vnc_url_with_options_async(request, runtime)
26778
+
25431
26779
  def describe_rcinstances_with_options(
25432
26780
  self,
25433
26781
  request: rds_20140815_models.DescribeRCInstancesRequest,
@@ -25636,6 +26984,118 @@ class Client(OpenApiClient):
25636
26984
  runtime = util_models.RuntimeOptions()
25637
26985
  return await self.describe_rcmetric_list_with_options_async(request, runtime)
25638
26986
 
26987
+ def describe_rcsnapshots_with_options(
26988
+ self,
26989
+ request: rds_20140815_models.DescribeRCSnapshotsRequest,
26990
+ runtime: util_models.RuntimeOptions,
26991
+ ) -> rds_20140815_models.DescribeRCSnapshotsResponse:
26992
+ """
26993
+ @summary Queries the details of snapshots. The details include the status of the snapshots, the amount of remaining time required to create the snapshots, and the retention period of the automatic snapshots in days.
26994
+
26995
+ @param request: DescribeRCSnapshotsRequest
26996
+ @param runtime: runtime options for this request RuntimeOptions
26997
+ @return: DescribeRCSnapshotsResponse
26998
+ """
26999
+ UtilClient.validate_model(request)
27000
+ query = {}
27001
+ if not UtilClient.is_unset(request.disk_id):
27002
+ query['DiskId'] = request.disk_id
27003
+ if not UtilClient.is_unset(request.page_number):
27004
+ query['PageNumber'] = request.page_number
27005
+ if not UtilClient.is_unset(request.page_size):
27006
+ query['PageSize'] = request.page_size
27007
+ if not UtilClient.is_unset(request.region_id):
27008
+ query['RegionId'] = request.region_id
27009
+ if not UtilClient.is_unset(request.snapshot_ids):
27010
+ query['SnapshotIds'] = request.snapshot_ids
27011
+ req = open_api_models.OpenApiRequest(
27012
+ query=OpenApiUtilClient.query(query)
27013
+ )
27014
+ params = open_api_models.Params(
27015
+ action='DescribeRCSnapshots',
27016
+ version='2014-08-15',
27017
+ protocol='HTTPS',
27018
+ pathname='/',
27019
+ method='POST',
27020
+ auth_type='AK',
27021
+ style='RPC',
27022
+ req_body_type='formData',
27023
+ body_type='json'
27024
+ )
27025
+ return TeaCore.from_map(
27026
+ rds_20140815_models.DescribeRCSnapshotsResponse(),
27027
+ self.call_api(params, req, runtime)
27028
+ )
27029
+
27030
+ async def describe_rcsnapshots_with_options_async(
27031
+ self,
27032
+ request: rds_20140815_models.DescribeRCSnapshotsRequest,
27033
+ runtime: util_models.RuntimeOptions,
27034
+ ) -> rds_20140815_models.DescribeRCSnapshotsResponse:
27035
+ """
27036
+ @summary Queries the details of snapshots. The details include the status of the snapshots, the amount of remaining time required to create the snapshots, and the retention period of the automatic snapshots in days.
27037
+
27038
+ @param request: DescribeRCSnapshotsRequest
27039
+ @param runtime: runtime options for this request RuntimeOptions
27040
+ @return: DescribeRCSnapshotsResponse
27041
+ """
27042
+ UtilClient.validate_model(request)
27043
+ query = {}
27044
+ if not UtilClient.is_unset(request.disk_id):
27045
+ query['DiskId'] = request.disk_id
27046
+ if not UtilClient.is_unset(request.page_number):
27047
+ query['PageNumber'] = request.page_number
27048
+ if not UtilClient.is_unset(request.page_size):
27049
+ query['PageSize'] = request.page_size
27050
+ if not UtilClient.is_unset(request.region_id):
27051
+ query['RegionId'] = request.region_id
27052
+ if not UtilClient.is_unset(request.snapshot_ids):
27053
+ query['SnapshotIds'] = request.snapshot_ids
27054
+ req = open_api_models.OpenApiRequest(
27055
+ query=OpenApiUtilClient.query(query)
27056
+ )
27057
+ params = open_api_models.Params(
27058
+ action='DescribeRCSnapshots',
27059
+ version='2014-08-15',
27060
+ protocol='HTTPS',
27061
+ pathname='/',
27062
+ method='POST',
27063
+ auth_type='AK',
27064
+ style='RPC',
27065
+ req_body_type='formData',
27066
+ body_type='json'
27067
+ )
27068
+ return TeaCore.from_map(
27069
+ rds_20140815_models.DescribeRCSnapshotsResponse(),
27070
+ await self.call_api_async(params, req, runtime)
27071
+ )
27072
+
27073
+ def describe_rcsnapshots(
27074
+ self,
27075
+ request: rds_20140815_models.DescribeRCSnapshotsRequest,
27076
+ ) -> rds_20140815_models.DescribeRCSnapshotsResponse:
27077
+ """
27078
+ @summary Queries the details of snapshots. The details include the status of the snapshots, the amount of remaining time required to create the snapshots, and the retention period of the automatic snapshots in days.
27079
+
27080
+ @param request: DescribeRCSnapshotsRequest
27081
+ @return: DescribeRCSnapshotsResponse
27082
+ """
27083
+ runtime = util_models.RuntimeOptions()
27084
+ return self.describe_rcsnapshots_with_options(request, runtime)
27085
+
27086
+ async def describe_rcsnapshots_async(
27087
+ self,
27088
+ request: rds_20140815_models.DescribeRCSnapshotsRequest,
27089
+ ) -> rds_20140815_models.DescribeRCSnapshotsResponse:
27090
+ """
27091
+ @summary Queries the details of snapshots. The details include the status of the snapshots, the amount of remaining time required to create the snapshots, and the retention period of the automatic snapshots in days.
27092
+
27093
+ @param request: DescribeRCSnapshotsRequest
27094
+ @return: DescribeRCSnapshotsResponse
27095
+ """
27096
+ runtime = util_models.RuntimeOptions()
27097
+ return await self.describe_rcsnapshots_with_options_async(request, runtime)
27098
+
25639
27099
  def describe_rds_resource_settings_with_options(
25640
27100
  self,
25641
27101
  request: rds_20140815_models.DescribeRdsResourceSettingsRequest,
@@ -29720,6 +31180,114 @@ class Client(OpenApiClient):
29720
31180
  runtime = util_models.RuntimeOptions()
29721
31181
  return await self.detach_gad_instance_member_with_options_async(request, runtime)
29722
31182
 
31183
+ def detach_rcdisk_with_options(
31184
+ self,
31185
+ request: rds_20140815_models.DetachRCDiskRequest,
31186
+ runtime: util_models.RuntimeOptions,
31187
+ ) -> rds_20140815_models.DetachRCDiskResponse:
31188
+ """
31189
+ @summary Detaches a pay-as-you-go data disk or a system disk from an RDS Custom instance.
31190
+
31191
+ @param request: DetachRCDiskRequest
31192
+ @param runtime: runtime options for this request RuntimeOptions
31193
+ @return: DetachRCDiskResponse
31194
+ """
31195
+ UtilClient.validate_model(request)
31196
+ query = {}
31197
+ if not UtilClient.is_unset(request.delete_with_instance):
31198
+ query['DeleteWithInstance'] = request.delete_with_instance
31199
+ if not UtilClient.is_unset(request.disk_id):
31200
+ query['DiskId'] = request.disk_id
31201
+ if not UtilClient.is_unset(request.instance_id):
31202
+ query['InstanceId'] = request.instance_id
31203
+ if not UtilClient.is_unset(request.region_id):
31204
+ query['RegionId'] = request.region_id
31205
+ req = open_api_models.OpenApiRequest(
31206
+ query=OpenApiUtilClient.query(query)
31207
+ )
31208
+ params = open_api_models.Params(
31209
+ action='DetachRCDisk',
31210
+ version='2014-08-15',
31211
+ protocol='HTTPS',
31212
+ pathname='/',
31213
+ method='POST',
31214
+ auth_type='AK',
31215
+ style='RPC',
31216
+ req_body_type='formData',
31217
+ body_type='json'
31218
+ )
31219
+ return TeaCore.from_map(
31220
+ rds_20140815_models.DetachRCDiskResponse(),
31221
+ self.call_api(params, req, runtime)
31222
+ )
31223
+
31224
+ async def detach_rcdisk_with_options_async(
31225
+ self,
31226
+ request: rds_20140815_models.DetachRCDiskRequest,
31227
+ runtime: util_models.RuntimeOptions,
31228
+ ) -> rds_20140815_models.DetachRCDiskResponse:
31229
+ """
31230
+ @summary Detaches a pay-as-you-go data disk or a system disk from an RDS Custom instance.
31231
+
31232
+ @param request: DetachRCDiskRequest
31233
+ @param runtime: runtime options for this request RuntimeOptions
31234
+ @return: DetachRCDiskResponse
31235
+ """
31236
+ UtilClient.validate_model(request)
31237
+ query = {}
31238
+ if not UtilClient.is_unset(request.delete_with_instance):
31239
+ query['DeleteWithInstance'] = request.delete_with_instance
31240
+ if not UtilClient.is_unset(request.disk_id):
31241
+ query['DiskId'] = request.disk_id
31242
+ if not UtilClient.is_unset(request.instance_id):
31243
+ query['InstanceId'] = request.instance_id
31244
+ if not UtilClient.is_unset(request.region_id):
31245
+ query['RegionId'] = request.region_id
31246
+ req = open_api_models.OpenApiRequest(
31247
+ query=OpenApiUtilClient.query(query)
31248
+ )
31249
+ params = open_api_models.Params(
31250
+ action='DetachRCDisk',
31251
+ version='2014-08-15',
31252
+ protocol='HTTPS',
31253
+ pathname='/',
31254
+ method='POST',
31255
+ auth_type='AK',
31256
+ style='RPC',
31257
+ req_body_type='formData',
31258
+ body_type='json'
31259
+ )
31260
+ return TeaCore.from_map(
31261
+ rds_20140815_models.DetachRCDiskResponse(),
31262
+ await self.call_api_async(params, req, runtime)
31263
+ )
31264
+
31265
+ def detach_rcdisk(
31266
+ self,
31267
+ request: rds_20140815_models.DetachRCDiskRequest,
31268
+ ) -> rds_20140815_models.DetachRCDiskResponse:
31269
+ """
31270
+ @summary Detaches a pay-as-you-go data disk or a system disk from an RDS Custom instance.
31271
+
31272
+ @param request: DetachRCDiskRequest
31273
+ @return: DetachRCDiskResponse
31274
+ """
31275
+ runtime = util_models.RuntimeOptions()
31276
+ return self.detach_rcdisk_with_options(request, runtime)
31277
+
31278
+ async def detach_rcdisk_async(
31279
+ self,
31280
+ request: rds_20140815_models.DetachRCDiskRequest,
31281
+ ) -> rds_20140815_models.DetachRCDiskResponse:
31282
+ """
31283
+ @summary Detaches a pay-as-you-go data disk or a system disk from an RDS Custom instance.
31284
+
31285
+ @param request: DetachRCDiskRequest
31286
+ @return: DetachRCDiskResponse
31287
+ """
31288
+ runtime = util_models.RuntimeOptions()
31289
+ return await self.detach_rcdisk_with_options_async(request, runtime)
31290
+
29723
31291
  def detach_whitelist_template_to_instance_with_options(
29724
31292
  self,
29725
31293
  request: rds_20140815_models.DetachWhitelistTemplateToInstanceRequest,
@@ -29986,9 +31554,6 @@ class Client(OpenApiClient):
29986
31554
 
29987
31555
  @description ### Supported database engines
29988
31556
  RDS MySQL
29989
- RDS PostgreSQL
29990
- RDS SQL Server
29991
- RDS MariaDB
29992
31557
 
29993
31558
  @param request: GetDBInstanceTopologyRequest
29994
31559
  @param runtime: runtime options for this request RuntimeOptions
@@ -30031,9 +31596,6 @@ class Client(OpenApiClient):
30031
31596
 
30032
31597
  @description ### Supported database engines
30033
31598
  RDS MySQL
30034
- RDS PostgreSQL
30035
- RDS SQL Server
30036
- RDS MariaDB
30037
31599
 
30038
31600
  @param request: GetDBInstanceTopologyRequest
30039
31601
  @param runtime: runtime options for this request RuntimeOptions
@@ -30075,9 +31637,6 @@ class Client(OpenApiClient):
30075
31637
 
30076
31638
  @description ### Supported database engines
30077
31639
  RDS MySQL
30078
- RDS PostgreSQL
30079
- RDS SQL Server
30080
- RDS MariaDB
30081
31640
 
30082
31641
  @param request: GetDBInstanceTopologyRequest
30083
31642
  @return: GetDBInstanceTopologyResponse
@@ -30094,9 +31653,6 @@ class Client(OpenApiClient):
30094
31653
 
30095
31654
  @description ### Supported database engines
30096
31655
  RDS MySQL
30097
- RDS PostgreSQL
30098
- RDS SQL Server
30099
- RDS MariaDB
30100
31656
 
30101
31657
  @param request: GetDBInstanceTopologyRequest
30102
31658
  @return: GetDBInstanceTopologyResponse
@@ -30530,6 +32086,8 @@ class Client(OpenApiClient):
30530
32086
  query['BucketRegion'] = request.bucket_region
30531
32087
  if not UtilClient.is_unset(request.comment):
30532
32088
  query['Comment'] = request.comment
32089
+ if not UtilClient.is_unset(request.dbinstance_id):
32090
+ query['DBInstanceId'] = request.dbinstance_id
30533
32091
  if not UtilClient.is_unset(request.engine_version):
30534
32092
  query['EngineVersion'] = request.engine_version
30535
32093
  if not UtilClient.is_unset(request.owner_id):
@@ -30597,6 +32155,8 @@ class Client(OpenApiClient):
30597
32155
  query['BucketRegion'] = request.bucket_region
30598
32156
  if not UtilClient.is_unset(request.comment):
30599
32157
  query['Comment'] = request.comment
32158
+ if not UtilClient.is_unset(request.dbinstance_id):
32159
+ query['DBInstanceId'] = request.dbinstance_id
30600
32160
  if not UtilClient.is_unset(request.engine_version):
30601
32161
  query['EngineVersion'] = request.engine_version
30602
32162
  if not UtilClient.is_unset(request.owner_id):
@@ -36304,6 +37864,8 @@ class Client(OpenApiClient):
36304
37864
  query['OwnerId'] = request.owner_id
36305
37865
  if not UtilClient.is_unset(request.pay_type):
36306
37866
  query['PayType'] = request.pay_type
37867
+ if not UtilClient.is_unset(request.promotion_code):
37868
+ query['PromotionCode'] = request.promotion_code
36307
37869
  if not UtilClient.is_unset(request.read_only_dbinstance_class):
36308
37870
  query['ReadOnlyDBInstanceClass'] = request.read_only_dbinstance_class
36309
37871
  if not UtilClient.is_unset(request.resource_group_id):
@@ -36411,6 +37973,8 @@ class Client(OpenApiClient):
36411
37973
  query['OwnerId'] = request.owner_id
36412
37974
  if not UtilClient.is_unset(request.pay_type):
36413
37975
  query['PayType'] = request.pay_type
37976
+ if not UtilClient.is_unset(request.promotion_code):
37977
+ query['PromotionCode'] = request.promotion_code
36414
37978
  if not UtilClient.is_unset(request.read_only_dbinstance_class):
36415
37979
  query['ReadOnlyDBInstanceClass'] = request.read_only_dbinstance_class
36416
37980
  if not UtilClient.is_unset(request.resource_group_id):
@@ -36870,16 +38434,16 @@ class Client(OpenApiClient):
36870
38434
  runtime: util_models.RuntimeOptions,
36871
38435
  ) -> rds_20140815_models.ModifyDBProxyResponse:
36872
38436
  """
36873
- @summary Enables or disables the dedicated proxy feature for an instance.
38437
+ @summary Enables or modifies the database proxy feature for an instance.
36874
38438
 
36875
38439
  @description ### [](#)Supported database engines
36876
38440
  MySQL
36877
38441
  PostgreSQL
36878
- > Starting October 17, 2023, ApsaraDB RDS provides a dedicated proxy free of charge for each ApsaraDB RDS for MySQL instance on RDS Cluster Edition. For more information, see [[Special offers/Price changes\\] One proxy is provided free of charge for ApsaraDB RDS for MySQL instances on RDS Cluster Edition](~~2555466~~).
38442
+ > Starting October 17, 2023, ApsaraDB RDS for MySQL instances that run RDS Cluster Edition offer one free-of-charge dedicated database proxy for each unit in phases. For more information, see [[Special offers/Price changes\\] One dedicated proxy is provided free of charge for ApsaraDB RDS for MySQL instances on RDS Cluster Edition](~~2555466~~).
36879
38443
  ### [](#)References
36880
- > Before you call this operation, read the following documentation and make sure that you fully understand the prerequisites and impacts of this operation.
36881
- [Enable and configure the dedicated proxy feature for an ApsaraDB RDS for MySQL instance](https://help.aliyun.com/document_detail/197456.html)
36882
- [Enable and configure the dedicated proxy feature for an ApsaraDB RDS for PostgreSQL instance](https://help.aliyun.com/document_detail/418272.html)
38444
+ > Before you call this operation, read the following topics and make sure that you fully understand the prerequisites and impacts of this operation.
38445
+ [Enable the database proxy feature of ApsaraDB RDS for MySQL](https://help.aliyun.com/document_detail/197456.html)
38446
+ [Enable the database proxy feature of ApsaraDB RDS for PostgreSQL](https://help.aliyun.com/document_detail/418272.html)
36883
38447
 
36884
38448
  @param tmp_req: ModifyDBProxyRequest
36885
38449
  @param runtime: runtime options for this request RuntimeOptions
@@ -36948,16 +38512,16 @@ class Client(OpenApiClient):
36948
38512
  runtime: util_models.RuntimeOptions,
36949
38513
  ) -> rds_20140815_models.ModifyDBProxyResponse:
36950
38514
  """
36951
- @summary Enables or disables the dedicated proxy feature for an instance.
38515
+ @summary Enables or modifies the database proxy feature for an instance.
36952
38516
 
36953
38517
  @description ### [](#)Supported database engines
36954
38518
  MySQL
36955
38519
  PostgreSQL
36956
- > Starting October 17, 2023, ApsaraDB RDS provides a dedicated proxy free of charge for each ApsaraDB RDS for MySQL instance on RDS Cluster Edition. For more information, see [[Special offers/Price changes\\] One proxy is provided free of charge for ApsaraDB RDS for MySQL instances on RDS Cluster Edition](~~2555466~~).
38520
+ > Starting October 17, 2023, ApsaraDB RDS for MySQL instances that run RDS Cluster Edition offer one free-of-charge dedicated database proxy for each unit in phases. For more information, see [[Special offers/Price changes\\] One dedicated proxy is provided free of charge for ApsaraDB RDS for MySQL instances on RDS Cluster Edition](~~2555466~~).
36957
38521
  ### [](#)References
36958
- > Before you call this operation, read the following documentation and make sure that you fully understand the prerequisites and impacts of this operation.
36959
- [Enable and configure the dedicated proxy feature for an ApsaraDB RDS for MySQL instance](https://help.aliyun.com/document_detail/197456.html)
36960
- [Enable and configure the dedicated proxy feature for an ApsaraDB RDS for PostgreSQL instance](https://help.aliyun.com/document_detail/418272.html)
38522
+ > Before you call this operation, read the following topics and make sure that you fully understand the prerequisites and impacts of this operation.
38523
+ [Enable the database proxy feature of ApsaraDB RDS for MySQL](https://help.aliyun.com/document_detail/197456.html)
38524
+ [Enable the database proxy feature of ApsaraDB RDS for PostgreSQL](https://help.aliyun.com/document_detail/418272.html)
36961
38525
 
36962
38526
  @param tmp_req: ModifyDBProxyRequest
36963
38527
  @param runtime: runtime options for this request RuntimeOptions
@@ -37025,16 +38589,16 @@ class Client(OpenApiClient):
37025
38589
  request: rds_20140815_models.ModifyDBProxyRequest,
37026
38590
  ) -> rds_20140815_models.ModifyDBProxyResponse:
37027
38591
  """
37028
- @summary Enables or disables the dedicated proxy feature for an instance.
38592
+ @summary Enables or modifies the database proxy feature for an instance.
37029
38593
 
37030
38594
  @description ### [](#)Supported database engines
37031
38595
  MySQL
37032
38596
  PostgreSQL
37033
- > Starting October 17, 2023, ApsaraDB RDS provides a dedicated proxy free of charge for each ApsaraDB RDS for MySQL instance on RDS Cluster Edition. For more information, see [[Special offers/Price changes\\] One proxy is provided free of charge for ApsaraDB RDS for MySQL instances on RDS Cluster Edition](~~2555466~~).
38597
+ > Starting October 17, 2023, ApsaraDB RDS for MySQL instances that run RDS Cluster Edition offer one free-of-charge dedicated database proxy for each unit in phases. For more information, see [[Special offers/Price changes\\] One dedicated proxy is provided free of charge for ApsaraDB RDS for MySQL instances on RDS Cluster Edition](~~2555466~~).
37034
38598
  ### [](#)References
37035
- > Before you call this operation, read the following documentation and make sure that you fully understand the prerequisites and impacts of this operation.
37036
- [Enable and configure the dedicated proxy feature for an ApsaraDB RDS for MySQL instance](https://help.aliyun.com/document_detail/197456.html)
37037
- [Enable and configure the dedicated proxy feature for an ApsaraDB RDS for PostgreSQL instance](https://help.aliyun.com/document_detail/418272.html)
38599
+ > Before you call this operation, read the following topics and make sure that you fully understand the prerequisites and impacts of this operation.
38600
+ [Enable the database proxy feature of ApsaraDB RDS for MySQL](https://help.aliyun.com/document_detail/197456.html)
38601
+ [Enable the database proxy feature of ApsaraDB RDS for PostgreSQL](https://help.aliyun.com/document_detail/418272.html)
37038
38602
 
37039
38603
  @param request: ModifyDBProxyRequest
37040
38604
  @return: ModifyDBProxyResponse
@@ -37047,16 +38611,16 @@ class Client(OpenApiClient):
37047
38611
  request: rds_20140815_models.ModifyDBProxyRequest,
37048
38612
  ) -> rds_20140815_models.ModifyDBProxyResponse:
37049
38613
  """
37050
- @summary Enables or disables the dedicated proxy feature for an instance.
38614
+ @summary Enables or modifies the database proxy feature for an instance.
37051
38615
 
37052
38616
  @description ### [](#)Supported database engines
37053
38617
  MySQL
37054
38618
  PostgreSQL
37055
- > Starting October 17, 2023, ApsaraDB RDS provides a dedicated proxy free of charge for each ApsaraDB RDS for MySQL instance on RDS Cluster Edition. For more information, see [[Special offers/Price changes\\] One proxy is provided free of charge for ApsaraDB RDS for MySQL instances on RDS Cluster Edition](~~2555466~~).
38619
+ > Starting October 17, 2023, ApsaraDB RDS for MySQL instances that run RDS Cluster Edition offer one free-of-charge dedicated database proxy for each unit in phases. For more information, see [[Special offers/Price changes\\] One dedicated proxy is provided free of charge for ApsaraDB RDS for MySQL instances on RDS Cluster Edition](~~2555466~~).
37056
38620
  ### [](#)References
37057
- > Before you call this operation, read the following documentation and make sure that you fully understand the prerequisites and impacts of this operation.
37058
- [Enable and configure the dedicated proxy feature for an ApsaraDB RDS for MySQL instance](https://help.aliyun.com/document_detail/197456.html)
37059
- [Enable and configure the dedicated proxy feature for an ApsaraDB RDS for PostgreSQL instance](https://help.aliyun.com/document_detail/418272.html)
38621
+ > Before you call this operation, read the following topics and make sure that you fully understand the prerequisites and impacts of this operation.
38622
+ [Enable the database proxy feature of ApsaraDB RDS for MySQL](https://help.aliyun.com/document_detail/197456.html)
38623
+ [Enable the database proxy feature of ApsaraDB RDS for PostgreSQL](https://help.aliyun.com/document_detail/418272.html)
37060
38624
 
37061
38625
  @param request: ModifyDBProxyRequest
37062
38626
  @return: ModifyDBProxyResponse
@@ -37270,15 +38834,15 @@ class Client(OpenApiClient):
37270
38834
  runtime: util_models.RuntimeOptions,
37271
38835
  ) -> rds_20140815_models.ModifyDBProxyEndpointAddressResponse:
37272
38836
  """
37273
- @summary Changes an endpoint that is used to connect to the dedicated proxy of an ApsaraDB RDS instance.
38837
+ @summary Modifies the database proxy endpoint of an instance.
37274
38838
 
37275
- @description ### Supported database engines
38839
+ @description ### [](#)Supported database engines
37276
38840
  MySQL
37277
38841
  PostgreSQL
37278
- ### References
37279
- > Before you call this operation, read the following documentation and make sure that you fully understand the prerequisites and impacts of this operation.
37280
- [Configure the dedicated proxy endpoint of an ApsaraDB RDS for MySQL instance](https://help.aliyun.com/document_detail/184921.html)
37281
- [Configure the dedicated proxy endpoint of an ApsaraDB RDS for PostgreSQL instance](https://help.aliyun.com/document_detail/418274.html)
38842
+ ### [](#)References
38843
+ > Before you call this operation, read the following topics and make sure that you fully understand the prerequisites and impacts of this operation.
38844
+ [Configure the database proxy endpoint of an ApsaraDB RDS for MySQL instance](https://help.aliyun.com/document_detail/184921.html)
38845
+ [Configure the database proxy endpoint of an ApsaraDB RDS for PostgreSQL instance](https://help.aliyun.com/document_detail/418274.html)
37282
38846
 
37283
38847
  @param request: ModifyDBProxyEndpointAddressRequest
37284
38848
  @param runtime: runtime options for this request RuntimeOptions
@@ -37331,15 +38895,15 @@ class Client(OpenApiClient):
37331
38895
  runtime: util_models.RuntimeOptions,
37332
38896
  ) -> rds_20140815_models.ModifyDBProxyEndpointAddressResponse:
37333
38897
  """
37334
- @summary Changes an endpoint that is used to connect to the dedicated proxy of an ApsaraDB RDS instance.
38898
+ @summary Modifies the database proxy endpoint of an instance.
37335
38899
 
37336
- @description ### Supported database engines
38900
+ @description ### [](#)Supported database engines
37337
38901
  MySQL
37338
38902
  PostgreSQL
37339
- ### References
37340
- > Before you call this operation, read the following documentation and make sure that you fully understand the prerequisites and impacts of this operation.
37341
- [Configure the dedicated proxy endpoint of an ApsaraDB RDS for MySQL instance](https://help.aliyun.com/document_detail/184921.html)
37342
- [Configure the dedicated proxy endpoint of an ApsaraDB RDS for PostgreSQL instance](https://help.aliyun.com/document_detail/418274.html)
38903
+ ### [](#)References
38904
+ > Before you call this operation, read the following topics and make sure that you fully understand the prerequisites and impacts of this operation.
38905
+ [Configure the database proxy endpoint of an ApsaraDB RDS for MySQL instance](https://help.aliyun.com/document_detail/184921.html)
38906
+ [Configure the database proxy endpoint of an ApsaraDB RDS for PostgreSQL instance](https://help.aliyun.com/document_detail/418274.html)
37343
38907
 
37344
38908
  @param request: ModifyDBProxyEndpointAddressRequest
37345
38909
  @param runtime: runtime options for this request RuntimeOptions
@@ -37391,15 +38955,15 @@ class Client(OpenApiClient):
37391
38955
  request: rds_20140815_models.ModifyDBProxyEndpointAddressRequest,
37392
38956
  ) -> rds_20140815_models.ModifyDBProxyEndpointAddressResponse:
37393
38957
  """
37394
- @summary Changes an endpoint that is used to connect to the dedicated proxy of an ApsaraDB RDS instance.
38958
+ @summary Modifies the database proxy endpoint of an instance.
37395
38959
 
37396
- @description ### Supported database engines
38960
+ @description ### [](#)Supported database engines
37397
38961
  MySQL
37398
38962
  PostgreSQL
37399
- ### References
37400
- > Before you call this operation, read the following documentation and make sure that you fully understand the prerequisites and impacts of this operation.
37401
- [Configure the dedicated proxy endpoint of an ApsaraDB RDS for MySQL instance](https://help.aliyun.com/document_detail/184921.html)
37402
- [Configure the dedicated proxy endpoint of an ApsaraDB RDS for PostgreSQL instance](https://help.aliyun.com/document_detail/418274.html)
38963
+ ### [](#)References
38964
+ > Before you call this operation, read the following topics and make sure that you fully understand the prerequisites and impacts of this operation.
38965
+ [Configure the database proxy endpoint of an ApsaraDB RDS for MySQL instance](https://help.aliyun.com/document_detail/184921.html)
38966
+ [Configure the database proxy endpoint of an ApsaraDB RDS for PostgreSQL instance](https://help.aliyun.com/document_detail/418274.html)
37403
38967
 
37404
38968
  @param request: ModifyDBProxyEndpointAddressRequest
37405
38969
  @return: ModifyDBProxyEndpointAddressResponse
@@ -37412,15 +38976,15 @@ class Client(OpenApiClient):
37412
38976
  request: rds_20140815_models.ModifyDBProxyEndpointAddressRequest,
37413
38977
  ) -> rds_20140815_models.ModifyDBProxyEndpointAddressResponse:
37414
38978
  """
37415
- @summary Changes an endpoint that is used to connect to the dedicated proxy of an ApsaraDB RDS instance.
38979
+ @summary Modifies the database proxy endpoint of an instance.
37416
38980
 
37417
- @description ### Supported database engines
38981
+ @description ### [](#)Supported database engines
37418
38982
  MySQL
37419
38983
  PostgreSQL
37420
- ### References
37421
- > Before you call this operation, read the following documentation and make sure that you fully understand the prerequisites and impacts of this operation.
37422
- [Configure the dedicated proxy endpoint of an ApsaraDB RDS for MySQL instance](https://help.aliyun.com/document_detail/184921.html)
37423
- [Configure the dedicated proxy endpoint of an ApsaraDB RDS for PostgreSQL instance](https://help.aliyun.com/document_detail/418274.html)
38984
+ ### [](#)References
38985
+ > Before you call this operation, read the following topics and make sure that you fully understand the prerequisites and impacts of this operation.
38986
+ [Configure the database proxy endpoint of an ApsaraDB RDS for MySQL instance](https://help.aliyun.com/document_detail/184921.html)
38987
+ [Configure the database proxy endpoint of an ApsaraDB RDS for PostgreSQL instance](https://help.aliyun.com/document_detail/418274.html)
37424
38988
 
37425
38989
  @param request: ModifyDBProxyEndpointAddressRequest
37426
38990
  @return: ModifyDBProxyEndpointAddressResponse
@@ -37924,12 +39488,11 @@ class Client(OpenApiClient):
37924
39488
  """
37925
39489
  @summary Modifies the property settings of an ApsaraDB RDS for SQL Server instance.
37926
39490
 
37927
- @description ### [](#)Supported database engines
39491
+ @description ### [](#)Supported database engine
37928
39492
  SQL Server
37929
39493
  ### [](#)References
37930
- <props="china">You can call this operation to modify the database properties of an ApsaraDB RDS for SQL Server instance and archive data from an instance that uses general Enterprise SSDs (ESSDs) to an Object Storage Service (OSS) bucket. Before you call this operation to archive data to an OSS bucket, you must enable the data archiving feature in the ApsaraDB RDS console. For more information, see [Modify database properties](https://help.aliyun.com/document_detail/2401398.html) and [Archive cloud disk data to an OSS bucket](https://help.aliyun.com/document_detail/2767189.html).
37931
- <props="intl">You can call this operation to modify the database properties of an ApsaraDB RDS for SQL Server instance and archive data from an instance that uses general Enterprise SSDs (ESSDs) to an Object Storage Service (OSS) bucket. Before you call this operation to archive data to an OSS bucket, you must enable the data archiving feature in the ApsaraDB RDS console. For more information, see [Modify database properties](https://help.aliyun.com/document_detail/2401398.html).
37932
- > : Before you call this operation, read the preceding topics and make sure that you fully understand the prerequisites and impacts of this operation.
39494
+ You can call this operation to modify the database properties of an ApsaraDB RDS for SQL Server instance and archive data from an instance that uses cloud disks to an Object Storage Service (OSS) bucket. Before you call this operation to archive data to an OSS bucket, you must enable the data archiving feature in the ApsaraDB RDS console. For more information, see [Modify database properties](https://help.aliyun.com/document_detail/2401398.html) and [Archive cloud disk data to an OSS bucket](https://help.aliyun.com/document_detail/2767189.html).
39495
+ > Before you call this operation, read the following topics and make sure that you fully understand the prerequisites and impacts of this operation.
37933
39496
 
37934
39497
  @param request: ModifyDatabaseConfigRequest
37935
39498
  @param runtime: runtime options for this request RuntimeOptions
@@ -37980,12 +39543,11 @@ class Client(OpenApiClient):
37980
39543
  """
37981
39544
  @summary Modifies the property settings of an ApsaraDB RDS for SQL Server instance.
37982
39545
 
37983
- @description ### [](#)Supported database engines
39546
+ @description ### [](#)Supported database engine
37984
39547
  SQL Server
37985
39548
  ### [](#)References
37986
- <props="china">You can call this operation to modify the database properties of an ApsaraDB RDS for SQL Server instance and archive data from an instance that uses general Enterprise SSDs (ESSDs) to an Object Storage Service (OSS) bucket. Before you call this operation to archive data to an OSS bucket, you must enable the data archiving feature in the ApsaraDB RDS console. For more information, see [Modify database properties](https://help.aliyun.com/document_detail/2401398.html) and [Archive cloud disk data to an OSS bucket](https://help.aliyun.com/document_detail/2767189.html).
37987
- <props="intl">You can call this operation to modify the database properties of an ApsaraDB RDS for SQL Server instance and archive data from an instance that uses general Enterprise SSDs (ESSDs) to an Object Storage Service (OSS) bucket. Before you call this operation to archive data to an OSS bucket, you must enable the data archiving feature in the ApsaraDB RDS console. For more information, see [Modify database properties](https://help.aliyun.com/document_detail/2401398.html).
37988
- > : Before you call this operation, read the preceding topics and make sure that you fully understand the prerequisites and impacts of this operation.
39549
+ You can call this operation to modify the database properties of an ApsaraDB RDS for SQL Server instance and archive data from an instance that uses cloud disks to an Object Storage Service (OSS) bucket. Before you call this operation to archive data to an OSS bucket, you must enable the data archiving feature in the ApsaraDB RDS console. For more information, see [Modify database properties](https://help.aliyun.com/document_detail/2401398.html) and [Archive cloud disk data to an OSS bucket](https://help.aliyun.com/document_detail/2767189.html).
39550
+ > Before you call this operation, read the following topics and make sure that you fully understand the prerequisites and impacts of this operation.
37989
39551
 
37990
39552
  @param request: ModifyDatabaseConfigRequest
37991
39553
  @param runtime: runtime options for this request RuntimeOptions
@@ -38035,12 +39597,11 @@ class Client(OpenApiClient):
38035
39597
  """
38036
39598
  @summary Modifies the property settings of an ApsaraDB RDS for SQL Server instance.
38037
39599
 
38038
- @description ### [](#)Supported database engines
39600
+ @description ### [](#)Supported database engine
38039
39601
  SQL Server
38040
39602
  ### [](#)References
38041
- <props="china">You can call this operation to modify the database properties of an ApsaraDB RDS for SQL Server instance and archive data from an instance that uses general Enterprise SSDs (ESSDs) to an Object Storage Service (OSS) bucket. Before you call this operation to archive data to an OSS bucket, you must enable the data archiving feature in the ApsaraDB RDS console. For more information, see [Modify database properties](https://help.aliyun.com/document_detail/2401398.html) and [Archive cloud disk data to an OSS bucket](https://help.aliyun.com/document_detail/2767189.html).
38042
- <props="intl">You can call this operation to modify the database properties of an ApsaraDB RDS for SQL Server instance and archive data from an instance that uses general Enterprise SSDs (ESSDs) to an Object Storage Service (OSS) bucket. Before you call this operation to archive data to an OSS bucket, you must enable the data archiving feature in the ApsaraDB RDS console. For more information, see [Modify database properties](https://help.aliyun.com/document_detail/2401398.html).
38043
- > : Before you call this operation, read the preceding topics and make sure that you fully understand the prerequisites and impacts of this operation.
39603
+ You can call this operation to modify the database properties of an ApsaraDB RDS for SQL Server instance and archive data from an instance that uses cloud disks to an Object Storage Service (OSS) bucket. Before you call this operation to archive data to an OSS bucket, you must enable the data archiving feature in the ApsaraDB RDS console. For more information, see [Modify database properties](https://help.aliyun.com/document_detail/2401398.html) and [Archive cloud disk data to an OSS bucket](https://help.aliyun.com/document_detail/2767189.html).
39604
+ > Before you call this operation, read the following topics and make sure that you fully understand the prerequisites and impacts of this operation.
38044
39605
 
38045
39606
  @param request: ModifyDatabaseConfigRequest
38046
39607
  @return: ModifyDatabaseConfigResponse
@@ -38055,12 +39616,11 @@ class Client(OpenApiClient):
38055
39616
  """
38056
39617
  @summary Modifies the property settings of an ApsaraDB RDS for SQL Server instance.
38057
39618
 
38058
- @description ### [](#)Supported database engines
39619
+ @description ### [](#)Supported database engine
38059
39620
  SQL Server
38060
39621
  ### [](#)References
38061
- <props="china">You can call this operation to modify the database properties of an ApsaraDB RDS for SQL Server instance and archive data from an instance that uses general Enterprise SSDs (ESSDs) to an Object Storage Service (OSS) bucket. Before you call this operation to archive data to an OSS bucket, you must enable the data archiving feature in the ApsaraDB RDS console. For more information, see [Modify database properties](https://help.aliyun.com/document_detail/2401398.html) and [Archive cloud disk data to an OSS bucket](https://help.aliyun.com/document_detail/2767189.html).
38062
- <props="intl">You can call this operation to modify the database properties of an ApsaraDB RDS for SQL Server instance and archive data from an instance that uses general Enterprise SSDs (ESSDs) to an Object Storage Service (OSS) bucket. Before you call this operation to archive data to an OSS bucket, you must enable the data archiving feature in the ApsaraDB RDS console. For more information, see [Modify database properties](https://help.aliyun.com/document_detail/2401398.html).
38063
- > : Before you call this operation, read the preceding topics and make sure that you fully understand the prerequisites and impacts of this operation.
39622
+ You can call this operation to modify the database properties of an ApsaraDB RDS for SQL Server instance and archive data from an instance that uses cloud disks to an Object Storage Service (OSS) bucket. Before you call this operation to archive data to an OSS bucket, you must enable the data archiving feature in the ApsaraDB RDS console. For more information, see [Modify database properties](https://help.aliyun.com/document_detail/2401398.html) and [Archive cloud disk data to an OSS bucket](https://help.aliyun.com/document_detail/2767189.html).
39623
+ > Before you call this operation, read the following topics and make sure that you fully understand the prerequisites and impacts of this operation.
38064
39624
 
38065
39625
  @param request: ModifyDatabaseConfigRequest
38066
39626
  @return: ModifyDatabaseConfigResponse
@@ -39784,6 +41344,118 @@ class Client(OpenApiClient):
39784
41344
  runtime = util_models.RuntimeOptions()
39785
41345
  return await self.modify_rcinstance_with_options_async(request, runtime)
39786
41346
 
41347
+ def modify_rcinstance_attribute_with_options(
41348
+ self,
41349
+ request: rds_20140815_models.ModifyRCInstanceAttributeRequest,
41350
+ runtime: util_models.RuntimeOptions,
41351
+ ) -> rds_20140815_models.ModifyRCInstanceAttributeResponse:
41352
+ """
41353
+ @summary Modifies specific attributes of an RDS Custom instance, such as the password or hostname.
41354
+
41355
+ @param request: ModifyRCInstanceAttributeRequest
41356
+ @param runtime: runtime options for this request RuntimeOptions
41357
+ @return: ModifyRCInstanceAttributeResponse
41358
+ """
41359
+ UtilClient.validate_model(request)
41360
+ query = {}
41361
+ if not UtilClient.is_unset(request.host_name):
41362
+ query['HostName'] = request.host_name
41363
+ if not UtilClient.is_unset(request.instance_id):
41364
+ query['InstanceId'] = request.instance_id
41365
+ if not UtilClient.is_unset(request.password):
41366
+ query['Password'] = request.password
41367
+ if not UtilClient.is_unset(request.reboot):
41368
+ query['Reboot'] = request.reboot
41369
+ if not UtilClient.is_unset(request.region_id):
41370
+ query['RegionId'] = request.region_id
41371
+ req = open_api_models.OpenApiRequest(
41372
+ query=OpenApiUtilClient.query(query)
41373
+ )
41374
+ params = open_api_models.Params(
41375
+ action='ModifyRCInstanceAttribute',
41376
+ version='2014-08-15',
41377
+ protocol='HTTPS',
41378
+ pathname='/',
41379
+ method='POST',
41380
+ auth_type='AK',
41381
+ style='RPC',
41382
+ req_body_type='formData',
41383
+ body_type='json'
41384
+ )
41385
+ return TeaCore.from_map(
41386
+ rds_20140815_models.ModifyRCInstanceAttributeResponse(),
41387
+ self.call_api(params, req, runtime)
41388
+ )
41389
+
41390
+ async def modify_rcinstance_attribute_with_options_async(
41391
+ self,
41392
+ request: rds_20140815_models.ModifyRCInstanceAttributeRequest,
41393
+ runtime: util_models.RuntimeOptions,
41394
+ ) -> rds_20140815_models.ModifyRCInstanceAttributeResponse:
41395
+ """
41396
+ @summary Modifies specific attributes of an RDS Custom instance, such as the password or hostname.
41397
+
41398
+ @param request: ModifyRCInstanceAttributeRequest
41399
+ @param runtime: runtime options for this request RuntimeOptions
41400
+ @return: ModifyRCInstanceAttributeResponse
41401
+ """
41402
+ UtilClient.validate_model(request)
41403
+ query = {}
41404
+ if not UtilClient.is_unset(request.host_name):
41405
+ query['HostName'] = request.host_name
41406
+ if not UtilClient.is_unset(request.instance_id):
41407
+ query['InstanceId'] = request.instance_id
41408
+ if not UtilClient.is_unset(request.password):
41409
+ query['Password'] = request.password
41410
+ if not UtilClient.is_unset(request.reboot):
41411
+ query['Reboot'] = request.reboot
41412
+ if not UtilClient.is_unset(request.region_id):
41413
+ query['RegionId'] = request.region_id
41414
+ req = open_api_models.OpenApiRequest(
41415
+ query=OpenApiUtilClient.query(query)
41416
+ )
41417
+ params = open_api_models.Params(
41418
+ action='ModifyRCInstanceAttribute',
41419
+ version='2014-08-15',
41420
+ protocol='HTTPS',
41421
+ pathname='/',
41422
+ method='POST',
41423
+ auth_type='AK',
41424
+ style='RPC',
41425
+ req_body_type='formData',
41426
+ body_type='json'
41427
+ )
41428
+ return TeaCore.from_map(
41429
+ rds_20140815_models.ModifyRCInstanceAttributeResponse(),
41430
+ await self.call_api_async(params, req, runtime)
41431
+ )
41432
+
41433
+ def modify_rcinstance_attribute(
41434
+ self,
41435
+ request: rds_20140815_models.ModifyRCInstanceAttributeRequest,
41436
+ ) -> rds_20140815_models.ModifyRCInstanceAttributeResponse:
41437
+ """
41438
+ @summary Modifies specific attributes of an RDS Custom instance, such as the password or hostname.
41439
+
41440
+ @param request: ModifyRCInstanceAttributeRequest
41441
+ @return: ModifyRCInstanceAttributeResponse
41442
+ """
41443
+ runtime = util_models.RuntimeOptions()
41444
+ return self.modify_rcinstance_attribute_with_options(request, runtime)
41445
+
41446
+ async def modify_rcinstance_attribute_async(
41447
+ self,
41448
+ request: rds_20140815_models.ModifyRCInstanceAttributeRequest,
41449
+ ) -> rds_20140815_models.ModifyRCInstanceAttributeResponse:
41450
+ """
41451
+ @summary Modifies specific attributes of an RDS Custom instance, such as the password or hostname.
41452
+
41453
+ @param request: ModifyRCInstanceAttributeRequest
41454
+ @return: ModifyRCInstanceAttributeResponse
41455
+ """
41456
+ runtime = util_models.RuntimeOptions()
41457
+ return await self.modify_rcinstance_attribute_with_options_async(request, runtime)
41458
+
39787
41459
  def modify_rcinstance_charge_type_with_options(
39788
41460
  self,
39789
41461
  request: rds_20140815_models.ModifyRCInstanceChargeTypeRequest,
@@ -39900,6 +41572,218 @@ class Client(OpenApiClient):
39900
41572
  runtime = util_models.RuntimeOptions()
39901
41573
  return await self.modify_rcinstance_charge_type_with_options_async(request, runtime)
39902
41574
 
41575
+ def modify_rcinstance_description_with_options(
41576
+ self,
41577
+ request: rds_20140815_models.ModifyRCInstanceDescriptionRequest,
41578
+ runtime: util_models.RuntimeOptions,
41579
+ ) -> rds_20140815_models.ModifyRCInstanceDescriptionResponse:
41580
+ """
41581
+ @summary 修改RC实例描述
41582
+
41583
+ @param request: ModifyRCInstanceDescriptionRequest
41584
+ @param runtime: runtime options for this request RuntimeOptions
41585
+ @return: ModifyRCInstanceDescriptionResponse
41586
+ """
41587
+ UtilClient.validate_model(request)
41588
+ query = {}
41589
+ if not UtilClient.is_unset(request.instance_description):
41590
+ query['InstanceDescription'] = request.instance_description
41591
+ if not UtilClient.is_unset(request.instance_id):
41592
+ query['InstanceId'] = request.instance_id
41593
+ if not UtilClient.is_unset(request.region_id):
41594
+ query['RegionId'] = request.region_id
41595
+ req = open_api_models.OpenApiRequest(
41596
+ query=OpenApiUtilClient.query(query)
41597
+ )
41598
+ params = open_api_models.Params(
41599
+ action='ModifyRCInstanceDescription',
41600
+ version='2014-08-15',
41601
+ protocol='HTTPS',
41602
+ pathname='/',
41603
+ method='POST',
41604
+ auth_type='AK',
41605
+ style='RPC',
41606
+ req_body_type='formData',
41607
+ body_type='json'
41608
+ )
41609
+ return TeaCore.from_map(
41610
+ rds_20140815_models.ModifyRCInstanceDescriptionResponse(),
41611
+ self.call_api(params, req, runtime)
41612
+ )
41613
+
41614
+ async def modify_rcinstance_description_with_options_async(
41615
+ self,
41616
+ request: rds_20140815_models.ModifyRCInstanceDescriptionRequest,
41617
+ runtime: util_models.RuntimeOptions,
41618
+ ) -> rds_20140815_models.ModifyRCInstanceDescriptionResponse:
41619
+ """
41620
+ @summary 修改RC实例描述
41621
+
41622
+ @param request: ModifyRCInstanceDescriptionRequest
41623
+ @param runtime: runtime options for this request RuntimeOptions
41624
+ @return: ModifyRCInstanceDescriptionResponse
41625
+ """
41626
+ UtilClient.validate_model(request)
41627
+ query = {}
41628
+ if not UtilClient.is_unset(request.instance_description):
41629
+ query['InstanceDescription'] = request.instance_description
41630
+ if not UtilClient.is_unset(request.instance_id):
41631
+ query['InstanceId'] = request.instance_id
41632
+ if not UtilClient.is_unset(request.region_id):
41633
+ query['RegionId'] = request.region_id
41634
+ req = open_api_models.OpenApiRequest(
41635
+ query=OpenApiUtilClient.query(query)
41636
+ )
41637
+ params = open_api_models.Params(
41638
+ action='ModifyRCInstanceDescription',
41639
+ version='2014-08-15',
41640
+ protocol='HTTPS',
41641
+ pathname='/',
41642
+ method='POST',
41643
+ auth_type='AK',
41644
+ style='RPC',
41645
+ req_body_type='formData',
41646
+ body_type='json'
41647
+ )
41648
+ return TeaCore.from_map(
41649
+ rds_20140815_models.ModifyRCInstanceDescriptionResponse(),
41650
+ await self.call_api_async(params, req, runtime)
41651
+ )
41652
+
41653
+ def modify_rcinstance_description(
41654
+ self,
41655
+ request: rds_20140815_models.ModifyRCInstanceDescriptionRequest,
41656
+ ) -> rds_20140815_models.ModifyRCInstanceDescriptionResponse:
41657
+ """
41658
+ @summary 修改RC实例描述
41659
+
41660
+ @param request: ModifyRCInstanceDescriptionRequest
41661
+ @return: ModifyRCInstanceDescriptionResponse
41662
+ """
41663
+ runtime = util_models.RuntimeOptions()
41664
+ return self.modify_rcinstance_description_with_options(request, runtime)
41665
+
41666
+ async def modify_rcinstance_description_async(
41667
+ self,
41668
+ request: rds_20140815_models.ModifyRCInstanceDescriptionRequest,
41669
+ ) -> rds_20140815_models.ModifyRCInstanceDescriptionResponse:
41670
+ """
41671
+ @summary 修改RC实例描述
41672
+
41673
+ @param request: ModifyRCInstanceDescriptionRequest
41674
+ @return: ModifyRCInstanceDescriptionResponse
41675
+ """
41676
+ runtime = util_models.RuntimeOptions()
41677
+ return await self.modify_rcinstance_description_with_options_async(request, runtime)
41678
+
41679
+ def modify_rcinstance_key_pair_with_options(
41680
+ self,
41681
+ request: rds_20140815_models.ModifyRCInstanceKeyPairRequest,
41682
+ runtime: util_models.RuntimeOptions,
41683
+ ) -> rds_20140815_models.ModifyRCInstanceKeyPairResponse:
41684
+ """
41685
+ @summary Modifies the key pair of an RDS Custom instance.
41686
+
41687
+ @param request: ModifyRCInstanceKeyPairRequest
41688
+ @param runtime: runtime options for this request RuntimeOptions
41689
+ @return: ModifyRCInstanceKeyPairResponse
41690
+ """
41691
+ UtilClient.validate_model(request)
41692
+ query = {}
41693
+ if not UtilClient.is_unset(request.instance_id):
41694
+ query['InstanceId'] = request.instance_id
41695
+ if not UtilClient.is_unset(request.key_pair_name):
41696
+ query['KeyPairName'] = request.key_pair_name
41697
+ if not UtilClient.is_unset(request.reboot):
41698
+ query['Reboot'] = request.reboot
41699
+ if not UtilClient.is_unset(request.region_id):
41700
+ query['RegionId'] = request.region_id
41701
+ req = open_api_models.OpenApiRequest(
41702
+ query=OpenApiUtilClient.query(query)
41703
+ )
41704
+ params = open_api_models.Params(
41705
+ action='ModifyRCInstanceKeyPair',
41706
+ version='2014-08-15',
41707
+ protocol='HTTPS',
41708
+ pathname='/',
41709
+ method='POST',
41710
+ auth_type='AK',
41711
+ style='RPC',
41712
+ req_body_type='formData',
41713
+ body_type='json'
41714
+ )
41715
+ return TeaCore.from_map(
41716
+ rds_20140815_models.ModifyRCInstanceKeyPairResponse(),
41717
+ self.call_api(params, req, runtime)
41718
+ )
41719
+
41720
+ async def modify_rcinstance_key_pair_with_options_async(
41721
+ self,
41722
+ request: rds_20140815_models.ModifyRCInstanceKeyPairRequest,
41723
+ runtime: util_models.RuntimeOptions,
41724
+ ) -> rds_20140815_models.ModifyRCInstanceKeyPairResponse:
41725
+ """
41726
+ @summary Modifies the key pair of an RDS Custom instance.
41727
+
41728
+ @param request: ModifyRCInstanceKeyPairRequest
41729
+ @param runtime: runtime options for this request RuntimeOptions
41730
+ @return: ModifyRCInstanceKeyPairResponse
41731
+ """
41732
+ UtilClient.validate_model(request)
41733
+ query = {}
41734
+ if not UtilClient.is_unset(request.instance_id):
41735
+ query['InstanceId'] = request.instance_id
41736
+ if not UtilClient.is_unset(request.key_pair_name):
41737
+ query['KeyPairName'] = request.key_pair_name
41738
+ if not UtilClient.is_unset(request.reboot):
41739
+ query['Reboot'] = request.reboot
41740
+ if not UtilClient.is_unset(request.region_id):
41741
+ query['RegionId'] = request.region_id
41742
+ req = open_api_models.OpenApiRequest(
41743
+ query=OpenApiUtilClient.query(query)
41744
+ )
41745
+ params = open_api_models.Params(
41746
+ action='ModifyRCInstanceKeyPair',
41747
+ version='2014-08-15',
41748
+ protocol='HTTPS',
41749
+ pathname='/',
41750
+ method='POST',
41751
+ auth_type='AK',
41752
+ style='RPC',
41753
+ req_body_type='formData',
41754
+ body_type='json'
41755
+ )
41756
+ return TeaCore.from_map(
41757
+ rds_20140815_models.ModifyRCInstanceKeyPairResponse(),
41758
+ await self.call_api_async(params, req, runtime)
41759
+ )
41760
+
41761
+ def modify_rcinstance_key_pair(
41762
+ self,
41763
+ request: rds_20140815_models.ModifyRCInstanceKeyPairRequest,
41764
+ ) -> rds_20140815_models.ModifyRCInstanceKeyPairResponse:
41765
+ """
41766
+ @summary Modifies the key pair of an RDS Custom instance.
41767
+
41768
+ @param request: ModifyRCInstanceKeyPairRequest
41769
+ @return: ModifyRCInstanceKeyPairResponse
41770
+ """
41771
+ runtime = util_models.RuntimeOptions()
41772
+ return self.modify_rcinstance_key_pair_with_options(request, runtime)
41773
+
41774
+ async def modify_rcinstance_key_pair_async(
41775
+ self,
41776
+ request: rds_20140815_models.ModifyRCInstanceKeyPairRequest,
41777
+ ) -> rds_20140815_models.ModifyRCInstanceKeyPairResponse:
41778
+ """
41779
+ @summary Modifies the key pair of an RDS Custom instance.
41780
+
41781
+ @param request: ModifyRCInstanceKeyPairRequest
41782
+ @return: ModifyRCInstanceKeyPairResponse
41783
+ """
41784
+ runtime = util_models.RuntimeOptions()
41785
+ return await self.modify_rcinstance_key_pair_with_options_async(request, runtime)
41786
+
39903
41787
  def modify_read_write_splitting_connection_with_options(
39904
41788
  self,
39905
41789
  request: rds_20140815_models.ModifyReadWriteSplittingConnectionRequest,
@@ -41294,6 +43178,8 @@ class Client(OpenApiClient):
41294
43178
  runtime: util_models.RuntimeOptions,
41295
43179
  ) -> rds_20140815_models.PreCheckCreateOrderForDeleteDBNodesResponse:
41296
43180
  """
43181
+ @summary 删除节点创建订单预检查
43182
+
41297
43183
  @param tmp_req: PreCheckCreateOrderForDeleteDBNodesRequest
41298
43184
  @param runtime: runtime options for this request RuntimeOptions
41299
43185
  @return: PreCheckCreateOrderForDeleteDBNodesResponse
@@ -41359,6 +43245,8 @@ class Client(OpenApiClient):
41359
43245
  runtime: util_models.RuntimeOptions,
41360
43246
  ) -> rds_20140815_models.PreCheckCreateOrderForDeleteDBNodesResponse:
41361
43247
  """
43248
+ @summary 删除节点创建订单预检查
43249
+
41362
43250
  @param tmp_req: PreCheckCreateOrderForDeleteDBNodesRequest
41363
43251
  @param runtime: runtime options for this request RuntimeOptions
41364
43252
  @return: PreCheckCreateOrderForDeleteDBNodesResponse
@@ -41423,6 +43311,8 @@ class Client(OpenApiClient):
41423
43311
  request: rds_20140815_models.PreCheckCreateOrderForDeleteDBNodesRequest,
41424
43312
  ) -> rds_20140815_models.PreCheckCreateOrderForDeleteDBNodesResponse:
41425
43313
  """
43314
+ @summary 删除节点创建订单预检查
43315
+
41426
43316
  @param request: PreCheckCreateOrderForDeleteDBNodesRequest
41427
43317
  @return: PreCheckCreateOrderForDeleteDBNodesResponse
41428
43318
  """
@@ -41434,6 +43324,8 @@ class Client(OpenApiClient):
41434
43324
  request: rds_20140815_models.PreCheckCreateOrderForDeleteDBNodesRequest,
41435
43325
  ) -> rds_20140815_models.PreCheckCreateOrderForDeleteDBNodesResponse:
41436
43326
  """
43327
+ @summary 删除节点创建订单预检查
43328
+
41437
43329
  @param request: PreCheckCreateOrderForDeleteDBNodesRequest
41438
43330
  @return: PreCheckCreateOrderForDeleteDBNodesResponse
41439
43331
  """
@@ -43206,6 +45098,8 @@ class Client(OpenApiClient):
43206
45098
  query['AutoPay'] = request.auto_pay
43207
45099
  if not UtilClient.is_unset(request.auto_renew):
43208
45100
  query['AutoRenew'] = request.auto_renew
45101
+ if not UtilClient.is_unset(request.auto_use_coupon):
45102
+ query['AutoUseCoupon'] = request.auto_use_coupon
43209
45103
  if not UtilClient.is_unset(request.client_token):
43210
45104
  query['ClientToken'] = request.client_token
43211
45105
  if not UtilClient.is_unset(request.dbinstance_id):
@@ -43214,6 +45108,8 @@ class Client(OpenApiClient):
43214
45108
  query['OwnerId'] = request.owner_id
43215
45109
  if not UtilClient.is_unset(request.period):
43216
45110
  query['Period'] = request.period
45111
+ if not UtilClient.is_unset(request.promotion_code):
45112
+ query['PromotionCode'] = request.promotion_code
43217
45113
  if not UtilClient.is_unset(request.resource_owner_account):
43218
45114
  query['ResourceOwnerAccount'] = request.resource_owner_account
43219
45115
  if not UtilClient.is_unset(request.resource_owner_id):
@@ -43267,6 +45163,8 @@ class Client(OpenApiClient):
43267
45163
  query['AutoPay'] = request.auto_pay
43268
45164
  if not UtilClient.is_unset(request.auto_renew):
43269
45165
  query['AutoRenew'] = request.auto_renew
45166
+ if not UtilClient.is_unset(request.auto_use_coupon):
45167
+ query['AutoUseCoupon'] = request.auto_use_coupon
43270
45168
  if not UtilClient.is_unset(request.client_token):
43271
45169
  query['ClientToken'] = request.client_token
43272
45170
  if not UtilClient.is_unset(request.dbinstance_id):
@@ -43275,6 +45173,8 @@ class Client(OpenApiClient):
43275
45173
  query['OwnerId'] = request.owner_id
43276
45174
  if not UtilClient.is_unset(request.period):
43277
45175
  query['Period'] = request.period
45176
+ if not UtilClient.is_unset(request.promotion_code):
45177
+ query['PromotionCode'] = request.promotion_code
43278
45178
  if not UtilClient.is_unset(request.resource_owner_account):
43279
45179
  query['ResourceOwnerAccount'] = request.resource_owner_account
43280
45180
  if not UtilClient.is_unset(request.resource_owner_id):
@@ -43348,6 +45248,122 @@ class Client(OpenApiClient):
43348
45248
  runtime = util_models.RuntimeOptions()
43349
45249
  return await self.renew_instance_with_options_async(request, runtime)
43350
45250
 
45251
+ def replace_rcinstance_system_disk_with_options(
45252
+ self,
45253
+ request: rds_20140815_models.ReplaceRCInstanceSystemDiskRequest,
45254
+ runtime: util_models.RuntimeOptions,
45255
+ ) -> rds_20140815_models.ReplaceRCInstanceSystemDiskResponse:
45256
+ """
45257
+ @summary 更换rds custom实例系统盘
45258
+
45259
+ @param request: ReplaceRCInstanceSystemDiskRequest
45260
+ @param runtime: runtime options for this request RuntimeOptions
45261
+ @return: ReplaceRCInstanceSystemDiskResponse
45262
+ """
45263
+ UtilClient.validate_model(request)
45264
+ query = {}
45265
+ if not UtilClient.is_unset(request.image_id):
45266
+ query['ImageId'] = request.image_id
45267
+ if not UtilClient.is_unset(request.instance_id):
45268
+ query['InstanceId'] = request.instance_id
45269
+ if not UtilClient.is_unset(request.is_local_disk):
45270
+ query['IsLocalDisk'] = request.is_local_disk
45271
+ if not UtilClient.is_unset(request.key_pair_name):
45272
+ query['KeyPairName'] = request.key_pair_name
45273
+ if not UtilClient.is_unset(request.password):
45274
+ query['Password'] = request.password
45275
+ if not UtilClient.is_unset(request.region_id):
45276
+ query['RegionId'] = request.region_id
45277
+ req = open_api_models.OpenApiRequest(
45278
+ query=OpenApiUtilClient.query(query)
45279
+ )
45280
+ params = open_api_models.Params(
45281
+ action='ReplaceRCInstanceSystemDisk',
45282
+ version='2014-08-15',
45283
+ protocol='HTTPS',
45284
+ pathname='/',
45285
+ method='POST',
45286
+ auth_type='AK',
45287
+ style='RPC',
45288
+ req_body_type='formData',
45289
+ body_type='json'
45290
+ )
45291
+ return TeaCore.from_map(
45292
+ rds_20140815_models.ReplaceRCInstanceSystemDiskResponse(),
45293
+ self.call_api(params, req, runtime)
45294
+ )
45295
+
45296
+ async def replace_rcinstance_system_disk_with_options_async(
45297
+ self,
45298
+ request: rds_20140815_models.ReplaceRCInstanceSystemDiskRequest,
45299
+ runtime: util_models.RuntimeOptions,
45300
+ ) -> rds_20140815_models.ReplaceRCInstanceSystemDiskResponse:
45301
+ """
45302
+ @summary 更换rds custom实例系统盘
45303
+
45304
+ @param request: ReplaceRCInstanceSystemDiskRequest
45305
+ @param runtime: runtime options for this request RuntimeOptions
45306
+ @return: ReplaceRCInstanceSystemDiskResponse
45307
+ """
45308
+ UtilClient.validate_model(request)
45309
+ query = {}
45310
+ if not UtilClient.is_unset(request.image_id):
45311
+ query['ImageId'] = request.image_id
45312
+ if not UtilClient.is_unset(request.instance_id):
45313
+ query['InstanceId'] = request.instance_id
45314
+ if not UtilClient.is_unset(request.is_local_disk):
45315
+ query['IsLocalDisk'] = request.is_local_disk
45316
+ if not UtilClient.is_unset(request.key_pair_name):
45317
+ query['KeyPairName'] = request.key_pair_name
45318
+ if not UtilClient.is_unset(request.password):
45319
+ query['Password'] = request.password
45320
+ if not UtilClient.is_unset(request.region_id):
45321
+ query['RegionId'] = request.region_id
45322
+ req = open_api_models.OpenApiRequest(
45323
+ query=OpenApiUtilClient.query(query)
45324
+ )
45325
+ params = open_api_models.Params(
45326
+ action='ReplaceRCInstanceSystemDisk',
45327
+ version='2014-08-15',
45328
+ protocol='HTTPS',
45329
+ pathname='/',
45330
+ method='POST',
45331
+ auth_type='AK',
45332
+ style='RPC',
45333
+ req_body_type='formData',
45334
+ body_type='json'
45335
+ )
45336
+ return TeaCore.from_map(
45337
+ rds_20140815_models.ReplaceRCInstanceSystemDiskResponse(),
45338
+ await self.call_api_async(params, req, runtime)
45339
+ )
45340
+
45341
+ def replace_rcinstance_system_disk(
45342
+ self,
45343
+ request: rds_20140815_models.ReplaceRCInstanceSystemDiskRequest,
45344
+ ) -> rds_20140815_models.ReplaceRCInstanceSystemDiskResponse:
45345
+ """
45346
+ @summary 更换rds custom实例系统盘
45347
+
45348
+ @param request: ReplaceRCInstanceSystemDiskRequest
45349
+ @return: ReplaceRCInstanceSystemDiskResponse
45350
+ """
45351
+ runtime = util_models.RuntimeOptions()
45352
+ return self.replace_rcinstance_system_disk_with_options(request, runtime)
45353
+
45354
+ async def replace_rcinstance_system_disk_async(
45355
+ self,
45356
+ request: rds_20140815_models.ReplaceRCInstanceSystemDiskRequest,
45357
+ ) -> rds_20140815_models.ReplaceRCInstanceSystemDiskResponse:
45358
+ """
45359
+ @summary 更换rds custom实例系统盘
45360
+
45361
+ @param request: ReplaceRCInstanceSystemDiskRequest
45362
+ @return: ReplaceRCInstanceSystemDiskResponse
45363
+ """
45364
+ runtime = util_models.RuntimeOptions()
45365
+ return await self.replace_rcinstance_system_disk_with_options_async(request, runtime)
45366
+
43351
45367
  def reset_account_with_options(
43352
45368
  self,
43353
45369
  request: rds_20140815_models.ResetAccountRequest,
@@ -43684,6 +45700,8 @@ class Client(OpenApiClient):
43684
45700
  query = {}
43685
45701
  if not UtilClient.is_unset(request.auto_pay):
43686
45702
  query['AutoPay'] = request.auto_pay
45703
+ if not UtilClient.is_unset(request.disk_id):
45704
+ query['DiskId'] = request.disk_id
43687
45705
  if not UtilClient.is_unset(request.dry_run):
43688
45706
  query['DryRun'] = request.dry_run
43689
45707
  if not UtilClient.is_unset(request.instance_id):
@@ -43729,6 +45747,8 @@ class Client(OpenApiClient):
43729
45747
  query = {}
43730
45748
  if not UtilClient.is_unset(request.auto_pay):
43731
45749
  query['AutoPay'] = request.auto_pay
45750
+ if not UtilClient.is_unset(request.disk_id):
45751
+ query['DiskId'] = request.disk_id
43732
45752
  if not UtilClient.is_unset(request.dry_run):
43733
45753
  query['DryRun'] = request.dry_run
43734
45754
  if not UtilClient.is_unset(request.instance_id):
@@ -44844,15 +46864,13 @@ class Client(OpenApiClient):
44844
46864
  """
44845
46865
  @summary Resumes an instance.
44846
46866
 
44847
- @description ### Supported database engines
46867
+ @description ### [](#)Supported database engines
44848
46868
  MySQL
44849
46869
  PostgreSQL
44850
46870
  SQL Server
44851
- ### References
44852
- > Before you call this operation, read the following documentation and make sure that you fully understand the prerequisites and impacts of this operation:
44853
- [Resume an ApsaraDB RDS for MySQL instance](https://help.aliyun.com/document_detail/427093.html)
44854
- [Resume an ApsaraDB RDS for PostgreSQL instance](https://help.aliyun.com/document_detail/452314.html)
44855
- [Resume an ApsaraDB RDS for SQL Server instance](https://help.aliyun.com/document_detail/462504.html)
46871
+ ### [](#)References
46872
+ > Before you call this operation, read the following topics and make sure that you fully understand the prerequisites and impacts of this operation.
46873
+ [Start an ApsaraDB RDS for SQL instance](https://help.aliyun.com/document_detail/462504.html)
44856
46874
 
44857
46875
  @param request: StartDBInstanceRequest
44858
46876
  @param runtime: runtime options for this request RuntimeOptions
@@ -44921,15 +46939,13 @@ class Client(OpenApiClient):
44921
46939
  """
44922
46940
  @summary Resumes an instance.
44923
46941
 
44924
- @description ### Supported database engines
46942
+ @description ### [](#)Supported database engines
44925
46943
  MySQL
44926
46944
  PostgreSQL
44927
46945
  SQL Server
44928
- ### References
44929
- > Before you call this operation, read the following documentation and make sure that you fully understand the prerequisites and impacts of this operation:
44930
- [Resume an ApsaraDB RDS for MySQL instance](https://help.aliyun.com/document_detail/427093.html)
44931
- [Resume an ApsaraDB RDS for PostgreSQL instance](https://help.aliyun.com/document_detail/452314.html)
44932
- [Resume an ApsaraDB RDS for SQL Server instance](https://help.aliyun.com/document_detail/462504.html)
46946
+ ### [](#)References
46947
+ > Before you call this operation, read the following topics and make sure that you fully understand the prerequisites and impacts of this operation.
46948
+ [Start an ApsaraDB RDS for SQL instance](https://help.aliyun.com/document_detail/462504.html)
44933
46949
 
44934
46950
  @param request: StartDBInstanceRequest
44935
46951
  @param runtime: runtime options for this request RuntimeOptions
@@ -44997,15 +47013,13 @@ class Client(OpenApiClient):
44997
47013
  """
44998
47014
  @summary Resumes an instance.
44999
47015
 
45000
- @description ### Supported database engines
47016
+ @description ### [](#)Supported database engines
45001
47017
  MySQL
45002
47018
  PostgreSQL
45003
47019
  SQL Server
45004
- ### References
45005
- > Before you call this operation, read the following documentation and make sure that you fully understand the prerequisites and impacts of this operation:
45006
- [Resume an ApsaraDB RDS for MySQL instance](https://help.aliyun.com/document_detail/427093.html)
45007
- [Resume an ApsaraDB RDS for PostgreSQL instance](https://help.aliyun.com/document_detail/452314.html)
45008
- [Resume an ApsaraDB RDS for SQL Server instance](https://help.aliyun.com/document_detail/462504.html)
47020
+ ### [](#)References
47021
+ > Before you call this operation, read the following topics and make sure that you fully understand the prerequisites and impacts of this operation.
47022
+ [Start an ApsaraDB RDS for SQL instance](https://help.aliyun.com/document_detail/462504.html)
45009
47023
 
45010
47024
  @param request: StartDBInstanceRequest
45011
47025
  @return: StartDBInstanceResponse
@@ -45020,15 +47034,13 @@ class Client(OpenApiClient):
45020
47034
  """
45021
47035
  @summary Resumes an instance.
45022
47036
 
45023
- @description ### Supported database engines
47037
+ @description ### [](#)Supported database engines
45024
47038
  MySQL
45025
47039
  PostgreSQL
45026
47040
  SQL Server
45027
- ### References
45028
- > Before you call this operation, read the following documentation and make sure that you fully understand the prerequisites and impacts of this operation:
45029
- [Resume an ApsaraDB RDS for MySQL instance](https://help.aliyun.com/document_detail/427093.html)
45030
- [Resume an ApsaraDB RDS for PostgreSQL instance](https://help.aliyun.com/document_detail/452314.html)
45031
- [Resume an ApsaraDB RDS for SQL Server instance](https://help.aliyun.com/document_detail/462504.html)
47041
+ ### [](#)References
47042
+ > Before you call this operation, read the following topics and make sure that you fully understand the prerequisites and impacts of this operation.
47043
+ [Start an ApsaraDB RDS for SQL instance](https://help.aliyun.com/document_detail/462504.html)
45032
47044
 
45033
47045
  @param request: StartDBInstanceRequest
45034
47046
  @return: StartDBInstanceResponse
@@ -45150,8 +47162,6 @@ class Client(OpenApiClient):
45150
47162
  SQL Server
45151
47163
  ### References
45152
47164
  > Before you call this operation, read the following documentation and make sure that you fully understand the prerequisites and impacts of this operation.
45153
- [Suspend an ApsaraDB RDS for MySQL instance](https://help.aliyun.com/document_detail/427093.html)
45154
- [Suspend an ApsaraDB RDS for PostgreSQL instance](https://help.aliyun.com/document_detail/452314.html)
45155
47165
  [Suspend an ApsaraDB RDS for SQL Server instance](https://help.aliyun.com/document_detail/462504.html)
45156
47166
 
45157
47167
  @param request: StopDBInstanceRequest
@@ -45203,8 +47213,6 @@ class Client(OpenApiClient):
45203
47213
  SQL Server
45204
47214
  ### References
45205
47215
  > Before you call this operation, read the following documentation and make sure that you fully understand the prerequisites and impacts of this operation.
45206
- [Suspend an ApsaraDB RDS for MySQL instance](https://help.aliyun.com/document_detail/427093.html)
45207
- [Suspend an ApsaraDB RDS for PostgreSQL instance](https://help.aliyun.com/document_detail/452314.html)
45208
47216
  [Suspend an ApsaraDB RDS for SQL Server instance](https://help.aliyun.com/document_detail/462504.html)
45209
47217
 
45210
47218
  @param request: StopDBInstanceRequest
@@ -45255,8 +47263,6 @@ class Client(OpenApiClient):
45255
47263
  SQL Server
45256
47264
  ### References
45257
47265
  > Before you call this operation, read the following documentation and make sure that you fully understand the prerequisites and impacts of this operation.
45258
- [Suspend an ApsaraDB RDS for MySQL instance](https://help.aliyun.com/document_detail/427093.html)
45259
- [Suspend an ApsaraDB RDS for PostgreSQL instance](https://help.aliyun.com/document_detail/452314.html)
45260
47266
  [Suspend an ApsaraDB RDS for SQL Server instance](https://help.aliyun.com/document_detail/462504.html)
45261
47267
 
45262
47268
  @param request: StopDBInstanceRequest
@@ -45278,8 +47284,6 @@ class Client(OpenApiClient):
45278
47284
  SQL Server
45279
47285
  ### References
45280
47286
  > Before you call this operation, read the following documentation and make sure that you fully understand the prerequisites and impacts of this operation.
45281
- [Suspend an ApsaraDB RDS for MySQL instance](https://help.aliyun.com/document_detail/427093.html)
45282
- [Suspend an ApsaraDB RDS for PostgreSQL instance](https://help.aliyun.com/document_detail/452314.html)
45283
47287
  [Suspend an ApsaraDB RDS for SQL Server instance](https://help.aliyun.com/document_detail/462504.html)
45284
47288
 
45285
47289
  @param request: StopDBInstanceRequest
@@ -46312,6 +48316,8 @@ class Client(OpenApiClient):
46312
48316
  query = {}
46313
48317
  if not UtilClient.is_unset(request.auto_renew):
46314
48318
  query['AutoRenew'] = request.auto_renew
48319
+ if not UtilClient.is_unset(request.auto_use_coupon):
48320
+ query['AutoUseCoupon'] = request.auto_use_coupon
46315
48321
  if not UtilClient.is_unset(request.business_info):
46316
48322
  query['BusinessInfo'] = request.business_info
46317
48323
  if not UtilClient.is_unset(request.client_token):
@@ -46326,6 +48332,8 @@ class Client(OpenApiClient):
46326
48332
  query['PayType'] = request.pay_type
46327
48333
  if not UtilClient.is_unset(request.period):
46328
48334
  query['Period'] = request.period
48335
+ if not UtilClient.is_unset(request.promotion_code):
48336
+ query['PromotionCode'] = request.promotion_code
46329
48337
  if not UtilClient.is_unset(request.resource_owner_account):
46330
48338
  query['ResourceOwnerAccount'] = request.resource_owner_account
46331
48339
  if not UtilClient.is_unset(request.resource_owner_id):
@@ -46379,6 +48387,8 @@ class Client(OpenApiClient):
46379
48387
  query = {}
46380
48388
  if not UtilClient.is_unset(request.auto_renew):
46381
48389
  query['AutoRenew'] = request.auto_renew
48390
+ if not UtilClient.is_unset(request.auto_use_coupon):
48391
+ query['AutoUseCoupon'] = request.auto_use_coupon
46382
48392
  if not UtilClient.is_unset(request.business_info):
46383
48393
  query['BusinessInfo'] = request.business_info
46384
48394
  if not UtilClient.is_unset(request.client_token):
@@ -46393,6 +48403,8 @@ class Client(OpenApiClient):
46393
48403
  query['PayType'] = request.pay_type
46394
48404
  if not UtilClient.is_unset(request.period):
46395
48405
  query['Period'] = request.period
48406
+ if not UtilClient.is_unset(request.promotion_code):
48407
+ query['PromotionCode'] = request.promotion_code
46396
48408
  if not UtilClient.is_unset(request.resource_owner_account):
46397
48409
  query['ResourceOwnerAccount'] = request.resource_owner_account
46398
48410
  if not UtilClient.is_unset(request.resource_owner_id):