alibabacloud-rds20140815 7.3.0__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,
@@ -25450,6 +26798,8 @@ class Client(OpenApiClient):
25450
26798
  query['PageSize'] = request.page_size
25451
26799
  if not UtilClient.is_unset(request.region_id):
25452
26800
  query['RegionId'] = request.region_id
26801
+ if not UtilClient.is_unset(request.tag):
26802
+ query['Tag'] = request.tag
25453
26803
  if not UtilClient.is_unset(request.vpc_id):
25454
26804
  query['VpcId'] = request.vpc_id
25455
26805
  req = open_api_models.OpenApiRequest(
@@ -25493,6 +26843,8 @@ class Client(OpenApiClient):
25493
26843
  query['PageSize'] = request.page_size
25494
26844
  if not UtilClient.is_unset(request.region_id):
25495
26845
  query['RegionId'] = request.region_id
26846
+ if not UtilClient.is_unset(request.tag):
26847
+ query['Tag'] = request.tag
25496
26848
  if not UtilClient.is_unset(request.vpc_id):
25497
26849
  query['VpcId'] = request.vpc_id
25498
26850
  req = open_api_models.OpenApiRequest(
@@ -25632,6 +26984,118 @@ class Client(OpenApiClient):
25632
26984
  runtime = util_models.RuntimeOptions()
25633
26985
  return await self.describe_rcmetric_list_with_options_async(request, runtime)
25634
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
+
25635
27099
  def describe_rds_resource_settings_with_options(
25636
27100
  self,
25637
27101
  request: rds_20140815_models.DescribeRdsResourceSettingsRequest,
@@ -29716,6 +31180,114 @@ class Client(OpenApiClient):
29716
31180
  runtime = util_models.RuntimeOptions()
29717
31181
  return await self.detach_gad_instance_member_with_options_async(request, runtime)
29718
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
+
29719
31291
  def detach_whitelist_template_to_instance_with_options(
29720
31292
  self,
29721
31293
  request: rds_20140815_models.DetachWhitelistTemplateToInstanceRequest,
@@ -29982,9 +31554,6 @@ class Client(OpenApiClient):
29982
31554
 
29983
31555
  @description ### Supported database engines
29984
31556
  RDS MySQL
29985
- RDS PostgreSQL
29986
- RDS SQL Server
29987
- RDS MariaDB
29988
31557
 
29989
31558
  @param request: GetDBInstanceTopologyRequest
29990
31559
  @param runtime: runtime options for this request RuntimeOptions
@@ -30027,9 +31596,6 @@ class Client(OpenApiClient):
30027
31596
 
30028
31597
  @description ### Supported database engines
30029
31598
  RDS MySQL
30030
- RDS PostgreSQL
30031
- RDS SQL Server
30032
- RDS MariaDB
30033
31599
 
30034
31600
  @param request: GetDBInstanceTopologyRequest
30035
31601
  @param runtime: runtime options for this request RuntimeOptions
@@ -30071,9 +31637,6 @@ class Client(OpenApiClient):
30071
31637
 
30072
31638
  @description ### Supported database engines
30073
31639
  RDS MySQL
30074
- RDS PostgreSQL
30075
- RDS SQL Server
30076
- RDS MariaDB
30077
31640
 
30078
31641
  @param request: GetDBInstanceTopologyRequest
30079
31642
  @return: GetDBInstanceTopologyResponse
@@ -30090,9 +31653,6 @@ class Client(OpenApiClient):
30090
31653
 
30091
31654
  @description ### Supported database engines
30092
31655
  RDS MySQL
30093
- RDS PostgreSQL
30094
- RDS SQL Server
30095
- RDS MariaDB
30096
31656
 
30097
31657
  @param request: GetDBInstanceTopologyRequest
30098
31658
  @return: GetDBInstanceTopologyResponse
@@ -30526,6 +32086,8 @@ class Client(OpenApiClient):
30526
32086
  query['BucketRegion'] = request.bucket_region
30527
32087
  if not UtilClient.is_unset(request.comment):
30528
32088
  query['Comment'] = request.comment
32089
+ if not UtilClient.is_unset(request.dbinstance_id):
32090
+ query['DBInstanceId'] = request.dbinstance_id
30529
32091
  if not UtilClient.is_unset(request.engine_version):
30530
32092
  query['EngineVersion'] = request.engine_version
30531
32093
  if not UtilClient.is_unset(request.owner_id):
@@ -30593,6 +32155,8 @@ class Client(OpenApiClient):
30593
32155
  query['BucketRegion'] = request.bucket_region
30594
32156
  if not UtilClient.is_unset(request.comment):
30595
32157
  query['Comment'] = request.comment
32158
+ if not UtilClient.is_unset(request.dbinstance_id):
32159
+ query['DBInstanceId'] = request.dbinstance_id
30596
32160
  if not UtilClient.is_unset(request.engine_version):
30597
32161
  query['EngineVersion'] = request.engine_version
30598
32162
  if not UtilClient.is_unset(request.owner_id):
@@ -36300,6 +37864,10 @@ class Client(OpenApiClient):
36300
37864
  query['OwnerId'] = request.owner_id
36301
37865
  if not UtilClient.is_unset(request.pay_type):
36302
37866
  query['PayType'] = request.pay_type
37867
+ if not UtilClient.is_unset(request.promotion_code):
37868
+ query['PromotionCode'] = request.promotion_code
37869
+ if not UtilClient.is_unset(request.read_only_dbinstance_class):
37870
+ query['ReadOnlyDBInstanceClass'] = request.read_only_dbinstance_class
36303
37871
  if not UtilClient.is_unset(request.resource_group_id):
36304
37872
  query['ResourceGroupId'] = request.resource_group_id
36305
37873
  if not UtilClient.is_unset(request.resource_owner_account):
@@ -36405,6 +37973,10 @@ class Client(OpenApiClient):
36405
37973
  query['OwnerId'] = request.owner_id
36406
37974
  if not UtilClient.is_unset(request.pay_type):
36407
37975
  query['PayType'] = request.pay_type
37976
+ if not UtilClient.is_unset(request.promotion_code):
37977
+ query['PromotionCode'] = request.promotion_code
37978
+ if not UtilClient.is_unset(request.read_only_dbinstance_class):
37979
+ query['ReadOnlyDBInstanceClass'] = request.read_only_dbinstance_class
36408
37980
  if not UtilClient.is_unset(request.resource_group_id):
36409
37981
  query['ResourceGroupId'] = request.resource_group_id
36410
37982
  if not UtilClient.is_unset(request.resource_owner_account):
@@ -36862,16 +38434,16 @@ class Client(OpenApiClient):
36862
38434
  runtime: util_models.RuntimeOptions,
36863
38435
  ) -> rds_20140815_models.ModifyDBProxyResponse:
36864
38436
  """
36865
- @summary Enables or disables the dedicated proxy feature for an instance.
38437
+ @summary Enables or modifies the database proxy feature for an instance.
36866
38438
 
36867
38439
  @description ### [](#)Supported database engines
36868
38440
  MySQL
36869
38441
  PostgreSQL
36870
- > 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~~).
36871
38443
  ### [](#)References
36872
- > Before you call this operation, read the following documentation and make sure that you fully understand the prerequisites and impacts of this operation.
36873
- [Enable and configure the dedicated proxy feature for an ApsaraDB RDS for MySQL instance](https://help.aliyun.com/document_detail/197456.html)
36874
- [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)
36875
38447
 
36876
38448
  @param tmp_req: ModifyDBProxyRequest
36877
38449
  @param runtime: runtime options for this request RuntimeOptions
@@ -36940,16 +38512,16 @@ class Client(OpenApiClient):
36940
38512
  runtime: util_models.RuntimeOptions,
36941
38513
  ) -> rds_20140815_models.ModifyDBProxyResponse:
36942
38514
  """
36943
- @summary Enables or disables the dedicated proxy feature for an instance.
38515
+ @summary Enables or modifies the database proxy feature for an instance.
36944
38516
 
36945
38517
  @description ### [](#)Supported database engines
36946
38518
  MySQL
36947
38519
  PostgreSQL
36948
- > 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~~).
36949
38521
  ### [](#)References
36950
- > Before you call this operation, read the following documentation and make sure that you fully understand the prerequisites and impacts of this operation.
36951
- [Enable and configure the dedicated proxy feature for an ApsaraDB RDS for MySQL instance](https://help.aliyun.com/document_detail/197456.html)
36952
- [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)
36953
38525
 
36954
38526
  @param tmp_req: ModifyDBProxyRequest
36955
38527
  @param runtime: runtime options for this request RuntimeOptions
@@ -37017,16 +38589,16 @@ class Client(OpenApiClient):
37017
38589
  request: rds_20140815_models.ModifyDBProxyRequest,
37018
38590
  ) -> rds_20140815_models.ModifyDBProxyResponse:
37019
38591
  """
37020
- @summary Enables or disables the dedicated proxy feature for an instance.
38592
+ @summary Enables or modifies the database proxy feature for an instance.
37021
38593
 
37022
38594
  @description ### [](#)Supported database engines
37023
38595
  MySQL
37024
38596
  PostgreSQL
37025
- > 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~~).
37026
38598
  ### [](#)References
37027
- > Before you call this operation, read the following documentation and make sure that you fully understand the prerequisites and impacts of this operation.
37028
- [Enable and configure the dedicated proxy feature for an ApsaraDB RDS for MySQL instance](https://help.aliyun.com/document_detail/197456.html)
37029
- [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)
37030
38602
 
37031
38603
  @param request: ModifyDBProxyRequest
37032
38604
  @return: ModifyDBProxyResponse
@@ -37039,16 +38611,16 @@ class Client(OpenApiClient):
37039
38611
  request: rds_20140815_models.ModifyDBProxyRequest,
37040
38612
  ) -> rds_20140815_models.ModifyDBProxyResponse:
37041
38613
  """
37042
- @summary Enables or disables the dedicated proxy feature for an instance.
38614
+ @summary Enables or modifies the database proxy feature for an instance.
37043
38615
 
37044
38616
  @description ### [](#)Supported database engines
37045
38617
  MySQL
37046
38618
  PostgreSQL
37047
- > 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~~).
37048
38620
  ### [](#)References
37049
- > Before you call this operation, read the following documentation and make sure that you fully understand the prerequisites and impacts of this operation.
37050
- [Enable and configure the dedicated proxy feature for an ApsaraDB RDS for MySQL instance](https://help.aliyun.com/document_detail/197456.html)
37051
- [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)
37052
38624
 
37053
38625
  @param request: ModifyDBProxyRequest
37054
38626
  @return: ModifyDBProxyResponse
@@ -37262,15 +38834,15 @@ class Client(OpenApiClient):
37262
38834
  runtime: util_models.RuntimeOptions,
37263
38835
  ) -> rds_20140815_models.ModifyDBProxyEndpointAddressResponse:
37264
38836
  """
37265
- @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.
37266
38838
 
37267
- @description ### Supported database engines
38839
+ @description ### [](#)Supported database engines
37268
38840
  MySQL
37269
38841
  PostgreSQL
37270
- ### References
37271
- > Before you call this operation, read the following documentation and make sure that you fully understand the prerequisites and impacts of this operation.
37272
- [Configure the dedicated proxy endpoint of an ApsaraDB RDS for MySQL instance](https://help.aliyun.com/document_detail/184921.html)
37273
- [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)
37274
38846
 
37275
38847
  @param request: ModifyDBProxyEndpointAddressRequest
37276
38848
  @param runtime: runtime options for this request RuntimeOptions
@@ -37323,15 +38895,15 @@ class Client(OpenApiClient):
37323
38895
  runtime: util_models.RuntimeOptions,
37324
38896
  ) -> rds_20140815_models.ModifyDBProxyEndpointAddressResponse:
37325
38897
  """
37326
- @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.
37327
38899
 
37328
- @description ### Supported database engines
38900
+ @description ### [](#)Supported database engines
37329
38901
  MySQL
37330
38902
  PostgreSQL
37331
- ### References
37332
- > Before you call this operation, read the following documentation and make sure that you fully understand the prerequisites and impacts of this operation.
37333
- [Configure the dedicated proxy endpoint of an ApsaraDB RDS for MySQL instance](https://help.aliyun.com/document_detail/184921.html)
37334
- [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)
37335
38907
 
37336
38908
  @param request: ModifyDBProxyEndpointAddressRequest
37337
38909
  @param runtime: runtime options for this request RuntimeOptions
@@ -37383,15 +38955,15 @@ class Client(OpenApiClient):
37383
38955
  request: rds_20140815_models.ModifyDBProxyEndpointAddressRequest,
37384
38956
  ) -> rds_20140815_models.ModifyDBProxyEndpointAddressResponse:
37385
38957
  """
37386
- @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.
37387
38959
 
37388
- @description ### Supported database engines
38960
+ @description ### [](#)Supported database engines
37389
38961
  MySQL
37390
38962
  PostgreSQL
37391
- ### References
37392
- > Before you call this operation, read the following documentation and make sure that you fully understand the prerequisites and impacts of this operation.
37393
- [Configure the dedicated proxy endpoint of an ApsaraDB RDS for MySQL instance](https://help.aliyun.com/document_detail/184921.html)
37394
- [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)
37395
38967
 
37396
38968
  @param request: ModifyDBProxyEndpointAddressRequest
37397
38969
  @return: ModifyDBProxyEndpointAddressResponse
@@ -37404,15 +38976,15 @@ class Client(OpenApiClient):
37404
38976
  request: rds_20140815_models.ModifyDBProxyEndpointAddressRequest,
37405
38977
  ) -> rds_20140815_models.ModifyDBProxyEndpointAddressResponse:
37406
38978
  """
37407
- @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.
37408
38980
 
37409
- @description ### Supported database engines
38981
+ @description ### [](#)Supported database engines
37410
38982
  MySQL
37411
38983
  PostgreSQL
37412
- ### References
37413
- > Before you call this operation, read the following documentation and make sure that you fully understand the prerequisites and impacts of this operation.
37414
- [Configure the dedicated proxy endpoint of an ApsaraDB RDS for MySQL instance](https://help.aliyun.com/document_detail/184921.html)
37415
- [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)
37416
38988
 
37417
38989
  @param request: ModifyDBProxyEndpointAddressRequest
37418
38990
  @return: ModifyDBProxyEndpointAddressResponse
@@ -37916,11 +39488,11 @@ class Client(OpenApiClient):
37916
39488
  """
37917
39489
  @summary Modifies the property settings of an ApsaraDB RDS for SQL Server instance.
37918
39490
 
37919
- @description ### [](#)Supported database engines
39491
+ @description ### [](#)Supported database engine
37920
39492
  SQL Server
37921
39493
  ### [](#)References
37922
- 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).
37923
- > : 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.
37924
39496
 
37925
39497
  @param request: ModifyDatabaseConfigRequest
37926
39498
  @param runtime: runtime options for this request RuntimeOptions
@@ -37971,11 +39543,11 @@ class Client(OpenApiClient):
37971
39543
  """
37972
39544
  @summary Modifies the property settings of an ApsaraDB RDS for SQL Server instance.
37973
39545
 
37974
- @description ### [](#)Supported database engines
39546
+ @description ### [](#)Supported database engine
37975
39547
  SQL Server
37976
39548
  ### [](#)References
37977
- 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).
37978
- > : 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.
37979
39551
 
37980
39552
  @param request: ModifyDatabaseConfigRequest
37981
39553
  @param runtime: runtime options for this request RuntimeOptions
@@ -38025,11 +39597,11 @@ class Client(OpenApiClient):
38025
39597
  """
38026
39598
  @summary Modifies the property settings of an ApsaraDB RDS for SQL Server instance.
38027
39599
 
38028
- @description ### [](#)Supported database engines
39600
+ @description ### [](#)Supported database engine
38029
39601
  SQL Server
38030
39602
  ### [](#)References
38031
- 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).
38032
- > : 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.
38033
39605
 
38034
39606
  @param request: ModifyDatabaseConfigRequest
38035
39607
  @return: ModifyDatabaseConfigResponse
@@ -38044,11 +39616,11 @@ class Client(OpenApiClient):
38044
39616
  """
38045
39617
  @summary Modifies the property settings of an ApsaraDB RDS for SQL Server instance.
38046
39618
 
38047
- @description ### [](#)Supported database engines
39619
+ @description ### [](#)Supported database engine
38048
39620
  SQL Server
38049
39621
  ### [](#)References
38050
- 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).
38051
- > : 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.
38052
39624
 
