alibabacloud-rds20140815 11.3.2__py3-none-any.whl → 13.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.
- alibabacloud_rds20140815/__init__.py +1 -1
- alibabacloud_rds20140815/client.py +3162 -246
- alibabacloud_rds20140815/models.py +5917 -498
- {alibabacloud_rds20140815-11.3.2.dist-info → alibabacloud_rds20140815-13.0.0.dist-info}/METADATA +3 -3
- alibabacloud_rds20140815-13.0.0.dist-info/RECORD +8 -0
- alibabacloud_rds20140815-11.3.2.dist-info/RECORD +0 -8
- {alibabacloud_rds20140815-11.3.2.dist-info → alibabacloud_rds20140815-13.0.0.dist-info}/LICENSE +0 -0
- {alibabacloud_rds20140815-11.3.2.dist-info → alibabacloud_rds20140815-13.0.0.dist-info}/WHEEL +0 -0
- {alibabacloud_rds20140815-11.3.2.dist-info → alibabacloud_rds20140815-13.0.0.dist-info}/top_level.txt +0 -0
|
@@ -94,7 +94,7 @@ class Client(OpenApiClient):
|
|
|
94
94
|
runtime: util_models.RuntimeOptions,
|
|
95
95
|
) -> rds_20140815_models.AcceptRCInquiredSystemEventResponse:
|
|
96
96
|
"""
|
|
97
|
-
@summary
|
|
97
|
+
@summary Accepts the default operation for a system event in the Inquiring state and authorizes the system to perform the default operation.
|
|
98
98
|
|
|
99
99
|
@param request: AcceptRCInquiredSystemEventRequest
|
|
100
100
|
@param runtime: runtime options for this request RuntimeOptions
|
|
@@ -131,7 +131,7 @@ class Client(OpenApiClient):
|
|
|
131
131
|
runtime: util_models.RuntimeOptions,
|
|
132
132
|
) -> rds_20140815_models.AcceptRCInquiredSystemEventResponse:
|
|
133
133
|
"""
|
|
134
|
-
@summary
|
|
134
|
+
@summary Accepts the default operation for a system event in the Inquiring state and authorizes the system to perform the default operation.
|
|
135
135
|
|
|
136
136
|
@param request: AcceptRCInquiredSystemEventRequest
|
|
137
137
|
@param runtime: runtime options for this request RuntimeOptions
|
|
@@ -167,7 +167,7 @@ class Client(OpenApiClient):
|
|
|
167
167
|
request: rds_20140815_models.AcceptRCInquiredSystemEventRequest,
|
|
168
168
|
) -> rds_20140815_models.AcceptRCInquiredSystemEventResponse:
|
|
169
169
|
"""
|
|
170
|
-
@summary
|
|
170
|
+
@summary Accepts the default operation for a system event in the Inquiring state and authorizes the system to perform the default operation.
|
|
171
171
|
|
|
172
172
|
@param request: AcceptRCInquiredSystemEventRequest
|
|
173
173
|
@return: AcceptRCInquiredSystemEventResponse
|
|
@@ -180,7 +180,7 @@ class Client(OpenApiClient):
|
|
|
180
180
|
request: rds_20140815_models.AcceptRCInquiredSystemEventRequest,
|
|
181
181
|
) -> rds_20140815_models.AcceptRCInquiredSystemEventResponse:
|
|
182
182
|
"""
|
|
183
|
-
@summary
|
|
183
|
+
@summary Accepts the default operation for a system event in the Inquiring state and authorizes the system to perform the default operation.
|
|
184
184
|
|
|
185
185
|
@param request: AcceptRCInquiredSystemEventRequest
|
|
186
186
|
@return: AcceptRCInquiredSystemEventResponse
|
|
@@ -894,7 +894,7 @@ class Client(OpenApiClient):
|
|
|
894
894
|
runtime: util_models.RuntimeOptions,
|
|
895
895
|
) -> rds_20140815_models.AssociateEipAddressWithRCInstanceResponse:
|
|
896
896
|
"""
|
|
897
|
-
@summary Associates an elastic IP address (EIP) with an RDS Custom
|
|
897
|
+
@summary Associates an elastic IP address (EIP) with an RDS Custom instance.
|
|
898
898
|
|
|
899
899
|
@description ### [](#)Supported database engine
|
|
900
900
|
SQL Server
|
|
@@ -940,7 +940,7 @@ class Client(OpenApiClient):
|
|
|
940
940
|
runtime: util_models.RuntimeOptions,
|
|
941
941
|
) -> rds_20140815_models.AssociateEipAddressWithRCInstanceResponse:
|
|
942
942
|
"""
|
|
943
|
-
@summary Associates an elastic IP address (EIP) with an RDS Custom
|
|
943
|
+
@summary Associates an elastic IP address (EIP) with an RDS Custom instance.
|
|
944
944
|
|
|
945
945
|
@description ### [](#)Supported database engine
|
|
946
946
|
SQL Server
|
|
@@ -985,7 +985,7 @@ class Client(OpenApiClient):
|
|
|
985
985
|
request: rds_20140815_models.AssociateEipAddressWithRCInstanceRequest,
|
|
986
986
|
) -> rds_20140815_models.AssociateEipAddressWithRCInstanceResponse:
|
|
987
987
|
"""
|
|
988
|
-
@summary Associates an elastic IP address (EIP) with an RDS Custom
|
|
988
|
+
@summary Associates an elastic IP address (EIP) with an RDS Custom instance.
|
|
989
989
|
|
|
990
990
|
@description ### [](#)Supported database engine
|
|
991
991
|
SQL Server
|
|
@@ -1005,7 +1005,7 @@ class Client(OpenApiClient):
|
|
|
1005
1005
|
request: rds_20140815_models.AssociateEipAddressWithRCInstanceRequest,
|
|
1006
1006
|
) -> rds_20140815_models.AssociateEipAddressWithRCInstanceResponse:
|
|
1007
1007
|
"""
|
|
1008
|
-
@summary Associates an elastic IP address (EIP) with an RDS Custom
|
|
1008
|
+
@summary Associates an elastic IP address (EIP) with an RDS Custom instance.
|
|
1009
1009
|
|
|
1010
1010
|
@description ### [](#)Supported database engine
|
|
1011
1011
|
SQL Server
|
|
@@ -1390,7 +1390,7 @@ class Client(OpenApiClient):
|
|
|
1390
1390
|
runtime: util_models.RuntimeOptions,
|
|
1391
1391
|
) -> rds_20140815_models.AuthorizeRCSecurityGroupPermissionResponse:
|
|
1392
1392
|
"""
|
|
1393
|
-
@summary
|
|
1393
|
+
@summary Adds rules to the specified security group.
|
|
1394
1394
|
|
|
1395
1395
|
@param tmp_req: AuthorizeRCSecurityGroupPermissionRequest
|
|
1396
1396
|
@param runtime: runtime options for this request RuntimeOptions
|
|
@@ -1435,7 +1435,7 @@ class Client(OpenApiClient):
|
|
|
1435
1435
|
runtime: util_models.RuntimeOptions,
|
|
1436
1436
|
) -> rds_20140815_models.AuthorizeRCSecurityGroupPermissionResponse:
|
|
1437
1437
|
"""
|
|
1438
|
-
@summary
|
|
1438
|
+
@summary Adds rules to the specified security group.
|
|
1439
1439
|
|
|
1440
1440
|
@param tmp_req: AuthorizeRCSecurityGroupPermissionRequest
|
|
1441
1441
|
@param runtime: runtime options for this request RuntimeOptions
|
|
@@ -1479,7 +1479,7 @@ class Client(OpenApiClient):
|
|
|
1479
1479
|
request: rds_20140815_models.AuthorizeRCSecurityGroupPermissionRequest,
|
|
1480
1480
|
) -> rds_20140815_models.AuthorizeRCSecurityGroupPermissionResponse:
|
|
1481
1481
|
"""
|
|
1482
|
-
@summary
|
|
1482
|
+
@summary Adds rules to the specified security group.
|
|
1483
1483
|
|
|
1484
1484
|
@param request: AuthorizeRCSecurityGroupPermissionRequest
|
|
1485
1485
|
@return: AuthorizeRCSecurityGroupPermissionResponse
|
|
@@ -1492,7 +1492,7 @@ class Client(OpenApiClient):
|
|
|
1492
1492
|
request: rds_20140815_models.AuthorizeRCSecurityGroupPermissionRequest,
|
|
1493
1493
|
) -> rds_20140815_models.AuthorizeRCSecurityGroupPermissionResponse:
|
|
1494
1494
|
"""
|
|
1495
|
-
@summary
|
|
1495
|
+
@summary Adds rules to the specified security group.
|
|
1496
1496
|
|
|
1497
1497
|
@param request: AuthorizeRCSecurityGroupPermissionRequest
|
|
1498
1498
|
@return: AuthorizeRCSecurityGroupPermissionResponse
|
|
@@ -2572,6 +2572,110 @@ class Client(OpenApiClient):
|
|
|
2572
2572
|
runtime = util_models.RuntimeOptions()
|
|
2573
2573
|
return await self.check_instance_exist_with_options_async(request, runtime)
|
|
2574
2574
|
|
|
2575
|
+
def check_rds_custom_init_with_options(
|
|
2576
|
+
self,
|
|
2577
|
+
request: rds_20140815_models.CheckRdsCustomInitRequest,
|
|
2578
|
+
runtime: util_models.RuntimeOptions,
|
|
2579
|
+
) -> rds_20140815_models.CheckRdsCustomInitResponse:
|
|
2580
|
+
"""
|
|
2581
|
+
@summary 查看是否已创建服务关联角色(SLR)和是否开租
|
|
2582
|
+
|
|
2583
|
+
@param request: CheckRdsCustomInitRequest
|
|
2584
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
2585
|
+
@return: CheckRdsCustomInitResponse
|
|
2586
|
+
"""
|
|
2587
|
+
UtilClient.validate_model(request)
|
|
2588
|
+
query = {}
|
|
2589
|
+
if not UtilClient.is_unset(request.region_id):
|
|
2590
|
+
query['RegionId'] = request.region_id
|
|
2591
|
+
if not UtilClient.is_unset(request.resource_group_id):
|
|
2592
|
+
query['ResourceGroupId'] = request.resource_group_id
|
|
2593
|
+
if not UtilClient.is_unset(request.service_linked_role):
|
|
2594
|
+
query['ServiceLinkedRole'] = request.service_linked_role
|
|
2595
|
+
req = open_api_models.OpenApiRequest(
|
|
2596
|
+
query=OpenApiUtilClient.query(query)
|
|
2597
|
+
)
|
|
2598
|
+
params = open_api_models.Params(
|
|
2599
|
+
action='CheckRdsCustomInit',
|
|
2600
|
+
version='2014-08-15',
|
|
2601
|
+
protocol='HTTPS',
|
|
2602
|
+
pathname='/',
|
|
2603
|
+
method='POST',
|
|
2604
|
+
auth_type='AK',
|
|
2605
|
+
style='RPC',
|
|
2606
|
+
req_body_type='formData',
|
|
2607
|
+
body_type='json'
|
|
2608
|
+
)
|
|
2609
|
+
return TeaCore.from_map(
|
|
2610
|
+
rds_20140815_models.CheckRdsCustomInitResponse(),
|
|
2611
|
+
self.call_api(params, req, runtime)
|
|
2612
|
+
)
|
|
2613
|
+
|
|
2614
|
+
async def check_rds_custom_init_with_options_async(
|
|
2615
|
+
self,
|
|
2616
|
+
request: rds_20140815_models.CheckRdsCustomInitRequest,
|
|
2617
|
+
runtime: util_models.RuntimeOptions,
|
|
2618
|
+
) -> rds_20140815_models.CheckRdsCustomInitResponse:
|
|
2619
|
+
"""
|
|
2620
|
+
@summary 查看是否已创建服务关联角色(SLR)和是否开租
|
|
2621
|
+
|
|
2622
|
+
@param request: CheckRdsCustomInitRequest
|
|
2623
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
2624
|
+
@return: CheckRdsCustomInitResponse
|
|
2625
|
+
"""
|
|
2626
|
+
UtilClient.validate_model(request)
|
|
2627
|
+
query = {}
|
|
2628
|
+
if not UtilClient.is_unset(request.region_id):
|
|
2629
|
+
query['RegionId'] = request.region_id
|
|
2630
|
+
if not UtilClient.is_unset(request.resource_group_id):
|
|
2631
|
+
query['ResourceGroupId'] = request.resource_group_id
|
|
2632
|
+
if not UtilClient.is_unset(request.service_linked_role):
|
|
2633
|
+
query['ServiceLinkedRole'] = request.service_linked_role
|
|
2634
|
+
req = open_api_models.OpenApiRequest(
|
|
2635
|
+
query=OpenApiUtilClient.query(query)
|
|
2636
|
+
)
|
|
2637
|
+
params = open_api_models.Params(
|
|
2638
|
+
action='CheckRdsCustomInit',
|
|
2639
|
+
version='2014-08-15',
|
|
2640
|
+
protocol='HTTPS',
|
|
2641
|
+
pathname='/',
|
|
2642
|
+
method='POST',
|
|
2643
|
+
auth_type='AK',
|
|
2644
|
+
style='RPC',
|
|
2645
|
+
req_body_type='formData',
|
|
2646
|
+
body_type='json'
|
|
2647
|
+
)
|
|
2648
|
+
return TeaCore.from_map(
|
|
2649
|
+
rds_20140815_models.CheckRdsCustomInitResponse(),
|
|
2650
|
+
await self.call_api_async(params, req, runtime)
|
|
2651
|
+
)
|
|
2652
|
+
|
|
2653
|
+
def check_rds_custom_init(
|
|
2654
|
+
self,
|
|
2655
|
+
request: rds_20140815_models.CheckRdsCustomInitRequest,
|
|
2656
|
+
) -> rds_20140815_models.CheckRdsCustomInitResponse:
|
|
2657
|
+
"""
|
|
2658
|
+
@summary 查看是否已创建服务关联角色(SLR)和是否开租
|
|
2659
|
+
|
|
2660
|
+
@param request: CheckRdsCustomInitRequest
|
|
2661
|
+
@return: CheckRdsCustomInitResponse
|
|
2662
|
+
"""
|
|
2663
|
+
runtime = util_models.RuntimeOptions()
|
|
2664
|
+
return self.check_rds_custom_init_with_options(request, runtime)
|
|
2665
|
+
|
|
2666
|
+
async def check_rds_custom_init_async(
|
|
2667
|
+
self,
|
|
2668
|
+
request: rds_20140815_models.CheckRdsCustomInitRequest,
|
|
2669
|
+
) -> rds_20140815_models.CheckRdsCustomInitResponse:
|
|
2670
|
+
"""
|
|
2671
|
+
@summary 查看是否已创建服务关联角色(SLR)和是否开租
|
|
2672
|
+
|
|
2673
|
+
@param request: CheckRdsCustomInitRequest
|
|
2674
|
+
@return: CheckRdsCustomInitResponse
|
|
2675
|
+
"""
|
|
2676
|
+
runtime = util_models.RuntimeOptions()
|
|
2677
|
+
return await self.check_rds_custom_init_with_options_async(request, runtime)
|
|
2678
|
+
|
|
2575
2679
|
def check_service_linked_role_with_options(
|
|
2576
2680
|
self,
|
|
2577
2681
|
request: rds_20140815_models.CheckServiceLinkedRoleRequest,
|
|
@@ -2744,6 +2848,8 @@ class Client(OpenApiClient):
|
|
|
2744
2848
|
query['Category'] = request.category
|
|
2745
2849
|
if not UtilClient.is_unset(request.client_token):
|
|
2746
2850
|
query['ClientToken'] = request.client_token
|
|
2851
|
+
if not UtilClient.is_unset(request.custom_extra_info):
|
|
2852
|
+
query['CustomExtraInfo'] = request.custom_extra_info
|
|
2747
2853
|
if not UtilClient.is_unset(request.dbinstance_class):
|
|
2748
2854
|
query['DBInstanceClass'] = request.dbinstance_class
|
|
2749
2855
|
if not UtilClient.is_unset(request.dbinstance_description):
|
|
@@ -2857,6 +2963,8 @@ class Client(OpenApiClient):
|
|
|
2857
2963
|
query['Category'] = request.category
|
|
2858
2964
|
if not UtilClient.is_unset(request.client_token):
|
|
2859
2965
|
query['ClientToken'] = request.client_token
|
|
2966
|
+
if not UtilClient.is_unset(request.custom_extra_info):
|
|
2967
|
+
query['CustomExtraInfo'] = request.custom_extra_info
|
|
2860
2968
|
if not UtilClient.is_unset(request.dbinstance_class):
|
|
2861
2969
|
query['DBInstanceClass'] = request.dbinstance_class
|
|
2862
2970
|
if not UtilClient.is_unset(request.dbinstance_description):
|
|
@@ -3766,6 +3874,8 @@ class Client(OpenApiClient):
|
|
|
3766
3874
|
query = {}
|
|
3767
3875
|
if not UtilClient.is_unset(request.backup_method):
|
|
3768
3876
|
query['BackupMethod'] = request.backup_method
|
|
3877
|
+
if not UtilClient.is_unset(request.backup_retention_period):
|
|
3878
|
+
query['BackupRetentionPeriod'] = request.backup_retention_period
|
|
3769
3879
|
if not UtilClient.is_unset(request.backup_strategy):
|
|
3770
3880
|
query['BackupStrategy'] = request.backup_strategy
|
|
3771
3881
|
if not UtilClient.is_unset(request.backup_type):
|
|
@@ -3829,6 +3939,8 @@ class Client(OpenApiClient):
|
|
|
3829
3939
|
query = {}
|
|
3830
3940
|
if not UtilClient.is_unset(request.backup_method):
|
|
3831
3941
|
query['BackupMethod'] = request.backup_method
|
|
3942
|
+
if not UtilClient.is_unset(request.backup_retention_period):
|
|
3943
|
+
query['BackupRetentionPeriod'] = request.backup_retention_period
|
|
3832
3944
|
if not UtilClient.is_unset(request.backup_strategy):
|
|
3833
3945
|
query['BackupStrategy'] = request.backup_strategy
|
|
3834
3946
|
if not UtilClient.is_unset(request.backup_type):
|
|
@@ -4280,6 +4392,8 @@ class Client(OpenApiClient):
|
|
|
4280
4392
|
query['ConnectionString'] = request.connection_string
|
|
4281
4393
|
if not UtilClient.is_unset(request.create_strategy):
|
|
4282
4394
|
query['CreateStrategy'] = request.create_strategy
|
|
4395
|
+
if not UtilClient.is_unset(request.custom_extra_info):
|
|
4396
|
+
query['CustomExtraInfo'] = request.custom_extra_info
|
|
4283
4397
|
if not UtilClient.is_unset(request.dbinstance_class):
|
|
4284
4398
|
query['DBInstanceClass'] = request.dbinstance_class
|
|
4285
4399
|
if not UtilClient.is_unset(request.dbinstance_description):
|
|
@@ -4308,6 +4422,8 @@ class Client(OpenApiClient):
|
|
|
4308
4422
|
query['Engine'] = request.engine
|
|
4309
4423
|
if not UtilClient.is_unset(request.engine_version):
|
|
4310
4424
|
query['EngineVersion'] = request.engine_version
|
|
4425
|
+
if not UtilClient.is_unset(request.external_replication):
|
|
4426
|
+
query['ExternalReplication'] = request.external_replication
|
|
4311
4427
|
if not UtilClient.is_unset(request.instance_network_type):
|
|
4312
4428
|
query['InstanceNetworkType'] = request.instance_network_type
|
|
4313
4429
|
if not UtilClient.is_unset(request.io_acceleration_enabled):
|
|
@@ -4453,6 +4569,8 @@ class Client(OpenApiClient):
|
|
|
4453
4569
|
query['ConnectionString'] = request.connection_string
|
|
4454
4570
|
if not UtilClient.is_unset(request.create_strategy):
|
|
4455
4571
|
query['CreateStrategy'] = request.create_strategy
|
|
4572
|
+
if not UtilClient.is_unset(request.custom_extra_info):
|
|
4573
|
+
query['CustomExtraInfo'] = request.custom_extra_info
|
|
4456
4574
|
if not UtilClient.is_unset(request.dbinstance_class):
|
|
4457
4575
|
query['DBInstanceClass'] = request.dbinstance_class
|
|
4458
4576
|
if not UtilClient.is_unset(request.dbinstance_description):
|
|
@@ -4481,6 +4599,8 @@ class Client(OpenApiClient):
|
|
|
4481
4599
|
query['Engine'] = request.engine
|
|
4482
4600
|
if not UtilClient.is_unset(request.engine_version):
|
|
4483
4601
|
query['EngineVersion'] = request.engine_version
|
|
4602
|
+
if not UtilClient.is_unset(request.external_replication):
|
|
4603
|
+
query['ExternalReplication'] = request.external_replication
|
|
4484
4604
|
if not UtilClient.is_unset(request.instance_network_type):
|
|
4485
4605
|
query['InstanceNetworkType'] = request.instance_network_type
|
|
4486
4606
|
if not UtilClient.is_unset(request.io_acceleration_enabled):
|
|
@@ -7500,6 +7620,11 @@ class Client(OpenApiClient):
|
|
|
7500
7620
|
"""
|
|
7501
7621
|
@summary Creates a data disk for an RDS Custom instance.
|
|
7502
7622
|
|
|
7623
|
+
@description The disk can be an ultra disk, an Enterprise SSD (ESSD), an SSD, or a Premium ESSD. By default, Premium ESSD is used.
|
|
7624
|
+
When you set InstanceChargeType to **Prepaid**, the disk billing method is subscription. You must set **InstanceId** to the ID of a subscription instance. The expiration time of the disk must be the same as that of the instance to which the disk is attached.
|
|
7625
|
+
When you set **InstanceChargeType** to Postpaid, the disk billing method is pay-as-you-go. You do not need to attach the disk to an instance. You can also attach the pay-as-you-go disk to an instance of any billing method based on your business requirements.
|
|
7626
|
+
The type and number of disks that can be attached to an instance vary based on instance specifications.
|
|
7627
|
+
|
|
7503
7628
|
@param request: CreateRCDiskRequest
|
|
7504
7629
|
@param runtime: runtime options for this request RuntimeOptions
|
|
7505
7630
|
@return: CreateRCDiskResponse
|
|
@@ -7565,6 +7690,11 @@ class Client(OpenApiClient):
|
|
|
7565
7690
|
"""
|
|
7566
7691
|
@summary Creates a data disk for an RDS Custom instance.
|
|
7567
7692
|
|
|
7693
|
+
@description The disk can be an ultra disk, an Enterprise SSD (ESSD), an SSD, or a Premium ESSD. By default, Premium ESSD is used.
|
|
7694
|
+
When you set InstanceChargeType to **Prepaid**, the disk billing method is subscription. You must set **InstanceId** to the ID of a subscription instance. The expiration time of the disk must be the same as that of the instance to which the disk is attached.
|
|
7695
|
+
When you set **InstanceChargeType** to Postpaid, the disk billing method is pay-as-you-go. You do not need to attach the disk to an instance. You can also attach the pay-as-you-go disk to an instance of any billing method based on your business requirements.
|
|
7696
|
+
The type and number of disks that can be attached to an instance vary based on instance specifications.
|
|
7697
|
+
|
|
7568
7698
|
@param request: CreateRCDiskRequest
|
|
7569
7699
|
@param runtime: runtime options for this request RuntimeOptions
|
|
7570
7700
|
@return: CreateRCDiskResponse
|
|
@@ -7629,6 +7759,11 @@ class Client(OpenApiClient):
|
|
|
7629
7759
|
"""
|
|
7630
7760
|
@summary Creates a data disk for an RDS Custom instance.
|
|
7631
7761
|
|
|
7762
|
+
@description The disk can be an ultra disk, an Enterprise SSD (ESSD), an SSD, or a Premium ESSD. By default, Premium ESSD is used.
|
|
7763
|
+
When you set InstanceChargeType to **Prepaid**, the disk billing method is subscription. You must set **InstanceId** to the ID of a subscription instance. The expiration time of the disk must be the same as that of the instance to which the disk is attached.
|
|
7764
|
+
When you set **InstanceChargeType** to Postpaid, the disk billing method is pay-as-you-go. You do not need to attach the disk to an instance. You can also attach the pay-as-you-go disk to an instance of any billing method based on your business requirements.
|
|
7765
|
+
The type and number of disks that can be attached to an instance vary based on instance specifications.
|
|
7766
|
+
|
|
7632
7767
|
@param request: CreateRCDiskRequest
|
|
7633
7768
|
@return: CreateRCDiskResponse
|
|
7634
7769
|
"""
|
|
@@ -7642,6 +7777,11 @@ class Client(OpenApiClient):
|
|
|
7642
7777
|
"""
|
|
7643
7778
|
@summary Creates a data disk for an RDS Custom instance.
|
|
7644
7779
|
|
|
7780
|
+
@description The disk can be an ultra disk, an Enterprise SSD (ESSD), an SSD, or a Premium ESSD. By default, Premium ESSD is used.
|
|
7781
|
+
When you set InstanceChargeType to **Prepaid**, the disk billing method is subscription. You must set **InstanceId** to the ID of a subscription instance. The expiration time of the disk must be the same as that of the instance to which the disk is attached.
|
|
7782
|
+
When you set **InstanceChargeType** to Postpaid, the disk billing method is pay-as-you-go. You do not need to attach the disk to an instance. You can also attach the pay-as-you-go disk to an instance of any billing method based on your business requirements.
|
|
7783
|
+
The type and number of disks that can be attached to an instance vary based on instance specifications.
|
|
7784
|
+
|
|
7645
7785
|
@param request: CreateRCDiskRequest
|
|
7646
7786
|
@return: CreateRCDiskResponse
|
|
7647
7787
|
"""
|
|
@@ -7922,8 +8062,12 @@ class Client(OpenApiClient):
|
|
|
7922
8062
|
query['InstantAccessRetentionDays'] = request.instant_access_retention_days
|
|
7923
8063
|
if not UtilClient.is_unset(request.region_id):
|
|
7924
8064
|
query['RegionId'] = request.region_id
|
|
8065
|
+
if not UtilClient.is_unset(request.resource_group_id):
|
|
8066
|
+
query['ResourceGroupId'] = request.resource_group_id
|
|
7925
8067
|
if not UtilClient.is_unset(request.retention_days):
|
|
7926
8068
|
query['RetentionDays'] = request.retention_days
|
|
8069
|
+
if not UtilClient.is_unset(request.tag):
|
|
8070
|
+
query['Tag'] = request.tag
|
|
7927
8071
|
if not UtilClient.is_unset(request.zone_id):
|
|
7928
8072
|
query['ZoneId'] = request.zone_id
|
|
7929
8073
|
req = open_api_models.OpenApiRequest(
|
|
@@ -7979,8 +8123,12 @@ class Client(OpenApiClient):
|
|
|
7979
8123
|
query['InstantAccessRetentionDays'] = request.instant_access_retention_days
|
|
7980
8124
|
if not UtilClient.is_unset(request.region_id):
|
|
7981
8125
|
query['RegionId'] = request.region_id
|
|
8126
|
+
if not UtilClient.is_unset(request.resource_group_id):
|
|
8127
|
+
query['ResourceGroupId'] = request.resource_group_id
|
|
7982
8128
|
if not UtilClient.is_unset(request.retention_days):
|
|
7983
8129
|
query['RetentionDays'] = request.retention_days
|
|
8130
|
+
if not UtilClient.is_unset(request.tag):
|
|
8131
|
+
query['Tag'] = request.tag
|
|
7984
8132
|
if not UtilClient.is_unset(request.zone_id):
|
|
7985
8133
|
query['ZoneId'] = request.zone_id
|
|
7986
8134
|
req = open_api_models.OpenApiRequest(
|
|
@@ -8088,6 +8236,8 @@ class Client(OpenApiClient):
|
|
|
8088
8236
|
query['Category'] = request.category
|
|
8089
8237
|
if not UtilClient.is_unset(request.client_token):
|
|
8090
8238
|
query['ClientToken'] = request.client_token
|
|
8239
|
+
if not UtilClient.is_unset(request.custom_extra_info):
|
|
8240
|
+
query['CustomExtraInfo'] = request.custom_extra_info
|
|
8091
8241
|
if not UtilClient.is_unset(request.dbinstance_class):
|
|
8092
8242
|
query['DBInstanceClass'] = request.dbinstance_class
|
|
8093
8243
|
if not UtilClient.is_unset(request.dbinstance_description):
|
|
@@ -8112,6 +8262,8 @@ class Client(OpenApiClient):
|
|
|
8112
8262
|
query['InstructionSetArch'] = request.instruction_set_arch
|
|
8113
8263
|
if not UtilClient.is_unset(request.io_acceleration_enabled):
|
|
8114
8264
|
query['IoAccelerationEnabled'] = request.io_acceleration_enabled
|
|
8265
|
+
if not UtilClient.is_unset(request.is_analytic_read_only_ins):
|
|
8266
|
+
query['IsAnalyticReadOnlyIns'] = request.is_analytic_read_only_ins
|
|
8115
8267
|
if not UtilClient.is_unset(request.owner_account):
|
|
8116
8268
|
query['OwnerAccount'] = request.owner_account
|
|
8117
8269
|
if not UtilClient.is_unset(request.owner_id):
|
|
@@ -8207,6 +8359,8 @@ class Client(OpenApiClient):
|
|
|
8207
8359
|
query['Category'] = request.category
|
|
8208
8360
|
if not UtilClient.is_unset(request.client_token):
|
|
8209
8361
|
query['ClientToken'] = request.client_token
|
|
8362
|
+
if not UtilClient.is_unset(request.custom_extra_info):
|
|
8363
|
+
query['CustomExtraInfo'] = request.custom_extra_info
|
|
8210
8364
|
if not UtilClient.is_unset(request.dbinstance_class):
|
|
8211
8365
|
query['DBInstanceClass'] = request.dbinstance_class
|
|
8212
8366
|
if not UtilClient.is_unset(request.dbinstance_description):
|
|
@@ -8231,6 +8385,8 @@ class Client(OpenApiClient):
|
|
|
8231
8385
|
query['InstructionSetArch'] = request.instruction_set_arch
|
|
8232
8386
|
if not UtilClient.is_unset(request.io_acceleration_enabled):
|
|
8233
8387
|
query['IoAccelerationEnabled'] = request.io_acceleration_enabled
|
|
8388
|
+
if not UtilClient.is_unset(request.is_analytic_read_only_ins):
|
|
8389
|
+
query['IsAnalyticReadOnlyIns'] = request.is_analytic_read_only_ins
|
|
8234
8390
|
if not UtilClient.is_unset(request.owner_account):
|
|
8235
8391
|
query['OwnerAccount'] = request.owner_account
|
|
8236
8392
|
if not UtilClient.is_unset(request.owner_id):
|
|
@@ -9510,11 +9666,11 @@ class Client(OpenApiClient):
|
|
|
9510
9666
|
runtime: util_models.RuntimeOptions,
|
|
9511
9667
|
) -> rds_20140815_models.DeleteBackupFileResponse:
|
|
9512
9668
|
"""
|
|
9513
|
-
@summary Deletes the backup files of an ApsaraDB RDS for SQL Server instance.
|
|
9669
|
+
@summary Deletes the backup files of an ApsaraDB RDS for SQL Server instance. This operation is available only for users that have been added to the whitelist of the instance.
|
|
9514
9670
|
|
|
9515
|
-
@description ### [](#)Supported database
|
|
9516
|
-
|
|
9517
|
-
> This operation is
|
|
9671
|
+
@description ### [](#)Supported database engine
|
|
9672
|
+
SQL Server
|
|
9673
|
+
> *This operation is not supported for new users. **Select other methods to [reduce or save backup costs](https://help.aliyun.com/document_detail/95718.html). Users who are added to the whitelist can still use the backup file. Check the availability of the backup file before you delete it. After the backup file is deleted, you cannot retrieve it.
|
|
9518
9674
|
|
|
9519
9675
|
@param request: DeleteBackupFileRequest
|
|
9520
9676
|
@param runtime: runtime options for this request RuntimeOptions
|
|
@@ -9563,11 +9719,11 @@ class Client(OpenApiClient):
|
|
|
9563
9719
|
runtime: util_models.RuntimeOptions,
|
|
9564
9720
|
) -> rds_20140815_models.DeleteBackupFileResponse:
|
|
9565
9721
|
"""
|
|
9566
|
-
@summary Deletes the backup files of an ApsaraDB RDS for SQL Server instance.
|
|
9722
|
+
@summary Deletes the backup files of an ApsaraDB RDS for SQL Server instance. This operation is available only for users that have been added to the whitelist of the instance.
|
|
9567
9723
|
|
|
9568
|
-
@description ### [](#)Supported database
|
|
9569
|
-
|
|
9570
|
-
> This operation is
|
|
9724
|
+
@description ### [](#)Supported database engine
|
|
9725
|
+
SQL Server
|
|
9726
|
+
> *This operation is not supported for new users. **Select other methods to [reduce or save backup costs](https://help.aliyun.com/document_detail/95718.html). Users who are added to the whitelist can still use the backup file. Check the availability of the backup file before you delete it. After the backup file is deleted, you cannot retrieve it.
|
|
9571
9727
|
|
|
9572
9728
|
@param request: DeleteBackupFileRequest
|
|
9573
9729
|
@param runtime: runtime options for this request RuntimeOptions
|
|
@@ -9615,11 +9771,11 @@ class Client(OpenApiClient):
|
|
|
9615
9771
|
request: rds_20140815_models.DeleteBackupFileRequest,
|
|
9616
9772
|
) -> rds_20140815_models.DeleteBackupFileResponse:
|
|
9617
9773
|
"""
|
|
9618
|
-
@summary Deletes the backup files of an ApsaraDB RDS for SQL Server instance.
|
|
9774
|
+
@summary Deletes the backup files of an ApsaraDB RDS for SQL Server instance. This operation is available only for users that have been added to the whitelist of the instance.
|
|
9619
9775
|
|
|
9620
|
-
@description ### [](#)Supported database
|
|
9621
|
-
|
|
9622
|
-
> This operation is
|
|
9776
|
+
@description ### [](#)Supported database engine
|
|
9777
|
+
SQL Server
|
|
9778
|
+
> *This operation is not supported for new users. **Select other methods to [reduce or save backup costs](https://help.aliyun.com/document_detail/95718.html). Users who are added to the whitelist can still use the backup file. Check the availability of the backup file before you delete it. After the backup file is deleted, you cannot retrieve it.
|
|
9623
9779
|
|
|
9624
9780
|
@param request: DeleteBackupFileRequest
|
|
9625
9781
|
@return: DeleteBackupFileResponse
|
|
@@ -9632,11 +9788,11 @@ class Client(OpenApiClient):
|
|
|
9632
9788
|
request: rds_20140815_models.DeleteBackupFileRequest,
|
|
9633
9789
|
) -> rds_20140815_models.DeleteBackupFileResponse:
|
|
9634
9790
|
"""
|
|
9635
|
-
@summary Deletes the backup files of an ApsaraDB RDS for SQL Server instance.
|
|
9791
|
+
@summary Deletes the backup files of an ApsaraDB RDS for SQL Server instance. This operation is available only for users that have been added to the whitelist of the instance.
|
|
9636
9792
|
|
|
9637
|
-
@description ### [](#)Supported database
|
|
9638
|
-
|
|
9639
|
-
> This operation is
|
|
9793
|
+
@description ### [](#)Supported database engine
|
|
9794
|
+
SQL Server
|
|
9795
|
+
> *This operation is not supported for new users. **Select other methods to [reduce or save backup costs](https://help.aliyun.com/document_detail/95718.html). Users who are added to the whitelist can still use the backup file. Check the availability of the backup file before you delete it. After the backup file is deleted, you cannot retrieve it.
|
|
9640
9796
|
|
|
9641
9797
|
@param request: DeleteBackupFileRequest
|
|
9642
9798
|
@return: DeleteBackupFileResponse
|
|
@@ -12024,6 +12180,106 @@ class Client(OpenApiClient):
|
|
|
12024
12180
|
runtime = util_models.RuntimeOptions()
|
|
12025
12181
|
return await self.delete_rcsnapshot_with_options_async(request, runtime)
|
|
12026
12182
|
|
|
12183
|
+
def delete_rcvcluster_with_options(
|
|
12184
|
+
self,
|
|
12185
|
+
request: rds_20140815_models.DeleteRCVClusterRequest,
|
|
12186
|
+
runtime: util_models.RuntimeOptions,
|
|
12187
|
+
) -> rds_20140815_models.DeleteRCVClusterResponse:
|
|
12188
|
+
"""
|
|
12189
|
+
@summary RCVCluster删除接口
|
|
12190
|
+
|
|
12191
|
+
@param request: DeleteRCVClusterRequest
|
|
12192
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
12193
|
+
@return: DeleteRCVClusterResponse
|
|
12194
|
+
"""
|
|
12195
|
+
UtilClient.validate_model(request)
|
|
12196
|
+
query = {}
|
|
12197
|
+
if not UtilClient.is_unset(request.cluster_id):
|
|
12198
|
+
query['ClusterId'] = request.cluster_id
|
|
12199
|
+
if not UtilClient.is_unset(request.region_id):
|
|
12200
|
+
query['RegionId'] = request.region_id
|
|
12201
|
+
req = open_api_models.OpenApiRequest(
|
|
12202
|
+
query=OpenApiUtilClient.query(query)
|
|
12203
|
+
)
|
|
12204
|
+
params = open_api_models.Params(
|
|
12205
|
+
action='DeleteRCVCluster',
|
|
12206
|
+
version='2014-08-15',
|
|
12207
|
+
protocol='HTTPS',
|
|
12208
|
+
pathname='/',
|
|
12209
|
+
method='POST',
|
|
12210
|
+
auth_type='AK',
|
|
12211
|
+
style='RPC',
|
|
12212
|
+
req_body_type='formData',
|
|
12213
|
+
body_type='json'
|
|
12214
|
+
)
|
|
12215
|
+
return TeaCore.from_map(
|
|
12216
|
+
rds_20140815_models.DeleteRCVClusterResponse(),
|
|
12217
|
+
self.call_api(params, req, runtime)
|
|
12218
|
+
)
|
|
12219
|
+
|
|
12220
|
+
async def delete_rcvcluster_with_options_async(
|
|
12221
|
+
self,
|
|
12222
|
+
request: rds_20140815_models.DeleteRCVClusterRequest,
|
|
12223
|
+
runtime: util_models.RuntimeOptions,
|
|
12224
|
+
) -> rds_20140815_models.DeleteRCVClusterResponse:
|
|
12225
|
+
"""
|
|
12226
|
+
@summary RCVCluster删除接口
|
|
12227
|
+
|
|
12228
|
+
@param request: DeleteRCVClusterRequest
|
|
12229
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
12230
|
+
@return: DeleteRCVClusterResponse
|
|
12231
|
+
"""
|
|
12232
|
+
UtilClient.validate_model(request)
|
|
12233
|
+
query = {}
|
|
12234
|
+
if not UtilClient.is_unset(request.cluster_id):
|
|
12235
|
+
query['ClusterId'] = request.cluster_id
|
|
12236
|
+
if not UtilClient.is_unset(request.region_id):
|
|
12237
|
+
query['RegionId'] = request.region_id
|
|
12238
|
+
req = open_api_models.OpenApiRequest(
|
|
12239
|
+
query=OpenApiUtilClient.query(query)
|
|
12240
|
+
)
|
|
12241
|
+
params = open_api_models.Params(
|
|
12242
|
+
action='DeleteRCVCluster',
|
|
12243
|
+
version='2014-08-15',
|
|
12244
|
+
protocol='HTTPS',
|
|
12245
|
+
pathname='/',
|
|
12246
|
+
method='POST',
|
|
12247
|
+
auth_type='AK',
|
|
12248
|
+
style='RPC',
|
|
12249
|
+
req_body_type='formData',
|
|
12250
|
+
body_type='json'
|
|
12251
|
+
)
|
|
12252
|
+
return TeaCore.from_map(
|
|
12253
|
+
rds_20140815_models.DeleteRCVClusterResponse(),
|
|
12254
|
+
await self.call_api_async(params, req, runtime)
|
|
12255
|
+
)
|
|
12256
|
+
|
|
12257
|
+
def delete_rcvcluster(
|
|
12258
|
+
self,
|
|
12259
|
+
request: rds_20140815_models.DeleteRCVClusterRequest,
|
|
12260
|
+
) -> rds_20140815_models.DeleteRCVClusterResponse:
|
|
12261
|
+
"""
|
|
12262
|
+
@summary RCVCluster删除接口
|
|
12263
|
+
|
|
12264
|
+
@param request: DeleteRCVClusterRequest
|
|
12265
|
+
@return: DeleteRCVClusterResponse
|
|
12266
|
+
"""
|
|
12267
|
+
runtime = util_models.RuntimeOptions()
|
|
12268
|
+
return self.delete_rcvcluster_with_options(request, runtime)
|
|
12269
|
+
|
|
12270
|
+
async def delete_rcvcluster_async(
|
|
12271
|
+
self,
|
|
12272
|
+
request: rds_20140815_models.DeleteRCVClusterRequest,
|
|
12273
|
+
) -> rds_20140815_models.DeleteRCVClusterResponse:
|
|
12274
|
+
"""
|
|
12275
|
+
@summary RCVCluster删除接口
|
|
12276
|
+
|
|
12277
|
+
@param request: DeleteRCVClusterRequest
|
|
12278
|
+
@return: DeleteRCVClusterResponse
|
|
12279
|
+
"""
|
|
12280
|
+
runtime = util_models.RuntimeOptions()
|
|
12281
|
+
return await self.delete_rcvcluster_with_options_async(request, runtime)
|
|
12282
|
+
|
|
12027
12283
|
def delete_replication_link_with_options(
|
|
12028
12284
|
self,
|
|
12029
12285
|
request: rds_20140815_models.DeleteReplicationLinkRequest,
|
|
@@ -13579,7 +13835,7 @@ class Client(OpenApiClient):
|
|
|
13579
13835
|
@description ### [](#)Supported database engines
|
|
13580
13836
|
MySQL
|
|
13581
13837
|
### [](#)References
|
|
13582
|
-
[Create and view an analytic instance](https://help.aliyun.com/document_detail/
|
|
13838
|
+
[Create and view an analytic instance](https://help.aliyun.com/document_detail/2950002.html)
|
|
13583
13839
|
|
|
13584
13840
|
@param request: DescribeAnalyticdbByPrimaryDBInstanceRequest
|
|
13585
13841
|
@param runtime: runtime options for this request RuntimeOptions
|
|
@@ -13627,7 +13883,7 @@ class Client(OpenApiClient):
|
|
|
13627
13883
|
@description ### [](#)Supported database engines
|
|
13628
13884
|
MySQL
|
|
13629
13885
|
### [](#)References
|
|
13630
|
-
[Create and view an analytic instance](https://help.aliyun.com/document_detail/
|
|
13886
|
+
[Create and view an analytic instance](https://help.aliyun.com/document_detail/2950002.html)
|
|
13631
13887
|
|
|
13632
13888
|
@param request: DescribeAnalyticdbByPrimaryDBInstanceRequest
|
|
13633
13889
|
@param runtime: runtime options for this request RuntimeOptions
|
|
@@ -13674,7 +13930,7 @@ class Client(OpenApiClient):
|
|
|
13674
13930
|
@description ### [](#)Supported database engines
|
|
13675
13931
|
MySQL
|
|
13676
13932
|
### [](#)References
|
|
13677
|
-
[Create and view an analytic instance](https://help.aliyun.com/document_detail/
|
|
13933
|
+
[Create and view an analytic instance](https://help.aliyun.com/document_detail/2950002.html)
|
|
13678
13934
|
|
|
13679
13935
|
@param request: DescribeAnalyticdbByPrimaryDBInstanceRequest
|
|
13680
13936
|
@return: DescribeAnalyticdbByPrimaryDBInstanceResponse
|
|
@@ -13692,7 +13948,7 @@ class Client(OpenApiClient):
|
|
|
13692
13948
|
@description ### [](#)Supported database engines
|
|
13693
13949
|
MySQL
|
|
13694
13950
|
### [](#)References
|
|
13695
|
-
[Create and view an analytic instance](https://help.aliyun.com/document_detail/
|
|
13951
|
+
[Create and view an analytic instance](https://help.aliyun.com/document_detail/2950002.html)
|
|
13696
13952
|
|
|
13697
13953
|
@param request: DescribeAnalyticdbByPrimaryDBInstanceRequest
|
|
13698
13954
|
@return: DescribeAnalyticdbByPrimaryDBInstanceResponse
|
|
@@ -15876,51 +16132,44 @@ class Client(OpenApiClient):
|
|
|
15876
16132
|
runtime = util_models.RuntimeOptions()
|
|
15877
16133
|
return await self.describe_collation_time_zones_with_options_async(request, runtime)
|
|
15878
16134
|
|
|
15879
|
-
def
|
|
16135
|
+
def describe_compute_burst_config_with_options(
|
|
15880
16136
|
self,
|
|
15881
|
-
request: rds_20140815_models.
|
|
16137
|
+
request: rds_20140815_models.DescribeComputeBurstConfigRequest,
|
|
15882
16138
|
runtime: util_models.RuntimeOptions,
|
|
15883
|
-
) -> rds_20140815_models.
|
|
16139
|
+
) -> rds_20140815_models.DescribeComputeBurstConfigResponse:
|
|
15884
16140
|
"""
|
|
15885
|
-
@summary Queries the
|
|
16141
|
+
@summary Queries the settings of assured serverless.
|
|
15886
16142
|
|
|
15887
|
-
@description
|
|
15888
|
-
|
|
15889
|
-
|
|
15890
|
-
|
|
15891
|
-
PostgreSQL. For more information, see [Enable cross-region backups for an ApsaraDB RDS for PostgreSQL instance](https://help.aliyun.com/document_detail/206671.html).
|
|
16143
|
+
@description ### [](#)Supported database engine
|
|
16144
|
+
RDS PostgreSQL
|
|
16145
|
+
### [](#)References
|
|
16146
|
+
[Assured serverless](https://help.aliyun.com/document_detail/2928780.html)
|
|
15892
16147
|
|
|
15893
|
-
@param request:
|
|
16148
|
+
@param request: DescribeComputeBurstConfigRequest
|
|
15894
16149
|
@param runtime: runtime options for this request RuntimeOptions
|
|
15895
|
-
@return:
|
|
16150
|
+
@return: DescribeComputeBurstConfigResponse
|
|
15896
16151
|
"""
|
|
15897
16152
|
UtilClient.validate_model(request)
|
|
15898
16153
|
query = {}
|
|
15899
|
-
if not UtilClient.is_unset(request.
|
|
15900
|
-
query['
|
|
15901
|
-
if not UtilClient.is_unset(request.
|
|
15902
|
-
query['
|
|
16154
|
+
if not UtilClient.is_unset(request.client_token):
|
|
16155
|
+
query['ClientToken'] = request.client_token
|
|
16156
|
+
if not UtilClient.is_unset(request.dbinstance_id):
|
|
16157
|
+
query['DBInstanceId'] = request.dbinstance_id
|
|
16158
|
+
if not UtilClient.is_unset(request.owner_account):
|
|
16159
|
+
query['OwnerAccount'] = request.owner_account
|
|
15903
16160
|
if not UtilClient.is_unset(request.owner_id):
|
|
15904
16161
|
query['OwnerId'] = request.owner_id
|
|
15905
|
-
if not UtilClient.is_unset(request.
|
|
15906
|
-
query['
|
|
15907
|
-
if not UtilClient.is_unset(request.page_size):
|
|
15908
|
-
query['PageSize'] = request.page_size
|
|
15909
|
-
if not UtilClient.is_unset(request.pattern):
|
|
15910
|
-
query['Pattern'] = request.pattern
|
|
15911
|
-
if not UtilClient.is_unset(request.region):
|
|
15912
|
-
query['Region'] = request.region
|
|
16162
|
+
if not UtilClient.is_unset(request.region_id):
|
|
16163
|
+
query['RegionId'] = request.region_id
|
|
15913
16164
|
if not UtilClient.is_unset(request.resource_group_id):
|
|
15914
16165
|
query['ResourceGroupId'] = request.resource_group_id
|
|
15915
16166
|
if not UtilClient.is_unset(request.resource_owner_account):
|
|
15916
16167
|
query['ResourceOwnerAccount'] = request.resource_owner_account
|
|
15917
|
-
if not UtilClient.is_unset(request.resource_owner_id):
|
|
15918
|
-
query['ResourceOwnerId'] = request.resource_owner_id
|
|
15919
16168
|
req = open_api_models.OpenApiRequest(
|
|
15920
16169
|
query=OpenApiUtilClient.query(query)
|
|
15921
16170
|
)
|
|
15922
16171
|
params = open_api_models.Params(
|
|
15923
|
-
action='
|
|
16172
|
+
action='DescribeComputeBurstConfig',
|
|
15924
16173
|
version='2014-08-15',
|
|
15925
16174
|
protocol='HTTPS',
|
|
15926
16175
|
pathname='/',
|
|
@@ -15931,11 +16180,158 @@ class Client(OpenApiClient):
|
|
|
15931
16180
|
body_type='json'
|
|
15932
16181
|
)
|
|
15933
16182
|
return TeaCore.from_map(
|
|
15934
|
-
rds_20140815_models.
|
|
16183
|
+
rds_20140815_models.DescribeComputeBurstConfigResponse(),
|
|
15935
16184
|
self.call_api(params, req, runtime)
|
|
15936
16185
|
)
|
|
15937
16186
|
|
|
15938
|
-
async def
|
|
16187
|
+
async def describe_compute_burst_config_with_options_async(
|
|
16188
|
+
self,
|
|
16189
|
+
request: rds_20140815_models.DescribeComputeBurstConfigRequest,
|
|
16190
|
+
runtime: util_models.RuntimeOptions,
|
|
16191
|
+
) -> rds_20140815_models.DescribeComputeBurstConfigResponse:
|
|
16192
|
+
"""
|
|
16193
|
+
@summary Queries the settings of assured serverless.
|
|
16194
|
+
|
|
16195
|
+
@description ### [](#)Supported database engine
|
|
16196
|
+
RDS PostgreSQL
|
|
16197
|
+
### [](#)References
|
|
16198
|
+
[Assured serverless](https://help.aliyun.com/document_detail/2928780.html)
|
|
16199
|
+
|
|
16200
|
+
@param request: DescribeComputeBurstConfigRequest
|
|
16201
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
16202
|
+
@return: DescribeComputeBurstConfigResponse
|
|
16203
|
+
"""
|
|
16204
|
+
UtilClient.validate_model(request)
|
|
16205
|
+
query = {}
|
|
16206
|
+
if not UtilClient.is_unset(request.client_token):
|
|
16207
|
+
query['ClientToken'] = request.client_token
|
|
16208
|
+
if not UtilClient.is_unset(request.dbinstance_id):
|
|
16209
|
+
query['DBInstanceId'] = request.dbinstance_id
|
|
16210
|
+
if not UtilClient.is_unset(request.owner_account):
|
|
16211
|
+
query['OwnerAccount'] = request.owner_account
|
|
16212
|
+
if not UtilClient.is_unset(request.owner_id):
|
|
16213
|
+
query['OwnerId'] = request.owner_id
|
|
16214
|
+
if not UtilClient.is_unset(request.region_id):
|
|
16215
|
+
query['RegionId'] = request.region_id
|
|
16216
|
+
if not UtilClient.is_unset(request.resource_group_id):
|
|
16217
|
+
query['ResourceGroupId'] = request.resource_group_id
|
|
16218
|
+
if not UtilClient.is_unset(request.resource_owner_account):
|
|
16219
|
+
query['ResourceOwnerAccount'] = request.resource_owner_account
|
|
16220
|
+
req = open_api_models.OpenApiRequest(
|
|
16221
|
+
query=OpenApiUtilClient.query(query)
|
|
16222
|
+
)
|
|
16223
|
+
params = open_api_models.Params(
|
|
16224
|
+
action='DescribeComputeBurstConfig',
|
|
16225
|
+
version='2014-08-15',
|
|
16226
|
+
protocol='HTTPS',
|
|
16227
|
+
pathname='/',
|
|
16228
|
+
method='POST',
|
|
16229
|
+
auth_type='AK',
|
|
16230
|
+
style='RPC',
|
|
16231
|
+
req_body_type='formData',
|
|
16232
|
+
body_type='json'
|
|
16233
|
+
)
|
|
16234
|
+
return TeaCore.from_map(
|
|
16235
|
+
rds_20140815_models.DescribeComputeBurstConfigResponse(),
|
|
16236
|
+
await self.call_api_async(params, req, runtime)
|
|
16237
|
+
)
|
|
16238
|
+
|
|
16239
|
+
def describe_compute_burst_config(
|
|
16240
|
+
self,
|
|
16241
|
+
request: rds_20140815_models.DescribeComputeBurstConfigRequest,
|
|
16242
|
+
) -> rds_20140815_models.DescribeComputeBurstConfigResponse:
|
|
16243
|
+
"""
|
|
16244
|
+
@summary Queries the settings of assured serverless.
|
|
16245
|
+
|
|
16246
|
+
@description ### [](#)Supported database engine
|
|
16247
|
+
RDS PostgreSQL
|
|
16248
|
+
### [](#)References
|
|
16249
|
+
[Assured serverless](https://help.aliyun.com/document_detail/2928780.html)
|
|
16250
|
+
|
|
16251
|
+
@param request: DescribeComputeBurstConfigRequest
|
|
16252
|
+
@return: DescribeComputeBurstConfigResponse
|
|
16253
|
+
"""
|
|
16254
|
+
runtime = util_models.RuntimeOptions()
|
|
16255
|
+
return self.describe_compute_burst_config_with_options(request, runtime)
|
|
16256
|
+
|
|
16257
|
+
async def describe_compute_burst_config_async(
|
|
16258
|
+
self,
|
|
16259
|
+
request: rds_20140815_models.DescribeComputeBurstConfigRequest,
|
|
16260
|
+
) -> rds_20140815_models.DescribeComputeBurstConfigResponse:
|
|
16261
|
+
"""
|
|
16262
|
+
@summary Queries the settings of assured serverless.
|
|
16263
|
+
|
|
16264
|
+
@description ### [](#)Supported database engine
|
|
16265
|
+
RDS PostgreSQL
|
|
16266
|
+
### [](#)References
|
|
16267
|
+
[Assured serverless](https://help.aliyun.com/document_detail/2928780.html)
|
|
16268
|
+
|
|
16269
|
+
@param request: DescribeComputeBurstConfigRequest
|
|
16270
|
+
@return: DescribeComputeBurstConfigResponse
|
|
16271
|
+
"""
|
|
16272
|
+
runtime = util_models.RuntimeOptions()
|
|
16273
|
+
return await self.describe_compute_burst_config_with_options_async(request, runtime)
|
|
16274
|
+
|
|
16275
|
+
def describe_cross_backup_meta_list_with_options(
|
|
16276
|
+
self,
|
|
16277
|
+
request: rds_20140815_models.DescribeCrossBackupMetaListRequest,
|
|
16278
|
+
runtime: util_models.RuntimeOptions,
|
|
16279
|
+
) -> rds_20140815_models.DescribeCrossBackupMetaListResponse:
|
|
16280
|
+
"""
|
|
16281
|
+
@summary Queries the databases and tables whose data is included in a cross-region backup file of an instance.
|
|
16282
|
+
|
|
16283
|
+
@description ApsaraDB RDS for MySQL instances support cross-region backup and restoration. For more information, see [Back up an ApsaraDB RDS for MySQL instance across regions](https://help.aliyun.com/document_detail/120824.html) and [Restore the data of an ApsaraDB RDS for MySQL instance across regions](https://help.aliyun.com/document_detail/120875.html).
|
|
16284
|
+
Before you call this operation, make sure that the instance runs one of the following database engines:
|
|
16285
|
+
MySQL. For more information, see [Back up an ApsaraDB RDS for MySQL instance across regions](https://help.aliyun.com/document_detail/120824.html).
|
|
16286
|
+
SQL Server. For more information, see [Back up an ApsaraDB RDS for SQL Server instance across regions](https://help.aliyun.com/document_detail/187923.html).
|
|
16287
|
+
PostgreSQL. For more information, see [Enable cross-region backups for an ApsaraDB RDS for PostgreSQL instance](https://help.aliyun.com/document_detail/206671.html).
|
|
16288
|
+
|
|
16289
|
+
@param request: DescribeCrossBackupMetaListRequest
|
|
16290
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
16291
|
+
@return: DescribeCrossBackupMetaListResponse
|
|
16292
|
+
"""
|
|
16293
|
+
UtilClient.validate_model(request)
|
|
16294
|
+
query = {}
|
|
16295
|
+
if not UtilClient.is_unset(request.backup_set_id):
|
|
16296
|
+
query['BackupSetId'] = request.backup_set_id
|
|
16297
|
+
if not UtilClient.is_unset(request.get_db_name):
|
|
16298
|
+
query['GetDbName'] = request.get_db_name
|
|
16299
|
+
if not UtilClient.is_unset(request.owner_id):
|
|
16300
|
+
query['OwnerId'] = request.owner_id
|
|
16301
|
+
if not UtilClient.is_unset(request.page_index):
|
|
16302
|
+
query['PageIndex'] = request.page_index
|
|
16303
|
+
if not UtilClient.is_unset(request.page_size):
|
|
16304
|
+
query['PageSize'] = request.page_size
|
|
16305
|
+
if not UtilClient.is_unset(request.pattern):
|
|
16306
|
+
query['Pattern'] = request.pattern
|
|
16307
|
+
if not UtilClient.is_unset(request.region):
|
|
16308
|
+
query['Region'] = request.region
|
|
16309
|
+
if not UtilClient.is_unset(request.resource_group_id):
|
|
16310
|
+
query['ResourceGroupId'] = request.resource_group_id
|
|
16311
|
+
if not UtilClient.is_unset(request.resource_owner_account):
|
|
16312
|
+
query['ResourceOwnerAccount'] = request.resource_owner_account
|
|
16313
|
+
if not UtilClient.is_unset(request.resource_owner_id):
|
|
16314
|
+
query['ResourceOwnerId'] = request.resource_owner_id
|
|
16315
|
+
req = open_api_models.OpenApiRequest(
|
|
16316
|
+
query=OpenApiUtilClient.query(query)
|
|
16317
|
+
)
|
|
16318
|
+
params = open_api_models.Params(
|
|
16319
|
+
action='DescribeCrossBackupMetaList',
|
|
16320
|
+
version='2014-08-15',
|
|
16321
|
+
protocol='HTTPS',
|
|
16322
|
+
pathname='/',
|
|
16323
|
+
method='POST',
|
|
16324
|
+
auth_type='AK',
|
|
16325
|
+
style='RPC',
|
|
16326
|
+
req_body_type='formData',
|
|
16327
|
+
body_type='json'
|
|
16328
|
+
)
|
|
16329
|
+
return TeaCore.from_map(
|
|
16330
|
+
rds_20140815_models.DescribeCrossBackupMetaListResponse(),
|
|
16331
|
+
self.call_api(params, req, runtime)
|
|
16332
|
+
)
|
|
16333
|
+
|
|
16334
|
+
async def describe_cross_backup_meta_list_with_options_async(
|
|
15939
16335
|
self,
|
|
15940
16336
|
request: rds_20140815_models.DescribeCrossBackupMetaListRequest,
|
|
15941
16337
|
runtime: util_models.RuntimeOptions,
|
|
@@ -19096,6 +19492,10 @@ class Client(OpenApiClient):
|
|
|
19096
19492
|
RDS MySQL
|
|
19097
19493
|
RDS PostgreSQL
|
|
19098
19494
|
RDS SQL Server
|
|
19495
|
+
### [](#)References
|
|
19496
|
+
[Use the SSL encryption feature for an ApsaraDB RDS for MySQL instance](https://help.aliyun.com/document_detail/96120.html)
|
|
19497
|
+
[Use the SSL encryption feature for an ApsaraDB RDS for PostgreSQL instance](https://help.aliyun.com/document_detail/229518.html)
|
|
19498
|
+
[Use the SSL encryption feature for an ApsaraDB RDS for SQL Server instance](https://help.aliyun.com/document_detail/95715.html)
|
|
19099
19499
|
|
|
19100
19500
|
@param request: DescribeDBInstanceSSLRequest
|
|
19101
19501
|
@param runtime: runtime options for this request RuntimeOptions
|
|
@@ -19144,6 +19544,10 @@ class Client(OpenApiClient):
|
|
|
19144
19544
|
RDS MySQL
|
|
19145
19545
|
RDS PostgreSQL
|
|
19146
19546
|
RDS SQL Server
|
|
19547
|
+
### [](#)References
|
|
19548
|
+
[Use the SSL encryption feature for an ApsaraDB RDS for MySQL instance](https://help.aliyun.com/document_detail/96120.html)
|
|
19549
|
+
[Use the SSL encryption feature for an ApsaraDB RDS for PostgreSQL instance](https://help.aliyun.com/document_detail/229518.html)
|
|
19550
|
+
[Use the SSL encryption feature for an ApsaraDB RDS for SQL Server instance](https://help.aliyun.com/document_detail/95715.html)
|
|
19147
19551
|
|
|
19148
19552
|
@param request: DescribeDBInstanceSSLRequest
|
|
19149
19553
|
@param runtime: runtime options for this request RuntimeOptions
|
|
@@ -19191,6 +19595,10 @@ class Client(OpenApiClient):
|
|
|
19191
19595
|
RDS MySQL
|
|
19192
19596
|
RDS PostgreSQL
|
|
19193
19597
|
RDS SQL Server
|
|
19598
|
+
### [](#)References
|
|
19599
|
+
[Use the SSL encryption feature for an ApsaraDB RDS for MySQL instance](https://help.aliyun.com/document_detail/96120.html)
|
|
19600
|
+
[Use the SSL encryption feature for an ApsaraDB RDS for PostgreSQL instance](https://help.aliyun.com/document_detail/229518.html)
|
|
19601
|
+
[Use the SSL encryption feature for an ApsaraDB RDS for SQL Server instance](https://help.aliyun.com/document_detail/95715.html)
|
|
19194
19602
|
|
|
19195
19603
|
@param request: DescribeDBInstanceSSLRequest
|
|
19196
19604
|
@return: DescribeDBInstanceSSLResponse
|
|
@@ -19209,6 +19617,10 @@ class Client(OpenApiClient):
|
|
|
19209
19617
|
RDS MySQL
|
|
19210
19618
|
RDS PostgreSQL
|
|
19211
19619
|
RDS SQL Server
|
|
19620
|
+
### [](#)References
|
|
19621
|
+
[Use the SSL encryption feature for an ApsaraDB RDS for MySQL instance](https://help.aliyun.com/document_detail/96120.html)
|
|
19622
|
+
[Use the SSL encryption feature for an ApsaraDB RDS for PostgreSQL instance](https://help.aliyun.com/document_detail/229518.html)
|
|
19623
|
+
[Use the SSL encryption feature for an ApsaraDB RDS for SQL Server instance](https://help.aliyun.com/document_detail/95715.html)
|
|
19212
19624
|
|
|
19213
19625
|
@param request: DescribeDBInstanceSSLRequest
|
|
19214
19626
|
@return: DescribeDBInstanceSSLResponse
|
|
@@ -19546,6 +19958,8 @@ class Client(OpenApiClient):
|
|
|
19546
19958
|
query['PageSize'] = request.page_size
|
|
19547
19959
|
if not UtilClient.is_unset(request.pay_type):
|
|
19548
19960
|
query['PayType'] = request.pay_type
|
|
19961
|
+
if not UtilClient.is_unset(request.query_auto_renewal):
|
|
19962
|
+
query['QueryAutoRenewal'] = request.query_auto_renewal
|
|
19549
19963
|
if not UtilClient.is_unset(request.region_id):
|
|
19550
19964
|
query['RegionId'] = request.region_id
|
|
19551
19965
|
if not UtilClient.is_unset(request.resource_group_id):
|
|
@@ -19651,6 +20065,8 @@ class Client(OpenApiClient):
|
|
|
19651
20065
|
query['PageSize'] = request.page_size
|
|
19652
20066
|
if not UtilClient.is_unset(request.pay_type):
|
|
19653
20067
|
query['PayType'] = request.pay_type
|
|
20068
|
+
if not UtilClient.is_unset(request.query_auto_renewal):
|
|
20069
|
+
query['QueryAutoRenewal'] = request.query_auto_renewal
|
|
19654
20070
|
if not UtilClient.is_unset(request.region_id):
|
|
19655
20071
|
query['RegionId'] = request.region_id
|
|
19656
20072
|
if not UtilClient.is_unset(request.resource_group_id):
|
|
@@ -26712,6 +27128,302 @@ class Client(OpenApiClient):
|
|
|
26712
27128
|
runtime = util_models.RuntimeOptions()
|
|
26713
27129
|
return await self.describe_quick_sale_config_with_options_async(request, runtime)
|
|
26714
27130
|
|
|
27131
|
+
def describe_rcavailable_resource_with_options(
|
|
27132
|
+
self,
|
|
27133
|
+
request: rds_20140815_models.DescribeRCAvailableResourceRequest,
|
|
27134
|
+
runtime: util_models.RuntimeOptions,
|
|
27135
|
+
) -> rds_20140815_models.DescribeRCAvailableResourceResponse:
|
|
27136
|
+
"""
|
|
27137
|
+
@summary 查询可用区的资源库存
|
|
27138
|
+
|
|
27139
|
+
@param request: DescribeRCAvailableResourceRequest
|
|
27140
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
27141
|
+
@return: DescribeRCAvailableResourceResponse
|
|
27142
|
+
"""
|
|
27143
|
+
UtilClient.validate_model(request)
|
|
27144
|
+
query = {}
|
|
27145
|
+
if not UtilClient.is_unset(request.cores):
|
|
27146
|
+
query['Cores'] = request.cores
|
|
27147
|
+
if not UtilClient.is_unset(request.data_disk_category):
|
|
27148
|
+
query['DataDiskCategory'] = request.data_disk_category
|
|
27149
|
+
if not UtilClient.is_unset(request.dedicated_host_id):
|
|
27150
|
+
query['DedicatedHostId'] = request.dedicated_host_id
|
|
27151
|
+
if not UtilClient.is_unset(request.destination_resource):
|
|
27152
|
+
query['DestinationResource'] = request.destination_resource
|
|
27153
|
+
if not UtilClient.is_unset(request.instance_charge_type):
|
|
27154
|
+
query['InstanceChargeType'] = request.instance_charge_type
|
|
27155
|
+
if not UtilClient.is_unset(request.instance_type):
|
|
27156
|
+
query['InstanceType'] = request.instance_type
|
|
27157
|
+
if not UtilClient.is_unset(request.io_optimized):
|
|
27158
|
+
query['IoOptimized'] = request.io_optimized
|
|
27159
|
+
if not UtilClient.is_unset(request.memory):
|
|
27160
|
+
query['Memory'] = request.memory
|
|
27161
|
+
if not UtilClient.is_unset(request.network_category):
|
|
27162
|
+
query['NetworkCategory'] = request.network_category
|
|
27163
|
+
if not UtilClient.is_unset(request.region_id):
|
|
27164
|
+
query['RegionId'] = request.region_id
|
|
27165
|
+
if not UtilClient.is_unset(request.resource_type):
|
|
27166
|
+
query['ResourceType'] = request.resource_type
|
|
27167
|
+
if not UtilClient.is_unset(request.scope):
|
|
27168
|
+
query['Scope'] = request.scope
|
|
27169
|
+
if not UtilClient.is_unset(request.spot_duration):
|
|
27170
|
+
query['SpotDuration'] = request.spot_duration
|
|
27171
|
+
if not UtilClient.is_unset(request.spot_strategy):
|
|
27172
|
+
query['SpotStrategy'] = request.spot_strategy
|
|
27173
|
+
if not UtilClient.is_unset(request.system_disk_category):
|
|
27174
|
+
query['SystemDiskCategory'] = request.system_disk_category
|
|
27175
|
+
if not UtilClient.is_unset(request.zone_id):
|
|
27176
|
+
query['ZoneId'] = request.zone_id
|
|
27177
|
+
req = open_api_models.OpenApiRequest(
|
|
27178
|
+
query=OpenApiUtilClient.query(query)
|
|
27179
|
+
)
|
|
27180
|
+
params = open_api_models.Params(
|
|
27181
|
+
action='DescribeRCAvailableResource',
|
|
27182
|
+
version='2014-08-15',
|
|
27183
|
+
protocol='HTTPS',
|
|
27184
|
+
pathname='/',
|
|
27185
|
+
method='POST',
|
|
27186
|
+
auth_type='AK',
|
|
27187
|
+
style='RPC',
|
|
27188
|
+
req_body_type='formData',
|
|
27189
|
+
body_type='json'
|
|
27190
|
+
)
|
|
27191
|
+
return TeaCore.from_map(
|
|
27192
|
+
rds_20140815_models.DescribeRCAvailableResourceResponse(),
|
|
27193
|
+
self.call_api(params, req, runtime)
|
|
27194
|
+
)
|
|
27195
|
+
|
|
27196
|
+
async def describe_rcavailable_resource_with_options_async(
|
|
27197
|
+
self,
|
|
27198
|
+
request: rds_20140815_models.DescribeRCAvailableResourceRequest,
|
|
27199
|
+
runtime: util_models.RuntimeOptions,
|
|
27200
|
+
) -> rds_20140815_models.DescribeRCAvailableResourceResponse:
|
|
27201
|
+
"""
|
|
27202
|
+
@summary 查询可用区的资源库存
|
|
27203
|
+
|
|
27204
|
+
@param request: DescribeRCAvailableResourceRequest
|
|
27205
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
27206
|
+
@return: DescribeRCAvailableResourceResponse
|
|
27207
|
+
"""
|
|
27208
|
+
UtilClient.validate_model(request)
|
|
27209
|
+
query = {}
|
|
27210
|
+
if not UtilClient.is_unset(request.cores):
|
|
27211
|
+
query['Cores'] = request.cores
|
|
27212
|
+
if not UtilClient.is_unset(request.data_disk_category):
|
|
27213
|
+
query['DataDiskCategory'] = request.data_disk_category
|
|
27214
|
+
if not UtilClient.is_unset(request.dedicated_host_id):
|
|
27215
|
+
query['DedicatedHostId'] = request.dedicated_host_id
|
|
27216
|
+
if not UtilClient.is_unset(request.destination_resource):
|
|
27217
|
+
query['DestinationResource'] = request.destination_resource
|
|
27218
|
+
if not UtilClient.is_unset(request.instance_charge_type):
|
|
27219
|
+
query['InstanceChargeType'] = request.instance_charge_type
|
|
27220
|
+
if not UtilClient.is_unset(request.instance_type):
|
|
27221
|
+
query['InstanceType'] = request.instance_type
|
|
27222
|
+
if not UtilClient.is_unset(request.io_optimized):
|
|
27223
|
+
query['IoOptimized'] = request.io_optimized
|
|
27224
|
+
if not UtilClient.is_unset(request.memory):
|
|
27225
|
+
query['Memory'] = request.memory
|
|
27226
|
+
if not UtilClient.is_unset(request.network_category):
|
|
27227
|
+
query['NetworkCategory'] = request.network_category
|
|
27228
|
+
if not UtilClient.is_unset(request.region_id):
|
|
27229
|
+
query['RegionId'] = request.region_id
|
|
27230
|
+
if not UtilClient.is_unset(request.resource_type):
|
|
27231
|
+
query['ResourceType'] = request.resource_type
|
|
27232
|
+
if not UtilClient.is_unset(request.scope):
|
|
27233
|
+
query['Scope'] = request.scope
|
|
27234
|
+
if not UtilClient.is_unset(request.spot_duration):
|
|
27235
|
+
query['SpotDuration'] = request.spot_duration
|
|
27236
|
+
if not UtilClient.is_unset(request.spot_strategy):
|
|
27237
|
+
query['SpotStrategy'] = request.spot_strategy
|
|
27238
|
+
if not UtilClient.is_unset(request.system_disk_category):
|
|
27239
|
+
query['SystemDiskCategory'] = request.system_disk_category
|
|
27240
|
+
if not UtilClient.is_unset(request.zone_id):
|
|
27241
|
+
query['ZoneId'] = request.zone_id
|
|
27242
|
+
req = open_api_models.OpenApiRequest(
|
|
27243
|
+
query=OpenApiUtilClient.query(query)
|
|
27244
|
+
)
|
|
27245
|
+
params = open_api_models.Params(
|
|
27246
|
+
action='DescribeRCAvailableResource',
|
|
27247
|
+
version='2014-08-15',
|
|
27248
|
+
protocol='HTTPS',
|
|
27249
|
+
pathname='/',
|
|
27250
|
+
method='POST',
|
|
27251
|
+
auth_type='AK',
|
|
27252
|
+
style='RPC',
|
|
27253
|
+
req_body_type='formData',
|
|
27254
|
+
body_type='json'
|
|
27255
|
+
)
|
|
27256
|
+
return TeaCore.from_map(
|
|
27257
|
+
rds_20140815_models.DescribeRCAvailableResourceResponse(),
|
|
27258
|
+
await self.call_api_async(params, req, runtime)
|
|
27259
|
+
)
|
|
27260
|
+
|
|
27261
|
+
def describe_rcavailable_resource(
|
|
27262
|
+
self,
|
|
27263
|
+
request: rds_20140815_models.DescribeRCAvailableResourceRequest,
|
|
27264
|
+
) -> rds_20140815_models.DescribeRCAvailableResourceResponse:
|
|
27265
|
+
"""
|
|
27266
|
+
@summary 查询可用区的资源库存
|
|
27267
|
+
|
|
27268
|
+
@param request: DescribeRCAvailableResourceRequest
|
|
27269
|
+
@return: DescribeRCAvailableResourceResponse
|
|
27270
|
+
"""
|
|
27271
|
+
runtime = util_models.RuntimeOptions()
|
|
27272
|
+
return self.describe_rcavailable_resource_with_options(request, runtime)
|
|
27273
|
+
|
|
27274
|
+
async def describe_rcavailable_resource_async(
|
|
27275
|
+
self,
|
|
27276
|
+
request: rds_20140815_models.DescribeRCAvailableResourceRequest,
|
|
27277
|
+
) -> rds_20140815_models.DescribeRCAvailableResourceResponse:
|
|
27278
|
+
"""
|
|
27279
|
+
@summary 查询可用区的资源库存
|
|
27280
|
+
|
|
27281
|
+
@param request: DescribeRCAvailableResourceRequest
|
|
27282
|
+
@return: DescribeRCAvailableResourceResponse
|
|
27283
|
+
"""
|
|
27284
|
+
runtime = util_models.RuntimeOptions()
|
|
27285
|
+
return await self.describe_rcavailable_resource_with_options_async(request, runtime)
|
|
27286
|
+
|
|
27287
|
+
def describe_rccloud_assistant_status_with_options(
|
|
27288
|
+
self,
|
|
27289
|
+
tmp_req: rds_20140815_models.DescribeRCCloudAssistantStatusRequest,
|
|
27290
|
+
runtime: util_models.RuntimeOptions,
|
|
27291
|
+
) -> rds_20140815_models.DescribeRCCloudAssistantStatusResponse:
|
|
27292
|
+
"""
|
|
27293
|
+
@summary Queries whether Cloud Assistant Agent is installed on one or more RDS Custom instances. If Cloud Assistant Agent is installed, the system queries the total number of Cloud Assistant commands that have been run, the number of Cloud Assistant commands that are being run, and the time when Cloud Assistant commands were last run.
|
|
27294
|
+
|
|
27295
|
+
@description Before you run commands on or send files to instances, especially new instances, we recommend that you query the status of Cloud Assistant on the instances by calling this operation and checking the return value of `CloudAssistantStatus`. Run commands on or send files to the instances only when the return value is `true`.
|
|
27296
|
+
During a paged query, when you retrieve the first page of results, set `MaxResults` to specify the maximum number of entries to return in the call. The return value of `NextToken` is a pagination token that can be used in the next call to retrieve a new page of results. When you retrieve a new page of results, set `NextToken` to the `NextToken` value returned in the previous call and set `MaxResults` to specify the maximum number of entries to return in this call.
|
|
27297
|
+
|
|
27298
|
+
@param tmp_req: DescribeRCCloudAssistantStatusRequest
|
|
27299
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
27300
|
+
@return: DescribeRCCloudAssistantStatusResponse
|
|
27301
|
+
"""
|
|
27302
|
+
UtilClient.validate_model(tmp_req)
|
|
27303
|
+
request = rds_20140815_models.DescribeRCCloudAssistantStatusShrinkRequest()
|
|
27304
|
+
OpenApiUtilClient.convert(tmp_req, request)
|
|
27305
|
+
if not UtilClient.is_unset(tmp_req.instance_ids):
|
|
27306
|
+
request.instance_ids_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.instance_ids, 'InstanceIds', 'json')
|
|
27307
|
+
query = {}
|
|
27308
|
+
if not UtilClient.is_unset(request.instance_ids_shrink):
|
|
27309
|
+
query['InstanceIds'] = request.instance_ids_shrink
|
|
27310
|
+
if not UtilClient.is_unset(request.max_results):
|
|
27311
|
+
query['MaxResults'] = request.max_results
|
|
27312
|
+
if not UtilClient.is_unset(request.next_token):
|
|
27313
|
+
query['NextToken'] = request.next_token
|
|
27314
|
+
if not UtilClient.is_unset(request.ostype):
|
|
27315
|
+
query['OSType'] = request.ostype
|
|
27316
|
+
if not UtilClient.is_unset(request.page_number):
|
|
27317
|
+
query['PageNumber'] = request.page_number
|
|
27318
|
+
if not UtilClient.is_unset(request.page_size):
|
|
27319
|
+
query['PageSize'] = request.page_size
|
|
27320
|
+
if not UtilClient.is_unset(request.region_id):
|
|
27321
|
+
query['RegionId'] = request.region_id
|
|
27322
|
+
req = open_api_models.OpenApiRequest(
|
|
27323
|
+
query=OpenApiUtilClient.query(query)
|
|
27324
|
+
)
|
|
27325
|
+
params = open_api_models.Params(
|
|
27326
|
+
action='DescribeRCCloudAssistantStatus',
|
|
27327
|
+
version='2014-08-15',
|
|
27328
|
+
protocol='HTTPS',
|
|
27329
|
+
pathname='/',
|
|
27330
|
+
method='POST',
|
|
27331
|
+
auth_type='AK',
|
|
27332
|
+
style='RPC',
|
|
27333
|
+
req_body_type='formData',
|
|
27334
|
+
body_type='json'
|
|
27335
|
+
)
|
|
27336
|
+
return TeaCore.from_map(
|
|
27337
|
+
rds_20140815_models.DescribeRCCloudAssistantStatusResponse(),
|
|
27338
|
+
self.call_api(params, req, runtime)
|
|
27339
|
+
)
|
|
27340
|
+
|
|
27341
|
+
async def describe_rccloud_assistant_status_with_options_async(
|
|
27342
|
+
self,
|
|
27343
|
+
tmp_req: rds_20140815_models.DescribeRCCloudAssistantStatusRequest,
|
|
27344
|
+
runtime: util_models.RuntimeOptions,
|
|
27345
|
+
) -> rds_20140815_models.DescribeRCCloudAssistantStatusResponse:
|
|
27346
|
+
"""
|
|
27347
|
+
@summary Queries whether Cloud Assistant Agent is installed on one or more RDS Custom instances. If Cloud Assistant Agent is installed, the system queries the total number of Cloud Assistant commands that have been run, the number of Cloud Assistant commands that are being run, and the time when Cloud Assistant commands were last run.
|
|
27348
|
+
|
|
27349
|
+
@description Before you run commands on or send files to instances, especially new instances, we recommend that you query the status of Cloud Assistant on the instances by calling this operation and checking the return value of `CloudAssistantStatus`. Run commands on or send files to the instances only when the return value is `true`.
|
|
27350
|
+
During a paged query, when you retrieve the first page of results, set `MaxResults` to specify the maximum number of entries to return in the call. The return value of `NextToken` is a pagination token that can be used in the next call to retrieve a new page of results. When you retrieve a new page of results, set `NextToken` to the `NextToken` value returned in the previous call and set `MaxResults` to specify the maximum number of entries to return in this call.
|
|
27351
|
+
|
|
27352
|
+
@param tmp_req: DescribeRCCloudAssistantStatusRequest
|
|
27353
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
27354
|
+
@return: DescribeRCCloudAssistantStatusResponse
|
|
27355
|
+
"""
|
|
27356
|
+
UtilClient.validate_model(tmp_req)
|
|
27357
|
+
request = rds_20140815_models.DescribeRCCloudAssistantStatusShrinkRequest()
|
|
27358
|
+
OpenApiUtilClient.convert(tmp_req, request)
|
|
27359
|
+
if not UtilClient.is_unset(tmp_req.instance_ids):
|
|
27360
|
+
request.instance_ids_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.instance_ids, 'InstanceIds', 'json')
|
|
27361
|
+
query = {}
|
|
27362
|
+
if not UtilClient.is_unset(request.instance_ids_shrink):
|
|
27363
|
+
query['InstanceIds'] = request.instance_ids_shrink
|
|
27364
|
+
if not UtilClient.is_unset(request.max_results):
|
|
27365
|
+
query['MaxResults'] = request.max_results
|
|
27366
|
+
if not UtilClient.is_unset(request.next_token):
|
|
27367
|
+
query['NextToken'] = request.next_token
|
|
27368
|
+
if not UtilClient.is_unset(request.ostype):
|
|
27369
|
+
query['OSType'] = request.ostype
|
|
27370
|
+
if not UtilClient.is_unset(request.page_number):
|
|
27371
|
+
query['PageNumber'] = request.page_number
|
|
27372
|
+
if not UtilClient.is_unset(request.page_size):
|
|
27373
|
+
query['PageSize'] = request.page_size
|
|
27374
|
+
if not UtilClient.is_unset(request.region_id):
|
|
27375
|
+
query['RegionId'] = request.region_id
|
|
27376
|
+
req = open_api_models.OpenApiRequest(
|
|
27377
|
+
query=OpenApiUtilClient.query(query)
|
|
27378
|
+
)
|
|
27379
|
+
params = open_api_models.Params(
|
|
27380
|
+
action='DescribeRCCloudAssistantStatus',
|
|
27381
|
+
version='2014-08-15',
|
|
27382
|
+
protocol='HTTPS',
|
|
27383
|
+
pathname='/',
|
|
27384
|
+
method='POST',
|
|
27385
|
+
auth_type='AK',
|
|
27386
|
+
style='RPC',
|
|
27387
|
+
req_body_type='formData',
|
|
27388
|
+
body_type='json'
|
|
27389
|
+
)
|
|
27390
|
+
return TeaCore.from_map(
|
|
27391
|
+
rds_20140815_models.DescribeRCCloudAssistantStatusResponse(),
|
|
27392
|
+
await self.call_api_async(params, req, runtime)
|
|
27393
|
+
)
|
|
27394
|
+
|
|
27395
|
+
def describe_rccloud_assistant_status(
|
|
27396
|
+
self,
|
|
27397
|
+
request: rds_20140815_models.DescribeRCCloudAssistantStatusRequest,
|
|
27398
|
+
) -> rds_20140815_models.DescribeRCCloudAssistantStatusResponse:
|
|
27399
|
+
"""
|
|
27400
|
+
@summary Queries whether Cloud Assistant Agent is installed on one or more RDS Custom instances. If Cloud Assistant Agent is installed, the system queries the total number of Cloud Assistant commands that have been run, the number of Cloud Assistant commands that are being run, and the time when Cloud Assistant commands were last run.
|
|
27401
|
+
|
|
27402
|
+
@description Before you run commands on or send files to instances, especially new instances, we recommend that you query the status of Cloud Assistant on the instances by calling this operation and checking the return value of `CloudAssistantStatus`. Run commands on or send files to the instances only when the return value is `true`.
|
|
27403
|
+
During a paged query, when you retrieve the first page of results, set `MaxResults` to specify the maximum number of entries to return in the call. The return value of `NextToken` is a pagination token that can be used in the next call to retrieve a new page of results. When you retrieve a new page of results, set `NextToken` to the `NextToken` value returned in the previous call and set `MaxResults` to specify the maximum number of entries to return in this call.
|
|
27404
|
+
|
|
27405
|
+
@param request: DescribeRCCloudAssistantStatusRequest
|
|
27406
|
+
@return: DescribeRCCloudAssistantStatusResponse
|
|
27407
|
+
"""
|
|
27408
|
+
runtime = util_models.RuntimeOptions()
|
|
27409
|
+
return self.describe_rccloud_assistant_status_with_options(request, runtime)
|
|
27410
|
+
|
|
27411
|
+
async def describe_rccloud_assistant_status_async(
|
|
27412
|
+
self,
|
|
27413
|
+
request: rds_20140815_models.DescribeRCCloudAssistantStatusRequest,
|
|
27414
|
+
) -> rds_20140815_models.DescribeRCCloudAssistantStatusResponse:
|
|
27415
|
+
"""
|
|
27416
|
+
@summary Queries whether Cloud Assistant Agent is installed on one or more RDS Custom instances. If Cloud Assistant Agent is installed, the system queries the total number of Cloud Assistant commands that have been run, the number of Cloud Assistant commands that are being run, and the time when Cloud Assistant commands were last run.
|
|
27417
|
+
|
|
27418
|
+
@description Before you run commands on or send files to instances, especially new instances, we recommend that you query the status of Cloud Assistant on the instances by calling this operation and checking the return value of `CloudAssistantStatus`. Run commands on or send files to the instances only when the return value is `true`.
|
|
27419
|
+
During a paged query, when you retrieve the first page of results, set `MaxResults` to specify the maximum number of entries to return in the call. The return value of `NextToken` is a pagination token that can be used in the next call to retrieve a new page of results. When you retrieve a new page of results, set `NextToken` to the `NextToken` value returned in the previous call and set `MaxResults` to specify the maximum number of entries to return in this call.
|
|
27420
|
+
|
|
27421
|
+
@param request: DescribeRCCloudAssistantStatusRequest
|
|
27422
|
+
@return: DescribeRCCloudAssistantStatusResponse
|
|
27423
|
+
"""
|
|
27424
|
+
runtime = util_models.RuntimeOptions()
|
|
27425
|
+
return await self.describe_rccloud_assistant_status_with_options_async(request, runtime)
|
|
27426
|
+
|
|
26715
27427
|
def describe_rccluster_config_with_options(
|
|
26716
27428
|
self,
|
|
26717
27429
|
request: rds_20140815_models.DescribeRCClusterConfigRequest,
|
|
@@ -27220,6 +27932,118 @@ class Client(OpenApiClient):
|
|
|
27220
27932
|
runtime = util_models.RuntimeOptions()
|
|
27221
27933
|
return await self.describe_rcdisks_with_options_async(request, runtime)
|
|
27222
27934
|
|
|
27935
|
+
def describe_rcelastic_scaling_with_options(
|
|
27936
|
+
self,
|
|
27937
|
+
request: rds_20140815_models.DescribeRCElasticScalingRequest,
|
|
27938
|
+
runtime: util_models.RuntimeOptions,
|
|
27939
|
+
) -> rds_20140815_models.DescribeRCElasticScalingResponse:
|
|
27940
|
+
"""
|
|
27941
|
+
@summary 查询RDS用户专属主机实例
|
|
27942
|
+
|
|
27943
|
+
@param request: DescribeRCElasticScalingRequest
|
|
27944
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
27945
|
+
@return: DescribeRCElasticScalingResponse
|
|
27946
|
+
"""
|
|
27947
|
+
UtilClient.validate_model(request)
|
|
27948
|
+
query = {}
|
|
27949
|
+
if not UtilClient.is_unset(request.instance_charge_type):
|
|
27950
|
+
query['InstanceChargeType'] = request.instance_charge_type
|
|
27951
|
+
if not UtilClient.is_unset(request.instance_id):
|
|
27952
|
+
query['InstanceId'] = request.instance_id
|
|
27953
|
+
if not UtilClient.is_unset(request.instance_type):
|
|
27954
|
+
query['InstanceType'] = request.instance_type
|
|
27955
|
+
if not UtilClient.is_unset(request.region_id):
|
|
27956
|
+
query['RegionId'] = request.region_id
|
|
27957
|
+
if not UtilClient.is_unset(request.support_case):
|
|
27958
|
+
query['SupportCase'] = request.support_case
|
|
27959
|
+
req = open_api_models.OpenApiRequest(
|
|
27960
|
+
query=OpenApiUtilClient.query(query)
|
|
27961
|
+
)
|
|
27962
|
+
params = open_api_models.Params(
|
|
27963
|
+
action='DescribeRCElasticScaling',
|
|
27964
|
+
version='2014-08-15',
|
|
27965
|
+
protocol='HTTPS',
|
|
27966
|
+
pathname='/',
|
|
27967
|
+
method='POST',
|
|
27968
|
+
auth_type='AK',
|
|
27969
|
+
style='RPC',
|
|
27970
|
+
req_body_type='formData',
|
|
27971
|
+
body_type='json'
|
|
27972
|
+
)
|
|
27973
|
+
return TeaCore.from_map(
|
|
27974
|
+
rds_20140815_models.DescribeRCElasticScalingResponse(),
|
|
27975
|
+
self.call_api(params, req, runtime)
|
|
27976
|
+
)
|
|
27977
|
+
|
|
27978
|
+
async def describe_rcelastic_scaling_with_options_async(
|
|
27979
|
+
self,
|
|
27980
|
+
request: rds_20140815_models.DescribeRCElasticScalingRequest,
|
|
27981
|
+
runtime: util_models.RuntimeOptions,
|
|
27982
|
+
) -> rds_20140815_models.DescribeRCElasticScalingResponse:
|
|
27983
|
+
"""
|
|
27984
|
+
@summary 查询RDS用户专属主机实例
|
|
27985
|
+
|
|
27986
|
+
@param request: DescribeRCElasticScalingRequest
|
|
27987
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
27988
|
+
@return: DescribeRCElasticScalingResponse
|
|
27989
|
+
"""
|
|
27990
|
+
UtilClient.validate_model(request)
|
|
27991
|
+
query = {}
|
|
27992
|
+
if not UtilClient.is_unset(request.instance_charge_type):
|
|
27993
|
+
query['InstanceChargeType'] = request.instance_charge_type
|
|
27994
|
+
if not UtilClient.is_unset(request.instance_id):
|
|
27995
|
+
query['InstanceId'] = request.instance_id
|
|
27996
|
+
if not UtilClient.is_unset(request.instance_type):
|
|
27997
|
+
query['InstanceType'] = request.instance_type
|
|
27998
|
+
if not UtilClient.is_unset(request.region_id):
|
|
27999
|
+
query['RegionId'] = request.region_id
|
|
28000
|
+
if not UtilClient.is_unset(request.support_case):
|
|
28001
|
+
query['SupportCase'] = request.support_case
|
|
28002
|
+
req = open_api_models.OpenApiRequest(
|
|
28003
|
+
query=OpenApiUtilClient.query(query)
|
|
28004
|
+
)
|
|
28005
|
+
params = open_api_models.Params(
|
|
28006
|
+
action='DescribeRCElasticScaling',
|
|
28007
|
+
version='2014-08-15',
|
|
28008
|
+
protocol='HTTPS',
|
|
28009
|
+
pathname='/',
|
|
28010
|
+
method='POST',
|
|
28011
|
+
auth_type='AK',
|
|
28012
|
+
style='RPC',
|
|
28013
|
+
req_body_type='formData',
|
|
28014
|
+
body_type='json'
|
|
28015
|
+
)
|
|
28016
|
+
return TeaCore.from_map(
|
|
28017
|
+
rds_20140815_models.DescribeRCElasticScalingResponse(),
|
|
28018
|
+
await self.call_api_async(params, req, runtime)
|
|
28019
|
+
)
|
|
28020
|
+
|
|
28021
|
+
def describe_rcelastic_scaling(
|
|
28022
|
+
self,
|
|
28023
|
+
request: rds_20140815_models.DescribeRCElasticScalingRequest,
|
|
28024
|
+
) -> rds_20140815_models.DescribeRCElasticScalingResponse:
|
|
28025
|
+
"""
|
|
28026
|
+
@summary 查询RDS用户专属主机实例
|
|
28027
|
+
|
|
28028
|
+
@param request: DescribeRCElasticScalingRequest
|
|
28029
|
+
@return: DescribeRCElasticScalingResponse
|
|
28030
|
+
"""
|
|
28031
|
+
runtime = util_models.RuntimeOptions()
|
|
28032
|
+
return self.describe_rcelastic_scaling_with_options(request, runtime)
|
|
28033
|
+
|
|
28034
|
+
async def describe_rcelastic_scaling_async(
|
|
28035
|
+
self,
|
|
28036
|
+
request: rds_20140815_models.DescribeRCElasticScalingRequest,
|
|
28037
|
+
) -> rds_20140815_models.DescribeRCElasticScalingResponse:
|
|
28038
|
+
"""
|
|
28039
|
+
@summary 查询RDS用户专属主机实例
|
|
28040
|
+
|
|
28041
|
+
@param request: DescribeRCElasticScalingRequest
|
|
28042
|
+
@return: DescribeRCElasticScalingResponse
|
|
28043
|
+
"""
|
|
28044
|
+
runtime = util_models.RuntimeOptions()
|
|
28045
|
+
return await self.describe_rcelastic_scaling_with_options_async(request, runtime)
|
|
28046
|
+
|
|
27223
28047
|
def describe_rcimage_list_with_options(
|
|
27224
28048
|
self,
|
|
27225
28049
|
request: rds_20140815_models.DescribeRCImageListRequest,
|
|
@@ -27328,6 +28152,10 @@ class Client(OpenApiClient):
|
|
|
27328
28152
|
query = {}
|
|
27329
28153
|
if not UtilClient.is_unset(request.instance_id):
|
|
27330
28154
|
query['InstanceId'] = request.instance_id
|
|
28155
|
+
if not UtilClient.is_unset(request.instance_name):
|
|
28156
|
+
query['InstanceName'] = request.instance_name
|
|
28157
|
+
if not UtilClient.is_unset(request.max_disks_results):
|
|
28158
|
+
query['MaxDisksResults'] = request.max_disks_results
|
|
27331
28159
|
if not UtilClient.is_unset(request.private_ip_address):
|
|
27332
28160
|
query['PrivateIpAddress'] = request.private_ip_address
|
|
27333
28161
|
if not UtilClient.is_unset(request.region_id):
|
|
@@ -27367,6 +28195,10 @@ class Client(OpenApiClient):
|
|
|
27367
28195
|
query = {}
|
|
27368
28196
|
if not UtilClient.is_unset(request.instance_id):
|
|
27369
28197
|
query['InstanceId'] = request.instance_id
|
|
28198
|
+
if not UtilClient.is_unset(request.instance_name):
|
|
28199
|
+
query['InstanceName'] = request.instance_name
|
|
28200
|
+
if not UtilClient.is_unset(request.max_disks_results):
|
|
28201
|
+
query['MaxDisksResults'] = request.max_disks_results
|
|
27370
28202
|
if not UtilClient.is_unset(request.private_ip_address):
|
|
27371
28203
|
query['PrivateIpAddress'] = request.private_ip_address
|
|
27372
28204
|
if not UtilClient.is_unset(request.region_id):
|
|
@@ -27546,7 +28378,11 @@ class Client(OpenApiClient):
|
|
|
27546
28378
|
runtime: util_models.RuntimeOptions,
|
|
27547
28379
|
) -> rds_20140815_models.DescribeRCInstanceHistoryEventsResponse:
|
|
27548
28380
|
"""
|
|
27549
|
-
@summary
|
|
28381
|
+
@summary Queries the system events of ApsaraDB RDS instances. When you call this operation, you can specify parameters, such as InstanceId and EventType, in the request. By default, non-active system events are queried.
|
|
28382
|
+
|
|
28383
|
+
@description You can query system events that were completed within the last 30 days. No limits apply to the time range for querying uncompleted system events.
|
|
28384
|
+
If you do not specify the EventCycleStatus or InstanceEventCycleStatus parameter, only system events in the Avoidated, Executed, Canceled, or Failed state are included in the query results by default.
|
|
28385
|
+
You can also specify the InstanceEventCycleStatus parameter in the request to query the system events that are in the Scheduled, Executing, or Inquiring state.
|
|
27550
28386
|
|
|
27551
28387
|
@param request: DescribeRCInstanceHistoryEventsRequest
|
|
27552
28388
|
@param runtime: runtime options for this request RuntimeOptions
|
|
@@ -27611,7 +28447,11 @@ class Client(OpenApiClient):
|
|
|
27611
28447
|
runtime: util_models.RuntimeOptions,
|
|
27612
28448
|
) -> rds_20140815_models.DescribeRCInstanceHistoryEventsResponse:
|
|
27613
28449
|
"""
|
|
27614
|
-
@summary
|
|
28450
|
+
@summary Queries the system events of ApsaraDB RDS instances. When you call this operation, you can specify parameters, such as InstanceId and EventType, in the request. By default, non-active system events are queried.
|
|
28451
|
+
|
|
28452
|
+
@description You can query system events that were completed within the last 30 days. No limits apply to the time range for querying uncompleted system events.
|
|
28453
|
+
If you do not specify the EventCycleStatus or InstanceEventCycleStatus parameter, only system events in the Avoidated, Executed, Canceled, or Failed state are included in the query results by default.
|
|
28454
|
+
You can also specify the InstanceEventCycleStatus parameter in the request to query the system events that are in the Scheduled, Executing, or Inquiring state.
|
|
27615
28455
|
|
|
27616
28456
|
@param request: DescribeRCInstanceHistoryEventsRequest
|
|
27617
28457
|
@param runtime: runtime options for this request RuntimeOptions
|
|
@@ -27675,7 +28515,11 @@ class Client(OpenApiClient):
|
|
|
27675
28515
|
request: rds_20140815_models.DescribeRCInstanceHistoryEventsRequest,
|
|
27676
28516
|
) -> rds_20140815_models.DescribeRCInstanceHistoryEventsResponse:
|
|
27677
28517
|
"""
|
|
27678
|
-
@summary
|
|
28518
|
+
@summary Queries the system events of ApsaraDB RDS instances. When you call this operation, you can specify parameters, such as InstanceId and EventType, in the request. By default, non-active system events are queried.
|
|
28519
|
+
|
|
28520
|
+
@description You can query system events that were completed within the last 30 days. No limits apply to the time range for querying uncompleted system events.
|
|
28521
|
+
If you do not specify the EventCycleStatus or InstanceEventCycleStatus parameter, only system events in the Avoidated, Executed, Canceled, or Failed state are included in the query results by default.
|
|
28522
|
+
You can also specify the InstanceEventCycleStatus parameter in the request to query the system events that are in the Scheduled, Executing, or Inquiring state.
|
|
27679
28523
|
|
|
27680
28524
|
@param request: DescribeRCInstanceHistoryEventsRequest
|
|
27681
28525
|
@return: DescribeRCInstanceHistoryEventsResponse
|
|
@@ -27688,7 +28532,11 @@ class Client(OpenApiClient):
|
|
|
27688
28532
|
request: rds_20140815_models.DescribeRCInstanceHistoryEventsRequest,
|
|
27689
28533
|
) -> rds_20140815_models.DescribeRCInstanceHistoryEventsResponse:
|
|
27690
28534
|
"""
|
|
27691
|
-
@summary
|
|
28535
|
+
@summary Queries the system events of ApsaraDB RDS instances. When you call this operation, you can specify parameters, such as InstanceId and EventType, in the request. By default, non-active system events are queried.
|
|
28536
|
+
|
|
28537
|
+
@description You can query system events that were completed within the last 30 days. No limits apply to the time range for querying uncompleted system events.
|
|
28538
|
+
If you do not specify the EventCycleStatus or InstanceEventCycleStatus parameter, only system events in the Avoidated, Executed, Canceled, or Failed state are included in the query results by default.
|
|
28539
|
+
You can also specify the InstanceEventCycleStatus parameter in the request to query the system events that are in the Scheduled, Executing, or Inquiring state.
|
|
27692
28540
|
|
|
27693
28541
|
@param request: DescribeRCInstanceHistoryEventsRequest
|
|
27694
28542
|
@return: DescribeRCInstanceHistoryEventsResponse
|
|
@@ -28190,12 +29038,18 @@ class Client(OpenApiClient):
|
|
|
28190
29038
|
"""
|
|
28191
29039
|
UtilClient.validate_model(request)
|
|
28192
29040
|
query = {}
|
|
29041
|
+
if not UtilClient.is_unset(request.description):
|
|
29042
|
+
query['Description'] = request.description
|
|
28193
29043
|
if not UtilClient.is_unset(request.host_ip):
|
|
28194
29044
|
query['HostIp'] = request.host_ip
|
|
29045
|
+
if not UtilClient.is_unset(request.image_id):
|
|
29046
|
+
query['ImageId'] = request.image_id
|
|
28195
29047
|
if not UtilClient.is_unset(request.instance_id):
|
|
28196
29048
|
query['InstanceId'] = request.instance_id
|
|
28197
29049
|
if not UtilClient.is_unset(request.instance_ids):
|
|
28198
29050
|
query['InstanceIds'] = request.instance_ids
|
|
29051
|
+
if not UtilClient.is_unset(request.instance_name):
|
|
29052
|
+
query['InstanceName'] = request.instance_name
|
|
28199
29053
|
if not UtilClient.is_unset(request.page_number):
|
|
28200
29054
|
query['PageNumber'] = request.page_number
|
|
28201
29055
|
if not UtilClient.is_unset(request.page_size):
|
|
@@ -28243,12 +29097,18 @@ class Client(OpenApiClient):
|
|
|
28243
29097
|
"""
|
|
28244
29098
|
UtilClient.validate_model(request)
|
|
28245
29099
|
query = {}
|
|
29100
|
+
if not UtilClient.is_unset(request.description):
|
|
29101
|
+
query['Description'] = request.description
|
|
28246
29102
|
if not UtilClient.is_unset(request.host_ip):
|
|
28247
29103
|
query['HostIp'] = request.host_ip
|
|
29104
|
+
if not UtilClient.is_unset(request.image_id):
|
|
29105
|
+
query['ImageId'] = request.image_id
|
|
28248
29106
|
if not UtilClient.is_unset(request.instance_id):
|
|
28249
29107
|
query['InstanceId'] = request.instance_id
|
|
28250
29108
|
if not UtilClient.is_unset(request.instance_ids):
|
|
28251
29109
|
query['InstanceIds'] = request.instance_ids
|
|
29110
|
+
if not UtilClient.is_unset(request.instance_name):
|
|
29111
|
+
query['InstanceName'] = request.instance_name
|
|
28252
29112
|
if not UtilClient.is_unset(request.page_number):
|
|
28253
29113
|
query['PageNumber'] = request.page_number
|
|
28254
29114
|
if not UtilClient.is_unset(request.page_size):
|
|
@@ -28308,6 +29168,158 @@ class Client(OpenApiClient):
|
|
|
28308
29168
|
runtime = util_models.RuntimeOptions()
|
|
28309
29169
|
return await self.describe_rcinstances_with_options_async(request, runtime)
|
|
28310
29170
|
|
|
29171
|
+
def describe_rcinvocation_results_with_options(
|
|
29172
|
+
self,
|
|
29173
|
+
tmp_req: rds_20140815_models.DescribeRCInvocationResultsRequest,
|
|
29174
|
+
runtime: util_models.RuntimeOptions,
|
|
29175
|
+
) -> rds_20140815_models.DescribeRCInvocationResultsResponse:
|
|
29176
|
+
"""
|
|
29177
|
+
@summary 查询云助手命令执行结果
|
|
29178
|
+
|
|
29179
|
+
@param tmp_req: DescribeRCInvocationResultsRequest
|
|
29180
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
29181
|
+
@return: DescribeRCInvocationResultsResponse
|
|
29182
|
+
"""
|
|
29183
|
+
UtilClient.validate_model(tmp_req)
|
|
29184
|
+
request = rds_20140815_models.DescribeRCInvocationResultsShrinkRequest()
|
|
29185
|
+
OpenApiUtilClient.convert(tmp_req, request)
|
|
29186
|
+
if not UtilClient.is_unset(tmp_req.tag):
|
|
29187
|
+
request.tag_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.tag, 'Tag', 'json')
|
|
29188
|
+
query = {}
|
|
29189
|
+
if not UtilClient.is_unset(request.command_id):
|
|
29190
|
+
query['CommandId'] = request.command_id
|
|
29191
|
+
if not UtilClient.is_unset(request.content_encoding):
|
|
29192
|
+
query['ContentEncoding'] = request.content_encoding
|
|
29193
|
+
if not UtilClient.is_unset(request.include_history):
|
|
29194
|
+
query['IncludeHistory'] = request.include_history
|
|
29195
|
+
if not UtilClient.is_unset(request.instance_id):
|
|
29196
|
+
query['InstanceId'] = request.instance_id
|
|
29197
|
+
if not UtilClient.is_unset(request.invoke_id):
|
|
29198
|
+
query['InvokeId'] = request.invoke_id
|
|
29199
|
+
if not UtilClient.is_unset(request.invoke_record_status):
|
|
29200
|
+
query['InvokeRecordStatus'] = request.invoke_record_status
|
|
29201
|
+
if not UtilClient.is_unset(request.max_results):
|
|
29202
|
+
query['MaxResults'] = request.max_results
|
|
29203
|
+
if not UtilClient.is_unset(request.next_token):
|
|
29204
|
+
query['NextToken'] = request.next_token
|
|
29205
|
+
if not UtilClient.is_unset(request.page_number):
|
|
29206
|
+
query['PageNumber'] = request.page_number
|
|
29207
|
+
if not UtilClient.is_unset(request.page_size):
|
|
29208
|
+
query['PageSize'] = request.page_size
|
|
29209
|
+
if not UtilClient.is_unset(request.region_id):
|
|
29210
|
+
query['RegionId'] = request.region_id
|
|
29211
|
+
if not UtilClient.is_unset(request.resource_group_id):
|
|
29212
|
+
query['ResourceGroupId'] = request.resource_group_id
|
|
29213
|
+
if not UtilClient.is_unset(request.tag_shrink):
|
|
29214
|
+
query['Tag'] = request.tag_shrink
|
|
29215
|
+
req = open_api_models.OpenApiRequest(
|
|
29216
|
+
query=OpenApiUtilClient.query(query)
|
|
29217
|
+
)
|
|
29218
|
+
params = open_api_models.Params(
|
|
29219
|
+
action='DescribeRCInvocationResults',
|
|
29220
|
+
version='2014-08-15',
|
|
29221
|
+
protocol='HTTPS',
|
|
29222
|
+
pathname='/',
|
|
29223
|
+
method='POST',
|
|
29224
|
+
auth_type='AK',
|
|
29225
|
+
style='RPC',
|
|
29226
|
+
req_body_type='formData',
|
|
29227
|
+
body_type='json'
|
|
29228
|
+
)
|
|
29229
|
+
return TeaCore.from_map(
|
|
29230
|
+
rds_20140815_models.DescribeRCInvocationResultsResponse(),
|
|
29231
|
+
self.call_api(params, req, runtime)
|
|
29232
|
+
)
|
|
29233
|
+
|
|
29234
|
+
async def describe_rcinvocation_results_with_options_async(
|
|
29235
|
+
self,
|
|
29236
|
+
tmp_req: rds_20140815_models.DescribeRCInvocationResultsRequest,
|
|
29237
|
+
runtime: util_models.RuntimeOptions,
|
|
29238
|
+
) -> rds_20140815_models.DescribeRCInvocationResultsResponse:
|
|
29239
|
+
"""
|
|
29240
|
+
@summary 查询云助手命令执行结果
|
|
29241
|
+
|
|
29242
|
+
@param tmp_req: DescribeRCInvocationResultsRequest
|
|
29243
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
29244
|
+
@return: DescribeRCInvocationResultsResponse
|
|
29245
|
+
"""
|
|
29246
|
+
UtilClient.validate_model(tmp_req)
|
|
29247
|
+
request = rds_20140815_models.DescribeRCInvocationResultsShrinkRequest()
|
|
29248
|
+
OpenApiUtilClient.convert(tmp_req, request)
|
|
29249
|
+
if not UtilClient.is_unset(tmp_req.tag):
|
|
29250
|
+
request.tag_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.tag, 'Tag', 'json')
|
|
29251
|
+
query = {}
|
|
29252
|
+
if not UtilClient.is_unset(request.command_id):
|
|
29253
|
+
query['CommandId'] = request.command_id
|
|
29254
|
+
if not UtilClient.is_unset(request.content_encoding):
|
|
29255
|
+
query['ContentEncoding'] = request.content_encoding
|
|
29256
|
+
if not UtilClient.is_unset(request.include_history):
|
|
29257
|
+
query['IncludeHistory'] = request.include_history
|
|
29258
|
+
if not UtilClient.is_unset(request.instance_id):
|
|
29259
|
+
query['InstanceId'] = request.instance_id
|
|
29260
|
+
if not UtilClient.is_unset(request.invoke_id):
|
|
29261
|
+
query['InvokeId'] = request.invoke_id
|
|
29262
|
+
if not UtilClient.is_unset(request.invoke_record_status):
|
|
29263
|
+
query['InvokeRecordStatus'] = request.invoke_record_status
|
|
29264
|
+
if not UtilClient.is_unset(request.max_results):
|
|
29265
|
+
query['MaxResults'] = request.max_results
|
|
29266
|
+
if not UtilClient.is_unset(request.next_token):
|
|
29267
|
+
query['NextToken'] = request.next_token
|
|
29268
|
+
if not UtilClient.is_unset(request.page_number):
|
|
29269
|
+
query['PageNumber'] = request.page_number
|
|
29270
|
+
if not UtilClient.is_unset(request.page_size):
|
|
29271
|
+
query['PageSize'] = request.page_size
|
|
29272
|
+
if not UtilClient.is_unset(request.region_id):
|
|
29273
|
+
query['RegionId'] = request.region_id
|
|
29274
|
+
if not UtilClient.is_unset(request.resource_group_id):
|
|
29275
|
+
query['ResourceGroupId'] = request.resource_group_id
|
|
29276
|
+
if not UtilClient.is_unset(request.tag_shrink):
|
|
29277
|
+
query['Tag'] = request.tag_shrink
|
|
29278
|
+
req = open_api_models.OpenApiRequest(
|
|
29279
|
+
query=OpenApiUtilClient.query(query)
|
|
29280
|
+
)
|
|
29281
|
+
params = open_api_models.Params(
|
|
29282
|
+
action='DescribeRCInvocationResults',
|
|
29283
|
+
version='2014-08-15',
|
|
29284
|
+
protocol='HTTPS',
|
|
29285
|
+
pathname='/',
|
|
29286
|
+
method='POST',
|
|
29287
|
+
auth_type='AK',
|
|
29288
|
+
style='RPC',
|
|
29289
|
+
req_body_type='formData',
|
|
29290
|
+
body_type='json'
|
|
29291
|
+
)
|
|
29292
|
+
return TeaCore.from_map(
|
|
29293
|
+
rds_20140815_models.DescribeRCInvocationResultsResponse(),
|
|
29294
|
+
await self.call_api_async(params, req, runtime)
|
|
29295
|
+
)
|
|
29296
|
+
|
|
29297
|
+
def describe_rcinvocation_results(
|
|
29298
|
+
self,
|
|
29299
|
+
request: rds_20140815_models.DescribeRCInvocationResultsRequest,
|
|
29300
|
+
) -> rds_20140815_models.DescribeRCInvocationResultsResponse:
|
|
29301
|
+
"""
|
|
29302
|
+
@summary 查询云助手命令执行结果
|
|
29303
|
+
|
|
29304
|
+
@param request: DescribeRCInvocationResultsRequest
|
|
29305
|
+
@return: DescribeRCInvocationResultsResponse
|
|
29306
|
+
"""
|
|
29307
|
+
runtime = util_models.RuntimeOptions()
|
|
29308
|
+
return self.describe_rcinvocation_results_with_options(request, runtime)
|
|
29309
|
+
|
|
29310
|
+
async def describe_rcinvocation_results_async(
|
|
29311
|
+
self,
|
|
29312
|
+
request: rds_20140815_models.DescribeRCInvocationResultsRequest,
|
|
29313
|
+
) -> rds_20140815_models.DescribeRCInvocationResultsResponse:
|
|
29314
|
+
"""
|
|
29315
|
+
@summary 查询云助手命令执行结果
|
|
29316
|
+
|
|
29317
|
+
@param request: DescribeRCInvocationResultsRequest
|
|
29318
|
+
@return: DescribeRCInvocationResultsResponse
|
|
29319
|
+
"""
|
|
29320
|
+
runtime = util_models.RuntimeOptions()
|
|
29321
|
+
return await self.describe_rcinvocation_results_with_options_async(request, runtime)
|
|
29322
|
+
|
|
28311
29323
|
def describe_rcmetric_list_with_options(
|
|
28312
29324
|
self,
|
|
28313
29325
|
request: rds_20140815_models.DescribeRCMetricListRequest,
|
|
@@ -28492,31 +29504,47 @@ class Client(OpenApiClient):
|
|
|
28492
29504
|
runtime = util_models.RuntimeOptions()
|
|
28493
29505
|
return await self.describe_rcnode_pool_with_options_async(request, runtime)
|
|
28494
29506
|
|
|
28495
|
-
def
|
|
29507
|
+
def describe_rcresources_modification_with_options(
|
|
28496
29508
|
self,
|
|
28497
|
-
|
|
29509
|
+
tmp_req: rds_20140815_models.DescribeRCResourcesModificationRequest,
|
|
28498
29510
|
runtime: util_models.RuntimeOptions,
|
|
28499
|
-
) -> rds_20140815_models.
|
|
29511
|
+
) -> rds_20140815_models.DescribeRCResourcesModificationResponse:
|
|
28500
29512
|
"""
|
|
28501
|
-
@summary
|
|
29513
|
+
@summary 变更实例规格或系统盘类型之前,查询某一可用区下实例规格或系统盘的库存情况
|
|
28502
29514
|
|
|
28503
|
-
@param
|
|
29515
|
+
@param tmp_req: DescribeRCResourcesModificationRequest
|
|
28504
29516
|
@param runtime: runtime options for this request RuntimeOptions
|
|
28505
|
-
@return:
|
|
29517
|
+
@return: DescribeRCResourcesModificationResponse
|
|
28506
29518
|
"""
|
|
28507
|
-
UtilClient.validate_model(
|
|
28508
|
-
|
|
29519
|
+
UtilClient.validate_model(tmp_req)
|
|
29520
|
+
request = rds_20140815_models.DescribeRCResourcesModificationShrinkRequest()
|
|
29521
|
+
OpenApiUtilClient.convert(tmp_req, request)
|
|
29522
|
+
if not UtilClient.is_unset(tmp_req.conditionss):
|
|
29523
|
+
request.conditionss_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.conditionss, 'Conditionss', 'json')
|
|
29524
|
+
query = {}
|
|
29525
|
+
if not UtilClient.is_unset(request.conditionss_shrink):
|
|
29526
|
+
query['Conditionss'] = request.conditionss_shrink
|
|
29527
|
+
if not UtilClient.is_unset(request.cores):
|
|
29528
|
+
query['Cores'] = request.cores
|
|
29529
|
+
if not UtilClient.is_unset(request.destination_resource):
|
|
29530
|
+
query['DestinationResource'] = request.destination_resource
|
|
29531
|
+
if not UtilClient.is_unset(request.instance_id):
|
|
29532
|
+
query['InstanceId'] = request.instance_id
|
|
29533
|
+
if not UtilClient.is_unset(request.instance_type):
|
|
29534
|
+
query['InstanceType'] = request.instance_type
|
|
29535
|
+
if not UtilClient.is_unset(request.memory):
|
|
29536
|
+
query['Memory'] = request.memory
|
|
29537
|
+
if not UtilClient.is_unset(request.operation_type):
|
|
29538
|
+
query['OperationType'] = request.operation_type
|
|
28509
29539
|
if not UtilClient.is_unset(request.region_id):
|
|
28510
29540
|
query['RegionId'] = request.region_id
|
|
28511
|
-
if not UtilClient.is_unset(request.
|
|
28512
|
-
query['
|
|
28513
|
-
if not UtilClient.is_unset(request.vpc_id):
|
|
28514
|
-
query['VpcId'] = request.vpc_id
|
|
29541
|
+
if not UtilClient.is_unset(request.zone_id):
|
|
29542
|
+
query['ZoneId'] = request.zone_id
|
|
28515
29543
|
req = open_api_models.OpenApiRequest(
|
|
28516
29544
|
query=OpenApiUtilClient.query(query)
|
|
28517
29545
|
)
|
|
28518
29546
|
params = open_api_models.Params(
|
|
28519
|
-
action='
|
|
29547
|
+
action='DescribeRCResourcesModification',
|
|
28520
29548
|
version='2014-08-15',
|
|
28521
29549
|
protocol='HTTPS',
|
|
28522
29550
|
pathname='/',
|
|
@@ -28527,17 +29555,137 @@ class Client(OpenApiClient):
|
|
|
28527
29555
|
body_type='json'
|
|
28528
29556
|
)
|
|
28529
29557
|
return TeaCore.from_map(
|
|
28530
|
-
rds_20140815_models.
|
|
29558
|
+
rds_20140815_models.DescribeRCResourcesModificationResponse(),
|
|
28531
29559
|
self.call_api(params, req, runtime)
|
|
28532
29560
|
)
|
|
28533
29561
|
|
|
28534
|
-
async def
|
|
29562
|
+
async def describe_rcresources_modification_with_options_async(
|
|
29563
|
+
self,
|
|
29564
|
+
tmp_req: rds_20140815_models.DescribeRCResourcesModificationRequest,
|
|
29565
|
+
runtime: util_models.RuntimeOptions,
|
|
29566
|
+
) -> rds_20140815_models.DescribeRCResourcesModificationResponse:
|
|
29567
|
+
"""
|
|
29568
|
+
@summary 变更实例规格或系统盘类型之前,查询某一可用区下实例规格或系统盘的库存情况
|
|
29569
|
+
|
|
29570
|
+
@param tmp_req: DescribeRCResourcesModificationRequest
|
|
29571
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
29572
|
+
@return: DescribeRCResourcesModificationResponse
|
|
29573
|
+
"""
|
|
29574
|
+
UtilClient.validate_model(tmp_req)
|
|
29575
|
+
request = rds_20140815_models.DescribeRCResourcesModificationShrinkRequest()
|
|
29576
|
+
OpenApiUtilClient.convert(tmp_req, request)
|
|
29577
|
+
if not UtilClient.is_unset(tmp_req.conditionss):
|
|
29578
|
+
request.conditionss_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.conditionss, 'Conditionss', 'json')
|
|
29579
|
+
query = {}
|
|
29580
|
+
if not UtilClient.is_unset(request.conditionss_shrink):
|
|
29581
|
+
query['Conditionss'] = request.conditionss_shrink
|
|
29582
|
+
if not UtilClient.is_unset(request.cores):
|
|
29583
|
+
query['Cores'] = request.cores
|
|
29584
|
+
if not UtilClient.is_unset(request.destination_resource):
|
|
29585
|
+
query['DestinationResource'] = request.destination_resource
|
|
29586
|
+
if not UtilClient.is_unset(request.instance_id):
|
|
29587
|
+
query['InstanceId'] = request.instance_id
|
|
29588
|
+
if not UtilClient.is_unset(request.instance_type):
|
|
29589
|
+
query['InstanceType'] = request.instance_type
|
|
29590
|
+
if not UtilClient.is_unset(request.memory):
|
|
29591
|
+
query['Memory'] = request.memory
|
|
29592
|
+
if not UtilClient.is_unset(request.operation_type):
|
|
29593
|
+
query['OperationType'] = request.operation_type
|
|
29594
|
+
if not UtilClient.is_unset(request.region_id):
|
|
29595
|
+
query['RegionId'] = request.region_id
|
|
29596
|
+
if not UtilClient.is_unset(request.zone_id):
|
|
29597
|
+
query['ZoneId'] = request.zone_id
|
|
29598
|
+
req = open_api_models.OpenApiRequest(
|
|
29599
|
+
query=OpenApiUtilClient.query(query)
|
|
29600
|
+
)
|
|
29601
|
+
params = open_api_models.Params(
|
|
29602
|
+
action='DescribeRCResourcesModification',
|
|
29603
|
+
version='2014-08-15',
|
|
29604
|
+
protocol='HTTPS',
|
|
29605
|
+
pathname='/',
|
|
29606
|
+
method='POST',
|
|
29607
|
+
auth_type='AK',
|
|
29608
|
+
style='RPC',
|
|
29609
|
+
req_body_type='formData',
|
|
29610
|
+
body_type='json'
|
|
29611
|
+
)
|
|
29612
|
+
return TeaCore.from_map(
|
|
29613
|
+
rds_20140815_models.DescribeRCResourcesModificationResponse(),
|
|
29614
|
+
await self.call_api_async(params, req, runtime)
|
|
29615
|
+
)
|
|
29616
|
+
|
|
29617
|
+
def describe_rcresources_modification(
|
|
29618
|
+
self,
|
|
29619
|
+
request: rds_20140815_models.DescribeRCResourcesModificationRequest,
|
|
29620
|
+
) -> rds_20140815_models.DescribeRCResourcesModificationResponse:
|
|
29621
|
+
"""
|
|
29622
|
+
@summary 变更实例规格或系统盘类型之前,查询某一可用区下实例规格或系统盘的库存情况
|
|
29623
|
+
|
|
29624
|
+
@param request: DescribeRCResourcesModificationRequest
|
|
29625
|
+
@return: DescribeRCResourcesModificationResponse
|
|
29626
|
+
"""
|
|
29627
|
+
runtime = util_models.RuntimeOptions()
|
|
29628
|
+
return self.describe_rcresources_modification_with_options(request, runtime)
|
|
29629
|
+
|
|
29630
|
+
async def describe_rcresources_modification_async(
|
|
29631
|
+
self,
|
|
29632
|
+
request: rds_20140815_models.DescribeRCResourcesModificationRequest,
|
|
29633
|
+
) -> rds_20140815_models.DescribeRCResourcesModificationResponse:
|
|
29634
|
+
"""
|
|
29635
|
+
@summary 变更实例规格或系统盘类型之前,查询某一可用区下实例规格或系统盘的库存情况
|
|
29636
|
+
|
|
29637
|
+
@param request: DescribeRCResourcesModificationRequest
|
|
29638
|
+
@return: DescribeRCResourcesModificationResponse
|
|
29639
|
+
"""
|
|
29640
|
+
runtime = util_models.RuntimeOptions()
|
|
29641
|
+
return await self.describe_rcresources_modification_with_options_async(request, runtime)
|
|
29642
|
+
|
|
29643
|
+
def describe_rcsecurity_group_list_with_options(
|
|
28535
29644
|
self,
|
|
28536
29645
|
request: rds_20140815_models.DescribeRCSecurityGroupListRequest,
|
|
28537
29646
|
runtime: util_models.RuntimeOptions,
|
|
28538
29647
|
) -> rds_20140815_models.DescribeRCSecurityGroupListResponse:
|
|
28539
29648
|
"""
|
|
28540
|
-
@summary
|
|
29649
|
+
@summary Queries the security groups of RDS Custom instances.
|
|
29650
|
+
|
|
29651
|
+
@param request: DescribeRCSecurityGroupListRequest
|
|
29652
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
29653
|
+
@return: DescribeRCSecurityGroupListResponse
|
|
29654
|
+
"""
|
|
29655
|
+
UtilClient.validate_model(request)
|
|
29656
|
+
query = {}
|
|
29657
|
+
if not UtilClient.is_unset(request.region_id):
|
|
29658
|
+
query['RegionId'] = request.region_id
|
|
29659
|
+
if not UtilClient.is_unset(request.security_group_id):
|
|
29660
|
+
query['SecurityGroupId'] = request.security_group_id
|
|
29661
|
+
if not UtilClient.is_unset(request.vpc_id):
|
|
29662
|
+
query['VpcId'] = request.vpc_id
|
|
29663
|
+
req = open_api_models.OpenApiRequest(
|
|
29664
|
+
query=OpenApiUtilClient.query(query)
|
|
29665
|
+
)
|
|
29666
|
+
params = open_api_models.Params(
|
|
29667
|
+
action='DescribeRCSecurityGroupList',
|
|
29668
|
+
version='2014-08-15',
|
|
29669
|
+
protocol='HTTPS',
|
|
29670
|
+
pathname='/',
|
|
29671
|
+
method='POST',
|
|
29672
|
+
auth_type='AK',
|
|
29673
|
+
style='RPC',
|
|
29674
|
+
req_body_type='formData',
|
|
29675
|
+
body_type='json'
|
|
29676
|
+
)
|
|
29677
|
+
return TeaCore.from_map(
|
|
29678
|
+
rds_20140815_models.DescribeRCSecurityGroupListResponse(),
|
|
29679
|
+
self.call_api(params, req, runtime)
|
|
29680
|
+
)
|
|
29681
|
+
|
|
29682
|
+
async def describe_rcsecurity_group_list_with_options_async(
|
|
29683
|
+
self,
|
|
29684
|
+
request: rds_20140815_models.DescribeRCSecurityGroupListRequest,
|
|
29685
|
+
runtime: util_models.RuntimeOptions,
|
|
29686
|
+
) -> rds_20140815_models.DescribeRCSecurityGroupListResponse:
|
|
29687
|
+
"""
|
|
29688
|
+
@summary Queries the security groups of RDS Custom instances.
|
|
28541
29689
|
|
|
28542
29690
|
@param request: DescribeRCSecurityGroupListRequest
|
|
28543
29691
|
@param runtime: runtime options for this request RuntimeOptions
|
|
@@ -28575,7 +29723,7 @@ class Client(OpenApiClient):
|
|
|
28575
29723
|
request: rds_20140815_models.DescribeRCSecurityGroupListRequest,
|
|
28576
29724
|
) -> rds_20140815_models.DescribeRCSecurityGroupListResponse:
|
|
28577
29725
|
"""
|
|
28578
|
-
@summary
|
|
29726
|
+
@summary Queries the security groups of RDS Custom instances.
|
|
28579
29727
|
|
|
28580
29728
|
@param request: DescribeRCSecurityGroupListRequest
|
|
28581
29729
|
@return: DescribeRCSecurityGroupListResponse
|
|
@@ -28588,7 +29736,7 @@ class Client(OpenApiClient):
|
|
|
28588
29736
|
request: rds_20140815_models.DescribeRCSecurityGroupListRequest,
|
|
28589
29737
|
) -> rds_20140815_models.DescribeRCSecurityGroupListResponse:
|
|
28590
29738
|
"""
|
|
28591
|
-
@summary
|
|
29739
|
+
@summary Queries the security groups of RDS Custom instances.
|
|
28592
29740
|
|
|
28593
29741
|
@param request: DescribeRCSecurityGroupListRequest
|
|
28594
29742
|
@return: DescribeRCSecurityGroupListResponse
|
|
@@ -28720,6 +29868,8 @@ class Client(OpenApiClient):
|
|
|
28720
29868
|
query['RegionId'] = request.region_id
|
|
28721
29869
|
if not UtilClient.is_unset(request.snapshot_ids):
|
|
28722
29870
|
query['SnapshotIds'] = request.snapshot_ids
|
|
29871
|
+
if not UtilClient.is_unset(request.tag):
|
|
29872
|
+
query['Tag'] = request.tag
|
|
28723
29873
|
req = open_api_models.OpenApiRequest(
|
|
28724
29874
|
query=OpenApiUtilClient.query(query)
|
|
28725
29875
|
)
|
|
@@ -28763,6 +29913,8 @@ class Client(OpenApiClient):
|
|
|
28763
29913
|
query['RegionId'] = request.region_id
|
|
28764
29914
|
if not UtilClient.is_unset(request.snapshot_ids):
|
|
28765
29915
|
query['SnapshotIds'] = request.snapshot_ids
|
|
29916
|
+
if not UtilClient.is_unset(request.tag):
|
|
29917
|
+
query['Tag'] = request.tag
|
|
28766
29918
|
req = open_api_models.OpenApiRequest(
|
|
28767
29919
|
query=OpenApiUtilClient.query(query)
|
|
28768
29920
|
)
|
|
@@ -28808,6 +29960,106 @@ class Client(OpenApiClient):
|
|
|
28808
29960
|
runtime = util_models.RuntimeOptions()
|
|
28809
29961
|
return await self.describe_rcsnapshots_with_options_async(request, runtime)
|
|
28810
29962
|
|
|
29963
|
+
def describe_rcvcluster_with_options(
|
|
29964
|
+
self,
|
|
29965
|
+
request: rds_20140815_models.DescribeRCVClusterRequest,
|
|
29966
|
+
runtime: util_models.RuntimeOptions,
|
|
29967
|
+
) -> rds_20140815_models.DescribeRCVClusterResponse:
|
|
29968
|
+
"""
|
|
29969
|
+
@summary 描述vCluster
|
|
29970
|
+
|
|
29971
|
+
@param request: DescribeRCVClusterRequest
|
|
29972
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
29973
|
+
@return: DescribeRCVClusterResponse
|
|
29974
|
+
"""
|
|
29975
|
+
UtilClient.validate_model(request)
|
|
29976
|
+
query = {}
|
|
29977
|
+
if not UtilClient.is_unset(request.cluster_id):
|
|
29978
|
+
query['ClusterId'] = request.cluster_id
|
|
29979
|
+
if not UtilClient.is_unset(request.region_id):
|
|
29980
|
+
query['RegionId'] = request.region_id
|
|
29981
|
+
req = open_api_models.OpenApiRequest(
|
|
29982
|
+
query=OpenApiUtilClient.query(query)
|
|
29983
|
+
)
|
|
29984
|
+
params = open_api_models.Params(
|
|
29985
|
+
action='DescribeRCVCluster',
|
|
29986
|
+
version='2014-08-15',
|
|
29987
|
+
protocol='HTTPS',
|
|
29988
|
+
pathname='/',
|
|
29989
|
+
method='POST',
|
|
29990
|
+
auth_type='AK',
|
|
29991
|
+
style='RPC',
|
|
29992
|
+
req_body_type='formData',
|
|
29993
|
+
body_type='json'
|
|
29994
|
+
)
|
|
29995
|
+
return TeaCore.from_map(
|
|
29996
|
+
rds_20140815_models.DescribeRCVClusterResponse(),
|
|
29997
|
+
self.call_api(params, req, runtime)
|
|
29998
|
+
)
|
|
29999
|
+
|
|
30000
|
+
async def describe_rcvcluster_with_options_async(
|
|
30001
|
+
self,
|
|
30002
|
+
request: rds_20140815_models.DescribeRCVClusterRequest,
|
|
30003
|
+
runtime: util_models.RuntimeOptions,
|
|
30004
|
+
) -> rds_20140815_models.DescribeRCVClusterResponse:
|
|
30005
|
+
"""
|
|
30006
|
+
@summary 描述vCluster
|
|
30007
|
+
|
|
30008
|
+
@param request: DescribeRCVClusterRequest
|
|
30009
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
30010
|
+
@return: DescribeRCVClusterResponse
|
|
30011
|
+
"""
|
|
30012
|
+
UtilClient.validate_model(request)
|
|
30013
|
+
query = {}
|
|
30014
|
+
if not UtilClient.is_unset(request.cluster_id):
|
|
30015
|
+
query['ClusterId'] = request.cluster_id
|
|
30016
|
+
if not UtilClient.is_unset(request.region_id):
|
|
30017
|
+
query['RegionId'] = request.region_id
|
|
30018
|
+
req = open_api_models.OpenApiRequest(
|
|
30019
|
+
query=OpenApiUtilClient.query(query)
|
|
30020
|
+
)
|
|
30021
|
+
params = open_api_models.Params(
|
|
30022
|
+
action='DescribeRCVCluster',
|
|
30023
|
+
version='2014-08-15',
|
|
30024
|
+
protocol='HTTPS',
|
|
30025
|
+
pathname='/',
|
|
30026
|
+
method='POST',
|
|
30027
|
+
auth_type='AK',
|
|
30028
|
+
style='RPC',
|
|
30029
|
+
req_body_type='formData',
|
|
30030
|
+
body_type='json'
|
|
30031
|
+
)
|
|
30032
|
+
return TeaCore.from_map(
|
|
30033
|
+
rds_20140815_models.DescribeRCVClusterResponse(),
|
|
30034
|
+
await self.call_api_async(params, req, runtime)
|
|
30035
|
+
)
|
|
30036
|
+
|
|
30037
|
+
def describe_rcvcluster(
|
|
30038
|
+
self,
|
|
30039
|
+
request: rds_20140815_models.DescribeRCVClusterRequest,
|
|
30040
|
+
) -> rds_20140815_models.DescribeRCVClusterResponse:
|
|
30041
|
+
"""
|
|
30042
|
+
@summary 描述vCluster
|
|
30043
|
+
|
|
30044
|
+
@param request: DescribeRCVClusterRequest
|
|
30045
|
+
@return: DescribeRCVClusterResponse
|
|
30046
|
+
"""
|
|
30047
|
+
runtime = util_models.RuntimeOptions()
|
|
30048
|
+
return self.describe_rcvcluster_with_options(request, runtime)
|
|
30049
|
+
|
|
30050
|
+
async def describe_rcvcluster_async(
|
|
30051
|
+
self,
|
|
30052
|
+
request: rds_20140815_models.DescribeRCVClusterRequest,
|
|
30053
|
+
) -> rds_20140815_models.DescribeRCVClusterResponse:
|
|
30054
|
+
"""
|
|
30055
|
+
@summary 描述vCluster
|
|
30056
|
+
|
|
30057
|
+
@param request: DescribeRCVClusterRequest
|
|
30058
|
+
@return: DescribeRCVClusterResponse
|
|
30059
|
+
"""
|
|
30060
|
+
runtime = util_models.RuntimeOptions()
|
|
30061
|
+
return await self.describe_rcvcluster_with_options_async(request, runtime)
|
|
30062
|
+
|
|
28811
30063
|
def describe_rds_resource_settings_with_options(
|
|
28812
30064
|
self,
|
|
28813
30065
|
request: rds_20140815_models.DescribeRdsResourceSettingsRequest,
|
|
@@ -28816,7 +30068,9 @@ class Client(OpenApiClient):
|
|
|
28816
30068
|
"""
|
|
28817
30069
|
@deprecated OpenAPI DescribeRdsResourceSettings is deprecated
|
|
28818
30070
|
|
|
28819
|
-
@summary This operation is
|
|
30071
|
+
@summary Obtains the notification settings for instance resources. This operation can still be called but is no longer maintained.
|
|
30072
|
+
|
|
30073
|
+
@description This operation can still be called but is no longer maintained.
|
|
28820
30074
|
|
|
28821
30075
|
@param request: DescribeRdsResourceSettingsRequest
|
|
28822
30076
|
@param runtime: runtime options for this request RuntimeOptions
|
|
@@ -28860,7 +30114,9 @@ class Client(OpenApiClient):
|
|
|
28860
30114
|
"""
|
|
28861
30115
|
@deprecated OpenAPI DescribeRdsResourceSettings is deprecated
|
|
28862
30116
|
|
|
28863
|
-
@summary This operation is
|
|
30117
|
+
@summary Obtains the notification settings for instance resources. This operation can still be called but is no longer maintained.
|
|
30118
|
+
|
|
30119
|
+
@description This operation can still be called but is no longer maintained.
|
|
28864
30120
|
|
|
28865
30121
|
@param request: DescribeRdsResourceSettingsRequest
|
|
28866
30122
|
@param runtime: runtime options for this request RuntimeOptions
|
|
@@ -28903,7 +30159,9 @@ class Client(OpenApiClient):
|
|
|
28903
30159
|
"""
|
|
28904
30160
|
@deprecated OpenAPI DescribeRdsResourceSettings is deprecated
|
|
28905
30161
|
|
|
28906
|
-
@summary This operation is
|
|
30162
|
+
@summary Obtains the notification settings for instance resources. This operation can still be called but is no longer maintained.
|
|
30163
|
+
|
|
30164
|
+
@description This operation can still be called but is no longer maintained.
|
|
28907
30165
|
|
|
28908
30166
|
@param request: DescribeRdsResourceSettingsRequest
|
|
28909
30167
|
@return: DescribeRdsResourceSettingsResponse
|
|
@@ -28919,7 +30177,9 @@ class Client(OpenApiClient):
|
|
|
28919
30177
|
"""
|
|
28920
30178
|
@deprecated OpenAPI DescribeRdsResourceSettings is deprecated
|
|
28921
30179
|
|
|
28922
|
-
@summary This operation is
|
|
30180
|
+
@summary Obtains the notification settings for instance resources. This operation can still be called but is no longer maintained.
|
|
30181
|
+
|
|
30182
|
+
@description This operation can still be called but is no longer maintained.
|
|
28923
30183
|
|
|
28924
30184
|
@param request: DescribeRdsResourceSettingsRequest
|
|
28925
30185
|
@return: DescribeRdsResourceSettingsResponse
|
|
@@ -32216,6 +33476,118 @@ class Client(OpenApiClient):
|
|
|
32216
33476
|
runtime = util_models.RuntimeOptions()
|
|
32217
33477
|
return await self.describe_upgrade_major_version_tasks_with_options_async(request, runtime)
|
|
32218
33478
|
|
|
33479
|
+
def describe_vswitch_list_with_options(
|
|
33480
|
+
self,
|
|
33481
|
+
request: rds_20140815_models.DescribeVSwitchListRequest,
|
|
33482
|
+
runtime: util_models.RuntimeOptions,
|
|
33483
|
+
) -> rds_20140815_models.DescribeVSwitchListResponse:
|
|
33484
|
+
"""
|
|
33485
|
+
@summary 查询交换机列表
|
|
33486
|
+
|
|
33487
|
+
@param request: DescribeVSwitchListRequest
|
|
33488
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
33489
|
+
@return: DescribeVSwitchListResponse
|
|
33490
|
+
"""
|
|
33491
|
+
UtilClient.validate_model(request)
|
|
33492
|
+
query = {}
|
|
33493
|
+
if not UtilClient.is_unset(request.page_number):
|
|
33494
|
+
query['PageNumber'] = request.page_number
|
|
33495
|
+
if not UtilClient.is_unset(request.page_size):
|
|
33496
|
+
query['PageSize'] = request.page_size
|
|
33497
|
+
if not UtilClient.is_unset(request.region_id):
|
|
33498
|
+
query['RegionId'] = request.region_id
|
|
33499
|
+
if not UtilClient.is_unset(request.v_switch_ids):
|
|
33500
|
+
query['VSwitchIds'] = request.v_switch_ids
|
|
33501
|
+
if not UtilClient.is_unset(request.vpc_id):
|
|
33502
|
+
query['VpcId'] = request.vpc_id
|
|
33503
|
+
req = open_api_models.OpenApiRequest(
|
|
33504
|
+
query=OpenApiUtilClient.query(query)
|
|
33505
|
+
)
|
|
33506
|
+
params = open_api_models.Params(
|
|
33507
|
+
action='DescribeVSwitchList',
|
|
33508
|
+
version='2014-08-15',
|
|
33509
|
+
protocol='HTTPS',
|
|
33510
|
+
pathname='/',
|
|
33511
|
+
method='POST',
|
|
33512
|
+
auth_type='AK',
|
|
33513
|
+
style='RPC',
|
|
33514
|
+
req_body_type='formData',
|
|
33515
|
+
body_type='json'
|
|
33516
|
+
)
|
|
33517
|
+
return TeaCore.from_map(
|
|
33518
|
+
rds_20140815_models.DescribeVSwitchListResponse(),
|
|
33519
|
+
self.call_api(params, req, runtime)
|
|
33520
|
+
)
|
|
33521
|
+
|
|
33522
|
+
async def describe_vswitch_list_with_options_async(
|
|
33523
|
+
self,
|
|
33524
|
+
request: rds_20140815_models.DescribeVSwitchListRequest,
|
|
33525
|
+
runtime: util_models.RuntimeOptions,
|
|
33526
|
+
) -> rds_20140815_models.DescribeVSwitchListResponse:
|
|
33527
|
+
"""
|
|
33528
|
+
@summary 查询交换机列表
|
|
33529
|
+
|
|
33530
|
+
@param request: DescribeVSwitchListRequest
|
|
33531
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
33532
|
+
@return: DescribeVSwitchListResponse
|
|
33533
|
+
"""
|
|
33534
|
+
UtilClient.validate_model(request)
|
|
33535
|
+
query = {}
|
|
33536
|
+
if not UtilClient.is_unset(request.page_number):
|
|
33537
|
+
query['PageNumber'] = request.page_number
|
|
33538
|
+
if not UtilClient.is_unset(request.page_size):
|
|
33539
|
+
query['PageSize'] = request.page_size
|
|
33540
|
+
if not UtilClient.is_unset(request.region_id):
|
|
33541
|
+
query['RegionId'] = request.region_id
|
|
33542
|
+
if not UtilClient.is_unset(request.v_switch_ids):
|
|
33543
|
+
query['VSwitchIds'] = request.v_switch_ids
|
|
33544
|
+
if not UtilClient.is_unset(request.vpc_id):
|
|
33545
|
+
query['VpcId'] = request.vpc_id
|
|
33546
|
+
req = open_api_models.OpenApiRequest(
|
|
33547
|
+
query=OpenApiUtilClient.query(query)
|
|
33548
|
+
)
|
|
33549
|
+
params = open_api_models.Params(
|
|
33550
|
+
action='DescribeVSwitchList',
|
|
33551
|
+
version='2014-08-15',
|
|
33552
|
+
protocol='HTTPS',
|
|
33553
|
+
pathname='/',
|
|
33554
|
+
method='POST',
|
|
33555
|
+
auth_type='AK',
|
|
33556
|
+
style='RPC',
|
|
33557
|
+
req_body_type='formData',
|
|
33558
|
+
body_type='json'
|
|
33559
|
+
)
|
|
33560
|
+
return TeaCore.from_map(
|
|
33561
|
+
rds_20140815_models.DescribeVSwitchListResponse(),
|
|
33562
|
+
await self.call_api_async(params, req, runtime)
|
|
33563
|
+
)
|
|
33564
|
+
|
|
33565
|
+
def describe_vswitch_list(
|
|
33566
|
+
self,
|
|
33567
|
+
request: rds_20140815_models.DescribeVSwitchListRequest,
|
|
33568
|
+
) -> rds_20140815_models.DescribeVSwitchListResponse:
|
|
33569
|
+
"""
|
|
33570
|
+
@summary 查询交换机列表
|
|
33571
|
+
|
|
33572
|
+
@param request: DescribeVSwitchListRequest
|
|
33573
|
+
@return: DescribeVSwitchListResponse
|
|
33574
|
+
"""
|
|
33575
|
+
runtime = util_models.RuntimeOptions()
|
|
33576
|
+
return self.describe_vswitch_list_with_options(request, runtime)
|
|
33577
|
+
|
|
33578
|
+
async def describe_vswitch_list_async(
|
|
33579
|
+
self,
|
|
33580
|
+
request: rds_20140815_models.DescribeVSwitchListRequest,
|
|
33581
|
+
) -> rds_20140815_models.DescribeVSwitchListResponse:
|
|
33582
|
+
"""
|
|
33583
|
+
@summary 查询交换机列表
|
|
33584
|
+
|
|
33585
|
+
@param request: DescribeVSwitchListRequest
|
|
33586
|
+
@return: DescribeVSwitchListResponse
|
|
33587
|
+
"""
|
|
33588
|
+
runtime = util_models.RuntimeOptions()
|
|
33589
|
+
return await self.describe_vswitch_list_with_options_async(request, runtime)
|
|
33590
|
+
|
|
32219
33591
|
def describe_vswitches_with_options(
|
|
32220
33592
|
self,
|
|
32221
33593
|
request: rds_20140815_models.DescribeVSwitchesRequest,
|
|
@@ -33804,12 +35176,18 @@ class Client(OpenApiClient):
|
|
|
33804
35176
|
query['BackupFile'] = request.backup_file
|
|
33805
35177
|
if not UtilClient.is_unset(request.bucket_region):
|
|
33806
35178
|
query['BucketRegion'] = request.bucket_region
|
|
35179
|
+
if not UtilClient.is_unset(request.build_replication):
|
|
35180
|
+
query['BuildReplication'] = request.build_replication
|
|
33807
35181
|
if not UtilClient.is_unset(request.comment):
|
|
33808
35182
|
query['Comment'] = request.comment
|
|
33809
35183
|
if not UtilClient.is_unset(request.dbinstance_id):
|
|
33810
35184
|
query['DBInstanceId'] = request.dbinstance_id
|
|
33811
35185
|
if not UtilClient.is_unset(request.engine_version):
|
|
33812
35186
|
query['EngineVersion'] = request.engine_version
|
|
35187
|
+
if not UtilClient.is_unset(request.master_info):
|
|
35188
|
+
query['MasterInfo'] = request.master_info
|
|
35189
|
+
if not UtilClient.is_unset(request.mode):
|
|
35190
|
+
query['Mode'] = request.mode
|
|
33813
35191
|
if not UtilClient.is_unset(request.owner_id):
|
|
33814
35192
|
query['OwnerId'] = request.owner_id
|
|
33815
35193
|
if not UtilClient.is_unset(request.region_id):
|
|
@@ -33824,6 +35202,8 @@ class Client(OpenApiClient):
|
|
|
33824
35202
|
query['RestoreSize'] = request.restore_size
|
|
33825
35203
|
if not UtilClient.is_unset(request.retention):
|
|
33826
35204
|
query['Retention'] = request.retention
|
|
35205
|
+
if not UtilClient.is_unset(request.source_info):
|
|
35206
|
+
query['SourceInfo'] = request.source_info
|
|
33827
35207
|
if not UtilClient.is_unset(request.zone_id):
|
|
33828
35208
|
query['ZoneId'] = request.zone_id
|
|
33829
35209
|
req = open_api_models.OpenApiRequest(
|
|
@@ -33873,12 +35253,18 @@ class Client(OpenApiClient):
|
|
|
33873
35253
|
query['BackupFile'] = request.backup_file
|
|
33874
35254
|
if not UtilClient.is_unset(request.bucket_region):
|
|
33875
35255
|
query['BucketRegion'] = request.bucket_region
|
|
35256
|
+
if not UtilClient.is_unset(request.build_replication):
|
|
35257
|
+
query['BuildReplication'] = request.build_replication
|
|
33876
35258
|
if not UtilClient.is_unset(request.comment):
|
|
33877
35259
|
query['Comment'] = request.comment
|
|
33878
35260
|
if not UtilClient.is_unset(request.dbinstance_id):
|
|
33879
35261
|
query['DBInstanceId'] = request.dbinstance_id
|
|
33880
35262
|
if not UtilClient.is_unset(request.engine_version):
|
|
33881
35263
|
query['EngineVersion'] = request.engine_version
|
|
35264
|
+
if not UtilClient.is_unset(request.master_info):
|
|
35265
|
+
query['MasterInfo'] = request.master_info
|
|
35266
|
+
if not UtilClient.is_unset(request.mode):
|
|
35267
|
+
query['Mode'] = request.mode
|
|
33882
35268
|
if not UtilClient.is_unset(request.owner_id):
|
|
33883
35269
|
query['OwnerId'] = request.owner_id
|
|
33884
35270
|
if not UtilClient.is_unset(request.region_id):
|
|
@@ -33893,6 +35279,8 @@ class Client(OpenApiClient):
|
|
|
33893
35279
|
query['RestoreSize'] = request.restore_size
|
|
33894
35280
|
if not UtilClient.is_unset(request.retention):
|
|
33895
35281
|
query['Retention'] = request.retention
|
|
35282
|
+
if not UtilClient.is_unset(request.source_info):
|
|
35283
|
+
query['SourceInfo'] = request.source_info
|
|
33896
35284
|
if not UtilClient.is_unset(request.zone_id):
|
|
33897
35285
|
query['ZoneId'] = request.zone_id
|
|
33898
35286
|
req = open_api_models.OpenApiRequest(
|
|
@@ -33960,6 +35348,114 @@ class Client(OpenApiClient):
|
|
|
33960
35348
|
runtime = util_models.RuntimeOptions()
|
|
33961
35349
|
return await self.import_user_backup_file_with_options_async(request, runtime)
|
|
33962
35350
|
|
|
35351
|
+
def install_rccloud_assistant_with_options(
|
|
35352
|
+
self,
|
|
35353
|
+
tmp_req: rds_20140815_models.InstallRCCloudAssistantRequest,
|
|
35354
|
+
runtime: util_models.RuntimeOptions,
|
|
35355
|
+
) -> rds_20140815_models.InstallRCCloudAssistantResponse:
|
|
35356
|
+
"""
|
|
35357
|
+
@summary 为实例安装云助手Agent
|
|
35358
|
+
|
|
35359
|
+
@param tmp_req: InstallRCCloudAssistantRequest
|
|
35360
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
35361
|
+
@return: InstallRCCloudAssistantResponse
|
|
35362
|
+
"""
|
|
35363
|
+
UtilClient.validate_model(tmp_req)
|
|
35364
|
+
request = rds_20140815_models.InstallRCCloudAssistantShrinkRequest()
|
|
35365
|
+
OpenApiUtilClient.convert(tmp_req, request)
|
|
35366
|
+
if not UtilClient.is_unset(tmp_req.instance_ids):
|
|
35367
|
+
request.instance_ids_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.instance_ids, 'InstanceIds', 'json')
|
|
35368
|
+
query = {}
|
|
35369
|
+
if not UtilClient.is_unset(request.instance_ids_shrink):
|
|
35370
|
+
query['InstanceIds'] = request.instance_ids_shrink
|
|
35371
|
+
if not UtilClient.is_unset(request.region_id):
|
|
35372
|
+
query['RegionId'] = request.region_id
|
|
35373
|
+
req = open_api_models.OpenApiRequest(
|
|
35374
|
+
query=OpenApiUtilClient.query(query)
|
|
35375
|
+
)
|
|
35376
|
+
params = open_api_models.Params(
|
|
35377
|
+
action='InstallRCCloudAssistant',
|
|
35378
|
+
version='2014-08-15',
|
|
35379
|
+
protocol='HTTPS',
|
|
35380
|
+
pathname='/',
|
|
35381
|
+
method='POST',
|
|
35382
|
+
auth_type='AK',
|
|
35383
|
+
style='RPC',
|
|
35384
|
+
req_body_type='formData',
|
|
35385
|
+
body_type='json'
|
|
35386
|
+
)
|
|
35387
|
+
return TeaCore.from_map(
|
|
35388
|
+
rds_20140815_models.InstallRCCloudAssistantResponse(),
|
|
35389
|
+
self.call_api(params, req, runtime)
|
|
35390
|
+
)
|
|
35391
|
+
|
|
35392
|
+
async def install_rccloud_assistant_with_options_async(
|
|
35393
|
+
self,
|
|
35394
|
+
tmp_req: rds_20140815_models.InstallRCCloudAssistantRequest,
|
|
35395
|
+
runtime: util_models.RuntimeOptions,
|
|
35396
|
+
) -> rds_20140815_models.InstallRCCloudAssistantResponse:
|
|
35397
|
+
"""
|
|
35398
|
+
@summary 为实例安装云助手Agent
|
|
35399
|
+
|
|
35400
|
+
@param tmp_req: InstallRCCloudAssistantRequest
|
|
35401
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
35402
|
+
@return: InstallRCCloudAssistantResponse
|
|
35403
|
+
"""
|
|
35404
|
+
UtilClient.validate_model(tmp_req)
|
|
35405
|
+
request = rds_20140815_models.InstallRCCloudAssistantShrinkRequest()
|
|
35406
|
+
OpenApiUtilClient.convert(tmp_req, request)
|
|
35407
|
+
if not UtilClient.is_unset(tmp_req.instance_ids):
|
|
35408
|
+
request.instance_ids_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.instance_ids, 'InstanceIds', 'json')
|
|
35409
|
+
query = {}
|
|
35410
|
+
if not UtilClient.is_unset(request.instance_ids_shrink):
|
|
35411
|
+
query['InstanceIds'] = request.instance_ids_shrink
|
|
35412
|
+
if not UtilClient.is_unset(request.region_id):
|
|
35413
|
+
query['RegionId'] = request.region_id
|
|
35414
|
+
req = open_api_models.OpenApiRequest(
|
|
35415
|
+
query=OpenApiUtilClient.query(query)
|
|
35416
|
+
)
|
|
35417
|
+
params = open_api_models.Params(
|
|
35418
|
+
action='InstallRCCloudAssistant',
|
|
35419
|
+
version='2014-08-15',
|
|
35420
|
+
protocol='HTTPS',
|
|
35421
|
+
pathname='/',
|
|
35422
|
+
method='POST',
|
|
35423
|
+
auth_type='AK',
|
|
35424
|
+
style='RPC',
|
|
35425
|
+
req_body_type='formData',
|
|
35426
|
+
body_type='json'
|
|
35427
|
+
)
|
|
35428
|
+
return TeaCore.from_map(
|
|
35429
|
+
rds_20140815_models.InstallRCCloudAssistantResponse(),
|
|
35430
|
+
await self.call_api_async(params, req, runtime)
|
|
35431
|
+
)
|
|
35432
|
+
|
|
35433
|
+
def install_rccloud_assistant(
|
|
35434
|
+
self,
|
|
35435
|
+
request: rds_20140815_models.InstallRCCloudAssistantRequest,
|
|
35436
|
+
) -> rds_20140815_models.InstallRCCloudAssistantResponse:
|
|
35437
|
+
"""
|
|
35438
|
+
@summary 为实例安装云助手Agent
|
|
35439
|
+
|
|
35440
|
+
@param request: InstallRCCloudAssistantRequest
|
|
35441
|
+
@return: InstallRCCloudAssistantResponse
|
|
35442
|
+
"""
|
|
35443
|
+
runtime = util_models.RuntimeOptions()
|
|
35444
|
+
return self.install_rccloud_assistant_with_options(request, runtime)
|
|
35445
|
+
|
|
35446
|
+
async def install_rccloud_assistant_async(
|
|
35447
|
+
self,
|
|
35448
|
+
request: rds_20140815_models.InstallRCCloudAssistantRequest,
|
|
35449
|
+
) -> rds_20140815_models.InstallRCCloudAssistantResponse:
|
|
35450
|
+
"""
|
|
35451
|
+
@summary 为实例安装云助手Agent
|
|
35452
|
+
|
|
35453
|
+
@param request: InstallRCCloudAssistantRequest
|
|
35454
|
+
@return: InstallRCCloudAssistantResponse
|
|
35455
|
+
"""
|
|
35456
|
+
runtime = util_models.RuntimeOptions()
|
|
35457
|
+
return await self.install_rccloud_assistant_with_options_async(request, runtime)
|
|
35458
|
+
|
|
33963
35459
|
def list_classes_with_options(
|
|
33964
35460
|
self,
|
|
33965
35461
|
request: rds_20140815_models.ListClassesRequest,
|
|
@@ -34112,6 +35608,102 @@ class Client(OpenApiClient):
|
|
|
34112
35608
|
runtime = util_models.RuntimeOptions()
|
|
34113
35609
|
return await self.list_classes_with_options_async(request, runtime)
|
|
34114
35610
|
|
|
35611
|
+
def list_rcvclusters_with_options(
|
|
35612
|
+
self,
|
|
35613
|
+
request: rds_20140815_models.ListRCVClustersRequest,
|
|
35614
|
+
runtime: util_models.RuntimeOptions,
|
|
35615
|
+
) -> rds_20140815_models.ListRCVClustersResponse:
|
|
35616
|
+
"""
|
|
35617
|
+
@summary RCVCluster列表接口
|
|
35618
|
+
|
|
35619
|
+
@param request: ListRCVClustersRequest
|
|
35620
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
35621
|
+
@return: ListRCVClustersResponse
|
|
35622
|
+
"""
|
|
35623
|
+
UtilClient.validate_model(request)
|
|
35624
|
+
query = {}
|
|
35625
|
+
if not UtilClient.is_unset(request.region_id):
|
|
35626
|
+
query['RegionId'] = request.region_id
|
|
35627
|
+
req = open_api_models.OpenApiRequest(
|
|
35628
|
+
query=OpenApiUtilClient.query(query)
|
|
35629
|
+
)
|
|
35630
|
+
params = open_api_models.Params(
|
|
35631
|
+
action='ListRCVClusters',
|
|
35632
|
+
version='2014-08-15',
|
|
35633
|
+
protocol='HTTPS',
|
|
35634
|
+
pathname='/',
|
|
35635
|
+
method='POST',
|
|
35636
|
+
auth_type='AK',
|
|
35637
|
+
style='RPC',
|
|
35638
|
+
req_body_type='formData',
|
|
35639
|
+
body_type='json'
|
|
35640
|
+
)
|
|
35641
|
+
return TeaCore.from_map(
|
|
35642
|
+
rds_20140815_models.ListRCVClustersResponse(),
|
|
35643
|
+
self.call_api(params, req, runtime)
|
|
35644
|
+
)
|
|
35645
|
+
|
|
35646
|
+
async def list_rcvclusters_with_options_async(
|
|
35647
|
+
self,
|
|
35648
|
+
request: rds_20140815_models.ListRCVClustersRequest,
|
|
35649
|
+
runtime: util_models.RuntimeOptions,
|
|
35650
|
+
) -> rds_20140815_models.ListRCVClustersResponse:
|
|
35651
|
+
"""
|
|
35652
|
+
@summary RCVCluster列表接口
|
|
35653
|
+
|
|
35654
|
+
@param request: ListRCVClustersRequest
|
|
35655
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
35656
|
+
@return: ListRCVClustersResponse
|
|
35657
|
+
"""
|
|
35658
|
+
UtilClient.validate_model(request)
|
|
35659
|
+
query = {}
|
|
35660
|
+
if not UtilClient.is_unset(request.region_id):
|
|
35661
|
+
query['RegionId'] = request.region_id
|
|
35662
|
+
req = open_api_models.OpenApiRequest(
|
|
35663
|
+
query=OpenApiUtilClient.query(query)
|
|
35664
|
+
)
|
|
35665
|
+
params = open_api_models.Params(
|
|
35666
|
+
action='ListRCVClusters',
|
|
35667
|
+
version='2014-08-15',
|
|
35668
|
+
protocol='HTTPS',
|
|
35669
|
+
pathname='/',
|
|
35670
|
+
method='POST',
|
|
35671
|
+
auth_type='AK',
|
|
35672
|
+
style='RPC',
|
|
35673
|
+
req_body_type='formData',
|
|
35674
|
+
body_type='json'
|
|
35675
|
+
)
|
|
35676
|
+
return TeaCore.from_map(
|
|
35677
|
+
rds_20140815_models.ListRCVClustersResponse(),
|
|
35678
|
+
await self.call_api_async(params, req, runtime)
|
|
35679
|
+
)
|
|
35680
|
+
|
|
35681
|
+
def list_rcvclusters(
|
|
35682
|
+
self,
|
|
35683
|
+
request: rds_20140815_models.ListRCVClustersRequest,
|
|
35684
|
+
) -> rds_20140815_models.ListRCVClustersResponse:
|
|
35685
|
+
"""
|
|
35686
|
+
@summary RCVCluster列表接口
|
|
35687
|
+
|
|
35688
|
+
@param request: ListRCVClustersRequest
|
|
35689
|
+
@return: ListRCVClustersResponse
|
|
35690
|
+
"""
|
|
35691
|
+
runtime = util_models.RuntimeOptions()
|
|
35692
|
+
return self.list_rcvclusters_with_options(request, runtime)
|
|
35693
|
+
|
|
35694
|
+
async def list_rcvclusters_async(
|
|
35695
|
+
self,
|
|
35696
|
+
request: rds_20140815_models.ListRCVClustersRequest,
|
|
35697
|
+
) -> rds_20140815_models.ListRCVClustersResponse:
|
|
35698
|
+
"""
|
|
35699
|
+
@summary RCVCluster列表接口
|
|
35700
|
+
|
|
35701
|
+
@param request: ListRCVClustersRequest
|
|
35702
|
+
@return: ListRCVClustersResponse
|
|
35703
|
+
"""
|
|
35704
|
+
runtime = util_models.RuntimeOptions()
|
|
35705
|
+
return await self.list_rcvclusters_with_options_async(request, runtime)
|
|
35706
|
+
|
|
34115
35707
|
def list_tag_resources_with_options(
|
|
34116
35708
|
self,
|
|
34117
35709
|
request: rds_20140815_models.ListTagResourcesRequest,
|
|
@@ -35162,6 +36754,8 @@ class Client(OpenApiClient):
|
|
|
35162
36754
|
query = {}
|
|
35163
36755
|
if not UtilClient.is_unset(request.category):
|
|
35164
36756
|
query['Category'] = request.category
|
|
36757
|
+
if not UtilClient.is_unset(request.custom_extra_info):
|
|
36758
|
+
query['CustomExtraInfo'] = request.custom_extra_info
|
|
35165
36759
|
if not UtilClient.is_unset(request.dbinstance_class):
|
|
35166
36760
|
query['DBInstanceClass'] = request.dbinstance_class
|
|
35167
36761
|
if not UtilClient.is_unset(request.dbinstance_id):
|
|
@@ -35241,6 +36835,8 @@ class Client(OpenApiClient):
|
|
|
35241
36835
|
query = {}
|
|
35242
36836
|
if not UtilClient.is_unset(request.category):
|
|
35243
36837
|
query['Category'] = request.category
|
|
36838
|
+
if not UtilClient.is_unset(request.custom_extra_info):
|
|
36839
|
+
query['CustomExtraInfo'] = request.custom_extra_info
|
|
35244
36840
|
if not UtilClient.is_unset(request.dbinstance_class):
|
|
35245
36841
|
query['DBInstanceClass'] = request.dbinstance_class
|
|
35246
36842
|
if not UtilClient.is_unset(request.dbinstance_id):
|
|
@@ -36636,6 +38232,138 @@ class Client(OpenApiClient):
|
|
|
36636
38232
|
runtime = util_models.RuntimeOptions()
|
|
36637
38233
|
return await self.modify_backup_policy_with_options_async(request, runtime)
|
|
36638
38234
|
|
|
38235
|
+
def modify_backup_set_expire_time_with_options(
|
|
38236
|
+
self,
|
|
38237
|
+
request: rds_20140815_models.ModifyBackupSetExpireTimeRequest,
|
|
38238
|
+
runtime: util_models.RuntimeOptions,
|
|
38239
|
+
) -> rds_20140815_models.ModifyBackupSetExpireTimeResponse:
|
|
38240
|
+
"""
|
|
38241
|
+
@summary Extends the expiration time of backup sets generated by manual backup for a single database, including physical backup sets and full backup sets.
|
|
38242
|
+
|
|
38243
|
+
@description ### [](#)Supported database engines
|
|
38244
|
+
RDS SQL Server
|
|
38245
|
+
### [](#)References
|
|
38246
|
+
> Before you call this operation, read the following topics and make sure that you fully understand the prerequisites and impacts of this operation.
|
|
38247
|
+
[Manually back up the data of an RDS for SQL Server instance](https://help.aliyun.com/document_detail/95717.html)
|
|
38248
|
+
|
|
38249
|
+
@param request: ModifyBackupSetExpireTimeRequest
|
|
38250
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
38251
|
+
@return: ModifyBackupSetExpireTimeResponse
|
|
38252
|
+
"""
|
|
38253
|
+
UtilClient.validate_model(request)
|
|
38254
|
+
query = {}
|
|
38255
|
+
if not UtilClient.is_unset(request.backup_id):
|
|
38256
|
+
query['BackupId'] = request.backup_id
|
|
38257
|
+
if not UtilClient.is_unset(request.dbinstance_id):
|
|
38258
|
+
query['DBInstanceId'] = request.dbinstance_id
|
|
38259
|
+
if not UtilClient.is_unset(request.expect_expire_time):
|
|
38260
|
+
query['ExpectExpireTime'] = request.expect_expire_time
|
|
38261
|
+
if not UtilClient.is_unset(request.resource_owner_id):
|
|
38262
|
+
query['ResourceOwnerId'] = request.resource_owner_id
|
|
38263
|
+
req = open_api_models.OpenApiRequest(
|
|
38264
|
+
query=OpenApiUtilClient.query(query)
|
|
38265
|
+
)
|
|
38266
|
+
params = open_api_models.Params(
|
|
38267
|
+
action='ModifyBackupSetExpireTime',
|
|
38268
|
+
version='2014-08-15',
|
|
38269
|
+
protocol='HTTPS',
|
|
38270
|
+
pathname='/',
|
|
38271
|
+
method='POST',
|
|
38272
|
+
auth_type='AK',
|
|
38273
|
+
style='RPC',
|
|
38274
|
+
req_body_type='formData',
|
|
38275
|
+
body_type='json'
|
|
38276
|
+
)
|
|
38277
|
+
return TeaCore.from_map(
|
|
38278
|
+
rds_20140815_models.ModifyBackupSetExpireTimeResponse(),
|
|
38279
|
+
self.call_api(params, req, runtime)
|
|
38280
|
+
)
|
|
38281
|
+
|
|
38282
|
+
async def modify_backup_set_expire_time_with_options_async(
|
|
38283
|
+
self,
|
|
38284
|
+
request: rds_20140815_models.ModifyBackupSetExpireTimeRequest,
|
|
38285
|
+
runtime: util_models.RuntimeOptions,
|
|
38286
|
+
) -> rds_20140815_models.ModifyBackupSetExpireTimeResponse:
|
|
38287
|
+
"""
|
|
38288
|
+
@summary Extends the expiration time of backup sets generated by manual backup for a single database, including physical backup sets and full backup sets.
|
|
38289
|
+
|
|
38290
|
+
@description ### [](#)Supported database engines
|
|
38291
|
+
RDS SQL Server
|
|
38292
|
+
### [](#)References
|
|
38293
|
+
> Before you call this operation, read the following topics and make sure that you fully understand the prerequisites and impacts of this operation.
|
|
38294
|
+
[Manually back up the data of an RDS for SQL Server instance](https://help.aliyun.com/document_detail/95717.html)
|
|
38295
|
+
|
|
38296
|
+
@param request: ModifyBackupSetExpireTimeRequest
|
|
38297
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
38298
|
+
@return: ModifyBackupSetExpireTimeResponse
|
|
38299
|
+
"""
|
|
38300
|
+
UtilClient.validate_model(request)
|
|
38301
|
+
query = {}
|
|
38302
|
+
if not UtilClient.is_unset(request.backup_id):
|
|
38303
|
+
query['BackupId'] = request.backup_id
|
|
38304
|
+
if not UtilClient.is_unset(request.dbinstance_id):
|
|
38305
|
+
query['DBInstanceId'] = request.dbinstance_id
|
|
38306
|
+
if not UtilClient.is_unset(request.expect_expire_time):
|
|
38307
|
+
query['ExpectExpireTime'] = request.expect_expire_time
|
|
38308
|
+
if not UtilClient.is_unset(request.resource_owner_id):
|
|
38309
|
+
query['ResourceOwnerId'] = request.resource_owner_id
|
|
38310
|
+
req = open_api_models.OpenApiRequest(
|
|
38311
|
+
query=OpenApiUtilClient.query(query)
|
|
38312
|
+
)
|
|
38313
|
+
params = open_api_models.Params(
|
|
38314
|
+
action='ModifyBackupSetExpireTime',
|
|
38315
|
+
version='2014-08-15',
|
|
38316
|
+
protocol='HTTPS',
|
|
38317
|
+
pathname='/',
|
|
38318
|
+
method='POST',
|
|
38319
|
+
auth_type='AK',
|
|
38320
|
+
style='RPC',
|
|
38321
|
+
req_body_type='formData',
|
|
38322
|
+
body_type='json'
|
|
38323
|
+
)
|
|
38324
|
+
return TeaCore.from_map(
|
|
38325
|
+
rds_20140815_models.ModifyBackupSetExpireTimeResponse(),
|
|
38326
|
+
await self.call_api_async(params, req, runtime)
|
|
38327
|
+
)
|
|
38328
|
+
|
|
38329
|
+
def modify_backup_set_expire_time(
|
|
38330
|
+
self,
|
|
38331
|
+
request: rds_20140815_models.ModifyBackupSetExpireTimeRequest,
|
|
38332
|
+
) -> rds_20140815_models.ModifyBackupSetExpireTimeResponse:
|
|
38333
|
+
"""
|
|
38334
|
+
@summary Extends the expiration time of backup sets generated by manual backup for a single database, including physical backup sets and full backup sets.
|
|
38335
|
+
|
|
38336
|
+
@description ### [](#)Supported database engines
|
|
38337
|
+
RDS SQL Server
|
|
38338
|
+
### [](#)References
|
|
38339
|
+
> Before you call this operation, read the following topics and make sure that you fully understand the prerequisites and impacts of this operation.
|
|
38340
|
+
[Manually back up the data of an RDS for SQL Server instance](https://help.aliyun.com/document_detail/95717.html)
|
|
38341
|
+
|
|
38342
|
+
@param request: ModifyBackupSetExpireTimeRequest
|
|
38343
|
+
@return: ModifyBackupSetExpireTimeResponse
|
|
38344
|
+
"""
|
|
38345
|
+
runtime = util_models.RuntimeOptions()
|
|
38346
|
+
return self.modify_backup_set_expire_time_with_options(request, runtime)
|
|
38347
|
+
|
|
38348
|
+
async def modify_backup_set_expire_time_async(
|
|
38349
|
+
self,
|
|
38350
|
+
request: rds_20140815_models.ModifyBackupSetExpireTimeRequest,
|
|
38351
|
+
) -> rds_20140815_models.ModifyBackupSetExpireTimeResponse:
|
|
38352
|
+
"""
|
|
38353
|
+
@summary Extends the expiration time of backup sets generated by manual backup for a single database, including physical backup sets and full backup sets.
|
|
38354
|
+
|
|
38355
|
+
@description ### [](#)Supported database engines
|
|
38356
|
+
RDS SQL Server
|
|
38357
|
+
### [](#)References
|
|
38358
|
+
> Before you call this operation, read the following topics and make sure that you fully understand the prerequisites and impacts of this operation.
|
|
38359
|
+
[Manually back up the data of an RDS for SQL Server instance](https://help.aliyun.com/document_detail/95717.html)
|
|
38360
|
+
|
|
38361
|
+
@param request: ModifyBackupSetExpireTimeRequest
|
|
38362
|
+
@return: ModifyBackupSetExpireTimeResponse
|
|
38363
|
+
"""
|
|
38364
|
+
runtime = util_models.RuntimeOptions()
|
|
38365
|
+
return await self.modify_backup_set_expire_time_with_options_async(request, runtime)
|
|
38366
|
+
|
|
36639
38367
|
def modify_collation_time_zone_with_options(
|
|
36640
38368
|
self,
|
|
36641
38369
|
request: rds_20140815_models.ModifyCollationTimeZoneRequest,
|
|
@@ -36776,39 +38504,64 @@ class Client(OpenApiClient):
|
|
|
36776
38504
|
runtime = util_models.RuntimeOptions()
|
|
36777
38505
|
return await self.modify_collation_time_zone_with_options_async(request, runtime)
|
|
36778
38506
|
|
|
36779
|
-
def
|
|
38507
|
+
def modify_compute_burst_config_with_options(
|
|
36780
38508
|
self,
|
|
36781
|
-
request: rds_20140815_models.
|
|
38509
|
+
request: rds_20140815_models.ModifyComputeBurstConfigRequest,
|
|
36782
38510
|
runtime: util_models.RuntimeOptions,
|
|
36783
|
-
) -> rds_20140815_models.
|
|
38511
|
+
) -> rds_20140815_models.ModifyComputeBurstConfigResponse:
|
|
36784
38512
|
"""
|
|
36785
|
-
@summary
|
|
38513
|
+
@summary Modifies the settings of assured serverless or disables assured serverless.
|
|
36786
38514
|
|
|
36787
|
-
@
|
|
38515
|
+
@description ### [](#)Supported database engine
|
|
38516
|
+
RDS PostgreSQL
|
|
38517
|
+
### [](#)References
|
|
38518
|
+
[Assured serverless](https://help.aliyun.com/document_detail/2928780.html)
|
|
38519
|
+
|
|
38520
|
+
@param request: ModifyComputeBurstConfigRequest
|
|
36788
38521
|
@param runtime: runtime options for this request RuntimeOptions
|
|
36789
|
-
@return:
|
|
38522
|
+
@return: ModifyComputeBurstConfigResponse
|
|
36790
38523
|
"""
|
|
36791
38524
|
UtilClient.validate_model(request)
|
|
36792
38525
|
query = {}
|
|
36793
|
-
if not UtilClient.is_unset(request.
|
|
36794
|
-
query['
|
|
36795
|
-
if not UtilClient.is_unset(request.
|
|
36796
|
-
query['
|
|
36797
|
-
if not UtilClient.is_unset(request.
|
|
36798
|
-
query['
|
|
36799
|
-
if not UtilClient.is_unset(request.
|
|
36800
|
-
query['
|
|
36801
|
-
if not UtilClient.is_unset(request.
|
|
36802
|
-
query['
|
|
36803
|
-
if not UtilClient.is_unset(request.
|
|
36804
|
-
query['
|
|
36805
|
-
if not UtilClient.is_unset(request.
|
|
36806
|
-
query['
|
|
38526
|
+
if not UtilClient.is_unset(request.burst_status):
|
|
38527
|
+
query['BurstStatus'] = request.burst_status
|
|
38528
|
+
if not UtilClient.is_unset(request.client_token):
|
|
38529
|
+
query['ClientToken'] = request.client_token
|
|
38530
|
+
if not UtilClient.is_unset(request.cpu_enlarge_threshold):
|
|
38531
|
+
query['CpuEnlargeThreshold'] = request.cpu_enlarge_threshold
|
|
38532
|
+
if not UtilClient.is_unset(request.cpu_shrink_threshold):
|
|
38533
|
+
query['CpuShrinkThreshold'] = request.cpu_shrink_threshold
|
|
38534
|
+
if not UtilClient.is_unset(request.crontab_job_id):
|
|
38535
|
+
query['CrontabJobId'] = request.crontab_job_id
|
|
38536
|
+
if not UtilClient.is_unset(request.dbinstance_id):
|
|
38537
|
+
query['DBInstanceId'] = request.dbinstance_id
|
|
38538
|
+
if not UtilClient.is_unset(request.memory_enlarge_threshold):
|
|
38539
|
+
query['MemoryEnlargeThreshold'] = request.memory_enlarge_threshold
|
|
38540
|
+
if not UtilClient.is_unset(request.memory_shrink_threshold):
|
|
38541
|
+
query['MemoryShrinkThreshold'] = request.memory_shrink_threshold
|
|
38542
|
+
if not UtilClient.is_unset(request.owner_account):
|
|
38543
|
+
query['OwnerAccount'] = request.owner_account
|
|
38544
|
+
if not UtilClient.is_unset(request.owner_id):
|
|
38545
|
+
query['OwnerId'] = request.owner_id
|
|
38546
|
+
if not UtilClient.is_unset(request.resource_group_id):
|
|
38547
|
+
query['ResourceGroupId'] = request.resource_group_id
|
|
38548
|
+
if not UtilClient.is_unset(request.resource_owner_account):
|
|
38549
|
+
query['ResourceOwnerAccount'] = request.resource_owner_account
|
|
38550
|
+
if not UtilClient.is_unset(request.scale_max_cpus):
|
|
38551
|
+
query['ScaleMaxCpus'] = request.scale_max_cpus
|
|
38552
|
+
if not UtilClient.is_unset(request.scale_max_memory):
|
|
38553
|
+
query['ScaleMaxMemory'] = request.scale_max_memory
|
|
38554
|
+
if not UtilClient.is_unset(request.switch_time):
|
|
38555
|
+
query['SwitchTime'] = request.switch_time
|
|
38556
|
+
if not UtilClient.is_unset(request.switch_time_mode):
|
|
38557
|
+
query['SwitchTimeMode'] = request.switch_time_mode
|
|
38558
|
+
if not UtilClient.is_unset(request.task_id):
|
|
38559
|
+
query['TaskId'] = request.task_id
|
|
36807
38560
|
req = open_api_models.OpenApiRequest(
|
|
36808
38561
|
query=OpenApiUtilClient.query(query)
|
|
36809
38562
|
)
|
|
36810
38563
|
params = open_api_models.Params(
|
|
36811
|
-
action='
|
|
38564
|
+
action='ModifyComputeBurstConfig',
|
|
36812
38565
|
version='2014-08-15',
|
|
36813
38566
|
protocol='HTTPS',
|
|
36814
38567
|
pathname='/',
|
|
@@ -36819,11 +38572,166 @@ class Client(OpenApiClient):
|
|
|
36819
38572
|
body_type='json'
|
|
36820
38573
|
)
|
|
36821
38574
|
return TeaCore.from_map(
|
|
36822
|
-
rds_20140815_models.
|
|
38575
|
+
rds_20140815_models.ModifyComputeBurstConfigResponse(),
|
|
36823
38576
|
self.call_api(params, req, runtime)
|
|
36824
38577
|
)
|
|
36825
38578
|
|
|
36826
|
-
async def
|
|
38579
|
+
async def modify_compute_burst_config_with_options_async(
|
|
38580
|
+
self,
|
|
38581
|
+
request: rds_20140815_models.ModifyComputeBurstConfigRequest,
|
|
38582
|
+
runtime: util_models.RuntimeOptions,
|
|
38583
|
+
) -> rds_20140815_models.ModifyComputeBurstConfigResponse:
|
|
38584
|
+
"""
|
|
38585
|
+
@summary Modifies the settings of assured serverless or disables assured serverless.
|
|
38586
|
+
|
|
38587
|
+
@description ### [](#)Supported database engine
|
|
38588
|
+
RDS PostgreSQL
|
|
38589
|
+
### [](#)References
|
|
38590
|
+
[Assured serverless](https://help.aliyun.com/document_detail/2928780.html)
|
|
38591
|
+
|
|
38592
|
+
@param request: ModifyComputeBurstConfigRequest
|
|
38593
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
38594
|
+
@return: ModifyComputeBurstConfigResponse
|
|
38595
|
+
"""
|
|
38596
|
+
UtilClient.validate_model(request)
|
|
38597
|
+
query = {}
|
|
38598
|
+
if not UtilClient.is_unset(request.burst_status):
|
|
38599
|
+
query['BurstStatus'] = request.burst_status
|
|
38600
|
+
if not UtilClient.is_unset(request.client_token):
|
|
38601
|
+
query['ClientToken'] = request.client_token
|
|
38602
|
+
if not UtilClient.is_unset(request.cpu_enlarge_threshold):
|
|
38603
|
+
query['CpuEnlargeThreshold'] = request.cpu_enlarge_threshold
|
|
38604
|
+
if not UtilClient.is_unset(request.cpu_shrink_threshold):
|
|
38605
|
+
query['CpuShrinkThreshold'] = request.cpu_shrink_threshold
|
|
38606
|
+
if not UtilClient.is_unset(request.crontab_job_id):
|
|
38607
|
+
query['CrontabJobId'] = request.crontab_job_id
|
|
38608
|
+
if not UtilClient.is_unset(request.dbinstance_id):
|
|
38609
|
+
query['DBInstanceId'] = request.dbinstance_id
|
|
38610
|
+
if not UtilClient.is_unset(request.memory_enlarge_threshold):
|
|
38611
|
+
query['MemoryEnlargeThreshold'] = request.memory_enlarge_threshold
|
|
38612
|
+
if not UtilClient.is_unset(request.memory_shrink_threshold):
|
|
38613
|
+
query['MemoryShrinkThreshold'] = request.memory_shrink_threshold
|
|
38614
|
+
if not UtilClient.is_unset(request.owner_account):
|
|
38615
|
+
query['OwnerAccount'] = request.owner_account
|
|
38616
|
+
if not UtilClient.is_unset(request.owner_id):
|
|
38617
|
+
query['OwnerId'] = request.owner_id
|
|
38618
|
+
if not UtilClient.is_unset(request.resource_group_id):
|
|
38619
|
+
query['ResourceGroupId'] = request.resource_group_id
|
|
38620
|
+
if not UtilClient.is_unset(request.resource_owner_account):
|
|
38621
|
+
query['ResourceOwnerAccount'] = request.resource_owner_account
|
|
38622
|
+
if not UtilClient.is_unset(request.scale_max_cpus):
|
|
38623
|
+
query['ScaleMaxCpus'] = request.scale_max_cpus
|
|
38624
|
+
if not UtilClient.is_unset(request.scale_max_memory):
|
|
38625
|
+
query['ScaleMaxMemory'] = request.scale_max_memory
|
|
38626
|
+
if not UtilClient.is_unset(request.switch_time):
|
|
38627
|
+
query['SwitchTime'] = request.switch_time
|
|
38628
|
+
if not UtilClient.is_unset(request.switch_time_mode):
|
|
38629
|
+
query['SwitchTimeMode'] = request.switch_time_mode
|
|
38630
|
+
if not UtilClient.is_unset(request.task_id):
|
|
38631
|
+
query['TaskId'] = request.task_id
|
|
38632
|
+
req = open_api_models.OpenApiRequest(
|
|
38633
|
+
query=OpenApiUtilClient.query(query)
|
|
38634
|
+
)
|
|
38635
|
+
params = open_api_models.Params(
|
|
38636
|
+
action='ModifyComputeBurstConfig',
|
|
38637
|
+
version='2014-08-15',
|
|
38638
|
+
protocol='HTTPS',
|
|
38639
|
+
pathname='/',
|
|
38640
|
+
method='POST',
|
|
38641
|
+
auth_type='AK',
|
|
38642
|
+
style='RPC',
|
|
38643
|
+
req_body_type='formData',
|
|
38644
|
+
body_type='json'
|
|
38645
|
+
)
|
|
38646
|
+
return TeaCore.from_map(
|
|
38647
|
+
rds_20140815_models.ModifyComputeBurstConfigResponse(),
|
|
38648
|
+
await self.call_api_async(params, req, runtime)
|
|
38649
|
+
)
|
|
38650
|
+
|
|
38651
|
+
def modify_compute_burst_config(
|
|
38652
|
+
self,
|
|
38653
|
+
request: rds_20140815_models.ModifyComputeBurstConfigRequest,
|
|
38654
|
+
) -> rds_20140815_models.ModifyComputeBurstConfigResponse:
|
|
38655
|
+
"""
|
|
38656
|
+
@summary Modifies the settings of assured serverless or disables assured serverless.
|
|
38657
|
+
|
|
38658
|
+
@description ### [](#)Supported database engine
|
|
38659
|
+
RDS PostgreSQL
|
|
38660
|
+
### [](#)References
|
|
38661
|
+
[Assured serverless](https://help.aliyun.com/document_detail/2928780.html)
|
|
38662
|
+
|
|
38663
|
+
@param request: ModifyComputeBurstConfigRequest
|
|
38664
|
+
@return: ModifyComputeBurstConfigResponse
|
|
38665
|
+
"""
|
|
38666
|
+
runtime = util_models.RuntimeOptions()
|
|
38667
|
+
return self.modify_compute_burst_config_with_options(request, runtime)
|
|
38668
|
+
|
|
38669
|
+
async def modify_compute_burst_config_async(
|
|
38670
|
+
self,
|
|
38671
|
+
request: rds_20140815_models.ModifyComputeBurstConfigRequest,
|
|
38672
|
+
) -> rds_20140815_models.ModifyComputeBurstConfigResponse:
|
|
38673
|
+
"""
|
|
38674
|
+
@summary Modifies the settings of assured serverless or disables assured serverless.
|
|
38675
|
+
|
|
38676
|
+
@description ### [](#)Supported database engine
|
|
38677
|
+
RDS PostgreSQL
|
|
38678
|
+
### [](#)References
|
|
38679
|
+
[Assured serverless](https://help.aliyun.com/document_detail/2928780.html)
|
|
38680
|
+
|
|
38681
|
+
@param request: ModifyComputeBurstConfigRequest
|
|
38682
|
+
@return: ModifyComputeBurstConfigResponse
|
|
38683
|
+
"""
|
|
38684
|
+
runtime = util_models.RuntimeOptions()
|
|
38685
|
+
return await self.modify_compute_burst_config_with_options_async(request, runtime)
|
|
38686
|
+
|
|
38687
|
+
def modify_custins_resource_with_options(
|
|
38688
|
+
self,
|
|
38689
|
+
request: rds_20140815_models.ModifyCustinsResourceRequest,
|
|
38690
|
+
runtime: util_models.RuntimeOptions,
|
|
38691
|
+
) -> rds_20140815_models.ModifyCustinsResourceResponse:
|
|
38692
|
+
"""
|
|
38693
|
+
@summary 修改实例资源
|
|
38694
|
+
|
|
38695
|
+
@param request: ModifyCustinsResourceRequest
|
|
38696
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
38697
|
+
@return: ModifyCustinsResourceResponse
|
|
38698
|
+
"""
|
|
38699
|
+
UtilClient.validate_model(request)
|
|
38700
|
+
query = {}
|
|
38701
|
+
if not UtilClient.is_unset(request.adjust_deadline):
|
|
38702
|
+
query['AdjustDeadline'] = request.adjust_deadline
|
|
38703
|
+
if not UtilClient.is_unset(request.dbinstance_id):
|
|
38704
|
+
query['DBInstanceId'] = request.dbinstance_id
|
|
38705
|
+
if not UtilClient.is_unset(request.increase_ratio):
|
|
38706
|
+
query['IncreaseRatio'] = request.increase_ratio
|
|
38707
|
+
if not UtilClient.is_unset(request.resource_owner_id):
|
|
38708
|
+
query['ResourceOwnerId'] = request.resource_owner_id
|
|
38709
|
+
if not UtilClient.is_unset(request.resource_type):
|
|
38710
|
+
query['ResourceType'] = request.resource_type
|
|
38711
|
+
if not UtilClient.is_unset(request.restore_original_specification):
|
|
38712
|
+
query['RestoreOriginalSpecification'] = request.restore_original_specification
|
|
38713
|
+
if not UtilClient.is_unset(request.target_value):
|
|
38714
|
+
query['TargetValue'] = request.target_value
|
|
38715
|
+
req = open_api_models.OpenApiRequest(
|
|
38716
|
+
query=OpenApiUtilClient.query(query)
|
|
38717
|
+
)
|
|
38718
|
+
params = open_api_models.Params(
|
|
38719
|
+
action='ModifyCustinsResource',
|
|
38720
|
+
version='2014-08-15',
|
|
38721
|
+
protocol='HTTPS',
|
|
38722
|
+
pathname='/',
|
|
38723
|
+
method='POST',
|
|
38724
|
+
auth_type='AK',
|
|
38725
|
+
style='RPC',
|
|
38726
|
+
req_body_type='formData',
|
|
38727
|
+
body_type='json'
|
|
38728
|
+
)
|
|
38729
|
+
return TeaCore.from_map(
|
|
38730
|
+
rds_20140815_models.ModifyCustinsResourceResponse(),
|
|
38731
|
+
self.call_api(params, req, runtime)
|
|
38732
|
+
)
|
|
38733
|
+
|
|
38734
|
+
async def modify_custins_resource_with_options_async(
|
|
36827
38735
|
self,
|
|
36828
38736
|
request: rds_20140815_models.ModifyCustinsResourceRequest,
|
|
36829
38737
|
runtime: util_models.RuntimeOptions,
|
|
@@ -37392,6 +39300,10 @@ class Client(OpenApiClient):
|
|
|
37392
39300
|
query['ResourceOwnerAccount'] = request.resource_owner_account
|
|
37393
39301
|
if not UtilClient.is_unset(request.resource_owner_id):
|
|
37394
39302
|
query['ResourceOwnerId'] = request.resource_owner_id
|
|
39303
|
+
if not UtilClient.is_unset(request.retain_vip):
|
|
39304
|
+
query['RetainVip'] = request.retain_vip
|
|
39305
|
+
if not UtilClient.is_unset(request.target_dbinstance_id):
|
|
39306
|
+
query['TargetDBInstanceId'] = request.target_dbinstance_id
|
|
37395
39307
|
req = open_api_models.OpenApiRequest(
|
|
37396
39308
|
query=OpenApiUtilClient.query(query)
|
|
37397
39309
|
)
|
|
@@ -37459,6 +39371,10 @@ class Client(OpenApiClient):
|
|
|
37459
39371
|
query['ResourceOwnerAccount'] = request.resource_owner_account
|
|
37460
39372
|
if not UtilClient.is_unset(request.resource_owner_id):
|
|
37461
39373
|
query['ResourceOwnerId'] = request.resource_owner_id
|
|
39374
|
+
if not UtilClient.is_unset(request.retain_vip):
|
|
39375
|
+
query['RetainVip'] = request.retain_vip
|
|
39376
|
+
if not UtilClient.is_unset(request.target_dbinstance_id):
|
|
39377
|
+
query['TargetDBInstanceId'] = request.target_dbinstance_id
|
|
37462
39378
|
req = open_api_models.OpenApiRequest(
|
|
37463
39379
|
query=OpenApiUtilClient.query(query)
|
|
37464
39380
|
)
|
|
@@ -43384,6 +45300,122 @@ class Client(OpenApiClient):
|
|
|
43384
45300
|
runtime = util_models.RuntimeOptions()
|
|
43385
45301
|
return await self.modify_rcdisk_spec_with_options_async(request, runtime)
|
|
43386
45302
|
|
|
45303
|
+
def modify_rcelastic_scaling_with_options(
|
|
45304
|
+
self,
|
|
45305
|
+
request: rds_20140815_models.ModifyRCElasticScalingRequest,
|
|
45306
|
+
runtime: util_models.RuntimeOptions,
|
|
45307
|
+
) -> rds_20140815_models.ModifyRCElasticScalingResponse:
|
|
45308
|
+
"""
|
|
45309
|
+
@summary 查询RDS用户专属主机实例
|
|
45310
|
+
|
|
45311
|
+
@param request: ModifyRCElasticScalingRequest
|
|
45312
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
45313
|
+
@return: ModifyRCElasticScalingResponse
|
|
45314
|
+
"""
|
|
45315
|
+
UtilClient.validate_model(request)
|
|
45316
|
+
query = {}
|
|
45317
|
+
if not UtilClient.is_unset(request.dry_run):
|
|
45318
|
+
query['DryRun'] = request.dry_run
|
|
45319
|
+
if not UtilClient.is_unset(request.instance_id):
|
|
45320
|
+
query['InstanceId'] = request.instance_id
|
|
45321
|
+
if not UtilClient.is_unset(request.instance_type):
|
|
45322
|
+
query['InstanceType'] = request.instance_type
|
|
45323
|
+
if not UtilClient.is_unset(request.region_id):
|
|
45324
|
+
query['RegionId'] = request.region_id
|
|
45325
|
+
if not UtilClient.is_unset(request.scaling_enabled):
|
|
45326
|
+
query['ScalingEnabled'] = request.scaling_enabled
|
|
45327
|
+
if not UtilClient.is_unset(request.scheduled_rule):
|
|
45328
|
+
query['ScheduledRule'] = request.scheduled_rule
|
|
45329
|
+
req = open_api_models.OpenApiRequest(
|
|
45330
|
+
query=OpenApiUtilClient.query(query)
|
|
45331
|
+
)
|
|
45332
|
+
params = open_api_models.Params(
|
|
45333
|
+
action='ModifyRCElasticScaling',
|
|
45334
|
+
version='2014-08-15',
|
|
45335
|
+
protocol='HTTPS',
|
|
45336
|
+
pathname='/',
|
|
45337
|
+
method='POST',
|
|
45338
|
+
auth_type='AK',
|
|
45339
|
+
style='RPC',
|
|
45340
|
+
req_body_type='formData',
|
|
45341
|
+
body_type='json'
|
|
45342
|
+
)
|
|
45343
|
+
return TeaCore.from_map(
|
|
45344
|
+
rds_20140815_models.ModifyRCElasticScalingResponse(),
|
|
45345
|
+
self.call_api(params, req, runtime)
|
|
45346
|
+
)
|
|
45347
|
+
|
|
45348
|
+
async def modify_rcelastic_scaling_with_options_async(
|
|
45349
|
+
self,
|
|
45350
|
+
request: rds_20140815_models.ModifyRCElasticScalingRequest,
|
|
45351
|
+
runtime: util_models.RuntimeOptions,
|
|
45352
|
+
) -> rds_20140815_models.ModifyRCElasticScalingResponse:
|
|
45353
|
+
"""
|
|
45354
|
+
@summary 查询RDS用户专属主机实例
|
|
45355
|
+
|
|
45356
|
+
@param request: ModifyRCElasticScalingRequest
|
|
45357
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
45358
|
+
@return: ModifyRCElasticScalingResponse
|
|
45359
|
+
"""
|
|
45360
|
+
UtilClient.validate_model(request)
|
|
45361
|
+
query = {}
|
|
45362
|
+
if not UtilClient.is_unset(request.dry_run):
|
|
45363
|
+
query['DryRun'] = request.dry_run
|
|
45364
|
+
if not UtilClient.is_unset(request.instance_id):
|
|
45365
|
+
query['InstanceId'] = request.instance_id
|
|
45366
|
+
if not UtilClient.is_unset(request.instance_type):
|
|
45367
|
+
query['InstanceType'] = request.instance_type
|
|
45368
|
+
if not UtilClient.is_unset(request.region_id):
|
|
45369
|
+
query['RegionId'] = request.region_id
|
|
45370
|
+
if not UtilClient.is_unset(request.scaling_enabled):
|
|
45371
|
+
query['ScalingEnabled'] = request.scaling_enabled
|
|
45372
|
+
if not UtilClient.is_unset(request.scheduled_rule):
|
|
45373
|
+
query['ScheduledRule'] = request.scheduled_rule
|
|
45374
|
+
req = open_api_models.OpenApiRequest(
|
|
45375
|
+
query=OpenApiUtilClient.query(query)
|
|
45376
|
+
)
|
|
45377
|
+
params = open_api_models.Params(
|
|
45378
|
+
action='ModifyRCElasticScaling',
|
|
45379
|
+
version='2014-08-15',
|
|
45380
|
+
protocol='HTTPS',
|
|
45381
|
+
pathname='/',
|
|
45382
|
+
method='POST',
|
|
45383
|
+
auth_type='AK',
|
|
45384
|
+
style='RPC',
|
|
45385
|
+
req_body_type='formData',
|
|
45386
|
+
body_type='json'
|
|
45387
|
+
)
|
|
45388
|
+
return TeaCore.from_map(
|
|
45389
|
+
rds_20140815_models.ModifyRCElasticScalingResponse(),
|
|
45390
|
+
await self.call_api_async(params, req, runtime)
|
|
45391
|
+
)
|
|
45392
|
+
|
|
45393
|
+
def modify_rcelastic_scaling(
|
|
45394
|
+
self,
|
|
45395
|
+
request: rds_20140815_models.ModifyRCElasticScalingRequest,
|
|
45396
|
+
) -> rds_20140815_models.ModifyRCElasticScalingResponse:
|
|
45397
|
+
"""
|
|
45398
|
+
@summary 查询RDS用户专属主机实例
|
|
45399
|
+
|
|
45400
|
+
@param request: ModifyRCElasticScalingRequest
|
|
45401
|
+
@return: ModifyRCElasticScalingResponse
|
|
45402
|
+
"""
|
|
45403
|
+
runtime = util_models.RuntimeOptions()
|
|
45404
|
+
return self.modify_rcelastic_scaling_with_options(request, runtime)
|
|
45405
|
+
|
|
45406
|
+
async def modify_rcelastic_scaling_async(
|
|
45407
|
+
self,
|
|
45408
|
+
request: rds_20140815_models.ModifyRCElasticScalingRequest,
|
|
45409
|
+
) -> rds_20140815_models.ModifyRCElasticScalingResponse:
|
|
45410
|
+
"""
|
|
45411
|
+
@summary 查询RDS用户专属主机实例
|
|
45412
|
+
|
|
45413
|
+
@param request: ModifyRCElasticScalingRequest
|
|
45414
|
+
@return: ModifyRCElasticScalingResponse
|
|
45415
|
+
"""
|
|
45416
|
+
runtime = util_models.RuntimeOptions()
|
|
45417
|
+
return await self.modify_rcelastic_scaling_with_options_async(request, runtime)
|
|
45418
|
+
|
|
43387
45419
|
def modify_rcinstance_with_options(
|
|
43388
45420
|
self,
|
|
43389
45421
|
request: rds_20140815_models.ModifyRCInstanceRequest,
|
|
@@ -43550,22 +45582,34 @@ class Client(OpenApiClient):
|
|
|
43550
45582
|
|
|
43551
45583
|
def modify_rcinstance_attribute_with_options(
|
|
43552
45584
|
self,
|
|
43553
|
-
|
|
45585
|
+
tmp_req: rds_20140815_models.ModifyRCInstanceAttributeRequest,
|
|
43554
45586
|
runtime: util_models.RuntimeOptions,
|
|
43555
45587
|
) -> rds_20140815_models.ModifyRCInstanceAttributeResponse:
|
|
43556
45588
|
"""
|
|
43557
|
-
@summary Modifies
|
|
45589
|
+
@summary Modifies the attributes of an RDS Custom instance, such as the password, hostname, security groups, and whether release protection is enabled.
|
|
43558
45590
|
|
|
43559
|
-
@param
|
|
45591
|
+
@param tmp_req: ModifyRCInstanceAttributeRequest
|
|
43560
45592
|
@param runtime: runtime options for this request RuntimeOptions
|
|
43561
45593
|
@return: ModifyRCInstanceAttributeResponse
|
|
43562
45594
|
"""
|
|
43563
|
-
UtilClient.validate_model(
|
|
45595
|
+
UtilClient.validate_model(tmp_req)
|
|
45596
|
+
request = rds_20140815_models.ModifyRCInstanceAttributeShrinkRequest()
|
|
45597
|
+
OpenApiUtilClient.convert(tmp_req, request)
|
|
45598
|
+
if not UtilClient.is_unset(tmp_req.instance_ids):
|
|
45599
|
+
request.instance_ids_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.instance_ids, 'InstanceIds', 'json')
|
|
45600
|
+
if not UtilClient.is_unset(tmp_req.security_group_ids):
|
|
45601
|
+
request.security_group_ids_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.security_group_ids, 'SecurityGroupIds', 'json')
|
|
43564
45602
|
query = {}
|
|
45603
|
+
if not UtilClient.is_unset(request.deletion_protection):
|
|
45604
|
+
query['DeletionProtection'] = request.deletion_protection
|
|
43565
45605
|
if not UtilClient.is_unset(request.host_name):
|
|
43566
45606
|
query['HostName'] = request.host_name
|
|
43567
45607
|
if not UtilClient.is_unset(request.instance_id):
|
|
43568
45608
|
query['InstanceId'] = request.instance_id
|
|
45609
|
+
if not UtilClient.is_unset(request.instance_ids_shrink):
|
|
45610
|
+
query['InstanceIds'] = request.instance_ids_shrink
|
|
45611
|
+
if not UtilClient.is_unset(request.instance_name):
|
|
45612
|
+
query['InstanceName'] = request.instance_name
|
|
43569
45613
|
if not UtilClient.is_unset(request.password):
|
|
43570
45614
|
query['Password'] = request.password
|
|
43571
45615
|
if not UtilClient.is_unset(request.reboot):
|
|
@@ -43574,6 +45618,8 @@ class Client(OpenApiClient):
|
|
|
43574
45618
|
query['RegionId'] = request.region_id
|
|
43575
45619
|
if not UtilClient.is_unset(request.security_group_id):
|
|
43576
45620
|
query['SecurityGroupId'] = request.security_group_id
|
|
45621
|
+
if not UtilClient.is_unset(request.security_group_ids_shrink):
|
|
45622
|
+
query['SecurityGroupIds'] = request.security_group_ids_shrink
|
|
43577
45623
|
req = open_api_models.OpenApiRequest(
|
|
43578
45624
|
query=OpenApiUtilClient.query(query)
|
|
43579
45625
|
)
|
|
@@ -43595,22 +45641,34 @@ class Client(OpenApiClient):
|
|
|
43595
45641
|
|
|
43596
45642
|
async def modify_rcinstance_attribute_with_options_async(
|
|
43597
45643
|
self,
|
|
43598
|
-
|
|
45644
|
+
tmp_req: rds_20140815_models.ModifyRCInstanceAttributeRequest,
|
|
43599
45645
|
runtime: util_models.RuntimeOptions,
|
|
43600
45646
|
) -> rds_20140815_models.ModifyRCInstanceAttributeResponse:
|
|
43601
45647
|
"""
|
|
43602
|
-
@summary Modifies
|
|
45648
|
+
@summary Modifies the attributes of an RDS Custom instance, such as the password, hostname, security groups, and whether release protection is enabled.
|
|
43603
45649
|
|
|
43604
|
-
@param
|
|
45650
|
+
@param tmp_req: ModifyRCInstanceAttributeRequest
|
|
43605
45651
|
@param runtime: runtime options for this request RuntimeOptions
|
|
43606
45652
|
@return: ModifyRCInstanceAttributeResponse
|
|
43607
45653
|
"""
|
|
43608
|
-
UtilClient.validate_model(
|
|
45654
|
+
UtilClient.validate_model(tmp_req)
|
|
45655
|
+
request = rds_20140815_models.ModifyRCInstanceAttributeShrinkRequest()
|
|
45656
|
+
OpenApiUtilClient.convert(tmp_req, request)
|
|
45657
|
+
if not UtilClient.is_unset(tmp_req.instance_ids):
|
|
45658
|
+
request.instance_ids_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.instance_ids, 'InstanceIds', 'json')
|
|
45659
|
+
if not UtilClient.is_unset(tmp_req.security_group_ids):
|
|
45660
|
+
request.security_group_ids_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.security_group_ids, 'SecurityGroupIds', 'json')
|
|
43609
45661
|
query = {}
|
|
45662
|
+
if not UtilClient.is_unset(request.deletion_protection):
|
|
45663
|
+
query['DeletionProtection'] = request.deletion_protection
|
|
43610
45664
|
if not UtilClient.is_unset(request.host_name):
|
|
43611
45665
|
query['HostName'] = request.host_name
|
|
43612
45666
|
if not UtilClient.is_unset(request.instance_id):
|
|
43613
45667
|
query['InstanceId'] = request.instance_id
|
|
45668
|
+
if not UtilClient.is_unset(request.instance_ids_shrink):
|
|
45669
|
+
query['InstanceIds'] = request.instance_ids_shrink
|
|
45670
|
+
if not UtilClient.is_unset(request.instance_name):
|
|
45671
|
+
query['InstanceName'] = request.instance_name
|
|
43614
45672
|
if not UtilClient.is_unset(request.password):
|
|
43615
45673
|
query['Password'] = request.password
|
|
43616
45674
|
if not UtilClient.is_unset(request.reboot):
|
|
@@ -43619,6 +45677,8 @@ class Client(OpenApiClient):
|
|
|
43619
45677
|
query['RegionId'] = request.region_id
|
|
43620
45678
|
if not UtilClient.is_unset(request.security_group_id):
|
|
43621
45679
|
query['SecurityGroupId'] = request.security_group_id
|
|
45680
|
+
if not UtilClient.is_unset(request.security_group_ids_shrink):
|
|
45681
|
+
query['SecurityGroupIds'] = request.security_group_ids_shrink
|
|
43622
45682
|
req = open_api_models.OpenApiRequest(
|
|
43623
45683
|
query=OpenApiUtilClient.query(query)
|
|
43624
45684
|
)
|
|
@@ -43643,7 +45703,7 @@ class Client(OpenApiClient):
|
|
|
43643
45703
|
request: rds_20140815_models.ModifyRCInstanceAttributeRequest,
|
|
43644
45704
|
) -> rds_20140815_models.ModifyRCInstanceAttributeResponse:
|
|
43645
45705
|
"""
|
|
43646
|
-
@summary Modifies
|
|
45706
|
+
@summary Modifies the attributes of an RDS Custom instance, such as the password, hostname, security groups, and whether release protection is enabled.
|
|
43647
45707
|
|
|
43648
45708
|
@param request: ModifyRCInstanceAttributeRequest
|
|
43649
45709
|
@return: ModifyRCInstanceAttributeResponse
|
|
@@ -43656,7 +45716,7 @@ class Client(OpenApiClient):
|
|
|
43656
45716
|
request: rds_20140815_models.ModifyRCInstanceAttributeRequest,
|
|
43657
45717
|
) -> rds_20140815_models.ModifyRCInstanceAttributeResponse:
|
|
43658
45718
|
"""
|
|
43659
|
-
@summary Modifies
|
|
45719
|
+
@summary Modifies the attributes of an RDS Custom instance, such as the password, hostname, security groups, and whether release protection is enabled.
|
|
43660
45720
|
|
|
43661
45721
|
@param request: ModifyRCInstanceAttributeRequest
|
|
43662
45722
|
@return: ModifyRCInstanceAttributeResponse
|
|
@@ -44188,6 +46248,110 @@ class Client(OpenApiClient):
|
|
|
44188
46248
|
runtime = util_models.RuntimeOptions()
|
|
44189
46249
|
return await self.modify_rcinstance_network_spec_with_options_async(request, runtime)
|
|
44190
46250
|
|
|
46251
|
+
def modify_rcinstance_vpc_attribute_with_options(
|
|
46252
|
+
self,
|
|
46253
|
+
request: rds_20140815_models.ModifyRCInstanceVpcAttributeRequest,
|
|
46254
|
+
runtime: util_models.RuntimeOptions,
|
|
46255
|
+
) -> rds_20140815_models.ModifyRCInstanceVpcAttributeResponse:
|
|
46256
|
+
"""
|
|
46257
|
+
@summary 修改RC实例安全组
|
|
46258
|
+
|
|
46259
|
+
@param request: ModifyRCInstanceVpcAttributeRequest
|
|
46260
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
46261
|
+
@return: ModifyRCInstanceVpcAttributeResponse
|
|
46262
|
+
"""
|
|
46263
|
+
UtilClient.validate_model(request)
|
|
46264
|
+
query = {}
|
|
46265
|
+
if not UtilClient.is_unset(request.instance_id):
|
|
46266
|
+
query['InstanceId'] = request.instance_id
|
|
46267
|
+
if not UtilClient.is_unset(request.region_id):
|
|
46268
|
+
query['RegionId'] = request.region_id
|
|
46269
|
+
if not UtilClient.is_unset(request.v_switch_id):
|
|
46270
|
+
query['VSwitchId'] = request.v_switch_id
|
|
46271
|
+
req = open_api_models.OpenApiRequest(
|
|
46272
|
+
query=OpenApiUtilClient.query(query)
|
|
46273
|
+
)
|
|
46274
|
+
params = open_api_models.Params(
|
|
46275
|
+
action='ModifyRCInstanceVpcAttribute',
|
|
46276
|
+
version='2014-08-15',
|
|
46277
|
+
protocol='HTTPS',
|
|
46278
|
+
pathname='/',
|
|
46279
|
+
method='POST',
|
|
46280
|
+
auth_type='AK',
|
|
46281
|
+
style='RPC',
|
|
46282
|
+
req_body_type='formData',
|
|
46283
|
+
body_type='json'
|
|
46284
|
+
)
|
|
46285
|
+
return TeaCore.from_map(
|
|
46286
|
+
rds_20140815_models.ModifyRCInstanceVpcAttributeResponse(),
|
|
46287
|
+
self.call_api(params, req, runtime)
|
|
46288
|
+
)
|
|
46289
|
+
|
|
46290
|
+
async def modify_rcinstance_vpc_attribute_with_options_async(
|
|
46291
|
+
self,
|
|
46292
|
+
request: rds_20140815_models.ModifyRCInstanceVpcAttributeRequest,
|
|
46293
|
+
runtime: util_models.RuntimeOptions,
|
|
46294
|
+
) -> rds_20140815_models.ModifyRCInstanceVpcAttributeResponse:
|
|
46295
|
+
"""
|
|
46296
|
+
@summary 修改RC实例安全组
|
|
46297
|
+
|
|
46298
|
+
@param request: ModifyRCInstanceVpcAttributeRequest
|
|
46299
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
46300
|
+
@return: ModifyRCInstanceVpcAttributeResponse
|
|
46301
|
+
"""
|
|
46302
|
+
UtilClient.validate_model(request)
|
|
46303
|
+
query = {}
|
|
46304
|
+
if not UtilClient.is_unset(request.instance_id):
|
|
46305
|
+
query['InstanceId'] = request.instance_id
|
|
46306
|
+
if not UtilClient.is_unset(request.region_id):
|
|
46307
|
+
query['RegionId'] = request.region_id
|
|
46308
|
+
if not UtilClient.is_unset(request.v_switch_id):
|
|
46309
|
+
query['VSwitchId'] = request.v_switch_id
|
|
46310
|
+
req = open_api_models.OpenApiRequest(
|
|
46311
|
+
query=OpenApiUtilClient.query(query)
|
|
46312
|
+
)
|
|
46313
|
+
params = open_api_models.Params(
|
|
46314
|
+
action='ModifyRCInstanceVpcAttribute',
|
|
46315
|
+
version='2014-08-15',
|
|
46316
|
+
protocol='HTTPS',
|
|
46317
|
+
pathname='/',
|
|
46318
|
+
method='POST',
|
|
46319
|
+
auth_type='AK',
|
|
46320
|
+
style='RPC',
|
|
46321
|
+
req_body_type='formData',
|
|
46322
|
+
body_type='json'
|
|
46323
|
+
)
|
|
46324
|
+
return TeaCore.from_map(
|
|
46325
|
+
rds_20140815_models.ModifyRCInstanceVpcAttributeResponse(),
|
|
46326
|
+
await self.call_api_async(params, req, runtime)
|
|
46327
|
+
)
|
|
46328
|
+
|
|
46329
|
+
def modify_rcinstance_vpc_attribute(
|
|
46330
|
+
self,
|
|
46331
|
+
request: rds_20140815_models.ModifyRCInstanceVpcAttributeRequest,
|
|
46332
|
+
) -> rds_20140815_models.ModifyRCInstanceVpcAttributeResponse:
|
|
46333
|
+
"""
|
|
46334
|
+
@summary 修改RC实例安全组
|
|
46335
|
+
|
|
46336
|
+
@param request: ModifyRCInstanceVpcAttributeRequest
|
|
46337
|
+
@return: ModifyRCInstanceVpcAttributeResponse
|
|
46338
|
+
"""
|
|
46339
|
+
runtime = util_models.RuntimeOptions()
|
|
46340
|
+
return self.modify_rcinstance_vpc_attribute_with_options(request, runtime)
|
|
46341
|
+
|
|
46342
|
+
async def modify_rcinstance_vpc_attribute_async(
|
|
46343
|
+
self,
|
|
46344
|
+
request: rds_20140815_models.ModifyRCInstanceVpcAttributeRequest,
|
|
46345
|
+
) -> rds_20140815_models.ModifyRCInstanceVpcAttributeResponse:
|
|
46346
|
+
"""
|
|
46347
|
+
@summary 修改RC实例安全组
|
|
46348
|
+
|
|
46349
|
+
@param request: ModifyRCInstanceVpcAttributeRequest
|
|
46350
|
+
@return: ModifyRCInstanceVpcAttributeResponse
|
|
46351
|
+
"""
|
|
46352
|
+
runtime = util_models.RuntimeOptions()
|
|
46353
|
+
return await self.modify_rcinstance_vpc_attribute_with_options_async(request, runtime)
|
|
46354
|
+
|
|
44191
46355
|
def modify_rcsecurity_group_permission_with_options(
|
|
44192
46356
|
self,
|
|
44193
46357
|
request: rds_20140815_models.ModifyRCSecurityGroupPermissionRequest,
|
|
@@ -44324,6 +46488,118 @@ class Client(OpenApiClient):
|
|
|
44324
46488
|
runtime = util_models.RuntimeOptions()
|
|
44325
46489
|
return await self.modify_rcsecurity_group_permission_with_options_async(request, runtime)
|
|
44326
46490
|
|
|
46491
|
+
def modify_rcvcluster_with_options(
|
|
46492
|
+
self,
|
|
46493
|
+
tmp_req: rds_20140815_models.ModifyRCVClusterRequest,
|
|
46494
|
+
runtime: util_models.RuntimeOptions,
|
|
46495
|
+
) -> rds_20140815_models.ModifyRCVClusterResponse:
|
|
46496
|
+
"""
|
|
46497
|
+
@summary 修改RCVCluster
|
|
46498
|
+
|
|
46499
|
+
@param tmp_req: ModifyRCVClusterRequest
|
|
46500
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
46501
|
+
@return: ModifyRCVClusterResponse
|
|
46502
|
+
"""
|
|
46503
|
+
UtilClient.validate_model(tmp_req)
|
|
46504
|
+
request = rds_20140815_models.ModifyRCVClusterShrinkRequest()
|
|
46505
|
+
OpenApiUtilClient.convert(tmp_req, request)
|
|
46506
|
+
if not UtilClient.is_unset(tmp_req.support_disk_performance_level):
|
|
46507
|
+
request.support_disk_performance_level_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.support_disk_performance_level, 'SupportDiskPerformanceLevel', 'json')
|
|
46508
|
+
query = {}
|
|
46509
|
+
if not UtilClient.is_unset(request.cluster_id):
|
|
46510
|
+
query['ClusterId'] = request.cluster_id
|
|
46511
|
+
if not UtilClient.is_unset(request.region_id):
|
|
46512
|
+
query['RegionId'] = request.region_id
|
|
46513
|
+
if not UtilClient.is_unset(request.support_disk_performance_level_shrink):
|
|
46514
|
+
query['SupportDiskPerformanceLevel'] = request.support_disk_performance_level_shrink
|
|
46515
|
+
req = open_api_models.OpenApiRequest(
|
|
46516
|
+
query=OpenApiUtilClient.query(query)
|
|
46517
|
+
)
|
|
46518
|
+
params = open_api_models.Params(
|
|
46519
|
+
action='ModifyRCVCluster',
|
|
46520
|
+
version='2014-08-15',
|
|
46521
|
+
protocol='HTTPS',
|
|
46522
|
+
pathname='/',
|
|
46523
|
+
method='POST',
|
|
46524
|
+
auth_type='AK',
|
|
46525
|
+
style='RPC',
|
|
46526
|
+
req_body_type='formData',
|
|
46527
|
+
body_type='json'
|
|
46528
|
+
)
|
|
46529
|
+
return TeaCore.from_map(
|
|
46530
|
+
rds_20140815_models.ModifyRCVClusterResponse(),
|
|
46531
|
+
self.call_api(params, req, runtime)
|
|
46532
|
+
)
|
|
46533
|
+
|
|
46534
|
+
async def modify_rcvcluster_with_options_async(
|
|
46535
|
+
self,
|
|
46536
|
+
tmp_req: rds_20140815_models.ModifyRCVClusterRequest,
|
|
46537
|
+
runtime: util_models.RuntimeOptions,
|
|
46538
|
+
) -> rds_20140815_models.ModifyRCVClusterResponse:
|
|
46539
|
+
"""
|
|
46540
|
+
@summary 修改RCVCluster
|
|
46541
|
+
|
|
46542
|
+
@param tmp_req: ModifyRCVClusterRequest
|
|
46543
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
46544
|
+
@return: ModifyRCVClusterResponse
|
|
46545
|
+
"""
|
|
46546
|
+
UtilClient.validate_model(tmp_req)
|
|
46547
|
+
request = rds_20140815_models.ModifyRCVClusterShrinkRequest()
|
|
46548
|
+
OpenApiUtilClient.convert(tmp_req, request)
|
|
46549
|
+
if not UtilClient.is_unset(tmp_req.support_disk_performance_level):
|
|
46550
|
+
request.support_disk_performance_level_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.support_disk_performance_level, 'SupportDiskPerformanceLevel', 'json')
|
|
46551
|
+
query = {}
|
|
46552
|
+
if not UtilClient.is_unset(request.cluster_id):
|
|
46553
|
+
query['ClusterId'] = request.cluster_id
|
|
46554
|
+
if not UtilClient.is_unset(request.region_id):
|
|
46555
|
+
query['RegionId'] = request.region_id
|
|
46556
|
+
if not UtilClient.is_unset(request.support_disk_performance_level_shrink):
|
|
46557
|
+
query['SupportDiskPerformanceLevel'] = request.support_disk_performance_level_shrink
|
|
46558
|
+
req = open_api_models.OpenApiRequest(
|
|
46559
|
+
query=OpenApiUtilClient.query(query)
|
|
46560
|
+
)
|
|
46561
|
+
params = open_api_models.Params(
|
|
46562
|
+
action='ModifyRCVCluster',
|
|
46563
|
+
version='2014-08-15',
|
|
46564
|
+
protocol='HTTPS',
|
|
46565
|
+
pathname='/',
|
|
46566
|
+
method='POST',
|
|
46567
|
+
auth_type='AK',
|
|
46568
|
+
style='RPC',
|
|
46569
|
+
req_body_type='formData',
|
|
46570
|
+
body_type='json'
|
|
46571
|
+
)
|
|
46572
|
+
return TeaCore.from_map(
|
|
46573
|
+
rds_20140815_models.ModifyRCVClusterResponse(),
|
|
46574
|
+
await self.call_api_async(params, req, runtime)
|
|
46575
|
+
)
|
|
46576
|
+
|
|
46577
|
+
def modify_rcvcluster(
|
|
46578
|
+
self,
|
|
46579
|
+
request: rds_20140815_models.ModifyRCVClusterRequest,
|
|
46580
|
+
) -> rds_20140815_models.ModifyRCVClusterResponse:
|
|
46581
|
+
"""
|
|
46582
|
+
@summary 修改RCVCluster
|
|
46583
|
+
|
|
46584
|
+
@param request: ModifyRCVClusterRequest
|
|
46585
|
+
@return: ModifyRCVClusterResponse
|
|
46586
|
+
"""
|
|
46587
|
+
runtime = util_models.RuntimeOptions()
|
|
46588
|
+
return self.modify_rcvcluster_with_options(request, runtime)
|
|
46589
|
+
|
|
46590
|
+
async def modify_rcvcluster_async(
|
|
46591
|
+
self,
|
|
46592
|
+
request: rds_20140815_models.ModifyRCVClusterRequest,
|
|
46593
|
+
) -> rds_20140815_models.ModifyRCVClusterResponse:
|
|
46594
|
+
"""
|
|
46595
|
+
@summary 修改RCVCluster
|
|
46596
|
+
|
|
46597
|
+
@param request: ModifyRCVClusterRequest
|
|
46598
|
+
@return: ModifyRCVClusterResponse
|
|
46599
|
+
"""
|
|
46600
|
+
runtime = util_models.RuntimeOptions()
|
|
46601
|
+
return await self.modify_rcvcluster_with_options_async(request, runtime)
|
|
46602
|
+
|
|
44327
46603
|
def modify_read_write_splitting_connection_with_options(
|
|
44328
46604
|
self,
|
|
44329
46605
|
request: rds_20140815_models.ModifyReadWriteSplittingConnectionRequest,
|
|
@@ -45744,62 +48020,134 @@ class Client(OpenApiClient):
|
|
|
45744
48020
|
)
|
|
45745
48021
|
return TeaCore.from_map(
|
|
45746
48022
|
rds_20140815_models.PreCheckCreateOrderForDeleteDBNodesResponse(),
|
|
45747
|
-
self.call_api(params, req, runtime)
|
|
48023
|
+
self.call_api(params, req, runtime)
|
|
48024
|
+
)
|
|
48025
|
+
|
|
48026
|
+
async def pre_check_create_order_for_delete_dbnodes_with_options_async(
|
|
48027
|
+
self,
|
|
48028
|
+
tmp_req: rds_20140815_models.PreCheckCreateOrderForDeleteDBNodesRequest,
|
|
48029
|
+
runtime: util_models.RuntimeOptions,
|
|
48030
|
+
) -> rds_20140815_models.PreCheckCreateOrderForDeleteDBNodesResponse:
|
|
48031
|
+
"""
|
|
48032
|
+
@summary 删除节点创建订单预检查
|
|
48033
|
+
|
|
48034
|
+
@param tmp_req: PreCheckCreateOrderForDeleteDBNodesRequest
|
|
48035
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
48036
|
+
@return: PreCheckCreateOrderForDeleteDBNodesResponse
|
|
48037
|
+
"""
|
|
48038
|
+
UtilClient.validate_model(tmp_req)
|
|
48039
|
+
request = rds_20140815_models.PreCheckCreateOrderForDeleteDBNodesShrinkRequest()
|
|
48040
|
+
OpenApiUtilClient.convert(tmp_req, request)
|
|
48041
|
+
if not UtilClient.is_unset(tmp_req.dbnode_id):
|
|
48042
|
+
request.dbnode_id_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.dbnode_id, 'DBNodeId', 'json')
|
|
48043
|
+
query = {}
|
|
48044
|
+
if not UtilClient.is_unset(request.auto_pay):
|
|
48045
|
+
query['AutoPay'] = request.auto_pay
|
|
48046
|
+
if not UtilClient.is_unset(request.business_info):
|
|
48047
|
+
query['BusinessInfo'] = request.business_info
|
|
48048
|
+
if not UtilClient.is_unset(request.client_token):
|
|
48049
|
+
query['ClientToken'] = request.client_token
|
|
48050
|
+
if not UtilClient.is_unset(request.commodity_code):
|
|
48051
|
+
query['CommodityCode'] = request.commodity_code
|
|
48052
|
+
if not UtilClient.is_unset(request.dbinstance_id):
|
|
48053
|
+
query['DBInstanceId'] = request.dbinstance_id
|
|
48054
|
+
if not UtilClient.is_unset(request.dbnode_id_shrink):
|
|
48055
|
+
query['DBNodeId'] = request.dbnode_id_shrink
|
|
48056
|
+
if not UtilClient.is_unset(request.engine_version):
|
|
48057
|
+
query['EngineVersion'] = request.engine_version
|
|
48058
|
+
if not UtilClient.is_unset(request.node_type):
|
|
48059
|
+
query['NodeType'] = request.node_type
|
|
48060
|
+
if not UtilClient.is_unset(request.owner_id):
|
|
48061
|
+
query['OwnerId'] = request.owner_id
|
|
48062
|
+
if not UtilClient.is_unset(request.promotion_code):
|
|
48063
|
+
query['PromotionCode'] = request.promotion_code
|
|
48064
|
+
if not UtilClient.is_unset(request.region_id):
|
|
48065
|
+
query['RegionId'] = request.region_id
|
|
48066
|
+
if not UtilClient.is_unset(request.resource):
|
|
48067
|
+
query['Resource'] = request.resource
|
|
48068
|
+
if not UtilClient.is_unset(request.resource_owner_account):
|
|
48069
|
+
query['ResourceOwnerAccount'] = request.resource_owner_account
|
|
48070
|
+
if not UtilClient.is_unset(request.resource_owner_id):
|
|
48071
|
+
query['ResourceOwnerId'] = request.resource_owner_id
|
|
48072
|
+
if not UtilClient.is_unset(request.zone_id):
|
|
48073
|
+
query['ZoneId'] = request.zone_id
|
|
48074
|
+
req = open_api_models.OpenApiRequest(
|
|
48075
|
+
query=OpenApiUtilClient.query(query)
|
|
48076
|
+
)
|
|
48077
|
+
params = open_api_models.Params(
|
|
48078
|
+
action='PreCheckCreateOrderForDeleteDBNodes',
|
|
48079
|
+
version='2014-08-15',
|
|
48080
|
+
protocol='HTTPS',
|
|
48081
|
+
pathname='/',
|
|
48082
|
+
method='POST',
|
|
48083
|
+
auth_type='AK',
|
|
48084
|
+
style='RPC',
|
|
48085
|
+
req_body_type='formData',
|
|
48086
|
+
body_type='json'
|
|
48087
|
+
)
|
|
48088
|
+
return TeaCore.from_map(
|
|
48089
|
+
rds_20140815_models.PreCheckCreateOrderForDeleteDBNodesResponse(),
|
|
48090
|
+
await self.call_api_async(params, req, runtime)
|
|
45748
48091
|
)
|
|
45749
48092
|
|
|
45750
|
-
|
|
48093
|
+
def pre_check_create_order_for_delete_dbnodes(
|
|
45751
48094
|
self,
|
|
45752
|
-
|
|
45753
|
-
runtime: util_models.RuntimeOptions,
|
|
48095
|
+
request: rds_20140815_models.PreCheckCreateOrderForDeleteDBNodesRequest,
|
|
45754
48096
|
) -> rds_20140815_models.PreCheckCreateOrderForDeleteDBNodesResponse:
|
|
45755
48097
|
"""
|
|
45756
48098
|
@summary 删除节点创建订单预检查
|
|
45757
48099
|
|
|
45758
|
-
@param
|
|
45759
|
-
@param runtime: runtime options for this request RuntimeOptions
|
|
48100
|
+
@param request: PreCheckCreateOrderForDeleteDBNodesRequest
|
|
45760
48101
|
@return: PreCheckCreateOrderForDeleteDBNodesResponse
|
|
45761
48102
|
"""
|
|
45762
|
-
|
|
45763
|
-
|
|
45764
|
-
|
|
45765
|
-
|
|
45766
|
-
|
|
48103
|
+
runtime = util_models.RuntimeOptions()
|
|
48104
|
+
return self.pre_check_create_order_for_delete_dbnodes_with_options(request, runtime)
|
|
48105
|
+
|
|
48106
|
+
async def pre_check_create_order_for_delete_dbnodes_async(
|
|
48107
|
+
self,
|
|
48108
|
+
request: rds_20140815_models.PreCheckCreateOrderForDeleteDBNodesRequest,
|
|
48109
|
+
) -> rds_20140815_models.PreCheckCreateOrderForDeleteDBNodesResponse:
|
|
48110
|
+
"""
|
|
48111
|
+
@summary 删除节点创建订单预检查
|
|
48112
|
+
|
|
48113
|
+
@param request: PreCheckCreateOrderForDeleteDBNodesRequest
|
|
48114
|
+
@return: PreCheckCreateOrderForDeleteDBNodesResponse
|
|
48115
|
+
"""
|
|
48116
|
+
runtime = util_models.RuntimeOptions()
|
|
48117
|
+
return await self.pre_check_create_order_for_delete_dbnodes_with_options_async(request, runtime)
|
|
48118
|
+
|
|
48119
|
+
def precheck_duck_dbdependency_with_options(
|
|
48120
|
+
self,
|
|
48121
|
+
request: rds_20140815_models.PrecheckDuckDBDependencyRequest,
|
|
48122
|
+
runtime: util_models.RuntimeOptions,
|
|
48123
|
+
) -> rds_20140815_models.PrecheckDuckDBDependencyResponse:
|
|
48124
|
+
"""
|
|
48125
|
+
@summary Checks whether DuckDB-based analytical instances can be created for the specified RDS for PostgreSQL primary instance. If DuckDB-based analytical instances cannot be created, this operation returns the failure causes and provides solutions or recommended specification values.
|
|
48126
|
+
|
|
48127
|
+
@description ### [](#)Supported database engine
|
|
48128
|
+
RDS PostgreSQL
|
|
48129
|
+
### [](#)References
|
|
48130
|
+
[DuckDB-based analytical instance](https://help.aliyun.com/document_detail/2977241.html)
|
|
48131
|
+
|
|
48132
|
+
@param request: PrecheckDuckDBDependencyRequest
|
|
48133
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
48134
|
+
@return: PrecheckDuckDBDependencyResponse
|
|
48135
|
+
"""
|
|
48136
|
+
UtilClient.validate_model(request)
|
|
45767
48137
|
query = {}
|
|
45768
|
-
if not UtilClient.is_unset(request.auto_pay):
|
|
45769
|
-
query['AutoPay'] = request.auto_pay
|
|
45770
|
-
if not UtilClient.is_unset(request.business_info):
|
|
45771
|
-
query['BusinessInfo'] = request.business_info
|
|
45772
|
-
if not UtilClient.is_unset(request.client_token):
|
|
45773
|
-
query['ClientToken'] = request.client_token
|
|
45774
|
-
if not UtilClient.is_unset(request.commodity_code):
|
|
45775
|
-
query['CommodityCode'] = request.commodity_code
|
|
45776
48138
|
if not UtilClient.is_unset(request.dbinstance_id):
|
|
45777
48139
|
query['DBInstanceId'] = request.dbinstance_id
|
|
45778
|
-
if not UtilClient.is_unset(request.dbnode_id_shrink):
|
|
45779
|
-
query['DBNodeId'] = request.dbnode_id_shrink
|
|
45780
|
-
if not UtilClient.is_unset(request.engine_version):
|
|
45781
|
-
query['EngineVersion'] = request.engine_version
|
|
45782
|
-
if not UtilClient.is_unset(request.node_type):
|
|
45783
|
-
query['NodeType'] = request.node_type
|
|
45784
48140
|
if not UtilClient.is_unset(request.owner_id):
|
|
45785
48141
|
query['OwnerId'] = request.owner_id
|
|
45786
|
-
if not UtilClient.is_unset(request.promotion_code):
|
|
45787
|
-
query['PromotionCode'] = request.promotion_code
|
|
45788
|
-
if not UtilClient.is_unset(request.region_id):
|
|
45789
|
-
query['RegionId'] = request.region_id
|
|
45790
|
-
if not UtilClient.is_unset(request.resource):
|
|
45791
|
-
query['Resource'] = request.resource
|
|
45792
48142
|
if not UtilClient.is_unset(request.resource_owner_account):
|
|
45793
48143
|
query['ResourceOwnerAccount'] = request.resource_owner_account
|
|
45794
48144
|
if not UtilClient.is_unset(request.resource_owner_id):
|
|
45795
48145
|
query['ResourceOwnerId'] = request.resource_owner_id
|
|
45796
|
-
if not UtilClient.is_unset(request.zone_id):
|
|
45797
|
-
query['ZoneId'] = request.zone_id
|
|
45798
48146
|
req = open_api_models.OpenApiRequest(
|
|
45799
48147
|
query=OpenApiUtilClient.query(query)
|
|
45800
48148
|
)
|
|
45801
48149
|
params = open_api_models.Params(
|
|
45802
|
-
action='
|
|
48150
|
+
action='PrecheckDuckDBDependency',
|
|
45803
48151
|
version='2014-08-15',
|
|
45804
48152
|
protocol='HTTPS',
|
|
45805
48153
|
pathname='/',
|
|
@@ -45810,35 +48158,91 @@ class Client(OpenApiClient):
|
|
|
45810
48158
|
body_type='json'
|
|
45811
48159
|
)
|
|
45812
48160
|
return TeaCore.from_map(
|
|
45813
|
-
rds_20140815_models.
|
|
48161
|
+
rds_20140815_models.PrecheckDuckDBDependencyResponse(),
|
|
48162
|
+
self.call_api(params, req, runtime)
|
|
48163
|
+
)
|
|
48164
|
+
|
|
48165
|
+
async def precheck_duck_dbdependency_with_options_async(
|
|
48166
|
+
self,
|
|
48167
|
+
request: rds_20140815_models.PrecheckDuckDBDependencyRequest,
|
|
48168
|
+
runtime: util_models.RuntimeOptions,
|
|
48169
|
+
) -> rds_20140815_models.PrecheckDuckDBDependencyResponse:
|
|
48170
|
+
"""
|
|
48171
|
+
@summary Checks whether DuckDB-based analytical instances can be created for the specified RDS for PostgreSQL primary instance. If DuckDB-based analytical instances cannot be created, this operation returns the failure causes and provides solutions or recommended specification values.
|
|
48172
|
+
|
|
48173
|
+
@description ### [](#)Supported database engine
|
|
48174
|
+
RDS PostgreSQL
|
|
48175
|
+
### [](#)References
|
|
48176
|
+
[DuckDB-based analytical instance](https://help.aliyun.com/document_detail/2977241.html)
|
|
48177
|
+
|
|
48178
|
+
@param request: PrecheckDuckDBDependencyRequest
|
|
48179
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
48180
|
+
@return: PrecheckDuckDBDependencyResponse
|
|
48181
|
+
"""
|
|
48182
|
+
UtilClient.validate_model(request)
|
|
48183
|
+
query = {}
|
|
48184
|
+
if not UtilClient.is_unset(request.dbinstance_id):
|
|
48185
|
+
query['DBInstanceId'] = request.dbinstance_id
|
|
48186
|
+
if not UtilClient.is_unset(request.owner_id):
|
|
48187
|
+
query['OwnerId'] = request.owner_id
|
|
48188
|
+
if not UtilClient.is_unset(request.resource_owner_account):
|
|
48189
|
+
query['ResourceOwnerAccount'] = request.resource_owner_account
|
|
48190
|
+
if not UtilClient.is_unset(request.resource_owner_id):
|
|
48191
|
+
query['ResourceOwnerId'] = request.resource_owner_id
|
|
48192
|
+
req = open_api_models.OpenApiRequest(
|
|
48193
|
+
query=OpenApiUtilClient.query(query)
|
|
48194
|
+
)
|
|
48195
|
+
params = open_api_models.Params(
|
|
48196
|
+
action='PrecheckDuckDBDependency',
|
|
48197
|
+
version='2014-08-15',
|
|
48198
|
+
protocol='HTTPS',
|
|
48199
|
+
pathname='/',
|
|
48200
|
+
method='POST',
|
|
48201
|
+
auth_type='AK',
|
|
48202
|
+
style='RPC',
|
|
48203
|
+
req_body_type='formData',
|
|
48204
|
+
body_type='json'
|
|
48205
|
+
)
|
|
48206
|
+
return TeaCore.from_map(
|
|
48207
|
+
rds_20140815_models.PrecheckDuckDBDependencyResponse(),
|
|
45814
48208
|
await self.call_api_async(params, req, runtime)
|
|
45815
48209
|
)
|
|
45816
48210
|
|
|
45817
|
-
def
|
|
48211
|
+
def precheck_duck_dbdependency(
|
|
45818
48212
|
self,
|
|
45819
|
-
request: rds_20140815_models.
|
|
45820
|
-
) -> rds_20140815_models.
|
|
48213
|
+
request: rds_20140815_models.PrecheckDuckDBDependencyRequest,
|
|
48214
|
+
) -> rds_20140815_models.PrecheckDuckDBDependencyResponse:
|
|
45821
48215
|
"""
|
|
45822
|
-
@summary
|
|
48216
|
+
@summary Checks whether DuckDB-based analytical instances can be created for the specified RDS for PostgreSQL primary instance. If DuckDB-based analytical instances cannot be created, this operation returns the failure causes and provides solutions or recommended specification values.
|
|
45823
48217
|
|
|
45824
|
-
@
|
|
45825
|
-
|
|
48218
|
+
@description ### [](#)Supported database engine
|
|
48219
|
+
RDS PostgreSQL
|
|
48220
|
+
### [](#)References
|
|
48221
|
+
[DuckDB-based analytical instance](https://help.aliyun.com/document_detail/2977241.html)
|
|
48222
|
+
|
|
48223
|
+
@param request: PrecheckDuckDBDependencyRequest
|
|
48224
|
+
@return: PrecheckDuckDBDependencyResponse
|
|
45826
48225
|
"""
|
|
45827
48226
|
runtime = util_models.RuntimeOptions()
|
|
45828
|
-
return self.
|
|
48227
|
+
return self.precheck_duck_dbdependency_with_options(request, runtime)
|
|
45829
48228
|
|
|
45830
|
-
async def
|
|
48229
|
+
async def precheck_duck_dbdependency_async(
|
|
45831
48230
|
self,
|
|
45832
|
-
request: rds_20140815_models.
|
|
45833
|
-
) -> rds_20140815_models.
|
|
48231
|
+
request: rds_20140815_models.PrecheckDuckDBDependencyRequest,
|
|
48232
|
+
) -> rds_20140815_models.PrecheckDuckDBDependencyResponse:
|
|
45834
48233
|
"""
|
|
45835
|
-
@summary
|
|
48234
|
+
@summary Checks whether DuckDB-based analytical instances can be created for the specified RDS for PostgreSQL primary instance. If DuckDB-based analytical instances cannot be created, this operation returns the failure causes and provides solutions or recommended specification values.
|
|
45836
48235
|
|
|
45837
|
-
@
|
|
45838
|
-
|
|
48236
|
+
@description ### [](#)Supported database engine
|
|
48237
|
+
RDS PostgreSQL
|
|
48238
|
+
### [](#)References
|
|
48239
|
+
[DuckDB-based analytical instance](https://help.aliyun.com/document_detail/2977241.html)
|
|
48240
|
+
|
|
48241
|
+
@param request: PrecheckDuckDBDependencyRequest
|
|
48242
|
+
@return: PrecheckDuckDBDependencyResponse
|
|
45839
48243
|
"""
|
|
45840
48244
|
runtime = util_models.RuntimeOptions()
|
|
45841
|
-
return await self.
|
|
48245
|
+
return await self.precheck_duck_dbdependency_with_options_async(request, runtime)
|
|
45842
48246
|
|
|
45843
48247
|
def purge_dbinstance_log_with_options(
|
|
45844
48248
|
self,
|
|
@@ -46256,6 +48660,106 @@ class Client(OpenApiClient):
|
|
|
46256
48660
|
runtime = util_models.RuntimeOptions()
|
|
46257
48661
|
return await self.query_recommend_by_code_with_options_async(request, runtime)
|
|
46258
48662
|
|
|
48663
|
+
def rds_custom_init_with_options(
|
|
48664
|
+
self,
|
|
48665
|
+
request: rds_20140815_models.RdsCustomInitRequest,
|
|
48666
|
+
runtime: util_models.RuntimeOptions,
|
|
48667
|
+
) -> rds_20140815_models.RdsCustomInitResponse:
|
|
48668
|
+
"""
|
|
48669
|
+
@summary 创建服务关联角色和开租
|
|
48670
|
+
|
|
48671
|
+
@param request: RdsCustomInitRequest
|
|
48672
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
48673
|
+
@return: RdsCustomInitResponse
|
|
48674
|
+
"""
|
|
48675
|
+
UtilClient.validate_model(request)
|
|
48676
|
+
query = {}
|
|
48677
|
+
if not UtilClient.is_unset(request.region_id):
|
|
48678
|
+
query['RegionId'] = request.region_id
|
|
48679
|
+
if not UtilClient.is_unset(request.service_linked_role):
|
|
48680
|
+
query['ServiceLinkedRole'] = request.service_linked_role
|
|
48681
|
+
req = open_api_models.OpenApiRequest(
|
|
48682
|
+
query=OpenApiUtilClient.query(query)
|
|
48683
|
+
)
|
|
48684
|
+
params = open_api_models.Params(
|
|
48685
|
+
action='RdsCustomInit',
|
|
48686
|
+
version='2014-08-15',
|
|
48687
|
+
protocol='HTTPS',
|
|
48688
|
+
pathname='/',
|
|
48689
|
+
method='POST',
|
|
48690
|
+
auth_type='AK',
|
|
48691
|
+
style='RPC',
|
|
48692
|
+
req_body_type='formData',
|
|
48693
|
+
body_type='json'
|
|
48694
|
+
)
|
|
48695
|
+
return TeaCore.from_map(
|
|
48696
|
+
rds_20140815_models.RdsCustomInitResponse(),
|
|
48697
|
+
self.call_api(params, req, runtime)
|
|
48698
|
+
)
|
|
48699
|
+
|
|
48700
|
+
async def rds_custom_init_with_options_async(
|
|
48701
|
+
self,
|
|
48702
|
+
request: rds_20140815_models.RdsCustomInitRequest,
|
|
48703
|
+
runtime: util_models.RuntimeOptions,
|
|
48704
|
+
) -> rds_20140815_models.RdsCustomInitResponse:
|
|
48705
|
+
"""
|
|
48706
|
+
@summary 创建服务关联角色和开租
|
|
48707
|
+
|
|
48708
|
+
@param request: RdsCustomInitRequest
|
|
48709
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
48710
|
+
@return: RdsCustomInitResponse
|
|
48711
|
+
"""
|
|
48712
|
+
UtilClient.validate_model(request)
|
|
48713
|
+
query = {}
|
|
48714
|
+
if not UtilClient.is_unset(request.region_id):
|
|
48715
|
+
query['RegionId'] = request.region_id
|
|
48716
|
+
if not UtilClient.is_unset(request.service_linked_role):
|
|
48717
|
+
query['ServiceLinkedRole'] = request.service_linked_role
|
|
48718
|
+
req = open_api_models.OpenApiRequest(
|
|
48719
|
+
query=OpenApiUtilClient.query(query)
|
|
48720
|
+
)
|
|
48721
|
+
params = open_api_models.Params(
|
|
48722
|
+
action='RdsCustomInit',
|
|
48723
|
+
version='2014-08-15',
|
|
48724
|
+
protocol='HTTPS',
|
|
48725
|
+
pathname='/',
|
|
48726
|
+
method='POST',
|
|
48727
|
+
auth_type='AK',
|
|
48728
|
+
style='RPC',
|
|
48729
|
+
req_body_type='formData',
|
|
48730
|
+
body_type='json'
|
|
48731
|
+
)
|
|
48732
|
+
return TeaCore.from_map(
|
|
48733
|
+
rds_20140815_models.RdsCustomInitResponse(),
|
|
48734
|
+
await self.call_api_async(params, req, runtime)
|
|
48735
|
+
)
|
|
48736
|
+
|
|
48737
|
+
def rds_custom_init(
|
|
48738
|
+
self,
|
|
48739
|
+
request: rds_20140815_models.RdsCustomInitRequest,
|
|
48740
|
+
) -> rds_20140815_models.RdsCustomInitResponse:
|
|
48741
|
+
"""
|
|
48742
|
+
@summary 创建服务关联角色和开租
|
|
48743
|
+
|
|
48744
|
+
@param request: RdsCustomInitRequest
|
|
48745
|
+
@return: RdsCustomInitResponse
|
|
48746
|
+
"""
|
|
48747
|
+
runtime = util_models.RuntimeOptions()
|
|
48748
|
+
return self.rds_custom_init_with_options(request, runtime)
|
|
48749
|
+
|
|
48750
|
+
async def rds_custom_init_async(
|
|
48751
|
+
self,
|
|
48752
|
+
request: rds_20140815_models.RdsCustomInitRequest,
|
|
48753
|
+
) -> rds_20140815_models.RdsCustomInitResponse:
|
|
48754
|
+
"""
|
|
48755
|
+
@summary 创建服务关联角色和开租
|
|
48756
|
+
|
|
48757
|
+
@param request: RdsCustomInitRequest
|
|
48758
|
+
@return: RdsCustomInitResponse
|
|
48759
|
+
"""
|
|
48760
|
+
runtime = util_models.RuntimeOptions()
|
|
48761
|
+
return await self.rds_custom_init_with_options_async(request, runtime)
|
|
48762
|
+
|
|
46259
48763
|
def reboot_rcinstance_with_options(
|
|
46260
48764
|
self,
|
|
46261
48765
|
request: rds_20140815_models.RebootRCInstanceRequest,
|
|
@@ -46924,13 +49428,102 @@ class Client(OpenApiClient):
|
|
|
46924
49428
|
)
|
|
46925
49429
|
return TeaCore.from_map(
|
|
46926
49430
|
rds_20140815_models.RecoveryDBInstanceResponse(),
|
|
46927
|
-
self.call_api(params, req, runtime)
|
|
49431
|
+
self.call_api(params, req, runtime)
|
|
49432
|
+
)
|
|
49433
|
+
|
|
49434
|
+
async def recovery_dbinstance_with_options_async(
|
|
49435
|
+
self,
|
|
49436
|
+
request: rds_20140815_models.RecoveryDBInstanceRequest,
|
|
49437
|
+
runtime: util_models.RuntimeOptions,
|
|
49438
|
+
) -> rds_20140815_models.RecoveryDBInstanceResponse:
|
|
49439
|
+
"""
|
|
49440
|
+
@summary Restores backup data of an ApsaraDB RDS for SQL Server instance to an existing instance or a new instance.
|
|
49441
|
+
|
|
49442
|
+
@description ### [](#)Supported database engines
|
|
49443
|
+
SQL Server 2012 or later
|
|
49444
|
+
### [](#)References
|
|
49445
|
+
> Before you call this operation, carefully read the following documentation. Make sure that you fully understand the prerequisites and impacts for calling this operation.
|
|
49446
|
+
[Restore the data of an ApsaraDB RDS for SQL Server instance](https://help.aliyun.com/document_detail/95722.html)
|
|
49447
|
+
|
|
49448
|
+
@param request: RecoveryDBInstanceRequest
|
|
49449
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
49450
|
+
@return: RecoveryDBInstanceResponse
|
|
49451
|
+
"""
|
|
49452
|
+
UtilClient.validate_model(request)
|
|
49453
|
+
query = {}
|
|
49454
|
+
if not UtilClient.is_unset(request.backup_id):
|
|
49455
|
+
query['BackupId'] = request.backup_id
|
|
49456
|
+
if not UtilClient.is_unset(request.dbinstance_class):
|
|
49457
|
+
query['DBInstanceClass'] = request.dbinstance_class
|
|
49458
|
+
if not UtilClient.is_unset(request.dbinstance_id):
|
|
49459
|
+
query['DBInstanceId'] = request.dbinstance_id
|
|
49460
|
+
if not UtilClient.is_unset(request.dbinstance_storage):
|
|
49461
|
+
query['DBInstanceStorage'] = request.dbinstance_storage
|
|
49462
|
+
if not UtilClient.is_unset(request.dbinstance_storage_type):
|
|
49463
|
+
query['DBInstanceStorageType'] = request.dbinstance_storage_type
|
|
49464
|
+
if not UtilClient.is_unset(request.db_names):
|
|
49465
|
+
query['DbNames'] = request.db_names
|
|
49466
|
+
if not UtilClient.is_unset(request.instance_network_type):
|
|
49467
|
+
query['InstanceNetworkType'] = request.instance_network_type
|
|
49468
|
+
if not UtilClient.is_unset(request.pay_type):
|
|
49469
|
+
query['PayType'] = request.pay_type
|
|
49470
|
+
if not UtilClient.is_unset(request.period):
|
|
49471
|
+
query['Period'] = request.period
|
|
49472
|
+
if not UtilClient.is_unset(request.private_ip_address):
|
|
49473
|
+
query['PrivateIpAddress'] = request.private_ip_address
|
|
49474
|
+
if not UtilClient.is_unset(request.resource_owner_id):
|
|
49475
|
+
query['ResourceOwnerId'] = request.resource_owner_id
|
|
49476
|
+
if not UtilClient.is_unset(request.restore_time):
|
|
49477
|
+
query['RestoreTime'] = request.restore_time
|
|
49478
|
+
if not UtilClient.is_unset(request.target_dbinstance_id):
|
|
49479
|
+
query['TargetDBInstanceId'] = request.target_dbinstance_id
|
|
49480
|
+
if not UtilClient.is_unset(request.used_time):
|
|
49481
|
+
query['UsedTime'] = request.used_time
|
|
49482
|
+
if not UtilClient.is_unset(request.vpcid):
|
|
49483
|
+
query['VPCId'] = request.vpcid
|
|
49484
|
+
if not UtilClient.is_unset(request.v_switch_id):
|
|
49485
|
+
query['VSwitchId'] = request.v_switch_id
|
|
49486
|
+
req = open_api_models.OpenApiRequest(
|
|
49487
|
+
query=OpenApiUtilClient.query(query)
|
|
49488
|
+
)
|
|
49489
|
+
params = open_api_models.Params(
|
|
49490
|
+
action='RecoveryDBInstance',
|
|
49491
|
+
version='2014-08-15',
|
|
49492
|
+
protocol='HTTPS',
|
|
49493
|
+
pathname='/',
|
|
49494
|
+
method='POST',
|
|
49495
|
+
auth_type='AK',
|
|
49496
|
+
style='RPC',
|
|
49497
|
+
req_body_type='formData',
|
|
49498
|
+
body_type='json'
|
|
49499
|
+
)
|
|
49500
|
+
return TeaCore.from_map(
|
|
49501
|
+
rds_20140815_models.RecoveryDBInstanceResponse(),
|
|
49502
|
+
await self.call_api_async(params, req, runtime)
|
|
46928
49503
|
)
|
|
46929
49504
|
|
|
46930
|
-
|
|
49505
|
+
def recovery_dbinstance(
|
|
49506
|
+
self,
|
|
49507
|
+
request: rds_20140815_models.RecoveryDBInstanceRequest,
|
|
49508
|
+
) -> rds_20140815_models.RecoveryDBInstanceResponse:
|
|
49509
|
+
"""
|
|
49510
|
+
@summary Restores backup data of an ApsaraDB RDS for SQL Server instance to an existing instance or a new instance.
|
|
49511
|
+
|
|
49512
|
+
@description ### [](#)Supported database engines
|
|
49513
|
+
SQL Server 2012 or later
|
|
49514
|
+
### [](#)References
|
|
49515
|
+
> Before you call this operation, carefully read the following documentation. Make sure that you fully understand the prerequisites and impacts for calling this operation.
|
|
49516
|
+
[Restore the data of an ApsaraDB RDS for SQL Server instance](https://help.aliyun.com/document_detail/95722.html)
|
|
49517
|
+
|
|
49518
|
+
@param request: RecoveryDBInstanceRequest
|
|
49519
|
+
@return: RecoveryDBInstanceResponse
|
|
49520
|
+
"""
|
|
49521
|
+
runtime = util_models.RuntimeOptions()
|
|
49522
|
+
return self.recovery_dbinstance_with_options(request, runtime)
|
|
49523
|
+
|
|
49524
|
+
async def recovery_dbinstance_async(
|
|
46931
49525
|
self,
|
|
46932
49526
|
request: rds_20140815_models.RecoveryDBInstanceRequest,
|
|
46933
|
-
runtime: util_models.RuntimeOptions,
|
|
46934
49527
|
) -> rds_20140815_models.RecoveryDBInstanceResponse:
|
|
46935
49528
|
"""
|
|
46936
49529
|
@summary Restores backup data of an ApsaraDB RDS for SQL Server instance to an existing instance or a new instance.
|
|
@@ -46942,48 +49535,44 @@ class Client(OpenApiClient):
|
|
|
46942
49535
|
[Restore the data of an ApsaraDB RDS for SQL Server instance](https://help.aliyun.com/document_detail/95722.html)
|
|
46943
49536
|
|
|
46944
49537
|
@param request: RecoveryDBInstanceRequest
|
|
46945
|
-
@param runtime: runtime options for this request RuntimeOptions
|
|
46946
49538
|
@return: RecoveryDBInstanceResponse
|
|
46947
49539
|
"""
|
|
49540
|
+
runtime = util_models.RuntimeOptions()
|
|
49541
|
+
return await self.recovery_dbinstance_with_options_async(request, runtime)
|
|
49542
|
+
|
|
49543
|
+
def redeploy_rcinstance_with_options(
|
|
49544
|
+
self,
|
|
49545
|
+
request: rds_20140815_models.RedeployRCInstanceRequest,
|
|
49546
|
+
runtime: util_models.RuntimeOptions,
|
|
49547
|
+
) -> rds_20140815_models.RedeployRCInstanceResponse:
|
|
49548
|
+
"""
|
|
49549
|
+
@summary Redeploys an RDS Custom instance when the instance receives a system event notification.
|
|
49550
|
+
|
|
49551
|
+
@description RedeployInstance is an *asynchronous** operation. It migrates data before it restarts the instance. If the instance is successfully redeployed, it enters the Running state. If the instance fails to be redeployed, it returns to the original physical server and the state before the redeployment.
|
|
49552
|
+
When you call this operation, take note of the following items:
|
|
49553
|
+
The instance must be in the Running or Stopped state. After the instance is redeployed, the state of the instance has the following changes:
|
|
49554
|
+
If the instance is in the Running state before redeployment, the instance enters the Stopped state.
|
|
49555
|
+
If the instance is in the Stopped state before redeployment, the instance enters the Starting state.
|
|
49556
|
+
If an instance receives notifications about simulated events that are created by calling the CreateSimulatedSystemEvent operation for the instance, you cannot call this operation to redeploy the instance.
|
|
49557
|
+
The following table lists the types and states of events that you can handle by calling the RedeployInstance operation.
|
|
49558
|
+
Instance redeployment due to system maintenance: SystemMaintenance.Redeploy. The event state is Inquiring or Scheduled.
|
|
49559
|
+
Instance redeployment due to system failures: SystemFailure.Redeploy. The event state is Inquiring.
|
|
49560
|
+
|
|
49561
|
+
@param request: RedeployRCInstanceRequest
|
|
49562
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
49563
|
+
@return: RedeployRCInstanceResponse
|
|
49564
|
+
"""
|
|
46948
49565
|
UtilClient.validate_model(request)
|
|
46949
49566
|
query = {}
|
|
46950
|
-
if not UtilClient.is_unset(request.
|
|
46951
|
-
query['
|
|
46952
|
-
if not UtilClient.is_unset(request.
|
|
46953
|
-
query['
|
|
46954
|
-
if not UtilClient.is_unset(request.dbinstance_id):
|
|
46955
|
-
query['DBInstanceId'] = request.dbinstance_id
|
|
46956
|
-
if not UtilClient.is_unset(request.dbinstance_storage):
|
|
46957
|
-
query['DBInstanceStorage'] = request.dbinstance_storage
|
|
46958
|
-
if not UtilClient.is_unset(request.dbinstance_storage_type):
|
|
46959
|
-
query['DBInstanceStorageType'] = request.dbinstance_storage_type
|
|
46960
|
-
if not UtilClient.is_unset(request.db_names):
|
|
46961
|
-
query['DbNames'] = request.db_names
|
|
46962
|
-
if not UtilClient.is_unset(request.instance_network_type):
|
|
46963
|
-
query['InstanceNetworkType'] = request.instance_network_type
|
|
46964
|
-
if not UtilClient.is_unset(request.pay_type):
|
|
46965
|
-
query['PayType'] = request.pay_type
|
|
46966
|
-
if not UtilClient.is_unset(request.period):
|
|
46967
|
-
query['Period'] = request.period
|
|
46968
|
-
if not UtilClient.is_unset(request.private_ip_address):
|
|
46969
|
-
query['PrivateIpAddress'] = request.private_ip_address
|
|
46970
|
-
if not UtilClient.is_unset(request.resource_owner_id):
|
|
46971
|
-
query['ResourceOwnerId'] = request.resource_owner_id
|
|
46972
|
-
if not UtilClient.is_unset(request.restore_time):
|
|
46973
|
-
query['RestoreTime'] = request.restore_time
|
|
46974
|
-
if not UtilClient.is_unset(request.target_dbinstance_id):
|
|
46975
|
-
query['TargetDBInstanceId'] = request.target_dbinstance_id
|
|
46976
|
-
if not UtilClient.is_unset(request.used_time):
|
|
46977
|
-
query['UsedTime'] = request.used_time
|
|
46978
|
-
if not UtilClient.is_unset(request.vpcid):
|
|
46979
|
-
query['VPCId'] = request.vpcid
|
|
46980
|
-
if not UtilClient.is_unset(request.v_switch_id):
|
|
46981
|
-
query['VSwitchId'] = request.v_switch_id
|
|
49567
|
+
if not UtilClient.is_unset(request.force_stop):
|
|
49568
|
+
query['ForceStop'] = request.force_stop
|
|
49569
|
+
if not UtilClient.is_unset(request.instance_id):
|
|
49570
|
+
query['InstanceId'] = request.instance_id
|
|
46982
49571
|
req = open_api_models.OpenApiRequest(
|
|
46983
49572
|
query=OpenApiUtilClient.query(query)
|
|
46984
49573
|
)
|
|
46985
49574
|
params = open_api_models.Params(
|
|
46986
|
-
action='
|
|
49575
|
+
action='RedeployRCInstance',
|
|
46987
49576
|
version='2014-08-15',
|
|
46988
49577
|
protocol='HTTPS',
|
|
46989
49578
|
pathname='/',
|
|
@@ -46994,47 +49583,102 @@ class Client(OpenApiClient):
|
|
|
46994
49583
|
body_type='json'
|
|
46995
49584
|
)
|
|
46996
49585
|
return TeaCore.from_map(
|
|
46997
|
-
rds_20140815_models.
|
|
49586
|
+
rds_20140815_models.RedeployRCInstanceResponse(),
|
|
49587
|
+
self.call_api(params, req, runtime)
|
|
49588
|
+
)
|
|
49589
|
+
|
|
49590
|
+
async def redeploy_rcinstance_with_options_async(
|
|
49591
|
+
self,
|
|
49592
|
+
request: rds_20140815_models.RedeployRCInstanceRequest,
|
|
49593
|
+
runtime: util_models.RuntimeOptions,
|
|
49594
|
+
) -> rds_20140815_models.RedeployRCInstanceResponse:
|
|
49595
|
+
"""
|
|
49596
|
+
@summary Redeploys an RDS Custom instance when the instance receives a system event notification.
|
|
49597
|
+
|
|
49598
|
+
@description RedeployInstance is an *asynchronous** operation. It migrates data before it restarts the instance. If the instance is successfully redeployed, it enters the Running state. If the instance fails to be redeployed, it returns to the original physical server and the state before the redeployment.
|
|
49599
|
+
When you call this operation, take note of the following items:
|
|
49600
|
+
The instance must be in the Running or Stopped state. After the instance is redeployed, the state of the instance has the following changes:
|
|
49601
|
+
If the instance is in the Running state before redeployment, the instance enters the Stopped state.
|
|
49602
|
+
If the instance is in the Stopped state before redeployment, the instance enters the Starting state.
|
|
49603
|
+
If an instance receives notifications about simulated events that are created by calling the CreateSimulatedSystemEvent operation for the instance, you cannot call this operation to redeploy the instance.
|
|
49604
|
+
The following table lists the types and states of events that you can handle by calling the RedeployInstance operation.
|
|
49605
|
+
Instance redeployment due to system maintenance: SystemMaintenance.Redeploy. The event state is Inquiring or Scheduled.
|
|
49606
|
+
Instance redeployment due to system failures: SystemFailure.Redeploy. The event state is Inquiring.
|
|
49607
|
+
|
|
49608
|
+
@param request: RedeployRCInstanceRequest
|
|
49609
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
49610
|
+
@return: RedeployRCInstanceResponse
|
|
49611
|
+
"""
|
|
49612
|
+
UtilClient.validate_model(request)
|
|
49613
|
+
query = {}
|
|
49614
|
+
if not UtilClient.is_unset(request.force_stop):
|
|
49615
|
+
query['ForceStop'] = request.force_stop
|
|
49616
|
+
if not UtilClient.is_unset(request.instance_id):
|
|
49617
|
+
query['InstanceId'] = request.instance_id
|
|
49618
|
+
req = open_api_models.OpenApiRequest(
|
|
49619
|
+
query=OpenApiUtilClient.query(query)
|
|
49620
|
+
)
|
|
49621
|
+
params = open_api_models.Params(
|
|
49622
|
+
action='RedeployRCInstance',
|
|
49623
|
+
version='2014-08-15',
|
|
49624
|
+
protocol='HTTPS',
|
|
49625
|
+
pathname='/',
|
|
49626
|
+
method='POST',
|
|
49627
|
+
auth_type='AK',
|
|
49628
|
+
style='RPC',
|
|
49629
|
+
req_body_type='formData',
|
|
49630
|
+
body_type='json'
|
|
49631
|
+
)
|
|
49632
|
+
return TeaCore.from_map(
|
|
49633
|
+
rds_20140815_models.RedeployRCInstanceResponse(),
|
|
46998
49634
|
await self.call_api_async(params, req, runtime)
|
|
46999
49635
|
)
|
|
47000
49636
|
|
|
47001
|
-
def
|
|
49637
|
+
def redeploy_rcinstance(
|
|
47002
49638
|
self,
|
|
47003
|
-
request: rds_20140815_models.
|
|
47004
|
-
) -> rds_20140815_models.
|
|
49639
|
+
request: rds_20140815_models.RedeployRCInstanceRequest,
|
|
49640
|
+
) -> rds_20140815_models.RedeployRCInstanceResponse:
|
|
47005
49641
|
"""
|
|
47006
|
-
@summary
|
|
49642
|
+
@summary Redeploys an RDS Custom instance when the instance receives a system event notification.
|
|
47007
49643
|
|
|
47008
|
-
@description
|
|
47009
|
-
|
|
47010
|
-
|
|
47011
|
-
|
|
47012
|
-
|
|
49644
|
+
@description RedeployInstance is an *asynchronous** operation. It migrates data before it restarts the instance. If the instance is successfully redeployed, it enters the Running state. If the instance fails to be redeployed, it returns to the original physical server and the state before the redeployment.
|
|
49645
|
+
When you call this operation, take note of the following items:
|
|
49646
|
+
The instance must be in the Running or Stopped state. After the instance is redeployed, the state of the instance has the following changes:
|
|
49647
|
+
If the instance is in the Running state before redeployment, the instance enters the Stopped state.
|
|
49648
|
+
If the instance is in the Stopped state before redeployment, the instance enters the Starting state.
|
|
49649
|
+
If an instance receives notifications about simulated events that are created by calling the CreateSimulatedSystemEvent operation for the instance, you cannot call this operation to redeploy the instance.
|
|
49650
|
+
The following table lists the types and states of events that you can handle by calling the RedeployInstance operation.
|
|
49651
|
+
Instance redeployment due to system maintenance: SystemMaintenance.Redeploy. The event state is Inquiring or Scheduled.
|
|
49652
|
+
Instance redeployment due to system failures: SystemFailure.Redeploy. The event state is Inquiring.
|
|
47013
49653
|
|
|
47014
|
-
@param request:
|
|
47015
|
-
@return:
|
|
49654
|
+
@param request: RedeployRCInstanceRequest
|
|
49655
|
+
@return: RedeployRCInstanceResponse
|
|
47016
49656
|
"""
|
|
47017
49657
|
runtime = util_models.RuntimeOptions()
|
|
47018
|
-
return self.
|
|
49658
|
+
return self.redeploy_rcinstance_with_options(request, runtime)
|
|
47019
49659
|
|
|
47020
|
-
async def
|
|
49660
|
+
async def redeploy_rcinstance_async(
|
|
47021
49661
|
self,
|
|
47022
|
-
request: rds_20140815_models.
|
|
47023
|
-
) -> rds_20140815_models.
|
|
49662
|
+
request: rds_20140815_models.RedeployRCInstanceRequest,
|
|
49663
|
+
) -> rds_20140815_models.RedeployRCInstanceResponse:
|
|
47024
49664
|
"""
|
|
47025
|
-
@summary
|
|
49665
|
+
@summary Redeploys an RDS Custom instance when the instance receives a system event notification.
|
|
47026
49666
|
|
|
47027
|
-
@description
|
|
47028
|
-
|
|
47029
|
-
|
|
47030
|
-
|
|
47031
|
-
|
|
49667
|
+
@description RedeployInstance is an *asynchronous** operation. It migrates data before it restarts the instance. If the instance is successfully redeployed, it enters the Running state. If the instance fails to be redeployed, it returns to the original physical server and the state before the redeployment.
|
|
49668
|
+
When you call this operation, take note of the following items:
|
|
49669
|
+
The instance must be in the Running or Stopped state. After the instance is redeployed, the state of the instance has the following changes:
|
|
49670
|
+
If the instance is in the Running state before redeployment, the instance enters the Stopped state.
|
|
49671
|
+
If the instance is in the Stopped state before redeployment, the instance enters the Starting state.
|
|
49672
|
+
If an instance receives notifications about simulated events that are created by calling the CreateSimulatedSystemEvent operation for the instance, you cannot call this operation to redeploy the instance.
|
|
49673
|
+
The following table lists the types and states of events that you can handle by calling the RedeployInstance operation.
|
|
49674
|
+
Instance redeployment due to system maintenance: SystemMaintenance.Redeploy. The event state is Inquiring or Scheduled.
|
|
49675
|
+
Instance redeployment due to system failures: SystemFailure.Redeploy. The event state is Inquiring.
|
|
47032
49676
|
|
|
47033
|
-
@param request:
|
|
47034
|
-
@return:
|
|
49677
|
+
@param request: RedeployRCInstanceRequest
|
|
49678
|
+
@return: RedeployRCInstanceResponse
|
|
47035
49679
|
"""
|
|
47036
49680
|
runtime = util_models.RuntimeOptions()
|
|
47037
|
-
return await self.
|
|
49681
|
+
return await self.redeploy_rcinstance_with_options_async(request, runtime)
|
|
47038
49682
|
|
|
47039
49683
|
def release_instance_connection_with_options(
|
|
47040
49684
|
self,
|
|
@@ -49438,7 +52082,7 @@ class Client(OpenApiClient):
|
|
|
49438
52082
|
runtime: util_models.RuntimeOptions,
|
|
49439
52083
|
) -> rds_20140815_models.RevokeRCSecurityGroupPermissionResponse:
|
|
49440
52084
|
"""
|
|
49441
|
-
@summary
|
|
52085
|
+
@summary Deletes security group rules with the specified IDs.
|
|
49442
52086
|
|
|
49443
52087
|
@param tmp_req: RevokeRCSecurityGroupPermissionRequest
|
|
49444
52088
|
@param runtime: runtime options for this request RuntimeOptions
|
|
@@ -49483,7 +52127,7 @@ class Client(OpenApiClient):
|
|
|
49483
52127
|
runtime: util_models.RuntimeOptions,
|
|
49484
52128
|
) -> rds_20140815_models.RevokeRCSecurityGroupPermissionResponse:
|
|
49485
52129
|
"""
|
|
49486
|
-
@summary
|
|
52130
|
+
@summary Deletes security group rules with the specified IDs.
|
|
49487
52131
|
|
|
49488
52132
|
@param tmp_req: RevokeRCSecurityGroupPermissionRequest
|
|
49489
52133
|
@param runtime: runtime options for this request RuntimeOptions
|
|
@@ -49527,7 +52171,7 @@ class Client(OpenApiClient):
|
|
|
49527
52171
|
request: rds_20140815_models.RevokeRCSecurityGroupPermissionRequest,
|
|
49528
52172
|
) -> rds_20140815_models.RevokeRCSecurityGroupPermissionResponse:
|
|
49529
52173
|
"""
|
|
49530
|
-
@summary
|
|
52174
|
+
@summary Deletes security group rules with the specified IDs.
|
|
49531
52175
|
|
|
49532
52176
|
@param request: RevokeRCSecurityGroupPermissionRequest
|
|
49533
52177
|
@return: RevokeRCSecurityGroupPermissionResponse
|
|
@@ -49540,7 +52184,7 @@ class Client(OpenApiClient):
|
|
|
49540
52184
|
request: rds_20140815_models.RevokeRCSecurityGroupPermissionRequest,
|
|
49541
52185
|
) -> rds_20140815_models.RevokeRCSecurityGroupPermissionResponse:
|
|
49542
52186
|
"""
|
|
49543
|
-
@summary
|
|
52187
|
+
@summary Deletes security group rules with the specified IDs.
|
|
49544
52188
|
|
|
49545
52189
|
@param request: RevokeRCSecurityGroupPermissionRequest
|
|
49546
52190
|
@return: RevokeRCSecurityGroupPermissionResponse
|
|
@@ -49548,6 +52192,214 @@ class Client(OpenApiClient):
|
|
|
49548
52192
|
runtime = util_models.RuntimeOptions()
|
|
49549
52193
|
return await self.revoke_rcsecurity_group_permission_with_options_async(request, runtime)
|
|
49550
52194
|
|
|
52195
|
+
def run_rccommand_with_options(
|
|
52196
|
+
self,
|
|
52197
|
+
tmp_req: rds_20140815_models.RunRCCommandRequest,
|
|
52198
|
+
runtime: util_models.RuntimeOptions,
|
|
52199
|
+
) -> rds_20140815_models.RunRCCommandResponse:
|
|
52200
|
+
"""
|
|
52201
|
+
@summary 创建并执行云助手命令
|
|
52202
|
+
|
|
52203
|
+
@param tmp_req: RunRCCommandRequest
|
|
52204
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
52205
|
+
@return: RunRCCommandResponse
|
|
52206
|
+
"""
|
|
52207
|
+
UtilClient.validate_model(tmp_req)
|
|
52208
|
+
request = rds_20140815_models.RunRCCommandShrinkRequest()
|
|
52209
|
+
OpenApiUtilClient.convert(tmp_req, request)
|
|
52210
|
+
if not UtilClient.is_unset(tmp_req.instance_ids):
|
|
52211
|
+
request.instance_ids_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.instance_ids, 'InstanceIds', 'json')
|
|
52212
|
+
if not UtilClient.is_unset(tmp_req.parameters):
|
|
52213
|
+
request.parameters_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.parameters, 'Parameters', 'json')
|
|
52214
|
+
if not UtilClient.is_unset(tmp_req.resource_tags):
|
|
52215
|
+
request.resource_tags_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.resource_tags, 'ResourceTags', 'json')
|
|
52216
|
+
if not UtilClient.is_unset(tmp_req.tags):
|
|
52217
|
+
request.tags_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.tags, 'Tags', 'json')
|
|
52218
|
+
query = {}
|
|
52219
|
+
if not UtilClient.is_unset(request.client_token):
|
|
52220
|
+
query['ClientToken'] = request.client_token
|
|
52221
|
+
if not UtilClient.is_unset(request.command_content):
|
|
52222
|
+
query['CommandContent'] = request.command_content
|
|
52223
|
+
if not UtilClient.is_unset(request.container_id):
|
|
52224
|
+
query['ContainerId'] = request.container_id
|
|
52225
|
+
if not UtilClient.is_unset(request.container_name):
|
|
52226
|
+
query['ContainerName'] = request.container_name
|
|
52227
|
+
if not UtilClient.is_unset(request.content_encoding):
|
|
52228
|
+
query['ContentEncoding'] = request.content_encoding
|
|
52229
|
+
if not UtilClient.is_unset(request.description):
|
|
52230
|
+
query['Description'] = request.description
|
|
52231
|
+
if not UtilClient.is_unset(request.enable_parameter):
|
|
52232
|
+
query['EnableParameter'] = request.enable_parameter
|
|
52233
|
+
if not UtilClient.is_unset(request.frequency):
|
|
52234
|
+
query['Frequency'] = request.frequency
|
|
52235
|
+
if not UtilClient.is_unset(request.instance_ids_shrink):
|
|
52236
|
+
query['InstanceIds'] = request.instance_ids_shrink
|
|
52237
|
+
if not UtilClient.is_unset(request.keep_command):
|
|
52238
|
+
query['KeepCommand'] = request.keep_command
|
|
52239
|
+
if not UtilClient.is_unset(request.launcher):
|
|
52240
|
+
query['Launcher'] = request.launcher
|
|
52241
|
+
if not UtilClient.is_unset(request.name):
|
|
52242
|
+
query['Name'] = request.name
|
|
52243
|
+
if not UtilClient.is_unset(request.parameters_shrink):
|
|
52244
|
+
query['Parameters'] = request.parameters_shrink
|
|
52245
|
+
if not UtilClient.is_unset(request.region_id):
|
|
52246
|
+
query['RegionId'] = request.region_id
|
|
52247
|
+
if not UtilClient.is_unset(request.repeat_mode):
|
|
52248
|
+
query['RepeatMode'] = request.repeat_mode
|
|
52249
|
+
if not UtilClient.is_unset(request.resource_group_id):
|
|
52250
|
+
query['ResourceGroupId'] = request.resource_group_id
|
|
52251
|
+
if not UtilClient.is_unset(request.resource_tags_shrink):
|
|
52252
|
+
query['ResourceTags'] = request.resource_tags_shrink
|
|
52253
|
+
if not UtilClient.is_unset(request.tags_shrink):
|
|
52254
|
+
query['Tags'] = request.tags_shrink
|
|
52255
|
+
if not UtilClient.is_unset(request.termination_mode):
|
|
52256
|
+
query['TerminationMode'] = request.termination_mode
|
|
52257
|
+
if not UtilClient.is_unset(request.timeout):
|
|
52258
|
+
query['Timeout'] = request.timeout
|
|
52259
|
+
if not UtilClient.is_unset(request.type):
|
|
52260
|
+
query['Type'] = request.type
|
|
52261
|
+
if not UtilClient.is_unset(request.username):
|
|
52262
|
+
query['Username'] = request.username
|
|
52263
|
+
if not UtilClient.is_unset(request.windows_password_name):
|
|
52264
|
+
query['WindowsPasswordName'] = request.windows_password_name
|
|
52265
|
+
if not UtilClient.is_unset(request.working_dir):
|
|
52266
|
+
query['WorkingDir'] = request.working_dir
|
|
52267
|
+
req = open_api_models.OpenApiRequest(
|
|
52268
|
+
query=OpenApiUtilClient.query(query)
|
|
52269
|
+
)
|
|
52270
|
+
params = open_api_models.Params(
|
|
52271
|
+
action='RunRCCommand',
|
|
52272
|
+
version='2014-08-15',
|
|
52273
|
+
protocol='HTTPS',
|
|
52274
|
+
pathname='/',
|
|
52275
|
+
method='POST',
|
|
52276
|
+
auth_type='AK',
|
|
52277
|
+
style='RPC',
|
|
52278
|
+
req_body_type='formData',
|
|
52279
|
+
body_type='json'
|
|
52280
|
+
)
|
|
52281
|
+
return TeaCore.from_map(
|
|
52282
|
+
rds_20140815_models.RunRCCommandResponse(),
|
|
52283
|
+
self.call_api(params, req, runtime)
|
|
52284
|
+
)
|
|
52285
|
+
|
|
52286
|
+
async def run_rccommand_with_options_async(
|
|
52287
|
+
self,
|
|
52288
|
+
tmp_req: rds_20140815_models.RunRCCommandRequest,
|
|
52289
|
+
runtime: util_models.RuntimeOptions,
|
|
52290
|
+
) -> rds_20140815_models.RunRCCommandResponse:
|
|
52291
|
+
"""
|
|
52292
|
+
@summary 创建并执行云助手命令
|
|
52293
|
+
|
|
52294
|
+
@param tmp_req: RunRCCommandRequest
|
|
52295
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
52296
|
+
@return: RunRCCommandResponse
|
|
52297
|
+
"""
|
|
52298
|
+
UtilClient.validate_model(tmp_req)
|
|
52299
|
+
request = rds_20140815_models.RunRCCommandShrinkRequest()
|
|
52300
|
+
OpenApiUtilClient.convert(tmp_req, request)
|
|
52301
|
+
if not UtilClient.is_unset(tmp_req.instance_ids):
|
|
52302
|
+
request.instance_ids_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.instance_ids, 'InstanceIds', 'json')
|
|
52303
|
+
if not UtilClient.is_unset(tmp_req.parameters):
|
|
52304
|
+
request.parameters_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.parameters, 'Parameters', 'json')
|
|
52305
|
+
if not UtilClient.is_unset(tmp_req.resource_tags):
|
|
52306
|
+
request.resource_tags_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.resource_tags, 'ResourceTags', 'json')
|
|
52307
|
+
if not UtilClient.is_unset(tmp_req.tags):
|
|
52308
|
+
request.tags_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.tags, 'Tags', 'json')
|
|
52309
|
+
query = {}
|
|
52310
|
+
if not UtilClient.is_unset(request.client_token):
|
|
52311
|
+
query['ClientToken'] = request.client_token
|
|
52312
|
+
if not UtilClient.is_unset(request.command_content):
|
|
52313
|
+
query['CommandContent'] = request.command_content
|
|
52314
|
+
if not UtilClient.is_unset(request.container_id):
|
|
52315
|
+
query['ContainerId'] = request.container_id
|
|
52316
|
+
if not UtilClient.is_unset(request.container_name):
|
|
52317
|
+
query['ContainerName'] = request.container_name
|
|
52318
|
+
if not UtilClient.is_unset(request.content_encoding):
|
|
52319
|
+
query['ContentEncoding'] = request.content_encoding
|
|
52320
|
+
if not UtilClient.is_unset(request.description):
|
|
52321
|
+
query['Description'] = request.description
|
|
52322
|
+
if not UtilClient.is_unset(request.enable_parameter):
|
|
52323
|
+
query['EnableParameter'] = request.enable_parameter
|
|
52324
|
+
if not UtilClient.is_unset(request.frequency):
|
|
52325
|
+
query['Frequency'] = request.frequency
|
|
52326
|
+
if not UtilClient.is_unset(request.instance_ids_shrink):
|
|
52327
|
+
query['InstanceIds'] = request.instance_ids_shrink
|
|
52328
|
+
if not UtilClient.is_unset(request.keep_command):
|
|
52329
|
+
query['KeepCommand'] = request.keep_command
|
|
52330
|
+
if not UtilClient.is_unset(request.launcher):
|
|
52331
|
+
query['Launcher'] = request.launcher
|
|
52332
|
+
if not UtilClient.is_unset(request.name):
|
|
52333
|
+
query['Name'] = request.name
|
|
52334
|
+
if not UtilClient.is_unset(request.parameters_shrink):
|
|
52335
|
+
query['Parameters'] = request.parameters_shrink
|
|
52336
|
+
if not UtilClient.is_unset(request.region_id):
|
|
52337
|
+
query['RegionId'] = request.region_id
|
|
52338
|
+
if not UtilClient.is_unset(request.repeat_mode):
|
|
52339
|
+
query['RepeatMode'] = request.repeat_mode
|
|
52340
|
+
if not UtilClient.is_unset(request.resource_group_id):
|
|
52341
|
+
query['ResourceGroupId'] = request.resource_group_id
|
|
52342
|
+
if not UtilClient.is_unset(request.resource_tags_shrink):
|
|
52343
|
+
query['ResourceTags'] = request.resource_tags_shrink
|
|
52344
|
+
if not UtilClient.is_unset(request.tags_shrink):
|
|
52345
|
+
query['Tags'] = request.tags_shrink
|
|
52346
|
+
if not UtilClient.is_unset(request.termination_mode):
|
|
52347
|
+
query['TerminationMode'] = request.termination_mode
|
|
52348
|
+
if not UtilClient.is_unset(request.timeout):
|
|
52349
|
+
query['Timeout'] = request.timeout
|
|
52350
|
+
if not UtilClient.is_unset(request.type):
|
|
52351
|
+
query['Type'] = request.type
|
|
52352
|
+
if not UtilClient.is_unset(request.username):
|
|
52353
|
+
query['Username'] = request.username
|
|
52354
|
+
if not UtilClient.is_unset(request.windows_password_name):
|
|
52355
|
+
query['WindowsPasswordName'] = request.windows_password_name
|
|
52356
|
+
if not UtilClient.is_unset(request.working_dir):
|
|
52357
|
+
query['WorkingDir'] = request.working_dir
|
|
52358
|
+
req = open_api_models.OpenApiRequest(
|
|
52359
|
+
query=OpenApiUtilClient.query(query)
|
|
52360
|
+
)
|
|
52361
|
+
params = open_api_models.Params(
|
|
52362
|
+
action='RunRCCommand',
|
|
52363
|
+
version='2014-08-15',
|
|
52364
|
+
protocol='HTTPS',
|
|
52365
|
+
pathname='/',
|
|
52366
|
+
method='POST',
|
|
52367
|
+
auth_type='AK',
|
|
52368
|
+
style='RPC',
|
|
52369
|
+
req_body_type='formData',
|
|
52370
|
+
body_type='json'
|
|
52371
|
+
)
|
|
52372
|
+
return TeaCore.from_map(
|
|
52373
|
+
rds_20140815_models.RunRCCommandResponse(),
|
|
52374
|
+
await self.call_api_async(params, req, runtime)
|
|
52375
|
+
)
|
|
52376
|
+
|
|
52377
|
+
def run_rccommand(
|
|
52378
|
+
self,
|
|
52379
|
+
request: rds_20140815_models.RunRCCommandRequest,
|
|
52380
|
+
) -> rds_20140815_models.RunRCCommandResponse:
|
|
52381
|
+
"""
|
|
52382
|
+
@summary 创建并执行云助手命令
|
|
52383
|
+
|
|
52384
|
+
@param request: RunRCCommandRequest
|
|
52385
|
+
@return: RunRCCommandResponse
|
|
52386
|
+
"""
|
|
52387
|
+
runtime = util_models.RuntimeOptions()
|
|
52388
|
+
return self.run_rccommand_with_options(request, runtime)
|
|
52389
|
+
|
|
52390
|
+
async def run_rccommand_async(
|
|
52391
|
+
self,
|
|
52392
|
+
request: rds_20140815_models.RunRCCommandRequest,
|
|
52393
|
+
) -> rds_20140815_models.RunRCCommandResponse:
|
|
52394
|
+
"""
|
|
52395
|
+
@summary 创建并执行云助手命令
|
|
52396
|
+
|
|
52397
|
+
@param request: RunRCCommandRequest
|
|
52398
|
+
@return: RunRCCommandResponse
|
|
52399
|
+
"""
|
|
52400
|
+
runtime = util_models.RuntimeOptions()
|
|
52401
|
+
return await self.run_rccommand_with_options_async(request, runtime)
|
|
52402
|
+
|
|
49551
52403
|
def run_rcinstances_with_options(
|
|
49552
52404
|
self,
|
|
49553
52405
|
tmp_req: rds_20140815_models.RunRCInstancesRequest,
|
|
@@ -49574,6 +52426,8 @@ class Client(OpenApiClient):
|
|
|
49574
52426
|
if not UtilClient.is_unset(tmp_req.system_disk):
|
|
49575
52427
|
request.system_disk_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.system_disk, 'SystemDisk', 'json')
|
|
49576
52428
|
query = {}
|
|
52429
|
+
if not UtilClient.is_unset(request.acu_type):
|
|
52430
|
+
query['AcuType'] = request.acu_type
|
|
49577
52431
|
if not UtilClient.is_unset(request.amount):
|
|
49578
52432
|
query['Amount'] = request.amount
|
|
49579
52433
|
if not UtilClient.is_unset(request.auto_pay):
|
|
@@ -49592,6 +52446,8 @@ class Client(OpenApiClient):
|
|
|
49592
52446
|
query['CreateMode'] = request.create_mode
|
|
49593
52447
|
if not UtilClient.is_unset(request.data_disk_shrink):
|
|
49594
52448
|
query['DataDisk'] = request.data_disk_shrink
|
|
52449
|
+
if not UtilClient.is_unset(request.deletion_protection):
|
|
52450
|
+
query['DeletionProtection'] = request.deletion_protection
|
|
49595
52451
|
if not UtilClient.is_unset(request.deployment_set_id):
|
|
49596
52452
|
query['DeploymentSetId'] = request.deployment_set_id
|
|
49597
52453
|
if not UtilClient.is_unset(request.description):
|
|
@@ -49618,6 +52474,8 @@ class Client(OpenApiClient):
|
|
|
49618
52474
|
query['KeyPairName'] = request.key_pair_name
|
|
49619
52475
|
if not UtilClient.is_unset(request.password):
|
|
49620
52476
|
query['Password'] = request.password
|
|
52477
|
+
if not UtilClient.is_unset(request.password_inherit):
|
|
52478
|
+
query['PasswordInherit'] = request.password_inherit
|
|
49621
52479
|
if not UtilClient.is_unset(request.period):
|
|
49622
52480
|
query['Period'] = request.period
|
|
49623
52481
|
if not UtilClient.is_unset(request.period_unit):
|
|
@@ -49628,6 +52486,8 @@ class Client(OpenApiClient):
|
|
|
49628
52486
|
query['RegionId'] = request.region_id
|
|
49629
52487
|
if not UtilClient.is_unset(request.resource_group_id):
|
|
49630
52488
|
query['ResourceGroupId'] = request.resource_group_id
|
|
52489
|
+
if not UtilClient.is_unset(request.scheduled_rule):
|
|
52490
|
+
query['ScheduledRule'] = request.scheduled_rule
|
|
49631
52491
|
if not UtilClient.is_unset(request.security_enhancement_strategy):
|
|
49632
52492
|
query['SecurityEnhancementStrategy'] = request.security_enhancement_strategy
|
|
49633
52493
|
if not UtilClient.is_unset(request.security_group_id):
|
|
@@ -49693,6 +52553,8 @@ class Client(OpenApiClient):
|
|
|
49693
52553
|
if not UtilClient.is_unset(tmp_req.system_disk):
|
|
49694
52554
|
request.system_disk_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.system_disk, 'SystemDisk', 'json')
|
|
49695
52555
|
query = {}
|
|
52556
|
+
if not UtilClient.is_unset(request.acu_type):
|
|
52557
|
+
query['AcuType'] = request.acu_type
|
|
49696
52558
|
if not UtilClient.is_unset(request.amount):
|
|
49697
52559
|
query['Amount'] = request.amount
|
|
49698
52560
|
if not UtilClient.is_unset(request.auto_pay):
|
|
@@ -49711,6 +52573,8 @@ class Client(OpenApiClient):
|
|
|
49711
52573
|
query['CreateMode'] = request.create_mode
|
|
49712
52574
|
if not UtilClient.is_unset(request.data_disk_shrink):
|
|
49713
52575
|
query['DataDisk'] = request.data_disk_shrink
|
|
52576
|
+
if not UtilClient.is_unset(request.deletion_protection):
|
|
52577
|
+
query['DeletionProtection'] = request.deletion_protection
|
|
49714
52578
|
if not UtilClient.is_unset(request.deployment_set_id):
|
|
49715
52579
|
query['DeploymentSetId'] = request.deployment_set_id
|
|
49716
52580
|
if not UtilClient.is_unset(request.description):
|
|
@@ -49737,6 +52601,8 @@ class Client(OpenApiClient):
|
|
|
49737
52601
|
query['KeyPairName'] = request.key_pair_name
|
|
49738
52602
|
if not UtilClient.is_unset(request.password):
|
|
49739
52603
|
query['Password'] = request.password
|
|
52604
|
+
if not UtilClient.is_unset(request.password_inherit):
|
|
52605
|
+
query['PasswordInherit'] = request.password_inherit
|
|
49740
52606
|
if not UtilClient.is_unset(request.period):
|
|
49741
52607
|
query['Period'] = request.period
|
|
49742
52608
|
if not UtilClient.is_unset(request.period_unit):
|
|
@@ -49747,6 +52613,8 @@ class Client(OpenApiClient):
|
|
|
49747
52613
|
query['RegionId'] = request.region_id
|
|
49748
52614
|
if not UtilClient.is_unset(request.resource_group_id):
|
|
49749
52615
|
query['ResourceGroupId'] = request.resource_group_id
|
|
52616
|
+
if not UtilClient.is_unset(request.scheduled_rule):
|
|
52617
|
+
query['ScheduledRule'] = request.scheduled_rule
|
|
49750
52618
|
if not UtilClient.is_unset(request.security_enhancement_strategy):
|
|
49751
52619
|
query['SecurityEnhancementStrategy'] = request.security_enhancement_strategy
|
|
49752
52620
|
if not UtilClient.is_unset(request.security_group_id):
|
|
@@ -50492,8 +53360,12 @@ class Client(OpenApiClient):
|
|
|
50492
53360
|
"""
|
|
50493
53361
|
@summary Stops multiple RDS Custom instances at a time.
|
|
50494
53362
|
|
|
50495
|
-
@description ### [](#)Supported database
|
|
50496
|
-
|
|
53363
|
+
@description ### [](#)Supported database engines
|
|
53364
|
+
RDS MySQL
|
|
53365
|
+
RDS SQL Server
|
|
53366
|
+
### [](#)References
|
|
53367
|
+
[Introduction to RDS Custom for MySQL](https://help.aliyun.com/document_detail/2844223.html)
|
|
53368
|
+
[Introduction to RDS Custom for SQL Server](https://help.aliyun.com/document_detail/2864363.html)
|
|
50497
53369
|
|
|
50498
53370
|
@param tmp_req: StopRCInstancesRequest
|
|
50499
53371
|
@param runtime: runtime options for this request RuntimeOptions
|
|
@@ -50540,8 +53412,12 @@ class Client(OpenApiClient):
|
|
|
50540
53412
|
"""
|
|
50541
53413
|
@summary Stops multiple RDS Custom instances at a time.
|
|
50542
53414
|
|
|
50543
|
-
@description ### [](#)Supported database
|
|
50544
|
-
|
|
53415
|
+
@description ### [](#)Supported database engines
|
|
53416
|
+
RDS MySQL
|
|
53417
|
+
RDS SQL Server
|
|
53418
|
+
### [](#)References
|
|
53419
|
+
[Introduction to RDS Custom for MySQL](https://help.aliyun.com/document_detail/2844223.html)
|
|
53420
|
+
[Introduction to RDS Custom for SQL Server](https://help.aliyun.com/document_detail/2864363.html)
|
|
50545
53421
|
|
|
50546
53422
|
@param tmp_req: StopRCInstancesRequest
|
|
50547
53423
|
@param runtime: runtime options for this request RuntimeOptions
|
|
@@ -50587,8 +53463,12 @@ class Client(OpenApiClient):
|
|
|
50587
53463
|
"""
|
|
50588
53464
|
@summary Stops multiple RDS Custom instances at a time.
|
|
50589
53465
|
|
|
50590
|
-
@description ### [](#)Supported database
|
|
50591
|
-
|
|
53466
|
+
@description ### [](#)Supported database engines
|
|
53467
|
+
RDS MySQL
|
|
53468
|
+
RDS SQL Server
|
|
53469
|
+
### [](#)References
|
|
53470
|
+
[Introduction to RDS Custom for MySQL](https://help.aliyun.com/document_detail/2844223.html)
|
|
53471
|
+
[Introduction to RDS Custom for SQL Server](https://help.aliyun.com/document_detail/2864363.html)
|
|
50592
53472
|
|
|
50593
53473
|
@param request: StopRCInstancesRequest
|
|
50594
53474
|
@return: StopRCInstancesResponse
|
|
@@ -50603,8 +53483,12 @@ class Client(OpenApiClient):
|
|
|
50603
53483
|
"""
|
|
50604
53484
|
@summary Stops multiple RDS Custom instances at a time.
|
|
50605
53485
|
|
|
50606
|
-
@description ### [](#)Supported database
|
|
50607
|
-
|
|
53486
|
+
@description ### [](#)Supported database engines
|
|
53487
|
+
RDS MySQL
|
|
53488
|
+
RDS SQL Server
|
|
53489
|
+
### [](#)References
|
|
53490
|
+
[Introduction to RDS Custom for MySQL](https://help.aliyun.com/document_detail/2844223.html)
|
|
53491
|
+
[Introduction to RDS Custom for SQL Server](https://help.aliyun.com/document_detail/2864363.html)
|
|
50608
53492
|
|
|
50609
53493
|
@param request: StopRCInstancesRequest
|
|
50610
53494
|
@return: StopRCInstancesResponse
|
|
@@ -51125,12 +54009,22 @@ class Client(OpenApiClient):
|
|
|
51125
54009
|
"""
|
|
51126
54010
|
UtilClient.validate_model(request)
|
|
51127
54011
|
query = {}
|
|
54012
|
+
if not UtilClient.is_unset(request.client_token):
|
|
54013
|
+
query['ClientToken'] = request.client_token
|
|
51128
54014
|
if not UtilClient.is_unset(request.dbinstance_name):
|
|
51129
54015
|
query['DBInstanceName'] = request.dbinstance_name
|
|
54016
|
+
if not UtilClient.is_unset(request.owner_account):
|
|
54017
|
+
query['OwnerAccount'] = request.owner_account
|
|
51130
54018
|
if not UtilClient.is_unset(request.owner_id):
|
|
51131
54019
|
query['OwnerId'] = request.owner_id
|
|
51132
54020
|
if not UtilClient.is_unset(request.region_id):
|
|
51133
54021
|
query['RegionId'] = request.region_id
|
|
54022
|
+
if not UtilClient.is_unset(request.resource_group_id):
|
|
54023
|
+
query['ResourceGroupId'] = request.resource_group_id
|
|
54024
|
+
if not UtilClient.is_unset(request.resource_owner_account):
|
|
54025
|
+
query['ResourceOwnerAccount'] = request.resource_owner_account
|
|
54026
|
+
if not UtilClient.is_unset(request.resource_owner_id):
|
|
54027
|
+
query['ResourceOwnerId'] = request.resource_owner_id
|
|
51134
54028
|
if not UtilClient.is_unset(request.switchover_timeout):
|
|
51135
54029
|
query['SwitchoverTimeout'] = request.switchover_timeout
|
|
51136
54030
|
if not UtilClient.is_unset(request.type):
|
|
@@ -51171,12 +54065,22 @@ class Client(OpenApiClient):
|
|
|
51171
54065
|
"""
|
|
51172
54066
|
UtilClient.validate_model(request)
|
|
51173
54067
|
query = {}
|
|
54068
|
+
if not UtilClient.is_unset(request.client_token):
|
|
54069
|
+
query['ClientToken'] = request.client_token
|
|
51174
54070
|
if not UtilClient.is_unset(request.dbinstance_name):
|
|
51175
54071
|
query['DBInstanceName'] = request.dbinstance_name
|
|
54072
|
+
if not UtilClient.is_unset(request.owner_account):
|
|
54073
|
+
query['OwnerAccount'] = request.owner_account
|
|
51176
54074
|
if not UtilClient.is_unset(request.owner_id):
|
|
51177
54075
|
query['OwnerId'] = request.owner_id
|
|
51178
54076
|
if not UtilClient.is_unset(request.region_id):
|
|
51179
54077
|
query['RegionId'] = request.region_id
|
|
54078
|
+
if not UtilClient.is_unset(request.resource_group_id):
|
|
54079
|
+
query['ResourceGroupId'] = request.resource_group_id
|
|
54080
|
+
if not UtilClient.is_unset(request.resource_owner_account):
|
|
54081
|
+
query['ResourceOwnerAccount'] = request.resource_owner_account
|
|
54082
|
+
if not UtilClient.is_unset(request.resource_owner_id):
|
|
54083
|
+
query['ResourceOwnerId'] = request.resource_owner_id
|
|
51180
54084
|
if not UtilClient.is_unset(request.switchover_timeout):
|
|
51181
54085
|
query['SwitchoverTimeout'] = request.switchover_timeout
|
|
51182
54086
|
if not UtilClient.is_unset(request.type):
|
|
@@ -51238,7 +54142,7 @@ class Client(OpenApiClient):
|
|
|
51238
54142
|
runtime: util_models.RuntimeOptions,
|
|
51239
54143
|
) -> rds_20140815_models.SwitchReplicationLinkResponse:
|
|
51240
54144
|
"""
|
|
51241
|
-
@summary Switches the data synchronization link
|
|
54145
|
+
@summary Switches the data synchronization link from a the primary ApsaraDB RDS for SQL Server instance to a disaster recovery (DR) instance.
|
|
51242
54146
|
|
|
51243
54147
|
@description ### [](#)Supported database engine
|
|
51244
54148
|
SQL Server
|
|
@@ -51282,7 +54186,7 @@ class Client(OpenApiClient):
|
|
|
51282
54186
|
runtime: util_models.RuntimeOptions,
|
|
51283
54187
|
) -> rds_20140815_models.SwitchReplicationLinkResponse:
|
|
51284
54188
|
"""
|
|
51285
|
-
@summary Switches the data synchronization link
|
|
54189
|
+
@summary Switches the data synchronization link from a the primary ApsaraDB RDS for SQL Server instance to a disaster recovery (DR) instance.
|
|
51286
54190
|
|
|
51287
54191
|
@description ### [](#)Supported database engine
|
|
51288
54192
|
SQL Server
|
|
@@ -51325,7 +54229,7 @@ class Client(OpenApiClient):
|
|
|
51325
54229
|
request: rds_20140815_models.SwitchReplicationLinkRequest,
|
|
51326
54230
|
) -> rds_20140815_models.SwitchReplicationLinkResponse:
|
|
51327
54231
|
"""
|
|
51328
|
-
@summary Switches the data synchronization link
|
|
54232
|
+
@summary Switches the data synchronization link from a the primary ApsaraDB RDS for SQL Server instance to a disaster recovery (DR) instance.
|
|
51329
54233
|
|
|
51330
54234
|
@description ### [](#)Supported database engine
|
|
51331
54235
|
SQL Server
|
|
@@ -51341,7 +54245,7 @@ class Client(OpenApiClient):
|
|
|
51341
54245
|
request: rds_20140815_models.SwitchReplicationLinkRequest,
|
|
51342
54246
|
) -> rds_20140815_models.SwitchReplicationLinkResponse:
|
|
51343
54247
|
"""
|
|
51344
|
-
@summary Switches the data synchronization link
|
|
54248
|
+
@summary Switches the data synchronization link from a the primary ApsaraDB RDS for SQL Server instance to a disaster recovery (DR) instance.
|
|
51345
54249
|
|
|
51346
54250
|
@description ### [](#)Supported database engine
|
|
51347
54251
|
SQL Server
|
|
@@ -53112,8 +56016,12 @@ class Client(OpenApiClient):
|
|
|
53112
56016
|
"""
|
|
53113
56017
|
UtilClient.validate_model(request)
|
|
53114
56018
|
query = {}
|
|
56019
|
+
if not UtilClient.is_unset(request.allow_ddl):
|
|
56020
|
+
query['AllowDDL'] = request.allow_ddl
|
|
53115
56021
|
if not UtilClient.is_unset(request.collect_stat_mode):
|
|
53116
56022
|
query['CollectStatMode'] = request.collect_stat_mode
|
|
56023
|
+
if not UtilClient.is_unset(request.custom_extra_info):
|
|
56024
|
+
query['CustomExtraInfo'] = request.custom_extra_info
|
|
53117
56025
|
if not UtilClient.is_unset(request.dbinstance_class):
|
|
53118
56026
|
query['DBInstanceClass'] = request.dbinstance_class
|
|
53119
56027
|
if not UtilClient.is_unset(request.dbinstance_id):
|
|
@@ -53193,8 +56101,12 @@ class Client(OpenApiClient):
|
|
|
53193
56101
|
"""
|
|
53194
56102
|
UtilClient.validate_model(request)
|
|
53195
56103
|
query = {}
|
|
56104
|
+
if not UtilClient.is_unset(request.allow_ddl):
|
|
56105
|
+
query['AllowDDL'] = request.allow_ddl
|
|
53196
56106
|
if not UtilClient.is_unset(request.collect_stat_mode):
|
|
53197
56107
|
query['CollectStatMode'] = request.collect_stat_mode
|
|
56108
|
+
if not UtilClient.is_unset(request.custom_extra_info):
|
|
56109
|
+
query['CustomExtraInfo'] = request.custom_extra_info
|
|
53198
56110
|
if not UtilClient.is_unset(request.dbinstance_class):
|
|
53199
56111
|
query['DBInstanceClass'] = request.dbinstance_class
|
|
53200
56112
|
if not UtilClient.is_unset(request.dbinstance_id):
|
|
@@ -53458,6 +56370,8 @@ class Client(OpenApiClient):
|
|
|
53458
56370
|
query['ResourceOwnerId'] = request.resource_owner_id
|
|
53459
56371
|
if not UtilClient.is_unset(request.switch_time):
|
|
53460
56372
|
query['SwitchTime'] = request.switch_time
|
|
56373
|
+
if not UtilClient.is_unset(request.target_minor_version):
|
|
56374
|
+
query['TargetMinorVersion'] = request.target_minor_version
|
|
53461
56375
|
if not UtilClient.is_unset(request.upgrade_time):
|
|
53462
56376
|
query['UpgradeTime'] = request.upgrade_time
|
|
53463
56377
|
req = open_api_models.OpenApiRequest(
|
|
@@ -53513,6 +56427,8 @@ class Client(OpenApiClient):
|
|
|
53513
56427
|
query['ResourceOwnerId'] = request.resource_owner_id
|
|
53514
56428
|
if not UtilClient.is_unset(request.switch_time):
|
|
53515
56429
|
query['SwitchTime'] = request.switch_time
|
|
56430
|
+
if not UtilClient.is_unset(request.target_minor_version):
|
|
56431
|
+
query['TargetMinorVersion'] = request.target_minor_version
|
|
53516
56432
|
if not UtilClient.is_unset(request.upgrade_time):
|
|
53517
56433
|
query['UpgradeTime'] = request.upgrade_time
|
|
53518
56434
|
req = open_api_models.OpenApiRequest(
|