alibabacloud-rds20140815 11.3.2__py3-none-any.whl → 12.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 +1834 -78
- alibabacloud_rds20140815/models.py +3452 -235
- {alibabacloud_rds20140815-11.3.2.dist-info → alibabacloud_rds20140815-12.0.0.dist-info}/METADATA +2 -2
- alibabacloud_rds20140815-12.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-12.0.0.dist-info}/LICENSE +0 -0
- {alibabacloud_rds20140815-11.3.2.dist-info → alibabacloud_rds20140815-12.0.0.dist-info}/WHEEL +0 -0
- {alibabacloud_rds20140815-11.3.2.dist-info → alibabacloud_rds20140815-12.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
|
|
@@ -3766,6 +3766,8 @@ class Client(OpenApiClient):
|
|
|
3766
3766
|
query = {}
|
|
3767
3767
|
if not UtilClient.is_unset(request.backup_method):
|
|
3768
3768
|
query['BackupMethod'] = request.backup_method
|
|
3769
|
+
if not UtilClient.is_unset(request.backup_retention_period):
|
|
3770
|
+
query['BackupRetentionPeriod'] = request.backup_retention_period
|
|
3769
3771
|
if not UtilClient.is_unset(request.backup_strategy):
|
|
3770
3772
|
query['BackupStrategy'] = request.backup_strategy
|
|
3771
3773
|
if not UtilClient.is_unset(request.backup_type):
|
|
@@ -3829,6 +3831,8 @@ class Client(OpenApiClient):
|
|
|
3829
3831
|
query = {}
|
|
3830
3832
|
if not UtilClient.is_unset(request.backup_method):
|
|
3831
3833
|
query['BackupMethod'] = request.backup_method
|
|
3834
|
+
if not UtilClient.is_unset(request.backup_retention_period):
|
|
3835
|
+
query['BackupRetentionPeriod'] = request.backup_retention_period
|
|
3832
3836
|
if not UtilClient.is_unset(request.backup_strategy):
|
|
3833
3837
|
query['BackupStrategy'] = request.backup_strategy
|
|
3834
3838
|
if not UtilClient.is_unset(request.backup_type):
|
|
@@ -4308,6 +4312,8 @@ class Client(OpenApiClient):
|
|
|
4308
4312
|
query['Engine'] = request.engine
|
|
4309
4313
|
if not UtilClient.is_unset(request.engine_version):
|
|
4310
4314
|
query['EngineVersion'] = request.engine_version
|
|
4315
|
+
if not UtilClient.is_unset(request.external_replication):
|
|
4316
|
+
query['ExternalReplication'] = request.external_replication
|
|
4311
4317
|
if not UtilClient.is_unset(request.instance_network_type):
|
|
4312
4318
|
query['InstanceNetworkType'] = request.instance_network_type
|
|
4313
4319
|
if not UtilClient.is_unset(request.io_acceleration_enabled):
|
|
@@ -4481,6 +4487,8 @@ class Client(OpenApiClient):
|
|
|
4481
4487
|
query['Engine'] = request.engine
|
|
4482
4488
|
if not UtilClient.is_unset(request.engine_version):
|
|
4483
4489
|
query['EngineVersion'] = request.engine_version
|
|
4490
|
+
if not UtilClient.is_unset(request.external_replication):
|
|
4491
|
+
query['ExternalReplication'] = request.external_replication
|
|
4484
4492
|
if not UtilClient.is_unset(request.instance_network_type):
|
|
4485
4493
|
query['InstanceNetworkType'] = request.instance_network_type
|
|
4486
4494
|
if not UtilClient.is_unset(request.io_acceleration_enabled):
|
|
@@ -6076,6 +6084,122 @@ class Client(OpenApiClient):
|
|
|
6076
6084
|
runtime = util_models.RuntimeOptions()
|
|
6077
6085
|
return await self.create_ddr_instance_with_options_async(request, runtime)
|
|
6078
6086
|
|
|
6087
|
+
def create_diagnostic_report_with_options(
|
|
6088
|
+
self,
|
|
6089
|
+
request: rds_20140815_models.CreateDiagnosticReportRequest,
|
|
6090
|
+
runtime: util_models.RuntimeOptions,
|
|
6091
|
+
) -> rds_20140815_models.CreateDiagnosticReportResponse:
|
|
6092
|
+
"""
|
|
6093
|
+
@summary Creates a diagnostic report.
|
|
6094
|
+
|
|
6095
|
+
@description > This operation is no longer maintained. You can call the CreateDiagnosticReport operation of Database Autonomy Service (DAS) to create a diagnostic report.
|
|
6096
|
+
After you call this operation to create a diagnostic report, you can call the DescribeDiagnosticReportList operation to download the diagnostic report.
|
|
6097
|
+
|
|
6098
|
+
@param request: CreateDiagnosticReportRequest
|
|
6099
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
6100
|
+
@return: CreateDiagnosticReportResponse
|
|
6101
|
+
"""
|
|
6102
|
+
UtilClient.validate_model(request)
|
|
6103
|
+
query = {}
|
|
6104
|
+
if not UtilClient.is_unset(request.dbinstance_id):
|
|
6105
|
+
query['DBInstanceId'] = request.dbinstance_id
|
|
6106
|
+
if not UtilClient.is_unset(request.end_time):
|
|
6107
|
+
query['EndTime'] = request.end_time
|
|
6108
|
+
if not UtilClient.is_unset(request.start_time):
|
|
6109
|
+
query['StartTime'] = request.start_time
|
|
6110
|
+
req = open_api_models.OpenApiRequest(
|
|
6111
|
+
query=OpenApiUtilClient.query(query)
|
|
6112
|
+
)
|
|
6113
|
+
params = open_api_models.Params(
|
|
6114
|
+
action='CreateDiagnosticReport',
|
|
6115
|
+
version='2014-08-15',
|
|
6116
|
+
protocol='HTTPS',
|
|
6117
|
+
pathname='/',
|
|
6118
|
+
method='POST',
|
|
6119
|
+
auth_type='AK',
|
|
6120
|
+
style='RPC',
|
|
6121
|
+
req_body_type='formData',
|
|
6122
|
+
body_type='json'
|
|
6123
|
+
)
|
|
6124
|
+
return TeaCore.from_map(
|
|
6125
|
+
rds_20140815_models.CreateDiagnosticReportResponse(),
|
|
6126
|
+
self.call_api(params, req, runtime)
|
|
6127
|
+
)
|
|
6128
|
+
|
|
6129
|
+
async def create_diagnostic_report_with_options_async(
|
|
6130
|
+
self,
|
|
6131
|
+
request: rds_20140815_models.CreateDiagnosticReportRequest,
|
|
6132
|
+
runtime: util_models.RuntimeOptions,
|
|
6133
|
+
) -> rds_20140815_models.CreateDiagnosticReportResponse:
|
|
6134
|
+
"""
|
|
6135
|
+
@summary Creates a diagnostic report.
|
|
6136
|
+
|
|
6137
|
+
@description > This operation is no longer maintained. You can call the CreateDiagnosticReport operation of Database Autonomy Service (DAS) to create a diagnostic report.
|
|
6138
|
+
After you call this operation to create a diagnostic report, you can call the DescribeDiagnosticReportList operation to download the diagnostic report.
|
|
6139
|
+
|
|
6140
|
+
@param request: CreateDiagnosticReportRequest
|
|
6141
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
6142
|
+
@return: CreateDiagnosticReportResponse
|
|
6143
|
+
"""
|
|
6144
|
+
UtilClient.validate_model(request)
|
|
6145
|
+
query = {}
|
|
6146
|
+
if not UtilClient.is_unset(request.dbinstance_id):
|
|
6147
|
+
query['DBInstanceId'] = request.dbinstance_id
|
|
6148
|
+
if not UtilClient.is_unset(request.end_time):
|
|
6149
|
+
query['EndTime'] = request.end_time
|
|
6150
|
+
if not UtilClient.is_unset(request.start_time):
|
|
6151
|
+
query['StartTime'] = request.start_time
|
|
6152
|
+
req = open_api_models.OpenApiRequest(
|
|
6153
|
+
query=OpenApiUtilClient.query(query)
|
|
6154
|
+
)
|
|
6155
|
+
params = open_api_models.Params(
|
|
6156
|
+
action='CreateDiagnosticReport',
|
|
6157
|
+
version='2014-08-15',
|
|
6158
|
+
protocol='HTTPS',
|
|
6159
|
+
pathname='/',
|
|
6160
|
+
method='POST',
|
|
6161
|
+
auth_type='AK',
|
|
6162
|
+
style='RPC',
|
|
6163
|
+
req_body_type='formData',
|
|
6164
|
+
body_type='json'
|
|
6165
|
+
)
|
|
6166
|
+
return TeaCore.from_map(
|
|
6167
|
+
rds_20140815_models.CreateDiagnosticReportResponse(),
|
|
6168
|
+
await self.call_api_async(params, req, runtime)
|
|
6169
|
+
)
|
|
6170
|
+
|
|
6171
|
+
def create_diagnostic_report(
|
|
6172
|
+
self,
|
|
6173
|
+
request: rds_20140815_models.CreateDiagnosticReportRequest,
|
|
6174
|
+
) -> rds_20140815_models.CreateDiagnosticReportResponse:
|
|
6175
|
+
"""
|
|
6176
|
+
@summary Creates a diagnostic report.
|
|
6177
|
+
|
|
6178
|
+
@description > This operation is no longer maintained. You can call the CreateDiagnosticReport operation of Database Autonomy Service (DAS) to create a diagnostic report.
|
|
6179
|
+
After you call this operation to create a diagnostic report, you can call the DescribeDiagnosticReportList operation to download the diagnostic report.
|
|
6180
|
+
|
|
6181
|
+
@param request: CreateDiagnosticReportRequest
|
|
6182
|
+
@return: CreateDiagnosticReportResponse
|
|
6183
|
+
"""
|
|
6184
|
+
runtime = util_models.RuntimeOptions()
|
|
6185
|
+
return self.create_diagnostic_report_with_options(request, runtime)
|
|
6186
|
+
|
|
6187
|
+
async def create_diagnostic_report_async(
|
|
6188
|
+
self,
|
|
6189
|
+
request: rds_20140815_models.CreateDiagnosticReportRequest,
|
|
6190
|
+
) -> rds_20140815_models.CreateDiagnosticReportResponse:
|
|
6191
|
+
"""
|
|
6192
|
+
@summary Creates a diagnostic report.
|
|
6193
|
+
|
|
6194
|
+
@description > This operation is no longer maintained. You can call the CreateDiagnosticReport operation of Database Autonomy Service (DAS) to create a diagnostic report.
|
|
6195
|
+
After you call this operation to create a diagnostic report, you can call the DescribeDiagnosticReportList operation to download the diagnostic report.
|
|
6196
|
+
|
|
6197
|
+
@param request: CreateDiagnosticReportRequest
|
|
6198
|
+
@return: CreateDiagnosticReportResponse
|
|
6199
|
+
"""
|
|
6200
|
+
runtime = util_models.RuntimeOptions()
|
|
6201
|
+
return await self.create_diagnostic_report_with_options_async(request, runtime)
|
|
6202
|
+
|
|
6079
6203
|
def create_gadinstance_with_options(
|
|
6080
6204
|
self,
|
|
6081
6205
|
request: rds_20140815_models.CreateGADInstanceRequest,
|
|
@@ -7500,6 +7624,11 @@ class Client(OpenApiClient):
|
|
|
7500
7624
|
"""
|
|
7501
7625
|
@summary Creates a data disk for an RDS Custom instance.
|
|
7502
7626
|
|
|
7627
|
+
@description The disk can be an ultra disk, an Enterprise SSD (ESSD), an SSD, or a Premium ESSD. By default, Premium ESSD is used.
|
|
7628
|
+
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.
|
|
7629
|
+
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.
|
|
7630
|
+
The type and number of disks that can be attached to an instance vary based on instance specifications.
|
|
7631
|
+
|
|
7503
7632
|
@param request: CreateRCDiskRequest
|
|
7504
7633
|
@param runtime: runtime options for this request RuntimeOptions
|
|
7505
7634
|
@return: CreateRCDiskResponse
|
|
@@ -7565,6 +7694,11 @@ class Client(OpenApiClient):
|
|
|
7565
7694
|
"""
|
|
7566
7695
|
@summary Creates a data disk for an RDS Custom instance.
|
|
7567
7696
|
|
|
7697
|
+
@description The disk can be an ultra disk, an Enterprise SSD (ESSD), an SSD, or a Premium ESSD. By default, Premium ESSD is used.
|
|
7698
|
+
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.
|
|
7699
|
+
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.
|
|
7700
|
+
The type and number of disks that can be attached to an instance vary based on instance specifications.
|
|
7701
|
+
|
|
7568
7702
|
@param request: CreateRCDiskRequest
|
|
7569
7703
|
@param runtime: runtime options for this request RuntimeOptions
|
|
7570
7704
|
@return: CreateRCDiskResponse
|
|
@@ -7629,6 +7763,11 @@ class Client(OpenApiClient):
|
|
|
7629
7763
|
"""
|
|
7630
7764
|
@summary Creates a data disk for an RDS Custom instance.
|
|
7631
7765
|
|
|
7766
|
+
@description The disk can be an ultra disk, an Enterprise SSD (ESSD), an SSD, or a Premium ESSD. By default, Premium ESSD is used.
|
|
7767
|
+
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.
|
|
7768
|
+
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.
|
|
7769
|
+
The type and number of disks that can be attached to an instance vary based on instance specifications.
|
|
7770
|
+
|
|
7632
7771
|
@param request: CreateRCDiskRequest
|
|
7633
7772
|
@return: CreateRCDiskResponse
|
|
7634
7773
|
"""
|
|
@@ -7642,6 +7781,11 @@ class Client(OpenApiClient):
|
|
|
7642
7781
|
"""
|
|
7643
7782
|
@summary Creates a data disk for an RDS Custom instance.
|
|
7644
7783
|
|
|
7784
|
+
@description The disk can be an ultra disk, an Enterprise SSD (ESSD), an SSD, or a Premium ESSD. By default, Premium ESSD is used.
|
|
7785
|
+
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.
|
|
7786
|
+
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.
|
|
7787
|
+
The type and number of disks that can be attached to an instance vary based on instance specifications.
|
|
7788
|
+
|
|
7645
7789
|
@param request: CreateRCDiskRequest
|
|
7646
7790
|
@return: CreateRCDiskResponse
|
|
7647
7791
|
"""
|
|
@@ -7922,8 +8066,12 @@ class Client(OpenApiClient):
|
|
|
7922
8066
|
query['InstantAccessRetentionDays'] = request.instant_access_retention_days
|
|
7923
8067
|
if not UtilClient.is_unset(request.region_id):
|
|
7924
8068
|
query['RegionId'] = request.region_id
|
|
8069
|
+
if not UtilClient.is_unset(request.resource_group_id):
|
|
8070
|
+
query['ResourceGroupId'] = request.resource_group_id
|
|
7925
8071
|
if not UtilClient.is_unset(request.retention_days):
|
|
7926
8072
|
query['RetentionDays'] = request.retention_days
|
|
8073
|
+
if not UtilClient.is_unset(request.tag):
|
|
8074
|
+
query['Tag'] = request.tag
|
|
7927
8075
|
if not UtilClient.is_unset(request.zone_id):
|
|
7928
8076
|
query['ZoneId'] = request.zone_id
|
|
7929
8077
|
req = open_api_models.OpenApiRequest(
|
|
@@ -7979,8 +8127,12 @@ class Client(OpenApiClient):
|
|
|
7979
8127
|
query['InstantAccessRetentionDays'] = request.instant_access_retention_days
|
|
7980
8128
|
if not UtilClient.is_unset(request.region_id):
|
|
7981
8129
|
query['RegionId'] = request.region_id
|
|
8130
|
+
if not UtilClient.is_unset(request.resource_group_id):
|
|
8131
|
+
query['ResourceGroupId'] = request.resource_group_id
|
|
7982
8132
|
if not UtilClient.is_unset(request.retention_days):
|
|
7983
8133
|
query['RetentionDays'] = request.retention_days
|
|
8134
|
+
if not UtilClient.is_unset(request.tag):
|
|
8135
|
+
query['Tag'] = request.tag
|
|
7984
8136
|
if not UtilClient.is_unset(request.zone_id):
|
|
7985
8137
|
query['ZoneId'] = request.zone_id
|
|
7986
8138
|
req = open_api_models.OpenApiRequest(
|
|
@@ -9510,11 +9662,11 @@ class Client(OpenApiClient):
|
|
|
9510
9662
|
runtime: util_models.RuntimeOptions,
|
|
9511
9663
|
) -> rds_20140815_models.DeleteBackupFileResponse:
|
|
9512
9664
|
"""
|
|
9513
|
-
@summary Deletes the backup files of an ApsaraDB RDS for SQL Server instance.
|
|
9665
|
+
@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
9666
|
|
|
9515
|
-
@description ### [](#)Supported database
|
|
9516
|
-
|
|
9517
|
-
> This operation is
|
|
9667
|
+
@description ### [](#)Supported database engine
|
|
9668
|
+
SQL Server
|
|
9669
|
+
> *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
9670
|
|
|
9519
9671
|
@param request: DeleteBackupFileRequest
|
|
9520
9672
|
@param runtime: runtime options for this request RuntimeOptions
|
|
@@ -9563,11 +9715,11 @@ class Client(OpenApiClient):
|
|
|
9563
9715
|
runtime: util_models.RuntimeOptions,
|
|
9564
9716
|
) -> rds_20140815_models.DeleteBackupFileResponse:
|
|
9565
9717
|
"""
|
|
9566
|
-
@summary Deletes the backup files of an ApsaraDB RDS for SQL Server instance.
|
|
9718
|
+
@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
9719
|
|
|
9568
|
-
@description ### [](#)Supported database
|
|
9569
|
-
|
|
9570
|
-
> This operation is
|
|
9720
|
+
@description ### [](#)Supported database engine
|
|
9721
|
+
SQL Server
|
|
9722
|
+
> *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
9723
|
|
|
9572
9724
|
@param request: DeleteBackupFileRequest
|
|
9573
9725
|
@param runtime: runtime options for this request RuntimeOptions
|
|
@@ -9615,11 +9767,11 @@ class Client(OpenApiClient):
|
|
|
9615
9767
|
request: rds_20140815_models.DeleteBackupFileRequest,
|
|
9616
9768
|
) -> rds_20140815_models.DeleteBackupFileResponse:
|
|
9617
9769
|
"""
|
|
9618
|
-
@summary Deletes the backup files of an ApsaraDB RDS for SQL Server instance.
|
|
9770
|
+
@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
9771
|
|
|
9620
|
-
@description ### [](#)Supported database
|
|
9621
|
-
|
|
9622
|
-
> This operation is
|
|
9772
|
+
@description ### [](#)Supported database engine
|
|
9773
|
+
SQL Server
|
|
9774
|
+
> *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
9775
|
|
|
9624
9776
|
@param request: DeleteBackupFileRequest
|
|
9625
9777
|
@return: DeleteBackupFileResponse
|
|
@@ -9632,11 +9784,11 @@ class Client(OpenApiClient):
|
|
|
9632
9784
|
request: rds_20140815_models.DeleteBackupFileRequest,
|
|
9633
9785
|
) -> rds_20140815_models.DeleteBackupFileResponse:
|
|
9634
9786
|
"""
|
|
9635
|
-
@summary Deletes the backup files of an ApsaraDB RDS for SQL Server instance.
|
|
9787
|
+
@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
9788
|
|
|
9637
|
-
@description ### [](#)Supported database
|
|
9638
|
-
|
|
9639
|
-
> This operation is
|
|
9789
|
+
@description ### [](#)Supported database engine
|
|
9790
|
+
SQL Server
|
|
9791
|
+
> *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
9792
|
|
|
9641
9793
|
@param request: DeleteBackupFileRequest
|
|
9642
9794
|
@return: DeleteBackupFileResponse
|
|
@@ -15876,6 +16028,146 @@ class Client(OpenApiClient):
|
|
|
15876
16028
|
runtime = util_models.RuntimeOptions()
|
|
15877
16029
|
return await self.describe_collation_time_zones_with_options_async(request, runtime)
|
|
15878
16030
|
|
|
16031
|
+
def describe_compute_burst_config_with_options(
|
|
16032
|
+
self,
|
|
16033
|
+
request: rds_20140815_models.DescribeComputeBurstConfigRequest,
|
|
16034
|
+
runtime: util_models.RuntimeOptions,
|
|
16035
|
+
) -> rds_20140815_models.DescribeComputeBurstConfigResponse:
|
|
16036
|
+
"""
|
|
16037
|
+
@summary Queries the settings of assured serverless.
|
|
16038
|
+
|
|
16039
|
+
@description ### [](#)Supported database engine
|
|
16040
|
+
RDS PostgreSQL
|
|
16041
|
+
### [](#)References
|
|
16042
|
+
[Assured serverless](https://help.aliyun.com/document_detail/2928780.html)
|
|
16043
|
+
|
|
16044
|
+
@param request: DescribeComputeBurstConfigRequest
|
|
16045
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
16046
|
+
@return: DescribeComputeBurstConfigResponse
|
|
16047
|
+
"""
|
|
16048
|
+
UtilClient.validate_model(request)
|
|
16049
|
+
query = {}
|
|
16050
|
+
if not UtilClient.is_unset(request.client_token):
|
|
16051
|
+
query['ClientToken'] = request.client_token
|
|
16052
|
+
if not UtilClient.is_unset(request.dbinstance_id):
|
|
16053
|
+
query['DBInstanceId'] = request.dbinstance_id
|
|
16054
|
+
if not UtilClient.is_unset(request.owner_account):
|
|
16055
|
+
query['OwnerAccount'] = request.owner_account
|
|
16056
|
+
if not UtilClient.is_unset(request.owner_id):
|
|
16057
|
+
query['OwnerId'] = request.owner_id
|
|
16058
|
+
if not UtilClient.is_unset(request.region_id):
|
|
16059
|
+
query['RegionId'] = request.region_id
|
|
16060
|
+
if not UtilClient.is_unset(request.resource_group_id):
|
|
16061
|
+
query['ResourceGroupId'] = request.resource_group_id
|
|
16062
|
+
if not UtilClient.is_unset(request.resource_owner_account):
|
|
16063
|
+
query['ResourceOwnerAccount'] = request.resource_owner_account
|
|
16064
|
+
req = open_api_models.OpenApiRequest(
|
|
16065
|
+
query=OpenApiUtilClient.query(query)
|
|
16066
|
+
)
|
|
16067
|
+
params = open_api_models.Params(
|
|
16068
|
+
action='DescribeComputeBurstConfig',
|
|
16069
|
+
version='2014-08-15',
|
|
16070
|
+
protocol='HTTPS',
|
|
16071
|
+
pathname='/',
|
|
16072
|
+
method='POST',
|
|
16073
|
+
auth_type='AK',
|
|
16074
|
+
style='RPC',
|
|
16075
|
+
req_body_type='formData',
|
|
16076
|
+
body_type='json'
|
|
16077
|
+
)
|
|
16078
|
+
return TeaCore.from_map(
|
|
16079
|
+
rds_20140815_models.DescribeComputeBurstConfigResponse(),
|
|
16080
|
+
self.call_api(params, req, runtime)
|
|
16081
|
+
)
|
|
16082
|
+
|
|
16083
|
+
async def describe_compute_burst_config_with_options_async(
|
|
16084
|
+
self,
|
|
16085
|
+
request: rds_20140815_models.DescribeComputeBurstConfigRequest,
|
|
16086
|
+
runtime: util_models.RuntimeOptions,
|
|
16087
|
+
) -> rds_20140815_models.DescribeComputeBurstConfigResponse:
|
|
16088
|
+
"""
|
|
16089
|
+
@summary Queries the settings of assured serverless.
|
|
16090
|
+
|
|
16091
|
+
@description ### [](#)Supported database engine
|
|
16092
|
+
RDS PostgreSQL
|
|
16093
|
+
### [](#)References
|
|
16094
|
+
[Assured serverless](https://help.aliyun.com/document_detail/2928780.html)
|
|
16095
|
+
|
|
16096
|
+
@param request: DescribeComputeBurstConfigRequest
|
|
16097
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
16098
|
+
@return: DescribeComputeBurstConfigResponse
|
|
16099
|
+
"""
|
|
16100
|
+
UtilClient.validate_model(request)
|
|
16101
|
+
query = {}
|
|
16102
|
+
if not UtilClient.is_unset(request.client_token):
|
|
16103
|
+
query['ClientToken'] = request.client_token
|
|
16104
|
+
if not UtilClient.is_unset(request.dbinstance_id):
|
|
16105
|
+
query['DBInstanceId'] = request.dbinstance_id
|
|
16106
|
+
if not UtilClient.is_unset(request.owner_account):
|
|
16107
|
+
query['OwnerAccount'] = request.owner_account
|
|
16108
|
+
if not UtilClient.is_unset(request.owner_id):
|
|
16109
|
+
query['OwnerId'] = request.owner_id
|
|
16110
|
+
if not UtilClient.is_unset(request.region_id):
|
|
16111
|
+
query['RegionId'] = request.region_id
|
|
16112
|
+
if not UtilClient.is_unset(request.resource_group_id):
|
|
16113
|
+
query['ResourceGroupId'] = request.resource_group_id
|
|
16114
|
+
if not UtilClient.is_unset(request.resource_owner_account):
|
|
16115
|
+
query['ResourceOwnerAccount'] = request.resource_owner_account
|
|
16116
|
+
req = open_api_models.OpenApiRequest(
|
|
16117
|
+
query=OpenApiUtilClient.query(query)
|
|
16118
|
+
)
|
|
16119
|
+
params = open_api_models.Params(
|
|
16120
|
+
action='DescribeComputeBurstConfig',
|
|
16121
|
+
version='2014-08-15',
|
|
16122
|
+
protocol='HTTPS',
|
|
16123
|
+
pathname='/',
|
|
16124
|
+
method='POST',
|
|
16125
|
+
auth_type='AK',
|
|
16126
|
+
style='RPC',
|
|
16127
|
+
req_body_type='formData',
|
|
16128
|
+
body_type='json'
|
|
16129
|
+
)
|
|
16130
|
+
return TeaCore.from_map(
|
|
16131
|
+
rds_20140815_models.DescribeComputeBurstConfigResponse(),
|
|
16132
|
+
await self.call_api_async(params, req, runtime)
|
|
16133
|
+
)
|
|
16134
|
+
|
|
16135
|
+
def describe_compute_burst_config(
|
|
16136
|
+
self,
|
|
16137
|
+
request: rds_20140815_models.DescribeComputeBurstConfigRequest,
|
|
16138
|
+
) -> rds_20140815_models.DescribeComputeBurstConfigResponse:
|
|
16139
|
+
"""
|
|
16140
|
+
@summary Queries the settings of assured serverless.
|
|
16141
|
+
|
|
16142
|
+
@description ### [](#)Supported database engine
|
|
16143
|
+
RDS PostgreSQL
|
|
16144
|
+
### [](#)References
|
|
16145
|
+
[Assured serverless](https://help.aliyun.com/document_detail/2928780.html)
|
|
16146
|
+
|
|
16147
|
+
@param request: DescribeComputeBurstConfigRequest
|
|
16148
|
+
@return: DescribeComputeBurstConfigResponse
|
|
16149
|
+
"""
|
|
16150
|
+
runtime = util_models.RuntimeOptions()
|
|
16151
|
+
return self.describe_compute_burst_config_with_options(request, runtime)
|
|
16152
|
+
|
|
16153
|
+
async def describe_compute_burst_config_async(
|
|
16154
|
+
self,
|
|
16155
|
+
request: rds_20140815_models.DescribeComputeBurstConfigRequest,
|
|
16156
|
+
) -> rds_20140815_models.DescribeComputeBurstConfigResponse:
|
|
16157
|
+
"""
|
|
16158
|
+
@summary Queries the settings of assured serverless.
|
|
16159
|
+
|
|
16160
|
+
@description ### [](#)Supported database engine
|
|
16161
|
+
RDS PostgreSQL
|
|
16162
|
+
### [](#)References
|
|
16163
|
+
[Assured serverless](https://help.aliyun.com/document_detail/2928780.html)
|
|
16164
|
+
|
|
16165
|
+
@param request: DescribeComputeBurstConfigRequest
|
|
16166
|
+
@return: DescribeComputeBurstConfigResponse
|
|
16167
|
+
"""
|
|
16168
|
+
runtime = util_models.RuntimeOptions()
|
|
16169
|
+
return await self.describe_compute_burst_config_with_options_async(request, runtime)
|
|
16170
|
+
|
|
15879
16171
|
def describe_cross_backup_meta_list_with_options(
|
|
15880
16172
|
self,
|
|
15881
16173
|
request: rds_20140815_models.DescribeCrossBackupMetaListRequest,
|
|
@@ -19096,6 +19388,10 @@ class Client(OpenApiClient):
|
|
|
19096
19388
|
RDS MySQL
|
|
19097
19389
|
RDS PostgreSQL
|
|
19098
19390
|
RDS SQL Server
|
|
19391
|
+
### [](#)References
|
|
19392
|
+
[Use the SSL encryption feature for an ApsaraDB RDS for MySQL instance](https://help.aliyun.com/document_detail/96120.html)
|
|
19393
|
+
[Use the SSL encryption feature for an ApsaraDB RDS for PostgreSQL instance](https://help.aliyun.com/document_detail/229518.html)
|
|
19394
|
+
[Use the SSL encryption feature for an ApsaraDB RDS for SQL Server instance](https://help.aliyun.com/document_detail/95715.html)
|
|
19099
19395
|
|
|
19100
19396
|
@param request: DescribeDBInstanceSSLRequest
|
|
19101
19397
|
@param runtime: runtime options for this request RuntimeOptions
|
|
@@ -19144,6 +19440,10 @@ class Client(OpenApiClient):
|
|
|
19144
19440
|
RDS MySQL
|
|
19145
19441
|
RDS PostgreSQL
|
|
19146
19442
|
RDS SQL Server
|
|
19443
|
+
### [](#)References
|
|
19444
|
+
[Use the SSL encryption feature for an ApsaraDB RDS for MySQL instance](https://help.aliyun.com/document_detail/96120.html)
|
|
19445
|
+
[Use the SSL encryption feature for an ApsaraDB RDS for PostgreSQL instance](https://help.aliyun.com/document_detail/229518.html)
|
|
19446
|
+
[Use the SSL encryption feature for an ApsaraDB RDS for SQL Server instance](https://help.aliyun.com/document_detail/95715.html)
|
|
19147
19447
|
|
|
19148
19448
|
@param request: DescribeDBInstanceSSLRequest
|
|
19149
19449
|
@param runtime: runtime options for this request RuntimeOptions
|
|
@@ -19191,6 +19491,10 @@ class Client(OpenApiClient):
|
|
|
19191
19491
|
RDS MySQL
|
|
19192
19492
|
RDS PostgreSQL
|
|
19193
19493
|
RDS SQL Server
|
|
19494
|
+
### [](#)References
|
|
19495
|
+
[Use the SSL encryption feature for an ApsaraDB RDS for MySQL instance](https://help.aliyun.com/document_detail/96120.html)
|
|
19496
|
+
[Use the SSL encryption feature for an ApsaraDB RDS for PostgreSQL instance](https://help.aliyun.com/document_detail/229518.html)
|
|
19497
|
+
[Use the SSL encryption feature for an ApsaraDB RDS for SQL Server instance](https://help.aliyun.com/document_detail/95715.html)
|
|
19194
19498
|
|
|
19195
19499
|
@param request: DescribeDBInstanceSSLRequest
|
|
19196
19500
|
@return: DescribeDBInstanceSSLResponse
|
|
@@ -19209,6 +19513,10 @@ class Client(OpenApiClient):
|
|
|
19209
19513
|
RDS MySQL
|
|
19210
19514
|
RDS PostgreSQL
|
|
19211
19515
|
RDS SQL Server
|
|
19516
|
+
### [](#)References
|
|
19517
|
+
[Use the SSL encryption feature for an ApsaraDB RDS for MySQL instance](https://help.aliyun.com/document_detail/96120.html)
|
|
19518
|
+
[Use the SSL encryption feature for an ApsaraDB RDS for PostgreSQL instance](https://help.aliyun.com/document_detail/229518.html)
|
|
19519
|
+
[Use the SSL encryption feature for an ApsaraDB RDS for SQL Server instance](https://help.aliyun.com/document_detail/95715.html)
|
|
19212
19520
|
|
|
19213
19521
|
@param request: DescribeDBInstanceSSLRequest
|
|
19214
19522
|
@return: DescribeDBInstanceSSLResponse
|
|
@@ -19546,6 +19854,8 @@ class Client(OpenApiClient):
|
|
|
19546
19854
|
query['PageSize'] = request.page_size
|
|
19547
19855
|
if not UtilClient.is_unset(request.pay_type):
|
|
19548
19856
|
query['PayType'] = request.pay_type
|
|
19857
|
+
if not UtilClient.is_unset(request.query_auto_renewal):
|
|
19858
|
+
query['QueryAutoRenewal'] = request.query_auto_renewal
|
|
19549
19859
|
if not UtilClient.is_unset(request.region_id):
|
|
19550
19860
|
query['RegionId'] = request.region_id
|
|
19551
19861
|
if not UtilClient.is_unset(request.resource_group_id):
|
|
@@ -19651,6 +19961,8 @@ class Client(OpenApiClient):
|
|
|
19651
19961
|
query['PageSize'] = request.page_size
|
|
19652
19962
|
if not UtilClient.is_unset(request.pay_type):
|
|
19653
19963
|
query['PayType'] = request.pay_type
|
|
19964
|
+
if not UtilClient.is_unset(request.query_auto_renewal):
|
|
19965
|
+
query['QueryAutoRenewal'] = request.query_auto_renewal
|
|
19654
19966
|
if not UtilClient.is_unset(request.region_id):
|
|
19655
19967
|
query['RegionId'] = request.region_id
|
|
19656
19968
|
if not UtilClient.is_unset(request.resource_group_id):
|
|
@@ -21756,6 +22068,126 @@ class Client(OpenApiClient):
|
|
|
21756
22068
|
runtime = util_models.RuntimeOptions()
|
|
21757
22069
|
return await self.describe_detached_backups_with_options_async(request, runtime)
|
|
21758
22070
|
|
|
22071
|
+
def describe_diagnostic_report_list_with_options(
|
|
22072
|
+
self,
|
|
22073
|
+
request: rds_20140815_models.DescribeDiagnosticReportListRequest,
|
|
22074
|
+
runtime: util_models.RuntimeOptions,
|
|
22075
|
+
) -> rds_20140815_models.DescribeDiagnosticReportListResponse:
|
|
22076
|
+
"""
|
|
22077
|
+
@deprecated OpenAPI DescribeDiagnosticReportList is deprecated
|
|
22078
|
+
|
|
22079
|
+
@summary Queries the information about diagnostics reports.
|
|
22080
|
+
|
|
22081
|
+
@description > This operation is phased out.
|
|
22082
|
+
|
|
22083
|
+
@param request: DescribeDiagnosticReportListRequest
|
|
22084
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
22085
|
+
@return: DescribeDiagnosticReportListResponse
|
|
22086
|
+
Deprecated
|
|
22087
|
+
"""
|
|
22088
|
+
UtilClient.validate_model(request)
|
|
22089
|
+
query = {}
|
|
22090
|
+
if not UtilClient.is_unset(request.dbinstance_id):
|
|
22091
|
+
query['DBInstanceId'] = request.dbinstance_id
|
|
22092
|
+
if not UtilClient.is_unset(request.resource_group_id):
|
|
22093
|
+
query['ResourceGroupId'] = request.resource_group_id
|
|
22094
|
+
req = open_api_models.OpenApiRequest(
|
|
22095
|
+
query=OpenApiUtilClient.query(query)
|
|
22096
|
+
)
|
|
22097
|
+
params = open_api_models.Params(
|
|
22098
|
+
action='DescribeDiagnosticReportList',
|
|
22099
|
+
version='2014-08-15',
|
|
22100
|
+
protocol='HTTPS',
|
|
22101
|
+
pathname='/',
|
|
22102
|
+
method='POST',
|
|
22103
|
+
auth_type='AK',
|
|
22104
|
+
style='RPC',
|
|
22105
|
+
req_body_type='formData',
|
|
22106
|
+
body_type='json'
|
|
22107
|
+
)
|
|
22108
|
+
return TeaCore.from_map(
|
|
22109
|
+
rds_20140815_models.DescribeDiagnosticReportListResponse(),
|
|
22110
|
+
self.call_api(params, req, runtime)
|
|
22111
|
+
)
|
|
22112
|
+
|
|
22113
|
+
async def describe_diagnostic_report_list_with_options_async(
|
|
22114
|
+
self,
|
|
22115
|
+
request: rds_20140815_models.DescribeDiagnosticReportListRequest,
|
|
22116
|
+
runtime: util_models.RuntimeOptions,
|
|
22117
|
+
) -> rds_20140815_models.DescribeDiagnosticReportListResponse:
|
|
22118
|
+
"""
|
|
22119
|
+
@deprecated OpenAPI DescribeDiagnosticReportList is deprecated
|
|
22120
|
+
|
|
22121
|
+
@summary Queries the information about diagnostics reports.
|
|
22122
|
+
|
|
22123
|
+
@description > This operation is phased out.
|
|
22124
|
+
|
|
22125
|
+
@param request: DescribeDiagnosticReportListRequest
|
|
22126
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
22127
|
+
@return: DescribeDiagnosticReportListResponse
|
|
22128
|
+
Deprecated
|
|
22129
|
+
"""
|
|
22130
|
+
UtilClient.validate_model(request)
|
|
22131
|
+
query = {}
|
|
22132
|
+
if not UtilClient.is_unset(request.dbinstance_id):
|
|
22133
|
+
query['DBInstanceId'] = request.dbinstance_id
|
|
22134
|
+
if not UtilClient.is_unset(request.resource_group_id):
|
|
22135
|
+
query['ResourceGroupId'] = request.resource_group_id
|
|
22136
|
+
req = open_api_models.OpenApiRequest(
|
|
22137
|
+
query=OpenApiUtilClient.query(query)
|
|
22138
|
+
)
|
|
22139
|
+
params = open_api_models.Params(
|
|
22140
|
+
action='DescribeDiagnosticReportList',
|
|
22141
|
+
version='2014-08-15',
|
|
22142
|
+
protocol='HTTPS',
|
|
22143
|
+
pathname='/',
|
|
22144
|
+
method='POST',
|
|
22145
|
+
auth_type='AK',
|
|
22146
|
+
style='RPC',
|
|
22147
|
+
req_body_type='formData',
|
|
22148
|
+
body_type='json'
|
|
22149
|
+
)
|
|
22150
|
+
return TeaCore.from_map(
|
|
22151
|
+
rds_20140815_models.DescribeDiagnosticReportListResponse(),
|
|
22152
|
+
await self.call_api_async(params, req, runtime)
|
|
22153
|
+
)
|
|
22154
|
+
|
|
22155
|
+
def describe_diagnostic_report_list(
|
|
22156
|
+
self,
|
|
22157
|
+
request: rds_20140815_models.DescribeDiagnosticReportListRequest,
|
|
22158
|
+
) -> rds_20140815_models.DescribeDiagnosticReportListResponse:
|
|
22159
|
+
"""
|
|
22160
|
+
@deprecated OpenAPI DescribeDiagnosticReportList is deprecated
|
|
22161
|
+
|
|
22162
|
+
@summary Queries the information about diagnostics reports.
|
|
22163
|
+
|
|
22164
|
+
@description > This operation is phased out.
|
|
22165
|
+
|
|
22166
|
+
@param request: DescribeDiagnosticReportListRequest
|
|
22167
|
+
@return: DescribeDiagnosticReportListResponse
|
|
22168
|
+
Deprecated
|
|
22169
|
+
"""
|
|
22170
|
+
runtime = util_models.RuntimeOptions()
|
|
22171
|
+
return self.describe_diagnostic_report_list_with_options(request, runtime)
|
|
22172
|
+
|
|
22173
|
+
async def describe_diagnostic_report_list_async(
|
|
22174
|
+
self,
|
|
22175
|
+
request: rds_20140815_models.DescribeDiagnosticReportListRequest,
|
|
22176
|
+
) -> rds_20140815_models.DescribeDiagnosticReportListResponse:
|
|
22177
|
+
"""
|
|
22178
|
+
@deprecated OpenAPI DescribeDiagnosticReportList is deprecated
|
|
22179
|
+
|
|
22180
|
+
@summary Queries the information about diagnostics reports.
|
|
22181
|
+
|
|
22182
|
+
@description > This operation is phased out.
|
|
22183
|
+
|
|
22184
|
+
@param request: DescribeDiagnosticReportListRequest
|
|
22185
|
+
@return: DescribeDiagnosticReportListResponse
|
|
22186
|
+
Deprecated
|
|
22187
|
+
"""
|
|
22188
|
+
runtime = util_models.RuntimeOptions()
|
|
22189
|
+
return await self.describe_diagnostic_report_list_with_options_async(request, runtime)
|
|
22190
|
+
|
|
21759
22191
|
def describe_error_logs_with_options(
|
|
21760
22192
|
self,
|
|
21761
22193
|
request: rds_20140815_models.DescribeErrorLogsRequest,
|
|
@@ -26712,6 +27144,134 @@ class Client(OpenApiClient):
|
|
|
26712
27144
|
runtime = util_models.RuntimeOptions()
|
|
26713
27145
|
return await self.describe_quick_sale_config_with_options_async(request, runtime)
|
|
26714
27146
|
|
|
27147
|
+
def describe_rccloud_assistant_status_with_options(
|
|
27148
|
+
self,
|
|
27149
|
+
tmp_req: rds_20140815_models.DescribeRCCloudAssistantStatusRequest,
|
|
27150
|
+
runtime: util_models.RuntimeOptions,
|
|
27151
|
+
) -> rds_20140815_models.DescribeRCCloudAssistantStatusResponse:
|
|
27152
|
+
"""
|
|
27153
|
+
@summary 查询云助手安装状态
|
|
27154
|
+
|
|
27155
|
+
@param tmp_req: DescribeRCCloudAssistantStatusRequest
|
|
27156
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
27157
|
+
@return: DescribeRCCloudAssistantStatusResponse
|
|
27158
|
+
"""
|
|
27159
|
+
UtilClient.validate_model(tmp_req)
|
|
27160
|
+
request = rds_20140815_models.DescribeRCCloudAssistantStatusShrinkRequest()
|
|
27161
|
+
OpenApiUtilClient.convert(tmp_req, request)
|
|
27162
|
+
if not UtilClient.is_unset(tmp_req.instance_ids):
|
|
27163
|
+
request.instance_ids_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.instance_ids, 'InstanceIds', 'json')
|
|
27164
|
+
query = {}
|
|
27165
|
+
if not UtilClient.is_unset(request.instance_ids_shrink):
|
|
27166
|
+
query['InstanceIds'] = request.instance_ids_shrink
|
|
27167
|
+
if not UtilClient.is_unset(request.max_results):
|
|
27168
|
+
query['MaxResults'] = request.max_results
|
|
27169
|
+
if not UtilClient.is_unset(request.next_token):
|
|
27170
|
+
query['NextToken'] = request.next_token
|
|
27171
|
+
if not UtilClient.is_unset(request.ostype):
|
|
27172
|
+
query['OSType'] = request.ostype
|
|
27173
|
+
if not UtilClient.is_unset(request.page_number):
|
|
27174
|
+
query['PageNumber'] = request.page_number
|
|
27175
|
+
if not UtilClient.is_unset(request.page_size):
|
|
27176
|
+
query['PageSize'] = request.page_size
|
|
27177
|
+
if not UtilClient.is_unset(request.region_id):
|
|
27178
|
+
query['RegionId'] = request.region_id
|
|
27179
|
+
req = open_api_models.OpenApiRequest(
|
|
27180
|
+
query=OpenApiUtilClient.query(query)
|
|
27181
|
+
)
|
|
27182
|
+
params = open_api_models.Params(
|
|
27183
|
+
action='DescribeRCCloudAssistantStatus',
|
|
27184
|
+
version='2014-08-15',
|
|
27185
|
+
protocol='HTTPS',
|
|
27186
|
+
pathname='/',
|
|
27187
|
+
method='POST',
|
|
27188
|
+
auth_type='AK',
|
|
27189
|
+
style='RPC',
|
|
27190
|
+
req_body_type='formData',
|
|
27191
|
+
body_type='json'
|
|
27192
|
+
)
|
|
27193
|
+
return TeaCore.from_map(
|
|
27194
|
+
rds_20140815_models.DescribeRCCloudAssistantStatusResponse(),
|
|
27195
|
+
self.call_api(params, req, runtime)
|
|
27196
|
+
)
|
|
27197
|
+
|
|
27198
|
+
async def describe_rccloud_assistant_status_with_options_async(
|
|
27199
|
+
self,
|
|
27200
|
+
tmp_req: rds_20140815_models.DescribeRCCloudAssistantStatusRequest,
|
|
27201
|
+
runtime: util_models.RuntimeOptions,
|
|
27202
|
+
) -> rds_20140815_models.DescribeRCCloudAssistantStatusResponse:
|
|
27203
|
+
"""
|
|
27204
|
+
@summary 查询云助手安装状态
|
|
27205
|
+
|
|
27206
|
+
@param tmp_req: DescribeRCCloudAssistantStatusRequest
|
|
27207
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
27208
|
+
@return: DescribeRCCloudAssistantStatusResponse
|
|
27209
|
+
"""
|
|
27210
|
+
UtilClient.validate_model(tmp_req)
|
|
27211
|
+
request = rds_20140815_models.DescribeRCCloudAssistantStatusShrinkRequest()
|
|
27212
|
+
OpenApiUtilClient.convert(tmp_req, request)
|
|
27213
|
+
if not UtilClient.is_unset(tmp_req.instance_ids):
|
|
27214
|
+
request.instance_ids_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.instance_ids, 'InstanceIds', 'json')
|
|
27215
|
+
query = {}
|
|
27216
|
+
if not UtilClient.is_unset(request.instance_ids_shrink):
|
|
27217
|
+
query['InstanceIds'] = request.instance_ids_shrink
|
|
27218
|
+
if not UtilClient.is_unset(request.max_results):
|
|
27219
|
+
query['MaxResults'] = request.max_results
|
|
27220
|
+
if not UtilClient.is_unset(request.next_token):
|
|
27221
|
+
query['NextToken'] = request.next_token
|
|
27222
|
+
if not UtilClient.is_unset(request.ostype):
|
|
27223
|
+
query['OSType'] = request.ostype
|
|
27224
|
+
if not UtilClient.is_unset(request.page_number):
|
|
27225
|
+
query['PageNumber'] = request.page_number
|
|
27226
|
+
if not UtilClient.is_unset(request.page_size):
|
|
27227
|
+
query['PageSize'] = request.page_size
|
|
27228
|
+
if not UtilClient.is_unset(request.region_id):
|
|
27229
|
+
query['RegionId'] = request.region_id
|
|
27230
|
+
req = open_api_models.OpenApiRequest(
|
|
27231
|
+
query=OpenApiUtilClient.query(query)
|
|
27232
|
+
)
|
|
27233
|
+
params = open_api_models.Params(
|
|
27234
|
+
action='DescribeRCCloudAssistantStatus',
|
|
27235
|
+
version='2014-08-15',
|
|
27236
|
+
protocol='HTTPS',
|
|
27237
|
+
pathname='/',
|
|
27238
|
+
method='POST',
|
|
27239
|
+
auth_type='AK',
|
|
27240
|
+
style='RPC',
|
|
27241
|
+
req_body_type='formData',
|
|
27242
|
+
body_type='json'
|
|
27243
|
+
)
|
|
27244
|
+
return TeaCore.from_map(
|
|
27245
|
+
rds_20140815_models.DescribeRCCloudAssistantStatusResponse(),
|
|
27246
|
+
await self.call_api_async(params, req, runtime)
|
|
27247
|
+
)
|
|
27248
|
+
|
|
27249
|
+
def describe_rccloud_assistant_status(
|
|
27250
|
+
self,
|
|
27251
|
+
request: rds_20140815_models.DescribeRCCloudAssistantStatusRequest,
|
|
27252
|
+
) -> rds_20140815_models.DescribeRCCloudAssistantStatusResponse:
|
|
27253
|
+
"""
|
|
27254
|
+
@summary 查询云助手安装状态
|
|
27255
|
+
|
|
27256
|
+
@param request: DescribeRCCloudAssistantStatusRequest
|
|
27257
|
+
@return: DescribeRCCloudAssistantStatusResponse
|
|
27258
|
+
"""
|
|
27259
|
+
runtime = util_models.RuntimeOptions()
|
|
27260
|
+
return self.describe_rccloud_assistant_status_with_options(request, runtime)
|
|
27261
|
+
|
|
27262
|
+
async def describe_rccloud_assistant_status_async(
|
|
27263
|
+
self,
|
|
27264
|
+
request: rds_20140815_models.DescribeRCCloudAssistantStatusRequest,
|
|
27265
|
+
) -> rds_20140815_models.DescribeRCCloudAssistantStatusResponse:
|
|
27266
|
+
"""
|
|
27267
|
+
@summary 查询云助手安装状态
|
|
27268
|
+
|
|
27269
|
+
@param request: DescribeRCCloudAssistantStatusRequest
|
|
27270
|
+
@return: DescribeRCCloudAssistantStatusResponse
|
|
27271
|
+
"""
|
|
27272
|
+
runtime = util_models.RuntimeOptions()
|
|
27273
|
+
return await self.describe_rccloud_assistant_status_with_options_async(request, runtime)
|
|
27274
|
+
|
|
26715
27275
|
def describe_rccluster_config_with_options(
|
|
26716
27276
|
self,
|
|
26717
27277
|
request: rds_20140815_models.DescribeRCClusterConfigRequest,
|
|
@@ -27328,6 +27888,8 @@ class Client(OpenApiClient):
|
|
|
27328
27888
|
query = {}
|
|
27329
27889
|
if not UtilClient.is_unset(request.instance_id):
|
|
27330
27890
|
query['InstanceId'] = request.instance_id
|
|
27891
|
+
if not UtilClient.is_unset(request.max_disks_results):
|
|
27892
|
+
query['MaxDisksResults'] = request.max_disks_results
|
|
27331
27893
|
if not UtilClient.is_unset(request.private_ip_address):
|
|
27332
27894
|
query['PrivateIpAddress'] = request.private_ip_address
|
|
27333
27895
|
if not UtilClient.is_unset(request.region_id):
|
|
@@ -27367,6 +27929,8 @@ class Client(OpenApiClient):
|
|
|
27367
27929
|
query = {}
|
|
27368
27930
|
if not UtilClient.is_unset(request.instance_id):
|
|
27369
27931
|
query['InstanceId'] = request.instance_id
|
|
27932
|
+
if not UtilClient.is_unset(request.max_disks_results):
|
|
27933
|
+
query['MaxDisksResults'] = request.max_disks_results
|
|
27370
27934
|
if not UtilClient.is_unset(request.private_ip_address):
|
|
27371
27935
|
query['PrivateIpAddress'] = request.private_ip_address
|
|
27372
27936
|
if not UtilClient.is_unset(request.region_id):
|
|
@@ -27546,7 +28110,11 @@ class Client(OpenApiClient):
|
|
|
27546
28110
|
runtime: util_models.RuntimeOptions,
|
|
27547
28111
|
) -> rds_20140815_models.DescribeRCInstanceHistoryEventsResponse:
|
|
27548
28112
|
"""
|
|
27549
|
-
@summary
|
|
28113
|
+
@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.
|
|
28114
|
+
|
|
28115
|
+
@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.
|
|
28116
|
+
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.
|
|
28117
|
+
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
28118
|
|
|
27551
28119
|
@param request: DescribeRCInstanceHistoryEventsRequest
|
|
27552
28120
|
@param runtime: runtime options for this request RuntimeOptions
|
|
@@ -27611,7 +28179,11 @@ class Client(OpenApiClient):
|
|
|
27611
28179
|
runtime: util_models.RuntimeOptions,
|
|
27612
28180
|
) -> rds_20140815_models.DescribeRCInstanceHistoryEventsResponse:
|
|
27613
28181
|
"""
|
|
27614
|
-
@summary
|
|
28182
|
+
@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.
|
|
28183
|
+
|
|
28184
|
+
@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.
|
|
28185
|
+
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.
|
|
28186
|
+
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
28187
|
|
|
27616
28188
|
@param request: DescribeRCInstanceHistoryEventsRequest
|
|
27617
28189
|
@param runtime: runtime options for this request RuntimeOptions
|
|
@@ -27675,7 +28247,11 @@ class Client(OpenApiClient):
|
|
|
27675
28247
|
request: rds_20140815_models.DescribeRCInstanceHistoryEventsRequest,
|
|
27676
28248
|
) -> rds_20140815_models.DescribeRCInstanceHistoryEventsResponse:
|
|
27677
28249
|
"""
|
|
27678
|
-
@summary
|
|
28250
|
+
@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.
|
|
28251
|
+
|
|
28252
|
+
@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.
|
|
28253
|
+
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.
|
|
28254
|
+
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
28255
|
|
|
27680
28256
|
@param request: DescribeRCInstanceHistoryEventsRequest
|
|
27681
28257
|
@return: DescribeRCInstanceHistoryEventsResponse
|
|
@@ -27688,7 +28264,11 @@ class Client(OpenApiClient):
|
|
|
27688
28264
|
request: rds_20140815_models.DescribeRCInstanceHistoryEventsRequest,
|
|
27689
28265
|
) -> rds_20140815_models.DescribeRCInstanceHistoryEventsResponse:
|
|
27690
28266
|
"""
|
|
27691
|
-
@summary
|
|
28267
|
+
@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.
|
|
28268
|
+
|
|
28269
|
+
@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.
|
|
28270
|
+
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.
|
|
28271
|
+
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
28272
|
|
|
27693
28273
|
@param request: DescribeRCInstanceHistoryEventsRequest
|
|
27694
28274
|
@return: DescribeRCInstanceHistoryEventsResponse
|
|
@@ -28308,6 +28888,158 @@ class Client(OpenApiClient):
|
|
|
28308
28888
|
runtime = util_models.RuntimeOptions()
|
|
28309
28889
|
return await self.describe_rcinstances_with_options_async(request, runtime)
|
|
28310
28890
|
|
|
28891
|
+
def describe_rcinvocation_results_with_options(
|
|
28892
|
+
self,
|
|
28893
|
+
tmp_req: rds_20140815_models.DescribeRCInvocationResultsRequest,
|
|
28894
|
+
runtime: util_models.RuntimeOptions,
|
|
28895
|
+
) -> rds_20140815_models.DescribeRCInvocationResultsResponse:
|
|
28896
|
+
"""
|
|
28897
|
+
@summary 查询云助手命令执行结果
|
|
28898
|
+
|
|
28899
|
+
@param tmp_req: DescribeRCInvocationResultsRequest
|
|
28900
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
28901
|
+
@return: DescribeRCInvocationResultsResponse
|
|
28902
|
+
"""
|
|
28903
|
+
UtilClient.validate_model(tmp_req)
|
|
28904
|
+
request = rds_20140815_models.DescribeRCInvocationResultsShrinkRequest()
|
|
28905
|
+
OpenApiUtilClient.convert(tmp_req, request)
|
|
28906
|
+
if not UtilClient.is_unset(tmp_req.tag):
|
|
28907
|
+
request.tag_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.tag, 'Tag', 'json')
|
|
28908
|
+
query = {}
|
|
28909
|
+
if not UtilClient.is_unset(request.command_id):
|
|
28910
|
+
query['CommandId'] = request.command_id
|
|
28911
|
+
if not UtilClient.is_unset(request.content_encoding):
|
|
28912
|
+
query['ContentEncoding'] = request.content_encoding
|
|
28913
|
+
if not UtilClient.is_unset(request.include_history):
|
|
28914
|
+
query['IncludeHistory'] = request.include_history
|
|
28915
|
+
if not UtilClient.is_unset(request.instance_id):
|
|
28916
|
+
query['InstanceId'] = request.instance_id
|
|
28917
|
+
if not UtilClient.is_unset(request.invoke_id):
|
|
28918
|
+
query['InvokeId'] = request.invoke_id
|
|
28919
|
+
if not UtilClient.is_unset(request.invoke_record_status):
|
|
28920
|
+
query['InvokeRecordStatus'] = request.invoke_record_status
|
|
28921
|
+
if not UtilClient.is_unset(request.max_results):
|
|
28922
|
+
query['MaxResults'] = request.max_results
|
|
28923
|
+
if not UtilClient.is_unset(request.next_token):
|
|
28924
|
+
query['NextToken'] = request.next_token
|
|
28925
|
+
if not UtilClient.is_unset(request.page_number):
|
|
28926
|
+
query['PageNumber'] = request.page_number
|
|
28927
|
+
if not UtilClient.is_unset(request.page_size):
|
|
28928
|
+
query['PageSize'] = request.page_size
|
|
28929
|
+
if not UtilClient.is_unset(request.region_id):
|
|
28930
|
+
query['RegionId'] = request.region_id
|
|
28931
|
+
if not UtilClient.is_unset(request.resource_group_id):
|
|
28932
|
+
query['ResourceGroupId'] = request.resource_group_id
|
|
28933
|
+
if not UtilClient.is_unset(request.tag_shrink):
|
|
28934
|
+
query['Tag'] = request.tag_shrink
|
|
28935
|
+
req = open_api_models.OpenApiRequest(
|
|
28936
|
+
query=OpenApiUtilClient.query(query)
|
|
28937
|
+
)
|
|
28938
|
+
params = open_api_models.Params(
|
|
28939
|
+
action='DescribeRCInvocationResults',
|
|
28940
|
+
version='2014-08-15',
|
|
28941
|
+
protocol='HTTPS',
|
|
28942
|
+
pathname='/',
|
|
28943
|
+
method='POST',
|
|
28944
|
+
auth_type='AK',
|
|
28945
|
+
style='RPC',
|
|
28946
|
+
req_body_type='formData',
|
|
28947
|
+
body_type='json'
|
|
28948
|
+
)
|
|
28949
|
+
return TeaCore.from_map(
|
|
28950
|
+
rds_20140815_models.DescribeRCInvocationResultsResponse(),
|
|
28951
|
+
self.call_api(params, req, runtime)
|
|
28952
|
+
)
|
|
28953
|
+
|
|
28954
|
+
async def describe_rcinvocation_results_with_options_async(
|
|
28955
|
+
self,
|
|
28956
|
+
tmp_req: rds_20140815_models.DescribeRCInvocationResultsRequest,
|
|
28957
|
+
runtime: util_models.RuntimeOptions,
|
|
28958
|
+
) -> rds_20140815_models.DescribeRCInvocationResultsResponse:
|
|
28959
|
+
"""
|
|
28960
|
+
@summary 查询云助手命令执行结果
|
|
28961
|
+
|
|
28962
|
+
@param tmp_req: DescribeRCInvocationResultsRequest
|
|
28963
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
28964
|
+
@return: DescribeRCInvocationResultsResponse
|
|
28965
|
+
"""
|
|
28966
|
+
UtilClient.validate_model(tmp_req)
|
|
28967
|
+
request = rds_20140815_models.DescribeRCInvocationResultsShrinkRequest()
|
|
28968
|
+
OpenApiUtilClient.convert(tmp_req, request)
|
|
28969
|
+
if not UtilClient.is_unset(tmp_req.tag):
|
|
28970
|
+
request.tag_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.tag, 'Tag', 'json')
|
|
28971
|
+
query = {}
|
|
28972
|
+
if not UtilClient.is_unset(request.command_id):
|
|
28973
|
+
query['CommandId'] = request.command_id
|
|
28974
|
+
if not UtilClient.is_unset(request.content_encoding):
|
|
28975
|
+
query['ContentEncoding'] = request.content_encoding
|
|
28976
|
+
if not UtilClient.is_unset(request.include_history):
|
|
28977
|
+
query['IncludeHistory'] = request.include_history
|
|
28978
|
+
if not UtilClient.is_unset(request.instance_id):
|
|
28979
|
+
query['InstanceId'] = request.instance_id
|
|
28980
|
+
if not UtilClient.is_unset(request.invoke_id):
|
|
28981
|
+
query['InvokeId'] = request.invoke_id
|
|
28982
|
+
if not UtilClient.is_unset(request.invoke_record_status):
|
|
28983
|
+
query['InvokeRecordStatus'] = request.invoke_record_status
|
|
28984
|
+
if not UtilClient.is_unset(request.max_results):
|
|
28985
|
+
query['MaxResults'] = request.max_results
|
|
28986
|
+
if not UtilClient.is_unset(request.next_token):
|
|
28987
|
+
query['NextToken'] = request.next_token
|
|
28988
|
+
if not UtilClient.is_unset(request.page_number):
|
|
28989
|
+
query['PageNumber'] = request.page_number
|
|
28990
|
+
if not UtilClient.is_unset(request.page_size):
|
|
28991
|
+
query['PageSize'] = request.page_size
|
|
28992
|
+
if not UtilClient.is_unset(request.region_id):
|
|
28993
|
+
query['RegionId'] = request.region_id
|
|
28994
|
+
if not UtilClient.is_unset(request.resource_group_id):
|
|
28995
|
+
query['ResourceGroupId'] = request.resource_group_id
|
|
28996
|
+
if not UtilClient.is_unset(request.tag_shrink):
|
|
28997
|
+
query['Tag'] = request.tag_shrink
|
|
28998
|
+
req = open_api_models.OpenApiRequest(
|
|
28999
|
+
query=OpenApiUtilClient.query(query)
|
|
29000
|
+
)
|
|
29001
|
+
params = open_api_models.Params(
|
|
29002
|
+
action='DescribeRCInvocationResults',
|
|
29003
|
+
version='2014-08-15',
|
|
29004
|
+
protocol='HTTPS',
|
|
29005
|
+
pathname='/',
|
|
29006
|
+
method='POST',
|
|
29007
|
+
auth_type='AK',
|
|
29008
|
+
style='RPC',
|
|
29009
|
+
req_body_type='formData',
|
|
29010
|
+
body_type='json'
|
|
29011
|
+
)
|
|
29012
|
+
return TeaCore.from_map(
|
|
29013
|
+
rds_20140815_models.DescribeRCInvocationResultsResponse(),
|
|
29014
|
+
await self.call_api_async(params, req, runtime)
|
|
29015
|
+
)
|
|
29016
|
+
|
|
29017
|
+
def describe_rcinvocation_results(
|
|
29018
|
+
self,
|
|
29019
|
+
request: rds_20140815_models.DescribeRCInvocationResultsRequest,
|
|
29020
|
+
) -> rds_20140815_models.DescribeRCInvocationResultsResponse:
|
|
29021
|
+
"""
|
|
29022
|
+
@summary 查询云助手命令执行结果
|
|
29023
|
+
|
|
29024
|
+
@param request: DescribeRCInvocationResultsRequest
|
|
29025
|
+
@return: DescribeRCInvocationResultsResponse
|
|
29026
|
+
"""
|
|
29027
|
+
runtime = util_models.RuntimeOptions()
|
|
29028
|
+
return self.describe_rcinvocation_results_with_options(request, runtime)
|
|
29029
|
+
|
|
29030
|
+
async def describe_rcinvocation_results_async(
|
|
29031
|
+
self,
|
|
29032
|
+
request: rds_20140815_models.DescribeRCInvocationResultsRequest,
|
|
29033
|
+
) -> rds_20140815_models.DescribeRCInvocationResultsResponse:
|
|
29034
|
+
"""
|
|
29035
|
+
@summary 查询云助手命令执行结果
|
|
29036
|
+
|
|
29037
|
+
@param request: DescribeRCInvocationResultsRequest
|
|
29038
|
+
@return: DescribeRCInvocationResultsResponse
|
|
29039
|
+
"""
|
|
29040
|
+
runtime = util_models.RuntimeOptions()
|
|
29041
|
+
return await self.describe_rcinvocation_results_with_options_async(request, runtime)
|
|
29042
|
+
|
|
28311
29043
|
def describe_rcmetric_list_with_options(
|
|
28312
29044
|
self,
|
|
28313
29045
|
request: rds_20140815_models.DescribeRCMetricListRequest,
|
|
@@ -28720,6 +29452,8 @@ class Client(OpenApiClient):
|
|
|
28720
29452
|
query['RegionId'] = request.region_id
|
|
28721
29453
|
if not UtilClient.is_unset(request.snapshot_ids):
|
|
28722
29454
|
query['SnapshotIds'] = request.snapshot_ids
|
|
29455
|
+
if not UtilClient.is_unset(request.tag):
|
|
29456
|
+
query['Tag'] = request.tag
|
|
28723
29457
|
req = open_api_models.OpenApiRequest(
|
|
28724
29458
|
query=OpenApiUtilClient.query(query)
|
|
28725
29459
|
)
|
|
@@ -28763,6 +29497,8 @@ class Client(OpenApiClient):
|
|
|
28763
29497
|
query['RegionId'] = request.region_id
|
|
28764
29498
|
if not UtilClient.is_unset(request.snapshot_ids):
|
|
28765
29499
|
query['SnapshotIds'] = request.snapshot_ids
|
|
29500
|
+
if not UtilClient.is_unset(request.tag):
|
|
29501
|
+
query['Tag'] = request.tag
|
|
28766
29502
|
req = open_api_models.OpenApiRequest(
|
|
28767
29503
|
query=OpenApiUtilClient.query(query)
|
|
28768
29504
|
)
|
|
@@ -28808,6 +29544,106 @@ class Client(OpenApiClient):
|
|
|
28808
29544
|
runtime = util_models.RuntimeOptions()
|
|
28809
29545
|
return await self.describe_rcsnapshots_with_options_async(request, runtime)
|
|
28810
29546
|
|
|
29547
|
+
def describe_rcvcluster_with_options(
|
|
29548
|
+
self,
|
|
29549
|
+
request: rds_20140815_models.DescribeRCVClusterRequest,
|
|
29550
|
+
runtime: util_models.RuntimeOptions,
|
|
29551
|
+
) -> rds_20140815_models.DescribeRCVClusterResponse:
|
|
29552
|
+
"""
|
|
29553
|
+
@summary 描述vCluster
|
|
29554
|
+
|
|
29555
|
+
@param request: DescribeRCVClusterRequest
|
|
29556
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
29557
|
+
@return: DescribeRCVClusterResponse
|
|
29558
|
+
"""
|
|
29559
|
+
UtilClient.validate_model(request)
|
|
29560
|
+
query = {}
|
|
29561
|
+
if not UtilClient.is_unset(request.cluster_id):
|
|
29562
|
+
query['ClusterId'] = request.cluster_id
|
|
29563
|
+
if not UtilClient.is_unset(request.region_id):
|
|
29564
|
+
query['RegionId'] = request.region_id
|
|
29565
|
+
req = open_api_models.OpenApiRequest(
|
|
29566
|
+
query=OpenApiUtilClient.query(query)
|
|
29567
|
+
)
|
|
29568
|
+
params = open_api_models.Params(
|
|
29569
|
+
action='DescribeRCVCluster',
|
|
29570
|
+
version='2014-08-15',
|
|
29571
|
+
protocol='HTTPS',
|
|
29572
|
+
pathname='/',
|
|
29573
|
+
method='POST',
|
|
29574
|
+
auth_type='AK',
|
|
29575
|
+
style='RPC',
|
|
29576
|
+
req_body_type='formData',
|
|
29577
|
+
body_type='json'
|
|
29578
|
+
)
|
|
29579
|
+
return TeaCore.from_map(
|
|
29580
|
+
rds_20140815_models.DescribeRCVClusterResponse(),
|
|
29581
|
+
self.call_api(params, req, runtime)
|
|
29582
|
+
)
|
|
29583
|
+
|
|
29584
|
+
async def describe_rcvcluster_with_options_async(
|
|
29585
|
+
self,
|
|
29586
|
+
request: rds_20140815_models.DescribeRCVClusterRequest,
|
|
29587
|
+
runtime: util_models.RuntimeOptions,
|
|
29588
|
+
) -> rds_20140815_models.DescribeRCVClusterResponse:
|
|
29589
|
+
"""
|
|
29590
|
+
@summary 描述vCluster
|
|
29591
|
+
|
|
29592
|
+
@param request: DescribeRCVClusterRequest
|
|
29593
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
29594
|
+
@return: DescribeRCVClusterResponse
|
|
29595
|
+
"""
|
|
29596
|
+
UtilClient.validate_model(request)
|
|
29597
|
+
query = {}
|
|
29598
|
+
if not UtilClient.is_unset(request.cluster_id):
|
|
29599
|
+
query['ClusterId'] = request.cluster_id
|
|
29600
|
+
if not UtilClient.is_unset(request.region_id):
|
|
29601
|
+
query['RegionId'] = request.region_id
|
|
29602
|
+
req = open_api_models.OpenApiRequest(
|
|
29603
|
+
query=OpenApiUtilClient.query(query)
|
|
29604
|
+
)
|
|
29605
|
+
params = open_api_models.Params(
|
|
29606
|
+
action='DescribeRCVCluster',
|
|
29607
|
+
version='2014-08-15',
|
|
29608
|
+
protocol='HTTPS',
|
|
29609
|
+
pathname='/',
|
|
29610
|
+
method='POST',
|
|
29611
|
+
auth_type='AK',
|
|
29612
|
+
style='RPC',
|
|
29613
|
+
req_body_type='formData',
|
|
29614
|
+
body_type='json'
|
|
29615
|
+
)
|
|
29616
|
+
return TeaCore.from_map(
|
|
29617
|
+
rds_20140815_models.DescribeRCVClusterResponse(),
|
|
29618
|
+
await self.call_api_async(params, req, runtime)
|
|
29619
|
+
)
|
|
29620
|
+
|
|
29621
|
+
def describe_rcvcluster(
|
|
29622
|
+
self,
|
|
29623
|
+
request: rds_20140815_models.DescribeRCVClusterRequest,
|
|
29624
|
+
) -> rds_20140815_models.DescribeRCVClusterResponse:
|
|
29625
|
+
"""
|
|
29626
|
+
@summary 描述vCluster
|
|
29627
|
+
|
|
29628
|
+
@param request: DescribeRCVClusterRequest
|
|
29629
|
+
@return: DescribeRCVClusterResponse
|
|
29630
|
+
"""
|
|
29631
|
+
runtime = util_models.RuntimeOptions()
|
|
29632
|
+
return self.describe_rcvcluster_with_options(request, runtime)
|
|
29633
|
+
|
|
29634
|
+
async def describe_rcvcluster_async(
|
|
29635
|
+
self,
|
|
29636
|
+
request: rds_20140815_models.DescribeRCVClusterRequest,
|
|
29637
|
+
) -> rds_20140815_models.DescribeRCVClusterResponse:
|
|
29638
|
+
"""
|
|
29639
|
+
@summary 描述vCluster
|
|
29640
|
+
|
|
29641
|
+
@param request: DescribeRCVClusterRequest
|
|
29642
|
+
@return: DescribeRCVClusterResponse
|
|
29643
|
+
"""
|
|
29644
|
+
runtime = util_models.RuntimeOptions()
|
|
29645
|
+
return await self.describe_rcvcluster_with_options_async(request, runtime)
|
|
29646
|
+
|
|
28811
29647
|
def describe_rds_resource_settings_with_options(
|
|
28812
29648
|
self,
|
|
28813
29649
|
request: rds_20140815_models.DescribeRdsResourceSettingsRequest,
|
|
@@ -32127,13 +32963,66 @@ class Client(OpenApiClient):
|
|
|
32127
32963
|
)
|
|
32128
32964
|
return TeaCore.from_map(
|
|
32129
32965
|
rds_20140815_models.DescribeUpgradeMajorVersionTasksResponse(),
|
|
32130
|
-
self.call_api(params, req, runtime)
|
|
32966
|
+
self.call_api(params, req, runtime)
|
|
32967
|
+
)
|
|
32968
|
+
|
|
32969
|
+
async def describe_upgrade_major_version_tasks_with_options_async(
|
|
32970
|
+
self,
|
|
32971
|
+
request: rds_20140815_models.DescribeUpgradeMajorVersionTasksRequest,
|
|
32972
|
+
runtime: util_models.RuntimeOptions,
|
|
32973
|
+
) -> rds_20140815_models.DescribeUpgradeMajorVersionTasksResponse:
|
|
32974
|
+
"""
|
|
32975
|
+
@summary Queries the historical tasks for major engine version upgrades of an ApsaraDB RDS for PostgreSQL instance.
|
|
32976
|
+
|
|
32977
|
+
@description ### [](#)Supported database engines
|
|
32978
|
+
PostgreSQL
|
|
32979
|
+
|
|
32980
|
+
@param request: DescribeUpgradeMajorVersionTasksRequest
|
|
32981
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
32982
|
+
@return: DescribeUpgradeMajorVersionTasksResponse
|
|
32983
|
+
"""
|
|
32984
|
+
UtilClient.validate_model(request)
|
|
32985
|
+
query = {}
|
|
32986
|
+
if not UtilClient.is_unset(request.dbinstance_id):
|
|
32987
|
+
query['DBInstanceId'] = request.dbinstance_id
|
|
32988
|
+
if not UtilClient.is_unset(request.owner_account):
|
|
32989
|
+
query['OwnerAccount'] = request.owner_account
|
|
32990
|
+
if not UtilClient.is_unset(request.owner_id):
|
|
32991
|
+
query['OwnerId'] = request.owner_id
|
|
32992
|
+
if not UtilClient.is_unset(request.page_number):
|
|
32993
|
+
query['PageNumber'] = request.page_number
|
|
32994
|
+
if not UtilClient.is_unset(request.page_size):
|
|
32995
|
+
query['PageSize'] = request.page_size
|
|
32996
|
+
if not UtilClient.is_unset(request.resource_owner_account):
|
|
32997
|
+
query['ResourceOwnerAccount'] = request.resource_owner_account
|
|
32998
|
+
if not UtilClient.is_unset(request.resource_owner_id):
|
|
32999
|
+
query['ResourceOwnerId'] = request.resource_owner_id
|
|
33000
|
+
if not UtilClient.is_unset(request.target_major_version):
|
|
33001
|
+
query['TargetMajorVersion'] = request.target_major_version
|
|
33002
|
+
if not UtilClient.is_unset(request.task_id):
|
|
33003
|
+
query['TaskId'] = request.task_id
|
|
33004
|
+
req = open_api_models.OpenApiRequest(
|
|
33005
|
+
query=OpenApiUtilClient.query(query)
|
|
33006
|
+
)
|
|
33007
|
+
params = open_api_models.Params(
|
|
33008
|
+
action='DescribeUpgradeMajorVersionTasks',
|
|
33009
|
+
version='2014-08-15',
|
|
33010
|
+
protocol='HTTPS',
|
|
33011
|
+
pathname='/',
|
|
33012
|
+
method='POST',
|
|
33013
|
+
auth_type='AK',
|
|
33014
|
+
style='RPC',
|
|
33015
|
+
req_body_type='formData',
|
|
33016
|
+
body_type='json'
|
|
33017
|
+
)
|
|
33018
|
+
return TeaCore.from_map(
|
|
33019
|
+
rds_20140815_models.DescribeUpgradeMajorVersionTasksResponse(),
|
|
33020
|
+
await self.call_api_async(params, req, runtime)
|
|
32131
33021
|
)
|
|
32132
33022
|
|
|
32133
|
-
|
|
33023
|
+
def describe_upgrade_major_version_tasks(
|
|
32134
33024
|
self,
|
|
32135
33025
|
request: rds_20140815_models.DescribeUpgradeMajorVersionTasksRequest,
|
|
32136
|
-
runtime: util_models.RuntimeOptions,
|
|
32137
33026
|
) -> rds_20140815_models.DescribeUpgradeMajorVersionTasksResponse:
|
|
32138
33027
|
"""
|
|
32139
33028
|
@summary Queries the historical tasks for major engine version upgrades of an ApsaraDB RDS for PostgreSQL instance.
|
|
@@ -32142,34 +33031,56 @@ class Client(OpenApiClient):
|
|
|
32142
33031
|
PostgreSQL
|
|
32143
33032
|
|
|
32144
33033
|
@param request: DescribeUpgradeMajorVersionTasksRequest
|
|
32145
|
-
@param runtime: runtime options for this request RuntimeOptions
|
|
32146
33034
|
@return: DescribeUpgradeMajorVersionTasksResponse
|
|
32147
33035
|
"""
|
|
33036
|
+
runtime = util_models.RuntimeOptions()
|
|
33037
|
+
return self.describe_upgrade_major_version_tasks_with_options(request, runtime)
|
|
33038
|
+
|
|
33039
|
+
async def describe_upgrade_major_version_tasks_async(
|
|
33040
|
+
self,
|
|
33041
|
+
request: rds_20140815_models.DescribeUpgradeMajorVersionTasksRequest,
|
|
33042
|
+
) -> rds_20140815_models.DescribeUpgradeMajorVersionTasksResponse:
|
|
33043
|
+
"""
|
|
33044
|
+
@summary Queries the historical tasks for major engine version upgrades of an ApsaraDB RDS for PostgreSQL instance.
|
|
33045
|
+
|
|
33046
|
+
@description ### [](#)Supported database engines
|
|
33047
|
+
PostgreSQL
|
|
33048
|
+
|
|
33049
|
+
@param request: DescribeUpgradeMajorVersionTasksRequest
|
|
33050
|
+
@return: DescribeUpgradeMajorVersionTasksResponse
|
|
33051
|
+
"""
|
|
33052
|
+
runtime = util_models.RuntimeOptions()
|
|
33053
|
+
return await self.describe_upgrade_major_version_tasks_with_options_async(request, runtime)
|
|
33054
|
+
|
|
33055
|
+
def describe_vswitch_list_with_options(
|
|
33056
|
+
self,
|
|
33057
|
+
request: rds_20140815_models.DescribeVSwitchListRequest,
|
|
33058
|
+
runtime: util_models.RuntimeOptions,
|
|
33059
|
+
) -> rds_20140815_models.DescribeVSwitchListResponse:
|
|
33060
|
+
"""
|
|
33061
|
+
@summary 查询交换机列表
|
|
33062
|
+
|
|
33063
|
+
@param request: DescribeVSwitchListRequest
|
|
33064
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
33065
|
+
@return: DescribeVSwitchListResponse
|
|
33066
|
+
"""
|
|
32148
33067
|
UtilClient.validate_model(request)
|
|
32149
33068
|
query = {}
|
|
32150
|
-
if not UtilClient.is_unset(request.dbinstance_id):
|
|
32151
|
-
query['DBInstanceId'] = request.dbinstance_id
|
|
32152
|
-
if not UtilClient.is_unset(request.owner_account):
|
|
32153
|
-
query['OwnerAccount'] = request.owner_account
|
|
32154
|
-
if not UtilClient.is_unset(request.owner_id):
|
|
32155
|
-
query['OwnerId'] = request.owner_id
|
|
32156
33069
|
if not UtilClient.is_unset(request.page_number):
|
|
32157
33070
|
query['PageNumber'] = request.page_number
|
|
32158
33071
|
if not UtilClient.is_unset(request.page_size):
|
|
32159
33072
|
query['PageSize'] = request.page_size
|
|
32160
|
-
if not UtilClient.is_unset(request.
|
|
32161
|
-
query['
|
|
32162
|
-
if not UtilClient.is_unset(request.
|
|
32163
|
-
query['
|
|
32164
|
-
if not UtilClient.is_unset(request.
|
|
32165
|
-
query['
|
|
32166
|
-
if not UtilClient.is_unset(request.task_id):
|
|
32167
|
-
query['TaskId'] = request.task_id
|
|
33073
|
+
if not UtilClient.is_unset(request.region_id):
|
|
33074
|
+
query['RegionId'] = request.region_id
|
|
33075
|
+
if not UtilClient.is_unset(request.v_switch_ids):
|
|
33076
|
+
query['VSwitchIds'] = request.v_switch_ids
|
|
33077
|
+
if not UtilClient.is_unset(request.vpc_id):
|
|
33078
|
+
query['VpcId'] = request.vpc_id
|
|
32168
33079
|
req = open_api_models.OpenApiRequest(
|
|
32169
33080
|
query=OpenApiUtilClient.query(query)
|
|
32170
33081
|
)
|
|
32171
33082
|
params = open_api_models.Params(
|
|
32172
|
-
action='
|
|
33083
|
+
action='DescribeVSwitchList',
|
|
32173
33084
|
version='2014-08-15',
|
|
32174
33085
|
protocol='HTTPS',
|
|
32175
33086
|
pathname='/',
|
|
@@ -32180,41 +33091,78 @@ class Client(OpenApiClient):
|
|
|
32180
33091
|
body_type='json'
|
|
32181
33092
|
)
|
|
32182
33093
|
return TeaCore.from_map(
|
|
32183
|
-
rds_20140815_models.
|
|
32184
|
-
|
|
33094
|
+
rds_20140815_models.DescribeVSwitchListResponse(),
|
|
33095
|
+
self.call_api(params, req, runtime)
|
|
32185
33096
|
)
|
|
32186
33097
|
|
|
32187
|
-
def
|
|
33098
|
+
async def describe_vswitch_list_with_options_async(
|
|
32188
33099
|
self,
|
|
32189
|
-
request: rds_20140815_models.
|
|
32190
|
-
|
|
33100
|
+
request: rds_20140815_models.DescribeVSwitchListRequest,
|
|
33101
|
+
runtime: util_models.RuntimeOptions,
|
|
33102
|
+
) -> rds_20140815_models.DescribeVSwitchListResponse:
|
|
32191
33103
|
"""
|
|
32192
|
-
@summary
|
|
33104
|
+
@summary 查询交换机列表
|
|
32193
33105
|
|
|
32194
|
-
@
|
|
32195
|
-
|
|
33106
|
+
@param request: DescribeVSwitchListRequest
|
|
33107
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
33108
|
+
@return: DescribeVSwitchListResponse
|
|
33109
|
+
"""
|
|
33110
|
+
UtilClient.validate_model(request)
|
|
33111
|
+
query = {}
|
|
33112
|
+
if not UtilClient.is_unset(request.page_number):
|
|
33113
|
+
query['PageNumber'] = request.page_number
|
|
33114
|
+
if not UtilClient.is_unset(request.page_size):
|
|
33115
|
+
query['PageSize'] = request.page_size
|
|
33116
|
+
if not UtilClient.is_unset(request.region_id):
|
|
33117
|
+
query['RegionId'] = request.region_id
|
|
33118
|
+
if not UtilClient.is_unset(request.v_switch_ids):
|
|
33119
|
+
query['VSwitchIds'] = request.v_switch_ids
|
|
33120
|
+
if not UtilClient.is_unset(request.vpc_id):
|
|
33121
|
+
query['VpcId'] = request.vpc_id
|
|
33122
|
+
req = open_api_models.OpenApiRequest(
|
|
33123
|
+
query=OpenApiUtilClient.query(query)
|
|
33124
|
+
)
|
|
33125
|
+
params = open_api_models.Params(
|
|
33126
|
+
action='DescribeVSwitchList',
|
|
33127
|
+
version='2014-08-15',
|
|
33128
|
+
protocol='HTTPS',
|
|
33129
|
+
pathname='/',
|
|
33130
|
+
method='POST',
|
|
33131
|
+
auth_type='AK',
|
|
33132
|
+
style='RPC',
|
|
33133
|
+
req_body_type='formData',
|
|
33134
|
+
body_type='json'
|
|
33135
|
+
)
|
|
33136
|
+
return TeaCore.from_map(
|
|
33137
|
+
rds_20140815_models.DescribeVSwitchListResponse(),
|
|
33138
|
+
await self.call_api_async(params, req, runtime)
|
|
33139
|
+
)
|
|
33140
|
+
|
|
33141
|
+
def describe_vswitch_list(
|
|
33142
|
+
self,
|
|
33143
|
+
request: rds_20140815_models.DescribeVSwitchListRequest,
|
|
33144
|
+
) -> rds_20140815_models.DescribeVSwitchListResponse:
|
|
33145
|
+
"""
|
|
33146
|
+
@summary 查询交换机列表
|
|
32196
33147
|
|
|
32197
|
-
@param request:
|
|
32198
|
-
@return:
|
|
33148
|
+
@param request: DescribeVSwitchListRequest
|
|
33149
|
+
@return: DescribeVSwitchListResponse
|
|
32199
33150
|
"""
|
|
32200
33151
|
runtime = util_models.RuntimeOptions()
|
|
32201
|
-
return self.
|
|
33152
|
+
return self.describe_vswitch_list_with_options(request, runtime)
|
|
32202
33153
|
|
|
32203
|
-
async def
|
|
33154
|
+
async def describe_vswitch_list_async(
|
|
32204
33155
|
self,
|
|
32205
|
-
request: rds_20140815_models.
|
|
32206
|
-
) -> rds_20140815_models.
|
|
33156
|
+
request: rds_20140815_models.DescribeVSwitchListRequest,
|
|
33157
|
+
) -> rds_20140815_models.DescribeVSwitchListResponse:
|
|
32207
33158
|
"""
|
|
32208
|
-
@summary
|
|
32209
|
-
|
|
32210
|
-
@description ### [](#)Supported database engines
|
|
32211
|
-
PostgreSQL
|
|
33159
|
+
@summary 查询交换机列表
|
|
32212
33160
|
|
|
32213
|
-
@param request:
|
|
32214
|
-
@return:
|
|
33161
|
+
@param request: DescribeVSwitchListRequest
|
|
33162
|
+
@return: DescribeVSwitchListResponse
|
|
32215
33163
|
"""
|
|
32216
33164
|
runtime = util_models.RuntimeOptions()
|
|
32217
|
-
return await self.
|
|
33165
|
+
return await self.describe_vswitch_list_with_options_async(request, runtime)
|
|
32218
33166
|
|
|
32219
33167
|
def describe_vswitches_with_options(
|
|
32220
33168
|
self,
|
|
@@ -33804,12 +34752,18 @@ class Client(OpenApiClient):
|
|
|
33804
34752
|
query['BackupFile'] = request.backup_file
|
|
33805
34753
|
if not UtilClient.is_unset(request.bucket_region):
|
|
33806
34754
|
query['BucketRegion'] = request.bucket_region
|
|
34755
|
+
if not UtilClient.is_unset(request.build_replication):
|
|
34756
|
+
query['BuildReplication'] = request.build_replication
|
|
33807
34757
|
if not UtilClient.is_unset(request.comment):
|
|
33808
34758
|
query['Comment'] = request.comment
|
|
33809
34759
|
if not UtilClient.is_unset(request.dbinstance_id):
|
|
33810
34760
|
query['DBInstanceId'] = request.dbinstance_id
|
|
33811
34761
|
if not UtilClient.is_unset(request.engine_version):
|
|
33812
34762
|
query['EngineVersion'] = request.engine_version
|
|
34763
|
+
if not UtilClient.is_unset(request.master_info):
|
|
34764
|
+
query['MasterInfo'] = request.master_info
|
|
34765
|
+
if not UtilClient.is_unset(request.mode):
|
|
34766
|
+
query['Mode'] = request.mode
|
|
33813
34767
|
if not UtilClient.is_unset(request.owner_id):
|
|
33814
34768
|
query['OwnerId'] = request.owner_id
|
|
33815
34769
|
if not UtilClient.is_unset(request.region_id):
|
|
@@ -33824,6 +34778,8 @@ class Client(OpenApiClient):
|
|
|
33824
34778
|
query['RestoreSize'] = request.restore_size
|
|
33825
34779
|
if not UtilClient.is_unset(request.retention):
|
|
33826
34780
|
query['Retention'] = request.retention
|
|
34781
|
+
if not UtilClient.is_unset(request.source_info):
|
|
34782
|
+
query['SourceInfo'] = request.source_info
|
|
33827
34783
|
if not UtilClient.is_unset(request.zone_id):
|
|
33828
34784
|
query['ZoneId'] = request.zone_id
|
|
33829
34785
|
req = open_api_models.OpenApiRequest(
|
|
@@ -33873,12 +34829,18 @@ class Client(OpenApiClient):
|
|
|
33873
34829
|
query['BackupFile'] = request.backup_file
|
|
33874
34830
|
if not UtilClient.is_unset(request.bucket_region):
|
|
33875
34831
|
query['BucketRegion'] = request.bucket_region
|
|
34832
|
+
if not UtilClient.is_unset(request.build_replication):
|
|
34833
|
+
query['BuildReplication'] = request.build_replication
|
|
33876
34834
|
if not UtilClient.is_unset(request.comment):
|
|
33877
34835
|
query['Comment'] = request.comment
|
|
33878
34836
|
if not UtilClient.is_unset(request.dbinstance_id):
|
|
33879
34837
|
query['DBInstanceId'] = request.dbinstance_id
|
|
33880
34838
|
if not UtilClient.is_unset(request.engine_version):
|
|
33881
34839
|
query['EngineVersion'] = request.engine_version
|
|
34840
|
+
if not UtilClient.is_unset(request.master_info):
|
|
34841
|
+
query['MasterInfo'] = request.master_info
|
|
34842
|
+
if not UtilClient.is_unset(request.mode):
|
|
34843
|
+
query['Mode'] = request.mode
|
|
33882
34844
|
if not UtilClient.is_unset(request.owner_id):
|
|
33883
34845
|
query['OwnerId'] = request.owner_id
|
|
33884
34846
|
if not UtilClient.is_unset(request.region_id):
|
|
@@ -33893,6 +34855,8 @@ class Client(OpenApiClient):
|
|
|
33893
34855
|
query['RestoreSize'] = request.restore_size
|
|
33894
34856
|
if not UtilClient.is_unset(request.retention):
|
|
33895
34857
|
query['Retention'] = request.retention
|
|
34858
|
+
if not UtilClient.is_unset(request.source_info):
|
|
34859
|
+
query['SourceInfo'] = request.source_info
|
|
33896
34860
|
if not UtilClient.is_unset(request.zone_id):
|
|
33897
34861
|
query['ZoneId'] = request.zone_id
|
|
33898
34862
|
req = open_api_models.OpenApiRequest(
|
|
@@ -33960,6 +34924,114 @@ class Client(OpenApiClient):
|
|
|
33960
34924
|
runtime = util_models.RuntimeOptions()
|
|
33961
34925
|
return await self.import_user_backup_file_with_options_async(request, runtime)
|
|
33962
34926
|
|
|
34927
|
+
def install_rccloud_assistant_with_options(
|
|
34928
|
+
self,
|
|
34929
|
+
tmp_req: rds_20140815_models.InstallRCCloudAssistantRequest,
|
|
34930
|
+
runtime: util_models.RuntimeOptions,
|
|
34931
|
+
) -> rds_20140815_models.InstallRCCloudAssistantResponse:
|
|
34932
|
+
"""
|
|
34933
|
+
@summary 为实例安装云助手Agent
|
|
34934
|
+
|
|
34935
|
+
@param tmp_req: InstallRCCloudAssistantRequest
|
|
34936
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
34937
|
+
@return: InstallRCCloudAssistantResponse
|
|
34938
|
+
"""
|
|
34939
|
+
UtilClient.validate_model(tmp_req)
|
|
34940
|
+
request = rds_20140815_models.InstallRCCloudAssistantShrinkRequest()
|
|
34941
|
+
OpenApiUtilClient.convert(tmp_req, request)
|
|
34942
|
+
if not UtilClient.is_unset(tmp_req.instance_ids):
|
|
34943
|
+
request.instance_ids_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.instance_ids, 'InstanceIds', 'json')
|
|
34944
|
+
query = {}
|
|
34945
|
+
if not UtilClient.is_unset(request.instance_ids_shrink):
|
|
34946
|
+
query['InstanceIds'] = request.instance_ids_shrink
|
|
34947
|
+
if not UtilClient.is_unset(request.region_id):
|
|
34948
|
+
query['RegionId'] = request.region_id
|
|
34949
|
+
req = open_api_models.OpenApiRequest(
|
|
34950
|
+
query=OpenApiUtilClient.query(query)
|
|
34951
|
+
)
|
|
34952
|
+
params = open_api_models.Params(
|
|
34953
|
+
action='InstallRCCloudAssistant',
|
|
34954
|
+
version='2014-08-15',
|
|
34955
|
+
protocol='HTTPS',
|
|
34956
|
+
pathname='/',
|
|
34957
|
+
method='POST',
|
|
34958
|
+
auth_type='AK',
|
|
34959
|
+
style='RPC',
|
|
34960
|
+
req_body_type='formData',
|
|
34961
|
+
body_type='json'
|
|
34962
|
+
)
|
|
34963
|
+
return TeaCore.from_map(
|
|
34964
|
+
rds_20140815_models.InstallRCCloudAssistantResponse(),
|
|
34965
|
+
self.call_api(params, req, runtime)
|
|
34966
|
+
)
|
|
34967
|
+
|
|
34968
|
+
async def install_rccloud_assistant_with_options_async(
|
|
34969
|
+
self,
|
|
34970
|
+
tmp_req: rds_20140815_models.InstallRCCloudAssistantRequest,
|
|
34971
|
+
runtime: util_models.RuntimeOptions,
|
|
34972
|
+
) -> rds_20140815_models.InstallRCCloudAssistantResponse:
|
|
34973
|
+
"""
|
|
34974
|
+
@summary 为实例安装云助手Agent
|
|
34975
|
+
|
|
34976
|
+
@param tmp_req: InstallRCCloudAssistantRequest
|
|
34977
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
34978
|
+
@return: InstallRCCloudAssistantResponse
|
|
34979
|
+
"""
|
|
34980
|
+
UtilClient.validate_model(tmp_req)
|
|
34981
|
+
request = rds_20140815_models.InstallRCCloudAssistantShrinkRequest()
|
|
34982
|
+
OpenApiUtilClient.convert(tmp_req, request)
|
|
34983
|
+
if not UtilClient.is_unset(tmp_req.instance_ids):
|
|
34984
|
+
request.instance_ids_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.instance_ids, 'InstanceIds', 'json')
|
|
34985
|
+
query = {}
|
|
34986
|
+
if not UtilClient.is_unset(request.instance_ids_shrink):
|
|
34987
|
+
query['InstanceIds'] = request.instance_ids_shrink
|
|
34988
|
+
if not UtilClient.is_unset(request.region_id):
|
|
34989
|
+
query['RegionId'] = request.region_id
|
|
34990
|
+
req = open_api_models.OpenApiRequest(
|
|
34991
|
+
query=OpenApiUtilClient.query(query)
|
|
34992
|
+
)
|
|
34993
|
+
params = open_api_models.Params(
|
|
34994
|
+
action='InstallRCCloudAssistant',
|
|
34995
|
+
version='2014-08-15',
|
|
34996
|
+
protocol='HTTPS',
|
|
34997
|
+
pathname='/',
|
|
34998
|
+
method='POST',
|
|
34999
|
+
auth_type='AK',
|
|
35000
|
+
style='RPC',
|
|
35001
|
+
req_body_type='formData',
|
|
35002
|
+
body_type='json'
|
|
35003
|
+
)
|
|
35004
|
+
return TeaCore.from_map(
|
|
35005
|
+
rds_20140815_models.InstallRCCloudAssistantResponse(),
|
|
35006
|
+
await self.call_api_async(params, req, runtime)
|
|
35007
|
+
)
|
|
35008
|
+
|
|
35009
|
+
def install_rccloud_assistant(
|
|
35010
|
+
self,
|
|
35011
|
+
request: rds_20140815_models.InstallRCCloudAssistantRequest,
|
|
35012
|
+
) -> rds_20140815_models.InstallRCCloudAssistantResponse:
|
|
35013
|
+
"""
|
|
35014
|
+
@summary 为实例安装云助手Agent
|
|
35015
|
+
|
|
35016
|
+
@param request: InstallRCCloudAssistantRequest
|
|
35017
|
+
@return: InstallRCCloudAssistantResponse
|
|
35018
|
+
"""
|
|
35019
|
+
runtime = util_models.RuntimeOptions()
|
|
35020
|
+
return self.install_rccloud_assistant_with_options(request, runtime)
|
|
35021
|
+
|
|
35022
|
+
async def install_rccloud_assistant_async(
|
|
35023
|
+
self,
|
|
35024
|
+
request: rds_20140815_models.InstallRCCloudAssistantRequest,
|
|
35025
|
+
) -> rds_20140815_models.InstallRCCloudAssistantResponse:
|
|
35026
|
+
"""
|
|
35027
|
+
@summary 为实例安装云助手Agent
|
|
35028
|
+
|
|
35029
|
+
@param request: InstallRCCloudAssistantRequest
|
|
35030
|
+
@return: InstallRCCloudAssistantResponse
|
|
35031
|
+
"""
|
|
35032
|
+
runtime = util_models.RuntimeOptions()
|
|
35033
|
+
return await self.install_rccloud_assistant_with_options_async(request, runtime)
|
|
35034
|
+
|
|
33963
35035
|
def list_classes_with_options(
|
|
33964
35036
|
self,
|
|
33965
35037
|
request: rds_20140815_models.ListClassesRequest,
|
|
@@ -36636,6 +37708,134 @@ class Client(OpenApiClient):
|
|
|
36636
37708
|
runtime = util_models.RuntimeOptions()
|
|
36637
37709
|
return await self.modify_backup_policy_with_options_async(request, runtime)
|
|
36638
37710
|
|
|
37711
|
+
def modify_backup_set_expire_time_with_options(
|
|
37712
|
+
self,
|
|
37713
|
+
request: rds_20140815_models.ModifyBackupSetExpireTimeRequest,
|
|
37714
|
+
runtime: util_models.RuntimeOptions,
|
|
37715
|
+
) -> rds_20140815_models.ModifyBackupSetExpireTimeResponse:
|
|
37716
|
+
"""
|
|
37717
|
+
@summary Modifies the expiration time of backup sets.
|
|
37718
|
+
|
|
37719
|
+
@description ### [](#)Supported database engines
|
|
37720
|
+
RDS SQL Server
|
|
37721
|
+
### [](#)References
|
|
37722
|
+
> Before you call this operation, read the following topics and make sure that you fully understand the prerequisites and impacts of this operation.
|
|
37723
|
+
|
|
37724
|
+
@param request: ModifyBackupSetExpireTimeRequest
|
|
37725
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
37726
|
+
@return: ModifyBackupSetExpireTimeResponse
|
|
37727
|
+
"""
|
|
37728
|
+
UtilClient.validate_model(request)
|
|
37729
|
+
query = {}
|
|
37730
|
+
if not UtilClient.is_unset(request.backup_id):
|
|
37731
|
+
query['BackupId'] = request.backup_id
|
|
37732
|
+
if not UtilClient.is_unset(request.dbinstance_id):
|
|
37733
|
+
query['DBInstanceId'] = request.dbinstance_id
|
|
37734
|
+
if not UtilClient.is_unset(request.expect_expire_time):
|
|
37735
|
+
query['ExpectExpireTime'] = request.expect_expire_time
|
|
37736
|
+
if not UtilClient.is_unset(request.resource_owner_id):
|
|
37737
|
+
query['ResourceOwnerId'] = request.resource_owner_id
|
|
37738
|
+
req = open_api_models.OpenApiRequest(
|
|
37739
|
+
query=OpenApiUtilClient.query(query)
|
|
37740
|
+
)
|
|
37741
|
+
params = open_api_models.Params(
|
|
37742
|
+
action='ModifyBackupSetExpireTime',
|
|
37743
|
+
version='2014-08-15',
|
|
37744
|
+
protocol='HTTPS',
|
|
37745
|
+
pathname='/',
|
|
37746
|
+
method='POST',
|
|
37747
|
+
auth_type='AK',
|
|
37748
|
+
style='RPC',
|
|
37749
|
+
req_body_type='formData',
|
|
37750
|
+
body_type='json'
|
|
37751
|
+
)
|
|
37752
|
+
return TeaCore.from_map(
|
|
37753
|
+
rds_20140815_models.ModifyBackupSetExpireTimeResponse(),
|
|
37754
|
+
self.call_api(params, req, runtime)
|
|
37755
|
+
)
|
|
37756
|
+
|
|
37757
|
+
async def modify_backup_set_expire_time_with_options_async(
|
|
37758
|
+
self,
|
|
37759
|
+
request: rds_20140815_models.ModifyBackupSetExpireTimeRequest,
|
|
37760
|
+
runtime: util_models.RuntimeOptions,
|
|
37761
|
+
) -> rds_20140815_models.ModifyBackupSetExpireTimeResponse:
|
|
37762
|
+
"""
|
|
37763
|
+
@summary Modifies the expiration time of backup sets.
|
|
37764
|
+
|
|
37765
|
+
@description ### [](#)Supported database engines
|
|
37766
|
+
RDS SQL Server
|
|
37767
|
+
### [](#)References
|
|
37768
|
+
> Before you call this operation, read the following topics and make sure that you fully understand the prerequisites and impacts of this operation.
|
|
37769
|
+
|
|
37770
|
+
@param request: ModifyBackupSetExpireTimeRequest
|
|
37771
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
37772
|
+
@return: ModifyBackupSetExpireTimeResponse
|
|
37773
|
+
"""
|
|
37774
|
+
UtilClient.validate_model(request)
|
|
37775
|
+
query = {}
|
|
37776
|
+
if not UtilClient.is_unset(request.backup_id):
|
|
37777
|
+
query['BackupId'] = request.backup_id
|
|
37778
|
+
if not UtilClient.is_unset(request.dbinstance_id):
|
|
37779
|
+
query['DBInstanceId'] = request.dbinstance_id
|
|
37780
|
+
if not UtilClient.is_unset(request.expect_expire_time):
|
|
37781
|
+
query['ExpectExpireTime'] = request.expect_expire_time
|
|
37782
|
+
if not UtilClient.is_unset(request.resource_owner_id):
|
|
37783
|
+
query['ResourceOwnerId'] = request.resource_owner_id
|
|
37784
|
+
req = open_api_models.OpenApiRequest(
|
|
37785
|
+
query=OpenApiUtilClient.query(query)
|
|
37786
|
+
)
|
|
37787
|
+
params = open_api_models.Params(
|
|
37788
|
+
action='ModifyBackupSetExpireTime',
|
|
37789
|
+
version='2014-08-15',
|
|
37790
|
+
protocol='HTTPS',
|
|
37791
|
+
pathname='/',
|
|
37792
|
+
method='POST',
|
|
37793
|
+
auth_type='AK',
|
|
37794
|
+
style='RPC',
|
|
37795
|
+
req_body_type='formData',
|
|
37796
|
+
body_type='json'
|
|
37797
|
+
)
|
|
37798
|
+
return TeaCore.from_map(
|
|
37799
|
+
rds_20140815_models.ModifyBackupSetExpireTimeResponse(),
|
|
37800
|
+
await self.call_api_async(params, req, runtime)
|
|
37801
|
+
)
|
|
37802
|
+
|
|
37803
|
+
def modify_backup_set_expire_time(
|
|
37804
|
+
self,
|
|
37805
|
+
request: rds_20140815_models.ModifyBackupSetExpireTimeRequest,
|
|
37806
|
+
) -> rds_20140815_models.ModifyBackupSetExpireTimeResponse:
|
|
37807
|
+
"""
|
|
37808
|
+
@summary Modifies the expiration time of backup sets.
|
|
37809
|
+
|
|
37810
|
+
@description ### [](#)Supported database engines
|
|
37811
|
+
RDS SQL Server
|
|
37812
|
+
### [](#)References
|
|
37813
|
+
> Before you call this operation, read the following topics and make sure that you fully understand the prerequisites and impacts of this operation.
|
|
37814
|
+
|
|
37815
|
+
@param request: ModifyBackupSetExpireTimeRequest
|
|
37816
|
+
@return: ModifyBackupSetExpireTimeResponse
|
|
37817
|
+
"""
|
|
37818
|
+
runtime = util_models.RuntimeOptions()
|
|
37819
|
+
return self.modify_backup_set_expire_time_with_options(request, runtime)
|
|
37820
|
+
|
|
37821
|
+
async def modify_backup_set_expire_time_async(
|
|
37822
|
+
self,
|
|
37823
|
+
request: rds_20140815_models.ModifyBackupSetExpireTimeRequest,
|
|
37824
|
+
) -> rds_20140815_models.ModifyBackupSetExpireTimeResponse:
|
|
37825
|
+
"""
|
|
37826
|
+
@summary Modifies the expiration time of backup sets.
|
|
37827
|
+
|
|
37828
|
+
@description ### [](#)Supported database engines
|
|
37829
|
+
RDS SQL Server
|
|
37830
|
+
### [](#)References
|
|
37831
|
+
> Before you call this operation, read the following topics and make sure that you fully understand the prerequisites and impacts of this operation.
|
|
37832
|
+
|
|
37833
|
+
@param request: ModifyBackupSetExpireTimeRequest
|
|
37834
|
+
@return: ModifyBackupSetExpireTimeResponse
|
|
37835
|
+
"""
|
|
37836
|
+
runtime = util_models.RuntimeOptions()
|
|
37837
|
+
return await self.modify_backup_set_expire_time_with_options_async(request, runtime)
|
|
37838
|
+
|
|
36639
37839
|
def modify_collation_time_zone_with_options(
|
|
36640
37840
|
self,
|
|
36641
37841
|
request: rds_20140815_models.ModifyCollationTimeZoneRequest,
|
|
@@ -36776,6 +37976,166 @@ class Client(OpenApiClient):
|
|
|
36776
37976
|
runtime = util_models.RuntimeOptions()
|
|
36777
37977
|
return await self.modify_collation_time_zone_with_options_async(request, runtime)
|
|
36778
37978
|
|
|
37979
|
+
def modify_compute_burst_config_with_options(
|
|
37980
|
+
self,
|
|
37981
|
+
request: rds_20140815_models.ModifyComputeBurstConfigRequest,
|
|
37982
|
+
runtime: util_models.RuntimeOptions,
|
|
37983
|
+
) -> rds_20140815_models.ModifyComputeBurstConfigResponse:
|
|
37984
|
+
"""
|
|
37985
|
+
@summary 修改本地性能突发配置
|
|
37986
|
+
|
|
37987
|
+
@param request: ModifyComputeBurstConfigRequest
|
|
37988
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
37989
|
+
@return: ModifyComputeBurstConfigResponse
|
|
37990
|
+
"""
|
|
37991
|
+
UtilClient.validate_model(request)
|
|
37992
|
+
query = {}
|
|
37993
|
+
if not UtilClient.is_unset(request.burst_status):
|
|
37994
|
+
query['BurstStatus'] = request.burst_status
|
|
37995
|
+
if not UtilClient.is_unset(request.client_token):
|
|
37996
|
+
query['ClientToken'] = request.client_token
|
|
37997
|
+
if not UtilClient.is_unset(request.cpu_enlarge_threshold):
|
|
37998
|
+
query['CpuEnlargeThreshold'] = request.cpu_enlarge_threshold
|
|
37999
|
+
if not UtilClient.is_unset(request.cpu_shrink_threshold):
|
|
38000
|
+
query['CpuShrinkThreshold'] = request.cpu_shrink_threshold
|
|
38001
|
+
if not UtilClient.is_unset(request.crontab_job_id):
|
|
38002
|
+
query['CrontabJobId'] = request.crontab_job_id
|
|
38003
|
+
if not UtilClient.is_unset(request.dbinstance_id):
|
|
38004
|
+
query['DBInstanceId'] = request.dbinstance_id
|
|
38005
|
+
if not UtilClient.is_unset(request.memory_enlarge_threshold):
|
|
38006
|
+
query['MemoryEnlargeThreshold'] = request.memory_enlarge_threshold
|
|
38007
|
+
if not UtilClient.is_unset(request.memory_shrink_threshold):
|
|
38008
|
+
query['MemoryShrinkThreshold'] = request.memory_shrink_threshold
|
|
38009
|
+
if not UtilClient.is_unset(request.owner_account):
|
|
38010
|
+
query['OwnerAccount'] = request.owner_account
|
|
38011
|
+
if not UtilClient.is_unset(request.owner_id):
|
|
38012
|
+
query['OwnerId'] = request.owner_id
|
|
38013
|
+
if not UtilClient.is_unset(request.resource_group_id):
|
|
38014
|
+
query['ResourceGroupId'] = request.resource_group_id
|
|
38015
|
+
if not UtilClient.is_unset(request.resource_owner_account):
|
|
38016
|
+
query['ResourceOwnerAccount'] = request.resource_owner_account
|
|
38017
|
+
if not UtilClient.is_unset(request.scale_max_cpus):
|
|
38018
|
+
query['ScaleMaxCpus'] = request.scale_max_cpus
|
|
38019
|
+
if not UtilClient.is_unset(request.scale_max_memory):
|
|
38020
|
+
query['ScaleMaxMemory'] = request.scale_max_memory
|
|
38021
|
+
if not UtilClient.is_unset(request.switch_time):
|
|
38022
|
+
query['SwitchTime'] = request.switch_time
|
|
38023
|
+
if not UtilClient.is_unset(request.switch_time_mode):
|
|
38024
|
+
query['SwitchTimeMode'] = request.switch_time_mode
|
|
38025
|
+
if not UtilClient.is_unset(request.task_id):
|
|
38026
|
+
query['TaskId'] = request.task_id
|
|
38027
|
+
req = open_api_models.OpenApiRequest(
|
|
38028
|
+
query=OpenApiUtilClient.query(query)
|
|
38029
|
+
)
|
|
38030
|
+
params = open_api_models.Params(
|
|
38031
|
+
action='ModifyComputeBurstConfig',
|
|
38032
|
+
version='2014-08-15',
|
|
38033
|
+
protocol='HTTPS',
|
|
38034
|
+
pathname='/',
|
|
38035
|
+
method='POST',
|
|
38036
|
+
auth_type='AK',
|
|
38037
|
+
style='RPC',
|
|
38038
|
+
req_body_type='formData',
|
|
38039
|
+
body_type='json'
|
|
38040
|
+
)
|
|
38041
|
+
return TeaCore.from_map(
|
|
38042
|
+
rds_20140815_models.ModifyComputeBurstConfigResponse(),
|
|
38043
|
+
self.call_api(params, req, runtime)
|
|
38044
|
+
)
|
|
38045
|
+
|
|
38046
|
+
async def modify_compute_burst_config_with_options_async(
|
|
38047
|
+
self,
|
|
38048
|
+
request: rds_20140815_models.ModifyComputeBurstConfigRequest,
|
|
38049
|
+
runtime: util_models.RuntimeOptions,
|
|
38050
|
+
) -> rds_20140815_models.ModifyComputeBurstConfigResponse:
|
|
38051
|
+
"""
|
|
38052
|
+
@summary 修改本地性能突发配置
|
|
38053
|
+
|
|
38054
|
+
@param request: ModifyComputeBurstConfigRequest
|
|
38055
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
38056
|
+
@return: ModifyComputeBurstConfigResponse
|
|
38057
|
+
"""
|
|
38058
|
+
UtilClient.validate_model(request)
|
|
38059
|
+
query = {}
|
|
38060
|
+
if not UtilClient.is_unset(request.burst_status):
|
|
38061
|
+
query['BurstStatus'] = request.burst_status
|
|
38062
|
+
if not UtilClient.is_unset(request.client_token):
|
|
38063
|
+
query['ClientToken'] = request.client_token
|
|
38064
|
+
if not UtilClient.is_unset(request.cpu_enlarge_threshold):
|
|
38065
|
+
query['CpuEnlargeThreshold'] = request.cpu_enlarge_threshold
|
|
38066
|
+
if not UtilClient.is_unset(request.cpu_shrink_threshold):
|
|
38067
|
+
query['CpuShrinkThreshold'] = request.cpu_shrink_threshold
|
|
38068
|
+
if not UtilClient.is_unset(request.crontab_job_id):
|
|
38069
|
+
query['CrontabJobId'] = request.crontab_job_id
|
|
38070
|
+
if not UtilClient.is_unset(request.dbinstance_id):
|
|
38071
|
+
query['DBInstanceId'] = request.dbinstance_id
|
|
38072
|
+
if not UtilClient.is_unset(request.memory_enlarge_threshold):
|
|
38073
|
+
query['MemoryEnlargeThreshold'] = request.memory_enlarge_threshold
|
|
38074
|
+
if not UtilClient.is_unset(request.memory_shrink_threshold):
|
|
38075
|
+
query['MemoryShrinkThreshold'] = request.memory_shrink_threshold
|
|
38076
|
+
if not UtilClient.is_unset(request.owner_account):
|
|
38077
|
+
query['OwnerAccount'] = request.owner_account
|
|
38078
|
+
if not UtilClient.is_unset(request.owner_id):
|
|
38079
|
+
query['OwnerId'] = request.owner_id
|
|
38080
|
+
if not UtilClient.is_unset(request.resource_group_id):
|
|
38081
|
+
query['ResourceGroupId'] = request.resource_group_id
|
|
38082
|
+
if not UtilClient.is_unset(request.resource_owner_account):
|
|
38083
|
+
query['ResourceOwnerAccount'] = request.resource_owner_account
|
|
38084
|
+
if not UtilClient.is_unset(request.scale_max_cpus):
|
|
38085
|
+
query['ScaleMaxCpus'] = request.scale_max_cpus
|
|
38086
|
+
if not UtilClient.is_unset(request.scale_max_memory):
|
|
38087
|
+
query['ScaleMaxMemory'] = request.scale_max_memory
|
|
38088
|
+
if not UtilClient.is_unset(request.switch_time):
|
|
38089
|
+
query['SwitchTime'] = request.switch_time
|
|
38090
|
+
if not UtilClient.is_unset(request.switch_time_mode):
|
|
38091
|
+
query['SwitchTimeMode'] = request.switch_time_mode
|
|
38092
|
+
if not UtilClient.is_unset(request.task_id):
|
|
38093
|
+
query['TaskId'] = request.task_id
|
|
38094
|
+
req = open_api_models.OpenApiRequest(
|
|
38095
|
+
query=OpenApiUtilClient.query(query)
|
|
38096
|
+
)
|
|
38097
|
+
params = open_api_models.Params(
|
|
38098
|
+
action='ModifyComputeBurstConfig',
|
|
38099
|
+
version='2014-08-15',
|
|
38100
|
+
protocol='HTTPS',
|
|
38101
|
+
pathname='/',
|
|
38102
|
+
method='POST',
|
|
38103
|
+
auth_type='AK',
|
|
38104
|
+
style='RPC',
|
|
38105
|
+
req_body_type='formData',
|
|
38106
|
+
body_type='json'
|
|
38107
|
+
)
|
|
38108
|
+
return TeaCore.from_map(
|
|
38109
|
+
rds_20140815_models.ModifyComputeBurstConfigResponse(),
|
|
38110
|
+
await self.call_api_async(params, req, runtime)
|
|
38111
|
+
)
|
|
38112
|
+
|
|
38113
|
+
def modify_compute_burst_config(
|
|
38114
|
+
self,
|
|
38115
|
+
request: rds_20140815_models.ModifyComputeBurstConfigRequest,
|
|
38116
|
+
) -> rds_20140815_models.ModifyComputeBurstConfigResponse:
|
|
38117
|
+
"""
|
|
38118
|
+
@summary 修改本地性能突发配置
|
|
38119
|
+
|
|
38120
|
+
@param request: ModifyComputeBurstConfigRequest
|
|
38121
|
+
@return: ModifyComputeBurstConfigResponse
|
|
38122
|
+
"""
|
|
38123
|
+
runtime = util_models.RuntimeOptions()
|
|
38124
|
+
return self.modify_compute_burst_config_with_options(request, runtime)
|
|
38125
|
+
|
|
38126
|
+
async def modify_compute_burst_config_async(
|
|
38127
|
+
self,
|
|
38128
|
+
request: rds_20140815_models.ModifyComputeBurstConfigRequest,
|
|
38129
|
+
) -> rds_20140815_models.ModifyComputeBurstConfigResponse:
|
|
38130
|
+
"""
|
|
38131
|
+
@summary 修改本地性能突发配置
|
|
38132
|
+
|
|
38133
|
+
@param request: ModifyComputeBurstConfigRequest
|
|
38134
|
+
@return: ModifyComputeBurstConfigResponse
|
|
38135
|
+
"""
|
|
38136
|
+
runtime = util_models.RuntimeOptions()
|
|
38137
|
+
return await self.modify_compute_burst_config_with_options_async(request, runtime)
|
|
38138
|
+
|
|
36779
38139
|
def modify_custins_resource_with_options(
|
|
36780
38140
|
self,
|
|
36781
38141
|
request: rds_20140815_models.ModifyCustinsResourceRequest,
|
|
@@ -43550,22 +44910,32 @@ class Client(OpenApiClient):
|
|
|
43550
44910
|
|
|
43551
44911
|
def modify_rcinstance_attribute_with_options(
|
|
43552
44912
|
self,
|
|
43553
|
-
|
|
44913
|
+
tmp_req: rds_20140815_models.ModifyRCInstanceAttributeRequest,
|
|
43554
44914
|
runtime: util_models.RuntimeOptions,
|
|
43555
44915
|
) -> rds_20140815_models.ModifyRCInstanceAttributeResponse:
|
|
43556
44916
|
"""
|
|
43557
|
-
@summary Modifies
|
|
44917
|
+
@summary Modifies the attributes of an RDS Custom instance, such as the password, hostname, security groups, and whether release protection is enabled.
|
|
43558
44918
|
|
|
43559
|
-
@param
|
|
44919
|
+
@param tmp_req: ModifyRCInstanceAttributeRequest
|
|
43560
44920
|
@param runtime: runtime options for this request RuntimeOptions
|
|
43561
44921
|
@return: ModifyRCInstanceAttributeResponse
|
|
43562
44922
|
"""
|
|
43563
|
-
UtilClient.validate_model(
|
|
44923
|
+
UtilClient.validate_model(tmp_req)
|
|
44924
|
+
request = rds_20140815_models.ModifyRCInstanceAttributeShrinkRequest()
|
|
44925
|
+
OpenApiUtilClient.convert(tmp_req, request)
|
|
44926
|
+
if not UtilClient.is_unset(tmp_req.instance_ids):
|
|
44927
|
+
request.instance_ids_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.instance_ids, 'InstanceIds', 'json')
|
|
44928
|
+
if not UtilClient.is_unset(tmp_req.security_group_ids):
|
|
44929
|
+
request.security_group_ids_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.security_group_ids, 'SecurityGroupIds', 'json')
|
|
43564
44930
|
query = {}
|
|
44931
|
+
if not UtilClient.is_unset(request.deletion_protection):
|
|
44932
|
+
query['DeletionProtection'] = request.deletion_protection
|
|
43565
44933
|
if not UtilClient.is_unset(request.host_name):
|
|
43566
44934
|
query['HostName'] = request.host_name
|
|
43567
44935
|
if not UtilClient.is_unset(request.instance_id):
|
|
43568
44936
|
query['InstanceId'] = request.instance_id
|
|
44937
|
+
if not UtilClient.is_unset(request.instance_ids_shrink):
|
|
44938
|
+
query['InstanceIds'] = request.instance_ids_shrink
|
|
43569
44939
|
if not UtilClient.is_unset(request.password):
|
|
43570
44940
|
query['Password'] = request.password
|
|
43571
44941
|
if not UtilClient.is_unset(request.reboot):
|
|
@@ -43574,6 +44944,8 @@ class Client(OpenApiClient):
|
|
|
43574
44944
|
query['RegionId'] = request.region_id
|
|
43575
44945
|
if not UtilClient.is_unset(request.security_group_id):
|
|
43576
44946
|
query['SecurityGroupId'] = request.security_group_id
|
|
44947
|
+
if not UtilClient.is_unset(request.security_group_ids_shrink):
|
|
44948
|
+
query['SecurityGroupIds'] = request.security_group_ids_shrink
|
|
43577
44949
|
req = open_api_models.OpenApiRequest(
|
|
43578
44950
|
query=OpenApiUtilClient.query(query)
|
|
43579
44951
|
)
|
|
@@ -43595,22 +44967,32 @@ class Client(OpenApiClient):
|
|
|
43595
44967
|
|
|
43596
44968
|
async def modify_rcinstance_attribute_with_options_async(
|
|
43597
44969
|
self,
|
|
43598
|
-
|
|
44970
|
+
tmp_req: rds_20140815_models.ModifyRCInstanceAttributeRequest,
|
|
43599
44971
|
runtime: util_models.RuntimeOptions,
|
|
43600
44972
|
) -> rds_20140815_models.ModifyRCInstanceAttributeResponse:
|
|
43601
44973
|
"""
|
|
43602
|
-
@summary Modifies
|
|
44974
|
+
@summary Modifies the attributes of an RDS Custom instance, such as the password, hostname, security groups, and whether release protection is enabled.
|
|
43603
44975
|
|
|
43604
|
-
@param
|
|
44976
|
+
@param tmp_req: ModifyRCInstanceAttributeRequest
|
|
43605
44977
|
@param runtime: runtime options for this request RuntimeOptions
|
|
43606
44978
|
@return: ModifyRCInstanceAttributeResponse
|
|
43607
44979
|
"""
|
|
43608
|
-
UtilClient.validate_model(
|
|
44980
|
+
UtilClient.validate_model(tmp_req)
|
|
44981
|
+
request = rds_20140815_models.ModifyRCInstanceAttributeShrinkRequest()
|
|
44982
|
+
OpenApiUtilClient.convert(tmp_req, request)
|
|
44983
|
+
if not UtilClient.is_unset(tmp_req.instance_ids):
|
|
44984
|
+
request.instance_ids_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.instance_ids, 'InstanceIds', 'json')
|
|
44985
|
+
if not UtilClient.is_unset(tmp_req.security_group_ids):
|
|
44986
|
+
request.security_group_ids_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.security_group_ids, 'SecurityGroupIds', 'json')
|
|
43609
44987
|
query = {}
|
|
44988
|
+
if not UtilClient.is_unset(request.deletion_protection):
|
|
44989
|
+
query['DeletionProtection'] = request.deletion_protection
|
|
43610
44990
|
if not UtilClient.is_unset(request.host_name):
|
|
43611
44991
|
query['HostName'] = request.host_name
|
|
43612
44992
|
if not UtilClient.is_unset(request.instance_id):
|
|
43613
44993
|
query['InstanceId'] = request.instance_id
|
|
44994
|
+
if not UtilClient.is_unset(request.instance_ids_shrink):
|
|
44995
|
+
query['InstanceIds'] = request.instance_ids_shrink
|
|
43614
44996
|
if not UtilClient.is_unset(request.password):
|
|
43615
44997
|
query['Password'] = request.password
|
|
43616
44998
|
if not UtilClient.is_unset(request.reboot):
|
|
@@ -43619,6 +45001,8 @@ class Client(OpenApiClient):
|
|
|
43619
45001
|
query['RegionId'] = request.region_id
|
|
43620
45002
|
if not UtilClient.is_unset(request.security_group_id):
|
|
43621
45003
|
query['SecurityGroupId'] = request.security_group_id
|
|
45004
|
+
if not UtilClient.is_unset(request.security_group_ids_shrink):
|
|
45005
|
+
query['SecurityGroupIds'] = request.security_group_ids_shrink
|
|
43622
45006
|
req = open_api_models.OpenApiRequest(
|
|
43623
45007
|
query=OpenApiUtilClient.query(query)
|
|
43624
45008
|
)
|
|
@@ -43643,7 +45027,7 @@ class Client(OpenApiClient):
|
|
|
43643
45027
|
request: rds_20140815_models.ModifyRCInstanceAttributeRequest,
|
|
43644
45028
|
) -> rds_20140815_models.ModifyRCInstanceAttributeResponse:
|
|
43645
45029
|
"""
|
|
43646
|
-
@summary Modifies
|
|
45030
|
+
@summary Modifies the attributes of an RDS Custom instance, such as the password, hostname, security groups, and whether release protection is enabled.
|
|
43647
45031
|
|
|
43648
45032
|
@param request: ModifyRCInstanceAttributeRequest
|
|
43649
45033
|
@return: ModifyRCInstanceAttributeResponse
|
|
@@ -43656,7 +45040,7 @@ class Client(OpenApiClient):
|
|
|
43656
45040
|
request: rds_20140815_models.ModifyRCInstanceAttributeRequest,
|
|
43657
45041
|
) -> rds_20140815_models.ModifyRCInstanceAttributeResponse:
|
|
43658
45042
|
"""
|
|
43659
|
-
@summary Modifies
|
|
45043
|
+
@summary Modifies the attributes of an RDS Custom instance, such as the password, hostname, security groups, and whether release protection is enabled.
|
|
43660
45044
|
|
|
43661
45045
|
@param request: ModifyRCInstanceAttributeRequest
|
|
43662
45046
|
@return: ModifyRCInstanceAttributeResponse
|
|
@@ -47036,6 +48420,146 @@ class Client(OpenApiClient):
|
|
|
47036
48420
|
runtime = util_models.RuntimeOptions()
|
|
47037
48421
|
return await self.recovery_dbinstance_with_options_async(request, runtime)
|
|
47038
48422
|
|
|
48423
|
+
def redeploy_rcinstance_with_options(
|
|
48424
|
+
self,
|
|
48425
|
+
request: rds_20140815_models.RedeployRCInstanceRequest,
|
|
48426
|
+
runtime: util_models.RuntimeOptions,
|
|
48427
|
+
) -> rds_20140815_models.RedeployRCInstanceResponse:
|
|
48428
|
+
"""
|
|
48429
|
+
@summary Redeploys an RDS Custom instance when the instance receives a system event notification.
|
|
48430
|
+
|
|
48431
|
+
@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.
|
|
48432
|
+
When you call this operation, take note of the following items:
|
|
48433
|
+
The instance must be in the Running or Stopped state. After the instance is redeployed, the state of the instance has the following changes:
|
|
48434
|
+
If the instance is in the Running state before redeployment, the instance enters the Stopped state.
|
|
48435
|
+
If the instance is in the Stopped state before redeployment, the instance enters the Starting state.
|
|
48436
|
+
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.
|
|
48437
|
+
The following table lists the types and states of events that you can handle by calling the RedeployInstance operation.
|
|
48438
|
+
Instance redeployment due to system maintenance: SystemMaintenance.Redeploy. The event state is Inquiring or Scheduled.
|
|
48439
|
+
Instance redeployment due to system failures: SystemFailure.Redeploy. The event state is Inquiring.
|
|
48440
|
+
|
|
48441
|
+
@param request: RedeployRCInstanceRequest
|
|
48442
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
48443
|
+
@return: RedeployRCInstanceResponse
|
|
48444
|
+
"""
|
|
48445
|
+
UtilClient.validate_model(request)
|
|
48446
|
+
query = {}
|
|
48447
|
+
if not UtilClient.is_unset(request.force_stop):
|
|
48448
|
+
query['ForceStop'] = request.force_stop
|
|
48449
|
+
if not UtilClient.is_unset(request.instance_id):
|
|
48450
|
+
query['InstanceId'] = request.instance_id
|
|
48451
|
+
req = open_api_models.OpenApiRequest(
|
|
48452
|
+
query=OpenApiUtilClient.query(query)
|
|
48453
|
+
)
|
|
48454
|
+
params = open_api_models.Params(
|
|
48455
|
+
action='RedeployRCInstance',
|
|
48456
|
+
version='2014-08-15',
|
|
48457
|
+
protocol='HTTPS',
|
|
48458
|
+
pathname='/',
|
|
48459
|
+
method='POST',
|
|
48460
|
+
auth_type='AK',
|
|
48461
|
+
style='RPC',
|
|
48462
|
+
req_body_type='formData',
|
|
48463
|
+
body_type='json'
|
|
48464
|
+
)
|
|
48465
|
+
return TeaCore.from_map(
|
|
48466
|
+
rds_20140815_models.RedeployRCInstanceResponse(),
|
|
48467
|
+
self.call_api(params, req, runtime)
|
|
48468
|
+
)
|
|
48469
|
+
|
|
48470
|
+
async def redeploy_rcinstance_with_options_async(
|
|
48471
|
+
self,
|
|
48472
|
+
request: rds_20140815_models.RedeployRCInstanceRequest,
|
|
48473
|
+
runtime: util_models.RuntimeOptions,
|
|
48474
|
+
) -> rds_20140815_models.RedeployRCInstanceResponse:
|
|
48475
|
+
"""
|
|
48476
|
+
@summary Redeploys an RDS Custom instance when the instance receives a system event notification.
|
|
48477
|
+
|
|
48478
|
+
@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.
|
|
48479
|
+
When you call this operation, take note of the following items:
|
|
48480
|
+
The instance must be in the Running or Stopped state. After the instance is redeployed, the state of the instance has the following changes:
|
|
48481
|
+
If the instance is in the Running state before redeployment, the instance enters the Stopped state.
|
|
48482
|
+
If the instance is in the Stopped state before redeployment, the instance enters the Starting state.
|
|
48483
|
+
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.
|
|
48484
|
+
The following table lists the types and states of events that you can handle by calling the RedeployInstance operation.
|
|
48485
|
+
Instance redeployment due to system maintenance: SystemMaintenance.Redeploy. The event state is Inquiring or Scheduled.
|
|
48486
|
+
Instance redeployment due to system failures: SystemFailure.Redeploy. The event state is Inquiring.
|
|
48487
|
+
|
|
48488
|
+
@param request: RedeployRCInstanceRequest
|
|
48489
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
48490
|
+
@return: RedeployRCInstanceResponse
|
|
48491
|
+
"""
|
|
48492
|
+
UtilClient.validate_model(request)
|
|
48493
|
+
query = {}
|
|
48494
|
+
if not UtilClient.is_unset(request.force_stop):
|
|
48495
|
+
query['ForceStop'] = request.force_stop
|
|
48496
|
+
if not UtilClient.is_unset(request.instance_id):
|
|
48497
|
+
query['InstanceId'] = request.instance_id
|
|
48498
|
+
req = open_api_models.OpenApiRequest(
|
|
48499
|
+
query=OpenApiUtilClient.query(query)
|
|
48500
|
+
)
|
|
48501
|
+
params = open_api_models.Params(
|
|
48502
|
+
action='RedeployRCInstance',
|
|
48503
|
+
version='2014-08-15',
|
|
48504
|
+
protocol='HTTPS',
|
|
48505
|
+
pathname='/',
|
|
48506
|
+
method='POST',
|
|
48507
|
+
auth_type='AK',
|
|
48508
|
+
style='RPC',
|
|
48509
|
+
req_body_type='formData',
|
|
48510
|
+
body_type='json'
|
|
48511
|
+
)
|
|
48512
|
+
return TeaCore.from_map(
|
|
48513
|
+
rds_20140815_models.RedeployRCInstanceResponse(),
|
|
48514
|
+
await self.call_api_async(params, req, runtime)
|
|
48515
|
+
)
|
|
48516
|
+
|
|
48517
|
+
def redeploy_rcinstance(
|
|
48518
|
+
self,
|
|
48519
|
+
request: rds_20140815_models.RedeployRCInstanceRequest,
|
|
48520
|
+
) -> rds_20140815_models.RedeployRCInstanceResponse:
|
|
48521
|
+
"""
|
|
48522
|
+
@summary Redeploys an RDS Custom instance when the instance receives a system event notification.
|
|
48523
|
+
|
|
48524
|
+
@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.
|
|
48525
|
+
When you call this operation, take note of the following items:
|
|
48526
|
+
The instance must be in the Running or Stopped state. After the instance is redeployed, the state of the instance has the following changes:
|
|
48527
|
+
If the instance is in the Running state before redeployment, the instance enters the Stopped state.
|
|
48528
|
+
If the instance is in the Stopped state before redeployment, the instance enters the Starting state.
|
|
48529
|
+
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.
|
|
48530
|
+
The following table lists the types and states of events that you can handle by calling the RedeployInstance operation.
|
|
48531
|
+
Instance redeployment due to system maintenance: SystemMaintenance.Redeploy. The event state is Inquiring or Scheduled.
|
|
48532
|
+
Instance redeployment due to system failures: SystemFailure.Redeploy. The event state is Inquiring.
|
|
48533
|
+
|
|
48534
|
+
@param request: RedeployRCInstanceRequest
|
|
48535
|
+
@return: RedeployRCInstanceResponse
|
|
48536
|
+
"""
|
|
48537
|
+
runtime = util_models.RuntimeOptions()
|
|
48538
|
+
return self.redeploy_rcinstance_with_options(request, runtime)
|
|
48539
|
+
|
|
48540
|
+
async def redeploy_rcinstance_async(
|
|
48541
|
+
self,
|
|
48542
|
+
request: rds_20140815_models.RedeployRCInstanceRequest,
|
|
48543
|
+
) -> rds_20140815_models.RedeployRCInstanceResponse:
|
|
48544
|
+
"""
|
|
48545
|
+
@summary Redeploys an RDS Custom instance when the instance receives a system event notification.
|
|
48546
|
+
|
|
48547
|
+
@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.
|
|
48548
|
+
When you call this operation, take note of the following items:
|
|
48549
|
+
The instance must be in the Running or Stopped state. After the instance is redeployed, the state of the instance has the following changes:
|
|
48550
|
+
If the instance is in the Running state before redeployment, the instance enters the Stopped state.
|
|
48551
|
+
If the instance is in the Stopped state before redeployment, the instance enters the Starting state.
|
|
48552
|
+
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.
|
|
48553
|
+
The following table lists the types and states of events that you can handle by calling the RedeployInstance operation.
|
|
48554
|
+
Instance redeployment due to system maintenance: SystemMaintenance.Redeploy. The event state is Inquiring or Scheduled.
|
|
48555
|
+
Instance redeployment due to system failures: SystemFailure.Redeploy. The event state is Inquiring.
|
|
48556
|
+
|
|
48557
|
+
@param request: RedeployRCInstanceRequest
|
|
48558
|
+
@return: RedeployRCInstanceResponse
|
|
48559
|
+
"""
|
|
48560
|
+
runtime = util_models.RuntimeOptions()
|
|
48561
|
+
return await self.redeploy_rcinstance_with_options_async(request, runtime)
|
|
48562
|
+
|
|
47039
48563
|
def release_instance_connection_with_options(
|
|
47040
48564
|
self,
|
|
47041
48565
|
request: rds_20140815_models.ReleaseInstanceConnectionRequest,
|
|
@@ -49548,6 +51072,214 @@ class Client(OpenApiClient):
|
|
|
49548
51072
|
runtime = util_models.RuntimeOptions()
|
|
49549
51073
|
return await self.revoke_rcsecurity_group_permission_with_options_async(request, runtime)
|
|
49550
51074
|
|
|
51075
|
+
def run_rccommand_with_options(
|
|
51076
|
+
self,
|
|
51077
|
+
tmp_req: rds_20140815_models.RunRCCommandRequest,
|
|
51078
|
+
runtime: util_models.RuntimeOptions,
|
|
51079
|
+
) -> rds_20140815_models.RunRCCommandResponse:
|
|
51080
|
+
"""
|
|
51081
|
+
@summary 创建并执行云助手命令
|
|
51082
|
+
|
|
51083
|
+
@param tmp_req: RunRCCommandRequest
|
|
51084
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
51085
|
+
@return: RunRCCommandResponse
|
|
51086
|
+
"""
|
|
51087
|
+
UtilClient.validate_model(tmp_req)
|
|
51088
|
+
request = rds_20140815_models.RunRCCommandShrinkRequest()
|
|
51089
|
+
OpenApiUtilClient.convert(tmp_req, request)
|
|
51090
|
+
if not UtilClient.is_unset(tmp_req.instance_ids):
|
|
51091
|
+
request.instance_ids_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.instance_ids, 'InstanceIds', 'json')
|
|
51092
|
+
if not UtilClient.is_unset(tmp_req.parameters):
|
|
51093
|
+
request.parameters_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.parameters, 'Parameters', 'json')
|
|
51094
|
+
if not UtilClient.is_unset(tmp_req.resource_tags):
|
|
51095
|
+
request.resource_tags_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.resource_tags, 'ResourceTags', 'json')
|
|
51096
|
+
if not UtilClient.is_unset(tmp_req.tags):
|
|
51097
|
+
request.tags_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.tags, 'Tags', 'json')
|
|
51098
|
+
query = {}
|
|
51099
|
+
if not UtilClient.is_unset(request.client_token):
|
|
51100
|
+
query['ClientToken'] = request.client_token
|
|
51101
|
+
if not UtilClient.is_unset(request.command_content):
|
|
51102
|
+
query['CommandContent'] = request.command_content
|
|
51103
|
+
if not UtilClient.is_unset(request.container_id):
|
|
51104
|
+
query['ContainerId'] = request.container_id
|
|
51105
|
+
if not UtilClient.is_unset(request.container_name):
|
|
51106
|
+
query['ContainerName'] = request.container_name
|
|
51107
|
+
if not UtilClient.is_unset(request.content_encoding):
|
|
51108
|
+
query['ContentEncoding'] = request.content_encoding
|
|
51109
|
+
if not UtilClient.is_unset(request.description):
|
|
51110
|
+
query['Description'] = request.description
|
|
51111
|
+
if not UtilClient.is_unset(request.enable_parameter):
|
|
51112
|
+
query['EnableParameter'] = request.enable_parameter
|
|
51113
|
+
if not UtilClient.is_unset(request.frequency):
|
|
51114
|
+
query['Frequency'] = request.frequency
|
|
51115
|
+
if not UtilClient.is_unset(request.instance_ids_shrink):
|
|
51116
|
+
query['InstanceIds'] = request.instance_ids_shrink
|
|
51117
|
+
if not UtilClient.is_unset(request.keep_command):
|
|
51118
|
+
query['KeepCommand'] = request.keep_command
|
|
51119
|
+
if not UtilClient.is_unset(request.launcher):
|
|
51120
|
+
query['Launcher'] = request.launcher
|
|
51121
|
+
if not UtilClient.is_unset(request.name):
|
|
51122
|
+
query['Name'] = request.name
|
|
51123
|
+
if not UtilClient.is_unset(request.parameters_shrink):
|
|
51124
|
+
query['Parameters'] = request.parameters_shrink
|
|
51125
|
+
if not UtilClient.is_unset(request.region_id):
|
|
51126
|
+
query['RegionId'] = request.region_id
|
|
51127
|
+
if not UtilClient.is_unset(request.repeat_mode):
|
|
51128
|
+
query['RepeatMode'] = request.repeat_mode
|
|
51129
|
+
if not UtilClient.is_unset(request.resource_group_id):
|
|
51130
|
+
query['ResourceGroupId'] = request.resource_group_id
|
|
51131
|
+
if not UtilClient.is_unset(request.resource_tags_shrink):
|
|
51132
|
+
query['ResourceTags'] = request.resource_tags_shrink
|
|
51133
|
+
if not UtilClient.is_unset(request.tags_shrink):
|
|
51134
|
+
query['Tags'] = request.tags_shrink
|
|
51135
|
+
if not UtilClient.is_unset(request.termination_mode):
|
|
51136
|
+
query['TerminationMode'] = request.termination_mode
|
|
51137
|
+
if not UtilClient.is_unset(request.timeout):
|
|
51138
|
+
query['Timeout'] = request.timeout
|
|
51139
|
+
if not UtilClient.is_unset(request.type):
|
|
51140
|
+
query['Type'] = request.type
|
|
51141
|
+
if not UtilClient.is_unset(request.username):
|
|
51142
|
+
query['Username'] = request.username
|
|
51143
|
+
if not UtilClient.is_unset(request.windows_password_name):
|
|
51144
|
+
query['WindowsPasswordName'] = request.windows_password_name
|
|
51145
|
+
if not UtilClient.is_unset(request.working_dir):
|
|
51146
|
+
query['WorkingDir'] = request.working_dir
|
|
51147
|
+
req = open_api_models.OpenApiRequest(
|
|
51148
|
+
query=OpenApiUtilClient.query(query)
|
|
51149
|
+
)
|
|
51150
|
+
params = open_api_models.Params(
|
|
51151
|
+
action='RunRCCommand',
|
|
51152
|
+
version='2014-08-15',
|
|
51153
|
+
protocol='HTTPS',
|
|
51154
|
+
pathname='/',
|
|
51155
|
+
method='POST',
|
|
51156
|
+
auth_type='AK',
|
|
51157
|
+
style='RPC',
|
|
51158
|
+
req_body_type='formData',
|
|
51159
|
+
body_type='json'
|
|
51160
|
+
)
|
|
51161
|
+
return TeaCore.from_map(
|
|
51162
|
+
rds_20140815_models.RunRCCommandResponse(),
|
|
51163
|
+
self.call_api(params, req, runtime)
|
|
51164
|
+
)
|
|
51165
|
+
|
|
51166
|
+
async def run_rccommand_with_options_async(
|
|
51167
|
+
self,
|
|
51168
|
+
tmp_req: rds_20140815_models.RunRCCommandRequest,
|
|
51169
|
+
runtime: util_models.RuntimeOptions,
|
|
51170
|
+
) -> rds_20140815_models.RunRCCommandResponse:
|
|
51171
|
+
"""
|
|
51172
|
+
@summary 创建并执行云助手命令
|
|
51173
|
+
|
|
51174
|
+
@param tmp_req: RunRCCommandRequest
|
|
51175
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
51176
|
+
@return: RunRCCommandResponse
|
|
51177
|
+
"""
|
|
51178
|
+
UtilClient.validate_model(tmp_req)
|
|
51179
|
+
request = rds_20140815_models.RunRCCommandShrinkRequest()
|
|
51180
|
+
OpenApiUtilClient.convert(tmp_req, request)
|
|
51181
|
+
if not UtilClient.is_unset(tmp_req.instance_ids):
|
|
51182
|
+
request.instance_ids_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.instance_ids, 'InstanceIds', 'json')
|
|
51183
|
+
if not UtilClient.is_unset(tmp_req.parameters):
|
|
51184
|
+
request.parameters_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.parameters, 'Parameters', 'json')
|
|
51185
|
+
if not UtilClient.is_unset(tmp_req.resource_tags):
|
|
51186
|
+
request.resource_tags_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.resource_tags, 'ResourceTags', 'json')
|
|
51187
|
+
if not UtilClient.is_unset(tmp_req.tags):
|
|
51188
|
+
request.tags_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.tags, 'Tags', 'json')
|
|
51189
|
+
query = {}
|
|
51190
|
+
if not UtilClient.is_unset(request.client_token):
|
|
51191
|
+
query['ClientToken'] = request.client_token
|
|
51192
|
+
if not UtilClient.is_unset(request.command_content):
|
|
51193
|
+
query['CommandContent'] = request.command_content
|
|
51194
|
+
if not UtilClient.is_unset(request.container_id):
|
|
51195
|
+
query['ContainerId'] = request.container_id
|
|
51196
|
+
if not UtilClient.is_unset(request.container_name):
|
|
51197
|
+
query['ContainerName'] = request.container_name
|
|
51198
|
+
if not UtilClient.is_unset(request.content_encoding):
|
|
51199
|
+
query['ContentEncoding'] = request.content_encoding
|
|
51200
|
+
if not UtilClient.is_unset(request.description):
|
|
51201
|
+
query['Description'] = request.description
|
|
51202
|
+
if not UtilClient.is_unset(request.enable_parameter):
|
|
51203
|
+
query['EnableParameter'] = request.enable_parameter
|
|
51204
|
+
if not UtilClient.is_unset(request.frequency):
|
|
51205
|
+
query['Frequency'] = request.frequency
|
|
51206
|
+
if not UtilClient.is_unset(request.instance_ids_shrink):
|
|
51207
|
+
query['InstanceIds'] = request.instance_ids_shrink
|
|
51208
|
+
if not UtilClient.is_unset(request.keep_command):
|
|
51209
|
+
query['KeepCommand'] = request.keep_command
|
|
51210
|
+
if not UtilClient.is_unset(request.launcher):
|
|
51211
|
+
query['Launcher'] = request.launcher
|
|
51212
|
+
if not UtilClient.is_unset(request.name):
|
|
51213
|
+
query['Name'] = request.name
|
|
51214
|
+
if not UtilClient.is_unset(request.parameters_shrink):
|
|
51215
|
+
query['Parameters'] = request.parameters_shrink
|
|
51216
|
+
if not UtilClient.is_unset(request.region_id):
|
|
51217
|
+
query['RegionId'] = request.region_id
|
|
51218
|
+
if not UtilClient.is_unset(request.repeat_mode):
|
|
51219
|
+
query['RepeatMode'] = request.repeat_mode
|
|
51220
|
+
if not UtilClient.is_unset(request.resource_group_id):
|
|
51221
|
+
query['ResourceGroupId'] = request.resource_group_id
|
|
51222
|
+
if not UtilClient.is_unset(request.resource_tags_shrink):
|
|
51223
|
+
query['ResourceTags'] = request.resource_tags_shrink
|
|
51224
|
+
if not UtilClient.is_unset(request.tags_shrink):
|
|
51225
|
+
query['Tags'] = request.tags_shrink
|
|
51226
|
+
if not UtilClient.is_unset(request.termination_mode):
|
|
51227
|
+
query['TerminationMode'] = request.termination_mode
|
|
51228
|
+
if not UtilClient.is_unset(request.timeout):
|
|
51229
|
+
query['Timeout'] = request.timeout
|
|
51230
|
+
if not UtilClient.is_unset(request.type):
|
|
51231
|
+
query['Type'] = request.type
|
|
51232
|
+
if not UtilClient.is_unset(request.username):
|
|
51233
|
+
query['Username'] = request.username
|
|
51234
|
+
if not UtilClient.is_unset(request.windows_password_name):
|
|
51235
|
+
query['WindowsPasswordName'] = request.windows_password_name
|
|
51236
|
+
if not UtilClient.is_unset(request.working_dir):
|
|
51237
|
+
query['WorkingDir'] = request.working_dir
|
|
51238
|
+
req = open_api_models.OpenApiRequest(
|
|
51239
|
+
query=OpenApiUtilClient.query(query)
|
|
51240
|
+
)
|
|
51241
|
+
params = open_api_models.Params(
|
|
51242
|
+
action='RunRCCommand',
|
|
51243
|
+
version='2014-08-15',
|
|
51244
|
+
protocol='HTTPS',
|
|
51245
|
+
pathname='/',
|
|
51246
|
+
method='POST',
|
|
51247
|
+
auth_type='AK',
|
|
51248
|
+
style='RPC',
|
|
51249
|
+
req_body_type='formData',
|
|
51250
|
+
body_type='json'
|
|
51251
|
+
)
|
|
51252
|
+
return TeaCore.from_map(
|
|
51253
|
+
rds_20140815_models.RunRCCommandResponse(),
|
|
51254
|
+
await self.call_api_async(params, req, runtime)
|
|
51255
|
+
)
|
|
51256
|
+
|
|
51257
|
+
def run_rccommand(
|
|
51258
|
+
self,
|
|
51259
|
+
request: rds_20140815_models.RunRCCommandRequest,
|
|
51260
|
+
) -> rds_20140815_models.RunRCCommandResponse:
|
|
51261
|
+
"""
|
|
51262
|
+
@summary 创建并执行云助手命令
|
|
51263
|
+
|
|
51264
|
+
@param request: RunRCCommandRequest
|
|
51265
|
+
@return: RunRCCommandResponse
|
|
51266
|
+
"""
|
|
51267
|
+
runtime = util_models.RuntimeOptions()
|
|
51268
|
+
return self.run_rccommand_with_options(request, runtime)
|
|
51269
|
+
|
|
51270
|
+
async def run_rccommand_async(
|
|
51271
|
+
self,
|
|
51272
|
+
request: rds_20140815_models.RunRCCommandRequest,
|
|
51273
|
+
) -> rds_20140815_models.RunRCCommandResponse:
|
|
51274
|
+
"""
|
|
51275
|
+
@summary 创建并执行云助手命令
|
|
51276
|
+
|
|
51277
|
+
@param request: RunRCCommandRequest
|
|
51278
|
+
@return: RunRCCommandResponse
|
|
51279
|
+
"""
|
|
51280
|
+
runtime = util_models.RuntimeOptions()
|
|
51281
|
+
return await self.run_rccommand_with_options_async(request, runtime)
|
|
51282
|
+
|
|
49551
51283
|
def run_rcinstances_with_options(
|
|
49552
51284
|
self,
|
|
49553
51285
|
tmp_req: rds_20140815_models.RunRCInstancesRequest,
|
|
@@ -49592,6 +51324,8 @@ class Client(OpenApiClient):
|
|
|
49592
51324
|
query['CreateMode'] = request.create_mode
|
|
49593
51325
|
if not UtilClient.is_unset(request.data_disk_shrink):
|
|
49594
51326
|
query['DataDisk'] = request.data_disk_shrink
|
|
51327
|
+
if not UtilClient.is_unset(request.deletion_protection):
|
|
51328
|
+
query['DeletionProtection'] = request.deletion_protection
|
|
49595
51329
|
if not UtilClient.is_unset(request.deployment_set_id):
|
|
49596
51330
|
query['DeploymentSetId'] = request.deployment_set_id
|
|
49597
51331
|
if not UtilClient.is_unset(request.description):
|
|
@@ -49711,6 +51445,8 @@ class Client(OpenApiClient):
|
|
|
49711
51445
|
query['CreateMode'] = request.create_mode
|
|
49712
51446
|
if not UtilClient.is_unset(request.data_disk_shrink):
|
|
49713
51447
|
query['DataDisk'] = request.data_disk_shrink
|
|
51448
|
+
if not UtilClient.is_unset(request.deletion_protection):
|
|
51449
|
+
query['DeletionProtection'] = request.deletion_protection
|
|
49714
51450
|
if not UtilClient.is_unset(request.deployment_set_id):
|
|
49715
51451
|
query['DeploymentSetId'] = request.deployment_set_id
|
|
49716
51452
|
if not UtilClient.is_unset(request.description):
|
|
@@ -51125,12 +52861,22 @@ class Client(OpenApiClient):
|
|
|
51125
52861
|
"""
|
|
51126
52862
|
UtilClient.validate_model(request)
|
|
51127
52863
|
query = {}
|
|
52864
|
+
if not UtilClient.is_unset(request.client_token):
|
|
52865
|
+
query['ClientToken'] = request.client_token
|
|
51128
52866
|
if not UtilClient.is_unset(request.dbinstance_name):
|
|
51129
52867
|
query['DBInstanceName'] = request.dbinstance_name
|
|
52868
|
+
if not UtilClient.is_unset(request.owner_account):
|
|
52869
|
+
query['OwnerAccount'] = request.owner_account
|
|
51130
52870
|
if not UtilClient.is_unset(request.owner_id):
|
|
51131
52871
|
query['OwnerId'] = request.owner_id
|
|
51132
52872
|
if not UtilClient.is_unset(request.region_id):
|
|
51133
52873
|
query['RegionId'] = request.region_id
|
|
52874
|
+
if not UtilClient.is_unset(request.resource_group_id):
|
|
52875
|
+
query['ResourceGroupId'] = request.resource_group_id
|
|
52876
|
+
if not UtilClient.is_unset(request.resource_owner_account):
|
|
52877
|
+
query['ResourceOwnerAccount'] = request.resource_owner_account
|
|
52878
|
+
if not UtilClient.is_unset(request.resource_owner_id):
|
|
52879
|
+
query['ResourceOwnerId'] = request.resource_owner_id
|
|
51134
52880
|
if not UtilClient.is_unset(request.switchover_timeout):
|
|
51135
52881
|
query['SwitchoverTimeout'] = request.switchover_timeout
|
|
51136
52882
|
if not UtilClient.is_unset(request.type):
|
|
@@ -51171,12 +52917,22 @@ class Client(OpenApiClient):
|
|
|
51171
52917
|
"""
|
|
51172
52918
|
UtilClient.validate_model(request)
|
|
51173
52919
|
query = {}
|
|
52920
|
+
if not UtilClient.is_unset(request.client_token):
|
|
52921
|
+
query['ClientToken'] = request.client_token
|
|
51174
52922
|
if not UtilClient.is_unset(request.dbinstance_name):
|
|
51175
52923
|
query['DBInstanceName'] = request.dbinstance_name
|
|
52924
|
+
if not UtilClient.is_unset(request.owner_account):
|
|
52925
|
+
query['OwnerAccount'] = request.owner_account
|
|
51176
52926
|
if not UtilClient.is_unset(request.owner_id):
|
|
51177
52927
|
query['OwnerId'] = request.owner_id
|
|
51178
52928
|
if not UtilClient.is_unset(request.region_id):
|
|
51179
52929
|
query['RegionId'] = request.region_id
|
|
52930
|
+
if not UtilClient.is_unset(request.resource_group_id):
|
|
52931
|
+
query['ResourceGroupId'] = request.resource_group_id
|
|
52932
|
+
if not UtilClient.is_unset(request.resource_owner_account):
|
|
52933
|
+
query['ResourceOwnerAccount'] = request.resource_owner_account
|
|
52934
|
+
if not UtilClient.is_unset(request.resource_owner_id):
|
|
52935
|
+
query['ResourceOwnerId'] = request.resource_owner_id
|
|
51180
52936
|
if not UtilClient.is_unset(request.switchover_timeout):
|
|
51181
52937
|
query['SwitchoverTimeout'] = request.switchover_timeout
|
|
51182
52938
|
if not UtilClient.is_unset(request.type):
|
|
@@ -51238,7 +52994,7 @@ class Client(OpenApiClient):
|
|
|
51238
52994
|
runtime: util_models.RuntimeOptions,
|
|
51239
52995
|
) -> rds_20140815_models.SwitchReplicationLinkResponse:
|
|
51240
52996
|
"""
|
|
51241
|
-
@summary Switches the data synchronization link
|
|
52997
|
+
@summary Switches the data synchronization link from a the primary ApsaraDB RDS for SQL Server instance to a disaster recovery (DR) instance.
|
|
51242
52998
|
|
|
51243
52999
|
@description ### [](#)Supported database engine
|
|
51244
53000
|
SQL Server
|
|
@@ -51282,7 +53038,7 @@ class Client(OpenApiClient):
|
|
|
51282
53038
|
runtime: util_models.RuntimeOptions,
|
|
51283
53039
|
) -> rds_20140815_models.SwitchReplicationLinkResponse:
|
|
51284
53040
|
"""
|
|
51285
|
-
@summary Switches the data synchronization link
|
|
53041
|
+
@summary Switches the data synchronization link from a the primary ApsaraDB RDS for SQL Server instance to a disaster recovery (DR) instance.
|
|
51286
53042
|
|
|
51287
53043
|
@description ### [](#)Supported database engine
|
|
51288
53044
|
SQL Server
|
|
@@ -51325,7 +53081,7 @@ class Client(OpenApiClient):
|
|
|
51325
53081
|
request: rds_20140815_models.SwitchReplicationLinkRequest,
|
|
51326
53082
|
) -> rds_20140815_models.SwitchReplicationLinkResponse:
|
|
51327
53083
|
"""
|
|
51328
|
-
@summary Switches the data synchronization link
|
|
53084
|
+
@summary Switches the data synchronization link from a the primary ApsaraDB RDS for SQL Server instance to a disaster recovery (DR) instance.
|
|
51329
53085
|
|
|
51330
53086
|
@description ### [](#)Supported database engine
|
|
51331
53087
|
SQL Server
|
|
@@ -51341,7 +53097,7 @@ class Client(OpenApiClient):
|
|
|
51341
53097
|
request: rds_20140815_models.SwitchReplicationLinkRequest,
|
|
51342
53098
|
) -> rds_20140815_models.SwitchReplicationLinkResponse:
|
|
51343
53099
|
"""
|
|
51344
|
-
@summary Switches the data synchronization link
|
|
53100
|
+
@summary Switches the data synchronization link from a the primary ApsaraDB RDS for SQL Server instance to a disaster recovery (DR) instance.
|
|
51345
53101
|
|
|
51346
53102
|
@description ### [](#)Supported database engine
|
|
51347
53103
|
SQL Server
|