38053
39625
  @param request: ModifyDatabaseConfigRequest
38054
39626
  @return: ModifyDatabaseConfigResponse
@@ -39772,6 +41344,118 @@ class Client(OpenApiClient):
39772
41344
  runtime = util_models.RuntimeOptions()
39773
41345
  return await self.modify_rcinstance_with_options_async(request, runtime)
39774
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
+
39775
41459
  def modify_rcinstance_charge_type_with_options(
39776
41460
  self,
39777
41461
  request: rds_20140815_models.ModifyRCInstanceChargeTypeRequest,
@@ -39888,6 +41572,218 @@ class Client(OpenApiClient):
39888
41572
  runtime = util_models.RuntimeOptions()
39889
41573
  return await self.modify_rcinstance_charge_type_with_options_async(request, runtime)
39890
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
+
39891
41787
  def modify_read_write_splitting_connection_with_options(
39892
41788
  self,
39893
41789
  request: rds_20140815_models.ModifyReadWriteSplittingConnectionRequest,
@@ -41282,6 +43178,8 @@ class Client(OpenApiClient):
41282
43178
  runtime: util_models.RuntimeOptions,
41283
43179
  ) -> rds_20140815_models.PreCheckCreateOrderForDeleteDBNodesResponse:
41284
43180
  """
43181
+ @summary 删除节点创建订单预检查
43182
+
41285
43183
  @param tmp_req: PreCheckCreateOrderForDeleteDBNodesRequest
41286
43184
  @param runtime: runtime options for this request RuntimeOptions
41287
43185
  @return: PreCheckCreateOrderForDeleteDBNodesResponse
@@ -41347,6 +43245,8 @@ class Client(OpenApiClient):
41347
43245
  runtime: util_models.RuntimeOptions,
41348
43246
  ) -> rds_20140815_models.PreCheckCreateOrderForDeleteDBNodesResponse:
41349
43247
  """
43248
+ @summary 删除节点创建订单预检查
43249
+
41350
43250
  @param tmp_req: PreCheckCreateOrderForDeleteDBNodesRequest
41351
43251
  @param runtime: runtime options for this request RuntimeOptions
41352
43252
  @return: PreCheckCreateOrderForDeleteDBNodesResponse
@@ -41411,6 +43311,8 @@ class Client(OpenApiClient):
41411
43311
  request: rds_20140815_models.PreCheckCreateOrderForDeleteDBNodesRequest,
41412
43312
  ) -> rds_20140815_models.PreCheckCreateOrderForDeleteDBNodesResponse:
41413
43313
  """
43314
+ @summary 删除节点创建订单预检查
43315
+
41414
43316
  @param request: PreCheckCreateOrderForDeleteDBNodesRequest
41415
43317
  @return: PreCheckCreateOrderForDeleteDBNodesResponse
41416
43318
  """
@@ -41422,6 +43324,8 @@ class Client(OpenApiClient):
41422
43324
  request: rds_20140815_models.PreCheckCreateOrderForDeleteDBNodesRequest,
41423
43325
  ) -> rds_20140815_models.PreCheckCreateOrderForDeleteDBNodesResponse:
41424
43326
  """
43327
+ @summary 删除节点创建订单预检查
43328
+
41425
43329
  @param request: PreCheckCreateOrderForDeleteDBNodesRequest
41426
43330
  @return: PreCheckCreateOrderForDeleteDBNodesResponse
41427
43331
  """
@@ -43194,6 +45098,8 @@ class Client(OpenApiClient):
43194
45098
  query['AutoPay'] = request.auto_pay
43195
45099
  if not UtilClient.is_unset(request.auto_renew):
43196
45100
  query['AutoRenew'] = request.auto_renew
45101
+ if not UtilClient.is_unset(request.auto_use_coupon):
45102
+ query['AutoUseCoupon'] = request.auto_use_coupon
43197
45103
  if not UtilClient.is_unset(request.client_token):
43198
45104
  query['ClientToken'] = request.client_token
43199
45105
  if not UtilClient.is_unset(request.dbinstance_id):
@@ -43202,6 +45108,8 @@ class Client(OpenApiClient):
43202
45108
  query['OwnerId'] = request.owner_id
43203
45109
  if not UtilClient.is_unset(request.period):
43204
45110
  query['Period'] = request.period
45111
+ if not UtilClient.is_unset(request.promotion_code):
45112
+ query['PromotionCode'] = request.promotion_code
43205
45113
  if not UtilClient.is_unset(request.resource_owner_account):
43206
45114
  query['ResourceOwnerAccount'] = request.resource_owner_account
43207
45115
  if not UtilClient.is_unset(request.resource_owner_id):
@@ -43255,6 +45163,8 @@ class Client(OpenApiClient):
43255
45163
  query['AutoPay'] = request.auto_pay
43256
45164
  if not UtilClient.is_unset(request.auto_renew):
43257
45165
  query['AutoRenew'] = request.auto_renew
45166
+ if not UtilClient.is_unset(request.auto_use_coupon):
45167
+ query['AutoUseCoupon'] = request.auto_use_coupon
43258
45168
  if not UtilClient.is_unset(request.client_token):
43259
45169
  query['ClientToken'] = request.client_token
43260
45170
  if not UtilClient.is_unset(request.dbinstance_id):
@@ -43263,6 +45173,8 @@ class Client(OpenApiClient):
43263
45173
  query['OwnerId'] = request.owner_id
43264
45174
  if not UtilClient.is_unset(request.period):
43265
45175
  query['Period'] = request.period
45176
+ if not UtilClient.is_unset(request.promotion_code):
45177
+ query['PromotionCode'] = request.promotion_code
43266
45178
  if not UtilClient.is_unset(request.resource_owner_account):
43267
45179
  query['ResourceOwnerAccount'] = request.resource_owner_account
43268
45180
  if not UtilClient.is_unset(request.resource_owner_id):
@@ -43336,6 +45248,122 @@ class Client(OpenApiClient):
43336
45248
  runtime = util_models.RuntimeOptions()
43337
45249
  return await self.renew_instance_with_options_async(request, runtime)
43338
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
+
43339
45367
  def reset_account_with_options(
43340
45368
  self,
43341
45369
  request: rds_20140815_models.ResetAccountRequest,
@@ -43672,6 +45700,8 @@ class Client(OpenApiClient):
43672
45700
  query = {}
43673
45701
  if not UtilClient.is_unset(request.auto_pay):
43674
45702
  query['AutoPay'] = request.auto_pay
45703
+ if not UtilClient.is_unset(request.disk_id):
45704
+ query['DiskId'] = request.disk_id
43675
45705
  if not UtilClient.is_unset(request.dry_run):
43676
45706
  query['DryRun'] = request.dry_run
43677
45707
  if not UtilClient.is_unset(request.instance_id):
@@ -43717,6 +45747,8 @@ class Client(OpenApiClient):
43717
45747
  query = {}
43718
45748
  if not UtilClient.is_unset(request.auto_pay):
43719
45749
  query['AutoPay'] = request.auto_pay
45750
+ if not UtilClient.is_unset(request.disk_id):
45751
+ query['DiskId'] = request.disk_id
43720
45752
  if not UtilClient.is_unset(request.dry_run):
43721
45753
  query['DryRun'] = request.dry_run
43722
45754
  if not UtilClient.is_unset(request.instance_id):
@@ -44620,6 +46652,8 @@ class Client(OpenApiClient):
44620
46652
  query['AutoRenew'] = request.auto_renew
44621
46653
  if not UtilClient.is_unset(request.client_token):
44622
46654
  query['ClientToken'] = request.client_token
46655
+ if not UtilClient.is_unset(request.create_mode):
46656
+ query['CreateMode'] = request.create_mode
44623
46657
  if not UtilClient.is_unset(request.data_disk_shrink):
44624
46658
  query['DataDisk'] = request.data_disk_shrink
44625
46659
  if not UtilClient.is_unset(request.deployment_set_id):
@@ -44628,6 +46662,8 @@ class Client(OpenApiClient):
44628
46662
  query['Description'] = request.description
44629
46663
  if not UtilClient.is_unset(request.dry_run):
44630
46664
  query['DryRun'] = request.dry_run
46665
+ if not UtilClient.is_unset(request.host_name):
46666
+ query['HostName'] = request.host_name
44631
46667
  if not UtilClient.is_unset(request.image_id):
44632
46668
  query['ImageId'] = request.image_id
44633
46669
  if not UtilClient.is_unset(request.instance_charge_type):
@@ -44652,12 +46688,16 @@ class Client(OpenApiClient):
44652
46688
  query['PeriodUnit'] = request.period_unit
44653
46689
  if not UtilClient.is_unset(request.region_id):
44654
46690
  query['RegionId'] = request.region_id
46691
+ if not UtilClient.is_unset(request.resource_group_id):
46692
+ query['ResourceGroupId'] = request.resource_group_id
44655
46693
  if not UtilClient.is_unset(request.security_enhancement_strategy):
44656
46694
  query['SecurityEnhancementStrategy'] = request.security_enhancement_strategy
44657
46695
  if not UtilClient.is_unset(request.security_group_id):
44658
46696
  query['SecurityGroupId'] = request.security_group_id
44659
46697
  if not UtilClient.is_unset(request.system_disk_shrink):
44660
46698
  query['SystemDisk'] = request.system_disk_shrink
46699
+ if not UtilClient.is_unset(request.tag):
46700
+ query['Tag'] = request.tag
44661
46701
  if not UtilClient.is_unset(request.v_switch_id):
44662
46702
  query['VSwitchId'] = request.v_switch_id
44663
46703
  if not UtilClient.is_unset(request.zone_id):
@@ -44713,6 +46753,8 @@ class Client(OpenApiClient):
44713
46753
  query['AutoRenew'] = request.auto_renew
44714
46754
  if not UtilClient.is_unset(request.client_token):
44715
46755
  query['ClientToken'] = request.client_token
46756
+ if not UtilClient.is_unset(request.create_mode):
46757
+ query['CreateMode'] = request.create_mode
44716
46758
  if not UtilClient.is_unset(request.data_disk_shrink):
44717
46759
  query['DataDisk'] = request.data_disk_shrink
44718
46760
  if not UtilClient.is_unset(request.deployment_set_id):
@@ -44721,6 +46763,8 @@ class Client(OpenApiClient):
44721
46763
  query['Description'] = request.description
44722
46764
  if not UtilClient.is_unset(request.dry_run):
44723
46765
  query['DryRun'] = request.dry_run
46766
+ if not UtilClient.is_unset(request.host_name):
46767
+ query['HostName'] = request.host_name
44724
46768
  if not UtilClient.is_unset(request.image_id):
44725
46769
  query['ImageId'] = request.image_id
44726
46770
  if not UtilClient.is_unset(request.instance_charge_type):
@@ -44745,12 +46789,16 @@ class Client(OpenApiClient):
44745
46789
  query['PeriodUnit'] = request.period_unit
44746
46790
  if not UtilClient.is_unset(request.region_id):
44747
46791
  query['RegionId'] = request.region_id
46792
+ if not UtilClient.is_unset(request.resource_group_id):
46793
+ query['ResourceGroupId'] = request.resource_group_id
44748
46794
  if not UtilClient.is_unset(request.security_enhancement_strategy):
44749
46795
  query['SecurityEnhancementStrategy'] = request.security_enhancement_strategy
44750
46796
  if not UtilClient.is_unset(request.security_group_id):
44751
46797
  query['SecurityGroupId'] = request.security_group_id
44752
46798
  if not UtilClient.is_unset(request.system_disk_shrink):
44753
46799
  query['SystemDisk'] = request.system_disk_shrink
46800
+ if not UtilClient.is_unset(request.tag):
46801
+ query['Tag'] = request.tag
44754
46802
  if not UtilClient.is_unset(request.v_switch_id):
44755
46803
  query['VSwitchId'] = request.v_switch_id
44756
46804
  if not UtilClient.is_unset(request.zone_id):
@@ -44816,15 +46864,13 @@ class Client(OpenApiClient):
44816
46864
  """
44817
46865
  @summary Resumes an instance.
44818
46866
 
44819
- @description ### Supported database engines
46867
+ @description ### [](#)Supported database engines
44820
46868
  MySQL
44821
46869
  PostgreSQL
44822
46870
  SQL Server
44823
- ### References
44824
- > Before you call this operation, read the following documentation and make sure that you fully understand the prerequisites and impacts of this operation:
44825
- [Resume an ApsaraDB RDS for MySQL instance](https://help.aliyun.com/document_detail/427093.html)
44826
- [Resume an ApsaraDB RDS for PostgreSQL instance](https://help.aliyun.com/document_detail/452314.html)
44827
- [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)
44828
46874
 
44829
46875
  @param request: StartDBInstanceRequest
44830
46876
  @param runtime: runtime options for this request RuntimeOptions
@@ -44893,15 +46939,13 @@ class Client(OpenApiClient):
44893
46939
  """
44894
46940
  @summary Resumes an instance.
44895
46941
 
44896
- @description ### Supported database engines
46942
+ @description ### [](#)Supported database engines
44897
46943
  MySQL
44898
46944
  PostgreSQL
44899
46945
  SQL Server
44900
- ### References
44901
- > Before you call this operation, read the following documentation and make sure that you fully understand the prerequisites and impacts of this operation:
44902
- [Resume an ApsaraDB RDS for MySQL instance](https://help.aliyun.com/document_detail/427093.html)
44903
- [Resume an ApsaraDB RDS for PostgreSQL instance](https://help.aliyun.com/document_detail/452314.html)
44904
- [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)
44905
46949
 
44906
46950
  @param request: StartDBInstanceRequest
44907
46951
  @param runtime: runtime options for this request RuntimeOptions
@@ -44969,15 +47013,13 @@ class Client(OpenApiClient):
44969
47013
  """
44970
47014
  @summary Resumes an instance.
44971
47015
 
44972
- @description ### Supported database engines
47016
+ @description ### [](#)Supported database engines
44973
47017
  MySQL
44974
47018
  PostgreSQL
44975
47019
  SQL Server
44976
- ### References
44977
- > Before you call this operation, read the following documentation and make sure that you fully understand the prerequisites and impacts of this operation:
44978
- [Resume an ApsaraDB RDS for MySQL instance](https://help.aliyun.com/document_detail/427093.html)
44979
- [Resume an ApsaraDB RDS for PostgreSQL instance](https://help.aliyun.com/document_detail/452314.html)
44980
- [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)
44981
47023
 
44982
47024
  @param request: StartDBInstanceRequest
44983
47025
  @return: StartDBInstanceResponse
@@ -44992,15 +47034,13 @@ class Client(OpenApiClient):
44992
47034
  """
44993
47035
  @summary Resumes an instance.
44994
47036
 
44995
- @description ### Supported database engines
47037
+ @description ### [](#)Supported database engines
44996
47038
  MySQL
44997
47039
  PostgreSQL
44998
47040
  SQL Server
44999
- ### References
45000
- > Before you call this operation, read the following documentation and make sure that you fully understand the prerequisites and impacts of this operation:
45001
- [Resume an ApsaraDB RDS for MySQL instance](https://help.aliyun.com/document_detail/427093.html)
45002
- [Resume an ApsaraDB RDS for PostgreSQL instance](https://help.aliyun.com/document_detail/452314.html)
45003
- [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)
45004
47044
 
45005
47045
  @param request: StartDBInstanceRequest
45006
47046
  @return: StartDBInstanceResponse
@@ -45122,8 +47162,6 @@ class Client(OpenApiClient):
45122
47162
  SQL Server
45123
47163
  ### References
45124
47164
  > Before you call this operation, read the following documentation and make sure that you fully understand the prerequisites and impacts of this operation.
45125
- [Suspend an ApsaraDB RDS for MySQL instance](https://help.aliyun.com/document_detail/427093.html)
45126
- [Suspend an ApsaraDB RDS for PostgreSQL instance](https://help.aliyun.com/document_detail/452314.html)
45127
47165
  [Suspend an ApsaraDB RDS for SQL Server instance](https://help.aliyun.com/document_detail/462504.html)
45128
47166
 
45129
47167
  @param request: StopDBInstanceRequest
@@ -45175,8 +47213,6 @@ class Client(OpenApiClient):
45175
47213
  SQL Server
45176
47214
  ### References
45177
47215
  > Before you call this operation, read the following documentation and make sure that you fully understand the prerequisites and impacts of this operation.
45178
- [Suspend an ApsaraDB RDS for MySQL instance](https://help.aliyun.com/document_detail/427093.html)
45179
- [Suspend an ApsaraDB RDS for PostgreSQL instance](https://help.aliyun.com/document_detail/452314.html)
45180
47216
  [Suspend an ApsaraDB RDS for SQL Server instance](https://help.aliyun.com/document_detail/462504.html)
45181
47217
 
45182
47218
  @param request: StopDBInstanceRequest
@@ -45227,8 +47263,6 @@ class Client(OpenApiClient):
45227
47263
  SQL Server
45228
47264
  ### References
45229
47265
  > Before you call this operation, read the following documentation and make sure that you fully understand the prerequisites and impacts of this operation.
45230
- [Suspend an ApsaraDB RDS for MySQL instance](https://help.aliyun.com/document_detail/427093.html)
45231
- [Suspend an ApsaraDB RDS for PostgreSQL instance](https://help.aliyun.com/document_detail/452314.html)
45232
47266
  [Suspend an ApsaraDB RDS for SQL Server instance](https://help.aliyun.com/document_detail/462504.html)
45233
47267
 
45234
47268
  @param request: StopDBInstanceRequest
@@ -45250,8 +47284,6 @@ class Client(OpenApiClient):
45250
47284
  SQL Server
45251
47285
  ### References
45252
47286
  > Before you call this operation, read the following documentation and make sure that you fully understand the prerequisites and impacts of this operation.
45253
- [Suspend an ApsaraDB RDS for MySQL instance](https://help.aliyun.com/document_detail/427093.html)
45254
- [Suspend an ApsaraDB RDS for PostgreSQL instance](https://help.aliyun.com/document_detail/452314.html)
45255
47287
  [Suspend an ApsaraDB RDS for SQL Server instance](https://help.aliyun.com/document_detail/462504.html)
45256
47288
 
45257
47289
  @param request: StopDBInstanceRequest
@@ -46284,6 +48316,8 @@ class Client(OpenApiClient):
46284
48316
  query = {}
46285
48317
  if not UtilClient.is_unset(request.auto_renew):
46286
48318
  query['AutoRenew'] = request.auto_renew
48319
+ if not UtilClient.is_unset(request.auto_use_coupon):
48320
+ query['AutoUseCoupon'] = request.auto_use_coupon
46287
48321
  if not UtilClient.is_unset(request.business_info):
46288
48322
  query['BusinessInfo'] = request.business_info
46289
48323
  if not UtilClient.is_unset(request.client_token):
@@ -46298,6 +48332,8 @@ class Client(OpenApiClient):
46298
48332
  query['PayType'] = request.pay_type
46299
48333
  if not UtilClient.is_unset(request.period):
46300
48334
  query['Period'] = request.period
48335
+ if not UtilClient.is_unset(request.promotion_code):
48336
+ query['PromotionCode'] = request.promotion_code
46301
48337
  if not UtilClient.is_unset(request.resource_owner_account):
46302
48338
  query['ResourceOwnerAccount'] = request.resource_owner_account
46303
48339
  if not UtilClient.is_unset(request.resource_owner_id):
@@ -46351,6 +48387,8 @@ class Client(OpenApiClient):
46351
48387
  query = {}
46352
48388
  if not UtilClient.is_unset(request.auto_renew):
46353
48389
  query['AutoRenew'] = request.auto_renew
48390
+ if not UtilClient.is_unset(request.auto_use_coupon):
48391
+ query['AutoUseCoupon'] = request.auto_use_coupon
46354
48392
  if not UtilClient.is_unset(request.business_info):
46355
48393
  query['BusinessInfo'] = request.business_info
46356
48394
  if not UtilClient.is_unset(request.client_token):
@@ -46365,6 +48403,8 @@ class Client(OpenApiClient):
46365
48403
  query['PayType'] = request.pay_type
46366
48404
  if not UtilClient.is_unset(request.period):
46367
48405
  query['Period'] = request.period
48406
+ if not UtilClient.is_unset(request.promotion_code):
48407
+ query['PromotionCode'] = request.promotion_code
46368
48408
  if not UtilClient.is_unset(request.resource_owner_account):
46369
48409
  query['ResourceOwnerAccount'] = request.resource_owner_account
46370
48410
  if not UtilClient.is_unset(request.resource_owner_id):