#[derive(Clone, Copy, Debug, strum::EnumString)]
pub enum Endpoint {
ApSoutheast6,
CnQingdao,
CnBeijing,
CnZhangjiakou,
CnHuhehaote,
CnWulanchabu,
CnHangzhou,
CnShanghai,
CnShenzhen,
CnHeyuan,
CnGuangzhou,
CnChengdu,
CnHongkong,
ApNortheast1,
ApSoutheast1,
ApSoutheast3,
ApSoutheast5,
UsEast1,
UsWest1,
EuWest1,
EuCentral1,
MeEast1,
CnHangzhouFinance,
CnShanghaiFinance1,
CnShenzhenFinance1,
CnBeijingFinance1,
NaSouth1,
}
impl Endpoint {
pub fn name(self) -> &'static str {
match self {
Endpoint::ApSoutheast6 => "ap-southeast-6",
Endpoint::CnQingdao => "cn-qingdao",
Endpoint::CnBeijing => "cn-beijing",
Endpoint::CnZhangjiakou => "cn-zhangjiakou",
Endpoint::CnHuhehaote => "cn-huhehaote",
Endpoint::CnWulanchabu => "cn-wulanchabu",
Endpoint::CnHangzhou => "cn-hangzhou",
Endpoint::CnShanghai => "cn-shanghai",
Endpoint::CnShenzhen => "cn-shenzhen",
Endpoint::CnHeyuan => "cn-heyuan",
Endpoint::CnGuangzhou => "cn-guangzhou",
Endpoint::CnChengdu => "cn-chengdu",
Endpoint::CnHongkong => "cn-hongkong",
Endpoint::ApNortheast1 => "ap-northeast-1",
Endpoint::ApSoutheast1 => "ap-southeast-1",
Endpoint::ApSoutheast3 => "ap-southeast-3",
Endpoint::ApSoutheast5 => "ap-southeast-5",
Endpoint::UsEast1 => "us-east-1",
Endpoint::UsWest1 => "us-west-1",
Endpoint::EuWest1 => "eu-west-1",
Endpoint::EuCentral1 => "eu-central-1",
Endpoint::MeEast1 => "me-east-1",
Endpoint::CnHangzhouFinance => "cn-hangzhou-finance",
Endpoint::CnShanghaiFinance1 => "cn-shanghai-finance-1",
Endpoint::CnShenzhenFinance1 => "cn-shenzhen-finance-1",
Endpoint::CnBeijingFinance1 => "cn-beijing-finance-1",
Endpoint::NaSouth1 => "na-south-1",
}
}
}
impl From<Endpoint> for &'static str {
fn from(ep: Endpoint) -> Self {
match ep {
Endpoint::ApSoutheast6 => "rds.ap-southeast-6.aliyuncs.com",
Endpoint::CnQingdao => "rds.aliyuncs.com",
Endpoint::CnBeijing => "rds.aliyuncs.com",
Endpoint::CnZhangjiakou => "rds.cn-zhangjiakou.aliyuncs.com",
Endpoint::CnHuhehaote => "rds.cn-huhehaote.aliyuncs.com",
Endpoint::CnWulanchabu => "rds.cn-wulanchabu.aliyuncs.com",
Endpoint::CnHangzhou => "rds.aliyuncs.com",
Endpoint::CnShanghai => "rds.aliyuncs.com",
Endpoint::CnShenzhen => "rds.aliyuncs.com",
Endpoint::CnHeyuan => "rds.aliyuncs.com",
Endpoint::CnGuangzhou => "rds.cn-guangzhou.aliyuncs.com",
Endpoint::CnChengdu => "rds.cn-chengdu.aliyuncs.com",
Endpoint::CnHongkong => "rds.aliyuncs.com",
Endpoint::ApNortheast1 => "rds.ap-northeast-1.aliyuncs.com",
Endpoint::ApSoutheast1 => "rds.ap-southeast-1.aliyuncs.com",
Endpoint::ApSoutheast3 => "rds.ap-southeast-3.aliyuncs.com",
Endpoint::ApSoutheast5 => "rds.ap-southeast-5.aliyuncs.com",
Endpoint::UsEast1 => "rds.us-east-1.aliyuncs.com",
Endpoint::UsWest1 => "rds.us-west-1.aliyuncs.com",
Endpoint::EuWest1 => "rds.eu-west-1.aliyuncs.com",
Endpoint::EuCentral1 => "rds.eu-central-1.aliyuncs.com",
Endpoint::MeEast1 => "rds.me-east-1.aliyuncs.com",
Endpoint::CnHangzhouFinance => "rds.aliyuncs.com",
Endpoint::CnShanghaiFinance1 => "rds.aliyuncs.com",
Endpoint::CnShenzhenFinance1 => "rds.cn-shenzhen-finance-1.aliyuncs.com",
Endpoint::CnBeijingFinance1 => "rds.aliyuncs.com",
Endpoint::NaSouth1 => "rds.na-south-1.aliyuncs.com",
}
}
}
mod sealed {
/// prevent Request type used with Connection of other mod.
pub trait Bound {}
}
#[derive(Clone)]
pub struct Connection(crate::common::Connection<crate::auth::Acs3HmacSha256>);
impl Connection {
pub fn new(endpoint: Endpoint, app_key_secret: crate::v3::AccessKeySecret) -> Self {
Self(crate::common::Connection::new(
crate::auth::Acs3HmacSha256(app_key_secret),
"2014-08-15",
endpoint.into(),
))
}
pub fn with_client(
endpoint: Endpoint,
app_key_secret: crate::v3::AccessKeySecret,
client: reqwest::Client,
) -> Self {
Self(crate::common::Connection::with_client(
crate::auth::Acs3HmacSha256(app_key_secret),
"2014-08-15",
endpoint.into(),
client,
))
}
fn call<R: crate::Request + sealed::Bound>(
&self,
req: R,
) -> impl std::future::Future<
Output = crate::Result<<R::ResponseWrap as crate::IntoResponse>::Response>,
> + Send {
self.0.call(req)
}
}
impl Connection {
/// # 变更RDS实例的计费方式
///
/// 该接口用于变更RDS实例的计费方式。
///
/// ### 适用引擎
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
/// - RDS MariaDB
///
/// ### 相关功能文档
/// ><warning>该API操作涉及费用,请仔细阅读相关功能文档后再进行操作。></warning>
///
/// - [RDS MySQL按量付费转包年包月](~~96048~~)、[RDS MySQL包年包月转按量付费](~~161875~~)
/// - [RDS PostgreSQL按量付费转包年包月](~~96743~~)、[RDS PostgreSQL包年包月转按量付费](~~162756~~)
/// - [RDS SQL Server按量付费转包年包月](~~95631~~)、[RDS SQL Server包年包月转按量付费](~~162755~~)
/// - [RDS MariaDB按量付费转包年包月](~~97120~~)、[RDS MariaDB包年包月转按量付费](~~169252~~)
///
/// # Error Codes
/// - `InvalidDBInstanceName.NotFound`: The specified DB instance name does not exist.
/// - `InvalidInstanceUseType.NotSupport`: Specified instanceUseType does not support in RDS.
/// - `InvalidOrderCharge.NotSupport`: The specified order charge does not support in RDS.
/// - `InvalidOrderTask.NotSupport`: The Current InstanceId exist Order Task in RDS.
/// - `IncorrectDBInstanceType`: Current DB instance type does not support this operation.
/// - `IncompleteAccountInfo`: Your information is incomplete. Complete your information before the operation.
/// - `IncompleteTaxInfo`: Your tax information is incomplete. Complete your information before the operation.
/// - `InvalidPaymentMethod.Incomplete`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `InvalidPaymentMethod.Missing`: Your payment method is incomplete. We recommend that you add a payment method.
/// - `InsuffcientBalanceOrBankAccount`: Add a payment method or add funds to the prepayment balance. Get started by creating an instance.
/// - `InvalidPaymentMethod.NoAccess`: No payment method is specified for your account. Please contact your Customer Manager or open a ticket.
/// - `InvalidPaymentMethod.InsufficientBalance`: No payment method is specified for your account. We recommend that you add a payment method or add funds to the prepayment balance.
/// - `OrderTaskAlreadyExists`: Order task already exists.
/// - `InvalidOldInstanceType.NotSupport`: Specified oldInstanceType does not support in RDS.
/// - `OperationDenied.TimeLimit`: The interval between the two conversion operations must be greater than 15 minutes.
/// - `InvalidDBInstanceId.Malformed`: The specified parameter DBInstanceId is not valid.
/// - `InvalidPayType.Malformed`: The specified parameter PayType is not valid.
/// - `InvalidResource.Format`: The specified parameter Resource is not valid.
/// - `InvalidPayType.Format`: The specified parameter PayType is not valid.
/// - `InvalidUsedTime.Format`: The specified parameter UsedTime is not valid.
/// - `InvalidPeriod.Format`: The specified parameter Period is not valid.
/// - `InvalidPeriodOrUsedTime.Format`: The specified parameter Period and UsedTime are not valid.
/// - `InvalidDiscountCoupon.Malformed`: The specified discount coupon is not valid.
/// - `InsufficientQuota.NoEnough`: Your current quota is insufficient. Please contact your channel partner to increase your quota.
/// - `SYSTEM.ILLEGALARGUMENT`: The current instance does not have a valid configuration when change the payType from Prepaid to Postpaid.
/// - `AccountMoneyValidate.error`: Insufficient funds available in the account.
/// - `ContainForbiddenLabel.error`: There is a label that prohibits placing an order, and the order cannot be placed.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `InvalidParam.PREPAY`: The prepaid instance purchase limit has been exceeded, and changing the payment method to prepaid is not allowed.
/// - `InvalidParam.POSTPAY`: It is not allowed to switch the payment method to postpaid after exceeding the purchase time limit for postpaid instances.
/// - `Order.InstHasUnsettledBills`: You currently have outstanding bills, please settle them first.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OperationDenied.LockMode`: The operation is not permitted when the instance locked.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn transform_db_instance_pay_type(
&self,
req: TransformDBInstancePayType,
) -> impl std::future::Future<Output = crate::Result<TransformDBInstancePayTypeResponse>> + Send
{
self.call(req)
}
/// # 按量付费实例转包年包月
///
/// 将按量付费的数据库实例变更为包年包月计费模式。
///
/// ### 适用引擎
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
/// - RDS MariaDB
///
/// ### 相关功能文档
/// ><warning>该API操作涉及费用变更,转换后立即按包年包月计费。建议提前完成费用测算,并仔细阅读相关功能文档后再进行操作。></warning>
///
/// - [RDS MySQL按量付费转包年包月](~~96048~~)
/// - [RDS PostgreSQL按量付费转包年包月](~~96743~~)
/// - [RDS SQL Server按量付费转包年包月](~~95631~~)
/// - [RDS MariaDB按量付费转包年包月](~~97120~~)
///
/// # Error Codes
/// - `IncompleteAccountInfo`: Your information is incomplete. Complete your information before the operation.
/// - `IncompleteTaxInfo`: Your tax information is incomplete. Complete your information before the operation.
/// - `InvalidPaymentMethod.Incomplete`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `InvalidPaymentMethod.Missing`: Your payment method is incomplete. We recommend that you add a payment method.
/// - `InsuffcientBalanceOrBankAccount`: Add a payment method or add funds to the prepayment balance. Get started by creating an instance.
/// - `InvalidPaymentMethod.NoAccess`: No payment method is specified for your account. Please contact your Customer Manager or open a ticket.
/// - `InvalidPaymentMethod.InsufficientBalance`: No payment method is specified for your account. We recommend that you add a payment method or add funds to the prepayment balance.
/// - `OrderTaskAlreadyExists`: Order task already exists.
/// - `ReadOnlyInstanceNotSupport`: Specified ReadOnly Instance not support this operation.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `InvalidParam.POSTPAY`: It is not allowed to switch the payment method to postpaid after exceeding the purchase time limit for postpaid instances.
/// - `InvalidParam.PREPAY`: The prepaid instance purchase limit has been exceeded, and changing the payment method to prepaid is not allowed.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn modify_db_instance_pay_type(
&self,
req: ModifyDBInstancePayType,
) -> impl std::future::Future<Output = crate::Result<ModifyDBInstancePayTypeResponse>> + Send
{
self.call(req)
}
/// # 修改RDS实例的自动续费设置
///
/// 修改云数据库RDS实例的自动续费配置。
///
/// ### 适用引擎
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
/// - RDS MariaDB
///
/// ### 相关功能文档
/// ><warning>该API操作涉及费用,请仔细阅读相关功能文档后再进行操作。></warning>
///
/// - [RDS MySQL自动续费](~~96049~~)
/// - [RDS PostgreSQL自动续费](~~96740~~)
/// - [RDS SQL Server自动续费](~~95635~~)
/// - [RDS MariaDB自动续费](~~97121~~)
///
/// # Error Codes
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn modify_instance_auto_renewal_attribute(
&self,
req: ModifyInstanceAutoRenewalAttribute,
) -> impl std::future::Future<Output = crate::Result<ModifyInstanceAutoRenewalAttributeResponse>>
+ Send {
self.call(req)
}
/// # 查询实例的价格
///
/// 该接口用于查询RDS实例的价格信息。
///
/// ### 适用引擎
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
/// - RDS MariaDB
///
/// # Error Codes
/// - `DBInstanceStorageFormatFault`: DBInstanceStorageFormatFault
/// - `InvalidDBInstanceStorage.Format`: InvalidDBInstanceStorage.Format
/// - `DBNodeParameter.InvalidClassCode`: The ClassCode of the item of the specified parameter DBNode is inconsistent.
/// - `Price.WanHuaTong.sys`: Inquiry error.
/// - `SYSTEM.SaleValidateFailed`: The request not refer to the correct order period. please check your Period or UsedTime param.
/// - `Price.HsfTimeoutError`: Inquiry error.
/// - `Rule.HsfTimeoutError`: Request rule service error.
/// - `InvalidDBInstanceClassNotFound`: Specified DB instance class is not found.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `DBNodeFormatFault`: The specified parameter DBNode is malformed
/// - `DBNodeParameter.Required`: The DBNode parameter is required for RDS for MySQL Cluster Edition instances.
/// - `DBNodeParameter.TooFewItems`: You must configure at least 2 nodes in the DBNode parameter value for RDS for MySQL Cluster Edition instances.
/// - `DBNodeParameter.TooManyItems`: You can configure up to 9 nodes in the DBNode parameter value for RDS for MySQL Cluster Edition instances.
/// - `CASH.BOOK.INSUFFICIENT`: No payment method is specified for your account. We recommend that you add a payment method or maitain a minimum prepayment balance of INR 1000.
/// - `RegionDissolvedInduEOFS`: Alibaba Cloud plans to optimize and adjust the region in India. Cloud services in this region will stop operating. you are currently unable to operate new purchase, renewal, and configuration change orders.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidTimeType.NotFound`: The parameter timeType does not exist.
/// - `canNotFindSubscription`: Subscription information not found.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn describe_price(
&self,
req: DescribePrice,
) -> impl std::future::Future<Output = crate::Result<DescribePriceResponse>> + Send {
self.call(req)
}
/// # 查询RDS实例续费的费用
///
/// 该接口用于查询包年包月RDS实例续费的费用。
///
/// ### 适用引擎
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
/// - RDS MariaDB
///
/// # Error Codes
/// - `SYSTEM.SaleValidateFailed`: The request not refer to the correct order period. please check your Period or UsedTime param.
/// - `OrdQueryAccountError`: Error calling account service.
/// - `Price.WanHuaTong.sys`: Inquiry error.
/// - `DBNodeParameter.Required`: The specified parameter DBNode is required.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `canNotFindSubscription`: Subscription information not found.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn describe_renewal_price(
&self,
req: DescribeRenewalPrice,
) -> impl std::future::Future<Output = crate::Result<DescribeRenewalPriceResponse>> + Send {
self.call(req)
}
/// # 查询RDS实例自动续费情况
///
/// 该接口用于查询RDS实例自动续费情况。
///
/// ### 适用引擎
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
/// - RDS MariaDB
///
/// # Error Codes
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn describe_instance_auto_renewal_attribute(
&self,
req: DescribeInstanceAutoRenewalAttribute,
) -> impl std::future::Future<
Output = crate::Result<DescribeInstanceAutoRenewalAttributeResponse>,
> + Send {
self.call(req)
}
/// # 手动续费RDS实例
///
/// 为包年包月RDS实例手动续费。
///
/// ### 适用引擎
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
/// - RDS MariaDB
///
/// ### 相关功能文档
/// ><warning>该API操作涉及费用,请仔细阅读相关功能文档后再进行操作。></warning>
///
/// - [RDS MySQL手动续费](~~96050~~)
/// - [RDS PostgreSQL手动续费](~~96741~~)
/// - [RDS SQL Server手动续费](~~95637~~)
/// - [RDS MariaDB手动续费](~~97122~~)
///
/// # Error Codes
/// - `InvalidConcurrentOperate`: Concurrent operation is detected.
/// - `ArrearageOrderExists`: Your account has an outstanding balance.
/// - `OperationDenied.MultiRegions`: Specified operation dose not support multiple regions.
/// - `RegionEndTimeDissolvedIndia`: Cloud services in the India (Mumbai) region will be discontinued. Set the validity date to July 15, 2024 or earlier than July 15, 2024.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `InvalidParam.UsedTime`: The renewal expiration date cannot exceed:%s.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `StopService.Renew`: The service has been discontinued and renewal operations for instances on the classic network are no longer allowed.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidOrderCharge.NotSupport`: The specified order charge does not support in RDS.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn renew_instance(
&self,
req: RenewInstance,
) -> impl std::future::Future<Output = crate::Result<RenewInstanceResponse>> + Send {
self.call(req)
}
/// # 查询实例命中的促销活动(停止维护)
///
/// 该接口已停止维护:可以正常调用,但不再维护。
///
/// 该接口已停止维护:**接口仍可以正常调用,但阿里云不再维护该接口**。
///
/// # Error Codes
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
#[deprecated]
pub fn describe_db_instance_promote_activity(
&self,
req: DescribeDBInstancePromoteActivity,
) -> impl std::future::Future<Output = crate::Result<DescribeDBInstancePromoteActivityResponse>> + Send
{
self.call(req)
}
/// # 创建RDS实例
///
/// 该接口用于创建RDS实例。
///
/// ### 适用引擎
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
/// - RDS MariaDB
///
/// ### 相关功能文档
/// ><warning>该API操作涉及费用,请仔细阅读相关功能文档后再进行操作。
/// 调用API时,如有报错信息,可以通过搜索错误信息,查看报错原因。></warning>
///
/// - [创建RDS MySQL实例](~~148036~~)
/// - [创建RDS MySQL Serverless实例](~~412231~~)
/// - [创建RDS PostgreSQL实例](~~148038~~)
/// - [创建RDS PostgreSQL Serverless实例](~~607753~~)
/// - [创建Babelfish for RDS PostgreSQL实例](~~428615~~)
/// - [创建RDS SQL Server实例](~~148037~~)
/// - [创建RDS SQL Server Serverless实例](~~603465~~)
/// - [创建RDS MariaDB实例](~~148040~~)
///
/// # Error Codes
/// - `Invalid.ParamGroupDBVersion`: %s.%s
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `RR309`: We have detected a security risk with your payment method. Please proceed with verification via the link in your email or console message and re-submit your order after verification.
/// - `InvalidZoneId.NotSupported`: The Specified vpc Zone not supported.
/// - `InvalidZone.NotSupportedForStorageType`: The specified zone is closed or invalid for Specified DBInstanceStorageType.
/// - `InvalidNetworkTypeClassicWhenCloudStorage`: The Specified InstanceNetworkType value Classic is not valid when choose cloud storage type.
/// - `InvalidZone.NotSupported`: The Specified Zone not supported.
/// - `InvalidEssdStorageSize`: invalid cloud essd storage size.
/// - `InvalidParameter`: Some Reuquest Parameters Is Invalid. Check or Try It Again Later.
/// - `Pay.AmountLimitExceeded`: Pay amount limit exceeded.
/// - `IncompleteAccountInfo`: Your information is incomplete. Complete your information before the operation.
/// - `IncompleteTaxInfo`: Your tax information is incomplete. Complete your information before the operation.
/// - `InvalidPaymentMethod.Incomplete`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `InvalidPaymentMethod.Missing`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `InsuffcientBalanceOrBankAccount`: Add a payment method or add funds to the prepayment balance. Get started by creating an instance.
/// - `InvalidPaymentMethod.NoAccess`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `InvalidPaymentMethod.InsufficientBalance`: No payment method is specified for your account. We recommend that you add a payment method or add funds to the prepayment balance.
/// - `Pay.LowFunds`: The balance of the advance payment is insufficient or there is no balance of the advance payment.
/// - `Pay.ChargeChannelNotFound`: Failure to obtain the first external payment channel if the advance balance is insufficient.
/// - `VswitchIpExhausted`: Vswitch IP exhausted.
/// - `InvalidPrivateIpAddress.AlreadyUsed`: The specified IP is already used.
/// - `InvalidEcsImage.NotFound`: Sepcified ecs image does not exist
/// - `InvalidMinorVersion.NotFound`: Sepcified minor version does not exists.
/// - `InvalidConcurrentOperate`: Concurrent operation is detected.
/// - `ZoneId.NotMatchWithCategory`: The number of ZoneId specified does not match with category.
/// - `InvalidSecurityIPList.Format`: The specified parameter securityIPList is not valid.
/// - `InvalidDBParamGroupId.Format`: The specified parameter dbParamGroupId is not valid.
/// - `InvalidTargetMinorVersion.Format`: The specified parameter targetMinorVersion is not valid.
/// - `InvalidDedicatedHostGroupId.Format`: The specified parameter dedicatedHostGroupId is not valid.
/// - `InvalidDBInstanceClass.Malformed`: The specified parameter DBInstanceClass is not valid.
/// - `InvalidEngineVersion.Malformed`: The specified parameter EngineVersion is not valid.
/// - `CreditPayInsufficientBalance`: Insufficient credit pay limit. Please contact your channel partner to increase the limit.
/// - `InvalidTagKey.Malformed`: The Tag.N.Key parameter is empty.
/// - `InvalidTagValue.Malformed`: The Tag.N.Value parameter is empty.
/// - `Duplicate.TagKey`: The Tag.N.Key contains duplicate keys.
/// - `NumberExceed.Tags`: The maximum number of Tags is exceeded. The maximum is 20.
/// - `MissingParameter.ResourceIds`: The parameter ResourceIds.N must not be null.
/// - `InvalidParameter.TagKey`: The Tag.N.Key parameter is invalid.
/// - `InvalidParameter.TagValue`: The Tag.N.Value parameter is invalid.
/// - `NoPermission.SystemTag`: You have no permission to use system tags.
/// - `InvalidParam.Amount`: Amount is allowed from 1 to 20.
/// - `InvalidParam.CreateStrategy`: Only Atomicity and Partial are allowed.
/// - `InvalidParam.Engine`: Only MySQL is allowed when Amount > 1.
/// - `InvalidMultiZoneInfoList`: The Specified Zone Info List is Invaild.
/// - `InvalidKmsConfigStatus`: The Kms Service Config is Invalid.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the Aliyun RDS.
/// - `InvalidPort.Malformed`: Specified port is not valid.
/// - `InvalidUsedTime`: UsedTime can not Less than or equal to zero.
/// - `Kms.Unauthorized`: KMS has not been authorized.
/// - `InvalidDBInstanceClass.Offline`: The specified instance type is no longer provided. Please specify another instance type.
/// - `SystemParamGroupCode.Format`: Specific DBParamGroupId is not valid.
/// - `InvalidDBInstanceName.Duplicate`: Specified DB instance name already exists in the Aliyun RDS.
/// - `ServiceLinkedRole.NotExist`: Service linked role for RDS PostgreSQL not exist.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `RegionEndTimeDissolvedIndia`: Cloud services in the India (Mumbai) region will be discontinued. Set the validity date to July 15, 2024 or earlier than July 15, 2024.
/// - `InvalidPrivateIpAddress.Format`: The specified private IP address format is incorrect.
/// - `InvalidPrivateIpAddress.Mismatch`: Specified private IP address is not in the CIDR block of virtual switch.
/// - `TooManyWhitelistTemplateIds`: create dbinstance can support attach to up to 10 whitelist templates.
/// - `UnsupportExtendDisk.NotSupport`: Specified DB instance is unsupport extend disk.
/// - `InvalidWhitelistTemplateId`: the template id list is invalid.
/// - `InvalidRequestId`: The request is copy, check your token.
/// - `InvalidParameter.MinCapacity`: The specified parameter 'MinCapacity' is not valid.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidParameter.NotSupportDBInstanceStorageType`: Parameter DBInstanceStorageType is invalid.
/// - `InvalidParam.InstanceNetworkType`: Creation of classic network instances is not supported.
/// - `InvalidOrder.NotFound`: Specified order does not exist in RDS.
/// - `InvalidVSwitchId.Format`: The specified vswitch Id format is incorrect.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `IncorrectTargetCategory`: Current target category does not support this operation.
/// - `PurchaseDurationInsufficient`: The purchase duration does not meet the requirements, please choose again.
/// - `NotFound.ParamGroupId`: Current ParamGroupId not found.
/// - `InvalidParamForXfs`: Xfs instance must be single tenant standard instance.
/// - `UnsupportedColdData`: Current coldDataEnabled parameter can not support.
/// - `AtLeastThreeVSwitchAvailableIp`: The primary vswitch requires at least three available IP addresses.
/// - `AtLeastTwoVSwitchAvailableIp`: The primary vswitch requires at least two available IP addresses.
/// - `DuckDBOperationConflictBetweenPrimaryAndReadOnlyInstance`: Current instance is already attached to another duckdb instance, operation is conflict.
/// - `CannotDecreaseEssdPerfLevel`: cannot decrease cloud essd performance level.
/// - `ByokRoleArnNotFound`: The roleArn can not be null.
/// - `RISK.RISK_CONTROL_REJECTION`: Risk control rejection.
/// - `AliCroup2CloudUserCannotBuyNotInnerCommodity`: There is no group cloud commodity label, and users within the group are not allowed to purchase.
/// - `GroupReplicationNotSupport.InvalidEngineVersion`: Group Replication requires the instance engine version to be 8.0.
/// - `GroupReplicationNotSupport.InvalidNodeClassCode`: Group Replication requires the ClassCode of each node to be consistent.
/// - `GroupReplicationNotSupport.InvalidNodeNum`: Group Replication is not supported, the number of nodes must be an odd number greater than or equal to 3.
/// - `GroupReplicationNotSupport.InvalidXengine`: Group Replication is not supported because the instance has xengine tables.
/// - `GroupReplicationNotSupport.MemoryTooSmall`: Group Replication is not supported because the memory is too small.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `CloudDiskEncryptionNotSupport`: The encryption key is not allowed for general-purpose instance.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `BasicCategoryNotSupport`: The Basic category is not supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `IncorrectCharacterType`: Current DB instance character type does not support this operation.
/// - `InsufficientResourceCapacity`: The target availability zone does not have sufficient resources.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn create_db_instance(
&self,
req: CreateDBInstance,
) -> impl std::future::Future<Output = crate::Result<CreateDBInstanceResponse>> + Send {
self.call(req)
}
/// # 回收站重建实例
///
/// 该接口用于重建已进入回收站的实例。
///
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
/// - RDS MariaDB
///
/// ### 相关功能文档
/// ><warning>该API操作涉及费用,请仔细阅读相关功能文档后再进行操作。></warning>
///
/// - [RDS MySQL回收站重建实例](~~96065~~)
/// - [RDS PostgreSQL回收站重建实例](~~96752~~)
/// - [RDS SQL Server回收站重建实例](~~95669~~)
/// - [RDS MariaDB回收站重建实例](~~97131~~)
///
/// # Error Codes
/// - `RR309`: We have detected a security risk with your payment method. Please proceed with verification via the link in your email or console message and re-submit your order after verification.
/// - `GeneralIns.Creating`: The general instance is creating.
/// - `InvalidZone.NotSupportedForStorageType`: The specified zone is closed or invalid for Specified DBInstanceStorageType.
/// - `GeneralIns.Maintaining`: The general instance is maintaining.
/// - `GeneralIns.Switching`: The general instance is Switching.
/// - `InvalidEngine.VauleNotSupported`: The specified parameter "Engine" is not valid.
/// - `InvalidEngineVersion.ValueNotSupported`: The specified parameter "EngineVersion" is not valid.
/// - `InvalidDBinstanceClass.ValueNotSupported`: The specified parameter DBinstanceClass is invalid.
/// - `InvalidDBInstanceStorage.ValueNotSupported`: The specified parameter "DBInstanceStorage" is not valid.
/// - `InvalidDBInstanceDescription.Malformed`: The specified parameter "DBInstanceDescription" is not valid.
/// - `InvalidSecurityIPList.Duplicate`: Specified security IP list is not valid: Duplicate IP address in the list
/// - `InvalidSecurityIPListLength.Malformed`: The quota of security ip exceeds.
/// - `DefaultVpc.NotSupport`: The default vpc create is not support.
/// - `Forbidden.RegionNotFound`: The provided RegionId does not exist in our record.
/// - `InvalidVpcIdOrVswitchId.NotSupported`: The specified vpcId or vSwitchId is not supported.
/// - `InvalidVpcId.NotSupported`: The specified vpcId or vSwitchId is not supported.
/// - `InvalidZoneId.NotSupported`: The Specified vpc Zone not supported.
/// - `VswitchIpExhausted`: No available ip in the specified vswitch.
/// - `InvalidGeneralGroupName.Malformed`: The specified parameter GeneralGroupName is not valid.
/// - `AccountBasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `IncorrecttVpcId`: The specified parameter VPCId is not valid.
/// - `OperationDenied.DBInstanceStatus`: Operation is denied by the current database instance status.
/// - `InvalidDBInstanceClass.Offline`: The specified instance type is no longer provided. Please specify another instance type.
/// - `ZoneId.NotMatchWithCategory`: The number of available zones does not match the database engine or instance edition. Please reset it.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `InvalidParam.InstanceNetworkType`: Creation of classic network instances is not supported.
/// - `ClassicNetworkType.NotSupport`: The Classic instance network create is not support.
/// - `InvalidEngineVersionInRegion.NotAvailable`: The EngineVersion in the Region is not available.
/// - `OperationDenied`: The specified request is out of resources.
/// - `QuotaExceeded.CreateInstance`: The quota of create instance exceeds.
/// - `Forbidden.Authentication`: The operation is forbidden by Aliyun Realname Authentication System.
/// - `INST_HAS_UNPAID_ORDER`: The instanceId has unpaid order.
/// - `COMMODITY.FAILED`: The commodity is error.
/// - `MoneyLessThan100`: The Account Monet less Than 100.
/// - `OperationDenied.ClassicNetworkType`: The operation is not permitted due to status of instance.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidDBInstanceId.NotFound`: Invalid DBInstanceId NotFound.
/// - `CreateOrder.Failed`: Create Order Failed.
/// - `InvalidRegionId.NotFound`: The provided RegionId does not exist in our records.
/// - `QueryPrice.Failed`: QueryPrice Failed.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn create_db_instance_for_rebuild(
&self,
req: CreateDBInstanceForRebuild,
) -> impl std::future::Future<Output = crate::Result<CreateDBInstanceForRebuildResponse>> + Send
{
self.call(req)
}
/// # 释放RDS实例
///
/// 该接口用于释放RDS实例。
///
/// ### 适用引擎
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
/// - RDS MariaDB
///
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
///
/// - [释放RDS MySQL实例](~~96057~~)
/// - [释放RDS PostgreSQL实例](~~96749~~)
/// - [释放RDS SQL Server实例](~~95662~~)
/// - [释放RDS MariaDB实例](~~97128~~)
///
/// # Error Codes
/// - `EngineMigration.ActionDisabled`: Specified action is disabled while custins is in engine migration.
/// - `OperationDenied.DeletionProtection`: The operation is not permitted when the instance enabled deletion protection.
/// - `GuardInstance.ReleaseFail`: The guard instance release fail.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `MasterInstanceNotExist`: master instance not exist.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `BackupPropertyNotFound`: Backup policy not found
/// - `OperationDenied.PrePayTypeNotSupported`: The operation is not permitted due to pay type of instance.
/// - `IncorrectDBInstanceState`: Current DB instance state does not support this operation.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `UnsupportedByBlueGreenDeployment`: Operation prohibited due to blue green deployment.
/// - `InvalidDBInstanceName.NotFound`: Invalid DBInstanceId NotFound.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn delete_db_instance(
&self,
req: DeleteDBInstance,
) -> impl std::future::Future<Output = crate::Result<DeleteDBInstanceResponse>> + Send {
self.call(req)
}
/// # 重启RDS实例
///
/// 该接口用于手动重启RDS实例。
///
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
/// - RDS MariaDB
///
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
///
/// - [RDS MySQL重启实例](~~96051~~)
/// - [RDS PostgreSQL重启实例](~~96798~~)
/// - [RDS SQL Server重启实例](~~95656~~)
/// - [RDS MariaDB重启实例](~~97472~~)
///
/// # Error Codes
/// - `GeneralIns.Creating`: The general instance is creating.
/// - `GeneralIns.Maintaining`: The general instance is maintaining.
/// - `GeneralIns.Switching`: The general instance is Switching.
/// - `InvalidDBInstanceStatus.NotSupport`: The Specified instance status is not supported to restart instance.
/// - `InvalidEffectiveTime.SpecialTimeIsNull`: SpecialTime is not valid.
/// - `IncorrectDBInstanceLockMode.ValueNotSupported`: The Current DB instance lock mode does not support this operation.
/// - `InvalidDBInstanceName.Format`: Specified DB instance name is not valid.
/// - `MGRMasterNodeRestart.Unsupported`: Specific primary node is not supported to restart in MGR instance.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `IncorrectRestartMethod`: The specified RestartMethod params is not valid.
/// - `IncorrectEffectiveTime`: The specified EffectiveTime params is not valid.
/// - `IncorrectDBInstanceType`: Current DB instance type does not support this operation.
/// - `IncorrectDBInstanceState`: Current DB instance state does not support this operation.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `IncorrectDBInstanceCharacterType`: Current DB Instance character_type does not support this operation.
/// - `InvalidRestartPolicy.Format`: Specified Restart Policy is not valid.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidDBInstanceName.NotFound`: The database instance does not exist.
/// - `InvalidDBInstance.NotFound`: The specified instance does not exist or is not supported.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `InvalidNodeId.NotFound`: The target node does not exist in the current instance.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn restart_db_instance(
&self,
req: RestartDBInstance,
) -> impl std::future::Future<Output = crate::Result<RestartDBInstanceResponse>> + Send {
self.call(req)
}
/// # 暂停RDS实例
///
/// 该接口用于暂停RDS实例。
///
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
///
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
///
/// <props="china">
///
/// - [RDS MySQL暂停实例](~~427093~~)
/// - [RDS PostgreSQL暂停实例](~~452314~~)
/// - [RDS SQL Server暂停实例](~~462504~~)
///
/// </props>
///
/// <props="intl">
///
/// [RDS SQL Server暂停实例](~~462504~~)
///
/// </props>
///
/// # Error Codes
/// - `InvalidStatus.Format`: Specified Status is not valid
/// - `EngineNotSupported`: The engine does not support the operation.
/// - `ReadOnlyInstanceNotSupport`: Specified ReadOnly Instance not support this operation.
/// - `InvalidShareInstance.NotSupport`: The share dbInstance is not support.
/// - `ReadonlyInstanceNotSupport`: The operation is not permitted due to type of the instance.
/// - `InstanceHasReadOnlyInstanceNotSupportStop`: The instance has read-only instance , stop is not supported
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn stop_db_instance(
&self,
req: StopDBInstance,
) -> impl std::future::Future<Output = crate::Result<StopDBInstanceResponse>> + Send {
self.call(req)
}
/// # 启动RDS实例
///
/// 该接口用于启动暂停的RDS实例。
///
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
///
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
///
/// <props="china">
///
/// - [RDS MySQL启动实例](~~427093~~)
/// - [RDS PostgreSQL启动实例](~~452314~~)
/// - [RDS SQL Server启动实例](~~462504~~)
///
/// </props>
///
///
/// <props="intl">
///
/// [RDS SQL Server启动实例](~~462504~~)
///
/// </props>
///
/// # Error Codes
/// - `InvalidStatus.Format`: Specified Status is not valid
/// - `UnsupportExtendDisk.NotSupport`: Specified DB instance is unsupport extend disk.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn start_db_instance(
&self,
req: StartDBInstance,
) -> impl std::future::Future<Output = crate::Result<StartDBInstanceResponse>> + Send {
self.call(req)
}
/// # 变更RDS实例
///
/// 该接口用于变更RDS实例的规格和存储空间等。
///
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
/// - RDS MariaDB
///
/// ### 计费说明
/// 本API操作涉及[变配费用](~~57178~~),请仔细阅读相关功能文档后再进行操作。
///
/// ### 相关功能文档
///
/// - [RDS MySQL变更配置](~~96061~~)
/// - [RDS PostgreSQL变更配置](~~96750~~)
/// - [RDS SQL Server变更配置](~~95665~~)
/// - [RDS MariaDB变更配置](~~97129~~)
///
/// # Error Codes
/// - `UnsupportedReduceDiskSize`: %s%s
/// - `CannotDecreaseEssdPerfLevel`: cannot decrease cloud essd performance level.
/// - `InvalidEssdStorageSize`: invalid cloud essd storage size.
/// - `Postpaid.NotSupport`: Postpaid not supported.
/// - `InvalidConcurrentOperate`: System concurrent operate.
/// - `NotSupportReduceDiskSize`: Not support reduce disk size.
/// - `IncorrectStorageType`: Incorrect storage type.
/// - `TargetStorageLessThanBottomLine`: Target storage less than bottom line
/// - `InstanceHasUnpaidOrder`: The specified Instance has unpaid order.
/// - `InsufficientBalance`: Open volume paid cloud database. Your account balance is less than 100 RMB. Top-up and try again.
/// - `InvalidDBInstanceClass.NotFound`: Specified DB instance class is not found.
/// - `InvalidParameter`: The specified parameter "%s" is not valid.
/// - `InvalidAvZone.Format`: Specified AvZone is not valid.
/// - `OperationDenied.OrderUnPaid`: The operation is not permitted due to the wrong Order status (Unpaid).
/// - `OperationDenied.InvalidStorageSize`: The storage size limit is exceeded.
/// - `InsufficientResourceCapacity`: The instance cluster does not support this operation.
/// - `InvalidUsedTime`: The parameter usedTime is invalid.
/// - `CannotChangeStorageType`: Temp upgrade does not support changing storage type.
/// - `TempUpgrade.NotSupport`: The instance does not support temp upgrade.
/// - `EngineNotSupported`: Engine specified cannot be supported the operation.
/// - `MaxscaleNotSupport`: Maxscale not supported
/// - `ADInstanceNotSupportThisOperation`: The AD instance is not supported this operation
/// - `BYOKInstanceNotSupportThisOperation`: The BYOK instance is not supported this operation
/// - `BYOLInstanceNotSupportThisOperation`: The BYOL instance is not supported this operation
/// - `SSLInstanceNotSupportThisOperation`: The instance opened SSL, upgrade is not this operation
/// - `TDEInstanceNotSupportThisOperation`: The instance opened TDE, this operation is not supported
/// - `InstanceIsSnapshotBackupNotSupportThisOperation`: The instance backup method is snapshot backup, this operation is not supported
/// - `InstanceHasReadOnlyInstanceNotSupportThisOperation`: The instance has read-only instance or is read-only instance, this operation is not supported
/// - `InvalidTargetStorageType`: Can not change storage type when modify instance class or storage.
/// - `InvalidTargetCategory`: Specified classcode is not matched with current product type.
/// - `IncorrectDBInstanceState`: Current DB instance state does not support this operation.
/// - `BackupReadInstanceModifyNotAllowed`: Modify Backup Read Instance Is Not Allowed.
/// - `MinorVersionNotSupport`: The current database minor version does not support the operation.
/// - `LX.ARGUMENT.ILLEGAL`: 变配,当前实例无有效配置
/// - `ORD.S.QUERY.PROD.ERROR`: An error occurred while querying the ordering information
/// - `InvalidParameter.NotSupportDiskTypeModify`: Serverless not support modify disk type!
/// - `InvalidParameter.NotSupportModifyServerlessConfigAndDiskTogether`: Serverless not support modify serverlessconfig and disk together!
/// - `InvalidParameters.Malformed`: One or more of the request parameters provided are not valid.
/// - `DBInstancePayTypeNotSupport`: Current instance PayType not support this operation or the param PayType not match current instance PayType.
/// - `InvalidDBInstanceClass.Offline`: The specified instance type is no longer provided. Please specify another instance type.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidPayType.NotSupported`: current instance pay type not support this operation.
/// - `OperationDenied.DurationLimit`: The duration between two operations should be greater than specified time.
/// - `AccountMoneyValidate.error`: Insufficient funds available in the account.
/// - `ChangeEngineVersionNotSupported`: This operation does not support modifying the engine version.
/// - `InvalidDBInstanceStorageType`: The specified DBInstanceStorageType is invalid.
/// - `EncryptionInstancesNotSupport`: Cloud disk encryption instances that use byok do not support modify to multi tenant.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `CurrentInsHasColdDB`: The current instance has cold storage db.
/// - `CurrentInsHasColdStorage`: Current instance has cold storage.
/// - `InsufficientResourceCapacityCheck`: There is insufficient capacity available for the requested instance with precheck.
/// - `InvalidStorageSize.Direction`: The specified parameter StorageSize does not meet the updating direction constraint requirements.
/// - `InvalidStorageType.Direction`: The specified parameter StorageType does not meet the updating direction constraint requirements.
/// - `EngineNotSupportShrinkStorage`: The current engine does not support shrinking storage space.
/// - `InvalidSourceCategory`: specified source category is invalid.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidRCUValue`: scaleMin and scaleMax range is not valid.
/// - `ServiceLinkedRole.NotExist`: SLR does not exist, you needs to create SLR first.
/// - `ParamGroupOptionValue.NotSupport`: Specified option value unsupported.
/// - `CreateUpgradeOrderBusinessException`: The parameter is illegal or empty.
/// - `InvalidReadDBInstanceStorage.Format`: Specified Storage is not valid, Read DB Instance storage size must be greater than or equal to primary DB Instance.
/// - `UnsupportedModifyParam`: Burst param must be only modified.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidRequestId`: The request is copy, check your token.
/// - `UnsupportExtendDisk.NotSupport`: Specified DB instance is unsupport extend disk.
/// - `Order.InstHasUnsettledBills`: You currently have outstanding bills, please settle them first.
/// - `CheckAllowMajorVersionUpgradeFailed`: We have detected that you want to upgrade the version of the instance, but the parameter allowMajorVersionUpgrade is false. If you want to upgrade the version of the instance, please set the parameter allowMajorVersionUpgrade to true.
/// - `IncorrectDBSslStatus`: Specified DB SSLStatus does not support this operation.
/// - `UpgradeEngineVersionCannotChangeStorage`: Upgrade engine version can not change storage size.
/// - `ReadOnlyInsNotSupported`: Instances containing read-only instances do not allow this operation.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `InvalidDBInstanceClass.NotSupport`: The target primary db instance class can not lower than the original primary db instance class.
/// - `InvalidPayType.NotSame`: All primary and read-only instances should have the same payment type.
/// - `InvalidReadOnlyDBInstanceClass.NotSupport`: The target read-only db instance class can not lower than the original read-only db instance class.
/// - `InvalidStorageSize.CannotChange`: Can not change storage size in this operation. If you need to change disk type, please change storage size first, and the storage size must meet your target disk type's constraint requirements.
/// - `InvalidStorageSize.ConstraintUnsatisfied`: The db instance's storage size dose not meet the constraint requirements of the parameter DBInstanceStorageType. If you still want to change disk type, please change storage size to meet the target disk type's constraint in other operation.
/// - `ReadonlyDBInstanceClassEmpty`: The read-only target instance class should not be empty.
/// - `ReadonlyDBInstanceClassNotSame`: All readonly db instances should have the same instance class.
/// - `StopService.ModifyDBInstanceSpec`: The service has been discontinued and does not permit resizing operations on instances using the classic network.
/// - `InvalidParam.DiskSize`: %s.
/// - `InvalidOrder.NotFound`: Specified order does not exist in RDS.
/// - `NotFindAvailableVswitch`: Secondary zone, no available switch found under the current vpc.
/// - `InvalidStorageType.NotSupport`: The current storage type does not support this operation.
/// - `IncorrectReadDBInstanceMemSize`: The instance type of read-only instance is too small.
/// - `DBInstanceNotServerless`: The dbinstance is not serverless.
/// - `UnSupportDbTypeReduceDiskSize`: The current instance does not support scale-in.
/// - `ClassicNetDisabled`: The classic network address is currently disabled, and the instance cannot perform configuration changes.
/// - `SecondaryAddrNotSupportThisOperation`: The instance has a secondary instance address, so updates are not allowed.
/// - `IncorrectDBInstanceType`: The database instance type does not support the operation.
/// - `OperationDenied.NotSupportedBackupMethod`: When the storage is larger than 4000 GB, only snapshot backup is supported.
/// - `IncorrectReadDBInstanceDisksize`: Read instance disk size must be equal or higher than primary instance.
/// - `BetaServerlessNotSupportThisAction`: Beta Serverless Not Support This Feature
/// - `GroupReplicationNotSupport.InvalidEngineVersion`: Group Replication requires the instance engine version to be 8.0.
/// - `GroupReplicationNotSupport.InvalidNodeClassCode`: Group Replication requires the ClassCode of each node to be consistent.
/// - `GroupReplicationNotSupport.InvalidNodeNum`: Group Replication is not supported, the number of nodes must be an odd number greater than or equal to 3.
/// - `GroupReplicationNotSupport.InvalidXengine`: Group Replication is not supported because the instance has xengine tables.
/// - `GroupReplicationNotSupport.MemoryTooSmall`: Group Replication is not supported because the memory is too small.
/// - `ARMNotSupport`: ARM arch does not support this operation.
/// - `HostTypeNotSupport`: Host type is inconsistent, please check that the original host type is the same as the target host type.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `MaxscaleInstanceNotSupport`: Instances with maxscale instance do not support this operation.
/// - `ReadInstanceNotSupport`: Instances with read-only do not support this operation.
/// - `UnSupportReduceDiskSize`: Current instance type does not support reducing disk space.
/// - `CloudboxInstanceNotSupport`: Cloud-box instance does not support this operation.
/// - `ReadOnlyInstanceNotSupport`: Read-only instance does not support this operation.
/// - `MinorVersionNotSupport`: The current database minor version does not support the operation.
/// - `ShrinkCountReachedLimit`: Current DB shrink count reached the limit.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudDiskEncryptionNotSupport`: The encryption key is not allowed for general-purpose instance.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `UnsupportedByBlueGreenDeployment`: Operation prohibited due to blue green deployment.
/// - `UnSupportNonXfsDiskSizeTooLarge`: Non xfs disk types do not support upgrading to 60T or above.
/// - `OperationDenied.SystemConcurrent`: Failure caused by Concurrent operations.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `InvalidParam`: The parameter is invalid.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `CallLxSdkFailed`: Error calling the order system, please try again later or contact service personnel.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn modify_db_instance_spec(
&self,
req: ModifyDBInstanceSpec,
) -> impl std::future::Future<Output = crate::Result<ModifyDBInstanceSpecResponse>> + Send {
self.call(req)
}
/// # 销毁实例
///
/// 该接口用于销毁回收站中的RDS实例。
///
/// # Error Codes
/// - `OperationDenied.DBInstanceStatus`: The operation is not permitted due to status of instance.
/// - `InstanceEngineType.NotSupport`: The instance engine and type does not support operations.
/// - `OperationDenied.DBInstance`: The operation is not permitted due to status of the instance.
/// - `InvalidDBInstanceId.NotFound`: The specified instance is not found.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `MasterInstanceNotExist`: master instance not exist.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidDBInstanceName.Deleted`: The specified DB instance is deleted.
/// - `InvalidDBInstance.NotFound`: The specified instance does not exist or is not supported.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn destroy_db_instance(
&self,
req: DestroyDBInstance,
) -> impl std::future::Future<Output = crate::Result<DestroyDBInstanceResponse>> + Send {
self.call(req)
}
/// # 设置存储空间自动扩容
///
/// 该接口用于设置RDS实例的存储空间自动扩容功能。
///
/// ### 适用引擎
/// <props="china">
///
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
///
/// </props>
///
/// <props="intl">
///
/// - RDS MySQL
/// - RDS PostgreSQL
///
/// </props>
///
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
///
/// <props="china">
///
/// - [RDS MySQL存储空间自动扩容](~~173826~~)
/// - [RDS PostgreSQL存储空间自动扩容](~~432496~~)
/// - [RDS SQL Server存储空间自动扩容](~~2573613~~)
///
/// </props>
///
/// <props="intl">
///
/// - [RDS MySQL存储空间自动扩容](~~173826~~)
/// - [RDS PostgreSQL存储空间自动扩容](~~432496~~)
///
/// </props>
///
/// # Error Codes
/// - `AccessHDMInstanceFailed`: The specified instance access HDM failed.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `InvalidStorageType.NotSupport`: The current storage type does not support this operation.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn modify_das_instance_config(
&self,
req: ModifyDasInstanceConfig,
) -> impl std::future::Future<Output = crate::Result<ModifyDasInstanceConfigResponse>> + Send
{
self.call(req)
}
/// # 迁移RDS实例可用区
///
/// 该接口用于迁移RDS实例的可用区。
///
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
///
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
///
/// - [RDS MySQL迁移可用区](~~96053~~)
/// - [RDS PostgreSQL迁移可用区](~~96746~~)
/// - [RDS SQL Server迁移可用区](~~95658~~)
///
/// # Error Codes
/// - `RenewChange.Exist`: The Current InstanceId existed renewChange order in RDS.
/// - `InvalidInstanceCommodityCode.NotFound`: Parse commodityCode from lx and instance fail.
/// - `InvalidMigrateModifyClassOrStorage`: Specified parameter DBInstanceClass or Storage is invalid.
/// - `EngineNotSupported`: Engine specified cannot be supported the operation.
/// - `IncorrectDBInstanceLockMode.ValueNotSupported`: The Current DB instance lock mode does not support this operation.
/// - `InvalidZoneId.NotNull`: The parameter ZoneId must not be null or auto
/// - `InvalidZoneId.NotEqual`: The parameter ZoneId is the same as the previous one
/// - `InvalidDispenseMode.Format`: The specified dispense mode is not valid.
/// - `IncorrectDBInstanceType`: Current DB instance type does not support this operation.
/// - `ZoneId.NotMatchWithCategory`: The Number of ZoneId specified does not match with category
/// - `InvalidDefaultVSwitch.NotFound`: The specified default virtual switch is not found in specified VPC.
/// - `InsufficientResourceCapacityCheck`: There is insufficient capacity available for the requested instance with precheck.
/// - `UnsupportedReadOrBakReadState`: Current DB instance has read or bak read instance running in unsupported states
/// - `IncorrectDBInstanceState`: Current DB instance state does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `SSLInstanceNotSupportThisOperation`: The instance opened SSL, upgrade is not this operation
/// - `BYOLInstanceNotSupportThisOperation`: The BYOL instance is not supported this operation
/// - `BYOKInstanceNotSupportThisOperation`: The BYOK instance is not supported this operation
/// - `ADInstanceNotSupportThisOperation`: The AD instance is not supported this operation
/// - `TDEInstanceNotSupportThisOperation`: The instance opened TDE, this operation is not supported
/// - `InstanceIsSnapshotBackupNotSupportThisOperation`: The instance backup method is snapshot backup, this operation is not supported
/// - `InstanceHasReadOnlyInstanceNotSupportThisOperation`: The instance has read-only instance or is read-only instance, this operation is not supported
/// - `VswitchIpExhausted`: No available ip in the specified vswitch.
/// - `OperationDenied.MasterDBInstanceState`: The operation is not permitted due to status of master instance.
/// - `InvalidShareInstance.NotSupport`: The share dbInstance is not support.
/// - `InvalidZoneIdSlave1.Missing`: The parameter ZoneIdSlave1 must be specified.
/// - `MigrateAlreadyExistsFault`: The rds instance already has a given vpc migrate task.
/// - `InvalidInstanceKind.NotSupport`: The instance kind does not support this operation.
/// - `MissingCategory`: The instance is missing a category parameter.
/// - `InvalidInstanceNodeType.NotFound`: The specified NodeType is not found.
/// - `EngineVersionNotSupported`: EngineVersion specified cannot be replicate with the source DB Instance.
/// - `CommodityCodeNotFound`: CommodityCodeNotFound
/// - `InvalidTunnelId`: Specified conn tunnel is not valid.
/// - `SSLNotSupport`: The CharacterType of instance does not support SSL.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `UnSupportDbTypeReduceDiskSize`: The current instance does not support scale-in.
/// - `UnsupportedReduceDiskSize`: Current Instance not support reduce disk size less than limit size.
/// - `UnsupportExtendDisk.NotSupport`: Specified DB instance is unsupport extend disk.
/// - `ClassicNetDisabled`: The classic network address is currently disabled, and the instance cannot perform configuration changes.
/// - `InvalidParamForXfs`: Xfs instance must be single tenant standard instance.
/// - `OperationDenied.OutofUsage`: The resource is out of usage.
/// - `IncorrectEffectiveTime`: The specified EffectiveTime params is not valid.
/// - `InvalidTempInstance.NotSupport`: The temp db Instance is not support.
/// - `OperationDenied.LockMode`: The operation is not permitted due to instance being locked.
/// - `ClassicNetworkType.NotSupport`: The Classic instance network create is not support.
/// - `InstanceNetworkTypeNotFoundFault`: The specified DBInstanceNetworkType is not found.
/// - `ProprietaryCloud.NotSupported`: The proprietary cloud not supported.
/// - `MigrateAlreadyReadWriteSplitExistsFault`: The rds instance already has a given vpc migrate task.
/// - `InvalidRegionAvzNotFound`: Specified user does not find the region and avz.
/// - `ZoneIdNotSupported`: The zone ID is not supported.
/// - `InvalidVpcInfo.NotFound`: Specified VPC info does not exist.
/// - `InvalidMultiparamZoneInfoList`: Zoneinfo list is invaild.
/// - `MigrateSlaveNotSupport`: Current DB instance state does not support migrating slave, please switch the Primary/Secondary Instance first.
/// - `CloudDiskEncryptionNotSupport`: The encryption key is not allowed for general-purpose instance.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InstanceEngineType.NotSupport`: The instance engine and type does not support operations.
/// - `UnsupportedByBlueGreenDeployment`: Operation prohibited due to blue green deployment.
/// - `CurrentRecoveryModelNotSupportThisAction`: Current recovery model not supported this action.
/// - `UnSupportNonXfsDiskSizeTooLarge`: Non xfs disk types do not support upgrading to 60T or above.
/// - `ShrinkCountReachedLimit`: Current DB shrink count reached the limit.
/// - `IncorrectReadDBInstanceDisksize`: Read instance disk size must be equal or higher than primary instance.
/// - `InvalidDBInstanceName.NotFound`: The database instance does not exist.
/// - `IncorrectVswitchId`: The specified parameter VSwitchId is not valid.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn migrate_to_other_zone(
&self,
req: MigrateToOtherZone,
) -> impl std::future::Future<Output = crate::Result<MigrateToOtherZoneResponse>> + Send {
self.call(req)
}
/// # 修改实例名称
///
/// 该接口用于修改RDS实例的名称。
///
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
/// - RDS MariaDB
///
/// # Error Codes
/// - `InvalidDBInstanceDescription.Format`: Specified DB instance description is not valid.
/// - `InvalidDBDescription.Format`: Specified DB description is not valid.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidDBInstanceName.NotFound`: The database instance does not exist.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn modify_db_instance_description(
&self,
req: ModifyDBInstanceDescription,
) -> impl std::future::Future<Output = crate::Result<ModifyDBInstanceDescriptionResponse>> + Send
{
self.call(req)
}
/// # 修改实例可维护时间段
///
/// 该接口用于修改RDS实例的可维护时间段。
///
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
/// - RDS MariaDB
///
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
///
/// - [RDS MySQL设置可维护时间段](~~96052~~)
/// - [RDS PostgreSQL设置可维护时间段](~~96799~~)
/// - [RDS SQL Sever设置可维护时间段](~~95657~~)
/// - [RDS MariaDB设置可维护时间段](~~97473~~)
///
/// # Error Codes
/// - `InvalidMaintainTime`: The MaintainTime parameter is invalid.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn modify_db_instance_maintain_time(
&self,
req: ModifyDBInstanceMaintainTime,
) -> impl std::future::Future<Output = crate::Result<ModifyDBInstanceMaintainTimeResponse>> + Send
{
self.call(req)
}
/// # 修改实例资源组
///
/// 该接口用于将RDS实例移动到指定资源组。
///
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
/// - RDS MariaDB
///
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
///
/// [跨资源组转移资源](~~94487~~)
///
/// # Error Codes
/// - `ResourceGroupId.InValid`: The Specified resource group id is not found.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn modify_resource_group(
&self,
req: ModifyResourceGroup,
) -> impl std::future::Future<Output = crate::Result<ModifyResourceGroupResponse>> + Send {
self.call(req)
}
/// # 修改实例可用性检测方式
///
/// 该接口用于修改RDS实例的可用性检测方式。
///
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
/// - RDS MariaDB
///
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
///
/// [什么是可用性检测方式](~~207467~~)。
///
/// # Error Codes
/// - `HaDiagnoseConfig.Format`: The value of tcpConnectionType must be LONG or SHORT
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn modify_ha_diagnose_config(
&self,
req: ModifyHADiagnoseConfig,
) -> impl std::future::Future<Output = crate::Result<ModifyHADiagnoseConfigResponse>> + Send
{
self.call(req)
}
/// # 设置SQL Server账号密码策略
///
/// 该接口用于修改RDS SQL Server实例的账号密码策略。
///
/// ### 适用引擎
/// RDS SQL Server(共享型实例和2008 R2版本不支持)
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
///
/// [RDS SQL Server自定义账号密码策略](~~95640~~)
///
/// # Error Codes
/// - `GroupPolicyNotFound`: The specified group policy does not exist.
/// - `InvalidGroupPolicyValue`: The value of the group policy is invalid.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidDBInstanceName.NotFound`: The database instance does not exist.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn modify_account_security_policy(
&self,
req: ModifyAccountSecurityPolicy,
) -> impl std::future::Future<Output = crate::Result<ModifyAccountSecurityPolicyResponse>> + Send
{
self.call(req)
}
/// # 查询实例是否支持在线扩盘
///
/// 该接口用于查询RDS SQL Server实例是否支持在线扩盘。
///
/// ### 适用引擎
/// RDS SQL Server
///
/// # Error Codes
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidDBInstanceName.NotFound`: The database instance does not exist.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn describe_support_online_resize_disk(
&self,
req: DescribeSupportOnlineResizeDisk,
) -> impl std::future::Future<Output = crate::Result<DescribeSupportOnlineResizeDiskResponse>> + Send
{
self.call(req)
}
/// # 查询可用区资源
///
/// 该接口用于查询RDS的可用区资源。
///
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
/// > 该接口仅用于查询可用区资源,不用于控制台关于RDS PostgreSQL的售卖。购买页根据实际售卖策略不同,部分参数取值会略有不同,实际购买时请以[购买页](https://rdsbuy.console.aliyun.com/create/rds/PostgreSQL)为准。
/// - RDS SQL Server
/// - RDS MariaDB
///
/// # Error Codes
/// - `ArticleNotFound`: Article not found
/// - `InvalidDBInstanceName`: The specified parameter DBInstanceName is null or the instance cannot be found, please check parameter DBInstanceName.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidDBInstanceName.NotFound`: DBInstanceName not found
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn describe_available_zones(
&self,
req: DescribeAvailableZones,
) -> impl std::future::Future<Output = crate::Result<DescribeAvailableZonesResponse>> + Send
{
self.call(req)
}
/// # 查询实例可变更规格
///
/// 该接口用于查询RDS实例的可变更规格及存储空间等信息。
///
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
/// - RDS MariaDB
///
/// # Error Codes
/// - `ArticleNotFound`: Article not found
/// - `InvalidDBInstanceName`: The specified parameter DBInstanceName is null or the instance cannot be found, please check parameter DBInstanceName.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidDBInstanceName.NotFound`: DBInstanceName not found
/// - `InvalidCondition.NotFound`: No class found
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn describe_available_classes(
&self,
req: DescribeAvailableClasses,
) -> impl std::future::Future<Output = crate::Result<DescribeAvailableClassesResponse>> + Send
{
self.call(req)
}
/// # 查询实例详情
///
/// 该接口用于查询RDS实例的详细信息。
///
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
/// - RDS MariaDB
///
/// # Error Codes
/// - `ConnectTimeoutRetryLater`: Connect timeout retry later.
/// - `TimeoutRetryLater`: Timeout, please retry later.
/// - `DataNotExist`: Data not exist.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `InvalidDBInstanceName.NotFound`: The specified DB instance name does not exist.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn describe_db_instance_attribute(
&self,
req: DescribeDBInstanceAttribute,
) -> impl std::future::Future<Output = crate::Result<DescribeDBInstanceAttributeResponse>> + Send
{
self.call(req)
}
/// # 查询实例拓扑信息
///
/// 该接口用于查看RDS实例的拓扑结构。
///
/// ### 适用引擎
///
/// RDS MySQL
///
/// # Error Codes
/// - `InvalidAction`: Specified action is not valid.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `DBInstanceStatusNotActive`: The status of the current instance is not active.
/// - `DBTypeNotSupported`: The database type is not supported.
/// - `IncorrectDBInstanceType`: Current DB instance type does not support this operation.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidDBInstance.NotFound`: The specified instance does not exist or is not supported.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn get_db_instance_topology(
&self,
req: GetDBInstanceTopology,
) -> impl std::future::Future<Output = crate::Result<GetDBInstanceTopologyResponse>> + Send
{
self.call(req)
}
/// # 查询实例列表
///
/// 该接口用于查询RDS的实例列表。
///
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
/// - RDS MariaDB
///
/// # Error Codes
/// - `Invalid.NextToken`: The parameter NextToken is invalid.
/// - `InvalidDBInstanceType.ValueNotSupport`: The specified parameter DBInstanceType is not valid.
/// - `InvalidParameter.OwnerAccount`: The specified parameter OwnerAccount is not valid.
/// - `TimeoutRetryLater`: Timeout, Please retry later.
/// - `InvalidExpired.Format`: The instance expiration status parameter is incorrect.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `Abs.ImageNotFound`: The specified Image is disabled or is deleted.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn describe_db_instances(
&self,
req: DescribeDBInstances,
) -> impl std::future::Future<Output = crate::Result<DescribeDBInstancesResponse>> + Send {
self.call(req)
}
/// # 查询规格信息
///
/// 该接口用于查询RDS实例所有规格的详情。
///
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
/// - RDS MariaDB
///
/// # Error Codes
/// - `InvalidSecurityIPList.Malformed`: The specified parameter SecurityIPList is not valid.
/// - `InvalidSecurityIPList.Duplicate`: The Security IP address is not in the available range or occupied.
/// - `InvalidCommodityCode.Malformed`: The commodity code is invalid.
/// - `ArticleNotFound`: Article not found
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `Forbidden.Authentication`: The operation is forbidden by Aliyun Realname Authentication System.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `GetCommodity.Failed`: Get commodity failed.
/// - `InvalidDBInstanceName.NotFound`: Invalid DBInstanceId NotFound.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn list_classes(
&self,
req: ListClasses,
) -> impl std::future::Future<Output = crate::Result<ListClassesResponse>> + Send {
self.call(req)
}
/// # 按过期时间获取数据库实例
///
/// 该接口用于通过包年包月实例的剩余可用时间查询RDS实例信息。
///
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
/// - RDS MariaDB
///
/// # Error Codes
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn describe_db_instances_by_expire_time(
&self,
req: DescribeDBInstancesByExpireTime,
) -> impl std::future::Future<Output = crate::Result<DescribeDBInstancesByExpireTimeResponse>> + Send
{
self.call(req)
}
/// # 查看可选的地域和可用区
///
/// 该接口用于查询所有RDS地域和可用区详情(包含已裁撤地域,请谨慎使用)。
///
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
/// - RDS MariaDB
///
/// # Error Codes
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidAcceptLanguage.NotFound`: Only Chinese (zh-CN) and English (en-US) are allowed.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn describe_regions(
&self,
req: DescribeRegions,
) -> impl std::future::Future<Output = crate::Result<DescribeRegionsResponse>> + Send {
self.call(req)
}
/// # 查询实例是否存在
///
/// 该接口用于查询目标RDS实例是否存在。
///
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
/// - RDS MariaDB
///
/// # Error Codes
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidDBInstanceName.NotFound`: Invalid DBInstanceId NotFound.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn check_instance_exist(
&self,
req: CheckInstanceExist,
) -> impl std::future::Future<Output = crate::Result<CheckInstanceExistResponse>> + Send {
self.call(req)
}
/// # 查询实例可用性检测方式
///
/// 该接口用于查询RDS实例的可用性检测方式。
///
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
/// - RDS MariaDB
///
/// ### 相关功能文档
/// [什么是可用性检测方式](~~207467~~)
///
/// # Error Codes
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn describe_ha_diagnose_config(
&self,
req: DescribeHADiagnoseConfig,
) -> impl std::future::Future<Output = crate::Result<DescribeHADiagnoseConfigResponse>> + Send
{
self.call(req)
}
/// # 查询RDS MySQL分析实例数量
///
/// 该接口用于查询RDS MySQL实例关联的分析型实例数量。
///
/// ### 适用引擎
/// RDS MySQL
///
/// ### 相关功能文档
/// <props="china">[创建和查看MySQL分析实例](~~155180~~)</props>
///
/// # Error Codes
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn describe_analyticdb_by_primary_db_instance(
&self,
req: DescribeAnalyticdbByPrimaryDBInstance,
) -> impl std::future::Future<
Output = crate::Result<DescribeAnalyticdbByPrimaryDBInstanceResponse>,
> + Send {
self.call(req)
}
/// # 查询RDS实例的授权状态
///
/// 该接口用于查询RDS实例的权限状态。
///
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
/// - RDS MariaDB
///
/// # Error Codes
/// - `InvalidParameter.ByokInsnameAndRegionAllEmpty`: The insName and targetRegionId can't be all empty.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn check_cloud_resource_authorized(
&self,
req: CheckCloudResourceAuthorized,
) -> impl std::future::Future<Output = crate::Result<CheckCloudResourceAuthorizedResponse>> + Send
{
self.call(req)
}
/// # 释放实例外网连接地址
///
/// 该接口用于释放RDS实例的外网连接地址。
///
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
/// - RDS MariaDB
///
/// ### 相关功能文档
///
/// - [RDS MySQL释放外网地址](~~26128~~)
/// - [RDS PostgreSQL释放外网地址](~~97738~~)
/// - [RDS SQL Server释放外网地址](~~97736~~)
/// - [RDS MariaDb释放外网地址](~~97740~~)
///
/// # Error Codes
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `UnsupportedByBlueGreenDeployment`: Operation prohibited due to blue green deployment.
/// - `Endpoint.NotFound`: Specified endpoint is not existed.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn release_instance_connection(
&self,
req: ReleaseInstanceConnection,
) -> impl std::future::Future<Output = crate::Result<ReleaseInstanceConnectionResponse>> + Send
{
self.call(req)
}
/// # 获取RDS SQL Server实例详细信息
///
/// 该接口用于查询RDS SQL Server实例详情。
///
/// ### 适用引擎
/// RDS SQL Server
///
/// # Error Codes
/// - `InvalidEngine.NotSupported`: Current engine does not support this api.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn describe_db_instance_detail(
&self,
req: DescribeDBInstanceDetail,
) -> impl std::future::Future<Output = crate::Result<DescribeDBInstanceDetailResponse>> + Send
{
self.call(req)
}
/// # 按性能获取数据库实例
///
/// 该接口用于按性能查询数据库实例。
///
/// # Error Codes
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn describe_db_instances_by_performance(
&self,
req: DescribeDBInstancesByPerformance,
) -> impl std::future::Future<Output = crate::Result<DescribeDBInstancesByPerformanceResponse>> + Send
{
self.call(req)
}
/// # 查看克隆数据库实例(停止维护)
///
/// 该接口用于查看克隆数据库实例。已停止维护:可以正常调用,但不再维护。
///
/// 该接口已停止维护:**接口仍可以正常调用,但阿里云不再维护该接口**。建议您使用[DescribeDBInstances](~~610396~~)接口查询新实例详情。
///
/// # Error Codes
/// - `InvalidDBInstanceType.ValueNotSupport`: The specified parameter"DBInstanceType" is not valid.
/// - `ApiError`: API error.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
#[deprecated]
pub fn describe_db_instances_for_clone(
&self,
req: DescribeDBInstancesForClone,
) -> impl std::future::Future<Output = crate::Result<DescribeDBInstancesForCloneResponse>> + Send
{
self.call(req)
}
/// # 按CSV文件格式查询实例列表(停止维护)
///
/// 该接口用于查询实例列表。
/// 已停止维护:可以正常调用,但不再维护。
///
/// 该接口已停止维护:**接口仍可以正常调用,但阿里云不再维护该接口**。建议您使用**DescribeDBInstances**接口。
///
/// # Error Codes
/// - `InstanceNames.Malformed`: instance number of Instance Names should be less than 3000
/// - `400`: Export all instances more than 6 times in an hour, please try 1 hour later.
/// - `ExportLimitExceeded`: Export all instances more than 6 times in an hour, please try 1 hour later.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `Export.InProcess`: There is already a task running, please try later
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
#[deprecated]
pub fn describe_db_instances_as_csv(
&self,
req: DescribeDBInstancesAsCsv,
) -> impl std::future::Future<Output = crate::Result<DescribeDBInstancesAsCsvResponse>> + Send
{
self.call(req)
}
/// # 修改RDS升级内核小版本的方式
///
/// 该接口用于修改RDS MySQL或RDS PostgreSQL实例升级小版本的方式。
///
/// ### 适用引擎
/// - RDS MySQL
/// - RDS PostgreSQL
///
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
///
/// - [RDS MySQL修改自动升级设置](~~96059~~)
/// - [RDS PostgreSQL修改自动升级设置](~~146895~~)
///
/// # Error Codes
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn modify_db_instance_auto_upgrade_minor_version(
&self,
req: ModifyDBInstanceAutoUpgradeMinorVersion,
) -> impl std::future::Future<
Output = crate::Result<ModifyDBInstanceAutoUpgradeMinorVersionResponse>,
> + Send {
self.call(req)
}
/// # 查询RDS大版本升级检查报告
///
/// 该接口用于查询RDS MySQL及RDS PostgreSQL大版本升级前检查的检查报告。
///
/// ### 适用引擎
/// RDS MySQL
///
/// RDS PostgreSQL
///
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
///
/// - [RDS MySQL大版本升级检查报告](~~2794383~~)
/// - [RDS PostgreSQL升级数据库大版本](~~203309~~)
/// - [解读RDS PostgreSQL大版本升级检查报告](~~218391~~)
///
/// # Error Codes
/// - `InvalidDBInstanceName.NotFound`: The specified DB instance name does not exist.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn describe_upgrade_major_version_precheck_task(
&self,
req: DescribeUpgradeMajorVersionPrecheckTask,
) -> impl std::future::Future<
Output = crate::Result<DescribeUpgradeMajorVersionPrecheckTaskResponse>,
> + Send {
self.call(req)
}
/// # 查询RDS PostgreSQL实例大版本升级任务
///
/// 该接口用于查询RDS PostgreSQL实例大版本升级的历史任务。
///
/// ### 适用引擎
/// RDS PostgreSQL
///
/// # Error Codes
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidDBInstanceName.NotFound`: The database instance does not exist.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn describe_upgrade_major_version_tasks(
&self,
req: DescribeUpgradeMajorVersionTasks,
) -> impl std::future::Future<Output = crate::Result<DescribeUpgradeMajorVersionTasksResponse>> + Send
{
self.call(req)
}
/// # 升级RDS MySQL数据库大版本
///
/// 该接口用于升级RDS MySQL的数据库大版本。
///
/// ### 适用引擎
/// RDS MySQL
///
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
///
/// [RDS MySQL升级数据库版本](~~96058~~)
///
/// # Error Codes
/// - `InvalidOrderTask.NotSupport`: The Current InstanceId exist Order Task in RDS.
/// - `InvalidEVENT`: Current DB instance has event schedule, this operation is not supported.
/// - `InvalidSSLstatus`: Current DB instance has SSL enabled, this operation is not supported.
/// - `InvalidTDEstatus`: Current DB instance has TDE enabled, this operation is not supported.
/// - `InvalidDBInstanceConnType.Format`: Specified DB instance conn type is not valid.
/// - `UnsupportedReadOrBakReadState`: Current DB instance has read or bak read instance running in unsupported states.
/// - `InvalidSourceCategory`: specified source category is invalid.
/// - `InvalidBizType.Format`: Specified biz type is not valid.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `InvalidMinorVersion.NotFound`: Specified minor version does not exists.
/// - `ClassicNetDisabled`: The classic network address is currently disabled, and the instance cannot perform configuration changes.
/// - `IncorrectDBInstanceState`: Current DB instance state does not support this operation.
/// - `IncorrectEngineVersion`: The engine version does not support the operation.
/// - `IncorrectEngineTypeMyisam`: Current DB instance has MyISAM table, and it does not support this operation.
/// - `InvalidAccountName.Format`: Current DB instance has account aliyun_root,and it does not support this operation.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `IncorrectDBInstanceLockMode`: Current DB instance lock mode does not support this operation.
/// - `UnsupportedReadOrBakReadState`: Current DB instance has read or bak read running in unsupport states
/// - `MaxscaleMinorVersionNotSupport`: The Maxscale version used by the instance is too low, please upgrade the Maxscale version first.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `ReadInstanceNotSupport`: Instances with read-only do not support this operation.
/// - `ClusterNotSupport`: ClusterNotSupport
/// - `IncorrectDBInstanceType`: Current DB instance type does not support this operation.
/// - `UnsupportedFtsIndex`: Current DB instance has fts index. Please delete in space fts index.
/// - `UnsupportedFtsIndexVersion`: Current DB instance has fts index. Please upgrade the minor version to a version after 20221130 and remove the space fts index.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `UnsupportedByBlueGreenDeployment`: Operation prohibited due to blue green deployment.
/// - `InvalidDBInstance.NotFound`: The specified instance does not exist or is not supported.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn upgrade_db_instance_engine_version(
&self,
req: UpgradeDBInstanceEngineVersion,
) -> impl std::future::Future<Output = crate::Result<UpgradeDBInstanceEngineVersionResponse>> + Send
{
self.call(req)
}
/// # 升级RDS实例内核小版本
///
/// 该接口用于升级RDS实例的内核小版本。
///
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
///
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
///
/// - [MySQL升级内核小版本](~~96059~~)
/// - [PostgreSQL升级内核小版本](~~146895~~)
/// - [SQL Server升级内核小版本](~~213582~~)
///
/// # Error Codes
/// - `InvalidMinorVerison.NotFound`: Specify minor version not founud.
/// - `InstanceMissingMinorVersionAttr`: Specify instance has no minor_version attribute.
/// - `InvalidMinorVersionLowerThanInstance`: Specify minor version cannot not be lower than current instance.
/// - `InvalidMinorVersionAlreadyLatest`: Minor version for instance is already the latest version.
/// - `MissingParameter.MinorVersionTag`: You must specify the parameter MinorVersionTag.
/// - `EngineNotSupported`: The engine does not support the operation.
/// - `IncorrectDBInstanceState`: The current instance state does not support this operation.
/// - `TaskExists`: Specified task have existed.
/// - `UpgradeSQLServerMinorVersionFail`: Upgrade Minor Version for SQLServer failed.
/// - `UnsupportExtendDisk.NotSupport`: Specified DB instance is unsupport extend disk.
/// - `InvalidSwitchMode.NotFound`: Specified Parameter UpgradeTime is Invalid.
/// - `InvalidDBInstanceConnType.Classic`: Specified DB instance ConnectionAddress include classic net.
/// - `IncorrectDBInstanceTdeStatus`: Source DB instance and Target DB instance TDEStatus does not support this operation.
/// - `InstanceIsSnapshotBackupNotSupportThisOperation`: The instance backup method is snapshot backup, this operation is not supported
/// - `TDEInstanceNotSupportThisOperation`: The instance opened TDE, this operation is not supported
/// - `SSLInstanceNotSupportThisOperation`: The instance opened SSL, upgrade is not this operation
/// - `BYOLInstanceNotSupportThisOperation`: The BYOL instance is not supported this operation
/// - `BYOKInstanceNotSupportThisOperation`: The BYOK instance is not supported this operation
/// - `ADInstanceNotSupportThisOperation`: The AD instance is not supported this operation
/// - `MinorVersionNotSupport`: The current database minor version does not support the operation.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `SecondaryAddrNotSupportThisOperation`: The instance has a secondary instance address, so updates are not allowed.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `IncorrectDBInstanceLockMode`: Current DB instance lock mode does not support this operation.
/// - `IncorrectDBInstanceType`: Current DB instance type does not support this operation.
/// - `SSLNotSupport`: The CharacterType of instance does not support SSL
/// - `OperationDenied.PrePayTypeNotSupported`: The operation is not permitted due to pay type of instance.
/// - `CurrentRecoveryModelNotSupportThisAction`: Current recovery model not supported this action.
/// - `MaxscaleMinorVersionNotSupport`: The Maxscale version used by the instance is too low, please upgrade the Maxscale version first.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `UnsupportedByBlueGreenDeployment`: Operation prohibited due to blue green deployment.
/// - `InvalidDBInstanceName.NotFound`: The database instance does not exist.
/// - `InvalidMaxscaleMinorVersion.Format`: Specified Maxscale Minor Version is Invalid.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn upgrade_db_instance_kernel_version(
&self,
req: UpgradeDBInstanceKernelVersion,
) -> impl std::future::Future<Output = crate::Result<UpgradeDBInstanceKernelVersionResponse>> + Send
{
self.call(req)
}
/// # RDS大版本升级前检查
///
/// 该接口用于执行RDS MySQL及RDS PostgreSQL大版本升级前检查。
///
/// ### 适用引擎
/// RDS MySQL
///
/// RDS PostgreSQL
///
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
///
/// - [RDS MySQL大版本升级检查报告](~~2794383~~)
/// - [RDS PostgreSQL升级数据库大版本](~~2879540~~)
///
/// # Error Codes
/// - `InvalidDBInstanceName.NotFound`: The specified DB instance name does not exist.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `InvalidSourceCategory`: specified source category is invalid.
/// - `InvalidBizType.Format`: Specified biz type is not valid.
/// - `InvalidTDEstatus`: Specified TDEStatus is not configured on the This custins.
/// - `MinorVersionNotSupport`: The current database minor version does not support the operation.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `ClassicNetDisabled`: The classic network address is currently disabled, and the instance cannot perform configuration changes.
/// - `ParamNotFound`: The parameter is not found for the interface.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `MaxscaleMinorVersionNotSupport`: The Maxscale version used by the instance is too low, please upgrade the Maxscale version first.
/// - `ReadInstanceNotSupport`: Instances with read-only do not support this operation.
/// - `DBClusterNotSupported`: The requested operation can not be performed while the cluster is not sale.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `TaskHasExist`: The task already exists.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn upgrade_db_instance_major_version_precheck(
&self,
req: UpgradeDBInstanceMajorVersionPrecheck,
) -> impl std::future::Future<
Output = crate::Result<UpgradeDBInstanceMajorVersionPrecheckResponse>,
> + Send {
self.call(req)
}
/// # 升级RDS PostgreSQL数据库大版本
///
/// 该接口用于发起RDS PostgreSQL实例大版本升级任务。
///
/// ### 适用引擎
/// RDS PostgreSQL
///
/// ### 相关功能文档
/// 该API操作涉及费用,请仔细阅读相关功能文档,确保完全了解使用接口产生的费用、前提条件及使用后造成的影响后,再进行操作。
///
/// [RDS PostgreSQL升级数据库大版本](~~203309~~)
///
/// # Error Codes
/// - `InvalidUpgradePrecheckResult`: The upgrade precheck failed. No successful precheck task found in the past 7 days
/// - `TargetEngineVersion.Parameters.NotFound`: targetEngineVersion is missing in the request.
/// - `InvalidDBInstanceStorageType`: The specified DBInstanceStorageType is invalid.
/// - `InvalidInstanceNetworkType`: The specified InstanceNetworkType is invalid.
/// - `InvalidVPCId`: The specified VPCId is invalid.
/// - `InvalidDedicatedHostGroupId`: The specified DedicatedHostGroupId is invalid.
/// - `InvalidPayType`: The specified PayType is invalid.
/// - `InvalidEngineVersion`: The specified EngineVersion is invalid.
/// - `InvalidDBInstanceStorage`: The specified DBInstanceStorage is invalid.
/// - `InvalidSwitchOver`: The specified SwitchOver is invalid.
/// - `PrimaryInstanceWithReadonlyNotSupport`: The specified primary instance with the read-only instance does not support the operation.
/// - `InvalidSwitchTimeMode`: The specified SwitchTimeMode is invalid.
/// - `InvalidSwitchTime`: The specified SwitchTime is invalid.
/// - `InvalidCollectStats`: The specified CollectStats is invalid.
/// - `IncorrectDBInstanceState`: The current instance state does not support this operation.
/// - `InvalidDBinstanceClass.ValueNotSupported`: The specified parameter DBinstanceClass is invalid.
/// - `InvalidUpgradeMode`: The Specified UpgradeMode is not valid.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `InvalidVSwitchId.Format`: The specified vswitch Id format is incorrect.
/// - `UpgradeModeNotSupport`: For instances with local SSD, this upgrade Mode is not allowed. For instances with cloud SSD, it is recommended to upgrade minor version at first.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidDBInstanceName.NotFound`: The database instance does not exist.
/// - `IncorrectDBInstanceLockMode`: Current DB instance lock mode does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `InvalidUpgradeMode`: The Specified Parameter UpgradeMode is not valid.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn upgrade_db_instance_major_version(
&self,
req: UpgradeDBInstanceMajorVersion,
) -> impl std::future::Future<Output = crate::Result<UpgradeDBInstanceMajorVersionResponse>> + Send
{
self.call(req)
}
/// # 申请外网连接地址
///
/// 该接口用于为RDS实例申请外网连接地址。
///
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
/// - RDS MariaDB
///
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
///
/// - [RDS MySQL申请外网连接地址](~~26128~~)
/// - [RDS PostgreSQL申请外网连接地址](~~97738~~)
/// - [RDS SQL Server申请外网连接地址](~~97736~~)
/// - [RDS MariaDB申请外网连接地址](~~97740~~)
///
/// # Error Codes
/// - `OtherEndpoint.Exist`: Other endpoint exist.
/// - `IncorrectDBInstanceState`: The current instance state does not support this operation.
/// - `ConnectionStringContainIllegalCharacterFault`: The connection string contain Illegal character.
/// - `InvalidInstanceNetworkType`: The specified InstanceNetworkType is invalid.
/// - `InvalidConnectionString.Format`: Specified connection string is not valid.
/// - `InvalidPort.Malformed`: Specified port is not valid.
/// - `InvalidVpcIdRegion.NotSupported`: The specified region does not allow you to create a VPC instance.
/// - `InvalidInstanceNetworkType.ValueNotSupported`: The specified parameter "InstanceNetworkType" is not valid.
/// - `InvalidBizType.Format`: Specified biz type is not valid.
/// - `EndpointNum.Error`: The number of endpoint is too many.
/// - `EndpointType.NotSupport`: Current db type is not support specified endpoint type.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `NetworkConnectionCreating`: The existing network connection is already being created, please do not create it repeatedly.
/// - `Invalid.DbInstanceNetType`: The specified parameter DbInstanceNetType is not valid.
/// - `OperationDenied.SwitchToVPC`: Specified instance cannot be switched to VPC.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `UnsupportedByBlueGreenDeployment`: Operation prohibited due to blue green deployment.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the Aliyun RDS.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn allocate_instance_public_connection(
&self,
req: AllocateInstancePublicConnection,
) -> impl std::future::Future<Output = crate::Result<AllocateInstancePublicConnectionResponse>> + Send
{
self.call(req)
}
/// # 释放实例的外网连接地址
///
/// 该接口用于释放实例的外网连接地址。
///
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
/// - RDS MariaDB
///
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
///
/// - [RDS MySQL释放外网连接地址](~~26128~~)
/// - [RDS PostgreSQL释放外网连接地址](~~97738~~)
/// - [RDS SQL Server释放外网连接地址](~~97736~~)
/// - [RDS MariaDB释放外网连接地址](~~97740~~)
///
/// # Error Codes
/// - `Endpoint.NotFound`: Specified endpoint is not found.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `IncorrectDBSslStatus`: The link address has been used by SSL, modification and deletion are prohibited.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `UnsupportedByBlueGreenDeployment`: Operation prohibited due to blue green deployment.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn release_instance_public_connection(
&self,
req: ReleaseInstancePublicConnection,
) -> impl std::future::Future<Output = crate::Result<ReleaseInstancePublicConnectionResponse>> + Send
{
self.call(req)
}
/// # 管理实例的连接地址和端口
///
/// 该接口用于管理实例的连接地址和端口。
///
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
/// - RDS MariaDB
///
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
///
/// - [RDS MySQL修改连接地址和端口](~~96163~~)
/// - [RDS PostgreSQL修改连接地址和端口](~~96788~~)
/// - [RDS SQL Server修改连接地址和端口](~~95740~~)
/// - [RDS MariaDB修改连接地址和端口](~~97157~~)
///
/// # Error Codes
/// - `DnsConflict`: Dns is conflict with other custins.
/// - `InvalidConnectionString.Malformed`: The specified parameter ConnectionStringPrefix is not valid.
/// - `OperationDenied.DBInstanceStatus`: The operation is not permitted due to status of instance.
/// - `InvalidConnectionString.NotFound`: The specified connection string or network type is not found.
/// - `MissingConnectionString`: The request is missing a ConnectionString parameter.
/// - `OtherEndpoint.Exist`: Other endpoint exist.
/// - `Endpoint.NotFound`: Specified endpoint is not found.
/// - `InvalidPort.Format`: Specified Port is not valid.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `IncorrectDBSslStatus`: The link address has been used by SSL, modification and deletion are prohibited.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `UnsupportedByBlueGreenDeployment`: Operation prohibited due to blue green deployment.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the Aliyun RDS.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn modify_db_instance_connection_string(
&self,
req: ModifyDBInstanceConnectionString,
) -> impl std::future::Future<Output = crate::Result<ModifyDBInstanceConnectionStringResponse>> + Send
{
self.call(req)
}
/// # 修改混访模式下经典网络地址过期时间
///
/// 该接口用于修改混访模式下经典网络地址的过期时间。
///
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS SQL Server
///
/// ### 相关功能文档
///
/// - [RDS MySQL临时混访方案](~~96110~~)
/// - [RDS SQL Server临时混访方案](~~95708~~)
///
/// # Error Codes
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn modify_db_instance_network_expire_time(
&self,
req: ModifyDBInstanceNetworkExpireTime,
) -> impl std::future::Future<Output = crate::Result<ModifyDBInstanceNetworkExpireTimeResponse>> + Send
{
self.call(req)
}
/// # 切换经典网络内外网地址
///
/// 该接口用于切换经典网络实例的内外网地址。
///
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS SQL Server
///
/// ### 前提条件
///
/// - 实例只有内网地址和外网地址其中一个。
/// - 实例状态为运行中。
/// - 24小时内切换次数低于20次。
/// - 实例的网络类型为经典网络。
///
/// ### 注意事项
/// 切换后连接地址会发生变化,需要您修改代码中的连接地址并重启应用。
///
/// # Error Codes
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn switch_db_instance_net_type(
&self,
req: SwitchDBInstanceNetType,
) -> impl std::future::Future<Output = crate::Result<SwitchDBInstanceNetTypeResponse>> + Send
{
self.call(req)
}
/// # 经典网络切换为VPC网络
///
/// 该接口用于将经典网络的RDS实例切换为VPC网络。
///
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
///
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
///
/// - [RDS MySQL更改网络类型](~~96109~~)
/// - [RDS PostgreSQL更改网络类型](~~96761~~)
/// - [RDS SQL Server更改网络类型](~~95707~~)
///
/// # Error Codes
/// - `NetTypeExists`: Specified network type already exists.
/// - `VswitchIpExhausted`: Vswitch IP exhausted.
/// - `OperationDenied.Switch`: The specified instance must not be switched to VPC.
/// - `OperationDenied.DBInstanceNetType`: Operation is denied by the network type of current database instance.
/// - `OperationDenied.DBInstanceStatus`: Operation is denied by the current database instance status.
/// - `OperationNotSupported`: This operation is not currently supported.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OperationDenied.DBInstanceConnType`: The current DB instance connection type does not support this operation.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn modify_db_instance_network_type(
&self,
req: ModifyDBInstanceNetworkType,
) -> impl std::future::Future<Output = crate::Result<ModifyDBInstanceNetworkTypeResponse>> + Send
{
self.call(req)
}
/// # 切换RDS实例的VPC和交换机
///
/// 该接口用于切换RDS实例的专有网络VPC和交换机。
///
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
///
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
///
/// - [RDS MySQL切换专有网络VPC和虚拟交换机](~~137567~~)
/// - [RDS PostgreSQL切换虚拟交换机](~~146885~~)
/// - [RDS SQL Server切换专有网络VPC和虚拟交换机](~~347675~~)
///
/// # Error Codes
/// - `MigrateAlreadyExistsFault`: Duplicate migration is forbidden.
/// - `InvalidConnVPCId`: Specified conn vpc id is not valid.
/// - `InvalidInstanceKind.NotSupport`: The instance kind does not support this operation.
/// - `InvalidPrivateIpAddress.Mismatch`: Specified private IP address is not in the CIDR block of virtual switch.
/// - `MigrateAlreadyReadWriteSplitExistsFault`: The rds instance already has a given vpc migrate task.
/// - `APICallingFailed`: Api calling failed.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `InvalidClassicNetworkType.NotSupport`: The classic network type instance does not support this operation.
/// - `InvalidParamForXfs`: Xfs instance must be single tenant standard instance.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn switch_db_instance_vpc(
&self,
req: SwitchDBInstanceVpc,
) -> impl std::future::Future<Output = crate::Result<SwitchDBInstanceVpcResponse>> + Send {
self.call(req)
}
/// # 修改RDS实例的配置项
///
/// 该接口用于修改RDS实例的配置项。
///
/// ### 适用引擎
///
/// - RDS PostgreSQL
/// - RDS SQL Server
///
/// > 当前支持的配置项为[RDS PostgreSQL PgBouncer功能](~~2398301~~)、[RDS PostgreSQL云盘加密功能](~~124822~~)、[RDS SQL Server云盘加密功能](~~135391~~)<props="china">、[RDS SQL Server简单恢复功能](~~2618484~~)</props>和[RDS SQL Server错误日志清理功能](~~95645~~)。
///
/// # Error Codes
/// - `%s`: DB Operation Failed:%s.
/// - `InvalidDBInstanceName.NotFound`: The specified DB instance name does not exist.
/// - `MinorVersionNotSupport`: The current database minor version does not support the operation.
/// - `InvalidConfigName`: The ConfigName is not valid.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `InvalidSourceCategory`: specified source category is invalid.
/// - `InvalidParameter`: Invalid parameter.
/// - `InvalidConfigValue`: The ConfigValue is not valid.
/// - `InvalidParameters.Format`: Specified parameters is not valid.
/// - `DuckDBOperationConflictBetweenPrimaryAndReadOnlyInstance`: Current instance is already attached to another duckdb instance, operation is conflict.
/// - `IncorrectDBInstanceType`: Current DB instance type does not support this operation.
/// - `IncorrectDBInstanceLockMode`: Current DB instance lock mode does not support this operation.
/// - `IncorrectDBInstanceState`: Current DB instance state does not support this operation.
/// - `CloudDiskEncryptionNotSupport`: The encryption key is not allowed for general-purpose instance.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `UnsupportedByBlueGreenDeployment`: Operation prohibited due to blue green deployment.
/// - `EncryptionKeyNotSupport`: The encryption key is not support to generate encryption disk.
/// - `IncorrectDBState`: The current DB state does not support this operation.
/// - `UnsupportedReadOrBakReadState`: Current DB instance has read or bak read running in unsupport states
/// - `IncorrectAccountPrivilegeType`: the current account privilege type does not support this operation.
/// - `DBInstanceStatusNotActive`: The status of the current instance is not active.
/// - `ReadOnlyInstanceNotSupport`: Read-only instance does not support this operation.
/// - `Invalid.Parameter`: Specified parameters is not valid.
/// - `TargetMajorVesionNotSupported`: The specified major version is not supported.
/// - `ReadInstanceNotSupport`: Instances with read-only do not support this operation.
/// - `IncorrectDBInstance`: The current DB instance does not support this operation.
/// - `InvalidDBInstance.NotFound`: Specified instance does not exist or not support.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `InvalidAccountName.NotFound`: The specified account is not found.
/// - `InvalidReadDBInstance.NotFound`: The specified read only database instance does not exist.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - GET
/// - POST
///
pub fn modify_db_instance_config(
&self,
req: ModifyDBInstanceConfig,
) -> impl std::future::Future<Output = crate::Result<ModifyDBInstanceConfigResponse>> + Send
{
self.call(req)
}
/// # 查询实例的所有连接地址信息
///
/// 该接口用于查询RDS实例的所有连接地址信息。
///
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
/// - RDS MariaDB
///
/// # Error Codes
/// - `TimeoutRetryLater`: Timeout, retry later.
/// - `InvalidDBInstanceName.NotFound`: DB instance name not found.
/// - `IllegalParameter`: Illegal parameter
/// - `Readins.NotFound`: Readonly instance not found.
/// - `MissingRWSplistParam`: Custins is missing rw split param.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn describe_db_instance_net_info(
&self,
req: DescribeDBInstanceNetInfo,
) -> impl std::future::Future<Output = crate::Result<DescribeDBInstanceNetInfoResponse>> + Send
{
self.call(req)
}
/// # 查询虚拟交换机列表
///
/// 该接口用于查询专有网络VPC下虚拟交换机的详细信息。
///
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
/// - RDS MariaDB
///
/// # Error Codes
/// - `InvalidVSwitchId.NotFound`: Specified virtual switch is not found in specified VPC.
/// - `IncorrecttVpcId`: The specified parameter VPCId is not valid.
/// - `InvalidIzNo.NotSupported`: Specified VPC zone is not supported.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - GET
/// - POST
///
pub fn describe_v_switches(
&self,
req: DescribeVSwitches,
) -> impl std::future::Future<Output = crate::Result<DescribeVSwitchesResponse>> + Send {
self.call(req)
}
/// # 修改实例的高可用模式和数据复制方式
///
/// 该接口用于修改RDS实例的高可用模式和数据复制方式。
///
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
///
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
///
/// - [RDS MySQL修改数据复制方式](~~96055~~)
/// - [RDS PostgreSQL修改数据复制方式](~~151265~~)
///
/// # Error Codes
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `GroupReplicationNotSupport.InvalidEngineVersion`: Group Replication requires the instance engine version to be 8.0.
/// - `GroupReplicationNotSupport.InvalidNodeClassCode`: Group Replication requires the ClassCode of each node to be consistent.
/// - `GroupReplicationNotSupport.InvalidNodeNum`: Group Replication is not supported, the number of nodes must be an odd number greater than or equal to 3.
/// - `GroupReplicationNotSupport.InvalidXengine`: Group Replication is not supported because the instance has xengine tables.
/// - `GroupReplicationNotSupport.MemoryTooSmall`: Group Replication is not supported because the memory is too small.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `GroupReplicationNotSupport.TableWithoutPrimaryKey`: Group Replication is not supported because the instance exists table has no primary key.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn modify_db_instance_ha_config(
&self,
req: ModifyDBInstanceHAConfig,
) -> impl std::future::Future<Output = crate::Result<ModifyDBInstanceHAConfigResponse>> + Send
{
self.call(req)
}
/// # 开启或关闭RDS实例的主备自动切换功能
///
/// 该接口用于开启或关闭RDS实例的主备自动切换功能。
///
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
/// - RDS MariaDB
///
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
///
/// - [RDS MySQL自动主备切换](~~96054~~)
/// - [RDS PostgreSQL自动主备切换](~~96747~~)
/// - [RDS SQL Server自动主备切换](~~95659~~)
/// - [RDS MariaDB自动主备切换](~~97127~~)
///
/// # Error Codes
/// - `HaConfig.Format`: The value of HaConfig must be auto or manual
/// - `HaConfigIsNull`: HaConfig is null.
/// - `ManualHATime.Format`: Invalid format of ManualHATime.
/// - `ManualHATimeIsNull`: ManualHATime can not be null when the value of haConfig is Manual.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn modify_ha_switch_config(
&self,
req: ModifyHASwitchConfig,
) -> impl std::future::Future<Output = crate::Result<ModifyHASwitchConfigResponse>> + Send {
self.call(req)
}
/// # 查询RDS实例高可用模式和数据复制方式
///
/// 该接口用于查询RDS实例的高可用模式和数据复制方式。
///
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
///
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
///
/// - [RDS MySQL查询数据复制方式](~~96055~~)
/// - [RDS PostgreSQL查询数据复制方式](~~151265~~)
/// - [RDS SQL Server查询数据复制方式](~~415433~~)
///
/// # Error Codes
/// - `InvalidConfigName`: The ConfigName is not valid.
/// - `IncorrectEngineVersion`: Current DB instance engine version does not support this operation.
/// - `InvalidParameters.Format`: Specified parameter is not valid
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `IncorrectDBInstanceType`: Current DB instance engine and type does not support operations.
/// - `IncorrectDBInstanceState`: Current DB instance state does not support this operation.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidDBInstanceName.NotFound`: The database instance does not exist.
/// - `InvalidDBInstance.NotFound`: The specified instance does not exist or is not supported.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn describe_db_instance_ha_config(
&self,
req: DescribeDBInstanceHAConfig,
) -> impl std::future::Future<Output = crate::Result<DescribeDBInstanceHAConfigResponse>> + Send
{
self.call(req)
}
/// # 查询RDS实例主备自动切换设置
///
/// 该接口用于查询RDS实例主备自动切换的设置。
///
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
/// - RDS MariaDB
///
/// # Error Codes
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn describe_ha_switch_config(
&self,
req: DescribeHASwitchConfig,
) -> impl std::future::Future<Output = crate::Result<DescribeHASwitchConfigResponse>> + Send
{
self.call(req)
}
/// # RDS实例主备切换
///
/// 该接口用于RDS实例的手动主备切换。
///
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
/// - RDS MariaDB
///
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
///
/// - [RDS MySQL主备切换](~~96054~~)
/// - [RDS PostgreSQL主备切换](~~96747~~)
/// - [RDS SQL Server主备切换](~~95659~~)
/// - [RDS MariaDB主备切换](~~97127~~)
///
/// # Error Codes
/// - `GeneralIns.Creating`: The general instance is creating.
/// - `GeneralIns.Maintaining`: The general instance is maintaining.
/// - `GeneralIns.Switching`: The general instance is Switching.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn switch_db_instance_ha(
&self,
req: SwitchDBInstanceHA,
) -> impl std::future::Future<Output = crate::Result<SwitchDBInstanceHAResponse>> + Send {
self.call(req)
}
/// # 开关历史事件
///
/// 该接口用于开启或关闭RDS的历史事件功能。
///
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
/// - RDS MariaDB
///
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
///
/// - [RDS MySQL历史事件](~~129759~~)
/// - [RDS PostgreSQL历史事件](~~131008~~)
/// - [RDS SQL Server历史事件](~~131013~~)
/// - [RDS MariaDB历史事件](~~131010~~)
///
/// # Error Codes
/// - `RegionNotSupport`: The region is not supported.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidRegion.NotFound`: Specified Region does not exist in RDS.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn modify_action_event_policy(
&self,
req: ModifyActionEventPolicy,
) -> impl std::future::Future<Output = crate::Result<ModifyActionEventPolicyResponse>> + Send
{
self.call(req)
}
/// # 查询历史事件
///
/// 该接口用于查询RDS历史事件记录列表。
///
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
/// - RDS MariaDB
///
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
///
/// - [RDS MySQL历史事件](~~468953~~)
/// - [RDS PostgreSQL历史事件](~~2569306~~)
/// - [RDS SQL Server历史事件](~~2571444~~)
/// - [RDS MariaDB历史事件](~~2571339~~)
///
/// # Error Codes
/// - `InvalidStartTime.Format`: Specified start time is not valid.
/// - `InvalidParameterCombination`: The end time must be greater than the start time
/// - `RegionNotSupport`: The region is not supported.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidRegion.NotFound`: Specified Region does not exist in the RDS
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn describe_events(
&self,
req: DescribeEvents,
) -> impl std::future::Future<Output = crate::Result<DescribeEventsResponse>> + Send {
self.call(req)
}
/// # 查询RDS历史事件功能是否开启
///
/// 该接口用于查询RDS的历史事件功能是否开启。
///
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
/// - RDS MariaDB
///
/// # Error Codes
/// - `RegionNotSupport`: The region does not support.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidRegion.NotFound`: Specified Region does not exist in RDS.
/// - `InvalidUser.NotFound`: Specified user does not exist.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn describe_action_event_policy(
&self,
req: DescribeActionEventPolicy,
) -> impl std::future::Future<Output = crate::Result<DescribeActionEventPolicyResponse>> + Send
{
self.call(req)
}
/// # 查询通知
///
/// 该接口用于查询RDS的通知。
///
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
/// - RDS MariaDB
///
/// ### 功能说明
/// RDS通知会以高亮的形式展示于RDS控制台顶部,包含续费提醒、实例创建失败提醒等。
///
/// 通过本接口查询了通知以后,您可以调用[ConfirmNotify](~~610444~~)将该通知标记为已确认,代表您已知晓该通知的内容。
///
/// # Error Codes
/// - `Param.Invalid`: Param invalid
/// - `Param.Invalid.TimeEndBeforeStart`: Param invalid. End time before start time
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn query_notify(
&self,
req: QueryNotify,
) -> impl std::future::Future<Output = crate::Result<QueryNotifyResponse>> + Send {
self.call(req)
}
/// # 确认通知
///
/// 该接口用于确认主账号下RDS控制台的轮播消息。
///
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
/// - RDS MariaDB
///
/// ### 功能说明
/// 您可以先调用[QueryNotify](~~610443~~)查询通知,然后调用本接口将该通知标记为已确认,代表您已知晓该通知的内容。
///
/// # Error Codes
/// - `InvalidNotifyId`: No auth to confirm record
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn confirm_notify(
&self,
req: ConfirmNotify,
) -> impl std::future::Future<Output = crate::Result<ConfirmNotifyResponse>> + Send {
self.call(req)
}
/// # 获取RDS资源设置(停止维护)
///
/// 该接口用于获取实例资源的通知设置信息,已停止维护:可以正常调用,但不再维护。
///
/// 该接口已停止维护:接口仍可以正常调用,但阿里云不再维护该接口。
///
/// # Error Codes
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
#[deprecated]
pub fn describe_rds_resource_settings(
&self,
req: DescribeRdsResourceSettings,
) -> impl std::future::Future<Output = crate::Result<DescribeRdsResourceSettingsResponse>> + Send
{
self.call(req)
}
/// # 创建数据库账号
///
/// 该接口用于创建数据库账号。
///
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
/// - RDS MariaDB
///
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
///
/// - [RDS MySQL创建账号](~~96089~~)
/// - [RDS PostgreSQL创建账号](~~96753~~)
/// - [RDS SQL Server创建账号](~~95810~~)
/// - [RDS MariaDB创建账号](~~97132~~)
///
/// # Error Codes
/// - `GeneralIns.Creating`: The general instance is creating.
/// - `GeneralIns.Maintaining`: The general instance is maintaining.
/// - `GeneralIns.Switching`: The general instance is Switching.
/// - `InvalidEngineVersion.NotSupported`: Current db instance does not support sysadmin.
/// - `Database.ConnectError`: Database connect error. please check instance status and database processlist
/// - `Account.AddError`: Create Account failed, please check your input value or may your input value not satisfy instance current policy
/// - `InvalidAccountPassword.Format`: Specified account password is not valid.
/// - `InvalidAccountDescription.Format`: Specified account description is not valid.
/// - `InvalidGeneralGroupNameOrGdnInstanceName`: The specified params generalGroupName or gdnInstanceName should not be null.
/// - `InvalidAccountPrivilege.Malformed`: Specified account privilege is not valid.
/// - `InvalidAccountName.Forbid`: Specified account name is a keyword in RDS.
/// - `InvalidDBDescription.Format`: Specified DB description is not valid.
/// - `%s`: DB Operation Failed:%s.
/// - `InvalidAccountType.Format`: The first account can't be normal type.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `Account.QueryError`: Query Account failed, please check your input value.
/// - `InvalidConnectionInfo`: Specified ConnectionInfo is not valid.
/// - `InvalidCharacter.DbOrAccount`: The database name or account name contains invalid characters.
/// - `InstanceAccountSameWithOsAccount`: The instance account name cannot be the same as the OS account name.
/// - `InvalidDBName.Duplicate`: Specified DB name already exists in the This instance.
/// - `GlobalReadonlyAccountMaxCountExceed`: The number of global read-only accounts exceeds the limit.
/// - `IncorrectDBInstanceState`: Current DB instance state does not support this operation.
/// - `IncorrectAccountType`: Current account type does not support this operation.
/// - `AccountLimitExceeded`: AccountQuotaExceeded: Exceeding the allowed amount of account
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidDBInstanceName.NotFound`: The database instance does not exist.
/// - `IncorrectDBInstanceLockMode`: Current DB instance lock mode does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn create_account(
&self,
req: CreateAccount,
) -> impl std::future::Future<Output = crate::Result<CreateAccountResponse>> + Send {
self.call(req)
}
/// # 删除数据库账号
///
/// 该接口用于删除数据库账号。
///
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
/// - RDS MariaDB
///
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
///
/// - [RDS MySQL删除数据库账号](~~96104~~)
/// - [RDS PostgreSQL删除数据库账号](~~147649~~)
/// - [RDS SQL Server删除数据库账号](~~95694~~)
/// - [RDS MariaDB删除数据库账号](~~97135~~)
///
/// # Error Codes
/// - `%s`: DB Operation Failed:%s.
/// - `Database.ConnectError`: Database connect error. please check instance status and database processlist
/// - `GdnRole.NotSupport`: Specified gdn role is not support.
/// - `IncorrectAccountStatus`: Current account status does not support this operation.
/// - `Account.DeleteError`: Failed to delete the account. Parameter values are invalid, or the request is waiting for locks.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `DbossGeneralError`: The instance is being created. Please wait.
/// - `InvalidCharacter.DbOrAccount`: The database name or account name contains invalid characters.
/// - `Account.DelError`: Failed to delete the account. Check the request or the input parameters. Other threads in the instance may be waiting for the lock or the host value of the current database account is not set to % (allows logins from all hosts).
/// - `AccountActionForbidden`: Some objects depend on account.
/// - `Account.SupabaseAdminRestricted`: This account is managed by Supabase and is restricted from direct modification. Please use the Supabase Console or API.
/// - `IncorrectDBInstanceType`: Current DB instance engine and type does not support operations.
/// - `IncorrectAccountType`: Current account type does not support this operation.
/// - `IncorrectDBInstanceState`: Current DB instance state does not support this operation.
/// - `IncorrectDBInstanceCharacterType`: Current DB Instance character_type does not support this operation.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidDBInstanceName.NotFound`: The database instance does not exist.
/// - `IncorrectDBInstanceLockMode`: Current DB instance lock mode does not support this operation.
/// - `InvalidAccountName.NotFound`: Specified account name does not exist.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn delete_account(
&self,
req: DeleteAccount,
) -> impl std::future::Future<Output = crate::Result<DeleteAccountResponse>> + Send {
self.call(req)
}
/// # 修改SQL Server账号密码策略
///
/// 该接口用于修改RDS SQL Server数据库的账号密码策略。
///
/// ### 适用引擎
///
/// RDS SQL Server(不支持共享型实例及2008 R2版本实例)
///
/// > 使用该接口前,您需要预先设置SQL Server账号密码策略。具体操作,请参见[ModifyAccountSecurityPolicy](~~2848321~~)。
///
/// ### 相关功能文档
/// [RDS SQL Server自定义账号密码策略](~~2845728~~)
///
/// # Error Codes
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn modify_account_check_policy(
&self,
req: ModifyAccountCheckPolicy,
) -> impl std::future::Future<Output = crate::Result<ModifyAccountCheckPolicyResponse>> + Send
{
self.call(req)
}
/// # 修改数据库账号的备注信息
///
/// 该接口用于修改数据库账号的描述信息。
///
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
/// - RDS MariaDB
///
/// # Error Codes
/// - `%s`: DB Operation Failed:%s.
/// - `InvalidDBDescription.Format`: Specified DB description is not valid.
/// - `Account.UpdateError`: Account is invalid.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `IncorrectDBInstanceType`: Current DB instance engine and type does not support operations.
/// - `IncorrectDBInstanceCharacterType`: Current DB Instance character_type does not support this operation.
/// - `IncorrectDBInstanceState`: Current DB instance state does not support this operation.
/// - `IncorrectAccountType`: Current account type does not support this operation.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidDBInstanceName.NotFound`: The database instance does not exist.
/// - `IncorrectDBInstanceLockMode`: Current DB instance lock mode does not support this operation.
/// - `InvalidAccountName.NotFound`: Specified account name does not exist.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn modify_account_description(
&self,
req: ModifyAccountDescription,
) -> impl std::future::Future<Output = crate::Result<ModifyAccountDescriptionResponse>> + Send
{
self.call(req)
}
/// # 修改RDS PostgreSQL实例pg_hba.conf文件配置
///
/// 该接口用于修改RDS PostgreSQL实例的pg_hba.conf文件配置。
///
/// ### 适用引擎
/// RDS PostgreSQL
///
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
///
/// - [RDS PostgreSQL接入自建域](~~349288~~)
/// - [PostgreSQL pg_hba.conf介绍](https://www.postgresql.org/docs/11/auth-pg-hba-conf.html)
///
/// # Error Codes
/// - `HbaItem.InvalidType`: Specified hba item type is invalid.
/// - `HbaItem.InvalidMethod`: Specified hba item auth method is invalid.
/// - `HbaItem.InvalidIPMask`: Specified hba item ip mask is invalid.
/// - `HbaItem.InvalidPriority`: Specified hba item priorityId is out of range or duplicate.
/// - `HbaItemOpsType.Invalid`: Specified hba opsType is invalid.
/// - `InvalidConfigValue`: The ConfigValue is not valid
/// - `MinorVersionNotSupport`: The current database minor version does not support the operation.
/// - `InvalidDBInstanceName.NotFound`: The specified DB instance name does not exist.
/// - `IncorrectDBInstanceType`: Current DB instance type does not support this operation.
/// - `InvalidIP.Format`: The specified IP address is illegal or invalid.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `HbaItemPriorityIdAlreadyExist`: Specified hba item priorityId is exist.
/// - `IncorrectDBInstanceState`: Current DB instance state does not support this operation.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `HbaItemPriorityIdNotFound`: Specified hba item priorityId is not found.
/// - `IncorrectDBInstanceLockMode`: Current DB instance lock mode does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn modify_pg_hba_config(
&self,
req: ModifyPGHbaConfig,
) -> impl std::future::Future<Output = crate::Result<ModifyPGHbaConfigResponse>> + Send {
self.call(req)
}
/// # 查询数据库账号信息
///
/// 该接口用于查询RDS实例的账号信息。
///
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
/// - RDS MariaDB
///
/// # Error Codes
/// - `%s`: DB Operation Failed:%s.
/// - `IO.Exception`: IO exception, retry later.
/// - `Database.ConnectError`: Database connect error. please check instance status and database processlist
/// - `InvalidDBInstanceStatus.NotSupport`: The Specified instance status is not supported to query account list.
/// - `InvalidEngine.Malformed`: Specified engine is not valid.
/// - `Account.QueryError`: Query Account failed, please check your input value.
/// - `SqlExcutionFailed`: Database is already open and can only have one user at a time.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ConcurrentLimit`: The request processing has been concurrent limit.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `DbossGeneralError`: The instance is being created. Please wait.
/// - `InvalidCharacter.DbOrAccount`: The database name or account name contains invalid characters.
/// - `NoAvailablePaymentMethod`: No payment method is specified for account. We recommend that you add a payment method.
/// - `IncorrectDBInstanceState`: Current DB instance state does not support this operation.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidDBInstanceName.NotFound`: The database instance does not exist.
/// - `IncorrectDBInstanceLockMode`: Current DB instance lock mode does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `NetworkOrSqlTimeoutError`: Failed to create login due to potential SQL Server overload or other issues that may cause the login creation fail. Please retry later.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn describe_accounts(
&self,
req: DescribeAccounts,
) -> impl std::future::Future<Output = crate::Result<DescribeAccountsResponse>> + Send {
self.call(req)
}
/// # 获取实例的保留关键词信息
///
/// 该接口用于查询RDS实例的保留关键字,即创建数据库或账号时禁用的关键字。
///
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
/// - RDS MariaDB
///
/// # Error Codes
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn describe_instance_keywords(
&self,
req: DescribeInstanceKeywords,
) -> impl std::future::Future<Output = crate::Result<DescribeInstanceKeywordsResponse>> + Send
{
self.call(req)
}
/// # 查询RDS PostgreSQL实例pg_hba.conf文件配置
///
/// 该接口用于查询RDS PostgreSQL实例的pg_hba.conf文件的配置。
///
/// ### 适用引擎
/// RDS PostgreSQL
///
/// # Error Codes
/// - `IncorrectDBInstanceType`: Current DB instance type does not support this operation.
/// - `InvalidDBInstanceName.NotFound`: The specified DB instance name does not exist.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn describe_pg_hba_config(
&self,
req: DescribePGHbaConfig,
) -> impl std::future::Future<Output = crate::Result<DescribePGHbaConfigResponse>> + Send {
self.call(req)
}
/// # 查询RDS PostgreSQL实例pg_hba.conf文件修改记录
///
/// 该接口用于查询RDS PostgreSQL实例的pg_hba.conf文件的修改记录。
///
/// ### 适用引擎
/// RDS PostgreSQL
///
/// # Error Codes
/// - `InvalidStartTime.Format`: Specified start time is not valid.
/// - `InvalidEndTime.Format`: Specified end time is not valid.
/// - `IncorrectDBInstanceType`: Current DB instance type does not support this operation.
/// - `InvalidDBInstanceName.NotFound`: The specified DB instance name does not exist.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn describe_modify_pg_hba_config_log(
&self,
req: DescribeModifyPGHbaConfigLog,
) -> impl std::future::Future<Output = crate::Result<DescribeModifyPGHbaConfigLogResponse>> + Send
{
self.call(req)
}
/// # 重置数据库账号的密码
///
/// 该接口用于重置数据库账号的密码。
///
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
/// - RDS MariaDB
///
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
///
/// - [RDS MySQL重置密码](~~96100~~)
/// - [RDS PostgreSQL重置密码](~~96814~~)
/// - [RDS SQL Server重置密码](~~95691~~)
/// - [RDS MariaDB重置密码](~~97133~~)
///
/// # Error Codes
/// - `%s`: DB Operation Failed:%s.
/// - `Database.ConnectError`: Database connect error. please check instance status and database processlist
/// - `GdnRole.NotSupport`: Specified gdn role is not support.
/// - `InvalidAccountPassword.Format`: Specified account password is not valid.
/// - `IncorrectAccountStatus`: Current account status does not support this operation.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidParam`: Parameter error, please check the parameters.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `DbossGeneralError`: The instance is being created. Please wait.
/// - `Account.UpdateError`: Failed to update the account. Check the request parameters or instance parameter policies. Make sure that the host value of the account is set to % (allows logins from all hosts).
/// - `Account.SupabaseAdminRestricted`: This account is managed by Supabase and is restricted from direct modification. Please use the Supabase Console or API.
/// - `IncorrectDBInstanceType`: Current DB instance type does not support this operation.
/// - `IncorrectDBInstanceState`: Current DB instance state does not support this operation.
/// - `IncorrectAccountType`: Current account type does not support this operation.
/// - `IncorrectDBInstanceCharacterType`: Current DB Instance character_type does not support this operation.
/// - `IncorrectAccountPrivilegeType`: the current account privilege type does not support this operation.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidDBInstanceName.NotFound`: The database instance does not exist.
/// - `IncorrectDBInstanceLockMode`: Current DB instance lock mode does not support this operation.
/// - `InvalidAccountName.NotFound`: Specified account name does not exist.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn reset_account_password(
&self,
req: ResetAccountPassword,
) -> impl std::future::Future<Output = crate::Result<ResetAccountPasswordResponse>> + Send {
self.call(req)
}
/// # 锁定RDS PostgreSQL数据库账号
///
/// 该接口用于锁定RDS PostgreSQL实例的数据库账号。
///
/// ### 适用引擎
/// RDS PostgreSQL
///
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
///
/// [RDS PostgreSQL锁定账号](~~147649~~)
///
/// # Error Codes
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `Account.SupabaseAdminRestricted`: This account is managed by Supabase and is restricted from direct modification. Please use the Supabase Console or API.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn lock_account(
&self,
req: LockAccount,
) -> impl std::future::Future<Output = crate::Result<LockAccountResponse>> + Send {
self.call(req)
}
/// # 解锁RDS PostgreSQL数据库账号
///
/// 该接口用于解锁RDS PostgreSQL实例的数据库账号。
///
/// ### 适用引擎
/// RDS PostgreSQL
///
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
///
/// [RDS PostgreSQL锁定账号](~~147649~~)
///
/// # Error Codes
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn unlock_account(
&self,
req: UnlockAccount,
) -> impl std::future::Future<Output = crate::Result<UnlockAccountResponse>> + Send {
self.call(req)
}
/// # 授权账号访问数据库
///
/// 该接口用于授予指定数据库账号对单个或多个数据库的访问权限。
///
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
/// - RDS MariaDB
///
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
///
/// - [RDS MySQL修改账号权限](~~96101~~)
/// - [RDS SQL Server修改账号权限](~~95692~~)
/// - [RDS MariaDB修改账号权限](~~97134~~)
/// - [RDS PostgreSQL权限详情](~~257684~~)
///
/// # Error Codes
/// - `%s`: DB Operation Failed:%s.
/// - `Account.UpdateError`: Update Account failed, please check your input value
/// - `Database.ConnectError`: Database connect error. please check instance status and database processlist
/// - `DbRestoring`: Database is in restoring state.
/// - `InvalidAccountPrivilege.Malformed`: Specified account privilege is not valid.
/// - `IncorrectAccountStatus`: Current account status does not support this operation.
/// - `IncorrectAccount`: Current DB instance account does not support this operation.
/// - `InvalidDBNameOrAccountPrivilege`: Account permissions and database names must correspond.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `DbossGeneralError`: The instance is being created. Please wait.
/// - `InvalidCharacter.DbOrAccount`: The database name or account name contains invalid characters.
/// - `IncorrectDBInstanceType`: Current DB instance type does not support this operation.
/// - `IncorrectDBInstanceState`: Current DB instance state does not support this operation.
/// - `IncorrectAccountType`: Current account type does not support this operation.
/// - `IncorrectAccountPrivilegeType`: the current account privilege type does not support this operation.
/// - `OperationDenied.AccountMode`: The operation is not permitted due to account mode of instance.
/// - `IncorrectDBInstanceCharacterType`: Current DB Instance character_type does not support this operation.
/// - `SqlExcutionFailed`: Failed to connect to host: connection timed out.
/// - `SQLPermissionOperationFailed`: The T-SQL statement for account operation on the current RDS instance failed. For specific reasons, please refer the info returned by SQL Server in the RDSAPI logs.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `UnsupportedByBlueGreenDeployment`: Operation prohibited due to blue green deployment.
/// - `IncorrectDBInstanceLockMode`: Current DB instance lock mode does not support this operation.
/// - `InvalidAccountName.NotFound`: Specified account name does not exist.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn grant_account_privilege(
&self,
req: GrantAccountPrivilege,
) -> impl std::future::Future<Output = crate::Result<GrantAccountPrivilegeResponse>> + Send
{
self.call(req)
}
/// # 授权服务账号
///
/// 该接口用于授权服务账号。
///
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS SQL Server
///
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
///
/// - [MySQL授权服务账号](~~96102~~)
/// - [SQL Server授权服务账号](~~95693~~)
///
/// # Error Codes
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn grant_operator_permission(
&self,
req: GrantOperatorPermission,
) -> impl std::future::Future<Output = crate::Result<GrantOperatorPermissionResponse>> + Send
{
self.call(req)
}
/// # 撤销服务账号权限
///
/// 该接口用于撤销阿里云服务账号对RDS实例的访问权限。
///
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
///
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
///
/// - [MySQL授权服务账号](~~96102~~)
/// - [PostgreSQL授权服务账号](~~146887~~)
/// - [SQL Server授权服务账号](~~95693~~)
///
/// # Error Codes
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn revoke_operator_permission(
&self,
req: RevokeOperatorPermission,
) -> impl std::future::Future<Output = crate::Result<RevokeOperatorPermissionResponse>> + Send
{
self.call(req)
}
/// # 撤销账号对数据库的访问权限
///
/// 该接口用于撤销账号对数据库的访问权限。
///
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS SQL Server
/// - RDS MariaDB
///
/// ### 前提条件
/// * 实例状态为运行中。
/// * 数据库状态为运行中。
///
/// ### 注意事项
/// * 具体撤销的权限包括SELECT、INSERT、UPDATE、DELETE、CREATE、DROP、REFERENCES、INDEX、ALTER、CREATE TEMPORARY TABLES、LOCK TABLES、EXECUTE、CREATE VIEW、SHOW VIEW、CREATE ROUTINE 、ALTER ROUTINE、EVENT、TRIGGER;
/// * 该接口暂不支持SQL Server 2017集群系列和PostgreSQL实例。
///
/// # Error Codes
/// - `%s`: DB Operation Failed:%s.
/// - `Account.UpdateError`: Update Account failed, please check your input value
/// - `Database.ConnectError`: Database connect error. please check instance status and database processlist
/// - `DbRestoring`: Database is in restoring state.
/// - `SqlExcutionFailed`: Database is in transition. Try the statement later.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `InvalidCharacter.DbOrAccount`: The database name or account name contains invalid characters.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn revoke_account_privilege(
&self,
req: RevokeAccountPrivilege,
) -> impl std::future::Future<Output = crate::Result<RevokeAccountPrivilegeResponse>> + Send
{
self.call(req)
}
/// # 重置高权限账号权限
///
/// 该接口用于重置高权限账号的权限。
///
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS SQL Server
/// - RDS MariaDB
///
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
///
/// [重置高权限账号](~~140724~~)
///
/// # Error Codes
/// - `Account.UpdateError`: Update Account failed, please check your input value
/// - `Database.ConnectError`: Database connect error. please check instance status and database processlist
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn reset_account(
&self,
req: ResetAccount,
) -> impl std::future::Future<Output = crate::Result<ResetAccountResponse>> + Send {
self.call(req)
}
/// # 检查账号名称是否可用
///
/// 该接口用于检查目标需要创建的账号名称是否可用。
///
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
/// - RDS MariaDB
///
/// # Error Codes
/// - `Database.ConnectError`: Database connect error. please check instance status and database processlist
/// - `InvalidConnectionInfo`: Specified ConnectionInfo is not valid.
/// - `Account.QueryError`: Query Account failed, please check your input value.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn check_account_name_available(
&self,
req: CheckAccountNameAvailable,
) -> impl std::future::Future<Output = crate::Result<CheckAccountNameAvailableResponse>> + Send
{
self.call(req)
}
/// # 创建数据库
///
/// 该接口用于在RDS实例下创建数据库。
///
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
/// - RDS MariaDB
///
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
///
/// - [RDS MySQL创建数据库](~~96105~~)
/// - [RDS PostgreSQL创建数据库](~~96758~~)
/// - [RDS SQL Server创建数据库](~~95698~~)
/// - [RDS MariaDB创建数据库](~~97136~~)
///
/// # Error Codes
/// - `%s`: DB Operation Failed:%s.
/// - `EngineMigration.ActionDisabled`: Specified action is disabled while custins is in engine migration.
/// - `Database.ConnectError`: Database connect error. please check instance status and database processlist
/// - `InvalidDescription.Format`: Specified description is not valid.
/// - `InvalidDBName.Forbid`: Specified DB name is a keyword in RDS.
/// - `InvalidAccountName.Forbid`: Specified account name is a keyword in RDS.
/// - `InvalidAccountPrivilege.Malformed`: Specified account privilege is not valid.
/// - `IncorrectDBInstanceServiceType`: Current DB instance top type does not support this operation.
/// - `Database.AddError`: Create Db failed, please check input value and instance status.
/// - `Database.QueryError`: invalid value, may include special character.
/// - `SqlExcutionFailed`: Due to the limit number you can't create a database.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `InvalidDBInstanceIdOrDBInstanceName`: The specified params DBInstanceId or DBInstanceName should not be empty.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `InvalidCharacter.DbOrAccount`: The database name or account name contains invalid characters.
/// - `InvalidDBName.Duplicate`: Specified DB name already exists in the This instance.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `UnsupportedByBlueGreenDeployment`: Operation prohibited due to blue green deployment.
/// - `InvalidDBInstanceName.NotFound`: The database instance does not exist.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn create_database(
&self,
req: CreateDatabase,
) -> impl std::future::Future<Output = crate::Result<CreateDatabaseResponse>> + Send {
self.call(req)
}
/// # 删除数据库
///
/// 该接口用于删除RDS实例中指定数据库。
///
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
/// - RDS MariaDB
///
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
///
/// - [RDS MySQL删除数据库](~~96106~~)
/// - [RDS PostgreSQL删除数据库](~~96759~~)
/// - [RDS SQL Server删除数据库](~~95699~~)
/// - [RDS MariaDB删除数据库](~~97137~~)
///
/// # Error Codes
/// - `Database.ConnectError`: Database connect error. please check instance status and database processlist
/// - `InvalidDBName.Forbid`: Specified DB name is a keyword in RDS.
/// - `Database.DelError`: Failed to delete the database. Check the specified parameters and the instance state.
/// - `ColdDBHasSameNameWithOnlineDB`: The instance has cold db and online db with the same name.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `InvalidCharacter.DbOrAccount`: The database name or account name contains invalid characters.
/// - `IncorrectDBInstanceType`: Current DB instance type does not support this operation.
/// - `IncorrectDBInstanceState`: Current DB instance state does not support this operation.
/// - `OperationDenied.AccountMode`: The operation is not permitted due to account mode of instance.
/// - `IncorrectDBInstanceCharacterType`: Current DB Instance character_type does not support this operation.
/// - `IncorrectDBType`: The current DB type does not support this operation.
/// - `IncorrectDBState`: The current DB state does not support this operation.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `UnsupportedByBlueGreenDeployment`: Operation prohibited due to blue green deployment.
/// - `InvalidDBInstanceName.NotFound`: The database instance does not exist.
/// - `IncorrectDBInstanceLockMode`: Current DB instance lock mode does not support this operation.
/// - `InvalidDBName.NotFound`: Specified one or more DB name does not exist or DB status does not support.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn delete_database(
&self,
req: DeleteDatabase,
) -> impl std::future::Future<Output = crate::Result<DeleteDatabaseResponse>> + Send {
self.call(req)
}
/// # 复制数据库
///
/// 复制数据库SQL Server 2008 R2版。
///
/// # Error Codes
/// - `InvalidDBName.Format`: Specified DB name is not valid.
/// - `InvalidDBName.Forbid`: Specified DB name is a keyword in RDS.
/// - `InvalidDBName.Duplicate`: Specified DB name already exists in the This instance.
/// - `InvalidAccountName.Format`: Specified account name is not valid.
/// - `InvalidAccountName.Forbid`: Specified account name is a keyword in RDS.
/// - `InvalidCharacterSetName.Format`: Specified character set name is not valid.
/// - `InvalidAccountPrivilege.Malformed`: Specified account privilege is not valid.
/// - `InvalidAccountPassword.Format`: Specified account password is not valid.
/// - `InvalidDBDescription.Format`: Specified DB description is not valid.
/// - `InvalidReserveAccount.Format`: Specified ReserveAccount is not valid.
/// - `IncorrectEngineVersion`: Current engine version does not support operations.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `DBLimitExceeded`: DBQuotaExceeded: Exceeding the allowed amount of DB.
/// - `AccountLimitExceeded`: AccountQuotaExceeded: Exceeding the allowed amount of account
/// - `IncorrectDBInstanceState`: Current DB instance state does not support this operation.
/// - `IncorrectDBInstanceType`: Current DB instance type does not support this operation.
/// - `OperationDenied.AccountMode`: The operation is not permitted due to account mode of instance.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidDBName.NotFound`: Specified one or more DB name does not exist or DB status does not support.
/// - `IncorrectDBInstanceLockMode`: Current DB instance lock mode does not support this operation.
/// - `InvalidDBInstance.NotFound`: Specified instance does not exist or not support.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn copy_database(
&self,
req: CopyDatabase,
) -> impl std::future::Future<Output = crate::Result<CopyDatabaseResponse>> + Send {
self.call(req)
}
/// # 修改数据库备注说明
///
/// 该接口用于修改数据库的备注。
///
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
/// - RDS MariaDB
///
/// # Error Codes
/// - `%s`: DB Operation Failed:%s.
/// - `Database.ConnectError`: Database connect error. please check instance status and database processlist
/// - `IncorrectDBInstanceLockMode.ValueNotSupported`: The Current DB instance lock mode does not support this operation.
/// - `InvalidDBDescription.Format`: Specified DB description is not valid.
/// - `InvalidDBName.NotFound`: Specified DB name does not exist.
/// - `Database.UpdateError`: Update Db failed, please check input value and instance status.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `IncorrectDBInstanceType`: Current DB instance engine and type does not support operations.
/// - `IncorrectDBInstanceState`: Current DB instance state does not support this operation.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidDBInstanceName.NotFound`: The database instance does not exist.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn modify_db_description(
&self,
req: ModifyDBDescription,
) -> impl std::future::Future<Output = crate::Result<ModifyDBDescriptionResponse>> + Send {
self.call(req)
}
/// # 修改数据库属性
///
/// 该接口用于修改RDS SQL Server数据库属性。
///
/// ### 适用引擎
/// - RDS SQL Server
///
/// ### 相关功能文档
/// 当前该接口支持的功能为[修改SQL Server数据库属性](~~2401398~~)、[云盘数据归档OSS](~~2767189~~),且通过API使用数据归档OSS功能前,请先在控制台开启数据归档功能。
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
///
/// # Error Codes
/// - `SqlExecuteFailedOrTimeout`: %s.
/// - `InvalidDatabasePropertyValue`: Specified value for the database property is not valid.
/// - `InvalidDatabaseProperty`: Specified name for the database property is not valid.
/// - `DatabasePropertyModificationFail`: Database property modification failed, possibly due to high workload on the database or inability to obtain an exclusive lock. Please attempt to modify the property during periods of low workload.
/// - `InvalidDatabaseVersion`: Specified database property is not compatible with the SQL Server major version.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `UserAlreadyExistInDb`: The current login already has a mapped user with the same name in the specific database. please try removing the existing user and retrying.
/// - `InvalidDiskType`: Current disk type does not support this operation.
/// - `CurrentInsHasColdDB`: The current instance has cold storage db.
/// - `CurrentInsHasColdStorage`: Current instance has cold storage.
/// - `ColdDBHasSameNameWithOnlineDB`: The instance has cold db and online db with the same name.
/// - `DiskSpaceInsufficientForColdOperation`: Insufficient disk space to bring db online.
/// - `InvalidRestoreTimeSpecified`: Unable to restore to the specified time, because the database is in cold storage at this time. Please choose a valid restore point.
/// - `InvalidRestoreDB`: Unable to restore, because the database is in cold storage now. Please skip this database.
/// - `CurrentDBIsInColdStorage`: current db is cold db.
/// - `ColdDBNumExceedsLimit`: the number of cold db exceeds the limit.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `InvalidCharacter.DbOrAccount`: The database name or account name contains invalid characters.
/// - `StatisticsUpdateNotSupported`: Updating statistics is not supported.
/// - `InvalidDB.NotFound`: Specified db does not exist or DB status does not support.
/// - `IncorrectDBInstanceState`: Current DB instance state does not support this operation.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ConflictingDatabaseOperation`: There is already some operation on the database and the current operation should wait till it is done.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - GET
/// - POST
///
pub fn modify_database_config(
&self,
req: ModifyDatabaseConfig,
) -> impl std::future::Future<Output = crate::Result<ModifyDatabaseConfigResponse>> + Send {
self.call(req)
}
/// # 修改系统字符集排序规则和时区
///
/// 修改RDS SQL Server系统字符集排序规则和时区。
///
/// ### 适用引擎
/// RDS SQL Server
///
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
/// [修改字符集排序规则与时区](~~95700~~)
///
/// # Error Codes
/// - `%s`: DB Operation Failed:%s.
/// - `SqlExcutionFailed`: Database is already open and can only have one user at a time.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `IncorrectDBInstanceType`: The database instance type does not support the operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn modify_collation_time_zone(
&self,
req: ModifyCollationTimeZone,
) -> impl std::future::Future<Output = crate::Result<ModifyCollationTimeZoneResponse>> + Send
{
self.call(req)
}
/// # 查看实例下的数据库信息
///
/// 该接口用于查询RDS实例下的数据库信息。
///
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
/// - RDS MariaDB
///
/// # Error Codes
/// - `%s`: DB Operation Failed:%s.
/// - `Database.ConnectError`: Database connect error. please check instance status and database processlist
/// - `InvalidDBInstanceStatus.NotSupport`: The Specified instance status is not supported to query account list.
/// - `Database.QueryError`: Query Db failed, please check input value and instance status.
/// - `SqlExcutionFailed`: Database is in transition. Try the statement later.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ConcurrentLimit`: The request processing has been concurrent limit.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `InvalidCharacter.DbOrAccount`: The database name or account name contains invalid characters.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `NetworkOrSqlTimeoutError`: Failed to create login due to potential SQL Server overload or other issues that may cause the login creation fail. Please retry later.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn describe_databases(
&self,
req: DescribeDatabases,
) -> impl std::future::Future<Output = crate::Result<DescribeDatabasesResponse>> + Send {
self.call(req)
}
/// # 查询RDS SQL Server支持的字符集排序规则和时区
///
/// 该接口用于查询RDS SQL Server支持的字符集排序规则和时区。
///
/// ### 适用引擎
/// RDS SQL Server
///
/// # Error Codes
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn describe_collation_time_zones(
&self,
req: DescribeCollationTimeZones,
) -> impl std::future::Future<Output = crate::Result<DescribeCollationTimeZonesResponse>> + Send
{
self.call(req)
}
/// # 查看数据库支持的字符集列表
///
/// 该接口用于查询RDS实例支持的字符集。
///
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
/// - RDS MariaDB
///
/// # Error Codes
/// - `InvalidEngine.Malformed`: Specified engine is not valid.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn describe_character_set_name(
&self,
req: DescribeCharacterSetName,
) -> impl std::future::Future<Output = crate::Result<DescribeCharacterSetNameResponse>> + Send
{
self.call(req)
}
/// # RDS SQL Server实例间复制数据库
///
/// 该接口用于在RDS SQL Server实例间复制数据库。
///
/// ### 适用引擎
/// RDS SQL Server
///
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
///
/// [RDS SQL Server实例间数据库复制](~~95702~~)
///
/// ### 使用限制
///
/// - 源实例和目标实例需在同一个阿里云账号下。
/// - 目标实例中**不得存在**与源实例待复制数据库同名的数据库。
/// - 目标实例的可用存储空间**需大于**源实例中待复制数据库占用的空间。存储空间不足时,请及时[扩容](~~95665~~)。
/// - 源实例和目标实例需位于同一地域(可用区可不同),且网络类型需一致。
/// - 源和目标实例不支持[Serverless实例](~~603466~~)类型。迁移Serverless实例,请[通过DTS迁移](~~210947~~)。
/// - 传值时,BackupId或RestoreTime参数**必须任传其一**,都不传将报错。
///
/// # Error Codes
/// - `%s`: DB Operation Failed:%s.
/// - `InvalidBackupSetID`: Invalid backup set id.
/// - `DBCountLimitExceeded`: Db count limit exceeded.
/// - `BackupRestoreNotSupported.BasicHA`: Basic instances cannot be restored to high availability instances, and high availability instances cannot be restored to basic instances.
/// - `BackupRestoreNotSupported.HADedicatedAlwaysOn`: High availability instances cannot be restored to dedicated cluster instances or AlwaysOn instances.
/// - `BackupRestoreNotSupported.ShareDedicatedAlwaysOn`: Shared instances cannot be restored to dedicated cluster instances, AlwaysOn instances, or high availability instances.
/// - `OperationDenied.RestoreTime`: The instance with snapshot backup enabled can only be restored to the instance with snapshot backup enabled.
/// - `OperationDenied.SnapshotBackupSet`: Snapshot backup set can only be restored to the instance with snapshot backup enabled.
/// - `CanNotCopyDBHasTDEEnabled`: The source database has enabled the TDE feature. You cannot copy it to another instance.
/// - `InvalidBackupDBNames.NotFound`: The specified BackupDBNames is not found.
/// - `InvalidBackupDBNames.Malformed`: The specified backup database is not valid.
/// - `InvalidDBName.Format`: Specified DB name is not valid.
/// - `InvalidDBInstanceName.NotFound`: Invalid DBInstanceId NotFound.
/// - `EngineNotSupported`: The engine does not support the operation.
/// - `InvalidTargetDBInstanceName.Format`: Specified Target DB instance name is not valid.
/// - `MasterDBInstanceState.NotSupport`: The Master instance state does not support this operation.
/// - `TargetInstanceEngineNotSupported`: The specified Engine cannot be supported the operation.
/// - `InvalidInstancesRegion.Malformed`: The instance region is not the same as the target instance region.
/// - `InvalidStartTime.Format`: The specified parameter "StartTime" is not valid.
/// - `InvalidEndTime.Format`: The specified parameter "EndTime" is not valid.
/// - `InvalidParameterCombination`: The end time must be greater than the start time
/// - `InvalidBackupSetLocation.Format`: Specified backup set location is not valid.
/// - `InvalidCrossRegionTrans`: Cross region instance trans is not supported
/// - `ErrorParametersConflict`: Parameter BackupsetID and restoretime can only exist one.
/// - `InvalidDBName.NotFound`: Specified DB name does not exist.
/// - `InvalidDBName.Duplicate`: Specified DB name already exists in the This instance.
/// - `ReadDBInstanceNotSupport`: The operation is not permitted due to type of the instance.
/// - `InvalidRecoveryDbInstance.StorageSize`: The disk space of the new instance cannot be less than that of the current instance
/// - `InvalidRecoveryDBNames.Format`: The specified parameter DBNames is not valid.
/// - `InvalidBackupIdOrRestoreTime.NotFound`: The specified parameter BackupId or RestoreTime is not valid.
/// - `Forbidden.RegionNotFound`: The provided RegionId does not exist in our record.
/// - `ImageNotFound`: The specified Image is disabled or is deleted.
/// - `InvalidZone.NotSupportedForStorageType`: The specified zone is closed or invalid for Specified DBInstanceStorageType.
/// - `InvalidEngineOrEngineVersion`: The specified params engine or engineVersion should not be null.
/// - `InvalidGeneralGroupNameOrGdnInstanceName`: The specified params generalGroupName or gdnInstanceName should not be null.
/// - `InvalidVSwitchId.NotFound`: Specified virtual switch is not found in specified VPC.
/// - `CDDC.TargetHostIDNotAvailable`: The target host ID is not available.
/// - `CDDC.AvailableHostsNotEnoughInZone`: Not enough available hosts are in the target zone.
/// - `ReadOnlyInstanceNotSupport`: Specified ReadOnly Instance not support this operation.
/// - `InvalidShareDbInstanceClassNotSupport`: The current instance classType is not support operation.
/// - `InvalidQuantity.NotSupported`: The specified instance quantity is not supported.
/// - `IncorrectMasterDBInstanceState`: Master instance state does not support this operation.
/// - `InvalidDBInstance.ReadDBInstanceExceeded`: Current DB Instance exceeding the allowed amount of read instance.
/// - `InvalidEngineVersion.Malformed`: Specified engine version is not valid.
/// - `InvalidEssdStorageSize`: The cloud ESSD storage size is invalid.
/// - `IncorrectInstanceNetworkType`: The specified parameter InstanceNetworkType is not valid.
/// - `AtLeastTwoVSwitchParamExists`: The specified params(Vswitchs) at least two.
/// - `InvalidIzNo.NotSupported`: Specified VPC zone is not supported.
/// - `InvalidBackupSet`: Specified database does not exists in the backup set.
/// - `InvalidRestoreTimeSpecified`: Unable to restore to the specified time, because the database is in cold storage at this time. Please choose a valid restore point.
/// - `InvalidRestoreDB`: Unable to restore, because the database is in cold storage now. Please skip this database.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `InvalidCharacter.DbOrAccount`: The database name or account name contains invalid characters.
/// - `StorageLimitExceeded`: Exceeding the allowed Storage of DB instance.
/// - `InvalidTempInstance.NotSupport`: The temp db Instance is not support.
/// - `InvalidTargetDBInstanceName.Format`: Specified Target DB instance name is not valid.
/// - `IncorrectDBInstanceState`: The current database instance state does not support the operation.
/// - `IncorrectDBInstanceType`: Current DB instance engine and type does not support operations.
/// - `Forbidden.SnapshotRecovery`: Snapshot backup does not support partial restore
/// - `OperationDenied.Resource`: Specified DB instance class or storage is not available in all Availability Zones.
/// - `ReadonlyDBInstanceStorageExceeded`: You can not create the order with the db instance because The masterInstance storage value exceeding the readonlyInstance storage value.
/// - `MasterDBInstanceClassNotSupport`: You can not create the readonly instance with the master instance class does not support.
/// - `ReadonlyDBInstanceClassNotSupport`: You can not create the readonly instance with the instance class does not support.
/// - `ReadonlyDBInstanceClassLowerThanMasterInstance`: The readonly instance db instance class are lower than master instance db instance class.
/// - `InvalidSwitchType.Malformed`: The specified parameter InvalidSwitchType is not valid.
/// - `UnsupportedCopyDbHighAvailabilityToBasic`: Replicate Database from RDS Category:HighAvailability to RDS Category:Basic is not supported.
/// - `InvalidInstanceVersion`: Source instance version is greater than the target instance version.
/// - `UnsupportedCopyDbShareToHighAvailability`: Replicate Database from RDS Category:Share to RDS Category:HighAvailability is not supported.
/// - `UnsupportedCopyDbAlwaysOnToBasic`: Replicate Database from RDS Category:AlwaysOn to RDS Category:Basic is not supported.
/// - `UnsupportedCopyDbBasicToShare`: Replicate Database from RDS Category:Basic to RDS Category:Share is not supported.
/// - `UnsupportedCopyDbAlwaysOnToHighAvailability`: Replicate Database from RDS Category:AlwaysOn to RDS Category:HighAvailability is not supported.
/// - `UnsupportedCopyDbShareToBasic`: Replicate Database from RDS Category:Share to RDS Category:Basic is not supported.
/// - `UnsupportedCopyDbHighAvailabilityToShare`: Replicate Database from RDS Category:HighAvailability to RDS Category:Share is not supported.
/// - `UnsupportedCopyDbShareToAlwaysOn`: Replicate Database from RDS Category:Share to RDS Category:AlwaysOn is not supported.
/// - `UnsupportedCopyDbAlwaysOnToShare`: Replicate Database from RDS Category:AlwaysOn to RDS Category:Share is not supported.
/// - `InvalidParamTableMeta.RestoreTime`: The specified restore time cannot be covered by the existing backup chain. Please try specifying a different restore time.
/// - `CurrentRecoveryModelNotSupportThisAction`: Current recovery model not supported this action.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidDBInstance.NotFound`: The specified instance does not exist or is not supported.
/// - `StorageLimitExceeded`: Exceeding the allowed Storage of DB instance.
/// - `InvalidInstanceStorageType.NotFound`: The specified DBInstanceStorageType is not found.
/// - `InvalidRegion.NotFound`: Specified Region does not exist in the RDS
/// - `IncorrectVswitchId`: The specified parameter VSwitchId is not valid.
/// - `InsufficientResourceCapacity`: Current cluster resources are insufficient. Try again later.
/// - `InvalidParam`: Invalid params to call rds open api, BakDBNames is not empty.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `NetworkOrSqlTimeoutError`: Failed to create login due to potential SQL Server overload or other issues that may cause the login creation fail. Please retry later.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn copy_database_between_instances(
&self,
req: CopyDatabaseBetweenInstances,
) -> impl std::future::Future<Output = crate::Result<CopyDatabaseBetweenInstancesResponse>> + Send
{
self.call(req)
}
/// # 检查数据库名称是否可用
///
/// 该接口用于检查数据库名称是否重复或不符合命名规范。
///
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
/// - RDS MariaDB
///
/// # Error Codes
/// - `Database.ConnectError`: Database connect error. please check instance status and database processlist
/// - `Database.QueryError`: invalid value, may include special character.
/// - `InvalidDBName.Format`: Specified DB name is not valid.
/// - `InvalidDBName.Forbid`: Specified DB name is a keyword in RDS.
/// - `InvalidDBName.Duplicate`: Specified DB name already exists in the This instance.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `IncorrectDBInstanceType`: Current DB instance engine and type does not support operations.
/// - `IncorrectDBInstanceState`: Current DB instance state does not support this operation.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidDBInstanceName.NotFound`: Invalid DBInstanceId NotFound.
/// - `IncorrectDBInstanceLockMode`: Current DB instance lock mode does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn check_db_name_available(
&self,
req: CheckDBNameAvailable,
) -> impl std::future::Future<Output = crate::Result<CheckDBNameAvailableResponse>> + Send {
self.call(req)
}
/// # 创建只读实例
///
/// 该接口用于为RDS实例创建一个只读实例。
///
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
///
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
///
/// - [RDS MySQL创建只读实例](~~56991~~)
/// - [RDS MySQL创建DuckDB分析实例](~~2950002~~)
/// - [RDS PostgreSQL创建只读实例](~~108959~~)
/// - [RDS PostgreSQL创建DuckDB分析实例](~~2977241~~)
/// - [RDS SQL Server创建只读实例](~~99005~~)
///
/// # Error Codes
/// - `InvalidEngineVersion.Malformed`: The specified parameter EngineVersion is not valid.
/// - `InvalidNetworkTypeClassicWhenCloudStorage`: The Specified InstanceNetworkType value Classic is not valid when choose cloud storage type.
/// - `InvalidSecurityIPList.Malformed`: The specified parameter SecurityIPList is not valid.
/// - `InvalidSecurityIPList.Duplicate`: The Security IP address is not in the available range or occupied.
/// - `InvalidParameter`: The specified parameter dbInstanceId is not valid.
/// - `OperationDenied`: VPC IP is in use, please check.
/// - `InvalidZoneId.NotSupported`: The Specified vpc Zone not supported.
/// - `InvalidAvZone.NotSupport`: Specified availableArea multiZone does not support in RDS.
/// - `CDDC.AvailableHostsNotEnoughInZone`: Not enough available hosts are in the target zone.
/// - `InvalidReadEngineVersionPattern`: The engine versions of the primary instance and the read-only instance do not match.
/// - `InvalidDBInstanceClass.Offline`: The specified instance type is no longer provided. Please specify another instance type.
/// - `SYSTEM.CONCURRENT_OPERATE`: Concurrent operation is detected.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `InvalidDBInstanceName.Duplicate`: Specified DB instance name already exists in the Aliyun RDS.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidRequestId`: The request is copy, check your token.
/// - `InvalidParam.InstanceNetworkType`: Creation of classic network instances is not supported.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `InvalidVSwitchId.Format`: The specified vswitch Id format is incorrect.
/// - `InvalidParameterValue.NotStandard`: Invalid parameter format.
/// - `AtLeastThreeVSwitchAvailableIp`: The primary vswitch requires at least three available IP addresses.
/// - `AtLeastTwoVSwitchAvailableIp`: The primary vswitch requires at least two available IP addresses.
/// - `DuckDBOperationConflictBetweenPrimaryAndReadOnlyInstance`: Current instance is already attached to another duckdb instance, operation is conflict.
/// - `OperationDenied.PrimaryDBInstanceStatus`: The operation is not permitted due to status of primary instance.
/// - `InvalidReadStorageTypePattern`: The storage type of the primary instance and the read-only instance do not match.
/// - `IncorrectCharacterType`: Current DB instance character type does not support this operation.
/// - `InvalidMultiparamZoneInfoList`: Zoneinfo list is invaild.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `BasicCategoryNotSupport`: The Basic category is not supported.
/// - `IncorrectDBInstanceConnType`: Current DB instance conn type does not support this operation.
/// - `InvalidDBInstance.NotFound`: The specified instance does not exist or is not supported.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `CannotDecreaseEssdPerfLevel`: cannot decrease cloud essd performance level.
/// - `InvalidEssdStorageSize`: invalid cloud essd storage size.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn create_read_only_db_instance(
&self,
req: CreateReadOnlyDBInstance,
) -> impl std::future::Future<Output = crate::Result<CreateReadOnlyDBInstanceResponse>> + Send
{
self.call(req)
}
/// # 修改RDS MySQL只读实例的延迟复制时间
///
/// 该接口用于修改RDS MySQL只读实例的延迟复制时间。
///
/// ### 适用引擎
/// RDS MySQL
///
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
///
/// [RDS MySQL只读实例延时复制](~~96056~~)
///
/// # Error Codes
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OperationDenied.DBInstanceType`: The operation is not permitted due to type of instance.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `EngineNotSupported`: Engine specified cannot be supported the operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn modify_readonly_instance_delay_replication_time(
&self,
req: ModifyReadonlyInstanceDelayReplicationTime,
) -> impl std::future::Future<
Output = crate::Result<ModifyReadonlyInstanceDelayReplicationTimeResponse>,
> + Send {
self.call(req)
}
/// # 查询RDS只读实例的延迟信息
///
/// 该接口用于查询RDS只读实例的延迟信息。
///
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
///
/// # Error Codes
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidReadDBInstance.NotFound`: The specified read only database instance does not exist.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn describe_read_db_instance_delay(
&self,
req: DescribeReadDBInstanceDelay,
) -> impl std::future::Future<Output = crate::Result<DescribeReadDBInstanceDelayResponse>> + Send
{
self.call(req)
}
/// # 检查创建DuckDB分析实例前提条件
///
/// 该接口用于检查RDS PostgreSQL主实例是否满足创建DuckDB分析实例的前提条件。对于不满足的条件将返回失败原因,并提供解决方案或建议的目标值。
///
/// ### 适用引擎
/// RDS PostgreSQL
///
/// ### 相关功能文档
/// [DuckDB分析实例](~~2977241~~)
///
/// # Error Codes
/// - `IdempotentParameterMismatch`: The request uses the same client token as a previous, but non-identical request. Do not reuse a client token with different requests, unless the requests are identical.
/// - `ReadonlyInstanceNotSupport`: The operation is not permitted due to type of the instance.
/// - `InvalidEngineVersion`: The specified EngineVersion is invalid.
/// - `MissingParameter.MinorVersionTag`: You must specify the parameter MinorVersionTag.
/// - `Workbench.InternalFailure`: ECS workbench returns an internal failure. Please check password expiration policy and / or other issues.
/// - `DuckDBOperationConflictBetweenPrimaryAndReadOnlyInstance`: Current instance is already attached to another duckdb instance, operation is conflict.
/// - `ReadOnlyInstanceNotSupport`: Read-only instance does not support this operation.
/// - `DBInstanceStatusNotActive`: The status of the current instance is not active.
/// - `IncorrectDBInstanceType`: The database instance type does not support the operation.
/// - `GroupReplicationNotSupport.InvalidEngineVersion`: Group Replication requires the instance engine version to be 8.0.
/// - `IncorrectDBInstance`: The current DB instance does not support this operation.
/// - `IncorrectDBInstanceState`: Current DB instance state does not support this operation.
/// - `IncorrectDBInstanceLockMode`: Current DB instance lock mode does not support this operation.
/// - `InvalidDBInstance.NotFound`: The specified instance does not exist or is not supported.
/// - `InternalFailure`: The request processing has failed due to some unknown error, exception or failure.///
/// # Methods
/// - POST
///
pub fn precheck_duck_db_dependency(
&self,
req: PrecheckDuckDBDependency,
) -> impl std::future::Future<Output = crate::Result<PrecheckDuckDBDependencyResponse>> + Send
{
self.call(req)
}
/// # 创建节点
///
/// 该接口用于为RDS集群系列实例新增节点。
///
/// ### 适用引擎
///
/// <props="china">
///
/// - RDS MySQL
/// - RDS PostgreSQL
///
/// </props>
///
/// <props="intl">RDS MySQL</props>
///
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
///
///
/// <props="china">
///
/// - RDS MySQL:[RDS MySQL集群版增加实例节点](~~464129~~)
/// - RDS PostgreSQL:[RDS PostgreSQL集群版增加实例节点](~~2778876~~)
///
/// </props>
///
/// <props="intl">
///
/// [RDS MySQL集群版增加实例节点](~~464129~~)
///
/// </props>
///
/// # Error Codes
/// - `DBNodeFormatFault`: The specified parameter DBNode is malformed
/// - `DBNodeParameterRequired`: The specified parameter DBNode is required.
/// - `DBNodeParameterTooManyItems`: The specified parameter DBNode has too many items.
/// - `DBNodeParameter.InvalidClassCode`: The ClassCode of the item of the specified parameter DBNode is inconsistent.
/// - `DBNodeParameter.InvalidValue`: The specific param DBNode is not valid.
/// - `DBNodeParameter.NotFound`: The specified parameter DBNode is not valid.
/// - `InvalidMultiTenant`: Multi tenants cannot exist in a same instance.
/// - `InvalidClassCode`: The specification code in the parameter is invalid.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `InvalidOrder.NotFound`: Specified order does not exist in RDS.
/// - `GroupReplicationNotSupport.InvalidEngineVersion`: Group Replication requires the instance engine version to be 8.0.
/// - `GroupReplicationNotSupport.InvalidNodeClassCode`: Group Replication requires the ClassCode of each node to be consistent.
/// - `GroupReplicationNotSupport.InvalidNodeNum`: Group Replication is not supported, the number of nodes must be an odd number greater than or equal to 3.
/// - `GroupReplicationNotSupport.InvalidXengine`: Group Replication is not supported because the instance has xengine tables.
/// - `GroupReplicationNotSupport.MemoryTooSmall`: Group Replication is not supported because the memory is too small.
/// - `OperationDenied.DBType`: The operation is not permitted due to type of the database.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn create_db_nodes(
&self,
req: CreateDBNodes,
) -> impl std::future::Future<Output = crate::Result<CreateDBNodesResponse>> + Send {
self.call(req)
}
/// # 创建实例的Endpoint
///
/// 该接口用于为RDS集群系列实例创建Endpoint。
///
/// ### 适用引擎
///
/// <props="china">
///
/// - RDS MySQL
/// - RDS PostgreSQL
///
/// </props>
///
/// <props="intl">RDS MySQL</props>
///
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
///
/// <props="china">
///
/// - RDS MySQL:[增加集群只读地址](~~464132~~)
/// - RDS PostgreSQL:[增加集群只读地址](~~96788~~)
///
/// </props>
///
/// <props="intl">
///
/// [增加集群只读地址](~~464132~~)
/// </props>
///
/// # Error Codes
/// - `InvalidSourceCategory`: specified source category is invalid.
/// - `InvalidDBInstanceConnType.Format`: Specified DB instance conn type is not valid.
/// - `EndpointNum.Error`: The number of endpoint is too many.
/// - `InvalidNodeItems.DuplicateNodeId`: Duplicate nodeId, please ensure all nodeIds are different.
/// - `InvalidNodeItems.RONode`: ReadOnly endpoint can not contain readonly instance node.
/// - `InvalidNodeItems.RONodeIdPrimary`: ReadOnly endpoint can not contain primary node.
/// - `InvalidNodeItems.JsonFormat`: NodeItems is not a json string.
/// - `InvalidNodeItems.DBInstanceId`: Specified dbInstanceId is invalid
/// - `InvalidNodeItems.NodeId`: Specified Node id is invalid
/// - `EndpointType.NotSupport`: Current db type is not support specified endpoint type.
/// - `OtherEndpoint.Exist`: Other endpoint already exist.
/// - `InvalidPort.Malformed`: Specified port is not valid.
/// - `APICallingFailed`: Api called failed, please check vpc vsw vip
/// - `InvalidDBInstanceName.NotFound`: The specified DB instance name does not exist.
/// - `InvalidNodeItems.BlackNodeItems`: NodeItems is blank.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `IncorrectDBInstanceState`: Current DB instance state does not support this operation.
/// - `InvalidConnVPCId`: Specified conn vpc id is not valid.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `IncorrectDBInstanceLockMode`: Current DB instance lock mode does not support this operation.
/// - `InvalidConnectionString.NotFound`: Specified connection string or net type is not found.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the Aliyun RDS.
/// - `InvalidWeight.Format`: The Specified Weight format is not valid.
/// - `InvalidDBInstance.NotFound`: Specified instance does not exist or not support.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn create_db_instance_endpoint(
&self,
req: CreateDBInstanceEndpoint,
) -> impl std::future::Future<Output = crate::Result<CreateDBInstanceEndpointResponse>> + Send
{
self.call(req)
}
/// # 创建Endpoint外网连接地址
///
/// 该接口用于为RDS集群系列实例创建Endpoint的外网连接地址。
///
/// ### 适用引擎
/// <props="china">
///
/// - RDS MySQL
/// - RDS PostgreSQL
///
/// </props>
///
/// <props="intl">RDS MySQL</props>
///
/// ### 注意事项
/// - 创建Endpoint的外网连接地址,在一个Endpoint没有外网地址时,才可以创建该Endpoint外网地址。
/// - 流量分配权重等配置与该Endpoint的内网地址的配置一致。每一个Endpoint只能有一个外网地址和内网地址。
///
/// # Error Codes
/// - `InvalidSourceCategory`: specified source category is invalid.
/// - `InvalidDBInstanceConnType.Format`: Specified DB instance conn type is not valid.
/// - `IncorrectDBInstanceNetType`: Current DB instance net type does not support this operation.
/// - `EndpointType.NotSupport`: Current db type is not support specified endpoint type.
/// - `APICallingFailed`: Meta db calling failed.
/// - `EngineNotSupported`: The engine does not support the operation.
/// - `InvalidEngineVersion.NotSupport`: The specified parameter "EngineVersion" is not valid.
/// - `InvalidBizType.Format`: Specified biz type is not valid.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `IncorrectDBInstanceState`: Current DB instance state does not support this operation.
/// - `NetTypeExists`: Specified net type already existed.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidDBInstanceName.NotFound`: Invalid DBInstanceId NotFound.
/// - `IncorrectDBInstanceLockMode`: Current DB instance lock mode does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the Aliyun RDS.
/// - `Endpoint.NotFound`: Specified endpoint is not existed.
/// - `InvalidDBInstance.NotFound`: Specified instance does not exist or not support.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn create_db_instance_endpoint_address(
&self,
req: CreateDBInstanceEndpointAddress,
) -> impl std::future::Future<Output = crate::Result<CreateDBInstanceEndpointAddressResponse>> + Send
{
self.call(req)
}
/// # 删除节点
///
/// 该接口用于为RDS集群系列实例删除节点。
///
/// ### 适用引擎
/// <props="china">
///
/// - RDS MySQL
/// - RDS PostgreSQL
///
/// </props>
///
/// <props="intl">RDS MySQL</props>
///
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
///
/// <props="china">
///
/// - RDS MySQL:[RDS MySQL集群版删除实例节点](~~464130~~)
/// - RDS PostgreSQL:[RDS PostgreSQL集群版删除实例节点](~~2778876~~)
///
/// </props>
///
/// <props="intl">
///
/// [RDS MySQL集群版删除实例节点](~~464130~~)
///
/// </props>
///
/// # Error Codes
/// - `DBNodeFormatFault`: The specified parameter DBNode is malformed
/// - `DBNodeIdParameterInvalid`: The specified parameter DBNodeId is malformed.
/// - `DBNodeIdParameterNotFound`: The specified parameter DBNodeId is required.
/// - `DBNodeParameter.TooFewItems`: The specified parameter DBNode has too few items.
/// - `DBNodeParameter.InvalidClassCode`: The ClassCode of the item of the specified parameter DBNode is inconsistent.
/// - `DBNodeIdParameter.NotExists`: The DBNodeId in the parameter does not exist.
/// - `DBNodeIdParameter.IncludePrimary`: The specified parameter DBNodeId include primary node.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `GroupReplicationNotSupport.InvalidEngineVersion`: Group Replication requires the instance engine version to be 8.0.
/// - `GroupReplicationNotSupport.InvalidNodeClassCode`: Group Replication requires the ClassCode of each node to be consistent.
/// - `GroupReplicationNotSupport.InvalidNodeNum`: Group Replication is not supported, the number of nodes must be an odd number greater than or equal to 3.
/// - `GroupReplicationNotSupport.InvalidXengine`: Group Replication is not supported because the instance has xengine tables.
/// - `GroupReplicationNotSupport.MemoryTooSmall`: Group Replication is not supported because the memory is too small.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `OperationDenied.DBType`: The operation is not permitted due to type of the database.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn delete_db_nodes(
&self,
req: DeleteDBNodes,
) -> impl std::future::Future<Output = crate::Result<DeleteDBNodesResponse>> + Send {
self.call(req)
}
/// # 删除实例的Endpoint
///
/// 该接口用于删除RDS集群系列实例的Endpoint。
///
/// ### 适用引擎
/// <props="china">
///
/// - RDS MySQL
/// - RDS PostgreSQL
///
/// </props>
///
/// <props="intl">RDS MySQL</props>
///
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
///
/// <props="china">
///
/// - RDS MySQL:[删除集群只读地址](~~464133~~)
/// - PostgreSQL:[删除集群只读地址](~~96788~~)
///
/// </props>
///
/// <props="intl">
///
/// RDS MySQL:[删除集群只读地址](~~464133~~)
///
/// </props>
///
/// # Error Codes
/// - `InvalidSourceCategory`: specified source category is invalid.
/// - `InvalidDBInstanceConnType.Format`: Specified DB instance conn type is not valid.
/// - `EndpointType.NotSupport`: Current db type is not support specified endpoint type.
/// - `APICallingFailed`: Meta db calling failed.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `IncorrectDBInstanceState`: Current DB instance state does not support this operation.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidDBInstanceName.NotFound`: Invalid DBInstanceId NotFound.
/// - `IncorrectDBInstanceLockMode`: Current DB instance lock mode does not support this operation.
/// - `Endpoint.NotFound`: Specified endpoint is not existed.
/// - `InvalidDBInstance.NotFound`: Specified instance does not exist or not support.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn delete_db_instance_endpoint(
&self,
req: DeleteDBInstanceEndpoint,
) -> impl std::future::Future<Output = crate::Result<DeleteDBInstanceEndpointResponse>> + Send
{
self.call(req)
}
/// # 释放Endpoint外网连接地址
///
/// 该接口用于释放RDS集群系列实例的Endpoint的外网连接地址。
///
/// ### 适用引擎
/// <props="china">
///
/// - RDS MySQL
/// - RDS PostgreSQL
///
/// </props>
///
/// <props="intl">RDS MySQL</props>
///
/// ### 注意事项
/// 删除Endpoint中的地址,目前仅支持删除Endpoint的外网地址。如需删除内网地址,可以直接删除Endpoint。
///
/// # Error Codes
/// - `InvalidSourceCategory`: specified source category is invalid.
/// - `InvalidDBInstanceConnType.Format`: Specified DB instance conn type is not valid.
/// - `InvalidNetType.Format`: Specified NetType is not valid.
/// - `InvalidConnectionString.Format`: Specified connection string is not valid.
/// - `APICallingFailed`: Meta db calling failed.
/// - `InvalidEngineVersion.NotSupport`: The specified parameter "EngineVersion" is not valid.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `IncorrectDBInstanceState`: Current DB instance state does not support this operation.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidDBInstanceName.NotFound`: Invalid DBInstanceId NotFound.
/// - `IncorrectDBInstanceLockMode`: Current DB instance lock mode does not support this operation.
/// - `Endpoint.NotFound`: Specified endpoint is not existed.
/// - `InvalidConnectionString.NotFound`: Specified connection string or net type is not found.
/// - `InvalidDBInstance.NotFound`: Specified instance does not exist or not support.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn delete_db_instance_endpoint_address(
&self,
req: DeleteDBInstanceEndpointAddress,
) -> impl std::future::Future<Output = crate::Result<DeleteDBInstanceEndpointAddressResponse>> + Send
{
self.call(req)
}
/// # 变更RDS实例节点
///
/// 该接口用于变更RDS MySQL集群系列实例节点的规格、存储类型、存储空间。
///
/// ### 适用引擎
///
/// - RDS MySQL
///
/// ### 相关功能文档
/// [变更节点配置](~~2627998~~)
/// ><warning>该API操作涉及费用,请仔细阅读相关功能文档后再进行操作。></warning>
///
/// # Error Codes
/// - `DBNodeFormatFault`: The specified parameter DBNode is malformed
/// - `DBNodeParameterRequired`: The specified parameter DBNode is required.
/// - `DBNodeIdParameter.NotExists`: The specified DBNodeId is not existed.
/// - `SecondaryClassCode.Unsupported`: At least one secondary node has the same classCode as the primary node.
/// - `IncorrectDBInstanceState`: The current instance state does not support this operation.
/// - `InvalidDBInstanceName.NotFound`: The specified DB instance name does not exist.
/// - `InvalidNodeId`: Parameter node id is not valid.
/// - `SlaveClassCode.Unsupported`: Need at least one secondary's class_code same as primary's.
/// - `InvalidDBInstanceStorage`: The specified DBInstanceStorage is invalid.
/// - `UnsupportedOperationDirection.DiskUpgrade`: The specified operation is not allowed, class and storage can only modify to one direction, current class: DOWNGRADE.
/// - `UnsupportedOperationDirection.DiskDowngrade`: The specified operation is not allowed, class and storage can only modify to one direction, current class: UPGRADE
/// - `InvalidDBInstanceStorageType`: The specified DBInstanceStorageType is invalid.
/// - `InvalidMultiTenant`: Multi tenants cannot exist in a same instance.
/// - `DBNodeParameter.InvalidCombination`: DBNode class code combination is not valid.
/// - `InvalidClassCode`: The specification code in the parameter is invalid.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `InvalidSaleComponentFault`: The request not refer to the correct order sale component. please contact customer service.
/// - `OperationDenied.DBType`: The operation is not permitted due to type of the database.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidDBInstance.NotFound`: The specified instance does not exist or is not supported.
/// - `InsufficientResourceCapacity`: Current cluster resources are insufficient. Try again later.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn modify_db_node(
&self,
req: ModifyDBNode,
) -> impl std::future::Future<Output = crate::Result<ModifyDBNodeResponse>> + Send {
self.call(req)
}
/// # 修改实例的Endpoint权重信息
///
/// 该接口用于修改RDS集群系列实例的Endpoint权重信息。
///
/// ### 适用引擎
/// <props="china">
///
/// - RDS MySQL
/// - RDS PostgreSQL
///
/// </props>
///
/// <props="intl">RDS MySQL</props>
///
/// # Error Codes
/// - `InvalidSourceCategory`: specified source category is invalid.
/// - `InvalidDBInstanceConnType.Format`: Specified DB instance conn type is not valid.
/// - `APICallingFailed`: Meta db calling failed.
/// - `InvalidNodeItems.JsonFormat`: NodeItems is not a json string.
/// - `EmptyEndpointNodeConfig`: Specified endpoint has no nodes, add node to endpoint first.
/// - `InvalidNodeItems.RONodeIdPrimary`: ReadOnly endpoint can not contain primary node.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `IncorrectDBInstanceState`: Current DB instance state does not support this operation.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `IncorrectDBInstanceLockMode`: Current DB instance lock mode does not support this operation.
/// - `InvalidDBInstanceName.NotFound`: Invalid DBInstanceId NotFound.
/// - `Endpoint.NotFound`: Specified endpoint is not existed.
/// - `InvalidConnectionString.NotFound`: Specified connection string or net type is not found.
/// - `InvalidWeight.Format`: The Specified Weight format is not valid.
/// - `InvalidDBInstance.NotFound`: Specified instance does not exist or not support.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn modify_db_instance_endpoint(
&self,
req: ModifyDBInstanceEndpoint,
) -> impl std::future::Future<Output = crate::Result<ModifyDBInstanceEndpointResponse>> + Send
{
self.call(req)
}
/// # 修改实例的Endpoint连接地址信息
///
/// 该接口用于修改RDS集群系列实例的Endpoint连接地址信息。
///
/// ### 适用引擎
/// <props="china">
///
/// - RDS MySQL
/// - RDS PostgreSQL
///
/// </props>
///
/// <props="intl">RDS MySQL</props>
///
/// ### 注意事项
/// - 修改Endpoint连接地址,包括修改外网和内网的连接串和端口、内网连接的VPC、vSwitch、IP等参数。
/// - 修改时,需要将VpcId、VSwitchId看作一组。内网地址的VpcId、VSwitchId、PrivateIpAddress等信息与ConnectionStringPrefix、Port不能同时传入,但至少传入其中一个参数。
///
/// # Error Codes
/// - `InvalidSourceCategory`: specified source category is invalid.
/// - `InvalidDBInstanceConnType.Format`: Specified DB instance conn type is not valid.
/// - `InvalidConnectionString.Format`: Specified connection string is not valid.
/// - `InvalidParamCombination`: VPCId,VSwitchId,PrivateIPAddress can not be modified with ConnectionStringPrefix,Port.
/// - `EmptyEndpointNodeConfig`: Specified endpoint has no nodes, add node to endpoint first.
/// - `APICallingFailed`: Api called failed, please check vpc vsw vip
/// - `InvalidEngineVersion.NotSupport`: The specified parameter "EngineVersion" is not valid.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `IncorrectDBInstanceState`: Current DB instance state does not support this operation.
/// - `InvalidConnVPCId`: Specified conn vpc id is not valid.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidDBInstanceName.NotFound`: Invalid DBInstanceId NotFound.
/// - `IncorrectDBInstanceLockMode`: Current DB instance lock mode does not support this operation.
/// - `Endpoint.NotFound`: Specified endpoint is not existed.
/// - `InvalidConnectionString.NotFound`: Specified connection string or net type is not found.
/// - `InvalidDBInstance.NotFound`: Specified instance does not exist or not support.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn modify_db_instance_endpoint_address(
&self,
req: ModifyDBInstanceEndpointAddress,
) -> impl std::future::Future<Output = crate::Result<ModifyDBInstanceEndpointAddressResponse>> + Send
{
self.call(req)
}
/// # 查询实例Endpoint信息
///
/// 该接口用于查询RDS集群系列实例的Endpoint信息。
///
/// ### 适用引擎
/// <props="china">
///
/// - RDS MySQL
/// - RDS PostgreSQL
///
/// </props>
///
/// <props="intl">RDS MySQL</props>
///
/// # Error Codes
/// - `APICallingFailed`: Meta db calling failed.
/// - `InvalidSourceCategory`: specified source category is invalid.
/// - `InvalidDBInstanceConnType.Format`: Specified DB instance conn type is not valid.
/// - `Forbidden`: User not authorized to operate on the specified resource, or this API does not support RAM.
/// - `InvalidEngineVersion.NotSupport`: The specified parameter "EngineVersion" is not valid.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `IncorrectDBInstanceState`: Current DB instance state does not support this operation.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `IncorrectDBInstanceLockMode`: Current DB instance lock mode does not support this operation.
/// - `InvalidDBInstanceName.NotFound`: The database instance does not exist.
/// - `InvalidDBInstance.NotFound`: Specified instance does not exist or not support.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn describe_db_instance_endpoints(
&self,
req: DescribeDBInstanceEndpoints,
) -> impl std::future::Future<Output = crate::Result<DescribeDBInstanceEndpointsResponse>> + Send
{
self.call(req)
}
/// # 新增数据库代理的连接地址
///
/// 该接口用于新增RDS实例数据库代理的连接地址。
///
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
///
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
///
/// - [RDS MySQL新增数据库代理内外网连接地址](~~184921~~)
/// - [RDS PostgreSQL新增数据库代理内外网连接地址](~~418274~~)
///
/// # Error Codes
/// - `InvalidPort.Malformed`: Specified port is not valid.
/// - `NetTypeExists`: Specified net type already existed.
/// - `IncorrectDBInstanceNetType`: Current DB instance net type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the Aliyun RDS.
/// - `InvalidConnVPCId`: Specified conn vpc id is not valid.
/// - `InvalidVpcInstanceId`: Specified vpc instance id is not valid.
/// - `InvalidDBInstanceName`: Specified parameter DBInstanceName is not valid.
/// - `InvalidVpcIdOrVswitchId.NotSupported`: The specified vpcId or vSwitchId is not supported.
/// - `InvalidPrivateIpAddress.Mismatch`: Specified private IP address is not in the CIDR block of virtual switch.
/// - `InvalidVpcParameter`: Specified VPCId VSwitchId or IPAddress or TunnelId is not valid.
/// - `InvalidBizType.Format`: Specified biz type is not valid.
/// - `InvalidVSwitchId.NotFound`: Specified vSwitch is not found in specified VPC.
/// - `InvalidVSwitchId.Mismatch`: Specified instance and virtual switch are not in the same zone.
/// - `InvalidPrivateIpAddress.AlreadyUsed`: The specified IP is already used.
/// - `VswitchIpExhausted`: No available ip in the specified vswitch.
/// - `MaxscaleNotSupport`: Current custins can not support Maxscale.
/// - `InvalidConnectionString.Format`: Specified connection string is not valid.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `APICallingFailed`: Api calling failed.
/// - `InvalidVSwitchId.Format`: The specified vswitch Id format is incorrect.
/// - `InvalidDBProxyConnectStringNetType.NotSupported`: The Specified DBProxyConnectStringNetType is not supported.
/// - `IncorrectDBInstanceType`: Current DB instance type does not support this operation.
/// - `IncorrectDBInstanceState`: Current DB instance state does not support this operation.
/// - `IncorrectDBInstanceEngine`: Current DB Instance engine does not support this operation.
/// - `IncorrectKindCode`: Current custins kindCode does not support this operation.
/// - `IncorrectDBInstanceConnType`: Current DB instance conn type does not support this operation.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `Endpoint.NotFound`: Specified endpoint is not found.
/// - `Maxscale.NotFound`: The related maxscale instance is not found.
/// - `IncorrectVswitchId`: The specified parameter VSwitchId is not valid.
/// - `InvalidDBInstanceName.NotFound`: Invalid DBInstanceId NotFound.
/// - `InvalidDBInstance.NotFound`: Specified instance does not exist or not support.
/// - `InsufficientResourceCapacity`: Current cluster resources are insufficient. Try again later.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn create_db_proxy_endpoint_address(
&self,
req: CreateDBProxyEndpointAddress,
) -> impl std::future::Future<Output = crate::Result<CreateDBProxyEndpointAddressResponse>> + Send
{
self.call(req)
}
/// # 删除数据库代理连接地址
///
/// 该接口用于删除RDS实例数据库代理的连接地址。
///
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
///
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
///
/// - [RDS MySQL设置数据库代理连接地址](~~184921~~)
/// - [RDS PostgreSQL设置数据库代理连接地址](~~418274~~)
///
/// # Error Codes
/// - `InvalidVpcInstanceId`: Specified vpc instance id is not valid.
/// - `IncorrectDBInstanceNetType`: Current DB instance net type does not support this operation.
/// - `AtLeastOneNetTypeExists`: The current database instance network type does not support the operation
/// - `InvalidEndPoint.Format`: The specified EndPoint is not valid.
/// - `InvalidDBInstanceName`: Specified parameter DBInstanceName is not valid.
/// - `MaxscaleNotSupport`: Current custins can not support Maxscale.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `IncorrectDBInstanceType`: Current DB instance type does not support this operation.
/// - `IncorrectDBInstanceState`: Current DB instance state does not support this operation.
/// - `IncorrectKindCode`: The current KindCode of the custins does not support the operation.
/// - `IncorrectDBInstanceEngine`: Current DB Instance engine does not support this operation.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `Endpoint.NotFound`: Specified endpoint is not found.
/// - `InvalidDBInstanceName.NotFound`: The database instance does not exist.
/// - `Maxscale.NotFound`: The related maxscale instance is not found.
/// - `InvalidDBInstanceNetType.NotFound`: Specified DB instance net type is not found.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn delete_db_proxy_endpoint_address(
&self,
req: DeleteDBProxyEndpointAddress,
) -> impl std::future::Future<Output = crate::Result<DeleteDBProxyEndpointAddressResponse>> + Send
{
self.call(req)
}
/// # 开通或修改数据库代理实例功能
///
/// 该接口用于开启或者修改RDS实例的数据库代理实例功能。
///
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
///
/// > 云数据库RDS MySQL集群系列于2023年10月17日起逐步在各个单元赠送代理数量为1的数据库独享代理服务,详情请参见[【优惠】RDS MySQL集群版赠送代理数量为1的数据库独享代理服务](~~2555466~~)。
///
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
///
/// - [RDS MySQL开通数据库代理](~~197456~~)
/// - [RDS PostgreSQL开通数据库代理](~~418272~~)
///
/// # Error Codes
/// - `MaxscaleAlreadyExist`: The Maxscale is already existed.
/// - `MaxscaleNotSupport`: Maxscale not supported
/// - `NetWork.NotFound`: NetWork.NotFound
/// - `InvalidVpcParameter`: Either VPC ID or vSwitch ID is incorrect. Please check again.
/// - `MaxscaleInternalError`: Database proxy status is CLASS_CHANGING.
/// - `InvalidDBInstanceName`: Specified parameter DBInstanceName is not valid.
/// - `InvalidOptimizationCategory.Format`: Specified optimization category is not valid.
/// - `MinorVersionNotSupport`: The current database minor version does not support the operation.
/// - `InvalidParameters.Format`: Specified parameter is not valid
/// - `InvalidTunnelId`: Specified conn tunnel is not valid.
/// - `InvalidRegion.Format`: Specified Region is not valid.
/// - `InvalidDBProxyNodes.General`: general-purpose proxy does not support more than 2 nodes.
/// - `InvalidDBProxyNodes.ZoneIdAndNodeCounts`: The number of node count and zone count is mismatch.
/// - `InvalidDBProxyNodes.ZoneId`: The number of zone is request 1 or 2.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `InvalidDBProxyNodes.ZoneIdNotUnique`: ZoneIds is not unique.
/// - `MaxscaleServiceLinkedRole.NotFound`: Service linked role 'AliyunServiceRoleForRDSProxyOnEcs' not found.
/// - `MappingInstanceLevel.NotFound`: Can not find the mapping instance level.
/// - `InvalidConnVPCId`: Specified conn vpc id is not valid.
/// - `IncorrectDBInstanceType`: The database instance type does not support the operation.
/// - `IncorrectDBInstanceEngine`: Current DB Instance engine does not support this operation.
/// - `IncorrectKindCode`: Current custins kindCode does not support this operation.
/// - `IncorrectDBInstanceState`: Current DB instance state does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `MaxscaleCreating`: The relative maxscale instance is being created or deleted.
/// - `Maxscale.NotFound`: The relative maxscale instance is not found.
/// - `InvalidVSwitchId.NotFound`: The specified VSwitch is invalid.
/// - `InvalidParam`: The parameter is invalid.
/// - `InsufficientResourceCapacity`: The target availability zone does not have sufficient resources.
/// - `InvalidDBInstance.NotFound`: The specified instance does not exist or is not supported.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn modify_db_proxy(
&self,
req: ModifyDBProxy,
) -> impl std::future::Future<Output = crate::Result<ModifyDBProxyResponse>> + Send {
self.call(req)
}
/// # 升级数据库代理内核小版本
///
/// 该接口用于升级数据库代理的内核小版本。
///
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
///
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
///
/// - [RDS MySQL升级数据库代理内核小版本](~~197465~~)
/// - [RDS PostgreSQL升级数据库代理内核小版本](~~418469~~)
///
/// # Error Codes
/// - `InvalidDBInstanceName`: Specified parameter DBInstanceName is not valid.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `IncorrectDBInstanceState`: The proxy instance has not been activated.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `AllocateResourceFailed`: Failed to allocate resources. Please check the zone and the host you selected.
/// - `InvalidParam`: The parameter is invalid.
/// - `InsufficientResourceCapacity`: The target availability zone does not have sufficient resources.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn upgrade_db_proxy_instance_kernel_version(
&self,
req: UpgradeDBProxyInstanceKernelVersion,
) -> impl std::future::Future<
Output = crate::Result<UpgradeDBProxyInstanceKernelVersionResponse>,
> + Send {
self.call(req)
}
/// # 变更数据库代理实例配置
///
/// 该接口用于变更RDS数据库代理实例相关配置。
///
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
///
/// > 云数据库RDS MySQL集群系列于2023年10月17日起逐步在各个单元赠送代理数量为1的数据库独享代理服务,详情请参见[【优惠】RDS MySQL集群版赠送代理数量为1的数据库独享代理服务](~~2555466~~)。
///
/// # Error Codes
/// - `InvalidDBInstanceName`: Specified parameter DBInstanceName is not valid.
/// - `InvalidParameters.Format`: Specified parameter is not valid
/// - `InvalidAvZone.Format`: Specified AvZone is not valid.
/// - `ErrorMxsServiceInsNum.Error`: The Maxscale serviceIns num must be 1.
/// - `TaskExists`: Specified task have existed.
/// - `InvalidVSwitchIds`: Specified vSwitchId is invalid.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `APICallingFailed`: Api calling failed.
/// - `InvalidDBProxyNodes.AzProximity`: current proxy is open az proximity and target proxy not support az proximity.
/// - `InvalidDBProxyNodes.General`: general-purpose proxy does not support more than 2 nodes.
/// - `InvalidTargetAvailabilityZone`: All endpoint vswitchId must be in the target availability zone.
/// - `InvalidDBProxyNodes.Node`: must set DBProxyNodes params with more than 2 proxy nodes.
/// - `InvalidDBProxyNodes.ZoneIdAndNodeCounts`: The number of node count and zone count is mismatch.
/// - `InvalidDBProxyNodes.ZoneId`: The number of zone is request 1 or 2.
/// - `InvalidMigrateAZInfo`: Invalid MigrateAZ params.
/// - `InvalidDBProxyNodes.ZoneIdNotUnique`: ZoneIds is not unique.
/// - `InvalidVSwitchId.Format`: The specified vswitch Id format is incorrect.
/// - `InvalidEndPoint.Format`: The specified EndPoint is not valid.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `MappingInstanceLevel.NotFound`: Can not find the mapping instance level.
/// - `DBInstanceStatusNotActive`: Current DB instance status should be active.
/// - `InvalidInstanceLevel.Malformed`: The specified class code does not support the endpoint number. Please check the shard number and the current endpoint number.
/// - `NotHaveProxy`: The current instance does not have a proxy.
/// - `MaxscaleMinorVersionNotSupport`: The Maxscale version used by the instance is too low, please upgrade the Maxscale version first.
/// - `IncorrectDBInstanceType`: Current DB instance engine and type does not support operations.
/// - `IncorrectDBInstanceEngine`: Current DB Instance engine does not support this operation.
/// - `IncorrectKindCode`: Current custins kindCode does not support this operation.
/// - `IncorrectDBType`: The current DB type does not support this operation.
/// - `IncorrectDBInstanceState`: Current DB instance state does not support this operation.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectDBInstance`: The current DB instance does not support this operation.
/// - `MaxscaleInstanceNotSupport`: Instances with maxscale instance do not support this operation.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `IncorrectDBInstanceLockMode`: Current DB instance lock mode does not support this operation.
/// - `InvalidDBInstanceClass.NotFound`: Specified DB instance class is not found.
/// - `InsufficientResourceCapacity`: The target availability zone does not have sufficient resources.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn modify_db_proxy_instance(
&self,
req: ModifyDBProxyInstance,
) -> impl std::future::Future<Output = crate::Result<ModifyDBProxyInstanceResponse>> + Send
{
self.call(req)
}
/// # 配置数据库代理连接地址访问策略
///
/// 该接口用于配置RDS实例数据库代理连接地址的访问策略。
///
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
///
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
///
/// - [RDS MySQL配置数据库代理连接地址访问策略](~~2621331~~)
/// - [RDS PostgreSQL配置数据库代理连接地址访问策略](~~418273~~)
///
/// # Error Codes
/// - `InvalidVpcInstanceId`: The specified VPC instance ID is invalid.
/// - `InvalidEndPoint.Format`: The specified EndPoint is not valid.
/// - `InvalidEndpointType.Format`: The specified EndpointType is invalid.
/// - `IncorrectDBInstanceNetType`: The current database instance network type does not support the operation.
/// - `EndpointNum.Error`: The number of endpoint is invalid.
/// - `EndpointTypeOperation.NotSupport`: The endpoint type does not support the operation.
/// - `InvalidDBInstanceName`: Specified parameter DBInstanceName is not valid.
/// - `ClusterEndpoint.StatusNotValid`: The cluster endpoint status is invalid.
/// - `MaxscaleNotSupport`: Current custins can not support Maxscale.
/// - `InvalidAvZone.Format`: Specified AvZone is not valid.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `APICallingFailed`: Api calling failed.
/// - `InvalidVSwitchId.Format`: The specified vswitch Id format is incorrect.
/// - `MaxScaleLevel.NotSupport`: The current maxscale ins_num does not support this operation.
/// - `ReadDBInstance.NotFound`: The current database instance does not contain any read only instance.
/// - `IncorrectKindCode`: The current KindCode of the custins does not support the operation.
/// - `IncorrectDBInstanceState`: The current database instance state does not support the operation.
/// - `IncorrectDBInstanceEngine`: Current DB Instance engine does not support this operation.
/// - `IncorrectDBInstanceType`: Current DB instance type does not support this operation.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `EndpointConfig.Invalid`: Please check the endpoint config parameter.
/// - `Readins.NotFound`: The current instance does not contain any read only instance. The operation is not supported.
/// - `Endpoint.NotFound`: Specified endpoint is not found.
/// - `EndpointType.NotFound`: The specified endpoint type is not found.
/// - `InvalidReadDBInstance.NotFound`: The specified read only database instance does not exist.
/// - `InvalidParam`: The specified Weight is invalid.
/// - `Maxscale.NotFound`: The related maxscale instance is not found.
/// - `IncorrectVswitchId`: The specified parameter VSwitchId is not valid.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn modify_db_proxy_endpoint(
&self,
req: ModifyDBProxyEndpoint,
) -> impl std::future::Future<Output = crate::Result<ModifyDBProxyEndpointResponse>> + Send
{
self.call(req)
}
/// # 修改数据库代理的连接地址
///
/// 该接口用于修改RDS实例数据库代理的连接地址。
///
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
///
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
///
/// - [RDS MySQL设置数据库代理连接地址](~~184921~~)
/// - [RDS PostgreSQL设置数据库代理连接地址](~~418274~~)
///
/// # Error Codes
/// - `InvalidConnectionString.Format`: Specified connection string is not valid.
/// - `InvalidPort.Malformed`: Specified port is not valid.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the Aliyun RDS.
/// - `InvalidConnectionStringOrPort.Duplicate`: Specified connection string or port want to be modified is the same with current net type.
/// - `InvalidDBInstanceName`: Specified parameter DBInstanceName is not valid.
/// - `OtherEndpoint.Exist`: Other endpoint already exist.
/// - `MaxscaleNotSupport`: Current custins can not support Maxscale.
/// - `ParameterLeastAssociate`: Must input at least one optional parameter
/// - `InvalidDBProxyConnectStringNetType.NotSupported`: The Specified DBProxyConnectStringNetType is not supported.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `ParameterLeastAssociate`: Must input at least one optional parameter.
/// - `NetTypeChangeTimesExceeded`: Exceeding the daily net type change times of the DB instance.
/// - `IncorrectDBInstanceEngine`: Current DB Instance engine does not support this operation.
/// - `IncorrectKindCode`: Current custins kindCode does not support this operation.
/// - `IncorrectDBInstanceType`: Current DB instance type does not support this operation.
/// - `IncorrectDBInstanceState`: Current DB instance state does not support this operation.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidConnectionString.NotFound`: Specified connection string or net type is not found.
/// - `InsufficientResourceCapacity`: There is insufficient capacity available for the requested instance.
/// - `Endpoint.NotFound`: Specified endpoint is not found.
/// - `Maxscale.NotFound`: The related maxscale instance is not found.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the Aliyun RDS.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn modify_db_proxy_endpoint_address(
&self,
req: ModifyDBProxyEndpointAddress,
) -> impl std::future::Future<Output = crate::Result<ModifyDBProxyEndpointAddressResponse>> + Send
{
self.call(req)
}
/// # 设置数据库代理连接地址SSL加密
///
/// 该接口用于设置RDS MySQL数据库代理连接地址的SSL加密。
///
/// ### 适用引擎
/// RDS MySQL
///
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
///
/// [RDS MySQL设置数据库代理SSL加密](~~188164~~)
///
/// # Error Codes
/// - `MinorVersionNotSupport`: The current database minor version does not support the operation.
/// - `InvalidDbProxyStatus`: The proxy status of the database is abnormal.
/// - `InvalidDBInstanceName`: Specified parameter DBInstanceName is not valid.
/// - `MaxscaleNotSupport`: Current custins can not support Maxscale.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `MaxscaleDisabledSSLError`: Target connectString is not enabled SSL.
/// - `RDSCategoryNotSupport`: The specified instance category does not support this operation.
/// - `IncorrectDBInstanceEngine`: Current DB Instance engine does not support this operation.
/// - `IncorrectKindCode`: Current custins kindCode does not support this operation.
/// - `IncorrectDBInstanceType`: Current DB instance engine and type does not support operations.
/// - `IncorrectDBInstanceState`: Current DB instance state does not support this operation.
/// - `ConnectionStringLengthExceeded`: Connection String is too long.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `Endpoint.NotFound`: The specified endpoint is not found.
/// - `EnabledSSLNotSupport`: The backend service does not support SSL.
/// - `InvalidDbProxyConnectionString.NotFound`: The specified database proxy connection string is not found.
/// - `InvalidDBInstanceName.NotFound`: The database instance does not exist.
/// - `EndpointType.NotFound`: The specified endpoint type is not found.
/// - `EndpointConfig.Invalid`: Please check the endpoint config parameter.
/// - `InvalidMaxscaleConnectionString.NotFound`: The specified database proxy connection string is not found.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `InvalidMaxscaleConnectString.NotFound`: Specified MaxscaleConnectionString is not found or not belong to this endpoint.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn modify_db_proxy_instance_ssl(
&self,
req: ModifyDbProxyInstanceSsl,
) -> impl std::future::Future<Output = crate::Result<ModifyDbProxyInstanceSslResponse>> + Send
{
self.call(req)
}
/// # 查询数据库代理详情
///
/// 该接口用于查询RDS实例的数据库代理设置详情。
///
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
///
/// # Error Codes
/// - `RWSplitNetTypeNotExists`: Specified rw split net type is not eixsts.
/// - `InvalidDBInstanceName`: Specified parameter DBInstanceName is not valid.
/// - `InvalidInstanceLevelExtraInfo`: Specified class code has error extra info.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `IncorrectKindCode`: Current custins kindCode does not support this operation.
/// - `IncorrectDBInstanceType`: The database instance type does not support the operation.
/// - `IncorrectDBInstanceEngine`: Current DB Instance engine does not support this operation.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidDBInstanceName.NotFound`: The database instance does not exist.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn describe_db_proxy(
&self,
req: DescribeDBProxy,
) -> impl std::future::Future<Output = crate::Result<DescribeDBProxyResponse>> + Send {
self.call(req)
}
/// # 查询数据库代理的连接地址信息
///
/// 该接口用于查询RDS实例数据库代理的连接地址信息。
///
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
///
/// # Error Codes
/// - `MaxscaleNotSupport`: Current custins can not support Maxscale.
/// - `InvalidEndPoint.Format`: The specified EndPoint is not valid.
/// - `InvalidDBInstanceName`: Specified parameter DBInstanceName is not valid.
/// - `Endpoint.NotFound`: The specified EndPoint is not valid.
/// - `InvalidParameter`: The specified parameter is invalid.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `IncorrectKindCode`: The current KindCode of the custins does not support the operation.
/// - `IncorrectDBInstanceType`: The current database instance type does not support the operation.
/// - `IncorrectDBInstanceEngine`: Current DB Instance engine does not support this operation.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidVpcInfo.NotFound`: Specified VPC info does not exist.
/// - `Endpoint.NotFound`: Specified endpoint is not found.
/// - `Maxscale.NotFound`: The relative maxscale instance is not found.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn describe_db_proxy_endpoint(
&self,
req: DescribeDBProxyEndpoint,
) -> impl std::future::Future<Output = crate::Result<DescribeDBProxyEndpointResponse>> + Send
{
self.call(req)
}
/// # 查询数据库代理的性能数据
///
/// 该接口用于查询RDS实例数据库代理的性能数据。
///
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
/// > 云数据库RDS MySQL集群系列于2023年10月17日起逐步在各个单元赠送代理数量为1的数据库独享代理服务,详情请参见[【优惠】RDS MySQL集群版赠送代理数量为1的数据库独享代理服务](~~2555466~~)。
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
///
/// - [RDS MySQL查看监控数据](~~194241~~)
/// - [RDS PostgreSQL查看监控数据](~~418275~~)
///
/// # Error Codes
/// - `InvalidDBInstanceName`: Specified parameter DBInstanceName is not valid.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `NoAvailablePaymentMethod`: No payment method is specified for account. We recommend that you add a payment method.
/// - `ParamNotFound`: The parameter is not found for the interface.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `Endpoint.NotFound`: Specified endpoint is not found.
/// - `InvalidDBInstanceName.NotFound`: The DBInstanceId provided does not exist in our records.
/// - `Maxscale.NotFound`: The relative maxscale instance is not found.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `InvalidOthers.Timeout`: Query timed out.Please try again or narrow down the query scope.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn describe_db_proxy_performance(
&self,
req: DescribeDBProxyPerformance,
) -> impl std::future::Future<Output = crate::Result<DescribeDBProxyPerformanceResponse>> + Send
{
self.call(req)
}
/// # 查询数据库代理连接地址SSL加密信息
///
/// 该接口用于查询RDS MySQL数据库代理连接地址SSL加密信息。
///
/// ### 适用引擎
/// RDS MySQL
///
/// # Error Codes
/// - `InvalidVpcInstanceId`: The specified VPC instance ID is invalid.
/// - `InvalidDBInstanceName`: Specified parameter DBInstanceName is not valid.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `IncorrectDBInstanceType`: The current database instance type does not support the operation.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidDBInstance.NotFound`: The specified instance does not exist or is not supported.
/// - `Endpoint.NotFound`: The specified endpoint is not found.
/// - `InvalidDBInstanceName.NotFound`: The database instance does not exist.
/// - `Maxscale.NotFound`: The related maxscale instance is not found.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn get_db_proxy_instance_ssl(
&self,
req: GetDbProxyInstanceSsl,
) -> impl std::future::Future<Output = crate::Result<GetDbProxyInstanceSslResponse>> + Send
{
self.call(req)
}
/// # 修改读写分离链路的延迟阈值和各个实例的读权重
///
/// 该接口用于修改读写分离链路的延迟阈值和各个实例的读权重。
///
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS SQL Server
///
/// ### 前提条件
/// 调用该接口时,实例必须满足以下条件,否则将操作失败:
/// * MySQL实例使用的是共享代理。
/// * MySQL实例已开通读写分离。
/// * 实例为如下版本:
/// * MySQL 5.7高可用系列(本地SSD盘)
/// * MySQL 5.6
/// * SQL Server集群系列
///
/// # Error Codes
/// - `ReadUniformNetTypeNotExists`: The specified uniform read only network type does not exist.
/// - `ReadDBInstance.NotFound`: The Current DB Instance has not read-only instance.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `ReadDBInstance.NotFound`: The current database instance does not contain any read only instance.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn modify_read_write_splitting_connection(
&self,
req: ModifyReadWriteSplittingConnection,
) -> impl std::future::Future<Output = crate::Result<ModifyReadWriteSplittingConnectionResponse>>
+ Send {
self.call(req)
}
/// # 查看数据库代理设置
///
/// 该接口用于查看RDS MySQL数据库代理设置。
///
/// ### 适用引擎
/// RDS MySQL
///
/// ### 功能描述
/// 该API查看的是MySQL共享代理,如需查询RDS MySQL数据库独享代理,请参见[DescribeDBProxy](~~610506~~)。
///
/// ### 前提条件
/// 调用该接口前,请确认RDS MySQL实例使用的是**共享代理**,否则将操作失败。
///
/// # Error Codes
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn describe_db_instance_proxy_configuration(
&self,
req: DescribeDBInstanceProxyConfiguration,
) -> impl std::future::Future<
Output = crate::Result<DescribeDBInstanceProxyConfigurationResponse>,
> + Send {
self.call(req)
}
/// # 申请只读地址
///
/// 该接口用于申请只读地址。
///
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS SQL Server
///
/// ### 功能描述
/// 对拥有只读实例的SQL Server主实例,可以创建统一只读地址。创建该地址后,不影响原主实例、只读实例的已有访问地址,以及正常的内外网申请。
///
/// ### 前体条件
/// 调用该接口时,实例必须满足以下条件,否则将操作失败:
/// - MySQL实例使用的是共享代理。
/// - 实例状态为运行中。
/// - 实例拥有只读实例。
/// - 实例没有正在执行的DTS迁移任务。
/// - 实例为如下版本:
/// - SQL Server集群版。
/// - MySQL 5.7高可用版(本地SSD盘)
/// - MySQL 5.6
///
/// # Error Codes
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn allocate_read_write_splitting_connection(
&self,
req: AllocateReadWriteSplittingConnection,
) -> impl std::future::Future<
Output = crate::Result<AllocateReadWriteSplittingConnectionResponse>,
> + Send {
self.call(req)
}
/// # 释放读写分离地址
///
/// 该接口用于释放读写分离地址。
///
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS SQL Server
///
/// ### 前体条件
///
/// 调用该接口时,实例必须满足以下条件,否则将操作失败:
/// * MySQL实例使用的是共享代理。
/// * 实例已开通读写分离。
/// * 实例为如下版本:
/// * MySQL 5.7高可用版(本地SSD盘)
/// * MySQL 5.6
/// * SQL Server集群版
///
/// # Error Codes
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn release_read_write_splitting_connection(
&self,
req: ReleaseReadWriteSplittingConnection,
) -> impl std::future::Future<
Output = crate::Result<ReleaseReadWriteSplittingConnectionResponse>,
> + Send {
self.call(req)
}
/// # 查询系统权重分配值
///
/// 该接口用于查询系统权重分配值。
///
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS SQL Server
///
/// ### 功能描述
/// 在开启[读写分离](~~51073~~)的情况下,该接口用于计算系统指定的权重。如果是自定义读权重,请参见[DescribeDBInstanceNetInfo](~~610423~~)。
///
/// ### 前体条件
/// 调用该接口时,实例必须满足以下条件,否则将操作失败:
/// * MySQL实例使用的是共享代理。
/// * 实例为如下版本:
/// * MySQL 5.7高可用版(本地SSD盘)
/// * MySQL 5.6
/// * SQL Server集群版
///
/// # Error Codes
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `IncorrectDBInstanceType`: Current DB instance engine and type does not support operations.
/// - `IncorrectDBInstanceConnType`: Current DB instance conn type does not support this operation.
/// - `IncorrectDBType`: The current DB type does not support this operation.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidDBInstanceName.NotFound`: Invalid DBInstanceId NotFound.
/// - `IncorrectDBInstanceLockMode`: Current DB instance lock mode does not support this operation.
/// - `InvalidDBInstanceClass.NotFound`: Specified DB instance class is not found.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn calculate_db_instance_weight(
&self,
req: CalculateDBInstanceWeight,
) -> impl std::future::Future<Output = crate::Result<CalculateDBInstanceWeightResponse>> + Send
{
self.call(req)
}
/// # 关联白名单模板到实例
///
/// 该接口用于将白名单模板关联到实例。
///
/// ### 适用引擎
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
///
/// # Error Codes
/// - `InvalidSecurityIPList.QuotaExceeded`: Specified security IP list is not valid: Exceeding the allowed amount of IP address in the list.
/// - `InvalidParameterTemplateId`: The parameter templateId is invalid.
/// - `InvalidDBInstanceName.TooMuchItems`: The number of DB instance Names should be no more than 20.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `WhitelistTemplateRelationToCustinsId.EXISTS`: Whitelist Template relation to CustinsId exists.
/// - `WhitelistIPLength.Forbidden`: Whitelist ip length exceeeds the limit.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `WhitelistTemplateId.NotFound`: Whitelist Template id not found.
/// - `InvalidDBInstanceName.NotFound`: Invalid DBInstanceId NotFound.
/// - `InsName.NotFound`: InsName not found.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn attach_whitelist_template_to_instance(
&self,
req: AttachWhitelistTemplateToInstance,
) -> impl std::future::Future<Output = crate::Result<AttachWhitelistTemplateToInstanceResponse>> + Send
{
self.call(req)
}
/// # 创建服务关联角色(SLR)
///
/// 该接口用于创建服务关联角色(SLR)。
///
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
///
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
///
/// [服务关联角色](~~342840~~)
///
/// # Error Codes
/// - `Caller.NotSupport`: The Caller Not Support This Operation .
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn create_service_linked_role(
&self,
req: CreateServiceLinkedRole,
) -> impl std::future::Future<Output = crate::Result<CreateServiceLinkedRoleResponse>> + Send
{
self.call(req)
}
/// # 取消关联白名单模板与实例
///
/// 该接口用于取消关联的白名单模板与实例。
///
/// ### 适用引擎
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
///
/// # Error Codes
/// - `InvalidDBInstanceName.TooMuchItems`: The number of DB instance Names should be no more than 20.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `WhitelistTemplateRelationToCustinsId.NotFound`: Whitelist Template relation to CustinsId not found.
/// - `InsName.NotFound`: InsName not found.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn detach_whitelist_template_to_instance(
&self,
req: DetachWhitelistTemplateToInstance,
) -> impl std::future::Future<Output = crate::Result<DetachWhitelistTemplateToInstanceResponse>> + Send
{
self.call(req)
}
/// # 编辑白名单模板信息
///
/// 该接口用于编辑白名单模板,包括创建、修改、删除白名单模板的操作。
///
/// ### 适用引擎
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
///
/// # Error Codes
/// - `InvalidIPList.Format`: Specified IPList is not valid.
/// - `InvalidParameter`: Invalid parameter.
/// - `InvalidWhitelistTemplateName.Duplicated`: Whitelist template name duplicated.
/// - `InvalidSecurityIPList.QuotaExceeded`: Specified security IP list is not valid: Exceeding the allowed amount of IP address in the list.
/// - `SecurityIPList.Format`: Specified SecurityIPList is not valid.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `WhitelistIPLength.Forbidden`: Whitelist ip length exceeeds the limit.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `WhitelistTemplateId.NotFound`: Whitelist Template id not found.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn modify_whitelist_template(
&self,
req: ModifyWhitelistTemplate,
) -> impl std::future::Future<Output = crate::Result<ModifyWhitelistTemplateResponse>> + Send
{
self.call(req)
}
/// # 查询RDS实例和ECS安全组关联信息
///
/// 该接口用于查询指定RDS实例和ECS安全组的关联信息。
///
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
///
/// - [RDS MySQL设置安全组](~~201042~~)
/// - [RDS PostgreSQL设置安全组](~~206310~~)
/// - [RDS SQL Server设置安全组](~~2392322~~)
///
/// # Error Codes
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn describe_security_group_configuration(
&self,
req: DescribeSecurityGroupConfiguration,
) -> impl std::future::Future<Output = crate::Result<DescribeSecurityGroupConfigurationResponse>>
+ Send {
self.call(req)
}
/// # 修改RDS实例和ECS安全组关联信息
///
/// 该接口用于修改指定RDS实例和ECS安全组的关联信息。
///
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
///
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
///
/// - [RDS MySQL设置安全组](~~201042~~)
/// - [RDS PostgreSQL设置安全组](~~206310~~)
/// - [RDS SQL Server设置安全组](~~2392322~~)
///
/// # Error Codes
/// - `AssociatedEcsSecurityGroupIdQuotaExceed`: Security groups quota exceeded
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `InvalidEcsSecurityGroupId`: Specified ecs security group id is not valid.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn modify_security_group_configuration(
&self,
req: ModifySecurityGroupConfiguration,
) -> impl std::future::Future<Output = crate::Result<ModifySecurityGroupConfigurationResponse>> + Send
{
self.call(req)
}
/// # 添加安全组规则
///
/// 该接口用于为RDS SQL Server实例添加安全组规则。
///
/// ### 适用引擎
/// RDS SQL Server
///
/// ### 相关功能文档
/// [RDS SQL Server设置安全组规则](~~2392322~~)
///
/// # Error Codes
/// - `MissingPortRange`: The request is missing a portRange parameter.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.///
/// # Methods
/// - POST
/// - GET
///
pub fn create_db_instance_security_group_rule(
&self,
req: CreateDBInstanceSecurityGroupRule,
) -> impl std::future::Future<Output = crate::Result<CreateDBInstanceSecurityGroupRuleResponse>> + Send
{
self.call(req)
}
/// # 查看安全组规则
///
/// 该接口用于查询RDS SQL Server实例的安全组规则。
///
/// ### 适用引擎
/// RDS SQL Server
///
/// ### 相关功能文档
/// [RDS SQL Server设置安全组规则](~~2392322~~)
///
/// # Error Codes
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
///
pub fn describe_db_instance_security_group_rule(
&self,
req: DescribeDBInstanceSecurityGroupRule,
) -> impl std::future::Future<
Output = crate::Result<DescribeDBInstanceSecurityGroupRuleResponse>,
> + Send {
self.call(req)
}
/// # 修改安全组规则
///
/// 该接口用于修改RDS SQL Server实例的安全组规则。
///
/// ### 适用引擎
/// RDS SQL Server
///
/// ### 相关功能文档
/// [RDS SQL Server设置安全组规则](~~2392322~~)
///
/// # Error Codes
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn modify_db_instance_security_group_rule(
&self,
req: ModifyDBInstanceSecurityGroupRule,
) -> impl std::future::Future<Output = crate::Result<ModifyDBInstanceSecurityGroupRuleResponse>> + Send
{
self.call(req)
}
/// # 删除安全组规则
///
/// 该接口用于删除RDS SQL Server实例已设置的安全组规则。
///
/// ### 适用引擎
/// RDS SQL Server
///
/// ### 相关功能文档
/// [RDS SQL Server设置安全组规则](~~2392322~~)
///
/// # Error Codes
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
///
pub fn delete_db_instance_security_group_rule(
&self,
req: DeleteDBInstanceSecurityGroupRule,
) -> impl std::future::Future<Output = crate::Result<DeleteDBInstanceSecurityGroupRuleResponse>> + Send
{
self.call(req)
}
/// # 修改RDS实例IP白名单
///
/// 修改指定RDS实例的IP白名单配置,支持覆盖、追加、删除三种修改模式。
///
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
/// - RDS MariaDB
///
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
///
/// - [RDS MySQL设置IP白名单](~~96118~~)
/// - [RDS PostgreSQL设置IP白名单](~~43187~~)
/// - [RDS SQL Server设置IP白名单](~~43186~~)
/// - [RDS MariaDB设置IP白名单](~~90336~~)
///
/// # Error Codes
/// - `IncorrectMasterDBInstanceState`: Master instance state does not support this operation.
/// - `InvalidWhitelistNetType.Malformed`: Specified WhitelistNetType is not valid.
/// - `InvalidIPArrayAttribute.Format`: The format of the IP attribute is invalid.
/// - `InvalidSecurityIPList.Duplicate`: Specified security IP list is not valid: Duplicate IP address in the list.
/// - `SecurityIPList.Format`: Specified SecurityIPList is not valid.
/// - `InvalidGroupName.DuplicatedWithTemplate`: Sepecified group name is used by whitelist template.
/// - `InvalidSecurityIPListGroup.QuotaExceeded`: Specified security IP list group is not valid: Exceeding the allowed amount of group.
/// - `InvalidDBInstanceType.Format`: Specified instance type is not valid.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `IncorrectDBType`: The current DB type does not support this operation.
/// - `IncorrectDBInstanceType`: Current DB instance type does not support this operation.
/// - `IncorrectDBInstanceCharacterType`: Current DB Instance character_type does not support this operation.
/// - `IncorrectDBInstanceState`: Current DB instance state does not support this operation.
/// - `IncorrectEngineVersion`: The engine version does not support the operation.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `Readins.NotFound`: The current instance does not contain any read only instance. The operation is not supported.
/// - `InvalidDBInstanceName.NotFound`: The database instance does not exist.
/// - `InvalidDBInstance.NotFound`: The specified instance does not exist or is not supported.
/// - `IncorrectDBInstanceLockMode`: Current DB instance lock mode does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn modify_security_ips(
&self,
req: ModifySecurityIps,
) -> impl std::future::Future<Output = crate::Result<ModifySecurityIpsResponse>> + Send {
self.call(req)
}
/// # 修改RDS实例的SSL配置
///
/// 该接口用于修改RDS实例的SSL链路配置。
///
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
///
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
///
/// - [RDS MySQL设置SSL加密](~~96120~~)
/// - [RDS PostgreSQL设置SSL加密](~~229517~~)
/// - [RDS SQL Server设置SSL加密](~~95715~~)
///
/// # Error Codes
/// - `InvalidServerCertOrPrivateKey`: Specify server certificate or private key is invalid.
/// - `InvalidClientCACert`: Specify client ca certificate is invalid.
/// - `InvalidClientCrl`: Specify client certificate revocation list is invalid.
/// - `InvalidCAType.NotFound`: Specify ca type is not found.
/// - `InvalidACL.NotFound`: Specify acl is not found.
/// - `InvalidSSLStatus`: Specify ssl status is invalid.
/// - `IncorrectDBSslStatus`: Specified DB SSLStatus does not support this operation.
/// - `InvalidModifyMode.Format`: Specified modify mode is not valid.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `MinorVersionNotSupport.SSLEnabled`: Custins minor version does not support current action.
/// - `InvalidClientCrl.Permission`: Client ca certificate is set first if need to set client certificate revocation list.
/// - `InvalidACL.Permission`: Client ca certificate is set first if need to set acl.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `MaxscaleMinorVersionNotSupport`: The Maxscale version used by the instance is too low, please upgrade the Maxscale version first.
/// - `UnsupportedByBlueGreenDeployment`: Operation prohibited due to blue green deployment.
/// - `Endpoint.NotFound`: Specified endpoint is not existed.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn modify_db_instance_ssl(
&self,
req: ModifyDBInstanceSSL,
) -> impl std::future::Future<Output = crate::Result<ModifyDBInstanceSSLResponse>> + Send {
self.call(req)
}
/// # 修改RDS实例透明数据加密TDE状态
///
/// 该接口用于开启RDS实例的透明数据加密TDE功能,并支持修改加密状态。
///
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
///
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
///
/// - [RDS MySQL设置透明数据加密TDE](~~96121~~)
/// - [RDS PostgreSQL设置透明数据加密TDE](~~465652~~)
/// - [RDS SQL Server设置透明数据加密TDE](~~95716~~)
///
/// # Error Codes
/// - `%s`: DB Operation Failed:%s.
/// - `InvalidTDEstatus`: Specified TDEStatus has already configed in the This instance.
/// - `MissingDBName`: The request is missing a DBName parameter.
/// - `InvalidTDEstatus.Format`: The Specified TDEStatus is not valid.
/// - `Invalid.PrivateKey`: The requested privateKey parameter is invalid.
/// - `Invalid.Certificate`: The requested certificate parameter is invalid.
/// - `CertOrPrivateKeyOrPasswordNotMatched`: The public certificate, private key, and password do not match.
/// - `InvalidTDEKey`: Kms key is disabled.
/// - `InvalidTDEStatus.NotFound`: The specified TDEStatus does not exist.
/// - `PermissionDenied`: The current account has not been authorized to allow RDS to access user's KMS services, authorization needs to be granted to this account.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `BYOKCertExpired`: The certificate has exceeded the validity period.
/// - `IncorrectDBInstanceType`: Current DB instance type does not support this operation.
/// - `IncorrectEngineVersion`: Current engine version does not support operations.
/// - `IncorrectDBInstanceLockMode`: Current DB instance lock mode does not support this operation.
/// - `IncorrectDBInstanceState`: Current DB instance state does not support this operation.
/// - `DBSizeExceeded`: Exceeding the allowed DB size of DB instance.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `ByokRoleArnNotFound`: The roleArn can not be null.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `UnsupportedByBlueGreenDeployment`: Operation prohibited due to blue green deployment.
/// - `CrossBackupStrategyNotSupport`: Cross region backup strategy is not supported.
/// - `InvalidClusterKms`: this cluster not kms service.
/// - `InsufficientResourceCapacity`: There is insufficient capacity available for the requested instance.
/// - `InvalidDBName.NotFound`: Specified one or more DB name does not exist or DB status does not support.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn modify_db_instance_tde(
&self,
req: ModifyDBInstanceTDE,
) -> impl std::future::Future<Output = crate::Result<ModifyDBInstanceTDEResponse>> + Send {
self.call(req)
}
/// # 设置分布式事务白名单
///
/// 该接口用于为RDS SQL Server实例设置分布式事务白名单。
///
/// ### 适用引擎
/// RDS SQL Server
///
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
///
/// [设置分布式事务白名单](~~124321~~)
///
/// # Error Codes
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn modify_dtc_security_ip_hosts_for_sql_server(
&self,
req: ModifyDTCSecurityIpHostsForSQLServer,
) -> impl std::future::Future<
Output = crate::Result<ModifyDTCSecurityIpHostsForSQLServerResponse>,
> + Send {
self.call(req)
}
/// # 开启或关闭实例释放保护
///
/// 该接口用于开启或关闭RDS实例的释放保护功能。
///
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
/// - RDS MariaDB
///
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
///
/// - [RDS MySQL开启和关闭实例释放保护](~~414512~~)
/// - [RDS PostgreSQL开启和关闭实例释放保护](~~471512~~)
/// - [RDS SQL Server开启和关闭实例释放保护](~~416209~~)
/// - [RDS MariaDB开启和关闭实例释放保护](~~414512~~)
///
/// # Error Codes
/// - `OperationDenied.PayType`: The operation is not permitted due to pay type of instance.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - GET
/// - POST
///
pub fn modify_db_instance_deletion_protection(
&self,
req: ModifyDBInstanceDeletionProtection,
) -> impl std::future::Future<Output = crate::Result<ModifyDBInstanceDeletionProtectionResponse>>
+ Send {
self.call(req)
}
/// # 查询白名单模板关联实例
///
/// 该接口用于根据白名单模板查询关联的实例。
///
/// ### 适用引擎
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
///
/// # Error Codes
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `WhitelistTemplateId.NotFound`: Whitelist Template id not found.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn describe_whitelist_template_linked_instance(
&self,
req: DescribeWhitelistTemplateLinkedInstance,
) -> impl std::future::Future<
Output = crate::Result<DescribeWhitelistTemplateLinkedInstanceResponse>,
> + Send {
self.call(req)
}
/// # 查询实例关联的白名单模板
///
/// 该接口用于根据实例的名称查询关联的白名单模板。
///
/// ### 适用引擎
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
///
/// # Error Codes
/// - `InsName.NotFound`: InsName not found.
/// - `InvalidUserId.NotSupport`: The user ID has no permission.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `WhitelistTemplateId.NotFound`: Whitelist Template id not found.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn describe_instance_linked_whitelist_template(
&self,
req: DescribeInstanceLinkedWhitelistTemplate,
) -> impl std::future::Future<
Output = crate::Result<DescribeInstanceLinkedWhitelistTemplateResponse>,
> + Send {
self.call(req)
}
/// # 查询白名单模板信息
///
/// 该接口用于获取指定的白名单模板信息。
///
/// ### 适用引擎
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
///
/// # Error Codes
/// - `InvalidParameterTemplateId`: The parameter templateId is invalid.
/// - `WhitelistTemplateId.NotFound`: Whitelist Template id not found.
/// - `InvalidUserId.NotSupport`: The user ID has no permission.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn describe_whitelist_template(
&self,
req: DescribeWhitelistTemplate,
) -> impl std::future::Future<Output = crate::Result<DescribeWhitelistTemplateResponse>> + Send
{
self.call(req)
}
/// # 批量查询白名单模板信息
///
/// 该接口用于批量获取白名单模板,支持模糊查询。
///
/// ### 适用引擎
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
///
/// # Error Codes
/// - `InvalidParameterPaging`: The parameter maxRecordsPerPage or PageNumbers is invalid.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn describe_all_whitelist_template(
&self,
req: DescribeAllWhitelistTemplate,
) -> impl std::future::Future<Output = crate::Result<DescribeAllWhitelistTemplateResponse>> + Send
{
self.call(req)
}
/// # 查看RDS实例IP白名单
///
/// 该接口用于查询RDS实例的IP白名单。
///
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
/// - RDS MariaDB
///
/// # Error Codes
/// - `InvalidEndpointType.Format`: The specified EndpointType is invalid.
/// - `InvalidParameter`: Invalid parameter.
/// - `InvalidParameter.OwnerAccount`: The specified OwnerAccount is invalid.
/// - `WhitelistNetType.Format`: The specified is WhitelistNetType not valid.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `IncorrectDBInstanceCharacterType`: Current DB Instance character_type does not support this operation.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidDBInstanceName.NotFound`: The database instance does not exist.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn describe_db_instance_ip_array_list(
&self,
req: DescribeDBInstanceIPArrayList,
) -> impl std::future::Future<Output = crate::Result<DescribeDBInstanceIPArrayListResponse>> + Send
{
self.call(req)
}
/// # 查询RDS实例的SSL配置
///
/// 该接口用于查询RDS实例的SSL配置情况。
///
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
///
/// ### 相关功能文档
///
/// - [RDS MySQL设置SSL加密](~~96120~~)
/// - [RDS PostgreSQL设置SSL加密](~~229518~~)
/// - [RDS SQL Server设置SSL加密](~~95715~~)
///
/// # Error Codes
/// - `InvaildEngineInRegion.ValueNotSupported`: The engine is not supported in the region.
/// - `InvalideStatus.Format`: Specified Status is not valid.
/// - `ConcurrentLimit`: The request processing has been concurrent limit.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OperationDenied.DBInstanceType`: The operation is not permitted due to type of the instance.
/// - `InstanceEngineType.NotSupport`: The instance engine and type does not support operations
/// - `IncorrectEngineVersion`: Current engine version does not support operations.
/// - `IncorrectDBInstanceState`: Current DB instance state does not support this operation.
/// - `IncorrectDBInstanceType`: Current DB instance type does not support this operation.
/// - `IncorrectDBInstanceLockMode`: Current DB instance lock mode does not support this operation.
/// - `ConnectionStringLengthExceeded`: Connection String is too long.
/// - `ResourceConfigError`: The request processing has failed due to resource config error.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidDBInstanceId.NotFound`: The specified instance is not found.
/// - `EnabledSSLNotSupport`: Specified region does not support enable ssl.
/// - `InvalidConnectionString.NotFound`: Specified connection string or net type is not found.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn describe_db_instance_ssl(
&self,
req: DescribeDBInstanceSSL,
) -> impl std::future::Future<Output = crate::Result<DescribeDBInstanceSSLResponse>> + Send
{
self.call(req)
}
/// # 查询RDS实例透明数据加密TDE状态
///
/// 该接口用于查询RDS实例的透明数据加密TDE的加密状态。
///
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
///
/// # Error Codes
/// - `%s`: DB Operation Failed:%s.
/// - `Connect.Timeout`: Service can not connect to instance temporarily.
/// - `SqlExcutionFailed`: Failed to connect to host: connection timed out.
/// - `DbossGeneralError`: The instance is being created. Please wait.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `ConcurrentLimit`: The request processing has been concurrent limit.
/// - `IncorrectDBInstanceType`: Current DB instance engine and type does not support operations.
/// - `IncorrectEngineVersion`: The engine version does not support the operation.
/// - `DBSizeExceeded`: Exceeding the allowed DB size of DB instance.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidDBName.NotFound`: Specified one or more DB name does not exist or DB status does not support.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `NetworkOrSqlTimeoutError`: Failed to create login due to potential SQL Server overload or other issues that may cause the login creation fail. Please retry later.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn describe_db_instance_tde(
&self,
req: DescribeDBInstanceTDE,
) -> impl std::future::Future<Output = crate::Result<DescribeDBInstanceTDEResponse>> + Send
{
self.call(req)
}
/// # 查询云盘加密状态及密钥详情
///
/// 查询RDS实例是否开启了云盘加密,以及密钥详情。
///
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
///
/// # Error Codes
/// - `KmsApiError`: User secret key invalid.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `NoActiveBYOK`: This custins no active byok.
/// - `ByokInsnameAndRegionAllEmpty`: The insName and targetRegionId can't be all empty.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn describe_db_instance_encryption_key(
&self,
req: DescribeDBInstanceEncryptionKey,
) -> impl std::future::Future<Output = crate::Result<DescribeDBInstanceEncryptionKeyResponse>> + Send
{
self.call(req)
}
/// # 查询RDS SQL Server实例底层ECS实例的IpHostnameInfos信息
///
/// 该接口用于查询RDS SQL Server实例底层所在ECS实例的内网IP和ECS主机名。
///
/// ### 适用引擎
///
/// RDS SQL Server
///
/// ### 前提条件
/// - 实例系列:基础版、高可用版(2012及以上版本)、集群版
/// - 实例规格:通用型、独享型(不支持共享型)
/// - 实例创建时间:基础版实例的创建时间需在2022年09月02日或之后。实例创建时间可在基本信息页内的运行状态中查看。
///
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
///
/// - [设置分布式事务白名单](~~124321~~)
/// - [迁移金蝶K/3 WISE至阿里云:ECS与RDS SQL Server分布式事务最佳实践](~~124188~~)
///
/// # Error Codes
/// - `EngineNotSupported`: Engine specified cannot be supported the operation.
/// - `InvalidEngineVersion.Malformed`: Specified engine version is not valid.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `IncorrectDBInstanceType`: Current DB instance engine and type does not support operations.
/// - `IncorrectDBInstanceState`: Current DB instance state does not support this operation.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidDBInstanceName.NotFound`: Invalid DBInstanceId NotFound.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn describe_db_instance_ip_hostname(
&self,
req: DescribeDBInstanceIpHostname,
) -> impl std::future::Future<Output = crate::Result<DescribeDBInstanceIpHostnameResponse>> + Send
{
self.call(req)
}
/// # 查询RDS实例的分布式事务白名单信息
///
/// 该接口用于查询RDS SQL Server实例的分布式事务白名单信息。
///
/// ### 适用引擎
/// RDS SQL Server
///
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
/// [SQL Server设置分布式事务白名单](~~124321~~)
///
/// # Error Codes
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn describe_dtc_security_ip_hosts_for_sql_server(
&self,
req: DescribeDTCSecurityIpHostsForSQLServer,
) -> impl std::future::Future<
Output = crate::Result<DescribeDTCSecurityIpHostsForSQLServerResponse>,
> + Send {
self.call(req)
}
/// # 将白名单从通用模式切换为高安全模式
///
/// 该接口用于将RDS实例的白名单从通用模式切换为高安全模式。
///
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
///
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
///
/// - [RDS MySQL切换为高安全白名单模式](~~96117~~)
/// - [RDS PostgreSQL切换为高安全白名单模式](~~96767~~)
///
/// # Error Codes
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn migrate_security_ip_mode(
&self,
req: MigrateSecurityIPMode,
) -> impl std::future::Future<Output = crate::Result<MigrateSecurityIPModeResponse>> + Send
{
self.call(req)
}
/// # 获取SQL日志报告列表
///
/// 该接口用于查看SQL日志运行报告列表。
///
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
/// - RDS MariaDB
///
/// # Error Codes
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn describe_sql_log_report_list(
&self,
req: DescribeSQLLogReportList,
) -> impl std::future::Future<Output = crate::Result<DescribeSQLLogReportListResponse>> + Send
{
self.call(req)
}
/// # 清理或收缩RDS实例日志
///
/// 该接口用于清理RDS实例的本地日志。
///
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS SQL Server
///
/// ### 功能说明
/// RDS实例有自动上传日志备份机制,但是在实例空间不足时,您可以使用本接口手动上传日志备份,提前释放存储空间。上传后系统会自动清理本地重复的日志备份。
/// 调用本接口会将本地日志备份上传到OSS上(SQL Server会先收缩事务日志再上传),然后清理本地日志备份,释放存储空间。
///
/// ### 注意事项
/// - 上传日志备份不会影响数据恢复功能。
/// - 释放的是存储空间,不是备份空间,因此不会降低备份空间使用量。
/// - 日志备份上传到的OSS由RDS提供,不需要您购买,同时也不支持访问此OSS。
///
/// # Error Codes
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `IncorrectDBInstanceType`: Current DB instance type does not support this operation.
/// - `IncorrectDBInstanceState`: Current DB instance state does not support this operation.
/// - `IncorrectDBInstanceLockMode`: Current DB instance lock mode does not support this operation.
/// - `ConcurrentTaskExceeded`: Concurrent task exceeding the allowed amount.
/// - `IncorrectDBInstanceEngine`: Current DB Instance engine does not support this operation.
/// - `IncorrectDBInstanceCharacterType`: Current DB Instance character_type does not support this operation.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidDBInstance.NotFound`: Specified instance does not exist or not support.
/// - `InvalidPage.NotFound`: Page not found.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn purge_db_instance_log(
&self,
req: PurgeDBInstanceLog,
) -> impl std::future::Future<Output = crate::Result<PurgeDBInstanceLogResponse>> + Send {
self.call(req)
}
/// # 查询SQL洞察(SQL审计)导出文件列表
///
/// 该接口用于查询SQL洞察(SQL审计)导出文件列表。不支持查询通过控制台手动导出的SQL洞察日志文件,只支持查询通过DescribeSQLLogRecords接口生成(请求参数Form取值为File)的SQL洞察文件列表。
///
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
/// > 仅支持SQL Server 2008 R2
///
/// ### 注意事项
/// - 本API不支持查询MySQL实例SQL洞察试用版的SQL洞察列表。
/// - 本API不支持查询通过控制台手动导出的SQL洞察日志文件,只支持查询通过[DescribeSQLLogRecords](~~610533~~)API生成(请求参数**Form**取值为**File**)的SQL洞察文件列表。
/// - 本API导出的文件仅保留2天。
/// > 当开通了DAS企业版 V2和企业版 V3,使用其提供的SQL洞察和审计功能时,导出的文件保留7天。通过[DescribeSqlLogConfig](~~2778837~~)可以查询开通的企业版信息。
///
/// # Error Codes
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.
/// - `OperationDenied.Timeout`: The request processing has failed due to timeout.///
/// # Methods
/// - POST
/// - GET
///
pub fn describe_sql_log_files(
&self,
req: DescribeSQLLogFiles,
) -> impl std::future::Future<Output = crate::Result<DescribeSQLLogFilesResponse>> + Send {
self.call(req)
}
/// # 查看慢日志统计情况
///
/// 该接口用于查询慢日志统计情况。
///
/// ### 适用引擎
///
/// - RDS MySQL
/// > MySQL 5.7基础版暂不支持。
/// - RDS SQL Server
/// > 仅支持SQL Server 2008 R2版本。
/// - RDS MariaDB
///
/// ### 注意事项
/// - 慢日志统计非实时采集,可能会有6~8小时的延迟。
/// - 如果返回结果为空,请检查StartTime和EndTime配置是否符合UTC格式要求,如果满足,则表示该时间段内无慢日志。
/// - 2024年09月01日起,由于SQL的模板化算法优化,调用本接口时,**SQLHash**字段的值将发生变更。详情请参见[【通知】SQL模板化算法优化](~~2845725~~)。
///
/// # Error Codes
/// - `InvalidSearchTimeRange`: search time range cannot be longer than a month.
/// - `IO.Exception`: IO exception, retry later.
/// - `SortKey.ValueNotSupported`: SortKey.ValueNotSupported
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `RequestTimeout`: Query timed out.Please try again or narrow down the query scope.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn describe_slow_logs(
&self,
req: DescribeSlowLogs,
) -> impl std::future::Future<Output = crate::Result<DescribeSlowLogsResponse>> + Send {
self.call(req)
}
/// # 查看慢日志明细
///
/// 该接口用于查看实例的慢日志明细。
///
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
/// - RDS MariaDB
///
/// ### 注意事项
///
/// - 本接口的返回参数每分钟更新一次。
/// - 调用该接口拉取数据时会存在一定延迟,请您耐心等待调用结果的返回。
/// - 2024年09月01日起,由于SQL的模板化算法优化,调用本接口时,SQLHash字段的值将发生变更。详情请参见[【通知】慢SQL的模板化算法优化](~~2845725~~)。
///
/// # Error Codes
/// - `InvalidSearchTimeRange`: search time range cannot be longer than a month.
/// - `IO.Exception`: IO exception, retry later.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `RequestTimeout`: Query timed out.Please try again or narrow down the query scope.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn describe_slow_log_records(
&self,
req: DescribeSlowLogRecords,
) -> impl std::future::Future<Output = crate::Result<DescribeSlowLogRecordsResponse>> + Send
{
self.call(req)
}
/// # 查看错误日志
///
/// 该接口查询实例某段时间内的错误日志。
///
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
/// - RDS MariaDB
///
/// # Error Codes
/// - `InvalidSearchTimeRange`: search time range cannot be longer than a month.
/// - `IO.Exception`: IO exception, retry later.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `RequestTimeout`: Query timed out.Please try again or narrow down the query scope.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn describe_error_logs(
&self,
req: DescribeErrorLogs,
) -> impl std::future::Future<Output = crate::Result<DescribeErrorLogsResponse>> + Send {
self.call(req)
}
/// # 开启或关闭实例的SQL审计功能(停止维护)
///
/// 停止维护:可以正常调用,但不再维护。该接口用于开启或关闭实例的SQL洞察(SQL审计)功能。
///
/// 该接口已停止维护:接口仍可以正常调用,但阿里云不再维护该接口。建议您使用[ModifySqlLogConfig](~~2778835~~)接口。
///
/// # Error Codes
/// - `InvalidSqlLog.Malformed`: The specified parameter SqlLog is not valid.
/// - `InvalidConfigName`: The ConfigName is not valid.
/// - `InvalidConfigValue`: The ConfigValue is not valid.
/// - `IncorrectPerfFrequencyType`: Current DB instance does not support this perf frequency.
/// - `InvalidParameters.Format`: Specified parameter is not valid
/// - `ErrorMxsServiceInsNum.Error`: The Maxscale serviceIns num must be 1.
/// - `IncorrectSQLLogVersion`: Current DB instance SQL log version does not support this operation.
/// - `IncorrectSQLLogActiveStatus`: Current DB instance SQL log active status does not support this operation.
/// - `OperationDenied.QuotaInsufficient`: The DAS Enterprise Edition (V1) quota is insufficient.
/// - `OperationDenied.OperateFrequently`: The modification operation is too frequent.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `INSUFFICIENT_AVAILABLE_QUOTA`: Your account available limit is less than 0, please recharge before trying to purchase.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `IncorrectDBInstanceState`: Current DB instance state does not support this operation.
/// - `IncorrectDBType`: The current DB type does not support this operation.
/// - `IncorrectDBInstanceType`: Current DB instance type does not support this operation.
/// - `IncorrectDBInstanceCharacterType`: Current DB Instance character_type does not support this operation.
/// - `InvalidSqlRetention.Malformed`: Specified sql retention is not valid.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidDBInstanceName.NotFound`: The database instance does not exist.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.
/// - `OperationDenied.Timeout`: The request processing has failed due to timeout.///
/// # Methods
/// - POST
/// - GET
///
pub fn modify_sql_collector_policy(
&self,
req: ModifySQLCollectorPolicy,
) -> impl std::future::Future<Output = crate::Result<ModifySQLCollectorPolicyResponse>> + Send
{
self.call(req)
}
/// # 修改RDS实例的SQL洞察日志保存时长(停止维护)
///
/// 停止维护:可以正常调用,但不再维护。该接口用于修改RDS实例的SQL洞察日志保存时长。
///
/// 该接口已停止维护:接口仍可以正常调用,但阿里云不再维护该接口。建议您使用[ModifySqlLogConfig](~~2778835~~)接口。
///
/// # Error Codes
/// - `InvalidConfigValue`: The ConfigValue is not valid.
/// - `IncorrectSQLLogActiveStatus`: Current DB instance SQL log active status does not support this operation.
/// - `InvalidSqlRetention.Malformed`: Specified sql retention is not valid.
/// - `IncorrectSQLLogVersion`: Current DB instance SQL log version does not support this operation.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn modify_sql_collector_retention(
&self,
req: ModifySQLCollectorRetention,
) -> impl std::future::Future<Output = crate::Result<ModifySQLCollectorRetentionResponse>> + Send
{
self.call(req)
}
/// # 查询实例的SQL审计功能是否开启(停止维护)
///
/// 停止维护:可以正常调用,但不再维护。该接口用于查询RDS实例的SQL洞察(SQL审计)功能是否开启。
///
/// 该接口已停止维护:接口仍可以正常调用,但阿里云不再维护该接口。建议您使用[DescribeSqlLogConfig](~~2778837~~)接口。
///
/// # Error Codes
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.
/// - `OperationDenied.Timeout`: The request processing has failed due to timeout.///
/// # Methods
/// - POST
/// - GET
///
pub fn describe_sql_collector_policy(
&self,
req: DescribeSQLCollectorPolicy,
) -> impl std::future::Future<Output = crate::Result<DescribeSQLCollectorPolicyResponse>> + Send
{
self.call(req)
}
/// # 查询实例的SQL审计日志(停止维护)
///
/// 停止维护:可以正常调用,但不再维护。该接口用于查询RDS实例的SQL洞察(SQL审计)日志。
///
/// 该接口已停止维护:接口仍可以正常调用,但阿里云不再维护该接口。建议您使用[GetDasSQLLogHotData](~~2360999~~)接口。
///
/// ### 注意事项
/// - 本API无论调用成功或失败,单用户(主账号包括RAM账号)每分钟最多调用1000次。
/// - 本API不支持查询MySQL实例SQL洞察试用版的SQL洞察日志。
/// - 本API生成审计文件时(请求参数**Form**取值为**File**),最多记录100万条日志,且不支持通过关键字筛选日志。
///
/// # Error Codes
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidQueryTimeRange`: The query time range is invalid.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.
/// - `OperationDenied.Timeout`: The request processing has failed due to timeout.///
/// # Methods
/// - POST
/// - GET
///
pub fn describe_sql_log_records(
&self,
req: DescribeSQLLogRecords,
) -> impl std::future::Future<Output = crate::Result<DescribeSQLLogRecordsResponse>> + Send
{
self.call(req)
}
/// # 查询RDS实例的SQL洞察日志保存时长(停止维护)
///
/// 停止维护:可以正常调用,但不再维护。该接口用于查询RDS实例的SQL洞察日志保存时长。
///
/// 该接口已停止维护:接口仍可以正常调用,但阿里云不再维护该接口。建议您使用[DescribeSqlLogConfig](~~2778837~~)接口。
///
/// # Error Codes
/// - `InvalidComment`: Should specify a policy name.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn describe_sql_collector_retention(
&self,
req: DescribeSQLCollectorRetention,
) -> impl std::future::Future<Output = crate::Result<DescribeSQLCollectorRetentionResponse>> + Send
{
self.call(req)
}
/// # 修改备份集的过期时间
///
/// 该接口用于延长手动备份产生的单库备份集(物理备份、全量备份、单库备份)的过期时间。
///
/// ### 适用引擎
/// RDS SQL Server
///
///
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。
///
/// [手动备份SQL Server数据](~~95717~~)
///
/// # Error Codes
/// - `InvalidExpectExpireTime.Format`: The specified param ExpectExpireTime is not valid.
/// - `DBS.ParamIsInValid`: %s.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `NoAvailablePaymentMethod`: No payment method is specified for account. We recommend that you add a payment method.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidBackupId.NotFound`: The BackupId provided does not exist.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn modify_backup_set_expire_time(
&self,
req: ModifyBackupSetExpireTime,
) -> impl std::future::Future<Output = crate::Result<ModifyBackupSetExpireTimeResponse>> + Send
{
self.call(req)
}
/// # 为RDS实例创建备份集
///
/// 该接口用于为RDS实例创建一个备份集。
///
/// ### 适用引擎
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
/// - RDS MariaDB
///
/// ### 功能说明
/// 本接口调用的是RDS自带的备份功能接口,您也可以使用DBS。更多信息,<props="china">请参见[DBS API概览](~~2841997~~)</props><props="intl">请参见[DBS API概览](~~2402073~~)</props>。
///
/// ### 注意事项
/// 调用该接口时,实例必须满足以下条件,否则将操作失败:
/// - 实例状态为运行中。
/// - 没有正在执行中的备份任务。
/// - 单个实例一天内可创建的备份集数量不超过20个。
///
/// ### 相关功能文档
/// - [RDS MySQL备份数据](~~378074~~)
/// - [RDS PostgreSQL备份数据](~~96772~~)
/// - [RDS SQL Server备份数据](~~95717~~)
/// - [RDS MariaDB备份数据](~~97147~~)
///
/// # Error Codes
/// - `BackupType.NotSupport`: the specified backup type not support
/// - `InvalidBackupMethod.ValueNotSupport`: The specified parameter "BackupMethod" is not valid.
/// - `ReadDBInstanceNotSupport`: The operation is not permitted due to type of the instance.
/// - `IncorrectDBInstanceLockMode.ValueNotSupported`: The Current DB instance lock mode does not support this operation.
/// - `BackupJobExists`: A backup job already exists in the specified DB instance.
/// - `InvalidPreferredBackupTime.Format`: Specified preferred backup time is not valid.
/// - `InvalidDBName.Format`: Specified DB name is not valid.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OperationDenied.ApiForbidden`: operation not permitted.
/// - `IncorrectDBInstanceEngine`: Current DB Instance engine does not support this operation.
/// - `IncorrectDBInstanceType`: Current DB instance engine and type does not support operations.
/// - `IncorrectDBInstanceState`: Current DB instance state does not support this operation.
/// - `IncorrectDBInstanceCharacterType`: Current DB Instance character_type does not support this operation.
/// - `Exceeded.BackupTimes`: The backup times exceeds.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidDBInstanceName.NotFound`: The database instance does not exist.
/// - `InvalidDB.NotFound`: Specified db does not exist or DB status does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn create_backup(
&self,
req: CreateBackup,
) -> impl std::future::Future<Output = crate::Result<CreateBackupResponse>> + Send {
self.call(req)
}
/// # 删除实例数据备份文件
///
/// 该接口用于删除RDS实例的数据备份文件。
///
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
/// > 仅支持高可用版本实例。
///
/// ### 功能说明
/// 调用该接口删除数据备份文件只删除实例自身的备份集,不会删除所关联实例(只读、灾备、克隆等)的备份集。
///
/// ### 注意事项
/// 调用该接口时,实例必须满足以下条件,否则将操作失败:
/// - 实例状态为运行中;
/// - 如果日志备份已关闭,RDS实例不支持按时间点恢复功能。此时您可以删除已生成超过7天的任意数据备份文件;
/// - 如果日志备份已开启,且日志备份保留时间小于数据备份保留时间,则超过日志备份保留时间的数据备份文件可以删除。
///
/// # Error Codes
/// - `ReadDBInstanceNotSupport`: The operation is not permitted due to type of the instance.
/// - `ParameterLeastAssociate`: Must input at least one optional parameter
/// - `DeleteBackupSetNumExceed`: Delete backup set number is more than 100.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `IncorrectDBInstanceState`: Current DB instance state does not support this operation.
/// - `IncorrectDBInstanceType`: Current DB instance engine and type does not support operations.
/// - `IncorrectDBInstanceCharacterType`: Current DB Instance character_type does not support this operation.
/// - `OperationDenied.BackupSetDeleteNotSupport`: The Specified backup does not support this operation.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidDBInstanceName.NotFound`: Invalid DBInstanceId NotFound.
/// - `IncorrectDBInstanceLockMode`: Current DB instance lock mode does not support this operation.
/// - `InvalidBackupSetID.NotFound`: Specified backup set ID does not exist.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn delete_backup(
&self,
req: DeleteBackup,
) -> impl std::future::Future<Output = crate::Result<DeleteBackupResponse>> + Send {
self.call(req)
}
/// # 删除SQL Server备份文件
///
/// 该接口用于删除RDS SQL Server的备份文件。新用户不支持使用该接口,此前已加白用户仍可正常使用。
///
/// ### 适用引擎
/// RDS SQL Server
///
///
///
/// > **新用户不支持使用该接口**,您可以通过其他方案[减少或节省备份费用](~~95718~~)。此前已加白用户仍可正常使用,删除前请确认备份集可用性,一旦删除不支持再找回。
///
/// # Error Codes
/// - `InvalidBakset.Invalid`: Specified bakset is not valid.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidBackupSetID.NotFound`: Specified backup set ID does not exist.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn delete_backup_file(
&self,
req: DeleteBackupFile,
) -> impl std::future::Future<Output = crate::Result<DeleteBackupFileResponse>> + Send {
self.call(req)
}
/// # 修改实例备份策略
///
/// 该接口用于修改RDS实例的备份策略设置。
///
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
/// - RDS MariaDB
///
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
///
/// - [RDS MySQL自动备份策略设置](~~98818~~)
/// - [RDS PostgreSQL自动备份策略设置](~~96772~~)
/// - [RDS SQL Server自动备份策略设置](~~95717~~)
/// - [RDS MariaDB自动备份策略设置](~~97147~~)
///
/// # Error Codes
/// - `InvalidColdRetention.Format`: Invalid cold retention format.
/// - `InvalidLogBackupFrequency.Malformed`: Invalid log backup frequency.
/// - `InvalidBackupRetentionPeriod.Malformed`: The specified backup retention period is invalid.
/// - `BackupPropertyNotFound`: Backup policy not found
/// - `OperationDenied.SwitchToSnapshot`: Snapshot backup does not support cross region storage at present. Please turn off cross region backup before switching to snapshot backup mode.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `IncorrectBackupPolicy`: The current instance has an advanced backup policy enabled. Currently, you cannot use the OpenAPI to modify the backup policy. You need to modify the backup policy in the console.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `IncorrectCategory`: Current Instance type does not support Category.
/// - `OperationDenied.SwitchSnapshotToPhysical`: Only physical backup to snapshot backup is supported.
/// - `OperationDenied.ModifyBackupSwitchOff`: The switch is not turned on. It is forbidden to modify the backup mode.
/// - `OperationDenied.ApiForbiddenForLogBackupFrequency`: When the instance is a snapshot backup, the log backup frequency is not allowed to be consistent with the data backup.
/// - `OperationDenied.NotSupportedBackupMethod`: When the storage is larger than 4000 GB, only snapshot backup is supported.
/// - `OperationDenied.ApiForbidden`: Operation is not permitted.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `NetworkOrSqlTimeoutError`: Failed to create login due to potential SQL Server overload or other issues that may cause the login creation fail. Please retry later.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn modify_backup_policy(
&self,
req: ModifyBackupPolicy,
) -> impl std::future::Future<Output = crate::Result<ModifyBackupPolicyResponse>> + Send {
self.call(req)
}
/// # 查看RDS实例备份集列表
///
/// 该接口用于查看RDS实例的备份集列表。
///
/// ### 适用引擎
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
/// - RDS MariaDB
///
/// # Error Codes
/// - `InvalidRestoreTime.Malformed`: The requested restoreTime param is invalid, or the requested restoreTime is not within the scope of the instance backup.
/// - `InvalidPageNumbers.Malformed`: Specified page number is not valid.
/// - `InvalidStartTime.Format`: Specified start time is not valid.
/// - `InvalidEndTime.Format`: Specified end time is not valid.
/// - `InvalidParameterCombination`: The end time must be greater than the start time
/// - `InvalidDBinstanceClass.ValueNotSupported`: The specified parameter DBinstanceClass is invalid.
/// - `InvalidBackupSetLocation.Format`: Specified backup set location is not valid.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `InvalidMaxRecordsPerPage.Malformed`: Specified record number is not valid.
/// - `IncorrectDBInstanceState`: Current DB instance state does not support this operation.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidDBInstanceName.NotFound`: The database instance does not exist.
/// - `InvalidDBInstance.NotFound`: The specified instance does not exist or is not supported.
/// - `Request.NotFound`: The requested resource is not available.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn describe_backups(
&self,
req: DescribeBackups,
) -> impl std::future::Future<Output = crate::Result<DescribeBackupsResponse>> + Send {
self.call(req)
}
/// # 查询已被释放的RDS MySQL实例中备份集列表
///
/// 该接口用于查看已被释放的RDS MySQL实例的备份集列表。
///
/// ### 适用引擎
/// RDS MySQL
///
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
///
/// [设置实例释放后备份保留策略](~~2836955~~)
///
/// # Error Codes
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn describe_detached_backups(
&self,
req: DescribeDetachedBackups,
) -> impl std::future::Future<Output = crate::Result<DescribeDetachedBackupsResponse>> + Send
{
self.call(req)
}
/// # 查看实例备份设置
///
/// 该接口用于查询RDS实例的备份设置。
///
/// ### 适用引擎
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
/// - RDS MariaDB
///
/// # Error Codes
/// - `IO.Exception`: IO exception, retry later.
/// - `InternalFailure`: Internal failure, retry later.
/// - `InvalidParameter.OwnerAccount`: The specified parameter OwnerAccount is not valid.
/// - `InvalidEngine.Malformed`: Specified engine is not valid.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `IncorrectDBInstanceState`: Current DB instance state does not support this operation.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidDBInstance.NotFound`: Specified instance does not exist or not support.
/// - `InvalidDBInstanceName.NotFound`: Invalid DBInstanceId NotFound.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn describe_backup_policy(
&self,
req: DescribeBackupPolicy,
) -> impl std::future::Future<Output = crate::Result<DescribeBackupPolicyResponse>> + Send {
self.call(req)
}
/// # 查询实例的备份任务列表
///
/// 该接口用于查询RDS实例的备份任务列表。
///
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
/// - RDS MariaDB
///
/// # Error Codes
/// - `InternalFailure`: Internal failure, retry later.
/// - `InvalidParameter.OwnerAccount`: The specified parameter OwnerAccount is not valid.
/// - `ReadDBInstanceNotSupport`: The operation is not permitted due to type of the instance.
/// - `InvalidParameters.Format`: Specified parameter is not valid
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidDBInstanceName.NotFound`: Invalid DBInstanceId NotFound.
/// - `InvalidDBInstance.NotFound`: Specified instance does not exist or not support.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn describe_backup_tasks(
&self,
req: DescribeBackupTasks,
) -> impl std::future::Future<Output = crate::Result<DescribeBackupTasksResponse>> + Send {
self.call(req)
}
/// # 查看RDS实例的日志(Binglog/Wal)文件
///
/// 该接口用于查询RDS MySQL/RDS MariaDB实例的Binlog日志或RDS PostgreSQL实例的Wal日志。
///
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS MariaDB
///
/// ### 注意事项
/// - 当**DownloadLink**为NULL时,表示RDS没有提供下载链接URL。
/// - 当**DownloadLink**不为NULL时,用户可以根据此URL下载备份文件,此URL已设置过期时间**LinkExpiredTime**,请在过期时间之前下载。
/// - 当通过RAM账号下载备份文件时,需要为RAM账号授权,详情请参见[添加下载备份文件权限给只读RAM账号](~~100043~~)。
/// - 返回的日志列表中包含日志记录结束时间在查询开始时间之后,并且日志记录开始时间在查询结束时间之前的所有日志。
///
/// # Error Codes
/// - `ParameterLeastAssociate`: Must input at least one optional parameter.
/// - `InvalidParameters.Format`: Specified parameter is not valid
/// - `ParameterAbsence`: Necessary parameter is absence.
/// - `ServiceTemporarilyClosed`: Service temporarily closed.
/// - `ReadDBInstanceNotSupport`: The operation is not permitted due to type of the instance.
/// - `InvalidStartTime.Format`: Specified start time is not valid.
/// - `InvalidEndTime.Format`: Specified end time is not valid.
/// - `InvalidParameterCombination`: The end time must be greater than the start time
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `IncorrectDBInstanceEngine`: Current DB Instance engine does not support this operation.
/// - `IncorrectDBInstanceCharacterType`: Current DB Instance character_type does not support this operation.
/// - `IncorrectDBInstanceState`: Current DB instance state does not support this operation.
/// - `IncorrectDBInstanceLockMode`: Current DB instance lock mode does not support this operation.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidDBInstance.NotFound`: Specified instance does not exist or not support.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn describe_binlog_files(
&self,
req: DescribeBinlogFiles,
) -> impl std::future::Future<Output = crate::Result<DescribeBinlogFilesResponse>> + Send {
self.call(req)
}
/// # 查询实例的日志备份文件
///
/// 该接口用于查询RDS SQL Server实例的日志备份文件。
///
/// ### 适用引擎
///
/// RDS SQL Server
///
/// > 其他引擎日志文件可通过DescribeBinlogFiles查看。
///
/// # Error Codes
/// - `ParameterLeastAssociate`: Must input at least one optional parameter.
/// - `InvalidParameters.Format`: Specified parameter is not valid.
/// - `ParameterAbsence`: Necessary parameter is absence.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `IncorrectDBInstanceEngine`: Current DB Instance engine does not support this operation.
/// - `IncorrectDBInstanceCharacterType`: Current DB Instance character_type does not support this operation.
/// - `IncorrectDBInstanceState`: Current DB instance state does not support this operation.
/// - `IncorrectDBInstanceLockMode`: Current DB instance lock mode does not support this operation.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidDBInstance.NotFound`: Specified instance does not exist or not support.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn describe_log_backup_files(
&self,
req: DescribeLogBackupFiles,
) -> impl std::future::Future<Output = crate::Result<DescribeLogBackupFilesResponse>> + Send
{
self.call(req)
}
/// # 查询备份集数据库列表
///
/// 查询备份集下的数据库列表。
///
/// # Error Codes
/// - `InvalidRestoreTime.Malformed`: The requested restoreTime param is invalid, or the requested restoreTime is not within the scope of the instance backup.
/// - `InvalidPageNumbers.Malformed`: Specified page number is not valid.
/// - `InvalidStartTime.Format`: Specified start time is not valid.
/// - `InvalidEndTime.Format`: Specified end time is not valid.
/// - `InvalidParameterCombination`: The end time must be greater than the start time
/// - `InvalidDBInstanceClass.ValueNotSupported`: The specified parameter "DBInstanceClass" is not valid.
/// - `InvalidBackupSetLocation.Format`: Specified backup set location is not valid.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `InvalidMaxRecordsPerPage.Malformed`: Specified record number is not valid.
/// - `IncorrectDBInstanceState`: Current DB instance state does not support this operation.
/// - `ResourceConfigError`: The request processing has failed due to resource config error.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidDBInstanceName.NotFound`: The database instance does not exist.
/// - `InvalidDBInstance.NotFound`: The specified instance does not exist or is not supported.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn describe_backup_database(
&self,
req: DescribeBackupDatabase,
) -> impl std::future::Future<Output = crate::Result<DescribeBackupDatabaseResponse>> + Send
{
self.call(req)
}
/// # 创建临时实例
///
/// 该接口用于为RDS SQL Server 2008 R2高性能本地盘实例创建临时实例。
///
/// ### 适用引擎
/// RDS SQL Server 2008 R2(高性能本地盘)
///
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
///
/// [通过临时实例恢复SQL Server数据](~~95724~~)
///
/// # Error Codes
/// - `OperationDenied.DBInstanceStatus`: The operation is not permitted due to status of instance.
/// - `IncorrectInstanceNetworkType`: The specified parameter InstanceNetworkType is not valid.
/// - `InvalidAvailableArea.NotFound`: Specified available area does not exist in RDS.
/// - `InvalidRestoreType.Format`: Specified restore type is not valid.
/// - `ParamTypeError`: The parameter type error.
/// - `InvalidRetainInstance.Format`: Specified retain instance is not valid.
/// - `InvalidRestoreTime.Format`: Specified restore time is not valid.
/// - `InvalidRegion.Format`: Specified Region is not valid.
/// - `InvalidInstanceLevelExtraInfo`: Specified class code has error extra info.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OperationDenied.TempDBInstanceExists`: The operation is not permitted due to temp instance exist.
/// - `IncorrectDBInstanceType`: Current DB instance engine and type does not support operations.
/// - `IncorrectDBInstanceState`: Current DB instance state does not support this operation.
/// - `IncorrectDBInstanceCharacterType`: Current DB Instance character_type does not support this operation.
/// - `InvalidBackupLogStatus`: Current backup log enable status does not support this operation.
/// - `ChildDBInstanceExists`: Current DB instance had child instance.
/// - `IncorrectDBInstance`: The current DB instance does not support this operation.
/// - `IncorrectBackupSetMethod`: Current backup set method does not support operations.
/// - `IncorrectBackupSetState`: Current backup set state does not support operations.
/// - `IncorrectDBInstanceConnType`: Current DB instance conn type does not support this operation.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidDBInstanceName.NotFound`: The specified db instance is not found.
/// - `IncorrectDBInstanceLockMode`: Current DB instance lock mode does not support this operation.
/// - `InvalidBackupSetID.NotFound`: Specified backup set ID does not exist.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn create_temp_db_instance(
&self,
req: CreateTempDBInstance,
) -> impl std::future::Future<Output = crate::Result<CreateTempDBInstanceResponse>> + Send {
self.call(req)
}
/// # 查询RDS实例备份可恢复的时间范围
///
/// 该接口用于查询RDS实例备份可恢复的时间范围。
///
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS MariaDB
///
/// # Error Codes
/// - `ParameterLeastAssociate`: Must input at least one optional parameter
/// - `InvalidParameters.Format`: Specified parameter is not valid
/// - `ParameterAbsence`: Necessary parameter is absence.
/// - `MissingUserID`: The request is missing a user_id parameter.
/// - `MissingUID`: The request is missing a uid parameter.
/// - `LogBackupNotEnabled`: Specified instance does not enabled logbackup
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `IncorrectDBInstanceCharacterType`: Current DB Instance character_type does not support this operation.
/// - `IncorrectDBInstanceState`: Current DB instance state does not support this operation.
/// - `IncorrectDBInstanceEngine`: Current DB Instance engine does not support this operation.
/// - `IncorrectDBInstanceLockMode`: Current DB instance lock mode does not support this operation.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidDBInstance.NotFound`: Specified instance does not exist or not support.
/// - `InvalidUser.NotFound`: Specified user does not exist.
/// - `InvalidBinlog.NotFound`: The available binlog does not exist in recovery time.
/// - `InvalidBackup.NotFound`: The available backup does not exist in recovery time.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn describe_local_available_recovery_time(
&self,
req: DescribeLocalAvailableRecoveryTime,
) -> impl std::future::Future<Output = crate::Result<DescribeLocalAvailableRecoveryTimeResponse>>
+ Send {
self.call(req)
}
/// # 查询备份集的库表信息
///
/// 该接口用于查询目标备份集中可恢复的库表信息。
///
/// ### 适用引擎
/// RDS MySQL
/// > 仅支持MySQL 8.0、5.7、5.6高可用版(本地SSD盘)。
///
/// ### 功能说明
/// 在使用[RestoreTable](~~131510~~)接口进行[MySQL单库单表恢复](~~103175~~)之前,您可以通过本接口查询可恢复的库表信息。
///
/// # Error Codes
/// - `NoAvailableDisasterRestoreBakset`: No available disaster restore bakset
/// - `InvalidPageSize`: The page size is invalid
/// - `InvalidPageIndex`: The page index is invalid
/// - `InvalidRestoreTime.Format`: Specified restore time is not valid.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `InvalidMeta.Empty`: Meta information is empty.
/// - `InvalidMeta.TooLarge`: Meta information is too large.
/// - `IncorrectDBInstanceType`: Current DB instance type does not support this operation.
/// - `IncorrectEngineVersion`: Current engine version does not support operations.
/// - `InvalidBackupLogStatus`: Current backup log enable status does not support this operation.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidBackupSetID.NotFound`: Specified backup set ID does not exist.
/// - `InvalidParameters.Format`: Specified parameter({}) is not valid.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn describe_meta_list(
&self,
req: DescribeMetaList,
) -> impl std::future::Future<Output = crate::Result<DescribeMetaListResponse>> + Send {
self.call(req)
}
/// # 恢复SQL Server数据
///
/// 该接口用于将RDS SQL Server备份数据恢复到已有实例或新实例上。
///
/// ### 适用引擎
/// RDS SQL Server(2012及以上版本的实例)
///
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
/// [恢复SQL Server数据](~~95722~~)
///
/// # Error Codes
/// - `IllegalParameter`: illegal parameter, param is empty.
/// - `InvalidRecoveryDbInstance.StorageSize`: The disk space of the new instance cannot be less than that of the current instance
/// - `DBCountLimitExceeded`: Db count limit exceeded.
/// - `UnsupportExtendDisk.NotSupport`: Specified DB instance is unsupport extend disk.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `Forbidden.SnapshotRecovery`: Snapshot backup does not support partial restore
/// - `StorageLimitExceeded`: Exceeding the allowed Storage of DB instance
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `NetworkOrSqlTimeoutError`: Failed to create login due to potential SQL Server overload or other issues that may cause the login creation fail. Please retry later.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn recovery_db_instance(
&self,
req: RecoveryDBInstance,
) -> impl std::future::Future<Output = crate::Result<RecoveryDBInstanceResponse>> + Send {
self.call(req)
}
/// # 恢复数据(克隆实例)
///
/// 该接口用于将历史数据恢复至一个新实例(称为克隆实例)。
///
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
/// - RDS MariaDB
///
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
///
/// - [RDS MySQL恢复数据](~~96147~~)
/// - [RDS PostgreSQL恢复数据](~~96776~~)
/// - [RDS SQL Server恢复数据](~~95722~~)
/// - [RDS MariaDB恢复数据](~~97151~~)
///
/// # Error Codes
/// - `InvalidAvZone.Format`: Specified AvZone is not valid.
/// - `InvalidAvZone.NotSupport`: Specified availableArea multiZone does not support in RDS.
/// - `CannotDecreaseEssdPerfLevel`: cannot decrease cloud essd performance level.
/// - `InvalidIPAddress.Conflict`: IP address conflict.
/// - `CDDC.AvailableHostsNotEnoughInZone`: Not enough available hosts are in the target zone.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidRecoveryDbInstance.StorageType`: The disk local_ssd can not clone to cloud disk type
/// - `InvalidRecoveryDbInstance.StorageSize`: The disk space of the new instance cannot be less than that of the current instance
/// - `InvalidDBInstanceClass.Offline`: The specified instance type is no longer provided. Please specify another instance type.
/// - `InvalidTunnelId`: Specified conn tunnel is not valid.
/// - `ZoneId.NotMatchWithCategory`: The number of available zones does not match the database engine or instance edition. Please reset it.
/// - `UnsupportExtendDisk.NotSupport`: Specified DB instance is unsupport extend disk.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `StopService.Clone`: The service has been discontinued and cloning operations on classic network instances are no longer permitted.
/// - `InvalidParam.UsedTime`: The clone expiration date cannot exceed %s.
/// - `MinorVersionTag.NotFound`: Minor version tags cannot be parsed by the instance.
/// - `InvalidBakset.Invalid`: Specified bakset is not valid.
/// - `InvalidParamForXfs`: Xfs instance must be single tenant standard instance.
/// - `AtLeastThreeVSwitchAvailableIp`: The primary vswitch requires at least three available IP addresses.
/// - `AtLeastTwoVSwitchAvailableIp`: The primary vswitch requires at least two available IP addresses.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `IncorrectCharacterType`: Current DB instance character type does not support this operation.
/// - `CloudDiskEncryptionNotSupport`: The encryption key is not allowed for general-purpose instance.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidDBInstance.NotFound`: The specified instance does not exist or is not supported.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn clone_db_instance(
&self,
req: CloneDBInstance,
) -> impl std::future::Future<Output = crate::Result<CloneDBInstanceResponse>> + Send {
self.call(req)
}
/// # 恢复RDS实例的某些数据库或表到原实例
///
/// 该接口拥有恢复RDS实例的某些数据库或表到原实例。
///
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
///
///
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
///
/// - [RDS MySQL恢复库表](~~103175~~)
/// - [RDS PostgreSQL恢复指定数据库](~~613672~~)
///
/// # Error Codes
/// - `InvalidRestoreType.Format`: Specified restore type is not valid.
/// - `InvalidRestoreTime.Format`: Specified restore time is not valid.
/// - `InvalidBakset.Invalid`: Specified bakset is not valid.
/// - `InvalidParamTableMeta`: Invalid parameter TableMeta is null or not json format
/// - `InvalidBakHistoryDO`: BakHistory is inbalid when check restore TableMeta
/// - `InvalidBakTableMetaDO`: BakTableMeta in BakHistory.Info is invalid
/// - `InvalidParamTableMeta.Content`: TableMeta has duplicate db.table in newname or with common.
/// - `InvalidParamTableMeta.Duplicate`: TableMeta has duplicate db or table with other newname, commons or system
/// - `InvalidSourceRestoreDBName.NotFound`: specific source restore dbname is not found in db list
/// - `InvalidParamTableMetaForRestore.Content`: new dbname or table in TableMeta cannot be same with old when restore to source instance
/// - `InvalidDBName.Duplicate`: Specified DB name already exists in the This instance.
/// - `InvalidParameters.Format`: Specified parameters is not valid.
/// - `InvalidAvZone.Format`: Specified AvZone is not valid.
/// - `InvalidRegion.Format`: Specified Region is not valid.
/// - `InvalidIP.Format`: Specified ip is not valid.
/// - `InvalidVpcParameter`: Specified VPCId VSwitchId or IPAddress or TunnelId is not valid.
/// - `MissingUserID`: The request is missing a user_id parameter.
/// - `MissingUID`: The request is missing a uid parameter.
/// - `MissBackupSetAndRestoreTime.NotFound`: Both BackupSet and RestoreTime are null.
/// - `InvalidBakHistory.DbVersionMismatch`: db version of bakhistory is mismatch with custins
/// - `DiskSize.NotEnough`: The disk size is not enough to restore tables.
/// - `InvalidSourceCategory`: specified source category is not supported for this function.
/// - `RestoreTableException`: RestoreTable Exception, result is null.
/// - `InvalidParamTableMeta.TooManyTables`: At most 100 tables are supported. Restoring the database is recommended.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `InvalidBackupLogStatus`: Current backup log enable status does not support this operation.
/// - `IncorrectDBInstanceType`: Current DB instance type does not support this operation.
/// - `IncorrectDBInstanceState`: Current DB instance state does not support this operation.
/// - `IncorrectBackupSetMethod`: Current backup set method does not support operations.
/// - `IncorrectBackupSetState`: Current backup set state does not support operations.
/// - `ChildDBInstanceExists`: Current DB instance had child instance.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidBackup.NotFound`: The available backup does not exist in recovery time.
/// - `InvalidBinlog.NotFound`: The available binlog does not exist in recovery time.
/// - `InvalidBackupSetID.NotFound`: Specified backup set ID does not exist.
/// - `InvalidDB.NotFound`: Specified db does not exist or DB status does not support.
/// - `InvalidRegion.NotFound`: Specified Region does not exist in RDS.
/// - `InsufficientResourceCapacity`: There is insufficient capacity available for the requested instance.
/// - `InvalidDBInstance.NotFound`: Specified instance does not exist or not support.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ResourceConfigError`: The request processing has failed due to resource config error.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn restore_table(
&self,
req: RestoreTable,
) -> impl std::future::Future<Output = crate::Result<RestoreTableResponse>> + Send {
self.call(req)
}
/// # 跨地域恢复数据到新实例
///
/// 该接口用于跨地域恢复数据到新实例。
///
/// ### 使用建议
/// 恢复前建议先调用CheckCreateDdrDBInstance接口预检查目标RDS实例的跨地域备份集是否可以用于进行跨地域恢复。
///
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
///
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
///
/// - [RDS MySQL跨地域备份](~~120824~~)
/// - [RDS PostgreSQL跨地域备份](~~206671~~)
/// - [RDS SQL Server跨地域备份](~~187923~~)
///
/// # Error Codes
/// - `InvalidZoneId.NotSupported`: The Specified vpc Zone not supported.
/// - `InvalidDBInstanceName.Format`: Specified DB instance name is not valid.
/// - `InvalidDBInstanceName.Duplicate`: Specified DB instance name already exists in the Aliyun RDS.
/// - `InvalidRegion.Format`: Specified Region is not valid.
/// - `InvalidServiceType.Format`: Specified service type is not valid.
/// - `InvalidEngine.Malformed`: Specified engine is not valid.
/// - `InvalidEngineVersion.Malformed`: Specified engine version is not valid.
/// - `InvalidConnectionString.Format`: Specified connection string is not valid.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the Aliyun RDS.
/// - `InvalidCharacterSetName.Format`: Specified character set name is not valid.
/// - `InvalidDBInstanceType.Format`: Specified instance type is not valid.
/// - `InvalidPort.Malformed`: Specified port is not valid.
/// - `InvalidBackupRetentionPeriod.Malformed`: Specified backup retention period is not valid.
/// - `InvalidPreferredBackupTime.Format`: Specified preferred backup time is not valid.
/// - `InvalidPreferredBackupPeriod.Malformed`: Specified backup period is not valid.
/// - `InvalidOptmizationService`: Specified optmization service is not valid.
/// - `InvalidExpiredTime.Format`: Specified expired time is not valid.
/// - `InvalidSecurityIPList.Format`: Specified security IP list format is not valid.
/// - `InvalidSecurityIPList.Duplicate`: Specified security IP list is not valid: Duplicate IP address in the list
/// - `InvalidSecurityIPList.QuotaExceeded`: Specified security IP list is not valid: Exceeding the allowed amount of IP address in the list.
/// - `InvalidDBInstanceDescription.Format`: Specified DB instance description is not valid.
/// - `InvalidStorage.Format`: Specified Storage is not valid.
/// - `InvalidDBInstanceConnType.Format`: Specified DB instance conn type is not valid.
/// - `PreCheckInvalid`: CreateDdrInstance PreCheck Is Invalid
/// - `IncorrectDBInstanceType`: Current DB instance engine and type does not support operations.
/// - `InvalidRestoreType.Format`: Specified restore type is not valid.
/// - `NoBackupSetRegion`: BackupSetRegion is absence.
/// - `IncorrectBackupSetType`: Backup set type should be value ddr.
/// - `NoBaksetName`: BaksetName is absence.
/// - `NoSourceInstanceName`: No SourceDBInstanceName.
/// - `NoAvailableDisasterRestoreBakset`: No available disaster restore bakset.
/// - `InvalidBackupType.Format`: Specified backup type is not valid.
/// - `IncorrectEngineVersion`: Current engine version does not support operations.
/// - `DisasterRestoreRegionNotMatched`: Disaster restore should be operated in the ddr region or source region.
/// - `InvalidVpcIdRegion.NotSupported`: The Specified vSwitchId zone not supported.
/// - `VswitchIpExhausted`: No available ip in the specified vswitch.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `IncorrectBackupSetMethod`: Current backup set method does not support operations.
/// - `IncorrectBaksetVersion`: Current bakset version does not support operations.
/// - `CrossRegionUnsupportTDE`: Cross-region disaster restore not support TDE bakset.
/// - `OperationDenied.Resource`: Specified DB instance class or storage is not available in all Availability Zones.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidRegion.NotFound`: Specified Region does not exist in the RDS
/// - `InvalidClusterName.NotFound`: The specified cluster name is not available.
/// - `InvalidDBInstanceClass.NotFound`: Specified DB instance class is not found.
/// - `InvalidDBInstanceNetType.NotFound`: Specified DB instance net type is not found.
/// - `RestoreType.NotFound`: RestoreType is not found.
/// - `InvalidBackupSetID.NotFound`: Specified backup set ID does not exist.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn create_ddr_instance(
&self,
req: CreateDdrInstance,
) -> impl std::future::Future<Output = crate::Result<CreateDdrInstanceResponse>> + Send {
self.call(req)
}
/// # 修改RDS跨地域备份设置
///
/// 该接口用于修改RDS跨地域备份设置。
///
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
///
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
///
/// - [RDS MySQL跨地域备份](~~120824~~)
/// - [RDS PostgreSQL跨地域备份](~~206671~~)
/// - [RDS SQL Server跨地域备份](~~187923~~)
///
/// # Error Codes
/// - `InvalidParameters.Format`: Specified parameter is not valid.
/// - `ParameterAbsence`: Necessary param is absence.
/// - `ParameterLeastAssociate`: Must input at least one optional parameter.
/// - `InvalidRegion.Format`: Specified Region is not valid.
/// - `OperationDenied.SwitchToCrossRegionBackup`: Snapshot backup does not support cross region backup storage at present.
/// - `OperationDenied.SwitchToSnapshot`: Snapshot backup does not support cross region storage at present. Please turn off cross region backup before switching to snapshot backup mode.
/// - `OperationDenied.SwitchSnapshotToPhysical`: Only physical backup to snapshot backup is supported.
/// - `UnsupportEncryptedSnapshot`: Encrypted DB instance snapshot does not support this operation.
/// - `DstRegionNoUser`: The user info wasn't found destination region, please access the purchase page to initiate registration.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `IncorrectEngineVersion`: Current engine version does not support operations.
/// - `IncorrectHostType`: Current DB Instance host type does not support this operation.
/// - `IncorrectDBInstanceType`: Current DB instance type does not support this operation.
/// - `IncorrectDBInstanceEngine`: Current DB Instance engine does not support this operation.
/// - `IncorrectDBInstanceLockMode`: Current DB instance lock mode does not support this operation.
/// - `IncorrectDBInstanceState`: Current DB instance state does not support this operation.
/// - `InvalidDdrStorage.NotFound`: Specified Ddr Storage does not exist or not support.
/// - `CrossBackupNotSupport`: Specified region not support cross region backup.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidDBInstance.NotFound`: Specified instance does not exist or not support.
/// - `InvalidPage.notFound`: Page not found.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn modify_instance_cross_backup_policy(
&self,
req: ModifyInstanceCrossBackupPolicy,
) -> impl std::future::Future<Output = crate::Result<ModifyInstanceCrossBackupPolicyResponse>> + Send
{
self.call(req)
}
/// # 查询跨地域备份设置
///
/// 该接口用于查询跨地域备份设置。
///
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
///
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
///
///
/// - [RDS MySQL跨地域备份](~~120824~~)
/// - [RDS PostgreSQL跨地域备份](~~206671~~)
/// - [RDS SQL Server跨地域备份](~~187923~~)
///
/// # Error Codes
/// - `InvalidRegion.Format`: Specified Region is not valid.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `CrossBackupNotSupport`: Specified region not support cross region backup.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidPage.notFound`: Page not found.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn describe_instance_cross_backup_policy(
&self,
req: DescribeInstanceCrossBackupPolicy,
) -> impl std::future::Future<Output = crate::Result<DescribeInstanceCrossBackupPolicyResponse>> + Send
{
self.call(req)
}
/// # 查询实例跨地域备份的库表信息
///
/// 该接口用于查询RDS实例跨地域备份的库表信息。
///
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
///
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
///
///
/// - [RDS MySQL跨地域备份](~~120824~~)
/// - [RDS PostgreSQL跨地域备份](~~206671~~)
/// - [RDS SQL Server跨地域备份](~~187923~~)
///
/// # Error Codes
/// - `NoAvailableDisasterRestoreBakset`: No available disaster restore bakset
/// - `InvalidPageSize`: The page size is invalid
/// - `InvalidPageIndex`: The page index is invalid
/// - `InvalidRestoreTime.Format`: Specified restore time is not valid.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `InvalidMeta.Empty`: Meta information is empty.
/// - `InvalidMeta.TooLarge`: Meta information is too large.
/// - `IncorrectDBInstanceType`: Current DB instance type does not support this operation.
/// - `IncorrectEngineVersion`: Current engine version does not support operations.
/// - `InvalidBackupLogStatus`: Current backup log enable status does not support this operation.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidBackupSetID.NotFound`: Specified backup set ID does not exist.
/// - `InvalidParameters.Format`: Specified parameter({}) is not valid.
/// - `Request.NotFound`: The requested resource is not available.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn describe_cross_backup_meta_list(
&self,
req: DescribeCrossBackupMetaList,
) -> impl std::future::Future<Output = crate::Result<DescribeCrossBackupMetaListResponse>> + Send
{
self.call(req)
}
/// # 查询某RDS实例跨地域数据备份文件列表
///
/// 该接口用于查询某RDS实例跨地域数据备份文件列表。
///
/// ### 适用引擎
/// - RDS MySQL([存储类型](~~69795~~)需为**高性能本地盘**,不支持云盘)
/// - RDS PostgreSQL
/// - RDS SQL Server
///
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
///
///
/// - [RDS MySQL跨地域备份](~~120824~~)
/// - [RDS SQL Server跨地域备份](~~187923~~)
/// - [RDS PostgreSQL跨地域备份](~~206671~~)
///
/// > 如需查询跨地域日志备份文件,请参见DescribeCrossRegionLogBackupFiles。
///
/// # Error Codes
/// - `ParameterAbsence`: Necessary param is absence.
/// - `InvalidParameters.Format`: Specified parameter is not valid.
/// - `InvalidRegion.Format`: Specified Region is not valid.
/// - `InvalidStartTime.Format`: Specified start time is not valid.
/// - `InvalidEndTime.Format`: Specified end time is not valid.
/// - `InvalidTime.Format`: Specified time is not valid.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `CrossBackupNotSupport`: Specified region not support cross region backup.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidPage.notFound`: Page not found.
/// - `InvalidDBInstance.NotFound`: Specified instance does not exist or not support.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn describe_cross_region_backups(
&self,
req: DescribeCrossRegionBackups,
) -> impl std::future::Future<Output = crate::Result<DescribeCrossRegionBackupsResponse>> + Send
{
self.call(req)
}
/// # 查询跨地域日志备份文件列表
///
/// 该接口用于查询跨地域日志备份文件列表。
///
/// ### 适用引擎
///
/// - RDS MySQL([存储类型](~~69795~~)需为**高性能本地盘**,不支持云盘)
/// - RDS PostgreSQL
/// - RDS SQL Server
///
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
///
/// - [RDS MySQL跨地域备份](~~120824~~)
/// - [RDS SQL Server跨地域备份](~~187923~~)
/// - [RDS PostgreSQL跨地域备份](~~206671~~)
///
/// > 如需查询跨地域数据备份文件,请参见DescribeCrossRegionBackups。
///
/// # Error Codes
/// - `ParameterAbsence`: Necessary param is absence.
/// - `InvalidParameters.Format`: Specified parameter is not valid.
/// - `InvalidRegion.Format`: Specified Region is not valid.
/// - `InvalidStartTime.Format`: Specified start time is not valid.
/// - `InvalidEndTime.Format`: Specified end time is not valid.
/// - `InvalidTime.Format`: Specified time is not valid.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `CrossBackupNotSupport`: Specified region not support cross region backup.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidDBInstance.NotFound`: Specified instance does not exist or not support.
/// - `InvalidPage.notFound`: Page not found.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn describe_cross_region_log_backup_files(
&self,
req: DescribeCrossRegionLogBackupFiles,
) -> impl std::future::Future<Output = crate::Result<DescribeCrossRegionLogBackupFilesResponse>> + Send
{
self.call(req)
}
/// # 查询可以进行跨地域备份的目的地域
///
/// 该接口用于查询所选地域当前可以进行跨地域备份的目的地域。
///
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
///
/// ### 相关功能文档
///
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
///
/// - [RDS MySQL跨地域备份](~~120824~~)
/// - [RDS PostgreSQL跨地域备份](~~206671~~)
/// - [RDS SQL Server跨地域备份](~~187923~~)
///
/// # Error Codes
/// - `InvalidRegion.Format`: Specified Region is not valid.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `CrossBackupNotSupport`: Specified region not support cross region backup.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidPage.notFound`: Page not found.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn describe_available_cross_region(
&self,
req: DescribeAvailableCrossRegion,
) -> impl std::future::Future<Output = crate::Result<DescribeAvailableCrossRegionResponse>> + Send
{
self.call(req)
}
/// # 查询备份文件可恢复的时间段
///
/// 该接口用于查询某跨地域备份文件可恢复哪个时间段的数据。
///
/// > 查看普通备份文件可恢复哪个时间段的数据请参见DescribeBackups。
/// ### 适用引擎
/// RDS MySQL(高性能本地盘)
///
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
/// [RDS MySQL跨地域备份](~~120824~~)
///
/// # Error Codes
/// - `NoAvailableLogBackup`: No available log backup.
/// - `NoAvailableDisasterRestoreBakset`: No available disaster restore bakset.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `CrossBackupNotSupport`: Specified region not support cross region backup.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidBackupSetID.NotFound`: Specified backup set ID does not exist.
/// - `InvalidPage.notFound`: Page not found.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn describe_available_recovery_time(
&self,
req: DescribeAvailableRecoveryTime,
) -> impl std::future::Future<Output = crate::Result<DescribeAvailableRecoveryTimeResponse>> + Send
{
self.call(req)
}
/// # 查询开启跨地域备份实例
///
/// 该接口用于查询所选地域的哪些实例开启了跨地域备份,以及这些实例的跨地域备份设置。
///
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
///
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
///
/// - [RDS MySQL跨地域备份](~~120824~~)
/// - [RDS PostgreSQL跨地域备份](~~206671~~)
/// - [RDS SQL Server跨地域备份](~~187923~~)
///
/// # Error Codes
/// - `InvalidParameters.Format`: Specified parameter is not valid.
/// - `InvalidRegion.Format`: Specified Region is not valid.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `CrossBackupNotSupport`: Specified region not support cross region backup.
/// - `IncorrectDBInstanceEngine`: Current DB Instance engine does not support this operation.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidPage.notFound`: Page not found.
/// - `InvalidUser.NotFound`: Specified user does not exist.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn describe_cross_region_backup_db_instance(
&self,
req: DescribeCrossRegionBackupDBInstance,
) -> impl std::future::Future<
Output = crate::Result<DescribeCrossRegionBackupDBInstanceResponse>,
> + Send {
self.call(req)
}
/// # 预检查实例是否可以进行跨地域恢复
///
/// 该接口用于预检查某RDS实例是否可以用跨地域备份集进行跨地域恢复。
///
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
///
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
///
/// - [MySQL跨地域备份](~~120824~~)、[MySQL跨地域恢复](~~120875~~)
/// - [PostgreSQL跨地域备份](~~206671~~)、[PostgreSQL跨地域恢复](~~206662~~)
/// - [SQL Server跨地域备份](~~187923~~)、[SQL Server跨地域恢复](~~187924~~)
///
/// # Error Codes
/// - `IncorrectDBInstanceType`: Current DB instance engine and type does not support operations.
/// - `InvalidRestoreType.Format`: Specified restore type is not valid.
/// - `NoBackupSetRegion`: BackupSetRegion is absence.
/// - `IncorrectBackupSetType`: Backup set type should be ddr.
/// - `NoSourceInstanceName`: No SourceDBInstanceName.
/// - `NoAvailableDisasterRestoreBakset`: No available disaster restore bakset.
/// - `IncorrectBackupSetMethod`: Current backup set method does not support operations.
/// - `InvalidBackupType.Format`: Specified backup type is not valid.
/// - `IncorrectEngineVersion`: Current engine version does not support operations.
/// - `IncorrectBaksetVersion`: Current bakset version does not support operations.
/// - `CrossRegionUnsupportTDE`: Cross-region disaster restore not support TDE bakset.
/// - `DisasterRestoreRegionNotMatched`: Disaster restore should be operated in the ddr region or source region.
/// - `InvalidMinorVersion.NotFound`: Specified minor version does not exists.
/// - `InvalidDBInstanceId.MalFormed`: The specified parameter DBInstanceId is not valid.
/// - `InvalidEngine.Malformed`: Specified engine is not valid.
/// - `InvalidEngineVersion.Malformed`: Specified engine version is not valid.
/// - `MissingUserID`: The request is missing a user_id parameter.
/// - `MissingUID`: The request is missing a uid parameter.
/// - `UserPermissionFailure`: The request processing has failed due to user permission.
/// - `InvalidServiceType.Format`: Specified service type is not valid.
/// - `InvalidStorage.Format`: Specified Storage is not valid.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `IncorrectDBType`: The current DB type does not support this operation.
/// - `IncorrectDBInstance`: The current DB instance does not support this operation.
/// - `ResourceConfigError`: The request processing has failed due to resource config error.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `RestoreType.NotFound`: RestoreType is not found.
/// - `InvalidBackupSetID.NotFound`: Specified backup set ID does not exist.
/// - `InvalidDBInstance.NotFound`: The specified instance does not exist or is not supported.
/// - `InvalidDBInstanceClass.NotFound`: Specified DB instance class is not found.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn check_create_ddr_db_instance(
&self,
req: CheckCreateDdrDBInstance,
) -> impl std::future::Future<Output = crate::Result<CheckCreateDdrDBInstanceResponse>> + Send
{
self.call(req)
}
/// # 跨地域恢复数据到已有实例
///
/// 该接口用于跨地域恢复数据到已有实例。
///
/// > 恢复前可以调用CheckCreateDdrDBInstance接口预检查某RDS实例是否可以用跨地域备份集进行跨地域恢复。
///
/// ### 适用引擎
/// RDS MySQL
///
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
///
/// - [RDS MySQL跨地域备份](~~120824~~)
/// - [RDS MySQL跨地域恢复](~~120875~~)
///
/// # Error Codes
/// - `InvalidRestoreType.Format`: Specified restore type is not valid.
/// - `InvalidRestoreTime.Format`: Specified restore time is not valid.
/// - `InvalidBakset.Invalid`: Specified bakset is not valid.
/// - `InvalidParamTableMetaForRestore.Content`: new dbname or table in TableMeta cannot be same with old when restore to source instance
/// - `InvalidParamTableMeta`: Invalid parameter TableMeta is null or not json format
/// - `InvalidBakHistoryDO`: BakHistory is inbalid when check restore TableMeta
/// - `InvalidParamTableMeta.Content`: TableMeta missing old dbname or new dbname, please check
/// - `InvalidParamTableMeta.Duplicate`: TableMeta has duplicate db or table with other newname, commons or system
/// - `InvalidSourceRestoreDBName.NotFound`: specific source restore dbname is not found in db list
/// - `InvalidDBName.Duplicate`: Specified DB name already exists in the This instance.
/// - `InvalidParameters.Format`: Specified parameters is not valid.
/// - `InvalidAvZone.Format`: Specified AvZone is not valid.
/// - `InvalidRegion.Format`: Specified Region is not valid.
/// - `InvalidVpcParameter`: Specified VPCId VSwitchId or IPAddress or TunnelId is not valid.
/// - `MissingUserID`: The request is missing a user_id parameter.
/// - `MissingUID`: The request is missing a uid parameter.
/// - `NoAvailableDisasterRestoreBakset`: No available disaster restore bakset.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `IncorrectDBInstanceType`: Current DB instance type does not support this operation.
/// - `IncorrectDBInstanceState`: Current DB instance state does not support this operation.
/// - `ChildDBInstanceExists`: Current DB instance had child instance.
/// - `InvalidBackupLogStatus`: Current backup log enable status does not support this operation.
/// - `IncorrectBackupSetMethod`: Current backup set method does not support operations.
/// - `IncorrectBackupSetState`: Current backup set state does not support operations.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `RestoreType.NotFound`: RestoreType is not found.
/// - `InvalidBackupSetID.NotFound`: Specified backup set ID does not exist.
/// - `InsufficientResourceCapacity`: There is insufficient capacity available for the requested instance.
/// - `InvalidBackup.NotFound`: The available backup does not exist in recovery time.
/// - `InvalidBinlog.NotFound`: The available binlog does not exist in recovery time.
/// - `InvalidDB.NotFound`: Specified db does not exist or DB status does not support.
/// - `InvalidDBInstance.NotFound`: Specified instance does not exist or not support.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn restore_ddr_table(
&self,
req: RestoreDdrTable,
) -> impl std::future::Future<Output = crate::Result<RestoreDdrTableResponse>> + Send {
self.call(req)
}
/// # 设置实例的监控采集粒度
///
/// 该接口用于修改监控频率。
///
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS SQL Server
///
/// ### 注意事项
/// RDS MySQL的秒级监控需要收取额外费用,请确保在使用该接口前,已充分了解RDS产品的[收费方式和价格](~~45020~~)。
///
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
///
/// - [RDS MySQL设置监控频率](~~96112~~)
/// - [RDS SQL Server设置监控频率](~~95710~~)
///
/// # Error Codes
/// - `InvalidParameter.OwnerAccount`: The specified parameter OwnerAccount is not valid.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OperationDenied.DBInstanceMonitorPeriod`: Current DB instance does not support this monitor period.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in our records.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn modify_db_instance_monitor(
&self,
req: ModifyDBInstanceMonitor,
) -> impl std::future::Future<Output = crate::Result<ModifyDBInstanceMonitorResponse>> + Send
{
self.call(req)
}
/// # 修改RDS PostgreSQL展示的监控指标项
///
/// 该接口用于变更RDS PostgreSQL实例展示的增强监控指标。
///
/// ### 适用引擎
/// - RDS PostgreSQL
///
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
///
/// [查看增强监控](~~299200~~)。
///
/// # Error Codes
/// - `InvalidMetricsConfig`: The specified metrics config is invalid.
/// - `InvalidScope`: The specified scope is invalid
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidDBInstanceName.NotFound`: The database instance does not exist.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn modify_db_instance_metrics(
&self,
req: ModifyDBInstanceMetrics,
) -> impl std::future::Future<Output = crate::Result<ModifyDBInstanceMetricsResponse>> + Send
{
self.call(req)
}
/// # 查看实例的空间利用信息
///
/// 该接口用于查询RDS实例的空间使用信息。
///
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
/// - RDS MariaDB
///
/// # Error Codes
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.///
/// # Methods
/// - POST
/// - GET
///
pub fn describe_resource_usage(
&self,
req: DescribeResourceUsage,
) -> impl std::future::Future<Output = crate::Result<DescribeResourceUsageResponse>> + Send
{
self.call(req)
}
/// # 查询实例性能数据
///
/// 该接口用于查询实例性能数据。
///
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
/// - RDS MariaDB
///
/// # Error Codes
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `InvalidOthers.Timeout`: Query timed out.Please try again or narrow down the query scope.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn describe_db_instance_performance(
&self,
req: DescribeDBInstancePerformance,
) -> impl std::future::Future<Output = crate::Result<DescribeDBInstancePerformanceResponse>> + Send
{
self.call(req)
}
/// # 查询监控频率
///
/// 该接口用于查询监控频率。
///
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS SQL Server
/// - RDS MariaDB
///
/// # Error Codes
/// - `InvalidParameter.OwnerAccount`: The specified parameter OwnerAccount is not valid.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn describe_db_instance_monitor(
&self,
req: DescribeDBInstanceMonitor,
) -> impl std::future::Future<Output = crate::Result<DescribeDBInstanceMonitorResponse>> + Send
{
self.call(req)
}
/// # 查询RDS PostgreSQL的所有监控指标项
///
/// 该接口用于获取RDS PostgreSQL实例支持的所有增强监控指标。
///
/// ### 适用引擎
/// - RDS PostgreSQL
///
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
///
/// [查看增强监控](~~299200~~)。
///
/// # Error Codes
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidDBInstanceName.NotFound`: The database instance does not exist.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn describe_available_metrics(
&self,
req: DescribeAvailableMetrics,
) -> impl std::future::Future<Output = crate::Result<DescribeAvailableMetricsResponse>> + Send
{
self.call(req)
}
/// # 查询RDS PostgreSQL实例展示的监控指标项
///
/// 该接口用于查询RDS PostgreSQL实例已开启展示的增强指标。
///
/// ### 适用引擎
/// - RDS PostgreSQL
///
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
///
/// [查看增强监控](~~299200~~)。
///
/// # Error Codes
/// - `InvalidInstanceMetricsConfigs.NotFound`: The specified instance has no metrics configs
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidDBInstanceName.NotFound`: The database instance does not exist.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn describe_db_instance_metrics(
&self,
req: DescribeDBInstanceMetrics,
) -> impl std::future::Future<Output = crate::Result<DescribeDBInstanceMetricsResponse>> + Send
{
self.call(req)
}
/// # 创建参数模板
///
/// 该接口用于创建RDS参数模板。
///
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
///
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
///
/// - [RDS MySQL使用参数模板](~~130565~~)
/// - [RDS PostgreSQL使用参数模板](~~457176~~)
///
/// # Error Codes
/// - `InvalidParameters.Malformed`: The specified parameter "Parameters" is not valid.
/// - `ParamGroupsNameInvalid`: The specified parameter group name is invalid.
/// - `InvalidEngine.Malformed`: Specified engine is not valid.
/// - `InvalidEngineVersion.Malformed`: Specified engine version is not valid.
/// - `ParamGroupsDbTypeNotSupport`: The parameter group does not support the specified database type.
/// - `ParamGroupsDbVersionNotSupport`: The parameter group does not support the database version.
/// - `ParamNotExist`: This param Not Exist
/// - `ParamTypeError`: The parameter type error.
/// - `ParamGroupsNotExistOrTypeNotSupport`: The parameter group does not exist or its type is not supported.
/// - `InvalidRegion.Format`: Specified Region is not valid.
/// - `%s`: The following parameters are prohibited: <br />%s
/// - `ParamGroupsDescInvalid`: The maximum length of parameter group description is exceeded.
/// - `InvalidParameterValue.NotStandard`: Invalid parameter format.
/// - `InvalidParameters.Format`: Specified parameter is not valid
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn create_parameter_group(
&self,
req: CreateParameterGroup,
) -> impl std::future::Future<Output = crate::Result<CreateParameterGroupResponse>> + Send {
self.call(req)
}
/// # 删除参数模板
///
/// 该接口用于删除RDS参数模板。
///
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
///
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
///
/// - [MySQL使用参数模板](~~130565~~)
/// - [PostgreSQL使用参数模板](~~457176~~)
///
/// # Error Codes
/// - `ParamGroupsNotExist`: The specified paramGroups does not exist.
/// - `ParamGroupsNotExistOrTypeNotSupport`: The parameter group does not exist or its type is not supported.
/// - `ParamGroupsInUse`: Delete an in-use param group is forbidden.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn delete_parameter_group(
&self,
req: DeleteParameterGroup,
) -> impl std::future::Future<Output = crate::Result<DeleteParameterGroupResponse>> + Send {
self.call(req)
}
/// # 修改实例参数
///
/// 该接口用于修改RDS实例的参数值。
///
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
/// - RDS MariaDB
///
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
///
/// - [RDS MySQL设置实例参数](~~96063~~)
/// - [RDS PostgreSQL设置实例参数](~~96751~~)
/// - [RDS SQL Server设置实例参数](~~95667~~)
/// - [RDS MariaDB设置实例参数](~~97130~~)
///
/// # Error Codes
/// - `PendingActionOverdue`: the action execution time is already overdue
/// - `EngineMigration.ActionDisabled`: Specified action is disabled while custins is in engine migration.
/// - `%s`: The following parameters are prohibited: <br />%s
/// - `Invalid.ParamGroupDBCategory`: ParamGroup category is basic, not standard.
/// - `InvalidEffectiveTime.SpecialTimeIsNull`: SpecialTime is not valid.
/// - `InvalidParameters.Format`: Specified parameters is not valid.
/// - `StorageEngine.NotSupported`: Current instance storage engine dose not support this operation.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `SystemParamGroupCode.Format`: Specific DBParamGroupId is not valid.
/// - `Database.ConnectError`: Database connect error. please check instance status and database processlist
/// - `InvalidInstanceParameter`: Specified name for the instance parameter is not valid.
/// - `GroupReplicationNotSupport.InvalidParameters`: Group Replication limits parameters and does not support modification.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OperationDenied.XengineSwitch`: Current custins can not turn off xengine param.
/// - `InvalidParameterValue.Limit`: Parameter value exceeds limit.
/// - `IncorrectDBInstanceType`: The current database instance type does not support the operation.
/// - `IncorrectDBInstanceState`: The current database status does not support the operation.
/// - `ParamNotSupportedForCurrentVersion`: Parameter is not supported for current version.
/// - `Invalid.Parameter`: Specified parameters is not valid.
/// - `IncorrectEffectiveTime`: The specified EffectiveTime params is not valid.
/// - `GroupReplicationNotSupport.InvalidEngineVersion`: Group Replication requires the instance engine version to be 8.0.
/// - `GroupReplicationNotSupport.InvalidNodeClassCode`: Group Replication requires the ClassCode of each node to be consistent.
/// - `GroupReplicationNotSupport.InvalidNodeNum`: Group Replication is not supported, the number of nodes must be an odd number greater than or equal to 3.
/// - `GroupReplicationNotSupport.InvalidXengine`: Group Replication is not supported because the instance has xengine tables.
/// - `GroupReplicationNotSupport.MemoryTooSmall`: Group Replication is not supported because the memory is too small.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `GroupReplicationNotSupport.TableWithoutPrimaryKey`: Group Replication is not supported because the instance exists table has no primary key.
/// - `IncorrectDBInstance`: The current DB instance does not support this operation.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidDBInstance.NotFound`: The specified instance does not exist or is not supported.
/// - `InvalidParam`: Sepcified wal_level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn modify_parameter(
&self,
req: ModifyParameter,
) -> impl std::future::Future<Output = crate::Result<ModifyParameterResponse>> + Send {
self.call(req)
}
/// # 修改参数模板
///
/// 该接口用于修改RDS参数模板。
///
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
///
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
///
/// - [MySQL使用参数模板](~~130565~~)
/// - [PostgreSQL使用参数模板](~~457176~~)
///
/// # Error Codes
/// - `InvalidParameters.Malformed`: The specified parameter "Parameters" is not valid.
/// - `ParamGroupsNotExist`: This paramGroups not exist
/// - `%s`: The following parameters are prohibited: <br />%s
/// - `ParamGroupsNameInvalid`: The parameter group name is invalid.
/// - `InvalidParameterGroupId.Malformed`: Specified parameterGroupId is not valid.
/// - `ParamGroupsNotExistOrTypeNotSupport`: The parameter group does not exist or its type is not supported.
/// - `ParamNotExist`: This param Not Exist
/// - `ParamTypeError`: The parameter type error.
/// - `ParamGroupsDescInvalid`: The maximum length of parameter group description is exceeded.
/// - `InvalidParameterValue.NotStandard`: Invalid parameter format.
/// - `InvalidParameters.Prohibited`: Specified parameter is not valid: %s.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn modify_parameter_group(
&self,
req: ModifyParameterGroup,
) -> impl std::future::Future<Output = crate::Result<ModifyParameterGroupResponse>> + Send {
self.call(req)
}
/// # 查询实例当前的参数配置
///
/// 该接口用于查询实例当前的参数配置。
///
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
/// - RDS MariaDB
///
/// # Error Codes
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `ConcurrentLimit`: The request processing has been concurrent limit.
/// - `DbossGeneralError`: The instance is being created. Please wait.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidDBInstance.NotFound`: Specified instance does not exist or not support.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `NetworkOrSqlTimeoutError`: Failed to create login due to potential SQL Server overload or other issues that may cause the login creation fail. Please retry later.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn describe_parameters(
&self,
req: DescribeParameters,
) -> impl std::future::Future<Output = crate::Result<DescribeParametersResponse>> + Send {
self.call(req)
}
/// # 查询RDS实例的参数修改日志
///
/// 该接口用于查询RDS实例的参数修改日志。
///
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
/// - RDS MariaDB
///
/// # Error Codes
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn describe_modify_parameter_log(
&self,
req: DescribeModifyParameterLog,
) -> impl std::future::Future<Output = crate::Result<DescribeModifyParameterLogResponse>> + Send
{
self.call(req)
}
/// # 查看参数模板详情列表
///
/// 该接口用于查询数据库参数模板。
///
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
/// - RDS MariaDB
///
/// # Error Codes
/// - `Invalid.ParamGroupDBCategory`: Invalid parameter group category
/// - `ParameterIllegal`: Param is illegal parameter.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn describe_parameter_templates(
&self,
req: DescribeParameterTemplates,
) -> impl std::future::Future<Output = crate::Result<DescribeParameterTemplatesResponse>> + Send
{
self.call(req)
}
/// # 查询目标地域的参数模板列表
///
/// 该接口用于查询目标地域的参数模板列表。
///
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
///
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
///
/// - [MySQL使用参数模板](~~130565~~)
/// - [PostgreSQL使用参数模板](~~457176~~)
///
/// # Error Codes
/// - `InvalidUID.Duplicate`: Specified uid is not valid.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn describe_parameter_groups(
&self,
req: DescribeParameterGroups,
) -> impl std::future::Future<Output = crate::Result<DescribeParameterGroupsResponse>> + Send
{
self.call(req)
}
/// # 查询指定的RDS参数模板信息
///
/// 该接口用于查询指定的RDS参数模板信息。
///
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
///
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
///
/// - [MySQL使用参数模板](~~130565~~)
/// - [PostgreSQL使用参数模板](~~457176~~)
///
/// # Error Codes
/// - `ParamGroupsNotExist`: The specified paramGroups does not exist.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ParamGroupOptionValue.NotFound`: Specified system parameter group option value not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn describe_parameter_group(
&self,
req: DescribeParameterGroup,
) -> impl std::future::Future<Output = crate::Result<DescribeParameterGroupResponse>> + Send
{
self.call(req)
}
/// # 复制参数模板
///
/// 该接口用于复制RDS参数模板到当前地域或其他地域内。
///
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
///
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
///
/// - [MySQL使用参数模板](~~130565~~)
/// - [PostgreSQL使用参数模板](~~457176~~)
///
/// # Error Codes
/// - `InvalidParameterGroupId.Malformed`: Specified parameterGroupId is not valid.
/// - `InvalidEngine.Malformed`: Specified engine is not valid.
/// - `InvalidEngineVersion.Malformed`: Specified engine version is not valid.
/// - `ParamNotExist`: This param Not Exist
/// - `ParamTypeError`: The parameter type error.
/// - `ParamGroupOptionValue.NotSupport`: Specified option value unsupported.
/// - `ParamGroupsNotExist`: The specified paramGroups does not exist.
/// - `InvalidParameters.Malformed`: One or more of the request parameters provided are not valid.
/// - `%s`: The following parameters are prohibited: <br />%s
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `ParamGroupOptionKey.NotFound`: Specified system parameter group option unregistered.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn clone_parameter_group(
&self,
req: CloneParameterGroup,
) -> impl std::future::Future<Output = crate::Result<CloneParameterGroupResponse>> + Send {
self.call(req)
}
/// # 查看实例迁移状态列表
///
/// 该接口用于查看实例迁移状态列表。
///
/// ### 适用引擎
///
/// - RDS MySQL
///
/// # Error Codes
/// - `InvalidMigrationType.Format`: Specified migration type is not valid.
/// - `InvalidPageNumbers.Malformed`: Specified page number is not valid.
/// - `ParameterLeastAssociate`: Must input at least one optional parameter
/// - `InvalidParameterCombination`: The end time must be greater than the start time
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OperationDenied.DBInstanceType`: The operation is not permitted due to type of instance.
/// - `InvalidMaxRecordsPerPage.Malformed`: Specified record number is not valid.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidDBInstanceName.NotFound`: Invalid DBInstanceId NotFound.
/// - `InvalidDBInstance.NotFound`: Specified instance does not exist or not support.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn descibe_imports_from_database(
&self,
req: DescibeImportsFromDatabase,
) -> impl std::future::Future<Output = crate::Result<DescibeImportsFromDatabaseResponse>> + Send
{
self.call(req)
}
/// # 修改多个主动运维任务切换时间
///
/// 该接口用于修改RDS实例计划内运维任务的切换时间。
///
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
/// - RDS MariaDB
///
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
///
/// - [RDS MySQL计划内事件](~~104183~~)
/// - [RDS PostgreSQL计划内事件](~~104452~~)
/// - [RDS SQL Server计划内事件](~~104451~~)
/// - [RDS MariaDB计划内事件](~~104454~~)
///
/// # Error Codes
/// - `StartTimeBeforeNow`: The start time should be later than current time.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `InvalidTime.Format`: Specified time is not valid.
/// - `TaskModifyError`: Part of the tasks cannot be modified.
/// - `SwitchTimeAfterDeadline`: The switch time should be earlier than deadline.
/// - `IncorrectTaskType`: Current task does not support this operation.
/// - `TaskHasStarted`: Task has started.
/// - `IncorrectTaskStatus`: The status of certain task does not support this operation.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `InvalidRequest`: Invalid Request.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `InvalidParams.RecordNotFound`: No records found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn modify_active_operation_tasks(
&self,
req: ModifyActiveOperationTasks,
) -> impl std::future::Future<Output = crate::Result<ModifyActiveOperationTasksResponse>> + Send
{
self.call(req)
}
/// # 查询多个主动运维任务信息
///
/// 该接口用于查看RDS实例的计划内运维任务详情。
///
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
/// - RDS MariaDB
///
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
///
/// - [RDS MySQL计划内事件](~~104183~~)
/// - [RDS PostgreSQL计划内事件](~~104452~~)
/// - [RDS SQL Server计划内事件](~~104451~~)
/// - [RDS MariaDB计划内事件](~~104454~~)
///
/// # Error Codes
/// - `InvalidPageParam.Format`: Page param should be a positive integer.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `InvalidDBType`: The DB type does not support this operation.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `InvalidRequest`: Invalid Request.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn describe_active_operation_tasks(
&self,
req: DescribeActiveOperationTasks,
) -> impl std::future::Future<Output = crate::Result<DescribeActiveOperationTasksResponse>> + Send
{
self.call(req)
}
/// # 取消主动运维任务
///
/// 该接口用于取消尚未开始的运维任务。
///
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
/// - RDS MariaDB
///
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
///
/// - [RDS MySQL计划内事件](~~104183~~)
/// - [RDS PostgreSQL计划内事件](~~104452~~)
/// - [RDS SQL Server计划内事件](~~104451~~)
/// - [RDS MariaDB计划内事件](~~104454~~)
///
/// ### 使用限制
/// 以下情况任务不允许被取消:
/// - allowCancel为0。
/// - 当前时间大于任务开始时间。
/// - 任务状态不为3(等待执行)。
///
/// # Error Codes
/// - `StartTimeBeforeNow`: The start time should be later than current time.
/// - `IncorrectEventStatus`: Current event's status does not support this operation.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `InvalidRequest`: Invalid Request.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn cancel_active_operation_tasks(
&self,
req: CancelActiveOperationTasks,
) -> impl std::future::Future<Output = crate::Result<CancelActiveOperationTasksResponse>> + Send
{
self.call(req)
}
/// # 删除用户备份
///
/// 该接口用于删除RDS MySQL的目标用户备份。
///
/// ### 适用引擎
///
/// - RDS MySQL
///
/// ### 功能说明
/// * 用户备份即MySQL自建库的全量备份数据,您可以将用户备份恢复至云上。更多信息,请参见[自建MySQL 5.7数据库全量上云](~~251779~~)。
/// * 本接口仅会从RDS控制台删除目标用户备份,不会影响OSS中的原备份文件。删除后您可以调用ImportUserBackupFile接口重新导入用户备份。
///
/// # Error Codes
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OperationDenied.Product`: The product code is not supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn delete_user_backup_file(
&self,
req: DeleteUserBackupFile,
) -> impl std::future::Future<Output = crate::Result<DeleteUserBackupFileResponse>> + Send {
self.call(req)
}
/// # 变更用户备份信息
///
/// 该接口用于变更用户备份的备注信息和保留时长。
///
/// ### 适用引擎
/// RDS MySQL
///
/// ### 相关功能文档
/// 用户备份即MySQL自建库的全量备份数据,您可以将用户备份恢复至云上。更多信息,请参见[MySQL 5.7、8.0自建数据库全量上云](~~251779~~)。
///
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
///
/// # Error Codes
/// - `InvalidParam`: The specified parameter is invalid.
/// - `OperationDenied.Product`: The product code is not supported.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn update_user_backup_file(
&self,
req: UpdateUserBackupFile,
) -> impl std::future::Future<Output = crate::Result<UpdateUserBackupFileResponse>> + Send {
self.call(req)
}
/// # 查询用户备份信息
///
/// 该接口用于查询所有已导入至RDS的用户备份的详情。
///
/// ### 适用引擎
///
/// - RDS MySQL
///
/// ### 功能说明
/// * 用户备份即MySQL自建库的全量备份数据,您可以将用户备份恢复至云上。更多信息,请参见[自建MySQL 5.7数据库全量上云](~~251779~~)。
/// * 通过[CreateDBInstance](~~26228~~)接口创建RDS MySQL备份上云实例时,可调用此接口查询用户备份ID。
/// * 您可以调用[ImportUserBackupFile](~~260266~~)接口将用户备份导入RDS。
///
/// # Error Codes
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn list_user_backup_files(
&self,
req: ListUserBackupFiles,
) -> impl std::future::Future<Output = crate::Result<ListUserBackupFilesResponse>> + Send {
self.call(req)
}
/// # 导入用户备份
///
/// 该接口用于将自建库MySQL 5.7的备份数据导入至RDS。
///
/// ### 适用引擎
///
/// - RDS MySQL
///
/// ### 功能说明
/// 用户备份即MySQL自建库的全量备份数据,您可以将用户备份恢复至云上。
///
/// ### 注意事项
/// **调用本接口,您需要满足下述条件:**
/// * 已通过XtraBackup备份自建MySQL 5.7或8.0,备份文件名以`_qp.xb`结尾。更多信息,请参见[自建MySQL 5.7、8.0数据库全量上云](~~251779~~)。
/// * 已将自建MySQL 5.7或8.0的备份文件上传至对应地域的OSS Bucket。更多信息,请参见[自建MySQL 5.7、8.0数据库全量上云](~~251779~~)。
///
/// # Error Codes
/// - `InvalidOssBackupFile.InvalidFile`: The specified OSS backup file is invalid.
/// - `OperationDenied.Product`: The product code is not supported.
/// - `InvalidBackupFile.Format`: The specified params BackupFile(BackupId or RestoreTime or BackupFile) is not valid.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `InvalidUserBakset`: The user backup set to be imported is invalid.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn import_user_backup_file(
&self,
req: ImportUserBackupFile,
) -> impl std::future::Future<Output = crate::Result<ImportUserBackupFileResponse>> + Send {
self.call(req)
}
/// # 创建上云迁移任务
///
/// 该接口用于将OSS上的自建SQL Server备份文件还原到RDS SQL Server实例,实现数据上云。
///
/// ### 适用引擎
/// RDS SQL Server
///
/// ### 前提条件
/// [已将自建SQL Server备份数据上传至OSS中](~~100019~~)。
///
/// ### 使用限制
///
/// - 不支持跨阿里云账号迁移数据。例如,不支持将主账号A中OSS上的备份文件迁移至主账号B中的RDS SQL Server实例中。
/// - 若要跨账号迁移数据,请先将[源账号A下的OSS数据复制到目标账号B下的OSS存储空间](~~2401486~~),确保OSS数据和RDS SQL Server实例在同一阿里云主账号下时,再使用本文接口创建迁移任务。
///
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的**前提条件**、**准备工作**及使用后造成的影响后,再进行操作。></notice>
/// [SQL Server实例级别迁移上云](~~100019~~)
///
/// # Error Codes
/// - `InvalidFile`: The operation does not support this kind of file
/// - `InvalidInstanceType`: The DB instance type does not support this operation.
/// - `InvalidInstanceLockMode`: The DB instance lock mode does not support this operation.
/// - `InvalidDBName`: The instance does not have the specified DB name.
/// - `InvalidDBType`: The DB type does not support this operation.
/// - `InvalidDBState`: The DB state does not support this operation.
/// - `ExceedUploadTime`: Exceeding the daily upload times of this DB.
/// - `InvalidOSSURL`: The Specified OSS URL is not valid
/// - `ExceedDiskSize`: The file size exceeding the disk size
/// - `EntityNotExist.Role`: The role not exists
/// - `DatabaseMustOnline`: Database must be taken online when task type is 0 or 1.
/// - `InvalideStatus`: Parent migrate task status is invalid.
/// - `InvalidOssObjectStorageClassType`: The specified OSS bucket storage type is invalid.
/// - `EngineNotSupported`: Engine specified cannot be supported the operation.
/// - `EngineVersionNotSupported`: EngineVersion specified cannot be replicate with the source DB Instance.
/// - `BakFileSizeExceeded`: Exceeding the allowed backup file size.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `InvalidInstanceState`: The DB instance state does not support this operation.
/// - `InvalidOssObjectPositions.Format`: The specified params OssObjectPositions is not valid.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `BakFilesNeeded`: Backup file does not supply.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn create_migrate_task(
&self,
req: CreateMigrateTask,
) -> impl std::future::Future<Output = crate::Result<CreateMigrateTaskResponse>> + Send {
self.call(req)
}
/// # 打开备份数据上云任务的数据库
///
/// 该接口用于打开RDS SQL Server备份数据上云任务的数据库。
///
/// ### 适用引擎
///
/// - RDS SQL Server
///
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
///
/// 本接口用于备份数据上云,建议您先查看如下文档后,再使用本接口。
/// - [全量备份数据上云(SQL Server 2008 R2)](~~95737~~)
/// - [全量备份数据上云(SQL Server 2012、2014、2016、2017和2019)](~~95738~~)
/// - [增量备份数据上云(SQL Server 2012、2014、2016、2017和2019)](~~95736~~)
///
/// # Error Codes
/// - `EngineNotSupported`: Engine specified cannot be supported the operation.
/// - `EngineVersionNotSupported`: EngineVersion specified cannot be replicate with the source DB Instance.
/// - `InvalideStatus`: Parent migrate task status is invalid.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `IncorrectDBInstanceState`: Current DB instance state does not support this operation.
/// - `IncorrectDBInstanceType`: Current DB instance engine and type does not support operations.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidDBInstanceName.NotFound`: Invalid DBInstanceId NotFound.
/// - `IncorrectDBInstanceLockMode`: Current DB instance lock mode does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn create_online_database_task(
&self,
req: CreateOnlineDatabaseTask,
) -> impl std::future::Future<Output = crate::Result<CreateOnlineDatabaseTaskResponse>> + Send
{
self.call(req)
}
/// # 查询备份数据上云任务列表
///
/// 该接口用于查询RDS SQL Server实例备份数据上云任务列表。
///
/// ### 适用引擎
///
/// - RDS SQL Server
///
/// ### 功能说明
/// 该接口可以查询实例在最近一周内的备份数据上云任务记录。
///
/// ### 注意事项
/// * 备份数据上云的源备份文件必须是全量备份(FULL)文件。
/// * 暂不支持SQL Server 2017集群版实例。
///
/// # Error Codes
/// - `InvalidStartTimeAndEndTime.Malformed`: The end time must be greater than the start time
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `InvalidInstanceState`: The DB instance state does not support this operation.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn describe_migrate_tasks(
&self,
req: DescribeMigrateTasks,
) -> impl std::future::Future<Output = crate::Result<DescribeMigrateTasksResponse>> + Send {
self.call(req)
}
/// # 查看备份数据上云任务的文件详情
///
/// 该接口用于查询RDS SQL Server备份数据上云任务的文件详情。
///
/// ### 适用引擎
///
/// - RDS SQL Server
///
/// ### 注意事项
/// 该接口暂不支持SQL Server 2017企业版和2019 企业版实例。
///
/// # Error Codes
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn describe_oss_downloads(
&self,
req: DescribeOssDownloads,
) -> impl std::future::Future<Output = crate::Result<DescribeOssDownloadsResponse>> + Send {
self.call(req)
}
/// # 获取迁移任务
///
/// 该接口用于查询SQL Server的某个OSS备份上云任务的信息。
///
/// ### 适用引擎
///
/// - RDS SQL Server
///
/// # Error Codes
/// - `InvalidStartTimeAndEndTime.Malformed`: The end time must be greater than the start time.
/// - `InvalidMigrateTask`: The specified MigrateTaskId 237360 does not exist. Please check again.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `InvalidInstanceState`: The DB instance state does not support this operation.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn describe_migrate_task_by_id(
&self,
req: DescribeMigrateTaskById,
) -> impl std::future::Future<Output = crate::Result<DescribeMigrateTaskByIdResponse>> + Send
{
self.call(req)
}
/// # 终止迁移任务
///
/// 该接口用于终止进行中的RDS SQL Server的备份上云任务。
///
/// ### 适用引擎
///
/// - RDS SQL Server
///
/// # Error Codes
/// - `InvalidTaskType.Invalid`: Migrate task type Incremental is not supported, only support FULL backup migrate task.
/// - `IncorrectDBInstanceType`: Current DB instance type does not support this operation.
/// - `InvalidTask.NotFound`: Specified MigrateTaskId could not be found on RDS.
/// - `InvalidParameter.Invalid`: Specified MigrateTaskId is invalid.
/// - `InvalidTaskStatus`: Current task status (Terminated/Failed) does not support.
/// - `UnfinishedTerminateMigrateTask`: Specified MigrateTaskId terminate failed.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn terminate_migrate_task(
&self,
req: TerminateMigrateTask,
) -> impl std::future::Future<Output = crate::Result<TerminateMigrateTaskResponse>> + Send {
self.call(req)
}
/// # 删除RDS SQL Server的AD域关联
///
/// 该接口用于将当前RDS SQL Server实例退出所在域。
///
/// ### 适用引擎
///
/// - RDS SQL Server
///
/// # Error Codes
/// - `EngineNotSupported`: The engine does not support the operation.
/// - `EngineVersionNotSupported`: EngineVersion specified cannot be replicate with the source DB Instance.
/// - `InvalidInstanceNodeType.NotFound`: The specified NodeType is not found.
/// - `InvalidShareDbInstanceClassNotSupport`: The current instance classType is not support operation.
/// - `IncorrectEngineVersion`: Current DB instance engine version does not support this operation.
/// - `InvalidADDNS.NotFound`: Specified ADDNS is null.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `InvalidOperation.Invalid`: Current instance is not in Domain, remove operation is only valid when current instance is in domain.
/// - `IncorrectDBInstanceState`: Current DB instance state does not support this operation.
/// - `ClusterTypeError`: Custins Cluster Type Error, Support User Cluster
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidDBInstanceName.NotFound`: Invalid DBInstanceId NotFound.
/// - `InvalidDBInstance.NotFound`: Specified instance does not exist or not support.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn delete_ad_setting(
&self,
req: DeleteADSetting,
) -> impl std::future::Future<Output = crate::Result<DeleteADSettingResponse>> + Send {
self.call(req)
}
/// # 修改RDS SQL Server的AD域配置
///
/// 该接口用于修改RDS SQL Server实例的AD域信息。
///
/// ### 适用引擎
///
/// - RDS SQL Server
///
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
///
/// - [SQL Server接入自建域](~~170734~~)
///
/// # Error Codes
/// - `EngineVersionNotSupported`: The current engineVersion does not support AD operation.
/// - `InvalidADDNS.NotFound`: Specified adDNS is null.
/// - `InvalidAdServerIpAddress.NotFound`: Specified adServer IpAddress is null.
/// - `InvalidAdAccountName.NotFound`: Specified adAccountName is null.
/// - `InvalidAdPassword.NotFound`: Specified adPassword is null.
/// - `InvalidShareDbInstanceClassNotSupport`: The current instance classType does not support this operation.
/// - `InvalidNodeType.NotSupport`: The specified nodeType does not support.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `ClusterTypeNotSupported`: The current Instance ClusterType does not support this operation.
/// - `InvalidAdUserName`: Invalid user name for ad domain.
/// - `InvalidAdIp`: The ip address of the ad domain is invalid.
/// - `InvalidAdDomain`: The name of the ad domain is invalid.
/// - `InvalidOperation.Remove`: Current instance is not in Domain, remove operation is only valid when current instance is in domain.
/// - `InvalidOperation.Add`: Current instance is already in Domain, if you want join another domain, please remove first.
/// - `InvalidAdPassword`: Invalid password for ad domain.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn modify_ad_info(
&self,
req: ModifyADInfo,
) -> impl std::future::Future<Output = crate::Result<ModifyADInfoResponse>> + Send {
self.call(req)
}
/// # 查询RDS SQL Server的AD域关联信息
///
/// 该接口用于查询当前实例域相关信息, 包括是否已经加入域、域名称、所使用账号等。
///
/// ### 适用引擎
///
/// - RDS SQL Server
///
/// # Error Codes
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn describe_ad_info(
&self,
req: DescribeADInfo,
) -> impl std::future::Future<Output = crate::Result<DescribeADInfoResponse>> + Send {
self.call(req)
}
/// # 创建RDS PostgreSQL一键上云前检查任务
///
/// 该接口用于创建RDS PostgreSQL一键上云前检查任务。
///
/// ### 适用引擎
///
/// - RDS PostgreSQL
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
///
/// [一键上云](~~365562~~)
///
/// # Error Codes
/// - `IncorrectDBInstanceState`: The current instance state does not support this operation.
/// - `InvalidSourceCategory`: specified source category is invalid.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `IncorrectDBInstance`: The current DB instance does not support this operation.
/// - `IncorrectDBInstanceType`: The database instance type does not support the operation.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidDBInstanceName.NotFound`: The database instance does not exist.
/// - `IncorrectDBInstanceLockMode`: Current DB instance lock mode does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn create_cloud_migration_precheck_task(
&self,
req: CreateCloudMigrationPrecheckTask,
) -> impl std::future::Future<Output = crate::Result<CreateCloudMigrationPrecheckTaskResponse>> + Send
{
self.call(req)
}
/// # 创建RDS PostgreSQL迁移上云任务
///
/// 该接口用于创建RDS PostgreSQL迁移上云任务。
///
/// ### 适用引擎
///
/// - RDS PostgreSQL
///
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
///
/// [一键上云](~~365562~~)
///
/// # Error Codes
/// - `IncorrectDBInstanceState`: The current instance state does not support this operation.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `IncorrectDBInstance`: The current DB instance does not support this operation.
/// - `IncorrectDBInstanceType`: The database instance type does not support the operation.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidDBInstanceName.NotFound`: The database instance does not exist.
/// - `IncorrectDBInstanceLockMode`: Current DB instance lock mode does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn create_cloud_migration_task(
&self,
req: CreateCloudMigrationTask,
) -> impl std::future::Future<Output = crate::Result<CreateCloudMigrationTaskResponse>> + Send
{
self.call(req)
}
/// # 查询RDS PostgreSQL一键上云前检查报告
///
/// 该接口用于查询一键上云前检查报告详细信息。
///
/// ### 适用引擎
///
/// - RDS PostgreSQL
///
/// # Error Codes
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidDBInstanceName.NotFound`: The database instance does not exist.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn describe_cloud_migration_precheck_result(
&self,
req: DescribeCloudMigrationPrecheckResult,
) -> impl std::future::Future<
Output = crate::Result<DescribeCloudMigrationPrecheckResultResponse>,
> + Send {
self.call(req)
}
/// # 查询RDS PostgreSQL迁移上云任务详情
///
/// 该接口用于查询RDS PostgreSQL迁移上云任务详情。
///
/// ### 适用引擎
///
/// - RDS PostgreSQL
///
/// # Error Codes
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidDBInstanceName.NotFound`: The database instance does not exist.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn describe_cloud_migration_result(
&self,
req: DescribeCloudMigrationResult,
) -> impl std::future::Future<Output = crate::Result<DescribeCloudMigrationResultResponse>> + Send
{
self.call(req)
}
/// # RDS PostgreSQL上云切换
///
/// 该接口用于执行RDS PostgreSQL上云切换,将RDS PostgreSQL提升为主库,正式提供服务。
///
/// ### 适用引擎
///
/// - RDS PostgreSQL
///
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
///
/// [一键上云](~~365562~~)
///
/// # Error Codes
/// - `IncorrectDBInstanceState`: The current instance state does not support this operation.
/// - `InvalidMigrateStatus`: The migrate target instance is not synced with source instance.
/// - `InvalidMigrateTask`: No running migrate task found.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `IncorrectDBInstance`: The current DB instance does not support this operation.
/// - `IncorrectDBInstanceType`: The database instance type does not support the operation.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidDBInstanceName.NotFound`: The database instance does not exist.
/// - `IncorrectDBInstanceLockMode`: Current DB instance lock mode does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn activate_migration_target_instance(
&self,
req: ActivateMigrationTargetInstance,
) -> impl std::future::Future<Output = crate::Result<ActivateMigrationTargetInstanceResponse>> + Send
{
self.call(req)
}
/// # 创建GAD实例
///
/// 该接口用于创建RDS全球多活数据库集群。
///
/// ### 适用引擎
///
/// - RDS MySQL
///
/// <props="china">
///
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
///
/// [创建与释放全球多活数据库集群](~~328592~~)</props>
///
/// # Error Codes
/// - `CreateGlobalActiveDatabase.GadInstanceNotActive`: gad instance not in active
/// - `CreateGlobalActiveDatabaseFailed.CentralNodeNotSupportGAD`: CentralNode DB not support GAD
/// - `CreateGlobalActiveDatabaseFailed.UnitMemberParamsEmpty`: UnitMemberParams not valid
/// - `CreateGlobalActiveDatabaseFailed.UnitMemberParamsError`: UnitMemberParams not valid
/// - `CreateGlobalActiveDatabaseFailed.GadNameNotMatchCentralNode`: the gadInstanceName not match with the central node
/// - `CreateGlobalActiveDatabaseFailed.GadInstanceExists`: gad instance has exists,please add member!
/// - `CreateGlobalActiveDatabaseFailed.GadInstanceNotExists`: gad instance not exists,please create GAD!
/// - `CreateGlobalActiveDatabase.GadInstanceNotFound`: gad instance not Found
/// - `CreateGlobalActiveDatabase.GetInstanceMemberFaied`: get instance member list failed
/// - `CreateGlobalActiveDatabaseImpl.preCheckGadInstance`: exceed max member count 10
/// - `CreateGlobalActiveDatabaseImpl.preCheckMemberParams`: centralNode not exists
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn create_gad_instance(
&self,
req: CreateGADInstance,
) -> impl std::future::Future<Output = crate::Result<CreateGADInstanceResponse>> + Send {
self.call(req)
}
/// # 创建Gad实例成员
///
/// 该接口用于在RDS全球多活数据库集群中添加节点。
///
/// ### 适用引擎
///
/// - RDS MySQL
///
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
///
/// <props="china">[添加或移除单元节点](~~331851~~)</props>
///
/// # Error Codes
/// - `IdempotentParameterMismatch`: The request uses the same client token as a previous, but non-identical request. Do not reuse a client token with different requests, unless the requests are identical.
/// - `CreateGlobalActiveDatabase.GadInstanceNotActive`: gad instance not in active
/// - `CreateGlobalActiveDatabaseFailed.CentralNodeNotSupportGAD`: CentralNode DB not support GAD
/// - `CreateGlobalActiveDatabaseFailed.UnitMemberParamsEmpty`: UnitMemberParams not valid
/// - `CreateGlobalActiveDatabaseFailed.UnitMemberParamsError`: UnitMemberParams not valid
/// - `CreateGlobalActiveDatabaseFailed.GadNameNotMatchCentralNode`: the gadInstanceName not match with the central node
/// - `CreateGlobalActiveDatabaseFailed.GadInstanceExists`: gad instance has exists,please add member!
/// - `CreateGlobalActiveDatabaseFailed.GadInstanceNotExists`: gad instance not exists,please create GAD!
/// - `CreateGlobalActiveDatabase.GadInstanceNotFound`: gad instance not Found
/// - `CreateGlobalActiveDatabase.GetInstanceMemberFaied`: get instance member list failed
/// - `CreateGlobalActiveDatabaseImpl.preCheckGadInstance`: exceed max member count 10
/// - `CreateGlobalActiveDatabaseImpl.preCheckMemberParams`: centralNode not exists
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - GET
/// - POST
///
pub fn create_gad_instance_member(
&self,
req: CreateGadInstanceMember,
) -> impl std::future::Future<Output = crate::Result<CreateGadInstanceMemberResponse>> + Send
{
self.call(req)
}
/// # 删除Gad实例
///
/// 该接口用于删除RDS全球多活数据库集群。
///
/// ### 适用引擎
///
/// - RDS MySQL
///
/// ### 注意事项
/// * RDS全球多活数据库集群释放后无法恢复,请谨慎操作。
/// * 删除RDS全球多活数据库集群会同时移除集群下的所有节点和DTS同步任务,但不会释放对应RDS MySQL实例,如不再需要这些实例,可调用[DeleteDBInstance](~~26229~~)手动释放实例。
///
/// # Error Codes
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidDBInstanceName.NotFound`: Invalid DBInstanceId NotFound.
/// - `InvalidParam`: The parameter is invalid.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - GET
/// - POST
///
pub fn delete_gad_instance(
&self,
req: DeleteGadInstance,
) -> impl std::future::Future<Output = crate::Result<DeleteGadInstanceResponse>> + Send {
self.call(req)
}
/// # 分离Gad实例成员
///
/// 该接口用于移除RDS全球多活数据库集群中的单元节点。
///
/// ### 适用引擎
///
/// - RDS MySQL
///
/// ### 注意事项
/// 仅支持移除单元节点。
///
/// # Error Codes
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - GET
/// - POST
///
pub fn detach_gad_instance_member(
&self,
req: DetachGadInstanceMember,
) -> impl std::future::Future<Output = crate::Result<DetachGadInstanceMemberResponse>> + Send
{
self.call(req)
}
/// # 查询Gad实例列表
///
/// 该接口用于查询RDS MySQL全球多活数据库集群列表或目标集群的详细信息。
///
/// ### 适用引擎
///
/// - RDS MySQL
///
/// # Error Codes
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - GET
/// - POST
///
pub fn describe_gad_instances(
&self,
req: DescribeGadInstances,
) -> impl std::future::Future<Output = crate::Result<DescribeGadInstancesResponse>> + Send {
self.call(req)
}
/// # MySQL主实例切换为灾备实例
///
/// 该接口用于将RDS MySQL主实例切换成灾备实例,将灾备实例切换成主实例。
///
/// ### 适用引擎
/// RDS MySQL
///
/// # Error Codes
/// - `GuardInstance.Exist`: The guard instance has exist.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidDBInstanceId.NotFound`: The specified instance does not exist or is not supported.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn receive_db_instance(
&self,
req: ReceiveDBInstance,
) -> impl std::future::Future<Output = crate::Result<ReceiveDBInstanceResponse>> + Send {
self.call(req)
}
/// # 创建标签
///
/// 该接口用于为指定的RDS实例创建并绑定标签。
///
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
/// - RDS MariaDB
///
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
///
/// - [RDS MySQL创建标签](~~96149~~)
/// - [RDS PostgreSQL创建标签](~~96777~~)
/// - [RDS SQL Server创建标签](~~95726~~)
/// - [RDS MariaDB创建标签](~~97152~~)
///
/// # Error Codes
/// - `NumberExceed.Tags`: The maximum number of Tags is exceeded. The maximum value is 20.
/// - `MissingParameter`: The parameter - ResourceIds.N should not be null
/// - `InvalidTagKey.Malformed`: The Tag.N.Key parameter is blank
/// - `InvalidTagValue.Malformed`: The Tag.N.Value parameter is blank
/// - `Duplicate.TagKey`: The Tag.N.Key contain duplicate key.
/// - `OperationDenied.QuotaExceed`: The maximum number of Tags is exceeded.
/// - `NumberExceed.ResourceIds`: The maximum number of ResourceIds is exceeded. The maximum value is 50.
/// - `Request.NotFound`: The requested resource is not available.
/// - `InvalidParameter.ResourceType`: The parameter ResourceType is invalid.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `InvalidRCInstanceName.NotFound`: The RDS Custom instance was not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn tag_resources(
&self,
req: TagResources,
) -> impl std::future::Future<Output = crate::Result<TagResourcesResponse>> + Send {
self.call(req)
}
/// # 为实例绑定标签
///
/// 该接口用于为实例绑定标签。
///
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
/// - RDS MariaDB
///
/// ### 注意事项
/// * 每个标签(Tag)由标签键(TagKey)和标签值(TagValue)组成,TagKey不能为空,TagValue可以为空;
/// * TagKey和TagValue的值不允许以aliyun开头;
/// * TagKey和TagValue不区分大小写;
/// * TagKey最长为64个字符,TagValue最长为128个字符;
/// * 每个实例最多绑定10个Tag,每个实例绑定的TagKey不能重复。若绑定带有重复TagKey的Tag,则后绑定的Tag将覆盖之前的Tag。
///
/// # Error Codes
/// - `Forbidden`: User not authorized to operate on the specified resource, or this API does not support RAM.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `InvalidTagKey.Malformed`: Malformed tag key.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn add_tags_to_resource(
&self,
req: AddTagsToResource,
) -> impl std::future::Future<Output = crate::Result<AddTagsToResourceResponse>> + Send {
self.call(req)
}
/// # 解绑标签
///
/// 该接口用于为指定的RDS实例解绑标签。
///
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
/// - RDS MariaDB
///
/// ### 注意事项
/// * 每次解绑的标签数量不能超过20个。
/// * 标签从一个实例解绑后,如果没有绑定到其它实例,则该标签自动被删除。
///
/// # Error Codes
/// - `NumberExceed.Tags`: The number of parameter Tags is exceed, Valid : 20
/// - `NumberExceed.ResourceIds`: The number of ResourceIds parameter is exceed , Valid : 50
/// - `InvalidTagValue.Malformed`: The Tag.N.Value parameter is blank
/// - `MissingParameter`: The parameter - ResourceIds.N should not be null
/// - `InvalidTagKey.Malformed`: The Tag.N.Key parameter is blank
/// - `InvalidResourceId.NotFound`: ResourceId does not refer to an existing DB instance.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `InvalidParameter.ResourceType`: The parameter ResourceType is invalid.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn untag_resources(
&self,
req: UntagResources,
) -> impl std::future::Future<Output = crate::Result<UntagResourcesResponse>> + Send {
self.call(req)
}
/// # 为RDS实例解绑标签
///
/// 该接口用于解绑标签。
///
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
/// - RDS MariaDB
///
/// ### 注意事项
/// * 单次最多支持解绑10个标签。
/// * 若一个标签所绑定的实例全都解绑,则该标签自动删除。
/// * 若解绑标签时仅传入标签键(TagKey),未传入标签值(TagValue),则解绑所有符合标签键条件的标签。
/// * 必须传入至少一组标签或者单独的一个标签键。
///
/// # Error Codes
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn remove_tags_from_resource(
&self,
req: RemoveTagsFromResource,
) -> impl std::future::Future<Output = crate::Result<RemoveTagsFromResourceResponse>> + Send
{
self.call(req)
}
/// # 查询标签和资源列表
///
/// 该接口用于查询一个或多个RDS实例已经绑定的标签列表。
///
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
/// - RDS MariaDB
///
/// # Error Codes
/// - `BothEmpty.TagsAndResources`: The specified Tags and ResourcesIds are not allow to both empty.
/// - `NumberExceed.Tags`: The number of Tags parameter is exceed, Valid : 20
/// - `NumberExceed.ResourceIds`: The number of ResourceIds parameter is exceed , Valid : 50
/// - `InvalidParameter.ResourceType`: The parameter ResourceType is invalid.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `InvalidRCDeploymentName.NotFound`: The RDS deployment set cannot be found. Check the values of the request parameters.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn list_tag_resources(
&self,
req: ListTagResources,
) -> impl std::future::Future<Output = crate::Result<ListTagResourcesResponse>> + Send {
self.call(req)
}
/// # 查询标签列表
///
/// 该接口用于查询RDS实例的标签信息。
///
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
/// - RDS MariaDB
///
/// ### 注意事项
/// * 如果传入指定实例ID,则查询该实例下所有标签,其他过滤条件失效;
/// * 若查询标签时仅传入标签键(TagKey),未传入标签值(TagValue),则返回所有符合标签键条件的结果。若同时传入标签键和标签值,则返回两个条件都符合的结果。
///
/// # Error Codes
/// - `Tag.NoRegionIdExist`: the region Id can not be blank.
/// - `Tag.NoTagInfoExist`: all the tags and tagN parameters is null.
/// - `Tag.TagKeyCanNotBeAll`: tag key can not be all.
/// - `Tag.TagKeyDuplex`: tag key must be sole in one operation.
/// - `Tag.NoDBInstanceIdExist`: the dbinstance Id can not be blank.
/// - `Tag.TooManyDBInstanceIds`: the dbinstance Ids is more than 30.
/// - `Tag.TooManyTagsForOneInstance`: total 10 tags can be added to one resource.
/// - `Tag.Allow5TagInfos`: only 5 tags allowed in one operation.
/// - `Tag.TagKeyIsBlank`: tag key can not be blank.
/// - `Tag.TagKeyStartWith.aliyun`: tag key and value can not be started with aliyun.
/// - `Tag.TagKeyTooLong`: the max length of tag key is 64.
/// - `Tag.TagValueTooLong`: the max length of tag value is 128.
/// - `Tag.Malformed`: The specified parameter Tag is not valid.
/// - `Tag.SetTagInfoAtTwoParameter`: only tags or tagN parameter could be setted.
/// - `Tag.InvalidTagsParameter`: tags parameter is invalid.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in our records.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn describe_tags(
&self,
req: DescribeTags,
) -> impl std::future::Future<Output = crate::Result<DescribeTagsResponse>> + Send {
self.call(req)
}
/// # 查询实例标签信息
///
/// 该接口用于获取实例绑定的标签信息。
///
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
/// - RDS MariaDB
///
/// # Error Codes
/// - `Tag.NoRegionIdExist`: the region Id can not be blank.
/// - `Tag.NoTagInfoExist`: all the tags and tagN parameters is null.
/// - `Tag.TagKeyCanNotBeAll`: tag key can not be all.
/// - `Tag.TagKeyDuplex`: tag key must be sole in one operation.
/// - `Tag.NoDBInstanceIdExist`: the dbinstance Id can not be blank.
/// - `Tag.TooManyDBInstanceIds`: the dbinstance Ids is more than 30.
/// - `Tag.TooManyTagsForOneInstance`: total 10 tags can be added to one resource.
/// - `Tag.SetTagInfoAtTwoParamters`: only tags or tagN parameter could be setted.
/// - `Tag.Allow5TagInfos`: only 5 tags allowed in one operation.
/// - `Tag.TagKeyIsBlank`: tag key can not be blank.
/// - `Tag.TagKeyStartWith.aliyun`: tag key and value can not be started with aliyun.
/// - `Tag.TagKeyTooLong`: the max tag key s length is 64.
/// - `Tag.TagValueTooLong`: the max tag value is length is 128.
/// - `Tag.InvalidTagsParamter`: tags parameter is invalid.
/// - `Tag.Malformed`: The specified parameter Tag is not valid.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in our records.
/// - `InvalidDBInstanceName.NotFound`: The database instance does not exist.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn describe_db_instance_by_tags(
&self,
req: DescribeDBInstanceByTags,
) -> impl std::future::Future<Output = crate::Result<DescribeDBInstanceByTagsResponse>> + Send
{
self.call(req)
}
/// # 在目标数据库下安装指定插件
///
/// 该接口用于在目标数据库下安装指定插件。
///
/// <props="china">您可以加入RDS PostgreSQL插件交流钉钉群(103525002795),进行咨询、交流和反馈,获取更多关于插件的信息。</props>
///
/// ### 适用引擎
/// RDS PostgreSQL
///
///
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
///
/// [管理插件](~~2402409~~)
///
/// ### 注意事项
/// 只能安装实例大版本支持的插件,否则会安装失败。
/// - 插件支持情况请参见[支持插件列表](~~142340~~)。
/// - 您可以调用[DescribeDBInstanceAttribute](~~610394~~)查询实例大版本。
///
/// # Error Codes
/// - `InvalidDBName.Format`: Specified DB name is not valid.
/// - `InvalidParameters.Format`: Specified parameters is not valid.
/// - `InvalidAccountName.NotFound`: Specified account name does not exist.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `MinorVersionNotSupport`: The current database minor version does not support the operation.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `IncorrectDBInstanceType`: Current DB instance type does not support this operation.
/// - `IncorrectDBInstanceLockMode`: Current DB instance lock mode does not support this operation.
/// - `IncorrectDBInstanceState`: Current DB instance state does not support this operation.
/// - `IncorrectAccountPrivilegeType`: Current account privilege type does not support this operation.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidDBInstance.NotFound`: Specified instance does not exist or not support.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn create_postgres_extensions(
&self,
req: CreatePostgresExtensions,
) -> impl std::future::Future<Output = crate::Result<CreatePostgresExtensionsResponse>> + Send
{
self.call(req)
}
/// # 删除实例目标数据库下的指定插件
///
/// 该接口用于删除实例目标数据库下的指定插件。
///
/// <props="china">您可以加入RDS PostgreSQL插件交流钉钉群(103525002795),进行咨询、交流和反馈,获取更多关于插件的信息。</props>
///
/// ### 适用引擎
/// RDS PostgreSQL
///
///
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
///
/// [管理插件](~~2402409~~)
///
/// # Error Codes
/// - `InvalidDBName.Format`: Specified DB name is not valid.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `IncorrectDBInstanceType`: Current DB instance type does not support this operation.
/// - `IncorrectDBInstanceLockMode`: Current DB instance lock mode does not support this operation.
/// - `IncorrectDBInstanceState`: Current DB instance state does not support this operation.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidDBInstance.NotFound`: Specified instance does not exist or not support.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn delete_postgres_extensions(
&self,
req: DeletePostgresExtensions,
) -> impl std::future::Future<Output = crate::Result<DeletePostgresExtensionsResponse>> + Send
{
self.call(req)
}
/// # 升级目标数据库下的指定插件
///
/// 该接口用于升级目标数据库下的指定插件。
///
/// <props="china">您可以加入RDS PostgreSQL插件交流钉钉群(103525002795),进行咨询、交流和反馈,获取更多关于插件的信息。</props>
///
/// ### 适用引擎
/// RDS PostgreSQL
///
///
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
///
/// [管理插件](~~2402409~~)
///
/// # Error Codes
/// - `InvalidDBName.Format`: Specified DB name is not valid.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `IncorrectDBInstanceType`: Current DB instance type does not support this operation.
/// - `IncorrectDBInstanceLockMode`: Current DB instance lock mode does not support this operation.
/// - `IncorrectDBInstanceState`: Current DB instance state does not support this operation.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidDBInstance.NotFound`: Specified instance does not exist or not support.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn update_postgres_extensions(
&self,
req: UpdatePostgresExtensions,
) -> impl std::future::Future<Output = crate::Result<UpdatePostgresExtensionsResponse>> + Send
{
self.call(req)
}
/// # 获取实例目标数据库下所有插件的信息
///
/// 该接口用于获取实例目标数据库下所有插件的信息。
///
/// <props="china">您可以加入RDS PostgreSQL插件交流钉钉群(103525002795),进行咨询、交流和反馈,获取更多关于插件的信息。</props>
///
/// ### 适用引擎
/// RDS PostgreSQL
///
///
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
///
/// [管理插件](~~2402409~~)
///
/// # Error Codes
/// - `InvalidDBInstanceName.NotFound`: The specified DB instance name does not exist.
/// - `InvalidDBName.Format`: Specified DB name is not valid.
/// - `Database.QueryError`: Query Db failed, please check input value and instance status.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidDBInstance.NotFound`: Specified instance does not exist or not support.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - GET
/// - POST
///
pub fn describe_postgres_extensions(
&self,
req: DescribePostgresExtensions,
) -> impl std::future::Future<Output = crate::Result<DescribePostgresExtensionsResponse>> + Send
{
self.call(req)
}
/// # 删除PostgreSQL实例Replication Slot
///
/// 该接口用于删除实例的指定Replication Slot。
///
/// ### 适用引擎
///
/// - RDS PostgreSQL
///
/// ### 注意事项
/// 仅当Replication Slot的状态(SlotStatus)为**INACTIVE**时,可以被删除。您可以调用DescribeSlots接口查询Replication Slot状态。
///
/// # Error Codes
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `InvalideStatus.Format`: Specified Status is not valid.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `IncorrectDBInstanceType`: Current DB instance type does not support this operation.
/// - `IncorrectDBInstanceLockMode`: Current DB instance lock mode does not support this operation.
/// - `IncorrectDBInstanceState`: Current DB instance state does not support this operation.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidDBInstance.NotFound`: Specified instance does not exist or not support.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn delete_slot(
&self,
req: DeleteSlot,
) -> impl std::future::Future<Output = crate::Result<DeleteSlotResponse>> + Send {
self.call(req)
}
/// # 查询PostgreSQL实例Replication Slot
///
/// 该接口用于查询实例的所有Replication Slot。
///
/// ### 适用引擎
///
/// - RDS PostgreSQL
///
/// # Error Codes
/// - `InvalidDBInstanceName.NotFound`: The specified DB instance name does not exist.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - GET
/// - POST
///
pub fn describe_slots(
&self,
req: DescribeSlots,
) -> impl std::future::Future<Output = crate::Result<DescribeSlotsResponse>> + Send {
self.call(req)
}
/// # 创建灾备实例的数据同步链路
///
/// 该接口用于创建RDS灾备实例的数据同步链路。
///
/// ### 适用引擎
///
/// - RDS PostgreSQL
/// - RDS SQL Server
///
/// > 不同引擎的传参要求有所区别,请按要求传参。
///
/// # Error Codes
/// - `IncorrectDBInstanceState`: The current instance state does not support this operation.
/// - `InvalidSourceCategory`: specified source category is invalid.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `InvalidTaskId.Format`: The parameter TaskId is required.
/// - `IncorrectDBInstance`: The current DB instance does not support this operation.
/// - `IncorrectDBInstanceType`: The database instance type does not support the operation.
/// - `ENDPOINT_NOT_FOUND`: The source address %s must be the endpoint of source instance %s.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidDBInstanceName.NotFound`: The database instance does not exist.
/// - `IncorrectDBInstanceLockMode`: Current DB instance lock mode does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - GET
/// - POST
///
pub fn create_replication_link(
&self,
req: CreateReplicationLink,
) -> impl std::future::Future<Output = crate::Result<CreateReplicationLinkResponse>> + Send
{
self.call(req)
}
/// # 查询RDS实例数据同步链路的操作日志
///
/// 该接口用于查询指定RDS实例数据同步链路的操作日志。
///
/// ### 适用引擎
///
/// - RDS PostgreSQL
///
/// # Error Codes
/// - `InvalidTaskType`: specified task type is invalid.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidDBInstanceName.NotFound`: The database instance does not exist.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - GET
/// - POST
///
pub fn describe_replication_link_logs(
&self,
req: DescribeReplicationLinkLogs,
) -> impl std::future::Future<Output = crate::Result<DescribeReplicationLinkLogsResponse>> + Send
{
self.call(req)
}
/// # 为灾备实例重建数据同步链路
///
/// 该接口用于为RDS灾备实例重建数据同步链路。
///
/// ### 适用引擎
/// - RDS PostgreSQL
///
/// # Error Codes
/// - `IncorrectDBInstanceState`: The current instance state does not support this operation.
/// - `InvalidSourceCategory`: specified source category is invalid.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `IncorrectDBInstance`: The current DB instance does not support this operation.
/// - `IncorrectDBInstanceType`: The database instance type does not support the operation.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidDBInstanceName.NotFound`: The database instance does not exist.
/// - `IncorrectDBInstanceLockMode`: Current DB instance lock mode does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - GET
/// - POST
///
pub fn rebuild_replication_link(
&self,
req: RebuildReplicationLink,
) -> impl std::future::Future<Output = crate::Result<RebuildReplicationLinkResponse>> + Send
{
self.call(req)
}
/// # 切换主实例和灾备实例的数据同步链路
///
/// 该接口用于将RDS SQL Server主实例的复制链路切换到灾备实例。
///
/// ### 适用引擎
/// RDS SQL Server
///
/// # Error Codes
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `NoAvailablePaymentMethod`: No payment method is specified for account. We recommend that you add a payment method.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
///
pub fn switch_replication_link(
&self,
req: SwitchReplicationLink,
) -> impl std::future::Future<Output = crate::Result<SwitchReplicationLinkResponse>> + Send
{
self.call(req)
}
/// # 删除灾备实例的数据同步链路并将其提升为主实例
///
/// 该接口用于删除RDS灾备实例的数据同步链路,并将灾备实例提升为主实例。
///
/// ### 适用引擎
///
/// - RDS PostgreSQL
/// - RDS SQL Server
///
/// # Error Codes
/// - `IncorrectDBInstanceState`: The current instance state does not support this operation.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedIndia`: Cloud services in the India (Mumbai) region will be discontinued. Set the validity date to July 15, 2024 or earlier than July 15, 2024.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `IncorrectDBInstance`: The current DB instance does not support this operation.
/// - `IncorrectDBInstanceType`: The database instance type does not support the operation.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidDBInstanceName.NotFound`: The database instance does not exist.
/// - `IncorrectDBInstanceLockMode`: Current DB instance lock mode does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn delete_replication_link(
&self,
req: DeleteReplicationLink,
) -> impl std::future::Future<Output = crate::Result<DeleteReplicationLinkResponse>> + Send
{
self.call(req)
}
/// # 修改或关闭承诺型Serverless功能
///
/// 调用该接口,修改或关闭承诺型Serverless功能。
///
/// ### 适用引擎
/// RDS PostgreSQL
///
/// ### 相关功能文档
/// [承诺型Serverless](~~2928780~~)
///
/// # Error Codes
/// - `InvalidParameters.Format`: Specified parameters is not valid.
/// - `BurstResourceStillExists`: The instance does not support to disable compute burst because of having burst resource.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `NoAvailablePaymentMethod`: No payment method is specified for account. We recommend that you add a payment method.
/// - `IncorrectEngineVersion`: Current engine version does not support operations.
/// - `IncorrectDBInstance`: The current DB instance does not support this operation.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `IncorrectDBInstanceType`: Current DB instance type does not support this operation.
/// - `IncorrectDBInstanceState`: Current DB instance state does not support this operation.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `IncorrectDBInstanceLockMode`: Current DB instance lock mode does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - GET
/// - POST
///
pub fn modify_compute_burst_config(
&self,
req: ModifyComputeBurstConfig,
) -> impl std::future::Future<Output = crate::Result<ModifyComputeBurstConfigResponse>> + Send
{
self.call(req)
}
/// # 查询承诺型Serverless功能配置
///
/// 查询承诺型Serverless功能的配置。
///
/// ### 适用引擎
/// RDS PostgreSQL
///
/// ### 相关功能文档
/// [承诺型Serverless](~~2928780~~)
///
/// # Error Codes
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `NoAvailablePaymentMethod`: No payment method is specified for account. We recommend that you add a payment method.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - GET
/// - POST
///
pub fn describe_compute_burst_config(
&self,
req: DescribeComputeBurstConfig,
) -> impl std::future::Future<Output = crate::Result<DescribeComputeBurstConfigResponse>> + Send
{
self.call(req)
}
/// # 创建用户凭证
///
/// 该接口用于创建Data API用户凭证。
///
/// ### 适用引擎
///
/// - RDS MySQL
///
/// # Error Codes
/// - `InvalidParameters.Format`: Specified parameters is not valid.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidDBInstanceName.NotFound`: Invalid DBInstanceId NotFound.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - GET
/// - POST
///
pub fn create_secret(
&self,
req: CreateSecret,
) -> impl std::future::Future<Output = crate::Result<CreateSecretResponse>> + Send {
self.call(req)
}
/// # 删除用户凭证
///
/// 调用DeleteSecret接口删除Data API用户凭证。
///
/// # Error Codes
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `SecretNotFound`: Specified rds data api secret is not found
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - GET
/// - POST
///
pub fn delete_secret(
&self,
req: DeleteSecret,
) -> impl std::future::Future<Output = crate::Result<DeleteSecretResponse>> + Send {
self.call(req)
}
/// # 查询用户凭证
///
/// 该接口用于查询Data API用户凭证。
///
/// ### 适用引擎
///
/// - RDS MySQL
///
/// # Error Codes
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - GET
/// - POST
///
pub fn describe_secrets(
&self,
req: DescribeSecrets,
) -> impl std::future::Future<Output = crate::Result<DescribeSecretsResponse>> + Send {
self.call(req)
}
/// # 查询RDS主机组信息
///
/// 查询RDS专属集群信息。
///
/// 专属集群功能以集群形式批量管理实例,一个地域可创建多个专属集群,一个专属集群包含多个主机,一个主机包含多个实例。详情请参见[专属集群简介](~~141455~~)。
///
/// # Error Codes
/// - `Forbidden`: User not authorized to operate on the specified resource.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn describe_dedicated_host_groups(
&self,
req: DescribeDedicatedHostGroups,
) -> impl std::future::Future<Output = crate::Result<DescribeDedicatedHostGroupsResponse>> + Send
{
self.call(req)
}
/// # 查询RDS主机组内的主机信息
///
/// 查询专属集群内的主机信息。
///
/// 专属集群功能以集群形式批量管理实例,一个地域可以创建多个专属集群,一个专属集群包含多个主机,一个主机包含多个实例。详情请参见[专属集群简介](~~141455~~)。
///
/// # Error Codes
/// - `InvalidUserId.NotSupport`: The userid have no permission.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidDedicatedHostGroup.NotFound`: Specified DedicatedHostGroup does not exists.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn describe_dedicated_hosts(
&self,
req: DescribeDedicatedHosts,
) -> impl std::future::Future<Output = crate::Result<DescribeDedicatedHostsResponse>> + Send
{
self.call(req)
}
/// # 迁移主机组内的RDS实例
///
/// 调用MigrateDBInstance接口迁移专属集群内的RDS实例。
///
/// 专属集群功能以集群形式批量管理实例,一个地域可以创建多个专属集群,一个专属集群包含多个主机,一个主机包含多个实例。详情请参见[专属集群简介](~~141455~~)。
///
/// # Error Codes
/// - `GeneralIns.Creating`: The general instance is creating.
/// - `GeneralIns.Maintaining`: The general instance is maintaining.
/// - `GeneralIns.Switching`: The general instance is Switching.
/// - `InvalidTargetDedicatedHostId.NotFound`: The target dedicated host ID is invalid.
/// - `InvalidMasterHostName`: The specified master host zoneId is different from the master zoneId.
/// - `InvalidDBInstanceName.NotFound`: The specified DB instance name does not exist.
/// - `InvalidPrimaryCustinsStatus`: Primary DBInstance status is not Active.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OperationDenied.PrimaryDBInstanceStatus`: The operation is not permitted due to status of primary instance.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InsufficientResourceCapacity`: No host is available for the requested instance.
/// - `InvalidParam`: The specified parameter is invalid.
/// - `InvalidDBInstance.NotFound`: The specified instance does not exist or is not supported.
/// - `AllocateResourceFailed`: Failed to allocate resources. Please check the zone and the host you selected.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn migrate_db_instance(
&self,
req: MigrateDBInstance,
) -> impl std::future::Future<Output = crate::Result<MigrateDBInstanceResponse>> + Send {
self.call(req)
}
/// # 将RDS主机组内实例的备实例重建
///
/// 调用RebuildDBInstance接口重建专属集群中的RDS备实例。
///
/// 专属集群功能以集群形式批量管理实例,一个地域可以创建多个专属集群,一个专属集群包含多个主机,一个主机包含多个实例。详情请参见[专属集群简介](~~141455~~)。
///
/// # Error Codes
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `AtLeastThreeVSwitchAvailableIp`: The primary vswitch requires at least three available IP addresses.
/// - `AtLeastTwoVSwitchAvailableIp`: The primary vswitch requires at least two available IP addresses.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InsufficientResourceCapacity`: No host is available for the requested instance.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn rebuild_db_instance(
&self,
req: RebuildDBInstance,
) -> impl std::future::Future<Output = crate::Result<RebuildDBInstanceResponse>> + Send {
self.call(req)
}
/// # 迁移RDS实例至其他可用区
///
/// 该接口用于迁移RDS实例的可用区。
///
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
///
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
///
/// - [RDS MySQL迁移可用区](~~96746~~)
/// - [RDS PostgreSQL迁移可用区](~~96746~~)
/// - [RDS SQL Server迁移可用区](~~95658~~)
///
/// # Error Codes
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `ZoneIdNotSupported`: The zone ID is not supported.
/// - `ConnectionNotFound`: The connection is not found.
/// - `DBInstanceStatusNotActive`: The status of the current instance is not active.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidParam`: The specified parameter is invalid.
/// - `InvalidDBInstance.NotFound`: The specified instance does not exist or is not supported.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn migrate_connection_to_other_zone(
&self,
req: MigrateConnectionToOtherZone,
) -> impl std::future::Future<Output = crate::Result<MigrateConnectionToOtherZoneResponse>> + Send
{
self.call(req)
}
/// # 修改只读复制延迟阈值
///
/// 该接口用于设置MySQL只读实例的延迟时间。
///
/// ### 适用引擎
///
/// - RDS MySQL
///
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
///
/// - [只读实例延迟复制](~~96056~~)
///
/// # Error Codes
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OperationDenied.DBInstanceType`: The operation is not permitted due to type of instance.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `EngineNotSupported`: Engine specified cannot be supported the operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn modify_db_instance_delayed_replication_time(
&self,
req: ModifyDBInstanceDelayedReplicationTime,
) -> impl std::future::Future<
Output = crate::Result<ModifyDBInstanceDelayedReplicationTimeResponse>,
> + Send {
self.call(req)
}
/// # 查询是否已创建服务关联角色(SLR)
///
/// 该接口用于查看是否已创建服务关联角色(SLR)。
///
/// ### 适用引擎
///
/// - RDS PostgreSQL
///
/// # Error Codes
/// - `InvalidParameterGroupId.Malformed`: Specified parameterGroupId is not valid.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn check_service_linked_role(
&self,
req: CheckServiceLinkedRole,
) -> impl std::future::Future<Output = crate::Result<CheckServiceLinkedRoleResponse>> + Send
{
self.call(req)
}
/// # 查询可使用的内核版本列表
///
/// 该接口用于查询可用的MySQL或PostgreSQL小版本列表。
///
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
///
/// ### 功能说明
/// 该接口用于新购、升级RDS MySQL、PostgreSQL实例前了解实例小版本详情,方便按需选择。
///
/// # Error Codes
/// - `MinorVersionAttr.NotFound`: Cannot find minor version attribute by given custins.
/// - `InvalidDBInstanceName.NotFound`: The specified DB instance name does not exist.
/// - `EngineNotSupported`: Engine specified cannot be supported the operation.
/// - `MissingMinorVersionTag`: You must specify MinorVersionTag.
/// - `MissingParameter.Engine`: You must specify Engine.
/// - `MissingParameter.EngineVersion`: You must specify EngineVersion.
/// - `InvalidInstanceNodeType.NotFound`: The specified NodeType is not found.
/// - `MinorVersionTag.NotFound`: Minor version tags cannot be parsed by the instance.
/// - `InvalidVersion`: current version not support operation.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidInstanceStorageType.NotFound`: The specified DBInstanceStorageType is not found.
/// - `InvalidDBInstance.NotFound`: The specified instance does not exist or is not supported.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn describe_db_mini_engine_versions(
&self,
req: DescribeDBMiniEngineVersions,
) -> impl std::future::Future<Output = crate::Result<DescribeDBMiniEngineVersionsResponse>> + Send
{
self.call(req)
}
/// # 查询可见地域列表
///
/// 该接口用于获取地域列表。
///
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
/// - RDS MariaDB
///
/// # Error Codes
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `InvaildEngineInRegion.NotAvailable`: The Engine in the Region is not available.
/// - `OperationDenied`: The resource is out of usage.
/// - `RegionUnauthorized`: There is no authority to create instance in the specified region.
/// - `QuotaExceeded.CreateInstance`: The quota of create instance exceeds.
/// - `Forbidden.Authentication`: The operation is forbidden by Aliyun Realname Authentication System.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidRegionId.NotFound`: The provided RegionId does not exist in our records.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn describe_region_infos(
&self,
req: DescribeRegionInfos,
) -> impl std::future::Future<Output = crate::Result<DescribeRegionInfosResponse>> + Send {
self.call(req)
}
/// # 查询实例网络信息
///
/// 该接口用于查询RDS实例的所有连接地址信息。
///
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
/// - RDS MariaDB
///
/// # Error Codes
/// - `Forbidden.RAM`: User not authorized to operate on the specified resource, or this API does not support RAM.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `AccountLeastAssociateOneDB`: Retain at least one account in a DB.
/// - `IncorrectDBInstanceCharacterType`: Current DB Instance character_type does not support this operation.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidDBInstanceName.NotFound`: The database instance does not exist.
/// - `Readins.NotFound`: The current instance does not contain any read only instance. The operation is not supported.
/// - `InvalidRwSplitNetType.NotFound`: The RwSplitNetType is not found.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn describe_db_instance_net_info_for_channel(
&self,
req: DescribeDBInstanceNetInfoForChannel,
) -> impl std::future::Future<
Output = crate::Result<DescribeDBInstanceNetInfoForChannelResponse>,
> + Send {
self.call(req)
}
/// # 查询RDS SQL Server实例的主机WebShell登录信息
///
/// 该接口用于查询RDS SQL Server实例的主机WebShell登录信息。
///
/// ### 适用引擎
///
/// - RDS SQL Server
///
/// ### 前提条件
/// - RDS实例需满足如下条件:
/// - 实例所在地域:除华北3(张家口)外的其他地域均支持使用该功能。
/// - 实例系列:基础系列、高可用系列(2012及以上版本)、集群系列。
/// - 实例规格:通用型、独享型(不支持共享型)。
/// - 网络类型:专有网络。如需变更网络类型,请参见[更改网络类型](~~95707~~)。
/// - 实例创建时间:高可用系列和集群系列实例的创建时间需在2021年01月01日或之后;基础系列实例的创建时间需在2022年09月02日或之后。实例**创建时间**可在**基本信息**页内的**运行状态**中查看。
/// - 登录账号必须为**阿里云主账号**。
///
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
/// [创建主机账号并登录](~~354862~~)
///
/// # Error Codes
/// - `WebShellLoginFailed`: %s,%s.
/// - `InvalidUserId.NotSupport`: The user ID has no permission.
/// - `InvalidHostStatus.Format`: Specified host status is not valid.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `ClusterTypeNotSupported`: The current Instance ClusterType does not support this operation.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `InvalidAccountName.NotFound`: Specified account name does not exist.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - GET
/// - POST
///
pub fn describe_host_web_shell(
&self,
req: DescribeHostWebShell,
) -> impl std::future::Future<Output = crate::Result<DescribeHostWebShellResponse>> + Send {
self.call(req)
}
/// # 查询规格详情
///
/// 该接口用于通过规格代码查询规格详情。
///
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
/// - RDS MariaDB
///
/// # Error Codes
/// - `InvalidClassCode.NotFound`: Invalid ClassCode NotFound.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn describe_class_details(
&self,
req: DescribeClassDetails,
) -> impl std::future::Future<Output = crate::Result<DescribeClassDetailsResponse>> + Send {
self.call(req)
}
/// # 查询KMS指定资源是否关联RDS实例
///
/// 该接口用于查询KMS的指定资源是否关联了RDS实例。
///
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
///
/// # Error Codes
/// - `InvalidParameter`: Invalid parameter.
/// - `InvalidUserId.NotSupport`: The userid have no permission.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - GET
/// - POST
///
pub fn describe_kms_associate_resources(
&self,
req: DescribeKmsAssociateResources,
) -> impl std::future::Future<Output = crate::Result<DescribeKmsAssociateResourcesResponse>> + Send
{
self.call(req)
}
/// # 查询快照列表
///
/// 该接口用于查询快照列表信息。例如快照状态、正在创建的快照剩余完成时间、自动快照保留天数等。
///
/// # Error Codes
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `InvalidUserAccount.NotSupported`: the Specified user account Validated not supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
///
pub fn describe_rc_snapshots(
&self,
req: DescribeRCSnapshots,
) -> impl std::future::Future<Output = crate::Result<DescribeRCSnapshotsResponse>> + Send {
self.call(req)
}
/// # 卸载按量付费数据盘或系统盘
///
/// 调用DetachRCDisk接口,从RDS Custom实例上卸载一块按量付费数据盘,或者卸载一块系统盘。
///
/// # Error Codes
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `InvalidUserAccount.NotSupported`: the Specified user account Validated not supported.
/// - `IncorrectInstanceStatus`: The current status of the resource does not support this operation.
/// - `IncorrectInstanceStatus.Initializing`: The specified instance status does not support this operation.
/// - `InvalidDevice.Malformed`: The specified device is not valid.
/// - `InvalidInstanceType.NotSupportDiskCategory`: The instanceType of the specified instance does not support this disk category.
/// - `InvalidEEDDisk.NotSupport`: The specified eed category does not support this operation.
/// - `InvalidDisk.CategoryFormat`: The specified eed category does not support this operation.
/// - `InvalidSnapshot.Malformed`: The specified eed category does not support snapshot operation.
/// - `OperationDenied.TimeLimit`: The interval between the two conversion operations must be greater than 15 minutes.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `DiskCategory.OperationNotSupported`: The type of the specified disk does not support creating a snapshot.
/// - `IncorrectDiskStatus.CreatingSnapshot`: A previous snapshot creation is in process.
/// - `IncorrectInstanceStatus.NotSupportESSD`: The operation is not supported in this status, please reboot the instance.
/// - `InvalidDiskCategory.NotSupported`: The specified disk category is not support the specified instance type.
/// - `InvalidOperation.InstanceTypeNotSupport`: The instance type of the specified instance does not support hot detach disk.
/// - `OperationDenied.DiskCreatingSnapshot`: The operation is denied due to a snapshot of the specified disk is not completed yet.
/// - `OperationDenied.DiskTypeViolation`: The specified disk is a system disk and cannot support the operation.
/// - `OperationDenied.IncorrectDiskStatus`: The current disk status does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
///
pub fn detach_rc_disk(
&self,
req: DetachRCDisk,
) -> impl std::future::Future<Output = crate::Result<DetachRCDiskResponse>> + Send {
self.call(req)
}
/// # 删除指定快照
///
/// 调用DeleteRCSnapshot接口,删除指定云盘快照。
///
/// 调用该接口时,您需要注意:
/// - 如果指定的快照ID不存在,请求将被忽略。
/// - 如果快照已经被用于创建自定义镜像,将不能执行删除操作。您需要先删除已创建的自定义镜像,才能继续删除快照。
/// - 如果快照已经被用于创建云盘,且未设置`Force`参数或`Force=false`时,不能直接删除快照。如果您确定要删除快照,请设置`Force=true`进行强制删除,快照被强制删除后对应的云盘将不能执行重新初始化。
///
/// # Error Codes
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `InvalidUserAccount.NotSupported`: the Specified user account Validated not supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
///
pub fn delete_rc_snapshot(
&self,
req: DeleteRCSnapshot,
) -> impl std::future::Future<Output = crate::Result<DeleteRCSnapshotResponse>> + Send {
self.call(req)
}
/// # 创建快照
///
/// 为一块云盘创建一份快照。
///
/// 以下场景中,您无法为指定的云盘创建快照:
/// - 云盘保留的手动快照数达到了256份。
/// - 上份快照还未完成创建。
/// - 云盘挂载的实例从未启动过。
/// - 云盘挂载的实例未处于**已停止**(Stopped)或者**运行中**(Running)状态。
///
/// 创建快照时,您需要注意:
///
/// - 如果创建快照还未完成,这份快照无法用于创建自定义镜像(CreateImage)。
/// - 如果云盘已挂载到RDS Custom实例上,创建快照期间请勿变更实例状态。
/// - 支持对处于**已过期**(Expired)状态的云盘创建快照。若创建快照时云盘正好达到过期释放时间,云盘被释放的同时也会删除创建中(Creating)的快照。
///
/// # Error Codes
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `InvalidUserAccount.NotSupported`: the Specified user account Validated not supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `IncorrectDiskStatus.CreatingSnapshot`: A previous snapshot creation is in process.
/// - `CreateSnapshot.Failed`: The process of creating rc snapshot is failed.
/// - `DiskCategory.OperationNotSupported`: The type of the specified disk does not support creating a snapshot.
/// - `OperationDenied.IncorrectDiskStatus`: The current disk status does not support this operation.
/// - `QuotaExceed.Snapshot`: The snapshot quota exceeds.
/// - `IncorrectDiskStatus.NeverAttached`: The specified disk has never been attached to any instance.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
///
pub fn create_rc_snapshot(
&self,
req: CreateRCSnapshot,
) -> impl std::future::Future<Output = crate::Result<CreateRCSnapshotResponse>> + Send {
self.call(req)
}
/// # 查询RDS Custom实例的磁盘信息
///
/// 调用DescribeRCDisks接口,查看RDS Custom实例的磁盘信息。
///
/// # Error Codes
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `InvalidUserAccount.NotSupported`: the Specified user account Validated not supported.
/// - `InvalidParameter.InstanceIds`: The specified parameter InstanceIds is invalid.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - GET
///
pub fn describe_rc_disks(
&self,
req: DescribeRCDisks,
) -> impl std::future::Future<Output = crate::Result<DescribeRCDisksResponse>> + Send {
self.call(req)
}
/// # 释放一块按量付费数据盘
///
/// 该接口用于释放一块按量付费数据盘。磁盘类型包括普通云盘、高效云盘、SSD云盘和ESSD云盘。
///
/// 调用该接口时,您需要注意:
/// - 您的磁盘手动快照会被保留。
/// - 释放磁盘时,云盘的状态必须为待挂载(Available)。
/// - 如果指定ID的磁盘不存在,请求将被忽略。
///
/// # Error Codes
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `InvalidUserAccount.NotSupported`: the Specified user account Validated not supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `IncorrectDiskStatus.CreatingSnapshot`: A previous snapshot creation is in process.
/// - `OperationDenied.IncorrectDiskStatus`: The current disk status does not support this operation.
/// - `OperationDenied.DiskCreatingSnapshot`: The operation is denied due to a snapshot of the specified disk is not completed yet.
/// - `OperationDenied.DiskTypeViolation`: The specified disk is a system disk and cannot support the operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
///
pub fn delete_rc_disk(
&self,
req: DeleteRCDisk,
) -> impl std::future::Future<Output = crate::Result<DeleteRCDiskResponse>> + Send {
self.call(req)
}
/// # 为RDS Custom实例挂载数据盘或系统盘
///
/// 调用AttachRCDisk接口为RDS Custom实例挂载一块按量付费数据盘,或者挂载一块系统盘。实例和磁盘必须在同一个可用区。
///
/// 调用该接口时,您需要注意:
/// - 磁盘的状态必须为待挂载(Available)。
/// - 挂载数据盘时:
/// - 目标RDS Custom实例必须处于运行中(Running)或者已停止(Stopped)状态。
/// - 如果是您单独购买的磁盘,计费方式必须是按量付费。
/// - 从RDS Custom实例上卸载的系统盘作为数据盘挂载时,不限制计费方式。
/// - 弹性临时盘一旦卸载,只能重新挂载至其原始实例。
/// - 挂载系统盘时:
/// - 目标RDS Custom实例必须是卸载系统盘时的源实例。
/// - 目标RDS Custom实例必须处于已停止(Stopped)状态。
/// - 您必须设置实例登录凭证。
/// - 弹性临时盘不支持挂载为系统盘。
///
/// # Error Codes
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `InvalidUserAccount.NotSupported`: the Specified user account Validated not supported.
/// - `InvalidInstanceType.NotSupportDiskCategory`: The instanceType of the specified instance does not support this disk category.
/// - `InvalidInstanceId.NotFound`: InstanceId is invalid, not found.
/// - `IncorrectInstanceStatus`: The current status of the resource does not support this operation.
/// - `IncorrectInstanceStatus.Initializing`: The specified instance status does not support this operation.
/// - `InvalidDevice.Malformed`: The specified device is not valid.
/// - `InvalidOperation.OtherInstanceUnsupported`: The elastic ephemeral disk can only be attached to the instance it was last mounted on, please check the disk's system tag to get the last associated instance.
/// - `Invalid.RCInstanceExpired`: The requested custom instance has expired.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `IncorrectInstanceStatus.NotSupportESSD`: The operation is not supported in this status, please reboot the instance.
/// - `InvalidOperation.InstanceTypeNotSupport`: The instance type of the specified instance does not support hot detach disk.
/// - `OperationDenied.InstanceDiskLimitExceeded`: The amount of the disk on instance in question reach its limits.
/// - `DiskCategory.OperationNotSupported`: The type of the specified disk does not support creating a snapshot.
/// - `IncorrectDiskStatus.CreatingSnapshot`: A previous snapshot creation is in process.
/// - `InvalidDiskCategory.NotSupported`: The specified disk category is not support the specified instance type.
/// - `OperationDenied.DiskCreatingSnapshot`: The operation is denied due to a snapshot of the specified disk is not completed yet.
/// - `OperationDenied.IncorrectDiskStatus`: The current disk status does not support this operation.
/// - `ResourcesNotInSameZone`: The specified instance and disk are not in the same zone.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
///
pub fn attach_rc_disk(
&self,
req: AttachRCDisk,
) -> impl std::future::Future<Output = crate::Result<AttachRCDiskResponse>> + Send {
self.call(req)
}
/// # 查询RDS Custom ACK集群KubeConfig
///
/// 查询RDS Custom ACK集群KubeConfig。
///
/// KubeConfig用于在客户端配置ACK集群的访问凭据,包含访问目标集群的身份和认证数据等信息。使用kubectl管理集群时,您需要通过KubeConfig来连接。请妥善管理集群的KubeConfig凭据,并在无需使用凭据时及时完成吊销,避免KubeConfig泄露带来的数据泄露等安全风险。
///
/// # Error Codes
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `InvalidUserAccount.NotSupported`: the Specified user account Validated not supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn describe_rc_cluster_config(
&self,
req: DescribeRCClusterConfig,
) -> impl std::future::Future<Output = crate::Result<DescribeRCClusterConfigResponse>> + Send
{
self.call(req)
}
/// # 添加RDS Custom实例到ACK集群
///
/// 该接口用于添加RDS Custom实例到ACK集群。
///
/// # Error Codes
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `InvalidUserAccount.NotSupported`: the Specified user account Validated not supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn attach_rc_instances(
&self,
req: AttachRCInstances,
) -> impl std::future::Future<Output = crate::Result<AttachRCInstancesResponse>> + Send {
self.call(req)
}
/// # 删除ACK集群中的RDS Custom节点
///
/// 该接口用于删除ACK集群中的RDS Custom节点。
///
/// # Error Codes
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `InvalidUserAccount.NotSupported`: the Specified user account Validated not supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn delete_rc_cluster_nodes(
&self,
req: DeleteRCClusterNodes,
) -> impl std::future::Future<Output = crate::Result<DeleteRCClusterNodesResponse>> + Send {
self.call(req)
}
/// # 修改实例原生复制开关状态
///
/// 调用ModifyDBInstanceReplicationSwitch接口开启或关闭RDS原生复制模式。
///
/// 开启原生复制功能的RDS MySQL实例需满足:
/// - 引擎版本:MySQL 5.7
/// - 产品系列:基础系列
/// - 计费方式:按量付费或包年包月
/// - 内核版本:大于等于20240930
///
/// 关于原生复制的更多信息,请参见[RDS原生复制](~~2856530~~)。
///
/// # Error Codes
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn modify_db_instance_replication_switch(
&self,
req: ModifyDBInstanceReplicationSwitch,
) -> impl std::future::Future<Output = crate::Result<ModifyDBInstanceReplicationSwitchResponse>> + Send
{
self.call(req)
}
/// # 查询实例复制状态
///
/// 该接口用于查询原生复制实例状态与配置。
///
/// ### 适用引擎
/// RDS MySQL
///
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
/// [RDS MySQL原生复制实例](~~2856487~~)
///
/// # Error Codes
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - GET
///
pub fn describe_db_instance_replication(
&self,
req: DescribeDBInstanceReplication,
) -> impl std::future::Future<Output = crate::Result<DescribeDBInstanceReplicationResponse>> + Send
{
self.call(req)
}
/// # 迁移RDS实例节点
///
/// 该接口用于变更RDS MySQL集群系列实例节点可用区。
///
/// # Error Codes
/// - `DBNodeFormatFault`: The specified parameter DBNode is malformed
/// - `DBNodeParameterRequired`: The specified parameter DBNode is required.
/// - `DBNodeIdParameter.NotExists`: The specified DBNodeId is not existed.
/// - `SecondaryClassCode.Unsupported`: At least one secondary node has the same classCode as the primary node.
/// - `IncorrectDBInstanceState`: The current instance state does not support this operation.
/// - `InvalidDBInstanceName.NotFound`: The specified DB instance name does not exist.
/// - `InvalidNodeId`: Parameter node id is not valid.
/// - `SlaveClassCode.Unsupported`: Need at least one secondary's class_code same as primary's.
/// - `InvalidDBInstanceStorage`: The specified DBInstanceStorage is invalid.
/// - `UnsupportedOperationDirection.DiskUpgrade`: The specified operation is not allowed, class and storage can only modify to one direction, current class: DOWNGRADE.
/// - `UnsupportedOperationDirection.DiskDowngrade`: The specified operation is not allowed, class and storage can only modify to one direction, current class: UPGRADE
/// - `InvalidDBInstanceStorageType`: The specified DBInstanceStorageType is invalid.
/// - `InvalidMultiTenant`: Multi tenants cannot exist in a same instance.
/// - `DBNodeParameter.InvalidCombination`: DBNode class code combination is not valid.
/// - `InvalidClassCode`: The specification code in the parameter is invalid.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `InvalidSaleComponentFault`: The request not refer to the correct order sale component. please contact customer service.
/// - `OperationDenied.DBType`: The operation is not permitted due to type of the database.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidDBInstance.NotFound`: The specified instance does not exist or is not supported.
/// - `InsufficientResourceCapacity`: Current cluster resources are insufficient. Try again later.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - GET
/// - POST
///
pub fn migrate_db_nodes(
&self,
req: MigrateDBNodes,
) -> impl std::future::Future<Output = crate::Result<MigrateDBNodesResponse>> + Send {
self.call(req)
}
/// # 大版本升级切换
///
/// 用于RDS PostgreSQL的零停机大版本升级流量切换。
///
/// 适用引擎:
/// * RDS PostgreSQL
///
/// # Error Codes
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `NoAvailablePaymentMethod`: No payment method is specified for account. We recommend that you add a payment method.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn switch_over_major_version_upgrade(
&self,
req: SwitchOverMajorVersionUpgrade,
) -> impl std::future::Future<Output = crate::Result<SwitchOverMajorVersionUpgradeResponse>> + Send
{
self.call(req)
}
/// # 为Custom实例绑定弹性公网IP
///
/// 该接口用于为Custom实例绑定弹性公网IP EIP(Elastic IP Address)。
///
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS SQL Server
///
/// ### 相关功能文档
///
/// - [RDS Custom for MySQL简介](~~2844223~~)
/// - [RDS Custom for SQL Server简介](~~2864363~~)
///
/// ### 注意事项
/// 如果RDS Custom实例开启了公网IP,绑定EIP后,已开启的公网IP会自动释放。
///
/// # Error Codes
/// - `InvalidParam`: Parameter error, please check the parameters.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `NoAvailablePaymentMethod`: No payment method is specified for account. We recommend that you add a payment method.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn associate_eip_address_with_rc_instance(
&self,
req: AssociateEipAddressWithRCInstance,
) -> impl std::future::Future<Output = crate::Result<AssociateEipAddressWithRCInstanceResponse>> + Send
{
self.call(req)
}
/// # 查询RDS Custom实例的DDos防护信息及所属原生防护实例的详情
///
/// 该接口用于查询RDS Custom for SQL Server实例的DDos防护信息及所属原生防护实例的详情。
///
/// ### 适用引擎
/// RDS SQL Server
///
/// ### 相关功能文档
/// [RDS Custom简介](~~2864363~~)
///
/// > 一个[DDoS原生防护](~~63643~~)实例包含一个或者多个公网IP资产的场景下,您可以调用本接口查询当前阿里云账号下RDS Custom for SQL Server实例的DDos防护信息及所属原生防护实例的详情,例如DDoS基础防护阈值、流量清洗阈值、公网IP资产的DDoS防护状态、实例ID、实例的防护状态等。
///
/// # Error Codes
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `NoAvailablePaymentMethod`: No payment method is specified for account. We recommend that you add a payment method.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
///
pub fn describe_rc_instance_ip_address(
&self,
req: DescribeRCInstanceIpAddress,
) -> impl std::future::Future<Output = crate::Result<DescribeRCInstanceIpAddressResponse>> + Send
{
self.call(req)
}
/// # 查询RDS Custom实例被DDos攻击的数量
///
/// 该接口用于查询RDS Custom for SQL Server实例被DDos攻击的数量,实时监控数据库实例的安全状态,以便评估潜在的安全风险。
///
/// ### 适用引擎
/// RDS SQL Server
///
/// ### 相关功能文档
/// [RDS Custom简介](~~2864363~~)
///
/// <props="china">
///
/// > DDoS攻击,全称为分布式拒绝服务攻击(Distributed Denial of Service attack),是一种常见的网络安全攻击方式。这种攻击形式主要通过恶意流量消耗网络或网络设备的资源,从而导致网站无法正常运行或在线服务无法正常提供。发生DDoS攻击的原因,常见的DDoS攻击类型,识别和防护DDoS攻击的方法,请参见[DDoS攻击](https://www.aliyun.com/getting-started/what-is/what-is-ddos)。</props>
///
/// # Error Codes
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `NoAvailablePaymentMethod`: No payment method is specified for account. We recommend that you add a payment method.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
///
pub fn describe_rc_instance_ddos_count(
&self,
req: DescribeRCInstanceDdosCount,
) -> impl std::future::Future<Output = crate::Result<DescribeRCInstanceDdosCountResponse>> + Send
{
self.call(req)
}
/// # 停止一台RDS Custom实例
///
/// 调用StopRCInstance停止一台运行中(Running)的RDS Custom实例。成功调用接口后,实例从暂停中(Stopping)变成已暂停(Stopped)状态。
///
/// # Error Codes
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `IncorrectInstanceStatus`: The current status of the resource does not support this operation.
/// - `IncorrectInstanceStatus.Initializing`: The specified instance status does not support this operation.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
///
pub fn stop_rc_instance(
&self,
req: StopRCInstance,
) -> impl std::future::Future<Output = crate::Result<StopRCInstanceResponse>> + Send {
self.call(req)
}
/// # 批量退订RDS Custom实例
///
/// 调用DeleteRCInstance接口,释放一台或多台包年包月的RDS Custom实例。
///
/// 释放后,实例所使用的物理资源都被回收,相关数据全部丢失且不可恢复。
///
/// # Error Codes
/// - `InvalidInstanceId.NotFound`: InstanceId is invalid, not found.
/// - `CallRdsCustomApi.Failure`: Failed to call rds custom api.
/// - `IncorrectInstanceStatus.Initializing`: The specified instance status does not support this operation.
/// - `IncorrectInstanceStatus`: The current status of the resource does not support this operation.
/// - `InvalidUserAccount.NotSupported`: the Specified user account Validated not supported.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `RemainRefundOrderFail`: Reamin refund order for instance fail.
/// - `InvalidOperation.DeletionProtection`: %s.
/// - `InvalidOperation.NodeStatusNotSupported`: Please delete the pods on the vNode before deleting the vNode.
/// - `OperationDenied.TimeLimit`: The interval between the two conversion operations must be greater than 15 minutes.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `InvalidDBInstanceName.NotFound`: The specified instance does not exist or is not supported.
/// - `InvalidDBInstance.NotFound`: Specified instance does not exist or not support.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
///
pub fn delete_rc_instances(
&self,
req: DeleteRCInstances,
) -> impl std::future::Future<Output = crate::Result<DeleteRCInstancesResponse>> + Send {
self.call(req)
}
/// # 创建一台或多台RDS Custom实例
///
/// 调用RunRCInstances接口,并可以指定ImageId、InstanceType、VSwitchId、SecurityGroupId等参数,创建一台或多台RDS Custom实例。
///
/// - 在创建RDS Custom实例前,请先提交工单,申请将阿里云账号加入白名单。
/// - 仅支持创建包年包月类型的RDS Custom实例。
/// - 支持的地域为北京、上海、深圳和杭州。
///
/// # Error Codes
/// - `InvalidUserAccount.NotSupported`: the Specified user account Validated not supported.
/// - `InvalidInstanceType.NotSupportDiskCategory`: The instanceType of the specified instance does not support this disk category.
/// - `InvalidInstanceType.ZoneNotSupported`: The specified zone does not support this instancetype.
/// - `InvalidInstanceType.NotSupported`: The specified instance type is not supported.
/// - `InvalidImageId.NotFound`: The specified ImageId does not exist.
/// - `InsufficientCapacity`: There is insufficient capacity available for the requested resource.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `InvalidPayType.NotSupported`: current instance pay type not support this operation.
/// - `InvalidTargetDBInstanceName.NotFound`: The specified DB instance name does not exist.
/// - `InvalidParameters.ImageId`: The specified image does not support the specified InstanceType.
/// - `InvalidDataDiskSize.ValueNotSupported`: The specified DataDisk.n.Size beyond the permitted range, or the capacity of snapshot exceeds the size limit of the specified disk category.
/// - `InvalidParameters.SystemSize`: SystemDisk size is invalid.
/// - `InvalidHostName.CustomMalformed`: Customized section of host name is invalid, please use valid format: [], [,], [m,], [,n], [m,n].
/// - `InvalidParameters.DataDisk`: the data disk size is less than dataDiskSnapshotsSize.
/// - `InvalidUserData.Base64FormatInvalid`: The specified UserData is not base64 encoded.
/// - `InvalidUserData.NotSupported`: The specified GPU instanceType is not supported the use of userdata.
/// - `InvalidParameter.TagValue`: The Tag.N.Value parameter is invalid.
/// - `NumberExceed.Tags`: The maximum number of Tags is exceeded. The maximum is 20.
/// - `Duplicate.TagKey`: The Tag.N.Key contains duplicate keys.
/// - `InvalidDescription.CustomMalformed`: Customized section of host description is invalid, please use valid format.
/// - `InvalidInstanceId.NotFound`: InstanceId is invalid, not found.
/// - `InvalidParameters`: Invalid createMode or supportCase.
/// - `InvalidParam.DefaultVpcNotSupport`: Default vpc is not supported.
/// - `InvalidPerformanceLevel.Malformed`: The specified parameter DataDisk.n.PerformanceLevel is not valid.
/// - `InvalidSystemDiskCategory.ValueNotSupported`: The current operation does not support this system disk type.
/// - `InvalidParameter.DataDiskNotSupported`: DataDisk is not supported for vNode.
/// - `InvalidParameter`: Invalid parameter.
/// - `QuotaExceed.ElasticQuota`: %s.
/// - `InvalidInstanceName.CustomMalformed`: The instance name is invalid, please use valid format.
/// - `InvalidParameter.ScheduledRule`: The specified parameter ScheduledRule is not valid.
/// - `InvalidParam.AcuType`: The parameter AcuType is invalid, please check and re-enter.
/// - `ResourceGroupId.InValid`: The Specified resource group id is not found.
/// - `InvalidDisk.CategoryFormat`: The specified eed category does not support this operation.
/// - `InvalidEEDDisk.NotSupport`: The specified eed category does not support this operation.
/// - `InvalidPrivateIpAddress.AlreadyUsed`: The specified IP is already used.
/// - `InvalidPrivateIpAddress.Mismatch`: Specified private IP address is not in the CIDR block of virtual switch.
/// - `InvalidSnapshot.Malformed`: The specified eed category does not support snapshot operation.
/// - `InvalidEEDDisk.DeleteWithInstanceConflict`: The specified disk is not a portable disk and cannot be set to DeleteWithInstance attribute false.
/// - `OperationDenied.InvalidClusterStatus`: The specified cluster status not support current operation.
/// - `InvalidParam.ClusterIdNotExist`: The specified cluster does not exist.
/// - `InvalidHostName.Malformed`: The specified parameter HostName is not valid.
/// - `InvalidSecurityGroupId.NotFound`: The specified SecurityGroupId does not found.
/// - `InvalidInstanceType.NotSupported`: The specified InstanceType is not Supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `QuotaExceed.DeploymentSetInstanceQuotaFull`: The instance quota in one deployment set exceeded.
/// - `InvalidDiskCategory.NotSupported`: The specified disk category is not support the specified instance type.
/// - `OperationDenied.InvalidCluster`: The operation is not allowed for the cluster, please check clusterId and createExtraParam.
/// - `InvalidParam.DataDisKSizeInvalid`: The specified cloud disk size is invalid.
/// - `InstanceDiskNumLimitExceed`: The number of specified disk in an instance exceeds.
/// - `OperationDenied.PerformanceLevelNotMatch`: The specified PerformanceLevel and disk size do not match.
/// - `IdempotentParameterMismatch`: Arguments on this idempotent request are inconsistent with arguments used in previous request(s).
/// - `InvalidParam`: The specified parameter is invalid.
/// - `IncorrectVswitchId`: The specified parameter VSwitchId is not valid.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `DeploymentSet.NotFound`: The specified deployment set does not exist.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.
/// - `CallLxSdkFailed`: Error calling the order system, please try again later or contact service personnel.///
/// # Methods
/// - POST
///
pub fn run_rc_instances(
&self,
req: RunRCInstances,
) -> impl std::future::Future<Output = crate::Result<RunRCInstancesResponse>> + Send {
self.call(req)
}
/// # 变更RDS Custom实例或者云盘的计费方式
///
/// 用于修改RDS Custom实例或者云盘的计费方式。您可以通过此接口实现按量付费实例和包年包月实例之间的相互转换。
///
/// ### 注意事项
/// - 请确保在使用该接口前,您已充分了解的RDS Custom的包年包月、按量付费等计费方式和价格。
/// - 请确保目标实例的状态为运行中(**Running**)或者已暂停(**Stopped**),并且账号无欠费。
/// - 确保云盘状态为使用中(**In_use**),且操作前15分钟内未成功修改过云盘计费方式。
///
/// - 更换计费方式后,默认自动扣费。请确保账户余额充足,否则会生成异常订单,此时只能作废订单。
///
/// ### 使用须知
/// 请参照对应的功能文档:
/// - [变更实例的计费方式](~~2878542~~)
/// - [变更云盘的计费方式](~~2878547~~)
///
/// # Error Codes
/// - `InvalidDBInstanceName.NotFound`: The specified DB instance name does not exist.
/// - `InvalidInstanceUseType.NotSupport`: Specified instanceUseType does not support in RDS.
/// - `InvalidOrderCharge.NotSupport`: The specified order charge does not support in RDS.
/// - `InvalidOrderTask.NotSupport`: The Current InstanceId exist Order Task in RDS.
/// - `IncorrectDBInstanceType`: Current DB instance type does not support this operation.
/// - `IncompleteAccountInfo`: Your information is incomplete. Complete your information before the operation.
/// - `IncompleteTaxInfo`: Your tax information is incomplete. Complete your information before the operation.
/// - `InvalidPaymentMethod.Incomplete`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `InvalidPaymentMethod.Missing`: Your payment method is incomplete. We recommend that you add a payment method.
/// - `InsuffcientBalanceOrBankAccount`: Add a payment method or add funds to the prepayment balance. Get started by creating an instance.
/// - `OrderTaskAlreadyExists`: Order task already exists.
/// - `InvalidOldInstanceType.NotSupport`: Specified oldInstanceType does not support in RDS.
/// - `OperationDenied.TimeLimit`: The interval between the two conversion operations must be greater than 15 minutes.
/// - `InvalidResource.Format`: The specified parameter Resource is not valid.
/// - `InvalidPayType.Format`: The specified parameter PayType is not valid.
/// - `InvalidUsedTime.Format`: The specified parameter UsedTime is not valid.
/// - `InsufficientQuota.NoEnough`: Your current quota is insufficient. Please contact your channel partner to increase your quota.
/// - `SYSTEM.ILLEGALARGUMENT`: The current instance does not have a valid configuration when change the payType from Prepaid to Postpaid.
/// - `AccountMoneyValidate.error`: Insufficient funds available in the account.
/// - `ContainForbiddenLabel.error`: There is a label that prohibits placing an order, and the order cannot be placed.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `InvalidParam.PREPAY`: The prepaid instance purchase limit has been exceeded, and changing the payment method to prepaid is not allowed.
/// - `InvalidParam.POSTPAY`: It is not allowed to switch the payment method to postpaid after exceeding the purchase time limit for postpaid instances.
/// - `Order.InstHasUnsettledBills`: You currently have outstanding bills, please settle them first.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `InvalidChargeType.ValueNotSupported`: The deletion protection is only valid for postPaid instance, not for prePaid or spot instance.
/// - `InvalidParameter`: Invalid parameter.
/// - `InvalidRCInstanceID.NotFound`: The specified custom instanceID is not valid.
/// - `Invalid.UsedTimeFormat`: The specified UsedTime is not valid.
/// - `Invalid.PayTypeFormat`: The specified PayType is not valid.
/// - `Invalid.SpotStrategyFormat`: The specified SpotStrategy SpotAsPriceGo is not valid.
/// - `Invalid.PeriodAndUsedTimeFormat`: The specified Period and UsedTime is not valid.
/// - `Invalid.DiskFormat`: The specified disk is not attached to instance id.
/// - `InvalidPayType.NotSupported`: current instance pay type not support this operation.
/// - `InvalidDisk.SystemDiskFormat`: The specified system disk does not support this operation.
/// - `InvalidDisk.CategoryFormat`: The specified eed category does not support this operation.
/// - `InvalidEEDDisk.NotSupport`: The specified eed category does not support this operation.
/// - `OperationDenied.LockMode`: The operation is not permitted when the instance locked.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn modify_rc_instance_charge_type(
&self,
req: ModifyRCInstanceChargeType,
) -> impl std::future::Future<Output = crate::Result<ModifyRCInstanceChargeTypeResponse>> + Send
{
self.call(req)
}
/// # 启动一台RDS Custom实例
///
/// 调用StartRCInstance接口启动处于已暂停(Stopped)状态的RDS Custom实例。接口调用成功后,实例从启动中(Starting)变成运行中(Running)状态。
///
/// # Error Codes
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
///
pub fn start_rc_instance(
&self,
req: StartRCInstance,
) -> impl std::future::Future<Output = crate::Result<StartRCInstanceResponse>> + Send {
self.call(req)
}
/// # 查询单个RDS Custom实例所有属性信息
///
/// 调用DescribeRCInstanceAttribute接口查询单个RDS Custom实例的详情。
///
/// # Error Codes
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `InvalidInstanceName.CustomMalformed`: The instance name is invalid, please use valid format.
/// - `InvalidDBInstanceName.MultipleFound`: The specified DB instance name matches multiple instances.
/// - `InvalidRCInstanceID.NotFound`: The specified custom instanceID is not valid.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidDBInstanceName.NotFound`: The database instance does not exist.
/// - `InvalidParam`: The parameter is invalid.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - GET
/// - POST
///
pub fn describe_rc_instance_attribute(
&self,
req: DescribeRCInstanceAttribute,
) -> impl std::future::Future<Output = crate::Result<DescribeRCInstanceAttributeResponse>> + Send
{
self.call(req)
}
/// # 扩容RDS Custom实例存储空间
///
/// 扩容RDS Custom实例存储空间。
///
/// 本地盘实例不支持变更存储空间。
///
/// # Error Codes
/// - `CallEcsApi.Failure`: Fail to call ECS API.
/// - `InvalidOrderTask.NotSupport`: The Current InstanceId exist Order Task in RDS.
/// - `InvalidUserAccount.NotSupported`: the Specified user account Validated not supported.
/// - `InvalidStorageSize.Direction`: The specified parameter StorageSize does not meet the updating direction constraint requirements.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidDBInstanceName.NotFound`: Invalid DBInstanceId NotFound.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
///
pub fn resize_rc_instance_disk(
&self,
req: ResizeRCInstanceDisk,
) -> impl std::future::Future<Output = crate::Result<ResizeRCInstanceDiskResponse>> + Send {
self.call(req)
}
/// # 升级或降低RDS Custom实例规格
///
/// 调用ModifyRCInstance接口,升级或者降低一台RDS Custom实例的实例规格。
///
/// 请确保在使用该接口前,您已充分了解RDS Custom实例的计费方式、产品定价以及降配退款规则。
///
/// 调用该接口时,您需要注意:
/// - 已过期实例无法修改实例规格,您可以续费后重新操作。
/// - 当前仅支持**标准版云盘实例**变更实例规格。
/// - 升级或降低实例规格时,您需要注意:
/// - 实例必须处于**运行中**(Running)或**已暂停**(Stopped)状态。
/// - 降低前后的实例规格价格差退款会退还到您的原付费方式中,已使用的代金券不退回。
///
/// # Error Codes
/// - `CallEcsApi.Failure`: Fail to call ECS API.
/// - `InvalidOrderTask.NotSupport`: The Current InstanceId exist Order Task in RDS.
/// - `InvalidInstanceType.ValueNotSupported`: The specified InstanceType does not exist or beyond the permitted range.
/// - `InvalidInstanceStatus.NotStopped`: The specified Instance status is not stopped.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `DependencyViolation.InstanceType`: The current InstanceType cannot be changed to the specified InstanceType.
/// - `OperationDenied`: The requested instance is out of resources.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `UnexpectedSwitchTime`: SwitchTime should not be null when switch at timePoint mode
/// - `InvalidDBInstanceName.NotFound`: Invalid DBInstanceId NotFound.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `InvalidUserAccount.NotSupported`: the Specified user account Validated not supported.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
///
pub fn modify_rc_instance(
&self,
req: ModifyRCInstance,
) -> impl std::future::Future<Output = crate::Result<ModifyRCInstanceResponse>> + Send {
self.call(req)
}
/// # 删除一个RDS Custom部署集
///
/// 调用DeleteRCDeploymentSet接口,并指定RegionId、DeploymentSetId等参数,删除一个RDS Custom部署集。
///
/// # Error Codes
/// - `DependencyViolation.NotEmpty`: There are still instance(s) in the specified DeploymentSetId.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
///
pub fn delete_rc_deployment_set(
&self,
req: DeleteRCDeploymentSet,
) -> impl std::future::Future<Output = crate::Result<DeleteRCDeploymentSetResponse>> + Send
{
self.call(req)
}
/// # 查看RDS Custom实例的监控数据
///
/// 该接口用于查询目标RDS Custom指定监控指标的监控数据。
///
/// # Error Codes
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - GET
///
pub fn describe_rc_metric_list(
&self,
req: DescribeRCMetricList,
) -> impl std::future::Future<Output = crate::Result<DescribeRCMetricListResponse>> + Send {
self.call(req)
}
/// # 查询RDS Custom实例列表信息
///
/// 调用DescribeRCInstances接口查询指定RDS Custom实例列表信息。如果未指定实例ID(InstanceId),则将返回目标地域内所有RDS Custom实例列表信息。
///
/// # Error Codes
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `InvalidParameter.InstanceIds`: The specified parameter InstanceIds is invalid.
/// - `InvalidDBInstanceName.MultipleFound`: The specified DB instance name matches multiple instances.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidParam`: The specified parameter is invalid.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `InvalidDBInstanceName.NotFound`: The specified instance does not exist or is not supported.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - GET
/// - POST
///
pub fn describe_rc_instances(
&self,
req: DescribeRCInstances,
) -> impl std::future::Future<Output = crate::Result<DescribeRCInstancesResponse>> + Send {
self.call(req)
}
/// # 查询创建RDS Custom可以使用的自定义镜像列表
///
/// 调用DescribeRCImageList接口,并可以指定RegionId等参数,查询创建RDS Custom可以使用的自定义镜像列表。
///
/// # Error Codes
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - GET
///
pub fn describe_rc_image_list(
&self,
req: DescribeRCImageList,
) -> impl std::future::Future<Output = crate::Result<DescribeRCImageListResponse>> + Send {
self.call(req)
}
/// # 修改RDS Custom实例名称
///
/// 本接口用于修改RDS Custom实例的名称。
///
/// # Error Codes
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
///
pub fn modify_rc_instance_description(
&self,
req: ModifyRCInstanceDescription,
) -> impl std::future::Future<Output = crate::Result<ModifyRCInstanceDescriptionResponse>> + Send
{
self.call(req)
}
/// # 创建一块数据盘
///
/// 调用CreateDisk接口,创建一块RDS Custom数据盘。
///
/// - 支持的磁盘类型:高效云盘、SSD云盘、ESSD云盘、高性能云盘(默认)。
/// - 磁盘付费类型为包年包月(**Prepaid**)时,必须传入一个挂载此磁盘的包年包月的实例ID(**InstanceId**),此磁盘的到期时间与挂载磁盘的实例保持一致。
/// - 支持单独创建按量付费(**Postpaid**)的磁盘,无需挂载到实例上。您也可以根据需要在创建时将其挂载到任意付费类型的实例上。
/// - 不同规格实例支持挂载的磁盘类型和数量不同。
///
/// # Error Codes
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `InvalidUserAccount.NotSupported`: the Specified user account Validated not supported.
/// - `InvalidPayType.NotSupported`: current instance pay type not support this operation.
/// - `InvalidSnapshotIds.Malformed`: The specified snapshotId is not valid.
/// - `InvalidParameter.InstanceChargeType`: Please input a PREPAY instanceId when creating a PREPAY disk.
/// - `InvalidDataDiskCategory.NotSupported`: Specified disk category is not supported.
/// - `InvalidDescription.Malformed`: The specified parameter "Description" is not valid.
/// - `InvalidDiskCategory.ValueNotSupported`: Specified disk category is not supported.
/// - `InvalidDiskSize.NotSupported`: The specified parameter size is not valid.
/// - `InvalidZoneId.DiskCategoryUnsupported`: The specified disk category does not support setting the ZoneId.
/// - `InvalidInstanceType.NotSupportDiskCategory`: The instanceType of the specified instance does not support this disk category.
/// - `InvalidSnapshot.Malformed`: The specified eed category does not support snapshot operation.
/// - `Invalid.RCInstanceExpired`: The requested custom instance has expired.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidOperation.DataDiskNotSupport`: Specified instance does not support the data disk category or size.
/// - `InvalidParam.DataDisKSizeInvalid`: The specified cloud disk size is invalid.
/// - `OperationDenied.SnapshotNotSupport`: The specified snapshot type is shared, which is not supported.
/// - `OperationDenied.SnapshotNotAvailable`: The specified snapshot is not available.
/// - `DiskCategory.OperationNotSupported`: The type of the specified disk does not support creating a snapshot.
/// - `InvalidDiskCategory.NotSupported`: The specified disk category is not support the specified instance type.
/// - `InvalidOperation.InstanceTypeNotSupport`: The instance type of the specified instance does not support hot detach disk.
/// - `OperationDenied.InstanceDiskLimitExceeded`: The amount of the disk on instance in question reach its limits.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `InsufficientResourceCapacity`: The target availability zone does not have sufficient resources.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
///
pub fn create_rc_disk(
&self,
req: CreateRCDisk,
) -> impl std::future::Future<Output = crate::Result<CreateRCDiskResponse>> + Send {
self.call(req)
}
/// # 重装RDS Custom操作系统
///
/// 重装一台RDS Custom实例的操作系统。
///
/// - 实例的状态必须为已暂停(Stopped)状态。
/// - 重装系统将丢失原系统盘上的数据,请谨慎操作。
///
/// # Error Codes
/// - `InvalidParam`: Parameter error, please check the parameters.
/// - `Abs.ImageNotFound`: The specified Image is disabled or is deleted.
/// - `InvalidParameters.ImageId`: The specified image does not support the specified InstanceType.
/// - `InvalidParameters.Format`: Specified parameter is not valid
/// - `OperationDenied`: The specified image contains the snapshot of the data disk,does not support this operation.
/// - `IncorrectInstanceStatus`: The current status of the resource does not support this operation.
/// - `IncorrectInstanceStatus.Initializing`: The specified instance status does not support this operation.
/// - `InvalidImageId.NotFound`: The specified ImageId does not exist.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `NoAvailablePaymentMethod`: No payment method is specified for account. We recommend that you add a payment method.
/// - `InvalidHostStatus.Format`: Specified host status is not valid.
/// - `ReplaceSystemDisk.InvalidImageId`: The paid image only replace instance systemDisk using the original image.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `IncorrectDBInstance`: The current DB instance does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `InvalidDBInstance.NotFound`: The specified instance does not exist or is not supported.
/// - `InvalidDBInstanceName.NotFound`: The database instance does not exist.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn replace_rc_instance_system_disk(
&self,
req: ReplaceRCInstanceSystemDisk,
) -> impl std::future::Future<Output = crate::Result<ReplaceRCInstanceSystemDiskResponse>> + Send
{
self.call(req)
}
/// # 查询RDS Custom实例VNC登录地址
///
/// 该接口用于查询一台RDS Custom实例的VNC登录地址。
///
/// VNC 登录地址存在时效性,有效期为15秒,调用接口成功后如果15秒内不使用该链接,该地址会自动失效,您需要重新调用接口获取。
///
/// # Error Codes
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `NoAvailablePaymentMethod`: No payment method is specified for account. We recommend that you add a payment method.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn describe_rc_instance_vnc_url(
&self,
req: DescribeRCInstanceVncUrl,
) -> impl std::future::Future<Output = crate::Result<DescribeRCInstanceVncUrlResponse>> + Send
{
self.call(req)
}
/// # 查询RDS Custom边缘节点池配置
///
/// 该接口用于查询RDS Custom边缘节点池配置信息。
///
/// # Error Codes
/// - `InvalidParam`: Parameter error, please check the parameters.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `NoAvailablePaymentMethod`: No payment method is specified for account. We recommend that you add a payment method.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - GET
///
pub fn describe_rc_node_pool(
&self,
req: DescribeRCNodePool,
) -> impl std::future::Future<Output = crate::Result<DescribeRCNodePoolResponse>> + Send {
self.call(req)
}
/// # 创建RDS Custom边缘节点池
///
/// 在RDS Custom的ACK Edge集群中创建边缘节点池。
///
/// # Error Codes
/// - `InvalidUserAccount.NotSupported`: the Specified user account Validated not supported.
/// - `InvalidInstanceType.NotSupportDiskCategory`: The instanceType of the specified instance does not support this disk category.
/// - `InvalidInstanceType.ZoneNotSupported`: The specified zone does not support this instancetype.
/// - `InvalidInstanceType.NotSupported`: The specified instance type is not supported.
/// - `InvalidImageId.NotFound`: The specified ImageId does not exist.
/// - `InsufficientCapacity`: There is insufficient capacity available for the requested resource.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `InvalidPayType.NotSupported`: current instance pay type not support this operation.
/// - `InvalidTargetDBInstanceName.NotFound`: The specified DB instance name does not exist.
/// - `InvalidParameters.ImageId`: The specified image does not support the specified InstanceType.
/// - `InvalidDataDiskSize.ValueNotSupported`: The specified DataDisk.n.Size beyond the permitted range, or the capacity of snapshot exceeds the size limit of the specified disk category.
/// - `InvalidParameters.SystemSize`: SystemDisk size is invalid.
/// - `InvalidHostName.CustomMalformed`: Customized section of host name is invalid, please use valid format: [], [,], [m,], [,n], [m,n].
/// - `InvalidParameter.AckEdgeParam`: The specified AckEdgeParam is not valid.
/// - `InvalidParameter.AckMode`: CreteMode should be 1 and SupportCase should be edge.
/// - `InvalidParameter.AutoPay`: AutoPay should be true.
/// - `InvalidDescription.Malformed`: The specified parameter "Description" is not valid.
/// - `InvalidDiskSize.NotSupported`: The specified parameter size is not valid.
/// - `InvalidPassword.Malformed`: The specified parameter "Password" is not valid.
/// - `InvalidPerformanceLevel.Malformed`: The specified parameter DataDisk.n.PerformanceLevel is not valid.
/// - `InvalidSystemDiskCategory.ValueNotSupported`: The current operation does not support this system disk type.
/// - `IncorrectInstanceStatus`: The current status of the resource does not support this operation.
/// - `IncorrectInstanceStatus.Initializing`: The specified instance status does not support this operation.
/// - `InvalidDataDiskCategory.NotSupported`: Specified disk category is not supported.
/// - `InvalidDevice.Malformed`: The specified device is not valid.
/// - `InvalidDiskCategory.ValueNotSupported`: Specified disk category is not supported.
/// - `InvalidUserData.SizeExceed`: The UserData is invalid, the size of UserData should not greater than 32KB.
/// - `InvalidZoneId.DiskCategoryUnsupported`: The specified disk category does not support setting the ZoneId.
/// - `InvalidSecurityGroupId.NotFound`: The specified SecurityGroupId does not found.
/// - `InvalidInstanceType.NotSupported`: The specified InstanceType is not Supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `OperationDenied.SystemConcurrent`: Failure caused by Concurrent operations.
/// - `IdempotentParameterMismatch`: Arguments on this idempotent request are inconsistent with arguments used in previous request(s).
/// - `InstanceDiskNumLimitExceed`: The number of specified disk in an instance exceeds.
/// - `DiskCategory.OperationNotSupported`: The type of the specified disk does not support creating a snapshot.
/// - `IncorrectDiskStatus.CreatingSnapshot`: A previous snapshot creation is in process.
/// - `IncorrectInstanceStatus.NotSupportESSD`: The operation is not supported in this status, please reboot the instance.
/// - `InvalidOperation.InstanceTypeNotSupport`: The instance type of the specified instance does not support hot detach disk.
/// - `OperationDenied.IncorrectDiskStatus`: The current disk status does not support this operation.
/// - `InvalidParam`: The specified parameter is invalid.
/// - `IncorrectVswitchId`: The specified parameter VSwitchId is not valid.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `DeploymentSet.NotFound`: The specified deployment set does not exist.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
///
pub fn create_rc_node_pool(
&self,
req: CreateRCNodePool,
) -> impl std::future::Future<Output = crate::Result<CreateRCNodePoolResponse>> + Send {
self.call(req)
}
/// # 续费RDS Custom实例
///
/// 该接口用于续费一台包年包月的RDS Custom实例。
///
/// # Error Codes
/// - `QueryPrice.Failed`: QueryPrice Failed.
/// - `FUWU_BIZ_COMMODITY_VERIFY_FAIL`: There are arrears orders.
/// - `InvalidEngine.VauleNotSupported`: The specified parameter "Engine" is not valid.
/// - `InvalidEngineVersion.ValueNotSupported`: The specified parameter "EngineVersion" is not valid.
/// - `InvalidDBInstanceClass.ValueNotSupported`: The specified parameter "DBInstanceClass" is not valid.
/// - `InvalidDBInstanceStorage.ValueNotSupported`: The specified parameter "DBInstanceStorage" is not valid.
/// - `InvalidDBInstanceNetType.ValueNotSupported`: The specified parameter "InvalidDBInstanceNetType" is not valid.
/// - `InvalidDBInstanceDescription.Malformed`: The specified parameter "DBInstanceDescription" is not valid.
/// - `InvalidSecurityIPList.Malformed`: The specified parameter "SecurityIPList" is not valid.
/// - `InvalidSecurityIPList.Duplicate`: The Security IP address is not in the available range or occupied.
/// - `InvalidSecurityIPListLength.Malformed`: The quota of security ip exceeds.
/// - `IncompleteAccountInfo`: Your information is incomplete. Complete your information before the operation.
/// - `IncompleteTaxInfo`: Your tax information is incomplete. Complete your information before the operation.
/// - `InvalidPaymentMethod.Incomplete`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `InvalidPaymentMethod.Missing`: Your payment method is incomplete. We recommend that you add a payment method.
/// - `InsuffcientBalanceOrBankAccount`: Add a payment method or add funds to the prepayment balance. Get started by creating an instance.
/// - `VswitchIpExhausted`: Vswitch IP exhausted.
/// - `OperationDenied.InvalidStorageSize`: The storage size limit is exceeded.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `Order.InstHasUnsettledBills`: You currently have outstanding bills, please settle them first.
/// - `InvalidParam.UsedTime`: The renewal expiration date cannot exceed:%s.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `StopService.Renew`: The service has been discontinued and renewal operations for instances on the classic network are no longer allowed.
/// - `InvalidDBInstanceName.NotFound`: The specified DB instance name does not exist.
/// - `InvalidOrderTask.NotSupport`: The Current InstanceId exist Order Task in RDS.
/// - `InvalidEngineVersionInRegion.NotAvailable`: The EngineVersion in the Region is not available.
/// - `InvaildEngineInRegion.NotAvailable`: The Engine in the Region is not available.
/// - `OperationDenied`: The resource is out of usage.
/// - `RegionUnauthorized`: There is no authority to create instance in the specified region.
/// - `QuotaExceeded.CreateInstance`: The quota of create instance exceeds.
/// - `Forbidden.Authentication`: The operation is forbidden by Aliyun Realname Authentication System.
/// - `INST_HAS_UNPAID_ORDER`: The instanceId has unpaid order.
/// - `COMMODITY.FAILED`: The commodity is error.
/// - `MoneyLessThan100`: The Account Monet less Than 100.
/// - `InvalidOrderCharge.NotPay`: The specified parameter OrderCharge is not pay.
/// - `OperationDenied.NotSupportedBackupMethod`: When the storage is larger than 4000 GB, only snapshot backup is supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidRegionId.NotFound`: The provided RegionId does not exist.
/// - `InvalidDBInstanceId.NotFound`: The provided InstanceId does not exist.
/// - `canNotFindSubscription`: Subscription information not found.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `InvalidOrderCharge.NotSupport`: Specified order charge does not support in RDS.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn renew_rc_instance(
&self,
req: RenewRCInstance,
) -> impl std::future::Future<Output = crate::Result<RenewRCInstanceResponse>> + Send {
self.call(req)
}
/// # 新增安全组规则
///
/// 用于在指定安全组中新增规则。
///
/// # Error Codes
/// - `InvalidParam`: Parameter error, please check the parameters.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `NoAvailablePaymentMethod`: No payment method is specified for account. We recommend that you add a payment method.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
///
pub fn authorize_rc_security_group_permission(
&self,
req: AuthorizeRCSecurityGroupPermission,
) -> impl std::future::Future<Output = crate::Result<AuthorizeRCSecurityGroupPermissionResponse>>
+ Send {
self.call(req)
}
/// # 查询统计历史事件
///
/// 统计事件中心的历史事件。
///
/// # Error Codes
/// - `Param.Invalid`: Param invalid
/// - `Param.Invalid.TimeEndBeforeStart`: Param invalid. End time before start time
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `InvalidRequest`: Invalid Request.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn describe_history_events_stat(
&self,
req: DescribeHistoryEventsStat,
) -> impl std::future::Future<Output = crate::Result<DescribeHistoryEventsStatResponse>> + Send
{
self.call(req)
}
/// # 查询历史事件
///
/// 查询事件中心的事件列表。
///
/// # Error Codes
/// - `Param.Invalid`: Param invalid
/// - `Param.Invalid.TimeEndBeforeStart`: Param invalid. End time before start time
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `InvalidRequest`: Invalid Request.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn describe_history_events(
&self,
req: DescribeHistoryEvents,
) -> impl std::future::Future<Output = crate::Result<DescribeHistoryEventsResponse>> + Send
{
self.call(req)
}
/// # 修改事件信息
///
/// 修改事件中心的事件信息。
///
/// # Error Codes
/// - `Param.Invalid`: Param.Invalid
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
///
pub fn modify_event_info(
&self,
req: ModifyEventInfo,
) -> impl std::future::Future<Output = crate::Result<ModifyEventInfoResponse>> + Send {
self.call(req)
}
/// # 统计历史任务
///
/// 统计任务中心的任务。
///
/// # Error Codes
/// - `Param.Invalid`: Param invalid
/// - `Param.Invalid.TimeEndBeforeStart`: Param invalid. End time before start time
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `InvalidRequest`: Invalid Request.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn describe_history_tasks_stat(
&self,
req: DescribeHistoryTasksStat,
) -> impl std::future::Future<Output = crate::Result<DescribeHistoryTasksStatResponse>> + Send
{
self.call(req)
}
/// # 查询历史运维任务
///
/// 该接口用于获取历史任务记录,支持创建时间30天内的任务。
///
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
///
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
///
/// - [RDS MySQL任务列表](~~474275~~)
/// - [RDS PostrgreSQL任务列表](~~474537~~)
/// - [RDS SQL Server任务列表](~~614826~~)
///
/// # Error Codes
/// - `Param.Invalid`: Param invalid
/// - `Param.Invalid.TimeEndBeforeStart`: Param invalid. End time before start time
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `InvalidRequest`: Invalid Request.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn describe_history_tasks(
&self,
req: DescribeHistoryTasks,
) -> impl std::future::Future<Output = crate::Result<DescribeHistoryTasksResponse>> + Send {
self.call(req)
}
/// # 修改任务信息
///
/// 修改任务中心的历史任务信息。
///
/// # Error Codes
/// - `Param.Invalid`: Param invalid
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
///
pub fn modify_task_info(
&self,
req: ModifyTaskInfo,
) -> impl std::future::Future<Output = crate::Result<ModifyTaskInfoResponse>> + Send {
self.call(req)
}
/// # 查询RDS SQL Server任务详情
///
/// 该接口用于查询RDS SQL Server实例中处于等待中和执行中的任务。
///
/// ### 适用引擎
/// RDS SQL Server
///
/// > RDS MySQL和RDS PostgreSQL实例请使用[DescribeHistoryTasks](~~2627863~~)查询。
///
/// # Error Codes
/// - `IO.Exception`: IO exception, retry later.
/// - `InvokeServiceFailed`: Invoke service failed, retry later.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn describe_tasks(
&self,
req: DescribeTasks,
) -> impl std::future::Future<Output = crate::Result<DescribeTasksResponse>> + Send {
self.call(req)
}
/// # 领取优惠券
///
/// 该接口用于领取优惠券。
///
/// # Error Codes
/// - `YouhuiClientError`: Calling service from youhui service error
/// - `CouponExist`: Voucher collection has reached the upper limit, and the system has recalculated the optimal price.
/// - `YouhuiServerError`: Calling service from youhui service errror
/// - `CreateCouponError`: Failed to collect the coupon and place the order. The system has recalculated the optimal price.
/// - `CouponOverMaxRelease`: The coupons have been collected and the system has recalculated the optimal price.
/// - `MissingActivityId`: ActivityId is mandatory for this action.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `ParamError`: Parameter error.
/// - `ActivityNotFound`: The activity does not exist.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn create_youhui_for_order(
&self,
req: CreateYouhuiForOrder,
) -> impl std::future::Future<Output = crate::Result<CreateYouhuiForOrderResponse>> + Send {
self.call(req)
}
/// # 查询实例最新变配订单
///
/// 查询实例最新变配订单
///
/// # Error Codes
/// - `InvalidOrderId.NotFound`: Specified order does not exist in RDS.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidDBInstanceName.NotFound`: The database instance does not exist.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn describe_current_modify_order(
&self,
req: DescribeCurrentModifyOrder,
) -> impl std::future::Future<Output = crate::Result<DescribeCurrentModifyOrderResponse>> + Send
{
self.call(req)
}
/// # 查询实例资源使用情况
///
/// 查询实例资源使用情况
///
/// # Error Codes
/// - `InvalidCPUZoom.NotSupport`: The param cpuZoom not in valid range
/// - `InvalidCPUShar.NotSupport`: The param cpuShar not in valid range
/// - `InvalidMemoryZoom.NotSupport`: The param memory zoom not in valid range
/// - `InvalidIOPSZoom.NotSupport`: The param iops zoom not in valid range
/// - `InvalidMaxConnZoom.NotSupport`: The param MaxConne zoom not in valid range
/// - `InvalidResource.Type.NotSupport`: The param Resource Type not in valid range
/// - `InvalidIncreaseRatio.Type.NotSupport`: Insufficient host resources, please reduce the ratio
/// - `InvalidDedicatedHostGroupName`: The DedicatedHostGroupName is invalid
/// - `InvalidInsName`: The InsName is invalid
/// - `ClusterTypeError`: The Custins cluster type encounters an error. Standard cluster is not supported.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `ClusterTypeError`: Custins Cluster Type Error, Support User Cluster
/// - `DedicatedHostNameIsNull`: Dedicated Host Name Is Null!
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `PhysicalCustins.NotFound`: Physical Custins Not Found!
/// - `HostInfo.NotFound`: Current cluster not found host info!
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn describe_custins_resource_info(
&self,
req: DescribeCustinsResourceInfo,
) -> impl std::future::Future<Output = crate::Result<DescribeCustinsResourceInfoResponse>> + Send
{
self.call(req)
}
/// # 查询数据库实例连接
///
/// 获取实例链路诊断信息
///
/// # Error Codes
/// - `Connect.Timeout`: Check connectivity timeout
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - GET
///
pub fn describe_db_instance_connectivity(
&self,
req: DescribeDBInstanceConnectivity,
) -> impl std::future::Future<Output = crate::Result<DescribeDBInstanceConnectivityResponse>> + Send
{
self.call(req)
}
/// # 查询主机组弹性策略配置
///
/// 查询主机组弹性策略参数
///
/// # Error Codes
/// - `InvalidCPUZoom.NotSupport`: The param cpuZoom not in valid range
/// - `InvalidCPUShar.NotSupport`: The param cpuShar not in valid range
/// - `InvalidMemoryZoom.NotSupport`: The param memory zoom not in valid range
/// - `InvalidIOPSZoom.NotSupport`: The param iops zoom not in valid range
/// - `InvalidMaxConnZoom.NotSupport`: The param MaxConne zoom not in valid range
/// - `InvalidResource.Type.NotSupport`: The param Resource Type not in valid range
/// - `InvalidIncreaseRatio.Type.NotSupport`: Insufficient host resources, please reduce the ratio
/// - `InvalidDedicatedHostGroupName`: The DedicatedHostGroupName is invalid
/// - `InvalidInsName`: The InsName is invalid
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `InvalidUserId.NotSupport`: The user ID has no permission.
/// - `ClusterTypeError`: Custins Cluster Type Error, Support User Cluster
/// - `DedicatedHostNameIsNull`: Dedicated Host Name Is Null!
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidDedicatedHostGroupName`: Physical Custins Not Found!
/// - `HostInfo.NotFound `: Current cluster not found host info!
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn describe_host_group_elastic_strategy_parameters(
&self,
req: DescribeHostGroupElasticStrategyParameters,
) -> impl std::future::Future<
Output = crate::Result<DescribeHostGroupElasticStrategyParametersResponse>,
> + Send {
self.call(req)
}
/// # 查询营销活动
///
/// 获取RDS营销项目中待升级实例信息
///
/// # Error Codes
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn describe_marketing_activity(
&self,
req: DescribeMarketingActivity,
) -> impl std::future::Future<Output = crate::Result<DescribeMarketingActivityResponse>> + Send
{
self.call(req)
}
/// # 查询快捷售卖商品配置
///
/// 查询RDS快捷售卖配置
///
/// # Error Codes
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn describe_quick_sale_config(
&self,
req: DescribeQuickSaleConfig,
) -> impl std::future::Future<Output = crate::Result<DescribeQuickSaleConfigResponse>> + Send
{
self.call(req)
}
/// # 查询资源详细信息
///
/// 概览页资源详情
///
/// # Error Codes
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidDBInstance.NotFound`: The specified instance does not exist or is not supported.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
///
pub fn describe_resource_details(
&self,
req: DescribeResourceDetails,
) -> impl std::future::Future<Output = crate::Result<DescribeResourceDetailsResponse>> + Send
{
self.call(req)
}
/// # 评估本地扩展磁盘
///
/// 评估紧急本地扩容磁盘解锁可使用的磁盘空间
///
/// # Error Codes
/// - `InvalidUserId.NotSupport`: The user ID has no permission.
/// - `InvalidTransType.NotSupport`: When forcing local disk expansion, the instance must be in a locked state.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `IncorrectDBType`: Current DB type does not support this operation.
/// - `HostInfo.NotFound`: The host is not found.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn evaluate_local_extend_disk(
&self,
req: EvaluateLocalExtendDisk,
) -> impl std::future::Future<Output = crate::Result<EvaluateLocalExtendDiskResponse>> + Send
{
self.call(req)
}
/// # 修改实例资源
///
/// 该接口用于修改RDS实例资源。
///
/// # Error Codes
/// - `InvalidCPUZoom.NotSupport`: The param cpuZoom not in valid range
/// - `InvalidCPUShar.NotSupport`: The param cpuShar not in valid range
/// - `InvalidMemoryZoom.NotSupport`: The param memory zoom not in valid range
/// - `InvalidIOPSZoom.NotSupport`: The param iops zoom not in valid range
/// - `InvalidMaxConnZoom.NotSupport`: The param MaxConne zoom not in valid range
/// - `InvalidResource.Type.NotSupport`: The param Resource Type not in valid range
/// - `InvalidIncreaseRatio.Type.NotSupport`: Insufficient host resources, please reduce the ratio
/// - `InvalidDedicatedHostGroupName`: The DedicatedHostGroupName is invalid
/// - `InvalidInsName`: The InsName is invalid
/// - `InvalidIncreaseValue.NotEnouth`: Resource is not enough.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `ClusterTypeError`: Custins Cluster Type Error, Support User Cluster
/// - `DedicatedHostNameIsNull`: Dedicated Host Name Is Null!
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `PhysicalCustins.NotFound`: Physical Custins Not Found!
/// - `HostInfo.NotFound`: Current cluster not found host info!
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn modify_custins_resource(
&self,
req: ModifyCustinsResource,
) -> impl std::future::Future<Output = crate::Result<ModifyCustinsResourceResponse>> + Send
{
self.call(req)
}
/// # 删除实例节点预检查
///
/// 删除节点创建订单预检查
///
/// # Error Codes
/// - `OperationDenied.InvalidStorageSize`: The storage size limit is exceeded.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `Forbidden.Authentication`: The operation is forbidden by Aliyun Realname Authentication System.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn pre_check_create_order_for_delete_db_nodes(
&self,
req: PreCheckCreateOrderForDeleteDBNodes,
) -> impl std::future::Future<
Output = crate::Result<PreCheckCreateOrderForDeleteDBNodesResponse>,
> + Send {
self.call(req)
}
/// # 查询RDS热点问题
///
/// 该接口用于查询RDS机器人热点问题。
///
/// # Error Codes
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - GET
/// - POST
///
pub fn query_recommend_by_code(
&self,
req: QueryRecommendByCode,
) -> impl std::future::Future<Output = crate::Result<QueryRecommendByCodeResponse>> + Send {
self.call(req)
}
/// # 删除实例节点
///
/// 该接口用于为RDS MySQL集群系列实例删除节点。
///
/// ### 适用引擎
/// RDS MySQL
///
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。
/// ></notice>
///
/// [RDS MySQL集群系列删除实例节点](~~464130~~)
///
/// # Error Codes
/// - `OperationDenied.MasterDBInstanceState`: The Primary instance in the current state does not support this operation. Try again when the Primary instance is in Running state.
/// - `GeneralIns.Creating`: The general instance is creating.
/// - `IncompleteAccountInfo`: Your information is incomplete. Complete your information before the operation.
/// - `IncompleteTaxInfo`: Your tax information is incomplete. Complete your information before the operation.
/// - `InvalidPaymentMethod.Incomplete`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `InvalidPaymentMethod.Missing`: Your payment method is incomplete. We recommend that you add a payment method.
/// - `InsuffcientBalanceOrBankAccount`: Add a payment method or add funds to the prepayment balance. Get started by creating an instance.
/// - `DBNodeIdParameterInvalid`: The specified parameter DBNodeId is malformed.
/// - `DBNodeIdParameterNotFound`: The specified parameter DBNodeId is required.
/// - `DBNodeParameterTooFewItems`: The specified parameter DBNode has too few items.
/// - `DBNodeFormatFault`: The specified parameter DBNode is malformed
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `Forbidden.Authentication`: The operation is forbidden by Aliyun Realname Authentication System.
/// - `GroupReplicationNotSupport.InvalidEngineVersion`: Group Replication requires the instance engine version to be 8.0.
/// - `GroupReplicationNotSupport.InvalidNodeClassCode`: Group Replication requires the ClassCode of each node to be consistent.
/// - `GroupReplicationNotSupport.InvalidNodeNum`: Group Replication is not supported, the number of nodes must be an odd number greater than or equal to 3.
/// - `GroupReplicationNotSupport.InvalidXengine`: Group Replication is not supported because the instance has xengine tables.
/// - `GroupReplicationNotSupport.MemoryTooSmall`: Group Replication is not supported because the memory is too small.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn create_order_for_delete_db_nodes(
&self,
req: CreateOrderForDeleteDBNodes,
) -> impl std::future::Future<Output = crate::Result<CreateOrderForDeleteDBNodesResponse>> + Send
{
self.call(req)
}
/// # 查询SQLServer可升级版本
///
/// 描述SQLServer实例或指定SQLServer版本允许升级到的版本。
///
/// 适用引擎:
/// * SQLServer(仅支持2016及更早版本)
///
/// # Error Codes
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn describe_sql_server_upgrade_versions(
&self,
req: DescribeSQLServerUpgradeVersions,
) -> impl std::future::Future<Output = crate::Result<DescribeSQLServerUpgradeVersionsResponse>> + Send
{
self.call(req)
}
/// # 查询主动运维配置
///
/// 获取用户的运维配置信息,目前包括计划内事件周期窗口信息。
///
/// # Error Codes
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `InvalidRequest`: Invalid Request.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn describe_active_operation_maintain_conf(
&self,
req: DescribeActiveOperationMaintainConf,
) -> impl std::future::Future<
Output = crate::Result<DescribeActiveOperationMaintainConfResponse>,
> + Send {
self.call(req)
}
/// # 创建加密或脱敏规则
///
/// 为指定实例创建新的加密或脱敏规则。
///
/// ## 请求说明
/// - 在使用此接口前,请确保已在 DAS 安全中心 开通列加密服务。
/// - 如果在调用接口时收到错误信息ColumnEncryptionErrorCode.NOT_PURCHASED,请前往 DAS(数据库自治服务)安全中心 购买并开通列加密服务后再使用。
///
/// # Error Codes
/// - `IncorrectParameter.%s`: The following parameters are incorrect: %s.
/// - `InvalidParameterValue.NotStandard`: Invalid parameter format.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `ColumnEncryptionErrorCode.NOT_PURCHASED`: The instance has not enabled the column encryption service.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `IncorrectDBInstanceState`: Current DB instance state does not support this operation.
/// - `ParamNotFound`: The parameter is not found for the interface.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `UnsupportedByBlueGreenDeployment`: Operation prohibited due to blue green deployment.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in our records.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - GET
/// - POST
///
pub fn create_masking_rules(
&self,
req: CreateMaskingRules,
) -> impl std::future::Future<Output = crate::Result<CreateMaskingRulesResponse>> + Send {
self.call(req)
}
/// # 修改账户脱敏权限
///
/// 修改指定实例中账号的加密或脱敏权限。
///
/// ## 请求说明
/// - 在使用此接口前,请确保已在 DAS 安全中心 开通列加密服务。
/// - 如果在调用接口时收到错误信息ColumnEncryptionErrorCode.NOT_PURCHASED,请前往 DAS(数据库自治服务)安全中心 购买并开通列加密服务后再使用。
///
/// # Error Codes
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `ColumnEncryptionErrorCode.NOT_PURCHASED`: The instance has not enabled the column encryption service.
/// - `IncorrectDBInstanceState`: Current DB instance state does not support this operation.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `UnsupportedByBlueGreenDeployment`: Operation prohibited due to blue green deployment.
/// - `InvalidDBInstance.NotFound`: The specified instance does not exist or is not supported.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
///
pub fn modify_account_masking_privilege(
&self,
req: ModifyAccountMaskingPrivilege,
) -> impl std::future::Future<Output = crate::Result<ModifyAccountMaskingPrivilegeResponse>> + Send
{
self.call(req)
}
/// # 修改加密或脱敏规则
///
/// 用于修改指定实例的加密或脱敏规则。
///
/// ## 请求说明
/// - 在使用此接口前,请确保已在 DAS 安全中心 开通列加密服务。
/// - 如果在调用接口时收到错误信息ColumnEncryptionErrorCode.NOT_PURCHASED,请前往 DAS(数据库自治服务)安全中心 购买并开通列加密服务后再使用。
///
/// # Error Codes
/// - `InvalidParameterValue.NotStandard`: Invalid parameter format.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `ColumnEncryptionErrorCode.NOT_PURCHASED`: The instance has not enabled the column encryption service.
/// - `ParamNotFound`: The parameter is not found for the interface.
/// - `IncorrectDBInstanceState`: Current DB instance state does not support this operation.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidDBInstance.NotFound`: The specified instance does not exist or is not supported.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - GET
/// - POST
///
pub fn modify_masking_rules(
&self,
req: ModifyMaskingRules,
) -> impl std::future::Future<Output = crate::Result<ModifyMaskingRulesResponse>> + Send {
self.call(req)
}
/// # 查询加密或脱敏规则
///
/// 查询指定实例的加密或脱敏规则列表。
///
/// ## 请求说明
/// - 在使用此接口前,请确保已在 DAS 安全中心 开通列加密服务。
/// - 如果在调用接口时收到错误信息ColumnEncryptionErrorCode.NOT_PURCHASED,请前往 DAS(数据库自治服务)安全中心 购买并开通列加密服务后再使用。
///
/// # Error Codes
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `ColumnEncryptionErrorCode.NOT_PURCHASED`: The instance has not enabled the column encryption service.
/// - `IncorrectDBInstanceState`: Current DB instance state does not support this operation.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidDBInstance.NotFound`: The specified instance does not exist or is not supported.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn describe_masking_rules(
&self,
req: DescribeMaskingRules,
) -> impl std::future::Future<Output = crate::Result<DescribeMaskingRulesResponse>> + Send {
self.call(req)
}
/// # 删除加密或脱敏规则
///
/// 用于删除指定实例的加密或脱敏规则。
///
/// ## 请求说明
/// - 在使用此接口前,请确保已在 DAS 安全中心 开通列加密服务。
/// - 如果在调用接口时收到错误信息ColumnEncryptionErrorCode.NOT_PURCHASED,请前往 DAS(数据库自治服务)安全中心 购买并开通列加密服务后再使用。
///
/// # Error Codes
/// - `ParamNotExist`: This param Not Exist
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `ColumnEncryptionErrorCode.NOT_PURCHASED`: The instance has not enabled the column encryption service.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `IncorrectDBInstanceState`: Current DB instance state does not support this operation.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidDBInstanceId.NotFound`: Invalid DBInstanceId NotFound.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn delete_masking_rules(
&self,
req: DeleteMaskingRules,
) -> impl std::future::Future<Output = crate::Result<DeleteMaskingRulesResponse>> + Send {
self.call(req)
}
/// # 查询账号加密或脱敏权限
///
/// 查询指定实例中账号的加密或脱敏权限配置。
///
/// ## 请求说明
/// - 在调用此接口前,请确保已在 DAS 安全中心 开通列加密服务。
/// - 如果在调用接口时收到错误信息ColumnEncryptionErrorCode.NOT_PURCHASED,请前往 DAS(数据库自治服务)安全中心 购买并开通列加密服务后再使用。
///
/// # Error Codes
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `ColumnEncryptionErrorCode.NOT_PURCHASED`: The instance has not enabled the column encryption service.
/// - `IncorrectDBInstanceState`: Current DB instance state does not support this operation.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidDBInstance.NotFound`: The specified instance does not exist or is not supported.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn describe_account_masking_privilege(
&self,
req: DescribeAccountMaskingPrivilege,
) -> impl std::future::Future<Output = crate::Result<DescribeAccountMaskingPrivilegeResponse>> + Send
{
self.call(req)
}
/// # 删除参数修改定时任务
///
/// 删除实例参数修改的定时任务。
///
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
///
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
///
/// - [RDS MySQL设置实例参数](~~96063~~)
/// - [RDS PostgreSQL设置实例参数](~~96751~~)
///
/// # Error Codes
/// - `InvalidParam`: Parameter error, please check the parameters.
/// - `ScheduleTask.NotFound`: Parameter modification timed task not found.
/// - `ScheduleTask.OperationFailed`: Parameter modification timed task operation failed.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidDBInstanceName.NotFound`: The database instance does not exist.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
///
pub fn delete_parameter_timed_schedule_task(
&self,
req: DeleteParameterTimedScheduleTask,
) -> impl std::future::Future<Output = crate::Result<DeleteParameterTimedScheduleTaskResponse>> + Send
{
self.call(req)
}
/// # 查询实例参数修改定时任务
///
/// 查询实例参数修改定时任务详情。
///
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
///
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
///
/// - [RDS MySQL设置实例参数](~~96063~~)
/// - [RDS PostgreSQL设置实例参数](~~96751~~)
///
/// # Error Codes
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidDBInstanceName.NotFound`: The database instance does not exist.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - GET
///
pub fn describe_parameter_timed_schedule_task(
&self,
req: DescribeParameterTimedScheduleTask,
) -> impl std::future::Future<Output = crate::Result<DescribeParameterTimedScheduleTaskResponse>>
+ Send {
self.call(req)
}
/// # 修改参数定时任务
///
/// 改变参数修改定时任务中的生效时间。
///
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
///
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
///
/// - [RDS MySQL设置实例参数](~~96063~~)
/// - [RDS PostgreSQL设置实例参数](~~96751~~)
///
/// # Error Codes
/// - `InvalidParam`: Parameter error, please check the parameters.
/// - `ScheduleTask.NotFound`: Parameter modification timed task not found.
/// - `ScheduleTask.OperationFailed`: Parameter modification timed task operation failed.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidDBInstanceName.NotFound`: The database instance does not exist.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
///
pub fn modify_parameter_timed_schedule_task(
&self,
req: ModifyParameterTimedScheduleTask,
) -> impl std::future::Future<Output = crate::Result<ModifyParameterTimedScheduleTaskResponse>> + Send
{
self.call(req)
}
/// # 查询列加密算法配置
///
/// 查询指定实例的列加密算法配置信息。
///
/// ## 请求说明
/// - 在使用此接口前,请确保已在 DAS 安全中心 开通列加密服务。
/// - 如果在调用接口时收到错误信息ColumnEncryptionErrorCode.NOT_PURCHASED,请前往 DAS(数据库自治服务)安全中心 购买并开通列加密服务后再使用。
///
/// # Error Codes
/// - `%s`: DB Operation Failed:%s.
/// - `Connect.Timeout`: Service can not connect to instance temporarily.
/// - `SqlExcutionFailed`: Failed to connect to host: connection timed out.
/// - `DbossGeneralError`: The instance is being created. Please wait.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `ConcurrentLimit`: The request processing has been concurrent limit.
/// - `ColumnEncryptionErrorCode.NOT_PURCHASED`: The instance has not enabled the column encryption service.
/// - `IncorrectDBInstanceType`: Current DB instance engine and type does not support operations.
/// - `IncorrectEngineVersion`: The engine version does not support the operation.
/// - `DBSizeExceeded`: Exceeding the allowed DB size of DB instance.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidDBName.NotFound`: Specified one or more DB name does not exist or DB status does not support.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `NetworkOrSqlTimeoutError`: Failed to create login due to potential SQL Server overload or other issues that may cause the login creation fail. Please retry later.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn describe_db_instance_cls(
&self,
req: DescribeDBInstanceCLS,
) -> impl std::future::Future<Output = crate::Result<DescribeDBInstanceCLSResponse>> + Send
{
self.call(req)
}
/// # 修改列加密算法配置
///
/// 修改指定实例的列加密算法配置。
///
/// ## 请求说明
/// - 在使用此接口前,请确保已在 DAS 安全中心 开通列加密服务。
/// - 如果在调用接口时收到错误信息,请前往 DAS(数据库自治服务)安全中心 购买并开通列加密服务后再使用。
///
/// # Error Codes
/// - `%s`: DB Operation Failed:%s.
/// - `IncorrectDBCLSStatus`: Specified DB CLS status or CLS mode mode does not support this operation.
/// - `PermissionDenied`: The current account has not been authorized to allow RDS to access user's KMS services, authorization needs to be granted to this account.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `pay.noCreditCard`: Account not bound to credit card.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `noAvailablePaymentMethod`: No payment method is specified for your account. We recommend that you add a payment method.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `ColumnEncryptionErrorCode.NOT_PURCHASED`: The instance has not enabled the column encryption service.
/// - `IncorrectDBInstanceType`: Current DB instance type does not support this operation.
/// - `IncorrectEngineVersion`: Current engine version does not support operations.
/// - `IncorrectDBInstanceLockMode`: Current DB instance lock mode does not support this operation.
/// - `IncorrectDBInstanceState`: Current DB instance state does not support this operation.
/// - `DBSizeExceeded`: Exceeding the allowed DB size of DB instance.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `ByokRoleArnNotFound`: The roleArn can not be null.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidClusterKms`: this cluster not kms service.
/// - `InsufficientResourceCapacity`: There is insufficient capacity available for the requested instance.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn modify_db_instance_cls(
&self,
req: ModifyDBInstanceCLS,
) -> impl std::future::Future<Output = crate::Result<ModifyDBInstanceCLSResponse>> + Send {
self.call(req)
}
/// # 为Custom实例创建自定义镜像
///
/// 该接口用于为RDS Custom实例创建自定义镜像。
///
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS SQL Server
///
/// ### 相关功能文档
///
/// - [RDS Custom for MySQL简介](~~2844223~~)
/// - [RDS Custom for SQL Server简介](~~2864363~~)
///
/// ### 使用方法
///
/// - 方法一:通过**系统盘**产生的快照创建自定义镜像,传值时搭配SnapshotId和ImageName一起使用。
/// - 方法二:通过Custom实例创建自定义镜像,传值时搭配InstanceId和ImageName一起使用。
///
/// # Error Codes
/// - `InvalidInstanceId.NotFound`: InstanceId is invalid, not found.
/// - `InvalidParameter.ImageName`: The image name is null.
/// - `InvalidParameter.DuplicateImageName`: The image name is duplicated.
/// - `InvalidDBInstanceName.NotFound`: The database instance does not exist.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
///
pub fn create_rc_image(
&self,
req: CreateRCImage,
) -> impl std::future::Future<Output = crate::Result<CreateRCImageResponse>> + Send {
self.call(req)
}
/// # 修改实例向量存储开关
///
/// 打开或者关闭MySQL实例向量存储开关。
///
/// ### 适用引擎
///
/// - RDS MySQL
///
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
///
/// - [RDS MySQL向量存储](~~2998661~~)
///
/// # Error Codes
/// - `PendingActionOverdue`: the action execution time is already overdue
/// - `EngineMigration.ActionDisabled`: Specified action is disabled while custins is in engine migration.
/// - `Invalid.ParamGroupDBCategory`: ParamGroup category is basic, not standard.
/// - `InvalidEffectiveTime.SpecialTimeIsNull`: SpecialTime is not valid.
/// - `InvalidParameters.Format`: Specified parameters is not valid.
/// - `StorageEngine.NotSupported`: Current instance storage engine dose not support this operation.
/// - `InvalideStatus.Format`: The instance status does not support this operation.
/// - `SystemParamGroupCode.Format`: Specific DBParamGroupId is not valid.
/// - `Database.ConnectError`: Database connect error. please check instance status and database processlist
/// - `InvalidInstanceParameter`: Specified name for the instance parameter is not valid.
/// - `GroupReplicationNotSupport.InvalidParameters`: Group Replication limits parameters and does not support modification.
/// - `Order.ComboInstanceNotAllowOperate`: A package instance is not allowed to operate independently.
/// - `Price.PricingPlanResultNotFound`: Pricing plan price result not found.
/// - `Order.NoRealNameAuthentication`: You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
/// - `InsufficientAvailableQuota`: Your account quota limit is less than 0, please recharge before trying to purchase.
/// - `CommodityServiceCalling.Exception`: Failed to call commodity service.
/// - `RegionDissolvedEOM`: Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
/// - `Commodity.InvalidComponent`: The module you purchased is not legal, please buy it again.
/// - `RegionEndTimeDissolvedAustralia`: Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
/// - `Price.CommoditySys`: Commodity system call exception.
/// - `Pay.InsufficientBalance`: Insufficient available balance.
/// - `Order.PeriodInvalid`: There is a problem with the period you selected, please choose again.
/// - `Order.InstHasUnpaidOrder`: There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
/// - `BasicInfoUncompleted`: Your information is incomplete. Complete your information before the operation.
/// - `Risk.RiskControlRejection`: Your account is abnormal, please contact customer service for details.
/// - `Api.NotSupport`: Specified api is not supported.
/// - `ContainForbiddenLabelError`: There is a label that prohibits placing orders. Please contact your distributor for assistance.
/// - `InvalidDBInstanceId.NotFound`: The DBInstanceId provided does not exist in records.
/// - `InvalidInstanceLevel.DiskType`: Specified instance level not support request disk type
/// - `InvalidParam`: Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `KmsApiError`: User secret key invalid.
/// - `System.SaleValidateFailed`: Sales expression validation system error.
/// - `Abs.InvalidAccount.NotFound`: account is not found.
/// - `SqlExecuteFailedOrTimeout`: sql command execution failed or timed out:%s.
/// - `ColdData.EngineVersionNotSupport`: The current instance engine version not support coldDataEnabled.
/// - `ColdData.MinorVersionNotSupport`: The current instance minor version not support coldDataEnabled.
/// - `IncorrectTargetClasscode`: The current instance type does not support this operation.
/// - `InvalidConnectionString.Duplicate`: Specified connection string already exists in the RDS.
/// - `RequiredParam.NotFound`: Required input param is not found.
/// - `Parameters.Invalid`: Parameter error, please check the parameters.
/// - `BackupPolicyNotSupport`: Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
/// - `InvalidReleasedKeepPolicy.Format`: Specified Released Keep Policy is not valid.
/// - `InvalidDBInstanceEngineType.Format`: the DB instance engine type does not support this operation.
/// - `Pay.NoCreditCard`: No credit cards.
/// - `VpcNetworkTypeNotSupport`: The vpc network type instance does not support this operation.
/// - `MirrorInsExists`: Specified DB instance mirror ins already existed.
/// - `UnsupportedClassCode`: The specified DB instance class stops selling.
/// - `InvalidBackupSet`: The specified database does not exist in the backup set.
/// - `OrdTCommodityQueryError`: Failed to query for product.
/// - `ProductInstanceReleased`: The instance has been released. Please check before placing the order.
/// - `RegionEndTimeDissolvedIndia`: The region is no longer supported.
/// - `OperationDenied.XengineSwitch`: Current custins can not turn off xengine param.
/// - `InvalidParameterValue.Limit`: Parameter value exceeds limit.
/// - `IncorrectDBInstanceType`: The current database instance type does not support the operation.
/// - `IncorrectDBInstanceState`: The current database status does not support the operation.
/// - `Invalid.Parameter`: Specified parameters is not valid.
/// - `IncorrectEffectiveTime`: The specified EffectiveTime params is not valid.
/// - `GroupReplicationNotSupport.InvalidEngineVersion`: Group Replication requires the instance engine version to be 8.0.
/// - `GroupReplicationNotSupport.InvalidNodeClassCode`: Group Replication requires the ClassCode of each node to be consistent.
/// - `GroupReplicationNotSupport.InvalidNodeNum`: Group Replication is not supported, the number of nodes must be an odd number greater than or equal to 3.
/// - `GroupReplicationNotSupport.InvalidXengine`: Group Replication is not supported because the instance has xengine tables.
/// - `GroupReplicationNotSupport.MemoryTooSmall`: Group Replication is not supported because the memory is too small.
/// - `IncorrectMinorVersion`: Current engine minor version does not support operations.
/// - `GroupReplicationNotSupport.TableWithoutPrimaryKey`: Group Replication is not supported because the instance exists table has no primary key.
/// - `IncorrectDBInstance`: The current DB instance does not support this operation.
/// - `OrderStatus.UnPaid`: The specified db instance has unpaid order.
/// - `InvalidReduceDiskSize`: The storage capacity after the scale-down must be larger than the used amount.
/// - `CloudSSDNotSupport`: Cloud ssd does not support this operation, please upgrade to essd.
/// - `InvalidUserOperatorPermission`: The user permission does not support this operation.
/// - `InvalidVswitchId`: Specified conn vswitch id is not valid.
/// - `OperationDenied.ZoneResource`: There is no available zone for inventory.
/// - `NotInFlowController`: Sorry,no permission.
/// - `InvalidKmsKey`: Kms key is disabled.
/// - `InvalidInstanceLevel.Malformed`: Current DB instance level does not support this operation.
/// - `InvalidMySQLEngineVersionSupportVector`: Invalid MySQL Engine Version Support Vector.
/// - `ReadOnlyInstanceNotSupport`: Read-only instance does not support this operation.
/// - `IncorrectEngineVersion`: The engine version does not support the operation.
/// - `InvalidDBInstance.NotFound`: The specified instance does not exist or is not supported.
/// - `InvalidParam`: Sepcified wal_level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
/// - `InvalidClusterKms`: The current instance does not authorized to access the Key Management Service.
/// - `Request.NotFound`: The requested resource is not available.
/// - `HostInfo.NotFound`: The specified host info is not found.
/// - `InvalidDBInstanceName.NotFound`: The database instance does not exist.
/// - `IncorrectDBInstanceLockMode`: Current DB instance lock mode does not support this operation.
/// - `ExternalFailure`: The request processing has failed due to external service failure.
/// - `RequestMetaDataFailed`: The service request failed. Please try again later or contact service personnel.
/// - `InvokeProxyFailure`: The request processing has failed due to service failure of rds api.///
/// # Methods
/// - POST
/// - GET
///
pub fn modify_db_instance_vector_support_status(
&self,
req: ModifyDBInstanceVectorSupportStatus,
) -> impl std::future::Future<
Output = crate::Result<ModifyDBInstanceVectorSupportStatusResponse>,
> + Send {
self.call(req)
}
/// # 查询导入任务预检查详情
///
/// 查询导入任务预检查详情,会返回具体的预检查项和检查结果
///
/// 查询导入任务预检查详情
///
/// # Methods
/// - GET
/// - POST
///
pub fn describe_import_task_validation(
&self,
req: DescribeImportTaskValidation,
) -> impl std::future::Future<Output = crate::Result<DescribeImportTaskValidationResponse>> + Send
{
self.call(req)
}
/// # 查询导入任务详情
///
/// RDS原生复制实例,查询数据导入任务详情
///
/// 查询导入任务详情
///
/// # Methods
/// - GET
/// - POST
///
pub fn describe_import_task(
&self,
req: DescribeImportTask,
) -> impl std::future::Future<Output = crate::Result<DescribeImportTaskResponse>> + Send {
self.call(req)
}
/// # 创建数据导入任务
///
/// 创建数据导入任务
///
/// 创建数据导入任务,用于RDS MySQL原生复制实例数据导入
///
/// # Error Codes
/// - `INVALID_SOURCE_INSTANCE.RDS_CUSTOM`: Source RdsCustom instance is not valid to import, please check instance attributes.
/// - `InvalidParam`: %s.///
/// # Methods
/// - POST
/// - GET
///
pub fn create_import_task(
&self,
req: CreateImportTask,
) -> impl std::future::Future<Output = crate::Result<CreateImportTaskResponse>> + Send {
self.call(req)
}
/// # 数据导入任务预检查
///
/// RDS MySQL原生复制实例数据导入任务预检查
///
/// RDS MySQL原生复制实例数据导入任务预检查
///
/// # Error Codes
/// - `INVALID_SOURCE_INSTANCE.RDS_CUSTOM`: Source RdsCustom instance is not valid to import, please check instance attributes.///
/// # Methods
/// - GET
/// - POST
///
pub fn validate_import_task(
&self,
req: ValidateImportTask,
) -> impl std::future::Future<Output = crate::Result<ValidateImportTaskResponse>> + Send {
self.call(req)
}
/// # 列表查询数据导入任务
///
/// 列表查询原生复制数据导入任务。
///
/// 列表查询原生复制实例数据导入任务。
///
/// # Methods
/// - GET
/// - POST
///
pub fn list_import_tasks(
&self,
req: ListImportTasks,
) -> impl std::future::Future<Output = crate::Result<ListImportTasksResponse>> + Send {
self.call(req)
}
/// # 修改数据导入任务
///
/// 修改 RDS MySQL 原生复制实例数据导入任务
///
/// 修改RDS MySQL原生复制实例数据导入任务
///
/// # Error Codes
/// - `InvalideStatus.Format`: The instance status does not support this operation.///
/// # Methods
/// - POST
/// - GET
///
pub fn modify_import_task(
&self,
req: ModifyImportTask,
) -> impl std::future::Future<Output = crate::Result<ModifyImportTaskResponse>> + Send {
self.call(req)
}
/// # 修改块存储属性
///
/// 修改一个块存储设备的名称、描述、是否随实例释放、是否随磁盘删除其自动快照、是否启用自动快照策略、是否开启性能突发功能等。
///
/// 您可以调用DiskId参数修改一个块存储设备的名称、描述、是否随实例释放等属性
///
/// # Error Codes
/// - `InvalidRegionId.MalFormed`: The specified parameter RegionId is not valid.
/// - `InvalidDiskName.Malformed`: The specified disk name is wrongly formed.
/// - `NoAttributeToModify`: No attribute to be modified in this request.
/// - `IncompleteParamter`: Some fields can not be null in this request.
/// - `MissingParameter.DiskIdOrDiskIds`: Specified parameter DiskId or DiskIds is missing.
/// - `BurstingEnabledForDiskCategoryUnsupported`: The specified disk category does not support bursting enabled.
/// - `BurstingEnabledForMultiAttachDiskUnsupported`: The multi attach disk does not support bursting enabled.
/// - `BurstingEnabledForModifyingDiskUnsupported`: The modifying disk does not support bursting enabled.
/// - `InvalidBurstingEnabled.DiskSizeTooSmall`: The disk size must be greater than 3 GiB to enable burst.
/// - `QuotaExceed.Snapshot`: The snapshot quota exceeds.
/// - `DiskNotPortable`: The specified disk is not a portable disk.
/// - `IncorrectDiskStatus`: The operation is not supported in this status.
/// - `UserNotInTheWhiteList`: The user is not in disk white list.
/// - `DeleteWithInstance.Conflict`: Multi attach disk cannot be set to DeleteWithInstance attribute.
/// - `InvalidDiskId.NotFound`: The specified disk does not exist.
/// - `InvalidDescription.Malformed`: The specified description is wrongly formed.
/// - `InvalidInstanceId.NotFound`: Specified attached instance does not exist.///
/// # Methods
/// - POST
/// - GET
///
pub fn modify_rc_disk_attribute(
&self,
req: ModifyRCDiskAttribute,
) -> impl std::future::Future<Output = crate::Result<ModifyRCDiskAttributeResponse>> + Send
{
self.call(req)
}
}
/// 该接口用于变更RDS实例的计费方式。
///
/// Argument of [Connection::transform_db_instance_pay_type()], returns [TransformDBInstancePayTypeResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct TransformDBInstancePayType {
/// 用于保证请求的幂等性,防止重复提交请求。由客户端生成该参数值,要保证在不同请求间唯一,最大值不超过64个ASCII字符,且该参数值中不能包含非ASCII字符。
#[setters(generate = true, strip_option)]
client_token: Option<String>,
/// 实例ID。可调用DescribeDBInstances获取。
db_instance_id: String,
/// 指定购买时长。取值:
/// * 当参数**Period**为**Year**时,UsedTime取值为**1~5**。
/// * 当参数**Period**为**Month**时,UsedTime取值为**1~11**。
///
/// > 若**PayType**=**Prepaid**,需要传入该参数。
#[setters(generate = true, strip_option)]
used_time: Option<i32>,
/// 实例变更后的付费类型。取值:
/// * **Postpaid**:后付费(按量付费)
/// * **Prepaid**:预付费(包年包月)
pay_type: String,
/// 指定预付费实例为包年或者包月类型。取值:
/// * **Year**:包年
/// * **Month**:包月
///
/// > 若**PayType**=**Prepaid**,需要传入该参数。
#[setters(generate = true, strip_option)]
period: Option<String>,
/// 业务扩展参数。
#[setters(generate = true, strip_option)]
business_info: Option<String>,
/// 是否开启自动续费。取值:
///
/// * **true**:开启
/// * **false**:关闭
///
/// > * 该参数仅在按量付费转包年包月时生效。
/// > * 传入的所有非**true**字符串均会被处理为**false**。
#[setters(generate = true, strip_option)]
auto_renew: Option<String>,
/// 是否使用代金券抵扣费用,取值:
///
/// - **true**:使用
/// - **false**:不使用(默认值)
#[setters(generate = true, strip_option)]
auto_use_coupon: Option<bool>,
/// 优惠券code。
#[setters(generate = true, strip_option)]
promotion_code: Option<String>,
}
impl sealed::Bound for TransformDBInstancePayType {}
impl TransformDBInstancePayType {
pub fn new(db_instance_id: impl Into<String>, pay_type: impl Into<String>) -> Self {
Self {
client_token: None,
db_instance_id: db_instance_id.into(),
used_time: None,
pay_type: pay_type.into(),
period: None,
business_info: None,
auto_renew: None,
auto_use_coupon: None,
promotion_code: None,
}
}
}
impl crate::ToFormData for TransformDBInstancePayType {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for TransformDBInstancePayType {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "TransformDBInstancePayType";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<TransformDBInstancePayTypeResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(9);
if let Some(f) = &self.auto_renew {
params.push(("AutoRenew".into(), (f).into()));
}
if let Some(f) = &self.auto_use_coupon {
params.push(("AutoUseCoupon".into(), (f).into()));
}
if let Some(f) = &self.business_info {
params.push(("BusinessInfo".into(), (f).into()));
}
if let Some(f) = &self.client_token {
params.push(("ClientToken".into(), (f).into()));
}
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
params.push(("PayType".into(), (&self.pay_type).into()));
if let Some(f) = &self.period {
params.push(("Period".into(), (f).into()));
}
if let Some(f) = &self.promotion_code {
params.push(("PromotionCode".into(), (f).into()));
}
if let Some(f) = &self.used_time {
params.push(("UsedTime".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 将按量付费的数据库实例变更为包年包月计费模式。
///
/// Argument of [Connection::modify_db_instance_pay_type()], returns [ModifyDBInstancePayTypeResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct ModifyDBInstancePayType {
/// 目标实例ID。
db_instance_id: String,
/// 购买时长:
/// - 包年模式,即**Period**取值为**Year**时:取值为1~5。
/// - 包月模式,即**Period**取值为**Month**时:取值为1~11。
#[setters(generate = true, strip_option)]
used_time: Option<i32>,
/// 付费类型,固定配置为**Prepaid**,表示包年包月。
pay_type: String,
/// 包年包月的周期:
/// - **Year**:包年。
/// - **Month**:包月。
period: String,
}
impl sealed::Bound for ModifyDBInstancePayType {}
impl ModifyDBInstancePayType {
pub fn new(
db_instance_id: impl Into<String>,
pay_type: impl Into<String>,
period: impl Into<String>,
) -> Self {
Self {
db_instance_id: db_instance_id.into(),
used_time: None,
pay_type: pay_type.into(),
period: period.into(),
}
}
}
impl crate::ToFormData for ModifyDBInstancePayType {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for ModifyDBInstancePayType {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "ModifyDBInstancePayType";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<ModifyDBInstancePayTypeResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(4);
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
params.push(("PayType".into(), (&self.pay_type).into()));
params.push(("Period".into(), (&self.period).into()));
if let Some(f) = &self.used_time {
params.push(("UsedTime".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 修改云数据库RDS实例的自动续费配置。
///
/// Argument of [Connection::modify_instance_auto_renewal_attribute()], returns [ModifyInstanceAutoRenewalAttributeResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct ModifyInstanceAutoRenewalAttribute {
/// 地域ID。可调用[DescribeRegions](~~610399~~)获取。
region_id: String,
/// 幂等性令牌,由客户端生成(ASCII字符,最大长度64)。
#[setters(generate = true, strip_option)]
client_token: Option<String>,
/// 实例ID。
db_instance_id: String,
/// 续费周期(单位:月),取值:**1~12**。
/// >当**AutoRenew**=**True**时必须传入此参数。
#[setters(generate = true, strip_option)]
duration: Option<String>,
/// 开启或关闭自动续费。取值:
/// - **True**:开启。
/// - **False**:关闭。
#[setters(generate = true, strip_option)]
auto_renew: Option<String>,
}
impl sealed::Bound for ModifyInstanceAutoRenewalAttribute {}
impl ModifyInstanceAutoRenewalAttribute {
pub fn new(region_id: impl Into<String>, db_instance_id: impl Into<String>) -> Self {
Self {
region_id: region_id.into(),
client_token: None,
db_instance_id: db_instance_id.into(),
duration: None,
auto_renew: None,
}
}
}
impl crate::ToFormData for ModifyInstanceAutoRenewalAttribute {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for ModifyInstanceAutoRenewalAttribute {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "ModifyInstanceAutoRenewalAttribute";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<ModifyInstanceAutoRenewalAttributeResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(5);
if let Some(f) = &self.auto_renew {
params.push(("AutoRenew".into(), (f).into()));
}
if let Some(f) = &self.client_token {
params.push(("ClientToken".into(), (f).into()));
}
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
if let Some(f) = &self.duration {
params.push(("Duration".into(), (f).into()));
}
params.push(("RegionId".into(), (&self.region_id).into()));
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于查询RDS实例的价格信息。
///
/// Argument of [Connection::describe_price()], returns [DescribePriceResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DescribePrice {
/// 用于保证请求的幂等性,防止重复提交请求。由客户端生成该参数值,要保证在不同请求间唯一,最大值不超过64个ASCII字符,且该参数值中不能包含非ASCII字符。
#[setters(generate = true, strip_option)]
client_token: Option<String>,
/// 当前实例的商品码,取值:
///
/// * **bards**:主实例按量付费(中国站)
/// * **rds**(默认):主实例包年包月(中国站)
/// * **rords**:只读实例按量付费(中国站)
/// * **rds_rordspre_public_cn**:只读实例包年包月(中国站)
/// * **bards_intl**:主实例按量付费(国际站)
/// * **rds_intl**:主实例包年包月(国际站)
/// * **rords_intl**:只读实例按量付费(国际站)
/// * **rds_rordspre_public_intl**:只读实例包年包月(国际站)
///
/// >查询只读实例时必须传入本参数。
#[setters(generate = true, strip_option)]
commodity_code: Option<String>,
/// 地域ID。可调用DescribeRegions获取。
#[setters(generate = true, strip_option)]
region_id: Option<String>,
/// 数据库类型,取值:
/// * **MySQL**
/// * **SQLServer**
/// * **PostgreSQL**
/// * **MariaDB**
engine: String,
/// <props="china">数据库版本,取值:
/// - **MySQL**:**5.5**、**5.6**、**5.7**、**8.0**
/// - **SQL Server**:**08r2_ent_ha**(云盘版,已停售)、**2008r2**(高性能本地盘,已停售)、**2012**(企业版单机)、**2012_ent_ha**、**2012_std_ha**、**2012_web**、**2014_ent_ha**、**2014_std_ha**、**2016_ent_ha**、**2016_std_ha**、**2016_web**、**2017_ent**、**2017_std_ha**、**2017_web**、**2019_ent**、**2019_std_ha**、**2019_web**、**2022_ent**、**2022_std_ha**、**2022_web**
/// - **PostgreSQL**:**10.0**、**11.0**、**12.0**、**13.0**、**14.0**、**15.0**
/// - **MariaDB**:**10.3**</props>
///
///
///
/// <props="intl">数据库版本,取值:
/// - **MySQL**:**5.5**、**5.6**、**5.7**、**8.0**
/// - **SQL Server**:**08r2_ent_ha**(云盘版,已停售)、**2008r2**(高性能本地盘,已停售)、**2012**(企业版单机)、**2012_ent_ha**、**2012_std_ha**、**2012_web**、**2016_ent_ha**、**2016_std_ha**、**2016_web**、**2017_ent**、**2017_std_ha**、**2017_web**、**2019_ent**、**2019_std_ha**、**2019_web**、**2022_ent**、**2022_std_ha**、**2022_web**
/// - **PostgreSQL**:**10.0**、**11.0**、**12.0**、**13.0**、**14.0**、**15.0**
/// - **MariaDB**:**10.3**</props>
///
/// > SQL Server实例中`_ent`表示企业集群版、`_ent_ha`表示企业版、`_std_ha`表示标准版、`_web`表示Web版。
engine_version: String,
/// 实例规格,详情请参见[主实例规格表](~~26312~~)。
db_instance_class: String,
/// 实例存储空间,单位:GB。每5 GB进行递增,取值范围请参见[实例规格表](~~26312~~)。
db_instance_storage: i32,
/// 实例的付费类型,取值:
/// * **Prepaid**:预付费(包年包月)
/// * **Postpaid**:后付费(按量付费)
#[setters(generate = true, strip_option)]
pay_type: Option<String>,
/// 主节点可用区ID。可调用DescribeRegions获取。
///
/// >指定了VPC和交换机时,为匹配交换机对应的可用区,该参数必填。
#[setters(generate = true, strip_option)]
zone_id: Option<String>,
/// 指定购买时长,取值:
/// * 当参数**TimeType**为**Year**时,UsedTime取值为**1~100**。
/// * 当参数**TimeType**为**Month**时,UsedTime取值为**1~999**。
///
/// 默认值:**1**。
#[setters(generate = true, strip_option)]
used_time: Option<i32>,
/// 包年包月的付费类型,当**CommodityCode**参数的值为**rds**、**rds_rordspre_public_cn**、**rds_intl**或**rds_rordspre_public_intl**时必传。取值:
/// * **Year**:包年
/// * **Month**:包月
#[setters(generate = true, strip_option)]
time_type: Option<TimeType>,
/// 购买实例的数量,取值范围:**0~30**。
quantity: i32,
/// 实例类型,取值:
/// * **0**:主实例
/// * **3**:只读实例
#[setters(generate = true, strip_option)]
instance_used_type: Option<i32>,
/// 订单类型,取值:
/// * **BUY**:购买
/// * **RENEW**:续费
/// * **UPGRADE**:升级
/// * **DOWNGRADE**:降级
#[setters(generate = true, strip_option)]
order_type: Option<String>,
/// 实例存储类型,取值:
/// * **general_essd**:高性能云盘
/// * **local_ssd**:高性能本地盘
/// * **cloud_ssd**:SSD云盘
/// * **cloud_essd**:ESSD PL1云盘
/// * **cloud_essd2**:ESSD PL2云盘
/// * **cloud_essd3**:ESSD PL3云盘
#[setters(generate = true, strip_option)]
db_instance_storage_type: Option<String>,
/// 变配或续费的实例ID。
/// > - 需要查询实例变配或续费价格时需要传入该参数。
/// > - 如果为只读实例,则需要传入其主实例的ID。
#[setters(generate = true, strip_option)]
db_instance_id: Option<String>,
/// 节点相关信息。
/// > 该参数用于MySQL集群系列实例。
#[setters(generate = true, strip_option)]
db_node: Option<Vec<PriceDBNode>>,
/// RDS Serverless实例的相关设置。
/// >MariaDB不支持Serverless实例。
#[setters(generate = true, strip_option)]
serverless_config: Option<PriceServerlessConfig>,
}
impl sealed::Bound for DescribePrice {}
impl DescribePrice {
pub fn new(
engine: impl Into<String>,
engine_version: impl Into<String>,
db_instance_class: impl Into<String>,
db_instance_storage: impl Into<i32>,
quantity: impl Into<i32>,
) -> Self {
Self {
client_token: None,
commodity_code: None,
region_id: None,
engine: engine.into(),
engine_version: engine_version.into(),
db_instance_class: db_instance_class.into(),
db_instance_storage: db_instance_storage.into(),
pay_type: None,
zone_id: None,
used_time: None,
time_type: None,
quantity: quantity.into(),
instance_used_type: None,
order_type: None,
db_instance_storage_type: None,
db_instance_id: None,
db_node: None,
serverless_config: None,
}
}
}
impl crate::ToFormData for DescribePrice {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DescribePrice {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DescribePrice";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DescribePriceResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(18);
if let Some(f) = &self.client_token {
params.push(("ClientToken".into(), (f).into()));
}
if let Some(f) = &self.commodity_code {
params.push(("CommodityCode".into(), (f).into()));
}
params.push(("DBInstanceClass".into(), (&self.db_instance_class).into()));
if let Some(f) = &self.db_instance_id {
params.push(("DBInstanceId".into(), (f).into()));
}
params.push((
"DBInstanceStorage".into(),
(&self.db_instance_storage).into(),
));
if let Some(f) = &self.db_instance_storage_type {
params.push(("DBInstanceStorageType".into(), (f).into()));
}
if let Some(f) = &self.db_node {
if let Ok(json) = serde_json::to_string(f) {
params.push(("DBNode".into(), json.into()));
}
}
params.push(("Engine".into(), (&self.engine).into()));
params.push(("EngineVersion".into(), (&self.engine_version).into()));
if let Some(f) = &self.instance_used_type {
params.push(("InstanceUsedType".into(), (f).into()));
}
if let Some(f) = &self.order_type {
params.push(("OrderType".into(), (f).into()));
}
if let Some(f) = &self.pay_type {
params.push(("PayType".into(), (f).into()));
}
params.push(("Quantity".into(), (&self.quantity).into()));
if let Some(f) = &self.region_id {
params.push(("RegionId".into(), (f).into()));
}
if let Some(f) = &self.serverless_config {
if let Ok(json) = serde_json::to_string(f) {
params.push(("ServerlessConfig".into(), json.into()));
}
}
if let Some(f) = &self.time_type {
params.push(("TimeType".into(), (f).into()));
}
if let Some(f) = &self.used_time {
params.push(("UsedTime".into(), (f).into()));
}
if let Some(f) = &self.zone_id {
params.push(("ZoneId".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于查询包年包月RDS实例续费的费用。
///
/// Argument of [Connection::describe_renewal_price()], returns [DescribeRenewalPriceResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DescribeRenewalPrice {
/// 用于保证请求的幂等性。
#[setters(generate = true, strip_option)]
client_token: Option<String>,
/// 实例ID。可调用DescribeDBInstances获取。
db_instance_id: String,
/// 地域ID。可调用DescribeRegions获取。
#[setters(generate = true, strip_option)]
region_id: Option<String>,
/// 实例的付费类型。取值:
///
/// * **Postpaid**:后付费(按量付费)
/// * **Prepaid**:预付费(包年包月)
#[setters(generate = true, strip_option)]
pay_type: Option<String>,
/// 实例规格。规格详情请参见[主实例规格表](~~26312~~)。默认为实例当前规格。
#[setters(generate = true, strip_option)]
db_instance_class: Option<String>,
/// 实例购买时长,取值:
///
/// * 当参数**TimeType**=**Year**时,取值为 **1~3**。
/// * 当参数**TimeType**=**Month**时,取值为 **1~9**。
used_time: i32,
/// 实例包年包月的类型,取值:
///
/// * **Year**:包年
/// * **Month**:包月
time_type: String,
/// 实例个数,默认值:**1**。
#[setters(generate = true, strip_option)]
quantity: Option<i32>,
/// 订单类型。仅唯一取值:**BUY**。
#[setters(generate = true, strip_option)]
order_type: Option<String>,
/// 业务扩展参数。
#[setters(generate = true, strip_option)]
business_info: Option<String>,
/// 资源组ID。可调用DescribeDBInstanceAttribute接口获取。
#[setters(generate = true, strip_option)]
resource_group_id: Option<String>,
}
impl sealed::Bound for DescribeRenewalPrice {}
impl DescribeRenewalPrice {
pub fn new(
db_instance_id: impl Into<String>,
used_time: impl Into<i32>,
time_type: impl Into<String>,
) -> Self {
Self {
client_token: None,
db_instance_id: db_instance_id.into(),
region_id: None,
pay_type: None,
db_instance_class: None,
used_time: used_time.into(),
time_type: time_type.into(),
quantity: None,
order_type: None,
business_info: None,
resource_group_id: None,
}
}
}
impl crate::ToFormData for DescribeRenewalPrice {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DescribeRenewalPrice {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DescribeRenewalPrice";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DescribeRenewalPriceResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(11);
if let Some(f) = &self.business_info {
params.push(("BusinessInfo".into(), (f).into()));
}
if let Some(f) = &self.client_token {
params.push(("ClientToken".into(), (f).into()));
}
if let Some(f) = &self.db_instance_class {
params.push(("DBInstanceClass".into(), (f).into()));
}
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
if let Some(f) = &self.order_type {
params.push(("OrderType".into(), (f).into()));
}
if let Some(f) = &self.pay_type {
params.push(("PayType".into(), (f).into()));
}
if let Some(f) = &self.quantity {
params.push(("Quantity".into(), (f).into()));
}
if let Some(f) = &self.region_id {
params.push(("RegionId".into(), (f).into()));
}
if let Some(f) = &self.resource_group_id {
params.push(("ResourceGroupId".into(), (f).into()));
}
params.push(("TimeType".into(), (&self.time_type).into()));
params.push(("UsedTime".into(), (&self.used_time).into()));
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于查询RDS实例自动续费情况。
///
/// Argument of [Connection::describe_instance_auto_renewal_attribute()], returns [DescribeInstanceAutoRenewalAttributeResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DescribeInstanceAutoRenewalAttribute {
/// 用于保证请求的幂等性,防止重复提交请求。由客户端生成该参数值,要保证在不同请求间唯一,最大值不超过64个ASCII字符,且该参数值中不能包含非ASCII字符。
#[setters(generate = true, strip_option)]
client_token: Option<String>,
/// 预留参数,无需配置。
#[setters(generate = true, strip_option)]
proxy_id: Option<String>,
/// 地域ID。可调用DescribeRegions获取。
region_id: String,
/// 实例ID。可调用DescribeDBInstances获取。
#[setters(generate = true, strip_option)]
db_instance_id: Option<String>,
/// 每页记录数,取值:
/// * **30**(默认)
/// * **50**
/// * **100**
#[setters(generate = true, strip_option)]
page_size: Option<i32>,
/// 当前页数。
#[setters(generate = true, strip_option)]
page_number: Option<i32>,
}
impl sealed::Bound for DescribeInstanceAutoRenewalAttribute {}
impl DescribeInstanceAutoRenewalAttribute {
pub fn new(region_id: impl Into<String>) -> Self {
Self {
client_token: None,
proxy_id: None,
region_id: region_id.into(),
db_instance_id: None,
page_size: None,
page_number: None,
}
}
}
impl crate::ToFormData for DescribeInstanceAutoRenewalAttribute {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DescribeInstanceAutoRenewalAttribute {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DescribeInstanceAutoRenewalAttribute";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DescribeInstanceAutoRenewalAttributeResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(6);
if let Some(f) = &self.client_token {
params.push(("ClientToken".into(), (f).into()));
}
if let Some(f) = &self.db_instance_id {
params.push(("DBInstanceId".into(), (f).into()));
}
if let Some(f) = &self.page_number {
params.push(("PageNumber".into(), (f).into()));
}
if let Some(f) = &self.page_size {
params.push(("PageSize".into(), (f).into()));
}
params.push(("RegionId".into(), (&self.region_id).into()));
if let Some(f) = &self.proxy_id {
params.push(("proxyId".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 为包年包月RDS实例手动续费。
///
/// Argument of [Connection::renew_instance()], returns [RenewInstanceResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct RenewInstance {
/// 幂等性令牌,由客户端生成(ASCII字符,最大长度64)。
#[setters(generate = true, strip_option)]
client_token: Option<String>,
/// 实例ID。可调用DescribeDBInstances获取。
db_instance_id: String,
/// 续费时长,单位:月。取值:
/// - **1~9**(连续整数)
/// - **12**
/// - **24**
/// - **36**
/// - **48**
/// - **60**
period: i32,
/// 续费时是否自动付费。取值:
/// * **True**:自动付费。请确保账号有足够的余额。
/// * **False**(默认):控制台手动付费。
///
/// > 控制台手动续费,请参见:
/// > * [RDS MySQL手动续费](~~96050~~)
/// > * [RDS PostgreSQL手动续费](~~96741~~)
/// > * [RDS SQL Server手动续费](~~95637~~)
/// > * [RDS MariaDB手动续费](~~97122~~)
#[setters(generate = true, strip_option)]
auto_pay: Option<String>,
/// 实例是否自动续费,取值:
///
/// * **true**:是。
/// * **false**(默认):否。
#[setters(generate = true, strip_option)]
auto_renew: Option<String>,
/// 是否使用代金券,取值:
/// * **true**:使用代金券。
/// * **false**(默认):不使用代金券。
#[setters(generate = true, strip_option)]
auto_use_coupon: Option<bool>,
/// 代金券code。
///
/// > **AutoUseCoupon**参数取值为**true**(使用代金券)时必填。
#[setters(generate = true, strip_option)]
promotion_code: Option<String>,
}
impl sealed::Bound for RenewInstance {}
impl RenewInstance {
pub fn new(db_instance_id: impl Into<String>, period: impl Into<i32>) -> Self {
Self {
client_token: None,
db_instance_id: db_instance_id.into(),
period: period.into(),
auto_pay: None,
auto_renew: None,
auto_use_coupon: None,
promotion_code: None,
}
}
}
impl crate::ToFormData for RenewInstance {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for RenewInstance {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "RenewInstance";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<RenewInstanceResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(7);
if let Some(f) = &self.auto_pay {
params.push(("AutoPay".into(), (f).into()));
}
if let Some(f) = &self.auto_renew {
params.push(("AutoRenew".into(), (f).into()));
}
if let Some(f) = &self.auto_use_coupon {
params.push(("AutoUseCoupon".into(), (f).into()));
}
if let Some(f) = &self.client_token {
params.push(("ClientToken".into(), (f).into()));
}
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
params.push(("Period".into(), (&self.period).into()));
if let Some(f) = &self.promotion_code {
params.push(("PromotionCode".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口已停止维护:可以正常调用,但不再维护。
///
/// Argument of [Connection::describe_db_instance_promote_activity()], returns [DescribeDBInstancePromoteActivityResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DescribeDBInstancePromoteActivity {
/// 实例ID。
db_instance_name: String,
/// 当前阿里云主账号的ID。
ali_uid: String,
/// 资源组ID。
#[setters(generate = true, strip_option)]
resource_group_id: Option<String>,
}
impl sealed::Bound for DescribeDBInstancePromoteActivity {}
impl DescribeDBInstancePromoteActivity {
pub fn new(db_instance_name: impl Into<String>, ali_uid: impl Into<String>) -> Self {
Self {
db_instance_name: db_instance_name.into(),
ali_uid: ali_uid.into(),
resource_group_id: None,
}
}
}
impl crate::ToFormData for DescribeDBInstancePromoteActivity {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DescribeDBInstancePromoteActivity {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DescribeDBInstancePromoteActivity";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DescribeDBInstancePromoteActivityResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(3);
params.push(("AliUid".into(), (&self.ali_uid).into()));
params.push(("DbInstanceName".into(), (&self.db_instance_name).into()));
if let Some(f) = &self.resource_group_id {
params.push(("ResourceGroupId".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于创建RDS实例。
///
/// Argument of [Connection::create_db_instance()], returns [CreateDBInstanceResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct CreateDBInstance {
/// 地域ID。可调用[DescribeRegions](~~610399~~)获取。
region_id: String,
/// 数据库类型。取值:
/// * **MySQL**
/// * **SQLServer**
/// * **PostgreSQL**
/// * **MariaDB**
engine: String,
/// 数据库版本。取值:
/// * 常规实例
/// * MySQL:**5.5**、**5.6**、**5.7**、**8.0**
/// * SQL Server:**08r2_ent_ha**(云盘版,已停售)、**2008r2**(高性能本地盘,已停售)、**2012**(企业版单机)、**2012_ent_ha**、**2012_std_ha**、**2012_web**、**2014_ent_ha**、**2014_std_ha**、**2016_ent_ha**、**2016_std_ha**、**2016_web**、**2017_ent**、**2017_std_ha**、**2017_web**、**2019_ent**、**2019_std_ha**、**2019_web**、**2022_ent**、**2022_std_ha**、**2022_web**
/// * PostgreSQL:**10.0**、**11.0**、**12.0**、**13.0**、**14.0**、**15.0**、**16.0**、**17.0**、**18.0**
/// * MariaDB:**10.3**、**10.6**
/// * Serverless实例
/// * MySQL:**5.7**、**8.0**
/// * SQL Server:**2016\_std\_sl**、**2017\_std\_sl**、**2019\_std\_sl**
/// * PostgreSQL:**14.0**、**15.0**、**16.0**、**17.0**、**18.0**
///
/// > - MariaDB不支持创建Serverless实例。
/// > - SQL Server实例中`_ent`表示企业集群版、`_ent_ha`表示企业版、`_std_ha`表示标准版、`_web`表示Web版。
/// > - SQL Server 2014版本实例国际站不支持售卖。
/// > - Babelfish for RDS PostgreSQL实例只支持大版本15.0。
engine_version: String,
/// 实例规格。可以指定标准版或倚天版规格,详情请参见[主实例规格表](~~26312~~)。
///
/// 如需创建Serverless实例,请传入如下取值:
///
/// - MySQL基础系列:**mysql.n2.serverless.1c**
/// - MySQL高可用系列:**mysql.n2.serverless.2c**
/// - SQL Server:**mssql.mem2.serverless.s2**
/// - PostgreSQL基础系列:**pg.n2.serverless.1c**
/// - PostgreSQL高可用系列:**pg.n2.serverless.2c**
db_instance_class: String,
/// 实例存储空间,单位为GB。每5 GB进行递增,取值范围请参见[实例规格表](~~26312~~)。
db_instance_storage: i32,
/// 弃用参数,无需配置。
#[setters(generate = true, strip_option)]
system_db_charset: Option<String>,
/// 实例的网络连接类型。固定配置**Intranet**,表示内网连接。
db_instance_net_type: String,
/// 实例名称。长度为2~255个字符。以中文、英文字母开头,可以包含数字、中文、英文、短横线(-)。
/// >不能以 http:// 和 https:// 开头。
#[setters(generate = true, strip_option)]
db_instance_description: Option<String>,
/// 该实例的[IP白名单](~~43185~~)。多条记录请以半角逗号(,)隔开,不可重复,单个实例最多添加1000个IP地址或IP段。支持如下两种格式:
/// * IP地址形式,例如:10.10.XX.XX。
/// * CIDR形式,例如:10.10.XX.XX/24(无类域间路由,24表示了地址中前缀的长度,范围为1~32)。
security_ip_list: String,
/// 用于保证请求的幂等性,防止重复提交请求。由客户端生成该参数值,要保证在不同请求间唯一,最大值不超过64个ASCII字符,且该参数值中不能包含非ASCII字符。
#[setters(generate = true, strip_option)]
client_token: Option<String>,
/// 实例的付费类型,取值:
/// - **Postpaid**:后付费(按量付费)。
/// - **Prepaid**:预付费(包年包月)。
/// - **Serverless**:Serverless付费类型,不支持MariaDB实例。更多信息,请参见[MySQL Serverless实例简介](~~411291~~)、[SQL Server Serverless实例简介](~~604344~~)、[PostgreSQL Serverless实例简介](~~607742~~)。
/// >系统会自动生成订单并自动完成支付,无需手动确认支付。
pay_type: String,
/// 主节点可用区ID。
///
/// - 指定了VPC和交换机时,此处必须传入目标交换机所在的可用区ID,否则无法创建成功。
/// - 对于高可用系列实例,还需传入**ZoneIdSlave1**,以此决定实例是单可用区部署还是多可用区部署。
/// - 对于三节点企业系列实例,还需传入**ZoneIdSlave1**和**ZoneIdSlave2**,以此决定实例是单可用区部署还是多可用区部署。
/// - 对于RDS集群系列实例,两节点还需要传入**ZoneIdSlave1**,三节点还需要传入**ZoneIdSlave1**和**ZoneIdSlave2**。
#[setters(generate = true, strip_option)]
zone_id: Option<String>,
/// 备节点可用区ID。
///
/// - 如果填写**Auto**,则表示多可用区部署并且会自动为备节点选择可用区。
/// - 如果和**ZoneId**相同,则为单可用区部署。
/// - 如果和**ZoneId**不同,则为多可用区部署。
#[setters(generate = true, strip_option)]
zone_id_slave1: Option<String>,
/// RDS MySQL集群系列实例支持在新建实例时,同时创建1~2个备节点。有此需求时,您可通过本参数指定第2个备节点的可用区。
#[setters(generate = true, strip_option)]
zone_id_slave2: Option<String>,
/// 实例的网络类型。取值:
///
/// * **VPC**:专有网络。
/// * **Classic**:经典网络。
///
/// > * MySQL云盘实例只支持专有网络,此参数必须配置为**VPC**。
/// > * PostgreSQL和MariaDB实例只支持专有网络,此参数必须配置为**VPC**。
/// > * SQL Server单机版和Web版实例支持经典网络和专有网络。其余实例只支持专有网络,此参数必须配置为**VPC**。
#[setters(generate = true, strip_option)]
instance_network_type: Option<String>,
/// 实例的访问模式。取值:
/// * **Standard**:标准访问模式。
/// * **Safe**:数据库代理模式。
///
/// 默认为RDS系统分配。
/// > SQL Server 2012、2016、2017只支持标准访问模式。
#[setters(generate = true, strip_option)]
connection_mode: Option<String>,
/// 专有网络(VPC) ID。
/// >网络类型**InstanceNetworkType**取值为**VPC**时生效。
#[setters(generate = true, strip_option)]
vpc_id: Option<String>,
/// 虚拟交换机ID。
///
/// - **可用区对应关系**:VSwitchId所在的可用区必须与主节点可用区(ZoneId)和备节点可用区(ZoneIdSlave1)相对应;且填写了两个交换机ID时,其顺序需分别与ZoneId和ZoneSlaveId1的顺序一致。
/// - **网络类型限制**:网络类型**InstanceNetworkType**必须为**VPC**。
/// - **多交换机填写要求**:若您填写了**ZoneSlaveId1**(备节点可用区ID),并且不为**Auto**,此处需填写两个交换机ID,并使用半角逗号(,)隔开。
/// - **字符限制**:VSwitchId中不能包含`空格`、`!`、`#`、`¥`、`&`、`%`等特殊字符。
#[setters(generate = true, strip_option)]
v_switch_id: Option<String>,
/// 设置实例的内网IP。需要在指定交换机的IP地址范围内。系统默认通过**VPCId**和**vSwitchId**自动分配。
#[setters(generate = true, strip_option)]
private_ip_address: Option<String>,
/// 指定购买时长。取值:
/// * 当参数**Period**=**Year**时,**UsedTime**取值为**1~5**。
/// * 当参数**Period**=**Month**时,**UsedTime**取值为**1~11**。
///
/// > 若付费类型为**Prepaid**则该参数必须传入。
#[setters(generate = true, strip_option)]
used_time: Option<String>,
/// 指定预付费实例为包年或者包月类型。取值:
/// * **Year**:包年。
/// * **Month**:包月。
///
/// > 若付费类型为**Prepaid**则该参数必须传入。
#[setters(generate = true, strip_option)]
period: Option<CreateDBInstancePeriod>,
/// 资源组ID。
#[setters(generate = true, strip_option)]
resource_group_id: Option<String>,
/// 实例存储类型。取值:
/// * **local_ssd**:高性能本地盘(推荐)。
/// * **general_essd**:高性能云盘(推荐)。
/// * **cloud_essd**:ESSD PL1云盘。
/// * **cloud_essd2**:ESSD PL2云盘。
/// * **cloud_essd3**:ESSD PL3云盘。
/// * **cloud_ssd**:SSD云盘(不推荐,部分地域已经停止售卖)。
///
/// 本参数的默认值根据**DBInstanceClass**参数中传的规格代码自动判断:
/// * 规格代码为高性能本地盘规格:默认值为**local_ssd**。
/// * 规格代码为云盘规格:默认值为**cloud_essd**。
///
/// > Serverless实例仅支持ESSD PL1云盘和高性能云盘。
#[setters(generate = true, strip_option)]
db_instance_storage_type: Option<String>,
/// 业务扩展参数。
#[setters(generate = true, strip_option)]
business_info: Option<String>,
/// 同地域内的云盘加密的密钥ID。传入此参数表示开启云盘加密(开启后无法关闭),并且需要传入**RoleARN**。
///
/// 您可以在密钥管理服务控制台查看密钥ID,也可以创建新的密钥。详情请参见[创建密钥](~~181610~~)。
///
/// > - 对于RDS MySQL、RDS PostgreSQL和RDS SQL Server可不传此参数,仅需要传入**RoleARN**即可使用服务密钥创建云盘加密实例。
/// > - 支持RAM授权允许子账号创建实例时必须开启云盘加密,若不开启云盘加密,则不允许创建实例,RAM子账号授权配置如下:
/// `{"Version":"1","Statement":[{"Effect":"Deny","Action":"rds:CreateDBInstance","Resource":"*","Condition":{"StringEquals":{"rds:DiskEncryptionRequired":"false"}}}]}`
/// ><warning>此配置也会同步影响控制台创建实例CreateOrder接口。></warning>
#[setters(generate = true, strip_option)]
encryption_key: Option<String>,
/// 主账号授权RDS云服务账号访问KMS权限的全局资源描述符(ARN)。您可以通过CheckCloudResourceAuthorized接口查看ARN信息。
/// ><notice>开启云盘加密时,必须传入**RoleARN**。></notice>
#[setters(generate = true, strip_option)]
role_arn: Option<String>,
/// 实例是否自动续费,仅在创建包年包月实例时传入。取值:
/// - **true**
/// - **false**
///
/// > - 按月购买时,自动续费周期为1个月。
/// > - 按年购买时,自动续费周期为1年。
#[setters(generate = true, strip_option)]
auto_renew: Option<String>,
/// 实例系列。取值:
/// * 常规实例
/// * **Basic**:基础系列。
/// * **HighAvailability**:高可用系列。
/// * **cluster**:MySQL或PostgreSQL集群系列。
/// * **AlwaysOn**:SQL Server集群系列。
/// * **Finance**:三节点企业系列。
/// > 创建SQL Server企业集群版<props="china">、基础系列标准版</props>和基础系列企业版时,该参数必填。例如: 创建基础系列的2022企业集群版(2022_ent)时,该参数必须传入Basic。
/// * Serverless实例
/// * **serverless_basic**:Serverless基础系列。(仅适用MySQL和PostgreSQL)
/// * **serverless_standard**:Serverless高可用系列。(仅适用MySQL和PostgreSQL)
/// * **serverless_ha**:SQL Server Serverless高可用系列。
///
/// > 当PayType=Serverless时,该参数必填。
#[setters(generate = true, strip_option)]
category: Option<String>,
/// 专属集群主机组ID。
///
/// 在专属集群内创建RDS实例时需要指定。
///
/// - 您可以调用DescribeDedicatedHostGroups接口查询RDS主机组信息。
/// - 如您还未创建RDS主机组,可以调用CreateDedicatedHostGroup接口创建。
#[setters(generate = true, strip_option)]
dedicated_host_group_id: Option<String>,
/// 专属集群中主实例的主机ID。
///
/// 在专属集群内创建RDS实例时需要指定。如不指定该参数,系统默认自动分配主机。
///
/// - 您可以调用DescribeDedicatedHosts接口查询RDS主机组内的主机信息。
/// - 如您还没有主机,可以调用CreateDedicatedHost接口添加。
#[setters(generate = true, strip_option)]
target_dedicated_host_id_for_master: Option<String>,
/// 专属集群中备实例的主机ID。
///
/// 在专属集群内创建RDS高可用系列或三节点企业系列实例时需要指定。如不指定该参数,系统默认自动分配主机。
///
/// - 您可以调用DescribeDedicatedHosts接口查询RDS专属集群内的主机信息。
/// - 如您还没有主机,可以调用CreateDedicatedHost接口添加。
#[setters(generate = true, strip_option)]
target_dedicated_host_id_for_slave: Option<String>,
/// 专属集群中日志实例的主机ID。
///
/// 在专属集群内创建RDS三节点企业系列实例时需要指定。如不指定该参数,系统默认自动分配主机。
///
/// - 您可以调用DescribeDedicatedHosts接口查询RDS专属集群内的主机信息。
/// - 如您还没有主机,可以调用CreateDedicatedHost接口添加。
#[setters(generate = true, strip_option)]
target_dedicated_host_id_for_log: Option<String>,
/// 参数模板ID。可调用DescribeParameterGroups查询。
/// > 仅MySQL和PostgreSQL支持此参数,如不配置,将采用系统默认参数模板,您也可以自定义参数模板后,在此处使用。
#[setters(generate = true, strip_option)]
db_param_group_id: Option<String>,
/// 设置实例的时区,仅在**Engine**为**MySQL**或**PostgreSQL**时生效。
///
/// - **Engine**为**MySQL**:
/// - 此参数配置UTC时区。取值范围为**-12:59** ~ **+13:00**。
/// - 高性能本地盘实例可以使用命名时区,例如Asia/Hong_Kong。命名时区的详细信息,请参见[命名时区参考](~~297356~~)。
/// - **Engine**为**PostgreSQL**:
/// - 此参数配置命名时区,不支持UTC时区。命名时区的详细信息,请参见[命名时区参考](~~297356~~)。
/// - 仅当实例为PostgreSQL云盘时,该参数可配置。
///
/// > - 购买主实例时支持设置时区,只读实例不支持设置时区,只读实例将继承主实例时区。
/// > - 如果不配置此参数,系统将根据您购买实例的地域,选择默认时区。
#[setters(generate = true, strip_option)]
db_time_zone: Option<String>,
/// 表名是否区分大小写。取值:
/// * **true**:不区分大小写(默认)。
/// * **false**:区分大小写。
#[setters(generate = true, strip_option)]
db_is_ignore_case: Option<String>,
/// 指定创建的RDS实例的内核小版本,仅在创建MySQL或PostgreSQL实例时需要传入。
/// 格式:
/// * MySQL:`<实例版本>_<数字版本号>`。例如`rds_20200229`、`xcluster_20200229`或`xcluster80_20200229`。说明如下:
/// * rds:高可用系列或基础系列。
/// * xcluster:MySQL 5.7三节点企业系列。
/// * xcluster80:MySQL 8.0三节点企业系列。
///
/// > 数字版本号可通过调用DescribeDBMiniEngineVersions接口查询。各版本差异,请参见[AliSQL 小版本Release Notes](~~96060~~)。
/// * PostgreSQL:`rds_postgres_<大版本>00_<小版本号>`。例如`rds_postgres_1400_20220830`。说明如下:
/// * 1400:PostgreSQL大版本为14。
/// * 20220830:AliPG内核小版本,可通过调用DescribeDBMiniEngineVersions接口查询。各版本差异,请参见[PostgreSQL 小版本Release Notes](~~126002~~)。
///
/// > 如果**BabelfishConfig**中配置了启用Babelfish,则RDS PostgreSQL实例小版本格式为:`rds_postgres_大版本00_AliPG内核小版本_babelfish`。
#[setters(generate = true, strip_option)]
target_minor_version: Option<String>,
/// 存储空间自动扩容开关,仅MySQL和PostgreSQL支持。取值:
/// * **Enable**:开启。
/// * **Disable**:关闭(默认)。
///
/// >您也可以在实例创建完成之后,调用ModifyDasInstanceConfig进行调整。更多信息,请参见[设置存储空间自动扩容](~~173826~~)。
#[setters(generate = true, strip_option)]
storage_auto_scale: Option<InstanceStorageAutoScale>,
/// 存储空间自动扩容触发阈值(百分比)。取值:
/// * **10**
/// * **20**
/// * **30**
/// * **40**
/// * **50**
///
/// >**StorageAutoScale**为**Enable**时该参数必填。
#[setters(generate = true, strip_option)]
storage_threshold: Option<i32>,
/// 存储空间自动扩容的总存储空间上限值,即自动扩容不会导致实例总存储空间超过该值。单位:GB。
///
/// > - 取值需大于等于0。
/// > - **StorageAutoScale**为**Enable**时必填。
#[setters(generate = true, strip_option)]
storage_upper_bound: Option<i32>,
/// 是否对本次创建实例的操作执行预检查。取值:
/// * **true**:执行预检查操作,不创建实例。检查项目包含请求参数、请求格式、业务限制和库存等。
/// * **false**:发送正常请求,通过检查后直接创建实例(默认)。
#[setters(generate = true, strip_option)]
dry_run: Option<bool>,
/// 用户备份ID。可调用ListUserBackupFiles接口查询。传入该参数,可基于用户备份创建实例。
///
/// 如需传入此参数,有如下限制:
/// - **PayType**参数必须为**Postpaid**。
/// - **Engine**参数必须为**MySQL**。
/// - **EngineVersion**参数必须为**5.7**。
/// - **Category**参数必须为**Basic**。
#[setters(generate = true, strip_option)]
user_backup_id: Option<String>,
/// 指定需要创建的RDS MySQL实例数量。本参数仅适用于批量创建RDS MySQL实例。
///
/// 取值范围:**1**~**20**;默认值:**1**。
///
/// > - 创建多个RDS MySQL实例时,可以考虑通过**Tag.Key**和**Tag.Value**参数给同一批次的实例打上标签,以方便创建完成后通过标签管理该批次的实例。
/// > - 完成多个RDS MySQL实例的创建后,接口只会返回**TaskId**、**RequestId**和**Message**参数,不会返回其他详情参数。如需查询个体实例的详情,可调用DescribeDBInstanceAttribute接口。
/// > - **engine**参数非**MySQL**,而本参数的值大于**1**时,接口会调用失败并返回错误码`InvalidParam.Engine`。
#[setters(generate = true, strip_option)]
amount: Option<i32>,
/// 批量创建实例策略。本参数仅在**Amount**参数大于1时生效,取值:
/// * **Atomicity**(默认值):原子性。即同一批次的实例要么全部创建成功,若有一个创建失败,则所有实例创建失败。
/// * **Partial**:非原子性。即实例的创建不受同一批次中其他实例的影响。
#[setters(generate = true, strip_option)]
create_strategy: Option<String>,
/// 标签列表。
#[setters(generate = true, strip_option)]
tag: Option<Vec<BInstanceTag>>,
/// 是否开启RDS释放保护功能,仅按量付费实例支持。取值:
/// * **true**:开启。
/// * **false**:关闭(默认)。
#[setters(generate = true, strip_option)]
deletion_protection: Option<bool>,
/// Babelfish for RDS PostgreSQL配置信息。
///
/// 配置格式:{"babelfishEnabled":"true","migrationMode":"xxxxxxx","masterUsername":"xxxxxxx","masterUserPassword":"xxxxxxxx"}
///
/// 参数含义如下:
/// - **babelfishEnabled**:是否开启Babelfish,开启为**true**,该参数不配置默认不开启。
/// - **migrationMode**:数据库模式,单数据库模式配置为**single-db**,多数据库模式配置为**multi-db**。
/// - **masterUsername**:初始化管理账号。由小写字母、数字、下划线组成,以字母开头,以字母或数字结尾,最多63个字符,且不能以pg开头。
/// - **masterUserPassword**:管理账号的密码。由大写、小写、数字、特殊字符组成,至少包含三种,长度为8-32位;特殊字符包括`! @ # $ % ^ & * () _ + - =` 。
///
/// > 该参数仅适用于RDS PostgreSQL实例,Babelfish for RDS PostgreSQL的更多介绍,请参见[Babelfish简介](~~428613~~)。
#[setters(generate = true, strip_option)]
babelfish_config: Option<String>,
/// RDS Serverless实例的相关设置。创建Serverless实例时必传。
/// >MariaDB不支持创建Serverless实例。
#[setters(generate = true, strip_option)]
serverless_config: Option<CreateDBInstanceServerlessConfig>,
/// 数据库内网连接地址。
///
/// 连接地址格式:`xxx.mysql.rds.aliyuncs.com`,其中`xxx`是实例ID的前缀,如rm-uf6wjk5***。
#[setters(generate = true, strip_option)]
connection_string: Option<String>,
/// 支持在创建RDS实例时初始化端口。取值范围:
/// - MySQL:1000~65534
/// - PostgreSQL、SQL Server、MariaDB:1000~5999
#[setters(generate = true, strip_option)]
port: Option<String>,
/// 弃用参数,无需配置。
#[setters(generate = true, strip_option)]
bpe_enabled: Option<String>,
/// 高性能云盘的IO性能突发功能开关。取值:
/// * **true**:开启。
/// * **false**:关闭。
/// > 了解高性能云盘的IO性能突发功能的更多信息,请参见[什么是高性能云盘](~~2340501~~)。
#[setters(generate = true, strip_option)]
bursting_enabled: Option<bool>,
/// 是否自动支付。取值:
///
/// - **true**:自动支付。您需要确保账户余额充足。
/// - **false**:只生成订单不扣费。
///
///
///
///
/// > 默认值为true。如果您的支付方式余额不足,可以将参数AutoPay设置为false,此时会生成未支付订单,您可以登录RDS管理控制台自行支付。
/// >
#[setters(generate = true, strip_option)]
auto_pay: Option<bool>,
/// 高性能云盘的[Buffer Pool Extension(BPE)](~~2527067~~)功能开关。取值:
///
/// - **1**:开启
/// - **0**:不开启
#[setters(generate = true, strip_option)]
io_acceleration_enabled: Option<String>,
/// 高性能云盘[数据归档](~~2701832~~)功能开关。取值:
///
/// - **true**:开启。
/// - **false**:关闭。
#[setters(generate = true, strip_option)]
cold_data_enabled: Option<bool>,
/// 白名单列表。
/// 当需要配置多个IP地址时,用英文逗号隔开多个IP地址或IP段,且逗号前后不能有空格,例如`192.168.0.1,172.16.213.9`。
#[setters(generate = true, strip_option)]
whitelist_template_list: Option<String>,
/// 是否自动创建代理。取值:
///
/// - **true**:开启自动创建,默认为通用代理。
///
/// - **false**:不开启自动创建。
#[setters(generate = true, strip_option)]
auto_create_proxy: Option<bool>,
/// 是否使用代金券。取值:
/// * **true**:使用代金券。
/// * **false**(默认):不使用代金券。
///
/// > 使用代金券后,若需要进行降配操作,由代金券抵扣的金额将不会进行退款。
#[setters(generate = true, strip_option)]
auto_use_coupon: Option<bool>,
/// 优惠券code。
#[setters(generate = true, strip_option)]
promotion_code: Option<String>,
/// [16K原子写](~~2858761~~)功能开关。取值:
///
/// - **optimized**:开启。
/// - **none**(默认):关闭。
#[setters(generate = true, strip_option)]
optimized_writes: Option<InstanceOptimizedWrites>,
/// 开启或关闭[RDS MySQL原生复制](~~2856526~~)。取值:
/// - **ON**:开启。
/// - **OFF**:关闭。
#[setters(generate = true, strip_option)]
external_replication: Option<bool>,
#[setters(generate = true, strip_option)]
custom_extra_info: Option<String>,
}
impl sealed::Bound for CreateDBInstance {}
impl CreateDBInstance {
pub fn new(
region_id: impl Into<String>,
engine: impl Into<String>,
engine_version: impl Into<String>,
db_instance_class: impl Into<String>,
db_instance_storage: impl Into<i32>,
db_instance_net_type: impl Into<String>,
security_ip_list: impl Into<String>,
pay_type: impl Into<String>,
) -> Self {
Self {
region_id: region_id.into(),
engine: engine.into(),
engine_version: engine_version.into(),
db_instance_class: db_instance_class.into(),
db_instance_storage: db_instance_storage.into(),
system_db_charset: None,
db_instance_net_type: db_instance_net_type.into(),
db_instance_description: None,
security_ip_list: security_ip_list.into(),
client_token: None,
pay_type: pay_type.into(),
zone_id: None,
zone_id_slave1: None,
zone_id_slave2: None,
instance_network_type: None,
connection_mode: None,
vpc_id: None,
v_switch_id: None,
private_ip_address: None,
used_time: None,
period: None,
resource_group_id: None,
db_instance_storage_type: None,
business_info: None,
encryption_key: None,
role_arn: None,
auto_renew: None,
category: None,
dedicated_host_group_id: None,
target_dedicated_host_id_for_master: None,
target_dedicated_host_id_for_slave: None,
target_dedicated_host_id_for_log: None,
db_param_group_id: None,
db_time_zone: None,
db_is_ignore_case: None,
target_minor_version: None,
storage_auto_scale: None,
storage_threshold: None,
storage_upper_bound: None,
dry_run: None,
user_backup_id: None,
amount: None,
create_strategy: None,
tag: None,
deletion_protection: None,
babelfish_config: None,
serverless_config: None,
connection_string: None,
port: None,
bpe_enabled: None,
bursting_enabled: None,
auto_pay: None,
io_acceleration_enabled: None,
cold_data_enabled: None,
whitelist_template_list: None,
auto_create_proxy: None,
auto_use_coupon: None,
promotion_code: None,
optimized_writes: None,
external_replication: None,
custom_extra_info: None,
}
}
}
impl crate::ToFormData for CreateDBInstance {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for CreateDBInstance {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "CreateDBInstance";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<CreateDBInstanceResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(61);
if let Some(f) = &self.amount {
params.push(("Amount".into(), (f).into()));
}
if let Some(f) = &self.auto_create_proxy {
params.push(("AutoCreateProxy".into(), (f).into()));
}
if let Some(f) = &self.auto_pay {
params.push(("AutoPay".into(), (f).into()));
}
if let Some(f) = &self.auto_renew {
params.push(("AutoRenew".into(), (f).into()));
}
if let Some(f) = &self.auto_use_coupon {
params.push(("AutoUseCoupon".into(), (f).into()));
}
if let Some(f) = &self.babelfish_config {
params.push(("BabelfishConfig".into(), (f).into()));
}
if let Some(f) = &self.bpe_enabled {
params.push(("BpeEnabled".into(), (f).into()));
}
if let Some(f) = &self.bursting_enabled {
params.push(("BurstingEnabled".into(), (f).into()));
}
if let Some(f) = &self.business_info {
params.push(("BusinessInfo".into(), (f).into()));
}
if let Some(f) = &self.category {
params.push(("Category".into(), (f).into()));
}
if let Some(f) = &self.client_token {
params.push(("ClientToken".into(), (f).into()));
}
if let Some(f) = &self.cold_data_enabled {
params.push(("ColdDataEnabled".into(), (f).into()));
}
if let Some(f) = &self.connection_mode {
params.push(("ConnectionMode".into(), (f).into()));
}
if let Some(f) = &self.connection_string {
params.push(("ConnectionString".into(), (f).into()));
}
if let Some(f) = &self.create_strategy {
params.push(("CreateStrategy".into(), (f).into()));
}
if let Some(f) = &self.custom_extra_info {
params.push(("CustomExtraInfo".into(), (f).into()));
}
params.push(("DBInstanceClass".into(), (&self.db_instance_class).into()));
if let Some(f) = &self.db_instance_description {
params.push(("DBInstanceDescription".into(), (f).into()));
}
params.push((
"DBInstanceNetType".into(),
(&self.db_instance_net_type).into(),
));
params.push((
"DBInstanceStorage".into(),
(&self.db_instance_storage).into(),
));
if let Some(f) = &self.db_instance_storage_type {
params.push(("DBInstanceStorageType".into(), (f).into()));
}
if let Some(f) = &self.db_is_ignore_case {
params.push(("DBIsIgnoreCase".into(), (f).into()));
}
if let Some(f) = &self.db_param_group_id {
params.push(("DBParamGroupId".into(), (f).into()));
}
if let Some(f) = &self.db_time_zone {
params.push(("DBTimeZone".into(), (f).into()));
}
if let Some(f) = &self.dedicated_host_group_id {
params.push(("DedicatedHostGroupId".into(), (f).into()));
}
if let Some(f) = &self.deletion_protection {
params.push(("DeletionProtection".into(), (f).into()));
}
if let Some(f) = &self.dry_run {
params.push(("DryRun".into(), (f).into()));
}
if let Some(f) = &self.encryption_key {
params.push(("EncryptionKey".into(), (f).into()));
}
params.push(("Engine".into(), (&self.engine).into()));
params.push(("EngineVersion".into(), (&self.engine_version).into()));
if let Some(f) = &self.external_replication {
params.push(("ExternalReplication".into(), (f).into()));
}
if let Some(f) = &self.instance_network_type {
params.push(("InstanceNetworkType".into(), (f).into()));
}
if let Some(f) = &self.io_acceleration_enabled {
params.push(("IoAccelerationEnabled".into(), (f).into()));
}
if let Some(f) = &self.optimized_writes {
params.push(("OptimizedWrites".into(), (f).into()));
}
params.push(("PayType".into(), (&self.pay_type).into()));
if let Some(f) = &self.period {
params.push(("Period".into(), (f).into()));
}
if let Some(f) = &self.port {
params.push(("Port".into(), (f).into()));
}
if let Some(f) = &self.private_ip_address {
params.push(("PrivateIpAddress".into(), (f).into()));
}
if let Some(f) = &self.promotion_code {
params.push(("PromotionCode".into(), (f).into()));
}
params.push(("RegionId".into(), (&self.region_id).into()));
if let Some(f) = &self.resource_group_id {
params.push(("ResourceGroupId".into(), (f).into()));
}
if let Some(f) = &self.role_arn {
params.push(("RoleARN".into(), (f).into()));
}
params.push(("SecurityIPList".into(), (&self.security_ip_list).into()));
if let Some(f) = &self.serverless_config {
if let Ok(json) = serde_json::to_string(f) {
params.push(("ServerlessConfig".into(), json.into()));
}
}
if let Some(f) = &self.storage_auto_scale {
params.push(("StorageAutoScale".into(), (f).into()));
}
if let Some(f) = &self.storage_threshold {
params.push(("StorageThreshold".into(), (f).into()));
}
if let Some(f) = &self.storage_upper_bound {
params.push(("StorageUpperBound".into(), (f).into()));
}
if let Some(f) = &self.system_db_charset {
params.push(("SystemDBCharset".into(), (f).into()));
}
if let Some(f) = &self.tag {
crate::FlatSerialize::flat_serialize(f, "Tag", &mut params);
}
if let Some(f) = &self.target_dedicated_host_id_for_log {
params.push(("TargetDedicatedHostIdForLog".into(), (f).into()));
}
if let Some(f) = &self.target_dedicated_host_id_for_master {
params.push(("TargetDedicatedHostIdForMaster".into(), (f).into()));
}
if let Some(f) = &self.target_dedicated_host_id_for_slave {
params.push(("TargetDedicatedHostIdForSlave".into(), (f).into()));
}
if let Some(f) = &self.target_minor_version {
params.push(("TargetMinorVersion".into(), (f).into()));
}
if let Some(f) = &self.used_time {
params.push(("UsedTime".into(), (f).into()));
}
if let Some(f) = &self.user_backup_id {
params.push(("UserBackupId".into(), (f).into()));
}
if let Some(f) = &self.vpc_id {
params.push(("VPCId".into(), (f).into()));
}
if let Some(f) = &self.v_switch_id {
params.push(("VSwitchId".into(), (f).into()));
}
if let Some(f) = &self.whitelist_template_list {
params.push(("WhitelistTemplateList".into(), (f).into()));
}
if let Some(f) = &self.zone_id {
params.push(("ZoneId".into(), (f).into()));
}
if let Some(f) = &self.zone_id_slave1 {
params.push(("ZoneIdSlave1".into(), (f).into()));
}
if let Some(f) = &self.zone_id_slave2 {
params.push(("ZoneIdSlave2".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于重建已进入回收站的实例。
///
/// Argument of [Connection::create_db_instance_for_rebuild()], returns [CreateDBInstanceForRebuildResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct CreateDBInstanceForRebuild {
/// 地域ID。可调用DescribeRegions获取。
region_id: String,
/// 实例ID。可调用DescribeDBInstances获取。
db_instance_id: String,
/// 目标实例的付费类型,取值:
/// * **Postpaid**:后付费(按量付费)
/// * **Prepaid**:预付费(包年包月)
pay_type: String,
/// 该实例的[IP白名单](~~43185~~)。多条记录请以半角逗号(,)隔开,不可重复,最多1000条记录。支持如下两种格式:
/// * IP地址形式,例如:10.10.XX.XX。
/// * CIDR形式,例如:10.10.XX.XX/24(无类域间路由,24表示了地址中前缀的长度,范围为1~32)。
///
/// 如不填则默认为原实例default分组白名单信息。
#[setters(generate = true, strip_option)]
security_ip_list: Option<String>,
/// 目标实例名称,长度为2~256个字符。以中文、英文字母开头,可以包含数字、中文、英文、下划线(_)、短横线(-)。
/// >不能以 http:// 和 https:// 开头。
#[setters(generate = true, strip_option)]
db_instance_description: Option<String>,
/// 主节点可用区ID。可以通过接口DescribeRegions查看可用区ID。
///
/// >指定了VPC和交换机时,为匹配交换机对应的可用区,该参数必填。
#[setters(generate = true, strip_option)]
zone_id: Option<String>,
/// 备可用区1。
/// >非基础系列实例需要传入该参数。
#[setters(generate = true, strip_option)]
zone_id_slave1: Option<String>,
/// 备可用区2。
/// >仅三节点企业系列实例可传入该参数。
#[setters(generate = true, strip_option)]
zone_id_slave2: Option<String>,
/// 目标实例的VPC ID。当**InstanceNetworkType**=**VPC**时,本参数必须配置。
/// > 如果传入此参数,您还需要传入参数**ZoneId**。
#[setters(generate = true, strip_option)]
vpc_id: Option<String>,
/// 虚拟交换机ID。虚拟交换机所在的可用区必须和**ZoneId**中传入的可用区ID相对应。
///
/// > - 网络类型**InstanceNetworkType**需为**VPC**。
/// > - 若您填写了ZoneSlaveId1(备可用区ID),此处需填写两个交换机ID,并使用半角逗号(,)隔开。
#[setters(generate = true, strip_option)]
v_switch_id: Option<String>,
/// 指定预付费实例为包年或者包月类型,取值:
/// * **Year**:包年。
/// * **Month**:包月。
///
/// > 若付费类型为**Prepaid**则该参数必须传入。
#[setters(generate = true, strip_option)]
period: Option<RebuildPeriod>,
/// 指定购买时长。取值:
/// * 当参数**Period**为**Year**时,**UsedTime**取值为**1**~**5**。
/// * 当参数**Period**为**Month**时,**UsedTime**取值为**1**~**11**。
///
/// > 若**PayType**为**Prepaid**,需要传入该参数。
#[setters(generate = true, strip_option)]
used_time: Option<String>,
/// 该参数用于保证请求的幂等性,防止重复提交请求。参数值由客户端生成,保证在不同请求间唯一。
///
/// 该参数值由ASCII字符组成,最长不超过64个字符,不能包含非ASCII字符。
#[setters(generate = true, strip_option)]
client_token: Option<String>,
/// 实例的网络连接类型,取值:
/// * **Internet**:公网连接。
/// * **Intranet**:内网连接。
#[setters(generate = true, strip_option)]
db_instance_net_type: Option<String>,
/// 目标实例的网络类型,取值:
///
/// * **VPC**:VPC网络
/// * **Classic**:经典网络
///
/// 默认创建经典网络类型的实例。
/// >当实例为云盘实例时,该参数必填,且值为**VPC**。当本参数值为**VPC**时,还需要传入参数**VpcId**、**VSwitchId**。
#[setters(generate = true, strip_option)]
instance_network_type: Option<String>,
/// 资源组ID,可以为空。
#[setters(generate = true, strip_option)]
resource_group_id: Option<String>,
}
impl sealed::Bound for CreateDBInstanceForRebuild {}
impl CreateDBInstanceForRebuild {
pub fn new(
region_id: impl Into<String>,
db_instance_id: impl Into<String>,
pay_type: impl Into<String>,
) -> Self {
Self {
region_id: region_id.into(),
db_instance_id: db_instance_id.into(),
pay_type: pay_type.into(),
security_ip_list: None,
db_instance_description: None,
zone_id: None,
zone_id_slave1: None,
zone_id_slave2: None,
vpc_id: None,
v_switch_id: None,
period: None,
used_time: None,
client_token: None,
db_instance_net_type: None,
instance_network_type: None,
resource_group_id: None,
}
}
}
impl crate::ToFormData for CreateDBInstanceForRebuild {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for CreateDBInstanceForRebuild {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "CreateDBInstanceForRebuild";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<CreateDBInstanceForRebuildResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(16);
if let Some(f) = &self.client_token {
params.push(("ClientToken".into(), (f).into()));
}
if let Some(f) = &self.db_instance_description {
params.push(("DBInstanceDescription".into(), (f).into()));
}
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
if let Some(f) = &self.db_instance_net_type {
params.push(("DBInstanceNetType".into(), (f).into()));
}
if let Some(f) = &self.instance_network_type {
params.push(("InstanceNetworkType".into(), (f).into()));
}
params.push(("PayType".into(), (&self.pay_type).into()));
if let Some(f) = &self.period {
params.push(("Period".into(), (f).into()));
}
params.push(("RegionId".into(), (&self.region_id).into()));
if let Some(f) = &self.resource_group_id {
params.push(("ResourceGroupId".into(), (f).into()));
}
if let Some(f) = &self.security_ip_list {
params.push(("SecurityIPList".into(), (f).into()));
}
if let Some(f) = &self.used_time {
params.push(("UsedTime".into(), (f).into()));
}
if let Some(f) = &self.vpc_id {
params.push(("VPCId".into(), (f).into()));
}
if let Some(f) = &self.v_switch_id {
params.push(("VSwitchId".into(), (f).into()));
}
if let Some(f) = &self.zone_id {
params.push(("ZoneId".into(), (f).into()));
}
if let Some(f) = &self.zone_id_slave1 {
params.push(("ZoneIdSlave1".into(), (f).into()));
}
if let Some(f) = &self.zone_id_slave2 {
params.push(("ZoneIdSlave2".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于释放RDS实例。
///
/// Argument of [Connection::delete_db_instance()], returns [DeleteDBInstanceResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DeleteDBInstance {
/// 实例ID。可调用DescribeDBInstances获取。
db_instance_id: String,
/// 实例释放后的归档备份保留策略。取值:
///
/// * **None**:不保留
/// * **Lastest**:保留最后一个
/// * **All**:全部保留
///
/// >仅RDS MySQL高性能本地盘实例支持。
#[setters(generate = true, strip_option)]
released_keep_policy: Option<String>,
}
impl sealed::Bound for DeleteDBInstance {}
impl DeleteDBInstance {
pub fn new(db_instance_id: impl Into<String>) -> Self {
Self {
db_instance_id: db_instance_id.into(),
released_keep_policy: None,
}
}
}
impl crate::ToFormData for DeleteDBInstance {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DeleteDBInstance {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DeleteDBInstance";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DeleteDBInstanceResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(2);
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
if let Some(f) = &self.released_keep_policy {
params.push(("ReleasedKeepPolicy".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于手动重启RDS实例。
///
/// Argument of [Connection::restart_db_instance()], returns [RestartDBInstanceResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct RestartDBInstance {
/// 用于保证请求的幂等性,防止重复提交请求。由客户端生成该参数值,要保证在不同请求间唯一,最大值不超过64个ASCII字符,且该参数值中不能包含非ASCII字符。
#[setters(generate = true, strip_option)]
client_token: Option<String>,
/// 实例ID。可调用DescribeDBInstances获取。
db_instance_id: String,
/// 节点的唯一标识,用于重启指定节点。可调用DescribeDBInstanceHAConfig获取。
///
/// > 目前仅RDS SQL Server企业集群版实例支持重启备库。更多使用注意事项,请参见[重启备库](~~2411880~~)。
#[setters(generate = true, strip_option)]
node_id: Option<String>,
}
impl sealed::Bound for RestartDBInstance {}
impl RestartDBInstance {
pub fn new(db_instance_id: impl Into<String>) -> Self {
Self {
client_token: None,
db_instance_id: db_instance_id.into(),
node_id: None,
}
}
}
impl crate::ToFormData for RestartDBInstance {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for RestartDBInstance {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "RestartDBInstance";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<RestartDBInstanceResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(3);
if let Some(f) = &self.client_token {
params.push(("ClientToken".into(), (f).into()));
}
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
if let Some(f) = &self.node_id {
params.push(("NodeId".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于暂停RDS实例。
///
/// Argument of [Connection::stop_db_instance()], returns [StopDBInstanceResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct StopDBInstance {
/// 实例ID。可调用DescribeDBInstances获取。
db_instance_id: String,
/// 地域ID。可调用DescribeRegions获取。
region_id: String,
}
impl sealed::Bound for StopDBInstance {}
impl StopDBInstance {
pub fn new(db_instance_id: impl Into<String>, region_id: impl Into<String>) -> Self {
Self {
db_instance_id: db_instance_id.into(),
region_id: region_id.into(),
}
}
}
impl crate::ToFormData for StopDBInstance {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for StopDBInstance {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "StopDBInstance";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<StopDBInstanceResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(2);
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
params.push(("RegionId".into(), (&self.region_id).into()));
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于启动暂停的RDS实例。
///
/// Argument of [Connection::start_db_instance()], returns [StartDBInstanceResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct StartDBInstance {
/// 地域ID。可调用DescribeRegions获取。
#[setters(generate = true, strip_option)]
region_id: Option<String>,
/// 该接口也支持暂停专属集群下的RDS实例,此时需要配置专属集群ID。可调用DescribeDedicatedHostGroups查询。
#[setters(generate = true, strip_option)]
dedicated_host_group_id: Option<String>,
/// 实例ID。可调用DescribeDBInstances获取。
db_instance_id: String,
/// 该参数仅支持专属集群实例,配置主节点的目标主机ID。
///
/// > **DBInstanceTransType**=**2**时需要传该本参数。
#[setters(generate = true, strip_option)]
target_dedicated_host_id_for_master: Option<String>,
/// 该参数仅支持专属集群实例,配置备节点的目标主机ID。
///
/// > **DBInstanceTransType**=**2**时需要传入该参数。
#[setters(generate = true, strip_option)]
target_dedicated_host_id_for_slave: Option<String>,
/// 此参数已废弃,无需配置。
#[setters(generate = true, strip_option)]
target_dedicated_host_id_for_log: Option<String>,
/// 该参数仅支持专属集群实例,生效时间,取值:
///
/// * **Immediate**:立即生效。
/// * **MaintainTime**:在可运维时间段内生效,请参见ModifyDBInstanceMaintainTime。
/// * **SpecificTime**:指定时间生效。
///
/// 默认值:MaintainTime。
#[setters(generate = true, strip_option)]
effective_time: Option<String>,
/// 该参数仅支持专属集群实例,指定切换的时间。格式:yyyy-MM-ddTHH:mm:ssZ(UTC时间)。
///
/// > 当**EffectiveTime**=**Specified**时需要填入本参数。
#[setters(generate = true, strip_option)]
specified_time: Option<String>,
/// 该参数仅支持专属集群实例,目标实例的规格。
#[setters(generate = true, strip_option)]
target_db_instance_class: Option<String>,
/// 该参数仅支持专属集群实例,数据库版本。
#[setters(generate = true, strip_option)]
engine_version: Option<String>,
/// 该参数仅支持专属集群实例,实例的迁移方式。取值:
/// * **0**:默认值。系统优先进行本地升降级,若本地资源不足,则进行跨机迁移。
/// * **1**:本地升降级。若系统判断实例当前不支持本地升降级,则会报错。
/// * **2**:跨机迁移。将实例迁移到指定的主机,需要传入参数**DedicatedHostGroupId**、**TargetDedicatedHostIdForMaster**、**TargetDedicatedHostIdForSlave**。不能迁移到当前实例所在主机,否则会迁移失败。
#[setters(generate = true, strip_option)]
db_instance_trans_type: Option<i32>,
/// 该参数仅支持专属集群实例,自定义存储空间,取值:**5~2000**。单位:GB。不传该参数表示存储空间保持不变。
#[setters(generate = true, strip_option)]
storage: Option<i32>,
/// 该参数仅支持专属集群实例,交换机ID。
#[setters(generate = true, strip_option)]
v_switch_id: Option<String>,
/// 该参数仅支持专属集群实例,可用区ID。
#[setters(generate = true, strip_option)]
zone_id: Option<String>,
}
impl sealed::Bound for StartDBInstance {}
impl StartDBInstance {
pub fn new(db_instance_id: impl Into<String>) -> Self {
Self {
region_id: None,
dedicated_host_group_id: None,
db_instance_id: db_instance_id.into(),
target_dedicated_host_id_for_master: None,
target_dedicated_host_id_for_slave: None,
target_dedicated_host_id_for_log: None,
effective_time: None,
specified_time: None,
target_db_instance_class: None,
engine_version: None,
db_instance_trans_type: None,
storage: None,
v_switch_id: None,
zone_id: None,
}
}
}
impl crate::ToFormData for StartDBInstance {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for StartDBInstance {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "StartDBInstance";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<StartDBInstanceResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(14);
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
if let Some(f) = &self.db_instance_trans_type {
params.push(("DBInstanceTransType".into(), (f).into()));
}
if let Some(f) = &self.dedicated_host_group_id {
params.push(("DedicatedHostGroupId".into(), (f).into()));
}
if let Some(f) = &self.effective_time {
params.push(("EffectiveTime".into(), (f).into()));
}
if let Some(f) = &self.engine_version {
params.push(("EngineVersion".into(), (f).into()));
}
if let Some(f) = &self.region_id {
params.push(("RegionId".into(), (f).into()));
}
if let Some(f) = &self.specified_time {
params.push(("SpecifiedTime".into(), (f).into()));
}
if let Some(f) = &self.storage {
params.push(("Storage".into(), (f).into()));
}
if let Some(f) = &self.target_db_instance_class {
params.push(("TargetDBInstanceClass".into(), (f).into()));
}
if let Some(f) = &self.target_dedicated_host_id_for_log {
params.push(("TargetDedicatedHostIdForLog".into(), (f).into()));
}
if let Some(f) = &self.target_dedicated_host_id_for_master {
params.push(("TargetDedicatedHostIdForMaster".into(), (f).into()));
}
if let Some(f) = &self.target_dedicated_host_id_for_slave {
params.push(("TargetDedicatedHostIdForSlave".into(), (f).into()));
}
if let Some(f) = &self.v_switch_id {
params.push(("VSwitchId".into(), (f).into()));
}
if let Some(f) = &self.zone_id {
params.push(("ZoneId".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于变更RDS实例的规格和存储空间等。
///
/// Argument of [Connection::modify_db_instance_spec()], returns [ModifyDBInstanceSpecResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct ModifyDBInstanceSpec {
/// 实例ID,可调用[DescribeDBInstances](~~610396~~)获取。
db_instance_id: String,
/// [目标实例规格](~~26312~~),可调用[DescribeAvailableClasses](~~610393~~)查询实例可变更规格。
///
/// > * 本参数和**DBInstanceStorage**参数两者至少传入一项。
/// > * 调用[DescribeDBInstanceAttribute](~~610394~~)可以查看实例当前使用的规格。
#[setters(generate = true, strip_option)]
db_instance_class: Option<String>,
/// [目标存储空间大小](~~26312~~),单位GB,可调用[DescribeAvailableClasses](~~610393~~)接口查询目标实例规格中可用的存储空间范围。
///
/// > * 本参数和**DBInstanceClass**参数两者至少传入一项。
/// > * 调用[DescribeDBInstanceAttribute](~~610394~~)可以查看实例当前的存储空间大小。
#[setters(generate = true, strip_option)]
db_instance_storage: Option<i32>,
/// 实例当前的付费类型,取值:
/// - **Postpaid**:后付费(按量付费)。
/// - **Prepaid**:预付费(包年包月)。
/// - **Serverless**(不支持MariaDB实例):Serverless付费类型。
///
/// > 如需变更为Serverless类型,**必须在后续参数中配置**自动启停(AutoPause)、扩缩容范围(MaxCapacity、MinCapacity)和弹性策略(SwitchForce)。更多信息,请参见[MySQL Serverless实例简介](~~411291~~)、[SQL Server Serverless实例简介](~~604344~~)、[PostgreSQL Serverless实例简介](~~607742~~)。
#[setters(generate = true, strip_option)]
pay_type: Option<String>,
/// 新配置生效时间,取值:
/// > **变更部分配置可能对实例产生影响**,请仔细阅读[功能文档内的影响章节](~~96061~~),再配置该参数,建议在业务低峰期进行。
/// * **Immediate**(默认值):立即生效。
/// * **MaintainTime**:在[可运维时间段内](~~610402~~)生效。
/// * **ScheduleTime**:指定时间切换。该时间需为当前时间12小时之后的一个时刻,且实际切换时间遵循EffectiveTime=ScheduleTime+SwitchTime。
#[setters(generate = true, strip_option)]
effective_time: Option<String>,
/// 数据库版本号,取值:
/// <details>
/// <summary>RDS常规实例</summary>
///
/// - MySQL:5.5、5.6、5.7、8.0
/// - SQL Server:2008r2、08r2\_ent\_ha、2012、2012\_ent\_ha、2012\_std\_ha、2012\_web、2014\_std\_ha、2016\_ent\_ha、2016\_std\_ha、2016\_web、2017\_std\_ha、2017\_ent、2019\_std\_ha、2019\_ent
/// - PostgreSQL:10.0、11.0、12.0、13.0、14.0、15.0
/// - MariaDB:10.3
///
/// </details>
///
/// <details>
/// <summary>RDS Serverless实例(MariaDB不支持)</summary>
///
/// - MySQL:5.7、8.0
/// - SQL Server:2016\_std\_sl、2017\_std\_sl、2019\_std\_sl
/// - PostgreSQL:14.0、15.0、16.0
///
/// </details>
#[setters(generate = true, strip_option)]
engine_version: Option<String>,
/// 实例存储类型,取值:
/// * **local_ssd**:高性能本地盘
/// * **cloud_ssd**:SSD云盘(不推荐,部分地域已经停止售卖)
/// * **cloud_essd**:ESSD PL1云盘
/// * **cloud_essd2**:ESSD PL2云盘
/// * **cloud_essd3**:ESSD PL3云盘
/// * **general_essd**:高性能云盘
///
/// 如需变更存储类型,请注意:
/// <props="china">* 如果将实例存储类型由ESSD变更为高性能云盘,则其他参数(实例规格、存储空间大小等)需与实例原参数值保持一致,不允许修改。</props>
///
/// <props="china">* 对于MySQL或MariaDB实例,存储类型为SSD云盘时,您可以传入`cloud_essd`将实例的存储类型[升级为ESSD云盘](~~314678~~)。如需升级,则**DBInstanceClass**和**DBInstanceStorage**都需要传入,且需要与实例现有的值相同。</props>
///
/// <props="china">* 对于PostgreSQL实例可以将SSD云盘升级为[任何PL等级的ESSD云盘](~~96750~~),但**不支持将ESSD云盘降级为SSD云盘**。</props>
///
/// <props="intl">对于PostgreSQL实例可以将SSD云盘升级为[任何PL等级的ESSD云盘](~~96750~~),但**不支持将ESSD云盘降级为SSD云盘**。</props>
#[setters(generate = true, strip_option)]
db_instance_storage_type: Option<String>,
/// MySQL高可用高性能本地盘实例变配为云盘实例时,[只读实例的目标规格](~~276980~~)。
#[setters(generate = true, strip_option)]
read_only_db_instance_class: Option<String>,
/// 实例变配类型,取值:
///
/// - **Up**(默认值):包年包月实例的升级和按量付费实例的升级/降级。
/// - **Down**:包年包月实例的降级。
/// - **TempUpgrade**:包年包月SQL Server实例的弹性变配,弹性变配必填。
/// - **Serverless**:Serverless实例调整弹性设置时配置。
///
/// > 如果仅变更**DBInstanceStorageType**参数,例如将SSD云盘变更为ESSD云盘,则此参数留空。
#[setters(generate = true, strip_option)]
direction: Option<SpecDirection>,
/// 弃用参数,无需配置。
#[setters(generate = true, strip_option)]
source_biz: Option<String>,
/// 专属集群ID。
#[setters(generate = true, strip_option)]
dedicated_host_group_id: Option<String>,
/// 可用区ID。
#[setters(generate = true, strip_option)]
zone_id: Option<String>,
/// 指定执行变配的时间,**建议在业务低峰期执行变配**。
///
/// 格式:<i>yyyy-MM-dd</i>T<i>HH:mm:ss</i>Z(UTC时间)。
///
/// > - 指定的变配时间**必须晚于当前时间**(即发起调用的时间),否则变配任务将失败。任务失败后,您需要等待订单自动作废后才能重新发起调用。
/// > - 如果仅增加存储空间或进行ESSD存储类型的变更,由于对业务无影响,变配操作将在提交后立即执行,无需配置此参数。
#[setters(generate = true, strip_option)]
switch_time: Option<String>,
/// 资源组ID。
#[setters(generate = true, strip_option)]
resource_group_id: Option<String>,
/// SQL Server[弹性升级](~~95665~~)时间。单位:天。
#[setters(generate = true, strip_option)]
used_time: Option<i64>,
/// 变配Serverless实例。
#[setters(generate = true, strip_option)]
serverless_configuration: Option<ServerlessConfiguration>,
/// [实例系列](~~53509~~),取值:
/// > **EngineVersion**为SQL Server版本号时,此项必填。
/// <details>
/// <summary>RDS常规实例</summary>
///
/// - **Basic**:基础系列
/// - **HighAvailability**:高可用系列
/// - **AlwaysOn**:SQL Server集群系列
/// - **Cluster**:MySQL集群系列。
/// - <props="china">**Finance**:金融版</props>
///
/// </details>
///
/// <details>
/// <summary>RDS Serverless实例(MariaDB不支持)</summary>
///
/// - **serverless_basic**:Serverless基础系列(仅适用MySQL和PostgreSQL)
/// - **serverless_standard**:Serverless高可用系列(仅适用MySQL和PostgreSQL)
/// - **serverless_ha**:Serverless高可用系列(仅适用SQL Server)
///
/// </details>
#[setters(generate = true, strip_option)]
category: Option<String>,
/// [高性能云盘IO性能突发功能](~~2340501~~)开关,取值:
///
/// - **true**:开启。
/// - **false**:关闭。
#[setters(generate = true, strip_option)]
bursting_enabled: Option<bool>,
/// 是否使用代金券抵扣费用,取值:
///
/// - **true**(默认值):使用
/// - **false**:不使用
#[setters(generate = true, strip_option)]
auto_use_coupon: Option<bool>,
/// PostgreSQL实例[内核小版本号](~~126002~~)。当变更实例规格并且报错内核小版本不支持时,需要传入内核小版本号,**用于在变更实例规格时升级内核小版本**。
///
/// 格式:`rds_postgres_<大版本号>00_<小版本号>`。例如12版本的20200830:`rds_postgres_1200_20200830`。
#[setters(generate = true, strip_option)]
target_minor_version: Option<String>,
/// 高性能云盘[Buffer Pool Extension(BPE)功能](~~2527067~~),取值:
///
/// - **1**:开启
/// - **0**:不开启
#[setters(generate = true, strip_option)]
io_acceleration_enabled: Option<String>,
/// 高性能云盘[数据归档功能](~~2701832~~),取值:
///
/// - **true**:开启
///
/// - **false**:关闭
#[setters(generate = true, strip_option)]
cold_data_enabled: Option<bool>,
/// 备节点可用区ID。如果和**ZoneId**相同,则为单可用区部署;如果和**ZoneId**不同,则为多可用区部署。
/// > 仅SQL Server实例选择升级大版本时(AllowMajorVersionUpgrade)需要指定备可用区,或者切换备可用区时需要设置该参数。
#[setters(generate = true, strip_option)]
zone_id_slave1: Option<String>,
/// 虚拟交换机ID。虚拟交换机所在的可用区必须和**ZoneId**中传入的可用区ID相对应。
///
/// - 网络类型**InstanceNetworkType**需为**VPC**。
/// - 若您填写了ZoneSlaveId1(备可用区ID),此处需填写两个交换机ID,并使用半角逗号(,)隔开。
/// > 仅SQL Server实例选择升级大版本时(AllowMajorVersionUpgrade)需要指定交换机,或者切换交换机时需要设置该参数。
#[setters(generate = true, strip_option)]
v_switch_id: Option<String>,
/// SQL Server实例[大版本升级](~~127458~~),取值:
/// - **true**:升级
/// - **false**(默认):不升级
///
/// > - 大版本升级时,还需传入其他必传参数,包含DBInstanceId、EngineVersion、DBInstanceClass、Category、ZoneId、VSwitchId。
/// > - 且如需升级到高可用系列或者集群系列实例,则还需传入ZoneIdSlave1参数。
#[setters(generate = true, strip_option)]
allow_major_version_upgrade: Option<bool>,
/// 优惠券code。
#[setters(generate = true, strip_option)]
promotion_code: Option<String>,
/// MySQL[16K原子写功能](~~2858761~~)开关,取值:
///
/// - **optimized**:开启
/// - **none**:关闭
#[setters(generate = true, strip_option)]
optimized_writes: Option<SpecOptimizedWrites>,
/// MySQL[存储压缩功能](~~2861985~~),取值:
///
/// - **on**:开启
/// - **off**:关闭
#[setters(generate = true, strip_option)]
compression_mode: Option<String>,
}
impl sealed::Bound for ModifyDBInstanceSpec {}
impl ModifyDBInstanceSpec {
pub fn new(db_instance_id: impl Into<String>) -> Self {
Self {
db_instance_id: db_instance_id.into(),
db_instance_class: None,
db_instance_storage: None,
pay_type: None,
effective_time: None,
engine_version: None,
db_instance_storage_type: None,
read_only_db_instance_class: None,
direction: None,
source_biz: None,
dedicated_host_group_id: None,
zone_id: None,
switch_time: None,
resource_group_id: None,
used_time: None,
serverless_configuration: None,
category: None,
bursting_enabled: None,
auto_use_coupon: None,
target_minor_version: None,
io_acceleration_enabled: None,
cold_data_enabled: None,
zone_id_slave1: None,
v_switch_id: None,
allow_major_version_upgrade: None,
promotion_code: None,
optimized_writes: None,
compression_mode: None,
}
}
}
impl crate::ToFormData for ModifyDBInstanceSpec {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for ModifyDBInstanceSpec {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "ModifyDBInstanceSpec";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<ModifyDBInstanceSpecResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(28);
if let Some(f) = &self.allow_major_version_upgrade {
params.push(("AllowMajorVersionUpgrade".into(), (f).into()));
}
if let Some(f) = &self.auto_use_coupon {
params.push(("AutoUseCoupon".into(), (f).into()));
}
if let Some(f) = &self.bursting_enabled {
params.push(("BurstingEnabled".into(), (f).into()));
}
if let Some(f) = &self.category {
params.push(("Category".into(), (f).into()));
}
if let Some(f) = &self.cold_data_enabled {
params.push(("ColdDataEnabled".into(), (f).into()));
}
if let Some(f) = &self.compression_mode {
params.push(("CompressionMode".into(), (f).into()));
}
if let Some(f) = &self.db_instance_class {
params.push(("DBInstanceClass".into(), (f).into()));
}
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
if let Some(f) = &self.db_instance_storage {
params.push(("DBInstanceStorage".into(), (f).into()));
}
if let Some(f) = &self.db_instance_storage_type {
params.push(("DBInstanceStorageType".into(), (f).into()));
}
if let Some(f) = &self.dedicated_host_group_id {
params.push(("DedicatedHostGroupId".into(), (f).into()));
}
if let Some(f) = &self.direction {
params.push(("Direction".into(), (f).into()));
}
if let Some(f) = &self.effective_time {
params.push(("EffectiveTime".into(), (f).into()));
}
if let Some(f) = &self.engine_version {
params.push(("EngineVersion".into(), (f).into()));
}
if let Some(f) = &self.io_acceleration_enabled {
params.push(("IoAccelerationEnabled".into(), (f).into()));
}
if let Some(f) = &self.optimized_writes {
params.push(("OptimizedWrites".into(), (f).into()));
}
if let Some(f) = &self.pay_type {
params.push(("PayType".into(), (f).into()));
}
if let Some(f) = &self.promotion_code {
params.push(("PromotionCode".into(), (f).into()));
}
if let Some(f) = &self.read_only_db_instance_class {
params.push(("ReadOnlyDBInstanceClass".into(), (f).into()));
}
if let Some(f) = &self.resource_group_id {
params.push(("ResourceGroupId".into(), (f).into()));
}
if let Some(f) = &self.serverless_configuration {
if let Ok(json) = serde_json::to_string(f) {
params.push(("ServerlessConfiguration".into(), json.into()));
}
}
if let Some(f) = &self.source_biz {
params.push(("SourceBiz".into(), (f).into()));
}
if let Some(f) = &self.switch_time {
params.push(("SwitchTime".into(), (f).into()));
}
if let Some(f) = &self.target_minor_version {
params.push(("TargetMinorVersion".into(), (f).into()));
}
if let Some(f) = &self.used_time {
params.push(("UsedTime".into(), (f).into()));
}
if let Some(f) = &self.v_switch_id {
params.push(("VSwitchId".into(), (f).into()));
}
if let Some(f) = &self.zone_id {
params.push(("ZoneId".into(), (f).into()));
}
if let Some(f) = &self.zone_id_slave1 {
params.push(("ZoneIdSlave1".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于销毁回收站中的RDS实例。
///
/// Argument of [Connection::destroy_db_instance()], returns [DestroyDBInstanceResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DestroyDBInstance {
/// 用于保证请求的幂等性,防止重复提交请求。
/// > 由客户端生成该参数值,要保证在不同请求间唯一,最大值不超过64个ASCII字符,且该参数值中不能包含非ASCII字符。
#[setters(generate = true, strip_option)]
client_token: Option<String>,
/// 实例ID。可调用[DescribeDBInstances](~~26232~~)获取。
db_instance_id: String,
}
impl sealed::Bound for DestroyDBInstance {}
impl DestroyDBInstance {
pub fn new(db_instance_id: impl Into<String>) -> Self {
Self {
client_token: None,
db_instance_id: db_instance_id.into(),
}
}
}
impl crate::ToFormData for DestroyDBInstance {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DestroyDBInstance {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DestroyDBInstance";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DestroyDBInstanceResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(2);
if let Some(f) = &self.client_token {
params.push(("ClientToken".into(), (f).into()));
}
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于设置RDS实例的存储空间自动扩容功能。
///
/// Argument of [Connection::modify_das_instance_config()], returns [ModifyDasInstanceConfigResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct ModifyDasInstanceConfig {
/// 用于保证请求的幂等性,防止重复提交请求。由客户端生成该参数值,要保证在不同请求间唯一,最大值不超过64个ASCII字符,且该参数值中不能包含非ASCII字符。
#[setters(generate = true, strip_option)]
client_token: Option<String>,
/// 实例ID。可调用DescribeDBInstances获取。
db_instance_id: String,
/// 存储空间自动扩展开关,取值:
///
/// * **Enable**:开启
/// * **Disable**:关闭
storage_auto_scale: ConfigStorageAutoScale,
/// 触发阈值百分比,当剩余存储空间百分比达到设定的阈值时,会触发自动扩容。取值:
/// * **10**
/// * **20**
/// * **30**
/// * **40**
/// * **50**
///
/// >**StorageAutoScale**=**Enable**时必须传入本参数。
#[setters(generate = true, strip_option)]
storage_threshold: Option<i32>,
/// 自动扩容上限,需要大于等于实例当前存储空间总大小。
///
/// - ESSD云盘上限:32000 GB
/// - SSD云盘上限:6000 GB
/// >**StorageAutoScale**=**Enable**时必须传入本参数。
#[setters(generate = true, strip_option)]
storage_upper_bound: Option<i32>,
}
impl sealed::Bound for ModifyDasInstanceConfig {}
impl ModifyDasInstanceConfig {
pub fn new(
db_instance_id: impl Into<String>,
storage_auto_scale: impl Into<ConfigStorageAutoScale>,
) -> Self {
Self {
client_token: None,
db_instance_id: db_instance_id.into(),
storage_auto_scale: storage_auto_scale.into(),
storage_threshold: None,
storage_upper_bound: None,
}
}
}
impl crate::ToFormData for ModifyDasInstanceConfig {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for ModifyDasInstanceConfig {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "ModifyDasInstanceConfig";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<ModifyDasInstanceConfigResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(5);
if let Some(f) = &self.client_token {
params.push(("ClientToken".into(), (f).into()));
}
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
params.push(("StorageAutoScale".into(), (&self.storage_auto_scale).into()));
if let Some(f) = &self.storage_threshold {
params.push(("StorageThreshold".into(), (f).into()));
}
if let Some(f) = &self.storage_upper_bound {
params.push(("StorageUpperBound".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于迁移RDS实例的可用区。
///
/// Argument of [Connection::migrate_to_other_zone()], returns [MigrateToOtherZoneResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct MigrateToOtherZone {
/// 实例ID。可调用DescribeDBInstances获取。
db_instance_id: String,
/// 专有网络VPC ID。迁移可用区时VPC不能变更,需保持不变。
///
/// - 专有网络实例迁移可用区时必须传入该参数。
/// - 如果实例引擎为SQL Server,迁移可用区VPC可支持变更。
#[setters(generate = true, strip_option)]
vpc_id: Option<String>,
/// 目标可用区ID,可调用DescribeRegions获取。
zone_id: String,
/// 生效时间,取值:
/// * **Immediate**:默认值,立即生效。
/// * **MaintainTime**:在可运维时间段内生效,请参见ModifyDBInstanceMaintainTime。
/// * **ScheduleTime**:手动指定生效时间。
///
/// > 如果在本参数中传入**ScheduleTime**,则还需要传入**SwitchTime**参数。
#[setters(generate = true, strip_option)]
effective_time: Option<String>,
/// 交换机ID。
/// - 专有网络实例迁移可用区时必须传入该参数。可通过调用DescribeVSwitches接口查询已创建的交换机。
/// - 当RDS PostgreSQL、SQL Server实例迁移可用区配置了备可用区时,此参数可以配置多个,用英文逗号(,)分隔,与可用区对应。
#[setters(generate = true, strip_option)]
v_switch_id: Option<String>,
/// 实例系列,取值:
///
/// * **Basic**:基础系列
/// * **HighAvailability**:高可用系列
/// * **AlwaysOn**:SQL Server集群系列
/// * **cluster**:MySQL集群系列
/// * **Finance**:三节点企业系列
#[setters(generate = true, strip_option)]
category: Option<String>,
/// 备可用区1。
/// >非基础系列实例需要传入该参数。
#[setters(generate = true, strip_option)]
zone_id_slave1: Option<String>,
/// 备可用区2。
/// >仅三节点企业系列实例可传入该参数。
#[setters(generate = true, strip_option)]
zone_id_slave2: Option<String>,
/// 切换可用区的自定义生效时间。格式:<i>yyyy-MM-dd</i>T<i>HH:mm:ss</i>Z(UTC时间)。
/// >本参数配合**EffectiveTime**参数使用,仅在**EffectiveTime**为**ScheduleTime**时需要传入。
#[setters(generate = true, strip_option)]
switch_time: Option<String>,
/// 是否在迁移可用区时变配。
///
/// - **true**:变配,当配置为**true**时,至少需要配置**DBInstanceClass**或**DBInstanceStorage**中的一个参数。
/// - **false**:默认值,不变配。
///
/// > 该参数仅RDS MySQL实例适用。
#[setters(generate = true, strip_option)]
is_modify_spec: Option<String>,
/// 目标实例规格代码,只支持变更规格,不支持变更存储类型。
/// 当**IsModifySpec**参数配置为**true**时,至少需要配置本参数和**DBInstanceStorage**中的一个。
///
/// 实例规格代码请参见[RDS MySQL主实例规格列表](~~276975~~)。
#[setters(generate = true, strip_option)]
db_instance_class: Option<String>,
/// 目标存储空间大小。当**IsModifySpec**参数配置为**true**时,至少需要配置本参数和**DBInstanceClass**中的一个。
///
/// 单位:GB。
/// 取值范围:不同规格可扩容存储空间大小不同,具体请以[RDS MySQL主实例规格列表](~~276975~~)为准。
#[setters(generate = true, strip_option)]
db_instance_storage: Option<i64>,
/// 高性能云盘的Buffer Pool Extension(BPE)功能开关,参数:
///
/// - **1**:开启
/// - **0**:不开启
///
/// > Buffer Pool Extension(BPE)功能的更多信息,请参见[Buffer Pool Extension(BPE)](~~2527067~~)。
#[setters(generate = true, strip_option)]
io_acceleration_enabled: Option<String>,
/// 实例存储类型,取值:
/// - cloud_essd:ESSD PL1 云盘。
/// - cloud_essd2:ESSD PL2 云盘。
/// - cloud_essd3:ESSD PL3 云盘。
/// - cloud_ssd:SSD云盘(不推荐,部分地域已经停止售卖)。
#[setters(generate = true, strip_option)]
db_instance_storage_type: Option<String>,
#[setters(generate = true, strip_option)]
custom_extra_info: Option<String>,
}
impl sealed::Bound for MigrateToOtherZone {}
impl MigrateToOtherZone {
pub fn new(db_instance_id: impl Into<String>, zone_id: impl Into<String>) -> Self {
Self {
db_instance_id: db_instance_id.into(),
vpc_id: None,
zone_id: zone_id.into(),
effective_time: None,
v_switch_id: None,
category: None,
zone_id_slave1: None,
zone_id_slave2: None,
switch_time: None,
is_modify_spec: None,
db_instance_class: None,
db_instance_storage: None,
io_acceleration_enabled: None,
db_instance_storage_type: None,
custom_extra_info: None,
}
}
}
impl crate::ToFormData for MigrateToOtherZone {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for MigrateToOtherZone {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "MigrateToOtherZone";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<MigrateToOtherZoneResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(15);
if let Some(f) = &self.category {
params.push(("Category".into(), (f).into()));
}
if let Some(f) = &self.custom_extra_info {
params.push(("CustomExtraInfo".into(), (f).into()));
}
if let Some(f) = &self.db_instance_class {
params.push(("DBInstanceClass".into(), (f).into()));
}
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
if let Some(f) = &self.db_instance_storage {
params.push(("DBInstanceStorage".into(), (f).into()));
}
if let Some(f) = &self.db_instance_storage_type {
params.push(("DBInstanceStorageType".into(), (f).into()));
}
if let Some(f) = &self.effective_time {
params.push(("EffectiveTime".into(), (f).into()));
}
if let Some(f) = &self.io_acceleration_enabled {
params.push(("IoAccelerationEnabled".into(), (f).into()));
}
if let Some(f) = &self.is_modify_spec {
params.push(("IsModifySpec".into(), (f).into()));
}
if let Some(f) = &self.switch_time {
params.push(("SwitchTime".into(), (f).into()));
}
if let Some(f) = &self.vpc_id {
params.push(("VPCId".into(), (f).into()));
}
if let Some(f) = &self.v_switch_id {
params.push(("VSwitchId".into(), (f).into()));
}
params.push(("ZoneId".into(), (&self.zone_id).into()));
if let Some(f) = &self.zone_id_slave1 {
params.push(("ZoneIdSlave1".into(), (f).into()));
}
if let Some(f) = &self.zone_id_slave2 {
params.push(("ZoneIdSlave2".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于修改RDS实例的名称。
///
/// Argument of [Connection::modify_db_instance_description()], returns [ModifyDBInstanceDescriptionResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct ModifyDBInstanceDescription {
/// 实例ID。
db_instance_id: String,
/// RDS实例名称。
/// >长度为2-64个字符。
db_instance_description: String,
}
impl sealed::Bound for ModifyDBInstanceDescription {}
impl ModifyDBInstanceDescription {
pub fn new(
db_instance_id: impl Into<String>,
db_instance_description: impl Into<String>,
) -> Self {
Self {
db_instance_id: db_instance_id.into(),
db_instance_description: db_instance_description.into(),
}
}
}
impl crate::ToFormData for ModifyDBInstanceDescription {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for ModifyDBInstanceDescription {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "ModifyDBInstanceDescription";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<ModifyDBInstanceDescriptionResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(2);
params.push((
"DBInstanceDescription".into(),
(&self.db_instance_description).into(),
));
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于修改RDS实例的可维护时间段。
///
/// Argument of [Connection::modify_db_instance_maintain_time()], returns [ModifyDBInstanceMaintainTimeResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct ModifyDBInstanceMaintainTime {
/// 用于保证请求的幂等性,防止重复提交请求。由客户端生成该参数值,要保证在不同请求间唯一,最大值不超过64个ASCII字符,且该参数值中不能包含非ASCII字符。
#[setters(generate = true, strip_option)]
client_token: Option<String>,
/// 实例ID。可调用DescribeDBInstances获取。
db_instance_id: String,
/// 实例的可维护时间段。格式:<i>HH:mm</i>Z-<i>HH:mm</i>Z(UTC时间)。
maintain_time: String,
}
impl sealed::Bound for ModifyDBInstanceMaintainTime {}
impl ModifyDBInstanceMaintainTime {
pub fn new(db_instance_id: impl Into<String>, maintain_time: impl Into<String>) -> Self {
Self {
client_token: None,
db_instance_id: db_instance_id.into(),
maintain_time: maintain_time.into(),
}
}
}
impl crate::ToFormData for ModifyDBInstanceMaintainTime {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for ModifyDBInstanceMaintainTime {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "ModifyDBInstanceMaintainTime";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<ModifyDBInstanceMaintainTimeResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(3);
if let Some(f) = &self.client_token {
params.push(("ClientToken".into(), (f).into()));
}
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
params.push(("MaintainTime".into(), (&self.maintain_time).into()));
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于将RDS实例移动到指定资源组。
///
/// Argument of [Connection::modify_resource_group()], returns [ModifyResourceGroupResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct ModifyResourceGroup {
/// 用于保证请求的幂等性,防止重复提交请求。由客户端生成该参数值,要保证在不同请求间唯一,最大值不超过64个ASCII字符,且该参数值中不能包含非ASCII字符。
#[setters(generate = true, strip_option)]
client_token: Option<String>,
/// 实例ID。可调用DescribeDBInstances获取。
db_instance_id: String,
/// 资源组ID。可调用ListResourceGroups获取。
resource_group_id: String,
/// 资源类型。
#[setters(generate = true, strip_option)]
resource_type: Option<String>,
}
impl sealed::Bound for ModifyResourceGroup {}
impl ModifyResourceGroup {
pub fn new(db_instance_id: impl Into<String>, resource_group_id: impl Into<String>) -> Self {
Self {
client_token: None,
db_instance_id: db_instance_id.into(),
resource_group_id: resource_group_id.into(),
resource_type: None,
}
}
}
impl crate::ToFormData for ModifyResourceGroup {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for ModifyResourceGroup {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "ModifyResourceGroup";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<ModifyResourceGroupResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(4);
if let Some(f) = &self.client_token {
params.push(("ClientToken".into(), (f).into()));
}
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
params.push(("ResourceGroupId".into(), (&self.resource_group_id).into()));
if let Some(f) = &self.resource_type {
params.push(("ResourceType".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于修改RDS实例的可用性检测方式。
///
/// Argument of [Connection::modify_ha_diagnose_config()], returns [ModifyHADiagnoseConfigResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct ModifyHADiagnoseConfig {
/// 实例ID。可调用DescribeDBInstances获取。
db_instance_id: String,
/// 实例的可用性检测方式。取值:
/// - **SHORT**:短连接
/// - **LONG**:长连接
#[setters(generate = true, strip_option)]
tcp_connection_type: Option<String>,
/// 地域ID。可调用DescribeRegions获取。
region_id: String,
}
impl sealed::Bound for ModifyHADiagnoseConfig {}
impl ModifyHADiagnoseConfig {
pub fn new(db_instance_id: impl Into<String>, region_id: impl Into<String>) -> Self {
Self {
db_instance_id: db_instance_id.into(),
tcp_connection_type: None,
region_id: region_id.into(),
}
}
}
impl crate::ToFormData for ModifyHADiagnoseConfig {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for ModifyHADiagnoseConfig {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "ModifyHADiagnoseConfig";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<ModifyHADiagnoseConfigResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(3);
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
params.push(("RegionId".into(), (&self.region_id).into()));
if let Some(f) = &self.tcp_connection_type {
params.push(("TcpConnectionType".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于修改RDS SQL Server实例的账号密码策略。
///
/// Argument of [Connection::modify_account_security_policy()], returns [ModifyAccountSecurityPolicyResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct ModifyAccountSecurityPolicy {
/// 用于保证请求的幂等性,防止重复提交请求。由客户端生成该参数值,要保证在不同请求间唯一,最大值不超过64个ASCII字符,且该参数值中不能包含非ASCII字符。
#[setters(generate = true, strip_option)]
client_token: Option<String>,
/// 资源组ID。
#[setters(generate = true, strip_option)]
resource_group_id: Option<String>,
/// 实例ID。可调用[DescribeDBInstances](~~2628785~~)查询。
db_instance_id: String,
/// 自定义RDS SQL Server密码账号策略,支持策略如下:
///
/// - 仅设置账号密码的最长使用时间,超过此时间后需要修改密码:`{"accountSecurityPolicy": {"MaximumPasswordAge": 填写最长时长}}`
/// - 仅设置账号密码的最短使用时间,此时间内不能再次修改密码:`{"accountSecurityPolicy": {"MaximumPasswordAge": 填写最短时长}}`
/// - 同时设置账号密码的最长和最短使用时间:`{"accountSecurityPolicy": {"MaximumPasswordAge": 填写最长时长, "MinimumPasswordAge": 填写最短时长}}`
///
/// > 最短使用时间(取值范围0~998)不能大于最长使用时间(取值范围0~999)。
group_policy: String,
}
impl sealed::Bound for ModifyAccountSecurityPolicy {}
impl ModifyAccountSecurityPolicy {
pub fn new(db_instance_id: impl Into<String>, group_policy: impl Into<String>) -> Self {
Self {
client_token: None,
resource_group_id: None,
db_instance_id: db_instance_id.into(),
group_policy: group_policy.into(),
}
}
}
impl crate::ToFormData for ModifyAccountSecurityPolicy {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for ModifyAccountSecurityPolicy {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "ModifyAccountSecurityPolicy";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<ModifyAccountSecurityPolicyResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(4);
if let Some(f) = &self.client_token {
params.push(("ClientToken".into(), (f).into()));
}
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
params.push(("GroupPolicy".into(), (&self.group_policy).into()));
if let Some(f) = &self.resource_group_id {
params.push(("ResourceGroupId".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于查询RDS SQL Server实例是否支持在线扩盘。
///
/// Argument of [Connection::describe_support_online_resize_disk()], returns [DescribeSupportOnlineResizeDiskResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DescribeSupportOnlineResizeDisk {
/// 实例ID。可调用DescribeDBInstances获取。
db_instance_id: String,
}
impl sealed::Bound for DescribeSupportOnlineResizeDisk {}
impl DescribeSupportOnlineResizeDisk {
pub fn new(db_instance_id: impl Into<String>) -> Self {
Self {
db_instance_id: db_instance_id.into(),
}
}
}
impl crate::ToFormData for DescribeSupportOnlineResizeDisk {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DescribeSupportOnlineResizeDisk {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DescribeSupportOnlineResizeDisk";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DescribeSupportOnlineResizeDiskResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(1);
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于查询RDS的可用区资源。
///
/// Argument of [Connection::describe_available_zones()], returns [DescribeAvailableZonesResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DescribeAvailableZones {
/// 地域ID。可调用DescribeRegions获取。
region_id: String,
/// 数据库类型。取值:
/// * **MySQL**
/// * **SQLServer**
/// * **PostgreSQL**
/// * **MariaDB**
engine: String,
/// 可用区ID。多可用区的格式与单可用区不同,包含`MAZ`字样,例如`cn-hangzhou-MAZ6(b,f)`、`cn-hangzhou-MAZ5(b,e,f)`。可以通过接口DescribeRegions查看可用区ID。
#[setters(generate = true, strip_option)]
zone_id: Option<String>,
/// 数据库版本。取值:
/// - 常规实例
/// - MySQL:**5.5**、**5.6**、**5.7**、**8.0**
/// - SQL Server:**2008r2**、**08r2\_ent\_ha**、**2012**、**2012\_ent\_ha**、**2012\_std\_ha**、**2012\_web**、**2014\_std_ha**、**2016\_ent\_ha**、**2016\_std\_ha**、**2016\_web**、**2017\_std\_ha**、**2017\_ent**、**2019\_std\_ha**、**2019\_ent**
/// - PostgreSQL:**10.0**、**11.0**、**12.0**、**13.0**、**14.0**、**15.0**
/// - MariaDB:**10.3**
/// - Serverless实例
/// - MySQL:**5.7**、**8.0**
/// - SQL Server:**2016\_std\_sl**、**2017\_std\_sl**、**2019\_std\_sl**
/// - PostgreSQL:**14.0**
///
/// > MariaDB不支持创建Serverless实例。
#[setters(generate = true, strip_option)]
engine_version: Option<String>,
/// 当前实例的商品码。根据输入的商品码查询可售卖的资源。取值:
///
/// * **bards**:主实例按量付费(中国站)
/// * **rds**:主实例包年包月(中国站)
/// * **rords**:只读实例按量付费(中国站)
/// * **rds\_rordspre\_public\_cn**:只读实例包年包月(中国站)
/// * **bards_intl**:主实例按量付费(国际站)
/// * **rds_intl**:主实例包年包月(国际站)
/// * **rords_intl**:只读实例按量付费(国际站)
/// * **rds\_rordspre\_public\_intl**:只读实例包年包月(国际站)
/// * **rds\_serverless\_public\_cn**:serverless(中国站)
/// * **rds\_serverless\_public\_intl**:serverless(国际站)
#[setters(generate = true, strip_option)]
commodity_code: Option<String>,
/// 是否返回支持单可用区部署功能的可用区列表。取值:
/// * **1**(默认值):返回
/// * **0**:不返回
///
/// > 单可用区部署功能支持将三节点企业系列实例安装到单个可用区中。
#[setters(generate = true, strip_option)]
dispense_mode: Option<String>,
/// 主实例ID。查询该主实例下可售卖的只读实例资源。
///
/// **CommodityCode**参数为如下值时必填:
/// * **rords_intl**
/// * **rds_rordspre\_public\_intl**
/// * **rords**
/// * **rds_rordspre\_public\_cn**
#[setters(generate = true, strip_option)]
db_instance_name: Option<String>,
/// 实例系列,取值:
/// * 常规实例
/// * **Basic**:基础系列
/// * **HighAvailability**:高可用系列
/// * **cluster**:MySQL集群系列
/// * **AlwaysOn**:SQL Server集群系列
/// * **Finance**:三节点企业系列
/// * Serverless实例
/// * **serverless_basic**:Serverless基础系列(仅适用MySQL和PostgreSQL)
/// * **serverless_standard**:MySQL Serverless高可用系列
/// * **serverless_ha**:SQL Server Serverless高可用系列
#[setters(generate = true, strip_option)]
category: Option<String>,
}
impl sealed::Bound for DescribeAvailableZones {}
impl DescribeAvailableZones {
pub fn new(region_id: impl Into<String>, engine: impl Into<String>) -> Self {
Self {
region_id: region_id.into(),
engine: engine.into(),
zone_id: None,
engine_version: None,
commodity_code: None,
dispense_mode: None,
db_instance_name: None,
category: None,
}
}
}
impl crate::ToFormData for DescribeAvailableZones {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DescribeAvailableZones {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DescribeAvailableZones";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DescribeAvailableZonesResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(8);
if let Some(f) = &self.category {
params.push(("Category".into(), (f).into()));
}
if let Some(f) = &self.commodity_code {
params.push(("CommodityCode".into(), (f).into()));
}
if let Some(f) = &self.db_instance_name {
params.push(("DBInstanceName".into(), (f).into()));
}
if let Some(f) = &self.dispense_mode {
params.push(("DispenseMode".into(), (f).into()));
}
params.push(("Engine".into(), (&self.engine).into()));
if let Some(f) = &self.engine_version {
params.push(("EngineVersion".into(), (f).into()));
}
params.push(("RegionId".into(), (&self.region_id).into()));
if let Some(f) = &self.zone_id {
params.push(("ZoneId".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于查询RDS实例的可变更规格及存储空间等信息。
///
/// Argument of [Connection::describe_available_classes()], returns [DescribeAvailableClassesResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DescribeAvailableClasses {
/// 当前实例的地域ID。可以通过接口DescribeDBInstanceAttribute查看所属地域ID。
region_id: String,
/// 当前实例的可用区ID。可以通过接口DescribeDBInstanceAttribute查看所属可用区ID。
/// >若DescribeDBInstanceAttribute返回多可用区(例如`cn-hangzhou-MAZ9(g,h)`),请以单可用区形式传入。例如:`cn-hangzhou-g`或`cn-hangzhou-j`。
zone_id: String,
/// 当前付费类型,取值:
/// * **Prepaid**:包年包月
/// * **Postpaid**:按量付费
/// * **Serverless**:Serverless
///
/// > MariaDB不支持创建Serverless实例。
#[setters(generate = true, strip_option)]
instance_charge_type: Option<String>,
/// 当前数据库类型。取值:
/// * **MySQL**
/// * **SQLServer**
/// * **PostgreSQL**
/// * **MariaDB**
engine: String,
/// 当前数据库版本。取值:
/// - 常规实例
/// - MySQL:**5.5、5.6、5.7、8.0**
/// - SQL Server:**2008r2、08r2\_ent\_ha、2012、2012\_ent\_ha、2012\_std\_ha、2012\_web、2014\_std\_ha、2016\_ent\_ha、2016\_std\_ha、2016\_web、2017\_std\_ha、2017\_ent、2019\_std\_ha、2019\_ent**
/// - PostgreSQL:**10.0、11.0、12.0、13.0、14.0、15.0、16.0、17.0**
/// - MariaDB:**10.3**
/// - Serverless实例
/// - MySQL:**5.7**、**8.0**
/// - SQL Server:**2016\_std\_sl**、**2017\_std\_sl**、**2019\_std\_sl**
/// - PostgreSQL:**14.0、15.0、16.0、17.0**
///
/// > MariaDB不支持创建Serverless实例。
engine_version: String,
/// 实例ID。可调用DescribeDBInstances获取。
#[setters(generate = true, strip_option)]
db_instance_id: Option<String>,
/// 订单类型。当前仅唯一取值:**BUY**。
#[setters(generate = true, strip_option)]
order_type: Option<String>,
/// 当前实例存储类型。取值:
/// * **general_essd**:高性能云盘
/// * **local_ssd**:高性能本地盘
/// * **cloud_ssd**:SSD云盘
/// * **cloud_essd0**:ESSD PL0 云盘
/// * **cloud_essd**:ESSD PL1云盘
/// * **cloud_essd2**:ESSD PL2云盘
/// * **cloud_essd3**:ESSD PL3云盘
///
/// > Serverless实例仅支持ESSD PL1云盘,必须传入**cloud_essd**。
db_instance_storage_type: String,
/// 当前实例系列。取值:
/// * 常规实例
/// * **Basic**:基础系列
/// * **HighAvailability**:高可用系列
/// * **cluster**:集群系列(仅适用MySQL和PostgreSQL)
/// * **AlwaysOn**:SQL Server集群系列
/// * **Finance**:三节点企业系列
/// * Serverless实例
/// * **serverless_basic**:Serverless基础系列(仅适用MySQL和PostgreSQL)
/// * **serverless_standard**:Serverless高可用系列(仅适用MySQL和PostgreSQL)
/// * **serverless_ha**:SQL Server Serverless高可用系列
///
/// > 若创建Serverless实例,该字段必传。
category: String,
/// 当前实例的商品码。取值:
///
/// - **bards**:主实例按量付费(中国站)
/// - **rds**:主实例包年包月(中国站)
/// - **rords**:只读实例按量付费(中国站)
/// - **rds\_rordspre\_public\_cn**:只读实例包年包月(中国站)
/// - **bards\_intl**:主实例按量付费(国际站)
/// - **rds\_intl**:主实例包年包月(国际站)
/// - **rords\_intl**:只读实例按量付费(国际站)
/// - **rds\_rordspre\_public\_intl**:只读实例包年包月(国际站)
/// - **rds\_serverless\_public_cn**:serverless(中国站)
/// - **rds\_serverless\_public_intl**:serverless(国际站)
///
/// > 查询只读实例时必须传入本参数。
#[setters(generate = true, strip_option)]
commodity_code: Option<String>,
}
impl sealed::Bound for DescribeAvailableClasses {}
impl DescribeAvailableClasses {
pub fn new(
region_id: impl Into<String>,
zone_id: impl Into<String>,
engine: impl Into<String>,
engine_version: impl Into<String>,
db_instance_storage_type: impl Into<String>,
category: impl Into<String>,
) -> Self {
Self {
region_id: region_id.into(),
zone_id: zone_id.into(),
instance_charge_type: None,
engine: engine.into(),
engine_version: engine_version.into(),
db_instance_id: None,
order_type: None,
db_instance_storage_type: db_instance_storage_type.into(),
category: category.into(),
commodity_code: None,
}
}
}
impl crate::ToFormData for DescribeAvailableClasses {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DescribeAvailableClasses {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DescribeAvailableClasses";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DescribeAvailableClassesResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(10);
params.push(("Category".into(), (&self.category).into()));
if let Some(f) = &self.commodity_code {
params.push(("CommodityCode".into(), (f).into()));
}
if let Some(f) = &self.db_instance_id {
params.push(("DBInstanceId".into(), (f).into()));
}
params.push((
"DBInstanceStorageType".into(),
(&self.db_instance_storage_type).into(),
));
params.push(("Engine".into(), (&self.engine).into()));
params.push(("EngineVersion".into(), (&self.engine_version).into()));
if let Some(f) = &self.instance_charge_type {
params.push(("InstanceChargeType".into(), (f).into()));
}
if let Some(f) = &self.order_type {
params.push(("OrderType".into(), (f).into()));
}
params.push(("RegionId".into(), (&self.region_id).into()));
params.push(("ZoneId".into(), (&self.zone_id).into()));
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于查询RDS实例的详细信息。
///
/// Argument of [Connection::describe_db_instance_attribute()], returns [DescribeDBInstanceAttributeResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DescribeDBInstanceAttribute {
/// 实例ID。可调用DescribeDBInstances获取。
/// ><warning>请勿同时配置多个实例ID进行批量查询,否则将会查询超时导致失败。></warning>
db_instance_id: String,
/// 实例过期状态。取值:
///
/// * **True**:已过期。
/// * **False**:未过期。
#[setters(generate = true, strip_option)]
expired: Option<String>,
}
impl sealed::Bound for DescribeDBInstanceAttribute {}
impl DescribeDBInstanceAttribute {
pub fn new(db_instance_id: impl Into<String>) -> Self {
Self {
db_instance_id: db_instance_id.into(),
expired: None,
}
}
}
impl crate::ToFormData for DescribeDBInstanceAttribute {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DescribeDBInstanceAttribute {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DescribeDBInstanceAttribute";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DescribeDBInstanceAttributeResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(2);
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
if let Some(f) = &self.expired {
params.push(("Expired".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于查看RDS实例的拓扑结构。
///
/// Argument of [Connection::get_db_instance_topology()], returns [GetDBInstanceTopologyResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct GetDBInstanceTopology {
/// 实例ID。可调用DescribeDBInstances获取。
db_instance_id: String,
}
impl sealed::Bound for GetDBInstanceTopology {}
impl GetDBInstanceTopology {
pub fn new(db_instance_id: impl Into<String>) -> Self {
Self {
db_instance_id: db_instance_id.into(),
}
}
}
impl crate::ToFormData for GetDBInstanceTopology {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for GetDBInstanceTopology {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "GetDBInstanceTopology";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<GetDBInstanceTopologyResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(1);
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于查询RDS的实例列表。
///
/// Argument of [Connection::describe_db_instances()], returns [DescribeDBInstancesResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DescribeDBInstances {
/// 用于保证请求的幂等性,防止重复提交请求。由客户端生成该参数值,要保证在不同请求间唯一,最大值不超过64个ASCII字符,且该参数值中不能包含非ASCII字符。
#[setters(generate = true, strip_option)]
client_token: Option<String>,
/// 废弃参数,无需配置。
#[setters(generate = true, strip_option)]
proxy_id: Option<String>,
/// 数据库类型。取值:
/// * **MySQL**
/// * **SQLServer**
/// * **PostgreSQL**
/// * **MariaDB**
///
/// 默认返回所有数据库类型。
#[setters(generate = true, strip_option)]
engine: Option<String>,
/// 可用区ID。
#[setters(generate = true, strip_option)]
zone_id: Option<String>,
/// 资源组ID。
#[setters(generate = true, strip_option)]
resource_group_id: Option<String>,
/// 实例状态,详情请参见[实例状态表](~~26315~~)。
#[setters(generate = true, strip_option)]
db_instance_status: Option<String>,
/// 实例的过期状态。取值:
/// * **True**:已过期
/// * **False**:未过期
#[setters(generate = true, strip_option)]
expired: Option<String>,
/// 可基于实例ID或者实例备注模糊搜索。
#[setters(generate = true, strip_option)]
search_key: Option<String>,
/// 实例ID。
#[setters(generate = true, strip_option)]
db_instance_id: Option<String>,
/// 实例类型。取值:
/// * **Primary**:主实例
/// * **Readonly**:只读实例
/// * **Guard**:灾备实例
/// * **Temp**:临时实例
///
/// 默认返回所有实例类型。
#[setters(generate = true, strip_option)]
db_instance_type: Option<String>,
/// 地域ID。可调用DescribeRegions获取。
region_id: String,
/// 每页记录数,取值:**1**~**100**。
///
/// 默认值:**30**。
#[setters(generate = true, strip_option)]
page_size: Option<i32>,
/// 页码,取值:大于0且不超过Integer的最大值。
///
/// 默认值:**1**。
#[setters(generate = true, strip_option)]
page_number: Option<i32>,
/// 实例的网络类型。取值:
/// * **VPC**:专有网络下的实例
/// * **Classic**:经典网络下的实例
///
/// 默认返回所有网络类型下的实例。
#[setters(generate = true, strip_option)]
instance_network_type: Option<String>,
/// VPC ID。
#[setters(generate = true, strip_option)]
vpc_id: Option<String>,
/// 交换机ID。
#[setters(generate = true, strip_option)]
v_switch_id: Option<String>,
/// 实例规格,详见[实例规格表](~~26312~~)。
#[setters(generate = true, strip_option)]
db_instance_class: Option<String>,
/// 数据库版本。
#[setters(generate = true, strip_option)]
engine_version: Option<String>,
/// 付费类型。取值:
/// * **Postpaid**:按量付费
/// * **Prepaid**:包年包月
#[setters(generate = true, strip_option)]
pay_type: Option<String>,
/// 实例的访问模式。取值:
/// * **Standard**:标准访问模式
/// * **Safe**:数据库代理模式
///
/// 默认返回所有访问模式下的实例。
#[setters(generate = true, strip_option)]
connection_mode: Option<String>,
/// 查询绑定有该标签的实例,包括TagKey和TagValue。单次最多支持传入5组值,格式:{"key1":"value1","key2":"value2"...}。
#[setters(generate = true, strip_option)]
tags: Option<String>,
/// 专属集群ID。
#[setters(generate = true, strip_option)]
dedicated_host_group_id: Option<String>,
/// 专属集群内的主机ID。
#[setters(generate = true, strip_option)]
dedicated_host_id: Option<String>,
/// 是否返回实例系列(Category)信息。取值:
/// * **0**:不返回
/// * **1**:返回
#[setters(generate = true, strip_option)]
instance_level: Option<i32>,
/// 备用参数,无需配置。
#[setters(generate = true, strip_option)]
query_auto_renewal: Option<bool>,
/// 实例的连接地址。通过该连接地址查询对应的实例。
#[setters(generate = true, strip_option)]
connection_string: Option<String>,
/// 翻页凭证。取值为上一次调用**DescribeDBInstances**接口时返回的**NextToken**参数值。如果调用结果分多页展示,再次调用接口时传入该值便可以展示下一页的内容。
#[setters(generate = true, strip_option)]
next_token: Option<String>,
/// 每页记录数。取值:**1~100**。
///
/// 默认值:**30**。
/// >传入该参数,则**PageSize**和**PageNumber**参数不可用。
#[setters(generate = true, strip_option)]
max_results: Option<i32>,
/// 实例过滤条件参数及其值的JSON串。
#[setters(generate = true, strip_option)]
filter: Option<String>,
/// 实例的系列。取值:
/// - **Basic**:基础系列
/// - **HighAvailability**:高可用系列
/// - **cluster**:集群系列
/// - **serverless_basic**:Serverless
#[setters(generate = true, strip_option)]
category: Option<String>,
}
impl sealed::Bound for DescribeDBInstances {}
impl DescribeDBInstances {
pub fn new(region_id: impl Into<String>) -> Self {
Self {
client_token: None,
proxy_id: None,
engine: None,
zone_id: None,
resource_group_id: None,
db_instance_status: None,
expired: None,
search_key: None,
db_instance_id: None,
db_instance_type: None,
region_id: region_id.into(),
page_size: None,
page_number: None,
instance_network_type: None,
vpc_id: None,
v_switch_id: None,
db_instance_class: None,
engine_version: None,
pay_type: None,
connection_mode: None,
tags: None,
dedicated_host_group_id: None,
dedicated_host_id: None,
instance_level: None,
query_auto_renewal: None,
connection_string: None,
next_token: None,
max_results: None,
filter: None,
category: None,
}
}
}
impl crate::ToFormData for DescribeDBInstances {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DescribeDBInstances {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DescribeDBInstances";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DescribeDBInstancesResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(30);
if let Some(f) = &self.category {
params.push(("Category".into(), (f).into()));
}
if let Some(f) = &self.client_token {
params.push(("ClientToken".into(), (f).into()));
}
if let Some(f) = &self.connection_mode {
params.push(("ConnectionMode".into(), (f).into()));
}
if let Some(f) = &self.connection_string {
params.push(("ConnectionString".into(), (f).into()));
}
if let Some(f) = &self.db_instance_class {
params.push(("DBInstanceClass".into(), (f).into()));
}
if let Some(f) = &self.db_instance_id {
params.push(("DBInstanceId".into(), (f).into()));
}
if let Some(f) = &self.db_instance_status {
params.push(("DBInstanceStatus".into(), (f).into()));
}
if let Some(f) = &self.db_instance_type {
params.push(("DBInstanceType".into(), (f).into()));
}
if let Some(f) = &self.dedicated_host_group_id {
params.push(("DedicatedHostGroupId".into(), (f).into()));
}
if let Some(f) = &self.dedicated_host_id {
params.push(("DedicatedHostId".into(), (f).into()));
}
if let Some(f) = &self.engine {
params.push(("Engine".into(), (f).into()));
}
if let Some(f) = &self.engine_version {
params.push(("EngineVersion".into(), (f).into()));
}
if let Some(f) = &self.expired {
params.push(("Expired".into(), (f).into()));
}
if let Some(f) = &self.filter {
params.push(("Filter".into(), (f).into()));
}
if let Some(f) = &self.instance_level {
params.push(("InstanceLevel".into(), (f).into()));
}
if let Some(f) = &self.instance_network_type {
params.push(("InstanceNetworkType".into(), (f).into()));
}
if let Some(f) = &self.max_results {
params.push(("MaxResults".into(), (f).into()));
}
if let Some(f) = &self.next_token {
params.push(("NextToken".into(), (f).into()));
}
if let Some(f) = &self.page_number {
params.push(("PageNumber".into(), (f).into()));
}
if let Some(f) = &self.page_size {
params.push(("PageSize".into(), (f).into()));
}
if let Some(f) = &self.pay_type {
params.push(("PayType".into(), (f).into()));
}
if let Some(f) = &self.query_auto_renewal {
params.push(("QueryAutoRenewal".into(), (f).into()));
}
params.push(("RegionId".into(), (&self.region_id).into()));
if let Some(f) = &self.resource_group_id {
params.push(("ResourceGroupId".into(), (f).into()));
}
if let Some(f) = &self.search_key {
params.push(("SearchKey".into(), (f).into()));
}
if let Some(f) = &self.tags {
params.push(("Tags".into(), (f).into()));
}
if let Some(f) = &self.v_switch_id {
params.push(("VSwitchId".into(), (f).into()));
}
if let Some(f) = &self.vpc_id {
params.push(("VpcId".into(), (f).into()));
}
if let Some(f) = &self.zone_id {
params.push(("ZoneId".into(), (f).into()));
}
if let Some(f) = &self.proxy_id {
params.push(("proxyId".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于查询RDS实例所有规格的详情。
///
/// Argument of [Connection::list_classes()], returns [ListClassesResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct ListClasses {
/// 用于保证请求的幂等性,防止重复提交请求。由客户端生成该参数值,要保证在不同请求间唯一,最大值不超过64个ASCII字符,且该参数值中不能包含非ASCII字符。
#[setters(generate = true, strip_option)]
client_token: Option<String>,
/// 需要查询的实例商品码。
///
/// <props="china">
/// * **bards**:主实例按量付费
/// * **rds**:主实例包年包月
/// * **rords**:只读实例按量付费
/// * **rds\_rordspre\_public\_cn**:只读实例包年包月
/// </props>
///
/// <props="intl">
/// * **bards_intl**:主实例按量付费
/// * **rds_intl**:主实例包年包月
/// * **rords_intl**:只读实例按量付费
/// * **rds\_rordspre\_public_intl**:只读实例包年包月
/// </props>
commodity_code: String,
/// 实例ID。可调用DescribeDBInstances获取。
/// >查询只读实例规格列表,即**CommodityCode**参数中传入只读实例商品码时,本参数必传。
#[setters(generate = true, strip_option)]
db_instance_id: Option<String>,
/// 需要查询的订单类型,取值:
/// * **BUY**:新购。
/// * **UPGRADE**:变更配置。
/// * **RENEW**:续费。
/// * **CONVERT**:转换付费类型。
order_type: String,
/// 地域ID。可调用DescribeRegions获取。
/// >如果您使用的是阿里云国际站账号,此参数必传。
#[setters(generate = true, strip_option)]
region_id: Option<String>,
/// 数据库类型,取值:
/// * **MySQL**
/// * **SQLServer**
/// * **PostgreSQL**
/// * **MariaDB**
#[setters(generate = true, strip_option)]
engine: Option<String>,
}
impl sealed::Bound for ListClasses {}
impl ListClasses {
pub fn new(commodity_code: impl Into<String>, order_type: impl Into<String>) -> Self {
Self {
client_token: None,
commodity_code: commodity_code.into(),
db_instance_id: None,
order_type: order_type.into(),
region_id: None,
engine: None,
}
}
}
impl crate::ToFormData for ListClasses {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for ListClasses {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "ListClasses";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<ListClassesResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(6);
if let Some(f) = &self.client_token {
params.push(("ClientToken".into(), (f).into()));
}
params.push(("CommodityCode".into(), (&self.commodity_code).into()));
if let Some(f) = &self.db_instance_id {
params.push(("DBInstanceId".into(), (f).into()));
}
if let Some(f) = &self.engine {
params.push(("Engine".into(), (f).into()));
}
params.push(("OrderType".into(), (&self.order_type).into()));
if let Some(f) = &self.region_id {
params.push(("RegionId".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于通过包年包月实例的剩余可用时间查询RDS实例信息。
///
/// Argument of [Connection::describe_db_instances_by_expire_time()], returns [DescribeDBInstancesByExpireTimeResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DescribeDBInstancesByExpireTime {
/// 地域ID。可调用DescribeRegions获取。
#[setters(generate = true, strip_option)]
region_id: Option<String>,
/// 废弃参数,无需配置。
#[setters(generate = true, strip_option)]
proxy_id: Option<String>,
/// 实例剩余可用天数。取值:**0~180**。
#[setters(generate = true, strip_option)]
expire_period: Option<i32>,
/// 实例的过期状态,取值:
///
/// - **True**:已过期
/// - **False**:未过期
#[setters(generate = true, strip_option)]
expired: Option<bool>,
/// 每页记录数,取值:**1~100**。
///
/// 默认值:**30**。
#[setters(generate = true, strip_option)]
page_size: Option<i32>,
/// 页码,取值:大于**0**且不超过Integer类型的最大值。
///
/// 默认值:**1**。
#[setters(generate = true, strip_option)]
page_number: Option<i32>,
/// 查询绑定有该标签的实例,包括TagKey和TagValue。单次最多支持传入5组值,格式:`{"key1":"value1","key2":"value2"...}`。
#[setters(generate = true, strip_option)]
tags: Option<String>,
/// 资源组ID。可调用DescribeDBInstanceAttribute获取。
#[setters(generate = true, strip_option)]
resource_group_id: Option<String>,
}
impl sealed::Bound for DescribeDBInstancesByExpireTime {}
impl DescribeDBInstancesByExpireTime {
pub fn new() -> Self {
Self {
region_id: None,
proxy_id: None,
expire_period: None,
expired: None,
page_size: None,
page_number: None,
tags: None,
resource_group_id: None,
}
}
}
impl crate::ToFormData for DescribeDBInstancesByExpireTime {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DescribeDBInstancesByExpireTime {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DescribeDBInstancesByExpireTime";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DescribeDBInstancesByExpireTimeResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(8);
if let Some(f) = &self.expire_period {
params.push(("ExpirePeriod".into(), (f).into()));
}
if let Some(f) = &self.expired {
params.push(("Expired".into(), (f).into()));
}
if let Some(f) = &self.page_number {
params.push(("PageNumber".into(), (f).into()));
}
if let Some(f) = &self.page_size {
params.push(("PageSize".into(), (f).into()));
}
if let Some(f) = &self.region_id {
params.push(("RegionId".into(), (f).into()));
}
if let Some(f) = &self.resource_group_id {
params.push(("ResourceGroupId".into(), (f).into()));
}
if let Some(f) = &self.tags {
params.push(("Tags".into(), (f).into()));
}
if let Some(f) = &self.proxy_id {
params.push(("proxyId".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于查询所有RDS地域和可用区详情(包含已裁撤地域,请谨慎使用)。
///
/// Argument of [Connection::describe_regions()], returns [DescribeRegionsResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DescribeRegions {
/// 指定返回的**LocalName**参数的语言。取值:
/// * **zh-CN**:中文
/// * **en-US**:英文
///
/// 默认值:**en-US**
#[setters(generate = true, strip_option)]
accept_language: Option<String>,
}
impl sealed::Bound for DescribeRegions {}
impl DescribeRegions {
pub fn new() -> Self {
Self {
accept_language: None,
}
}
}
impl crate::ToFormData for DescribeRegions {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DescribeRegions {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DescribeRegions";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DescribeRegionsResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(1);
if let Some(f) = &self.accept_language {
params.push(("AcceptLanguage".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于查询目标RDS实例是否存在。
///
/// Argument of [Connection::check_instance_exist()], returns [CheckInstanceExistResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct CheckInstanceExist {
/// 实例ID。
db_instance_id: String,
}
impl sealed::Bound for CheckInstanceExist {}
impl CheckInstanceExist {
pub fn new(db_instance_id: impl Into<String>) -> Self {
Self {
db_instance_id: db_instance_id.into(),
}
}
}
impl crate::ToFormData for CheckInstanceExist {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for CheckInstanceExist {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "CheckInstanceExist";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<CheckInstanceExistResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(1);
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于查询RDS实例的可用性检测方式。
///
/// Argument of [Connection::describe_ha_diagnose_config()], returns [DescribeHADiagnoseConfigResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DescribeHADiagnoseConfig {
/// 实例ID。可调用DescribeDBInstances获取。
db_instance_id: String,
/// 地域ID。可调用DescribeRegions获取。
region_id: String,
}
impl sealed::Bound for DescribeHADiagnoseConfig {}
impl DescribeHADiagnoseConfig {
pub fn new(db_instance_id: impl Into<String>, region_id: impl Into<String>) -> Self {
Self {
db_instance_id: db_instance_id.into(),
region_id: region_id.into(),
}
}
}
impl crate::ToFormData for DescribeHADiagnoseConfig {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DescribeHADiagnoseConfig {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DescribeHADiagnoseConfig";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DescribeHADiagnoseConfigResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(2);
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
params.push(("RegionId".into(), (&self.region_id).into()));
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于查询RDS MySQL实例关联的分析型实例数量。
///
/// Argument of [Connection::describe_analyticdb_by_primary_db_instance()], returns [DescribeAnalyticdbByPrimaryDBInstanceResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DescribeAnalyticdbByPrimaryDBInstance {
/// 地域ID。可调用DescribeRegions获取。
region_id: String,
/// 实例ID。可调用DescribeDBInstances获取。
db_instance_id: String,
}
impl sealed::Bound for DescribeAnalyticdbByPrimaryDBInstance {}
impl DescribeAnalyticdbByPrimaryDBInstance {
pub fn new(region_id: impl Into<String>, db_instance_id: impl Into<String>) -> Self {
Self {
region_id: region_id.into(),
db_instance_id: db_instance_id.into(),
}
}
}
impl crate::ToFormData for DescribeAnalyticdbByPrimaryDBInstance {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DescribeAnalyticdbByPrimaryDBInstance {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DescribeAnalyticdbByPrimaryDBInstance";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DescribeAnalyticdbByPrimaryDBInstanceResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(2);
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
params.push(("RegionId".into(), (&self.region_id).into()));
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于查询RDS实例的权限状态。
///
/// Argument of [Connection::check_cloud_resource_authorized()], returns [CheckCloudResourceAuthorizedResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct CheckCloudResourceAuthorized {
/// 地域ID。可调用DescribeRegions获取。
#[setters(generate = true, strip_option)]
region_id: Option<String>,
/// 实例ID。可调用DescribeDBInstances获取。
#[setters(generate = true, strip_option)]
db_instance_id: Option<String>,
/// 目标地域ID。可调用DescribeRegions获取。
#[setters(generate = true, strip_option)]
target_region_id: Option<String>,
/// 资源组ID。
#[setters(generate = true, strip_option)]
resource_group_id: Option<String>,
}
impl sealed::Bound for CheckCloudResourceAuthorized {}
impl CheckCloudResourceAuthorized {
pub fn new() -> Self {
Self {
region_id: None,
db_instance_id: None,
target_region_id: None,
resource_group_id: None,
}
}
}
impl crate::ToFormData for CheckCloudResourceAuthorized {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for CheckCloudResourceAuthorized {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "CheckCloudResourceAuthorized";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<CheckCloudResourceAuthorizedResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(4);
if let Some(f) = &self.db_instance_id {
params.push(("DBInstanceId".into(), (f).into()));
}
if let Some(f) = &self.region_id {
params.push(("RegionId".into(), (f).into()));
}
if let Some(f) = &self.resource_group_id {
params.push(("ResourceGroupId".into(), (f).into()));
}
if let Some(f) = &self.target_region_id {
params.push(("TargetRegionId".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于释放RDS实例的外网连接地址。
///
/// Argument of [Connection::release_instance_connection()], returns [ReleaseInstanceConnectionResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct ReleaseInstanceConnection {
/// 实例ID。可调用DescribeDBInstances获取。
db_instance_id: String,
/// 当前的外网连接地址。
current_connection_string: String,
/// 实例的网络类型。取值:
/// - **0**:VPC网络
/// - **1**:经典网络
instance_network_type: String,
}
impl sealed::Bound for ReleaseInstanceConnection {}
impl ReleaseInstanceConnection {
pub fn new(
db_instance_id: impl Into<String>,
current_connection_string: impl Into<String>,
instance_network_type: impl Into<String>,
) -> Self {
Self {
db_instance_id: db_instance_id.into(),
current_connection_string: current_connection_string.into(),
instance_network_type: instance_network_type.into(),
}
}
}
impl crate::ToFormData for ReleaseInstanceConnection {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for ReleaseInstanceConnection {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "ReleaseInstanceConnection";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<ReleaseInstanceConnectionResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(3);
params.push((
"CurrentConnectionString".into(),
(&self.current_connection_string).into(),
));
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
params.push((
"InstanceNetworkType".into(),
(&self.instance_network_type).into(),
));
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于查询RDS SQL Server实例详情。
///
/// Argument of [Connection::describe_db_instance_detail()], returns [DescribeDBInstanceDetailResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DescribeDBInstanceDetail {
/// 用于保证请求的幂等性,防止重复提交请求。
/// > 由客户端生成该参数值,要保证在不同请求间唯一,最大值不超过64个ASCII字符,且该参数值中不能包含非ASCII字符。
#[setters(generate = true, strip_option)]
client_token: Option<String>,
/// 实例ID。可调用[DescribeDBInstances](~~26232~~)获取。
#[setters(generate = true, strip_option)]
db_instance_id: Option<String>,
/// 资源组ID。
#[setters(generate = true, strip_option)]
resource_group_id: Option<String>,
}
impl sealed::Bound for DescribeDBInstanceDetail {}
impl DescribeDBInstanceDetail {
pub fn new() -> Self {
Self {
client_token: None,
db_instance_id: None,
resource_group_id: None,
}
}
}
impl crate::ToFormData for DescribeDBInstanceDetail {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DescribeDBInstanceDetail {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DescribeDBInstanceDetail";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DescribeDBInstanceDetailResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(3);
if let Some(f) = &self.client_token {
params.push(("ClientToken".into(), (f).into()));
}
if let Some(f) = &self.db_instance_id {
params.push(("DBInstanceId".into(), (f).into()));
}
if let Some(f) = &self.resource_group_id {
params.push(("ResourceGroupId".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于按性能查询数据库实例。
///
/// Argument of [Connection::describe_db_instances_by_performance()], returns [DescribeDBInstancesByPerformanceResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DescribeDBInstancesByPerformance {
/// 用于保证请求的幂等性,防止重复提交请求。由客户端生成该参数值,要保证在不同请求间唯一,最大值不超过64个ASCII字符,且该参数值中不能包含非ASCII字符。
#[setters(generate = true, strip_option)]
client_token: Option<String>,
/// 代理模式ID。
#[setters(generate = true, strip_option)]
proxy_id: Option<String>,
/// 实例ID。
#[setters(generate = true, strip_option)]
db_instance_id: Option<String>,
/// 每页记录数,取值:**5**~**100**。
///
/// 默认值:**30**。
#[setters(generate = true, strip_option)]
page_size: Option<i32>,
/// 页码,取值:大于0且不超过Integer的最大值。
///
/// 默认值:**1**。
#[setters(generate = true, strip_option)]
page_number: Option<i32>,
/// 分类方法。
#[setters(generate = true, strip_option)]
sort_method: Option<String>,
/// 排序依据。
#[setters(generate = true, strip_option)]
sort_key: Option<String>,
/// 查询绑定有该标签的实例,包括TagKey和TagValue。格式:`{"key1":"value1"}`。
#[setters(generate = true, strip_option)]
tags: Option<String>,
/// 查询绑定有该标签Tag.1.key的实例。
#[setters(generate = true, strip_option)]
tag1_key: Option<String>,
/// 查询绑定有该标签Tag.2.key的实例。
#[setters(generate = true, strip_option)]
tag2_key: Option<String>,
/// 查询绑定有该标签Tag.3.key的实例。
#[setters(generate = true, strip_option)]
tag3_key: Option<String>,
/// 查询绑定有该标签Tag.4.key的实例。
#[setters(generate = true, strip_option)]
tag4_key: Option<String>,
/// 查询绑定有该标签Tag.5.key的实例。
#[setters(generate = true, strip_option)]
tag5_key: Option<String>,
/// 查询绑定有该标签Tag.1.value的实例。
#[setters(generate = true, strip_option)]
tag1_value: Option<String>,
/// 查询绑定有该标签Tag.2.value的实例。
#[setters(generate = true, strip_option)]
tag2_value: Option<String>,
/// 查询绑定有该标签Tag.3.value的实例。
#[setters(generate = true, strip_option)]
tag3_value: Option<String>,
/// 查询绑定有该标签Tag.4.value的实例。
#[setters(generate = true, strip_option)]
tag4_value: Option<String>,
/// 查询绑定有该标签Tag.5.value的实例。
#[setters(generate = true, strip_option)]
tag5_value: Option<String>,
/// 地域ID,您可以通过[DescribeRegions](~~610399~~)接口查询。
#[setters(generate = true, strip_option)]
region_id: Option<String>,
/// 资源组ID。
#[setters(generate = true, strip_option)]
resource_group_id: Option<String>,
}
impl sealed::Bound for DescribeDBInstancesByPerformance {}
impl DescribeDBInstancesByPerformance {
pub fn new() -> Self {
Self {
client_token: None,
proxy_id: None,
db_instance_id: None,
page_size: None,
page_number: None,
sort_method: None,
sort_key: None,
tags: None,
tag1_key: None,
tag2_key: None,
tag3_key: None,
tag4_key: None,
tag5_key: None,
tag1_value: None,
tag2_value: None,
tag3_value: None,
tag4_value: None,
tag5_value: None,
region_id: None,
resource_group_id: None,
}
}
}
impl crate::ToFormData for DescribeDBInstancesByPerformance {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DescribeDBInstancesByPerformance {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DescribeDBInstancesByPerformance";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DescribeDBInstancesByPerformanceResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(20);
if let Some(f) = &self.client_token {
params.push(("ClientToken".into(), (f).into()));
}
if let Some(f) = &self.db_instance_id {
params.push(("DBInstanceId".into(), (f).into()));
}
if let Some(f) = &self.page_number {
params.push(("PageNumber".into(), (f).into()));
}
if let Some(f) = &self.page_size {
params.push(("PageSize".into(), (f).into()));
}
if let Some(f) = &self.region_id {
params.push(("RegionId".into(), (f).into()));
}
if let Some(f) = &self.resource_group_id {
params.push(("ResourceGroupId".into(), (f).into()));
}
if let Some(f) = &self.sort_key {
params.push(("SortKey".into(), (f).into()));
}
if let Some(f) = &self.sort_method {
params.push(("SortMethod".into(), (f).into()));
}
if let Some(f) = &self.tag1_key {
params.push(("Tag.1.key".into(), (f).into()));
}
if let Some(f) = &self.tag1_value {
params.push(("Tag.1.value".into(), (f).into()));
}
if let Some(f) = &self.tag2_key {
params.push(("Tag.2.key".into(), (f).into()));
}
if let Some(f) = &self.tag2_value {
params.push(("Tag.2.value".into(), (f).into()));
}
if let Some(f) = &self.tag3_key {
params.push(("Tag.3.key".into(), (f).into()));
}
if let Some(f) = &self.tag3_value {
params.push(("Tag.3.value".into(), (f).into()));
}
if let Some(f) = &self.tag4_key {
params.push(("Tag.4.key".into(), (f).into()));
}
if let Some(f) = &self.tag4_value {
params.push(("Tag.4.value".into(), (f).into()));
}
if let Some(f) = &self.tag5_key {
params.push(("Tag.5.key".into(), (f).into()));
}
if let Some(f) = &self.tag5_value {
params.push(("Tag.5.value".into(), (f).into()));
}
if let Some(f) = &self.tags {
params.push(("Tags".into(), (f).into()));
}
if let Some(f) = &self.proxy_id {
params.push(("proxyId".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于查看克隆数据库实例。已停止维护:可以正常调用,但不再维护。
///
/// Argument of [Connection::describe_db_instances_for_clone()], returns [DescribeDBInstancesForCloneResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DescribeDBInstancesForClone {
/// 用于保证请求的幂等性,防止重复提交请求。由客户端生成该参数值,要保证在不同请求间唯一,最大值不超过64个ASCII字符,且该参数值中不能包含非ASCII字符。
#[setters(generate = true, strip_option)]
client_token: Option<String>,
/// 代理模式ID。
#[setters(generate = true, strip_option)]
proxy_id: Option<String>,
/// 数据库类型。取值:
/// - MySQL
/// - SQLServer
/// - PostgreSQL
/// - MariaDB
///
/// > 该值不填时,将默认返回所有类型的数据库实例。
#[setters(generate = true, strip_option)]
engine: Option<String>,
/// 可用区ID。
#[setters(generate = true, strip_option)]
zone_id: Option<String>,
/// 实例状态。取值请参见[实例状态表](~~26315~~)。
#[setters(generate = true, strip_option)]
db_instance_status: Option<String>,
/// 实例是否已过期。取值:
///
/// - **True**:已过期
/// - **False**:未过期
#[setters(generate = true, strip_option)]
expired: Option<String>,
/// 搜索关键词,可基于实例ID或者实例备注模糊搜索。
#[setters(generate = true, strip_option)]
search_key: Option<String>,
/// 实例ID。
#[setters(generate = true, strip_option)]
db_instance_id: Option<String>,
/// 实例类型,取值:
///
/// - **Primary**:主实例
/// - **Readonly**:只读实例
/// - **Guard**:灾备实例
/// - **Temp**:临时实例
///
/// 默认返回所有类型的实例。
#[setters(generate = true, strip_option)]
db_instance_type: Option<String>,
/// 地域ID。
region_id: String,
/// 每页记录数,取值:**1~100**。
///
/// 默认值:**30**。
#[setters(generate = true, strip_option)]
page_size: Option<i32>,
/// 页码。
#[setters(generate = true, strip_option)]
page_number: Option<i32>,
/// 实例的网络类型,取值:
///
/// - **Classic**:经典网络
/// - **VPC**:专有网络
#[setters(generate = true, strip_option)]
instance_network_type: Option<String>,
/// 专有网络ID。
#[setters(generate = true, strip_option)]
vpc_id: Option<String>,
/// 交换机ID。
#[setters(generate = true, strip_option)]
v_switch_id: Option<String>,
/// 实例规格。详情请参见[实例规格表](~~26312~~)。
#[setters(generate = true, strip_option)]
db_instance_class: Option<String>,
/// 数据库版本号。
#[setters(generate = true, strip_option)]
engine_version: Option<String>,
/// 数据库节点类型。取值:
/// - **Master**:主节点
/// - **Slave**:备节点
#[setters(generate = true, strip_option)]
node_type: Option<String>,
/// 实例的付费类型。取值:
///
/// - **Postpaid**:后付费(按量付费)
/// - **Prepaid**:预付费(包年包月)
///
/// 默认返回所有付费类型的实例。
#[setters(generate = true, strip_option)]
pay_type: Option<String>,
/// 实例的访问模式,取值:
///
/// - **Standard**:标准访问模式
/// - **Safe**:数据库代理模式
///
/// 默认返回所有访问模式下的实例。
#[setters(generate = true, strip_option)]
connection_mode: Option<String>,
/// 当前实例ID。
#[setters(generate = true, strip_option)]
current_instance_id: Option<String>,
/// 资源组ID。
#[setters(generate = true, strip_option)]
resource_group_id: Option<String>,
}
impl sealed::Bound for DescribeDBInstancesForClone {}
impl DescribeDBInstancesForClone {
pub fn new(region_id: impl Into<String>) -> Self {
Self {
client_token: None,
proxy_id: None,
engine: None,
zone_id: None,
db_instance_status: None,
expired: None,
search_key: None,
db_instance_id: None,
db_instance_type: None,
region_id: region_id.into(),
page_size: None,
page_number: None,
instance_network_type: None,
vpc_id: None,
v_switch_id: None,
db_instance_class: None,
engine_version: None,
node_type: None,
pay_type: None,
connection_mode: None,
current_instance_id: None,
resource_group_id: None,
}
}
}
impl crate::ToFormData for DescribeDBInstancesForClone {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DescribeDBInstancesForClone {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DescribeDBInstancesForClone";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DescribeDBInstancesForCloneResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(22);
if let Some(f) = &self.client_token {
params.push(("ClientToken".into(), (f).into()));
}
if let Some(f) = &self.connection_mode {
params.push(("ConnectionMode".into(), (f).into()));
}
if let Some(f) = &self.current_instance_id {
params.push(("CurrentInstanceId".into(), (f).into()));
}
if let Some(f) = &self.db_instance_class {
params.push(("DBInstanceClass".into(), (f).into()));
}
if let Some(f) = &self.db_instance_id {
params.push(("DBInstanceId".into(), (f).into()));
}
if let Some(f) = &self.db_instance_status {
params.push(("DBInstanceStatus".into(), (f).into()));
}
if let Some(f) = &self.db_instance_type {
params.push(("DBInstanceType".into(), (f).into()));
}
if let Some(f) = &self.engine {
params.push(("Engine".into(), (f).into()));
}
if let Some(f) = &self.engine_version {
params.push(("EngineVersion".into(), (f).into()));
}
if let Some(f) = &self.expired {
params.push(("Expired".into(), (f).into()));
}
if let Some(f) = &self.instance_network_type {
params.push(("InstanceNetworkType".into(), (f).into()));
}
if let Some(f) = &self.node_type {
params.push(("NodeType".into(), (f).into()));
}
if let Some(f) = &self.page_number {
params.push(("PageNumber".into(), (f).into()));
}
if let Some(f) = &self.page_size {
params.push(("PageSize".into(), (f).into()));
}
if let Some(f) = &self.pay_type {
params.push(("PayType".into(), (f).into()));
}
params.push(("RegionId".into(), (&self.region_id).into()));
if let Some(f) = &self.resource_group_id {
params.push(("ResourceGroupId".into(), (f).into()));
}
if let Some(f) = &self.search_key {
params.push(("SearchKey".into(), (f).into()));
}
if let Some(f) = &self.v_switch_id {
params.push(("VSwitchId".into(), (f).into()));
}
if let Some(f) = &self.vpc_id {
params.push(("VpcId".into(), (f).into()));
}
if let Some(f) = &self.zone_id {
params.push(("ZoneId".into(), (f).into()));
}
if let Some(f) = &self.proxy_id {
params.push(("proxyId".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于查询实例列表。
/// 已停止维护:可以正常调用,但不再维护。
///
/// Argument of [Connection::describe_db_instances_as_csv()], returns [DescribeDBInstancesAsCsvResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DescribeDBInstancesAsCsv {
/// 地域ID。可调用DescribeRegions获取。
region_id: String,
/// 实例ID。可调用DescribeDBInstances获取。
#[setters(generate = true, strip_option)]
db_instance_id: Option<String>,
/// 资源组ID。
#[setters(generate = true, strip_option)]
resource_group_id: Option<String>,
/// 废弃参数,无需配置。
#[setters(generate = true, strip_option)]
cached_async: Option<bool>,
/// 废弃参数,无需配置。
#[setters(generate = true, strip_option)]
export_key: Option<String>,
}
impl sealed::Bound for DescribeDBInstancesAsCsv {}
impl DescribeDBInstancesAsCsv {
pub fn new(region_id: impl Into<String>) -> Self {
Self {
region_id: region_id.into(),
db_instance_id: None,
resource_group_id: None,
cached_async: None,
export_key: None,
}
}
}
impl crate::ToFormData for DescribeDBInstancesAsCsv {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DescribeDBInstancesAsCsv {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DescribeDBInstancesAsCsv";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DescribeDBInstancesAsCsvResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(5);
if let Some(f) = &self.cached_async {
params.push(("CachedAsync".into(), (f).into()));
}
if let Some(f) = &self.db_instance_id {
params.push(("DBInstanceId".into(), (f).into()));
}
if let Some(f) = &self.export_key {
params.push(("ExportKey".into(), (f).into()));
}
params.push(("RegionId".into(), (&self.region_id).into()));
if let Some(f) = &self.resource_group_id {
params.push(("ResourceGroupId".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于修改RDS MySQL或RDS PostgreSQL实例升级小版本的方式。
///
/// Argument of [Connection::modify_db_instance_auto_upgrade_minor_version()], returns [ModifyDBInstanceAutoUpgradeMinorVersionResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct ModifyDBInstanceAutoUpgradeMinorVersion {
/// 用于保证请求的幂等性,防止重复提交请求。由客户端生成该参数值,要保证在不同请求间唯一,最大值不超过64个ASCII字符,且该参数值中不能包含非ASCII字符。
#[setters(generate = true, strip_option)]
client_token: Option<String>,
/// 实例ID。可调用DescribeDBInstances获取。
db_instance_id: String,
/// 实例升级小版本的方式,取值:
/// * **Auto**:自动升级小版本。
/// * **Manual**:不自动升级,仅在当前版本下线时才强制升级。
auto_upgrade_minor_version: String,
}
impl sealed::Bound for ModifyDBInstanceAutoUpgradeMinorVersion {}
impl ModifyDBInstanceAutoUpgradeMinorVersion {
pub fn new(
db_instance_id: impl Into<String>,
auto_upgrade_minor_version: impl Into<String>,
) -> Self {
Self {
client_token: None,
db_instance_id: db_instance_id.into(),
auto_upgrade_minor_version: auto_upgrade_minor_version.into(),
}
}
}
impl crate::ToFormData for ModifyDBInstanceAutoUpgradeMinorVersion {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for ModifyDBInstanceAutoUpgradeMinorVersion {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "ModifyDBInstanceAutoUpgradeMinorVersion";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<ModifyDBInstanceAutoUpgradeMinorVersionResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(3);
params.push((
"AutoUpgradeMinorVersion".into(),
(&self.auto_upgrade_minor_version).into(),
));
if let Some(f) = &self.client_token {
params.push(("ClientToken".into(), (f).into()));
}
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于查询RDS MySQL及RDS PostgreSQL大版本升级前检查的检查报告。
///
/// Argument of [Connection::describe_upgrade_major_version_precheck_task()], returns [DescribeUpgradeMajorVersionPrecheckTaskResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DescribeUpgradeMajorVersionPrecheckTask {
/// 实例ID。可调用DescribeDBInstances获取。
db_instance_id: String,
/// 表示大版本升级前,检查报告每页显示的记录数。
///
/// 取值范围:
/// - 30(默认值)
/// - 50
/// - 100
#[setters(generate = true, strip_option)]
page_size: Option<i32>,
/// 表示显示升级前检查报告的页码。
///
/// 取值范围:大于0且不超过Integer的最大值。默认值:1。
#[setters(generate = true, strip_option)]
page_number: Option<i32>,
/// 目标实例版本。必须大于当前实例版本。
#[setters(generate = true, strip_option)]
target_major_version: Option<String>,
/// 升级前检查任务ID,调用UpgradeDBInstanceMajorVersionPrecheck接口执行升级前检查后,从返回参数**TaskId**中获取。
#[setters(generate = true, strip_option)]
task_id: Option<i32>,
}
impl sealed::Bound for DescribeUpgradeMajorVersionPrecheckTask {}
impl DescribeUpgradeMajorVersionPrecheckTask {
pub fn new(db_instance_id: impl Into<String>) -> Self {
Self {
db_instance_id: db_instance_id.into(),
page_size: None,
page_number: None,
target_major_version: None,
task_id: None,
}
}
}
impl crate::ToFormData for DescribeUpgradeMajorVersionPrecheckTask {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DescribeUpgradeMajorVersionPrecheckTask {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DescribeUpgradeMajorVersionPrecheckTask";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DescribeUpgradeMajorVersionPrecheckTaskResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(5);
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
if let Some(f) = &self.page_number {
params.push(("PageNumber".into(), (f).into()));
}
if let Some(f) = &self.page_size {
params.push(("PageSize".into(), (f).into()));
}
if let Some(f) = &self.target_major_version {
params.push(("TargetMajorVersion".into(), (f).into()));
}
if let Some(f) = &self.task_id {
params.push(("TaskId".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于查询RDS PostgreSQL实例大版本升级的历史任务。
///
/// Argument of [Connection::describe_upgrade_major_version_tasks()], returns [DescribeUpgradeMajorVersionTasksResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DescribeUpgradeMajorVersionTasks {
/// 实例ID。可调用DescribeDBInstances获取。
db_instance_id: String,
/// 每页记录数。
///
/// 取值:**30**~**100**。
///
/// 默认值:**30**。
#[setters(generate = true, strip_option)]
page_size: Option<i32>,
/// 页码。
///
/// 取值:大于0且不超过Integer的最大值。
///
/// 默认值:**1**。
#[setters(generate = true, strip_option)]
page_number: Option<i32>,
/// 升级后的大版本号。取值:
/// * **10.0**
/// * **11.0**
/// * **12.0**
/// * **13.0**
/// * **14.0**
/// * **15.0**
#[setters(generate = true, strip_option)]
target_major_version: Option<String>,
/// 预留参数,无需配置。
#[setters(generate = true, strip_option)]
task_id: Option<i32>,
}
impl sealed::Bound for DescribeUpgradeMajorVersionTasks {}
impl DescribeUpgradeMajorVersionTasks {
pub fn new(db_instance_id: impl Into<String>) -> Self {
Self {
db_instance_id: db_instance_id.into(),
page_size: None,
page_number: None,
target_major_version: None,
task_id: None,
}
}
}
impl crate::ToFormData for DescribeUpgradeMajorVersionTasks {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DescribeUpgradeMajorVersionTasks {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DescribeUpgradeMajorVersionTasks";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DescribeUpgradeMajorVersionTasksResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(5);
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
if let Some(f) = &self.page_number {
params.push(("PageNumber".into(), (f).into()));
}
if let Some(f) = &self.page_size {
params.push(("PageSize".into(), (f).into()));
}
if let Some(f) = &self.target_major_version {
params.push(("TargetMajorVersion".into(), (f).into()));
}
if let Some(f) = &self.task_id {
params.push(("TaskId".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于升级RDS MySQL的数据库大版本。
///
/// Argument of [Connection::upgrade_db_instance_engine_version()], returns [UpgradeDBInstanceEngineVersionResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct UpgradeDBInstanceEngineVersion {
/// 用于保证请求的幂等性,防止重复提交请求。由客户端生成该参数值,要保证在不同请求间唯一,最大值不超过64个ASCII字符,且该参数值中不能包含非ASCII字符。
#[setters(generate = true, strip_option)]
client_token: Option<String>,
/// 实例ID。可调用DescribeDBInstances获取。
db_instance_id: String,
/// 目标数据库版本,取值:
/// * **8.0**
/// * **5.7**
/// * **5.6**
engine_version: String,
/// 生效时间,取值:
/// * **Immediate**(默认):立即生效。
/// * **MaintainTime**:在可运维时间段内生效,请参见ModifyDBInstanceMaintainTime。
#[setters(generate = true, strip_option)]
effective_time: Option<String>,
}
impl sealed::Bound for UpgradeDBInstanceEngineVersion {}
impl UpgradeDBInstanceEngineVersion {
pub fn new(db_instance_id: impl Into<String>, engine_version: impl Into<String>) -> Self {
Self {
client_token: None,
db_instance_id: db_instance_id.into(),
engine_version: engine_version.into(),
effective_time: None,
}
}
}
impl crate::ToFormData for UpgradeDBInstanceEngineVersion {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for UpgradeDBInstanceEngineVersion {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "UpgradeDBInstanceEngineVersion";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<UpgradeDBInstanceEngineVersionResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(4);
if let Some(f) = &self.client_token {
params.push(("ClientToken".into(), (f).into()));
}
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
if let Some(f) = &self.effective_time {
params.push(("EffectiveTime".into(), (f).into()));
}
params.push(("EngineVersion".into(), (&self.engine_version).into()));
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于升级RDS实例的内核小版本。
///
/// Argument of [Connection::upgrade_db_instance_kernel_version()], returns [UpgradeDBInstanceKernelVersionResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct UpgradeDBInstanceKernelVersion {
/// 实例ID。可调用DescribeDBInstances获取。
///
/// > * PostgreSQL实例的存储类型必须为**云盘**。高性能本地盘实例可以通过[重启实例](~~26230~~)接口重启,以自动升级到最新的小版本。
/// > * SQL Server实例仅2019版本支持小版本升级。
db_instance_id: String,
/// 升级时间,取值:
///
/// * **Immediate**(默认):立即生效。
/// * **MaintainTime**:在可运维时间段内生效,修改运维时间请参见ModifyDBInstanceMaintainTime。
/// * **SpecifyTime**:指定时间生效。
#[setters(generate = true, strip_option)]
upgrade_time: Option<String>,
/// 指定时间。格式:<i>yyyy-MM-dd</i>T<i>HH:mm:ss</i>Z(UTC时间)。
/// >**UpgradeTime**= **SpecifyTime**时传入此参数有效。
#[setters(generate = true, strip_option)]
switch_time: Option<String>,
/// 指定需要升级的数据库小版本号。格式:
/// * **PostgreSQL**:`rds_postgres_<大版本号>00_<小版本号>`。例如12版本的20200830:`rds_postgres_1200_20200830`。
/// * **MySQL**:`<实例版本>_<小版本号>`。例如`rds_20200229`、`xcluster_20200229`或`xcluster80_20200229`。其中,实例版本分为如下三种:
/// * **rds**:高可用系列或基础系列。
/// * **xcluster**:MySQL 5.7三节点企业系列。
/// * **xcluster80**:MySQL 8.0三节点企业系列。
/// * **SQLServer**:`<小版本号>`。例如`15.0.4073.23`。
///
/// 不传此参数则默认升级到最新的小版本。
/// > 小版本号请参见:[PostgreSQL小版本Release Notes](~~126002~~)、[MySQL小版本Release Notes](~~96060~~)、[SQL Server小版本Release Notes](~~213577~~)。
#[setters(generate = true, strip_option)]
target_minor_version: Option<String>,
}
impl sealed::Bound for UpgradeDBInstanceKernelVersion {}
impl UpgradeDBInstanceKernelVersion {
pub fn new(db_instance_id: impl Into<String>) -> Self {
Self {
db_instance_id: db_instance_id.into(),
upgrade_time: None,
switch_time: None,
target_minor_version: None,
}
}
}
impl crate::ToFormData for UpgradeDBInstanceKernelVersion {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for UpgradeDBInstanceKernelVersion {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "UpgradeDBInstanceKernelVersion";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<UpgradeDBInstanceKernelVersionResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(4);
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
if let Some(f) = &self.switch_time {
params.push(("SwitchTime".into(), (f).into()));
}
if let Some(f) = &self.target_minor_version {
params.push(("TargetMinorVersion".into(), (f).into()));
}
if let Some(f) = &self.upgrade_time {
params.push(("UpgradeTime".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于执行RDS MySQL及RDS PostgreSQL大版本升级前检查。
///
/// Argument of [Connection::upgrade_db_instance_major_version_precheck()], returns [UpgradeDBInstanceMajorVersionPrecheckResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct UpgradeDBInstanceMajorVersionPrecheck {
/// 实例ID。可调用DescribeDBInstances获取。
db_instance_id: String,
/// 目标实例版本,必须大于当前实例版本。
target_major_version: String,
/// 升级模式。取值:
///
/// - **zeroDownTimeUpgrade**:零停机。
/// - **inPlaceUpgrade**:本地升级。
/// - **greenBlueDeployment**:蓝绿部署。
#[setters(generate = true, strip_option)]
upgrade_mode: Option<String>,
}
impl sealed::Bound for UpgradeDBInstanceMajorVersionPrecheck {}
impl UpgradeDBInstanceMajorVersionPrecheck {
pub fn new(db_instance_id: impl Into<String>, target_major_version: impl Into<String>) -> Self {
Self {
db_instance_id: db_instance_id.into(),
target_major_version: target_major_version.into(),
upgrade_mode: None,
}
}
}
impl crate::ToFormData for UpgradeDBInstanceMajorVersionPrecheck {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for UpgradeDBInstanceMajorVersionPrecheck {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "UpgradeDBInstanceMajorVersionPrecheck";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<UpgradeDBInstanceMajorVersionPrecheckResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(3);
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
params.push((
"TargetMajorVersion".into(),
(&self.target_major_version).into(),
));
if let Some(f) = &self.upgrade_mode {
params.push(("UpgradeMode".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于发起RDS PostgreSQL实例大版本升级任务。
///
/// Argument of [Connection::upgrade_db_instance_major_version()], returns [UpgradeDBInstanceMajorVersionResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct UpgradeDBInstanceMajorVersion {
/// 升级后实例规格。CPU和内存配置必须大于等于原实例规格。当**UpgradeMode**(升级模式)取值为**inPlaceUpgrade**和**zeroDownTimeUpgrade**时,**无需配置**该参数。
///
/// 例如,原实例规格`pg.n2.small.2c`的CPU为1核,内存为2GB,可升级为`pg.n2.medium.2c`,CPU为2核,内存为4 GB。
///
/// > RDS PG的实例规格代码,请参见[RDS PostgreSQL主实例规格列表](~~276990~~)。
#[setters(generate = true, strip_option)]
db_instance_class: Option<String>,
/// 升级后实例存储空间。单位:GB。当**UpgradeMode**(升级模式)取值为**inPlaceUpgrade**和**zeroDownTimeUpgrade**时,**无需配置**该参数。
///
/// 取值范围:
/// - **ESSD PL1云盘**:20 GB ~ 3200 GB
/// - **ESSD PL2云盘**:500 GB ~ 3200 GB
/// - **ESSD PL3云盘**:1500 GB ~ 3200 GB
/// - **高性能云盘**:40 GB ~ 2000 GB
///
/// > 高性能本地盘实例升级大版本时,支持存储空间缩容。可选择的最小存储空间,请参见[升级数据库大版本](~~203309~~)。
#[setters(generate = true, strip_option)]
db_instance_storage: Option<i32>,
/// 计费方式。固定配置为按量付费,取值Postpaid。
///
///
/// > 升级后如果需要变更实例的计费方式,请参见[按量付费转包年包月](~~96743~~)。
pay_type: String,
/// 升级后实例网络类型。固定配置为VPC,当前只支持专有网络实例进行大版本升级。
///
/// 如果网络类型为经典网络,请先切换为专有网络。关于如何查看或切换网络类型,请参见[切换网络类型](~~96761~~)。
#[setters(generate = true, strip_option)]
instance_network_type: Option<String>,
/// 该参数与SwitchOver配合使用,只有**SwitchOver**参数取值为**true**时有效。表示割接时间。
///
/// 取值范围:
/// - **Immediate**:立即生效。
/// - **MaintainTime**:在可运维时间段内生效,可调用ModifyDBInstanceMaintainTime接口修改可运维时间段。
#[setters(generate = true, strip_option)]
switch_time_mode: Option<String>,
/// 预留参数,无需配置。
#[setters(generate = true, strip_option)]
switch_time: Option<String>,
/// 割接配置,根据实际需求选择是否将流量切换到新版本实例上。
///
/// 取值范围:
///
/// - **true**:割接,自动切换。此选项一般用于在确认业务可以稳定运行在新版本之后执行正式升级。
/// - **false**:不割接,不自动切换。此选项一般用于正式升级之前测试当前业务在新版本中的兼容性。
///
/// > - 如果选择了割接:
/// > - 割接后无法回退,请谨慎选择。
/// > - 切换过程中,原实例会被变为只读,业务无法写入,请务必在业务低峰期进行。
/// > - 如果原实例中创建了只读实例,则无法选择割接。只能通过不割接升级实例,且原只读实例不会被克隆。升级完成后,您需要在新版本实例中另行创建PostgreSQL只读实例。
/// > - 如果选择了不割接:
/// > - 迁移过程中,原实例的业务不会受到影响。
/// > - 如需通过不割接升级实例,需在迁移完成后把应用程序中的数据库连接地址改为新实例的连接地址。如何查看连接地址,请参见[查看或修改内外网地址和端口](~~96788~~)。
#[setters(generate = true, strip_option)]
switch_over: Option<String>,
/// 选择在哪个时间点对数据库执行统计信息收集。
/// - **Before**:表示割接前收集,可以保证业务稳定性。如果实例数据量太大可能会导致升级时间较久。
/// - **After**:表示割接后收集,实例升级速度较快。升级后访问未生成统计信息的表可能导致执行计划不准确,业务高峰期还可能导致数据库宕机。
///
/// > 对于不割接场景,割接前收集表示新实例开放读写前收集,割接后收集表示新实例开放读写后收集。
#[setters(generate = true, strip_option)]
collect_stat_mode: Option<String>,
/// 升级后实例目标大版本。必须与执行升级前检查时设置的目标版本一致。
///
/// > 可通过调用UpgradeDBInstanceMajorVersionPrecheck接口执行大版本升级前检查。
#[setters(generate = true, strip_option)]
target_major_version: Option<String>,
/// 原实例ID。
#[setters(generate = true, strip_option)]
db_instance_id: Option<String>,
/// VPC ID。当**UpgradeMode**(升级模式)取值为**inPlaceUpgrade**和**zeroDownTimeUpgrade**时,**无需配置**该参数。
///
/// 可以通过DescribeDBInstanceAttribute接口查看原实例的VPC ID。
#[setters(generate = true, strip_option)]
vpc_id: Option<String>,
/// 目标实例交换机ID。当**UpgradeMode**(升级模式)取值为**inPlaceUpgrade**和**zeroDownTimeUpgrade**时时,**无需配置**该参数。
/// - 当原实例为基础系列实例时,配置目标实例交换机ID。
/// - 当原实例为高可用系列实例时,可以配置目标主备实例交换机ID,使用英文逗号(,)分隔。
///
/// > 配置的目标实例交换机需要与原实例处于同一可用区。可调用DescribeVSwitches接口查询获取。
#[setters(generate = true, strip_option)]
v_switch_id: Option<String>,
/// 无需配置,表示目标实例的内网IP。系统默认通过VPCId和vSwitchId自动分配。
#[setters(generate = true, strip_option)]
private_ip_address: Option<String>,
/// 预留参数,无需配置。
#[setters(generate = true, strip_option)]
used_time: Option<String>,
/// 预留参数,无需配置。
#[setters(generate = true, strip_option)]
period: Option<String>,
/// 表示升级后实例的存储类型。
///
/// 取值范围:
/// - **cloud_ssd**:SSD云盘
/// - **cloud_essd**:ESSD PL1云盘
/// - **cloud_essd2**:ESSD PL2云盘
/// - **cloud_essd3**:ESSD PL3云盘
/// - **general_essd**:高性能云盘
///
///
/// 版本升级功能基于云盘快照,当前升级后支持选择的存储类型如下。
/// - 当原实例为SSD云盘时,可选SSD云盘。
/// - 当原实例为ESSD云盘时,可选ESSD PL1云盘、ESSD PL2 云盘、ESSD PL3 云盘、高性能云盘。
/// - 当原实例为高性能本地盘时,可选ESSD PL1云盘、ESSD PL2 云盘、ESSD PL3 云盘、高性能云盘。
#[setters(generate = true, strip_option)]
db_instance_storage_type: Option<String>,
/// 目标主可用区ID。当**UpgradeMode**(升级模式)取值为**inPlaceUpgrade**和**zeroDownTimeUpgrade**时,**无需配置**该参数。
///
/// 可以通过DescribeRegions接口查看可用区ID。
///
/// RDS PostgreSQL支持升级后将新的实例配置到与原实例同一地域的其他可用区。
#[setters(generate = true, strip_option)]
zone_id: Option<String>,
/// 仅当原实例为高可用系列时,该参数可配置,表示目标实例备可用区ID。当**UpgradeMode**(升级模式)取值为**inPlaceUpgrade**和**zeroDownTimeUpgrade**时,**无需配置**该参数。
///
/// RDS PostgreSQL支持升级后将新的备实例配置到与原实例同一地域的其他可用区。
///
/// 可以通过DescribeRegions接口查看可用区ID。
#[setters(generate = true, strip_option)]
zone_id_slave1: Option<String>,
/// 预留参数,无需配置。
#[setters(generate = true, strip_option)]
zone_id_slave2: Option<String>,
/// 升级模式。当**SwitchOver**(割接配置)取值为**true**时,需要配置该参数。取值:
///
/// - **inPlaceUpgrade**:本地升级。大版本升级任务将在原实例上进行,不会创建新版本实例。升级后的原实例大版本提升,并将继承原有的订单、实例名称、标签、云监控报警规则及备份规则。
/// - **blueGreenDeployment**:蓝绿部署。大版本升级会保留原实例,并创建一个新版本的实例,新实例在创建中不收费,创建成功后将会产生费用,并且计费方式可能会发生变化。升级完成后,原实例和新实例将同时产生费用,且新实例暂不享受原实例的优惠。
/// - **zeroDownTimeUpgrade**:零停机。系统采用pg_upgrade将原实例升级至目标版本,并通过原生逻辑复制实现增量更新。升级过程中支持主动切换,并可在切换前对高版本实例进行验证;在升级开始至主动切换前,实例可保持正常的读写操作;在切换过程中,实例的只读时间为秒级。
#[setters(generate = true, strip_option)]
upgrade_mode: Option<String>,
#[setters(generate = true, strip_option)]
custom_extra_info: Option<String>,
#[setters(generate = true, strip_option)]
allow_ddl: Option<bool>,
}
impl sealed::Bound for UpgradeDBInstanceMajorVersion {}
impl UpgradeDBInstanceMajorVersion {
pub fn new(pay_type: impl Into<String>) -> Self {
Self {
db_instance_class: None,
db_instance_storage: None,
pay_type: pay_type.into(),
instance_network_type: None,
switch_time_mode: None,
switch_time: None,
switch_over: None,
collect_stat_mode: None,
target_major_version: None,
db_instance_id: None,
vpc_id: None,
v_switch_id: None,
private_ip_address: None,
used_time: None,
period: None,
db_instance_storage_type: None,
zone_id: None,
zone_id_slave1: None,
zone_id_slave2: None,
upgrade_mode: None,
custom_extra_info: None,
allow_ddl: None,
}
}
}
impl crate::ToFormData for UpgradeDBInstanceMajorVersion {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for UpgradeDBInstanceMajorVersion {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "UpgradeDBInstanceMajorVersion";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<UpgradeDBInstanceMajorVersionResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(22);
if let Some(f) = &self.allow_ddl {
params.push(("AllowDDL".into(), (f).into()));
}
if let Some(f) = &self.collect_stat_mode {
params.push(("CollectStatMode".into(), (f).into()));
}
if let Some(f) = &self.custom_extra_info {
params.push(("CustomExtraInfo".into(), (f).into()));
}
if let Some(f) = &self.db_instance_class {
params.push(("DBInstanceClass".into(), (f).into()));
}
if let Some(f) = &self.db_instance_id {
params.push(("DBInstanceId".into(), (f).into()));
}
if let Some(f) = &self.db_instance_storage {
params.push(("DBInstanceStorage".into(), (f).into()));
}
if let Some(f) = &self.db_instance_storage_type {
params.push(("DBInstanceStorageType".into(), (f).into()));
}
if let Some(f) = &self.instance_network_type {
params.push(("InstanceNetworkType".into(), (f).into()));
}
params.push(("PayType".into(), (&self.pay_type).into()));
if let Some(f) = &self.period {
params.push(("Period".into(), (f).into()));
}
if let Some(f) = &self.private_ip_address {
params.push(("PrivateIpAddress".into(), (f).into()));
}
if let Some(f) = &self.switch_over {
params.push(("SwitchOver".into(), (f).into()));
}
if let Some(f) = &self.switch_time {
params.push(("SwitchTime".into(), (f).into()));
}
if let Some(f) = &self.switch_time_mode {
params.push(("SwitchTimeMode".into(), (f).into()));
}
if let Some(f) = &self.target_major_version {
params.push(("TargetMajorVersion".into(), (f).into()));
}
if let Some(f) = &self.upgrade_mode {
params.push(("UpgradeMode".into(), (f).into()));
}
if let Some(f) = &self.used_time {
params.push(("UsedTime".into(), (f).into()));
}
if let Some(f) = &self.vpc_id {
params.push(("VPCId".into(), (f).into()));
}
if let Some(f) = &self.v_switch_id {
params.push(("VSwitchId".into(), (f).into()));
}
if let Some(f) = &self.zone_id {
params.push(("ZoneId".into(), (f).into()));
}
if let Some(f) = &self.zone_id_slave1 {
params.push(("ZoneIdSlave1".into(), (f).into()));
}
if let Some(f) = &self.zone_id_slave2 {
params.push(("ZoneIdSlave2".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于为RDS实例申请外网连接地址。
///
/// Argument of [Connection::allocate_instance_public_connection()], returns [AllocateInstancePublicConnectionResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct AllocateInstancePublicConnection {
/// 实例ID。可调用DescribeDBInstances获取。
db_instance_id: String,
/// 外网连接地址的前缀。完整外网连接地址为:`前缀.引擎名.rds.aliyuncs.com`。例如`test1234.mysql.rds.aliyuncs.com`。
///
/// > 长度5\~40,不能包含汉字和非法字符(\~!#%^&*=+|{};:'",<>/?),建议由字母、数字、短横线(-)组成。
connection_string_prefix: String,
/// 外网连接端口,取值:**1000~5999**。
port: String,
/// Babelfish for RDS PostgreSQL TDS端口号。
/// > 该参数仅适用于RDS PostgreSQL实例,Babelfish for RDS PostgreSQL的更多介绍,请参见[Babelfish简介](~~428613~~)。
#[setters(generate = true, strip_option)]
babelfish_port: Option<String>,
/// 专属集群MySQL通用版实例所属的组名。
#[setters(generate = true, strip_option)]
general_group_name: Option<String>,
/// PgBouncer端口。
/// > 该参数仅支持PostgreSQL实例。
#[setters(generate = true, strip_option)]
pg_bouncer_port: Option<String>,
}
impl sealed::Bound for AllocateInstancePublicConnection {}
impl AllocateInstancePublicConnection {
pub fn new(
db_instance_id: impl Into<String>,
connection_string_prefix: impl Into<String>,
port: impl Into<String>,
) -> Self {
Self {
db_instance_id: db_instance_id.into(),
connection_string_prefix: connection_string_prefix.into(),
port: port.into(),
babelfish_port: None,
general_group_name: None,
pg_bouncer_port: None,
}
}
}
impl crate::ToFormData for AllocateInstancePublicConnection {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for AllocateInstancePublicConnection {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "AllocateInstancePublicConnection";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<AllocateInstancePublicConnectionResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(6);
if let Some(f) = &self.babelfish_port {
params.push(("BabelfishPort".into(), (f).into()));
}
params.push((
"ConnectionStringPrefix".into(),
(&self.connection_string_prefix).into(),
));
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
if let Some(f) = &self.general_group_name {
params.push(("GeneralGroupName".into(), (f).into()));
}
if let Some(f) = &self.pg_bouncer_port {
params.push(("PGBouncerPort".into(), (f).into()));
}
params.push(("Port".into(), (&self.port).into()));
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于释放实例的外网连接地址。
///
/// Argument of [Connection::release_instance_public_connection()], returns [ReleaseInstancePublicConnectionResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct ReleaseInstancePublicConnection {
/// 实例ID。可调用DescribeDBInstances获取。
db_instance_id: String,
/// 外网连接地址。可调用DescribeDBInstanceNetInfo获取。
current_connection_string: String,
}
impl sealed::Bound for ReleaseInstancePublicConnection {}
impl ReleaseInstancePublicConnection {
pub fn new(
db_instance_id: impl Into<String>,
current_connection_string: impl Into<String>,
) -> Self {
Self {
db_instance_id: db_instance_id.into(),
current_connection_string: current_connection_string.into(),
}
}
}
impl crate::ToFormData for ReleaseInstancePublicConnection {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for ReleaseInstancePublicConnection {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "ReleaseInstancePublicConnection";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<ReleaseInstancePublicConnectionResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(2);
params.push((
"CurrentConnectionString".into(),
(&self.current_connection_string).into(),
));
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于管理实例的连接地址和端口。
///
/// Argument of [Connection::modify_db_instance_connection_string()], returns [ModifyDBInstanceConnectionStringResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct ModifyDBInstanceConnectionString {
/// 实例ID。可调用DescribeDBInstances获取。
db_instance_id: String,
/// 实例当前的某个连接地址,可以是内外网连接地址,或者混访模式下的经典网络连接地址。
/// >不支持修改读写分离连接地址。
current_connection_string: String,
/// 目标连接地址的前缀,即只能修改**CurrentConnectionString**参数的前缀部分。
/// >长度8~64,不能包含汉字和非法字符(~!#%^&*=+\|{};:'",<>/?),建议由字母、数字、短横线(-)组成。
connection_string_prefix: String,
/// 目标端口。
port: String,
/// Babelfish for RDS PostgreSQL TDS端口号。
/// > 该参数仅适用于RDS PostgreSQL实例,Babelfish for RDS PostgreSQL的更多介绍,请参见[Babelfish简介](~~428613~~)。
#[setters(generate = true, strip_option)]
babelfish_port: Option<String>,
/// 专属集群MySQL通用版实例所属的组名。
#[setters(generate = true, strip_option)]
general_group_name: Option<String>,
/// PgBouncer端口号。
/// > 该参数仅适用于RDS PostgreSQL实例,如果开启了PgBouncer,则支持修改PgBouncer端口号。
#[setters(generate = true, strip_option)]
pg_bouncer_port: Option<String>,
/// 需要交换连接地址的目标RDS PostgreSQL实例ID。
///
/// > 该参数仅支持RDS PostgreSQL实例。
#[setters(generate = true, strip_option)]
target_db_instance_id: Option<String>,
/// 交换连接地址时是否保留虚拟IP地址(VIP)。
///
/// - **true**:保留VIP。
/// - **false**(默认值):不保留VIP。
///
/// > 该参数仅支持RDS PostgreSQL实例。
#[setters(generate = true, strip_option)]
retain_vip: Option<bool>,
}
impl sealed::Bound for ModifyDBInstanceConnectionString {}
impl ModifyDBInstanceConnectionString {
pub fn new(
db_instance_id: impl Into<String>,
current_connection_string: impl Into<String>,
connection_string_prefix: impl Into<String>,
port: impl Into<String>,
) -> Self {
Self {
db_instance_id: db_instance_id.into(),
current_connection_string: current_connection_string.into(),
connection_string_prefix: connection_string_prefix.into(),
port: port.into(),
babelfish_port: None,
general_group_name: None,
pg_bouncer_port: None,
target_db_instance_id: None,
retain_vip: None,
}
}
}
impl crate::ToFormData for ModifyDBInstanceConnectionString {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for ModifyDBInstanceConnectionString {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "ModifyDBInstanceConnectionString";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<ModifyDBInstanceConnectionStringResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(9);
if let Some(f) = &self.babelfish_port {
params.push(("BabelfishPort".into(), (f).into()));
}
params.push((
"ConnectionStringPrefix".into(),
(&self.connection_string_prefix).into(),
));
params.push((
"CurrentConnectionString".into(),
(&self.current_connection_string).into(),
));
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
if let Some(f) = &self.general_group_name {
params.push(("GeneralGroupName".into(), (f).into()));
}
if let Some(f) = &self.pg_bouncer_port {
params.push(("PGBouncerPort".into(), (f).into()));
}
params.push(("Port".into(), (&self.port).into()));
if let Some(f) = &self.retain_vip {
params.push(("RetainVip".into(), (f).into()));
}
if let Some(f) = &self.target_db_instance_id {
params.push(("TargetDBInstanceId".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于修改混访模式下经典网络地址的过期时间。
///
/// Argument of [Connection::modify_db_instance_network_expire_time()], returns [ModifyDBInstanceNetworkExpireTimeResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct ModifyDBInstanceNetworkExpireTime {
/// 实例ID。可调用DescribeDBInstances获取。
db_instance_id: String,
///
/// 要延期的经典网络连接地址,经典网络连接地址有两种:
/// * 经典网络内网地址
/// * 经典网络读写分离地址
connection_string: String,
/// 经典网络连接地址保留天数,取值:**1~120**,单位:天。
classic_expired_days: i32,
}
impl sealed::Bound for ModifyDBInstanceNetworkExpireTime {}
impl ModifyDBInstanceNetworkExpireTime {
pub fn new(
db_instance_id: impl Into<String>,
connection_string: impl Into<String>,
classic_expired_days: impl Into<i32>,
) -> Self {
Self {
db_instance_id: db_instance_id.into(),
connection_string: connection_string.into(),
classic_expired_days: classic_expired_days.into(),
}
}
}
impl crate::ToFormData for ModifyDBInstanceNetworkExpireTime {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for ModifyDBInstanceNetworkExpireTime {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "ModifyDBInstanceNetworkExpireTime";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<ModifyDBInstanceNetworkExpireTimeResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(3);
params.push((
"ClassicExpiredDays".into(),
(&self.classic_expired_days).into(),
));
params.push(("ConnectionString".into(), (&self.connection_string).into()));
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于切换经典网络实例的内外网地址。
///
/// Argument of [Connection::switch_db_instance_net_type()], returns [SwitchDBInstanceNetTypeResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct SwitchDBInstanceNetType {
/// 用于保证请求的幂等性,防止重复提交请求。由客户端生成该参数值,要保证在不同请求间唯一,最大值不超过64个ASCII字符,且该参数值中不能包含非ASCII字符。
#[setters(generate = true, strip_option)]
client_token: Option<String>,
/// 实例ID。可调用DescribeDBInstances获取。
db_instance_id: String,
/// 自定义连接地址的前辍。由字母,数字组成,小写字母开头,8~64个字符。完整连接地址为:前缀.引擎名.rds.aliyuncs.com。例如test1234.mysql.rds.aliyuncs.com。
connection_string_prefix: String,
/// 端口号,取值:**3001~3999**。
#[setters(generate = true, strip_option)]
port: Option<String>,
/// 连接地址类型,取值:
/// * **Normal**:普通连接
/// * **ReadWriteSplitting**:读写分离连接
///
/// 默认返回所有连接。
#[setters(generate = true, strip_option)]
connection_string_type: Option<String>,
}
impl sealed::Bound for SwitchDBInstanceNetType {}
impl SwitchDBInstanceNetType {
pub fn new(
db_instance_id: impl Into<String>,
connection_string_prefix: impl Into<String>,
) -> Self {
Self {
client_token: None,
db_instance_id: db_instance_id.into(),
connection_string_prefix: connection_string_prefix.into(),
port: None,
connection_string_type: None,
}
}
}
impl crate::ToFormData for SwitchDBInstanceNetType {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for SwitchDBInstanceNetType {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "SwitchDBInstanceNetType";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<SwitchDBInstanceNetTypeResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(5);
if let Some(f) = &self.client_token {
params.push(("ClientToken".into(), (f).into()));
}
params.push((
"ConnectionStringPrefix".into(),
(&self.connection_string_prefix).into(),
));
if let Some(f) = &self.connection_string_type {
params.push(("ConnectionStringType".into(), (f).into()));
}
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
if let Some(f) = &self.port {
params.push(("Port".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于将经典网络的RDS实例切换为VPC网络。
///
/// Argument of [Connection::modify_db_instance_network_type()], returns [ModifyDBInstanceNetworkTypeResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct ModifyDBInstanceNetworkType {
/// 实例ID。可调用DescribeDBInstances获取。
db_instance_id: String,
/// 是否保留经典网络地址,取值:
/// * **True**:保留
/// * **False**(默认):不保留
#[setters(generate = true, strip_option)]
retain_classic: Option<String>,
/// 经典网络地址保留的天数,取值**1-120**,单位:天。默认值:**7**。
/// >若传入参数**RetainClassic**=**True**,则该参数必传。
#[setters(generate = true, strip_option)]
classic_expired_days: Option<String>,
/// 目标网络类型,取值固定为**VPC**:专有网络。
instance_network_type: String,
/// 读写分离的经典网络地址保留的天数,取值**1-120**,单位:天。默认值:**7**。
/// >当实例存在经典网络类型的读写分离地址,且**RetainClassic**=**True**,本参数有效。
#[setters(generate = true, strip_option)]
read_write_splitting_classic_expired_days: Option<i32>,
/// VPC ID。
#[setters(generate = true, strip_option)]
vpc_id: Option<String>,
/// 交换机ID,若传入**VPCId**,则该参数必传。
#[setters(generate = true, strip_option)]
v_switch_id: Option<String>,
/// 设置实例的内网IP,需要在指定交换机的IP地址范围内。系统默认通过**VPCId**和**VSwitchId**自动分配。
#[setters(generate = true, strip_option)]
private_ip_address: Option<String>,
/// 设置实例的内网读写分离地址的IP,需要在指定交换机的IP地址范围内。系统默认通过**VPCId**和**VSwitchId**自动分配。
///
/// >当前实例存在经典网络类型的读写分离地址时,该值有效。
#[setters(generate = true, strip_option)]
read_write_splitting_private_ip_address: Option<String>,
}
impl sealed::Bound for ModifyDBInstanceNetworkType {}
impl ModifyDBInstanceNetworkType {
pub fn new(
db_instance_id: impl Into<String>,
instance_network_type: impl Into<String>,
) -> Self {
Self {
db_instance_id: db_instance_id.into(),
retain_classic: None,
classic_expired_days: None,
instance_network_type: instance_network_type.into(),
read_write_splitting_classic_expired_days: None,
vpc_id: None,
v_switch_id: None,
private_ip_address: None,
read_write_splitting_private_ip_address: None,
}
}
}
impl crate::ToFormData for ModifyDBInstanceNetworkType {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for ModifyDBInstanceNetworkType {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "ModifyDBInstanceNetworkType";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<ModifyDBInstanceNetworkTypeResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(9);
if let Some(f) = &self.classic_expired_days {
params.push(("ClassicExpiredDays".into(), (f).into()));
}
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
params.push((
"InstanceNetworkType".into(),
(&self.instance_network_type).into(),
));
if let Some(f) = &self.private_ip_address {
params.push(("PrivateIpAddress".into(), (f).into()));
}
if let Some(f) = &self.read_write_splitting_classic_expired_days {
params.push(("ReadWriteSplittingClassicExpiredDays".into(), (f).into()));
}
if let Some(f) = &self.read_write_splitting_private_ip_address {
params.push(("ReadWriteSplittingPrivateIpAddress".into(), (f).into()));
}
if let Some(f) = &self.retain_classic {
params.push(("RetainClassic".into(), (f).into()));
}
if let Some(f) = &self.vpc_id {
params.push(("VPCId".into(), (f).into()));
}
if let Some(f) = &self.v_switch_id {
params.push(("VSwitchId".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于切换RDS实例的专有网络VPC和交换机。
///
/// Argument of [Connection::switch_db_instance_vpc()], returns [SwitchDBInstanceVpcResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct SwitchDBInstanceVpc {
/// 实例ID。可调用DescribeDBInstances获取。
db_instance_id: String,
/// VPC ID。
///
/// >与RDS实例需属于同一地域。
vpc_id: String,
/// 交换机ID。
///
/// > 与RDS实例需属于同一可用区。
v_switch_id: String,
/// 指定实例的私有IP地址,必须在**VSwitchId**参数中指定的交换机的网段范围内。
/// > 您可以调用DescribeVSwitches查询目标交换机的网段。
#[setters(generate = true, strip_option)]
private_ip_address: Option<String>,
}
impl sealed::Bound for SwitchDBInstanceVpc {}
impl SwitchDBInstanceVpc {
pub fn new(
db_instance_id: impl Into<String>,
vpc_id: impl Into<String>,
v_switch_id: impl Into<String>,
) -> Self {
Self {
db_instance_id: db_instance_id.into(),
vpc_id: vpc_id.into(),
v_switch_id: v_switch_id.into(),
private_ip_address: None,
}
}
}
impl crate::ToFormData for SwitchDBInstanceVpc {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for SwitchDBInstanceVpc {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "SwitchDBInstanceVpc";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<SwitchDBInstanceVpcResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(4);
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
if let Some(f) = &self.private_ip_address {
params.push(("PrivateIpAddress".into(), (f).into()));
}
params.push(("VPCId".into(), (&self.vpc_id).into()));
params.push(("VSwitchId".into(), (&self.v_switch_id).into()));
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于修改RDS实例的配置项。
///
/// Argument of [Connection::modify_db_instance_config()], returns [ModifyDBInstanceConfigResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct ModifyDBInstanceConfig {
/// 实例ID。可调用DescribeDBInstances获取。
db_instance_id: String,
/// 待修改的配置项名称,配合ConfigValue使用。
/// <details>
/// <summary>RDS PostgreSQL配置项</summary>
///
/// - **pgbouncer**:修改PgBouncer功能。
/// - **encryptionKey**:修改云盘加密功能。
/// - **duckdb_create_databases**: 批量配置主实例数据库为DuckDB列存库。
/// - **duckdb_prepare_dependency**: 一键配置主实例使其参数、内核小版本满足创建DuckDB分析实例的[前提条件](~~2977241~~)。如果主实例已创建了只读实例,会将只读实例同步修改。
/// - **enable_db_visible_by_connect_rls**: 实例开启 CONNECT RLS 控制数据库可见性。
/// - **set_db_visible_by_connect_rls**: 数据库开启 CONNECT RLS 控制数据库可见性,只有实例开启 CONNECT RLS 后才可调用。
///
/// </details>
///
/// <details>
/// <summary>RDS SQL Server配置项</summary>
///
/// <props="intl">
///
/// - **clear_errorlog**:清理错误日志。
/// - **encryptionKey**:修改云盘加密功能。Serverless实例和共享规格实例暂不支持开启该功能。
///
/// </props>
///
/// <props="china">
///
///
/// - **backup_recovery_model**:开启简单恢复模式功能。仅基础系列实例支持开启,**该功能开启后不支持关闭**。
/// - **clear_errorlog**:清理错误日志。
/// - **encryptionKey**:修改云盘加密功能。Serverless实例和共享规格实例暂不支持开启该功能。
/// </props>
///
/// </details>
config_name: String,
/// 待修改配置项的取值,配合ConfigName使用。
///
/// <details>
/// <summary>RDS PostgreSQL配置项取值</summary>
///
/// - PgBouncer功能:**true**(开启)、**false**(关闭)。
/// - 云盘加密功能:
/// - **ServiceKey**:使用由阿里云自动生成的密钥,即使用RDS托管的服务密钥(Default Service CMK)开启云盘加密。
/// - **<密钥>**:使用自定义密钥开启云盘加密,或者更换当前密钥。例如`494c98ce-f2b5-48ab-96ab-36c986b6****`。
/// - **disabled**:关闭云盘加密。
/// - 一键修复创建DuckDB分析实例所需的前提条件: **duckdb_prepare_dependency**
/// - 批量设置主实例数据库为DuckDB列存库,JSON字符串,例如`{"dbNames": "db1,db2,db3", "accountName": "yourSuperAccountName"}`,其中:
/// - **dbNames**:要转为DuckDB列存库的数据库名称。多个数据库之间使用英文逗号(,)分隔。
/// - **accountName**:高权限账号。只需配置一个高权限账号。
/// - 实例开启 CONNECT RLS 控制数据库可见性:**true** 开启。
/// - 数据库开启 CONNECT RLS 控制数据库可见性:受 CONNECT RLS 管控**数据库名称**。多个数据库之间使用英文逗号(,)分隔。如 **testdb1,testdb2**。客户连接开启 CONNECT RLS 的数据库会根据是否对其他数据库有 CONNECT 权限而正确展示数据库列表。
/// </details>
/// <details>
/// <summary>RDS SQL Server配置项取值</summary>
///
/// <props="intl">
///
/// - 错误日志清理功能:**1**(确认清理)。
/// - 云盘加密功能(**该功能开启后无法关闭**):
/// - **serviceKey**:使用由阿里云自动生成的密钥,即使用RDS托管的服务密钥(Default Service CMK)开启云盘加密。
/// - **<密钥>**:使用自定义密钥开启云盘加密,或者更换当前密钥。例如`494c98ce-f2b5-48ab-96ab-36c986b6****`。
///
/// </props>
///
///
/// <props="china">
///
/// - 简单恢复功能:**simple**(开启简单恢复)。
/// - 错误日志清理功能:**1**(确认清理)。
/// - 云盘加密功能(**该功能开启后无法关闭**):
/// - **serviceKey**:使用由阿里云自动生成的密钥,即使用RDS托管的服务密钥(Default Service CMK)开启云盘加密。
/// - **<密钥>**:使用自定义密钥开启云盘加密,或者更换当前密钥。例如`494c98ce-f2b5-48ab-96ab-36c986b6****`。
///
/// </props>
///
/// </details>
config_value: String,
/// 资源组ID。可调用DescribeDBInstanceAttribute获取。
#[setters(generate = true, strip_option)]
resource_group_id: Option<String>,
/// 用于保证请求的幂等性,防止重复提交请求。由客户端生成该参数值,要保证在不同请求间唯一,最大值不超过64个ASCII字符,且该参数值中不能包含非ASCII字符。
#[setters(generate = true, strip_option)]
client_token: Option<String>,
/// 指定执行修改的时间。建议在业务低峰期执行变配。格式:<i>yyyy-MM-dd</i>T<i>HH:mm:ss</i>Z(UTC时间)。
#[setters(generate = true, strip_option)]
switch_time: Option<String>,
/// 切换时间。取值:
/// - **Immediate**:立即生效。
/// - **MaintainTime**:在可运维时间段内生效,可调用ModifyDBInstanceMaintainTime接口修改可运维时间段。
#[setters(generate = true, strip_option)]
switch_time_mode: Option<String>,
}
impl sealed::Bound for ModifyDBInstanceConfig {}
impl ModifyDBInstanceConfig {
pub fn new(
db_instance_id: impl Into<String>,
config_name: impl Into<String>,
config_value: impl Into<String>,
) -> Self {
Self {
db_instance_id: db_instance_id.into(),
config_name: config_name.into(),
config_value: config_value.into(),
resource_group_id: None,
client_token: None,
switch_time: None,
switch_time_mode: None,
}
}
}
impl crate::ToFormData for ModifyDBInstanceConfig {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for ModifyDBInstanceConfig {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "ModifyDBInstanceConfig";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<ModifyDBInstanceConfigResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(7);
if let Some(f) = &self.client_token {
params.push(("ClientToken".into(), (f).into()));
}
params.push(("ConfigName".into(), (&self.config_name).into()));
params.push(("ConfigValue".into(), (&self.config_value).into()));
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
if let Some(f) = &self.resource_group_id {
params.push(("ResourceGroupId".into(), (f).into()));
}
if let Some(f) = &self.switch_time {
params.push(("SwitchTime".into(), (f).into()));
}
if let Some(f) = &self.switch_time_mode {
params.push(("SwitchTimeMode".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于查询RDS实例的所有连接地址信息。
///
/// Argument of [Connection::describe_db_instance_net_info()], returns [DescribeDBInstanceNetInfoResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DescribeDBInstanceNetInfo {
/// 用于保证请求的幂等性,防止重复提交请求。由客户端生成该参数值,要保证在不同请求间唯一,最大值不超过64个ASCII字符,且该参数值中不能包含非ASCII字符。
#[setters(generate = true, strip_option)]
client_token: Option<String>,
/// 实例ID。可调用DescribeDBInstances获取。
db_instance_id: String,
/// 备用参数,无需配置。
#[setters(generate = true, strip_option)]
flag: Option<i32>,
/// 连接地址类型,取值:
/// * **Normal**:普通连接地址。
/// * **ReadWriteSplitting**:读写分离连接地址。
///
/// >默认返回所有类型连接地址。
#[setters(generate = true, strip_option)]
db_instance_net_rw_split_type: Option<String>,
/// 专属集群MySQL通用版实例所属的组名。
#[setters(generate = true, strip_option)]
general_group_name: Option<String>,
}
impl sealed::Bound for DescribeDBInstanceNetInfo {}
impl DescribeDBInstanceNetInfo {
pub fn new(db_instance_id: impl Into<String>) -> Self {
Self {
client_token: None,
db_instance_id: db_instance_id.into(),
flag: None,
db_instance_net_rw_split_type: None,
general_group_name: None,
}
}
}
impl crate::ToFormData for DescribeDBInstanceNetInfo {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DescribeDBInstanceNetInfo {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DescribeDBInstanceNetInfo";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DescribeDBInstanceNetInfoResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(5);
if let Some(f) = &self.client_token {
params.push(("ClientToken".into(), (f).into()));
}
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
if let Some(f) = &self.db_instance_net_rw_split_type {
params.push(("DBInstanceNetRWSplitType".into(), (f).into()));
}
if let Some(f) = &self.flag {
params.push(("Flag".into(), (f).into()));
}
if let Some(f) = &self.general_group_name {
params.push(("GeneralGroupName".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于查询专有网络VPC下虚拟交换机的详细信息。
///
/// Argument of [Connection::describe_v_switches()], returns [DescribeVSwitchesResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DescribeVSwitches {
/// 交换机所属地域的ID。可调用DescribeRegions接口获取。
#[setters(generate = true, strip_option)]
region_id: Option<String>,
/// 要查询的交换机所属VPC的ID。
/// >本参数和**DedicatedHostGroupId**必传其一。
#[setters(generate = true, strip_option)]
vpc_id: Option<String>,
/// 交换机所属可用区的ID。您可调用DescribeAvailableZones接口获取。用于过滤调用结果,仅返回目标可用区中的虚拟交换机详情。
#[setters(generate = true, strip_option)]
zone_id: Option<String>,
/// 专属集群ID。可调用DescribeDedicatedHostGroups获取。查询该专属集群所属专有网络VPC下所有虚拟交换机的详情。
/// >本参数和**VpcId**必传其一。
#[setters(generate = true, strip_option)]
dedicated_host_group_id: Option<String>,
/// 列表的页码。默认值:**1**。
#[setters(generate = true, strip_option)]
page_number: Option<i32>,
/// 分页查询时每页的行数。取值:**1~50**。默认值:**30**。
#[setters(generate = true, strip_option)]
page_size: Option<i32>,
/// 资源组ID。
#[setters(generate = true, strip_option)]
resource_group_id: Option<String>,
}
impl sealed::Bound for DescribeVSwitches {}
impl DescribeVSwitches {
pub fn new() -> Self {
Self {
region_id: None,
vpc_id: None,
zone_id: None,
dedicated_host_group_id: None,
page_number: None,
page_size: None,
resource_group_id: None,
}
}
}
impl crate::ToFormData for DescribeVSwitches {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DescribeVSwitches {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DescribeVSwitches";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DescribeVSwitchesResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(7);
if let Some(f) = &self.dedicated_host_group_id {
params.push(("DedicatedHostGroupId".into(), (f).into()));
}
if let Some(f) = &self.page_number {
params.push(("PageNumber".into(), (f).into()));
}
if let Some(f) = &self.page_size {
params.push(("PageSize".into(), (f).into()));
}
if let Some(f) = &self.region_id {
params.push(("RegionId".into(), (f).into()));
}
if let Some(f) = &self.resource_group_id {
params.push(("ResourceGroupId".into(), (f).into()));
}
if let Some(f) = &self.vpc_id {
params.push(("VpcId".into(), (f).into()));
}
if let Some(f) = &self.zone_id {
params.push(("ZoneId".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于修改RDS实例的高可用模式和数据复制方式。
///
/// Argument of [Connection::modify_db_instance_ha_config()], returns [ModifyDBInstanceHAConfigResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct ModifyDBInstanceHAConfig {
/// 数据复制方式。
///
/// - Semi-sync:半同步。
/// - Sync:强同步。
/// - Async:异步。
///
/// <props="china">- Mgr:组复制。</props>
sync_mode: String,
/// 高可用模式。
///
/// - RPO:数据一致性优先,实例会尽可能保障数据的可靠性,即数据丢失量最少。对于数据一致性要求比较高的用户应该使用RPO模式。
/// - RTO:实例可用性优先,实例会尽快恢复服务,即可用时间最长。对于数据库在线时间要求比较高的用户应该使用RTO模式。
ha_mode: String,
/// 实例ID。
db_instance_id: String,
}
impl sealed::Bound for ModifyDBInstanceHAConfig {}
impl ModifyDBInstanceHAConfig {
pub fn new(
sync_mode: impl Into<String>,
ha_mode: impl Into<String>,
db_instance_id: impl Into<String>,
) -> Self {
Self {
sync_mode: sync_mode.into(),
ha_mode: ha_mode.into(),
db_instance_id: db_instance_id.into(),
}
}
}
impl crate::ToFormData for ModifyDBInstanceHAConfig {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for ModifyDBInstanceHAConfig {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "ModifyDBInstanceHAConfig";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<ModifyDBInstanceHAConfigResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(3);
params.push(("DbInstanceId".into(), (&self.db_instance_id).into()));
params.push(("HAMode".into(), (&self.ha_mode).into()));
params.push(("SyncMode".into(), (&self.sync_mode).into()));
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于开启或关闭RDS实例的主备自动切换功能。
///
/// Argument of [Connection::modify_ha_switch_config()], returns [ModifyHASwitchConfigResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct ModifyHASwitchConfig {
/// 实例ID。可调用DescribeDBInstances获取。
db_instance_id: String,
/// 主备切换设置,取值:
/// * **Auto**:出现故障时自动切换主备实例。
/// * **Manual**:临时关闭自动切换。
///
/// 默认值:**Auto**。
/// >取值为**Manual**时,必须传入参数**ManualHATime**。
#[setters(generate = true, strip_option)]
ha_config: Option<String>,
/// 临时关闭的截止时间。最晚可设置为7天后的23:59:59。格式:<i>yyyy-MM-dd</i>T<i>HH:mm:ss</i>Z(UTC时间)。
/// >仅当参数**HAConfig**取值为**Manual**时,本参数有效。
#[setters(generate = true, strip_option)]
manual_ha_time: Option<String>,
/// 地域ID,可以通过接口DescribeRegions查看地域ID。
region_id: String,
}
impl sealed::Bound for ModifyHASwitchConfig {}
impl ModifyHASwitchConfig {
pub fn new(db_instance_id: impl Into<String>, region_id: impl Into<String>) -> Self {
Self {
db_instance_id: db_instance_id.into(),
ha_config: None,
manual_ha_time: None,
region_id: region_id.into(),
}
}
}
impl crate::ToFormData for ModifyHASwitchConfig {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for ModifyHASwitchConfig {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "ModifyHASwitchConfig";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<ModifyHASwitchConfigResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(4);
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
if let Some(f) = &self.ha_config {
params.push(("HAConfig".into(), (f).into()));
}
if let Some(f) = &self.manual_ha_time {
params.push(("ManualHATime".into(), (f).into()));
}
params.push(("RegionId".into(), (&self.region_id).into()));
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于查询RDS实例的高可用模式和数据复制方式。
///
/// Argument of [Connection::describe_db_instance_ha_config()], returns [DescribeDBInstanceHAConfigResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DescribeDBInstanceHAConfig {
/// 实例ID。可调用DescribeDBInstances获取。
db_instance_id: String,
}
impl sealed::Bound for DescribeDBInstanceHAConfig {}
impl DescribeDBInstanceHAConfig {
pub fn new(db_instance_id: impl Into<String>) -> Self {
Self {
db_instance_id: db_instance_id.into(),
}
}
}
impl crate::ToFormData for DescribeDBInstanceHAConfig {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DescribeDBInstanceHAConfig {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DescribeDBInstanceHAConfig";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DescribeDBInstanceHAConfigResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(1);
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于查询RDS实例主备自动切换的设置。
///
/// Argument of [Connection::describe_ha_switch_config()], returns [DescribeHASwitchConfigResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DescribeHASwitchConfig {
/// 实例ID。可调用DescribeDBInstances获取。
db_instance_id: String,
/// 地域ID。可调用DescribeRegions获取。
region_id: String,
}
impl sealed::Bound for DescribeHASwitchConfig {}
impl DescribeHASwitchConfig {
pub fn new(db_instance_id: impl Into<String>, region_id: impl Into<String>) -> Self {
Self {
db_instance_id: db_instance_id.into(),
region_id: region_id.into(),
}
}
}
impl crate::ToFormData for DescribeHASwitchConfig {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DescribeHASwitchConfig {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DescribeHASwitchConfig";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DescribeHASwitchConfigResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(2);
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
params.push(("RegionId".into(), (&self.region_id).into()));
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于RDS实例的手动主备切换。
///
/// Argument of [Connection::switch_db_instance_ha()], returns [SwitchDBInstanceHAResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct SwitchDBInstanceHA {
/// 实例ID。可调用DescribeDBInstances获取。
db_instance_id: String,
/// 备库的唯一标识,通过接口DescribeDBInstanceHAConfig可查询该值。
node_id: String,
/// 切换方式,取值:
/// * **Yes**:强制
/// * **No**:非强制
///
/// 默认值:**No**。
#[setters(generate = true, strip_option)]
force: Option<String>,
/// 生效时间,取值:
/// * **Immediate**:立即执行
/// * **MaintainTime**:可维护时间内执行
///
/// 默认值:**Immediate**。
#[setters(generate = true, strip_option)]
effective_time: Option<String>,
}
impl sealed::Bound for SwitchDBInstanceHA {}
impl SwitchDBInstanceHA {
pub fn new(db_instance_id: impl Into<String>, node_id: impl Into<String>) -> Self {
Self {
db_instance_id: db_instance_id.into(),
node_id: node_id.into(),
force: None,
effective_time: None,
}
}
}
impl crate::ToFormData for SwitchDBInstanceHA {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for SwitchDBInstanceHA {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "SwitchDBInstanceHA";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<SwitchDBInstanceHAResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(4);
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
if let Some(f) = &self.effective_time {
params.push(("EffectiveTime".into(), (f).into()));
}
if let Some(f) = &self.force {
params.push(("Force".into(), (f).into()));
}
params.push(("NodeId".into(), (&self.node_id).into()));
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于开启或关闭RDS的历史事件功能。
///
/// Argument of [Connection::modify_action_event_policy()], returns [ModifyActionEventPolicyResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct ModifyActionEventPolicy {
/// 地域ID。可调用DescribeRegions获取。
region_id: String,
/// 是否开启历史事件记录功能。取值:
/// * **True**
/// * **False**
enable_event_log: String,
}
impl sealed::Bound for ModifyActionEventPolicy {}
impl ModifyActionEventPolicy {
pub fn new(region_id: impl Into<String>, enable_event_log: impl Into<String>) -> Self {
Self {
region_id: region_id.into(),
enable_event_log: enable_event_log.into(),
}
}
}
impl crate::ToFormData for ModifyActionEventPolicy {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for ModifyActionEventPolicy {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "ModifyActionEventPolicy";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<ModifyActionEventPolicyResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(2);
params.push(("EnableEventLog".into(), (&self.enable_event_log).into()));
params.push(("RegionId".into(), (&self.region_id).into()));
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于查询RDS历史事件记录列表。
///
/// Argument of [Connection::describe_events()], returns [DescribeEventsResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DescribeEvents {
/// 地域ID。可调用DescribeRegions获取。
region_id: String,
/// 查询开始时间。格式:<i>yyyy-MM-dd</i>T<i>HH:mm:ss</i>Z(UTC时间)。
#[setters(generate = true, strip_option)]
start_time: Option<String>,
/// 查询结束时间,需要晚于开始时间。格式:<i>yyyy-MM-dd</i>T<i>HH:mm:ss</i>Z(UTC时间)。
#[setters(generate = true, strip_option)]
end_time: Option<String>,
/// 每页记录数,取值:
/// * **30**
/// * **50**
/// * **100**
///
/// 默认值:**30**。
#[setters(generate = true, strip_option)]
page_size: Option<i32>,
/// 页码,取值:大于0且不超过Integer的最大值。
///
/// 默认值:**1**。
#[setters(generate = true, strip_option)]
page_number: Option<i32>,
}
impl sealed::Bound for DescribeEvents {}
impl DescribeEvents {
pub fn new(region_id: impl Into<String>) -> Self {
Self {
region_id: region_id.into(),
start_time: None,
end_time: None,
page_size: None,
page_number: None,
}
}
}
impl crate::ToFormData for DescribeEvents {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DescribeEvents {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DescribeEvents";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DescribeEventsResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(5);
if let Some(f) = &self.end_time {
params.push(("EndTime".into(), (f).into()));
}
if let Some(f) = &self.page_number {
params.push(("PageNumber".into(), (f).into()));
}
if let Some(f) = &self.page_size {
params.push(("PageSize".into(), (f).into()));
}
params.push(("RegionId".into(), (&self.region_id).into()));
if let Some(f) = &self.start_time {
params.push(("StartTime".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于查询RDS的历史事件功能是否开启。
///
/// Argument of [Connection::describe_action_event_policy()], returns [DescribeActionEventPolicyResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DescribeActionEventPolicy {
/// 地域ID。可调用DescribeRegions获取。
region_id: String,
/// 资源组ID。可调用DescribeDBInstanceAttribute获取。
#[setters(generate = true, strip_option)]
resource_group_id: Option<String>,
}
impl sealed::Bound for DescribeActionEventPolicy {}
impl DescribeActionEventPolicy {
pub fn new(region_id: impl Into<String>) -> Self {
Self {
region_id: region_id.into(),
resource_group_id: None,
}
}
}
impl crate::ToFormData for DescribeActionEventPolicy {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DescribeActionEventPolicy {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DescribeActionEventPolicy";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DescribeActionEventPolicyResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(2);
params.push(("RegionId".into(), (&self.region_id).into()));
if let Some(f) = &self.resource_group_id {
params.push(("ResourceGroupId".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于查询RDS的通知。
///
/// Argument of [Connection::query_notify()], returns [QueryNotifyResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct QueryNotify {
/// 查询结果中是否包含已确认的通知。取值:
/// - **true**:包含
/// - **false**:不包含
/// >已确认的通知即已通过ConfirmNotify接口标记为已确认的通知。
with_confirmed: bool,
/// 查询开始时间。格式:<i>yyyy-MM-dd</i>T<i>HH:mm:ss</i>Z(UTC时间)。
from: String,
/// 查询结束时间,需要晚于开始时间。格式:<i>yyyy-MM-dd</i>T<i>HH:mm:ss</i>Z(UTC时间)。
to: String,
/// 每页记录数,取值:
/// * **30**
/// * **50**
/// * **100**
///
/// 默认值:**30**。
#[setters(generate = true, strip_option)]
page_size: Option<i32>,
/// 页码,取值:大于**0**且不超过Integer的最大值。
///
/// 默认值:**1**。
#[setters(generate = true, strip_option)]
page_number: Option<i32>,
}
impl sealed::Bound for QueryNotify {}
impl QueryNotify {
pub fn new(
with_confirmed: impl Into<bool>,
from: impl Into<String>,
to: impl Into<String>,
) -> Self {
Self {
with_confirmed: with_confirmed.into(),
from: from.into(),
to: to.into(),
page_size: None,
page_number: None,
}
}
}
impl crate::ToFormData for QueryNotify {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(5);
params.push(("From".into(), (&self.from).into()));
if let Some(f) = &self.page_number {
params.push(("PageNumber".into(), f.into()));
}
if let Some(f) = &self.page_size {
params.push(("PageSize".into(), f.into()));
}
params.push(("To".into(), (&self.to).into()));
params.push(("WithConfirmed".into(), (&self.with_confirmed).into()));
params
}
}
impl crate::Request for QueryNotify {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "QueryNotify";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<QueryNotifyResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于确认主账号下RDS控制台的轮播消息。
///
/// Argument of [Connection::confirm_notify()], returns [ConfirmNotifyResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct ConfirmNotify {
/// 通知确认人的阿里云账号ID。您也可以传入**0**,代表该通知被系统自动确认。
confirmor: i64,
/// 通知ID列表。
notify_id_list: Vec<i64>,
}
impl sealed::Bound for ConfirmNotify {}
impl ConfirmNotify {
pub fn new(confirmor: impl Into<i64>, notify_id_list: impl Into<Vec<i64>>) -> Self {
Self {
confirmor: confirmor.into(),
notify_id_list: notify_id_list.into(),
}
}
}
impl crate::ToFormData for ConfirmNotify {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(2);
params.push(("Confirmor".into(), (&self.confirmor).into()));
if let Ok(json) = serde_json::to_string(&self.notify_id_list) {
params.push(("NotifyIdList".into(), json.into()));
}
params
}
}
impl crate::Request for ConfirmNotify {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "ConfirmNotify";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<ConfirmNotifyResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于获取实例资源的通知设置信息,已停止维护:可以正常调用,但不再维护。
///
/// Argument of [Connection::describe_rds_resource_settings()], returns [DescribeRdsResourceSettingsResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DescribeRdsResourceSettings {
/// 资源位。
/// - noticeBar:通知栏
/// - popUp:弹框
resource_niche: String,
}
impl sealed::Bound for DescribeRdsResourceSettings {}
impl DescribeRdsResourceSettings {
pub fn new(resource_niche: impl Into<String>) -> Self {
Self {
resource_niche: resource_niche.into(),
}
}
}
impl crate::ToFormData for DescribeRdsResourceSettings {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DescribeRdsResourceSettings {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DescribeRdsResourceSettings";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DescribeRdsResourceSettingsResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(1);
params.push(("ResourceNiche".into(), (&self.resource_niche).into()));
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于创建数据库账号。
///
/// Argument of [Connection::create_account()], returns [CreateAccountResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct CreateAccount {
/// 实例ID,可调用[DescribeDBInstances](~~610396~~)获取。
db_instance_id: String,
/// 数据库账号名称。
///
/// > 该名称必须唯一,且由大写字母(仅MySQL支持)、小写字母、数字或下划线组成。账号命名具体限制,请参见各引擎教程:[创建MySQL账号](~~96089~~)、[创建PostgreSQL账号](~~96753~~)、[创建SQL Server账号](~~95810~~)、[创建MariaDB账号](~~97132~~)。
account_name: String,
/// 数据库账号的密码。
/// > * 长度为8~32个字符。
/// > * 由大写字母、小写字母、数字、特殊字符(`!@#$%^&*()_+-=`)中的任意三种组成。
account_password: String,
/// 账号描述,长度为2~256个字符。以中文、英文字母开头,可以包含数字、中文、英文、下划线(_)、短横线(-)。
/// >不能以`http://`和`https://`开头。
#[setters(generate = true, strip_option)]
account_description: Option<String>,
/// 账号类型,取值:
///
/// - **Normal**(默认值):普通账号。
/// - **Super**:高权限账号,每个实例至多创建一个。
/// - **Sysadmin**(仅SQL Server实例):SA权限的数据库账号。创建前请先检查实例是否满足[前提条件](~~170736~~)。
/// - **GlobalRO**(仅SQL Server实例):全局只读账号,每个实例至多创建两个。实例数据库版本需为SQL Server 2016及以上且实例规格族为独享型或通用型。
#[setters(generate = true, strip_option)]
account_type: Option<String>,
/// SQL Server实例的[账号密码策略](~~2845728~~),取值:
/// - **true**:应用策略
/// - **false**:不应用策略
/// > - 设置为true时,必须预先[设置SQL Server账号密码策略](~~2848317~~)。
/// > - 该参数不支持SQL Server[共享型](~~57184~~)、[2008 R2版本](~~145468~~)以及[Serverless类型](~~603466~~)的实例。
#[setters(generate = true, strip_option)]
check_policy: Option<bool>,
}
impl sealed::Bound for CreateAccount {}
impl CreateAccount {
pub fn new(
db_instance_id: impl Into<String>,
account_name: impl Into<String>,
account_password: impl Into<String>,
) -> Self {
Self {
db_instance_id: db_instance_id.into(),
account_name: account_name.into(),
account_password: account_password.into(),
account_description: None,
account_type: None,
check_policy: None,
}
}
}
impl crate::ToFormData for CreateAccount {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for CreateAccount {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "CreateAccount";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<CreateAccountResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(6);
if let Some(f) = &self.account_description {
params.push(("AccountDescription".into(), (f).into()));
}
params.push(("AccountName".into(), (&self.account_name).into()));
params.push(("AccountPassword".into(), (&self.account_password).into()));
if let Some(f) = &self.account_type {
params.push(("AccountType".into(), (f).into()));
}
if let Some(f) = &self.check_policy {
params.push(("CheckPolicy".into(), (f).into()));
}
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于删除数据库账号。
///
/// Argument of [Connection::delete_account()], returns [DeleteAccountResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DeleteAccount {
/// 实例ID。可调用DescribeDBInstances获取。
db_instance_id: String,
/// 需要删除的数据库账号名称。
account_name: String,
}
impl sealed::Bound for DeleteAccount {}
impl DeleteAccount {
pub fn new(db_instance_id: impl Into<String>, account_name: impl Into<String>) -> Self {
Self {
db_instance_id: db_instance_id.into(),
account_name: account_name.into(),
}
}
}
impl crate::ToFormData for DeleteAccount {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DeleteAccount {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DeleteAccount";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DeleteAccountResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(2);
params.push(("AccountName".into(), (&self.account_name).into()));
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于修改RDS SQL Server数据库的账号密码策略。
///
/// Argument of [Connection::modify_account_check_policy()], returns [ModifyAccountCheckPolicyResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct ModifyAccountCheckPolicy {
/// 客户端Token,用于保证请求的幂等性。从您的客户端生成一个参数值,确保不同请求间该参数值唯一。ClientToken只支持ASCII字符。
///
/// > 若您未指定,则系统自动使用API请求的RequestId作为ClientToken标识。每次API请求的RequestId可能不一样。
#[setters(generate = true, strip_option)]
client_token: Option<String>,
/// 资源组ID。
#[setters(generate = true, strip_option)]
resource_group_id: Option<String>,
/// 实例ID。可调用[DescribeDBInstances](~~2628785~~)查询。
db_instance_id: String,
/// 账号名称。
account_name: String,
/// 是否应用密码策略。取值如下:
///
/// - **true**:为账号应用密码策略。
/// - **false**:取消账号已应用的密码策略。
check_policy: bool,
}
impl sealed::Bound for ModifyAccountCheckPolicy {}
impl ModifyAccountCheckPolicy {
pub fn new(
db_instance_id: impl Into<String>,
account_name: impl Into<String>,
check_policy: impl Into<bool>,
) -> Self {
Self {
client_token: None,
resource_group_id: None,
db_instance_id: db_instance_id.into(),
account_name: account_name.into(),
check_policy: check_policy.into(),
}
}
}
impl crate::ToFormData for ModifyAccountCheckPolicy {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for ModifyAccountCheckPolicy {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "ModifyAccountCheckPolicy";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<ModifyAccountCheckPolicyResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(5);
params.push(("AccountName".into(), (&self.account_name).into()));
params.push(("CheckPolicy".into(), (&self.check_policy).into()));
if let Some(f) = &self.client_token {
params.push(("ClientToken".into(), (f).into()));
}
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
if let Some(f) = &self.resource_group_id {
params.push(("ResourceGroupId".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于修改数据库账号的描述信息。
///
/// Argument of [Connection::modify_account_description()], returns [ModifyAccountDescriptionResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct ModifyAccountDescription {
/// 实例ID。可调用DescribeDBInstances获取。
db_instance_id: String,
/// 账号名称。可调用DescribeAccounts获取。
account_name: String,
/// 账号描述,长度为2~256个字符。以中文、英文字母开头,可以包含数字、中文、英文、下划线(_)、短横线(-)。
/// >不能以 http:// 和 https:// 开头。
account_description: String,
}
impl sealed::Bound for ModifyAccountDescription {}
impl ModifyAccountDescription {
pub fn new(
db_instance_id: impl Into<String>,
account_name: impl Into<String>,
account_description: impl Into<String>,
) -> Self {
Self {
db_instance_id: db_instance_id.into(),
account_name: account_name.into(),
account_description: account_description.into(),
}
}
}
impl crate::ToFormData for ModifyAccountDescription {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for ModifyAccountDescription {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "ModifyAccountDescription";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<ModifyAccountDescriptionResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(3);
params.push((
"AccountDescription".into(),
(&self.account_description).into(),
));
params.push(("AccountName".into(), (&self.account_name).into()));
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于修改RDS PostgreSQL实例的pg_hba.conf文件配置。
///
/// Argument of [Connection::modify_pg_hba_config()], returns [ModifyPGHbaConfigResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct ModifyPGHbaConfig {
/// 预留参数,无需配置。
#[setters(generate = true, strip_option)]
client_token: Option<String>,
/// 实例ID。可调用DescribeDBInstances获取。
db_instance_id: String,
/// 配置类型,支持以下几种方式修改AD域服务信息。
/// - **add**:添加一条或多条记录,不能与已有PriorityId参数重复。
/// - **delete**:删除一条或多条记录,将删除当前配置中**PriorityId**参数取值对应的记录。
/// - **modify**:修改一条或多条记录,将修改当前配置中**PriorityId**参数取值对应的记录。
/// - **update**:全量更新,将使用传入的配置覆盖当前配置。
ops_type: String,
/// AD域服务信息列表。
hba_item: Vec<ConfigHbaItem>,
}
impl sealed::Bound for ModifyPGHbaConfig {}
impl ModifyPGHbaConfig {
pub fn new(
db_instance_id: impl Into<String>,
ops_type: impl Into<String>,
hba_item: impl Into<Vec<ConfigHbaItem>>,
) -> Self {
Self {
client_token: None,
db_instance_id: db_instance_id.into(),
ops_type: ops_type.into(),
hba_item: hba_item.into(),
}
}
}
impl crate::ToFormData for ModifyPGHbaConfig {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for ModifyPGHbaConfig {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "ModifyPGHbaConfig";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<ModifyPGHbaConfigResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(4);
if let Some(f) = &self.client_token {
params.push(("ClientToken".into(), (f).into()));
}
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
crate::FlatSerialize::flat_serialize(&self.hba_item, "HbaItem", &mut params);
params.push(("OpsType".into(), (&self.ops_type).into()));
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于查询RDS实例的账号信息。
///
/// Argument of [Connection::describe_accounts()], returns [DescribeAccountsResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DescribeAccounts {
/// 实例ID。可调用DescribeDBInstances获取。
/// >暂不支持SQL Server 2017集群系列实例。
db_instance_id: String,
/// 数据库账号名称。
#[setters(generate = true, strip_option)]
account_name: Option<String>,
/// 每页记录数,取值:**30~200**。默认值:**30**。
#[setters(generate = true, strip_option)]
page_size: Option<i32>,
/// 页码。默认值:**1**。取值为大于0且不超过Integer的最大值。
///
#[setters(generate = true, strip_option)]
page_number: Option<i32>,
}
impl sealed::Bound for DescribeAccounts {}
impl DescribeAccounts {
pub fn new(db_instance_id: impl Into<String>) -> Self {
Self {
db_instance_id: db_instance_id.into(),
account_name: None,
page_size: None,
page_number: None,
}
}
}
impl crate::ToFormData for DescribeAccounts {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DescribeAccounts {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DescribeAccounts";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DescribeAccountsResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(4);
if let Some(f) = &self.account_name {
params.push(("AccountName".into(), (f).into()));
}
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
if let Some(f) = &self.page_number {
params.push(("PageNumber".into(), (f).into()));
}
if let Some(f) = &self.page_size {
params.push(("PageSize".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于查询RDS实例的保留关键字,即创建数据库或账号时禁用的关键字。
///
/// Argument of [Connection::describe_instance_keywords()], returns [DescribeInstanceKeywordsResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DescribeInstanceKeywords {
/// 保留关键字的类型,即表示是账号名或数据库名的保留关键字。取值:
///
/// - **account**
///
/// - **database**
///
/// > 该参数为必填参数。
#[setters(generate = true, strip_option)]
key: Option<String>,
}
impl sealed::Bound for DescribeInstanceKeywords {}
impl DescribeInstanceKeywords {
pub fn new() -> Self {
Self { key: None }
}
}
impl crate::ToFormData for DescribeInstanceKeywords {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DescribeInstanceKeywords {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DescribeInstanceKeywords";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DescribeInstanceKeywordsResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(1);
if let Some(f) = &self.key {
params.push(("Key".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于查询RDS PostgreSQL实例的pg_hba.conf文件的配置。
///
/// Argument of [Connection::describe_pg_hba_config()], returns [DescribePGHbaConfigResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DescribePGHbaConfig {
/// 预留参数,无需配置。
#[setters(generate = true, strip_option)]
client_token: Option<String>,
/// 实例ID。可调用DescribeDBInstances获取。
db_instance_id: String,
/// 资源组ID。
#[setters(generate = true, strip_option)]
resource_group_id: Option<String>,
}
impl sealed::Bound for DescribePGHbaConfig {}
impl DescribePGHbaConfig {
pub fn new(db_instance_id: impl Into<String>) -> Self {
Self {
client_token: None,
db_instance_id: db_instance_id.into(),
resource_group_id: None,
}
}
}
impl crate::ToFormData for DescribePGHbaConfig {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DescribePGHbaConfig {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DescribePGHbaConfig";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DescribePGHbaConfigResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(3);
if let Some(f) = &self.client_token {
params.push(("ClientToken".into(), (f).into()));
}
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
if let Some(f) = &self.resource_group_id {
params.push(("ResourceGroupId".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于查询RDS PostgreSQL实例的pg_hba.conf文件的修改记录。
///
/// Argument of [Connection::describe_modify_pg_hba_config_log()], returns [DescribeModifyPGHbaConfigLogResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DescribeModifyPGHbaConfigLog {
/// 预留参数,无需配置。
#[setters(generate = true, strip_option)]
client_token: Option<String>,
/// 实例ID。可调用DescribeDBInstances获取。
db_instance_id: String,
/// 查询开始时间。格式:yyyy-MM-ddTHH:mmZ(UTC时间)。
#[setters(generate = true, strip_option)]
start_time: Option<String>,
/// 查询结束时间。格式:yyyy-MM-ddTHH:mmZ(UTC时间)。
#[setters(generate = true, strip_option)]
end_time: Option<String>,
/// 资源组ID。
#[setters(generate = true, strip_option)]
resource_group_id: Option<String>,
}
impl sealed::Bound for DescribeModifyPGHbaConfigLog {}
impl DescribeModifyPGHbaConfigLog {
pub fn new(db_instance_id: impl Into<String>) -> Self {
Self {
client_token: None,
db_instance_id: db_instance_id.into(),
start_time: None,
end_time: None,
resource_group_id: None,
}
}
}
impl crate::ToFormData for DescribeModifyPGHbaConfigLog {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DescribeModifyPGHbaConfigLog {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DescribeModifyPGHbaConfigLog";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DescribeModifyPGHbaConfigLogResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(5);
if let Some(f) = &self.client_token {
params.push(("ClientToken".into(), (f).into()));
}
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
if let Some(f) = &self.end_time {
params.push(("EndTime".into(), (f).into()));
}
if let Some(f) = &self.resource_group_id {
params.push(("ResourceGroupId".into(), (f).into()));
}
if let Some(f) = &self.start_time {
params.push(("StartTime".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于重置数据库账号的密码。
///
/// Argument of [Connection::reset_account_password()], returns [ResetAccountPasswordResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct ResetAccountPassword {
/// 实例ID。可调用DescribeDBInstances获取。
db_instance_id: String,
/// 数据库账号名称。
account_name: String,
/// 新密码。
///
/// > * 长度为8~32个字符。
/// > * 由大写字母、小写字母、数字、特殊字符中的任意三种组成。
/// > * 特殊字符为`!@#$&%^*()_+-=`
account_password: String,
}
impl sealed::Bound for ResetAccountPassword {}
impl ResetAccountPassword {
pub fn new(
db_instance_id: impl Into<String>,
account_name: impl Into<String>,
account_password: impl Into<String>,
) -> Self {
Self {
db_instance_id: db_instance_id.into(),
account_name: account_name.into(),
account_password: account_password.into(),
}
}
}
impl crate::ToFormData for ResetAccountPassword {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for ResetAccountPassword {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "ResetAccountPassword";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<ResetAccountPasswordResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(3);
params.push(("AccountName".into(), (&self.account_name).into()));
params.push(("AccountPassword".into(), (&self.account_password).into()));
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于锁定RDS PostgreSQL实例的数据库账号。
///
/// Argument of [Connection::lock_account()], returns [LockAccountResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct LockAccount {
/// 实例ID。可调用DescribeDBInstances获取。
db_instance_id: String,
/// 要锁定的账号名称。单次只能锁定一个账号。
account_name: String,
}
impl sealed::Bound for LockAccount {}
impl LockAccount {
pub fn new(db_instance_id: impl Into<String>, account_name: impl Into<String>) -> Self {
Self {
db_instance_id: db_instance_id.into(),
account_name: account_name.into(),
}
}
}
impl crate::ToFormData for LockAccount {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for LockAccount {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "LockAccount";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<LockAccountResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(2);
params.push(("AccountName".into(), (&self.account_name).into()));
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于解锁RDS PostgreSQL实例的数据库账号。
///
/// Argument of [Connection::unlock_account()], returns [UnlockAccountResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct UnlockAccount {
/// 实例ID。可调用DescribeDBInstances获取。
db_instance_id: String,
/// 要解锁的账号名称。单次只能解锁一个账号。
account_name: String,
}
impl sealed::Bound for UnlockAccount {}
impl UnlockAccount {
pub fn new(db_instance_id: impl Into<String>, account_name: impl Into<String>) -> Self {
Self {
db_instance_id: db_instance_id.into(),
account_name: account_name.into(),
}
}
}
impl crate::ToFormData for UnlockAccount {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for UnlockAccount {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "UnlockAccount";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<UnlockAccountResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(2);
params.push(("AccountName".into(), (&self.account_name).into()));
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于授予指定数据库账号对单个或多个数据库的访问权限。
///
/// Argument of [Connection::grant_account_privilege()], returns [GrantAccountPrivilegeResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct GrantAccountPrivilege {
/// 实例ID,可调用[DescribeDBInstances](~~610396~~)获取。
db_instance_id: String,
/// 账号名称,可调用[DescribeAccounts](~~610454~~)获取。
account_name: String,
/// 需要授权访问的数据库名称。如需批量授权多个库,可使用英文逗号(,)分隔多个库名,例如`db1,db2,db3`。
db_name: String,
/// 账号权限类型。当填写多个DBName值时,权限类型也需按顺序填写对应数量的值,用英文逗号(,)分隔。
///
/// 不同数据库引擎支持类型不同,取值:
/// > 账号权限详情,请参见[MySQL/MariaDB权限列表](~~146395~~)、[SQL Server权限列表](~~95692~~)、[PostgreSQL权限列表](~~257684~~)。
/// <details>
/// <summary>RDS MySQL/RDS MariaDB</summary>
///
/// - **ReadWrite**:读写
/// - **ReadOnly**:只读
/// - **DDLOnly**:仅执行DDL
/// - **DMLOnly**:只执行DML
///
/// </details>
///
/// <details>
/// <summary>RDS SQL Server</summary>
///
/// - **ReadWrite**:读写,赋予权限对应SQL Server中的`db_datawriter`和`db_datareader`数据库角色。
/// - **ReadOnly**:只读,赋予权限对应SQL Server中的`db_datareader`数据库角色。
/// - **DBOwner**:数据库所有者,赋予权限对应SQL Server中的`db_owner`数据库角色。
/// > 数据库级别角色的更多详情信息,请参见[微软官方教程](https://learn.microsoft.com/en-us/sql/relational-databases/security/authentication-access/database-level-roles?view=sql-server-ver16)。
/// </details>
///
/// <details>
/// <summary>RDS PostgreSQL</summary>
///
/// **DBOwner**:数据库所有者
/// > 如需对账号权限进行精细化管理,请参见[PostgreSQL权限管理最佳实践](~~352149~~)。
/// </details>
account_privilege: String,
}
impl sealed::Bound for GrantAccountPrivilege {}
impl GrantAccountPrivilege {
pub fn new(
db_instance_id: impl Into<String>,
account_name: impl Into<String>,
db_name: impl Into<String>,
account_privilege: impl Into<String>,
) -> Self {
Self {
db_instance_id: db_instance_id.into(),
account_name: account_name.into(),
db_name: db_name.into(),
account_privilege: account_privilege.into(),
}
}
}
impl crate::ToFormData for GrantAccountPrivilege {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for GrantAccountPrivilege {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "GrantAccountPrivilege";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<GrantAccountPrivilegeResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(4);
params.push(("AccountName".into(), (&self.account_name).into()));
params.push(("AccountPrivilege".into(), (&self.account_privilege).into()));
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
params.push(("DBName".into(), (&self.db_name).into()));
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于授权服务账号。
///
/// Argument of [Connection::grant_operator_permission()], returns [GrantOperatorPermissionResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct GrantOperatorPermission {
/// 实例ID。可调用DescribeDBInstances获取。
db_instance_id: String,
/// 权限过期时间。<i>yyyy-MM-dd</i>T<i>HH:mm:ss</i>Z(UTC时间)。
expired_time: String,
/// 授权类型。取值:
/// - **Control**:配置权限。支持查看、修改实例配置。
/// - **Data**:数据权限。支持查看表结构、索引和SQL。
privileges: String,
}
impl sealed::Bound for GrantOperatorPermission {}
impl GrantOperatorPermission {
pub fn new(
db_instance_id: impl Into<String>,
expired_time: impl Into<String>,
privileges: impl Into<String>,
) -> Self {
Self {
db_instance_id: db_instance_id.into(),
expired_time: expired_time.into(),
privileges: privileges.into(),
}
}
}
impl crate::ToFormData for GrantOperatorPermission {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for GrantOperatorPermission {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "GrantOperatorPermission";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<GrantOperatorPermissionResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(3);
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
params.push(("ExpiredTime".into(), (&self.expired_time).into()));
params.push(("Privileges".into(), (&self.privileges).into()));
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于撤销阿里云服务账号对RDS实例的访问权限。
///
/// Argument of [Connection::revoke_operator_permission()], returns [RevokeOperatorPermissionResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct RevokeOperatorPermission {
/// 实例ID。可调用DescribeDBInstances获取。
db_instance_id: String,
}
impl sealed::Bound for RevokeOperatorPermission {}
impl RevokeOperatorPermission {
pub fn new(db_instance_id: impl Into<String>) -> Self {
Self {
db_instance_id: db_instance_id.into(),
}
}
}
impl crate::ToFormData for RevokeOperatorPermission {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for RevokeOperatorPermission {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "RevokeOperatorPermission";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<RevokeOperatorPermissionResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(1);
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于撤销账号对数据库的访问权限。
///
/// Argument of [Connection::revoke_account_privilege()], returns [RevokeAccountPrivilegeResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct RevokeAccountPrivilege {
/// 实例ID。可调用DescribeDBInstances获取。
db_instance_id: String,
/// 账号名称。
account_name: String,
/// 数据库名称,撤销账号对该数据库的所有权限。多个数据库用英文逗号(,)隔开。
db_name: String,
}
impl sealed::Bound for RevokeAccountPrivilege {}
impl RevokeAccountPrivilege {
pub fn new(
db_instance_id: impl Into<String>,
account_name: impl Into<String>,
db_name: impl Into<String>,
) -> Self {
Self {
db_instance_id: db_instance_id.into(),
account_name: account_name.into(),
db_name: db_name.into(),
}
}
}
impl crate::ToFormData for RevokeAccountPrivilege {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for RevokeAccountPrivilege {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "RevokeAccountPrivilege";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<RevokeAccountPrivilegeResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(3);
params.push(("AccountName".into(), (&self.account_name).into()));
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
params.push(("DBName".into(), (&self.db_name).into()));
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于重置高权限账号的权限。
///
/// Argument of [Connection::reset_account()], returns [ResetAccountResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct ResetAccount {
/// 实例ID。可调用DescribeDBInstances获取。
db_instance_id: String,
/// 高权限账号名称。
account_name: String,
/// 设置新的高权限账号的密码。
///
/// > * 长度为8~32个字符。
/// > * 由大写字母、小写字母、数字、特殊字符中的任意三种组成。
/// > * 特殊字符为`!@#$&%^*()_+-=`。
account_password: String,
}
impl sealed::Bound for ResetAccount {}
impl ResetAccount {
pub fn new(
db_instance_id: impl Into<String>,
account_name: impl Into<String>,
account_password: impl Into<String>,
) -> Self {
Self {
db_instance_id: db_instance_id.into(),
account_name: account_name.into(),
account_password: account_password.into(),
}
}
}
impl crate::ToFormData for ResetAccount {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for ResetAccount {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "ResetAccount";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<ResetAccountResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(3);
params.push(("AccountName".into(), (&self.account_name).into()));
params.push(("AccountPassword".into(), (&self.account_password).into()));
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于检查目标需要创建的账号名称是否可用。
///
/// Argument of [Connection::check_account_name_available()], returns [CheckAccountNameAvailableResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct CheckAccountNameAvailable {
/// 用于保证请求的幂等性,防止重复提交请求。由客户端生成该参数值,要保证在不同请求间唯一,最大值不超过64个ASCII字符,且该参数值中不能包含非ASCII字符。
#[setters(generate = true, strip_option)]
client_token: Option<String>,
/// 实例ID。可调用DescribeDBInstances获取。
db_instance_id: String,
/// 需要创建的账号名称。
account_name: String,
}
impl sealed::Bound for CheckAccountNameAvailable {}
impl CheckAccountNameAvailable {
pub fn new(db_instance_id: impl Into<String>, account_name: impl Into<String>) -> Self {
Self {
client_token: None,
db_instance_id: db_instance_id.into(),
account_name: account_name.into(),
}
}
}
impl crate::ToFormData for CheckAccountNameAvailable {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for CheckAccountNameAvailable {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "CheckAccountNameAvailable";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<CheckAccountNameAvailableResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(3);
params.push(("AccountName".into(), (&self.account_name).into()));
if let Some(f) = &self.client_token {
params.push(("ClientToken".into(), (f).into()));
}
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于在RDS实例下创建数据库。
///
/// Argument of [Connection::create_database()], returns [CreateDatabaseResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct CreateDatabase {
/// 实例ID。可调用DescribeDBInstances获取。
db_instance_id: String,
/// 数据库名称。
///
/// > * 长度为2~64个字符。
/// > * 以字母开头,以字母或数字结尾。
/// > * 由小写字母、数字、下划线或中划线组成。
/// > * 数据库名称在实例内必须是唯一的。
/// > * 其他非法字符,详见[禁用关键字表](~~26317~~)。
db_name: String,
/// 字符集,取值:
/// * MySQL/MariaDB:**utf8、gbk、latin1、utf8mb4**
/// * SQL Server:**Chinese_PRC_CI_AS、Chinese_PRC_CS_AS、SQL_Latin1_General_CP1_CI_AS、SQL_Latin1_General_CP1_CS_AS、Chinese_PRC_BIN**
/// * PostgreSQL:需要配置字符集、Collate和Ctype,格式为`字符集,<Collate>,<Ctype>`,例如:`UTF8,C,en_US.utf8`。
/// - 字符集取值:**KOI8U、UTF8、WIN866、WIN874、WIN1250、WIN1251、WIN1252、WIN1253、WIN1254、WIN1255、WIN1256、WIN1257、WIN1258、EUC_CN、EUC_KR、EUC_TW、EUC_JP、EUC_JIS_2004、KOI8R、MULE_INTERNAL、LATIN1、LATIN2、LATIN3、LATIN4、LATIN5、LATIN6、LATIN7、LATIN8、LATIN9、LATIN10、ISO_8859_5、ISO_8859_6、ISO_8859_7、ISO_8859_8、SQL_ASCII**。
/// - **Collate**取值:可通过`SELECT DISTINCT collname FROM pg_collation;`命令查询获取,不配置时默认为**C**。
/// - **Ctype**取值:可通过`SELECT DISTINCT collctype FROM pg_collation;`命令查询获取,不配置时默认为**en_US.utf8**。
character_set_name: String,
/// 数据库描述,长度为2~256个字符。以中文、英文字母开头,可以包含数字、中文、英文、下划线(_)、短横线(-)。
/// >不能以`http://`和`https://`开头。
#[setters(generate = true, strip_option)]
db_description: Option<String>,
}
impl sealed::Bound for CreateDatabase {}
impl CreateDatabase {
pub fn new(
db_instance_id: impl Into<String>,
db_name: impl Into<String>,
character_set_name: impl Into<String>,
) -> Self {
Self {
db_instance_id: db_instance_id.into(),
db_name: db_name.into(),
character_set_name: character_set_name.into(),
db_description: None,
}
}
}
impl crate::ToFormData for CreateDatabase {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for CreateDatabase {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "CreateDatabase";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<CreateDatabaseResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(4);
params.push(("CharacterSetName".into(), (&self.character_set_name).into()));
if let Some(f) = &self.db_description {
params.push(("DBDescription".into(), (f).into()));
}
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
params.push(("DBName".into(), (&self.db_name).into()));
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于删除RDS实例中指定数据库。
///
/// Argument of [Connection::delete_database()], returns [DeleteDatabaseResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DeleteDatabase {
/// 实例ID。可调用[DescribeDBInstances](~~610396~~)获取。
db_instance_id: String,
/// 数据库名称。
///
/// 不支持同时删除多个数据库。
db_name: String,
}
impl sealed::Bound for DeleteDatabase {}
impl DeleteDatabase {
pub fn new(db_instance_id: impl Into<String>, db_name: impl Into<String>) -> Self {
Self {
db_instance_id: db_instance_id.into(),
db_name: db_name.into(),
}
}
}
impl crate::ToFormData for DeleteDatabase {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DeleteDatabase {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DeleteDatabase";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DeleteDatabaseResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(2);
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
params.push(("DBName".into(), (&self.db_name).into()));
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 复制数据库SQL Server 2008 R2版。
///
/// Argument of [Connection::copy_database()], returns [CopyDatabaseResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct CopyDatabase {
/// 实例名称,**该参数必填**。
#[setters(generate = true, strip_option)]
db_instance_name: Option<String>,
/// 源数据库名,**该参数必填**。
#[setters(generate = true, strip_option)]
src_db_name: Option<String>,
/// 目标数据库名,**该参数必填**。
#[setters(generate = true, strip_option)]
dst_db_name: Option<String>,
/// 保留账户。
#[setters(generate = true, strip_option)]
reserve_account: Option<i32>,
/// 资源组ID。
#[setters(generate = true, strip_option)]
resource_group_id: Option<String>,
}
impl sealed::Bound for CopyDatabase {}
impl CopyDatabase {
pub fn new() -> Self {
Self {
db_instance_name: None,
src_db_name: None,
dst_db_name: None,
reserve_account: None,
resource_group_id: None,
}
}
}
impl crate::ToFormData for CopyDatabase {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for CopyDatabase {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "CopyDatabase";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<CopyDatabaseResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(5);
if let Some(f) = &self.db_instance_name {
params.push(("DBInstanceName".into(), (f).into()));
}
if let Some(f) = &self.dst_db_name {
params.push(("DstDBName".into(), (f).into()));
}
if let Some(f) = &self.reserve_account {
params.push(("ReserveAccount".into(), (f).into()));
}
if let Some(f) = &self.resource_group_id {
params.push(("ResourceGroupId".into(), (f).into()));
}
if let Some(f) = &self.src_db_name {
params.push(("SrcDBName".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于修改数据库的备注。
///
/// Argument of [Connection::modify_db_description()], returns [ModifyDBDescriptionResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct ModifyDBDescription {
/// 实例ID。可调用DescribeDBInstances获取。
db_instance_id: String,
/// 数据库名称。
db_name: String,
/// 数据库描述。
db_description: String,
}
impl sealed::Bound for ModifyDBDescription {}
impl ModifyDBDescription {
pub fn new(
db_instance_id: impl Into<String>,
db_name: impl Into<String>,
db_description: impl Into<String>,
) -> Self {
Self {
db_instance_id: db_instance_id.into(),
db_name: db_name.into(),
db_description: db_description.into(),
}
}
}
impl crate::ToFormData for ModifyDBDescription {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for ModifyDBDescription {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "ModifyDBDescription";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<ModifyDBDescriptionResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(3);
params.push(("DBDescription".into(), (&self.db_description).into()));
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
params.push(("DBName".into(), (&self.db_name).into()));
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于修改RDS SQL Server数据库属性。
///
/// Argument of [Connection::modify_database_config()], returns [ModifyDatabaseConfigResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct ModifyDatabaseConfig {
/// 实例ID。
db_instance_id: String,
/// 数据库名。
///
/// > 不支持填入多个数据库名称。
db_name: String,
/// 期望修改的数据库属性。
///
/// - **修改数据库属性功能**:填写目标数据库的属性名称。
/// - **数据归档OSS功能**:填写目标数据库的状态。传入`covert_online_db_to_cold_storage`表示将在线库转为冷存库,传入`convert_cold_storage_db_to_online`表示将冷存库转为在线库。
database_property_name: String,
/// 期望修改的数据库属性值。
/// - **修改数据库属性功能**:填写目标数据库的属性值。
/// - **数据归档OSS功能**:填写**1**,将目标库转为冷存或在线状态。
database_property_value: String,
}
impl sealed::Bound for ModifyDatabaseConfig {}
impl ModifyDatabaseConfig {
pub fn new(
db_instance_id: impl Into<String>,
db_name: impl Into<String>,
database_property_name: impl Into<String>,
database_property_value: impl Into<String>,
) -> Self {
Self {
db_instance_id: db_instance_id.into(),
db_name: db_name.into(),
database_property_name: database_property_name.into(),
database_property_value: database_property_value.into(),
}
}
}
impl crate::ToFormData for ModifyDatabaseConfig {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for ModifyDatabaseConfig {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "ModifyDatabaseConfig";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<ModifyDatabaseConfigResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(4);
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
params.push(("DBName".into(), (&self.db_name).into()));
params.push((
"DatabasePropertyName".into(),
(&self.database_property_name).into(),
));
params.push((
"DatabasePropertyValue".into(),
(&self.database_property_value).into(),
));
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 修改RDS SQL Server系统字符集排序规则和时区。
///
/// Argument of [Connection::modify_collation_time_zone()], returns [ModifyCollationTimeZoneResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct ModifyCollationTimeZone {
/// 实例ID。
db_instance_id: String,
/// 系统字符集排序规则,默认为不修改。取值:
/// * **Chinese_PRC_CI_AS**
/// * **Chinese_PRC_CS_AS**
/// * **Chinese_PRC_BIN**
/// * **Latin1_General_CI_AS**
/// * **Latin1_General_CS_AS**
/// * **SQL_Latin1_General_CP1_CI_AS**
/// * **SQL_Latin1_General_CP1_CS_AS**
/// * **Japanese_CI_AS**
/// * **Japanese_CS_AS**
/// * **Chinese_Taiwan_Stroke_CI_AS**
/// * **Chinese_Taiwan_Stroke_CS_AS**
///
/// > - 实例默认的字符集排序规则为**Chinese_PRC_CI_AS**。
/// > - **Collation**与**Timezone**必须传入至少一个。
#[setters(generate = true, strip_option)]
collation: Option<String>,
/// 系统时区,默认为不修改。
///
/// > - 实例默认的时区为**China Standard Time**。
/// > - **Collation**与**Timezone**必须传入至少一个。
#[setters(generate = true, strip_option)]
timezone: Option<String>,
}
impl sealed::Bound for ModifyCollationTimeZone {}
impl ModifyCollationTimeZone {
pub fn new(db_instance_id: impl Into<String>) -> Self {
Self {
db_instance_id: db_instance_id.into(),
collation: None,
timezone: None,
}
}
}
impl crate::ToFormData for ModifyCollationTimeZone {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for ModifyCollationTimeZone {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "ModifyCollationTimeZone";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<ModifyCollationTimeZoneResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(3);
if let Some(f) = &self.collation {
params.push(("Collation".into(), (f).into()));
}
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
if let Some(f) = &self.timezone {
params.push(("Timezone".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于查询RDS实例下的数据库信息。
///
/// Argument of [Connection::describe_databases()], returns [DescribeDatabasesResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DescribeDatabases {
/// 实例ID。可调用DescribeDBInstances获取。
db_instance_id: String,
/// 数据库名称。
#[setters(generate = true, strip_option)]
db_name: Option<String>,
/// 数据库状态,取值:
/// * **Creating**:创建中
/// * **Running**:使用中
/// * **Deleting**:删除中
#[setters(generate = true, strip_option)]
db_status: Option<String>,
/// 每页记录数,取值:
/// * **30**
/// * **50**
/// * **100**
///
/// 默认值:30。
#[setters(generate = true, strip_option)]
page_size: Option<i32>,
/// 页码,取值:大于0且不超过Integer的最大值。
///
/// 默认值:**1**。
#[setters(generate = true, strip_option)]
page_number: Option<i32>,
}
impl sealed::Bound for DescribeDatabases {}
impl DescribeDatabases {
pub fn new(db_instance_id: impl Into<String>) -> Self {
Self {
db_instance_id: db_instance_id.into(),
db_name: None,
db_status: None,
page_size: None,
page_number: None,
}
}
}
impl crate::ToFormData for DescribeDatabases {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DescribeDatabases {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DescribeDatabases";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DescribeDatabasesResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(5);
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
if let Some(f) = &self.db_name {
params.push(("DBName".into(), (f).into()));
}
if let Some(f) = &self.db_status {
params.push(("DBStatus".into(), (f).into()));
}
if let Some(f) = &self.page_number {
params.push(("PageNumber".into(), (f).into()));
}
if let Some(f) = &self.page_size {
params.push(("PageSize".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于查询RDS SQL Server支持的字符集排序规则和时区。
///
/// Argument of [Connection::describe_collation_time_zones()], returns [DescribeCollationTimeZonesResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DescribeCollationTimeZones {}
impl sealed::Bound for DescribeCollationTimeZones {}
impl DescribeCollationTimeZones {
pub fn new() -> Self {
Self {}
}
}
impl crate::ToFormData for DescribeCollationTimeZones {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DescribeCollationTimeZones {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DescribeCollationTimeZones";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DescribeCollationTimeZonesResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于查询RDS实例支持的字符集。
///
/// Argument of [Connection::describe_character_set_name()], returns [DescribeCharacterSetNameResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DescribeCharacterSetName {
/// 数据库引擎类型。取值:
///
/// - **mysql**:MySQL
/// - **mssql**:SQL Server
/// - **PostgreSQL**:PostgreSQL
/// - **MariaDB**:MariaDB
engine: String,
/// 地域ID。可调用DescribeRegions获取。
region_id: String,
/// 资源组ID。可调用DescribeDBInstanceAttribute获取。
#[setters(generate = true, strip_option)]
resource_group_id: Option<String>,
}
impl sealed::Bound for DescribeCharacterSetName {}
impl DescribeCharacterSetName {
pub fn new(engine: impl Into<String>, region_id: impl Into<String>) -> Self {
Self {
engine: engine.into(),
region_id: region_id.into(),
resource_group_id: None,
}
}
}
impl crate::ToFormData for DescribeCharacterSetName {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DescribeCharacterSetName {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DescribeCharacterSetName";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DescribeCharacterSetNameResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(3);
params.push(("Engine".into(), (&self.engine).into()));
params.push(("RegionId".into(), (&self.region_id).into()));
if let Some(f) = &self.resource_group_id {
params.push(("ResourceGroupId".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于在RDS SQL Server实例间复制数据库。
///
/// Argument of [Connection::copy_database_between_instances()], returns [CopyDatabaseBetweenInstancesResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct CopyDatabaseBetweenInstances {
/// 源实例ID。可调用DescribeDBInstances获取。
db_instance_id: String,
/// 目标实例ID。可调用DescribeDBInstances获取。
target_db_instance_id: String,
/// 待复制的数据库名称列表,格式如下:`{"源实例的数据库名称":"目标实例的数据库名称"}`。复制多个库时,用英文逗号(,)分隔。示例如下:
///
/// - 复制单个库:`{"zhttest":"zhttest"}`
/// - 复制多个库:`{"zhttest01":"zhttest01","zhttest02":"zhttest02"}`
///
/// > 目标实例的数据库名称可与源实例不同,但复制前需确保目标实例中不存在同名数据库。
db_names: String,
/// 源实例备份集ID。按备份集复制数据库时,可以通过查询备份列表接口DescribeBackups获取备份集ID。
/// >调用接口时,**BackupId**和**RestoreTime**需传入任意一个。
#[setters(generate = true, strip_option)]
backup_id: Option<String>,
/// 按时间点复制数据库,可以选择备份保留周期内的任意时间点。格式:<i>yyyy-MM-dd</i>T<i>HH:mm:ss</i>Z(UTC时间)。
/// >调用接口时,**BackupId**和**RestoreTime**需传入任意一个。
#[setters(generate = true, strip_option)]
restore_time: Option<String>,
/// 是否复制用户和权限,取值:
/// * **YES**:表示复制用户和权限。如果目标实例中有同名的用户,则该用户将叠加源实例的同名用户的权限。
/// * **NO**(默认值):表示不复制用户和权限。
#[setters(generate = true, strip_option)]
sync_user_privilege: Option<String>,
}
impl sealed::Bound for CopyDatabaseBetweenInstances {}
impl CopyDatabaseBetweenInstances {
pub fn new(
db_instance_id: impl Into<String>,
target_db_instance_id: impl Into<String>,
db_names: impl Into<String>,
) -> Self {
Self {
db_instance_id: db_instance_id.into(),
target_db_instance_id: target_db_instance_id.into(),
db_names: db_names.into(),
backup_id: None,
restore_time: None,
sync_user_privilege: None,
}
}
}
impl crate::ToFormData for CopyDatabaseBetweenInstances {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for CopyDatabaseBetweenInstances {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "CopyDatabaseBetweenInstances";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<CopyDatabaseBetweenInstancesResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(6);
if let Some(f) = &self.backup_id {
params.push(("BackupId".into(), (f).into()));
}
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
params.push(("DbNames".into(), (&self.db_names).into()));
if let Some(f) = &self.restore_time {
params.push(("RestoreTime".into(), (f).into()));
}
if let Some(f) = &self.sync_user_privilege {
params.push(("SyncUserPrivilege".into(), (f).into()));
}
params.push((
"TargetDBInstanceId".into(),
(&self.target_db_instance_id).into(),
));
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于检查数据库名称是否重复或不符合命名规范。
///
/// Argument of [Connection::check_db_name_available()], returns [CheckDBNameAvailableResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct CheckDBNameAvailable {
/// 用于保证请求的幂等性,防止重复提交请求。由客户端生成该参数值,要保证在不同请求间唯一,最大值不超过64个ASCII字符,且该参数值中不能包含非ASCII字符。
#[setters(generate = true, strip_option)]
client_token: Option<String>,
/// 实例ID。可调用DescribeDBInstances获取。
db_instance_id: String,
/// 待检查的数据库名称。
db_name: String,
}
impl sealed::Bound for CheckDBNameAvailable {}
impl CheckDBNameAvailable {
pub fn new(db_instance_id: impl Into<String>, db_name: impl Into<String>) -> Self {
Self {
client_token: None,
db_instance_id: db_instance_id.into(),
db_name: db_name.into(),
}
}
}
impl crate::ToFormData for CheckDBNameAvailable {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for CheckDBNameAvailable {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "CheckDBNameAvailable";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<CheckDBNameAvailableResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(3);
if let Some(f) = &self.client_token {
params.push(("ClientToken".into(), (f).into()));
}
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
params.push(("DBName".into(), (&self.db_name).into()));
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于为RDS实例创建一个只读实例。
///
/// Argument of [Connection::create_read_only_db_instance()], returns [CreateReadOnlyDBInstanceResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct CreateReadOnlyDBInstance {
/// 用于保证请求的幂等性,防止重复提交请求。由客户端生成该参数值,要保证在不同请求间唯一,最大值不超过64个ASCII字符,且该参数值中不能包含非ASCII字符。
#[setters(generate = true, strip_option)]
client_token: Option<String>,
/// 地域ID。只读实例的地域必须和主实例相同。可调用DescribeRegions获取。
region_id: String,
/// 可用区ID。可调用DescribeRegions获取。
///
/// - 若选择部署单可用区,填入一个可用区即可,例如`cn-hangzhou-b`。
/// - 若选择部署多可用区,填入多个可用区并用英文冒号(:)分隔,例如`cn-hangzhou-b:cn-hangzhou-c`。
/// - 填入的可用区数量应小于或等于当前创建的只读实例内的节点数。基础系列只读实例内仅含1个节点,高可用系列只读实例内含有2个节点(1个主节点与1个备节点)。
zone_id: String,
/// 主实例ID。可调用DescribeDBInstances获取。
db_instance_id: String,
/// 实例规格,详见[只读实例规格列表](~~145759~~)。建议只读实例规格不小于主实例规格,否则易导致只读实例延迟高、负载高等现象。
db_instance_class: String,
/// 存储空间,只读实例存储空间需要大于或等于主实例存储空间。取值:请参见[只读实例规格列表](~~145759~~)的**存储空间**列。每5 GB进行递增,单位:GB。
db_instance_storage: i32,
/// 数据库版本号。必须与主实例相同。
///
/// * MySQL数据库取值:**5.6**、**5.7**、**8.0**。
/// * SQL Server数据库取值:**2017_ent、2019_ent、2022_ent**。
/// * PostgreSQL数据库取值:**10.0、11.0、12.0、13.0、14.0、15.0**
engine_version: String,
/// 付费类型。取值:
/// * **Postpaid**:后付费(按量付费)
/// * **Prepaid**:预付费(包年包月)
pay_type: String,
/// 实例描述,长度为2~256个字符。以中文、英文字母开头,可以包含数字、中文、英文、下划线(_)、短横线(-)。
/// >不能以http://和https://开头。
#[setters(generate = true, strip_option)]
db_instance_description: Option<String>,
/// 只读实例的网络类型。取值:
///
/// * **VPC**:专有网络
/// * **Classic**:经典网络
///
/// 默认创建专有网络实例,需要传入**VPCId**和**VSwitchId**。
/// >只读实例的网络类型可以和主实例不同。
#[setters(generate = true, strip_option)]
instance_network_type: Option<String>,
/// 只读实例的专有网络VPC ID。当**InstanceNetworkType**配置为空或**VPC**时需要传入。
///
/// > * 主实例的存储类型为高性能本地盘时,只读实例可以选择任意VPC网络。
/// > * 主实例的存储类型为云盘时,只读实例VPC必须和主实例保持一致。
#[setters(generate = true, strip_option)]
vpc_id: Option<String>,
/// 只读实例的虚拟交换机ID。当**InstanceNetworkType**配置为空或**VPC**时需要传入。
#[setters(generate = true, strip_option)]
v_switch_id: Option<String>,
/// 设置只读实例的内网IP,需要在指定交换机的IP地址范围内。系统默认通过**VPCId**和**VSwitchId**自动分配。
#[setters(generate = true, strip_option)]
private_ip_address: Option<String>,
/// 资源组ID。
#[setters(generate = true, strip_option)]
resource_group_id: Option<String>,
/// 实例系列。取值:
///
/// * **Basic**:基础系列
/// * **HighAvailability**:高可用系列(默认值)
/// * **AlwaysOn**:集群系列
///
/// <props="china">* **Finance**:金融版</props>
///
/// >PostgreSQL云盘实例的只读实例为基础系列,因此必须传入**Basic**。
#[setters(generate = true, strip_option)]
category: Option<String>,
/// 实例储存类型。取值:
/// * **local_ssd**:高性能本地盘
/// * **cloud_ssd**:SSD云盘
/// * **cloud_essd**:ESSD PL1云盘
/// * **cloud_essd2**:ESSD PL2云盘
/// * **cloud_essd3**:ESSD PL3云盘
/// * **general_essd**:高性能云盘
///
///
/// > * RDS MySQL主实例为高性能本地盘,则仅支持传入**local_ssd**;RDS MySQL主实例为云盘,则仅支持传入云盘存储类型。
/// > * SQL Server仅支持传入云盘存储类型。
#[setters(generate = true, strip_option)]
db_instance_storage_type: Option<String>,
/// 在专属集群内创建只读实例时指定专属集群ID。
#[setters(generate = true, strip_option)]
dedicated_host_group_id: Option<String>,
/// 在专属集群内创建只读实例时,指定主实例的主机ID。
#[setters(generate = true, strip_option)]
target_dedicated_host_id_for_master: Option<String>,
/// 备用参数,无需配置。
#[setters(generate = true, strip_option)]
gdn_instance_name: Option<String>,
/// 备用参数,无需配置。
#[setters(generate = true, strip_option)]
tddl_biz_type: Option<String>,
/// 备用参数,无需配置。
#[setters(generate = true, strip_option)]
tddl_region_config: Option<String>,
/// 备用参数,无需配置。
#[setters(generate = true, strip_option)]
instruction_set_arch: Option<String>,
/// 指定购买时长。取值:
/// * 当参数**Period**为**Year**时,**UsedTime**取值为**1**~**5**。
/// * 当参数**Period**为**Month**时,**UsedTime**取值为**1**~**9**。
///
/// > 若**PayType**为**Prepaid**,需要传入该参数。
#[setters(generate = true, strip_option)]
used_time: Option<String>,
/// 指定预付费实例为包年或者包月类型。取值:
/// * **Year**:包年
/// * **Month**:包月
#[setters(generate = true, strip_option)]
period: Option<String>,
/// 实例是否自动续费,仅在创建包年包月实例时传入。取值:
/// * **true**:是
/// * **false**:否
///
/// > * 按月购买,则自动续费周期为1个月。
/// > * 按年购买,则自动续费周期为1年。
#[setters(generate = true, strip_option)]
auto_renew: Option<String>,
/// 是否开启RDS释放保护功能。取值:
/// * **true**:开启
/// * **false**:关闭(默认值)
///
/// > 仅**计费方式**为**按量付费**时支持开启。
#[setters(generate = true, strip_option)]
deletion_protection: Option<bool>,
/// 支持在RDS MySQL主实例创建只读实例时初始化端口。
///
/// 取值范围:1000~65534。
#[setters(generate = true, strip_option)]
port: Option<String>,
/// 弃用参数,无需配置。
#[setters(generate = true, strip_option)]
bpe_enabled: Option<String>,
/// [高性能云盘](~~2340501~~)的IO性能突发功能开关。取值:
/// * **true**:开启
/// * **false**:关闭
#[setters(generate = true, strip_option)]
bursting_enabled: Option<bool>,
/// 是否创建DuckDB分析实例。取值:
///
/// - **true**:开启
/// - **false**:关闭
///
/// > 当前仅RDS MySQL和RDS PostgreSQL支持创建DuckDB分析实例。
#[setters(generate = true, strip_option)]
is_analytic_read_only_ins: Option<bool>,
/// 是否自动支付。取值:
///
/// - **true**:自动支付。您需要确保账户余额充足。
/// - **false**:只生成订单不扣费。
///
///
///
///
/// > 默认值为true。如果您的支付方式余额不足,可以将参数AutoPay设置为false,此时会生成未支付订单,您可以登录RDS管理控制台自行支付。
/// >
#[setters(generate = true, strip_option)]
auto_pay: Option<bool>,
/// 是否自动创建代理。取值:
///
/// - **true**:开启自动创建,默认为通用代理。
///
/// - **false**:不开启自动创建。
#[setters(generate = true, strip_option)]
auto_create_proxy: Option<bool>,
/// 高性能云盘的[Buffer Pool Extension(BPE)](~~2527067~~)功能开关。取值:
///
/// - **1**:开启
/// - **0**:不开启
#[setters(generate = true, strip_option)]
io_acceleration_enabled: Option<String>,
/// 是否使用代金券。取值:
/// * **true**:使用代金券。
/// * **false**(默认):不使用代金券。
#[setters(generate = true, strip_option)]
auto_use_coupon: Option<bool>,
/// 优惠券code。
#[setters(generate = true, strip_option)]
promotion_code: Option<String>,
/// 备用参数,无需配置。
#[setters(generate = true, strip_option)]
custom_extra_info: Option<String>,
}
impl sealed::Bound for CreateReadOnlyDBInstance {}
impl CreateReadOnlyDBInstance {
pub fn new(
region_id: impl Into<String>,
zone_id: impl Into<String>,
db_instance_id: impl Into<String>,
db_instance_class: impl Into<String>,
db_instance_storage: impl Into<i32>,
engine_version: impl Into<String>,
pay_type: impl Into<String>,
) -> Self {
Self {
client_token: None,
region_id: region_id.into(),
zone_id: zone_id.into(),
db_instance_id: db_instance_id.into(),
db_instance_class: db_instance_class.into(),
db_instance_storage: db_instance_storage.into(),
engine_version: engine_version.into(),
pay_type: pay_type.into(),
db_instance_description: None,
instance_network_type: None,
vpc_id: None,
v_switch_id: None,
private_ip_address: None,
resource_group_id: None,
category: None,
db_instance_storage_type: None,
dedicated_host_group_id: None,
target_dedicated_host_id_for_master: None,
gdn_instance_name: None,
tddl_biz_type: None,
tddl_region_config: None,
instruction_set_arch: None,
used_time: None,
period: None,
auto_renew: None,
deletion_protection: None,
port: None,
bpe_enabled: None,
bursting_enabled: None,
is_analytic_read_only_ins: None,
auto_pay: None,
auto_create_proxy: None,
io_acceleration_enabled: None,
auto_use_coupon: None,
promotion_code: None,
custom_extra_info: None,
}
}
}
impl crate::ToFormData for CreateReadOnlyDBInstance {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for CreateReadOnlyDBInstance {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "CreateReadOnlyDBInstance";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<CreateReadOnlyDBInstanceResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(36);
if let Some(f) = &self.auto_create_proxy {
params.push(("AutoCreateProxy".into(), (f).into()));
}
if let Some(f) = &self.auto_pay {
params.push(("AutoPay".into(), (f).into()));
}
if let Some(f) = &self.auto_renew {
params.push(("AutoRenew".into(), (f).into()));
}
if let Some(f) = &self.auto_use_coupon {
params.push(("AutoUseCoupon".into(), (f).into()));
}
if let Some(f) = &self.bpe_enabled {
params.push(("BpeEnabled".into(), (f).into()));
}
if let Some(f) = &self.bursting_enabled {
params.push(("BurstingEnabled".into(), (f).into()));
}
if let Some(f) = &self.category {
params.push(("Category".into(), (f).into()));
}
if let Some(f) = &self.client_token {
params.push(("ClientToken".into(), (f).into()));
}
if let Some(f) = &self.custom_extra_info {
params.push(("CustomExtraInfo".into(), (f).into()));
}
params.push(("DBInstanceClass".into(), (&self.db_instance_class).into()));
if let Some(f) = &self.db_instance_description {
params.push(("DBInstanceDescription".into(), (f).into()));
}
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
params.push((
"DBInstanceStorage".into(),
(&self.db_instance_storage).into(),
));
if let Some(f) = &self.db_instance_storage_type {
params.push(("DBInstanceStorageType".into(), (f).into()));
}
if let Some(f) = &self.dedicated_host_group_id {
params.push(("DedicatedHostGroupId".into(), (f).into()));
}
if let Some(f) = &self.deletion_protection {
params.push(("DeletionProtection".into(), (f).into()));
}
params.push(("EngineVersion".into(), (&self.engine_version).into()));
if let Some(f) = &self.gdn_instance_name {
params.push(("GdnInstanceName".into(), (f).into()));
}
if let Some(f) = &self.instance_network_type {
params.push(("InstanceNetworkType".into(), (f).into()));
}
if let Some(f) = &self.instruction_set_arch {
params.push(("InstructionSetArch".into(), (f).into()));
}
if let Some(f) = &self.io_acceleration_enabled {
params.push(("IoAccelerationEnabled".into(), (f).into()));
}
if let Some(f) = &self.is_analytic_read_only_ins {
params.push(("IsAnalyticReadOnlyIns".into(), (f).into()));
}
params.push(("PayType".into(), (&self.pay_type).into()));
if let Some(f) = &self.period {
params.push(("Period".into(), (f).into()));
}
if let Some(f) = &self.port {
params.push(("Port".into(), (f).into()));
}
if let Some(f) = &self.private_ip_address {
params.push(("PrivateIpAddress".into(), (f).into()));
}
if let Some(f) = &self.promotion_code {
params.push(("PromotionCode".into(), (f).into()));
}
params.push(("RegionId".into(), (&self.region_id).into()));
if let Some(f) = &self.resource_group_id {
params.push(("ResourceGroupId".into(), (f).into()));
}
if let Some(f) = &self.target_dedicated_host_id_for_master {
params.push(("TargetDedicatedHostIdForMaster".into(), (f).into()));
}
if let Some(f) = &self.tddl_biz_type {
params.push(("TddlBizType".into(), (f).into()));
}
if let Some(f) = &self.tddl_region_config {
params.push(("TddlRegionConfig".into(), (f).into()));
}
if let Some(f) = &self.used_time {
params.push(("UsedTime".into(), (f).into()));
}
if let Some(f) = &self.vpc_id {
params.push(("VPCId".into(), (f).into()));
}
if let Some(f) = &self.v_switch_id {
params.push(("VSwitchId".into(), (f).into()));
}
params.push(("ZoneId".into(), (&self.zone_id).into()));
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于修改RDS MySQL只读实例的延迟复制时间。
///
/// Argument of [Connection::modify_readonly_instance_delay_replication_time()], returns [ModifyReadonlyInstanceDelayReplicationTimeResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct ModifyReadonlyInstanceDelayReplicationTime {
/// 只读实例ID。可调用DescribeDBInstances获取。
db_instance_id: String,
/// 延迟复制时间。单位:秒。
read_sql_replication_time: String,
/// 资源组ID。可调用DescribeDBInstanceAttribute获取。
#[setters(generate = true, strip_option)]
resource_group_id: Option<String>,
}
impl sealed::Bound for ModifyReadonlyInstanceDelayReplicationTime {}
impl ModifyReadonlyInstanceDelayReplicationTime {
pub fn new(
db_instance_id: impl Into<String>,
read_sql_replication_time: impl Into<String>,
) -> Self {
Self {
db_instance_id: db_instance_id.into(),
read_sql_replication_time: read_sql_replication_time.into(),
resource_group_id: None,
}
}
}
impl crate::ToFormData for ModifyReadonlyInstanceDelayReplicationTime {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for ModifyReadonlyInstanceDelayReplicationTime {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "ModifyReadonlyInstanceDelayReplicationTime";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<ModifyReadonlyInstanceDelayReplicationTimeResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(3);
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
params.push((
"ReadSQLReplicationTime".into(),
(&self.read_sql_replication_time).into(),
));
if let Some(f) = &self.resource_group_id {
params.push(("ResourceGroupId".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于查询RDS只读实例的延迟信息。
///
/// Argument of [Connection::describe_read_db_instance_delay()], returns [DescribeReadDBInstanceDelayResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DescribeReadDBInstanceDelay {
/// 地域ID。可调用DescribeRegions获取。
#[setters(generate = true, strip_option)]
region_id: Option<String>,
/// 主实例ID。可调用DescribeDBInstances获取。
db_instance_id: String,
/// 只读实例ID。可调用DescribeDBInstances获取。
read_instance_id: String,
}
impl sealed::Bound for DescribeReadDBInstanceDelay {}
impl DescribeReadDBInstanceDelay {
pub fn new(db_instance_id: impl Into<String>, read_instance_id: impl Into<String>) -> Self {
Self {
region_id: None,
db_instance_id: db_instance_id.into(),
read_instance_id: read_instance_id.into(),
}
}
}
impl crate::ToFormData for DescribeReadDBInstanceDelay {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DescribeReadDBInstanceDelay {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DescribeReadDBInstanceDelay";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DescribeReadDBInstanceDelayResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(3);
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
params.push(("ReadInstanceId".into(), (&self.read_instance_id).into()));
if let Some(f) = &self.region_id {
params.push(("RegionId".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于检查RDS PostgreSQL主实例是否满足创建DuckDB分析实例的前提条件。对于不满足的条件将返回失败原因,并提供解决方案或建议的目标值。
///
/// Argument of [Connection::precheck_duck_db_dependency()], returns [PrecheckDuckDBDependencyResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct PrecheckDuckDBDependency {
/// 主实例ID。
db_instance_id: String,
#[setters(generate = true, strip_option)]
target_mode: Option<TargetMode>,
}
impl sealed::Bound for PrecheckDuckDBDependency {}
impl PrecheckDuckDBDependency {
pub fn new(db_instance_id: impl Into<String>) -> Self {
Self {
db_instance_id: db_instance_id.into(),
target_mode: None,
}
}
}
impl crate::ToFormData for PrecheckDuckDBDependency {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for PrecheckDuckDBDependency {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "PrecheckDuckDBDependency";
const URL_PATH: &'static str = "";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<PrecheckDuckDBDependencyResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(2);
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
if let Some(f) = &self.target_mode {
params.push(("TargetMode".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于为RDS集群系列实例新增节点。
///
/// Argument of [Connection::create_db_nodes()], returns [CreateDBNodesResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct CreateDBNodes {
/// 该参数用于保证请求的幂等性,防止重复提交请求。参数值由客户端生成,保证在不同请求间唯一。
///
/// 该参数值由ASCII字符组成,最长不超过64个字符,不能包含非ASCII字符。
#[setters(generate = true, strip_option)]
client_token: Option<String>,
/// 实例ID。可调用DescribeDBInstances获取。
db_instance_id: String,
/// 集群节点列表。
db_node: Vec<CreateDBNodesDBNode>,
/// 资源组ID。可调用DescribeDBInstanceAttribute接口获取。
#[setters(generate = true, strip_option)]
resource_group_id: Option<String>,
}
impl sealed::Bound for CreateDBNodes {}
impl CreateDBNodes {
pub fn new(
db_instance_id: impl Into<String>,
db_node: impl Into<Vec<CreateDBNodesDBNode>>,
) -> Self {
Self {
client_token: None,
db_instance_id: db_instance_id.into(),
db_node: db_node.into(),
resource_group_id: None,
}
}
}
impl crate::ToFormData for CreateDBNodes {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for CreateDBNodes {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "CreateDBNodes";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<CreateDBNodesResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(4);
if let Some(f) = &self.client_token {
params.push(("ClientToken".into(), (f).into()));
}
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
if let Ok(json) = serde_json::to_string(&self.db_node) {
params.push(("DBNode".into(), json.into()));
}
if let Some(f) = &self.resource_group_id {
params.push(("ResourceGroupId".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于为RDS集群系列实例创建Endpoint。
///
/// Argument of [Connection::create_db_instance_endpoint()], returns [CreateDBInstanceEndpointResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct CreateDBInstanceEndpoint {
/// 该参数用于保证请求的幂等性,防止重复提交请求。参数值由客户端生成,保证在不同请求间唯一。
///
/// 该参数值由ASCII字符组成,最长不超过64个字符,不能包含非ASCII字符。
#[setters(generate = true, strip_option)]
client_token: Option<String>,
/// 实例ID。可调用DescribeDBInstances查询。
db_instance_id: String,
/// 内网连接的VPC ID。
vpc_id: String,
/// 内网连接的交换机ID。
v_switch_id: String,
/// 内网连接的IP地址。
#[setters(generate = true, strip_option)]
private_ip_address: Option<String>,
/// 内网连接地址前缀。
///
/// 创建Endpoint的同时会自动创建一个内网连接地址,该参数表示内网连接地址的前缀。
connection_string_prefix: String,
/// 内网连接端口号。创建内网连接支持自定义端口号。
///
/// 取值范围:3000~5999
port: String,
/// Endpoint类型,取值含义如下:
///
/// - Primary:实例的读写Endpoint
///
/// - Readonly:实例的只读Endpoint
db_instance_endpoint_type: String,
/// 用户自定义的Endpoint描述。
#[setters(generate = true, strip_option)]
db_instance_endpoint_description: Option<String>,
/// Endpoint节点相关信息列表。
node_items: Vec<CreateDBInstanceEndpointNodeItem>,
/// 资源组ID。可调用DescribeDBInstanceAttribute获取。
#[setters(generate = true, strip_option)]
resource_group_id: Option<String>,
}
impl sealed::Bound for CreateDBInstanceEndpoint {}
impl CreateDBInstanceEndpoint {
pub fn new(
db_instance_id: impl Into<String>,
vpc_id: impl Into<String>,
v_switch_id: impl Into<String>,
connection_string_prefix: impl Into<String>,
port: impl Into<String>,
db_instance_endpoint_type: impl Into<String>,
node_items: impl Into<Vec<CreateDBInstanceEndpointNodeItem>>,
) -> Self {
Self {
client_token: None,
db_instance_id: db_instance_id.into(),
vpc_id: vpc_id.into(),
v_switch_id: v_switch_id.into(),
private_ip_address: None,
connection_string_prefix: connection_string_prefix.into(),
port: port.into(),
db_instance_endpoint_type: db_instance_endpoint_type.into(),
db_instance_endpoint_description: None,
node_items: node_items.into(),
resource_group_id: None,
}
}
}
impl crate::ToFormData for CreateDBInstanceEndpoint {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for CreateDBInstanceEndpoint {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "CreateDBInstanceEndpoint";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<CreateDBInstanceEndpointResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(11);
if let Some(f) = &self.client_token {
params.push(("ClientToken".into(), (f).into()));
}
params.push((
"ConnectionStringPrefix".into(),
(&self.connection_string_prefix).into(),
));
if let Some(f) = &self.db_instance_endpoint_description {
params.push(("DBInstanceEndpointDescription".into(), (f).into()));
}
params.push((
"DBInstanceEndpointType".into(),
(&self.db_instance_endpoint_type).into(),
));
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
if let Ok(json) = serde_json::to_string(&self.node_items) {
params.push(("NodeItems".into(), json.into()));
}
params.push(("Port".into(), (&self.port).into()));
if let Some(f) = &self.private_ip_address {
params.push(("PrivateIpAddress".into(), (f).into()));
}
if let Some(f) = &self.resource_group_id {
params.push(("ResourceGroupId".into(), (f).into()));
}
params.push(("VSwitchId".into(), (&self.v_switch_id).into()));
params.push(("VpcId".into(), (&self.vpc_id).into()));
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于为RDS集群系列实例创建Endpoint的外网连接地址。
///
/// Argument of [Connection::create_db_instance_endpoint_address()], returns [CreateDBInstanceEndpointAddressResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct CreateDBInstanceEndpointAddress {
/// 该参数用于保证请求的幂等性,防止重复提交请求。参数值由客户端生成,保证在不同请求间唯一。
///
/// 该参数值由ASCII字符组成,最长不超过64个字符,不能包含非ASCII字符。
#[setters(generate = true, strip_option)]
client_token: Option<String>,
/// 实例ID。可调用DescribeDBInstances查询。
db_instance_id: String,
/// 实例的Endpoint ID。可调用DescribeDBInstanceEndpoints查询。
db_instance_endpoint_id: String,
/// 外网连接地址的前缀。
connection_string_prefix: String,
/// 外网连接地址端口号。
port: String,
/// 连接地址的网络类型,仅支持外网类型,取值为**Public**。
///
///
///
ip_type: String,
/// 资源组ID。可调用DescribeDBInstanceAttribute获取。
#[setters(generate = true, strip_option)]
resource_group_id: Option<String>,
}
impl sealed::Bound for CreateDBInstanceEndpointAddress {}
impl CreateDBInstanceEndpointAddress {
pub fn new(
db_instance_id: impl Into<String>,
db_instance_endpoint_id: impl Into<String>,
connection_string_prefix: impl Into<String>,
port: impl Into<String>,
ip_type: impl Into<String>,
) -> Self {
Self {
client_token: None,
db_instance_id: db_instance_id.into(),
db_instance_endpoint_id: db_instance_endpoint_id.into(),
connection_string_prefix: connection_string_prefix.into(),
port: port.into(),
ip_type: ip_type.into(),
resource_group_id: None,
}
}
}
impl crate::ToFormData for CreateDBInstanceEndpointAddress {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for CreateDBInstanceEndpointAddress {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "CreateDBInstanceEndpointAddress";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<CreateDBInstanceEndpointAddressResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(7);
if let Some(f) = &self.client_token {
params.push(("ClientToken".into(), (f).into()));
}
params.push((
"ConnectionStringPrefix".into(),
(&self.connection_string_prefix).into(),
));
params.push((
"DBInstanceEndpointId".into(),
(&self.db_instance_endpoint_id).into(),
));
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
params.push(("IpType".into(), (&self.ip_type).into()));
params.push(("Port".into(), (&self.port).into()));
if let Some(f) = &self.resource_group_id {
params.push(("ResourceGroupId".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于为RDS集群系列实例删除节点。
///
/// Argument of [Connection::delete_db_nodes()], returns [DeleteDBNodesResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DeleteDBNodes {
/// 该参数用于保证请求的幂等性,防止重复提交请求。参数值由客户端生成,保证在不同请求间唯一。
///
/// 该参数值由ASCII字符组成,最长不超过64个字符,不能包含非ASCII字符。
#[setters(generate = true, strip_option)]
client_token: Option<String>,
/// 实例ID。可调用DescribeDBInstances获取。
db_instance_id: String,
/// 节点ID列表。
db_node_id: Vec<String>,
/// 资源组ID。可调用DescribeDBInstanceAttribute获取。
#[setters(generate = true, strip_option)]
resource_group_id: Option<String>,
}
impl sealed::Bound for DeleteDBNodes {}
impl DeleteDBNodes {
pub fn new(db_instance_id: impl Into<String>, db_node_id: impl Into<Vec<String>>) -> Self {
Self {
client_token: None,
db_instance_id: db_instance_id.into(),
db_node_id: db_node_id.into(),
resource_group_id: None,
}
}
}
impl crate::ToFormData for DeleteDBNodes {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DeleteDBNodes {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DeleteDBNodes";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DeleteDBNodesResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(4);
if let Some(f) = &self.client_token {
params.push(("ClientToken".into(), (f).into()));
}
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
if let Ok(json) = serde_json::to_string(&self.db_node_id) {
params.push(("DBNodeId".into(), json.into()));
}
if let Some(f) = &self.resource_group_id {
params.push(("ResourceGroupId".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于删除RDS集群系列实例的Endpoint。
///
/// Argument of [Connection::delete_db_instance_endpoint()], returns [DeleteDBInstanceEndpointResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DeleteDBInstanceEndpoint {
/// 该参数用于保证请求的幂等性,防止重复提交请求。参数值由客户端生成,保证在不同请求间唯一。
///
/// 该参数值由ASCII字符组成,最长不超过64个字符,不能包含非ASCII字符。
#[setters(generate = true, strip_option)]
client_token: Option<String>,
/// 实例ID。可调用DescribeDBInstances查询。
db_instance_id: String,
/// 实例的Endpoint ID。可调用DescribeDBInstanceEndpoints查询。
db_instance_endpoint_id: String,
}
impl sealed::Bound for DeleteDBInstanceEndpoint {}
impl DeleteDBInstanceEndpoint {
pub fn new(
db_instance_id: impl Into<String>,
db_instance_endpoint_id: impl Into<String>,
) -> Self {
Self {
client_token: None,
db_instance_id: db_instance_id.into(),
db_instance_endpoint_id: db_instance_endpoint_id.into(),
}
}
}
impl crate::ToFormData for DeleteDBInstanceEndpoint {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DeleteDBInstanceEndpoint {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DeleteDBInstanceEndpoint";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DeleteDBInstanceEndpointResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(3);
if let Some(f) = &self.client_token {
params.push(("ClientToken".into(), (f).into()));
}
params.push((
"DBInstanceEndpointId".into(),
(&self.db_instance_endpoint_id).into(),
));
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于释放RDS集群系列实例的Endpoint的外网连接地址。
///
/// Argument of [Connection::delete_db_instance_endpoint_address()], returns [DeleteDBInstanceEndpointAddressResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DeleteDBInstanceEndpointAddress {
/// 该参数用于保证请求的幂等性,防止重复提交请求。参数值由客户端生成,保证在不同请求间唯一。
///
/// 该参数值由ASCII字符组成,最长不超过64个字符,不能包含非ASCII字符。
#[setters(generate = true, strip_option)]
client_token: Option<String>,
/// 实例ID。可调用DescribeDBInstances查询。
db_instance_id: String,
/// 实例的Endpoint ID。可调用DescribeDBInstanceEndpoints查询。
db_instance_endpoint_id: String,
/// 外网连接地址。
connection_string: String,
}
impl sealed::Bound for DeleteDBInstanceEndpointAddress {}
impl DeleteDBInstanceEndpointAddress {
pub fn new(
db_instance_id: impl Into<String>,
db_instance_endpoint_id: impl Into<String>,
connection_string: impl Into<String>,
) -> Self {
Self {
client_token: None,
db_instance_id: db_instance_id.into(),
db_instance_endpoint_id: db_instance_endpoint_id.into(),
connection_string: connection_string.into(),
}
}
}
impl crate::ToFormData for DeleteDBInstanceEndpointAddress {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(2);
params.push(("ConnectionString".into(), (&self.connection_string).into()));
params.push((
"DBInstanceEndpointId".into(),
(&self.db_instance_endpoint_id).into(),
));
params
}
}
impl crate::Request for DeleteDBInstanceEndpointAddress {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DeleteDBInstanceEndpointAddress";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DeleteDBInstanceEndpointAddressResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(2);
if let Some(f) = &self.client_token {
params.push(("ClientToken".into(), (f).into()));
}
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于变更RDS MySQL集群系列实例节点的规格、存储类型、存储空间。
///
/// Argument of [Connection::modify_db_node()], returns [ModifyDBNodeResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct ModifyDBNode {
/// 用于保证请求的幂等性。
#[setters(generate = true, strip_option)]
client_token: Option<String>,
/// 实例ID。
db_instance_id: String,
/// 实例储存类型,取值:
/// * **cloud_essd**:ESSD PL1云盘
/// * **cloud_essd2**:ESSD PL2云盘
/// * **cloud_essd3**:ESSD PL3云盘
#[setters(generate = true, strip_option)]
db_instance_storage_type: Option<String>,
/// 新实例存储容量。单位:GB。详情请参见[实例规格](~~26312~~)。
#[setters(generate = true, strip_option)]
db_instance_storage: Option<String>,
/// 节点相关信息。
/// > 该参数用于MySQL集群系列实例。
#[setters(generate = true, strip_option)]
db_node: Option<Vec<NodeDBNode>>,
/// 生效时间,取值:
/// * **Immediate**(默认值):立即生效。
/// * **MaintainTime**:在可运维时间段内生效,请参见ModifyDBInstanceMaintainTime。
#[setters(generate = true, strip_option)]
effective_time: Option<String>,
/// 是否自动支付。
/// 取值范围:
///
/// 1. **true**:自动支付。您需要确保账户余额充足。
///
/// 1. **false**:只生成订单不扣费。
///
///
///
///
/// > 默认值为true。如果您的支付方式余额不足,可以将参数AutoPay设置为false,此时会生成未支付订单,您可以登录RDS管理控制台自行支付。
/// >
#[setters(generate = true, strip_option)]
auto_pay: Option<bool>,
/// 是否对本次节点变更的操作执行预检查。取值范围:
/// * **true**:执行预检查操作,不执行变更。检查项目包含请求参数、请求格式、业务限制和库存等。
/// * **false**:发送正常请求,通过检查后直接执行变更(默认)。
#[setters(generate = true, strip_option)]
dry_run: Option<bool>,
/// 是否异步执行生产。取值范围:
/// * **true**:请求只下发订单,变更操作会异步执行(默认)。
/// * **false**:请求下发的同时,通过检查后直接执行变更。
///
/// > 默认值为true,变更操作异步执行。如果设置为false,变更操作同步执行,接口响应时间会相对较长。
#[setters(generate = true, strip_option)]
produce_async: Option<bool>,
}
impl sealed::Bound for ModifyDBNode {}
impl ModifyDBNode {
pub fn new(db_instance_id: impl Into<String>) -> Self {
Self {
client_token: None,
db_instance_id: db_instance_id.into(),
db_instance_storage_type: None,
db_instance_storage: None,
db_node: None,
effective_time: None,
auto_pay: None,
dry_run: None,
produce_async: None,
}
}
}
impl crate::ToFormData for ModifyDBNode {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for ModifyDBNode {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "ModifyDBNode";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<ModifyDBNodeResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(9);
if let Some(f) = &self.auto_pay {
params.push(("AutoPay".into(), (f).into()));
}
if let Some(f) = &self.client_token {
params.push(("ClientToken".into(), (f).into()));
}
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
if let Some(f) = &self.db_instance_storage {
params.push(("DBInstanceStorage".into(), (f).into()));
}
if let Some(f) = &self.db_instance_storage_type {
params.push(("DBInstanceStorageType".into(), (f).into()));
}
if let Some(f) = &self.db_node {
if let Ok(json) = serde_json::to_string(f) {
params.push(("DBNode".into(), json.into()));
}
}
if let Some(f) = &self.dry_run {
params.push(("DryRun".into(), (f).into()));
}
if let Some(f) = &self.effective_time {
params.push(("EffectiveTime".into(), (f).into()));
}
if let Some(f) = &self.produce_async {
params.push(("ProduceAsync".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于修改RDS集群系列实例的Endpoint权重信息。
///
/// Argument of [Connection::modify_db_instance_endpoint()], returns [ModifyDBInstanceEndpointResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct ModifyDBInstanceEndpoint {
/// 该参数用于保证请求的幂等性,防止重复提交请求。参数值由客户端生成,保证在不同请求间唯一。
///
/// 该参数值由ASCII字符组成,最长不超过64个字符,不能包含非ASCII字符。
#[setters(generate = true, strip_option)]
client_token: Option<String>,
/// 实例ID。可调用DescribeDBInstances查询。
db_instance_id: String,
/// 实例的Endpoint ID。可调用DescribeDBInstanceEndpoints查询。
db_instance_endpoint_id: String,
/// 用户自定义的Endpoint描述。
#[setters(generate = true, strip_option)]
db_instance_endpoint_description: Option<String>,
/// Endpoint节点相关信息列表。
#[setters(generate = true, strip_option)]
node_items: Option<Vec<ModifyDBInstanceEndpointNodeItem>>,
}
impl sealed::Bound for ModifyDBInstanceEndpoint {}
impl ModifyDBInstanceEndpoint {
pub fn new(
db_instance_id: impl Into<String>,
db_instance_endpoint_id: impl Into<String>,
) -> Self {
Self {
client_token: None,
db_instance_id: db_instance_id.into(),
db_instance_endpoint_id: db_instance_endpoint_id.into(),
db_instance_endpoint_description: None,
node_items: None,
}
}
}
impl crate::ToFormData for ModifyDBInstanceEndpoint {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for ModifyDBInstanceEndpoint {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "ModifyDBInstanceEndpoint";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<ModifyDBInstanceEndpointResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(5);
if let Some(f) = &self.client_token {
params.push(("ClientToken".into(), (f).into()));
}
if let Some(f) = &self.db_instance_endpoint_description {
params.push(("DBInstanceEndpointDescription".into(), (f).into()));
}
params.push((
"DBInstanceEndpointId".into(),
(&self.db_instance_endpoint_id).into(),
));
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
if let Some(f) = &self.node_items {
if let Ok(json) = serde_json::to_string(f) {
params.push(("NodeItems".into(), json.into()));
}
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于修改RDS集群系列实例的Endpoint连接地址信息。
///
/// Argument of [Connection::modify_db_instance_endpoint_address()], returns [ModifyDBInstanceEndpointAddressResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct ModifyDBInstanceEndpointAddress {
/// 该参数用于保证请求的幂等性,防止重复提交请求。参数值由客户端生成,保证在不同请求间唯一。
///
/// 该参数值由ASCII字符组成,最长不超过64个字符,不能包含非ASCII字符。
#[setters(generate = true, strip_option)]
client_token: Option<String>,
/// 实例ID。可调用DescribeDBInstances查询。
db_instance_id: String,
/// 实例的Endpoint ID。可调用DescribeDBInstanceEndpoints查询。
db_instance_endpoint_id: String,
/// 待修改的实例某个连接地址,可以是内网或外网连接地址。
connection_string: String,
/// 内网连接的VPC ID。
#[setters(generate = true, strip_option)]
vpc_id: Option<String>,
/// 内网连接的交换机ID。
#[setters(generate = true, strip_option)]
v_switch_id: Option<String>,
/// 内网IP地址。
#[setters(generate = true, strip_option)]
private_ip_address: Option<String>,
/// 目标连接地址的前缀。只能修改ConnectionString参数的前缀部分。
#[setters(generate = true, strip_option)]
connection_string_prefix: Option<String>,
/// 目标连接的端口号。
#[setters(generate = true, strip_option)]
port: Option<String>,
}
impl sealed::Bound for ModifyDBInstanceEndpointAddress {}
impl ModifyDBInstanceEndpointAddress {
pub fn new(
db_instance_id: impl Into<String>,
db_instance_endpoint_id: impl Into<String>,
connection_string: impl Into<String>,
) -> Self {
Self {
client_token: None,
db_instance_id: db_instance_id.into(),
db_instance_endpoint_id: db_instance_endpoint_id.into(),
connection_string: connection_string.into(),
vpc_id: None,
v_switch_id: None,
private_ip_address: None,
connection_string_prefix: None,
port: None,
}
}
}
impl crate::ToFormData for ModifyDBInstanceEndpointAddress {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for ModifyDBInstanceEndpointAddress {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "ModifyDBInstanceEndpointAddress";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<ModifyDBInstanceEndpointAddressResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(9);
if let Some(f) = &self.client_token {
params.push(("ClientToken".into(), (f).into()));
}
params.push(("ConnectionString".into(), (&self.connection_string).into()));
if let Some(f) = &self.connection_string_prefix {
params.push(("ConnectionStringPrefix".into(), (f).into()));
}
params.push((
"DBInstanceEndpointId".into(),
(&self.db_instance_endpoint_id).into(),
));
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
if let Some(f) = &self.port {
params.push(("Port".into(), (f).into()));
}
if let Some(f) = &self.private_ip_address {
params.push(("PrivateIpAddress".into(), (f).into()));
}
if let Some(f) = &self.v_switch_id {
params.push(("VSwitchId".into(), (f).into()));
}
if let Some(f) = &self.vpc_id {
params.push(("VpcId".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于查询RDS集群系列实例的Endpoint信息。
///
/// Argument of [Connection::describe_db_instance_endpoints()], returns [DescribeDBInstanceEndpointsResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DescribeDBInstanceEndpoints {
/// 该参数用于保证请求的幂等性,防止重复提交请求。参数值由客户端生成,保证在不同请求间唯一。
///
/// 该参数值由ASCII字符组成,最长不超过64个字符,不能包含非ASCII字符。
///
#[setters(generate = true, strip_option)]
client_token: Option<String>,
/// 实例ID。可调用DescribeDBInstances查询。
db_instance_id: String,
/// 实例的Endpoint ID。
///
/// > 未传该参数表示返回所有Endpoint信息。
#[setters(generate = true, strip_option)]
db_instance_endpoint_id: Option<String>,
}
impl sealed::Bound for DescribeDBInstanceEndpoints {}
impl DescribeDBInstanceEndpoints {
pub fn new(db_instance_id: impl Into<String>) -> Self {
Self {
client_token: None,
db_instance_id: db_instance_id.into(),
db_instance_endpoint_id: None,
}
}
}
impl crate::ToFormData for DescribeDBInstanceEndpoints {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DescribeDBInstanceEndpoints {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DescribeDBInstanceEndpoints";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DescribeDBInstanceEndpointsResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(3);
if let Some(f) = &self.client_token {
params.push(("ClientToken".into(), (f).into()));
}
if let Some(f) = &self.db_instance_endpoint_id {
params.push(("DBInstanceEndpointId".into(), (f).into()));
}
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于新增RDS实例数据库代理的连接地址。
///
/// Argument of [Connection::create_db_proxy_endpoint_address()], returns [CreateDBProxyEndpointAddressResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct CreateDBProxyEndpointAddress {
/// 地域ID。可调用DescribeRegions获取。
#[setters(generate = true, strip_option)]
region_id: Option<String>,
/// 实例ID。可调用DescribeDBInstances获取。
db_instance_id: String,
/// 数据库代理连接地址ID。可以调用DescribeDBProxyEndpoint接口查询。
db_proxy_endpoint_id: String,
/// 新的数据库代理连接地址的前缀。自定义。
connection_string_prefix: String,
/// 新的数据库代理连接地址的端口,默认值:
///
/// - MySQL:**3306**
/// - PostgreSQL:**5432**
#[setters(generate = true, strip_option)]
db_proxy_new_connect_string_port: Option<String>,
/// 新的数据库代理连接地址的网络类型,取值:
/// * **Public**:公网
/// * **VPC**(默认值):专有网络
db_proxy_connect_string_net_type: String,
/// 新的数据库代理连接地址的VPC ID。可调用DescribeDBInstanceAttribute接口查询。
///
/// >当**DBProxyConnectStringNetType**取值为**VPC**时, 必须传入此参数。
#[setters(generate = true, strip_option)]
vpc_id: Option<String>,
/// 新的数据库代理连接地址的虚拟交换机ID。可调用DescribeDBInstanceAttribute接口查询。
///
/// >当**DBProxyConnectStringNetType**取值为**VPC**时, 必须传入此参数。
#[setters(generate = true, strip_option)]
v_switch_id: Option<String>,
/// 预留参数,无需配置。
#[setters(generate = true, strip_option)]
db_proxy_engine_type: Option<String>,
/// 资源组ID。
#[setters(generate = true, strip_option)]
resource_group_id: Option<String>,
}
impl sealed::Bound for CreateDBProxyEndpointAddress {}
impl CreateDBProxyEndpointAddress {
pub fn new(
db_instance_id: impl Into<String>,
db_proxy_endpoint_id: impl Into<String>,
connection_string_prefix: impl Into<String>,
db_proxy_connect_string_net_type: impl Into<String>,
) -> Self {
Self {
region_id: None,
db_instance_id: db_instance_id.into(),
db_proxy_endpoint_id: db_proxy_endpoint_id.into(),
connection_string_prefix: connection_string_prefix.into(),
db_proxy_new_connect_string_port: None,
db_proxy_connect_string_net_type: db_proxy_connect_string_net_type.into(),
vpc_id: None,
v_switch_id: None,
db_proxy_engine_type: None,
resource_group_id: None,
}
}
}
impl crate::ToFormData for CreateDBProxyEndpointAddress {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for CreateDBProxyEndpointAddress {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "CreateDBProxyEndpointAddress";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<CreateDBProxyEndpointAddressResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(10);
params.push((
"ConnectionStringPrefix".into(),
(&self.connection_string_prefix).into(),
));
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
params.push((
"DBProxyConnectStringNetType".into(),
(&self.db_proxy_connect_string_net_type).into(),
));
params.push((
"DBProxyEndpointId".into(),
(&self.db_proxy_endpoint_id).into(),
));
if let Some(f) = &self.db_proxy_engine_type {
params.push(("DBProxyEngineType".into(), (f).into()));
}
if let Some(f) = &self.db_proxy_new_connect_string_port {
params.push(("DBProxyNewConnectStringPort".into(), (f).into()));
}
if let Some(f) = &self.region_id {
params.push(("RegionId".into(), (f).into()));
}
if let Some(f) = &self.resource_group_id {
params.push(("ResourceGroupId".into(), (f).into()));
}
if let Some(f) = &self.vpc_id {
params.push(("VPCId".into(), (f).into()));
}
if let Some(f) = &self.v_switch_id {
params.push(("VSwitchId".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于删除RDS实例数据库代理的连接地址。
///
/// Argument of [Connection::delete_db_proxy_endpoint_address()], returns [DeleteDBProxyEndpointAddressResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DeleteDBProxyEndpointAddress {
/// 地域ID。可调用DescribeRegions获取。
#[setters(generate = true, strip_option)]
region_id: Option<String>,
/// 实例ID。可调用DescribeDBInstances获取。
db_instance_id: String,
/// 数据库代理连接地址ID。可以通过接口DescribeDBProxyEndpoint查询。
db_proxy_endpoint_id: String,
/// 需要删除的数据库代理连接地址的网络类型,取值:
/// * **Public**:公网
/// * **VPC**:内网(专有网络)
/// * **Classic**:内网(经典网络)
///
/// 默认值:**Classic**。
///
/// > - 无法删除默认创建的内网类型的连接地址。
/// > - RDS PostgreSQL仅支持**Public**和**VPC**。
db_proxy_connect_string_net_type: String,
/// 废弃参数,无需配置。
#[setters(generate = true, strip_option)]
db_proxy_engine_type: Option<String>,
}
impl sealed::Bound for DeleteDBProxyEndpointAddress {}
impl DeleteDBProxyEndpointAddress {
pub fn new(
db_instance_id: impl Into<String>,
db_proxy_endpoint_id: impl Into<String>,
db_proxy_connect_string_net_type: impl Into<String>,
) -> Self {
Self {
region_id: None,
db_instance_id: db_instance_id.into(),
db_proxy_endpoint_id: db_proxy_endpoint_id.into(),
db_proxy_connect_string_net_type: db_proxy_connect_string_net_type.into(),
db_proxy_engine_type: None,
}
}
}
impl crate::ToFormData for DeleteDBProxyEndpointAddress {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DeleteDBProxyEndpointAddress {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DeleteDBProxyEndpointAddress";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DeleteDBProxyEndpointAddressResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(5);
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
params.push((
"DBProxyConnectStringNetType".into(),
(&self.db_proxy_connect_string_net_type).into(),
));
params.push((
"DBProxyEndpointId".into(),
(&self.db_proxy_endpoint_id).into(),
));
if let Some(f) = &self.db_proxy_engine_type {
params.push(("DBProxyEngineType".into(), (f).into()));
}
if let Some(f) = &self.region_id {
params.push(("RegionId".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于开启或者修改RDS实例的数据库代理实例功能。
///
/// Argument of [Connection::modify_db_proxy()], returns [ModifyDBProxyResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct ModifyDBProxy {
/// 实例ID。可调用DescribeDBInstances获取。
db_instance_id: String,
/// 开启或关闭数据库代理,取值:
///
/// * **Startup**:开启代理服务
/// * **Shutdown**:关闭代理服务
/// * **Modify**:修改代理服务
config_db_proxy_service: String,
/// 开通代理实例数量,取值:**1**~**16**。默认值:**1**。
///
/// >更多的代理实例能处理更多的请求,您可以根据监控数据了解代理实例的负载,然后设置合理的代理实例数量。
#[setters(generate = true, strip_option)]
db_proxy_instance_num: Option<String>,
/// 地域ID,可调用DescribeRegions获取。
#[setters(generate = true, strip_option)]
region_id: Option<String>,
/// 实例的网络类型。当前仅支持VPC网络,取值:**VPC**。
///
/// > 开启数据库代理时,该参数必选。
#[setters(generate = true, strip_option)]
instance_network_type: Option<String>,
/// 实例所属VPC ID。可调用DescribeDBInstanceAttribute接口查询。
///
/// >开启数据库代理时,该参数必选。
#[setters(generate = true, strip_option)]
vpc_id: Option<String>,
/// 实例所属虚拟交换机ID。可调用DescribeDBInstanceAttribute接口查询。
///
/// > 开启数据库代理时,该参数必选。
#[setters(generate = true, strip_option)]
v_switch_id: Option<String>,
/// 废弃参数,无需配置。
#[setters(generate = true, strip_option)]
db_proxy_engine_type: Option<String>,
/// 数据库代理实例类型,取值:
/// - **common**:通用型代理
/// - **exclusive**:独享型代理(默认值)
#[setters(generate = true, strip_option)]
db_proxy_instance_type: Option<String>,
/// 资源组ID。
#[setters(generate = true, strip_option)]
resource_group_id: Option<String>,
/// 是否开启连接保持。取值:
/// - **Enabled**:开启连接保持
/// - **Disabled**:关闭连接保持
///
/// > - 仅RDS MySQL支持此参数。
/// > - 修改连接保持状态时,**ConfigDBProxyService**取值为**Modify**。
#[setters(generate = true, strip_option)]
persistent_connection_status: Option<String>,
/// 代理节点列表。
#[setters(generate = true, strip_option)]
db_proxy_nodes: Option<Vec<ProxyDBProxyNode>>,
}
impl sealed::Bound for ModifyDBProxy {}
impl ModifyDBProxy {
pub fn new(
db_instance_id: impl Into<String>,
config_db_proxy_service: impl Into<String>,
) -> Self {
Self {
db_instance_id: db_instance_id.into(),
config_db_proxy_service: config_db_proxy_service.into(),
db_proxy_instance_num: None,
region_id: None,
instance_network_type: None,
vpc_id: None,
v_switch_id: None,
db_proxy_engine_type: None,
db_proxy_instance_type: None,
resource_group_id: None,
persistent_connection_status: None,
db_proxy_nodes: None,
}
}
}
impl crate::ToFormData for ModifyDBProxy {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for ModifyDBProxy {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "ModifyDBProxy";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<ModifyDBProxyResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(12);
params.push((
"ConfigDBProxyService".into(),
(&self.config_db_proxy_service).into(),
));
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
if let Some(f) = &self.db_proxy_engine_type {
params.push(("DBProxyEngineType".into(), (f).into()));
}
if let Some(f) = &self.db_proxy_instance_num {
params.push(("DBProxyInstanceNum".into(), (f).into()));
}
if let Some(f) = &self.db_proxy_instance_type {
params.push(("DBProxyInstanceType".into(), (f).into()));
}
if let Some(f) = &self.db_proxy_nodes {
if let Ok(json) = serde_json::to_string(f) {
params.push(("DBProxyNodes".into(), json.into()));
}
}
if let Some(f) = &self.instance_network_type {
params.push(("InstanceNetworkType".into(), (f).into()));
}
if let Some(f) = &self.persistent_connection_status {
params.push(("PersistentConnectionStatus".into(), (f).into()));
}
if let Some(f) = &self.region_id {
params.push(("RegionId".into(), (f).into()));
}
if let Some(f) = &self.resource_group_id {
params.push(("ResourceGroupId".into(), (f).into()));
}
if let Some(f) = &self.vpc_id {
params.push(("VPCId".into(), (f).into()));
}
if let Some(f) = &self.v_switch_id {
params.push(("VSwitchId".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于升级数据库代理的内核小版本。
///
/// Argument of [Connection::upgrade_db_proxy_instance_kernel_version()], returns [UpgradeDBProxyInstanceKernelVersionResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct UpgradeDBProxyInstanceKernelVersion {
/// 实例ID。可调用DescribeDBInstances获取。
db_instance_id: String,
/// 升级时间,取值:
///
/// * **MaintainTime**(默认值):在[可运维时间段](~~610402~~)内升级。
/// * **Immediate**:立即升级。
/// * **SpecifyTime**:在指定时间升级。
#[setters(generate = true, strip_option)]
upgrade_time: Option<String>,
/// 指定时间。格式:<i>yyyy-MM-dd</i>T<i>HH:mm:ss</i>Z(UTC时间)。
/// >如果**UpgradeTime**取值为**SpecifyTime**时,该参数必填。
#[setters(generate = true, strip_option)]
switch_time: Option<String>,
#[setters(generate = true, strip_option)]
target_minor_version: Option<String>,
/// 预留参数,无需配置。
#[setters(generate = true, strip_option)]
db_proxy_engine_type: Option<String>,
}
impl sealed::Bound for UpgradeDBProxyInstanceKernelVersion {}
impl UpgradeDBProxyInstanceKernelVersion {
pub fn new(db_instance_id: impl Into<String>) -> Self {
Self {
db_instance_id: db_instance_id.into(),
upgrade_time: None,
switch_time: None,
target_minor_version: None,
db_proxy_engine_type: None,
}
}
}
impl crate::ToFormData for UpgradeDBProxyInstanceKernelVersion {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for UpgradeDBProxyInstanceKernelVersion {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "UpgradeDBProxyInstanceKernelVersion";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<UpgradeDBProxyInstanceKernelVersionResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(5);
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
if let Some(f) = &self.db_proxy_engine_type {
params.push(("DBProxyEngineType".into(), (f).into()));
}
if let Some(f) = &self.switch_time {
params.push(("SwitchTime".into(), (f).into()));
}
if let Some(f) = &self.target_minor_version {
params.push(("TargetMinorVersion".into(), (f).into()));
}
if let Some(f) = &self.upgrade_time {
params.push(("UpgradeTime".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于变更RDS数据库代理实例相关配置。
///
/// Argument of [Connection::modify_db_proxy_instance()], returns [ModifyDBProxyInstanceResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct ModifyDBProxyInstance {
/// 实例ID。可调用DescribeDBInstances获取。
db_instance_id: String,
/// 数据库代理实例类型,取值:
/// - **common**:通用型代理
/// - **exclusive**:独享型代理(默认)
db_proxy_instance_type: String,
/// 设置代理实例数量。当取值为0的时候,表示这个实例关闭此种类型代理服务。取值:**1**~**16**。
/// >更多的代理实例能处理更多的请求,您可以根据监控数据了解代理实例的负载,然后设置合理的代理实例数量。
db_proxy_instance_num: String,
/// 生效时间,取值:
///
/// * **Immediate**:立即生效。
/// * **MaintainTime**:在可运维时间段内生效,请参见ModifyDBInstanceMaintainTime。
/// * **SpecificTime**:指定时间生效。
///
/// 默认值:**MaintainTime**。
#[setters(generate = true, strip_option)]
effective_time: Option<String>,
/// 指定时间生效。格式:<i>yyyy-MM-dd</i>T<i>HH:mm:ss</i>Z(UTC时间)。
/// >**EffectiveTime**为**SpecificTime**时,该参数必传。
#[setters(generate = true, strip_option)]
effective_specific_time: Option<String>,
/// 地域ID。可调用DescribeRegions获取。
#[setters(generate = true, strip_option)]
region_id: Option<String>,
/// 废弃参数,无需配置。
#[setters(generate = true, strip_option)]
db_proxy_engine_type: Option<String>,
/// 废弃参数,无需配置。
#[setters(generate = true, strip_option)]
v_switch_ids: Option<String>,
/// 代理节点列表。
/// >当前代理实例为多可用区部署时,该参数必传。
#[setters(generate = true, strip_option)]
db_proxy_nodes: Option<Vec<InstanceDBProxyNode>>,
/// 迁移代理可用区列表。
/// >当前仅支持RDS MySQL云盘版代理实例迁移可用区。
#[setters(generate = true, strip_option)]
migrate_az: Option<Vec<AZ>>,
}
impl sealed::Bound for ModifyDBProxyInstance {}
impl ModifyDBProxyInstance {
pub fn new(
db_instance_id: impl Into<String>,
db_proxy_instance_type: impl Into<String>,
db_proxy_instance_num: impl Into<String>,
) -> Self {
Self {
db_instance_id: db_instance_id.into(),
db_proxy_instance_type: db_proxy_instance_type.into(),
db_proxy_instance_num: db_proxy_instance_num.into(),
effective_time: None,
effective_specific_time: None,
region_id: None,
db_proxy_engine_type: None,
v_switch_ids: None,
db_proxy_nodes: None,
migrate_az: None,
}
}
}
impl crate::ToFormData for ModifyDBProxyInstance {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for ModifyDBProxyInstance {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "ModifyDBProxyInstance";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<ModifyDBProxyInstanceResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(10);
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
if let Some(f) = &self.db_proxy_engine_type {
params.push(("DBProxyEngineType".into(), (f).into()));
}
params.push((
"DBProxyInstanceNum".into(),
(&self.db_proxy_instance_num).into(),
));
params.push((
"DBProxyInstanceType".into(),
(&self.db_proxy_instance_type).into(),
));
if let Some(f) = &self.db_proxy_nodes {
if let Ok(json) = serde_json::to_string(f) {
params.push(("DBProxyNodes".into(), json.into()));
}
}
if let Some(f) = &self.effective_specific_time {
params.push(("EffectiveSpecificTime".into(), (f).into()));
}
if let Some(f) = &self.effective_time {
params.push(("EffectiveTime".into(), (f).into()));
}
if let Some(f) = &self.migrate_az {
if let Ok(json) = serde_json::to_string(f) {
params.push(("MigrateAZ".into(), json.into()));
}
}
if let Some(f) = &self.region_id {
params.push(("RegionId".into(), (f).into()));
}
if let Some(f) = &self.v_switch_ids {
params.push(("VSwitchIds".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于配置RDS实例数据库代理连接地址的访问策略。
///
/// Argument of [Connection::modify_db_proxy_endpoint()], returns [ModifyDBProxyEndpointResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct ModifyDBProxyEndpoint {
/// 实例ID。可调用DescribeDBInstances获取。
db_instance_id: String,
/// 代理连接地址ID。可以通过接口DescribeDBProxyEndpoint查看。
///
/// > - MySQL:当**DbEndpointOperator**取值为**Delete**或**Modify**时,本参数必须传入。
/// > - PostgreSQL:当**DbEndpointOperator**取值为**Delete**、**Modify**或**Create**时,本参数必须传入。
#[setters(generate = true, strip_option)]
db_proxy_endpoint_id: Option<String>,
/// 设置代理连接地址想要开通的代理功能,各功能之间以英文分号(;)隔开。格式:`功能1:开通情况;功能2:开通情况;... `,末尾不加英文分号(;)。
///
/// 功能取值:
/// * **ReadWriteSpliting**:读写分离
/// * **ConnectionPersist**:连接池
/// * **TransactionReadSqlRouteOptimizeStatus**:事务拆分
/// * **AZProximityAccess**:就近访问
/// * **CausalConsistRead**:读一致性
/// * **HtapFilter**:HTAP行列自动分流
///
/// 开通情况取值:
/// * **1**:功能已开通
/// * **0**:功能未开通
///
/// > - RDS PostgreSQL仅支持设置**ReadWriteSpliting**。
/// > - 就近访问功能仅支持MySQL独享型代理。
#[setters(generate = true, strip_option)]
config_db_proxy_features: Option<String>,
/// 地域ID。可调用DescribeRegions获取。
#[setters(generate = true, strip_option)]
region_id: Option<String>,
/// 读写分离中只读实例的最大延迟阈值,当只读实例延迟时间超过该值时,读取流量不发往该实例,单位:秒。不传该参数则保持原值。取值:**0**~**3600**。
///
/// >- 开通读写分离时才需要传入该参数。
/// >- 默认值:读写属性为读写(读写分离)时默认**30**秒,读写属性为只读时默认 **-1** (关闭)。
#[setters(generate = true, strip_option)]
read_only_instance_max_delay_time: Option<String>,
/// 一致性读超时时间,单位:毫秒。默认为**10**毫秒,取值:**0~60000**
#[setters(generate = true, strip_option)]
causal_consist_read_timeout: Option<String>,
/// 读权重分配模式。取值:
///
/// * **Standard**:默认值,按规格权重自动分配。
/// * **Custom**:自定义分配权重。
///
/// > 开通读写分离时才需要传入该参数。权限分配模式的详细信息,MySQL请参见[读权重分配](~~96076~~),PostgreSQL请参见[开通并配置数据库代理服务](~~418272~~)。
#[setters(generate = true, strip_option)]
read_only_instance_distribution_type: Option<String>,
/// 自定义读权重分配,即传入主实例和只读实例的读请求权重。以100递增,最大值为10000,格式:
///
/// - 常规实例:`{"主实例ID":"权重","只读实例ID":"权重"...}`
///
/// 示例:`{"rm-uf6wjk5****":"500","rr-tfhfgk5xxx":"200"...}`
/// - RDS MySQL集群版实例:`{"只读实例ID":"权重","DBClusterNode":{"主节点ID":"权重","备节点ID":"权重","备节点ID":"权重"...}}`
///
/// 示例:`{"rr-tfhfgk5****":"200","DBClusterNode":{"rn-2z****":"0","rn-2z****":"400","rn-2z****":"400"...}}`
/// > **DBClusterNode**为集群版独有的请求信息,包含主备节点的**NodeID**以及**权重**。
#[setters(generate = true, strip_option)]
read_only_instance_weight: Option<String>,
/// 操作类型,取值:
/// * **Modify**:默认值,修改代理终端。
/// * **Create**:新建代理终端。
/// * **Delete**:删除代理终端。
#[setters(generate = true, strip_option)]
db_endpoint_operator: Option<String>,
/// 代理终端的备注信息。
#[setters(generate = true, strip_option)]
db_endpoint_aliases: Option<String>,
/// 代理终端的类型,保留参数,无需设置。
#[setters(generate = true, strip_option)]
db_endpoint_type: Option<String>,
/// 读写类型,取值:
/// * **ReadWrite**:连接主实例,可接受写请求。
/// * **ReadOnly**:默认值,不连接主实例,无法接受写请求。
///
/// > * 当**DbEndpointOperator**取值为**Create**时,本参数必须传入。
/// > * RDS MySQL实例中,本参数的取值从**ReadWrite**更换为**ReadOnly**时,会关闭事务拆分功能。
#[setters(generate = true, strip_option)]
db_endpoint_read_write_mode: Option<String>,
/// 废弃参数,无需配置。
#[setters(generate = true, strip_option)]
db_proxy_engine_type: Option<String>,
/// 指定代理连接地址的可用区对应的交换机 ID。默认为代理实例默认终端对应的交换机 ID。可通过调用 DescribeVSwitches 接口查询已创建的交换机。
#[setters(generate = true, strip_option)]
v_switch_id: Option<String>,
/// 生效时间,取值:
///
/// * **Immediate**:立即生效。
/// * **MaintainTime**:在可运维时间段内生效,请参见ModifyDBInstanceMaintainTime。
/// * **SpecificTime**:指定时间生效。
///
/// 默认值:**MaintainTime**。
#[setters(generate = true, strip_option)]
effective_time: Option<String>,
/// 指定时间生效。格式:<i>yyyy-MM-dd</i>T<i>HH:mm:ss</i>Z(UTC时间)。
/// >**EffectiveTime**为**SpecificTime**时,该参数必传。
#[setters(generate = true, strip_option)]
effective_specific_time: Option<String>,
/// 最小保留实例数。
#[setters(generate = true, strip_option)]
db_endpoint_min_slave_count: Option<String>,
/// 指定代理连接地址的可用区对应的VPC ID。默认为代理实例默认终端对应的VPC ID。可通过调用 DescribeDBInstanceAttribute 接口查询实例默认VPC。
#[setters(generate = true, strip_option)]
vpc_id: Option<String>,
}
impl sealed::Bound for ModifyDBProxyEndpoint {}
impl ModifyDBProxyEndpoint {
pub fn new(db_instance_id: impl Into<String>) -> Self {
Self {
db_instance_id: db_instance_id.into(),
db_proxy_endpoint_id: None,
config_db_proxy_features: None,
region_id: None,
read_only_instance_max_delay_time: None,
causal_consist_read_timeout: None,
read_only_instance_distribution_type: None,
read_only_instance_weight: None,
db_endpoint_operator: None,
db_endpoint_aliases: None,
db_endpoint_type: None,
db_endpoint_read_write_mode: None,
db_proxy_engine_type: None,
v_switch_id: None,
effective_time: None,
effective_specific_time: None,
db_endpoint_min_slave_count: None,
vpc_id: None,
}
}
}
impl crate::ToFormData for ModifyDBProxyEndpoint {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for ModifyDBProxyEndpoint {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "ModifyDBProxyEndpoint";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<ModifyDBProxyEndpointResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(18);
if let Some(f) = &self.causal_consist_read_timeout {
params.push(("CausalConsistReadTimeout".into(), (f).into()));
}
if let Some(f) = &self.config_db_proxy_features {
params.push(("ConfigDBProxyFeatures".into(), (f).into()));
}
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
if let Some(f) = &self.db_proxy_endpoint_id {
params.push(("DBProxyEndpointId".into(), (f).into()));
}
if let Some(f) = &self.db_proxy_engine_type {
params.push(("DBProxyEngineType".into(), (f).into()));
}
if let Some(f) = &self.db_endpoint_aliases {
params.push(("DbEndpointAliases".into(), (f).into()));
}
if let Some(f) = &self.db_endpoint_min_slave_count {
params.push(("DbEndpointMinSlaveCount".into(), (f).into()));
}
if let Some(f) = &self.db_endpoint_operator {
params.push(("DbEndpointOperator".into(), (f).into()));
}
if let Some(f) = &self.db_endpoint_read_write_mode {
params.push(("DbEndpointReadWriteMode".into(), (f).into()));
}
if let Some(f) = &self.db_endpoint_type {
params.push(("DbEndpointType".into(), (f).into()));
}
if let Some(f) = &self.effective_specific_time {
params.push(("EffectiveSpecificTime".into(), (f).into()));
}
if let Some(f) = &self.effective_time {
params.push(("EffectiveTime".into(), (f).into()));
}
if let Some(f) = &self.read_only_instance_distribution_type {
params.push(("ReadOnlyInstanceDistributionType".into(), (f).into()));
}
if let Some(f) = &self.read_only_instance_max_delay_time {
params.push(("ReadOnlyInstanceMaxDelayTime".into(), (f).into()));
}
if let Some(f) = &self.read_only_instance_weight {
params.push(("ReadOnlyInstanceWeight".into(), (f).into()));
}
if let Some(f) = &self.region_id {
params.push(("RegionId".into(), (f).into()));
}
if let Some(f) = &self.v_switch_id {
params.push(("VSwitchId".into(), (f).into()));
}
if let Some(f) = &self.vpc_id {
params.push(("VpcId".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于修改RDS实例数据库代理的连接地址。
///
/// Argument of [Connection::modify_db_proxy_endpoint_address()], returns [ModifyDBProxyEndpointAddressResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct ModifyDBProxyEndpointAddress {
/// 实例ID。可调用DescribeDBInstances获取。
db_instance_id: String,
/// 数据库代理连接地址ID。可以通过接口DescribeDBProxyEndpoint查询。
db_proxy_endpoint_id: String,
/// 目标数据库代理连接地址的前缀。自定义。
/// >至少传入**DBProxyNewConnectString**和**DBProxyNewConnectStringPort**其中一个参数。
#[setters(generate = true, strip_option)]
db_proxy_new_connect_string: Option<String>,
/// 目标数据库代理连接地址的端口。自定义。
/// >至少传入**DBProxyNewConnectString**和**DBProxyNewConnectStringPort**其中一个参数。
#[setters(generate = true, strip_option)]
db_proxy_new_connect_string_port: Option<String>,
/// 需要修改的数据库代理连接地址的网络类型,取值:
/// * **Public**:公网
/// * **VPC**(默认值):专有网络
///
///
/// > 数据库引擎为RDS MySQL时,该参数必选。
#[setters(generate = true, strip_option)]
db_proxy_connect_string_net_type: Option<String>,
/// 废弃参数,无需配置。
#[setters(generate = true, strip_option)]
db_proxy_engine_type: Option<String>,
}
impl sealed::Bound for ModifyDBProxyEndpointAddress {}
impl ModifyDBProxyEndpointAddress {
pub fn new(db_instance_id: impl Into<String>, db_proxy_endpoint_id: impl Into<String>) -> Self {
Self {
db_instance_id: db_instance_id.into(),
db_proxy_endpoint_id: db_proxy_endpoint_id.into(),
db_proxy_new_connect_string: None,
db_proxy_new_connect_string_port: None,
db_proxy_connect_string_net_type: None,
db_proxy_engine_type: None,
}
}
}
impl crate::ToFormData for ModifyDBProxyEndpointAddress {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for ModifyDBProxyEndpointAddress {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "ModifyDBProxyEndpointAddress";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<ModifyDBProxyEndpointAddressResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(6);
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
if let Some(f) = &self.db_proxy_connect_string_net_type {
params.push(("DBProxyConnectStringNetType".into(), (f).into()));
}
params.push((
"DBProxyEndpointId".into(),
(&self.db_proxy_endpoint_id).into(),
));
if let Some(f) = &self.db_proxy_engine_type {
params.push(("DBProxyEngineType".into(), (f).into()));
}
if let Some(f) = &self.db_proxy_new_connect_string {
params.push(("DBProxyNewConnectString".into(), (f).into()));
}
if let Some(f) = &self.db_proxy_new_connect_string_port {
params.push(("DBProxyNewConnectStringPort".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于设置RDS MySQL数据库代理连接地址的SSL加密。
///
/// Argument of [Connection::modify_db_proxy_instance_ssl()], returns [ModifyDbProxyInstanceSslResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct ModifyDbProxyInstanceSsl {
/// 地域ID。可调用DescribeRegions获取。
#[setters(generate = true, strip_option)]
region_id: Option<String>,
/// 实例ID。可调用DescribeDBInstances获取。
db_instance_id: String,
/// 代理连接地址ID。可以通过接口DescribeDBProxyEndpoint查看。
db_proxy_endpoint_id: String,
/// 需要开启SSL加密的地址。
db_proxy_connect_string: String,
/// 对SSL加密执行的操作,取值:
/// * 0:关闭SSL加密
/// * 1:开启SSL加密或修改SSL加密地址
/// * 2:更新证书有效期
///
/// >执行以上操作会重启实例,请谨慎操作。
db_proxy_ssl_enabled: String,
/// 预留参数,无需配置。
#[setters(generate = true, strip_option)]
db_proxy_engine_type: Option<String>,
}
impl sealed::Bound for ModifyDbProxyInstanceSsl {}
impl ModifyDbProxyInstanceSsl {
pub fn new(
db_instance_id: impl Into<String>,
db_proxy_endpoint_id: impl Into<String>,
db_proxy_connect_string: impl Into<String>,
db_proxy_ssl_enabled: impl Into<String>,
) -> Self {
Self {
region_id: None,
db_instance_id: db_instance_id.into(),
db_proxy_endpoint_id: db_proxy_endpoint_id.into(),
db_proxy_connect_string: db_proxy_connect_string.into(),
db_proxy_ssl_enabled: db_proxy_ssl_enabled.into(),
db_proxy_engine_type: None,
}
}
}
impl crate::ToFormData for ModifyDbProxyInstanceSsl {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for ModifyDbProxyInstanceSsl {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "ModifyDbProxyInstanceSsl";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<ModifyDbProxyInstanceSslResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(6);
if let Some(f) = &self.db_proxy_engine_type {
params.push(("DBProxyEngineType".into(), (f).into()));
}
params.push(("DbInstanceId".into(), (&self.db_instance_id).into()));
params.push((
"DbProxyConnectString".into(),
(&self.db_proxy_connect_string).into(),
));
params.push((
"DbProxyEndpointId".into(),
(&self.db_proxy_endpoint_id).into(),
));
params.push((
"DbProxySslEnabled".into(),
(&self.db_proxy_ssl_enabled).into(),
));
if let Some(f) = &self.region_id {
params.push(("RegionId".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于查询RDS实例的数据库代理设置详情。
///
/// Argument of [Connection::describe_db_proxy()], returns [DescribeDBProxyResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DescribeDBProxy {
/// 实例ID。可调用DescribeDBInstances获取。
db_instance_id: String,
/// 地域ID。可调用DescribeRegions获取。
#[setters(generate = true, strip_option)]
region_id: Option<String>,
/// 废弃参数,无需配置。
#[setters(generate = true, strip_option)]
db_proxy_engine_type: Option<String>,
/// 资源组ID。
#[setters(generate = true, strip_option)]
resource_group_id: Option<String>,
}
impl sealed::Bound for DescribeDBProxy {}
impl DescribeDBProxy {
pub fn new(db_instance_id: impl Into<String>) -> Self {
Self {
db_instance_id: db_instance_id.into(),
region_id: None,
db_proxy_engine_type: None,
resource_group_id: None,
}
}
}
impl crate::ToFormData for DescribeDBProxy {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DescribeDBProxy {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DescribeDBProxy";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DescribeDBProxyResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(4);
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
if let Some(f) = &self.db_proxy_engine_type {
params.push(("DBProxyEngineType".into(), (f).into()));
}
if let Some(f) = &self.region_id {
params.push(("RegionId".into(), (f).into()));
}
if let Some(f) = &self.resource_group_id {
params.push(("ResourceGroupId".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于查询RDS实例数据库代理的连接地址信息。
///
/// Argument of [Connection::describe_db_proxy_endpoint()], returns [DescribeDBProxyEndpointResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DescribeDBProxyEndpoint {
/// 实例ID。可调用DescribeDBInstances获取。
db_instance_id: String,
/// 代理终端名称。可调用DescribeDBProxy接口查询。
#[setters(generate = true, strip_option)]
db_proxy_endpoint_id: Option<String>,
/// 代理连接地址。可调用DescribeDBProxy接口查询。
#[setters(generate = true, strip_option)]
db_proxy_connect_string: Option<String>,
/// 地域ID。可调用DescribeRegions获取。
#[setters(generate = true, strip_option)]
region_id: Option<String>,
/// 预留参数,无需配置。
#[setters(generate = true, strip_option)]
db_proxy_engine_type: Option<String>,
}
impl sealed::Bound for DescribeDBProxyEndpoint {}
impl DescribeDBProxyEndpoint {
pub fn new(db_instance_id: impl Into<String>) -> Self {
Self {
db_instance_id: db_instance_id.into(),
db_proxy_endpoint_id: None,
db_proxy_connect_string: None,
region_id: None,
db_proxy_engine_type: None,
}
}
}
impl crate::ToFormData for DescribeDBProxyEndpoint {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DescribeDBProxyEndpoint {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DescribeDBProxyEndpoint";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DescribeDBProxyEndpointResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(5);
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
if let Some(f) = &self.db_proxy_connect_string {
params.push(("DBProxyConnectString".into(), (f).into()));
}
if let Some(f) = &self.db_proxy_endpoint_id {
params.push(("DBProxyEndpointId".into(), (f).into()));
}
if let Some(f) = &self.db_proxy_engine_type {
params.push(("DBProxyEngineType".into(), (f).into()));
}
if let Some(f) = &self.region_id {
params.push(("RegionId".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于查询RDS实例数据库代理的性能数据。
///
/// Argument of [Connection::describe_db_proxy_performance()], returns [DescribeDBProxyPerformanceResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DescribeDBProxyPerformance {
/// 实例ID。可调用DescribeDBInstances获取。
db_instance_id: String,
/// 数据库代理实例类型,取值:
/// - common:通用型代理
/// - exclusive:独享型代理
#[setters(generate = true, strip_option)]
db_proxy_instance_type: Option<String>,
/// 查询开始时间。格式:<i>yyyy-MM-dd</i>T<i>HH:mm:ss</i>Z(UTC时间)。
start_time: String,
/// 查询结束时间,不能早于查询开始时间。格式:<i>yyyy-MM-dd</i>T<i>HH:mm:ss</i>Z(UTC时间)。
end_time: String,
/// 地域ID。可调用DescribeRegions获取。
region_id: String,
/// 性能指标。
///
/// RDS MySQL仅支持**Maxscale_CpuUsage**:CPU使用率。
///
/// RDS PostgreSQL查询如下性能数据:
///
/// - **Maxscale_TotalConns**:连接速率
/// - **Maxscale_CurrentConns**:当前连接数
/// - **Maxscale_DownFlows**:出流量
/// - **Maxscale_UpFlows**:入流量
/// - **Maxscale_QPS**:请求速率(QPS)
/// - **Maxscale_MemUsage**:内存使用率
/// - **Maxscale_CpuUsage**:CPU使用率
///
/// 当查询多个性能数据时,可使用英文逗号(,)分隔,最多同时查询6个性能数据。
metrics_name: String,
/// 预留参数,无需配置。
#[setters(generate = true, strip_option)]
db_proxy_engine_type: Option<String>,
/// 聚合维度,支持如下取值,其中service和server不支持同时传递。
///
/// - service:以代理连接地址维度聚合监控指标。
///
/// - node:以代理节点维度聚合监控指标。
///
/// - server:以数据库节点维度聚合监控指标。
#[setters(generate = true, strip_option)]
dimension: Option<String>,
}
impl sealed::Bound for DescribeDBProxyPerformance {}
impl DescribeDBProxyPerformance {
pub fn new(
db_instance_id: impl Into<String>,
start_time: impl Into<String>,
end_time: impl Into<String>,
region_id: impl Into<String>,
metrics_name: impl Into<String>,
) -> Self {
Self {
db_instance_id: db_instance_id.into(),
db_proxy_instance_type: None,
start_time: start_time.into(),
end_time: end_time.into(),
region_id: region_id.into(),
metrics_name: metrics_name.into(),
db_proxy_engine_type: None,
dimension: None,
}
}
}
impl crate::ToFormData for DescribeDBProxyPerformance {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DescribeDBProxyPerformance {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DescribeDBProxyPerformance";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DescribeDBProxyPerformanceResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(8);
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
if let Some(f) = &self.db_proxy_engine_type {
params.push(("DBProxyEngineType".into(), (f).into()));
}
if let Some(f) = &self.db_proxy_instance_type {
params.push(("DBProxyInstanceType".into(), (f).into()));
}
if let Some(f) = &self.dimension {
params.push(("Dimension".into(), (f).into()));
}
params.push(("EndTime".into(), (&self.end_time).into()));
params.push(("MetricsName".into(), (&self.metrics_name).into()));
params.push(("RegionId".into(), (&self.region_id).into()));
params.push(("StartTime".into(), (&self.start_time).into()));
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于查询RDS MySQL数据库代理连接地址SSL加密信息。
///
/// Argument of [Connection::get_db_proxy_instance_ssl()], returns [GetDbProxyInstanceSslResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct GetDbProxyInstanceSsl {
/// 地域ID。可调用DescribeRegions获取。
#[setters(generate = true, strip_option)]
region_id: Option<String>,
/// 实例ID。可调用DescribeDBInstances获取。
db_instance_id: String,
/// 预留参数,无需配置。
#[setters(generate = true, strip_option)]
db_proxy_engine_type: Option<String>,
}
impl sealed::Bound for GetDbProxyInstanceSsl {}
impl GetDbProxyInstanceSsl {
pub fn new(db_instance_id: impl Into<String>) -> Self {
Self {
region_id: None,
db_instance_id: db_instance_id.into(),
db_proxy_engine_type: None,
}
}
}
impl crate::ToFormData for GetDbProxyInstanceSsl {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for GetDbProxyInstanceSsl {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "GetDbProxyInstanceSsl";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<GetDbProxyInstanceSslResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(3);
if let Some(f) = &self.db_proxy_engine_type {
params.push(("DBProxyEngineType".into(), (f).into()));
}
params.push(("DbInstanceId".into(), (&self.db_instance_id).into()));
if let Some(f) = &self.region_id {
params.push(("RegionId".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于修改读写分离链路的延迟阈值和各个实例的读权重。
///
/// Argument of [Connection::modify_read_write_splitting_connection()], returns [ModifyReadWriteSplittingConnectionResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct ModifyReadWriteSplittingConnection {
/// 主实例ID。可调用DescribeDBInstances获取。
db_instance_id: String,
/// 读写分离地址前缀名,不可重复,由小写字母和中划线组成,需以字母开头,长度不超过30个字符。
/// >默认以“实例名+rw”字符串组成前缀。
#[setters(generate = true, strip_option)]
connection_string_prefix: Option<String>,
/// 读写分离地址端口号。
#[setters(generate = true, strip_option)]
port: Option<String>,
/// 延迟阈值,单位为秒。当只读实例延迟时间超过该阈值时,读取流量不发往该实例。不传该参数则保持原值。
///
/// > * 参数**MaxDelayTime**不适用于SQL Server 2017集群版实例。
/// > * 至少传入**MaxDelayTime**或**DistributionType**中的一个。
#[setters(generate = true, strip_option)]
max_delay_time: Option<String>,
/// 读权重分配模式,取值:
/// * **Standard**:按规格权重自动分配
/// * **Custom**:自定义分配权重
///
/// >至少传入**MaxDelayTime**或**DistributionType**中的一个。
#[setters(generate = true, strip_option)]
distribution_type: Option<String>,
/// 读权重分配,即传入主实例和只读实例的读请求权重。以100递增,最大值为10000。
/// * RDS实例格式:`{"<只读实例ID>":<权重>,"master":<权重>,"slave":<权重>}`
/// * MyBASE实例格式:`[{"instanceName":"<主实例ID>","weight":<权重>,"role":"master"},{"instanceName":"<主实例ID>","weight":<权重>,"role":"slave"},{"instanceName":"<只读实例ID>","weight":<权重>,"role":"master"}]`
///
/// > * 当**DistributionType**为**Custom**时,必须传入该参数。
/// > * 当**DisrtibutionType**为**Standard**时,传入该参数无效。
#[setters(generate = true, strip_option)]
weight: Option<String>,
}
impl sealed::Bound for ModifyReadWriteSplittingConnection {}
impl ModifyReadWriteSplittingConnection {
pub fn new(db_instance_id: impl Into<String>) -> Self {
Self {
db_instance_id: db_instance_id.into(),
connection_string_prefix: None,
port: None,
max_delay_time: None,
distribution_type: None,
weight: None,
}
}
}
impl crate::ToFormData for ModifyReadWriteSplittingConnection {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for ModifyReadWriteSplittingConnection {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "ModifyReadWriteSplittingConnection";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<ModifyReadWriteSplittingConnectionResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(6);
if let Some(f) = &self.connection_string_prefix {
params.push(("ConnectionStringPrefix".into(), (f).into()));
}
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
if let Some(f) = &self.distribution_type {
params.push(("DistributionType".into(), (f).into()));
}
if let Some(f) = &self.max_delay_time {
params.push(("MaxDelayTime".into(), (f).into()));
}
if let Some(f) = &self.port {
params.push(("Port".into(), (f).into()));
}
if let Some(f) = &self.weight {
params.push(("Weight".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于查看RDS MySQL数据库代理设置。
///
/// Argument of [Connection::describe_db_instance_proxy_configuration()], returns [DescribeDBInstanceProxyConfigurationResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DescribeDBInstanceProxyConfiguration {
/// 实例ID。可调用DescribeDBInstances获取。
db_instance_id: String,
}
impl sealed::Bound for DescribeDBInstanceProxyConfiguration {}
impl DescribeDBInstanceProxyConfiguration {
pub fn new(db_instance_id: impl Into<String>) -> Self {
Self {
db_instance_id: db_instance_id.into(),
}
}
}
impl crate::ToFormData for DescribeDBInstanceProxyConfiguration {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DescribeDBInstanceProxyConfiguration {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DescribeDBInstanceProxyConfiguration";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DescribeDBInstanceProxyConfigurationResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(1);
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于申请只读地址。
///
/// Argument of [Connection::allocate_read_write_splitting_connection()], returns [AllocateReadWriteSplittingConnectionResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct AllocateReadWriteSplittingConnection {
/// 主实例ID。可调用DescribeDBInstances获取。
db_instance_id: String,
/// 只读地址前缀名,不可重复,由小写字母和中划线组成,需以字母开头,长度不超过30个字符。
///
/// > 默认以“实例名+rw”字符串组成前缀。
#[setters(generate = true, strip_option)]
connection_string_prefix: Option<String>,
/// 只读地址端口,取值为1000~5999,默认为1433。
#[setters(generate = true, strip_option)]
port: Option<String>,
/// 延迟阈值,范围是0~7200,单位:秒,默认为30。
///
/// > 当只读实例延迟超过该阈值时,读取流量不发往该实例。
#[setters(generate = true, strip_option)]
max_delay_time: Option<String>,
/// 只读地址的网络类型,取值:
///
/// - **Internet**:外网
/// - **Intranet**:内网
///
/// > 默认为内网,且内网类型与主实例保持一致。
#[setters(generate = true, strip_option)]
net_type: Option<String>,
/// 读权重分配模式,取值:
///
/// - **Standard**:按规格权重自动分配
/// - **Custom**:自定义分配权重
#[setters(generate = true, strip_option)]
distribution_type: Option<String>,
/// 读权重分配,即传入主实例和只读实例的读请求比例。以100进行递增,最大值为10000。
///
/// * RDS实例格式:`{"<只读实例ID>":<权重>,"master":<权重>,"slave":<权重>}`
/// * MyBASE实例格式:`[{"instanceName":"<主实例ID>","weight":<权重>,"role":"master"},{"instanceName":"<主实例ID>","weight":<权重>,"role":"slave"},{"instanceName":"<只读实例ID>","weight":<权重>,"role":"master"}]`
///
/// > - 当**DistributionType**为**Custom**时,必须传入该参数。
/// > - 当**DisrtibutionType**为**Standard**时,传入该参数无效。
#[setters(generate = true, strip_option)]
weight: Option<String>,
}
impl sealed::Bound for AllocateReadWriteSplittingConnection {}
impl AllocateReadWriteSplittingConnection {
pub fn new(db_instance_id: impl Into<String>) -> Self {
Self {
db_instance_id: db_instance_id.into(),
connection_string_prefix: None,
port: None,
max_delay_time: None,
net_type: None,
distribution_type: None,
weight: None,
}
}
}
impl crate::ToFormData for AllocateReadWriteSplittingConnection {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for AllocateReadWriteSplittingConnection {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "AllocateReadWriteSplittingConnection";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<AllocateReadWriteSplittingConnectionResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(7);
if let Some(f) = &self.connection_string_prefix {
params.push(("ConnectionStringPrefix".into(), (f).into()));
}
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
if let Some(f) = &self.distribution_type {
params.push(("DistributionType".into(), (f).into()));
}
if let Some(f) = &self.max_delay_time {
params.push(("MaxDelayTime".into(), (f).into()));
}
if let Some(f) = &self.net_type {
params.push(("NetType".into(), (f).into()));
}
if let Some(f) = &self.port {
params.push(("Port".into(), (f).into()));
}
if let Some(f) = &self.weight {
params.push(("Weight".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于释放读写分离地址。
///
/// Argument of [Connection::release_read_write_splitting_connection()], returns [ReleaseReadWriteSplittingConnectionResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct ReleaseReadWriteSplittingConnection {
/// 主实例ID。可调用DescribeDBInstances获取。
db_instance_id: String,
#[setters(generate = true, strip_option)]
rw_address_type: Option<String>,
}
impl sealed::Bound for ReleaseReadWriteSplittingConnection {}
impl ReleaseReadWriteSplittingConnection {
pub fn new(db_instance_id: impl Into<String>) -> Self {
Self {
db_instance_id: db_instance_id.into(),
rw_address_type: None,
}
}
}
impl crate::ToFormData for ReleaseReadWriteSplittingConnection {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for ReleaseReadWriteSplittingConnection {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "ReleaseReadWriteSplittingConnection";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<ReleaseReadWriteSplittingConnectionResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(2);
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
if let Some(f) = &self.rw_address_type {
params.push(("RWAddressType".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于查询系统权重分配值。
///
/// Argument of [Connection::calculate_db_instance_weight()], returns [CalculateDBInstanceWeightResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct CalculateDBInstanceWeight {
/// 主实例ID。可调用DescribeDBInstances获取。
db_instance_id: String,
}
impl sealed::Bound for CalculateDBInstanceWeight {}
impl CalculateDBInstanceWeight {
pub fn new(db_instance_id: impl Into<String>) -> Self {
Self {
db_instance_id: db_instance_id.into(),
}
}
}
impl crate::ToFormData for CalculateDBInstanceWeight {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for CalculateDBInstanceWeight {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "CalculateDBInstanceWeight";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<CalculateDBInstanceWeightResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(1);
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于将白名单模板关联到实例。
///
/// Argument of [Connection::attach_whitelist_template_to_instance()], returns [AttachWhitelistTemplateToInstanceResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct AttachWhitelistTemplateToInstance {
/// 白名单模板ID。可通过DescribeAllWhitelistTemplate获取。
template_id: i32,
/// 实例名称。
ins_name: String,
/// 地域ID。可调用DescribeRegions获取。
#[setters(generate = true, strip_option)]
region_id: Option<String>,
/// 资源组ID。 关于资源组的更多信息,请参见什么是资源组。
#[setters(generate = true, strip_option)]
resource_group_id: Option<String>,
}
impl sealed::Bound for AttachWhitelistTemplateToInstance {}
impl AttachWhitelistTemplateToInstance {
pub fn new(template_id: impl Into<i32>, ins_name: impl Into<String>) -> Self {
Self {
template_id: template_id.into(),
ins_name: ins_name.into(),
region_id: None,
resource_group_id: None,
}
}
}
impl crate::ToFormData for AttachWhitelistTemplateToInstance {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for AttachWhitelistTemplateToInstance {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "AttachWhitelistTemplateToInstance";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<AttachWhitelistTemplateToInstanceResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(4);
params.push(("InsName".into(), (&self.ins_name).into()));
if let Some(f) = &self.region_id {
params.push(("RegionId".into(), (f).into()));
}
if let Some(f) = &self.resource_group_id {
params.push(("ResourceGroupId".into(), (f).into()));
}
params.push(("TemplateId".into(), (&self.template_id).into()));
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于创建服务关联角色(SLR)。
///
/// Argument of [Connection::create_service_linked_role()], returns [CreateServiceLinkedRoleResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct CreateServiceLinkedRole {
/// 地域ID。可调用DescribeRegions获取。
region_id: String,
/// 服务关联角色,取值说明:
///
/// - **AliyunServiceRoleForRds**:RDS MySQL服务关联角色
/// - **AliyunServiceRoleForRdsPgsqlOnEcs**:RDS PostgreSQL服务关联角色
/// - **AliyunServiceRoleForRDSProxyOnEcs**:RDS PostgreSQL Proxy数据库代理服务关联角色
service_linked_role: String,
}
impl sealed::Bound for CreateServiceLinkedRole {}
impl CreateServiceLinkedRole {
pub fn new(region_id: impl Into<String>, service_linked_role: impl Into<String>) -> Self {
Self {
region_id: region_id.into(),
service_linked_role: service_linked_role.into(),
}
}
}
impl crate::ToFormData for CreateServiceLinkedRole {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for CreateServiceLinkedRole {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "CreateServiceLinkedRole";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<CreateServiceLinkedRoleResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(2);
params.push(("RegionId".into(), (&self.region_id).into()));
params.push((
"ServiceLinkedRole".into(),
(&self.service_linked_role).into(),
));
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于取消关联的白名单模板与实例。
///
/// Argument of [Connection::detach_whitelist_template_to_instance()], returns [DetachWhitelistTemplateToInstanceResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DetachWhitelistTemplateToInstance {
/// 白名单模板ID。可通过DescribeAllWhitelistTemplate获取。
template_id: i32,
/// 实例名称。
ins_name: String,
/// 地域ID。可调用[DescribeRegions](~~610399~~)获取。
#[setters(generate = true, strip_option)]
region_id: Option<String>,
/// 资源组ID。 关于资源组的更多信息,请参见什么是资源组。
#[setters(generate = true, strip_option)]
resource_group_id: Option<String>,
}
impl sealed::Bound for DetachWhitelistTemplateToInstance {}
impl DetachWhitelistTemplateToInstance {
pub fn new(template_id: impl Into<i32>, ins_name: impl Into<String>) -> Self {
Self {
template_id: template_id.into(),
ins_name: ins_name.into(),
region_id: None,
resource_group_id: None,
}
}
}
impl crate::ToFormData for DetachWhitelistTemplateToInstance {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DetachWhitelistTemplateToInstance {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DetachWhitelistTemplateToInstance";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DetachWhitelistTemplateToInstanceResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(4);
params.push(("InsName".into(), (&self.ins_name).into()));
if let Some(f) = &self.region_id {
params.push(("RegionId".into(), (f).into()));
}
if let Some(f) = &self.resource_group_id {
params.push(("ResourceGroupId".into(), (f).into()));
}
params.push(("TemplateId".into(), (&self.template_id).into()));
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于编辑白名单模板,包括创建、修改、删除白名单模板的操作。
///
/// Argument of [Connection::modify_whitelist_template()], returns [ModifyWhitelistTemplateResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct ModifyWhitelistTemplate {
/// 该实例的IP白名单,多个IP地址请以英文逗号(,)隔开,不可重复。支持如下两种格式:
///
/// - IP地址形式,例如:10.23.XX.XX。
/// - CIDR形式,例如:10.23.XX.XX/24(无类域间路由,24表示地址中前缀的长度,取值范围为1~32)。
///
/// > 每个实例最多添加1000个IP或IP段,即所有IP白名单分组内的IP或IP段总和不能超过1000。当IP较多时,建议合并为IP段填入,例如10.23.XX.XX/24。
ip_whitelist: String,
/// 白名单模板ID。
/// 在修改和删除操作中需要传入,可通过DescribeAllWhitelistTemplate获取。
#[setters(generate = true, strip_option)]
template_id: Option<i32>,
/// 白名单模板名称。在创建模板时传入,创建后不可修改,同一账号下不可重名,以字母开头。可通过DescribeWhitelistTemplate获取。
#[setters(generate = true, strip_option)]
template_name: Option<String>,
/// 地域ID。可以通过接口[DescribeRegions](~~26243~~)查看地域ID。
#[setters(generate = true, strip_option)]
region_id: Option<String>,
/// 资源组ID。 关于资源组的更多信息,请参见什么是资源组。
#[setters(generate = true, strip_option)]
resource_group_id: Option<String>,
}
impl sealed::Bound for ModifyWhitelistTemplate {}
impl ModifyWhitelistTemplate {
pub fn new(ip_whitelist: impl Into<String>) -> Self {
Self {
ip_whitelist: ip_whitelist.into(),
template_id: None,
template_name: None,
region_id: None,
resource_group_id: None,
}
}
}
impl crate::ToFormData for ModifyWhitelistTemplate {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for ModifyWhitelistTemplate {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "ModifyWhitelistTemplate";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<ModifyWhitelistTemplateResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(5);
params.push(("IpWhitelist".into(), (&self.ip_whitelist).into()));
if let Some(f) = &self.region_id {
params.push(("RegionId".into(), (f).into()));
}
if let Some(f) = &self.resource_group_id {
params.push(("ResourceGroupId".into(), (f).into()));
}
if let Some(f) = &self.template_id {
params.push(("TemplateId".into(), (f).into()));
}
if let Some(f) = &self.template_name {
params.push(("TemplateName".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于查询指定RDS实例和ECS安全组的关联信息。
///
/// Argument of [Connection::describe_security_group_configuration()], returns [DescribeSecurityGroupConfigurationResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DescribeSecurityGroupConfiguration {
/// 实例ID。可调用DescribeDBInstances获取。
db_instance_id: String,
}
impl sealed::Bound for DescribeSecurityGroupConfiguration {}
impl DescribeSecurityGroupConfiguration {
pub fn new(db_instance_id: impl Into<String>) -> Self {
Self {
db_instance_id: db_instance_id.into(),
}
}
}
impl crate::ToFormData for DescribeSecurityGroupConfiguration {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DescribeSecurityGroupConfiguration {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DescribeSecurityGroupConfiguration";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DescribeSecurityGroupConfigurationResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(1);
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于修改指定RDS实例和ECS安全组的关联信息。
///
/// Argument of [Connection::modify_security_group_configuration()], returns [ModifySecurityGroupConfigurationResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct ModifySecurityGroupConfiguration {
/// 实例ID。可调用DescribeDBInstances获取。
db_instance_id: String,
/// ECS安全组ID。最多支持关联10个安全组,多个安全组用英文逗号(,)隔开。清空ECS安全组请传入空字符串。您可以通过DescribeSecurityGroups查询ECS安全组ID。
security_group_id: String,
}
impl sealed::Bound for ModifySecurityGroupConfiguration {}
impl ModifySecurityGroupConfiguration {
pub fn new(db_instance_id: impl Into<String>, security_group_id: impl Into<String>) -> Self {
Self {
db_instance_id: db_instance_id.into(),
security_group_id: security_group_id.into(),
}
}
}
impl crate::ToFormData for ModifySecurityGroupConfiguration {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for ModifySecurityGroupConfiguration {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "ModifySecurityGroupConfiguration";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<ModifySecurityGroupConfigurationResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(2);
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
params.push(("SecurityGroupId".into(), (&self.security_group_id).into()));
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于为RDS SQL Server实例添加安全组规则。
///
/// Argument of [Connection::create_db_instance_security_group_rule()], returns [CreateDBInstanceSecurityGroupRuleResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct CreateDBInstanceSecurityGroupRule {
/// 实例ID。可调用[DescribeDBInstances](~~2628785~~)获取。
db_instance_id: String,
/// 目的端安全组开放的传输层协议(TCP/UDP)相关的端口范围。
///
/// 取值范围为1~65535。使用斜线(/)隔开起始端口和终止端口。例如:1/200。
port_range: String,
/// 传输层协议类型,取值如下:
///
/// - TCP
/// - UDP
#[setters(generate = true, strip_option)]
ip_protocol: Option<String>,
/// 源端IP地址范围。支持CIDR格式和IPv4格式的IP地址范围。
#[setters(generate = true, strip_option)]
source_cidr_ip: Option<String>,
/// 安全组规则描述。
#[setters(generate = true, strip_option)]
description: Option<String>,
}
impl sealed::Bound for CreateDBInstanceSecurityGroupRule {}
impl CreateDBInstanceSecurityGroupRule {
pub fn new(db_instance_id: impl Into<String>, port_range: impl Into<String>) -> Self {
Self {
db_instance_id: db_instance_id.into(),
port_range: port_range.into(),
ip_protocol: None,
source_cidr_ip: None,
description: None,
}
}
}
impl crate::ToFormData for CreateDBInstanceSecurityGroupRule {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for CreateDBInstanceSecurityGroupRule {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "CreateDBInstanceSecurityGroupRule";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<CreateDBInstanceSecurityGroupRuleResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(5);
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
if let Some(f) = &self.description {
params.push(("Description".into(), (f).into()));
}
if let Some(f) = &self.ip_protocol {
params.push(("IpProtocol".into(), (f).into()));
}
params.push(("PortRange".into(), (&self.port_range).into()));
if let Some(f) = &self.source_cidr_ip {
params.push(("SourceCidrIp".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于查询RDS SQL Server实例的安全组规则。
///
/// Argument of [Connection::describe_db_instance_security_group_rule()], returns [DescribeDBInstanceSecurityGroupRuleResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DescribeDBInstanceSecurityGroupRule {
/// 实例ID。可调用[DescribeDBInstances](~~2628785~~)获取。
db_instance_id: String,
}
impl sealed::Bound for DescribeDBInstanceSecurityGroupRule {}
impl DescribeDBInstanceSecurityGroupRule {
pub fn new(db_instance_id: impl Into<String>) -> Self {
Self {
db_instance_id: db_instance_id.into(),
}
}
}
impl crate::ToFormData for DescribeDBInstanceSecurityGroupRule {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DescribeDBInstanceSecurityGroupRule {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DescribeDBInstanceSecurityGroupRule";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DescribeDBInstanceSecurityGroupRuleResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(1);
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于修改RDS SQL Server实例的安全组规则。
///
/// Argument of [Connection::modify_db_instance_security_group_rule()], returns [ModifyDBInstanceSecurityGroupRuleResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct ModifyDBInstanceSecurityGroupRule {
/// 实例ID。可调用[DescribeDBInstances](~~2628785~~)获取。
db_instance_id: String,
/// 安全组规则ID。可调用[DescribeDBInstanceSecurityGroupRule](~~2834044~~)获取。
security_group_rule_id: String,
/// 目的端安全组开放的传输层协议(TCP/UDP)相关的端口范围。
///
/// 取值范围为1~65535。使用斜线(/)隔开起始端口和终止端口。例如:1/200。
port_range: String,
/// 传输层协议类型,取值如下:
///
/// - TCP
/// - UDP
ip_protocol: String,
/// 源端IP地址范围。支持CIDR格式和IPv4格式的IP地址范围。
source_cidr_ip: String,
/// 安全组规则描述。
description: String,
}
impl sealed::Bound for ModifyDBInstanceSecurityGroupRule {}
impl ModifyDBInstanceSecurityGroupRule {
pub fn new(
db_instance_id: impl Into<String>,
security_group_rule_id: impl Into<String>,
port_range: impl Into<String>,
ip_protocol: impl Into<String>,
source_cidr_ip: impl Into<String>,
description: impl Into<String>,
) -> Self {
Self {
db_instance_id: db_instance_id.into(),
security_group_rule_id: security_group_rule_id.into(),
port_range: port_range.into(),
ip_protocol: ip_protocol.into(),
source_cidr_ip: source_cidr_ip.into(),
description: description.into(),
}
}
}
impl crate::ToFormData for ModifyDBInstanceSecurityGroupRule {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for ModifyDBInstanceSecurityGroupRule {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "ModifyDBInstanceSecurityGroupRule";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<ModifyDBInstanceSecurityGroupRuleResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(6);
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
params.push(("Description".into(), (&self.description).into()));
params.push(("IpProtocol".into(), (&self.ip_protocol).into()));
params.push(("PortRange".into(), (&self.port_range).into()));
params.push((
"SecurityGroupRuleId".into(),
(&self.security_group_rule_id).into(),
));
params.push(("SourceCidrIp".into(), (&self.source_cidr_ip).into()));
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于删除RDS SQL Server实例已设置的安全组规则。
///
/// Argument of [Connection::delete_db_instance_security_group_rule()], returns [DeleteDBInstanceSecurityGroupRuleResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DeleteDBInstanceSecurityGroupRule {
/// 实例ID。可调用[DescribeDBInstances](~~2628785~~)获取。
db_instance_id: String,
/// 安全组规则ID。可调用[DescribeDBInstanceSecurityGroupRule](~~2834044~~)获取。
security_group_rule_ids: String,
/// 用于保证请求的幂等性,防止重复提交请求。由客户端生成该参数值,要保证在不同请求间唯一,最大值不超过64个ASCII字符,且该参数值中不能包含非ASCII字符。
#[setters(generate = true, strip_option)]
client_token: Option<String>,
/// 资源组ID。
#[setters(generate = true, strip_option)]
resource_group_id: Option<String>,
}
impl sealed::Bound for DeleteDBInstanceSecurityGroupRule {}
impl DeleteDBInstanceSecurityGroupRule {
pub fn new(
db_instance_id: impl Into<String>,
security_group_rule_ids: impl Into<String>,
) -> Self {
Self {
db_instance_id: db_instance_id.into(),
security_group_rule_ids: security_group_rule_ids.into(),
client_token: None,
resource_group_id: None,
}
}
}
impl crate::ToFormData for DeleteDBInstanceSecurityGroupRule {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DeleteDBInstanceSecurityGroupRule {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DeleteDBInstanceSecurityGroupRule";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DeleteDBInstanceSecurityGroupRuleResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(4);
if let Some(f) = &self.client_token {
params.push(("ClientToken".into(), (f).into()));
}
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
if let Some(f) = &self.resource_group_id {
params.push(("ResourceGroupId".into(), (f).into()));
}
params.push((
"SecurityGroupRuleIds".into(),
(&self.security_group_rule_ids).into(),
));
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 修改指定RDS实例的IP白名单配置,支持覆盖、追加、删除三种修改模式。
///
/// Argument of [Connection::modify_security_ips()], returns [ModifySecurityIpsResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct ModifySecurityIps {
/// 目标实例ID。
db_instance_id: String,
/// IP白名单。修改IP白名单前,请调用[DescribeDBInstanceIPArrayList](~~610518~~)接口查询实例IP已有白名单信息。
///
/// <details>
/// <summary>配置规则</summary>
///
/// - 支持IP地址格式(如10.23.XX.XX)或者IP地址段格式(CIDR格式,如10.23.XX.XX/24)。
///
/// - 多个IP地址或IP地址段以英文逗号(,)分隔,且逗号前后不能有空格。
///
/// - 单个实例最多添加1000个IP地址或IP地址段。如果IP地址较多,建议将零散的IP地址合并为IP地址段,例如10.23.XX.XX/24。
/// </details>
security_ips: String,
/// 待修改白名单的分组名称(默认为Default)。指定分组不存在时,自动新增该分组。
///
/// >单个实例最多支持200个白名单分组。
#[setters(generate = true, strip_option)]
db_instance_ip_array_name: Option<String>,
/// 白名单分组属性。
///
/// - (默认值)不传该参数时,表示普通分组。
/// - 设置为`hidden`时,表示系统默认用于DMS、DTS和DAS等服务的分组。这些分组不在控制台显示,删除或修改后会导致DMS、DTS和DAS等服务无法访问RDS,请谨慎操作。
#[setters(generate = true, strip_option)]
db_instance_ip_array_attribute: Option<String>,
/// IP地址类型。取值固定为IPv4,暂不支持IPv6。
#[setters(generate = true, strip_option)]
security_ip_type: Option<PType>,
/// 白名单的网络类型,取值:
///
/// * **MIX**(默认值):通用模式
/// * **Classic**:高安全白名单模式下的经典网络
/// * **VPC**:高安全白名单模式下的专有网络
///
/// > * RDS PostgreSQL云盘版实例固定为通用模式(MIX),如果配置为其他模式,则会自动转换为通用模式。
/// > * 仅RDS MySQL 5.1、5.5、5.6、5.7高性能本地盘,RDS PostgreSQL 9.4、10高性能本地盘支持高安全白名单模式。
#[setters(generate = true, strip_option)]
whitelist_network_type: Option<String>,
/// 修改方式,取值:
/// * **Cover**(默认值):**覆盖**,使用**SecurityIps**参数的值覆盖原IP白名单。
/// * **Append**:**追加**,在原IP白名单中增加**SecurityIps**参数中输入的IP地址。
/// * **Delete**:**删除**,在原IP白名单中删除**SecurityIps**参数中输入的IP地址。至少需要保留一个IP地址。
#[setters(generate = true, strip_option)]
modify_mode: Option<String>,
/// 白名单同步只读实例列表。
///
/// - 仅适用于创建了只读实例的RDS PostgreSQL实例。
/// - 当有多个只读实例时,用英文逗号(,)分隔。
#[setters(generate = true, strip_option)]
fresh_white_list_readins: Option<String>,
}
impl sealed::Bound for ModifySecurityIps {}
impl ModifySecurityIps {
pub fn new(db_instance_id: impl Into<String>, security_ips: impl Into<String>) -> Self {
Self {
db_instance_id: db_instance_id.into(),
security_ips: security_ips.into(),
db_instance_ip_array_name: None,
db_instance_ip_array_attribute: None,
security_ip_type: None,
whitelist_network_type: None,
modify_mode: None,
fresh_white_list_readins: None,
}
}
}
impl crate::ToFormData for ModifySecurityIps {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for ModifySecurityIps {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "ModifySecurityIps";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<ModifySecurityIpsResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(8);
if let Some(f) = &self.db_instance_ip_array_attribute {
params.push(("DBInstanceIPArrayAttribute".into(), (f).into()));
}
if let Some(f) = &self.db_instance_ip_array_name {
params.push(("DBInstanceIPArrayName".into(), (f).into()));
}
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
if let Some(f) = &self.fresh_white_list_readins {
params.push(("FreshWhiteListReadins".into(), (f).into()));
}
if let Some(f) = &self.modify_mode {
params.push(("ModifyMode".into(), (f).into()));
}
if let Some(f) = &self.security_ip_type {
params.push(("SecurityIPType".into(), (f).into()));
}
params.push(("SecurityIps".into(), (&self.security_ips).into()));
if let Some(f) = &self.whitelist_network_type {
params.push(("WhitelistNetworkType".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于修改RDS实例的SSL链路配置。
///
/// Argument of [Connection::modify_db_instance_ssl()], returns [ModifyDBInstanceSSLResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct ModifyDBInstanceSSL {
/// 实例ID。可调用DescribeDBInstances获取。
db_instance_id: String,
/// 需要创建或更新服务器证书的内网或外网连接地址。
connection_string: String,
/// 开启或关闭SSL,取值:
/// * **1**:开启
/// * **0**:关闭
#[setters(generate = true, strip_option)]
ssl_enabled: Option<i32>,
/// MySQL和PostgreSQL云盘版实例的证书类型,取值:
/// - **aliyun**(默认值):使用阿里云证书
/// - **custom**:使用自定义证书
/// > SSLEnabled为**1**时,此参数必须配置。
#[setters(generate = true, strip_option)]
ca_type: Option<String>,
/// MySQL和PostgreSQL云盘版实例的服务器自定义证书内容。
///
/// > CAType为**custom**时,此参数必须配置。
#[setters(generate = true, strip_option)]
server_cert: Option<String>,
/// MySQL和PostgreSQL云盘版实例的服务器证书私钥。
///
/// > CAType为**custom**时,此参数必须配置。
#[setters(generate = true, strip_option)]
server_key: Option<String>,
/// PostgreSQL云盘版实例是否启用客户端授权机构公钥,取值:
/// - **1**:启用
/// - **0**:关闭
#[setters(generate = true, strip_option)]
client_ca_enabled: Option<i32>,
/// PostgreSQL云盘版实例的客户端证书授权机构公钥。
///
/// > ClientCAEbabled为**1**时,此参数必须配置。
#[setters(generate = true, strip_option)]
client_ca_cert: Option<String>,
/// PostgreSQL云盘版实例是否启用客户端吊销证书,取值:
/// - **1**:启用
/// - **0**:关闭
///
/// > 仅当ClientCAEnabled为**1**时,才允许配置。
#[setters(generate = true, strip_option)]
client_crl_enabled: Option<i32>,
/// PostgreSQL云盘版实例的客户端吊销证书文件。
///
/// > ClientCrlEnabled为**1**时,此参数必须配置。
#[setters(generate = true, strip_option)]
client_cert_revocation_list: Option<String>,
/// PostgreSQL云盘版实例的认证方法取值:
/// - **cert**
/// - **prefer**
/// - **verify-ca**
/// - **verify-full**(RDS PostgreSQL 12以上支持)
///
/// > 仅当ClientCAEnabled为**1**时,才允许配置。
#[setters(generate = true, strip_option)]
acl: Option<String>,
/// PostgreSQL云盘版实例的replication权限认证方法,取值:
/// - **cert**
/// - **prefer**
/// - **verify-ca**
/// - **verify-full**(RDS PostgreSQL 12以上支持)
/// > 仅当ClientCAEnabled为**1**时,才允许配置。
#[setters(generate = true, strip_option)]
replication_acl: Option<String>,
/// SQL Server实例的[SSL强制加密开关](~~95715~~),取值:
///
/// - **1**:开启。
/// - **0**:未开启。
#[setters(generate = true, strip_option)]
force_encryption: Option<String>,
/// 指定SQL Server实例的[最低LTS版本号](~~95715~~),低于该版本将被拒绝连接。当前支持1.0、1.1、1.2。
///
/// 例如:选择1.1表示服务端仅接受TLS 1.1和1.2协议版本的客户端连接请求,通过TLS 1.0建立连接的客户端会被拒绝连接。
#[setters(generate = true, strip_option)]
tls_version: Option<String>,
/// SQL Server实例的用户自定义证书内容,证书格式仅支持`pfx`。
/// - 公网地址:`oss-<地域ID>.aliyuncs.com:<Bucket名称>:<证书文件名称(带文件后缀)>`
/// - 内网地址:`oss-<地域ID>-internal.aliyuncs.com:<Bucket名称>:<证书文件名称(带文件后缀)>`
#[setters(generate = true, strip_option)]
certificate: Option<String>,
/// SQL Server实例的用户自定义证书密码。
#[setters(generate = true, strip_option)]
pass_word: Option<String>,
}
impl sealed::Bound for ModifyDBInstanceSSL {}
impl ModifyDBInstanceSSL {
pub fn new(db_instance_id: impl Into<String>, connection_string: impl Into<String>) -> Self {
Self {
db_instance_id: db_instance_id.into(),
connection_string: connection_string.into(),
ssl_enabled: None,
ca_type: None,
server_cert: None,
server_key: None,
client_ca_enabled: None,
client_ca_cert: None,
client_crl_enabled: None,
client_cert_revocation_list: None,
acl: None,
replication_acl: None,
force_encryption: None,
tls_version: None,
certificate: None,
pass_word: None,
}
}
}
impl crate::ToFormData for ModifyDBInstanceSSL {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for ModifyDBInstanceSSL {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "ModifyDBInstanceSSL";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<ModifyDBInstanceSSLResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(16);
if let Some(f) = &self.acl {
params.push(("ACL".into(), (f).into()));
}
if let Some(f) = &self.ca_type {
params.push(("CAType".into(), (f).into()));
}
if let Some(f) = &self.certificate {
params.push(("Certificate".into(), (f).into()));
}
if let Some(f) = &self.client_ca_cert {
params.push(("ClientCACert".into(), (f).into()));
}
if let Some(f) = &self.client_ca_enabled {
params.push(("ClientCAEnabled".into(), (f).into()));
}
if let Some(f) = &self.client_cert_revocation_list {
params.push(("ClientCertRevocationList".into(), (f).into()));
}
if let Some(f) = &self.client_crl_enabled {
params.push(("ClientCrlEnabled".into(), (f).into()));
}
params.push(("ConnectionString".into(), (&self.connection_string).into()));
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
if let Some(f) = &self.force_encryption {
params.push(("ForceEncryption".into(), (f).into()));
}
if let Some(f) = &self.pass_word {
params.push(("PassWord".into(), (f).into()));
}
if let Some(f) = &self.replication_acl {
params.push(("ReplicationACL".into(), (f).into()));
}
if let Some(f) = &self.ssl_enabled {
params.push(("SSLEnabled".into(), (f).into()));
}
if let Some(f) = &self.server_cert {
params.push(("ServerCert".into(), (f).into()));
}
if let Some(f) = &self.server_key {
params.push(("ServerKey".into(), (f).into()));
}
if let Some(f) = &self.tls_version {
params.push(("TlsVersion".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于开启RDS实例的透明数据加密TDE功能,并支持修改加密状态。
///
/// Argument of [Connection::modify_db_instance_tde()], returns [ModifyDBInstanceTDEResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct ModifyDBInstanceTDE {
/// 实例ID。可调用DescribeDBInstances获取。
db_instance_id: String,
/// TDE状态,取值:
/// - **Enabled**
/// - **Disabled**
tde_status: String,
/// 想要开启TDE的数据库名称,可以一次输入多个,以英文逗号(,)分隔,最多传入50个。
/// > 此参数仅SQL Server 2019标准版和SQL Server企业版实例可用(必传)。
#[setters(generate = true, strip_option)]
db_name: Option<String>,
/// 自定义密钥ID。
/// >仅MySQL或PostgreSQL实例可以传入此参数。
#[setters(generate = true, strip_option)]
encryption_key: Option<String>,
/// 角色的全局资源描述符,用来指定具体角色。详情请参见[RAM角色概览](~~93689~~)。
/// >仅MySQL和PostgreSQL实例可以传入此参数。
#[setters(generate = true, strip_option)]
role_arn: Option<String>,
/// 证书文件。
///
/// 格式:
/// - 公网地址:`oss-<地域ID>.aliyuncs.com:<Bucket名称>:<证书文件名称(带文件后缀)>`
/// - 内网地址:`oss-<地域ID>-internal.aliyuncs.com:<Bucket名称>:<证书文件名称(带文件后缀)>`
///
/// > - 此参数仅SQL Server 2019标准版和SQL Server企业版实例可用。
/// > - 可以通过接口[DescribeRegions](~~26243~~)查看可用的地域ID。
#[setters(generate = true, strip_option)]
certificate: Option<String>,
/// 私钥文件。
///
/// 格式:
/// - 公网地址:`oss-<地域ID>.aliyuncs.com:<Bucket名称>:<私钥文件名称(带文件后缀)>`
/// - 内网地址:`oss-<地域ID>-internal.aliyuncs.com:<Bucket名称>:<私钥文件名称(带文件后缀)>`
///
/// > - 此参数仅SQL Server 2019标准版和SQL Server企业版实例可用。
/// > - 可以通过接口[DescribeRegions](~~26243~~)查看可用的地域ID。
#[setters(generate = true, strip_option)]
private_key: Option<String>,
/// 证书密码。
/// >此参数仅SQL Server 2019标准版和SQL Server企业版实例可用。
#[setters(generate = true, strip_option)]
pass_word: Option<String>,
/// 是否更换密钥。
/// 取值范围:
/// - **true**:更换密钥
/// - **false**(默认值):不更换密钥
///
/// > 当前仅RDS PostgreSQL实例适用。
#[setters(generate = true, strip_option)]
is_rotate: Option<bool>,
}
impl sealed::Bound for ModifyDBInstanceTDE {}
impl ModifyDBInstanceTDE {
pub fn new(db_instance_id: impl Into<String>, tde_status: impl Into<String>) -> Self {
Self {
db_instance_id: db_instance_id.into(),
tde_status: tde_status.into(),
db_name: None,
encryption_key: None,
role_arn: None,
certificate: None,
private_key: None,
pass_word: None,
is_rotate: None,
}
}
}
impl crate::ToFormData for ModifyDBInstanceTDE {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for ModifyDBInstanceTDE {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "ModifyDBInstanceTDE";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<ModifyDBInstanceTDEResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(9);
if let Some(f) = &self.certificate {
params.push(("Certificate".into(), (f).into()));
}
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
if let Some(f) = &self.db_name {
params.push(("DBName".into(), (f).into()));
}
if let Some(f) = &self.encryption_key {
params.push(("EncryptionKey".into(), (f).into()));
}
if let Some(f) = &self.is_rotate {
params.push(("IsRotate".into(), (f).into()));
}
if let Some(f) = &self.pass_word {
params.push(("PassWord".into(), (f).into()));
}
if let Some(f) = &self.private_key {
params.push(("PrivateKey".into(), (f).into()));
}
if let Some(f) = &self.role_arn {
params.push(("RoleArn".into(), (f).into()));
}
params.push(("TDEStatus".into(), (&self.tde_status).into()));
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于为RDS SQL Server实例设置分布式事务白名单。
///
/// Argument of [Connection::modify_dtc_security_ip_hosts_for_sql_server()], returns [ModifyDTCSecurityIpHostsForSQLServerResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct ModifyDTCSecurityIpHostsForSQLServer {
/// 实例ID。可调用DescribeDBInstances获取。
db_instance_id: String,
/// ECS实例的IP地址和Windows系统的计算机名。格式:`ip,hostname`。多个实例之间以英文分号(;)隔开。
/// >计算机名查看方式请参见[设置分布式事务白名单](~~124321~~)。
security_ip_hosts: String,
/// 白名单分组名称。
white_list_group_name: String,
/// 地域ID。可调用DescribeDBInstanceAttribute获取。
region_id: String,
}
impl sealed::Bound for ModifyDTCSecurityIpHostsForSQLServer {}
impl ModifyDTCSecurityIpHostsForSQLServer {
pub fn new(
db_instance_id: impl Into<String>,
security_ip_hosts: impl Into<String>,
white_list_group_name: impl Into<String>,
region_id: impl Into<String>,
) -> Self {
Self {
db_instance_id: db_instance_id.into(),
security_ip_hosts: security_ip_hosts.into(),
white_list_group_name: white_list_group_name.into(),
region_id: region_id.into(),
}
}
}
impl crate::ToFormData for ModifyDTCSecurityIpHostsForSQLServer {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for ModifyDTCSecurityIpHostsForSQLServer {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "ModifyDTCSecurityIpHostsForSQLServer";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<ModifyDTCSecurityIpHostsForSQLServerResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(4);
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
params.push(("RegionId".into(), (&self.region_id).into()));
params.push(("SecurityIpHosts".into(), (&self.security_ip_hosts).into()));
params.push((
"WhiteListGroupName".into(),
(&self.white_list_group_name).into(),
));
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于开启或关闭RDS实例的释放保护功能。
///
/// Argument of [Connection::modify_db_instance_deletion_protection()], returns [ModifyDBInstanceDeletionProtectionResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct ModifyDBInstanceDeletionProtection {
/// 用于保证请求的幂等性,防止重复提交请求。由客户端生成该参数值,要保证在不同请求间唯一,最大值不超过64个ASCII字符,且该参数值中不能包含非ASCII字符。
#[setters(generate = true, strip_option)]
client_token: Option<String>,
/// 实例ID。可调用DescribeDBInstances获取。
db_instance_id: String,
/// 是否开启RDS释放保护功能。取值:
/// * **true**:开启
/// * **false**:关闭
deletion_protection: bool,
}
impl sealed::Bound for ModifyDBInstanceDeletionProtection {}
impl ModifyDBInstanceDeletionProtection {
pub fn new(db_instance_id: impl Into<String>, deletion_protection: impl Into<bool>) -> Self {
Self {
client_token: None,
db_instance_id: db_instance_id.into(),
deletion_protection: deletion_protection.into(),
}
}
}
impl crate::ToFormData for ModifyDBInstanceDeletionProtection {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for ModifyDBInstanceDeletionProtection {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "ModifyDBInstanceDeletionProtection";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<ModifyDBInstanceDeletionProtectionResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(3);
if let Some(f) = &self.client_token {
params.push(("ClientToken".into(), (f).into()));
}
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
params.push((
"DeletionProtection".into(),
(&self.deletion_protection).into(),
));
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于根据白名单模板查询关联的实例。
///
/// Argument of [Connection::describe_whitelist_template_linked_instance()], returns [DescribeWhitelistTemplateLinkedInstanceResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DescribeWhitelistTemplateLinkedInstance {
/// 白名单模板ID。可通过DescribeAllWhitelistTemplate获取。
template_id: i32,
/// 地域ID。可调用DescribeRegions获取。
#[setters(generate = true, strip_option)]
region_id: Option<String>,
/// 资源组ID,可以为空。
#[setters(generate = true, strip_option)]
resource_group_id: Option<String>,
}
impl sealed::Bound for DescribeWhitelistTemplateLinkedInstance {}
impl DescribeWhitelistTemplateLinkedInstance {
pub fn new(template_id: impl Into<i32>) -> Self {
Self {
template_id: template_id.into(),
region_id: None,
resource_group_id: None,
}
}
}
impl crate::ToFormData for DescribeWhitelistTemplateLinkedInstance {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(1);
params.push(("TemplateId".into(), (&self.template_id).into()));
params
}
}
impl crate::Request for DescribeWhitelistTemplateLinkedInstance {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DescribeWhitelistTemplateLinkedInstance";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DescribeWhitelistTemplateLinkedInstanceResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(2);
if let Some(f) = &self.region_id {
params.push(("RegionId".into(), (f).into()));
}
if let Some(f) = &self.resource_group_id {
params.push(("ResourceGroupId".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于根据实例的名称查询关联的白名单模板。
///
/// Argument of [Connection::describe_instance_linked_whitelist_template()], returns [DescribeInstanceLinkedWhitelistTemplateResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DescribeInstanceLinkedWhitelistTemplate {
/// 实例名称。
ins_name: String,
/// 地域ID,您可以通过[DescribeRegions](~~26243~~)接口查询。
#[setters(generate = true, strip_option)]
region_id: Option<String>,
/// 资源组ID,可以为空。
#[setters(generate = true, strip_option)]
resource_group_id: Option<String>,
}
impl sealed::Bound for DescribeInstanceLinkedWhitelistTemplate {}
impl DescribeInstanceLinkedWhitelistTemplate {
pub fn new(ins_name: impl Into<String>) -> Self {
Self {
ins_name: ins_name.into(),
region_id: None,
resource_group_id: None,
}
}
}
impl crate::ToFormData for DescribeInstanceLinkedWhitelistTemplate {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DescribeInstanceLinkedWhitelistTemplate {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DescribeInstanceLinkedWhitelistTemplate";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DescribeInstanceLinkedWhitelistTemplateResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(3);
params.push(("InsName".into(), (&self.ins_name).into()));
if let Some(f) = &self.region_id {
params.push(("RegionId".into(), (f).into()));
}
if let Some(f) = &self.resource_group_id {
params.push(("ResourceGroupId".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于获取指定的白名单模板信息。
///
/// Argument of [Connection::describe_whitelist_template()], returns [DescribeWhitelistTemplateResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DescribeWhitelistTemplate {
/// 白名单模板ID。可通过DescribeAllWhitelistTemplate获取。
template_id: i32,
/// 资源组ID。
#[setters(generate = true, strip_option)]
resource_group_id: Option<String>,
/// 地域ID。可以通过接口[DescribeRegions](~~26243~~)查看地域ID。
#[setters(generate = true, strip_option)]
region_id: Option<String>,
}
impl sealed::Bound for DescribeWhitelistTemplate {}
impl DescribeWhitelistTemplate {
pub fn new(template_id: impl Into<i32>) -> Self {
Self {
template_id: template_id.into(),
resource_group_id: None,
region_id: None,
}
}
}
impl crate::ToFormData for DescribeWhitelistTemplate {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DescribeWhitelistTemplate {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DescribeWhitelistTemplate";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DescribeWhitelistTemplateResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(3);
if let Some(f) = &self.region_id {
params.push(("RegionId".into(), (f).into()));
}
if let Some(f) = &self.resource_group_id {
params.push(("ResourceGroupId".into(), (f).into()));
}
params.push(("TemplateId".into(), (&self.template_id).into()));
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于批量获取白名单模板,支持模糊查询。
///
/// Argument of [Connection::describe_all_whitelist_template()], returns [DescribeAllWhitelistTemplateResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DescribeAllWhitelistTemplate {
/// 每页记录数。合法的枚举值为:10、30、50。
max_records_per_page: i32,
/// 当前页码。
page_numbers: i32,
/// 地域ID,您可以通过[DescribeRegions](~~610399~~)接口查询。
#[setters(generate = true, strip_option)]
region_id: Option<String>,
/// 白名单模板名称。模糊查询时传入,支持模糊查询模板名称。可通过DescribeWhitelistTemplate获取。
#[setters(generate = true, strip_option)]
template_name: Option<String>,
/// 是否开启模糊查询,各取值含义如下:
///
/// - **true**:开启
/// - **false**:不开启
#[setters(generate = true, strip_option)]
fuzzy_search: Option<bool>,
/// 资源组ID。 关于资源组的更多信息,请参见什么是资源组。
#[setters(generate = true, strip_option)]
resource_group_id: Option<String>,
}
impl sealed::Bound for DescribeAllWhitelistTemplate {}
impl DescribeAllWhitelistTemplate {
pub fn new(max_records_per_page: impl Into<i32>, page_numbers: impl Into<i32>) -> Self {
Self {
max_records_per_page: max_records_per_page.into(),
page_numbers: page_numbers.into(),
region_id: None,
template_name: None,
fuzzy_search: None,
resource_group_id: None,
}
}
}
impl crate::ToFormData for DescribeAllWhitelistTemplate {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DescribeAllWhitelistTemplate {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DescribeAllWhitelistTemplate";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DescribeAllWhitelistTemplateResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(6);
if let Some(f) = &self.fuzzy_search {
params.push(("FuzzySearch".into(), (f).into()));
}
params.push((
"MaxRecordsPerPage".into(),
(&self.max_records_per_page).into(),
));
params.push(("PageNumbers".into(), (&self.page_numbers).into()));
if let Some(f) = &self.region_id {
params.push(("RegionId".into(), (f).into()));
}
if let Some(f) = &self.resource_group_id {
params.push(("ResourceGroupId".into(), (f).into()));
}
if let Some(f) = &self.template_name {
params.push(("TemplateName".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于查询RDS实例的IP白名单。
///
/// Argument of [Connection::describe_db_instance_ip_array_list()], returns [DescribeDBInstanceIPArrayListResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DescribeDBInstanceIPArrayList {
/// 实例ID。可调用DescribeDBInstances获取。
db_instance_id: String,
/// 白名单的网络类型,取值:
/// * **Classic**:高安全白名单模式下的经典网络
/// * **VPC**:高安全白名单模式下的专有网络
/// * **MIX**:通用白名单模式
///
/// 默认返回所有网络类型的白名单IP。
#[setters(generate = true, strip_option)]
whitelist_network_type: Option<String>,
}
impl sealed::Bound for DescribeDBInstanceIPArrayList {}
impl DescribeDBInstanceIPArrayList {
pub fn new(db_instance_id: impl Into<String>) -> Self {
Self {
db_instance_id: db_instance_id.into(),
whitelist_network_type: None,
}
}
}
impl crate::ToFormData for DescribeDBInstanceIPArrayList {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DescribeDBInstanceIPArrayList {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DescribeDBInstanceIPArrayList";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DescribeDBInstanceIPArrayListResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(2);
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
if let Some(f) = &self.whitelist_network_type {
params.push(("WhitelistNetworkType".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于查询RDS实例的SSL配置情况。
///
/// Argument of [Connection::describe_db_instance_ssl()], returns [DescribeDBInstanceSSLResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DescribeDBInstanceSSL {
/// 实例ID。可调用DescribeDBInstances获取。
db_instance_id: String,
}
impl sealed::Bound for DescribeDBInstanceSSL {}
impl DescribeDBInstanceSSL {
pub fn new(db_instance_id: impl Into<String>) -> Self {
Self {
db_instance_id: db_instance_id.into(),
}
}
}
impl crate::ToFormData for DescribeDBInstanceSSL {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DescribeDBInstanceSSL {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DescribeDBInstanceSSL";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DescribeDBInstanceSSLResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(1);
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于查询RDS实例的透明数据加密TDE的加密状态。
///
/// Argument of [Connection::describe_db_instance_tde()], returns [DescribeDBInstanceTDEResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DescribeDBInstanceTDE {
/// 实例ID。可调用DescribeDBInstances获取。
db_instance_id: String,
}
impl sealed::Bound for DescribeDBInstanceTDE {}
impl DescribeDBInstanceTDE {
pub fn new(db_instance_id: impl Into<String>) -> Self {
Self {
db_instance_id: db_instance_id.into(),
}
}
}
impl crate::ToFormData for DescribeDBInstanceTDE {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DescribeDBInstanceTDE {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DescribeDBInstanceTDE";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DescribeDBInstanceTDEResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(1);
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 查询RDS实例是否开启了云盘加密,以及密钥详情。
///
/// Argument of [Connection::describe_db_instance_encryption_key()], returns [DescribeDBInstanceEncryptionKeyResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DescribeDBInstanceEncryptionKey {
/// 实例所在的地域ID。可调用DescribeRegions接口获取。
#[setters(generate = true, strip_option)]
region_id: Option<String>,
/// 实例ID。可调用DescribeDBInstances接口获取。
#[setters(generate = true, strip_option)]
db_instance_id: Option<String>,
/// 自定义密钥ID。
#[setters(generate = true, strip_option)]
encryption_key: Option<String>,
/// 目标地域ID。可调用DescribeRegions接口获取。
#[setters(generate = true, strip_option)]
target_region_id: Option<String>,
}
impl sealed::Bound for DescribeDBInstanceEncryptionKey {}
impl DescribeDBInstanceEncryptionKey {
pub fn new() -> Self {
Self {
region_id: None,
db_instance_id: None,
encryption_key: None,
target_region_id: None,
}
}
}
impl crate::ToFormData for DescribeDBInstanceEncryptionKey {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DescribeDBInstanceEncryptionKey {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DescribeDBInstanceEncryptionKey";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DescribeDBInstanceEncryptionKeyResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(4);
if let Some(f) = &self.db_instance_id {
params.push(("DBInstanceId".into(), (f).into()));
}
if let Some(f) = &self.encryption_key {
params.push(("EncryptionKey".into(), (f).into()));
}
if let Some(f) = &self.region_id {
params.push(("RegionId".into(), (f).into()));
}
if let Some(f) = &self.target_region_id {
params.push(("TargetRegionId".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于查询RDS SQL Server实例底层所在ECS实例的内网IP和ECS主机名。
///
/// Argument of [Connection::describe_db_instance_ip_hostname()], returns [DescribeDBInstanceIpHostnameResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DescribeDBInstanceIpHostname {
/// 实例ID。可调用[DescribeDBInstances](~~2628785~~)获取。
db_instance_id: String,
/// 地域ID。可调用[DescribeDBInstanceAttribute](~~2628783~~)获取。
region_id: String,
}
impl sealed::Bound for DescribeDBInstanceIpHostname {}
impl DescribeDBInstanceIpHostname {
pub fn new(db_instance_id: impl Into<String>, region_id: impl Into<String>) -> Self {
Self {
db_instance_id: db_instance_id.into(),
region_id: region_id.into(),
}
}
}
impl crate::ToFormData for DescribeDBInstanceIpHostname {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DescribeDBInstanceIpHostname {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DescribeDBInstanceIpHostname";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DescribeDBInstanceIpHostnameResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(2);
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
params.push(("RegionId".into(), (&self.region_id).into()));
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于查询RDS SQL Server实例的分布式事务白名单信息。
///
/// Argument of [Connection::describe_dtc_security_ip_hosts_for_sql_server()], returns [DescribeDTCSecurityIpHostsForSQLServerResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DescribeDTCSecurityIpHostsForSQLServer {
/// 实例ID。可调用DescribeDBInstances获取。
db_instance_id: String,
/// 地域ID。可调用DescribeDBInstanceAttribute获取。
region_id: String,
/// 资源组ID。可调用DescribeDBInstanceAttribute获取。
#[setters(generate = true, strip_option)]
resource_group_id: Option<String>,
}
impl sealed::Bound for DescribeDTCSecurityIpHostsForSQLServer {}
impl DescribeDTCSecurityIpHostsForSQLServer {
pub fn new(db_instance_id: impl Into<String>, region_id: impl Into<String>) -> Self {
Self {
db_instance_id: db_instance_id.into(),
region_id: region_id.into(),
resource_group_id: None,
}
}
}
impl crate::ToFormData for DescribeDTCSecurityIpHostsForSQLServer {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DescribeDTCSecurityIpHostsForSQLServer {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DescribeDTCSecurityIpHostsForSQLServer";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DescribeDTCSecurityIpHostsForSQLServerResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(3);
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
params.push(("RegionId".into(), (&self.region_id).into()));
if let Some(f) = &self.resource_group_id {
params.push(("ResourceGroupId".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于将RDS实例的白名单从通用模式切换为高安全模式。
///
/// Argument of [Connection::migrate_security_ip_mode()], returns [MigrateSecurityIPModeResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct MigrateSecurityIPMode {
/// 实例ID。可调用DescribeDBInstances获取。
db_instance_id: String,
}
impl sealed::Bound for MigrateSecurityIPMode {}
impl MigrateSecurityIPMode {
pub fn new(db_instance_id: impl Into<String>) -> Self {
Self {
db_instance_id: db_instance_id.into(),
}
}
}
impl crate::ToFormData for MigrateSecurityIPMode {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for MigrateSecurityIPMode {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "MigrateSecurityIPMode";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<MigrateSecurityIPModeResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(1);
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于查看SQL日志运行报告列表。
///
/// Argument of [Connection::describe_sql_log_report_list()], returns [DescribeSQLLogReportListResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DescribeSQLLogReportList {
/// 实例ID。可调用DescribeDBInstances获取。
db_instance_id: String,
/// 查询开始时间,格式:<i>yyyy-MM-dd</i>T<i>HH:mm:ss</i>Z(UTC时间)。
start_time: String,
/// 查询结束时间,格式:<i>yyyy-MM-dd</i>T<i>HH:mm:ss</i>Z(UTC时间)。
/// > 必须大于查询开始时间
end_time: String,
/// 每页记录数。取值:
/// - **30**
/// - **50**
/// - **100**
///
/// 默认值:**30**
#[setters(generate = true, strip_option)]
page_size: Option<i32>,
/// 页码。大于**0**,且不超过Integer类型的最大值。
///
/// 默认值:**1**
#[setters(generate = true, strip_option)]
page_number: Option<i32>,
}
impl sealed::Bound for DescribeSQLLogReportList {}
impl DescribeSQLLogReportList {
pub fn new(
db_instance_id: impl Into<String>,
start_time: impl Into<String>,
end_time: impl Into<String>,
) -> Self {
Self {
db_instance_id: db_instance_id.into(),
start_time: start_time.into(),
end_time: end_time.into(),
page_size: None,
page_number: None,
}
}
}
impl crate::ToFormData for DescribeSQLLogReportList {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DescribeSQLLogReportList {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DescribeSQLLogReportList";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DescribeSQLLogReportListResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(5);
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
params.push(("EndTime".into(), (&self.end_time).into()));
if let Some(f) = &self.page_number {
params.push(("PageNumber".into(), (f).into()));
}
if let Some(f) = &self.page_size {
params.push(("PageSize".into(), (f).into()));
}
params.push(("StartTime".into(), (&self.start_time).into()));
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于清理RDS实例的本地日志。
///
/// Argument of [Connection::purge_db_instance_log()], returns [PurgeDBInstanceLogResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct PurgeDBInstanceLog {
/// 用于保证请求的幂等性,防止重复提交请求。由客户端生成该参数值,要保证在不同请求间唯一,最大值不超过64个ASCII字符,且该参数值中不能包含非ASCII字符。
#[setters(generate = true, strip_option)]
client_token: Option<String>,
/// 待清理或收缩日志的实例ID。可调用DescribeDBInstances获取。
db_instance_id: String,
}
impl sealed::Bound for PurgeDBInstanceLog {}
impl PurgeDBInstanceLog {
pub fn new(db_instance_id: impl Into<String>) -> Self {
Self {
client_token: None,
db_instance_id: db_instance_id.into(),
}
}
}
impl crate::ToFormData for PurgeDBInstanceLog {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for PurgeDBInstanceLog {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "PurgeDBInstanceLog";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<PurgeDBInstanceLogResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(2);
if let Some(f) = &self.client_token {
params.push(("ClientToken".into(), (f).into()));
}
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于查询SQL洞察(SQL审计)导出文件列表。不支持查询通过控制台手动导出的SQL洞察日志文件,只支持查询通过DescribeSQLLogRecords接口生成(请求参数Form取值为File)的SQL洞察文件列表。
///
/// Argument of [Connection::describe_sql_log_files()], returns [DescribeSQLLogFilesResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DescribeSQLLogFiles {
/// 实例ID。可调用DescribeDBInstances获取。
db_instance_id: String,
/// 审计文件名称。
#[setters(generate = true, strip_option)]
file_name: Option<String>,
/// 每页记录数,取值:**30~200**。默认值:**30**。
#[setters(generate = true, strip_option)]
page_size: Option<i32>,
/// 页码,取值:**1-100000**。
/// 默认值:**1**。
#[setters(generate = true, strip_option)]
page_number: Option<i32>,
}
impl sealed::Bound for DescribeSQLLogFiles {}
impl DescribeSQLLogFiles {
pub fn new(db_instance_id: impl Into<String>) -> Self {
Self {
db_instance_id: db_instance_id.into(),
file_name: None,
page_size: None,
page_number: None,
}
}
}
impl crate::ToFormData for DescribeSQLLogFiles {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DescribeSQLLogFiles {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DescribeSQLLogFiles";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DescribeSQLLogFilesResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(4);
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
if let Some(f) = &self.file_name {
params.push(("FileName".into(), (f).into()));
}
if let Some(f) = &self.page_number {
params.push(("PageNumber".into(), (f).into()));
}
if let Some(f) = &self.page_size {
params.push(("PageSize".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于查询慢日志统计情况。
///
/// Argument of [Connection::describe_slow_logs()], returns [DescribeSlowLogsResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DescribeSlowLogs {
/// 实例ID。可调用DescribeDBInstances获取。
db_instance_id: String,
/// 查询开始日期,格式:<i>yyyy-MM-dd</i>Z(UTC时间)。
start_time: String,
/// 查询结束日期,不能小于查询开始日期,与查询开始日期间隔不超过31天。格式:<i>yyyy-MM-dd</i>Z(UTC时间)。
///
/// > 当查询结束日期与查询开始日期相同时,默认从查询开始日期的08:00开始,最多查询24小时的慢日志统计情况。
end_time: String,
/// 数据库名称。
#[setters(generate = true, strip_option)]
db_name: Option<String>,
/// 排序依据,取值:
/// * **TotalExecutionCounts**:总执行次数最多
/// * **TotalQueryTimes**:总执行时间最多
/// * **TotalLogicalReads**:总逻辑读最多
/// * **TotalPhysicalReads**:总物理读最多
///
/// >仅SQL Server 2008 R2实例支持本参数。
#[setters(generate = true, strip_option)]
sort_key: Option<String>,
/// 每页记录数,取值:**30**~**100**。默认值:**30**。
#[setters(generate = true, strip_option)]
page_size: Option<i32>,
/// 页码,取值:大于0且不超过Integer的最大值。
///
/// 默认值:**1**。
#[setters(generate = true, strip_option)]
page_number: Option<i32>,
}
impl sealed::Bound for DescribeSlowLogs {}
impl DescribeSlowLogs {
pub fn new(
db_instance_id: impl Into<String>,
start_time: impl Into<String>,
end_time: impl Into<String>,
) -> Self {
Self {
db_instance_id: db_instance_id.into(),
start_time: start_time.into(),
end_time: end_time.into(),
db_name: None,
sort_key: None,
page_size: None,
page_number: None,
}
}
}
impl crate::ToFormData for DescribeSlowLogs {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DescribeSlowLogs {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DescribeSlowLogs";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DescribeSlowLogsResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(7);
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
if let Some(f) = &self.db_name {
params.push(("DBName".into(), (f).into()));
}
params.push(("EndTime".into(), (&self.end_time).into()));
if let Some(f) = &self.page_number {
params.push(("PageNumber".into(), (f).into()));
}
if let Some(f) = &self.page_size {
params.push(("PageSize".into(), (f).into()));
}
if let Some(f) = &self.sort_key {
params.push(("SortKey".into(), (f).into()));
}
params.push(("StartTime".into(), (&self.start_time).into()));
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于查看实例的慢日志明细。
///
/// Argument of [Connection::describe_slow_log_records()], returns [DescribeSlowLogRecordsResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DescribeSlowLogRecords {
/// 实例ID。可调用DescribeDBInstances获取。
db_instance_id: String,
/// 慢日志统计里的SQL语句唯一标识符,可用于获取该SQL语句的慢日志明细。
#[setters(generate = true, strip_option)]
sqlhash: Option<String>,
/// 查询开始时间,最大不能早于当前时间30天。格式:<i>yyyy-MM-dd</i>T<i>HH:mm</i>Z(UTC时间)。
start_time: String,
/// 查询结束时间,需要晚于查询开始时间。格式:<i>yyyy-MM-dd</i>T<i>HH:mm</i>Z(UTC时间)。
end_time: String,
/// 数据库名称。
#[setters(generate = true, strip_option)]
db_name: Option<String>,
/// 每页记录数,取值:**30**~**100**。
///
/// > 默认值:**30**。
#[setters(generate = true, strip_option)]
page_size: Option<i32>,
/// 页码,取值:大于0且不超过Integer的最大值。
///
/// > 默认值:**1**。
#[setters(generate = true, strip_option)]
page_number: Option<i32>,
/// 节点ID。
/// ><notice>该参数仅适用于集群版实例,可以选择查询指定节点日志。若不传该参数,默认返回主节点日志。></notice>
#[setters(generate = true, strip_option)]
node_id: Option<String>,
}
impl sealed::Bound for DescribeSlowLogRecords {}
impl DescribeSlowLogRecords {
pub fn new(
db_instance_id: impl Into<String>,
start_time: impl Into<String>,
end_time: impl Into<String>,
) -> Self {
Self {
db_instance_id: db_instance_id.into(),
sqlhash: None,
start_time: start_time.into(),
end_time: end_time.into(),
db_name: None,
page_size: None,
page_number: None,
node_id: None,
}
}
}
impl crate::ToFormData for DescribeSlowLogRecords {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DescribeSlowLogRecords {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DescribeSlowLogRecords";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DescribeSlowLogRecordsResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(8);
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
if let Some(f) = &self.db_name {
params.push(("DBName".into(), (f).into()));
}
params.push(("EndTime".into(), (&self.end_time).into()));
if let Some(f) = &self.node_id {
params.push(("NodeId".into(), (f).into()));
}
if let Some(f) = &self.page_number {
params.push(("PageNumber".into(), (f).into()));
}
if let Some(f) = &self.page_size {
params.push(("PageSize".into(), (f).into()));
}
if let Some(f) = &self.sqlhash {
params.push(("SQLHASH".into(), (f).into()));
}
params.push(("StartTime".into(), (&self.start_time).into()));
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口查询实例某段时间内的错误日志。
///
/// Argument of [Connection::describe_error_logs()], returns [DescribeErrorLogsResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DescribeErrorLogs {
/// 实例ID。可调用DescribeDBInstances获取。
db_instance_id: String,
/// 查询开始时间。格式:<i>yyyy-MM-dd</i>T<i>HH:mm</i>Z(UTC时间)。
start_time: String,
/// 查询结束时间,大于查询开始时间,与查询开始时间间隔小于31天。格式:<i>yyyy-MM-dd</i>T<i>HH:mm</i>Z(UTC时间)。
end_time: String,
/// 每页记录数,取值:**30**~**100**。默认值:**30**。
#[setters(generate = true, strip_option)]
page_size: Option<i32>,
/// 页码,取值:大于0且不超过Integer的最大值。
///
/// 默认值:**1**。
#[setters(generate = true, strip_option)]
page_number: Option<i32>,
}
impl sealed::Bound for DescribeErrorLogs {}
impl DescribeErrorLogs {
pub fn new(
db_instance_id: impl Into<String>,
start_time: impl Into<String>,
end_time: impl Into<String>,
) -> Self {
Self {
db_instance_id: db_instance_id.into(),
start_time: start_time.into(),
end_time: end_time.into(),
page_size: None,
page_number: None,
}
}
}
impl crate::ToFormData for DescribeErrorLogs {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DescribeErrorLogs {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DescribeErrorLogs";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DescribeErrorLogsResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(5);
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
params.push(("EndTime".into(), (&self.end_time).into()));
if let Some(f) = &self.page_number {
params.push(("PageNumber".into(), (f).into()));
}
if let Some(f) = &self.page_size {
params.push(("PageSize".into(), (f).into()));
}
params.push(("StartTime".into(), (&self.start_time).into()));
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 停止维护:可以正常调用,但不再维护。该接口用于开启或关闭实例的SQL洞察(SQL审计)功能。
///
/// Argument of [Connection::modify_sql_collector_policy()], returns [ModifySQLCollectorPolicyResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct ModifySQLCollectorPolicy {
/// 实例ID。可调用DescribeDBInstances获取。
db_instance_id: String,
/// 开启或关闭SQL洞察(SQL审计),取值:
/// - **Enable**
/// - **Disabled**
sql_collector_status: String,
/// 资源组ID。可调用DescribeDBInstanceAttribute获取。
#[setters(generate = true, strip_option)]
resource_group_id: Option<String>,
}
impl sealed::Bound for ModifySQLCollectorPolicy {}
impl ModifySQLCollectorPolicy {
pub fn new(db_instance_id: impl Into<String>, sql_collector_status: impl Into<String>) -> Self {
Self {
db_instance_id: db_instance_id.into(),
sql_collector_status: sql_collector_status.into(),
resource_group_id: None,
}
}
}
impl crate::ToFormData for ModifySQLCollectorPolicy {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for ModifySQLCollectorPolicy {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "ModifySQLCollectorPolicy";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<ModifySQLCollectorPolicyResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(3);
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
if let Some(f) = &self.resource_group_id {
params.push(("ResourceGroupId".into(), (f).into()));
}
params.push((
"SQLCollectorStatus".into(),
(&self.sql_collector_status).into(),
));
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 停止维护:可以正常调用,但不再维护。该接口用于修改RDS实例的SQL洞察日志保存时长。
///
/// Argument of [Connection::modify_sql_collector_retention()], returns [ModifySQLCollectorRetentionResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct ModifySQLCollectorRetention {
/// 实例ID。可调用DescribeDBInstances获取。
db_instance_id: String,
/// SQL洞察日志保存时长,取值:
/// - 30:30天
/// - 180:180天
/// - 365:1年
/// - 1095:3年
/// - 1825:5年
config_value: String,
/// 资源组ID。可调用DescribeDBInstanceAttribute获取。
#[setters(generate = true, strip_option)]
resource_group_id: Option<String>,
}
impl sealed::Bound for ModifySQLCollectorRetention {}
impl ModifySQLCollectorRetention {
pub fn new(db_instance_id: impl Into<String>, config_value: impl Into<String>) -> Self {
Self {
db_instance_id: db_instance_id.into(),
config_value: config_value.into(),
resource_group_id: None,
}
}
}
impl crate::ToFormData for ModifySQLCollectorRetention {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for ModifySQLCollectorRetention {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "ModifySQLCollectorRetention";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<ModifySQLCollectorRetentionResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(3);
params.push(("ConfigValue".into(), (&self.config_value).into()));
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
if let Some(f) = &self.resource_group_id {
params.push(("ResourceGroupId".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 停止维护:可以正常调用,但不再维护。该接口用于查询RDS实例的SQL洞察(SQL审计)功能是否开启。
///
/// Argument of [Connection::describe_sql_collector_policy()], returns [DescribeSQLCollectorPolicyResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DescribeSQLCollectorPolicy {
/// 用于保证请求的幂等性,防止重复提交请求。由客户端生成该参数值,要保证在不同请求间唯一,最大值不超过64个ASCII字符,且该参数值中不能包含非ASCII字符。
#[setters(generate = true, strip_option)]
client_token: Option<String>,
/// 实例ID。可调用DescribeDBInstances获取。
db_instance_id: String,
/// 资源组ID。可调用DescribeDBInstanceAttribute获取。
#[setters(generate = true, strip_option)]
resource_group_id: Option<String>,
}
impl sealed::Bound for DescribeSQLCollectorPolicy {}
impl DescribeSQLCollectorPolicy {
pub fn new(db_instance_id: impl Into<String>) -> Self {
Self {
client_token: None,
db_instance_id: db_instance_id.into(),
resource_group_id: None,
}
}
}
impl crate::ToFormData for DescribeSQLCollectorPolicy {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DescribeSQLCollectorPolicy {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DescribeSQLCollectorPolicy";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DescribeSQLCollectorPolicyResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(3);
if let Some(f) = &self.client_token {
params.push(("ClientToken".into(), (f).into()));
}
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
if let Some(f) = &self.resource_group_id {
params.push(("ResourceGroupId".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 停止维护:可以正常调用,但不再维护。该接口用于查询RDS实例的SQL洞察(SQL审计)日志。
///
/// Argument of [Connection::describe_sql_log_records()], returns [DescribeSQLLogRecordsResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DescribeSQLLogRecords {
/// 用于保证请求的幂等性,防止重复提交请求。由客户端生成该参数值,要保证在不同请求间唯一,最大值不超过64个ASCII字符,且该参数值中不能包含非ASCII字符。
#[setters(generate = true, strip_option)]
client_token: Option<String>,
/// 实例ID。可调用DescribeDBInstances获取。
db_instance_id: String,
/// 备用参数。
#[setters(generate = true, strip_option)]
sql_id: Option<i64>,
/// 用于查询的关键字。
///
/// - 通过API生成审计文件时(请求参数**Form**取值为**File**),不支持通过关键字筛选。
///
/// - 多个关键字以空格分隔,不超过10个关键字;各个关键字之间的逻辑关系为**and**。
///
/// - 如果SQL语句中的字段名使用了反引号(\`),以该字段名作为查询的关键字时,也需要输入反引号。例如,字段名为\`id\`,则输入\`id\`,而不是id。
///
/// > 输入关键字后,系统会以**Database**、**User**和**QueryKeywords**同时进行关键字匹配,三个请求参数之间的逻辑关系为**and**。
#[setters(generate = true, strip_option)]
query_keywords: Option<String>,
/// 查询开始时间,可查询当前日期7天内的数据。格式:<i>yyyy-MM-dd</i>T<i>HH:mm:ss</i>Z(UTC时间)。
///
/// >当开通了DAS企业版 V3,使用其提供的SQL洞察和审计功能时,可查询数据热存储时长内的数据。通过[DescribeSqlLogConfig](~~2778837~~)可以查询开通的企业版信息。
start_time: String,
/// 数据库名称。默认为所有数据库,也可以输入数据库名称查询,一次只能输入一个。
#[setters(generate = true, strip_option)]
database: Option<String>,
/// 用户名称。默认为所有用户,也可以输入用户名称查询,一次只能输入一个。
#[setters(generate = true, strip_option)]
user: Option<String>,
/// 触发审计文件的生成或者返回SQL记录列表,取值:
/// * **File**:若传入这个值,则触发审计文件的生成,只返回公共参数,需再调用DescribeSQLLogFiles接口获取文件的最终下载地址。
/// * **Stream**:默认值,返回SQL记录列表。
///
/// > 取值为**File**时,只支持MySQL(高性能本地盘)和SQL Server实例,且最多记录100万条日志。
#[setters(generate = true, strip_option)]
form: Option<String>,
/// 查询结束时间,大于查询开始时间,与查询开始时间间隔小于等于7天。格式:<i>yyyy-MM-dd</i>T<i>HH:mm:ss</i>Z(UTC时间)。
///
/// >当开通了DAS企业版 V3,使用其提供的SQL洞察和审计功能时,可查询数据热存储时长内的数据。通过[DescribeSqlLogConfig](~~2778837~~)可以查询开通的企业版信息。
end_time: String,
/// 每页记录数,取值:**30**~**100**。默认值:**30**。
#[setters(generate = true, strip_option)]
page_size: Option<i32>,
/// 页码,取值:大于0且不超过Integer的最大值。
///
/// 默认值:**1**。
#[setters(generate = true, strip_option)]
page_number: Option<i32>,
}
impl sealed::Bound for DescribeSQLLogRecords {}
impl DescribeSQLLogRecords {
pub fn new(
db_instance_id: impl Into<String>,
start_time: impl Into<String>,
end_time: impl Into<String>,
) -> Self {
Self {
client_token: None,
db_instance_id: db_instance_id.into(),
sql_id: None,
query_keywords: None,
start_time: start_time.into(),
database: None,
user: None,
form: None,
end_time: end_time.into(),
page_size: None,
page_number: None,
}
}
}
impl crate::ToFormData for DescribeSQLLogRecords {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DescribeSQLLogRecords {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DescribeSQLLogRecords";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DescribeSQLLogRecordsResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(11);
if let Some(f) = &self.client_token {
params.push(("ClientToken".into(), (f).into()));
}
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
if let Some(f) = &self.database {
params.push(("Database".into(), (f).into()));
}
params.push(("EndTime".into(), (&self.end_time).into()));
if let Some(f) = &self.form {
params.push(("Form".into(), (f).into()));
}
if let Some(f) = &self.page_number {
params.push(("PageNumber".into(), (f).into()));
}
if let Some(f) = &self.page_size {
params.push(("PageSize".into(), (f).into()));
}
if let Some(f) = &self.query_keywords {
params.push(("QueryKeywords".into(), (f).into()));
}
if let Some(f) = &self.sql_id {
params.push(("SQLId".into(), (f).into()));
}
params.push(("StartTime".into(), (&self.start_time).into()));
if let Some(f) = &self.user {
params.push(("User".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 停止维护:可以正常调用,但不再维护。该接口用于查询RDS实例的SQL洞察日志保存时长。
///
/// Argument of [Connection::describe_sql_collector_retention()], returns [DescribeSQLCollectorRetentionResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DescribeSQLCollectorRetention {
/// 实例ID。可调用DescribeDBInstances获取。
db_instance_id: String,
/// 资源组ID。可调用DescribeDBInstanceAttribute获取。
#[setters(generate = true, strip_option)]
resource_group_id: Option<String>,
}
impl sealed::Bound for DescribeSQLCollectorRetention {}
impl DescribeSQLCollectorRetention {
pub fn new(db_instance_id: impl Into<String>) -> Self {
Self {
db_instance_id: db_instance_id.into(),
resource_group_id: None,
}
}
}
impl crate::ToFormData for DescribeSQLCollectorRetention {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DescribeSQLCollectorRetention {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DescribeSQLCollectorRetention";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DescribeSQLCollectorRetentionResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(2);
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
if let Some(f) = &self.resource_group_id {
params.push(("ResourceGroupId".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于延长手动备份产生的单库备份集(物理备份、全量备份、单库备份)的过期时间。
///
/// Argument of [Connection::modify_backup_set_expire_time()], returns [ModifyBackupSetExpireTimeResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct ModifyBackupSetExpireTime {
/// 实例ID。可调用DescribeDBInstances获取。
db_instance_id: String,
/// 备份集ID。可调用DescribeBackups获取。支持的备份集需满足以下条件:
///
/// - Engine(数据库类型):SQLServer
/// - BackupMode(备份模式):Manual(手动备份)
/// - BackupMethod(备份方式):Physical(物理备份)
/// - BackupType(备份类型):FullBackup(全量备份)
/// - BackupStatus(备份集状态):Success(备份完成)
backup_id: i64,
/// 需要延长备份集过期时间至指定时间点,格式为yyyy-MM-ddTHH:mmZ(UTC时间)。
///
/// 该时间点不能早于当前过期时间,可调用DescribeBackups查看当前过期时间(ExpectExpireTime)。
expect_expire_time: String,
}
impl sealed::Bound for ModifyBackupSetExpireTime {}
impl ModifyBackupSetExpireTime {
pub fn new(
db_instance_id: impl Into<String>,
backup_id: impl Into<i64>,
expect_expire_time: impl Into<String>,
) -> Self {
Self {
db_instance_id: db_instance_id.into(),
backup_id: backup_id.into(),
expect_expire_time: expect_expire_time.into(),
}
}
}
impl crate::ToFormData for ModifyBackupSetExpireTime {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for ModifyBackupSetExpireTime {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "ModifyBackupSetExpireTime";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<ModifyBackupSetExpireTimeResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(3);
params.push(("BackupId".into(), (&self.backup_id).into()));
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
params.push(("ExpectExpireTime".into(), (&self.expect_expire_time).into()));
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于为RDS实例创建一个备份集。
///
/// Argument of [Connection::create_backup()], returns [CreateBackupResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct CreateBackup {
/// 实例ID。可调用DescribeDBInstances获取。
db_instance_id: String,
/// 数据库列表,多个数据库之间用英文逗号(,)隔开。
/// >满足以下条件时,该参数生效:已传入**BackupStrategy**参数(取值为**db**)。
#[setters(generate = true, strip_option)]
db_name: Option<String>,
/// 备份策略,取值:
/// * **db**:单库备份
/// * **instance**:实例备份
///
/// >满足以下条件时,该参数生效:
/// > - MySQL:已传入**BackupMethod**参数(取值**Logical**)。
/// > - SQL Server:已传入**BackupType**参数(取值为**FullBackup**)
#[setters(generate = true, strip_option)]
backup_strategy: Option<String>,
/// 备份类型,取值:
/// * **Logical**:逻辑备份(仅MySQL支持)
/// * **Physical**:物理备份(MySQL、SQL Server、PostgreSQL)
/// * **Snapshot**:快照备份(均支持)
///
/// 默认值:**Physical**。
///
/// > * 使用逻辑备份时,数据库内需要有存储数据(数据不为空)。
/// > * MariaDB实例仅支持快照备份,但参数取值请填写**Physical**。
#[setters(generate = true, strip_option)]
backup_method: Option<String>,
/// SQL Server实例备份方式,取值:
/// * **Auto**(默认值):自动选择全量备份或增量备份
/// * **FullBackup**:全量备份
///
/// > 该值仅在**BackupMethod**参数为**Physical**时生效。
#[setters(generate = true, strip_option)]
backup_type: Option<String>,
/// SQL Serevr实例的BackupStrategy为db、BackupMethod为Physical且BackupType为FullBackup时,支持指定备份集的保留时间,取值7~730天、-1(长期保留)。
#[setters(generate = true, strip_option)]
backup_retention_period: Option<i64>,
}
impl sealed::Bound for CreateBackup {}
impl CreateBackup {
pub fn new(db_instance_id: impl Into<String>) -> Self {
Self {
db_instance_id: db_instance_id.into(),
db_name: None,
backup_strategy: None,
backup_method: None,
backup_type: None,
backup_retention_period: None,
}
}
}
impl crate::ToFormData for CreateBackup {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for CreateBackup {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "CreateBackup";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<CreateBackupResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(6);
if let Some(f) = &self.backup_method {
params.push(("BackupMethod".into(), (f).into()));
}
if let Some(f) = &self.backup_retention_period {
params.push(("BackupRetentionPeriod".into(), (f).into()));
}
if let Some(f) = &self.backup_strategy {
params.push(("BackupStrategy".into(), (f).into()));
}
if let Some(f) = &self.backup_type {
params.push(("BackupType".into(), (f).into()));
}
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
if let Some(f) = &self.db_name {
params.push(("DBName".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于删除RDS实例的数据备份文件。
///
/// Argument of [Connection::delete_backup()], returns [DeleteBackupResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DeleteBackup {
/// 实例ID。可调用DescribeDBInstances获取。
db_instance_id: String,
/// 备份集ID。可通过接口DescribeBackups查询。多组值以英文逗号(,)隔开,单次最多传入100个。
/// >仅支持删除DescribeBackups中**StoreStatus**为**Enabled**的备份集。
backup_id: String,
}
impl sealed::Bound for DeleteBackup {}
impl DeleteBackup {
pub fn new(db_instance_id: impl Into<String>, backup_id: impl Into<String>) -> Self {
Self {
db_instance_id: db_instance_id.into(),
backup_id: backup_id.into(),
}
}
}
impl crate::ToFormData for DeleteBackup {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DeleteBackup {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DeleteBackup";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DeleteBackupResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(2);
params.push(("BackupId".into(), (&self.backup_id).into()));
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于删除RDS SQL Server的备份文件。新用户不支持使用该接口,此前已加白用户仍可正常使用。
///
/// Argument of [Connection::delete_backup_file()], returns [DeleteBackupFileResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DeleteBackupFile {
/// 地域ID。可调用DescribeDBInstanceAttribute获取。
#[setters(generate = true, strip_option)]
region_id: Option<String>,
/// 实例ID。可调用DescribeDBInstances获取。
db_instance_id: String,
/// 仅支持传入备份策略为单库备份的备份集ID。单次最多传入100个备份集ID,多个值之间用半角逗号(,)隔开。可调用DescribeBackups获取。
#[setters(generate = true, strip_option)]
backup_id: Option<String>,
/// 数据库名称。
#[setters(generate = true, strip_option)]
db_name: Option<String>,
/// 删除该时间点之前的备份文件。格式为yyyy-MM-ddTHH:mm:ssZ(UTC时间)。
#[setters(generate = true, strip_option)]
backup_time: Option<String>,
}
impl sealed::Bound for DeleteBackupFile {}
impl DeleteBackupFile {
pub fn new(db_instance_id: impl Into<String>) -> Self {
Self {
region_id: None,
db_instance_id: db_instance_id.into(),
backup_id: None,
db_name: None,
backup_time: None,
}
}
}
impl crate::ToFormData for DeleteBackupFile {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DeleteBackupFile {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DeleteBackupFile";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DeleteBackupFileResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(5);
if let Some(f) = &self.backup_id {
params.push(("BackupId".into(), (f).into()));
}
if let Some(f) = &self.backup_time {
params.push(("BackupTime".into(), (f).into()));
}
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
if let Some(f) = &self.db_name {
params.push(("DBName".into(), (f).into()));
}
if let Some(f) = &self.region_id {
params.push(("RegionId".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于修改RDS实例的备份策略设置。
///
/// Argument of [Connection::modify_backup_policy()], returns [ModifyBackupPolicyResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct ModifyBackupPolicy {
/// 实例ID。可调用DescribeDBInstances获取。
db_instance_id: String,
/// 备份类型,取值:
///
/// * **DataBackupPolicy**:数据备份
/// * **LogBackupPolicy**:日志备份
#[setters(generate = true, strip_option)]
backup_policy_mode: Option<String>,
/// 执行备份任务的时间。格式:<i>HH:mm</i>Z-<i>HH:mm</i>Z(UTC时间)。
///
/// > * **BackupPolicyMode**为**DataBackupPolicy**时,该参数必传。
/// > * 仅在**BackupPolicyMode**参数为**DataBackupPolicy**时生效。
#[setters(generate = true, strip_option)]
preferred_backup_time: Option<String>,
/// 备份周期。至少需要指定2天,多个取值用英文逗号(,)隔开。取值:
/// * **Monday**:周一
/// * **Tuesday**:周二
/// * **Wednesday**:周三
/// * **Thursday**:周四
/// * **Friday**:周五
/// * **Saturday**:周六
/// * **Sunday**:周日
///
/// > * 与**BackupInterval**参数共同决定备份策略。例如:本参数指定周六周日备份,**BackupInterval**参数指定30分钟,则在每周的周六和周日每隔30分钟执行一次备份。
/// > * **BackupPolicyMode**参数为**DataBackupPolicy**时,该参数必传。
/// > * 仅在**BackupPolicyMode**参数为**DataBackupPolicy**时生效。
#[setters(generate = true, strip_option)]
preferred_backup_period: Option<String>,
/// 数据备份保留天数,取值:**7~730**。
///
/// > * **BackupPolicyMode**为**DataBackupPolicy**时,该参数必传。
/// > * 仅在**BackupPolicyMode**参数为**DataBackupPolicy**时生效。
#[setters(generate = true, strip_option)]
backup_retention_period: Option<String>,
/// 是否开启日志备份。取值:
///
/// * **Enable**:开启。
/// * **Disabled**:关闭。
///
/// **对于SQL Server实例**,日志备份默认开启,无法关闭,但您可以修改日志备份频率,具体如下:
///
/// - 日志备份频率为**每5分钟一次**:BackupLog设置为Enable,LogBackupFrequency为空(无需传值)。更多详情,请参见[5分钟日志备份功能](~~2861729~~)。**该配置不支持在设置了优先备库(BackupPriority为1)时使用,否则将会报错。**
/// - 日志备份频率为**每30分钟一次**:BackupLog为空(无需传值),LogBackupFrequency设置为LogInterval。
/// - 日志备份频率为**与数据备份一致**:BackupLog为空(无需传值),LogBackupFrequency为空(无需传值)。
///
/// > 该参数仅在**BackupPolicyMode**为**DataBackupPolicy**时生效,用于开启或关闭日志备份。
#[setters(generate = true, strip_option)]
backup_log: Option<String>,
/// 日志备份保留天数。取值:**7~730**,且不大于数据备份保留天数。
///
/// > * 当开启日志备份时,可设置日志备份文件的保留天数,目前仅支持MySQL和PostgreSQL实例设置该值。
/// > * **BackupPolicyMode**参数为**DataBackupPolicy**或**LogBackupPolicy**时都适用。
#[setters(generate = true, strip_option)]
log_backup_retention_period: Option<String>,
/// **MySQL**、**PostgreSQL**、**MariaDB**实例是否开启日志备份。取值:
/// * **True**或**1**:开启。
/// * **False**或**0**:关闭。
///
/// > - **SQL Server**实例日志备份默认开启,无法关闭。因此SQL Server实例无需关注此参数。
/// > - 该参数仅在**BackupPolicyMode**为**LogBackupPolicy**时生效,用于开启或关闭日志备份。
#[setters(generate = true, strip_option)]
enable_backup_log: Option<BackupLog>,
/// **MySQL**实例日志备份本地保留小时数。取值:**0~7*24**,0表示不保留。
///
/// > 该参数仅在**BackupPolicyMode**为**LogBackupPolicy**时生效,且此时该参数必传。
#[setters(generate = true, strip_option)]
local_log_retention_hours: Option<String>,
/// **MySQL**实例本地日志最大循环空间使用率,超出后,则从最早的Binlog开始清理,直到空间使用率低于该比例。取值:**0~50**。默认不修改。
///
/// > 该参数仅在**BackupPolicyMode**为**LogBackupPolicy**时生效,且此时该参数必传。
#[setters(generate = true, strip_option)]
local_log_retention_space: Option<String>,
/// **MySQL**实例使用空间大于80%,或者剩余空间小于5 GB时,是否无条件清理Binlog。取值:**Enable | Disable**。默认不修改。
///
/// > 该参数仅在**BackupPolicyMode**为**LogBackupPolicy**时生效,且此时该参数必传。
#[setters(generate = true, strip_option)]
high_space_usage_protection: Option<String>,
/// **SQL Server**实例的日志备份频率,取值:
/// * **LogInterval**:**每30分钟**。
/// * **空**(无需传值):**每5分钟**备份一次或**与数据备份一致**。
///
/// > 该参数仅在**BackupPolicyMode**参数为**DataBackupPolicy**时生效。
#[setters(generate = true, strip_option)]
log_backup_frequency: Option<String>,
/// 备份压缩方式。取值:
/// * **0**:不压缩。
/// * **1**:zlib压缩,格式为tar.gz。
/// * **2**:并行zlib压缩。
/// * **4**:quicklz压缩,格式为xb.gz。仅适用于MySQL 5.6/5.7,此备份压缩方式可用于[单库单表恢复](~~103175~~)。
/// * **8**:quicklz压缩,格式为xb.gz。仅适用于MySQL 8.0。暂不支持单库单表恢复。
///
/// > 仅在**BackupPolicyMode**参数为**DataBackupPolicy**时生效。
#[setters(generate = true, strip_option)]
compress_type: Option<String>,
/// 归档备份的保留天数。默认为**0**,表示未开启归档备份。取值:**30**~**1095**。
///
/// > 仅在**BackupPolicyMode**参数为**DataBackupPolicy**时生效。
#[setters(generate = true, strip_option)]
archive_backup_retention_period: Option<String>,
/// 归档备份的保留周期,该周期内能保存的备份个数由**ArchiveBackupKeepCount**决定。默认为**0**。取值:
/// * **ByMonth**:月
/// * **ByWeek**:周
/// * **KeepAll**:全部保留
///
/// > 仅在**BackupPolicyMode**参数为**DataBackupPolicy**时生效。
#[setters(generate = true, strip_option)]
archive_backup_keep_policy: Option<String>,
/// 归档备份的保留个数。默认为**1**。取值:
/// * 当**ArchiveBackupKeepPolicy**为**ByMonth**时,取值为**1**~**31**。
/// * 当**ArchiveBackupKeepPolicy**为**ByWeek**时,取值为**1**~**7**。
///
/// > * 当**ArchiveBackupKeepPolicy**为**KeepAll**时,本参数无需传入。
/// > * 仅在**BackupPolicyMode**参数为**DataBackupPolicy**时生效。
#[setters(generate = true, strip_option)]
archive_backup_keep_count: Option<i32>,
/// **MySQL**已删除实例的归档备份保留策略。取值:
/// * **None**:不保留
/// * **Lastest**:保留最后一个
/// * **All**:全部保留
///
/// > - 仅在**BackupPolicyMode**参数为**DataBackupPolicy**时生效。
/// > - 2024年02月01日及之后新购的RDS MySQL云盘实例ReleasedKeepPolicy默认值为**Lastest**;高性能本地盘实例默认值为**None**。功能详情,请参见[已删除实例备份](~~2836955~~)。
#[setters(generate = true, strip_option)]
released_keep_policy: Option<String>,
/// 本地Binlog保留个数。默认为**60**。取值:**6**~**100**。
///
/// > * 仅在**BackupPolicyMode**参数为**LogBackupPolicy**时生效。
/// > * 如果实例类型为MySQL,可以传入-1,即不限制本地Binlog的保留个数。
#[setters(generate = true, strip_option)]
log_backup_local_retention_number: Option<i32>,
/// 是否开启秒级备份。取值:
/// * **Flash**:开启
/// * **Standard**:关闭
///
/// > 仅在**BackupPolicyMode**参数为**DataBackupPolicy**时生效。
#[setters(generate = true, strip_option)]
category: Option<String>,
/// 快照备份频率。取值:
/// * **-1**:不设置备份频率。
/// * **30**:30分钟。
/// * **60**:60分钟。
/// * **120**:120分钟。
/// * **240**:240分钟。
/// * **480**:480分钟。
///
/// > * 与**PreferredBackupPeriod**参数共同决定备份策略。例如:**PreferredBackupPeriod**参数指定周六周日备份,本参数指定-1,则在每周的周六和周日各执行一次备份。
/// > * PostgreSQL实例必须是云盘实例。
/// > * SQL Server实例必须**已开启**[**快照备份**](~~211143~~)。
/// > * **Category**参数为**Flash**时本参数无效。
/// > * 该参数仅在**BackupPolicyMode**参数为**DataBackupPolicy**时生效。
#[setters(generate = true, strip_option)]
backup_interval: Option<String>,
/// **SQL Server云盘版**实例的备份方式。取值:
/// * **Physical**(默认值):物理备份
/// * **Snapshot**:快照备份
///
/// > 该参数仅在**BackupPolicyMode**参数为**DataBackupPolicy**时生效。
#[setters(generate = true, strip_option)]
backup_method: Option<String>,
/// **SQL Server云盘版**实例是否开启增量备份。取值:
/// * **False**(默认):关闭
/// * **True**:开启
///
/// > 该参数仅在**BackupPolicyMode**参数为**DataBackupPolicy**时生效。
#[setters(generate = true, strip_option)]
enable_increment_data_backup: Option<bool>,
/// **SQL Server集群版**实例[备库备份](~~95717~~)的设置选项。取值:
/// - **1**:优先备库
/// - **2**:强制主库
///
/// > - 仅当**BackupMethod**取值为**Physical**时,该参数才生效。如果**BackupMethod**设置为**Snapshot**,SQL Server集群版实例将强制在主库备份。
/// > - 设置**优先备库**(BackupPriority为1)后,**不支持开启5分钟日志备份**策略(BackupLog为Enable且LogBackupFrequency为空),否则将会报错。请将日志备份频率设置为每30分钟一次或与数据备份一致。
#[setters(generate = true, strip_option)]
backup_priority: Option<i32>,
}
impl sealed::Bound for ModifyBackupPolicy {}
impl ModifyBackupPolicy {
pub fn new(db_instance_id: impl Into<String>) -> Self {
Self {
db_instance_id: db_instance_id.into(),
backup_policy_mode: None,
preferred_backup_time: None,
preferred_backup_period: None,
backup_retention_period: None,
backup_log: None,
log_backup_retention_period: None,
enable_backup_log: None,
local_log_retention_hours: None,
local_log_retention_space: None,
high_space_usage_protection: None,
log_backup_frequency: None,
compress_type: None,
archive_backup_retention_period: None,
archive_backup_keep_policy: None,
archive_backup_keep_count: None,
released_keep_policy: None,
log_backup_local_retention_number: None,
category: None,
backup_interval: None,
backup_method: None,
enable_increment_data_backup: None,
backup_priority: None,
}
}
}
impl crate::ToFormData for ModifyBackupPolicy {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for ModifyBackupPolicy {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "ModifyBackupPolicy";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<ModifyBackupPolicyResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(23);
if let Some(f) = &self.archive_backup_keep_count {
params.push(("ArchiveBackupKeepCount".into(), (f).into()));
}
if let Some(f) = &self.archive_backup_keep_policy {
params.push(("ArchiveBackupKeepPolicy".into(), (f).into()));
}
if let Some(f) = &self.archive_backup_retention_period {
params.push(("ArchiveBackupRetentionPeriod".into(), (f).into()));
}
if let Some(f) = &self.backup_interval {
params.push(("BackupInterval".into(), (f).into()));
}
if let Some(f) = &self.backup_log {
params.push(("BackupLog".into(), (f).into()));
}
if let Some(f) = &self.backup_method {
params.push(("BackupMethod".into(), (f).into()));
}
if let Some(f) = &self.backup_policy_mode {
params.push(("BackupPolicyMode".into(), (f).into()));
}
if let Some(f) = &self.backup_priority {
params.push(("BackupPriority".into(), (f).into()));
}
if let Some(f) = &self.backup_retention_period {
params.push(("BackupRetentionPeriod".into(), (f).into()));
}
if let Some(f) = &self.category {
params.push(("Category".into(), (f).into()));
}
if let Some(f) = &self.compress_type {
params.push(("CompressType".into(), (f).into()));
}
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
if let Some(f) = &self.enable_backup_log {
params.push(("EnableBackupLog".into(), (f).into()));
}
if let Some(f) = &self.enable_increment_data_backup {
params.push(("EnableIncrementDataBackup".into(), (f).into()));
}
if let Some(f) = &self.high_space_usage_protection {
params.push(("HighSpaceUsageProtection".into(), (f).into()));
}
if let Some(f) = &self.local_log_retention_hours {
params.push(("LocalLogRetentionHours".into(), (f).into()));
}
if let Some(f) = &self.local_log_retention_space {
params.push(("LocalLogRetentionSpace".into(), (f).into()));
}
if let Some(f) = &self.log_backup_frequency {
params.push(("LogBackupFrequency".into(), (f).into()));
}
if let Some(f) = &self.log_backup_local_retention_number {
params.push(("LogBackupLocalRetentionNumber".into(), (f).into()));
}
if let Some(f) = &self.log_backup_retention_period {
params.push(("LogBackupRetentionPeriod".into(), (f).into()));
}
if let Some(f) = &self.preferred_backup_period {
params.push(("PreferredBackupPeriod".into(), (f).into()));
}
if let Some(f) = &self.preferred_backup_time {
params.push(("PreferredBackupTime".into(), (f).into()));
}
if let Some(f) = &self.released_keep_policy {
params.push(("ReleasedKeepPolicy".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于查看RDS实例的备份集列表。
///
/// Argument of [Connection::describe_backups()], returns [DescribeBackupsResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DescribeBackups {
/// 实例ID。可调用DescribeDBInstances获取。
db_instance_id: String,
/// 备份集ID。
#[setters(generate = true, strip_option)]
backup_id: Option<String>,
/// 备份集状态。取值:
/// * **Success**:已完成备份
/// * **Failed**:备份失败
#[setters(generate = true, strip_option)]
backup_status: Option<String>,
/// 备份模式,取值:
/// * **Automated**:系统自动备份
/// * **Manual**:手动备份
#[setters(generate = true, strip_option)]
backup_mode: Option<String>,
/// 查询开始时间。格式:<i>yyyy-MM-dd</i>T<i>HH:mm</i>Z(UTC时间)。
#[setters(generate = true, strip_option)]
start_time: Option<String>,
/// 查询结束时间,需要大于查询开始时间。格式:<i>yyyy-MM-dd</i>T<i>HH:mm</i>Z(UTC时间)。
///
/// > 建议您在使用本接口查询备份集列表信息时,将查询开始和结束的时间段缩小一些,如果时间段较长可能出现超时问题。
#[setters(generate = true, strip_option)]
end_time: Option<String>,
/// 每页记录数,取值:
/// * **30**
/// * **50**
/// * **100**
///
/// 默认值:**30**。
#[setters(generate = true, strip_option)]
page_size: Option<i32>,
/// 页码,取值:大于0且不超过Integer的最大值。
///
/// 默认值:**1**。
#[setters(generate = true, strip_option)]
page_number: Option<i32>,
/// 备份类型,取值:
/// * **FullBackup**:全量备份
/// * **IncrementalBackup**:增量备份
#[setters(generate = true, strip_option)]
backup_type: Option<String>,
}
impl sealed::Bound for DescribeBackups {}
impl DescribeBackups {
pub fn new(db_instance_id: impl Into<String>) -> Self {
Self {
db_instance_id: db_instance_id.into(),
backup_id: None,
backup_status: None,
backup_mode: None,
start_time: None,
end_time: None,
page_size: None,
page_number: None,
backup_type: None,
}
}
}
impl crate::ToFormData for DescribeBackups {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DescribeBackups {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DescribeBackups";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DescribeBackupsResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(9);
if let Some(f) = &self.backup_id {
params.push(("BackupId".into(), (f).into()));
}
if let Some(f) = &self.backup_mode {
params.push(("BackupMode".into(), (f).into()));
}
if let Some(f) = &self.backup_status {
params.push(("BackupStatus".into(), (f).into()));
}
if let Some(f) = &self.backup_type {
params.push(("BackupType".into(), (f).into()));
}
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
if let Some(f) = &self.end_time {
params.push(("EndTime".into(), (f).into()));
}
if let Some(f) = &self.page_number {
params.push(("PageNumber".into(), (f).into()));
}
if let Some(f) = &self.page_size {
params.push(("PageSize".into(), (f).into()));
}
if let Some(f) = &self.start_time {
params.push(("StartTime".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于查看已被释放的RDS MySQL实例的备份集列表。
///
/// Argument of [Connection::describe_detached_backups()], returns [DescribeDetachedBackupsResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DescribeDetachedBackups {
/// 实例ID。可调用DescribeDBInstances获取。
#[setters(generate = true, strip_option)]
db_instance_id: Option<String>,
/// 备份集ID。
#[setters(generate = true, strip_option)]
backup_id: Option<String>,
/// 备份集状态,取值:
/// - **Success**:已完成备份
/// - **Failed**:备份失败
#[setters(generate = true, strip_option)]
backup_status: Option<String>,
/// 备份模式,取值:
///
/// - **Automated**:系统自动备份
/// - **Manual**:手动备份
#[setters(generate = true, strip_option)]
backup_mode: Option<String>,
/// 查询开始时间。
///
/// 格式:<i>yyyy-MM-dd</i>T<i>HH:mm</i>Z(UTC时间)。
#[setters(generate = true, strip_option)]
start_time: Option<String>,
/// 查询结束时间,需要大于查询开始时间。
///
/// 格式:<i>yyyy-MM-dd</i>T<i>HH:mm</i>Z(UTC时间)。
#[setters(generate = true, strip_option)]
end_time: Option<String>,
/// 每页记录数,取值:
/// - **30**
/// - **50**
/// - **100**
///
/// > 默认值:**30**。
#[setters(generate = true, strip_option)]
page_size: Option<i32>,
/// 页码,取值:大于0且不超过Integer的最大值。
///
/// > 默认值为1。
#[setters(generate = true, strip_option)]
page_number: Option<i32>,
/// 实例所在的地域。
region: String,
/// 资源组ID。
#[setters(generate = true, strip_option)]
resource_group_id: Option<String>,
}
impl sealed::Bound for DescribeDetachedBackups {}
impl DescribeDetachedBackups {
pub fn new(region: impl Into<String>) -> Self {
Self {
db_instance_id: None,
backup_id: None,
backup_status: None,
backup_mode: None,
start_time: None,
end_time: None,
page_size: None,
page_number: None,
region: region.into(),
resource_group_id: None,
}
}
}
impl crate::ToFormData for DescribeDetachedBackups {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DescribeDetachedBackups {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DescribeDetachedBackups";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DescribeDetachedBackupsResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(10);
if let Some(f) = &self.backup_id {
params.push(("BackupId".into(), (f).into()));
}
if let Some(f) = &self.backup_mode {
params.push(("BackupMode".into(), (f).into()));
}
if let Some(f) = &self.backup_status {
params.push(("BackupStatus".into(), (f).into()));
}
if let Some(f) = &self.db_instance_id {
params.push(("DBInstanceId".into(), (f).into()));
}
if let Some(f) = &self.end_time {
params.push(("EndTime".into(), (f).into()));
}
if let Some(f) = &self.page_number {
params.push(("PageNumber".into(), (f).into()));
}
if let Some(f) = &self.page_size {
params.push(("PageSize".into(), (f).into()));
}
params.push(("Region".into(), (&self.region).into()));
if let Some(f) = &self.resource_group_id {
params.push(("ResourceGroupId".into(), (f).into()));
}
if let Some(f) = &self.start_time {
params.push(("StartTime".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于查询RDS实例的备份设置。
///
/// Argument of [Connection::describe_backup_policy()], returns [DescribeBackupPolicyResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DescribeBackupPolicy {
/// 实例ID。可调用DescribeDBInstances获取。
db_instance_id: String,
/// 备份类型,取值:
/// * **DataBackupPolicy**:数据备份
/// * **LogBackupPolicy**:日志备份
#[setters(generate = true, strip_option)]
backup_policy_mode: Option<String>,
/// 备份压缩方式,取值:
/// * **0**:不压缩
/// * **1**:zlib压缩
/// * **2**:并行zlib压缩
/// * **4**:quicklz压缩,开启了库表恢复
/// * **8**:quicklz压缩但还未支持库表恢复
#[setters(generate = true, strip_option)]
compress_type: Option<String>,
/// **MySQL**已删除实例的归档备份保留策略。取值:
///
/// * **None**:不保留
/// * **Lastest**:保留最后一个
/// * **All**:全部保留
#[setters(generate = true, strip_option)]
released_keep_policy: Option<String>,
}
impl sealed::Bound for DescribeBackupPolicy {}
impl DescribeBackupPolicy {
pub fn new(db_instance_id: impl Into<String>) -> Self {
Self {
db_instance_id: db_instance_id.into(),
backup_policy_mode: None,
compress_type: None,
released_keep_policy: None,
}
}
}
impl crate::ToFormData for DescribeBackupPolicy {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DescribeBackupPolicy {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DescribeBackupPolicy";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DescribeBackupPolicyResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(4);
if let Some(f) = &self.backup_policy_mode {
params.push(("BackupPolicyMode".into(), (f).into()));
}
if let Some(f) = &self.compress_type {
params.push(("CompressType".into(), (f).into()));
}
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
if let Some(f) = &self.released_keep_policy {
params.push(("ReleasedKeepPolicy".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于查询RDS实例的备份任务列表。
///
/// Argument of [Connection::describe_backup_tasks()], returns [DescribeBackupTasksResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DescribeBackupTasks {
/// 用于保证请求的幂等性,防止重复提交请求。由客户端生成该参数值,要保证在不同请求间唯一,最大值不超过64个ASCII字符,且该参数值中不能包含非ASCII字符。
#[setters(generate = true, strip_option)]
client_token: Option<String>,
/// 备用参数。
#[setters(generate = true, strip_option)]
flag: Option<String>,
/// 实例ID。可调用DescribeDBInstances获取。
db_instance_id: String,
/// 备份任务ID。
#[setters(generate = true, strip_option)]
backup_job_id: Option<i32>,
/// 备份模式,取值:
/// * **Automated**:系统自动备份
/// * **Manual**:手动备份
#[setters(generate = true, strip_option)]
backup_mode: Option<TasksBackupMode>,
/// 备份任务状态,取值:
/// * **NoStart**:未开始
/// * **Progressing**:正在进行中
///
/// 默认为所有状态。
#[setters(generate = true, strip_option)]
backup_job_status: Option<JobStatus>,
}
impl sealed::Bound for DescribeBackupTasks {}
impl DescribeBackupTasks {
pub fn new(db_instance_id: impl Into<String>) -> Self {
Self {
client_token: None,
flag: None,
db_instance_id: db_instance_id.into(),
backup_job_id: None,
backup_mode: None,
backup_job_status: None,
}
}
}
impl crate::ToFormData for DescribeBackupTasks {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DescribeBackupTasks {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DescribeBackupTasks";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DescribeBackupTasksResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(6);
if let Some(f) = &self.backup_job_id {
params.push(("BackupJobId".into(), (f).into()));
}
if let Some(f) = &self.backup_job_status {
params.push(("BackupJobStatus".into(), (f).into()));
}
if let Some(f) = &self.backup_mode {
params.push(("BackupMode".into(), (f).into()));
}
if let Some(f) = &self.client_token {
params.push(("ClientToken".into(), (f).into()));
}
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
if let Some(f) = &self.flag {
params.push(("Flag".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于查询RDS MySQL/RDS MariaDB实例的Binlog日志或RDS PostgreSQL实例的Wal日志。
///
/// Argument of [Connection::describe_binlog_files()], returns [DescribeBinlogFilesResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DescribeBinlogFiles {
/// 实例ID。可调用DescribeDBInstances获取。
db_instance_id: String,
/// 查询开始时间。
///
/// 格式:<i>yyyy-MM-dd</i>T<i>HH:mm:ss</i>Z(UTC时间)
start_time: String,
/// 查询结束时间,大于查询开始时间。
///
/// 格式:<i>yyyy-MM-dd</i>T<i>HH:mm:ss</i>Z(UTC时间)
end_time: String,
/// 每页记录数。
///
/// 取值:**30**~**100**
///
/// 默认值:**30**
#[setters(generate = true, strip_option)]
page_size: Option<i32>,
/// 页码,取值:大于0且不超过Integer的最大值。
///
/// 默认值:**1**
#[setters(generate = true, strip_option)]
page_number: Option<i32>,
}
impl sealed::Bound for DescribeBinlogFiles {}
impl DescribeBinlogFiles {
pub fn new(
db_instance_id: impl Into<String>,
start_time: impl Into<String>,
end_time: impl Into<String>,
) -> Self {
Self {
db_instance_id: db_instance_id.into(),
start_time: start_time.into(),
end_time: end_time.into(),
page_size: None,
page_number: None,
}
}
}
impl crate::ToFormData for DescribeBinlogFiles {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DescribeBinlogFiles {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DescribeBinlogFiles";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DescribeBinlogFilesResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(5);
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
params.push(("EndTime".into(), (&self.end_time).into()));
if let Some(f) = &self.page_number {
params.push(("PageNumber".into(), (f).into()));
}
if let Some(f) = &self.page_size {
params.push(("PageSize".into(), (f).into()));
}
params.push(("StartTime".into(), (&self.start_time).into()));
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于查询RDS SQL Server实例的日志备份文件。
///
/// Argument of [Connection::describe_log_backup_files()], returns [DescribeLogBackupFilesResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DescribeLogBackupFiles {
/// 实例ID。可调用DescribeDBInstances获取。
db_instance_id: String,
/// 查询开始时间。格式:<i>yyyy-MM-dd</i>T<i>HH:mm</i>Z(UTC时间)。
start_time: String,
/// 查询结束时间,必须晚于查询开始时间。格式:<i>yyyy-MM-dd</i>T<i>HH:mm</i>Z(UTC时间)。
end_time: String,
/// 每页记录数,取值:**30**~**1000**。默认值:**30**。
#[setters(generate = true, strip_option)]
page_size: Option<i32>,
/// 页码,取值:大于0且不超过Integer的最大值。
///
/// 默认值:**1**。
#[setters(generate = true, strip_option)]
page_number: Option<i32>,
}
impl sealed::Bound for DescribeLogBackupFiles {}
impl DescribeLogBackupFiles {
pub fn new(
db_instance_id: impl Into<String>,
start_time: impl Into<String>,
end_time: impl Into<String>,
) -> Self {
Self {
db_instance_id: db_instance_id.into(),
start_time: start_time.into(),
end_time: end_time.into(),
page_size: None,
page_number: None,
}
}
}
impl crate::ToFormData for DescribeLogBackupFiles {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DescribeLogBackupFiles {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DescribeLogBackupFiles";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DescribeLogBackupFilesResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(5);
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
params.push(("EndTime".into(), (&self.end_time).into()));
if let Some(f) = &self.page_number {
params.push(("PageNumber".into(), (f).into()));
}
if let Some(f) = &self.page_size {
params.push(("PageSize".into(), (f).into()));
}
params.push(("StartTime".into(), (&self.start_time).into()));
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 查询备份集下的数据库列表。
///
/// Argument of [Connection::describe_backup_database()], returns [DescribeBackupDatabaseResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DescribeBackupDatabase {
/// 实例ID。
db_instance_id: String,
/// 备份集ID。
#[setters(generate = true, strip_option)]
backup_id: Option<String>,
}
impl sealed::Bound for DescribeBackupDatabase {}
impl DescribeBackupDatabase {
pub fn new(db_instance_id: impl Into<String>) -> Self {
Self {
db_instance_id: db_instance_id.into(),
backup_id: None,
}
}
}
impl crate::ToFormData for DescribeBackupDatabase {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DescribeBackupDatabase {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DescribeBackupDatabase";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DescribeBackupDatabaseResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(2);
if let Some(f) = &self.backup_id {
params.push(("BackupId".into(), (f).into()));
}
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于为RDS SQL Server 2008 R2高性能本地盘实例创建临时实例。
///
/// Argument of [Connection::create_temp_db_instance()], returns [CreateTempDBInstanceResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct CreateTempDBInstance {
/// 实例ID。
db_instance_id: String,
/// 备份集ID。可通过接口DescribeBackups查询。
/// >**BackupId**和**RestoreTime**两者至少传入一个。
#[setters(generate = true, strip_option)]
backup_id: Option<i64>,
/// 用户指定备份保留时间内的任意时间点。格式:<i>yyyy-MM-dd</i>T<i>HH:mm:ss</i>Z(UTC时间)。
///
/// > * 可以设置为7天之内并且早于当前时间半小时以上的任意时间点,默认时区为UTC。
/// > * **BackupId**和**RestoreTime**两者至少传入一个。
#[setters(generate = true, strip_option)]
restore_time: Option<String>,
/// 资源组ID。
#[setters(generate = true, strip_option)]
resource_group_id: Option<String>,
}
impl sealed::Bound for CreateTempDBInstance {}
impl CreateTempDBInstance {
pub fn new(db_instance_id: impl Into<String>) -> Self {
Self {
db_instance_id: db_instance_id.into(),
backup_id: None,
restore_time: None,
resource_group_id: None,
}
}
}
impl crate::ToFormData for CreateTempDBInstance {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for CreateTempDBInstance {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "CreateTempDBInstance";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<CreateTempDBInstanceResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(4);
if let Some(f) = &self.backup_id {
params.push(("BackupId".into(), (f).into()));
}
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
if let Some(f) = &self.resource_group_id {
params.push(("ResourceGroupId".into(), (f).into()));
}
if let Some(f) = &self.restore_time {
params.push(("RestoreTime".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于查询RDS实例备份可恢复的时间范围。
///
/// Argument of [Connection::describe_local_available_recovery_time()], returns [DescribeLocalAvailableRecoveryTimeResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DescribeLocalAvailableRecoveryTime {
/// 实例ID。
db_instance_id: String,
/// 地域ID。可调用DescribeRegions获取。
#[setters(generate = true, strip_option)]
region: Option<String>,
/// 资源组ID。
#[setters(generate = true, strip_option)]
resource_group_id: Option<String>,
}
impl sealed::Bound for DescribeLocalAvailableRecoveryTime {}
impl DescribeLocalAvailableRecoveryTime {
pub fn new(db_instance_id: impl Into<String>) -> Self {
Self {
db_instance_id: db_instance_id.into(),
region: None,
resource_group_id: None,
}
}
}
impl crate::ToFormData for DescribeLocalAvailableRecoveryTime {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DescribeLocalAvailableRecoveryTime {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DescribeLocalAvailableRecoveryTime";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DescribeLocalAvailableRecoveryTimeResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(3);
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
if let Some(f) = &self.region {
params.push(("Region".into(), (f).into()));
}
if let Some(f) = &self.resource_group_id {
params.push(("ResourceGroupId".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于查询目标备份集中可恢复的库表信息。
///
/// Argument of [Connection::describe_meta_list()], returns [DescribeMetaListResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DescribeMetaList {
/// 用于保证请求的幂等性,防止重复提交请求。由客户端生成该参数值,要保证在不同请求间唯一,最大值不超过64个ASCII字符,且该参数值中不能包含非ASCII字符。
#[setters(generate = true, strip_option)]
client_token: Option<String>,
/// 实例ID。可调用DescribeDBInstances获取。
db_instance_id: String,
/// 恢复方式,取值:
///
/// * **BackupSetID**:基于备份集恢复,您还需要传入参数**BackupSetID**。
/// * **RestoreTime**:基于时间点恢复,您还需要传入参数**RestoreTime**。
///
/// 默认值:**BackupSetID**
#[setters(generate = true, strip_option)]
restore_type: Option<ListRestoreType>,
/// 基于备份集查询时,使用的备份集的ID。可调用DescribeBackups获取。
/// > **RestoreType**为**BackupSetID**时必传。
#[setters(generate = true, strip_option)]
backup_set_id: Option<i64>,
/// 基于时间点查询时,使用的时间节点,需要早于当前时间。格式:<i>yyyy-MM-dd</i>T<i>HH:mm:ss</i>Z(UTC时间)。可调用DescribeBackups获取。
/// > **RestoreType**为**RestoreTime**时必传 。
#[setters(generate = true, strip_option)]
restore_time: Option<String>,
/// 要查询的数据库名。精确匹配,会返回具体的数据库名以及库内所有的表。
/// > 为空则返回包含所有数据库的列表。
#[setters(generate = true, strip_option)]
get_db_name: Option<String>,
/// 要查询的数据库名。模糊匹配,只返回匹配的数据库名,不返回表名。
/// > 例如传入`test`匹配`testdb1`和`testdb2`,确定目标数据库名称后再通过**GetDbName**参数传入精确的数据库名称查看目标库下所有表的信息。
#[setters(generate = true, strip_option)]
pattern: Option<String>,
/// 每页记录数。默认值:**1**。
/// > 需要和**PageIndex**一起传入才生效。
#[setters(generate = true, strip_option)]
page_size: Option<i32>,
/// 页码,取值:大于**0**且不超过Integer的最大值。默认值:**1**。
/// > 需要和**PageSize**一起传入才生效。
#[setters(generate = true, strip_option)]
page_index: Option<i32>,
/// 资源组ID。
#[setters(generate = true, strip_option)]
resource_group_id: Option<String>,
}
impl sealed::Bound for DescribeMetaList {}
impl DescribeMetaList {
pub fn new(db_instance_id: impl Into<String>) -> Self {
Self {
client_token: None,
db_instance_id: db_instance_id.into(),
restore_type: None,
backup_set_id: None,
restore_time: None,
get_db_name: None,
pattern: None,
page_size: None,
page_index: None,
resource_group_id: None,
}
}
}
impl crate::ToFormData for DescribeMetaList {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DescribeMetaList {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DescribeMetaList";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DescribeMetaListResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(10);
if let Some(f) = &self.backup_set_id {
params.push(("BackupSetID".into(), (f).into()));
}
if let Some(f) = &self.client_token {
params.push(("ClientToken".into(), (f).into()));
}
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
if let Some(f) = &self.get_db_name {
params.push(("GetDbName".into(), (f).into()));
}
if let Some(f) = &self.page_index {
params.push(("PageIndex".into(), (f).into()));
}
if let Some(f) = &self.page_size {
params.push(("PageSize".into(), (f).into()));
}
if let Some(f) = &self.pattern {
params.push(("Pattern".into(), (f).into()));
}
if let Some(f) = &self.resource_group_id {
params.push(("ResourceGroupId".into(), (f).into()));
}
if let Some(f) = &self.restore_time {
params.push(("RestoreTime".into(), (f).into()));
}
if let Some(f) = &self.restore_type {
params.push(("RestoreType".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于将RDS SQL Server备份数据恢复到已有实例或新实例上。
///
/// Argument of [Connection::recovery_db_instance()], returns [RecoveryDBInstanceResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct RecoveryDBInstance {
/// 新实例规格。详情请参见[实例规格](~~26312~~)。
#[setters(generate = true, strip_option)]
db_instance_class: Option<String>,
/// 新实例存储容量。单位:GB。详情请参见[实例规格](~~26312~~)。
///
/// > 新实例的磁盘空间不能小于原实例的磁盘空间。
#[setters(generate = true, strip_option)]
db_instance_storage: Option<i32>,
/// 新实例付费类型:
/// * **Postpaid**:后付费(按量付费)
/// * **Prepaid**:预付费(包年包月)
#[setters(generate = true, strip_option)]
pay_type: Option<String>,
/// 新实例网络类型:
/// * **Classic**:经典网络
/// * **VPC**:专有网络
///
/// 默认与原实例网络类型一致。
#[setters(generate = true, strip_option)]
instance_network_type: Option<String>,
/// 原实例ID。
///
/// > * 按备份集恢复(即指定BackupId参数)时,本参数不是必须项。
/// > * 按时间点恢复(即指定RestoreTime参数)时,本参数为必须项。
#[setters(generate = true, strip_option)]
db_instance_id: Option<String>,
/// 目标实例ID。
#[setters(generate = true, strip_option)]
target_db_instance_id: Option<String>,
/// 数据库名称,恢复数据至新实例时格式为:`原库名1,新库名2`。
///
/// > 如需恢复到已有实例,请参见[CopyDatabaseBetweenInstances](~~2628854~~)。
db_names: String,
/// 备份集ID,可通过查询备份列表接口DescribeBackups获取。
///
/// 指定此参数时,**DBInstanceId**参数为可选。
///
/// >**BackupId**和**RestoreTime**两者至少传入一个。
#[setters(generate = true, strip_option)]
backup_id: Option<String>,
/// 备份保留周期内的任意时间点。格式:<i>yyyy-MM-dd</i>T<i>HH:mm:ss</i>Z(UTC时间)。
///
/// 指定此参数时,**DBInstanceId**参数为必须。
///
/// >**BackupId**和**RestoreTime**两者至少传入一个。
#[setters(generate = true, strip_option)]
restore_time: Option<String>,
/// 新实例专有网络VPC ID。
#[setters(generate = true, strip_option)]
vpc_id: Option<String>,
/// 新实例虚拟交换机ID,多个值用半角逗号(,)隔开。
#[setters(generate = true, strip_option)]
v_switch_id: Option<String>,
/// 设置新实例的内网IP,需要在指定交换机的IP地址范围内。系统默认通过**VPCId**和**VSwitchId**自动分配。
#[setters(generate = true, strip_option)]
private_ip_address: Option<String>,
/// 指定新实例购买时长,取值:
/// * 当参数**Period**为**Year**时,**UsedTime**取值为**1~3**。
/// * 当参数**Period**为**Month**时,**UsedTime**取值为**1~9**。
///
/// > 若付费类型为**Prepaid**则该参数必须传入。
#[setters(generate = true, strip_option)]
used_time: Option<String>,
/// 指定新的预付费实例为包年或者包月类型,取值:
/// * **Year**:包年
/// * **Month**:包月
///
/// > 若参数**PayType**=**Prepaid**,该参数必须传入。
#[setters(generate = true, strip_option)]
period: Option<String>,
/// 新实例存储类型,取值:
/// * **local\_ssd/ephemeral\_ssd**:本地SSD盘
/// * **cloud_ssd**:SSD云盘
/// * **cloud_essd**:ESSD云盘
#[setters(generate = true, strip_option)]
db_instance_storage_type: Option<String>,
}
impl sealed::Bound for RecoveryDBInstance {}
impl RecoveryDBInstance {
pub fn new(db_names: impl Into<String>) -> Self {
Self {
db_instance_class: None,
db_instance_storage: None,
pay_type: None,
instance_network_type: None,
db_instance_id: None,
target_db_instance_id: None,
db_names: db_names.into(),
backup_id: None,
restore_time: None,
vpc_id: None,
v_switch_id: None,
private_ip_address: None,
used_time: None,
period: None,
db_instance_storage_type: None,
}
}
}
impl crate::ToFormData for RecoveryDBInstance {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for RecoveryDBInstance {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "RecoveryDBInstance";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<RecoveryDBInstanceResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(15);
if let Some(f) = &self.backup_id {
params.push(("BackupId".into(), (f).into()));
}
if let Some(f) = &self.db_instance_class {
params.push(("DBInstanceClass".into(), (f).into()));
}
if let Some(f) = &self.db_instance_id {
params.push(("DBInstanceId".into(), (f).into()));
}
if let Some(f) = &self.db_instance_storage {
params.push(("DBInstanceStorage".into(), (f).into()));
}
if let Some(f) = &self.db_instance_storage_type {
params.push(("DBInstanceStorageType".into(), (f).into()));
}
params.push(("DbNames".into(), (&self.db_names).into()));
if let Some(f) = &self.instance_network_type {
params.push(("InstanceNetworkType".into(), (f).into()));
}
if let Some(f) = &self.pay_type {
params.push(("PayType".into(), (f).into()));
}
if let Some(f) = &self.period {
params.push(("Period".into(), (f).into()));
}
if let Some(f) = &self.private_ip_address {
params.push(("PrivateIpAddress".into(), (f).into()));
}
if let Some(f) = &self.restore_time {
params.push(("RestoreTime".into(), (f).into()));
}
if let Some(f) = &self.target_db_instance_id {
params.push(("TargetDBInstanceId".into(), (f).into()));
}
if let Some(f) = &self.used_time {
params.push(("UsedTime".into(), (f).into()));
}
if let Some(f) = &self.vpc_id {
params.push(("VPCId".into(), (f).into()));
}
if let Some(f) = &self.v_switch_id {
params.push(("VSwitchId".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于将历史数据恢复至一个新实例(称为克隆实例)。
///
/// Argument of [Connection::clone_db_instance()], returns [CloneDBInstanceResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct CloneDBInstance {
/// 用于保证请求的幂等性,防止重复提交请求。由客户端生成该参数值,要保证在不同请求间唯一,最大值不超过64个ASCII字符,且该参数值中不能包含非ASCII字符。
#[setters(generate = true, strip_option)]
client_token: Option<String>,
/// 地域ID。可以通过接口DescribeRegions查看地域ID。
#[setters(generate = true, strip_option)]
region_id: Option<String>,
/// 主可用区ID。可以通过接口DescribeRegions查看可用区ID。
///
/// >默认为源实例的可用区。
#[setters(generate = true, strip_option)]
zone_id: Option<String>,
/// 实例规格,详见[实例规格表](~~26312~~)。
///
/// >默认规格和主实例一致。
#[setters(generate = true, strip_option)]
db_instance_class: Option<String>,
/// 实例存储空间,单位:GB。每5GB进行递增,详见[实例规格表](~~26312~~)。
/// >默认存储空间和主实例一致。
#[setters(generate = true, strip_option)]
db_instance_storage: Option<i32>,
/// 实例名称。长度为2~255个字符。以中文、英文字母开头,可以包含数字、中文、英文、下划线(_)、短横线(-)。
/// >不能以 http:// 和 https:// 开头。
#[setters(generate = true, strip_option)]
db_instance_description: Option<String>,
/// 数据库名称,格式如下:`原库名1,原库名2`。
#[setters(generate = true, strip_option)]
db_names: Option<String>,
/// 付费类型,取值:
/// * **Postpaid**:后付费(按量付费)
/// * **Prepaid**:预付费(包年包月)
/// * **Serverless**:Serverless付费类型,不支持MariaDB实例。更多信息,请参见[MySQL Serverless实例简介](~~411291~~)、[SQL Server Serverless实例简介](~~604344~~)、[PostgreSQL Serverless实例简介](~~607742~~)。
pay_type: String,
/// 实例的网络类型,取值:
/// * **VPC**:专有网络
/// * **Classic**:经典网络
///
/// >默认网络类型和主实例一致。
#[setters(generate = true, strip_option)]
instance_network_type: Option<String>,
/// 实例ID。
db_instance_id: String,
/// 备份集ID。
///
/// 您可以通过DescribeBackups接口获取备份列表。
///
/// >**BackupId**和**RestoreTime**两者至少传入一个。
#[setters(generate = true, strip_option)]
backup_id: Option<String>,
/// 备份保留周期内的任意时间点。格式:<i>yyyy-MM-dd</i>T<i>HH:mm:ss</i>Z(UTC时间)。
///
/// >**BackupId**和**RestoreTime**两者至少传入一个。
#[setters(generate = true, strip_option)]
restore_time: Option<String>,
/// 专有网络VPC ID。
/// >请确保VPC属于对应的地域。
#[setters(generate = true, strip_option)]
vpc_id: Option<String>,
/// 虚拟交换机ID。虚拟交换机所在的可用区必须和**ZoneId**中传入的可用区ID相对应。
///
/// - 网络类型**InstanceNetworkType**需为**VPC**。
/// - 若您填写了**ZoneSlaveId1**(备可用区ID),此处需填写两个交换机ID,并使用半角逗号(,)隔开。
#[setters(generate = true, strip_option)]
v_switch_id: Option<String>,
/// 新实例的内网IP,需要在指定交换机的IP地址范围内。系统默认通过**VPCId**和**VSwitchId**自动分配。
#[setters(generate = true, strip_option)]
private_ip_address: Option<String>,
/// 购买时长,取值:
/// * 当参数**Period**为**Year**时,UsedTime取值为**1~3**。
/// * 当参数**Period**为**Month**时,UsedTime取值为**1~9**。
///
/// > 若付费类型为**Prepaid**则该参数必须传入。
#[setters(generate = true, strip_option)]
used_time: Option<i32>,
/// 预付费实例为包年或者包月类型,取值:
/// * **Year**:包年
/// * **Month**:包月
///
/// > 若付费类型为**Prepaid**则该参数必须传入。
#[setters(generate = true, strip_option)]
period: Option<CloneDBInstancePeriod>,
/// 实例系列,取值:
///
/// - **Basic**:基础系列
/// - **HighAvailability**:高可用系列
/// - **AlwaysOn**:集群系列(SQL Server)
/// - **cluster**:集群系列(MySQL)
/// - **Finance**:金融版(仅中国站支持)
///
/// **Serverless实例**
/// - **serverless_basic**:Serverless基础系列(仅适用MySQL和PostgreSQL)
/// - **serverless_standard**:MySQL Serverless高可用系列
/// - **serverless_ha**:SQL Server Serverless高可用系列
/// > 该参数不需要传递,克隆时会保持和源实例相同。
#[setters(generate = true, strip_option)]
category: Option<String>,
/// 备节点可用区ID。如果和**ZoneId**相同,则为单可用区部署;如果和**ZoneId**不同,则为多可用区部署。
#[setters(generate = true, strip_option)]
zone_id_slave1: Option<String>,
/// <props="intl">日志节点可用区ID。如果和**ZoneId**相同,则为单可用区部署;如果和**ZoneId**不同,则为多可用区部署。</props>
///
/// <props="china">备节点或日志节点可用区ID。如果和**ZoneId**相同,则为单可用区部署;如果和**ZoneId**不同,则为多可用区部署。</props>
#[setters(generate = true, strip_option)]
zone_id_slave2: Option<String>,
/// 实例存储类型,取值:
///
/// * **general_essd**:高性能云盘(推荐)
/// * **local_ssd**:高性能本地盘
/// * **cloud_ssd**:SSD云盘
/// * **cloud_essd**:ESSD PL1云盘
/// * **cloud_essd2**:ESSD PL2云盘
/// * **cloud_essd3**:ESSD PL3云盘
///
/// > Serverless实例仅支持ESSD PL1云盘和高性能云盘。
#[setters(generate = true, strip_option)]
db_instance_storage_type: Option<String>,
/// 是否进行库表恢复,取值为**1**时表示进行库表恢复,否则不填。
#[setters(generate = true, strip_option)]
restore_table: Option<String>,
/// 进行库表恢复时,指定恢复的库表信息。格式:
/// ```ignore
#[setters(generate = true, strip_option)]
table_meta: Option<String>,
/// 专属集群ID。
#[setters(generate = true, strip_option)]
dedicated_host_group_id: Option<String>,
/// 备份类型,取值:
///
/// * **FullBackup**:全量备份
/// * **IncrementalBackup**:增量备份
#[setters(generate = true, strip_option)]
backup_type: Option<String>,
/// 是否开启释放保护功能。取值:
/// * **true**:开启
/// * **false**(默认):关闭
#[setters(generate = true, strip_option)]
deletion_protection: Option<bool>,
/// Serverless选项。仅在需要将数据克隆至Serverless实例时传入。
///
/// > 该参数仅支持中国站。
#[setters(generate = true, strip_option)]
serverless_config: Option<CloneDBInstanceServerlessConfig>,
/// 弃用参数,无需配置。
#[setters(generate = true, strip_option)]
bpe_enabled: Option<String>,
/// 高性能云盘的Buffer Pool Extension(BPE)功能开关,取值:
///
/// - **1**:开启
/// - **0**:不开启
///
/// > Buffer Pool Extension(BPE)功能的更多信息,请参见[Buffer Pool Extension(BPE)](~~2527067~~)。
#[setters(generate = true, strip_option)]
io_acceleration_enabled: Option<String>,
/// 高性能云盘的IO性能突发功能开关。
/// * **true**:开启
/// * **false**:关闭
/// > 了解IO性能突发功能的更多信息,请参见[什么是高性能云盘](~~2340501~~)。
#[setters(generate = true, strip_option)]
bursting_enabled: Option<bool>,
/// 是否自动支付。
/// 取值范围:
///
/// 1. **true**:自动支付。您需要确保账户余额充足。
///
/// 1. **false**:只生成订单不扣费。
///
///
///
///
/// > 默认值为true。如果您的支付方式余额不足,可以将参数AutoPay设置为false,此时会生成未支付订单,您可以登录RDS管理控制台自行支付。
/// >
#[setters(generate = true, strip_option)]
auto_pay: Option<bool>,
#[setters(generate = true, strip_option)]
custom_extra_info: Option<String>,
}
impl sealed::Bound for CloneDBInstance {}
impl CloneDBInstance {
pub fn new(pay_type: impl Into<String>, db_instance_id: impl Into<String>) -> Self {
Self {
client_token: None,
region_id: None,
zone_id: None,
db_instance_class: None,
db_instance_storage: None,
db_instance_description: None,
db_names: None,
pay_type: pay_type.into(),
instance_network_type: None,
db_instance_id: db_instance_id.into(),
backup_id: None,
restore_time: None,
vpc_id: None,
v_switch_id: None,
private_ip_address: None,
used_time: None,
period: None,
category: None,
zone_id_slave1: None,
zone_id_slave2: None,
db_instance_storage_type: None,
restore_table: None,
table_meta: None,
dedicated_host_group_id: None,
backup_type: None,
deletion_protection: None,
serverless_config: None,
bpe_enabled: None,
io_acceleration_enabled: None,
bursting_enabled: None,
auto_pay: None,
custom_extra_info: None,
}
}
}
impl crate::ToFormData for CloneDBInstance {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for CloneDBInstance {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "CloneDBInstance";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<CloneDBInstanceResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(32);
if let Some(f) = &self.auto_pay {
params.push(("AutoPay".into(), (f).into()));
}
if let Some(f) = &self.backup_id {
params.push(("BackupId".into(), (f).into()));
}
if let Some(f) = &self.backup_type {
params.push(("BackupType".into(), (f).into()));
}
if let Some(f) = &self.bpe_enabled {
params.push(("BpeEnabled".into(), (f).into()));
}
if let Some(f) = &self.bursting_enabled {
params.push(("BurstingEnabled".into(), (f).into()));
}
if let Some(f) = &self.category {
params.push(("Category".into(), (f).into()));
}
if let Some(f) = &self.client_token {
params.push(("ClientToken".into(), (f).into()));
}
if let Some(f) = &self.custom_extra_info {
params.push(("CustomExtraInfo".into(), (f).into()));
}
if let Some(f) = &self.db_instance_class {
params.push(("DBInstanceClass".into(), (f).into()));
}
if let Some(f) = &self.db_instance_description {
params.push(("DBInstanceDescription".into(), (f).into()));
}
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
if let Some(f) = &self.db_instance_storage {
params.push(("DBInstanceStorage".into(), (f).into()));
}
if let Some(f) = &self.db_instance_storage_type {
params.push(("DBInstanceStorageType".into(), (f).into()));
}
if let Some(f) = &self.db_names {
params.push(("DbNames".into(), (f).into()));
}
if let Some(f) = &self.dedicated_host_group_id {
params.push(("DedicatedHostGroupId".into(), (f).into()));
}
if let Some(f) = &self.deletion_protection {
params.push(("DeletionProtection".into(), (f).into()));
}
if let Some(f) = &self.instance_network_type {
params.push(("InstanceNetworkType".into(), (f).into()));
}
if let Some(f) = &self.io_acceleration_enabled {
params.push(("IoAccelerationEnabled".into(), (f).into()));
}
params.push(("PayType".into(), (&self.pay_type).into()));
if let Some(f) = &self.period {
params.push(("Period".into(), (f).into()));
}
if let Some(f) = &self.private_ip_address {
params.push(("PrivateIpAddress".into(), (f).into()));
}
if let Some(f) = &self.region_id {
params.push(("RegionId".into(), (f).into()));
}
if let Some(f) = &self.restore_table {
params.push(("RestoreTable".into(), (f).into()));
}
if let Some(f) = &self.restore_time {
params.push(("RestoreTime".into(), (f).into()));
}
if let Some(f) = &self.serverless_config {
if let Ok(json) = serde_json::to_string(f) {
params.push(("ServerlessConfig".into(), json.into()));
}
}
if let Some(f) = &self.table_meta {
params.push(("TableMeta".into(), (f).into()));
}
if let Some(f) = &self.used_time {
params.push(("UsedTime".into(), (f).into()));
}
if let Some(f) = &self.vpc_id {
params.push(("VPCId".into(), (f).into()));
}
if let Some(f) = &self.v_switch_id {
params.push(("VSwitchId".into(), (f).into()));
}
if let Some(f) = &self.zone_id {
params.push(("ZoneId".into(), (f).into()));
}
if let Some(f) = &self.zone_id_slave1 {
params.push(("ZoneIdSlave1".into(), (f).into()));
}
if let Some(f) = &self.zone_id_slave2 {
params.push(("ZoneIdSlave2".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口拥有恢复RDS实例的某些数据库或表到原实例。
///
/// Argument of [Connection::restore_table()], returns [RestoreTableResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct RestoreTable {
/// 用于保证请求的幂等性,防止重复提交请求。由客户端生成该参数值,要保证在不同请求间唯一,最大值不超过64个ASCII字符,且该参数值中不能包含非ASCII字符。
#[setters(generate = true, strip_option)]
client_token: Option<String>,
/// 实例ID。
db_instance_id: String,
/// 备份集ID。您可以通过DescribeBackups接口获取备份集列表。
///
/// >**BackupId**和**RestoreTime**两者至少传入一个。
#[setters(generate = true, strip_option)]
backup_id: Option<String>,
/// 备份保留周期内的任意时间点。格式:<i>yyyy-MM-dd</i>T<i>HH:mm:ss</i>Z(UTC时间)。
///
/// > * **BackupId**和**RestoreTime**两者至少传入一个。
/// > * 实例必须已开启[日志备份](~~98818~~)。
#[setters(generate = true, strip_option)]
restore_time: Option<String>,
/// 指定恢复的库表。
/// > RDS PostgreSQL仅支持恢复指定数据库,不支持恢复指定表。
///
/// - RDS MySQL格式:```[{"type":"db","name":"<数据库1名称>","newname":"<新数据库1名称>","tables":[{"type":"table","name":"<数据库1内的表1名称>","newname":"<新的表1名称>"},{"type":"table","name":"<数据库1内的表2名称>","newname":"<新的表2名称>"}]},{"type":"db","name":"<数据库2名称>","newname":"<新数据库2名称>","tables":[{"type":"table","name":"<数据库2内的表3名称>","newname":"<新的表3名称>"},{"type":"table","name":"<数据库2内的表4名称>","newname":"<新的表4名称>"}]}]```
///
/// - RDS PostgreSQL格式:```[{"type":"db","name":"<数据库1名称>","newname":"<新数据库1名称>"}]```
table_meta: String,
/// 是否开启极速库表恢复。取值:
/// * **true**:开启
/// * **false**:关闭
///
/// >关于极速库表恢复的更多信息,请参见[恢复库表](~~103175~~)。
#[setters(generate = true, strip_option)]
instant_recovery: Option<bool>,
}
impl sealed::Bound for RestoreTable {}
impl RestoreTable {
pub fn new(db_instance_id: impl Into<String>, table_meta: impl Into<String>) -> Self {
Self {
client_token: None,
db_instance_id: db_instance_id.into(),
backup_id: None,
restore_time: None,
table_meta: table_meta.into(),
instant_recovery: None,
}
}
}
impl crate::ToFormData for RestoreTable {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for RestoreTable {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "RestoreTable";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<RestoreTableResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(6);
if let Some(f) = &self.backup_id {
params.push(("BackupId".into(), (f).into()));
}
if let Some(f) = &self.client_token {
params.push(("ClientToken".into(), (f).into()));
}
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
if let Some(f) = &self.instant_recovery {
params.push(("InstantRecovery".into(), (f).into()));
}
if let Some(f) = &self.restore_time {
params.push(("RestoreTime".into(), (f).into()));
}
params.push(("TableMeta".into(), (&self.table_meta).into()));
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于跨地域恢复数据到新实例。
///
/// Argument of [Connection::create_ddr_instance()], returns [CreateDdrInstanceResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct CreateDdrInstance {
/// 目标地域ID,可以通过接口DescribeRegions查看地域ID。
region_id: String,
/// 目标数据库类型,取值:
/// * **MySQL**
/// * **SQLServer**
/// * **PostgreSQL**
engine: String,
/// 目标数据库版本。根据**Engine**参数取值的不同,本参数取值如下:
/// - MySQL:**5.5/5.6/5.7/8.0**
/// - SQL Server:**2008r2(高性能本地盘,已停售)/08r2_ent_ha(云盘版,已停售)/2012/2012_ent_ha/2012_std_ha/2012_web/2014_std_ha/2016_ent_ha/2016_std_ha/2016_web/2017_std_ha/2017_ent/2019_std_ha/2019_ent**
/// - PostgreSQL:**10.0/11.0/12.0/13.0/14.0/15.0**
///
/// > SQL Server实例中`_ent`表示企业集群版、`_ent_ha`表示企业版、`_std_ha`表示标准版、`_web`表示Web版。
engine_version: String,
/// 目标实例规格,详见[实例规格表](~~26312~~)。
#[setters(generate = true, strip_option)]
db_instance_class: Option<String>,
/// 目标实例存储空间,取值:**5~2000**。
/// 每5 GB进行递增,单位:GB。详见[实例规格表](~~26312~~)。
#[setters(generate = true, strip_option)]
db_instance_storage: Option<i32>,
/// 目标实例的字符集,取值:
/// * **utf8**
/// * **gbk**
/// * **latin1**
/// * **utf8mb4**
#[setters(generate = true, strip_option)]
system_db_charset: Option<String>,
/// 目标实例的网络连接类型,取值:
/// * **Internet**:公网连接
/// * **Intranet**:内网连接
db_instance_net_type: String,
/// 目标实例名称,长度为2~256个字符。以中文、英文字母开头,可以包含数字、中文、英文、下划线(_)、短横线(-)。
/// >不能以`http://`和`https://`开头。
#[setters(generate = true, strip_option)]
db_instance_description: Option<String>,
/// 目标实例的[IP白名单](~~43185~~),多个IP地址请以半角逗号(,)隔开,不可重复,最多1000个。支持如下两种格式:
/// * IP地址形式,例如:10.23.12.24。
/// * CIDR形式,例如:10.23.12.24/24(无类域间路由,24表示了地址中前缀的长度,范围为1~32)。
security_ip_list: String,
/// 用于保证请求的幂等性,防止重复提交请求。由客户端生成该参数值,要保证在不同请求间唯一,最大值不超过64个ASCII字符,且该参数值中不能包含非ASCII字符。
#[setters(generate = true, strip_option)]
client_token: Option<String>,
/// 目标实例的付费类型,取值:
/// * **Postpaid**:后付费(按量付费)
/// * **Prepaid**:预付费(包年包月)
pay_type: String,
/// 目标实例的可用区ID。多可用区用英文冒号(:)分隔。
///
/// > 指定了VPC和交换机时,为匹配交换机对应的可用区,该参数必填。
#[setters(generate = true, strip_option)]
zone_id: Option<String>,
/// 目标实例的网络类型,取值:
///
/// * **VPC**:VPC网络
/// * **Classic**:经典网络(已下线)
///
/// >选择**VPC**时,还需要传入参数**VpcId**、**VSwitchId**。
#[setters(generate = true, strip_option)]
instance_network_type: Option<String>,
/// 目标实例的访问模式,取值:
///
/// - **Standard**(默认值):标准访问模式
/// - **Safe**:数据库代理模式
#[setters(generate = true, strip_option)]
connection_mode: Option<String>,
/// 目标实例的VPC ID。
///
/// > - 当**InstanceNetworkType**=**VPC**时,本参数必填。
/// > - 传入此参数后,后续还需传入参数**ZoneId**。
#[setters(generate = true, strip_option)]
vpc_id: Option<String>,
/// 目标实例的虚拟交换机ID,多个值用半角逗号(,)隔开。
///
/// > - 当**InstanceNetworkType**=**VPC**时,本参数必填。
/// > - 传入此参数后,后续还需传入参数**ZoneId**。
#[setters(generate = true, strip_option)]
v_switch_id: Option<String>,
/// 设置目标实例的内网IP,需要在指定交换机的IP地址范围内。系统默认通过**VPCId**和**VSwitchId**自动分配。
#[setters(generate = true, strip_option)]
private_ip_address: Option<String>,
/// 指定购买时长,取值:
/// * 当参数**Period**为**Year**时,UsedTime取值为**1~3**。
/// * 当参数**Period**为**Month**时,UsedTime取值为**1~9**。
///
/// > 若付费类型为**Prepaid**,本参数必填。
#[setters(generate = true, strip_option)]
used_time: Option<String>,
/// 指定预付费目标实例为包年或者包月类型,取值:
/// * **Year**:包年
/// * **Month**:包月
///
/// > 若付费类型为**Prepaid**,本参数必填。
#[setters(generate = true, strip_option)]
period: Option<String>,
/// 资源组ID。
#[setters(generate = true, strip_option)]
resource_group_id: Option<String>,
/// 恢复方式,取值:
///
/// - **BackupSet**:基于备份集恢复,恢复备份集内的数据到新实例。您还需要传入参数**BackupSetId**。
/// - **BackupTime**:基于时间点恢复,恢复日志备份保留时间内的任意时间点的数据。您还需要传入参数**RestoreTime**、**SourceRegion**、**SourceDBInstanceName**。
restore_type: InstanceRestoreType,
/// 基于备份集恢复时,使用的备份集的ID。可以通过接口DescribeCrossRegionBackups查看备份集ID。
/// >**RestoreType**=**BackupSet**时,本参数必填。
#[setters(generate = true, strip_option)]
backup_set_id: Option<String>,
/// 备份集所在地域。
#[setters(generate = true, strip_option)]
backup_set_region: Option<String>,
/// 基于时间点恢复时,要恢复的时间节点,需要早于当前时间。格式:<i>yyyy-MM-dd</i>T<i>HH:mm:ss</i>Z(UTC时间)。
/// >**RestoreType**=**BackupTime**时,本参数必填。
#[setters(generate = true, strip_option)]
restore_time: Option<String>,
/// 基于时间点恢复时,源地域的ID。
/// >**RestoreType**=**BackupTime**时,本参数必填。
#[setters(generate = true, strip_option)]
source_region: Option<String>,
/// 基于时间点恢复时,源实例的ID。
/// >**RestoreType**=**BackupTime**时,本参数必填。
#[setters(generate = true, strip_option)]
source_db_instance_name: Option<String>,
/// 目标实例存储类型,取值:
/// > 建议和源实例的存储类型保持一致。
/// <details>
/// <summary>RDS MySQL</summary>
///
/// - local_ssd:高性能本地盘(默认值)
/// - cloud_essd:ESSD PL1云盘
/// - cloud_essd2:ESSD PL2云盘
/// - cloud_essd3:ESSD PL3云盘
/// - cloud_ssd:SSD云盘(已停止售卖)
/// </details>
///
/// <details>
/// <summary>RDS SQL Server</summary>
///
/// - cloud_essd:ESSD PL1云盘
/// - cloud_essd2:ESSD PL2云盘
/// - cloud_essd3:ESSD PL3云盘
/// - local_ssd:高性能本地盘(已停止售卖)
/// - cloud_ssd:SSD云盘(已停止售卖)
///
/// </details>
///
/// <details>
/// <summary>RDS PostgreSQL</summary>
///
/// - cloud_essd:ESSD PL1云盘
/// - cloud_essd2:ESSD PL2云盘
/// - cloud_essd3:ESSD PL3云盘
/// - local_ssd:高性能本地盘(已停止售卖)
/// - cloud_ssd:SSD云盘(已停止售卖)
///
/// </details>
#[setters(generate = true, strip_option)]
db_instance_storage_type: Option<String>,
/// **SQL Server实例**主账号授权RDS云服务账号访问KMS权限的全局资源描述符(ARN)。您可以通过[CheckCloudResourceAuthorized](~~2628797~~)接口查看ARN信息。
#[setters(generate = true, strip_option)]
role_arn: Option<String>,
/// **SQL Server实例**用户自定义云盘加密的密钥ID。传入此参数表示开启云盘加密(开启后无法关闭),并且需要传入**RoleARN**。
/// 您可以在密钥管理服务控制台查看密钥ID,也可以[创建新的密钥](~~181610~~)。
///
/// > 您也可不传此参数,仅需要传入**RoleARN**,表示设置实例的云盘加密类型为RDS托管的服务密钥(Default Service CMK)。
#[setters(generate = true, strip_option)]
encryption_key: Option<String>,
}
impl sealed::Bound for CreateDdrInstance {}
impl CreateDdrInstance {
pub fn new(
region_id: impl Into<String>,
engine: impl Into<String>,
engine_version: impl Into<String>,
db_instance_net_type: impl Into<String>,
security_ip_list: impl Into<String>,
pay_type: impl Into<String>,
restore_type: impl Into<InstanceRestoreType>,
) -> Self {
Self {
region_id: region_id.into(),
engine: engine.into(),
engine_version: engine_version.into(),
db_instance_class: None,
db_instance_storage: None,
system_db_charset: None,
db_instance_net_type: db_instance_net_type.into(),
db_instance_description: None,
security_ip_list: security_ip_list.into(),
client_token: None,
pay_type: pay_type.into(),
zone_id: None,
instance_network_type: None,
connection_mode: None,
vpc_id: None,
v_switch_id: None,
private_ip_address: None,
used_time: None,
period: None,
resource_group_id: None,
restore_type: restore_type.into(),
backup_set_id: None,
backup_set_region: None,
restore_time: None,
source_region: None,
source_db_instance_name: None,
db_instance_storage_type: None,
role_arn: None,
encryption_key: None,
}
}
}
impl crate::ToFormData for CreateDdrInstance {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for CreateDdrInstance {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "CreateDdrInstance";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<CreateDdrInstanceResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(29);
if let Some(f) = &self.backup_set_id {
params.push(("BackupSetId".into(), (f).into()));
}
if let Some(f) = &self.backup_set_region {
params.push(("BackupSetRegion".into(), (f).into()));
}
if let Some(f) = &self.client_token {
params.push(("ClientToken".into(), (f).into()));
}
if let Some(f) = &self.connection_mode {
params.push(("ConnectionMode".into(), (f).into()));
}
if let Some(f) = &self.db_instance_class {
params.push(("DBInstanceClass".into(), (f).into()));
}
if let Some(f) = &self.db_instance_description {
params.push(("DBInstanceDescription".into(), (f).into()));
}
params.push((
"DBInstanceNetType".into(),
(&self.db_instance_net_type).into(),
));
if let Some(f) = &self.db_instance_storage {
params.push(("DBInstanceStorage".into(), (f).into()));
}
if let Some(f) = &self.db_instance_storage_type {
params.push(("DBInstanceStorageType".into(), (f).into()));
}
if let Some(f) = &self.encryption_key {
params.push(("EncryptionKey".into(), (f).into()));
}
params.push(("Engine".into(), (&self.engine).into()));
params.push(("EngineVersion".into(), (&self.engine_version).into()));
if let Some(f) = &self.instance_network_type {
params.push(("InstanceNetworkType".into(), (f).into()));
}
params.push(("PayType".into(), (&self.pay_type).into()));
if let Some(f) = &self.period {
params.push(("Period".into(), (f).into()));
}
if let Some(f) = &self.private_ip_address {
params.push(("PrivateIpAddress".into(), (f).into()));
}
params.push(("RegionId".into(), (&self.region_id).into()));
if let Some(f) = &self.resource_group_id {
params.push(("ResourceGroupId".into(), (f).into()));
}
if let Some(f) = &self.restore_time {
params.push(("RestoreTime".into(), (f).into()));
}
params.push(("RestoreType".into(), (&self.restore_type).into()));
if let Some(f) = &self.role_arn {
params.push(("RoleARN".into(), (f).into()));
}
params.push(("SecurityIPList".into(), (&self.security_ip_list).into()));
if let Some(f) = &self.source_db_instance_name {
params.push(("SourceDBInstanceName".into(), (f).into()));
}
if let Some(f) = &self.source_region {
params.push(("SourceRegion".into(), (f).into()));
}
if let Some(f) = &self.system_db_charset {
params.push(("SystemDBCharset".into(), (f).into()));
}
if let Some(f) = &self.used_time {
params.push(("UsedTime".into(), (f).into()));
}
if let Some(f) = &self.vpc_id {
params.push(("VPCId".into(), (f).into()));
}
if let Some(f) = &self.v_switch_id {
params.push(("VSwitchId".into(), (f).into()));
}
if let Some(f) = &self.zone_id {
params.push(("ZoneId".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于修改RDS跨地域备份设置。
///
/// Argument of [Connection::modify_instance_cross_backup_policy()], returns [ModifyInstanceCrossBackupPolicyResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct ModifyInstanceCrossBackupPolicy {
/// 实例ID。
db_instance_id: String,
/// 源实例地域ID,可以通过接口DescribeRegions查看地域ID。
region_id: String,
/// 跨地域备份保存类型。当前唯一取值:**1**,表示每个备份都保存。
#[setters(generate = true, strip_option)]
cross_backup_type: Option<String>,
/// 跨地域日志备份开关,取值:
/// * **0**:关闭
/// * **1**:开启
///
/// >跨地域备份总开关开启时,才能设置日志开关。
#[setters(generate = true, strip_option)]
log_backup_enabled: Option<String>,
/// 跨地域备份总开关(数据备份+日志备份),取值:
/// * **0**:关闭
/// * **1**:开启
///
/// >开启跨地域备份时,必须传入目的地域ID。
#[setters(generate = true, strip_option)]
backup_enabled: Option<String>,
/// 跨地域备份的目的地域ID。
#[setters(generate = true, strip_option)]
cross_backup_region: Option<String>,
/// 跨地域备份保留方式。当前唯一取值:**1**,表示按时长保留。
#[setters(generate = true, strip_option)]
retent_type: Option<i32>,
/// 跨地域备份保留天数,取值:**7~1825**。
#[setters(generate = true, strip_option)]
retention: Option<i32>,
}
impl sealed::Bound for ModifyInstanceCrossBackupPolicy {}
impl ModifyInstanceCrossBackupPolicy {
pub fn new(db_instance_id: impl Into<String>, region_id: impl Into<String>) -> Self {
Self {
db_instance_id: db_instance_id.into(),
region_id: region_id.into(),
cross_backup_type: None,
log_backup_enabled: None,
backup_enabled: None,
cross_backup_region: None,
retent_type: None,
retention: None,
}
}
}
impl crate::ToFormData for ModifyInstanceCrossBackupPolicy {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for ModifyInstanceCrossBackupPolicy {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "ModifyInstanceCrossBackupPolicy";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<ModifyInstanceCrossBackupPolicyResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(8);
if let Some(f) = &self.backup_enabled {
params.push(("BackupEnabled".into(), (f).into()));
}
if let Some(f) = &self.cross_backup_region {
params.push(("CrossBackupRegion".into(), (f).into()));
}
if let Some(f) = &self.cross_backup_type {
params.push(("CrossBackupType".into(), (f).into()));
}
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
if let Some(f) = &self.log_backup_enabled {
params.push(("LogBackupEnabled".into(), (f).into()));
}
params.push(("RegionId".into(), (&self.region_id).into()));
if let Some(f) = &self.retent_type {
params.push(("RetentType".into(), (f).into()));
}
if let Some(f) = &self.retention {
params.push(("Retention".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于查询跨地域备份设置。
///
/// Argument of [Connection::describe_instance_cross_backup_policy()], returns [DescribeInstanceCrossBackupPolicyResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DescribeInstanceCrossBackupPolicy {
/// 实例ID。
db_instance_id: String,
/// 地域ID,可以通过接口DescribeRegions查看地域ID。
region_id: String,
}
impl sealed::Bound for DescribeInstanceCrossBackupPolicy {}
impl DescribeInstanceCrossBackupPolicy {
pub fn new(db_instance_id: impl Into<String>, region_id: impl Into<String>) -> Self {
Self {
db_instance_id: db_instance_id.into(),
region_id: region_id.into(),
}
}
}
impl crate::ToFormData for DescribeInstanceCrossBackupPolicy {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DescribeInstanceCrossBackupPolicy {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DescribeInstanceCrossBackupPolicy";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DescribeInstanceCrossBackupPolicyResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(2);
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
params.push(("RegionId".into(), (&self.region_id).into()));
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于查询RDS实例跨地域备份的库表信息。
///
/// Argument of [Connection::describe_cross_backup_meta_list()], returns [DescribeCrossBackupMetaListResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DescribeCrossBackupMetaList {
/// 跨地域备份集ID。可以通过接口DescribeCrossRegionBackups查询。
backup_set_id: String,
/// 要查询的数据库名。精确匹配,会返回具体的数据库名以及库内的表名。
#[setters(generate = true, strip_option)]
get_db_name: Option<String>,
/// 要查询的数据库名。模糊匹配,只返回匹配的数据库名,不返回表名。
/// >您可以先模糊匹配,例如传入test匹配testdb1和testdb2,确定目标数据库名称后再精确匹配,通过传入**GetDbName**查看具体的数据库名和表名。
#[setters(generate = true, strip_option)]
pattern: Option<String>,
/// 每页记录数。默认值:**1**。
/// >需要和**PageIndex**一起传入才生效。
#[setters(generate = true, strip_option)]
page_size: Option<String>,
/// 页码,取值:大于0且不超过Integer的最大值。
/// >需要和**PageSize**一起传入才生效。
#[setters(generate = true, strip_option)]
page_index: Option<String>,
/// 实例所在地域。
#[setters(generate = true, strip_option)]
region: Option<String>,
/// 资源组ID。
#[setters(generate = true, strip_option)]
resource_group_id: Option<String>,
}
impl sealed::Bound for DescribeCrossBackupMetaList {}
impl DescribeCrossBackupMetaList {
pub fn new(backup_set_id: impl Into<String>) -> Self {
Self {
backup_set_id: backup_set_id.into(),
get_db_name: None,
pattern: None,
page_size: None,
page_index: None,
region: None,
resource_group_id: None,
}
}
}
impl crate::ToFormData for DescribeCrossBackupMetaList {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DescribeCrossBackupMetaList {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DescribeCrossBackupMetaList";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DescribeCrossBackupMetaListResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(7);
params.push(("BackupSetId".into(), (&self.backup_set_id).into()));
if let Some(f) = &self.get_db_name {
params.push(("GetDbName".into(), (f).into()));
}
if let Some(f) = &self.page_index {
params.push(("PageIndex".into(), (f).into()));
}
if let Some(f) = &self.page_size {
params.push(("PageSize".into(), (f).into()));
}
if let Some(f) = &self.pattern {
params.push(("Pattern".into(), (f).into()));
}
if let Some(f) = &self.region {
params.push(("Region".into(), (f).into()));
}
if let Some(f) = &self.resource_group_id {
params.push(("ResourceGroupId".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于查询某RDS实例跨地域数据备份文件列表。
///
/// Argument of [Connection::describe_cross_region_backups()], returns [DescribeCrossRegionBackupsResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DescribeCrossRegionBackups {
/// 实例ID。
db_instance_id: String,
/// 实例所在地域ID。
region_id: String,
/// 跨地域备份目的地域ID。
#[setters(generate = true, strip_option)]
cross_backup_region: Option<String>,
/// 跨地域备份文件ID。
/// >**CrossBackupId**和起止时间参数(**StartTime**、**EndTime**)必须传入其中一组。
#[setters(generate = true, strip_option)]
cross_backup_id: Option<i32>,
/// 查询开始时间,格式:*yyyy-MM-dd*T*HH:mm:ss*Z(GMT时间)。
///
/// > 非0时区需要在传入时在实际时间上减去8小时。
#[setters(generate = true, strip_option)]
start_time: Option<String>,
/// 查询结束时间,格式:*yyyy-MM-dd*T*HH:mm:ss*Z(GMT时间)。
///
/// > 非0时区需要在传入时在实际时间上减去8小时。
#[setters(generate = true, strip_option)]
end_time: Option<String>,
/// 每页记录数,取值:
///
/// * **30**
/// * **50**
/// * **100**
///
/// 默认值:30。
#[setters(generate = true, strip_option)]
page_size: Option<i32>,
/// 页码,取值:大于0且不超过Integer的最大值。
///
/// 默认值:**1**。
#[setters(generate = true, strip_option)]
page_number: Option<i32>,
/// 用户备份ID。
#[setters(generate = true, strip_option)]
backup_id: Option<i32>,
/// 资源组ID。
#[setters(generate = true, strip_option)]
resource_group_id: Option<String>,
}
impl sealed::Bound for DescribeCrossRegionBackups {}
impl DescribeCrossRegionBackups {
pub fn new(db_instance_id: impl Into<String>, region_id: impl Into<String>) -> Self {
Self {
db_instance_id: db_instance_id.into(),
region_id: region_id.into(),
cross_backup_region: None,
cross_backup_id: None,
start_time: None,
end_time: None,
page_size: None,
page_number: None,
backup_id: None,
resource_group_id: None,
}
}
}
impl crate::ToFormData for DescribeCrossRegionBackups {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DescribeCrossRegionBackups {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DescribeCrossRegionBackups";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DescribeCrossRegionBackupsResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(10);
if let Some(f) = &self.backup_id {
params.push(("BackupId".into(), (f).into()));
}
if let Some(f) = &self.cross_backup_id {
params.push(("CrossBackupId".into(), (f).into()));
}
if let Some(f) = &self.cross_backup_region {
params.push(("CrossBackupRegion".into(), (f).into()));
}
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
if let Some(f) = &self.end_time {
params.push(("EndTime".into(), (f).into()));
}
if let Some(f) = &self.page_number {
params.push(("PageNumber".into(), (f).into()));
}
if let Some(f) = &self.page_size {
params.push(("PageSize".into(), (f).into()));
}
params.push(("RegionId".into(), (&self.region_id).into()));
if let Some(f) = &self.resource_group_id {
params.push(("ResourceGroupId".into(), (f).into()));
}
if let Some(f) = &self.start_time {
params.push(("StartTime".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于查询跨地域日志备份文件列表。
///
/// Argument of [Connection::describe_cross_region_log_backup_files()], returns [DescribeCrossRegionLogBackupFilesResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DescribeCrossRegionLogBackupFiles {
/// 实例ID。
db_instance_id: String,
/// 实例所在地域ID。可以通过接口DescribeRegions查看地域ID。
region_id: String,
/// 跨地域备份目的地域ID。可以通过接口DescribeCrossRegionBackupDBInstance查看地域ID。
#[setters(generate = true, strip_option)]
cross_backup_region: Option<String>,
/// 查询开始时间。格式:<i>yyyy-MM-dd</i>T<i>HH:mm:ss</i>Z(UTC时间)。
start_time: String,
/// 查询结束时间。格式:<i>yyyy-MM-dd</i>T<i>HH:mm:ss</i>Z(UTC时间)。
end_time: String,
/// 每页记录数,取值:
///
/// * **30**
/// * **50**
/// * **100**
///
/// 默认值:30。
#[setters(generate = true, strip_option)]
page_size: Option<i32>,
/// 页码,取值:大于0且不超过Integer的最大值。
///
/// 默认值:**1**。
#[setters(generate = true, strip_option)]
page_number: Option<i32>,
}
impl sealed::Bound for DescribeCrossRegionLogBackupFiles {}
impl DescribeCrossRegionLogBackupFiles {
pub fn new(
db_instance_id: impl Into<String>,
region_id: impl Into<String>,
start_time: impl Into<String>,
end_time: impl Into<String>,
) -> Self {
Self {
db_instance_id: db_instance_id.into(),
region_id: region_id.into(),
cross_backup_region: None,
start_time: start_time.into(),
end_time: end_time.into(),
page_size: None,
page_number: None,
}
}
}
impl crate::ToFormData for DescribeCrossRegionLogBackupFiles {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DescribeCrossRegionLogBackupFiles {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DescribeCrossRegionLogBackupFiles";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DescribeCrossRegionLogBackupFilesResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(7);
if let Some(f) = &self.cross_backup_region {
params.push(("CrossBackupRegion".into(), (f).into()));
}
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
params.push(("EndTime".into(), (&self.end_time).into()));
if let Some(f) = &self.page_number {
params.push(("PageNumber".into(), (f).into()));
}
if let Some(f) = &self.page_size {
params.push(("PageSize".into(), (f).into()));
}
params.push(("RegionId".into(), (&self.region_id).into()));
params.push(("StartTime".into(), (&self.start_time).into()));
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于查询所选地域当前可以进行跨地域备份的目的地域。
///
/// Argument of [Connection::describe_available_cross_region()], returns [DescribeAvailableCrossRegionResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DescribeAvailableCrossRegion {
/// 地域ID。可以通过接口DescribeRegions查看地域ID。
region_id: String,
}
impl sealed::Bound for DescribeAvailableCrossRegion {}
impl DescribeAvailableCrossRegion {
pub fn new(region_id: impl Into<String>) -> Self {
Self {
region_id: region_id.into(),
}
}
}
impl crate::ToFormData for DescribeAvailableCrossRegion {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DescribeAvailableCrossRegion {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DescribeAvailableCrossRegion";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DescribeAvailableCrossRegionResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(1);
params.push(("RegionId".into(), (&self.region_id).into()));
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于查询某跨地域备份文件可恢复哪个时间段的数据。
///
/// Argument of [Connection::describe_available_recovery_time()], returns [DescribeAvailableRecoveryTimeResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DescribeAvailableRecoveryTime {
/// 跨地域备份文件ID。可以通过接口DescribeCrossRegionBackups查看备份集ID。
cross_backup_id: i32,
/// 地域ID。
#[setters(generate = true, strip_option)]
region_id: Option<String>,
/// 资源组ID。
#[setters(generate = true, strip_option)]
resource_group_id: Option<String>,
/// 实例ID。可调用DescribeDBInstances获取。
#[setters(generate = true, strip_option)]
db_instance_id: Option<String>,
}
impl sealed::Bound for DescribeAvailableRecoveryTime {}
impl DescribeAvailableRecoveryTime {
pub fn new(cross_backup_id: impl Into<i32>) -> Self {
Self {
cross_backup_id: cross_backup_id.into(),
region_id: None,
resource_group_id: None,
db_instance_id: None,
}
}
}
impl crate::ToFormData for DescribeAvailableRecoveryTime {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DescribeAvailableRecoveryTime {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DescribeAvailableRecoveryTime";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DescribeAvailableRecoveryTimeResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(4);
params.push(("CrossBackupId".into(), (&self.cross_backup_id).into()));
if let Some(f) = &self.db_instance_id {
params.push(("DBInstanceId".into(), (f).into()));
}
if let Some(f) = &self.region_id {
params.push(("RegionId".into(), (f).into()));
}
if let Some(f) = &self.resource_group_id {
params.push(("ResourceGroupId".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于查询所选地域的哪些实例开启了跨地域备份,以及这些实例的跨地域备份设置。
///
/// Argument of [Connection::describe_cross_region_backup_db_instance()], returns [DescribeCrossRegionBackupDBInstanceResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DescribeCrossRegionBackupDBInstance {
/// 地域ID。
region_id: String,
/// 实例ID。一次最多传入30个实例ID,以英文逗号(,)分隔。
#[setters(generate = true, strip_option)]
db_instance_id: Option<String>,
/// 每页记录数。默认值:30。
#[setters(generate = true, strip_option)]
page_size: Option<i32>,
/// 页码,取值:大于0且不超过Integer的最大值。
///
/// 默认值:**1**。
#[setters(generate = true, strip_option)]
page_number: Option<i32>,
}
impl sealed::Bound for DescribeCrossRegionBackupDBInstance {}
impl DescribeCrossRegionBackupDBInstance {
pub fn new(region_id: impl Into<String>) -> Self {
Self {
region_id: region_id.into(),
db_instance_id: None,
page_size: None,
page_number: None,
}
}
}
impl crate::ToFormData for DescribeCrossRegionBackupDBInstance {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DescribeCrossRegionBackupDBInstance {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DescribeCrossRegionBackupDBInstance";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DescribeCrossRegionBackupDBInstanceResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(4);
if let Some(f) = &self.db_instance_id {
params.push(("DBInstanceId".into(), (f).into()));
}
if let Some(f) = &self.page_number {
params.push(("PageNumber".into(), (f).into()));
}
if let Some(f) = &self.page_size {
params.push(("PageSize".into(), (f).into()));
}
params.push(("RegionId".into(), (&self.region_id).into()));
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于预检查某RDS实例是否可以用跨地域备份集进行跨地域恢复。
///
/// Argument of [Connection::check_create_ddr_db_instance()], returns [CheckCreateDdrDBInstanceResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct CheckCreateDdrDBInstance {
/// 目的实例地域ID,可以通过接口DescribeRegions查看地域ID。
region_id: String,
/// 目标数据库类型,取值:
/// * **MySQL**
/// * **SQLServer**
/// * **PostgreSQL**
engine: String,
/// 目标数据库版本。根据**Engine**参数取值的不同,本参数取值如下:
///
/// - MySQL:**5.5/5.6/5.7/8.0**
/// - SQL Server:**2008r2(高性能本地盘,已停售)/08r2_ent_ha(云盘版,已停售)/2012/2012_ent_ha/2012_std_ha/2012_web/2014_std_ha/2016_ent_ha/2016_std_ha/2016_web/2017_std_ha/2017_ent/2019_std_ha/2019_ent**
/// - PostgreSQL:**10.0/11.0/12.0/13.0/14.0/15.0**
///
/// > SQL Server实例中`_ent`表示企业集群版、`_ent_ha`表示企业版、`_std_ha`表示标准版、`_web`表示Web版。
engine_version: String,
/// 目的实例规格,详见[实例规格表](~~26312~~)。
db_instance_class: String,
/// 目的实例存储空间,取值: **5~2000**。
/// 每5 GB进行递增,单位:GB。详见[实例规格表](~~26312~~)。
db_instance_storage: i32,
/// 恢复方式,取值:
///
/// - **0**(默认值):基于备份集恢复,您还需要传入参数**BackupSetId**。
/// - **1**:基于时间点恢复,您还需要传入参数**RestoreTime**、**SourceRegion**、**SourceDBInstanceName**。
restore_type: String,
/// 基于备份集恢复时,使用的备份集的ID。可以通过接口DescribeCrossRegionBackups查看备份集ID。
/// >**RestoreTyp**e=**0**时必传。
#[setters(generate = true, strip_option)]
backup_set_id: Option<String>,
/// 基于时间点恢复时,要恢复的时间节点,需要早于当前时间。格式:<i>yyyy-MM-dd</i>T<i>HH:mm:ss</i>Z(UTC时间)。
/// >**RestoreType**=**1**时必传 。
#[setters(generate = true, strip_option)]
restore_time: Option<String>,
/// 基于时间点恢复时,源地域的ID。
/// >**RestoreType**=**1**时必传。
#[setters(generate = true, strip_option)]
source_region: Option<String>,
/// 基于时间点恢复时,源实例的ID。
/// >**RestoreType**=**1**时必传。
#[setters(generate = true, strip_option)]
source_db_instance_name: Option<String>,
/// 资源组ID。可调用DescribeDBInstanceAttribute获取。
#[setters(generate = true, strip_option)]
resource_group_id: Option<String>,
}
impl sealed::Bound for CheckCreateDdrDBInstance {}
impl CheckCreateDdrDBInstance {
pub fn new(
region_id: impl Into<String>,
engine: impl Into<String>,
engine_version: impl Into<String>,
db_instance_class: impl Into<String>,
db_instance_storage: impl Into<i32>,
restore_type: impl Into<String>,
) -> Self {
Self {
region_id: region_id.into(),
engine: engine.into(),
engine_version: engine_version.into(),
db_instance_class: db_instance_class.into(),
db_instance_storage: db_instance_storage.into(),
restore_type: restore_type.into(),
backup_set_id: None,
restore_time: None,
source_region: None,
source_db_instance_name: None,
resource_group_id: None,
}
}
}
impl crate::ToFormData for CheckCreateDdrDBInstance {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for CheckCreateDdrDBInstance {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "CheckCreateDdrDBInstance";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<CheckCreateDdrDBInstanceResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(11);
if let Some(f) = &self.backup_set_id {
params.push(("BackupSetId".into(), (f).into()));
}
params.push(("DBInstanceClass".into(), (&self.db_instance_class).into()));
params.push((
"DBInstanceStorage".into(),
(&self.db_instance_storage).into(),
));
params.push(("Engine".into(), (&self.engine).into()));
params.push(("EngineVersion".into(), (&self.engine_version).into()));
params.push(("RegionId".into(), (&self.region_id).into()));
if let Some(f) = &self.resource_group_id {
params.push(("ResourceGroupId".into(), (f).into()));
}
if let Some(f) = &self.restore_time {
params.push(("RestoreTime".into(), (f).into()));
}
params.push(("RestoreType".into(), (&self.restore_type).into()));
if let Some(f) = &self.source_db_instance_name {
params.push(("SourceDBInstanceName".into(), (f).into()));
}
if let Some(f) = &self.source_region {
params.push(("SourceRegion".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于跨地域恢复数据到已有实例。
///
/// Argument of [Connection::restore_ddr_table()], returns [RestoreDdrTableResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct RestoreDdrTable {
/// 要恢复的已有实例ID。
db_instance_id: String,
/// 目标地域ID,可以通过接口DescribeRegions查看地域ID。
#[setters(generate = true, strip_option)]
region_id: Option<String>,
/// 用于保证请求的幂等性,防止重复提交请求。由客户端生成该参数值,要保证在不同请求间唯一,最大值不超过64个ASCII字符,且该参数值中不能包含非ASCII字符。
#[setters(generate = true, strip_option)]
client_token: Option<String>,
/// 恢复方式,取值:
/// * **0**:基于备份集恢复,还需要传入参数**BackupId**。
/// * **1**:基于时间点恢复,还需要传入参数**RestoreTime**、**SourceRegion**、**SourceDBInstanceName**。
///
/// 默认值:**0**。
restore_type: String,
/// 跨地域备份集ID。可以通过接口DescribeCrossRegionBackups查询。
/// >**RestoreType**=**0**时需要传入此参数。
#[setters(generate = true, strip_option)]
backup_id: Option<String>,
/// 恢复时间点恢复的时间,需要早于当前时间。格式:<i>yyyy-MM-dd</i>T<i>HH:mm:ss</i>Z(UTC时间)。
///
/// >**RestoreType**=**1**时需要传入此参数。
#[setters(generate = true, strip_option)]
restore_time: Option<String>,
/// 基于时间点恢复的来源地域。
/// >**RestoreType**=**1**时需要传入此参数。
#[setters(generate = true, strip_option)]
source_region: Option<String>,
/// 基于时间点恢复的来源实例ID。
/// >**RestoreType**=**1**时需要传入此参数。
#[setters(generate = true, strip_option)]
source_db_instance_name: Option<String>,
/// 指定恢复的库表。格式:
/// ```ignore
table_meta: String,
/// 资源组ID。
#[setters(generate = true, strip_option)]
resource_group_id: Option<String>,
}
impl sealed::Bound for RestoreDdrTable {}
impl RestoreDdrTable {
pub fn new(
db_instance_id: impl Into<String>,
restore_type: impl Into<String>,
table_meta: impl Into<String>,
) -> Self {
Self {
db_instance_id: db_instance_id.into(),
region_id: None,
client_token: None,
restore_type: restore_type.into(),
backup_id: None,
restore_time: None,
source_region: None,
source_db_instance_name: None,
table_meta: table_meta.into(),
resource_group_id: None,
}
}
}
impl crate::ToFormData for RestoreDdrTable {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for RestoreDdrTable {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "RestoreDdrTable";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<RestoreDdrTableResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(10);
if let Some(f) = &self.backup_id {
params.push(("BackupId".into(), (f).into()));
}
if let Some(f) = &self.client_token {
params.push(("ClientToken".into(), (f).into()));
}
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
if let Some(f) = &self.region_id {
params.push(("RegionId".into(), (f).into()));
}
if let Some(f) = &self.resource_group_id {
params.push(("ResourceGroupId".into(), (f).into()));
}
if let Some(f) = &self.restore_time {
params.push(("RestoreTime".into(), (f).into()));
}
params.push(("RestoreType".into(), (&self.restore_type).into()));
if let Some(f) = &self.source_db_instance_name {
params.push(("SourceDBInstanceName".into(), (f).into()));
}
if let Some(f) = &self.source_region {
params.push(("SourceRegion".into(), (f).into()));
}
params.push(("TableMeta".into(), (&self.table_meta).into()));
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于修改监控频率。
///
/// Argument of [Connection::modify_db_instance_monitor()], returns [ModifyDBInstanceMonitorResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct ModifyDBInstanceMonitor {
/// 用于保证请求的幂等性,防止重复提交请求。由客户端生成该参数值,要保证在不同请求间唯一,最大值不超过64个ASCII字符,且该参数值中不能包含非ASCII字符。
#[setters(generate = true, strip_option)]
client_token: Option<String>,
/// 实例ID。可调用DescribeDBInstances获取。
db_instance_id: String,
/// 监控的采集间隔,取值:
/// * **5**
/// * **10**
/// * **60**
/// * **300**
///
/// 单位:秒。
period: String,
}
impl sealed::Bound for ModifyDBInstanceMonitor {}
impl ModifyDBInstanceMonitor {
pub fn new(db_instance_id: impl Into<String>, period: impl Into<String>) -> Self {
Self {
client_token: None,
db_instance_id: db_instance_id.into(),
period: period.into(),
}
}
}
impl crate::ToFormData for ModifyDBInstanceMonitor {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for ModifyDBInstanceMonitor {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "ModifyDBInstanceMonitor";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<ModifyDBInstanceMonitorResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(3);
if let Some(f) = &self.client_token {
params.push(("ClientToken".into(), (f).into()));
}
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
params.push(("Period".into(), (&self.period).into()));
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于变更RDS PostgreSQL实例展示的增强监控指标。
///
/// Argument of [Connection::modify_db_instance_metrics()], returns [ModifyDBInstanceMetricsResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct ModifyDBInstanceMetrics {
/// 实例ID。可调用DescribeDBInstances获取。
db_instance_name: String,
/// 本次变更的应用范围。取值:
/// * **instance**:实例级别,即仅将变更应用到当前实例。
/// * **region**:地域级别,即将变更应用到当前地域中所有存储类型和当前实例相同的RDS PostgreSQL实例。例如当前实例为云盘,则本次变更会应用到当前地域下的所有RDS PostgreSQL云盘实例中。
scope: String,
/// 设置实例的监控指标。可传入多个指标Key,用英文逗号(,)分隔,最多30个。
///
/// 您可调用DescribeAvailableMetrics接口获取增强监控指标Key。
metrics_config: String,
}
impl sealed::Bound for ModifyDBInstanceMetrics {}
impl ModifyDBInstanceMetrics {
pub fn new(
db_instance_name: impl Into<String>,
scope: impl Into<String>,
metrics_config: impl Into<String>,
) -> Self {
Self {
db_instance_name: db_instance_name.into(),
scope: scope.into(),
metrics_config: metrics_config.into(),
}
}
}
impl crate::ToFormData for ModifyDBInstanceMetrics {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for ModifyDBInstanceMetrics {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "ModifyDBInstanceMetrics";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<ModifyDBInstanceMetricsResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(3);
params.push(("DBInstanceName".into(), (&self.db_instance_name).into()));
params.push(("MetricsConfig".into(), (&self.metrics_config).into()));
params.push(("Scope".into(), (&self.scope).into()));
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于查询RDS实例的空间使用信息。
///
/// Argument of [Connection::describe_resource_usage()], returns [DescribeResourceUsageResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DescribeResourceUsage {
/// 实例ID。可调用DescribeDBInstances获取。
db_instance_id: String,
/// 资源组ID。
#[setters(generate = true, strip_option)]
resource_group_id: Option<String>,
}
impl sealed::Bound for DescribeResourceUsage {}
impl DescribeResourceUsage {
pub fn new(db_instance_id: impl Into<String>) -> Self {
Self {
db_instance_id: db_instance_id.into(),
resource_group_id: None,
}
}
}
impl crate::ToFormData for DescribeResourceUsage {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DescribeResourceUsage {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DescribeResourceUsage";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DescribeResourceUsageResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(2);
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
if let Some(f) = &self.resource_group_id {
params.push(("ResourceGroupId".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于查询实例性能数据。
///
/// Argument of [Connection::describe_db_instance_performance()], returns [DescribeDBInstancePerformanceResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DescribeDBInstancePerformance {
/// 实例ID。可调用DescribeDBInstances获取。
db_instance_id: String,
/// 想要查询的性能指标,多个值用半角逗号(,)分隔,最多传入30个。详细参数请参见[性能参数表](~~26316~~)。
/// >**Key**为**MySQL_SpaceUsage**或**SQLServer_SpaceUsage**时,仅支持查询1天内的监控数据。
key: String,
/// 查询开始时间。格式:<i>yyyy-MM-dd</i>T<i>HH:mm</i>Z(UTC时间)。
/// >开始和结束时间间隔需要大于您实例的监控频率,否则可能返回空列表。
start_time: String,
/// 查询结束时间。格式:<i>yyyy-MM-dd</i>T<i>HH:mm</i>Z(UTC时间)。
/// >开始和结束时间间隔需要大于您实例的监控频率,否则可能返回空列表。
end_time: String,
/// 实例的唯一标识。
#[setters(generate = true, strip_option)]
node_id: Option<String>,
}
impl sealed::Bound for DescribeDBInstancePerformance {}
impl DescribeDBInstancePerformance {
pub fn new(
db_instance_id: impl Into<String>,
key: impl Into<String>,
start_time: impl Into<String>,
end_time: impl Into<String>,
) -> Self {
Self {
db_instance_id: db_instance_id.into(),
key: key.into(),
start_time: start_time.into(),
end_time: end_time.into(),
node_id: None,
}
}
}
impl crate::ToFormData for DescribeDBInstancePerformance {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DescribeDBInstancePerformance {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DescribeDBInstancePerformance";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DescribeDBInstancePerformanceResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(5);
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
params.push(("EndTime".into(), (&self.end_time).into()));
params.push(("Key".into(), (&self.key).into()));
if let Some(f) = &self.node_id {
params.push(("NodeId".into(), (f).into()));
}
params.push(("StartTime".into(), (&self.start_time).into()));
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于查询监控频率。
///
/// Argument of [Connection::describe_db_instance_monitor()], returns [DescribeDBInstanceMonitorResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DescribeDBInstanceMonitor {
/// 用于保证请求的幂等性,防止重复提交请求。由客户端生成该参数值,要保证在不同请求间唯一,最大值不超过64个ASCII字符,且该参数值中不能包含非ASCII字符。
#[setters(generate = true, strip_option)]
client_token: Option<String>,
/// 实例ID。可调用DescribeDBInstances获取。
db_instance_id: String,
}
impl sealed::Bound for DescribeDBInstanceMonitor {}
impl DescribeDBInstanceMonitor {
pub fn new(db_instance_id: impl Into<String>) -> Self {
Self {
client_token: None,
db_instance_id: db_instance_id.into(),
}
}
}
impl crate::ToFormData for DescribeDBInstanceMonitor {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DescribeDBInstanceMonitor {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DescribeDBInstanceMonitor";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DescribeDBInstanceMonitorResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(2);
if let Some(f) = &self.client_token {
params.push(("ClientToken".into(), (f).into()));
}
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于获取RDS PostgreSQL实例支持的所有增强监控指标。
///
/// Argument of [Connection::describe_available_metrics()], returns [DescribeAvailableMetricsResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DescribeAvailableMetrics {
/// 实例ID。可调用DescribeDBInstances获取。
db_instance_name: String,
/// 资源组ID。
#[setters(generate = true, strip_option)]
resource_group_id: Option<String>,
}
impl sealed::Bound for DescribeAvailableMetrics {}
impl DescribeAvailableMetrics {
pub fn new(db_instance_name: impl Into<String>) -> Self {
Self {
db_instance_name: db_instance_name.into(),
resource_group_id: None,
}
}
}
impl crate::ToFormData for DescribeAvailableMetrics {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DescribeAvailableMetrics {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DescribeAvailableMetrics";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DescribeAvailableMetricsResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(2);
params.push(("DBInstanceName".into(), (&self.db_instance_name).into()));
if let Some(f) = &self.resource_group_id {
params.push(("ResourceGroupId".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于查询RDS PostgreSQL实例已开启展示的增强指标。
///
/// Argument of [Connection::describe_db_instance_metrics()], returns [DescribeDBInstanceMetricsResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DescribeDBInstanceMetrics {
/// 实例ID。可调用DescribeDBInstances获取。
db_instance_name: String,
/// 资源组ID。
#[setters(generate = true, strip_option)]
resource_group_id: Option<String>,
}
impl sealed::Bound for DescribeDBInstanceMetrics {}
impl DescribeDBInstanceMetrics {
pub fn new(db_instance_name: impl Into<String>) -> Self {
Self {
db_instance_name: db_instance_name.into(),
resource_group_id: None,
}
}
}
impl crate::ToFormData for DescribeDBInstanceMetrics {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DescribeDBInstanceMetrics {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DescribeDBInstanceMetrics";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DescribeDBInstanceMetricsResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(2);
params.push(("DBInstanceName".into(), (&self.db_instance_name).into()));
if let Some(f) = &self.resource_group_id {
params.push(("ResourceGroupId".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于创建RDS参数模板。
///
/// Argument of [Connection::create_parameter_group()], returns [CreateParameterGroupResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct CreateParameterGroup {
/// 创建参数模板的地域ID。可以通过接口DescribeRegions查看地域ID。
region_id: String,
/// 模板的名称。
/// * 以英文字母开头,由英文字母、数字、小数点(.)或下划线(_)组成。
/// * 长度为8~64个字符。
parameter_group_name: String,
/// 数据库引擎,取值:
/// - **mysql**
/// - **PostgreSQL**
engine: String,
/// 数据库版本,取值:
/// * MySQL:
/// * **5.6**
/// * **5.7**
/// * **8.0**
/// * PostgreSQL:
/// * **10.0**
/// * **11.0**
/// * **12.0**
/// * **13.0**
/// * **14.0**
/// * **15.0**
engine_version: String,
/// 参数和值的JSON串,格式:{"参数1":"参数1值","参数2":"参数2值"......}。可修改的参数请参见[设置MySQL实例参数](~~96063~~)或[设置PostgreSQL实例参数](~~96751~~)。
parameters: String,
/// 参数模板的描述。长度为0~200个字符。
#[setters(generate = true, strip_option)]
parameter_group_desc: Option<String>,
/// 资源组ID。可调用DescribeDBInstanceAttribute获取。
#[setters(generate = true, strip_option)]
resource_group_id: Option<String>,
}
impl sealed::Bound for CreateParameterGroup {}
impl CreateParameterGroup {
pub fn new(
region_id: impl Into<String>,
parameter_group_name: impl Into<String>,
engine: impl Into<String>,
engine_version: impl Into<String>,
parameters: impl Into<String>,
) -> Self {
Self {
region_id: region_id.into(),
parameter_group_name: parameter_group_name.into(),
engine: engine.into(),
engine_version: engine_version.into(),
parameters: parameters.into(),
parameter_group_desc: None,
resource_group_id: None,
}
}
}
impl crate::ToFormData for CreateParameterGroup {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for CreateParameterGroup {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "CreateParameterGroup";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<CreateParameterGroupResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(7);
params.push(("Engine".into(), (&self.engine).into()));
params.push(("EngineVersion".into(), (&self.engine_version).into()));
if let Some(f) = &self.parameter_group_desc {
params.push(("ParameterGroupDesc".into(), (f).into()));
}
params.push((
"ParameterGroupName".into(),
(&self.parameter_group_name).into(),
));
params.push(("Parameters".into(), (&self.parameters).into()));
params.push(("RegionId".into(), (&self.region_id).into()));
if let Some(f) = &self.resource_group_id {
params.push(("ResourceGroupId".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于删除RDS参数模板。
///
/// Argument of [Connection::delete_parameter_group()], returns [DeleteParameterGroupResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DeleteParameterGroup {
/// 地域ID。可以通过接口DescribeRegions查看地域ID。
region_id: String,
/// 参数模板ID。可以通过接口DescribeParameterGroups查看参数模板ID。
parameter_group_id: String,
/// 资源组ID。可调用DescribeDBInstanceAttribute获取。
#[setters(generate = true, strip_option)]
resource_group_id: Option<String>,
}
impl sealed::Bound for DeleteParameterGroup {}
impl DeleteParameterGroup {
pub fn new(region_id: impl Into<String>, parameter_group_id: impl Into<String>) -> Self {
Self {
region_id: region_id.into(),
parameter_group_id: parameter_group_id.into(),
resource_group_id: None,
}
}
}
impl crate::ToFormData for DeleteParameterGroup {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DeleteParameterGroup {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DeleteParameterGroup";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DeleteParameterGroupResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(3);
params.push(("ParameterGroupId".into(), (&self.parameter_group_id).into()));
params.push(("RegionId".into(), (&self.region_id).into()));
if let Some(f) = &self.resource_group_id {
params.push(("ResourceGroupId".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于修改RDS实例的参数值。
///
/// Argument of [Connection::modify_parameter()], returns [ModifyParameterResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct ModifyParameter {
/// 用于保证请求的幂等性,防止重复提交请求。由客户端生成该参数值,要保证在不同请求间唯一,最大值不超过64个ASCII字符,且该参数值中不能包含非ASCII字符。
#[setters(generate = true, strip_option)]
client_token: Option<String>,
/// 实例ID。
db_instance_id: String,
/// 参数及其值的JSON串,参数的值都是字符串类型。格式:{"参数名称1":"参数值1","参数名称2":"参数值2"...}。可调用DescribeParameterTemplates查询参数名称和参数值。
/// >传入该参数,则无需传入参数**ParameterGroupId**。
#[setters(generate = true, strip_option)]
parameters: Option<String>,
/// 修改参数是否重启数据库,取值:
/// * **true**:强制重启(若修改的参数当中,有需要重启的参数,则必须传入true,否则修改将不生效)。
/// * **false**:不强制重启。
///
/// 默认值:**false**。
#[setters(generate = true, strip_option)]
forcerestart: Option<bool>,
/// 参数模板ID。
///
/// > * 传入该参数,则无需传入参数**Parameters**。
/// > * 如果应用参数模板需要重启实例,需要传入参数**Forcerestart**。
#[setters(generate = true, strip_option)]
parameter_group_id: Option<String>,
/// 修改参数的执行时间,取值:
/// * **Immediate**:默认值,立即执行。
/// * **MaintainTime**:实例可运维时间段内执行。可调用ModifyDBInstanceMaintainTime接口修改可运维时间段。
/// * **ScheduleTime**:手动指定执行时间。传入该值需要同时传入**SwitchTime**参数。
#[setters(generate = true, strip_option)]
switch_time_mode: Option<String>,
/// 指定修改参数的执行时间。格式:<i>yyyy-MM-dd</i>T<i>HH:mm:ss</i>Z(UTC时间)。
/// >该时间必须大于当前时间(执行调用的时间)。
#[setters(generate = true, strip_option)]
switch_time: Option<String>,
}
impl sealed::Bound for ModifyParameter {}
impl ModifyParameter {
pub fn new(db_instance_id: impl Into<String>) -> Self {
Self {
client_token: None,
db_instance_id: db_instance_id.into(),
parameters: None,
forcerestart: None,
parameter_group_id: None,
switch_time_mode: None,
switch_time: None,
}
}
}
impl crate::ToFormData for ModifyParameter {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for ModifyParameter {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "ModifyParameter";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<ModifyParameterResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(7);
if let Some(f) = &self.client_token {
params.push(("ClientToken".into(), (f).into()));
}
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
if let Some(f) = &self.forcerestart {
params.push(("Forcerestart".into(), (f).into()));
}
if let Some(f) = &self.parameter_group_id {
params.push(("ParameterGroupId".into(), (f).into()));
}
if let Some(f) = &self.parameters {
params.push(("Parameters".into(), (f).into()));
}
if let Some(f) = &self.switch_time {
params.push(("SwitchTime".into(), (f).into()));
}
if let Some(f) = &self.switch_time_mode {
params.push(("SwitchTimeMode".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于修改RDS参数模板。
///
/// Argument of [Connection::modify_parameter_group()], returns [ModifyParameterGroupResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct ModifyParameterGroup {
/// 参数模板ID。可以通过接口DescribeParameterGroups查看参数模板ID。
parameter_group_id: String,
/// 参数模板名称。
/// * 以英文字母开头,由英文字母、数字、小数点(.)或下划线(_)组成。
/// * 长度为8~64个字符。
///
/// >不传入该参数,则保持原参数模板名称。
#[setters(generate = true, strip_option)]
parameter_group_name: Option<String>,
/// 修改参数模板的描述。长度为0~200个字符。
/// >不传入该参数,则保持原参数模板描述。
#[setters(generate = true, strip_option)]
parameter_group_desc: Option<String>,
/// 参数和值的JSON串,格式:{"参数1":"参数1值","参数2":"参数2值"......}。可修改的参数请参见[设置MySQL实例参数](~~96063~~)或[设置PostgreSQL实例参数](~~96751~~)。
///
/// > * 如果**ModifyMode**参数为**Individual**,则传入该参数会覆盖原来的参数模板。
/// > * 如果**ModifyMode**参数为**Collectivity**,则传入该参数会在原有参数模板的基础上进行新增或更改。
/// > * 不传入该参数,则保持原参数信息。
#[setters(generate = true, strip_option)]
parameters: Option<String>,
/// 地域ID。可以通过接口DescribeRegions查看地域ID。
/// >参数模板的地域不支持修改,您可以使用接口CloneParameterGroup复制参数模板到其他地域。
region_id: String,
/// 参数模板的修改模式。取值:
/// * **Collectivity**(默认值):新增或变更。
/// >将**Parameters**参数中传入的内容新增到当前参数模板,或变更当前参数模板中已有参数,当前参数模板中的其他参数不受影响。
///
/// * **Individual**:覆盖。
/// >将当前参数模板中的内容替换成**Parameters**参数中传入的内容。
#[setters(generate = true, strip_option)]
modify_mode: Option<ModifyMode>,
/// 资源组ID。可调用DescribeDBInstanceAttribute获取。
#[setters(generate = true, strip_option)]
resource_group_id: Option<String>,
}
impl sealed::Bound for ModifyParameterGroup {}
impl ModifyParameterGroup {
pub fn new(parameter_group_id: impl Into<String>, region_id: impl Into<String>) -> Self {
Self {
parameter_group_id: parameter_group_id.into(),
parameter_group_name: None,
parameter_group_desc: None,
parameters: None,
region_id: region_id.into(),
modify_mode: None,
resource_group_id: None,
}
}
}
impl crate::ToFormData for ModifyParameterGroup {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for ModifyParameterGroup {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "ModifyParameterGroup";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<ModifyParameterGroupResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(7);
if let Some(f) = &self.modify_mode {
params.push(("ModifyMode".into(), (f).into()));
}
if let Some(f) = &self.parameter_group_desc {
params.push(("ParameterGroupDesc".into(), (f).into()));
}
params.push(("ParameterGroupId".into(), (&self.parameter_group_id).into()));
if let Some(f) = &self.parameter_group_name {
params.push(("ParameterGroupName".into(), (f).into()));
}
if let Some(f) = &self.parameters {
params.push(("Parameters".into(), (f).into()));
}
params.push(("RegionId".into(), (&self.region_id).into()));
if let Some(f) = &self.resource_group_id {
params.push(("ResourceGroupId".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于查询实例当前的参数配置。
///
/// Argument of [Connection::describe_parameters()], returns [DescribeParametersResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DescribeParameters {
/// 用于保证请求的幂等性,防止重复提交请求。由客户端生成该参数值,要保证在不同请求间唯一,最大值不超过64个ASCII字符,且该参数值中不能包含非ASCII字符。
#[setters(generate = true, strip_option)]
client_token: Option<String>,
/// 实例ID。可调用DescribeDBInstances获取。
db_instance_id: String,
}
impl sealed::Bound for DescribeParameters {}
impl DescribeParameters {
pub fn new(db_instance_id: impl Into<String>) -> Self {
Self {
client_token: None,
db_instance_id: db_instance_id.into(),
}
}
}
impl crate::ToFormData for DescribeParameters {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DescribeParameters {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DescribeParameters";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DescribeParametersResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(2);
if let Some(f) = &self.client_token {
params.push(("ClientToken".into(), (f).into()));
}
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于查询RDS实例的参数修改日志。
///
/// Argument of [Connection::describe_modify_parameter_log()], returns [DescribeModifyParameterLogResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DescribeModifyParameterLog {
/// 实例ID。
db_instance_id: String,
/// 查询开始时间。格式:<i>yyyy-MM-dd</i>T<i>HH:mm</i>Z(UTC时间)。
start_time: String,
/// 查询结束时间。格式:<i>yyyy-MM-dd</i>T<i>HH:mm</i>Z(UTC时间)。
end_time: String,
/// 每页记录数。取值:
/// * **30**
/// * **50**
/// * **100**
///
/// 默认值:**30**。
#[setters(generate = true, strip_option)]
page_size: Option<i32>,
/// 页码,取值:大于0且不超过Integer的最大值。
///
/// 默认值:**1**。
#[setters(generate = true, strip_option)]
page_number: Option<i32>,
}
impl sealed::Bound for DescribeModifyParameterLog {}
impl DescribeModifyParameterLog {
pub fn new(
db_instance_id: impl Into<String>,
start_time: impl Into<String>,
end_time: impl Into<String>,
) -> Self {
Self {
db_instance_id: db_instance_id.into(),
start_time: start_time.into(),
end_time: end_time.into(),
page_size: None,
page_number: None,
}
}
}
impl crate::ToFormData for DescribeModifyParameterLog {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DescribeModifyParameterLog {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DescribeModifyParameterLog";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DescribeModifyParameterLogResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(5);
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
params.push(("EndTime".into(), (&self.end_time).into()));
if let Some(f) = &self.page_number {
params.push(("PageNumber".into(), (f).into()));
}
if let Some(f) = &self.page_size {
params.push(("PageSize".into(), (f).into()));
}
params.push(("StartTime".into(), (&self.start_time).into()));
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于查询数据库参数模板。
///
/// Argument of [Connection::describe_parameter_templates()], returns [DescribeParameterTemplatesResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DescribeParameterTemplates {
/// 用于保证请求的幂等性,防止重复提交请求。由客户端生成该参数值,要保证在不同请求间唯一,最大值不超过64个ASCII字符,且该参数值中不能包含非ASCII字符。
#[setters(generate = true, strip_option)]
client_token: Option<String>,
/// 数据库类型,取值:
/// * **mysql**:MySQL数据库
/// * **mssql**:SQL Server数据库
/// * **PostgreSQL**:PostgreSQL数据库
/// * **MariaDB**:MariaDB数据库
engine: String,
/// 数据库版本号,取值:
/// * MySQL数据库:**5.5、5.6、5.7、8.0**
/// * SQL Server数据库:**2008r2**
/// * PostgreSQL数据库:**10.0、11.0、12.0、13.0、14.0、15.0**
/// * MariaDB数据库:**10.3**
engine_version: String,
/// 实例系列,取值:
///
/// - **Basic**:基础系列
/// - **HighAvailability**:高可用系列
/// - **Finance**:三节点企业系列
#[setters(generate = true, strip_option)]
category: Option<String>,
/// 地域ID。可以通过接口DescribeRegions查看可用的地域ID。
#[setters(generate = true, strip_option)]
region_id: Option<String>,
/// 实例ID。
#[setters(generate = true, strip_option)]
db_instance_id: Option<String>,
}
impl sealed::Bound for DescribeParameterTemplates {}
impl DescribeParameterTemplates {
pub fn new(engine: impl Into<String>, engine_version: impl Into<String>) -> Self {
Self {
client_token: None,
engine: engine.into(),
engine_version: engine_version.into(),
category: None,
region_id: None,
db_instance_id: None,
}
}
}
impl crate::ToFormData for DescribeParameterTemplates {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DescribeParameterTemplates {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DescribeParameterTemplates";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DescribeParameterTemplatesResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(6);
if let Some(f) = &self.category {
params.push(("Category".into(), (f).into()));
}
if let Some(f) = &self.client_token {
params.push(("ClientToken".into(), (f).into()));
}
if let Some(f) = &self.db_instance_id {
params.push(("DBInstanceId".into(), (f).into()));
}
params.push(("Engine".into(), (&self.engine).into()));
params.push(("EngineVersion".into(), (&self.engine_version).into()));
if let Some(f) = &self.region_id {
params.push(("RegionId".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于查询目标地域的参数模板列表。
///
/// Argument of [Connection::describe_parameter_groups()], returns [DescribeParameterGroupsResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DescribeParameterGroups {
/// 地域ID,可以通过DescribeRegions查看地域ID。
region_id: String,
/// 资源组ID。
#[setters(generate = true, strip_option)]
resource_group_id: Option<String>,
/// 参数概览信息。
///
/// - **false**:返回参数概览信息,默认值。
///
/// - **true**:不返回参数概览信息。
#[setters(generate = true, strip_option)]
enable_detail: Option<bool>,
}
impl sealed::Bound for DescribeParameterGroups {}
impl DescribeParameterGroups {
pub fn new(region_id: impl Into<String>) -> Self {
Self {
region_id: region_id.into(),
resource_group_id: None,
enable_detail: None,
}
}
}
impl crate::ToFormData for DescribeParameterGroups {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DescribeParameterGroups {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DescribeParameterGroups";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DescribeParameterGroupsResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(3);
if let Some(f) = &self.enable_detail {
params.push(("EnableDetail".into(), (f).into()));
}
params.push(("RegionId".into(), (&self.region_id).into()));
if let Some(f) = &self.resource_group_id {
params.push(("ResourceGroupId".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于查询指定的RDS参数模板信息。
///
/// Argument of [Connection::describe_parameter_group()], returns [DescribeParameterGroupResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DescribeParameterGroup {
/// 参数模板ID。可以通过接口DescribeParameterGroups查看参数模板ID。
parameter_group_id: String,
/// 地域ID。可以通过接口DescribeRegions查看地域ID。
region_id: String,
}
impl sealed::Bound for DescribeParameterGroup {}
impl DescribeParameterGroup {
pub fn new(parameter_group_id: impl Into<String>, region_id: impl Into<String>) -> Self {
Self {
parameter_group_id: parameter_group_id.into(),
region_id: region_id.into(),
}
}
}
impl crate::ToFormData for DescribeParameterGroup {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DescribeParameterGroup {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DescribeParameterGroup";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DescribeParameterGroupResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(2);
params.push(("ParameterGroupId".into(), (&self.parameter_group_id).into()));
params.push(("RegionId".into(), (&self.region_id).into()));
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于复制RDS参数模板到当前地域或其他地域内。
///
/// Argument of [Connection::clone_parameter_group()], returns [CloneParameterGroupResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct CloneParameterGroup {
/// 源参数模板地域ID。可以通过接口DescribeRegions查看地域ID。
region_id: String,
/// 目标地域ID。可以通过接口DescribeRegions查看地域ID。
target_region_id: String,
/// 源参数模板ID。可以通过DescribeParameterGroups查看参数模板ID。
parameter_group_id: String,
/// 目标地域复制的参数模板名称。
parameter_group_name: String,
/// 目标地域复制的参数模板描述。
#[setters(generate = true, strip_option)]
parameter_group_desc: Option<String>,
/// 资源组ID,可以为空。
#[setters(generate = true, strip_option)]
resource_group_id: Option<String>,
}
impl sealed::Bound for CloneParameterGroup {}
impl CloneParameterGroup {
pub fn new(
region_id: impl Into<String>,
target_region_id: impl Into<String>,
parameter_group_id: impl Into<String>,
parameter_group_name: impl Into<String>,
) -> Self {
Self {
region_id: region_id.into(),
target_region_id: target_region_id.into(),
parameter_group_id: parameter_group_id.into(),
parameter_group_name: parameter_group_name.into(),
parameter_group_desc: None,
resource_group_id: None,
}
}
}
impl crate::ToFormData for CloneParameterGroup {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for CloneParameterGroup {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "CloneParameterGroup";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<CloneParameterGroupResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(6);
if let Some(f) = &self.parameter_group_desc {
params.push(("ParameterGroupDesc".into(), (f).into()));
}
params.push(("ParameterGroupId".into(), (&self.parameter_group_id).into()));
params.push((
"ParameterGroupName".into(),
(&self.parameter_group_name).into(),
));
params.push(("RegionId".into(), (&self.region_id).into()));
if let Some(f) = &self.resource_group_id {
params.push(("ResourceGroupId".into(), (f).into()));
}
params.push(("TargetRegionId".into(), (&self.target_region_id).into()));
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于查看实例迁移状态列表。
///
/// Argument of [Connection::descibe_imports_from_database()], returns [DescibeImportsFromDatabaseResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DescibeImportsFromDatabase {
/// 用于保证请求的幂等性,防止重复提交请求。由客户端生成该参数值,要保证在不同请求间唯一,最大值不超过64个ASCII字符,且该参数值中不能包含非ASCII字符。
#[setters(generate = true, strip_option)]
client_token: Option<String>,
/// 实例ID。可调用DescribeDBInstances获取。
db_instance_id: String,
/// 数据库类型。取值:**MySQL**
engine: String,
/// 迁移任务的ID。
#[setters(generate = true, strip_option)]
import_id: Option<i32>,
/// 查询开始时间。格式:<i>yyyy-MM-dd</i>T<i>HH:mm</i>Z(UTC时间)。
start_time: String,
/// 查询结束时间。格式:<i>yyyy-MM-dd</i>T<i>HH:mm</i>Z(UTC时间)。
end_time: String,
/// 每页记录数。取值:
///
/// * **30**
/// * **50**
/// * **100**
///
/// 默认值:**30**。
#[setters(generate = true, strip_option)]
page_size: Option<i32>,
/// 页码,取值:大于0且不超过Integer的最大值。
///
/// 默认值:**1**。
#[setters(generate = true, strip_option)]
page_number: Option<i32>,
/// 资源组ID。可调用DescribeDBInstanceAttribute获取。
#[setters(generate = true, strip_option)]
resource_group_id: Option<String>,
}
impl sealed::Bound for DescibeImportsFromDatabase {}
impl DescibeImportsFromDatabase {
pub fn new(
db_instance_id: impl Into<String>,
engine: impl Into<String>,
start_time: impl Into<String>,
end_time: impl Into<String>,
) -> Self {
Self {
client_token: None,
db_instance_id: db_instance_id.into(),
engine: engine.into(),
import_id: None,
start_time: start_time.into(),
end_time: end_time.into(),
page_size: None,
page_number: None,
resource_group_id: None,
}
}
}
impl crate::ToFormData for DescibeImportsFromDatabase {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DescibeImportsFromDatabase {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DescibeImportsFromDatabase";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DescibeImportsFromDatabaseResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(9);
if let Some(f) = &self.client_token {
params.push(("ClientToken".into(), (f).into()));
}
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
params.push(("EndTime".into(), (&self.end_time).into()));
params.push(("Engine".into(), (&self.engine).into()));
if let Some(f) = &self.import_id {
params.push(("ImportId".into(), (f).into()));
}
if let Some(f) = &self.page_number {
params.push(("PageNumber".into(), (f).into()));
}
if let Some(f) = &self.page_size {
params.push(("PageSize".into(), (f).into()));
}
if let Some(f) = &self.resource_group_id {
params.push(("ResourceGroupId".into(), (f).into()));
}
params.push(("StartTime".into(), (&self.start_time).into()));
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于修改RDS实例计划内运维任务的切换时间。
///
/// Argument of [Connection::modify_active_operation_tasks()], returns [ModifyActiveOperationTasksResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct ModifyActiveOperationTasks {
/// 运维任务ID,多个ID间使用英文逗号(,)分隔。
/// > 您可以调用DescribeActiveOperationTasks获取运维任务 ID。
ids: String,
/// 要设置的计划切换时间,格式为yyyy-MM-ddTHH:mm:ssZ(UTC时间)。
///
/// >不能晚于最晚操作时间,您可以调用DescribeActiveOperationTasks,通过返回参数Deadline的值来获取最晚操作时间。
switch_time: String,
/// 是否立即进入执行调度。
/// - 0:否(默认)
/// - 1:是
/// > - 值为0时switchTime起作用;值为1时switchTime不起作用,任务开始时间将设置为当前时间,切换时间根据新的开始时间自动计算。
/// > - 立即进入执行调度并不是立即切换,而是立即进入准备中状态,准备完成后,进行切换。您可以调用DescribeActiveOperationTasks,通过返回参数PrepareInterval的值来获取准备时间。
#[setters(generate = true, strip_option)]
immediate_start: Option<i32>,
}
impl sealed::Bound for ModifyActiveOperationTasks {}
impl ModifyActiveOperationTasks {
pub fn new(ids: impl Into<String>, switch_time: impl Into<String>) -> Self {
Self {
ids: ids.into(),
switch_time: switch_time.into(),
immediate_start: None,
}
}
}
impl crate::ToFormData for ModifyActiveOperationTasks {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for ModifyActiveOperationTasks {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "ModifyActiveOperationTasks";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<ModifyActiveOperationTasksResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(3);
params.push(("Ids".into(), (&self.ids).into()));
if let Some(f) = &self.immediate_start {
params.push(("ImmediateStart".into(), (f).into()));
}
params.push(("SwitchTime".into(), (&self.switch_time).into()));
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于查看RDS实例的计划内运维任务详情。
///
/// Argument of [Connection::describe_active_operation_tasks()], returns [DescribeActiveOperationTasksResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DescribeActiveOperationTasks {
/// 待处理事件所属的地域ID,可调用DescribeRegions接口获取。
/// > 取值为**all**表示所有地域ID。
#[setters(generate = true, strip_option)]
region: Option<String>,
/// 任务类型,取值:
///
/// * **rds\_apsaradb\_ha**:主从节点切换。
/// * **rds\_apsaradb\_transfer**:实例迁移。
/// * **rds\_apsaradb\_upgrade**:小版本升级。
/// * **rds\_apsaradb\_maxscale**: 代理小版本升级。
/// * **all**:所有任务类型。
#[setters(generate = true, strip_option)]
task_type: Option<String>,
/// 每页记录数, 默认每页25条,最大100。
#[setters(generate = true, strip_option)]
page_size: Option<i32>,
/// 页码,大于0, 默认1。
#[setters(generate = true, strip_option)]
page_number: Option<i32>,
/// 产品名称, RDS/POLARDB/MongoDB/Redis,对于RDS实例可选RDS。
#[setters(generate = true, strip_option)]
product_id: Option<String>,
/// 数据库类型,默认为 all
/// 可选:mysql/pgsql/mssql 等
#[setters(generate = true, strip_option)]
db_type: Option<String>,
/// 任务状态,用于筛选返回任务。
/// * **-1**:全部任务。
/// * **3**:待处理任务。
/// * **4**:处理中任务。
/// * **5**:成功结束任务。
/// * **6**:失败结束任务。
/// * **7**:已取消任务。
#[setters(generate = true, strip_option)]
status: Option<i32>,
/// 实例名,可不填,填写时只允许填写至多一个实例名。
#[setters(generate = true, strip_option)]
ins_name: Option<String>,
/// 是否允许修改时间,默认-1,取值:
/// - **-1**:全部。
/// - **0**:只返回不允许修改时间的任务。
/// - **1**:只返回允许修改时间的任务。
#[setters(generate = true, strip_option)]
allow_change: Option<i32>,
/// 是否允许取消,默认-1,取值:
///
/// - **-1**:全部。
/// - **0**:只返回不允许取消的任务。
/// - **1**:只返回允许取消的任务。
#[setters(generate = true, strip_option)]
allow_cancel: Option<i32>,
/// 任务级别,默认为 all,取值:
///
/// - **all**:全部
/// - **S0**:返回异常修复级别的任务。
/// - **S1**:返回系统运维级别的任务。
#[setters(generate = true, strip_option)]
change_level: Option<String>,
}
impl sealed::Bound for DescribeActiveOperationTasks {}
impl DescribeActiveOperationTasks {
pub fn new() -> Self {
Self {
region: None,
task_type: None,
page_size: None,
page_number: None,
product_id: None,
db_type: None,
status: None,
ins_name: None,
allow_change: None,
allow_cancel: None,
change_level: None,
}
}
}
impl crate::ToFormData for DescribeActiveOperationTasks {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DescribeActiveOperationTasks {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DescribeActiveOperationTasks";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DescribeActiveOperationTasksResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(11);
if let Some(f) = &self.allow_cancel {
params.push(("AllowCancel".into(), (f).into()));
}
if let Some(f) = &self.allow_change {
params.push(("AllowChange".into(), (f).into()));
}
if let Some(f) = &self.change_level {
params.push(("ChangeLevel".into(), (f).into()));
}
if let Some(f) = &self.db_type {
params.push(("DbType".into(), (f).into()));
}
if let Some(f) = &self.ins_name {
params.push(("InsName".into(), (f).into()));
}
if let Some(f) = &self.page_number {
params.push(("PageNumber".into(), (f).into()));
}
if let Some(f) = &self.page_size {
params.push(("PageSize".into(), (f).into()));
}
if let Some(f) = &self.product_id {
params.push(("ProductId".into(), (f).into()));
}
if let Some(f) = &self.region {
params.push(("Region".into(), (f).into()));
}
if let Some(f) = &self.status {
params.push(("Status".into(), (f).into()));
}
if let Some(f) = &self.task_type {
params.push(("TaskType".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于取消尚未开始的运维任务。
///
/// Argument of [Connection::cancel_active_operation_tasks()], returns [CancelActiveOperationTasksResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct CancelActiveOperationTasks {
/// 批量取消ID列表,多个ID需英文逗号(,)分隔,建议一次不超过25个。
ids: String,
}
impl sealed::Bound for CancelActiveOperationTasks {}
impl CancelActiveOperationTasks {
pub fn new(ids: impl Into<String>) -> Self {
Self { ids: ids.into() }
}
}
impl crate::ToFormData for CancelActiveOperationTasks {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for CancelActiveOperationTasks {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "CancelActiveOperationTasks";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<CancelActiveOperationTasksResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(1);
params.push(("Ids".into(), (&self.ids).into()));
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于删除RDS MySQL的目标用户备份。
///
/// Argument of [Connection::delete_user_backup_file()], returns [DeleteUserBackupFileResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DeleteUserBackupFile {
/// 用户备份ID。可调用ListUserBackupFiles获取。
backup_id: String,
/// 地域ID。可调用DescribeRegions获取。
region_id: String,
/// 资源组ID。可调用DescribeDBInstanceAttribute获取。
#[setters(generate = true, strip_option)]
resource_group_id: Option<String>,
}
impl sealed::Bound for DeleteUserBackupFile {}
impl DeleteUserBackupFile {
pub fn new(backup_id: impl Into<String>, region_id: impl Into<String>) -> Self {
Self {
backup_id: backup_id.into(),
region_id: region_id.into(),
resource_group_id: None,
}
}
}
impl crate::ToFormData for DeleteUserBackupFile {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DeleteUserBackupFile {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DeleteUserBackupFile";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DeleteUserBackupFileResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(3);
params.push(("BackupId".into(), (&self.backup_id).into()));
params.push(("RegionId".into(), (&self.region_id).into()));
if let Some(f) = &self.resource_group_id {
params.push(("ResourceGroupId".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于变更用户备份的备注信息和保留时长。
///
/// Argument of [Connection::update_user_backup_file()], returns [UpdateUserBackupFileResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct UpdateUserBackupFile {
/// 用户备份ID。可调用ListUserBackupFiles获取。
backup_id: String,
/// 地域ID。可调用DescribeRegions获取。
region_id: String,
/// 需要修改的备注信息。
#[setters(generate = true, strip_option)]
comment: Option<String>,
/// 需要修改的用户备份保留时长。单位:天。取值为大于0的Integer类型整数。
#[setters(generate = true, strip_option)]
retention: Option<i32>,
/// 资源组ID。可调用DescribeDBInstanceAttribute接口获取。
#[setters(generate = true, strip_option)]
resource_group_id: Option<String>,
}
impl sealed::Bound for UpdateUserBackupFile {}
impl UpdateUserBackupFile {
pub fn new(backup_id: impl Into<String>, region_id: impl Into<String>) -> Self {
Self {
backup_id: backup_id.into(),
region_id: region_id.into(),
comment: None,
retention: None,
resource_group_id: None,
}
}
}
impl crate::ToFormData for UpdateUserBackupFile {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for UpdateUserBackupFile {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "UpdateUserBackupFile";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<UpdateUserBackupFileResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(5);
params.push(("BackupId".into(), (&self.backup_id).into()));
if let Some(f) = &self.comment {
params.push(("Comment".into(), (f).into()));
}
params.push(("RegionId".into(), (&self.region_id).into()));
if let Some(f) = &self.resource_group_id {
params.push(("ResourceGroupId".into(), (f).into()));
}
if let Some(f) = &self.retention {
params.push(("Retention".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于查询所有已导入至RDS的用户备份的详情。
///
/// Argument of [Connection::list_user_backup_files()], returns [ListUserBackupFilesResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct ListUserBackupFiles {
/// 通过用户备份文件的状态查询目标用户备份。取值:
/// * **Importing**:导入中。
/// * **Failed**:导入失败。
/// * **CheckSuccess**:校验通过。
/// * **BackupSuccess**:导入成功。
/// * **Deleted**:已删除。
#[setters(generate = true, strip_option)]
status: Option<String>,
/// 地域ID。可调用DescribeRegions获取。
region_id: String,
/// 通过备注信息查询目标用户备份。
/// >您可输入目标用户备份的部分备注信息进行模糊匹配。
#[setters(generate = true, strip_option)]
comment: Option<String>,
/// 通过用户备份ID查询目标用户备份。
#[setters(generate = true, strip_option)]
backup_id: Option<String>,
/// 通过用户备份文件的OSS下载地址查询目标用户备份。如何获取用户备份文件的OSS下载地址,请参见[上传Object后如何获取访问URL](~~39607~~)。
#[setters(generate = true, strip_option)]
oss_url: Option<String>,
/// 通过标签信息查询目标用户备份。
#[setters(generate = true, strip_option)]
tags: Option<String>,
/// 资源组ID。可调用DescribeDBInstanceAttribute获取。
#[setters(generate = true, strip_option)]
resource_group_id: Option<String>,
}
impl sealed::Bound for ListUserBackupFiles {}
impl ListUserBackupFiles {
pub fn new(region_id: impl Into<String>) -> Self {
Self {
status: None,
region_id: region_id.into(),
comment: None,
backup_id: None,
oss_url: None,
tags: None,
resource_group_id: None,
}
}
}
impl crate::ToFormData for ListUserBackupFiles {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for ListUserBackupFiles {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "ListUserBackupFiles";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<ListUserBackupFilesResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(7);
if let Some(f) = &self.backup_id {
params.push(("BackupId".into(), (f).into()));
}
if let Some(f) = &self.comment {
params.push(("Comment".into(), (f).into()));
}
if let Some(f) = &self.oss_url {
params.push(("OssUrl".into(), (f).into()));
}
params.push(("RegionId".into(), (&self.region_id).into()));
if let Some(f) = &self.resource_group_id {
params.push(("ResourceGroupId".into(), (f).into()));
}
if let Some(f) = &self.status {
params.push(("Status".into(), (f).into()));
}
if let Some(f) = &self.tags {
params.push(("Tags".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于将自建库MySQL 5.7的备份数据导入至RDS。
///
/// Argument of [Connection::import_user_backup_file()], returns [ImportUserBackupFileResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct ImportUserBackupFile {
/// RDS地域ID。可调用DescribeRegions获取。
///
/// > * 本参数的值为您希望创建RDS实例的地域ID。
/// > * 需要和**BucketRegion**参数的值保持一致。
region_id: String,
/// 导入模式,取值说明:
///
/// - oss:从OSS下载备份导入。
/// - stream:通过网络导入备份。
#[setters(generate = true, strip_option)]
mode: Option<FileMode>,
/// MySQL数据库的版本号。当前支持传入**5.7**或**8.0**。
#[setters(generate = true, strip_option)]
engine_version: Option<String>,
/// 自建MySQL 5.7备份文件所在OSS Bucket的地域ID。可调用DescribeRegions获取。
#[setters(generate = true, strip_option)]
bucket_region: Option<String>,
/// 描述OSS Bucket中备份文件信息的JSON数组。示例:
/// `{"Bucket":"test", "Object":"test/test_db_employees.xb","Location":"ap-southeast-1"}`
///
/// 数组中各参数的说明如下:
/// * **Bucket**:备份文件所在OSS Bucket的名称。可调用[GetBucket](~~31965~~)获取。
/// * **Object**:备份文件所在目录的详细路径。可调用[GetObject](~~31980~~)获取。
/// * **Location**:OSS Bucket所在地域的ID。可调用[GetBucketLocation](~~31967~~)获取。
#[setters(generate = true, strip_option)]
backup_file: Option<String>,
/// 要导入的用户备份的备注信息。
#[setters(generate = true, strip_option)]
comment: Option<String>,
/// 还原用户备份所需存储空间大小。单位:GB。
///
/// > * 默认为备份文件的5倍大小。
/// > * 最小值为20。
#[setters(generate = true, strip_option)]
restore_size: Option<i32>,
/// 用户备份文件保留时长。单位:天。取值为大于**0**的Integer类型整数。
#[setters(generate = true, strip_option)]
retention: Option<i32>,
/// 可用区ID。可调用DescribeRegions查询。
///
/// > * 设置可用区后,系统会在该可用区内创建一个秒级快照,大幅节省备份导入所需要的时间。
/// > * 调用CreateDBInstance使用用户备份创建新实例时,该可用区即为新实例所在的可用区。
#[setters(generate = true, strip_option)]
zone_id: Option<String>,
/// 资源组ID。可调用DescribeDBInstanceAttribute获取。
#[setters(generate = true, strip_option)]
resource_group_id: Option<String>,
/// 实例ID。
#[setters(generate = true, strip_option)]
db_instance_id: Option<String>,
/// 提供全量备份的源端信息的JSON数组(大小写敏感)。示例:
///
/// ```ignore
/// {"sourceIp":"172.20.xx
/// .xx","sourcePort":"9999"}
///
/// ```
///
/// 数组中各参数的说明如下:
///
/// - `sourceIp`:源端IP。
///
/// - `sourcePort`:源端Netcat监听的端口。
///
/// > 仅对原生复制实例生效,需要在调用API时传入`DBInstanceId`参数。
#[setters(generate = true, strip_option)]
source_info: Option<String>,
/// 是否自动搭建复制,取值说明:
/// - true:是,`MasterInfo`参数必填。
/// - false:否。
///
/// > 仅对原生复制实例生效,需要在调用API时传入`DBInstanceId`参数。
#[setters(generate = true, strip_option)]
build_replication: Option<bool>,
/// 搭建MySQL复制的Master信息的JSON数组(大小写敏感)。示例:
///
/// ```ignore
/// {"masterIp":"172.20.xx.xx","masterPort":"3306","masterUser":"replica","masterPassword":"W33uopkehBQ="}
///
/// ```
///
/// 数组中各参数的说明如下:
/// - `masterIp`:主库IP。
/// - `masterPort`:主库端口。
/// - `masterUser`:主库复制账号。
/// - `masterPassword`:主库复制账号密码,需要进行Base64加密。
///
/// > 仅对原生复制实例生效,需要在调用API时传入`DBInstanceId`参数。
#[setters(generate = true, strip_option)]
master_info: Option<String>,
}
impl sealed::Bound for ImportUserBackupFile {}
impl ImportUserBackupFile {
pub fn new(region_id: impl Into<String>) -> Self {
Self {
region_id: region_id.into(),
mode: None,
engine_version: None,
bucket_region: None,
backup_file: None,
comment: None,
restore_size: None,
retention: None,
zone_id: None,
resource_group_id: None,
db_instance_id: None,
source_info: None,
build_replication: None,
master_info: None,
}
}
}
impl crate::ToFormData for ImportUserBackupFile {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for ImportUserBackupFile {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "ImportUserBackupFile";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<ImportUserBackupFileResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(14);
if let Some(f) = &self.backup_file {
params.push(("BackupFile".into(), (f).into()));
}
if let Some(f) = &self.bucket_region {
params.push(("BucketRegion".into(), (f).into()));
}
if let Some(f) = &self.build_replication {
params.push(("BuildReplication".into(), (f).into()));
}
if let Some(f) = &self.comment {
params.push(("Comment".into(), (f).into()));
}
if let Some(f) = &self.db_instance_id {
params.push(("DBInstanceId".into(), (f).into()));
}
if let Some(f) = &self.engine_version {
params.push(("EngineVersion".into(), (f).into()));
}
if let Some(f) = &self.master_info {
params.push(("MasterInfo".into(), (f).into()));
}
if let Some(f) = &self.mode {
params.push(("Mode".into(), (f).into()));
}
params.push(("RegionId".into(), (&self.region_id).into()));
if let Some(f) = &self.resource_group_id {
params.push(("ResourceGroupId".into(), (f).into()));
}
if let Some(f) = &self.restore_size {
params.push(("RestoreSize".into(), (f).into()));
}
if let Some(f) = &self.retention {
params.push(("Retention".into(), (f).into()));
}
if let Some(f) = &self.source_info {
params.push(("SourceInfo".into(), (f).into()));
}
if let Some(f) = &self.zone_id {
params.push(("ZoneId".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于将OSS上的自建SQL Server备份文件还原到RDS SQL Server实例,实现数据上云。
///
/// Argument of [Connection::create_migrate_task()], returns [CreateMigrateTaskResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct CreateMigrateTask {
/// 实例ID。可调用DescribeDBInstances获取。
db_instance_id: String,
/// 目标数据库名称。
db_name: String,
/// 迁移上云任务类型,取值:
/// * **FULL**:通过全量备份文件执行还原操作,适用于首次迁移或完整数据恢复的场景。
/// * **UPDF**:通过增量备份文件或日志文件还原增量数据,适用于已有全量备份的基础上进行增量同步的场景。
backup_mode: TaskBackupMode,
/// 是否将还原后的数据库带上线,便于用户访问,取值:
///
/// * **True**:将数据库带上线。
/// * **False**:不将数据库带上线。
///
/// > * SQL Server 2008 R2版本该值恒定为True。
/// > * **IsOnlineDB**=**True**时,**BackupMode**必须为**FULL**。
/// > * **IsOnlineDB**=**False**时,**BackupMode**必须为**UPDF**。
is_online_db: String,
/// 打开数据库后的一致性检查方法,仅当IsOnlineDB=True时生效。取值:
///
/// - **SyncExecuteDBCheck**:同步执行DB检查,适用于对数据一致性要求较高的场景。
/// - **AsyncExecuteDBCheck**:异步执行DB检查,性能更高,但可能延迟发现潜在问题。
///
/// 默认值为**AsyncExecuteDBCheck**(兼容SQL Server 2008 R2)。
#[setters(generate = true, strip_option)]
check_db_mode: Option<String>,
/// OSS文件的组成部分,由以下三部分组成,并用英文冒号(:)分隔:
/// - **OSS Endpoint地址**:oss-ap-southeast-1.aliyuncs.com。
/// - **OSS Bucket名称**:rdsmssqlsingapore。
/// - **OSS上的备份文件名**:autotest_2008R2_TestMigration_FULL.bak。
///
/// > 对于SQL Server 2008 R2以上版本,必须传入该参数。
#[setters(generate = true, strip_option)]
oss_object_positions: Option<String>,
/// 备份文件所在OSS的共享URL地址(Encode编码后的URL)。当存在多个地址时,先使用“|”隔开,再编码后传入参数。
///
/// > SQL Server 2008 R2必须传入该参数。
#[setters(generate = true, strip_option)]
oss_urls: Option<String>,
/// 迁移任务ID,取值:
///
/// - **BackupMode**=**FULL**时,该值为空,无需填写。(兼容SQL Server 2008 R2)。
/// - **BackupMode**=**UPDF**时,该值为对应FULL任务的ID,可调用DescribeMigrateTasks获取。
#[setters(generate = true, strip_option)]
migrate_task_id: Option<String>,
}
impl sealed::Bound for CreateMigrateTask {}
impl CreateMigrateTask {
pub fn new(
db_instance_id: impl Into<String>,
db_name: impl Into<String>,
backup_mode: impl Into<TaskBackupMode>,
is_online_db: impl Into<String>,
) -> Self {
Self {
db_instance_id: db_instance_id.into(),
db_name: db_name.into(),
backup_mode: backup_mode.into(),
is_online_db: is_online_db.into(),
check_db_mode: None,
oss_object_positions: None,
oss_urls: None,
migrate_task_id: None,
}
}
}
impl crate::ToFormData for CreateMigrateTask {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for CreateMigrateTask {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "CreateMigrateTask";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<CreateMigrateTaskResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(8);
params.push(("BackupMode".into(), (&self.backup_mode).into()));
if let Some(f) = &self.check_db_mode {
params.push(("CheckDBMode".into(), (f).into()));
}
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
params.push(("DBName".into(), (&self.db_name).into()));
params.push(("IsOnlineDB".into(), (&self.is_online_db).into()));
if let Some(f) = &self.migrate_task_id {
params.push(("MigrateTaskId".into(), (f).into()));
}
if let Some(f) = &self.oss_urls {
params.push(("OSSUrls".into(), (f).into()));
}
if let Some(f) = &self.oss_object_positions {
params.push(("OssObjectPositions".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于打开RDS SQL Server备份数据上云任务的数据库。
///
/// Argument of [Connection::create_online_database_task()], returns [CreateOnlineDatabaseTaskResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct CreateOnlineDatabaseTask {
/// 用于保证请求的幂等性,防止重复提交请求。由客户端生成该参数值,要保证在不同请求间唯一,最大值不超过64个ASCII字符,且该参数值中不能包含非ASCII字符。
#[setters(generate = true, strip_option)]
client_token: Option<String>,
/// 实例ID。可调用DescribeDBInstances获取。
db_instance_id: String,
/// 数据库名称。
db_name: String,
/// 迁移任务ID。
migrate_task_id: String,
/// 打开数据库后的一致性检查方法,取值:
/// * **SyncExecuteDBCheck**:同步执行DB检查。
/// * **AsyncExecuteDBCheck**:异步执行DB检查。
///
/// >兼容SQL Server 2008 R2版本。
check_db_mode: String,
}
impl sealed::Bound for CreateOnlineDatabaseTask {}
impl CreateOnlineDatabaseTask {
pub fn new(
db_instance_id: impl Into<String>,
db_name: impl Into<String>,
migrate_task_id: impl Into<String>,
check_db_mode: impl Into<String>,
) -> Self {
Self {
client_token: None,
db_instance_id: db_instance_id.into(),
db_name: db_name.into(),
migrate_task_id: migrate_task_id.into(),
check_db_mode: check_db_mode.into(),
}
}
}
impl crate::ToFormData for CreateOnlineDatabaseTask {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for CreateOnlineDatabaseTask {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "CreateOnlineDatabaseTask";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<CreateOnlineDatabaseTaskResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(5);
params.push(("CheckDBMode".into(), (&self.check_db_mode).into()));
if let Some(f) = &self.client_token {
params.push(("ClientToken".into(), (f).into()));
}
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
params.push(("DBName".into(), (&self.db_name).into()));
params.push(("MigrateTaskId".into(), (&self.migrate_task_id).into()));
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于查询RDS SQL Server实例备份数据上云任务列表。
///
/// Argument of [Connection::describe_migrate_tasks()], returns [DescribeMigrateTasksResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DescribeMigrateTasks {
/// 实例ID。可调用DescribeDBInstances获取。
db_instance_id: String,
/// 查询开始时间。格式:<i>yyyy-MM-dd</i>T<i>HH:mm</i>Z(UTC时间)。
start_time: String,
/// 查询结束时间,必须大于开始时间。格式:<i>yyyy-MM-dd</i>T<i>HH:mm</i>Z(UTC时间)。
end_time: String,
/// 每页记录数,取值:**30**~**100**。默认值:**30**。
#[setters(generate = true, strip_option)]
page_size: Option<i32>,
/// 页码,取值:大于0且不超过Integer的最大值。
///
/// 默认值:**1**。
#[setters(generate = true, strip_option)]
page_number: Option<i32>,
/// 资源组ID。
#[setters(generate = true, strip_option)]
resource_group_id: Option<String>,
}
impl sealed::Bound for DescribeMigrateTasks {}
impl DescribeMigrateTasks {
pub fn new(
db_instance_id: impl Into<String>,
start_time: impl Into<String>,
end_time: impl Into<String>,
) -> Self {
Self {
db_instance_id: db_instance_id.into(),
start_time: start_time.into(),
end_time: end_time.into(),
page_size: None,
page_number: None,
resource_group_id: None,
}
}
}
impl crate::ToFormData for DescribeMigrateTasks {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DescribeMigrateTasks {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DescribeMigrateTasks";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DescribeMigrateTasksResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(6);
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
params.push(("EndTime".into(), (&self.end_time).into()));
if let Some(f) = &self.page_number {
params.push(("PageNumber".into(), (f).into()));
}
if let Some(f) = &self.page_size {
params.push(("PageSize".into(), (f).into()));
}
if let Some(f) = &self.resource_group_id {
params.push(("ResourceGroupId".into(), (f).into()));
}
params.push(("StartTime".into(), (&self.start_time).into()));
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于查询RDS SQL Server备份数据上云任务的文件详情。
///
/// Argument of [Connection::describe_oss_downloads()], returns [DescribeOssDownloadsResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DescribeOssDownloads {
/// 实例ID。可通过DescribeDBInstances接口查询。
db_instance_id: String,
/// 迁移任务的ID,可通过DescribeMigrateTasks接口查询。
migrate_task_id: String,
/// 资源组ID。
#[setters(generate = true, strip_option)]
resource_group_id: Option<String>,
}
impl sealed::Bound for DescribeOssDownloads {}
impl DescribeOssDownloads {
pub fn new(db_instance_id: impl Into<String>, migrate_task_id: impl Into<String>) -> Self {
Self {
db_instance_id: db_instance_id.into(),
migrate_task_id: migrate_task_id.into(),
resource_group_id: None,
}
}
}
impl crate::ToFormData for DescribeOssDownloads {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DescribeOssDownloads {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DescribeOssDownloads";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DescribeOssDownloadsResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(3);
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
params.push(("MigrateTaskId".into(), (&self.migrate_task_id).into()));
if let Some(f) = &self.resource_group_id {
params.push(("ResourceGroupId".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于查询SQL Server的某个OSS备份上云任务的信息。
///
/// Argument of [Connection::describe_migrate_task_by_id()], returns [DescribeMigrateTaskByIdResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DescribeMigrateTaskById {
/// 实例ID。可调用DescribeDBInstances获取。
db_instance_id: String,
/// 备份上云任务的ID,可以通过DescribeMigrateTasks接口查询。
migrate_task_id: String,
/// 资源组ID。
#[setters(generate = true, strip_option)]
resource_group_id: Option<String>,
}
impl sealed::Bound for DescribeMigrateTaskById {}
impl DescribeMigrateTaskById {
pub fn new(db_instance_id: impl Into<String>, migrate_task_id: impl Into<String>) -> Self {
Self {
db_instance_id: db_instance_id.into(),
migrate_task_id: migrate_task_id.into(),
resource_group_id: None,
}
}
}
impl crate::ToFormData for DescribeMigrateTaskById {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DescribeMigrateTaskById {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DescribeMigrateTaskById";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DescribeMigrateTaskByIdResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(3);
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
params.push(("MigrateTaskId".into(), (&self.migrate_task_id).into()));
if let Some(f) = &self.resource_group_id {
params.push(("ResourceGroupId".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于终止进行中的RDS SQL Server的备份上云任务。
///
/// Argument of [Connection::terminate_migrate_task()], returns [TerminateMigrateTaskResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct TerminateMigrateTask {
/// RDS SQL Server实例ID。可调用DescribeDBInstances获取。
db_instance_id: String,
/// 备份上云任务的ID,可以通过DescribeMigrateTasks接口查询。
migrate_task_id: String,
}
impl sealed::Bound for TerminateMigrateTask {}
impl TerminateMigrateTask {
pub fn new(db_instance_id: impl Into<String>, migrate_task_id: impl Into<String>) -> Self {
Self {
db_instance_id: db_instance_id.into(),
migrate_task_id: migrate_task_id.into(),
}
}
}
impl crate::ToFormData for TerminateMigrateTask {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for TerminateMigrateTask {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "TerminateMigrateTask";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<TerminateMigrateTaskResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(2);
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
params.push(("MigrateTaskId".into(), (&self.migrate_task_id).into()));
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于将当前RDS SQL Server实例退出所在域。
///
/// Argument of [Connection::delete_ad_setting()], returns [DeleteADSettingResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DeleteADSetting {
/// 用于保证请求的幂等性,防止重复提交请求。由客户端生成该参数值,要保证在不同请求间唯一,最大值不超过64个ASCII字符,且该参数值中不能包含非ASCII字符。
#[setters(generate = true, strip_option)]
client_token: Option<String>,
/// 实例ID。可调用DescribeDBInstances获取。
db_instance_id: String,
/// 地域ID。
region_id: String,
}
impl sealed::Bound for DeleteADSetting {}
impl DeleteADSetting {
pub fn new(db_instance_id: impl Into<String>, region_id: impl Into<String>) -> Self {
Self {
client_token: None,
db_instance_id: db_instance_id.into(),
region_id: region_id.into(),
}
}
}
impl crate::ToFormData for DeleteADSetting {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DeleteADSetting {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DeleteADSetting";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DeleteADSettingResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(3);
if let Some(f) = &self.client_token {
params.push(("ClientToken".into(), (f).into()));
}
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
params.push(("RegionId".into(), (&self.region_id).into()));
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于修改RDS SQL Server实例的AD域信息。
///
/// Argument of [Connection::modify_ad_info()], returns [ModifyADInfoResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct ModifyADInfo {
/// 用于保证请求的幂等性,防止重复提交请求。由客户端生成该参数值,要保证在不同请求间唯一,最大值不超过64个ASCII字符,且该参数值中不能包含非ASCII字符。
#[setters(generate = true, strip_option)]
client_token: Option<String>,
/// 实例ID。可调用DescribeDBInstances获取。
db_instance_id: String,
/// 地域ID。可调用DescribeRegions获取。
region_id: String,
/// AD域的域名(DNS)信息。
#[setters(generate = true, strip_option)]
addns: Option<String>,
/// AD域的IP地址。
#[setters(generate = true, strip_option)]
ad_server_ip_address: Option<String>,
/// AD域的账号。
#[setters(generate = true, strip_option)]
ad_account_name: Option<String>,
/// AD域的密码。
#[setters(generate = true, strip_option)]
ad_password: Option<String>,
}
impl sealed::Bound for ModifyADInfo {}
impl ModifyADInfo {
pub fn new(db_instance_id: impl Into<String>, region_id: impl Into<String>) -> Self {
Self {
client_token: None,
db_instance_id: db_instance_id.into(),
region_id: region_id.into(),
addns: None,
ad_server_ip_address: None,
ad_account_name: None,
ad_password: None,
}
}
}
impl crate::ToFormData for ModifyADInfo {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for ModifyADInfo {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "ModifyADInfo";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<ModifyADInfoResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(7);
if let Some(f) = &self.ad_account_name {
params.push(("ADAccountName".into(), (f).into()));
}
if let Some(f) = &self.addns {
params.push(("ADDNS".into(), (f).into()));
}
if let Some(f) = &self.ad_password {
params.push(("ADPassword".into(), (f).into()));
}
if let Some(f) = &self.ad_server_ip_address {
params.push(("ADServerIpAddress".into(), (f).into()));
}
if let Some(f) = &self.client_token {
params.push(("ClientToken".into(), (f).into()));
}
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
params.push(("RegionId".into(), (&self.region_id).into()));
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于查询当前实例域相关信息, 包括是否已经加入域、域名称、所使用账号等。
///
/// Argument of [Connection::describe_ad_info()], returns [DescribeADInfoResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DescribeADInfo {
/// 用于保证请求的幂等性,防止重复提交请求。由客户端生成该参数值,要保证在不同请求间唯一,最大值不超过64个ASCII字符,且该参数值中不能包含非ASCII字符。
#[setters(generate = true, strip_option)]
client_token: Option<String>,
/// 实例ID。可调用DescribeDBInstances获取。
db_instance_id: String,
/// 地域ID。
region_id: String,
}
impl sealed::Bound for DescribeADInfo {}
impl DescribeADInfo {
pub fn new(db_instance_id: impl Into<String>, region_id: impl Into<String>) -> Self {
Self {
client_token: None,
db_instance_id: db_instance_id.into(),
region_id: region_id.into(),
}
}
}
impl crate::ToFormData for DescribeADInfo {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DescribeADInfo {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DescribeADInfo";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DescribeADInfoResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(3);
if let Some(f) = &self.client_token {
params.push(("ClientToken".into(), (f).into()));
}
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
params.push(("RegionId".into(), (&self.region_id).into()));
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于创建RDS PostgreSQL一键上云前检查任务。
///
/// Argument of [Connection::create_cloud_migration_precheck_task()], returns [CreateCloudMigrationPrecheckTaskResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct CreateCloudMigrationPrecheckTask {
/// 目标实例ID。可调用DescribeDBInstances接口查询。
db_instance_name: String,
/// 自建PostgreSQL数据库的内网IP。
///
/// - ECS自建PostgreSQL数据库一键上云场景,配置ECS实例的私网IP。获取方法请参见[查看IP地址](~~273914~~)。
/// - IDC自建PostgreSQL数据库一键上云场景,配置为IDC的内网IP。
source_ip_address: String,
/// 自建PostgreSQL的端口。可通过`netstat -a | grep PGSQL`命令查看。
source_port: i64,
/// 用户名。[创建迁移账号](~~369500~~)步骤创建的数据库账号。
source_account: String,
/// 密码。[创建迁移账号](~~369500~~)步骤创建的数据库账号的密码。
source_password: String,
/// 任务名称。自定义,未设置时系统自动生成。
#[setters(generate = true, strip_option)]
task_name: Option<String>,
/// 自建PostgreSQL的类型。
///
/// - **idcOnVpc**:线下IDC自建PostgreSQL(IDC与VPC打通)
/// - **ecsOnVpc**:阿里云ECS自建PostgreSQL
source_category: String,
}
impl sealed::Bound for CreateCloudMigrationPrecheckTask {}
impl CreateCloudMigrationPrecheckTask {
pub fn new(
db_instance_name: impl Into<String>,
source_ip_address: impl Into<String>,
source_port: impl Into<i64>,
source_account: impl Into<String>,
source_password: impl Into<String>,
source_category: impl Into<String>,
) -> Self {
Self {
db_instance_name: db_instance_name.into(),
source_ip_address: source_ip_address.into(),
source_port: source_port.into(),
source_account: source_account.into(),
source_password: source_password.into(),
task_name: None,
source_category: source_category.into(),
}
}
}
impl crate::ToFormData for CreateCloudMigrationPrecheckTask {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for CreateCloudMigrationPrecheckTask {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "CreateCloudMigrationPrecheckTask";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<CreateCloudMigrationPrecheckTaskResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(7);
params.push(("DBInstanceName".into(), (&self.db_instance_name).into()));
params.push(("SourceAccount".into(), (&self.source_account).into()));
params.push(("SourceCategory".into(), (&self.source_category).into()));
params.push(("SourceIpAddress".into(), (&self.source_ip_address).into()));
params.push(("SourcePassword".into(), (&self.source_password).into()));
params.push(("SourcePort".into(), (&self.source_port).into()));
if let Some(f) = &self.task_name {
params.push(("TaskName".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于创建RDS PostgreSQL迁移上云任务。
///
/// Argument of [Connection::create_cloud_migration_task()], returns [CreateCloudMigrationTaskResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct CreateCloudMigrationTask {
/// 目标实例ID。可调用DescribeDBInstances接口查询。
db_instance_name: String,
/// 自建PostgreSQL数据库的内网IP或公网IP。
///
/// - ECS自建PostgreSQL数据库一键上云场景,配置ECS实例的私网IP。获取方法请参见[查看IP地址](~~98677~~)。
/// - IDC自建PostgreSQL数据库一键上云场景,配置为IDC的内网IP。
source_ip_address: String,
/// 自建PostgreSQL数据库的端口。可通过`netstat -a | grep PGSQL`命令查看。
source_port: i64,
/// 用户名。[创建迁移账号](~~369500~~)步骤创建的数据库账号。
source_account: String,
/// 密码。[创建迁移账号](~~369500~~)步骤创建的数据库账号的密码。
source_password: String,
/// 任务名称。自定义,未设置时系统自动生成。
#[setters(generate = true, strip_option)]
task_name: Option<String>,
/// 源实例类别。
///
/// - **aliyunRDS**:阿里云RDS实例。
/// - **other**:其他。
source_category: String,
}
impl sealed::Bound for CreateCloudMigrationTask {}
impl CreateCloudMigrationTask {
pub fn new(
db_instance_name: impl Into<String>,
source_ip_address: impl Into<String>,
source_port: impl Into<i64>,
source_account: impl Into<String>,
source_password: impl Into<String>,
source_category: impl Into<String>,
) -> Self {
Self {
db_instance_name: db_instance_name.into(),
source_ip_address: source_ip_address.into(),
source_port: source_port.into(),
source_account: source_account.into(),
source_password: source_password.into(),
task_name: None,
source_category: source_category.into(),
}
}
}
impl crate::ToFormData for CreateCloudMigrationTask {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for CreateCloudMigrationTask {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "CreateCloudMigrationTask";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<CreateCloudMigrationTaskResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(7);
params.push(("DBInstanceName".into(), (&self.db_instance_name).into()));
params.push(("SourceAccount".into(), (&self.source_account).into()));
params.push(("SourceCategory".into(), (&self.source_category).into()));
params.push(("SourceIpAddress".into(), (&self.source_ip_address).into()));
params.push(("SourcePassword".into(), (&self.source_password).into()));
params.push(("SourcePort".into(), (&self.source_port).into()));
if let Some(f) = &self.task_name {
params.push(("TaskName".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于查询一键上云前检查报告详细信息。
///
/// Argument of [Connection::describe_cloud_migration_precheck_result()], returns [DescribeCloudMigrationPrecheckResultResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DescribeCloudMigrationPrecheckResult {
/// 目标实例ID。可调用DescribeDBInstances接口查询。
db_instance_name: String,
/// 任务ID。调用CreateCloudMigrationPrecheckTask接口创建一键上云前检查任务时响应消息中获取。
#[setters(generate = true, strip_option)]
task_id: Option<i64>,
/// 任务名称。调用CreateCloudMigrationPrecheckTask接口创建一键上云前检查任务时响应消息中获取
#[setters(generate = true, strip_option)]
task_name: Option<String>,
/// 自建PostgreSQL数据库的内网IP或公网IP。
///
/// - ECS自建PostgreSQL数据库一键上云场景,配置ECS实例的私网IP。获取方法请参见[查看IP地址](~~273914~~)。
/// - IDC自建PostgreSQL数据库一键上云场景,配置为IDC的内网IP。
#[setters(generate = true, strip_option)]
source_ip_address: Option<String>,
/// 自建PostgreSQL数据库的端口。可通过netstat -a | grep PGSQL命令查看。
#[setters(generate = true, strip_option)]
source_port: Option<i64>,
/// 每页记录数,取值:**30**~**100**。
/// 默认值:30。
page_size: i64,
/// 页码,取值:大于0且不超过Integer的最大值。默认值:**1**。
page_number: i64,
}
impl sealed::Bound for DescribeCloudMigrationPrecheckResult {}
impl DescribeCloudMigrationPrecheckResult {
pub fn new(
db_instance_name: impl Into<String>,
page_size: impl Into<i64>,
page_number: impl Into<i64>,
) -> Self {
Self {
db_instance_name: db_instance_name.into(),
task_id: None,
task_name: None,
source_ip_address: None,
source_port: None,
page_size: page_size.into(),
page_number: page_number.into(),
}
}
}
impl crate::ToFormData for DescribeCloudMigrationPrecheckResult {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DescribeCloudMigrationPrecheckResult {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DescribeCloudMigrationPrecheckResult";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DescribeCloudMigrationPrecheckResultResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(7);
params.push(("DBInstanceName".into(), (&self.db_instance_name).into()));
params.push(("PageNumber".into(), (&self.page_number).into()));
params.push(("PageSize".into(), (&self.page_size).into()));
if let Some(f) = &self.source_ip_address {
params.push(("SourceIpAddress".into(), (f).into()));
}
if let Some(f) = &self.source_port {
params.push(("SourcePort".into(), (f).into()));
}
if let Some(f) = &self.task_id {
params.push(("TaskId".into(), (f).into()));
}
if let Some(f) = &self.task_name {
params.push(("TaskName".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于查询RDS PostgreSQL迁移上云任务详情。
///
/// Argument of [Connection::describe_cloud_migration_result()], returns [DescribeCloudMigrationResultResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DescribeCloudMigrationResult {
/// 目标实例ID。可调用DescribeDBInstances接口查询。
db_instance_name: String,
/// 任务ID。调用CreateCloudMigrationTask接口创建RDS PostgreSQL迁移上云任务时响应消息中获取。
#[setters(generate = true, strip_option)]
task_id: Option<i64>,
/// 任务名称。调用CreateCloudMigrationTask接口创建RDS PostgreSQL迁移上云任务时响应消息中获取。
#[setters(generate = true, strip_option)]
task_name: Option<String>,
/// 自建PostgreSQL数据库的内网IP。
///
/// - ECS自建PostgreSQL数据库一键上云场景,配置ECS实例的私网IP。获取方法请参见[查看IP地址](~~273914~~)。
/// - IDC自建PostgreSQL数据库一键上云场景,配置为IDC的内网IP。
#[setters(generate = true, strip_option)]
source_ip_address: Option<String>,
/// 自建PostgreSQL数据库的端口。可通过netstat -a | grep PGSQL命令查看。
#[setters(generate = true, strip_option)]
source_port: Option<i64>,
/// 页数。
page_number: i64,
/// 每页最大记录数。
page_size: i64,
}
impl sealed::Bound for DescribeCloudMigrationResult {}
impl DescribeCloudMigrationResult {
pub fn new(
db_instance_name: impl Into<String>,
page_number: impl Into<i64>,
page_size: impl Into<i64>,
) -> Self {
Self {
db_instance_name: db_instance_name.into(),
task_id: None,
task_name: None,
source_ip_address: None,
source_port: None,
page_number: page_number.into(),
page_size: page_size.into(),
}
}
}
impl crate::ToFormData for DescribeCloudMigrationResult {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DescribeCloudMigrationResult {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DescribeCloudMigrationResult";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DescribeCloudMigrationResultResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(7);
params.push(("DBInstanceName".into(), (&self.db_instance_name).into()));
params.push(("PageNumber".into(), (&self.page_number).into()));
params.push(("PageSize".into(), (&self.page_size).into()));
if let Some(f) = &self.source_ip_address {
params.push(("SourceIpAddress".into(), (f).into()));
}
if let Some(f) = &self.source_port {
params.push(("SourcePort".into(), (f).into()));
}
if let Some(f) = &self.task_id {
params.push(("TaskId".into(), (f).into()));
}
if let Some(f) = &self.task_name {
params.push(("TaskName".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于执行RDS PostgreSQL上云切换,将RDS PostgreSQL提升为主库,正式提供服务。
///
/// Argument of [Connection::activate_migration_target_instance()], returns [ActivateMigrationTargetInstanceResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct ActivateMigrationTargetInstance {
/// 目标实例ID。可调用DescribeDBInstances接口查询。
db_instance_name: String,
/// 预留参数,暂不生效。
#[setters(generate = true, strip_option)]
switch_time: Option<String>,
/// 切换上云时间模式。
///
/// 固定配置为0,表示立即切换。
#[setters(generate = true, strip_option)]
switch_time_mode: Option<String>,
/// 固定配置为1,表示强制切换。
#[setters(generate = true, strip_option)]
force_switch: Option<String>,
}
impl sealed::Bound for ActivateMigrationTargetInstance {}
impl ActivateMigrationTargetInstance {
pub fn new(db_instance_name: impl Into<String>) -> Self {
Self {
db_instance_name: db_instance_name.into(),
switch_time: None,
switch_time_mode: None,
force_switch: None,
}
}
}
impl crate::ToFormData for ActivateMigrationTargetInstance {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for ActivateMigrationTargetInstance {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "ActivateMigrationTargetInstance";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<ActivateMigrationTargetInstanceResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(4);
params.push(("DBInstanceName".into(), (&self.db_instance_name).into()));
if let Some(f) = &self.force_switch {
params.push(("ForceSwitch".into(), (f).into()));
}
if let Some(f) = &self.switch_time {
params.push(("SwitchTime".into(), (f).into()));
}
if let Some(f) = &self.switch_time_mode {
params.push(("SwitchTimeMode".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于创建RDS全球多活数据库集群。
///
/// Argument of [Connection::create_gad_instance()], returns [CreateGADInstanceResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct CreateGADInstance {
/// 中心节点所在地域ID,可调用DescribeRegions查询。
central_region_id: String,
/// 主实例ID,可调用DescribeDBInstances获取。该实例将作为RDS全球多活数据库集群的中心节点(主节点)。
///
/// > * 一个主实例ID仅能作为一个RDS全球多活数据库集群的中心节点。
/// > * 当前仅华东1(杭州)、华东2(上海) 、华北1(青岛)、华北2(北京)、华北3(张家口)、华南1(深圳)、西南1(成都)地域中的RDS MySQL主实例可作为RDS全球多活数据库集群的中心节点。
central_db_instance_id: String,
/// 中心节点中数据库信息的JSON数组,该数组中所有数据库信息将同步至当前单元节点(备节点)。参数说明:
/// * **name**:数据库名称。
/// * **all**:是否同步当前库或表中的所有数据。取值:**true**|**false**
/// * **Table**:表名称。若**all**参数为**false**,则还需要在JSON数组中套入需要同步的表名称。
///
/// 示例:`{
/// "testdb": {
/// "name": "testdb",
/// "all": false,
/// "Table": {
/// "order": {
/// "name": "order",
/// "all": true
/// },
/// "ordernew": {
/// "name": "ordernew",
/// "all": true
/// }
/// }
/// }
/// }`
db_list: String,
/// RDS全球多活数据库集群的名称。
#[setters(generate = true, strip_option)]
description: Option<String>,
/// 单元节点信息。
unit_node: Vec<InstanceUnitNode>,
/// 中心节点的高权限账号,可调用DescribeAccounts查询。
central_rds_dts_admin_account: String,
/// 中心节点的高权限账号对应的密码。
central_rds_dts_admin_password: String,
/// 标签列表。
#[setters(generate = true, strip_option)]
tag: Option<Vec<DInstanceTag>>,
/// 资源组ID。
#[setters(generate = true, strip_option)]
resource_group_id: Option<String>,
}
impl sealed::Bound for CreateGADInstance {}
impl CreateGADInstance {
pub fn new(
central_region_id: impl Into<String>,
central_db_instance_id: impl Into<String>,
db_list: impl Into<String>,
unit_node: impl Into<Vec<InstanceUnitNode>>,
central_rds_dts_admin_account: impl Into<String>,
central_rds_dts_admin_password: impl Into<String>,
) -> Self {
Self {
central_region_id: central_region_id.into(),
central_db_instance_id: central_db_instance_id.into(),
db_list: db_list.into(),
description: None,
unit_node: unit_node.into(),
central_rds_dts_admin_account: central_rds_dts_admin_account.into(),
central_rds_dts_admin_password: central_rds_dts_admin_password.into(),
tag: None,
resource_group_id: None,
}
}
}
impl crate::ToFormData for CreateGADInstance {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for CreateGADInstance {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "CreateGADInstance";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<CreateGADInstanceResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(9);
params.push((
"CentralDBInstanceId".into(),
(&self.central_db_instance_id).into(),
));
params.push((
"CentralRdsDtsAdminAccount".into(),
(&self.central_rds_dts_admin_account).into(),
));
params.push((
"CentralRdsDtsAdminPassword".into(),
(&self.central_rds_dts_admin_password).into(),
));
params.push(("CentralRegionId".into(), (&self.central_region_id).into()));
params.push(("DBList".into(), (&self.db_list).into()));
if let Some(f) = &self.description {
params.push(("Description".into(), (f).into()));
}
if let Some(f) = &self.resource_group_id {
params.push(("ResourceGroupId".into(), (f).into()));
}
if let Some(f) = &self.tag {
crate::FlatSerialize::flat_serialize(f, "Tag", &mut params);
}
crate::FlatSerialize::flat_serialize(&self.unit_node, "UnitNode", &mut params);
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于在RDS全球多活数据库集群中添加节点。
///
/// Argument of [Connection::create_gad_instance_member()], returns [CreateGadInstanceMemberResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct CreateGadInstanceMember {
/// 中心节点(主节点)所在地域ID,可调用DescribeRegions查询。
central_region_id: String,
/// 中心节点ID,可调用DescribeGadInstances查询。
central_db_instance_id: String,
/// RDS全球多活数据库集群ID,可调用DescribeGadInstances查询。
gad_instance_id: String,
/// 单元节点(备节点)信息列表。
unit_node: Vec<MemberUnitNode>,
/// 中心节点的高权限账号,可调用DescribeAccounts查询。
central_rds_dts_admin_account: String,
/// 中心节点的高权限账号对应的密码。
central_rds_dts_admin_password: String,
/// 中心节点中数据库信息的JSON数组,数组中所有数据库信息将同步至当前单元节点。参数说明:
/// * **name**:数据库名称。
/// * **all**:是否同步当前库或表中的所有数据。取值:**true**|**false**
/// * **Table**:表名称。若**all**参数为**false**,则还需要在JSON数组中套入需要同步的表名称。
///
/// 示例:`{
/// "testdb": {
/// "name": "testdb",
/// "all": false,
/// "Table": {
/// "order": {
/// "name": "order",
/// "all": true
/// },
/// "ordernew": {
/// "name": "ordernew",
/// "all": true
/// }
/// }
/// }
/// }`
/// > 更多信息,请参见[迁移、同步或订阅对象说明](~~209545~~)。
db_list: String,
}
impl sealed::Bound for CreateGadInstanceMember {}
impl CreateGadInstanceMember {
pub fn new(
central_region_id: impl Into<String>,
central_db_instance_id: impl Into<String>,
gad_instance_id: impl Into<String>,
unit_node: impl Into<Vec<MemberUnitNode>>,
central_rds_dts_admin_account: impl Into<String>,
central_rds_dts_admin_password: impl Into<String>,
db_list: impl Into<String>,
) -> Self {
Self {
central_region_id: central_region_id.into(),
central_db_instance_id: central_db_instance_id.into(),
gad_instance_id: gad_instance_id.into(),
unit_node: unit_node.into(),
central_rds_dts_admin_account: central_rds_dts_admin_account.into(),
central_rds_dts_admin_password: central_rds_dts_admin_password.into(),
db_list: db_list.into(),
}
}
}
impl crate::ToFormData for CreateGadInstanceMember {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for CreateGadInstanceMember {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "CreateGadInstanceMember";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<CreateGadInstanceMemberResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(7);
params.push((
"CentralDBInstanceId".into(),
(&self.central_db_instance_id).into(),
));
params.push((
"CentralRdsDtsAdminAccount".into(),
(&self.central_rds_dts_admin_account).into(),
));
params.push((
"CentralRdsDtsAdminPassword".into(),
(&self.central_rds_dts_admin_password).into(),
));
params.push(("CentralRegionId".into(), (&self.central_region_id).into()));
params.push(("DBList".into(), (&self.db_list).into()));
params.push(("GadInstanceId".into(), (&self.gad_instance_id).into()));
crate::FlatSerialize::flat_serialize(&self.unit_node, "UnitNode", &mut params);
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于删除RDS全球多活数据库集群。
///
/// Argument of [Connection::delete_gad_instance()], returns [DeleteGadInstanceResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DeleteGadInstance {
/// 需要删除的RDS全球多活数据库集群ID。可调用DescribeGadInstances查询。
gad_instance_name: String,
/// 集群中心节点(主节点)所在的地域ID。可调用DescribeGadInstances查询。
#[setters(generate = true, strip_option)]
region_id: Option<String>,
/// 资源组ID。可调用DescribeDBInstanceAttribute接口获取。
#[setters(generate = true, strip_option)]
resource_group_id: Option<String>,
}
impl sealed::Bound for DeleteGadInstance {}
impl DeleteGadInstance {
pub fn new(gad_instance_name: impl Into<String>) -> Self {
Self {
gad_instance_name: gad_instance_name.into(),
region_id: None,
resource_group_id: None,
}
}
}
impl crate::ToFormData for DeleteGadInstance {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DeleteGadInstance {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DeleteGadInstance";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DeleteGadInstanceResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(3);
params.push(("GadInstanceName".into(), (&self.gad_instance_name).into()));
if let Some(f) = &self.region_id {
params.push(("RegionId".into(), (f).into()));
}
if let Some(f) = &self.resource_group_id {
params.push(("ResourceGroupId".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于移除RDS全球多活数据库集群中的单元节点。
///
/// Argument of [Connection::detach_gad_instance_member()], returns [DetachGadInstanceMemberResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DetachGadInstanceMember {
/// 全球多活数据库集群ID。
gad_instance_name: String,
/// 集群中心节点所在的地域ID。可调用DescribeGadInstances查询。
#[setters(generate = true, strip_option)]
region_id: Option<String>,
/// 需要移除的单元节点的RDS实例ID,可调用DescribeGadInstances查询。
member_instance_name: String,
/// 资源组ID。可调用DescribeDBInstanceAttribute获取。
#[setters(generate = true, strip_option)]
resource_group_id: Option<String>,
}
impl sealed::Bound for DetachGadInstanceMember {}
impl DetachGadInstanceMember {
pub fn new(
gad_instance_name: impl Into<String>,
member_instance_name: impl Into<String>,
) -> Self {
Self {
gad_instance_name: gad_instance_name.into(),
region_id: None,
member_instance_name: member_instance_name.into(),
resource_group_id: None,
}
}
}
impl crate::ToFormData for DetachGadInstanceMember {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DetachGadInstanceMember {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DetachGadInstanceMember";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DetachGadInstanceMemberResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(4);
params.push(("GadInstanceName".into(), (&self.gad_instance_name).into()));
params.push((
"MemberInstanceName".into(),
(&self.member_instance_name).into(),
));
if let Some(f) = &self.region_id {
params.push(("RegionId".into(), (f).into()));
}
if let Some(f) = &self.resource_group_id {
params.push(("ResourceGroupId".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于查询RDS MySQL全球多活数据库集群列表或目标集群的详细信息。
///
/// Argument of [Connection::describe_gad_instances()], returns [DescribeGadInstancesResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DescribeGadInstances {
/// RDS全球多活数据库集群ID。
/// * 不传入该参数返回当前账号下的所有集群ID。
/// * 传入该参数返回目标集群的详细信息。
///
///
/// >您可在第一次调用时不传入此参数获取当前账号下的所有集群ID,再通过传入集群ID查看该集群的详情。
#[setters(generate = true, strip_option)]
gad_instance_name: Option<String>,
/// 地域ID,可调用DescribeRegions查询。
#[setters(generate = true, strip_option)]
region_id: Option<String>,
/// 资源组ID。
#[setters(generate = true, strip_option)]
resource_group_id: Option<String>,
}
impl sealed::Bound for DescribeGadInstances {}
impl DescribeGadInstances {
pub fn new() -> Self {
Self {
gad_instance_name: None,
region_id: None,
resource_group_id: None,
}
}
}
impl crate::ToFormData for DescribeGadInstances {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DescribeGadInstances {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DescribeGadInstances";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DescribeGadInstancesResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(3);
if let Some(f) = &self.gad_instance_name {
params.push(("GadInstanceName".into(), (f).into()));
}
if let Some(f) = &self.region_id {
params.push(("RegionId".into(), (f).into()));
}
if let Some(f) = &self.resource_group_id {
params.push(("ResourceGroupId".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于将RDS MySQL主实例切换成灾备实例,将灾备实例切换成主实例。
///
/// Argument of [Connection::receive_db_instance()], returns [ReceiveDBInstanceResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct ReceiveDBInstance {
/// 主实例ID。可调用[DescribeDBInstances](~~26232~~)获取。
db_instance_id: String,
/// 灾备实例ID。可调用[DescribeDBInstances](~~26232~~)获取。
guard_db_instance_id: String,
}
impl sealed::Bound for ReceiveDBInstance {}
impl ReceiveDBInstance {
pub fn new(db_instance_id: impl Into<String>, guard_db_instance_id: impl Into<String>) -> Self {
Self {
db_instance_id: db_instance_id.into(),
guard_db_instance_id: guard_db_instance_id.into(),
}
}
}
impl crate::ToFormData for ReceiveDBInstance {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for ReceiveDBInstance {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "ReceiveDBInstance";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<ReceiveDBInstanceResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(2);
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
params.push((
"GuardDBInstanceId".into(),
(&self.guard_db_instance_id).into(),
));
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于为指定的RDS实例创建并绑定标签。
///
/// Argument of [Connection::tag_resources()], returns [TagResourcesResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct TagResources {
/// 地域ID。通过[DescribeRegions](~~610399~~)接口获取。
region_id: String,
/// 资源类型定义。取值:
///
/// - **INSTANCE**:普通RDS实例。
/// - **CUSTOM**:RDS Custom实例。
/// - **CUSTOMDEPLOYMENTSET**:RDS Custom部署集。
/// - **CUSTOMDISK**:RDS Custom云盘。
/// - **CUSTOMSNAPSHOT**:RDS Custom快照。
resource_type: String,
/// 实例ID。
resource_id: Vec<String>,
/// 标签列表。
#[setters(generate = true, strip_option)]
tag: Option<Vec<TagResourcesTag>>,
}
impl sealed::Bound for TagResources {}
impl TagResources {
pub fn new(
region_id: impl Into<String>,
resource_type: impl Into<String>,
resource_id: impl Into<Vec<String>>,
) -> Self {
Self {
region_id: region_id.into(),
resource_type: resource_type.into(),
resource_id: resource_id.into(),
tag: None,
}
}
}
impl crate::ToFormData for TagResources {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for TagResources {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "TagResources";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<TagResourcesResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(4);
params.push(("RegionId".into(), (&self.region_id).into()));
crate::FlatSerialize::flat_serialize(&self.resource_id, "ResourceId", &mut params);
params.push(("ResourceType".into(), (&self.resource_type).into()));
if let Some(f) = &self.tag {
crate::FlatSerialize::flat_serialize(f, "Tag", &mut params);
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于为实例绑定标签。
///
/// Argument of [Connection::add_tags_to_resource()], returns [AddTagsToResourceResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct AddTagsToResource {
/// 用于保证请求的幂等性,防止重复提交请求。由客户端生成该参数值,要保证在不同请求间唯一,最大值不超过64个ASCII字符,且该参数值中不能包含非ASCII字符。
#[setters(generate = true, strip_option)]
client_token: Option<String>,
/// 代理模式ID。
#[setters(generate = true, strip_option)]
proxy_id: Option<String>,
/// 地域ID,可以通过接口DescribeRegions查看可用的地域ID。
region_id: String,
/// 实例ID。
/// >支持传入最多30个实例ID进行批量操作,用英文逗号(,)隔开。
db_instance_id: String,
/// 需要绑定的Tag列表,包括TagKey和TagValue。单次最多支持传入5组值,格式:{"key1":"value1","key2":"value2"...}。
/// >TagKey不能为空,TagValue可以为空。
#[setters(generate = true, strip_option)]
tags: Option<String>,
/// 当前第一组key。需要绑定的Tag,包括TagKey和TagValue,单次最多支持传入5组值。TagKey不能为空,TagValue可以为空。
#[setters(generate = true, strip_option)]
tag1_key: Option<String>,
/// 当前第二组key。需要绑定的Tag,包括TagKey和TagValue,单次最多支持传入5组值。TagKey不能为空,TagValue可以为空。
#[setters(generate = true, strip_option)]
tag2_key: Option<String>,
/// 当前第三组key。需要绑定的Tag,包括TagKey和TagValue,单次最多支持传入5组值。TagKey不能为空,TagValue可以为空。
#[setters(generate = true, strip_option)]
tag3_key: Option<String>,
/// 当前第四组key。需要绑定的Tag,包括TagKey和TagValue,单次最多支持传入5组值。TagKey不能为空,TagValue可以为空。
#[setters(generate = true, strip_option)]
tag4_key: Option<String>,
/// 当前第五组key。需要绑定的Tag,包括TagKey和TagValue,单次最多支持传入5组值。TagKey不能为空,TagValue可以为空。
#[setters(generate = true, strip_option)]
tag5_key: Option<String>,
/// 当前第一组value。需要绑定的Tag,包括TagKey和TagValue,单次最多支持传入5组值。TagKey不能为空,TagValue可以为空。
#[setters(generate = true, strip_option)]
tag1_value: Option<String>,
/// 当前第二组value。需要绑定的Tag,包括TagKey和TagValue,单次最多支持传入5组值。TagKey不能为空,TagValue可以为空。
#[setters(generate = true, strip_option)]
tag2_value: Option<String>,
/// 当前第三组value。需要绑定的Tag,包括TagKey和TagValue,单次最多支持传入5组值。TagKey不能为空,TagValue可以为空。
#[setters(generate = true, strip_option)]
tag3_value: Option<String>,
/// 当前第四组value。需要绑定的Tag,包括TagKey和TagValue,单次最多支持传入5组值。TagKey不能为空,TagValue可以为空。
#[setters(generate = true, strip_option)]
tag4_value: Option<String>,
/// 当前第五组value。需要绑定的Tag,包括TagKey和TagValue,单次最多支持传入5组值。TagKey不能为空,TagValue可以为空。
#[setters(generate = true, strip_option)]
tag5_value: Option<String>,
/// 资源组ID。
#[setters(generate = true, strip_option)]
resource_group_id: Option<String>,
}
impl sealed::Bound for AddTagsToResource {}
impl AddTagsToResource {
pub fn new(region_id: impl Into<String>, db_instance_id: impl Into<String>) -> Self {
Self {
client_token: None,
proxy_id: None,
region_id: region_id.into(),
db_instance_id: db_instance_id.into(),
tags: None,
tag1_key: None,
tag2_key: None,
tag3_key: None,
tag4_key: None,
tag5_key: None,
tag1_value: None,
tag2_value: None,
tag3_value: None,
tag4_value: None,
tag5_value: None,
resource_group_id: None,
}
}
}
impl crate::ToFormData for AddTagsToResource {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for AddTagsToResource {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "AddTagsToResource";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<AddTagsToResourceResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(16);
if let Some(f) = &self.client_token {
params.push(("ClientToken".into(), (f).into()));
}
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
params.push(("RegionId".into(), (&self.region_id).into()));
if let Some(f) = &self.resource_group_id {
params.push(("ResourceGroupId".into(), (f).into()));
}
if let Some(f) = &self.tag1_key {
params.push(("Tag.1.key".into(), (f).into()));
}
if let Some(f) = &self.tag1_value {
params.push(("Tag.1.value".into(), (f).into()));
}
if let Some(f) = &self.tag2_key {
params.push(("Tag.2.key".into(), (f).into()));
}
if let Some(f) = &self.tag2_value {
params.push(("Tag.2.value".into(), (f).into()));
}
if let Some(f) = &self.tag3_key {
params.push(("Tag.3.key".into(), (f).into()));
}
if let Some(f) = &self.tag3_value {
params.push(("Tag.3.value".into(), (f).into()));
}
if let Some(f) = &self.tag4_key {
params.push(("Tag.4.key".into(), (f).into()));
}
if let Some(f) = &self.tag4_value {
params.push(("Tag.4.value".into(), (f).into()));
}
if let Some(f) = &self.tag5_key {
params.push(("Tag.5.key".into(), (f).into()));
}
if let Some(f) = &self.tag5_value {
params.push(("Tag.5.value".into(), (f).into()));
}
if let Some(f) = &self.tags {
params.push(("Tags".into(), (f).into()));
}
if let Some(f) = &self.proxy_id {
params.push(("proxyId".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于为指定的RDS实例解绑标签。
///
/// Argument of [Connection::untag_resources()], returns [UntagResourcesResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct UntagResources {
/// 地域ID,可以通过接口DescribeRegions查看可用的地域ID。
region_id: String,
/// 资源类型定义。取值:
///
/// - **INSTANCE**:普通RDS实例。
/// - **CUSTOM**:RDS Custom实例。
/// - **CUSTOMDEPLOYMENTSET**:RDS Custom部署集。
/// - **CUSTOMDISK**:RDS Custom云盘。
/// - **CUSTOMSNAPSHOT**:RDS Custom快照。
resource_type: String,
/// 是否删除实例的全部标签。取值:
/// * **true**
/// * **false**
///
/// 默认值:**false**。
/// >未传入**TagKey.N**时该参数有效。
#[setters(generate = true, strip_option)]
all: Option<bool>,
/// 实例ID列表。可以同时对N个实例解绑标签,N的取值范围:**1**~**50**。
resource_id: Vec<String>,
/// 标签键列表。可以同时删除N个标签键,N的取值范围:**1**~**20**。不允许传入空字符串。
#[setters(generate = true, strip_option)]
tag_key: Option<Vec<String>>,
}
impl sealed::Bound for UntagResources {}
impl UntagResources {
pub fn new(
region_id: impl Into<String>,
resource_type: impl Into<String>,
resource_id: impl Into<Vec<String>>,
) -> Self {
Self {
region_id: region_id.into(),
resource_type: resource_type.into(),
all: None,
resource_id: resource_id.into(),
tag_key: None,
}
}
}
impl crate::ToFormData for UntagResources {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for UntagResources {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "UntagResources";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<UntagResourcesResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(5);
if let Some(f) = &self.all {
params.push(("All".into(), (f).into()));
}
params.push(("RegionId".into(), (&self.region_id).into()));
crate::FlatSerialize::flat_serialize(&self.resource_id, "ResourceId", &mut params);
params.push(("ResourceType".into(), (&self.resource_type).into()));
if let Some(f) = &self.tag_key {
crate::FlatSerialize::flat_serialize(f, "TagKey", &mut params);
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于解绑标签。
///
/// Argument of [Connection::remove_tags_from_resource()], returns [RemoveTagsFromResourceResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct RemoveTagsFromResource {
/// 用于保证请求的幂等性,防止重复提交请求。由客户端生成该参数值,要保证在不同请求间唯一,最大值不超过64个ASCII字符,且该参数值中不能包含非ASCII字符。
#[setters(generate = true, strip_option)]
client_token: Option<String>,
/// 代理模式ID。
#[setters(generate = true, strip_option)]
proxy_id: Option<String>,
/// 地域ID,可以通过接口DescribeRegions查看可用的地域ID。
region_id: String,
/// 实例ID。
db_instance_id: String,
/// 需要解绑的一组标签,包括TagKey和TagValue。格式:{"key1":"value1"}。
/// >TagKey不能为空,TagValue可以为空。
#[setters(generate = true, strip_option)]
tags: Option<String>,
/// 要解绑的第一组标签的Tagkey。需要解绑的标签,包括TagKey和TagValue,单次最多支持传入5组值。TagKey不能为空,TagValue可以为空。
#[setters(generate = true, strip_option)]
tag1_key: Option<String>,
/// 要解绑的第二组标签的Tagkey。需要解绑的标签,包括TagKey和TagValue,单次最多支持传入5组值。TagKey不能为空,TagValue可以为空。
#[setters(generate = true, strip_option)]
tag2_key: Option<String>,
/// 要解绑的第三组标签的Tagkey。需要解绑的标签,包括TagKey和TagValue,单次最多支持传入5组值。TagKey不能为空,TagValue可以为空。
#[setters(generate = true, strip_option)]
tag3_key: Option<String>,
/// 要解绑的第四组标签的Tagkey。需要解绑的标签,包括TagKey和TagValue,单次最多支持传入5组值。TagKey不能为空,TagValue可以为空。
#[setters(generate = true, strip_option)]
tag4_key: Option<String>,
/// 要解绑的第五组标签的Tagkey。需要解绑的标签,包括TagKey和TagValue,单次最多支持传入5组值。TagKey不能为空,TagValue可以为空。
#[setters(generate = true, strip_option)]
tag5_key: Option<String>,
/// 要解绑的第一组标签的TagValue。需要解绑的标签,包括TagKey和TagValue,单次最多支持传入5组值。TagKey不能为空,TagValue可以为空。
#[setters(generate = true, strip_option)]
tag1_value: Option<String>,
/// 要解绑的第二组标签的TagValue。需要解绑的标签,包括TagKey和TagValue,单次最多支持传入5组值。TagKey不能为空,TagValue可以为空。
#[setters(generate = true, strip_option)]
tag2_value: Option<String>,
/// 要解绑的第三组标签的TagValue。需要解绑的标签,包括TagKey和TagValue,单次最多支持传入5组值。TagKey不能为空,TagValue可以为空。
#[setters(generate = true, strip_option)]
tag3_value: Option<String>,
/// 要解绑的第四组标签的TagValue。需要解绑的标签,包括TagKey和TagValue,单次最多支持传入5组值。TagKey不能为空,TagValue可以为空。
#[setters(generate = true, strip_option)]
tag4_value: Option<String>,
/// 要解绑的第五组标签的TagValue。需要解绑的标签,包括TagKey和TagValue,单次最多支持传入5组值。TagKey不能为空,TagValue可以为空。
#[setters(generate = true, strip_option)]
tag5_value: Option<String>,
/// 资源组ID。可调用ListResourceGroups获取。
#[setters(generate = true, strip_option)]
resource_group_id: Option<String>,
}
impl sealed::Bound for RemoveTagsFromResource {}
impl RemoveTagsFromResource {
pub fn new(region_id: impl Into<String>, db_instance_id: impl Into<String>) -> Self {
Self {
client_token: None,
proxy_id: None,
region_id: region_id.into(),
db_instance_id: db_instance_id.into(),
tags: None,
tag1_key: None,
tag2_key: None,
tag3_key: None,
tag4_key: None,
tag5_key: None,
tag1_value: None,
tag2_value: None,
tag3_value: None,
tag4_value: None,
tag5_value: None,
resource_group_id: None,
}
}
}
impl crate::ToFormData for RemoveTagsFromResource {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for RemoveTagsFromResource {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "RemoveTagsFromResource";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<RemoveTagsFromResourceResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(16);
if let Some(f) = &self.client_token {
params.push(("ClientToken".into(), (f).into()));
}
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
params.push(("RegionId".into(), (&self.region_id).into()));
if let Some(f) = &self.resource_group_id {
params.push(("ResourceGroupId".into(), (f).into()));
}
if let Some(f) = &self.tag1_key {
params.push(("Tag.1.key".into(), (f).into()));
}
if let Some(f) = &self.tag1_value {
params.push(("Tag.1.value".into(), (f).into()));
}
if let Some(f) = &self.tag2_key {
params.push(("Tag.2.key".into(), (f).into()));
}
if let Some(f) = &self.tag2_value {
params.push(("Tag.2.value".into(), (f).into()));
}
if let Some(f) = &self.tag3_key {
params.push(("Tag.3.key".into(), (f).into()));
}
if let Some(f) = &self.tag3_value {
params.push(("Tag.3.value".into(), (f).into()));
}
if let Some(f) = &self.tag4_key {
params.push(("Tag.4.key".into(), (f).into()));
}
if let Some(f) = &self.tag4_value {
params.push(("Tag.4.value".into(), (f).into()));
}
if let Some(f) = &self.tag5_key {
params.push(("Tag.5.key".into(), (f).into()));
}
if let Some(f) = &self.tag5_value {
params.push(("Tag.5.value".into(), (f).into()));
}
if let Some(f) = &self.tags {
params.push(("Tags".into(), (f).into()));
}
if let Some(f) = &self.proxy_id {
params.push(("proxyId".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于查询一个或多个RDS实例已经绑定的标签列表。
///
/// Argument of [Connection::list_tag_resources()], returns [ListTagResourcesResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct ListTagResources {
/// 地域ID,可以通过接口DescribeRegions查看可用的地域ID。
region_id: String,
/// 资源类型定义。取值:
///
/// - **INSTANCE**:普通RDS实例。
/// - **CUSTOM**:RDS Custom实例。
/// - **CUSTOMDEPLOYMENTSET**:RDS Custom部署集。
/// - **CUSTOMDISK**:RDS Custom云盘。
/// - **CUSTOMSNAPSHOT**:RDS Custom快照。
resource_type: String,
/// 用来返回更多结果。第一次查询不需要提供这个参数,如果一次查询没有返回全部结果,则可在后续查询中传入前一次返回的token继续查询。
#[setters(generate = true, strip_option)]
next_token: Option<String>,
/// 实例ID列表。可以同时查询多个实例的标签,数量范围:**1**~**50**。
/// >**ResourceId**参数和**Tag.Key**参数至少传入一个。
#[setters(generate = true, strip_option)]
resource_id: Option<Vec<String>>,
/// 标签列表。
#[setters(generate = true, strip_option)]
tag: Option<Vec<ListTagResourcesTag>>,
}
impl sealed::Bound for ListTagResources {}
impl ListTagResources {
pub fn new(region_id: impl Into<String>, resource_type: impl Into<String>) -> Self {
Self {
region_id: region_id.into(),
resource_type: resource_type.into(),
next_token: None,
resource_id: None,
tag: None,
}
}
}
impl crate::ToFormData for ListTagResources {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for ListTagResources {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "ListTagResources";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<ListTagResourcesResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(5);
if let Some(f) = &self.next_token {
params.push(("NextToken".into(), (f).into()));
}
params.push(("RegionId".into(), (&self.region_id).into()));
if let Some(f) = &self.resource_id {
crate::FlatSerialize::flat_serialize(f, "ResourceId", &mut params);
}
params.push(("ResourceType".into(), (&self.resource_type).into()));
if let Some(f) = &self.tag {
crate::FlatSerialize::flat_serialize(f, "Tag", &mut params);
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于查询RDS实例的标签信息。
///
/// Argument of [Connection::describe_tags()], returns [DescribeTagsResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DescribeTags {
/// 用于保证请求的幂等性,防止重复提交请求。由客户端生成该参数值,要保证在不同请求间唯一,最大值不超过64个ASCII字符,且该参数值中不能包含非ASCII字符。
#[setters(generate = true, strip_option)]
client_token: Option<String>,
/// 代理模式ID。
#[setters(generate = true, strip_option)]
proxy_id: Option<String>,
/// 地域ID,可以通过接口DescribeRegions查看可用的地域ID。
region_id: String,
/// 实例ID。可通过DescribeDBInstances接口查询获取。
/// > 如果传入该参数,则查询该实例下所有标签,其他过滤条件失效。
#[setters(generate = true, strip_option)]
db_instance_id: Option<String>,
/// 需要查询的标签,包括TagKey和TagValue。
/// 参数格式:`{“TagKey”:”TagValue”}`。
#[setters(generate = true, strip_option)]
tags: Option<String>,
/// 资源类型。固定取值。
#[setters(generate = true, strip_option)]
resource_type: Option<String>,
}
impl sealed::Bound for DescribeTags {}
impl DescribeTags {
pub fn new(region_id: impl Into<String>) -> Self {
Self {
client_token: None,
proxy_id: None,
region_id: region_id.into(),
db_instance_id: None,
tags: None,
resource_type: None,
}
}
}
impl crate::ToFormData for DescribeTags {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DescribeTags {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DescribeTags";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DescribeTagsResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(6);
if let Some(f) = &self.client_token {
params.push(("ClientToken".into(), (f).into()));
}
if let Some(f) = &self.db_instance_id {
params.push(("DBInstanceId".into(), (f).into()));
}
params.push(("RegionId".into(), (&self.region_id).into()));
if let Some(f) = &self.resource_type {
params.push(("ResourceType".into(), (f).into()));
}
if let Some(f) = &self.tags {
params.push(("Tags".into(), (f).into()));
}
if let Some(f) = &self.proxy_id {
params.push(("proxyId".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于获取实例绑定的标签信息。
///
/// Argument of [Connection::describe_db_instance_by_tags()], returns [DescribeDBInstanceByTagsResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DescribeDBInstanceByTags {
/// 用于保证请求的幂等性,防止重复提交请求。由客户端生成该参数值,要保证在不同请求间唯一,最大值不超过64个ASCII字符,且该参数值中不能包含非ASCII字符。
#[setters(generate = true, strip_option)]
client_token: Option<String>,
/// 废弃参数。
#[setters(generate = true, strip_option)]
proxy_id: Option<String>,
/// 地域ID。可调用DescribeRegions获取。
region_id: String,
/// 实例ID。可调用DescribeDBInstances获取。
#[setters(generate = true, strip_option)]
db_instance_id: Option<String>,
/// 每页记录数,取值:**30~100**。默认值:**30**。
#[setters(generate = true, strip_option)]
page_size: Option<i32>,
/// 页码,取值:大于0且不超过Integer的最大值。
///
/// 默认值:**1**。
#[setters(generate = true, strip_option)]
page_number: Option<i32>,
}
impl sealed::Bound for DescribeDBInstanceByTags {}
impl DescribeDBInstanceByTags {
pub fn new(region_id: impl Into<String>) -> Self {
Self {
client_token: None,
proxy_id: None,
region_id: region_id.into(),
db_instance_id: None,
page_size: None,
page_number: None,
}
}
}
impl crate::ToFormData for DescribeDBInstanceByTags {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DescribeDBInstanceByTags {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DescribeDBInstanceByTags";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DescribeDBInstanceByTagsResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(6);
if let Some(f) = &self.client_token {
params.push(("ClientToken".into(), (f).into()));
}
if let Some(f) = &self.db_instance_id {
params.push(("DBInstanceId".into(), (f).into()));
}
if let Some(f) = &self.page_number {
params.push(("PageNumber".into(), (f).into()));
}
if let Some(f) = &self.page_size {
params.push(("PageSize".into(), (f).into()));
}
params.push(("RegionId".into(), (&self.region_id).into()));
if let Some(f) = &self.proxy_id {
params.push(("proxyId".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于在目标数据库下安装指定插件。
///
/// Argument of [Connection::create_postgres_extensions()], returns [CreatePostgresExtensionsResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct CreatePostgresExtensions {
/// 用于保证请求的幂等性,防止重复提交请求。由客户端生成该参数值,要保证在不同请求间唯一,最大值不超过64个ASCII字符,且该参数值中不能包含非ASCII字符。
#[setters(generate = true, strip_option)]
client_token: Option<String>,
/// 实例ID。可调用DescribeDBInstances获取。
db_instance_id: String,
/// 需要安装的插件,多个插件间使用英文逗号(,)分隔。
/// 如果不填写请求参数**SourceDatabase**,该参数必须填写。
#[setters(generate = true, strip_option)]
extensions: Option<String>,
/// 实例数据库名。可调用DescribeDatabases获取。
db_names: String,
/// 插件所属的用户,仅支持高权限账号。
account_name: String,
/// 需要同步插件至目标数据库的源端数据库。如果不填写请求参数**Extensions**,该参数必须填写。
#[setters(generate = true, strip_option)]
source_database: Option<String>,
/// 资源组ID。
#[setters(generate = true, strip_option)]
resource_group_id: Option<String>,
/// 过低小版本实例安装某些特定插件存在安全风险,确认风险即可安装。
/// 取值范围:
/// - true
/// - false
/// > 相关风险说明,请参见[RDS PostgreSQL限制创建插件说明](~~2587815~~)。
#[setters(generate = true, strip_option)]
risk_confirmed: Option<bool>,
}
impl sealed::Bound for CreatePostgresExtensions {}
impl CreatePostgresExtensions {
pub fn new(
db_instance_id: impl Into<String>,
db_names: impl Into<String>,
account_name: impl Into<String>,
) -> Self {
Self {
client_token: None,
db_instance_id: db_instance_id.into(),
extensions: None,
db_names: db_names.into(),
account_name: account_name.into(),
source_database: None,
resource_group_id: None,
risk_confirmed: None,
}
}
}
impl crate::ToFormData for CreatePostgresExtensions {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for CreatePostgresExtensions {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "CreatePostgresExtensions";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<CreatePostgresExtensionsResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(8);
params.push(("AccountName".into(), (&self.account_name).into()));
if let Some(f) = &self.client_token {
params.push(("ClientToken".into(), (f).into()));
}
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
params.push(("DBNames".into(), (&self.db_names).into()));
if let Some(f) = &self.extensions {
params.push(("Extensions".into(), (f).into()));
}
if let Some(f) = &self.resource_group_id {
params.push(("ResourceGroupId".into(), (f).into()));
}
if let Some(f) = &self.risk_confirmed {
params.push(("RiskConfirmed".into(), (f).into()));
}
if let Some(f) = &self.source_database {
params.push(("SourceDatabase".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于删除实例目标数据库下的指定插件。
///
/// Argument of [Connection::delete_postgres_extensions()], returns [DeletePostgresExtensionsResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DeletePostgresExtensions {
/// 用于保证请求的幂等性,防止重复提交请求。由客户端生成该参数值,要保证在不同请求间唯一,最大值不超过64个ASCII字符,且该参数值中不能包含非ASCII字符。
#[setters(generate = true, strip_option)]
client_token: Option<String>,
/// 实例ID。可调用DescribeDBInstances获取。
db_instance_id: String,
/// 插件名,多个插件用英文逗号(,)分隔。
extensions: String,
/// 插件所在的数据库,多个数据库用英文逗号(,)分隔。
db_names: String,
/// 资源组ID。
#[setters(generate = true, strip_option)]
resource_group_id: Option<String>,
}
impl sealed::Bound for DeletePostgresExtensions {}
impl DeletePostgresExtensions {
pub fn new(
db_instance_id: impl Into<String>,
extensions: impl Into<String>,
db_names: impl Into<String>,
) -> Self {
Self {
client_token: None,
db_instance_id: db_instance_id.into(),
extensions: extensions.into(),
db_names: db_names.into(),
resource_group_id: None,
}
}
}
impl crate::ToFormData for DeletePostgresExtensions {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DeletePostgresExtensions {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DeletePostgresExtensions";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DeletePostgresExtensionsResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(5);
if let Some(f) = &self.client_token {
params.push(("ClientToken".into(), (f).into()));
}
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
params.push(("DBNames".into(), (&self.db_names).into()));
params.push(("Extensions".into(), (&self.extensions).into()));
if let Some(f) = &self.resource_group_id {
params.push(("ResourceGroupId".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于升级目标数据库下的指定插件。
///
/// Argument of [Connection::update_postgres_extensions()], returns [UpdatePostgresExtensionsResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct UpdatePostgresExtensions {
/// 用于保证请求的幂等性,防止重复提交请求。由客户端生成该参数值,要保证在不同请求间唯一,最大值不超过64个ASCII字符,且该参数值中不能包含非ASCII字符。
#[setters(generate = true, strip_option)]
client_token: Option<String>,
/// 实例ID。可调用DescribeDBInstances获取。
db_instance_id: String,
/// 插件名称,多个插件间使用英文逗号(,)分隔。
extensions: String,
/// 实例数据库名。可调用DescribeDatabases获取。
db_names: String,
/// 资源组ID。
#[setters(generate = true, strip_option)]
resource_group_id: Option<String>,
}
impl sealed::Bound for UpdatePostgresExtensions {}
impl UpdatePostgresExtensions {
pub fn new(
db_instance_id: impl Into<String>,
extensions: impl Into<String>,
db_names: impl Into<String>,
) -> Self {
Self {
client_token: None,
db_instance_id: db_instance_id.into(),
extensions: extensions.into(),
db_names: db_names.into(),
resource_group_id: None,
}
}
}
impl crate::ToFormData for UpdatePostgresExtensions {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for UpdatePostgresExtensions {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "UpdatePostgresExtensions";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<UpdatePostgresExtensionsResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(5);
if let Some(f) = &self.client_token {
params.push(("ClientToken".into(), (f).into()));
}
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
params.push(("DBNames".into(), (&self.db_names).into()));
params.push(("Extensions".into(), (&self.extensions).into()));
if let Some(f) = &self.resource_group_id {
params.push(("ResourceGroupId".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于获取实例目标数据库下所有插件的信息。
///
/// Argument of [Connection::describe_postgres_extensions()], returns [DescribePostgresExtensionsResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DescribePostgresExtensions {
/// 用于保证请求的幂等性,防止重复提交请求。由客户端生成该参数值,要保证在不同请求间唯一,最大值不超过64个ASCII字符,且该参数值中不能包含非ASCII字符。
#[setters(generate = true, strip_option)]
client_token: Option<String>,
/// 实例ID。可调用DescribeDBInstances获取。
db_instance_id: String,
/// 数据库名。可调用DescribeDatabases获取。
db_name: String,
/// 资源组ID。
#[setters(generate = true, strip_option)]
resource_group_id: Option<String>,
}
impl sealed::Bound for DescribePostgresExtensions {}
impl DescribePostgresExtensions {
pub fn new(db_instance_id: impl Into<String>, db_name: impl Into<String>) -> Self {
Self {
client_token: None,
db_instance_id: db_instance_id.into(),
db_name: db_name.into(),
resource_group_id: None,
}
}
}
impl crate::ToFormData for DescribePostgresExtensions {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DescribePostgresExtensions {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DescribePostgresExtensions";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DescribePostgresExtensionsResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(4);
if let Some(f) = &self.client_token {
params.push(("ClientToken".into(), (f).into()));
}
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
params.push(("DBName".into(), (&self.db_name).into()));
if let Some(f) = &self.resource_group_id {
params.push(("ResourceGroupId".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于删除实例的指定Replication Slot。
///
/// Argument of [Connection::delete_slot()], returns [DeleteSlotResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DeleteSlot {
/// 客户端Token,用于保证请求的幂等性。
///
/// 从您的客户端生成一个参数值,确保不同请求间该参数值唯一。ClientToken只支持ASCII字符。
#[setters(generate = true, strip_option)]
client_token: Option<String>,
/// 目标实例ID。可调用DescribeDBInstances接口查询。
db_instance_id: String,
/// Replication Slot名称。可调用DescribeSlots接口查询。
slot_name: String,
/// Replication Slot状态。可调用DescribeSlots接口查询。
/// - **ACTIVE**:活跃。
/// - **INACTIVE**:不活跃。
slot_status: String,
/// 资源组ID,可以为空。
#[setters(generate = true, strip_option)]
resource_group_id: Option<String>,
}
impl sealed::Bound for DeleteSlot {}
impl DeleteSlot {
pub fn new(
db_instance_id: impl Into<String>,
slot_name: impl Into<String>,
slot_status: impl Into<String>,
) -> Self {
Self {
client_token: None,
db_instance_id: db_instance_id.into(),
slot_name: slot_name.into(),
slot_status: slot_status.into(),
resource_group_id: None,
}
}
}
impl crate::ToFormData for DeleteSlot {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DeleteSlot {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DeleteSlot";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DeleteSlotResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(5);
if let Some(f) = &self.client_token {
params.push(("ClientToken".into(), (f).into()));
}
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
if let Some(f) = &self.resource_group_id {
params.push(("ResourceGroupId".into(), (f).into()));
}
params.push(("SlotName".into(), (&self.slot_name).into()));
params.push(("SlotStatus".into(), (&self.slot_status).into()));
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于查询实例的所有Replication Slot。
///
/// Argument of [Connection::describe_slots()], returns [DescribeSlotsResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DescribeSlots {
/// 客户端Token,用于保证请求的幂等性。
///
/// 从您的客户端生成一个参数值,确保不同请求间该参数值唯一。ClientToken只支持ASCII字符。
#[setters(generate = true, strip_option)]
client_token: Option<String>,
/// 实例ID。可调用DescribeDBInstances查询。
db_instance_id: String,
/// 资源组ID,可以为空。
#[setters(generate = true, strip_option)]
resource_group_id: Option<String>,
}
impl sealed::Bound for DescribeSlots {}
impl DescribeSlots {
pub fn new(db_instance_id: impl Into<String>) -> Self {
Self {
client_token: None,
db_instance_id: db_instance_id.into(),
resource_group_id: None,
}
}
}
impl crate::ToFormData for DescribeSlots {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DescribeSlots {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DescribeSlots";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DescribeSlotsResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(3);
if let Some(f) = &self.client_token {
params.push(("ClientToken".into(), (f).into()));
}
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
if let Some(f) = &self.resource_group_id {
params.push(("ResourceGroupId".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于创建RDS灾备实例的数据同步链路。
///
/// Argument of [Connection::create_replication_link()], returns [CreateReplicationLinkResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct CreateReplicationLink {
/// 灾备实例ID。
db_instance_id: String,
/// 是否对本次创建灾备实例同步链路的操作执行预检查,取值:
///
/// - **true**:执行预检查操作,不创建实例。检查项目包含请求参数、请求格式、业务限制和库存等。
/// - **false**(默认):发送正常请求,通过检查后直接创建实例。
dry_run: bool,
/// PostgreSQL源实例连接地址/SQL Server源实例IP地址。
#[setters(generate = true, strip_option)]
source_address: Option<String>,
/// 源实例端口。
#[setters(generate = true, strip_option)]
source_port: Option<i64>,
/// 同步数据的数据库账号。
#[setters(generate = true, strip_option)]
replicator_account: Option<String>,
/// 同步账号的密码。
#[setters(generate = true, strip_option)]
replicator_password: Option<String>,
/// 成功的预检查任务ID。
#[setters(generate = true, strip_option)]
task_id: Option<i64>,
/// 源实例的类别,取值:
/// - **other**:其他。(**SQL Server不支持**)
/// - **aliyunRDS**:阿里云RDS实例。
#[setters(generate = true, strip_option)]
source_category: Option<String>,
/// 源实例地域ID,**SourceCategory**取值为**aliyunRDS**时必须指定。
#[setters(generate = true, strip_option)]
source_instance_region_id: Option<String>,
/// 源实例名称,**SourceCategory**为**aliyunRDS**时必须指定。
#[setters(generate = true, strip_option)]
source_instance_name: Option<String>,
/// 预检查任务名称。自定义,未设置时系统自动生成。
#[setters(generate = true, strip_option)]
task_name: Option<String>,
/// SQL Server灾备实例IP地址。
#[setters(generate = true, strip_option)]
target_address: Option<String>,
}
impl sealed::Bound for CreateReplicationLink {}
impl CreateReplicationLink {
pub fn new(db_instance_id: impl Into<String>, dry_run: impl Into<bool>) -> Self {
Self {
db_instance_id: db_instance_id.into(),
dry_run: dry_run.into(),
source_address: None,
source_port: None,
replicator_account: None,
replicator_password: None,
task_id: None,
source_category: None,
source_instance_region_id: None,
source_instance_name: None,
task_name: None,
target_address: None,
}
}
}
impl crate::ToFormData for CreateReplicationLink {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for CreateReplicationLink {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "CreateReplicationLink";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<CreateReplicationLinkResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(12);
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
params.push(("DryRun".into(), (&self.dry_run).into()));
if let Some(f) = &self.replicator_account {
params.push(("ReplicatorAccount".into(), (f).into()));
}
if let Some(f) = &self.replicator_password {
params.push(("ReplicatorPassword".into(), (f).into()));
}
if let Some(f) = &self.source_address {
params.push(("SourceAddress".into(), (f).into()));
}
if let Some(f) = &self.source_category {
params.push(("SourceCategory".into(), (f).into()));
}
if let Some(f) = &self.source_instance_name {
params.push(("SourceInstanceName".into(), (f).into()));
}
if let Some(f) = &self.source_instance_region_id {
params.push(("SourceInstanceRegionId".into(), (f).into()));
}
if let Some(f) = &self.source_port {
params.push(("SourcePort".into(), (f).into()));
}
if let Some(f) = &self.target_address {
params.push(("TargetAddress".into(), (f).into()));
}
if let Some(f) = &self.task_id {
params.push(("TaskId".into(), (f).into()));
}
if let Some(f) = &self.task_name {
params.push(("TaskName".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于查询指定RDS实例数据同步链路的操作日志。
///
/// Argument of [Connection::describe_replication_link_logs()], returns [DescribeReplicationLinkLogsResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DescribeReplicationLinkLogs {
/// 实例 ID。
db_instance_id: String,
/// 任务 ID。调用**CreateReplicationLink**接口创建灾备实例时返回的任务ID。
#[setters(generate = true, strip_option)]
task_id: Option<i64>,
/// 任务名称。调用**CreateReplicationLink**接口创建灾备实例是的任务名称。
#[setters(generate = true, strip_option)]
task_name: Option<String>,
/// 任务类型。
/// - **create**:创建同步链路。
/// - **create-dryrun**:创建同步链路预检查。
task_type: String,
/// 页码。
#[setters(generate = true, strip_option)]
page_number: Option<i64>,
/// 每页最大记录数。
#[setters(generate = true, strip_option)]
page_size: Option<i64>,
}
impl sealed::Bound for DescribeReplicationLinkLogs {}
impl DescribeReplicationLinkLogs {
pub fn new(db_instance_id: impl Into<String>, task_type: impl Into<String>) -> Self {
Self {
db_instance_id: db_instance_id.into(),
task_id: None,
task_name: None,
task_type: task_type.into(),
page_number: None,
page_size: None,
}
}
}
impl crate::ToFormData for DescribeReplicationLinkLogs {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DescribeReplicationLinkLogs {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DescribeReplicationLinkLogs";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DescribeReplicationLinkLogsResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(6);
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
if let Some(f) = &self.page_number {
params.push(("PageNumber".into(), (f).into()));
}
if let Some(f) = &self.page_size {
params.push(("PageSize".into(), (f).into()));
}
if let Some(f) = &self.task_id {
params.push(("TaskId".into(), (f).into()));
}
if let Some(f) = &self.task_name {
params.push(("TaskName".into(), (f).into()));
}
params.push(("TaskType".into(), (&self.task_type).into()));
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于为RDS灾备实例重建数据同步链路。
///
/// Argument of [Connection::rebuild_replication_link()], returns [RebuildReplicationLinkResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct RebuildReplicationLink {
/// 实例 ID。
db_instance_id: String,
}
impl sealed::Bound for RebuildReplicationLink {}
impl RebuildReplicationLink {
pub fn new(db_instance_id: impl Into<String>) -> Self {
Self {
db_instance_id: db_instance_id.into(),
}
}
}
impl crate::ToFormData for RebuildReplicationLink {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for RebuildReplicationLink {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "RebuildReplicationLink";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<RebuildReplicationLinkResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(1);
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于将RDS SQL Server主实例的复制链路切换到灾备实例。
///
/// Argument of [Connection::switch_replication_link()], returns [SwitchReplicationLinkResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct SwitchReplicationLink {
/// 源实例ID,即主实例ID。
db_instance_id: String,
/// 切换的目标灾备实例名称。
target_instance_name: String,
/// 切换的目标灾备实例地域。
target_instance_region_id: String,
}
impl sealed::Bound for SwitchReplicationLink {}
impl SwitchReplicationLink {
pub fn new(
db_instance_id: impl Into<String>,
target_instance_name: impl Into<String>,
target_instance_region_id: impl Into<String>,
) -> Self {
Self {
db_instance_id: db_instance_id.into(),
target_instance_name: target_instance_name.into(),
target_instance_region_id: target_instance_region_id.into(),
}
}
}
impl crate::ToFormData for SwitchReplicationLink {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for SwitchReplicationLink {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "SwitchReplicationLink";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<SwitchReplicationLinkResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(3);
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
params.push((
"TargetInstanceName".into(),
(&self.target_instance_name).into(),
));
params.push((
"TargetInstanceRegionId".into(),
(&self.target_instance_region_id).into(),
));
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于删除RDS灾备实例的数据同步链路,并将灾备实例提升为主实例。
///
/// Argument of [Connection::delete_replication_link()], returns [DeleteReplicationLinkResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DeleteReplicationLink {
/// 灾备实例ID。
db_instance_id: String,
/// 是否删除主实例和灾备实例间的数据同步链路,并提升灾备实例为主实例,取值:
///
/// - **true**:是
/// - **false**:否
promote_to_master: bool,
}
impl sealed::Bound for DeleteReplicationLink {}
impl DeleteReplicationLink {
pub fn new(db_instance_id: impl Into<String>, promote_to_master: impl Into<bool>) -> Self {
Self {
db_instance_id: db_instance_id.into(),
promote_to_master: promote_to_master.into(),
}
}
}
impl crate::ToFormData for DeleteReplicationLink {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DeleteReplicationLink {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DeleteReplicationLink";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DeleteReplicationLinkResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(2);
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
params.push(("PromoteToMaster".into(), (&self.promote_to_master).into()));
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 调用该接口,修改或关闭承诺型Serverless功能。
///
/// Argument of [Connection::modify_compute_burst_config()], returns [ModifyComputeBurstConfigResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct ModifyComputeBurstConfig {
/// 用于保证请求的幂等性,防止重复提交请求。由客户端生成该参数值,要保证在不同请求之间唯一,最大值不超过64个ASCII字符,且该参数值中不能包含非ASCII字符。
#[setters(generate = true, strip_option)]
client_token: Option<String>,
/// 实例 ID。
db_instance_id: String,
/// 资源组 ID。
#[setters(generate = true, strip_option)]
resource_group_id: Option<String>,
/// 生效策略。取值如下:
/// - **0**:立即生效。
/// - **1**:在可运维时间段内生效,可调用**ModifyDBInstanceMaintainTime**接口修改可运维时间段。
/// - **2**:指定时间点生效。
#[setters(generate = true, strip_option)]
switch_time_mode: Option<String>,
/// 指定生效的时间。格式:`yyyy-MM-ddTHH:mm:ssZ`(UTC时间)
/// >**SwitchTimeMode**取值为**2**时,需要配置该参数。
#[setters(generate = true, strip_option)]
switch_time: Option<String>,
/// 弹性扩容的CPU上限。最多为实例初始 CPU 配置的两倍。
#[setters(generate = true, strip_option)]
scale_max_cpus: Option<String>,
/// 弹性扩容的内存上限。最多为实例初始内存配置的两倍。单位:GB,每次调整量为 2 GB。
#[setters(generate = true, strip_option)]
scale_max_memory: Option<String>,
/// 弹性**缩容**的 CPU 使用率阈值。取值范围:30~55,单位:%。
#[setters(generate = true, strip_option)]
cpu_shrink_threshold: Option<String>,
/// 弹性**扩容**的 CPU 使用率阈值。取值范围:60~90,单位:%。
#[setters(generate = true, strip_option)]
cpu_enlarge_threshold: Option<String>,
/// 弹性**缩容**的内存使用率阈值。取值范围:30~55,单位:%
#[setters(generate = true, strip_option)]
memory_shrink_threshold: Option<String>,
/// 弹性**扩容**的内存使用率阈值。取值范围:60~90,单位:%
#[setters(generate = true, strip_option)]
memory_enlarge_threshold: Option<String>,
/// 关闭承诺型 Serverless 功能时,该参数传入**disabled**。
#[setters(generate = true, strip_option)]
burst_status: Option<String>,
/// 预留参数,暂不支持
#[setters(generate = true, strip_option)]
task_id: Option<String>,
/// 预留参数,暂不支持
#[setters(generate = true, strip_option)]
crontab_job_id: Option<String>,
}
impl sealed::Bound for ModifyComputeBurstConfig {}
impl ModifyComputeBurstConfig {
pub fn new(db_instance_id: impl Into<String>) -> Self {
Self {
client_token: None,
db_instance_id: db_instance_id.into(),
resource_group_id: None,
switch_time_mode: None,
switch_time: None,
scale_max_cpus: None,
scale_max_memory: None,
cpu_shrink_threshold: None,
cpu_enlarge_threshold: None,
memory_shrink_threshold: None,
memory_enlarge_threshold: None,
burst_status: None,
task_id: None,
crontab_job_id: None,
}
}
}
impl crate::ToFormData for ModifyComputeBurstConfig {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for ModifyComputeBurstConfig {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "ModifyComputeBurstConfig";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<ModifyComputeBurstConfigResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(14);
if let Some(f) = &self.burst_status {
params.push(("BurstStatus".into(), (f).into()));
}
if let Some(f) = &self.client_token {
params.push(("ClientToken".into(), (f).into()));
}
if let Some(f) = &self.cpu_enlarge_threshold {
params.push(("CpuEnlargeThreshold".into(), (f).into()));
}
if let Some(f) = &self.cpu_shrink_threshold {
params.push(("CpuShrinkThreshold".into(), (f).into()));
}
if let Some(f) = &self.crontab_job_id {
params.push(("CrontabJobId".into(), (f).into()));
}
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
if let Some(f) = &self.memory_enlarge_threshold {
params.push(("MemoryEnlargeThreshold".into(), (f).into()));
}
if let Some(f) = &self.memory_shrink_threshold {
params.push(("MemoryShrinkThreshold".into(), (f).into()));
}
if let Some(f) = &self.resource_group_id {
params.push(("ResourceGroupId".into(), (f).into()));
}
if let Some(f) = &self.scale_max_cpus {
params.push(("ScaleMaxCpus".into(), (f).into()));
}
if let Some(f) = &self.scale_max_memory {
params.push(("ScaleMaxMemory".into(), (f).into()));
}
if let Some(f) = &self.switch_time {
params.push(("SwitchTime".into(), (f).into()));
}
if let Some(f) = &self.switch_time_mode {
params.push(("SwitchTimeMode".into(), (f).into()));
}
if let Some(f) = &self.task_id {
params.push(("TaskId".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 查询承诺型Serverless功能的配置。
///
/// Argument of [Connection::describe_compute_burst_config()], returns [DescribeComputeBurstConfigResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DescribeComputeBurstConfig {
/// 用于保证请求的幂等性,防止重复提交请求。由客户端生成该参数值,要保证在不同请求之间唯一,最大值不超过64个ASCII字符,且该参数值中不能包含非ASCII字符。
#[setters(generate = true, strip_option)]
client_token: Option<String>,
/// 实例的ID。
db_instance_id: String,
/// 资源组的ID。
#[setters(generate = true, strip_option)]
resource_group_id: Option<String>,
/// 实例所在地域的ID。
#[setters(generate = true, strip_option)]
region_id: Option<String>,
}
impl sealed::Bound for DescribeComputeBurstConfig {}
impl DescribeComputeBurstConfig {
pub fn new(db_instance_id: impl Into<String>) -> Self {
Self {
client_token: None,
db_instance_id: db_instance_id.into(),
resource_group_id: None,
region_id: None,
}
}
}
impl crate::ToFormData for DescribeComputeBurstConfig {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DescribeComputeBurstConfig {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DescribeComputeBurstConfig";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DescribeComputeBurstConfigResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(4);
if let Some(f) = &self.client_token {
params.push(("ClientToken".into(), (f).into()));
}
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
if let Some(f) = &self.region_id {
params.push(("RegionId".into(), (f).into()));
}
if let Some(f) = &self.resource_group_id {
params.push(("ResourceGroupId".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于创建Data API用户凭证。
///
/// Argument of [Connection::create_secret()], returns [CreateSecretResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct CreateSecret {
/// 用于保证请求的幂等性,防止重复提交请求。由客户端生成该参数值,要保证在不同请求间唯一,最大值不超过64个ASCII字符,且该参数值中不能包含非ASCII字符。
#[setters(generate = true, strip_option)]
client_token: Option<String>,
/// 地域ID,您可调用DescribeDBInstanceAttribute接口查看实例所在地域ID。
region_id: String,
/// 数据库用户名。
username: String,
/// 数据库密码。
password: String,
/// 实例ID,您可调用DescribeDBInstances接口获取该参数的值。
db_instance_id: String,
/// 实例所在的资源组ID,您可调用DescribeDBInstanceAttribute接口获取该参数的值。
resource_group_id: String,
/// 数据库名称。
#[setters(generate = true, strip_option)]
db_names: Option<String>,
/// 用户对凭证的描述。
#[setters(generate = true, strip_option)]
description: Option<String>,
/// 凭证的名称。
#[setters(generate = true, strip_option)]
secret_name: Option<String>,
/// 数据库类型。
///
/// > 该参数当前仅支持传入MySQL值。
engine: String,
}
impl sealed::Bound for CreateSecret {}
impl CreateSecret {
pub fn new(
region_id: impl Into<String>,
username: impl Into<String>,
password: impl Into<String>,
db_instance_id: impl Into<String>,
resource_group_id: impl Into<String>,
engine: impl Into<String>,
) -> Self {
Self {
client_token: None,
region_id: region_id.into(),
username: username.into(),
password: password.into(),
db_instance_id: db_instance_id.into(),
resource_group_id: resource_group_id.into(),
db_names: None,
description: None,
secret_name: None,
engine: engine.into(),
}
}
}
impl crate::ToFormData for CreateSecret {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for CreateSecret {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "CreateSecret";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<CreateSecretResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(10);
if let Some(f) = &self.client_token {
params.push(("ClientToken".into(), (f).into()));
}
params.push(("DbInstanceId".into(), (&self.db_instance_id).into()));
if let Some(f) = &self.db_names {
params.push(("DbNames".into(), (f).into()));
}
if let Some(f) = &self.description {
params.push(("Description".into(), (f).into()));
}
params.push(("Engine".into(), (&self.engine).into()));
params.push(("Password".into(), (&self.password).into()));
params.push(("RegionId".into(), (&self.region_id).into()));
params.push(("ResourceGroupId".into(), (&self.resource_group_id).into()));
if let Some(f) = &self.secret_name {
params.push(("SecretName".into(), (f).into()));
}
params.push(("Username".into(), (&self.username).into()));
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 调用DeleteSecret接口删除Data API用户凭证。
///
/// Argument of [Connection::delete_secret()], returns [DeleteSecretResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DeleteSecret {
/// 用于保证请求的幂等性,防止重复提交请求。由客户端生成该参数值,要保证在不同请求间唯一,最大值不超过64个ASCII字符,且该参数值中不能包含非ASCII字符。
#[setters(generate = true, strip_option)]
client_token: Option<String>,
/// 地域ID,可通过调用DescribeSecrets接口获取该参数的值。
region_id: String,
/// 已创建的Data API账号的用户凭证,可通过调用createSecret接口获取该参数的值。
/// >**SecretName**和本参数必须传入其一。
#[setters(generate = true, strip_option)]
secret_arn: Option<String>,
/// 用户凭证名称。
///
/// > * **SecretArn**和本参数必须传入其一。
/// > * 本参数需要和**DbInstanceId**一起传入。
#[setters(generate = true, strip_option)]
secret_name: Option<String>,
/// 数据库类型。
///
/// > 该参数当前仅支持传入MySQL值。
engine: String,
/// 实例ID。可调用DescribeDBInstances获取。
/// >本参数需要和**SecretName**一起传入。
#[setters(generate = true, strip_option)]
db_instance_id: Option<String>,
/// 资源组ID。可调用DescribeDBInstanceAttribute获取。
#[setters(generate = true, strip_option)]
resource_group_id: Option<String>,
}
impl sealed::Bound for DeleteSecret {}
impl DeleteSecret {
pub fn new(region_id: impl Into<String>, engine: impl Into<String>) -> Self {
Self {
client_token: None,
region_id: region_id.into(),
secret_arn: None,
secret_name: None,
engine: engine.into(),
db_instance_id: None,
resource_group_id: None,
}
}
}
impl crate::ToFormData for DeleteSecret {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DeleteSecret {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DeleteSecret";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DeleteSecretResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(7);
if let Some(f) = &self.client_token {
params.push(("ClientToken".into(), (f).into()));
}
if let Some(f) = &self.db_instance_id {
params.push(("DbInstanceId".into(), (f).into()));
}
params.push(("Engine".into(), (&self.engine).into()));
params.push(("RegionId".into(), (&self.region_id).into()));
if let Some(f) = &self.resource_group_id {
params.push(("ResourceGroupId".into(), (f).into()));
}
if let Some(f) = &self.secret_arn {
params.push(("SecretArn".into(), (f).into()));
}
if let Some(f) = &self.secret_name {
params.push(("SecretName".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于查询Data API用户凭证。
///
/// Argument of [Connection::describe_secrets()], returns [DescribeSecretsResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DescribeSecrets {
/// 用于保证请求的幂等性,防止重复提交请求。由客户端生成该参数值,要保证在不同请求间唯一,最大值不超过64个ASCII字符,且该参数值中不能包含非ASCII字符。
#[setters(generate = true, strip_option)]
client_token: Option<String>,
/// 指定返回的语言。取值如下:
///
/// - **zh-CN**:中文
/// - **en-US**:英文
///
/// > 默认值:**en-US**。
#[setters(generate = true, strip_option)]
accept_language: Option<String>,
/// 地域ID,您可调用DescribeDBInstanceAttribute接口查看实例所在地域ID。
region_id: String,
/// 实例ID。可调用DescribeDBInstances获取。
#[setters(generate = true, strip_option)]
db_instance_id: Option<String>,
/// 数据库类型。
///
/// > 该参数当前仅支持传入MySQL值。
engine: String,
/// 查询分页的页码,取值:大于0且不超过Integer的最大值。
///
/// > 默认值:1。
page_number: i64,
/// 每页记录数。
page_size: i64,
/// 实例所在的资源组ID。
#[setters(generate = true, strip_option)]
resource_group_id: Option<String>,
}
impl sealed::Bound for DescribeSecrets {}
impl DescribeSecrets {
pub fn new(
region_id: impl Into<String>,
engine: impl Into<String>,
page_number: impl Into<i64>,
page_size: impl Into<i64>,
) -> Self {
Self {
client_token: None,
accept_language: None,
region_id: region_id.into(),
db_instance_id: None,
engine: engine.into(),
page_number: page_number.into(),
page_size: page_size.into(),
resource_group_id: None,
}
}
}
impl crate::ToFormData for DescribeSecrets {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DescribeSecrets {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DescribeSecrets";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DescribeSecretsResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(8);
if let Some(f) = &self.accept_language {
params.push(("AcceptLanguage".into(), (f).into()));
}
if let Some(f) = &self.client_token {
params.push(("ClientToken".into(), (f).into()));
}
if let Some(f) = &self.db_instance_id {
params.push(("DbInstanceId".into(), (f).into()));
}
params.push(("Engine".into(), (&self.engine).into()));
params.push(("PageNumber".into(), (&self.page_number).into()));
params.push(("PageSize".into(), (&self.page_size).into()));
params.push(("RegionId".into(), (&self.region_id).into()));
if let Some(f) = &self.resource_group_id {
params.push(("ResourceGroupId".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 查询RDS专属集群信息。
///
/// Argument of [Connection::describe_dedicated_host_groups()], returns [DescribeDedicatedHostGroupsResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DescribeDedicatedHostGroups {
/// 地域ID。可以通过接口DescribeRegions查看可用的地域ID。
region_id: String,
/// 专属集群ID。
#[setters(generate = true, strip_option)]
dedicated_host_group_id: Option<String>,
/// 根据主机镜像查询专属集群。取值:
/// * **WindowsWithMssqlStdLicense**:Windows(含SQL Server标准版License)。
/// * **WindowsWithMssqlEntLisence**:Windows(含SQL Server企业版License)。
/// * **WindowsWithMssqlWebLisence**:Windows(含SQL ServerWeb版License)。
/// * **AliLinux**:Linux。
#[setters(generate = true, strip_option)]
image_category: Option<String>,
}
impl sealed::Bound for DescribeDedicatedHostGroups {}
impl DescribeDedicatedHostGroups {
pub fn new(region_id: impl Into<String>) -> Self {
Self {
region_id: region_id.into(),
dedicated_host_group_id: None,
image_category: None,
}
}
}
impl crate::ToFormData for DescribeDedicatedHostGroups {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DescribeDedicatedHostGroups {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DescribeDedicatedHostGroups";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DescribeDedicatedHostGroupsResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(3);
if let Some(f) = &self.dedicated_host_group_id {
params.push(("DedicatedHostGroupId".into(), (f).into()));
}
if let Some(f) = &self.image_category {
params.push(("ImageCategory".into(), (f).into()));
}
params.push(("RegionId".into(), (&self.region_id).into()));
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 查询专属集群内的主机信息。
///
/// Argument of [Connection::describe_dedicated_hosts()], returns [DescribeDedicatedHostsResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DescribeDedicatedHosts {
/// 地域ID。可以通过接口DescribeRegions查看地域ID。
#[setters(generate = true, strip_option)]
region_id: Option<String>,
/// 专属集群ID。可调用DescribeDedicatedHostGroups获取。
#[setters(generate = true, strip_option)]
dedicated_host_group_id: Option<String>,
/// 订单ID。
#[setters(generate = true, strip_option)]
order_id: Option<i64>,
/// 主机存储类型。取值:
/// * **dhg_cloud_ssd**:ESSD云盘。
/// * **dhg_local_ssd**:SSD本地盘。
#[setters(generate = true, strip_option)]
host_type: Option<String>,
/// 主机状态。取值:
/// * **0**:创建中
/// * **1**:使用中
/// * **2**:宕机
/// * **3**:宕机下线(替换主机中)
/// * **4**:下线
/// * **5**:删除
/// * **6**:重启中
#[setters(generate = true, strip_option)]
host_status: Option<String>,
/// 主机当前是否允许分配实例。取值:
/// * **0**:不允许分配。
/// * **1**:允许分配。
#[setters(generate = true, strip_option)]
allocation_status: Option<String>,
/// 可用区ID。
#[setters(generate = true, strip_option)]
zone_id: Option<String>,
/// 专属集群主机ID。
#[setters(generate = true, strip_option)]
dedicated_host_id: Option<String>,
}
impl sealed::Bound for DescribeDedicatedHosts {}
impl DescribeDedicatedHosts {
pub fn new() -> Self {
Self {
region_id: None,
dedicated_host_group_id: None,
order_id: None,
host_type: None,
host_status: None,
allocation_status: None,
zone_id: None,
dedicated_host_id: None,
}
}
}
impl crate::ToFormData for DescribeDedicatedHosts {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DescribeDedicatedHosts {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DescribeDedicatedHosts";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DescribeDedicatedHostsResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(8);
if let Some(f) = &self.allocation_status {
params.push(("AllocationStatus".into(), (f).into()));
}
if let Some(f) = &self.dedicated_host_group_id {
params.push(("DedicatedHostGroupId".into(), (f).into()));
}
if let Some(f) = &self.dedicated_host_id {
params.push(("DedicatedHostId".into(), (f).into()));
}
if let Some(f) = &self.host_status {
params.push(("HostStatus".into(), (f).into()));
}
if let Some(f) = &self.host_type {
params.push(("HostType".into(), (f).into()));
}
if let Some(f) = &self.order_id {
params.push(("OrderId".into(), (f).into()));
}
if let Some(f) = &self.region_id {
params.push(("RegionId".into(), (f).into()));
}
if let Some(f) = &self.zone_id {
params.push(("ZoneId".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 调用MigrateDBInstance接口迁移专属集群内的RDS实例。
///
/// Argument of [Connection::migrate_db_instance()], returns [MigrateDBInstanceResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct MigrateDBInstance {
/// 地域ID。可以通过接口DescribeRegions查看地域ID。
#[setters(generate = true, strip_option)]
region_id: Option<String>,
/// 专属集群ID。可调用DescribeDedicatedHostGroups获取。
dedicated_host_group_id: String,
/// 实例ID。
db_instance_id: String,
/// 主实例要迁移的目标主机ID。可调用DescribeDedicatedHosts获取。
#[setters(generate = true, strip_option)]
target_dedicated_host_id_for_master: Option<String>,
/// 备实例要迁移的目标主机ID。可调用DescribeDedicatedHosts获取。
#[setters(generate = true, strip_option)]
target_dedicated_host_id_for_slave: Option<String>,
/// 迁移时间。取值:
/// * **Immediately**:立即切换(默认)
/// * **MaintainTime**:在运维时间段切换
/// * **Specified**:指定时间切换
#[setters(generate = true, strip_option)]
effective_time: Option<String>,
/// 指定切换的时间。格式:<i>yyyy-MM-dd</i>T<i>HH:mm:ss</i>Z(UTC时间)。
/// >当**EffectiveTime**=**Specified**时需要填入本参数。
#[setters(generate = true, strip_option)]
specified_time: Option<String>,
/// 日志节点的可用区ID。
#[setters(generate = true, strip_option)]
zone_id_for_log: Option<String>,
/// 备节点的可用区ID。
#[setters(generate = true, strip_option)]
zone_id_for_follower: Option<String>,
}
impl sealed::Bound for MigrateDBInstance {}
impl MigrateDBInstance {
pub fn new(
dedicated_host_group_id: impl Into<String>,
db_instance_id: impl Into<String>,
) -> Self {
Self {
region_id: None,
dedicated_host_group_id: dedicated_host_group_id.into(),
db_instance_id: db_instance_id.into(),
target_dedicated_host_id_for_master: None,
target_dedicated_host_id_for_slave: None,
effective_time: None,
specified_time: None,
zone_id_for_log: None,
zone_id_for_follower: None,
}
}
}
impl crate::ToFormData for MigrateDBInstance {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for MigrateDBInstance {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "MigrateDBInstance";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<MigrateDBInstanceResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(9);
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
params.push((
"DedicatedHostGroupId".into(),
(&self.dedicated_host_group_id).into(),
));
if let Some(f) = &self.effective_time {
params.push(("EffectiveTime".into(), (f).into()));
}
if let Some(f) = &self.region_id {
params.push(("RegionId".into(), (f).into()));
}
if let Some(f) = &self.specified_time {
params.push(("SpecifiedTime".into(), (f).into()));
}
if let Some(f) = &self.target_dedicated_host_id_for_master {
params.push(("TargetDedicatedHostIdForMaster".into(), (f).into()));
}
if let Some(f) = &self.target_dedicated_host_id_for_slave {
params.push(("TargetDedicatedHostIdForSlave".into(), (f).into()));
}
if let Some(f) = &self.zone_id_for_follower {
params.push(("ZoneIdForFollower".into(), (f).into()));
}
if let Some(f) = &self.zone_id_for_log {
params.push(("ZoneIdForLog".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 调用RebuildDBInstance接口重建专属集群中的RDS备实例。
///
/// Argument of [Connection::rebuild_db_instance()], returns [RebuildDBInstanceResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct RebuildDBInstance {
/// 地域ID。可调用DescribeRegions获取。
#[setters(generate = true, strip_option)]
region_id: Option<String>,
/// 专属集群ID。可调用DescribeDedicatedHostGroups获取。
dedicated_host_group_id: String,
/// 专属集群内的实例ID。
db_instance_id: String,
/// 需要重建备实例的主机ID。
/// >不传入该参数时,备实例会优先在原主机上重建,如果原主机空间不足,系统会选择非主实例所在的主机,若还是找不到足够空间,会返回空间不足错误。
#[setters(generate = true, strip_option)]
dedicated_host_id: Option<String>,
/// 需要重建的备实例类型。取值:
/// * **FOLLOWER**:备节点。
/// * **LOG**:日志节点。
#[setters(generate = true, strip_option)]
rebuild_node_type: Option<String>,
}
impl sealed::Bound for RebuildDBInstance {}
impl RebuildDBInstance {
pub fn new(
dedicated_host_group_id: impl Into<String>,
db_instance_id: impl Into<String>,
) -> Self {
Self {
region_id: None,
dedicated_host_group_id: dedicated_host_group_id.into(),
db_instance_id: db_instance_id.into(),
dedicated_host_id: None,
rebuild_node_type: None,
}
}
}
impl crate::ToFormData for RebuildDBInstance {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for RebuildDBInstance {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "RebuildDBInstance";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<RebuildDBInstanceResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(5);
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
params.push((
"DedicatedHostGroupId".into(),
(&self.dedicated_host_group_id).into(),
));
if let Some(f) = &self.dedicated_host_id {
params.push(("DedicatedHostId".into(), (f).into()));
}
if let Some(f) = &self.rebuild_node_type {
params.push(("RebuildNodeType".into(), (f).into()));
}
if let Some(f) = &self.region_id {
params.push(("RegionId".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于迁移RDS实例的可用区。
///
/// Argument of [Connection::migrate_connection_to_other_zone()], returns [MigrateConnectionToOtherZoneResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct MigrateConnectionToOtherZone {
/// 实例ID。可通过DescribeDBInstances接口查询获取。
db_instance_id: String,
/// 实例连接地址,创建时指定,用于生成连接串使用。
connection_string: String,
/// 可用区ID。
zone_id: String,
}
impl sealed::Bound for MigrateConnectionToOtherZone {}
impl MigrateConnectionToOtherZone {
pub fn new(
db_instance_id: impl Into<String>,
connection_string: impl Into<String>,
zone_id: impl Into<String>,
) -> Self {
Self {
db_instance_id: db_instance_id.into(),
connection_string: connection_string.into(),
zone_id: zone_id.into(),
}
}
}
impl crate::ToFormData for MigrateConnectionToOtherZone {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for MigrateConnectionToOtherZone {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "MigrateConnectionToOtherZone";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<MigrateConnectionToOtherZoneResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(3);
params.push(("ConnectionString".into(), (&self.connection_string).into()));
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
params.push(("ZoneId".into(), (&self.zone_id).into()));
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于设置MySQL只读实例的延迟时间。
///
/// Argument of [Connection::modify_db_instance_delayed_replication_time()], returns [ModifyDBInstanceDelayedReplicationTimeResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct ModifyDBInstanceDelayedReplicationTime {
/// 只读实例ID。可调用DescribeDBInstances获取。
db_instance_id: String,
/// 只读实例的复制延迟时间。单位:秒。
read_sql_replication_time: String,
}
impl sealed::Bound for ModifyDBInstanceDelayedReplicationTime {}
impl ModifyDBInstanceDelayedReplicationTime {
pub fn new(
db_instance_id: impl Into<String>,
read_sql_replication_time: impl Into<String>,
) -> Self {
Self {
db_instance_id: db_instance_id.into(),
read_sql_replication_time: read_sql_replication_time.into(),
}
}
}
impl crate::ToFormData for ModifyDBInstanceDelayedReplicationTime {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for ModifyDBInstanceDelayedReplicationTime {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "ModifyDBInstanceDelayedReplicationTime";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<ModifyDBInstanceDelayedReplicationTimeResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(2);
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
params.push((
"ReadSQLReplicationTime".into(),
(&self.read_sql_replication_time).into(),
));
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于查看是否已创建服务关联角色(SLR)。
///
/// Argument of [Connection::check_service_linked_role()], returns [CheckServiceLinkedRoleResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct CheckServiceLinkedRole {
/// 地域ID。
/// > 该参数不影响查询结果,配置任意地域即可,您可以通过DescribeRegions接口查看可用的地域ID。
region_id: String,
/// 服务关联角色。
/// > RDS支持的服务关联角色,请参见[服务关联角色](~~342840~~)。
service_linked_role: String,
/// 资源组ID。
#[setters(generate = true, strip_option)]
resource_group_id: Option<String>,
}
impl sealed::Bound for CheckServiceLinkedRole {}
impl CheckServiceLinkedRole {
pub fn new(region_id: impl Into<String>, service_linked_role: impl Into<String>) -> Self {
Self {
region_id: region_id.into(),
service_linked_role: service_linked_role.into(),
resource_group_id: None,
}
}
}
impl crate::ToFormData for CheckServiceLinkedRole {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for CheckServiceLinkedRole {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "CheckServiceLinkedRole";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<CheckServiceLinkedRoleResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(3);
params.push(("RegionId".into(), (&self.region_id).into()));
if let Some(f) = &self.resource_group_id {
params.push(("ResourceGroupId".into(), (f).into()));
}
params.push((
"ServiceLinkedRole".into(),
(&self.service_linked_role).into(),
));
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于查询可用的MySQL或PostgreSQL小版本列表。
///
/// Argument of [Connection::describe_db_mini_engine_versions()], returns [DescribeDBMiniEngineVersionsResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DescribeDBMiniEngineVersions {
/// 数据库引擎。取值为**MySQL**或**PostgreSQL**。
#[setters(generate = true, strip_option)]
engine: Option<String>,
/// 数据库版本。取值:
/// * MySQL:**8.0**、**5.7**、**5.6**、**5.5**
/// * PostgreSQL:**17.0**、**16.0**、**15.0**、**14.0**、**13.0**、**12.0**、**11.0**、**10.0**
#[setters(generate = true, strip_option)]
engine_version: Option<String>,
/// 实例系列。取值:
/// * **Basic**:基础系列。
/// * **HighAvailability**:高可用系列。
/// * **cluster**:集群系列。
/// * **Finance**:三节点企业系列。
#[setters(generate = true, strip_option)]
node_type: Option<String>,
/// 实例存储类型,取值:
/// * **local_ssd**:高性能本地盘。
/// * **general_essd**:高性能云盘。
/// * **cloud_ssd**:SSD云盘。
/// * **cloud_essd**:ESSD PL1云盘。
/// * **cloud_essd2**:ESSD PL2云盘。
/// * **cloud_essd3**:ESSD PL3云盘。
#[setters(generate = true, strip_option)]
storage_type: Option<String>,
/// 专属集群ID。可调用DescribeDedicatedHostGroups接口查询。
#[setters(generate = true, strip_option)]
dedicated_host_group_id: Option<String>,
/// 实例小版本号。指定该值查询目标小版本详情。
///
/// > 该参数仅适用于RDS MySQL。
#[setters(generate = true, strip_option)]
minor_version_tag: Option<String>,
/// 实例ID。可调用DescribeDBInstances获取。
///
/// > 对于RDS PostgreSQL实例,输入实例ID时,仅查询高于该实例当前小版本的所有小版本信息。
#[setters(generate = true, strip_option)]
db_instance_id: Option<String>,
/// 地域ID。可调用DescribeRegions获取。
region_id: String,
}
impl sealed::Bound for DescribeDBMiniEngineVersions {}
impl DescribeDBMiniEngineVersions {
pub fn new(region_id: impl Into<String>) -> Self {
Self {
engine: None,
engine_version: None,
node_type: None,
storage_type: None,
dedicated_host_group_id: None,
minor_version_tag: None,
db_instance_id: None,
region_id: region_id.into(),
}
}
}
impl crate::ToFormData for DescribeDBMiniEngineVersions {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DescribeDBMiniEngineVersions {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DescribeDBMiniEngineVersions";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DescribeDBMiniEngineVersionsResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(8);
if let Some(f) = &self.db_instance_id {
params.push(("DBInstanceId".into(), (f).into()));
}
if let Some(f) = &self.dedicated_host_group_id {
params.push(("DedicatedHostGroupId".into(), (f).into()));
}
if let Some(f) = &self.engine {
params.push(("Engine".into(), (f).into()));
}
if let Some(f) = &self.engine_version {
params.push(("EngineVersion".into(), (f).into()));
}
if let Some(f) = &self.minor_version_tag {
params.push(("MinorVersionTag".into(), (f).into()));
}
if let Some(f) = &self.node_type {
params.push(("NodeType".into(), (f).into()));
}
params.push(("RegionId".into(), (&self.region_id).into()));
if let Some(f) = &self.storage_type {
params.push(("StorageType".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于获取地域列表。
///
/// Argument of [Connection::describe_region_infos()], returns [DescribeRegionInfosResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DescribeRegionInfos {
/// 用于保证请求的幂等性,防止重复提交请求。由客户端生成该参数值,要保证在不同请求间唯一,最大值不超过64个ASCII字符,且该参数值中不能包含非ASCII字符。
#[setters(generate = true, strip_option)]
client_token: Option<String>,
/// 地域ID。
#[setters(generate = true, strip_option)]
region_id: Option<String>,
}
impl sealed::Bound for DescribeRegionInfos {}
impl DescribeRegionInfos {
pub fn new() -> Self {
Self {
client_token: None,
region_id: None,
}
}
}
impl crate::ToFormData for DescribeRegionInfos {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DescribeRegionInfos {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DescribeRegionInfos";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DescribeRegionInfosResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(2);
if let Some(f) = &self.client_token {
params.push(("ClientToken".into(), (f).into()));
}
if let Some(f) = &self.region_id {
params.push(("RegionId".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于查询RDS实例的所有连接地址信息。
///
/// Argument of [Connection::describe_db_instance_net_info_for_channel()], returns [DescribeDBInstanceNetInfoForChannelResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DescribeDBInstanceNetInfoForChannel {
/// 用于保证请求的幂等性,防止重复提交请求。由客户端生成该参数值,要保证在不同请求间唯一,最大值不超过64个ASCII字符,且该参数值中不能包含非ASCII字符。
#[setters(generate = true, strip_option)]
client_token: Option<String>,
/// 实例ID。可调用DescribeDBInstances获取。
db_instance_id: String,
/// 内部参数,无需传入。
#[setters(generate = true, strip_option)]
flag: Option<String>,
/// 查询的连接地址类型:
/// * **0**(默认):常规连接地址。
/// * **1**:共享代理的读写分离地址。
#[setters(generate = true, strip_option)]
db_instance_net_rw_split_type: Option<String>,
}
impl sealed::Bound for DescribeDBInstanceNetInfoForChannel {}
impl DescribeDBInstanceNetInfoForChannel {
pub fn new(db_instance_id: impl Into<String>) -> Self {
Self {
client_token: None,
db_instance_id: db_instance_id.into(),
flag: None,
db_instance_net_rw_split_type: None,
}
}
}
impl crate::ToFormData for DescribeDBInstanceNetInfoForChannel {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DescribeDBInstanceNetInfoForChannel {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DescribeDBInstanceNetInfoForChannel";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DescribeDBInstanceNetInfoForChannelResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(4);
if let Some(f) = &self.client_token {
params.push(("ClientToken".into(), (f).into()));
}
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
if let Some(f) = &self.db_instance_net_rw_split_type {
params.push(("DBInstanceNetRWSplitType".into(), (f).into()));
}
if let Some(f) = &self.flag {
params.push(("Flag".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于查询RDS SQL Server实例的主机WebShell登录信息。
///
/// Argument of [Connection::describe_host_web_shell()], returns [DescribeHostWebShellResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DescribeHostWebShell {
/// 实例ID。
db_instance_id: String,
/// 实例所在的地域ID。可调用DescribeDBInstanceAttribute接口查询。
region_id: String,
/// 实例主机名。可调用DescribeDBInstanceIpHostname接口查询。
host_name: String,
/// 需要登录到RDS实例主机的账号名称。
account_name: String,
/// 主机账号名的密码。
account_password: String,
}
impl sealed::Bound for DescribeHostWebShell {}
impl DescribeHostWebShell {
pub fn new(
db_instance_id: impl Into<String>,
region_id: impl Into<String>,
host_name: impl Into<String>,
account_name: impl Into<String>,
account_password: impl Into<String>,
) -> Self {
Self {
db_instance_id: db_instance_id.into(),
region_id: region_id.into(),
host_name: host_name.into(),
account_name: account_name.into(),
account_password: account_password.into(),
}
}
}
impl crate::ToFormData for DescribeHostWebShell {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DescribeHostWebShell {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DescribeHostWebShell";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DescribeHostWebShellResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(5);
params.push(("AccountName".into(), (&self.account_name).into()));
params.push(("AccountPassword".into(), (&self.account_password).into()));
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
params.push(("HostName".into(), (&self.host_name).into()));
params.push(("RegionID".into(), (&self.region_id).into()));
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于通过规格代码查询规格详情。
///
/// Argument of [Connection::describe_class_details()], returns [DescribeClassDetailsResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DescribeClassDetails {
/// 用于保证请求的幂等性,防止重复提交请求。由客户端生成该参数值,要保证在不同请求间唯一,最大值不超过64个ASCII字符,且该参数值中不能包含非ASCII字符。
#[setters(generate = true, strip_option)]
client_token: Option<String>,
/// 地域ID,可以通过接口DescribeRegions查看可用的地域ID。
region_id: String,
/// 商品码。取值:
///
/// * **bards**:主实例按量付费
/// * **rds**:主实例包年包月
/// * **rords**:只读实例按量付费
/// * **rds\_rordspre\_public\_cn**:只读实例包年包月
/// * **bards_intl**:主实例按量付费
/// * **rds_intl**:主实例包年包月
/// * **rords_intl**:只读实例按量付费
/// * **rds\_rordspre\_public\_intl**:只读实例包年包月
commodity_code: String,
/// 规格代码。
class_code: String,
/// 数据库版本。
engine_version: String,
/// 数据库引擎类型。
engine: String,
/// 资源组ID。可调用DescribeDBInstanceAttribute获取。
#[setters(generate = true, strip_option)]
resource_group_id: Option<String>,
}
impl sealed::Bound for DescribeClassDetails {}
impl DescribeClassDetails {
pub fn new(
region_id: impl Into<String>,
commodity_code: impl Into<String>,
class_code: impl Into<String>,
engine_version: impl Into<String>,
engine: impl Into<String>,
) -> Self {
Self {
client_token: None,
region_id: region_id.into(),
commodity_code: commodity_code.into(),
class_code: class_code.into(),
engine_version: engine_version.into(),
engine: engine.into(),
resource_group_id: None,
}
}
}
impl crate::ToFormData for DescribeClassDetails {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DescribeClassDetails {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DescribeClassDetails";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DescribeClassDetailsResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(7);
params.push(("ClassCode".into(), (&self.class_code).into()));
if let Some(f) = &self.client_token {
params.push(("ClientToken".into(), (f).into()));
}
params.push(("CommodityCode".into(), (&self.commodity_code).into()));
params.push(("Engine".into(), (&self.engine).into()));
params.push(("EngineVersion".into(), (&self.engine_version).into()));
params.push(("RegionId".into(), (&self.region_id).into()));
if let Some(f) = &self.resource_group_id {
params.push(("ResourceGroupId".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于查询KMS的指定资源是否关联了RDS实例。
///
/// Argument of [Connection::describe_kms_associate_resources()], returns [DescribeKmsAssociateResourcesResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DescribeKmsAssociateResources {
/// 该参数用于保证请求的幂等性,防止重复提交请求。参数值由客户端生成,保证在不同请求间唯一。
///
/// 该参数值由ASCII字符组成,最长不超过64个字符,不能包含非ASCII字符。
#[setters(generate = true, strip_option)]
client_token: Option<String>,
/// 资源组ID。
#[setters(generate = true, strip_option)]
resource_group_id: Option<String>,
/// 地域ID。可调用[DescribeRegions](~~26243~~)获取。
#[setters(generate = true, strip_option)]
region_id: Option<String>,
/// KMS资源所属地域ID。
#[setters(generate = true, strip_option)]
kms_resource_region_id: Option<String>,
/// KMS资源所属的阿里云账号ID。
kms_resource_user: String,
/// KMS资源类型,当前仅支持**key**(密钥)。
kms_resource_type: String,
/// KMS资源ID,当前仅支持密钥ID。
kms_resource_id: String,
}
impl sealed::Bound for DescribeKmsAssociateResources {}
impl DescribeKmsAssociateResources {
pub fn new(
kms_resource_user: impl Into<String>,
kms_resource_type: impl Into<String>,
kms_resource_id: impl Into<String>,
) -> Self {
Self {
client_token: None,
resource_group_id: None,
region_id: None,
kms_resource_region_id: None,
kms_resource_user: kms_resource_user.into(),
kms_resource_type: kms_resource_type.into(),
kms_resource_id: kms_resource_id.into(),
}
}
}
impl crate::ToFormData for DescribeKmsAssociateResources {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DescribeKmsAssociateResources {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DescribeKmsAssociateResources";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DescribeKmsAssociateResourcesResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(7);
if let Some(f) = &self.client_token {
params.push(("ClientToken".into(), (f).into()));
}
params.push(("KmsResourceId".into(), (&self.kms_resource_id).into()));
if let Some(f) = &self.kms_resource_region_id {
params.push(("KmsResourceRegionId".into(), (f).into()));
}
params.push(("KmsResourceType".into(), (&self.kms_resource_type).into()));
params.push(("KmsResourceUser".into(), (&self.kms_resource_user).into()));
if let Some(f) = &self.region_id {
params.push(("RegionId".into(), (f).into()));
}
if let Some(f) = &self.resource_group_id {
params.push(("ResourceGroupId".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于查询快照列表信息。例如快照状态、正在创建的快照剩余完成时间、自动快照保留天数等。
///
/// Argument of [Connection::describe_rc_snapshots()], returns [DescribeRCSnapshotsResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DescribeRCSnapshots {
/// 指定的云盘ID。
#[setters(generate = true, strip_option)]
disk_id: Option<String>,
/// 快照标识编码。
///
/// 可以由多个快照ID组成,多个ID用半角逗号(,)隔开,最多支持100个ID。
#[setters(generate = true, strip_option)]
snapshot_ids: Option<String>,
/// 页码。
#[setters(generate = true, strip_option)]
page_number: Option<i64>,
/// 每页记录数,取值:**30**~**100**。默认值:**30**。
#[setters(generate = true, strip_option)]
page_size: Option<i64>,
/// 地域ID。可调用DescribeRegions获取。
#[setters(generate = true, strip_option)]
region_id: Option<String>,
/// 标签详情。
#[setters(generate = true, strip_option)]
tag: Option<Vec<SnapshotsTag>>,
#[setters(generate = true, strip_option)]
instance_id: Option<String>,
}
impl sealed::Bound for DescribeRCSnapshots {}
impl DescribeRCSnapshots {
pub fn new() -> Self {
Self {
disk_id: None,
snapshot_ids: None,
page_number: None,
page_size: None,
region_id: None,
tag: None,
instance_id: None,
}
}
}
impl crate::ToFormData for DescribeRCSnapshots {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DescribeRCSnapshots {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DescribeRCSnapshots";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DescribeRCSnapshotsResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(7);
if let Some(f) = &self.disk_id {
params.push(("DiskId".into(), (f).into()));
}
if let Some(f) = &self.instance_id {
params.push(("InstanceId".into(), (f).into()));
}
if let Some(f) = &self.page_number {
params.push(("PageNumber".into(), (f).into()));
}
if let Some(f) = &self.page_size {
params.push(("PageSize".into(), (f).into()));
}
if let Some(f) = &self.region_id {
params.push(("RegionId".into(), (f).into()));
}
if let Some(f) = &self.snapshot_ids {
params.push(("SnapshotIds".into(), (f).into()));
}
if let Some(f) = &self.tag {
crate::FlatSerialize::flat_serialize(f, "Tag", &mut params);
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 调用DetachRCDisk接口,从RDS Custom实例上卸载一块按量付费数据盘,或者卸载一块系统盘。
///
/// Argument of [Connection::detach_rc_disk()], returns [DetachRCDiskResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DetachRCDisk {
/// 实例ID。
instance_id: String,
/// 待卸载的云盘ID。
disk_id: String,
/// 备用参数,暂不支持。
#[setters(generate = true, strip_option)]
delete_with_instance: Option<bool>,
/// 地域ID,可以通过接口DescribeRegions查看可用的地域ID。
#[setters(generate = true, strip_option)]
region_id: Option<String>,
}
impl sealed::Bound for DetachRCDisk {}
impl DetachRCDisk {
pub fn new(instance_id: impl Into<String>, disk_id: impl Into<String>) -> Self {
Self {
instance_id: instance_id.into(),
disk_id: disk_id.into(),
delete_with_instance: None,
region_id: None,
}
}
}
impl crate::ToFormData for DetachRCDisk {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DetachRCDisk {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DetachRCDisk";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DetachRCDiskResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(4);
if let Some(f) = &self.delete_with_instance {
params.push(("DeleteWithInstance".into(), (f).into()));
}
params.push(("DiskId".into(), (&self.disk_id).into()));
params.push(("InstanceId".into(), (&self.instance_id).into()));
if let Some(f) = &self.region_id {
params.push(("RegionId".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 调用DeleteRCSnapshot接口,删除指定云盘快照。
///
/// Argument of [Connection::delete_rc_snapshot()], returns [DeleteRCSnapshotResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DeleteRCSnapshot {
/// 快照ID。
snapshot_id: String,
/// 地域ID。
region_id: String,
/// 是否强制删除已经被用于创建云盘的快照。取值说明:
/// - **true**:强制删除。强制删除后该磁盘无法重新初始化。
/// - **false**(默认值):不强制删除。
#[setters(generate = true, strip_option)]
force: Option<bool>,
}
impl sealed::Bound for DeleteRCSnapshot {}
impl DeleteRCSnapshot {
pub fn new(snapshot_id: impl Into<String>, region_id: impl Into<String>) -> Self {
Self {
snapshot_id: snapshot_id.into(),
region_id: region_id.into(),
force: None,
}
}
}
impl crate::ToFormData for DeleteRCSnapshot {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DeleteRCSnapshot {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DeleteRCSnapshot";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DeleteRCSnapshotResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(3);
if let Some(f) = &self.force {
params.push(("Force".into(), (f).into()));
}
params.push(("RegionId".into(), (&self.region_id).into()));
params.push(("SnapshotId".into(), (&self.snapshot_id).into()));
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 为一块云盘创建一份快照。
///
/// Argument of [Connection::create_rc_snapshot()], returns [CreateRCSnapshotResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct CreateRCSnapshot {
/// 地域ID。
#[setters(generate = true, strip_option)]
region_id: Option<String>,
/// 云盘ID。
#[setters(generate = true, strip_option)]
disk_id: Option<String>,
/// 快照的描述。长度为2~256个英文或中文字符,不能以`http://`或`https://`开头。
///
/// 默认值:空。
#[setters(generate = true, strip_option)]
description: Option<String>,
/// 该参数已弃用,无需填写。
#[setters(generate = true, strip_option)]
zone_id: Option<String>,
/// 该参数已弃用,无需填写。
#[setters(generate = true, strip_option)]
instant_access: Option<bool>,
/// 该参数已弃用,无需填写。
#[setters(generate = true, strip_option)]
instant_access_retention_days: Option<i32>,
/// 设置快照的保留时间,单位为天。保留时间到期后快照会被自动释放,取值范围:1~65536。
///
/// 默认值:空,表示快照不会被自动释放。
#[setters(generate = true, strip_option)]
retention_days: Option<i32>,
/// 标签详情。
#[setters(generate = true, strip_option)]
tag: Option<Vec<SnapshotTag>>,
/// 资源组ID。
#[setters(generate = true, strip_option)]
resource_group_id: Option<String>,
}
impl sealed::Bound for CreateRCSnapshot {}
impl CreateRCSnapshot {
pub fn new() -> Self {
Self {
region_id: None,
disk_id: None,
description: None,
zone_id: None,
instant_access: None,
instant_access_retention_days: None,
retention_days: None,
tag: None,
resource_group_id: None,
}
}
}
impl crate::ToFormData for CreateRCSnapshot {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for CreateRCSnapshot {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "CreateRCSnapshot";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<CreateRCSnapshotResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(9);
if let Some(f) = &self.description {
params.push(("Description".into(), (f).into()));
}
if let Some(f) = &self.disk_id {
params.push(("DiskId".into(), (f).into()));
}
if let Some(f) = &self.instant_access {
params.push(("InstantAccess".into(), (f).into()));
}
if let Some(f) = &self.instant_access_retention_days {
params.push(("InstantAccessRetentionDays".into(), (f).into()));
}
if let Some(f) = &self.region_id {
params.push(("RegionId".into(), (f).into()));
}
if let Some(f) = &self.resource_group_id {
params.push(("ResourceGroupId".into(), (f).into()));
}
if let Some(f) = &self.retention_days {
params.push(("RetentionDays".into(), (f).into()));
}
if let Some(f) = &self.tag {
crate::FlatSerialize::flat_serialize(f, "Tag", &mut params);
}
if let Some(f) = &self.zone_id {
params.push(("ZoneId".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 调用DescribeRCDisks接口,查看RDS Custom实例的磁盘信息。
///
/// Argument of [Connection::describe_rc_disks()], returns [DescribeRCDisksResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DescribeRCDisks {
/// 实例ID。
#[setters(generate = true, strip_option)]
instance_id: Option<String>,
/// 磁盘ID。一个带有格式的JSON数组,最多支持100个ID,用英文逗号(,)隔开。输入格式为:`["磁盘 ID1","磁盘 ID2"]`。
#[setters(generate = true, strip_option)]
disk_ids: Option<String>,
/// 页码。
#[setters(generate = true, strip_option)]
page_number: Option<i64>,
/// 每页记录数,取值:**30**~**100**。默认值:**30**。
#[setters(generate = true, strip_option)]
page_size: Option<i64>,
/// 地域ID。
region_id: String,
/// 标签列表。
#[setters(generate = true, strip_option)]
tag: Option<Vec<DisksTag>>,
}
impl sealed::Bound for DescribeRCDisks {}
impl DescribeRCDisks {
pub fn new(region_id: impl Into<String>) -> Self {
Self {
instance_id: None,
disk_ids: None,
page_number: None,
page_size: None,
region_id: region_id.into(),
tag: None,
}
}
}
impl crate::Request for DescribeRCDisks {
const METHOD: http::Method = http::Method::GET;
const ACTION: &'static str = "DescribeRCDisks";
type Body = ();
type ResponseWrap = crate::JsonResponseWrap<DescribeRCDisksResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(6);
if let Some(f) = &self.disk_ids {
params.push(("DiskIds".into(), (f).into()));
}
if let Some(f) = &self.instance_id {
params.push(("InstanceId".into(), (f).into()));
}
if let Some(f) = &self.page_number {
params.push(("PageNumber".into(), (f).into()));
}
if let Some(f) = &self.page_size {
params.push(("PageSize".into(), (f).into()));
}
params.push(("RegionId".into(), (&self.region_id).into()));
if let Some(f) = &self.tag {
crate::FlatSerialize::flat_serialize(f, "Tag", &mut params);
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {}
}
/// 该接口用于释放一块按量付费数据盘。磁盘类型包括普通云盘、高效云盘、SSD云盘和ESSD云盘。
///
/// Argument of [Connection::delete_rc_disk()], returns [DeleteRCDiskResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DeleteRCDisk {
/// 需要释放的云盘设备ID。
disk_id: String,
/// 实例所在地域ID。
#[setters(generate = true, strip_option)]
region_id: Option<String>,
}
impl sealed::Bound for DeleteRCDisk {}
impl DeleteRCDisk {
pub fn new(disk_id: impl Into<String>) -> Self {
Self {
disk_id: disk_id.into(),
region_id: None,
}
}
}
impl crate::ToFormData for DeleteRCDisk {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DeleteRCDisk {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DeleteRCDisk";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DeleteRCDiskResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(2);
params.push(("DiskId".into(), (&self.disk_id).into()));
if let Some(f) = &self.region_id {
params.push(("RegionId".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 调用AttachRCDisk接口为RDS Custom实例挂载一块按量付费数据盘,或者挂载一块系统盘。实例和磁盘必须在同一个可用区。
///
/// Argument of [Connection::attach_rc_disk()], returns [AttachRCDiskResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct AttachRCDisk {
/// 目标RDS Custom实例的ID。
instance_id: String,
/// 待挂载的云盘ID。云盘(`DiskId`)和实例(`InstanceId`)必须在同一个可用区。
disk_id: String,
/// 释放实例时,该磁盘是否随实例一起释放。取值范围:
///
/// true:释放。
/// false:不释放。磁盘会转换成按量付费数据盘而被保留下来。
/// 默认值:false。
///
/// 设置该参数时,您需要注意:
///
/// 将DeleteWithInstance置为false后,一旦实例被安全控制,即OperationLocks中标记了"LockReason" : "security",释放实例时会忽略磁盘的该属性,被同时释放。
///
/// 若您需要挂载的目标磁盘为弹性临时盘,则必须将DeleteWithInstance参数设置为true。
///
/// 开启多重挂载特性的云盘,不支持设置该参数。
#[setters(generate = true, strip_option)]
delete_with_instance: Option<bool>,
/// 地域ID。
#[setters(generate = true, strip_option)]
region_id: Option<String>,
}
impl sealed::Bound for AttachRCDisk {}
impl AttachRCDisk {
pub fn new(instance_id: impl Into<String>, disk_id: impl Into<String>) -> Self {
Self {
instance_id: instance_id.into(),
disk_id: disk_id.into(),
delete_with_instance: None,
region_id: None,
}
}
}
impl crate::ToFormData for AttachRCDisk {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for AttachRCDisk {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "AttachRCDisk";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<AttachRCDiskResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(4);
if let Some(f) = &self.delete_with_instance {
params.push(("DeleteWithInstance".into(), (f).into()));
}
params.push(("DiskId".into(), (&self.disk_id).into()));
params.push(("InstanceId".into(), (&self.instance_id).into()));
if let Some(f) = &self.region_id {
params.push(("RegionId".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 查询RDS Custom ACK集群KubeConfig。
///
/// Argument of [Connection::describe_rc_cluster_config()], returns [DescribeRCClusterConfigResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DescribeRCClusterConfig {
/// 地域ID。
#[setters(generate = true, strip_option)]
region_id: Option<String>,
/// 专有网络VPC的ID。
///
/// > 预留参数。
#[setters(generate = true, strip_option)]
vpc_id: Option<String>,
/// 临时kubeconfig有效期,单位:分钟。取值范围:15(15分钟)~4320(3天)。
/// >当不设置该参数时,将由系统自动确定一个更长的有效期,具体过期时间通过返回的`expiration`字段的值确定。
#[setters(generate = true, strip_option)]
temporary_duration_minutes: Option<i32>,
}
impl sealed::Bound for DescribeRCClusterConfig {}
impl DescribeRCClusterConfig {
pub fn new() -> Self {
Self {
region_id: None,
vpc_id: None,
temporary_duration_minutes: None,
}
}
}
impl crate::ToFormData for DescribeRCClusterConfig {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DescribeRCClusterConfig {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DescribeRCClusterConfig";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DescribeRCClusterConfigResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(3);
if let Some(f) = &self.region_id {
params.push(("RegionId".into(), (f).into()));
}
if let Some(f) = &self.temporary_duration_minutes {
params.push(("TemporaryDurationMinutes".into(), (f).into()));
}
if let Some(f) = &self.vpc_id {
params.push(("VpcId".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于添加RDS Custom实例到ACK集群。
///
/// Argument of [Connection::attach_rc_instances()], returns [AttachRCInstancesResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct AttachRCInstances {
/// 地域ID。
#[setters(generate = true, strip_option)]
region_id: Option<String>,
/// 专有网络VPC的ID。
///
/// > 预留参数。
#[setters(generate = true, strip_option)]
vpc_id: Option<String>,
/// 实例ID列表。
instance_ids: Vec<String>,
/// RDS Custom实例的登录密码。
#[setters(generate = true, strip_option)]
password: Option<String>,
/// RDS Custom实例的密钥对。
#[setters(generate = true, strip_option)]
key_pair: Option<String>,
}
impl sealed::Bound for AttachRCInstances {}
impl AttachRCInstances {
pub fn new(instance_ids: impl Into<Vec<String>>) -> Self {
Self {
region_id: None,
vpc_id: None,
instance_ids: instance_ids.into(),
password: None,
key_pair: None,
}
}
}
impl crate::ToFormData for AttachRCInstances {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for AttachRCInstances {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "AttachRCInstances";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<AttachRCInstancesResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(5);
crate::SimpleSerialize::simple_serialize(&self.instance_ids, "InstanceIds", &mut params);
if let Some(f) = &self.key_pair {
params.push(("KeyPair".into(), (f).into()));
}
if let Some(f) = &self.password {
params.push(("Password".into(), (f).into()));
}
if let Some(f) = &self.region_id {
params.push(("RegionId".into(), (f).into()));
}
if let Some(f) = &self.vpc_id {
params.push(("VpcId".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于删除ACK集群中的RDS Custom节点。
///
/// Argument of [Connection::delete_rc_cluster_nodes()], returns [DeleteRCClusterNodesResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DeleteRCClusterNodes {
/// 地域ID。
#[setters(generate = true, strip_option)]
region_id: Option<String>,
/// 专有网络(VPC)ID。
///
/// > 预留参数。
#[setters(generate = true, strip_option)]
vpc_id: Option<String>,
/// 节点信息。
#[setters(generate = true, strip_option)]
nodes: Option<Vec<String>>,
/// 实例ID列表。
#[setters(generate = true, strip_option)]
instance_ids: Option<Vec<String>>,
}
impl sealed::Bound for DeleteRCClusterNodes {}
impl DeleteRCClusterNodes {
pub fn new() -> Self {
Self {
region_id: None,
vpc_id: None,
nodes: None,
instance_ids: None,
}
}
}
impl crate::ToFormData for DeleteRCClusterNodes {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DeleteRCClusterNodes {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DeleteRCClusterNodes";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DeleteRCClusterNodesResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(4);
if let Some(f) = &self.instance_ids {
crate::SimpleSerialize::simple_serialize(f, "InstanceIds", &mut params);
}
if let Some(f) = &self.nodes {
crate::SimpleSerialize::simple_serialize(f, "Nodes", &mut params);
}
if let Some(f) = &self.region_id {
params.push(("RegionId".into(), (f).into()));
}
if let Some(f) = &self.vpc_id {
params.push(("VpcId".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 调用ModifyDBInstanceReplicationSwitch接口开启或关闭RDS原生复制模式。
///
/// Argument of [Connection::modify_db_instance_replication_switch()], returns [ModifyDBInstanceReplicationSwitchResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct ModifyDBInstanceReplicationSwitch {
/// 实例ID。可调用DescribeDBInstances接口获取。
db_instance_id: String,
/// 地域ID,您可以通过[DescribeRegions](~~26243~~)接口查询。
region_id: String,
/// 开启或关闭原生复制模式,取值说明:
/// - **ON**:开启。
/// - **OFF**:关闭。
external_replication: String,
/// 资源组ID,可以为空。
#[setters(generate = true, strip_option)]
resource_group_id: Option<String>,
}
impl sealed::Bound for ModifyDBInstanceReplicationSwitch {}
impl ModifyDBInstanceReplicationSwitch {
pub fn new(
db_instance_id: impl Into<String>,
region_id: impl Into<String>,
external_replication: impl Into<String>,
) -> Self {
Self {
db_instance_id: db_instance_id.into(),
region_id: region_id.into(),
external_replication: external_replication.into(),
resource_group_id: None,
}
}
}
impl crate::ToFormData for ModifyDBInstanceReplicationSwitch {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for ModifyDBInstanceReplicationSwitch {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "ModifyDBInstanceReplicationSwitch";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<ModifyDBInstanceReplicationSwitchResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(4);
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
params.push((
"ExternalReplication".into(),
(&self.external_replication).into(),
));
params.push(("RegionId".into(), (&self.region_id).into()));
if let Some(f) = &self.resource_group_id {
params.push(("ResourceGroupId".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于查询原生复制实例状态与配置。
///
/// Argument of [Connection::describe_db_instance_replication()], returns [DescribeDBInstanceReplicationResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DescribeDBInstanceReplication {
/// 地域ID。可调用DescribeRegions获取。
region_id: String,
/// 实例ID。可调用DescribeDBInstances查询。
db_instance_id: String,
/// 资源组ID,可以为空。
#[setters(generate = true, strip_option)]
resource_group_id: Option<String>,
}
impl sealed::Bound for DescribeDBInstanceReplication {}
impl DescribeDBInstanceReplication {
pub fn new(region_id: impl Into<String>, db_instance_id: impl Into<String>) -> Self {
Self {
region_id: region_id.into(),
db_instance_id: db_instance_id.into(),
resource_group_id: None,
}
}
}
impl crate::Request for DescribeDBInstanceReplication {
const METHOD: http::Method = http::Method::GET;
const ACTION: &'static str = "DescribeDBInstanceReplication";
type Body = ();
type ResponseWrap = crate::JsonResponseWrap<DescribeDBInstanceReplicationResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(3);
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
params.push(("RegionId".into(), (&self.region_id).into()));
if let Some(f) = &self.resource_group_id {
params.push(("ResourceGroupId".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {}
}
/// 该接口用于变更RDS MySQL集群系列实例节点可用区。
///
/// Argument of [Connection::migrate_db_nodes()], returns [MigrateDBNodesResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct MigrateDBNodes {
/// 用于保证请求的幂等性,防止重复提交请求。由客户端生成该参数值,要保证在不同请求间唯一,最大值不超过64个ASCII字符,且该参数值中不能包含非ASCII字符。
#[setters(generate = true, strip_option)]
client_token: Option<String>,
/// 实例ID。可调用[DescribeDBInstances](~~26232~~)获取。
db_instance_id: String,
/// 集群节点列表。
#[setters(generate = true, strip_option)]
db_node: Option<Vec<MigrateDBNodesDBNode>>,
/// 迁移时间。取值:
/// * **Immediately**:立即切换(默认)
/// * **MaintainTime**:在运维时间段切换
/// * **ScheduleTime**:在指定时间切换
///
/// > 如果传入**ScheduleTime**,则还需指定SwitchTime参数。
#[setters(generate = true, strip_option)]
effective_time: Option<String>,
/// 交换机ID。
#[setters(generate = true, strip_option)]
v_switch_id: Option<String>,
/// 指定执行修改的时间。建议在业务低峰期执行变配。格式:<i>yyyy-MM-dd</i>T<i>HH:mm:ss</i>Z(UTC时间)。
#[setters(generate = true, strip_option)]
switch_time: Option<String>,
}
impl sealed::Bound for MigrateDBNodes {}
impl MigrateDBNodes {
pub fn new(db_instance_id: impl Into<String>) -> Self {
Self {
client_token: None,
db_instance_id: db_instance_id.into(),
db_node: None,
effective_time: None,
v_switch_id: None,
switch_time: None,
}
}
}
impl crate::ToFormData for MigrateDBNodes {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for MigrateDBNodes {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "MigrateDBNodes";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<MigrateDBNodesResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(6);
if let Some(f) = &self.client_token {
params.push(("ClientToken".into(), (f).into()));
}
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
if let Some(f) = &self.db_node {
if let Ok(json) = serde_json::to_string(f) {
params.push(("DBNode".into(), json.into()));
}
}
if let Some(f) = &self.effective_time {
params.push(("EffectiveTime".into(), (f).into()));
}
if let Some(f) = &self.switch_time {
params.push(("SwitchTime".into(), (f).into()));
}
if let Some(f) = &self.v_switch_id {
params.push(("VSwitchId".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 用于RDS PostgreSQL的零停机大版本升级流量切换。
///
/// Argument of [Connection::switch_over_major_version_upgrade()], returns [SwitchOverMajorVersionUpgradeResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct SwitchOverMajorVersionUpgrade {
/// 地域ID,可调用[DescribeRegions](~~610399~~)获取。
#[setters(generate = true, strip_option)]
region_id: Option<String>,
/// 实例名称。
#[setters(generate = true, strip_option)]
db_instance_name: Option<String>,
/// 用于指定切换的操作类型:
/// * switch:切换。
/// * cancel:取消。
/// * interrupt:中断。
#[setters(generate = true, strip_option, rename = "r#type")]
r#type: Option<String>,
/// 用于设置切换的最大容忍时间,超过容忍时间后将取消切换,单位为秒,可选值范围为10~3600。
#[setters(generate = true, strip_option)]
switchover_timeout: Option<i32>,
/// 用于保证请求的幂等性,防止重复提交请求。由客户端生成该参数值,要保证在不同请求间唯一,最大值不超过64个ASCII字符,且该参数值中不能包含非ASCII字符。
#[setters(generate = true, strip_option)]
client_token: Option<String>,
/// 资源组ID。
#[setters(generate = true, strip_option)]
resource_group_id: Option<String>,
}
impl sealed::Bound for SwitchOverMajorVersionUpgrade {}
impl SwitchOverMajorVersionUpgrade {
pub fn new() -> Self {
Self {
region_id: None,
db_instance_name: None,
r#type: None,
switchover_timeout: None,
client_token: None,
resource_group_id: None,
}
}
}
impl crate::ToFormData for SwitchOverMajorVersionUpgrade {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for SwitchOverMajorVersionUpgrade {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "SwitchOverMajorVersionUpgrade";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<SwitchOverMajorVersionUpgradeResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(6);
if let Some(f) = &self.client_token {
params.push(("ClientToken".into(), (f).into()));
}
if let Some(f) = &self.db_instance_name {
params.push(("DBInstanceName".into(), (f).into()));
}
if let Some(f) = &self.region_id {
params.push(("RegionId".into(), (f).into()));
}
if let Some(f) = &self.resource_group_id {
params.push(("ResourceGroupId".into(), (f).into()));
}
if let Some(f) = &self.switchover_timeout {
params.push(("SwitchoverTimeout".into(), (f).into()));
}
if let Some(f) = &self.r#type {
params.push(("Type".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于为Custom实例绑定弹性公网IP EIP(Elastic IP Address)。
///
/// Argument of [Connection::associate_eip_address_with_rc_instance()], returns [AssociateEipAddressWithRCInstanceResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct AssociateEipAddressWithRCInstance {
/// 地域ID。可调用DescribeRegions获取。
#[setters(generate = true, strip_option)]
region_id: Option<String>,
/// RDS Custom实例ID。
#[setters(generate = true, strip_option)]
instance_id: Option<String>,
/// 弹性公网IP的ID。
///
/// > 如果没有EIP,请先[创建弹性公网IP](~~292841~~)。
#[setters(generate = true, strip_option)]
allocation_id: Option<String>,
}
impl sealed::Bound for AssociateEipAddressWithRCInstance {}
impl AssociateEipAddressWithRCInstance {
pub fn new() -> Self {
Self {
region_id: None,
instance_id: None,
allocation_id: None,
}
}
}
impl crate::ToFormData for AssociateEipAddressWithRCInstance {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for AssociateEipAddressWithRCInstance {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "AssociateEipAddressWithRCInstance";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<AssociateEipAddressWithRCInstanceResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(3);
if let Some(f) = &self.allocation_id {
params.push(("AllocationId".into(), (f).into()));
}
if let Some(f) = &self.instance_id {
params.push(("InstanceId".into(), (f).into()));
}
if let Some(f) = &self.region_id {
params.push(("RegionId".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于查询RDS Custom for SQL Server实例的DDos防护信息及所属原生防护实例的详情。
///
/// Argument of [Connection::describe_rc_instance_ip_address()], returns [DescribeRCInstanceIpAddressResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DescribeRCInstanceIpAddress {
/// Custom实例所在地域ID。
#[setters(generate = true, strip_option)]
region_id: Option<String>,
/// 要查询的公网IP资产的实例类型,固定值**ecs**。
#[setters(generate = true, strip_option)]
instance_type: Option<String>,
/// 要查询的公网IP资产的DDoS防护状态,取值:
///
/// - **defense**:清洗中,即查询正在进行流量清洗的公网IP资产。
/// - **blackhole**:黑洞中,即查询处于黑洞状态的公网IP资产。
#[setters(generate = true, strip_option)]
ddos_status: Option<String>,
/// 要查询的公网IP资产所属的Custom实例ID。
#[setters(generate = true, strip_option)]
instance_id: Option<String>,
/// 要查询的公网IP资产的IP地址。
#[setters(generate = true, strip_option)]
instance_ip: Option<String>,
/// 设置从返回结果的第几页开始显示查询结果。默认值为1,表示从第1页开始显示。
#[setters(generate = true, strip_option)]
current_page: Option<i32>,
/// 设置分页查询时每一页的实例数。
#[setters(generate = true, strip_option)]
page_size: Option<i32>,
/// 资源类型,固定值**ecs**。
#[setters(generate = true, strip_option)]
resource_type: Option<String>,
/// 要查询的公网IP资产所在地域ID。
ddos_region_id: String,
/// 要查询的公网IP资产所属的Custom实例名称。
#[setters(generate = true, strip_option)]
instance_name: Option<String>,
}
impl sealed::Bound for DescribeRCInstanceIpAddress {}
impl DescribeRCInstanceIpAddress {
pub fn new(ddos_region_id: impl Into<String>) -> Self {
Self {
region_id: None,
instance_type: None,
ddos_status: None,
instance_id: None,
instance_ip: None,
current_page: None,
page_size: None,
resource_type: None,
ddos_region_id: ddos_region_id.into(),
instance_name: None,
}
}
}
impl crate::ToFormData for DescribeRCInstanceIpAddress {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DescribeRCInstanceIpAddress {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DescribeRCInstanceIpAddress";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DescribeRCInstanceIpAddressResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(10);
if let Some(f) = &self.current_page {
params.push(("CurrentPage".into(), (f).into()));
}
params.push(("DdosRegionId".into(), (&self.ddos_region_id).into()));
if let Some(f) = &self.ddos_status {
params.push(("DdosStatus".into(), (f).into()));
}
if let Some(f) = &self.instance_id {
params.push(("InstanceId".into(), (f).into()));
}
if let Some(f) = &self.instance_ip {
params.push(("InstanceIp".into(), (f).into()));
}
if let Some(f) = &self.instance_name {
params.push(("InstanceName".into(), (f).into()));
}
if let Some(f) = &self.instance_type {
params.push(("InstanceType".into(), (f).into()));
}
if let Some(f) = &self.page_size {
params.push(("PageSize".into(), (f).into()));
}
if let Some(f) = &self.region_id {
params.push(("RegionId".into(), (f).into()));
}
if let Some(f) = &self.resource_type {
params.push(("ResourceType".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于查询RDS Custom for SQL Server实例被DDos攻击的数量,实时监控数据库实例的安全状态,以便评估潜在的安全风险。
///
/// Argument of [Connection::describe_rc_instance_ddos_count()], returns [DescribeRCInstanceDdosCountResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DescribeRCInstanceDdosCount {
/// Custom实例所在地域ID。
#[setters(generate = true, strip_option)]
region_id: Option<String>,
/// 要查询的公网IP资产的实例类型,固定值**ecs**。
#[setters(generate = true, strip_option)]
instance_type: Option<String>,
/// 要查询的公网IP资产所在地域ID。
#[setters(generate = true, strip_option)]
ddos_region_id: Option<String>,
}
impl sealed::Bound for DescribeRCInstanceDdosCount {}
impl DescribeRCInstanceDdosCount {
pub fn new() -> Self {
Self {
region_id: None,
instance_type: None,
ddos_region_id: None,
}
}
}
impl crate::ToFormData for DescribeRCInstanceDdosCount {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DescribeRCInstanceDdosCount {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DescribeRCInstanceDdosCount";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DescribeRCInstanceDdosCountResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(3);
if let Some(f) = &self.ddos_region_id {
params.push(("DdosRegionId".into(), (f).into()));
}
if let Some(f) = &self.instance_type {
params.push(("InstanceType".into(), (f).into()));
}
if let Some(f) = &self.region_id {
params.push(("RegionId".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 调用StopRCInstance停止一台运行中(Running)的RDS Custom实例。成功调用接口后,实例从暂停中(Stopping)变成已暂停(Stopped)状态。
///
/// Argument of [Connection::stop_rc_instance()], returns [StopRCInstanceResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct StopRCInstance {
/// 实例ID。
instance_id: String,
/// 是否强制关机。取值范围:
///
/// - **true**:强制关机。
///
/// - **false**(默认):正常关机。
#[setters(generate = true, strip_option)]
force_stop: Option<bool>,
/// 地域ID。
#[setters(generate = true, strip_option)]
region_id: Option<String>,
#[setters(generate = true, strip_option)]
stopped_mode: Option<String>,
}
impl sealed::Bound for StopRCInstance {}
impl StopRCInstance {
pub fn new(instance_id: impl Into<String>) -> Self {
Self {
instance_id: instance_id.into(),
force_stop: None,
region_id: None,
stopped_mode: None,
}
}
}
impl crate::ToFormData for StopRCInstance {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for StopRCInstance {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "StopRCInstance";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<StopRCInstanceResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(4);
if let Some(f) = &self.force_stop {
params.push(("ForceStop".into(), (f).into()));
}
params.push(("InstanceId".into(), (&self.instance_id).into()));
if let Some(f) = &self.region_id {
params.push(("RegionId".into(), (f).into()));
}
if let Some(f) = &self.stopped_mode {
params.push(("StoppedMode".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 调用DeleteRCInstance接口,释放一台或多台包年包月的RDS Custom实例。
///
/// Argument of [Connection::delete_rc_instances()], returns [DeleteRCInstancesResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DeleteRCInstances {
/// 是否强制释放运行中的实例。取值范围:
/// * **Yes**:强制
/// * **No**(默认):非强制
#[setters(generate = true, strip_option)]
force: Option<bool>,
/// 实例详情。
instance_id: Vec<String>,
/// 实例所在地域ID。
#[setters(generate = true, strip_option)]
region_id: Option<String>,
/// 备用参数。
#[setters(generate = true, strip_option)]
terminate_subscription: Option<bool>,
/// 是否对本次释放实例的操作执行预检查,取值:
/// * **true**:执行预检查操作,不释放实例。
/// * **false**(默认):发送正常请求,通过检查后直接释放实例。
#[setters(generate = true, strip_option)]
dry_run: Option<bool>,
}
impl sealed::Bound for DeleteRCInstances {}
impl DeleteRCInstances {
pub fn new(instance_id: impl Into<Vec<String>>) -> Self {
Self {
force: None,
instance_id: instance_id.into(),
region_id: None,
terminate_subscription: None,
dry_run: None,
}
}
}
impl crate::ToFormData for DeleteRCInstances {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DeleteRCInstances {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DeleteRCInstances";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DeleteRCInstancesResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(5);
if let Some(f) = &self.dry_run {
params.push(("DryRun".into(), (f).into()));
}
if let Some(f) = &self.force {
params.push(("Force".into(), (f).into()));
}
if let Ok(json) = serde_json::to_string(&self.instance_id) {
params.push(("InstanceId".into(), json.into()));
}
if let Some(f) = &self.region_id {
params.push(("RegionId".into(), (f).into()));
}
if let Some(f) = &self.terminate_subscription {
params.push(("TerminateSubscription".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 调用RunRCInstances接口,并可以指定ImageId、InstanceType、VSwitchId、SecurityGroupId等参数,创建一台或多台RDS Custom实例。
///
/// Argument of [Connection::run_rc_instances()], returns [RunRCInstancesResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct RunRCInstances {
/// 地域ID。可调用DescribeRegions获取。
region_id: String,
/// 实例资源规格。RDS Custom实例支持的资源规格,请参见[RDS Custom实例规格列表](~~2844823~~)。
instance_type: String,
/// 需要创建的RDS Custom实例数量。本参数仅适用于批量创建RDS Custom实例。
///
/// 取值范围:**1**~**30**;默认为**1**。
#[setters(generate = true, strip_option)]
amount: Option<i32>,
/// 购买资源的时长,默认为**1**。
#[setters(generate = true, strip_option)]
period: Option<i32>,
/// 包年包月计费方式的时长单位。取值范围:
/// - **Year**:年
/// - **Month**(默认):月
#[setters(generate = true, strip_option)]
period_unit: Option<InstancesPeriodUnit>,
/// 实例是否自动续费,取值:
///
/// * **true**(默认):是
/// * **false**:否
#[setters(generate = true, strip_option)]
auto_renew: Option<bool>,
/// 预留参数,暂不支持。
#[setters(generate = true, strip_option)]
security_enhancement_strategy: Option<String>,
/// 用于保证请求的幂等性,防止重复提交请求。由客户端生成该参数值,要保证在不同请求间唯一,最大值不超过64个ASCII字符,且该参数值中不能包含非ASCII字符。
#[setters(generate = true, strip_option)]
client_token: Option<String>,
/// 实例的账号密码。长度为 8 至 30 个字符,必须同时包含大小写英文字母、数字和特殊符号中的三类字符。特殊符号可以是:`()~!@#$%^&*-_+=|{}[]:;'<>,.?/`。
#[setters(generate = true, strip_option)]
password: Option<String>,
/// 目标实例的虚拟交换机ID。如果您创建的是VPC类型RDS Custom实例,必须指定虚拟交换机ID,且安全组和虚拟交换机在同一个专有网络VPC中。
/// > 如果您设置了VSwitchId参数,则设置的ZoneId参数必须和交换机所在的可用区保持一致。您也可以不设置ZoneId参数,系统将自动选择指定交换机所在的可用区。
v_switch_id: String,
/// 是否自动使用优惠券,取值:
/// * **true**(默认):是。
/// * **false**:否。
///
/// > 使用优惠券后,若需要进行降配操作,由代金券抵扣的金额将不会进行退款。
#[setters(generate = true, strip_option)]
auto_use_coupon: Option<bool>,
/// 优惠券Code。
#[setters(generate = true, strip_option)]
promotion_code: Option<String>,
/// 数据盘列表。
#[setters(generate = true, strip_option)]
data_disk: Option<Vec<InstancesDataDisk>>,
/// 长度为2~128个字符。以大小写字母或中文开头,可包含大小写字母、中文、数字、点号()、下划线()、半角冒号(:)或连字符(-)。默认值为实例的InstanceId。创建多台RdsCustom实例时,您可以批量设置有序的实例名称,并且可以包含方括号([])和逗号(,)。具体操作,请参见[创建RDS Custom实例](https://help.aliyun.com/zh/rds/apsaradb-rds-for-mysql/create-an-rds-custom-instance?spm=a2c4g.11186623.0.0.36ef7288jg7aZD#00481f9ba381u)。
#[setters(generate = true, strip_option)]
instance_name: Option<String>,
/// 部署集ID。
#[setters(generate = true, strip_option)]
deployment_set_id: Option<String>,
/// 预留参数,暂不支持。
#[setters(generate = true, strip_option)]
internet_charge_type: Option<String>,
/// Custom for SQL Server公网出带宽最大值,单位为Mbit/s。
///
/// 取值范围:0~1024;默认值:0。
#[setters(generate = true, strip_option)]
internet_max_bandwidth_out: Option<i32>,
/// 实例所属于的安全组ID。同一个安全组内的实例之间可以互相访问,一个安全组能容纳的实例数量视安全组类型而定,具体请参见[使用限制](~~25412~~)的安全组章节。
/// > SecurityGroupId决定了实例的网络类型,例如,如果设置的安全组的网络类型为专有网络VPC,实例则为VPC类型,并同时需要指定参数VSwitchId。
#[setters(generate = true, strip_option)]
security_group_id: Option<String>,
/// 实例所属的可用区ID,您可以调用DescribeZones获取可用区列表。
/// > 如果您指定了VSwitchId参数,则指定的ZoneId参数必须和交换机所在的可用区保持一致。您也可以不指定ZoneId参数,系统将自动选择指定的交换机所在的可用区。
#[setters(generate = true, strip_option)]
zone_id: Option<String>,
/// 预留参数,暂不支持。
#[setters(generate = true, strip_option)]
io_optimized: Option<String>,
/// 实例使用的镜像ID。
#[setters(generate = true, strip_option)]
image_id: Option<String>,
/// 系统盘规格。
#[setters(generate = true, strip_option)]
system_disk: Option<InstancesSystemDisk>,
/// 付费类型,取值:
/// * **Prepaid**:包年包月。
/// * **Postpaid**:按量付费。
#[setters(generate = true, strip_option)]
instance_charge_type: Option<String>,
/// 是否自动支付。取值范围:
/// - **true**(默认):自动支付。您需要确保账户余额充足。
/// - **false**:只生成订单不扣费。
/// > 如果您的支付方式余额不足,可以将参数AutoPay设置为false,此时会生成未支付订单,您可以登录RDS管理控制台自行支付。
/// >
#[setters(generate = true, strip_option)]
auto_pay: Option<bool>,
/// 实例描述。长度为 2~256 个英文或中文字符,不能以http://和https://开头。
#[setters(generate = true, strip_option)]
description: Option<String>,
/// 密钥对名称。仅支持传单个名称。
#[setters(generate = true, strip_option)]
key_pair_name: Option<String>,
/// 是否对本次创建实例的操作执行预检查,取值:
/// * **true**:执行预检查操作,不创建实例。检查项目包含请求参数、请求格式、业务限制和库存等。
/// * **false**(默认):发送正常请求,通过检查后直接创建实例。
#[setters(generate = true, strip_option)]
dry_run: Option<bool>,
/// 标签列表。
#[setters(generate = true, strip_option)]
tag: Option<Vec<InstancesTag>>,
/// 资源组ID。
#[setters(generate = true, strip_option)]
resource_group_id: Option<String>,
/// 是否允许加入ACK集群。该参数配置为**1**时,创建的实例可以通过API接口**AttachRCInstances**添加到ACK集群中,从而实现对容器应用的高效管理。
///
/// - **1**:是。
/// - **0**(默认):否。
#[setters(generate = true, strip_option)]
create_mode: Option<String>,
/// 实例主机名(2~64个字符)。
///
/// - 支持使用英文句号(.)分隔为多段,每段允许大小写英文字母、数字和短划线(-)。
/// - 英文句号(.)或短划线(-)不能作为首尾字符,更不能连续使用。
#[setters(generate = true, strip_option)]
host_name: Option<String>,
/// 按量付费实例的竞价策略。当参数**InstanceChargeType**取值为**PostPaid**时生效。取值范围:
///
/// - **NoSpot**:正常按量付费实例。
/// - **SpotAsPriceGo**:系统自动出价,跟随当前市场实际价格。
///
/// 默认值:**NoSpot**。
#[setters(generate = true, strip_option)]
spot_strategy: Option<String>,
/// RDS Custom的形态。取值:
///
/// - **eni**:双网卡。
/// - **edge**:边缘节点池。
/// - **share**:VPC。
#[setters(generate = true, strip_option)]
support_case: Option<String>,
/// 预留参数,暂不支持。
#[setters(generate = true, strip_option)]
create_extra_param: Option<String>,
/// ACK Edge集群信息。
#[setters(generate = true, strip_option)]
create_ack_edge_param: Option<EdgeParam>,
/// 实例自定义数据,原始数据最多为32KB。
///
/// 请勿以明文形式传递机密信息,例如密码和私钥等。如果确需传入,请先加密并使用Base64编码后再传送,再在实例内部进行解密使用。以下是将脚本转换为Base64字符串的示例:
///
/// ```ignore
/// echo -n '#!/bin/sh
/// echo "Hello World"' | base64 -w 0
/// ```
#[setters(generate = true, strip_option)]
user_data: Option<String>,
/// 自定义数据,是否以Base64方式编码。
///
/// - **true**:是。
/// - **false**(默认):否。
#[setters(generate = true, strip_option)]
user_data_in_base64: Option<bool>,
/// 是否开启释放保护功能。取值:
/// * **true**:开启
/// * **false**(默认):关闭
#[setters(generate = true, strip_option)]
deletion_protection: Option<bool>,
/// 分时弹性规则
#[setters(generate = true, strip_option)]
scheduled_rule: Option<String>,
/// acu类型
#[setters(generate = true, strip_option)]
acu_type: Option<String>,
/// 是否使用镜像预设的密码。使用该参数时,Password 参数必须为空,同时您需要确保使用的镜像已经设置了密码。 默认false
#[setters(generate = true, strip_option)]
password_inherit: Option<bool>,
}
impl sealed::Bound for RunRCInstances {}
impl RunRCInstances {
pub fn new(
region_id: impl Into<String>,
instance_type: impl Into<String>,
v_switch_id: impl Into<String>,
) -> Self {
Self {
region_id: region_id.into(),
instance_type: instance_type.into(),
amount: None,
period: None,
period_unit: None,
auto_renew: None,
security_enhancement_strategy: None,
client_token: None,
password: None,
v_switch_id: v_switch_id.into(),
auto_use_coupon: None,
promotion_code: None,
data_disk: None,
instance_name: None,
deployment_set_id: None,
internet_charge_type: None,
internet_max_bandwidth_out: None,
security_group_id: None,
zone_id: None,
io_optimized: None,
image_id: None,
system_disk: None,
instance_charge_type: None,
auto_pay: None,
description: None,
key_pair_name: None,
dry_run: None,
tag: None,
resource_group_id: None,
create_mode: None,
host_name: None,
spot_strategy: None,
support_case: None,
create_extra_param: None,
create_ack_edge_param: None,
user_data: None,
user_data_in_base64: None,
deletion_protection: None,
scheduled_rule: None,
acu_type: None,
password_inherit: None,
}
}
}
impl crate::ToFormData for RunRCInstances {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for RunRCInstances {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "RunRCInstances";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<RunRCInstancesResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(41);
if let Some(f) = &self.acu_type {
params.push(("AcuType".into(), (f).into()));
}
if let Some(f) = &self.amount {
params.push(("Amount".into(), (f).into()));
}
if let Some(f) = &self.auto_pay {
params.push(("AutoPay".into(), (f).into()));
}
if let Some(f) = &self.auto_renew {
params.push(("AutoRenew".into(), (f).into()));
}
if let Some(f) = &self.auto_use_coupon {
params.push(("AutoUseCoupon".into(), (f).into()));
}
if let Some(f) = &self.client_token {
params.push(("ClientToken".into(), (f).into()));
}
if let Some(f) = &self.create_ack_edge_param {
if let Ok(json) = serde_json::to_string(f) {
params.push(("CreateAckEdgeParam".into(), json.into()));
}
}
if let Some(f) = &self.create_extra_param {
params.push(("CreateExtraParam".into(), (f).into()));
}
if let Some(f) = &self.create_mode {
params.push(("CreateMode".into(), (f).into()));
}
if let Some(f) = &self.data_disk {
if let Ok(json) = serde_json::to_string(f) {
params.push(("DataDisk".into(), json.into()));
}
}
if let Some(f) = &self.deletion_protection {
params.push(("DeletionProtection".into(), (f).into()));
}
if let Some(f) = &self.deployment_set_id {
params.push(("DeploymentSetId".into(), (f).into()));
}
if let Some(f) = &self.description {
params.push(("Description".into(), (f).into()));
}
if let Some(f) = &self.dry_run {
params.push(("DryRun".into(), (f).into()));
}
if let Some(f) = &self.host_name {
params.push(("HostName".into(), (f).into()));
}
if let Some(f) = &self.image_id {
params.push(("ImageId".into(), (f).into()));
}
if let Some(f) = &self.instance_charge_type {
params.push(("InstanceChargeType".into(), (f).into()));
}
if let Some(f) = &self.instance_name {
params.push(("InstanceName".into(), (f).into()));
}
params.push(("InstanceType".into(), (&self.instance_type).into()));
if let Some(f) = &self.internet_charge_type {
params.push(("InternetChargeType".into(), (f).into()));
}
if let Some(f) = &self.internet_max_bandwidth_out {
params.push(("InternetMaxBandwidthOut".into(), (f).into()));
}
if let Some(f) = &self.io_optimized {
params.push(("IoOptimized".into(), (f).into()));
}
if let Some(f) = &self.key_pair_name {
params.push(("KeyPairName".into(), (f).into()));
}
if let Some(f) = &self.password {
params.push(("Password".into(), (f).into()));
}
if let Some(f) = &self.password_inherit {
params.push(("PasswordInherit".into(), (f).into()));
}
if let Some(f) = &self.period {
params.push(("Period".into(), (f).into()));
}
if let Some(f) = &self.period_unit {
params.push(("PeriodUnit".into(), (f).into()));
}
if let Some(f) = &self.promotion_code {
params.push(("PromotionCode".into(), (f).into()));
}
params.push(("RegionId".into(), (&self.region_id).into()));
if let Some(f) = &self.resource_group_id {
params.push(("ResourceGroupId".into(), (f).into()));
}
if let Some(f) = &self.scheduled_rule {
params.push(("ScheduledRule".into(), (f).into()));
}
if let Some(f) = &self.security_enhancement_strategy {
params.push(("SecurityEnhancementStrategy".into(), (f).into()));
}
if let Some(f) = &self.security_group_id {
params.push(("SecurityGroupId".into(), (f).into()));
}
if let Some(f) = &self.spot_strategy {
params.push(("SpotStrategy".into(), (f).into()));
}
if let Some(f) = &self.support_case {
params.push(("SupportCase".into(), (f).into()));
}
if let Some(f) = &self.system_disk {
if let Ok(json) = serde_json::to_string(f) {
params.push(("SystemDisk".into(), json.into()));
}
}
if let Some(f) = &self.tag {
crate::FlatSerialize::flat_serialize(f, "Tag", &mut params);
}
if let Some(f) = &self.user_data {
params.push(("UserData".into(), (f).into()));
}
if let Some(f) = &self.user_data_in_base64 {
params.push(("UserDataInBase64".into(), (f).into()));
}
params.push(("VSwitchId".into(), (&self.v_switch_id).into()));
if let Some(f) = &self.zone_id {
params.push(("ZoneId".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 用于修改RDS Custom实例或者云盘的计费方式。您可以通过此接口实现按量付费实例和包年包月实例之间的相互转换。
///
/// Argument of [Connection::modify_rc_instance_charge_type()], returns [ModifyRCInstanceChargeTypeResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct ModifyRCInstanceChargeType {
/// 预留参数,暂不支持。
#[setters(generate = true, strip_option)]
dry_run: Option<bool>,
/// 预留参数,暂不支持。
#[setters(generate = true, strip_option)]
instance_ids: Option<String>,
/// 预留参数,暂不支持。
#[setters(generate = true, strip_option)]
instance_charge_type: Option<ChargeType>,
/// 预留参数,暂不支持。
#[setters(generate = true, strip_option)]
include_data_disks: Option<bool>,
/// 自定义Token,保证请求幂等性。
/// > 支持ASCII字符,且不能超过64个字符。
///
#[setters(generate = true, strip_option)]
client_token: Option<String>,
/// 实例ID或云盘ID。
instance_id: String,
/// 指定购买时长,取值:
/// * 当参数**Period**为**Year**时,UsedTime取值为**1~5**。
/// * 当参数**Period**为**Month**时,UsedTime取值为**1~11**。
///
/// > 若付费类型为**Prepaid**则该参数必须传入。
#[setters(generate = true, strip_option)]
used_time: Option<i32>,
/// 预留参数,暂不支持。
#[setters(generate = true, strip_option)]
auto_pay: Option<bool>,
/// 变更后实例的付费类型,取值:
/// * **Prepaid**:预付费(包年包月)
/// * **Postpaid**:后付费(按量付费)
#[setters(generate = true, strip_option)]
pay_type: Option<String>,
/// 地域ID。
region_id: String,
/// 指定预付费实例为包年或者包月类型。取值:
/// * **Year**:包年
/// * **Month**:包月
///
/// > 若**PayType**=**Prepaid**,需要传入该参数。
#[setters(generate = true, strip_option)]
period: Option<TypePeriod>,
/// 业务扩展参数。
#[setters(generate = true, strip_option)]
business_info: Option<String>,
/// 是否开启自动续费。取值:
///
/// * **true**:开启
/// * **false**:关闭
///
/// > * 该参数仅在按量付费转包年包月时生效。
/// > * 传入的所有非**true**字符串均会被处理为**false**。
#[setters(generate = true, strip_option)]
auto_renew: Option<String>,
/// 是否使用代金券,取值:
/// * **true**(默认):使用代金券。
/// * **false**:不使用代金券。
#[setters(generate = true, strip_option)]
auto_use_coupon: Option<bool>,
/// 优惠券code。
#[setters(generate = true, strip_option)]
promotion_code: Option<String>,
}
impl sealed::Bound for ModifyRCInstanceChargeType {}
impl ModifyRCInstanceChargeType {
pub fn new(instance_id: impl Into<String>, region_id: impl Into<String>) -> Self {
Self {
dry_run: None,
instance_ids: None,
instance_charge_type: None,
include_data_disks: None,
client_token: None,
instance_id: instance_id.into(),
used_time: None,
auto_pay: None,
pay_type: None,
region_id: region_id.into(),
period: None,
business_info: None,
auto_renew: None,
auto_use_coupon: None,
promotion_code: None,
}
}
}
impl crate::ToFormData for ModifyRCInstanceChargeType {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for ModifyRCInstanceChargeType {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "ModifyRCInstanceChargeType";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<ModifyRCInstanceChargeTypeResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(15);
if let Some(f) = &self.auto_pay {
params.push(("AutoPay".into(), (f).into()));
}
if let Some(f) = &self.auto_renew {
params.push(("AutoRenew".into(), (f).into()));
}
if let Some(f) = &self.auto_use_coupon {
params.push(("AutoUseCoupon".into(), (f).into()));
}
if let Some(f) = &self.business_info {
params.push(("BusinessInfo".into(), (f).into()));
}
if let Some(f) = &self.client_token {
params.push(("ClientToken".into(), (f).into()));
}
if let Some(f) = &self.dry_run {
params.push(("DryRun".into(), (f).into()));
}
if let Some(f) = &self.include_data_disks {
params.push(("IncludeDataDisks".into(), (f).into()));
}
if let Some(f) = &self.instance_charge_type {
params.push(("InstanceChargeType".into(), (f).into()));
}
params.push(("InstanceId".into(), (&self.instance_id).into()));
if let Some(f) = &self.instance_ids {
params.push(("InstanceIds".into(), (f).into()));
}
if let Some(f) = &self.pay_type {
params.push(("PayType".into(), (f).into()));
}
if let Some(f) = &self.period {
params.push(("Period".into(), (f).into()));
}
if let Some(f) = &self.promotion_code {
params.push(("PromotionCode".into(), (f).into()));
}
params.push(("RegionId".into(), (&self.region_id).into()));
if let Some(f) = &self.used_time {
params.push(("UsedTime".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 调用StartRCInstance接口启动处于已暂停(Stopped)状态的RDS Custom实例。接口调用成功后,实例从启动中(Starting)变成运行中(Running)状态。
///
/// Argument of [Connection::start_rc_instance()], returns [StartRCInstanceResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct StartRCInstance {
/// 实例ID。
instance_id: String,
/// 地域ID。
#[setters(generate = true, strip_option)]
region_id: Option<String>,
}
impl sealed::Bound for StartRCInstance {}
impl StartRCInstance {
pub fn new(instance_id: impl Into<String>) -> Self {
Self {
instance_id: instance_id.into(),
region_id: None,
}
}
}
impl crate::ToFormData for StartRCInstance {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for StartRCInstance {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "StartRCInstance";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<StartRCInstanceResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(2);
params.push(("InstanceId".into(), (&self.instance_id).into()));
if let Some(f) = &self.region_id {
params.push(("RegionId".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 调用DescribeRCInstanceAttribute接口查询单个RDS Custom实例的详情。
///
/// Argument of [Connection::describe_rc_instance_attribute()], returns [DescribeRCInstanceAttributeResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DescribeRCInstanceAttribute {
/// 实例ID。
#[setters(generate = true, strip_option)]
instance_id: Option<String>,
/// 地域ID。
#[setters(generate = true, strip_option)]
region_id: Option<String>,
/// 实例的VPC网络IP地址,即私网IP地址。
#[setters(generate = true, strip_option)]
private_ip_address: Option<String>,
/// 设置返回结果中的实例磁盘数量上限,取值范围为10~500。
/// - 未设置值时,默认值为20。
/// - 设置值小于10时,传入的值固定为10。
/// - 设置值大于等于10,小于等于500时,以设置值为准。
#[setters(generate = true, strip_option)]
max_disks_results: Option<i64>,
/// 实例名称
#[setters(generate = true, strip_option)]
instance_name: Option<String>,
}
impl sealed::Bound for DescribeRCInstanceAttribute {}
impl DescribeRCInstanceAttribute {
pub fn new() -> Self {
Self {
instance_id: None,
region_id: None,
private_ip_address: None,
max_disks_results: None,
instance_name: None,
}
}
}
impl crate::ToFormData for DescribeRCInstanceAttribute {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DescribeRCInstanceAttribute {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DescribeRCInstanceAttribute";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DescribeRCInstanceAttributeResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(5);
if let Some(f) = &self.instance_id {
params.push(("InstanceId".into(), (f).into()));
}
if let Some(f) = &self.instance_name {
params.push(("InstanceName".into(), (f).into()));
}
if let Some(f) = &self.max_disks_results {
params.push(("MaxDisksResults".into(), (f).into()));
}
if let Some(f) = &self.private_ip_address {
params.push(("PrivateIpAddress".into(), (f).into()));
}
if let Some(f) = &self.region_id {
params.push(("RegionId".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 扩容RDS Custom实例存储空间。
///
/// Argument of [Connection::resize_rc_instance_disk()], returns [ResizeRCInstanceDiskResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct ResizeRCInstanceDisk {
/// 实例所在地域ID。
#[setters(generate = true, strip_option)]
region_id: Option<String>,
/// 实例ID。
#[setters(generate = true, strip_option)]
instance_id: Option<String>,
/// 是否自动支付。取值范围:
/// - **true**(默认):自动支付。您需要确保账户余额充足。
/// - **false**:只生成订单不扣费。
/// > 如果您的支付方式余额不足,可以将参数AutoPay设置为false,此时会生成未支付订单,您可以登录RDS管理控制台自行支付。
/// >
#[setters(generate = true, strip_option)]
auto_pay: Option<bool>,
/// 是否对本次创建实例的操作执行预检查,取值范围:
/// * **true**:执行预检查操作,不创建实例。检查项目包含请求参数、请求格式、业务限制和库存等。
/// * **false**(默认):发送正常请求,通过检查后直接创建实例。
#[setters(generate = true, strip_option)]
dry_run: Option<bool>,
/// 扩容磁盘的方式。取值范围:
/// - **offline**(默认):离线扩容。扩容后,必须重启实例生效。
/// - **online**:在线扩容,无需重启实例即可完成扩容。
#[setters(generate = true, strip_option, rename = "r#type")]
r#type: Option<String>,
/// 磁盘扩容后的大小,单位为GiB。
#[setters(generate = true, strip_option)]
new_size: Option<i64>,
/// 云盘ID。
#[setters(generate = true, strip_option)]
disk_id: Option<String>,
}
impl sealed::Bound for ResizeRCInstanceDisk {}
impl ResizeRCInstanceDisk {
pub fn new() -> Self {
Self {
region_id: None,
instance_id: None,
auto_pay: None,
dry_run: None,
r#type: None,
new_size: None,
disk_id: None,
}
}
}
impl crate::ToFormData for ResizeRCInstanceDisk {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for ResizeRCInstanceDisk {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "ResizeRCInstanceDisk";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<ResizeRCInstanceDiskResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(7);
if let Some(f) = &self.auto_pay {
params.push(("AutoPay".into(), (f).into()));
}
if let Some(f) = &self.disk_id {
params.push(("DiskId".into(), (f).into()));
}
if let Some(f) = &self.dry_run {
params.push(("DryRun".into(), (f).into()));
}
if let Some(f) = &self.instance_id {
params.push(("InstanceId".into(), (f).into()));
}
if let Some(f) = &self.new_size {
params.push(("NewSize".into(), (f).into()));
}
if let Some(f) = &self.region_id {
params.push(("RegionId".into(), (f).into()));
}
if let Some(f) = &self.r#type {
params.push(("Type".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 调用ModifyRCInstance接口,升级或者降低一台RDS Custom实例的实例规格。
///
/// Argument of [Connection::modify_rc_instance()], returns [ModifyRCInstanceResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct ModifyRCInstance {
/// 实例所在地域ID。
#[setters(generate = true, strip_option)]
region_id: Option<String>,
/// 实例ID。
#[setters(generate = true, strip_option)]
instance_id: Option<String>,
/// 需要变配的目标实例规格。RDS Custom实例支持的资源规格,请参见[RDS Custom实例规格列表](~~2844823~~)。
#[setters(generate = true, strip_option)]
instance_type: Option<String>,
/// 实例变配类型,取值范围:
/// > 该参数可无需上传,系统可自动判断升配还是降配;如要上传,请按照下面的逻辑规则操作。
/// - **Up**(默认):升配实例规格。请确保您的账户支付方式余额充足。
/// - **Down**:降配实例规格。当InstanceType设置的实例规格低于当前实例规格时,设置Direction=down。
#[setters(generate = true, strip_option)]
direction: Option<InstanceDirection>,
/// 是否自动支付。取值范围:
/// - **true**(默认):自动支付。您需要确保账户余额充足。
/// - **false**:只生成订单不扣费。
/// > 如果您的支付方式余额不足,可以将参数AutoPay设置为false,此时会生成未支付订单,您可以登录RDS管理控制台自行支付。
/// >
#[setters(generate = true, strip_option)]
auto_pay: Option<bool>,
/// 是否对本次创建实例的操作执行预检查,取值范围:
/// * **true**:执行预检查操作,不创建实例。检查项目包含请求参数、请求格式、业务限制和库存等。
/// * **false**(默认):发送正常请求,通过检查后直接创建实例。
#[setters(generate = true, strip_option)]
dry_run: Option<bool>,
/// 实例变配结束后是否立即重启。取值范围:
///
/// - **true**(默认):是。
/// - **false**:否。
///
/// > 若实例处于**已暂停**状态,即使您设置了`RebootWhenFinished=true`,也会保持原状态不变,并不会执行重启操作。
#[setters(generate = true, strip_option)]
reboot_when_finished: Option<bool>,
/// 实例的重启时间。
///
/// - **RebootWhenFinished**设置为**false**且实例状态为**Running**时,**必须**设置48小时以内的重启时间。
/// - 按照ISO 8601标准表示,使用UTC+0时间。格式为:`yyyy-MM-ddTHH:mmZ`。
#[setters(generate = true, strip_option)]
reboot_time: Option<String>,
/// 是否自动使用优惠券,取值:
/// * **true**(默认):是。
/// * **false**:否。
///
/// > 使用优惠券后,若需要进行降配操作,由代金券抵扣的金额将不会进行退款。
#[setters(generate = true, strip_option)]
auto_use_coupon: Option<bool>,
/// 优惠券Code。
#[setters(generate = true, strip_option)]
promotion_code: Option<String>,
}
impl sealed::Bound for ModifyRCInstance {}
impl ModifyRCInstance {
pub fn new() -> Self {
Self {
region_id: None,
instance_id: None,
instance_type: None,
direction: None,
auto_pay: None,
dry_run: None,
reboot_when_finished: None,
reboot_time: None,
auto_use_coupon: None,
promotion_code: None,
}
}
}
impl crate::ToFormData for ModifyRCInstance {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for ModifyRCInstance {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "ModifyRCInstance";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<ModifyRCInstanceResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(10);
if let Some(f) = &self.auto_pay {
params.push(("AutoPay".into(), (f).into()));
}
if let Some(f) = &self.auto_use_coupon {
params.push(("AutoUseCoupon".into(), (f).into()));
}
if let Some(f) = &self.direction {
params.push(("Direction".into(), (f).into()));
}
if let Some(f) = &self.dry_run {
params.push(("DryRun".into(), (f).into()));
}
if let Some(f) = &self.instance_id {
params.push(("InstanceId".into(), (f).into()));
}
if let Some(f) = &self.instance_type {
params.push(("InstanceType".into(), (f).into()));
}
if let Some(f) = &self.promotion_code {
params.push(("PromotionCode".into(), (f).into()));
}
if let Some(f) = &self.reboot_time {
params.push(("RebootTime".into(), (f).into()));
}
if let Some(f) = &self.reboot_when_finished {
params.push(("RebootWhenFinished".into(), (f).into()));
}
if let Some(f) = &self.region_id {
params.push(("RegionId".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 调用DeleteRCDeploymentSet接口,并指定RegionId、DeploymentSetId等参数,删除一个RDS Custom部署集。
///
/// Argument of [Connection::delete_rc_deployment_set()], returns [DeleteRCDeploymentSetResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DeleteRCDeploymentSet {
/// 部署集ID。
deployment_set_id: String,
/// 地域ID。
region_id: String,
}
impl sealed::Bound for DeleteRCDeploymentSet {}
impl DeleteRCDeploymentSet {
pub fn new(deployment_set_id: impl Into<String>, region_id: impl Into<String>) -> Self {
Self {
deployment_set_id: deployment_set_id.into(),
region_id: region_id.into(),
}
}
}
impl crate::ToFormData for DeleteRCDeploymentSet {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DeleteRCDeploymentSet {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DeleteRCDeploymentSet";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DeleteRCDeploymentSetResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(2);
params.push(("DeploymentSetId".into(), (&self.deployment_set_id).into()));
params.push(("RegionId".into(), (&self.region_id).into()));
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于查询目标RDS Custom指定监控指标的监控数据。
///
/// Argument of [Connection::describe_rc_metric_list()], returns [DescribeRCMetricListResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DescribeRCMetricList {
/// 地域ID。
#[setters(generate = true, strip_option)]
region_id: Option<String>,
/// [监控的指标](https://cms.console.aliyun.com/metric-meta/acs_ecs_dashboard/ecs)。
metric_name: String,
/// 备用参数。
#[setters(generate = true, strip_option)]
express: Option<String>,
/// 查询结束时间,格式如:`2024-08-06 10:15:00`,必须大于查询开始时间。
#[setters(generate = true, strip_option)]
end_time: Option<String>,
/// 分页游标标识。
#[setters(generate = true, strip_option)]
next_token: Option<String>,
/// 每页显示的记录条数,用于分页查询。
///
/// 默认值:1000。
#[setters(generate = true, strip_option)]
length: Option<String>,
/// 查询开始时间,格式如:`2024-08-06 10:05:00`。
#[setters(generate = true, strip_option)]
start_time: Option<String>,
/// 监控数据的统计周期(单位:秒),取值:
///
/// - 60(默认值)
/// - 60的整数倍
#[setters(generate = true, strip_option)]
period: Option<String>,
/// 实例ID,必填参数。
#[setters(generate = true, strip_option)]
instance_id: Option<String>,
/// Custom for SQL Server批量查询指定资源的监控数据。
/// 格式:`key:value`键值对形式的集合。
#[setters(generate = true, strip_option)]
dimensions: Option<String>,
}
impl sealed::Bound for DescribeRCMetricList {}
impl DescribeRCMetricList {
pub fn new(metric_name: impl Into<String>) -> Self {
Self {
region_id: None,
metric_name: metric_name.into(),
express: None,
end_time: None,
next_token: None,
length: None,
start_time: None,
period: None,
instance_id: None,
dimensions: None,
}
}
}
impl crate::Request for DescribeRCMetricList {
const METHOD: http::Method = http::Method::GET;
const ACTION: &'static str = "DescribeRCMetricList";
type Body = ();
type ResponseWrap = crate::JsonResponseWrap<DescribeRCMetricListResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(10);
if let Some(f) = &self.dimensions {
params.push(("Dimensions".into(), (f).into()));
}
if let Some(f) = &self.end_time {
params.push(("EndTime".into(), (f).into()));
}
if let Some(f) = &self.express {
params.push(("Express".into(), (f).into()));
}
if let Some(f) = &self.instance_id {
params.push(("InstanceId".into(), (f).into()));
}
if let Some(f) = &self.length {
params.push(("Length".into(), (f).into()));
}
params.push(("MetricName".into(), (&self.metric_name).into()));
if let Some(f) = &self.next_token {
params.push(("NextToken".into(), (f).into()));
}
if let Some(f) = &self.period {
params.push(("Period".into(), (f).into()));
}
if let Some(f) = &self.region_id {
params.push(("RegionId".into(), (f).into()));
}
if let Some(f) = &self.start_time {
params.push(("StartTime".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {}
}
/// 调用DescribeRCInstances接口查询指定RDS Custom实例列表信息。如果未指定实例ID(InstanceId),则将返回目标地域内所有RDS Custom实例列表信息。
///
/// Argument of [Connection::describe_rc_instances()], returns [DescribeRCInstancesResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DescribeRCInstances {
/// 专有网络VPC的ID。
#[setters(generate = true, strip_option)]
vpc_id: Option<String>,
/// 分页查询时设置的每页行数。
///
/// 最大值:100;默认值:10。
#[setters(generate = true, strip_option)]
page_size: Option<i32>,
/// 实例状态列表的页码。
///
/// 起始值:1;默认值:1。
#[setters(generate = true, strip_option)]
page_number: Option<i32>,
/// 地域ID,必填参数。
#[setters(generate = true, strip_option)]
region_id: Option<String>,
/// 实例ID。此参数用于查询单个实例。
///
/// > 如果未指定实例ID(**InstanceId**与**InstanceIds**均为传入参数值),则将返回目标地域内所有RDS Custom实例的详细信息。
#[setters(generate = true, strip_option)]
instance_id: Option<String>,
/// 按指定标签查询。输入格式为:`{"TagKey(标签建)":"TagValue(标签值)"}`。
#[setters(generate = true, strip_option)]
tag: Option<String>,
/// 按实例公网IP查询。
#[setters(generate = true, strip_option)]
public_ip: Option<String>,
/// 按实例主机IP查询。
#[setters(generate = true, strip_option)]
host_ip: Option<String>,
/// 实例ID。
///
/// 此参数用于同时查询多个实例。实例ID间使用英文逗号(,)分割,且最多支持100个ID。输入格式为:`["实例ID1","实例ID2"]`。
///
/// > 当**InstanceIds**和**instanceId**同时传入参数时,以**InstanceIds**的值为准。
#[setters(generate = true, strip_option)]
instance_ids: Option<String>,
/// 实例状态。取值范围:
///
/// - **Pending**:创建中。
/// - **Running**:运行中。
/// - **Starting**:启动中。
/// - **Stopping**:暂停中。
/// - **Stopped**:已暂停。
#[setters(generate = true, strip_option)]
status: Option<String>,
/// 实例名称
#[setters(generate = true, strip_option)]
instance_name: Option<String>,
#[setters(generate = true, strip_option)]
image_id: Option<String>,
#[setters(generate = true, strip_option)]
description: Option<String>,
}
impl sealed::Bound for DescribeRCInstances {}
impl DescribeRCInstances {
pub fn new() -> Self {
Self {
vpc_id: None,
page_size: None,
page_number: None,
region_id: None,
instance_id: None,
tag: None,
public_ip: None,
host_ip: None,
instance_ids: None,
status: None,
instance_name: None,
image_id: None,
description: None,
}
}
}
impl crate::ToFormData for DescribeRCInstances {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DescribeRCInstances {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DescribeRCInstances";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DescribeRCInstancesResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(13);
if let Some(f) = &self.description {
params.push(("Description".into(), (f).into()));
}
if let Some(f) = &self.host_ip {
params.push(("HostIp".into(), (f).into()));
}
if let Some(f) = &self.image_id {
params.push(("ImageId".into(), (f).into()));
}
if let Some(f) = &self.instance_id {
params.push(("InstanceId".into(), (f).into()));
}
if let Some(f) = &self.instance_ids {
params.push(("InstanceIds".into(), (f).into()));
}
if let Some(f) = &self.instance_name {
params.push(("InstanceName".into(), (f).into()));
}
if let Some(f) = &self.page_number {
params.push(("PageNumber".into(), (f).into()));
}
if let Some(f) = &self.page_size {
params.push(("PageSize".into(), (f).into()));
}
if let Some(f) = &self.public_ip {
params.push(("PublicIp".into(), (f).into()));
}
if let Some(f) = &self.region_id {
params.push(("RegionId".into(), (f).into()));
}
if let Some(f) = &self.status {
params.push(("Status".into(), (f).into()));
}
if let Some(f) = &self.tag {
params.push(("Tag".into(), (f).into()));
}
if let Some(f) = &self.vpc_id {
params.push(("VpcId".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 调用DescribeRCImageList接口,并可以指定RegionId等参数,查询创建RDS Custom可以使用的自定义镜像列表。
///
/// Argument of [Connection::describe_rc_image_list()], returns [DescribeRCImageListResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DescribeRCImageList {
/// 地域ID。
region_id: String,
/// 分页页码。
#[setters(generate = true, strip_option)]
page_number: Option<i32>,
/// 每页记录数。
#[setters(generate = true, strip_option)]
page_size: Option<i32>,
/// 镜像类型。当前仅支持**self**。
#[setters(generate = true, strip_option, rename = "r#type")]
r#type: Option<String>,
/// 镜像系统架构类型。取值:
///
/// - x86_64。
/// - arm64。
#[setters(generate = true, strip_option)]
architecture: Option<String>,
/// 镜像ID。
#[setters(generate = true, strip_option)]
image_id: Option<String>,
/// 镜像名称。
#[setters(generate = true, strip_option)]
image_name: Option<String>,
/// 为指定的实例规格查询可以使用的镜像。
#[setters(generate = true, strip_option)]
instance_type: Option<String>,
}
impl sealed::Bound for DescribeRCImageList {}
impl DescribeRCImageList {
pub fn new(region_id: impl Into<String>) -> Self {
Self {
region_id: region_id.into(),
page_number: None,
page_size: None,
r#type: None,
architecture: None,
image_id: None,
image_name: None,
instance_type: None,
}
}
}
impl crate::Request for DescribeRCImageList {
const METHOD: http::Method = http::Method::GET;
const ACTION: &'static str = "DescribeRCImageList";
type Body = ();
type ResponseWrap = crate::JsonResponseWrap<DescribeRCImageListResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(8);
if let Some(f) = &self.architecture {
params.push(("Architecture".into(), (f).into()));
}
if let Some(f) = &self.image_id {
params.push(("ImageId".into(), (f).into()));
}
if let Some(f) = &self.image_name {
params.push(("ImageName".into(), (f).into()));
}
if let Some(f) = &self.instance_type {
params.push(("InstanceType".into(), (f).into()));
}
if let Some(f) = &self.page_number {
params.push(("PageNumber".into(), (f).into()));
}
if let Some(f) = &self.page_size {
params.push(("PageSize".into(), (f).into()));
}
params.push(("RegionId".into(), (&self.region_id).into()));
if let Some(f) = &self.r#type {
params.push(("Type".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {}
}
/// 本接口用于修改RDS Custom实例的名称。
///
/// Argument of [Connection::modify_rc_instance_description()], returns [ModifyRCInstanceDescriptionResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct ModifyRCInstanceDescription {
/// 地域ID。
#[setters(generate = true, strip_option)]
region_id: Option<String>,
/// 实例ID。
#[setters(generate = true, strip_option)]
instance_id: Option<String>,
/// RDS Custom实例名称。
///
/// > 长度为2~255个字符,以大小字母或中文开头,可包含数字,`_`或`-`。
#[setters(generate = true, strip_option)]
instance_description: Option<String>,
}
impl sealed::Bound for ModifyRCInstanceDescription {}
impl ModifyRCInstanceDescription {
pub fn new() -> Self {
Self {
region_id: None,
instance_id: None,
instance_description: None,
}
}
}
impl crate::ToFormData for ModifyRCInstanceDescription {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for ModifyRCInstanceDescription {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "ModifyRCInstanceDescription";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<ModifyRCInstanceDescriptionResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(3);
if let Some(f) = &self.instance_description {
params.push(("InstanceDescription".into(), (f).into()));
}
if let Some(f) = &self.instance_id {
params.push(("InstanceId".into(), (f).into()));
}
if let Some(f) = &self.region_id {
params.push(("RegionId".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 调用CreateDisk接口,创建一块RDS Custom数据盘。
///
/// Argument of [Connection::create_rc_disk()], returns [CreateRCDiskResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct CreateRCDisk {
/// 地域ID。可以通过接口DescribeRegions查看地域ID。
region_id: String,
/// 创建云盘使用的快照。
///
/// - 支持使用RDS Custom快照和ECS快照(非共享类型)。
/// - 如果**SnapshotId**对应的快照容量大于**Size**的值,则创建的云盘大小与快照相同。如果快照容量小于**Size**的值,则创建的云盘大小将为**Size**的值。
/// - 不支持使用快照创建弹性临时盘。
/// - 2013年7月15日及以前的快照不能用来创建云盘。
#[setters(generate = true, strip_option)]
snapshot_id: Option<String>,
/// 容量大小。单位:GiB。您必须为该参数传入参数值。取值范围:
///
/// - **cloud_efficiency**:20~32,768。
/// - **cloud_ssd**:20~32,768。
/// - **cloud_auto**:1~65,536。
/// - **cloud_essd**:具体取值范围与**PerformanceLevel**的取值有关。
/// - PL0:1~65,536。
/// - PL1:20~65,536。
/// - PL2:461~65,536。
/// - PL3:1,261~65,536。
///
/// 如果指定了**SnapshotId**参数且其对应的快照容量大于**Size**的值,则创建的云盘大小与快照相同。如果快照容量小于**Size**的值,则创建的云盘大小将为**Size**的值。
#[setters(generate = true, strip_option)]
size: Option<i32>,
/// 数据盘的磁盘种类。取值范围:
///
/// - **cloud_efficiency**:高效云盘。
/// - **cloud_ssd**:SSD云盘。
/// - **cloud_essd**:ESSD云盘。
/// - **cloud_auto**(默认):高性能云盘。
#[setters(generate = true, strip_option)]
disk_category: Option<String>,
/// 磁盘描述。长度为 2~256 个英文或中文字符,不能以`http://`或`https://`开头。
#[setters(generate = true, strip_option)]
description: Option<String>,
/// 磁盘为ESSD云盘时的性能等级。取值范围:
///
/// - **PL0**:单盘最高随机读写IOPS 1万。
/// - **PL1**(默认):单盘最高随机读写IOPS 5万。
/// - **PL2**:单盘最高随机读写IOPS 10万。
/// - **PL3**:单盘最高随机读写IOPS 100万。
///
/// 有关如何选择ESSD性能等级,请参见[ESSD云盘](~~2859916~~)。
#[setters(generate = true, strip_option)]
performance_level: Option<String>,
/// 可用区ID。
///
/// 当不传入**InstanceId**(挂载磁盘的实例ID)参数时,此参数必填。
#[setters(generate = true, strip_option)]
zone_id: Option<String>,
/// 付费类型。取值:
///
/// - **Postpaid**:按量付费。此付费类型的磁盘无需挂载到实例上。您也可以根据需要在创建时将其挂载到任意付费类型的实例上。
/// - **Prepaid**:包年包月。此付费类型的磁盘必须挂载到包年包月的实例上,即必须传入包年包月的**InstanceId**(实例ID)。
#[setters(generate = true, strip_option)]
instance_charge_type: Option<String>,
/// 预留参数,无需填写。
#[setters(generate = true, strip_option)]
period_unit: Option<String>,
/// 预留参数,无需填写。
#[setters(generate = true, strip_option)]
period: Option<i32>,
/// 是否自动续费,仅在创建包年包月数据盘时传入,取值范围:
/// - **true**:是
/// - **false**:否
///
/// > 按月购买时,自动续费周期为1个月。
/// 按年购买时,自动续费周期为1年。
#[setters(generate = true, strip_option)]
auto_renew: Option<bool>,
/// 是否自动支付。取值范围:
///
/// - **true**(默认):自动支付。您需要确保账户余额充足。
/// - **false**:只生成订单不扣费。
///
///
///
///
/// > 如果您的支付方式余额不足,可以将此参数设置为false,此时会生成未支付订单,您可以登录RDS管理控制台自行支付。
/// >
#[setters(generate = true, strip_option)]
auto_pay: Option<bool>,
/// 磁盘名称。长度为2~128个字符,支持Unicode中letter分类下的字符(其中包括英文、中文和数字等)。可以包含半角冒号(:)、下划线(_)、半角句号(.)或者短划线(-)。
#[setters(generate = true, strip_option)]
disk_name: Option<String>,
/// 挂载磁盘的实例ID。若**InstanceChargeType**为**Prepaid**(包年包月)时,则必须传入包年包月的实例ID。
#[setters(generate = true, strip_option)]
instance_id: Option<String>,
/// 标签列表。
#[setters(generate = true, strip_option)]
tag: Option<Vec<DiskTag>>,
/// 资源组ID。
#[setters(generate = true, strip_option)]
resource_group_id: Option<String>,
}
impl sealed::Bound for CreateRCDisk {}
impl CreateRCDisk {
pub fn new(region_id: impl Into<String>) -> Self {
Self {
region_id: region_id.into(),
snapshot_id: None,
size: None,
disk_category: None,
description: None,
performance_level: None,
zone_id: None,
instance_charge_type: None,
period_unit: None,
period: None,
auto_renew: None,
auto_pay: None,
disk_name: None,
instance_id: None,
tag: None,
resource_group_id: None,
}
}
}
impl crate::ToFormData for CreateRCDisk {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for CreateRCDisk {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "CreateRCDisk";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<CreateRCDiskResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(16);
if let Some(f) = &self.auto_pay {
params.push(("AutoPay".into(), (f).into()));
}
if let Some(f) = &self.auto_renew {
params.push(("AutoRenew".into(), (f).into()));
}
if let Some(f) = &self.description {
params.push(("Description".into(), (f).into()));
}
if let Some(f) = &self.disk_category {
params.push(("DiskCategory".into(), (f).into()));
}
if let Some(f) = &self.disk_name {
params.push(("DiskName".into(), (f).into()));
}
if let Some(f) = &self.instance_charge_type {
params.push(("InstanceChargeType".into(), (f).into()));
}
if let Some(f) = &self.instance_id {
params.push(("InstanceId".into(), (f).into()));
}
if let Some(f) = &self.performance_level {
params.push(("PerformanceLevel".into(), (f).into()));
}
if let Some(f) = &self.period {
params.push(("Period".into(), (f).into()));
}
if let Some(f) = &self.period_unit {
params.push(("PeriodUnit".into(), (f).into()));
}
params.push(("RegionId".into(), (&self.region_id).into()));
if let Some(f) = &self.resource_group_id {
params.push(("ResourceGroupId".into(), (f).into()));
}
if let Some(f) = &self.size {
params.push(("Size".into(), (f).into()));
}
if let Some(f) = &self.snapshot_id {
params.push(("SnapshotId".into(), (f).into()));
}
if let Some(f) = &self.tag {
crate::FlatSerialize::flat_serialize(f, "Tag", &mut params);
}
if let Some(f) = &self.zone_id {
params.push(("ZoneId".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 重装一台RDS Custom实例的操作系统。
///
/// Argument of [Connection::replace_rc_instance_system_disk()], returns [ReplaceRCInstanceSystemDiskResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct ReplaceRCInstanceSystemDisk {
/// 地域ID。
#[setters(generate = true, strip_option)]
region_id: Option<String>,
/// 重置系统时使用的镜像ID。
#[setters(generate = true, strip_option)]
image_id: Option<String>,
/// 实例ID。
#[setters(generate = true, strip_option)]
instance_id: Option<String>,
/// RDS Custom实例的新登录密码。不传入该参数时,需要在重置成功后重新设置登录密码。
///
/// - 支持长度为8~30个字符。
/// - 必须同时包含大小写英文字母、数字和特殊符号中的三类字符。 特殊符号可以是:()`~!@#$%^&*-_+=。
#[setters(generate = true, strip_option)]
password: Option<String>,
/// 新密钥对名称。不传入该参数时,需要在重置成功后重新设置密钥对。
#[setters(generate = true, strip_option)]
key_pair_name: Option<String>,
/// 备用参数,暂不支持。
#[setters(generate = true, strip_option)]
is_local_disk: Option<bool>,
}
impl sealed::Bound for ReplaceRCInstanceSystemDisk {}
impl ReplaceRCInstanceSystemDisk {
pub fn new() -> Self {
Self {
region_id: None,
image_id: None,
instance_id: None,
password: None,
key_pair_name: None,
is_local_disk: None,
}
}
}
impl crate::ToFormData for ReplaceRCInstanceSystemDisk {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for ReplaceRCInstanceSystemDisk {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "ReplaceRCInstanceSystemDisk";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<ReplaceRCInstanceSystemDiskResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(6);
if let Some(f) = &self.image_id {
params.push(("ImageId".into(), (f).into()));
}
if let Some(f) = &self.instance_id {
params.push(("InstanceId".into(), (f).into()));
}
if let Some(f) = &self.is_local_disk {
params.push(("IsLocalDisk".into(), (f).into()));
}
if let Some(f) = &self.key_pair_name {
params.push(("KeyPairName".into(), (f).into()));
}
if let Some(f) = &self.password {
params.push(("Password".into(), (f).into()));
}
if let Some(f) = &self.region_id {
params.push(("RegionId".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于查询一台RDS Custom实例的VNC登录地址。
///
/// Argument of [Connection::describe_rc_instance_vnc_url()], returns [DescribeRCInstanceVncUrlResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DescribeRCInstanceVncUrl {
/// 地域ID。
#[setters(generate = true, strip_option)]
region_id: Option<String>,
/// 实例ID。
#[setters(generate = true, strip_option)]
instance_id: Option<String>,
/// 数据库类型。取值:
///
/// - **mssql**:SQL Server
/// - **mysql**:MySQL
#[setters(generate = true, strip_option)]
db_type: Option<String>,
}
impl sealed::Bound for DescribeRCInstanceVncUrl {}
impl DescribeRCInstanceVncUrl {
pub fn new() -> Self {
Self {
region_id: None,
instance_id: None,
db_type: None,
}
}
}
impl crate::ToFormData for DescribeRCInstanceVncUrl {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DescribeRCInstanceVncUrl {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DescribeRCInstanceVncUrl";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DescribeRCInstanceVncUrlResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(3);
if let Some(f) = &self.db_type {
params.push(("DbType".into(), (f).into()));
}
if let Some(f) = &self.instance_id {
params.push(("InstanceId".into(), (f).into()));
}
if let Some(f) = &self.region_id {
params.push(("RegionId".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于查询RDS Custom边缘节点池配置信息。
///
/// Argument of [Connection::describe_rc_node_pool()], returns [DescribeRCNodePoolResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DescribeRCNodePool {
/// 地域ID。
#[setters(generate = true, strip_option)]
region_id: Option<String>,
/// RDS Custom容器集群ID。
#[setters(generate = true, strip_option)]
cluster_id: Option<String>,
/// 节点池ID。
#[setters(generate = true, strip_option)]
node_pool_id: Option<String>,
}
impl sealed::Bound for DescribeRCNodePool {}
impl DescribeRCNodePool {
pub fn new() -> Self {
Self {
region_id: None,
cluster_id: None,
node_pool_id: None,
}
}
}
impl crate::Request for DescribeRCNodePool {
const METHOD: http::Method = http::Method::GET;
const ACTION: &'static str = "DescribeRCNodePool";
type Body = ();
type ResponseWrap = crate::JsonResponseWrap<DescribeRCNodePoolResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(3);
if let Some(f) = &self.cluster_id {
params.push(("ClusterId".into(), (f).into()));
}
if let Some(f) = &self.node_pool_id {
params.push(("NodePoolId".into(), (f).into()));
}
if let Some(f) = &self.region_id {
params.push(("RegionId".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {}
}
/// 在RDS Custom的ACK Edge集群中创建边缘节点池。
///
/// Argument of [Connection::create_rc_node_pool()], returns [CreateRCNodePoolResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct CreateRCNodePool {
/// 地域ID。
region_id: String,
/// 实例资源规格。RDS Custom实例支持的资源规格,请参见[RDS Custom实例规格列表](~~2844823~~)。
instance_type: String,
/// 指定需要创建的RDS Custom实例数量。本参数仅适用于批量创建RDS Custom实例。
///
/// 取值范围:**1**~**5**;默认值:**1**。
#[setters(generate = true, strip_option)]
amount: Option<i32>,
/// 购买资源的时长,默认为**1**。
#[setters(generate = true, strip_option)]
period: Option<i32>,
/// 包年包月计费方式的时长单位。取值范围:
/// - **Year**:年
/// - **Month**(默认):月
#[setters(generate = true, strip_option)]
period_unit: Option<PoolPeriodUnit>,
/// 实例是否自动续费,仅在创建包年包月实例时传入。取值:
/// * **true**:是
/// * **false**:否
///
/// > * 按月购买,则自动续费周期为1个月。
/// > * 按年购买,则自动续费周期为1年。
#[setters(generate = true, strip_option)]
auto_renew: Option<bool>,
/// 预留参数,暂不支持。
#[setters(generate = true, strip_option)]
security_enhancement_strategy: Option<String>,
/// 用于保证请求的幂等性,防止重复提交请求。由客户端生成该参数值,要保证在不同请求间唯一,最大值不超过64个ASCII字符,且该参数值中不能包含非ASCII字符。
#[setters(generate = true, strip_option)]
client_token: Option<String>,
/// 实例root账号密码。
#[setters(generate = true, strip_option)]
password: Option<String>,
/// 交换机ID。
///
/// > 与RDS实例需属于同一可用区。
v_switch_id: String,
/// 数据盘列表。
#[setters(generate = true, strip_option)]
data_disk: Option<Vec<PoolDataDisk>>,
/// 实例名称。
#[setters(generate = true, strip_option)]
instance_name: Option<String>,
/// 部署集ID。
#[setters(generate = true, strip_option)]
deployment_set_id: Option<String>,
/// 备用参数,暂不支持。
#[setters(generate = true, strip_option)]
internet_charge_type: Option<String>,
/// 备用参数,暂不支持。
#[setters(generate = true, strip_option)]
internet_max_bandwidth_out: Option<i32>,
/// 安全组ID,可以输入已有安全组ID,如果安全组不存在,将自动创建一个安全组。
#[setters(generate = true, strip_option)]
security_group_id: Option<String>,
/// 实例所属的可用区ID。
/// > 如果您指定了VSwitchId参数,则指定的ZoneId参数必须和交换机所在的可用区保持一致。您也可以不指定ZoneId参数,系统将自动选择指定的交换机所在的可用区。
#[setters(generate = true, strip_option)]
zone_id: Option<String>,
/// 备用参数,暂不支持。
#[setters(generate = true, strip_option)]
io_optimized: Option<String>,
/// 实例使用的镜像ID。
#[setters(generate = true, strip_option)]
image_id: Option<String>,
/// 系统盘规格。
#[setters(generate = true, strip_option)]
system_disk: Option<PoolSystemDisk>,
/// 付费类型,取值:
/// * **Prepaid**:包年包月
/// * **Postpaid**:按量付费
#[setters(generate = true, strip_option)]
instance_charge_type: Option<String>,
/// 是否自动支付。
/// 取值范围:
///
/// - **true**:自动支付。您需要确保账户余额充足。
/// - **false**:只生成订单不扣费。
///
///
/// > 默认值为true。如果您的支付方式余额不足,可以将参数AutoPay设置为false,此时会生成未支付订单,您可以登录RDS管理控制台自行支付。
/// >
#[setters(generate = true, strip_option)]
auto_pay: Option<bool>,
/// 实例描述。长度为 2~256 个英文或中文字符,不能以http://和https://开头。
#[setters(generate = true, strip_option)]
description: Option<String>,
/// 密钥对名称。仅支持传单个名称。
#[setters(generate = true, strip_option)]
key_pair_name: Option<String>,
/// 是否对本次创建实例的操作执行预检查,取值:
/// * **true**:执行预检查操作,不创建实例。检查项目包含请求参数、请求格式、业务限制和库存等。
/// * **false**(默认):发送正常请求,通过检查后直接创建实例。
#[setters(generate = true, strip_option)]
dry_run: Option<bool>,
/// 标签列表。
#[setters(generate = true, strip_option)]
tag: Option<Vec<PoolTag>>,
/// 资源组ID。
#[setters(generate = true, strip_option)]
resource_group_id: Option<String>,
/// 是否允许加入ACK集群。该参数配置为**1**时,创建的实例可以添加到ACK集群中,从而实现对容器应用的高效管理。
///
/// - **1**:是
/// - **0**(默认):否
#[setters(generate = true, strip_option)]
create_mode: Option<String>,
/// 实例主机名。
#[setters(generate = true, strip_option)]
host_name: Option<String>,
/// 备用参数,暂不支持。
#[setters(generate = true, strip_option)]
spot_strategy: Option<String>,
/// RDS Custom容器集群ID。
cluster_id: String,
/// 节点池名称。
#[setters(generate = true, strip_option)]
node_pool_name: Option<String>,
/// 支持场景。当**createMode**取值为**1**时,需要传入此参数。当前仅支持**edge**。
#[setters(generate = true, strip_option)]
support_case: Option<String>,
/// 备用参数,暂不支持。
#[setters(generate = true, strip_option)]
user_data: Option<String>,
}
impl sealed::Bound for CreateRCNodePool {}
impl CreateRCNodePool {
pub fn new(
region_id: impl Into<String>,
instance_type: impl Into<String>,
v_switch_id: impl Into<String>,
cluster_id: impl Into<String>,
) -> Self {
Self {
region_id: region_id.into(),
instance_type: instance_type.into(),
amount: None,
period: None,
period_unit: None,
auto_renew: None,
security_enhancement_strategy: None,
client_token: None,
password: None,
v_switch_id: v_switch_id.into(),
data_disk: None,
instance_name: None,
deployment_set_id: None,
internet_charge_type: None,
internet_max_bandwidth_out: None,
security_group_id: None,
zone_id: None,
io_optimized: None,
image_id: None,
system_disk: None,
instance_charge_type: None,
auto_pay: None,
description: None,
key_pair_name: None,
dry_run: None,
tag: None,
resource_group_id: None,
create_mode: None,
host_name: None,
spot_strategy: None,
cluster_id: cluster_id.into(),
node_pool_name: None,
support_case: None,
user_data: None,
}
}
}
impl crate::ToFormData for CreateRCNodePool {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for CreateRCNodePool {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "CreateRCNodePool";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<CreateRCNodePoolResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(34);
if let Some(f) = &self.amount {
params.push(("Amount".into(), (f).into()));
}
if let Some(f) = &self.auto_pay {
params.push(("AutoPay".into(), (f).into()));
}
if let Some(f) = &self.auto_renew {
params.push(("AutoRenew".into(), (f).into()));
}
if let Some(f) = &self.client_token {
params.push(("ClientToken".into(), (f).into()));
}
params.push(("ClusterId".into(), (&self.cluster_id).into()));
if let Some(f) = &self.create_mode {
params.push(("CreateMode".into(), (f).into()));
}
if let Some(f) = &self.data_disk {
if let Ok(json) = serde_json::to_string(f) {
params.push(("DataDisk".into(), json.into()));
}
}
if let Some(f) = &self.deployment_set_id {
params.push(("DeploymentSetId".into(), (f).into()));
}
if let Some(f) = &self.description {
params.push(("Description".into(), (f).into()));
}
if let Some(f) = &self.dry_run {
params.push(("DryRun".into(), (f).into()));
}
if let Some(f) = &self.host_name {
params.push(("HostName".into(), (f).into()));
}
if let Some(f) = &self.image_id {
params.push(("ImageId".into(), (f).into()));
}
if let Some(f) = &self.instance_charge_type {
params.push(("InstanceChargeType".into(), (f).into()));
}
if let Some(f) = &self.instance_name {
params.push(("InstanceName".into(), (f).into()));
}
params.push(("InstanceType".into(), (&self.instance_type).into()));
if let Some(f) = &self.internet_charge_type {
params.push(("InternetChargeType".into(), (f).into()));
}
if let Some(f) = &self.internet_max_bandwidth_out {
params.push(("InternetMaxBandwidthOut".into(), (f).into()));
}
if let Some(f) = &self.io_optimized {
params.push(("IoOptimized".into(), (f).into()));
}
if let Some(f) = &self.key_pair_name {
params.push(("KeyPairName".into(), (f).into()));
}
if let Some(f) = &self.node_pool_name {
params.push(("NodePoolName".into(), (f).into()));
}
if let Some(f) = &self.password {
params.push(("Password".into(), (f).into()));
}
if let Some(f) = &self.period {
params.push(("Period".into(), (f).into()));
}
if let Some(f) = &self.period_unit {
params.push(("PeriodUnit".into(), (f).into()));
}
params.push(("RegionId".into(), (&self.region_id).into()));
if let Some(f) = &self.resource_group_id {
params.push(("ResourceGroupId".into(), (f).into()));
}
if let Some(f) = &self.security_enhancement_strategy {
params.push(("SecurityEnhancementStrategy".into(), (f).into()));
}
if let Some(f) = &self.security_group_id {
params.push(("SecurityGroupId".into(), (f).into()));
}
if let Some(f) = &self.spot_strategy {
params.push(("SpotStrategy".into(), (f).into()));
}
if let Some(f) = &self.support_case {
params.push(("SupportCase".into(), (f).into()));
}
if let Some(f) = &self.system_disk {
if let Ok(json) = serde_json::to_string(f) {
params.push(("SystemDisk".into(), json.into()));
}
}
if let Some(f) = &self.tag {
crate::FlatSerialize::flat_serialize(f, "Tag", &mut params);
}
if let Some(f) = &self.user_data {
params.push(("UserData".into(), (f).into()));
}
params.push(("VSwitchId".into(), (&self.v_switch_id).into()));
if let Some(f) = &self.zone_id {
params.push(("ZoneId".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于续费一台包年包月的RDS Custom实例。
///
/// Argument of [Connection::renew_rc_instance()], returns [RenewRCInstanceResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct RenewRCInstance {
/// 用于保证请求的幂等性,防止重复提交请求。由客户端生成该参数值,要保证在不同请求间唯一,最大值不超过64个ASCII字符,且该参数值中不能包含非ASCII字符。
#[setters(generate = true, strip_option)]
client_token: Option<String>,
/// 商品代码。
///
/// <props="china">默认为**rds_customprepaid_public_cn**。</props>
///
///
///
/// <props="intl">默认为**rds_customprepaid_public_intl**。</props>
commodity_code: String,
/// 地域ID。
region_id: String,
/// 目标RDS Custom实例的ID。
#[setters(generate = true, strip_option)]
instance_id: Option<String>,
/// 指定购买时长。取值:
/// * 当参数**TimeType**为**1**(年)时,UsedTime取值为**1~5**。
/// * 当参数**TimeType**为**2**(月)时,UsedTime取值为**1~11**。
used_time: String,
/// 续费时长的时间单位,即参数**UsedTime**的单位。取值:
///
/// - **1**:年
/// - **2**(默认):月
time_type: String,
/// 资源。
#[setters(generate = true, strip_option)]
resource: Option<String>,
/// 是否自动支付。取值范围:
///
/// - **true**:自动支付。您需要确保账户余额充足。
/// - **false**:只生成订单不扣费。
///
///
///
///
/// > 默认值为true。如果您的支付方式余额不足,可以将参数AutoPay设置为false,此时会生成未支付订单,您可以登录RDS管理控制台自行支付。
/// >
#[setters(generate = true, strip_option)]
auto_pay: Option<bool>,
/// 目标实例的付费类型,目前仅支持**Prepaid**:预付费(包年包月)。
#[setters(generate = true, strip_option)]
pay_type: Option<String>,
/// 订单附加信息。
#[setters(generate = true, strip_option)]
business_info: Option<String>,
/// 是否包年,取值范围:
///
/// - **true**:包年
/// - **false**(默认):不包年
#[setters(generate = true, strip_option)]
period_align: Option<bool>,
/// 实例是否自动续费,取值:
///
/// * **true**:是
/// * **false**(默认):否
#[setters(generate = true, strip_option)]
auto_renew: Option<String>,
/// 是否使用代金券,取值:
/// * **true**(默认):使用代金券。
/// * **false**:不使用代金券。
#[setters(generate = true, strip_option)]
auto_use_coupon: Option<bool>,
/// 优惠券code。
#[setters(generate = true, strip_option)]
promotion_code: Option<String>,
}
impl sealed::Bound for RenewRCInstance {}
impl RenewRCInstance {
pub fn new(
commodity_code: impl Into<String>,
region_id: impl Into<String>,
used_time: impl Into<String>,
time_type: impl Into<String>,
) -> Self {
Self {
client_token: None,
commodity_code: commodity_code.into(),
region_id: region_id.into(),
instance_id: None,
used_time: used_time.into(),
time_type: time_type.into(),
resource: None,
auto_pay: None,
pay_type: None,
business_info: None,
period_align: None,
auto_renew: None,
auto_use_coupon: None,
promotion_code: None,
}
}
}
impl crate::ToFormData for RenewRCInstance {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for RenewRCInstance {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "RenewRCInstance";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<RenewRCInstanceResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(14);
if let Some(f) = &self.auto_pay {
params.push(("AutoPay".into(), (f).into()));
}
if let Some(f) = &self.auto_renew {
params.push(("AutoRenew".into(), (f).into()));
}
if let Some(f) = &self.auto_use_coupon {
params.push(("AutoUseCoupon".into(), (f).into()));
}
if let Some(f) = &self.business_info {
params.push(("BusinessInfo".into(), (f).into()));
}
if let Some(f) = &self.client_token {
params.push(("ClientToken".into(), (f).into()));
}
params.push(("CommodityCode".into(), (&self.commodity_code).into()));
if let Some(f) = &self.instance_id {
params.push(("InstanceId".into(), (f).into()));
}
if let Some(f) = &self.pay_type {
params.push(("PayType".into(), (f).into()));
}
if let Some(f) = &self.period_align {
params.push(("PeriodAlign".into(), (f).into()));
}
if let Some(f) = &self.promotion_code {
params.push(("PromotionCode".into(), (f).into()));
}
params.push(("RegionId".into(), (&self.region_id).into()));
if let Some(f) = &self.resource {
params.push(("Resource".into(), (f).into()));
}
params.push(("TimeType".into(), (&self.time_type).into()));
params.push(("UsedTime".into(), (&self.used_time).into()));
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 用于在指定安全组中新增规则。
///
/// Argument of [Connection::authorize_rc_security_group_permission()], returns [AuthorizeRCSecurityGroupPermissionResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct AuthorizeRCSecurityGroupPermission {
/// 地域ID。
#[setters(generate = true, strip_option)]
region_id: Option<String>,
/// 安全组ID。
#[setters(generate = true, strip_option)]
security_group_id: Option<String>,
/// 安全组信息。
#[setters(generate = true, strip_option)]
security_group_permissions: Option<Vec<GroupPermission>>,
/// 规则方向。取值:
///
/// - **ingress**:安全组入方向。
/// - **egress**:安全组出方向。
#[setters(generate = true, strip_option)]
direction: Option<String>,
}
impl sealed::Bound for AuthorizeRCSecurityGroupPermission {}
impl AuthorizeRCSecurityGroupPermission {
pub fn new() -> Self {
Self {
region_id: None,
security_group_id: None,
security_group_permissions: None,
direction: None,
}
}
}
impl crate::ToFormData for AuthorizeRCSecurityGroupPermission {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for AuthorizeRCSecurityGroupPermission {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "AuthorizeRCSecurityGroupPermission";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<AuthorizeRCSecurityGroupPermissionResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(4);
if let Some(f) = &self.direction {
params.push(("Direction".into(), (f).into()));
}
if let Some(f) = &self.region_id {
params.push(("RegionId".into(), (f).into()));
}
if let Some(f) = &self.security_group_id {
params.push(("SecurityGroupId".into(), (f).into()));
}
if let Some(f) = &self.security_group_permissions {
if let Ok(json) = serde_json::to_string(f) {
params.push(("SecurityGroupPermissions".into(), json.into()));
}
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 统计事件中心的历史事件。
///
/// Argument of [Connection::describe_history_events_stat()], returns [DescribeHistoryEventsStatResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DescribeHistoryEventsStat {
/// 地域ID。可调用DescribeRegions获取。
region_id: String,
/// 事件状态。取值说明:
/// - **Archived**:已归档
/// - **UnArchived**:未归档
/// - **All**:所有
archive_status: String,
/// 任务开始时间的起始时间,表示查询任务开始时间在此时间之后的任务。按照ISO8601标准表示,并需要使用UTC +0时间,格式为yyyy-MM-ddTHH:mm:ssZ。最早支持30天前,距当前时间超过30天会自动转换成30天前。
#[setters(generate = true, strip_option)]
from_start_time: Option<String>,
/// 任务开始时间的结束时间,表示查询任务开始时间在此时间之前的任务。按照ISO8601标准表示,并需要使用UTC +0时间,格式为yyyy-MM-ddTHH:mm:ssZ。
to_start_time: String,
}
impl sealed::Bound for DescribeHistoryEventsStat {}
impl DescribeHistoryEventsStat {
pub fn new(
region_id: impl Into<String>,
archive_status: impl Into<String>,
to_start_time: impl Into<String>,
) -> Self {
Self {
region_id: region_id.into(),
archive_status: archive_status.into(),
from_start_time: None,
to_start_time: to_start_time.into(),
}
}
}
impl crate::ToFormData for DescribeHistoryEventsStat {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DescribeHistoryEventsStat {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DescribeHistoryEventsStat";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DescribeHistoryEventsStatResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(4);
params.push(("ArchiveStatus".into(), (&self.archive_status).into()));
if let Some(f) = &self.from_start_time {
params.push(("FromStartTime".into(), (f).into()));
}
params.push(("RegionId".into(), (&self.region_id).into()));
params.push(("ToStartTime".into(), (&self.to_start_time).into()));
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 查询事件中心的事件列表。
///
/// Argument of [Connection::describe_history_events()], returns [DescribeHistoryEventsResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DescribeHistoryEvents {
/// 地域ID,可调用[DescribeRegions](~~610399~~)获取。
#[setters(generate = true, strip_option)]
region_id: Option<String>,
/// 每页记录数,默认值为**30**。
#[setters(generate = true, strip_option)]
page_size: Option<i32>,
/// 页码,取值大于0且不超过integer的最大值,默认值为**1**。
#[setters(generate = true, strip_option)]
page_number: Option<i32>,
/// 事件状态。取值说明:
/// - **Archived**:已归档
/// - **UnArchived**:未归档
/// - **All**:所有
#[setters(generate = true, strip_option)]
archive_status: Option<String>,
/// 系统事件分类。取值说明:
/// - **Exception**:异常事件
/// - **Optimize**:优化事件
/// - **Notification**:通知事件
/// - **Maintenance**:计划内运维事件
#[setters(generate = true, strip_option)]
event_category: Option<String>,
/// 系统事件类型。此参数只在未指定InstanceEventType.N时有效。取值说明:
/// - **SystemMaintenance.Reboot**:因系统维护实例重启。
/// - **SystemMaintenance.Redeploy**:因系统维护实例重新部署。
/// - **SystemFailure.Reboot**:因系统错误实例重启。
/// - **SystemFailure.Redeploy**:因系统错误实例重新部署。
/// - **SystemFailure.Delete**:因实例创建失败实例释放。
/// - **InstanceFailure.Reboot**:因实例错误实例重启。
/// - **InstanceExpiration.Stop**:因包年包月期限到期,实例停止。
/// - **InstanceExpiration.Delete**:因包年包月期限到期,实例释放。
/// - **AccountUnbalanced.Stop**:因账号欠费,按量付费实例停止。
/// - **AccountUnbalanced.Delete**:因账号欠费,按量付费实例释放。
/// > 该参数取值只能是实例系统事件,不能为磁盘系统事件。
#[setters(generate = true, strip_option)]
event_type: Option<String>,
/// 事件级别,取值说明:
/// - **INFO**:通知
/// - **WARN**:警告
/// - **CRITICAL**:紧急
#[setters(generate = true, strip_option)]
event_level: Option<String>,
/// 事件状态,取值说明:
/// - **Inquiring**:问询中
/// - **Scheduled**:计划中
/// - **Running**:执行中
/// - **Succeed**:执行完成
/// - **Failed**:执行失败
/// - **Canceled**:已取消
/// > 如需查询多个状态,使用英文逗号分隔。
#[setters(generate = true, strip_option)]
event_status: Option<String>,
/// 资源类型,取值说明:
/// - **Instance**:实例资源
/// - **Host**:主机资源
/// - **User**:用户资源
/// > 该参数不填写,表示查询所有类型。
#[setters(generate = true, strip_option)]
resource_type: Option<String>,
/// RDS实例ID。
#[setters(generate = true, strip_option)]
instance_id: Option<String>,
/// 事件ID。
#[setters(generate = true, strip_option)]
event_id: Option<String>,
/// 任务ID,获取指定任务ID数据。
#[setters(generate = true, strip_option)]
task_id: Option<String>,
/// 任务开始时间的起始时间,表示查询任务开始时间在此时间之后的任务。按照ISO8601标准表示,并需要使用`UTC +0`时间,格式为`yyyy-MM-ddTHH:mm:ssZ`。最早支持30天前,距当前时间超过30天会自动转换成30天前。
from_start_time: String,
/// 任务开始时间的结束时间,表示查询任务开始时间在此时间之前的任务。按照ISO8601标准表示,并需要使用`UTC +0`时间,格式为`yyyy-MM-ddTHH:mm:ssZ`。
to_start_time: String,
/// 资源组ID。
#[setters(generate = true, strip_option)]
resource_group_id: Option<String>,
}
impl sealed::Bound for DescribeHistoryEvents {}
impl DescribeHistoryEvents {
pub fn new(from_start_time: impl Into<String>, to_start_time: impl Into<String>) -> Self {
Self {
region_id: None,
page_size: None,
page_number: None,
archive_status: None,
event_category: None,
event_type: None,
event_level: None,
event_status: None,
resource_type: None,
instance_id: None,
event_id: None,
task_id: None,
from_start_time: from_start_time.into(),
to_start_time: to_start_time.into(),
resource_group_id: None,
}
}
}
impl crate::ToFormData for DescribeHistoryEvents {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DescribeHistoryEvents {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DescribeHistoryEvents";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DescribeHistoryEventsResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(15);
if let Some(f) = &self.archive_status {
params.push(("ArchiveStatus".into(), (f).into()));
}
if let Some(f) = &self.event_category {
params.push(("EventCategory".into(), (f).into()));
}
if let Some(f) = &self.event_id {
params.push(("EventId".into(), (f).into()));
}
if let Some(f) = &self.event_level {
params.push(("EventLevel".into(), (f).into()));
}
if let Some(f) = &self.event_status {
params.push(("EventStatus".into(), (f).into()));
}
if let Some(f) = &self.event_type {
params.push(("EventType".into(), (f).into()));
}
params.push(("FromStartTime".into(), (&self.from_start_time).into()));
if let Some(f) = &self.instance_id {
params.push(("InstanceId".into(), (f).into()));
}
if let Some(f) = &self.page_number {
params.push(("PageNumber".into(), (f).into()));
}
if let Some(f) = &self.page_size {
params.push(("PageSize".into(), (f).into()));
}
if let Some(f) = &self.region_id {
params.push(("RegionId".into(), (f).into()));
}
if let Some(f) = &self.resource_group_id {
params.push(("ResourceGroupId".into(), (f).into()));
}
if let Some(f) = &self.resource_type {
params.push(("ResourceType".into(), (f).into()));
}
if let Some(f) = &self.task_id {
params.push(("TaskId".into(), (f).into()));
}
params.push(("ToStartTime".into(), (&self.to_start_time).into()));
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 修改事件中心的事件信息。
///
/// Argument of [Connection::modify_event_info()], returns [ModifyEventInfoResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct ModifyEventInfo {
/// 地域ID,可调用DescribeRegions接口获取。
region_id: String,
/// 事件ID,可调用DescribeEvents获取。如需查询多个事件,使用英文逗号分隔,最多支持20个。
event_id: String,
/// 事件处理动作,取值说明:
/// - **archive**:归档
/// - **undo**:不处理
/// > 该参数为必填参数。
#[setters(generate = true, strip_option)]
event_action: Option<String>,
/// 动作相关的参数,根据业务需要扩展,当taskAction取modifySwitchTime时,ActionParams取值` {"recoverMode": "xxx", "recoverTime": "xxx"}`。
///
/// recoverMode表示任务恢复模式,取值说明:
/// - **timePoint**:按照时间点执行
/// - **immediate**:立即执行
///
/// recoverTime表示恢复时间,UTC+0时间,格式为yyyy-MM-ddTHH:mm:ssZ。当recoverMode取timePoint时,recoverTime必填。
#[setters(generate = true, strip_option)]
action_params: Option<String>,
}
impl sealed::Bound for ModifyEventInfo {}
impl ModifyEventInfo {
pub fn new(region_id: impl Into<String>, event_id: impl Into<String>) -> Self {
Self {
region_id: region_id.into(),
event_id: event_id.into(),
event_action: None,
action_params: None,
}
}
}
impl crate::ToFormData for ModifyEventInfo {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for ModifyEventInfo {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "ModifyEventInfo";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<ModifyEventInfoResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(4);
if let Some(f) = &self.action_params {
params.push(("ActionParams".into(), (f).into()));
}
if let Some(f) = &self.event_action {
params.push(("EventAction".into(), (f).into()));
}
params.push(("EventId".into(), (&self.event_id).into()));
params.push(("RegionId".into(), (&self.region_id).into()));
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 统计任务中心的任务。
///
/// Argument of [Connection::describe_history_tasks_stat()], returns [DescribeHistoryTasksStatResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DescribeHistoryTasksStat {
/// 地域ID。可调用DescribeRegions获取。
region_id: String,
/// 任务状态,取值说明:
/// - **Scheduled**:等待执行
/// - **Running**:执行中
/// - **Succeed**:执行成功
/// - **Failed**:执行失败
/// - **Cancelling**:正在终止
/// - **Canceled**:已终止
/// - **Waiting**:等待预设时间
///
/// 如有多个状态则用英文逗号分隔,默认为空,表示全选。
#[setters(generate = true, strip_option)]
status: Option<String>,
/// 实例ID。
#[setters(generate = true, strip_option)]
instance_id: Option<String>,
/// 任务ID。
#[setters(generate = true, strip_option)]
task_id: Option<String>,
/// 任务类型。
#[setters(generate = true, strip_option)]
task_type: Option<String>,
/// 查询开始时间。格式:<i>yyyy-mm-dd</i>t<i>hh:mm</i>z(utc时间)。
from_start_time: String,
/// 任务开始时间的结束时间,表示查询任务开始时间在此时间之前的任务。按照ISO8601标准表示,并需要使用UTC +0时间,格式为yyyy-MM-ddTHH:mm:ssZ。
to_start_time: String,
/// 任务执行耗时的最小值。用于筛选任务执行耗时大于此时间的任务,单位秒。默认0,表示不限制。
#[setters(generate = true, strip_option)]
from_exec_time: Option<i32>,
/// 任务执行耗时的最大值。用于筛选任务执行耗时不小于此时间的任务,单位秒。默认0,表示不限制。
#[setters(generate = true, strip_option)]
to_exec_time: Option<i32>,
/// 资源组ID。
#[setters(generate = true, strip_option)]
resource_group_id: Option<String>,
}
impl sealed::Bound for DescribeHistoryTasksStat {}
impl DescribeHistoryTasksStat {
pub fn new(
region_id: impl Into<String>,
from_start_time: impl Into<String>,
to_start_time: impl Into<String>,
) -> Self {
Self {
region_id: region_id.into(),
status: None,
instance_id: None,
task_id: None,
task_type: None,
from_start_time: from_start_time.into(),
to_start_time: to_start_time.into(),
from_exec_time: None,
to_exec_time: None,
resource_group_id: None,
}
}
}
impl crate::ToFormData for DescribeHistoryTasksStat {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DescribeHistoryTasksStat {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DescribeHistoryTasksStat";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DescribeHistoryTasksStatResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(10);
if let Some(f) = &self.from_exec_time {
params.push(("FromExecTime".into(), (f).into()));
}
params.push(("FromStartTime".into(), (&self.from_start_time).into()));
if let Some(f) = &self.instance_id {
params.push(("InstanceId".into(), (f).into()));
}
params.push(("RegionId".into(), (&self.region_id).into()));
if let Some(f) = &self.resource_group_id {
params.push(("ResourceGroupId".into(), (f).into()));
}
if let Some(f) = &self.status {
params.push(("Status".into(), (f).into()));
}
if let Some(f) = &self.task_id {
params.push(("TaskId".into(), (f).into()));
}
if let Some(f) = &self.task_type {
params.push(("TaskType".into(), (f).into()));
}
if let Some(f) = &self.to_exec_time {
params.push(("ToExecTime".into(), (f).into()));
}
params.push(("ToStartTime".into(), (&self.to_start_time).into()));
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于获取历史任务记录,支持创建时间30天内的任务。
///
/// Argument of [Connection::describe_history_tasks()], returns [DescribeHistoryTasksResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DescribeHistoryTasks {
/// 待处理事件所属的地域ID,可调用DescribeRegions接口获取。
#[setters(generate = true, strip_option)]
region_id: Option<String>,
/// 每页记录数,取值:**10~100**。默认值:**10**。
#[setters(generate = true, strip_option)]
page_size: Option<i32>,
/// 查询结果的页码。取值范围:正整数。
/// 默认值:**1**。
#[setters(generate = true, strip_option)]
page_number: Option<i32>,
/// 当前只支持Instance。
#[setters(generate = true, strip_option)]
instance_type: Option<String>,
/// 任务状态,取值说明:
/// - **Scheduled**:等待执行
/// - **Running**:执行中
/// - **Succeed**:执行成功
/// - **Failed**:执行失败
/// - **Cancelling**:正在终止
/// - **Canceled**:已终止
/// - **Waiting**:等待预设时间
///
/// 如需查询多个状态则用英文逗号分隔,默认为空,表示全选。
#[setters(generate = true, strip_option)]
status: Option<String>,
/// 实例ID,用于查询对应实例的任务,如有多个用英文逗号分隔,最多支持30个,默认为空,表示不限制。
#[setters(generate = true, strip_option)]
instance_id: Option<String>,
/// 任务ID,可调用DescribeTasks接口获取。如有多个任务ID,使用英文用逗号分隔,最多支持30个,默认为空,表示不限制。
#[setters(generate = true, strip_option)]
task_id: Option<String>,
/// 任务类型,用于查询特定类型任务情况,如有多个用英文逗号分隔,最多支持30个,默认为空,表示不限制。
#[setters(generate = true, strip_option)]
task_type: Option<String>,
/// 任务开始时间的起始时间,表示查询任务开始时间在此时间之后的任务。按照ISO8601标准表示,并需要使用UTC +0时间,格式为yyyy-MM-ddTHH:mm:ssZ。最早支持30天前,距当前时间超过30天会自动转换成30天前。
from_start_time: String,
/// 任务开始时间的结束时间,表示查询任务开始时间在此时间之前的任务。按照ISO8601标准表示,并需要使用UTC +0时间,格式为yyyy-MM-ddTHH:mm:ssZ。
to_start_time: String,
/// 任务执行耗时的最小值。用于筛选任务执行耗时大于此时间的任务,单位秒。默认0,表示不限制。
#[setters(generate = true, strip_option)]
from_exec_time: Option<i32>,
/// 任务执行耗时的最大值。用于筛选任务执行耗时不小于此时间的任务,单位秒。默认0,表示不限制。
#[setters(generate = true, strip_option)]
to_exec_time: Option<i32>,
/// 资源组ID。
#[setters(generate = true, strip_option)]
resource_group_id: Option<String>,
}
impl sealed::Bound for DescribeHistoryTasks {}
impl DescribeHistoryTasks {
pub fn new(from_start_time: impl Into<String>, to_start_time: impl Into<String>) -> Self {
Self {
region_id: None,
page_size: None,
page_number: None,
instance_type: None,
status: None,
instance_id: None,
task_id: None,
task_type: None,
from_start_time: from_start_time.into(),
to_start_time: to_start_time.into(),
from_exec_time: None,
to_exec_time: None,
resource_group_id: None,
}
}
}
impl crate::ToFormData for DescribeHistoryTasks {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DescribeHistoryTasks {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DescribeHistoryTasks";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DescribeHistoryTasksResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(13);
if let Some(f) = &self.from_exec_time {
params.push(("FromExecTime".into(), (f).into()));
}
params.push(("FromStartTime".into(), (&self.from_start_time).into()));
if let Some(f) = &self.instance_id {
params.push(("InstanceId".into(), (f).into()));
}
if let Some(f) = &self.instance_type {
params.push(("InstanceType".into(), (f).into()));
}
if let Some(f) = &self.page_number {
params.push(("PageNumber".into(), (f).into()));
}
if let Some(f) = &self.page_size {
params.push(("PageSize".into(), (f).into()));
}
if let Some(f) = &self.region_id {
params.push(("RegionId".into(), (f).into()));
}
if let Some(f) = &self.resource_group_id {
params.push(("ResourceGroupId".into(), (f).into()));
}
if let Some(f) = &self.status {
params.push(("Status".into(), (f).into()));
}
if let Some(f) = &self.task_id {
params.push(("TaskId".into(), (f).into()));
}
if let Some(f) = &self.task_type {
params.push(("TaskType".into(), (f).into()));
}
if let Some(f) = &self.to_exec_time {
params.push(("ToExecTime".into(), (f).into()));
}
params.push(("ToStartTime".into(), (&self.to_start_time).into()));
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 修改任务中心的历史任务信息。
///
/// Argument of [Connection::modify_task_info()], returns [ModifyTaskInfoResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct ModifyTaskInfo {
/// 地域ID。可以通过接口[DescribeRegions](~~610399~~)查看可用的地域ID。
region_id: String,
/// 任务ID,可调用DescribeTasks接口获取。
task_id: String,
/// 执行步骤名称。
#[setters(generate = true, strip_option)]
step_name: Option<String>,
/// 任务操作,取值modifySwitchTime,表示修改切换时间或恢复时间。
#[setters(generate = true, strip_option)]
task_action: Option<String>,
/// 动作相关的参数,根据业务需要扩展,当taskAction取modifySwitchTime时,ActionParams取值` {"recoverMode": "xxx", "recoverTime": "xxx"}`。
///
/// recoverMode表示任务恢复模式,取值说明:
/// - **timePoint**:按照时间点执行
/// - **immediate**:立即执行
///
/// recoverTime表示恢复时间,UTC+0时间,格式为yyyy-MM-ddTHH:mm:ssZ。当recoverMode取timePoint时,recoverTime必填。
#[setters(generate = true, strip_option)]
action_params: Option<String>,
}
impl sealed::Bound for ModifyTaskInfo {}
impl ModifyTaskInfo {
pub fn new(region_id: impl Into<String>, task_id: impl Into<String>) -> Self {
Self {
region_id: region_id.into(),
task_id: task_id.into(),
step_name: None,
task_action: None,
action_params: None,
}
}
}
impl crate::ToFormData for ModifyTaskInfo {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for ModifyTaskInfo {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "ModifyTaskInfo";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<ModifyTaskInfoResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(5);
if let Some(f) = &self.action_params {
params.push(("ActionParams".into(), (f).into()));
}
params.push(("RegionId".into(), (&self.region_id).into()));
if let Some(f) = &self.step_name {
params.push(("StepName".into(), (f).into()));
}
if let Some(f) = &self.task_action {
params.push(("TaskAction".into(), (f).into()));
}
params.push(("TaskId".into(), (&self.task_id).into()));
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于查询RDS SQL Server实例中处于等待中和执行中的任务。
///
/// Argument of [Connection::describe_tasks()], returns [DescribeTasksResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DescribeTasks {
/// 实例ID。
db_instance_id: String,
/// 查询开始时间。格式为<i>yyyy-MM-dd</i>T<i>HH:mm</i>Z(UTC时间)。
#[setters(generate = true, strip_option)]
start_time: Option<String>,
/// 查询结束时间,必须晚于查询开始时间。格式为<i>yyyy-MM-dd</i>T<i>HH:mm</i>Z(UTC时间)。
#[setters(generate = true, strip_option)]
end_time: Option<String>,
/// 每页可展示的记录数,取值: **30~100**,默认值为**30**。
#[setters(generate = true, strip_option)]
page_size: Option<i32>,
/// 页码,大于0且不超过Integer数据类型的最大值,默认值为**1**。
#[setters(generate = true, strip_option)]
page_number: Option<i32>,
/// 任务状态。参数无效。
#[setters(generate = true, strip_option)]
status: Option<String>,
/// 任务所使用的API接口。
#[setters(generate = true, strip_option)]
task_action: Option<String>,
}
impl sealed::Bound for DescribeTasks {}
impl DescribeTasks {
pub fn new(db_instance_id: impl Into<String>) -> Self {
Self {
db_instance_id: db_instance_id.into(),
start_time: None,
end_time: None,
page_size: None,
page_number: None,
status: None,
task_action: None,
}
}
}
impl crate::ToFormData for DescribeTasks {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DescribeTasks {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DescribeTasks";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DescribeTasksResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(7);
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
if let Some(f) = &self.end_time {
params.push(("EndTime".into(), (f).into()));
}
if let Some(f) = &self.page_number {
params.push(("PageNumber".into(), (f).into()));
}
if let Some(f) = &self.page_size {
params.push(("PageSize".into(), (f).into()));
}
if let Some(f) = &self.start_time {
params.push(("StartTime".into(), (f).into()));
}
if let Some(f) = &self.status {
params.push(("Status".into(), (f).into()));
}
if let Some(f) = &self.task_action {
params.push(("TaskAction".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于领取优惠券。
///
/// Argument of [Connection::create_youhui_for_order()], returns [CreateYouhuiForOrderResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct CreateYouhuiForOrder {
/// 创建的工单ID。
activity_id: i64,
/// 优惠ID。可通过GetResourcePrice接口获取。
promotion_id: i64,
/// 地域ID。可以通过接口DescribeRegions查看地域ID。
region_id: String,
}
impl sealed::Bound for CreateYouhuiForOrder {}
impl CreateYouhuiForOrder {
pub fn new(
activity_id: impl Into<i64>,
promotion_id: impl Into<i64>,
region_id: impl Into<String>,
) -> Self {
Self {
activity_id: activity_id.into(),
promotion_id: promotion_id.into(),
region_id: region_id.into(),
}
}
}
impl crate::ToFormData for CreateYouhuiForOrder {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for CreateYouhuiForOrder {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "CreateYouhuiForOrder";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<CreateYouhuiForOrderResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(3);
params.push(("ActivityId".into(), (&self.activity_id).into()));
params.push(("PromotionId".into(), (&self.promotion_id).into()));
params.push(("RegionId".into(), (&self.region_id).into()));
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 查询实例最新变配订单
///
/// Argument of [Connection::describe_current_modify_order()], returns [DescribeCurrentModifyOrderResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DescribeCurrentModifyOrder {
/// 用于保证请求的幂等性,防止重复提交请求。由客户端生成该参数值,要保证在不同请求间唯一,最大值不超过64个ASCII字符,且该参数值中不能包含非ASCII字符。
#[setters(generate = true, strip_option)]
client_token: Option<String>,
/// 地域ID。
region_id: String,
/// 实例ID。可调用DescribeDBInstances获取。
db_instance_id: String,
/// 资源组ID。
#[setters(generate = true, strip_option)]
resource_group_id: Option<String>,
}
impl sealed::Bound for DescribeCurrentModifyOrder {}
impl DescribeCurrentModifyOrder {
pub fn new(region_id: impl Into<String>, db_instance_id: impl Into<String>) -> Self {
Self {
client_token: None,
region_id: region_id.into(),
db_instance_id: db_instance_id.into(),
resource_group_id: None,
}
}
}
impl crate::ToFormData for DescribeCurrentModifyOrder {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DescribeCurrentModifyOrder {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DescribeCurrentModifyOrder";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DescribeCurrentModifyOrderResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(4);
if let Some(f) = &self.client_token {
params.push(("ClientToken".into(), (f).into()));
}
params.push(("DbInstanceId".into(), (&self.db_instance_id).into()));
params.push(("RegionId".into(), (&self.region_id).into()));
if let Some(f) = &self.resource_group_id {
params.push(("ResourceGroupId".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 查询实例资源使用情况
///
/// Argument of [Connection::describe_custins_resource_info()], returns [DescribeCustinsResourceInfoResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DescribeCustinsResourceInfo {
/// 实例ID,可调用[describedbinstances](~~26232~~)获取。
db_instance_ids: String,
/// 资源组ID。
#[setters(generate = true, strip_option)]
resource_group_id: Option<String>,
}
impl sealed::Bound for DescribeCustinsResourceInfo {}
impl DescribeCustinsResourceInfo {
pub fn new(db_instance_ids: impl Into<String>) -> Self {
Self {
db_instance_ids: db_instance_ids.into(),
resource_group_id: None,
}
}
}
impl crate::ToFormData for DescribeCustinsResourceInfo {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DescribeCustinsResourceInfo {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DescribeCustinsResourceInfo";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DescribeCustinsResourceInfoResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(2);
params.push(("DBInstanceIds".into(), (&self.db_instance_ids).into()));
if let Some(f) = &self.resource_group_id {
params.push(("ResourceGroupId".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 获取实例链路诊断信息
///
/// Argument of [Connection::describe_db_instance_connectivity()], returns [DescribeDBInstanceConnectivityResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DescribeDBInstanceConnectivity {
/// 资源组id。
#[setters(generate = true, strip_option)]
resource_group_id: Option<String>,
/// 实例id。
db_instance_name: String,
/// 用户源IP地址。
source_ip_address: String,
}
impl sealed::Bound for DescribeDBInstanceConnectivity {}
impl DescribeDBInstanceConnectivity {
pub fn new(db_instance_name: impl Into<String>, source_ip_address: impl Into<String>) -> Self {
Self {
resource_group_id: None,
db_instance_name: db_instance_name.into(),
source_ip_address: source_ip_address.into(),
}
}
}
impl crate::Request for DescribeDBInstanceConnectivity {
const METHOD: http::Method = http::Method::GET;
const ACTION: &'static str = "DescribeDBInstanceConnectivity";
type Body = ();
type ResponseWrap = crate::JsonResponseWrap<DescribeDBInstanceConnectivityResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(3);
params.push(("DbInstanceName".into(), (&self.db_instance_name).into()));
if let Some(f) = &self.resource_group_id {
params.push(("ResourceGroupId".into(), (f).into()));
}
params.push(("SourceIpAddress".into(), (&self.source_ip_address).into()));
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {}
}
/// 查询主机组弹性策略参数
///
/// Argument of [Connection::describe_host_group_elastic_strategy_parameters()], returns [DescribeHostGroupElasticStrategyParametersResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DescribeHostGroupElasticStrategyParameters {
/// 地域id。可以通过接口[describeregions](~~26243~~)查看地域id。
region_id: String,
/// 专属集群名称。
dedicated_host_group_name: String,
/// 资源组id。
#[setters(generate = true, strip_option)]
resource_group_id: Option<String>,
}
impl sealed::Bound for DescribeHostGroupElasticStrategyParameters {}
impl DescribeHostGroupElasticStrategyParameters {
pub fn new(region_id: impl Into<String>, dedicated_host_group_name: impl Into<String>) -> Self {
Self {
region_id: region_id.into(),
dedicated_host_group_name: dedicated_host_group_name.into(),
resource_group_id: None,
}
}
}
impl crate::ToFormData for DescribeHostGroupElasticStrategyParameters {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DescribeHostGroupElasticStrategyParameters {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DescribeHostGroupElasticStrategyParameters";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DescribeHostGroupElasticStrategyParametersResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(3);
params.push((
"DedicatedHostGroupName".into(),
(&self.dedicated_host_group_name).into(),
));
params.push(("RegionId".into(), (&self.region_id).into()));
if let Some(f) = &self.resource_group_id {
params.push(("ResourceGroupId".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 获取RDS营销项目中待升级实例信息
///
/// Argument of [Connection::describe_marketing_activity()], returns [DescribeMarketingActivityResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DescribeMarketingActivity {
/// 地域ID。可调用[DescribeRegions](~~26243~~)获取。
region_id: String,
/// - 国内:26842
/// - 国际:26888
#[setters(generate = true, strip_option)]
bid: Option<String>,
/// 产品名称。
upgrade_code: String,
/// 用于保证请求的幂等性,防止重复提交请求。由客户端生成该参数值,要保证在不同请求间唯一,最大值不超过64个ASCII字符,且该参数值中不能包含非ASCII字符。
#[setters(generate = true, strip_option)]
client_token: Option<String>,
/// 阿里云账号ID。
ali_uid: i64,
/// 资源组ID。
#[setters(generate = true, strip_option)]
resource_group_id: Option<String>,
}
impl sealed::Bound for DescribeMarketingActivity {}
impl DescribeMarketingActivity {
pub fn new(
region_id: impl Into<String>,
upgrade_code: impl Into<String>,
ali_uid: impl Into<i64>,
) -> Self {
Self {
region_id: region_id.into(),
bid: None,
upgrade_code: upgrade_code.into(),
client_token: None,
ali_uid: ali_uid.into(),
resource_group_id: None,
}
}
}
impl crate::ToFormData for DescribeMarketingActivity {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DescribeMarketingActivity {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DescribeMarketingActivity";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DescribeMarketingActivityResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(6);
params.push(("AliUid".into(), (&self.ali_uid).into()));
if let Some(f) = &self.bid {
params.push(("Bid".into(), (f).into()));
}
if let Some(f) = &self.client_token {
params.push(("ClientToken".into(), (f).into()));
}
params.push(("RegionId".into(), (&self.region_id).into()));
if let Some(f) = &self.resource_group_id {
params.push(("ResourceGroupId".into(), (f).into()));
}
params.push(("UpgradeCode".into(), (&self.upgrade_code).into()));
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 查询RDS快捷售卖配置
///
/// Argument of [Connection::describe_quick_sale_config()], returns [DescribeQuickSaleConfigResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DescribeQuickSaleConfig {
/// 地域ID,您可以通过[DescribeRegions](~~26243~~)接口查询。
#[setters(generate = true, strip_option)]
region_id: Option<String>,
/// 数据库类型,取值:
/// * **MySQL**
/// * **SQLServer**
/// * **PostgreSQL**
/// * **MariaDB**
#[setters(generate = true, strip_option)]
engine: Option<String>,
/// `商品code
///
/// - rds:包年包月
///
/// - bards:按量付费
#[setters(generate = true, strip_option)]
commodity: Option<String>,
}
impl sealed::Bound for DescribeQuickSaleConfig {}
impl DescribeQuickSaleConfig {
pub fn new() -> Self {
Self {
region_id: None,
engine: None,
commodity: None,
}
}
}
impl crate::ToFormData for DescribeQuickSaleConfig {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DescribeQuickSaleConfig {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DescribeQuickSaleConfig";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DescribeQuickSaleConfigResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(3);
if let Some(f) = &self.commodity {
params.push(("Commodity".into(), (f).into()));
}
if let Some(f) = &self.engine {
params.push(("Engine".into(), (f).into()));
}
if let Some(f) = &self.region_id {
params.push(("RegionId".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 概览页资源详情
///
/// Argument of [Connection::describe_resource_details()], returns [DescribeResourceDetailsResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DescribeResourceDetails {
/// 用于保证请求的幂等性,防止重复提交请求。由客户端生成该参数值,要保证在不同请求间唯一,最大值不超过64个ASCII字符,且该参数值中不能包含非ASCII字符。
#[setters(generate = true, strip_option)]
client_token: Option<String>,
/// 地域ID。可以通过接口[DescribeRegions](~~26243~~)查看地域ID。
region_id: String,
/// 实例ID。
db_instance_id: String,
/// 资源组ID。
#[setters(generate = true, strip_option)]
resource_group_id: Option<String>,
}
impl sealed::Bound for DescribeResourceDetails {}
impl DescribeResourceDetails {
pub fn new(region_id: impl Into<String>, db_instance_id: impl Into<String>) -> Self {
Self {
client_token: None,
region_id: region_id.into(),
db_instance_id: db_instance_id.into(),
resource_group_id: None,
}
}
}
impl crate::ToFormData for DescribeResourceDetails {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DescribeResourceDetails {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DescribeResourceDetails";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DescribeResourceDetailsResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(4);
if let Some(f) = &self.client_token {
params.push(("ClientToken".into(), (f).into()));
}
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
params.push(("RegionId".into(), (&self.region_id).into()));
if let Some(f) = &self.resource_group_id {
params.push(("ResourceGroupId".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 评估紧急本地扩容磁盘解锁可使用的磁盘空间
///
/// Argument of [Connection::evaluate_local_extend_disk()], returns [EvaluateLocalExtendDiskResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct EvaluateLocalExtendDisk {
/// 地域ID。可调用[describeregions](~~26243~~)获取。
region_id: String,
/// 实例名称。
db_instance_name: String,
/// 扩容后的存储容量(单位:GB)。
#[setters(generate = true, strip_option)]
storage: Option<i32>,
/// 资源组ID。
#[setters(generate = true, strip_option)]
resource_group_id: Option<String>,
}
impl sealed::Bound for EvaluateLocalExtendDisk {}
impl EvaluateLocalExtendDisk {
pub fn new(region_id: impl Into<String>, db_instance_name: impl Into<String>) -> Self {
Self {
region_id: region_id.into(),
db_instance_name: db_instance_name.into(),
storage: None,
resource_group_id: None,
}
}
}
impl crate::ToFormData for EvaluateLocalExtendDisk {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for EvaluateLocalExtendDisk {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "EvaluateLocalExtendDisk";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<EvaluateLocalExtendDiskResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(4);
params.push(("DBInstanceName".into(), (&self.db_instance_name).into()));
params.push(("RegionId".into(), (&self.region_id).into()));
if let Some(f) = &self.resource_group_id {
params.push(("ResourceGroupId".into(), (f).into()));
}
if let Some(f) = &self.storage {
params.push(("Storage".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于修改RDS实例资源。
///
/// Argument of [Connection::modify_custins_resource()], returns [ModifyCustinsResourceResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct ModifyCustinsResource {
/// 实例ID。可调用[DescribeDBInstances](~~610396~~)获取。
db_instance_id: String,
/// 资源类型。
#[setters(generate = true, strip_option)]
resource_type: Option<String>,
/// 增加率,单位:%
#[setters(generate = true, strip_option)]
increase_ratio: Option<String>,
/// 调整时间。
#[setters(generate = true, strip_option)]
adjust_deadline: Option<String>,
/// 原值。**resourcetype**=**instance**时需要传入该参数。
#[setters(generate = true, strip_option)]
restore_original_specification: Option<String>,
/// 目标值,适用于目标追踪规则和预测规则。TargetValue最多保留小数点后三位,且必须大于0。
#[setters(generate = true, strip_option)]
target_value: Option<i32>,
}
impl sealed::Bound for ModifyCustinsResource {}
impl ModifyCustinsResource {
pub fn new(db_instance_id: impl Into<String>) -> Self {
Self {
db_instance_id: db_instance_id.into(),
resource_type: None,
increase_ratio: None,
adjust_deadline: None,
restore_original_specification: None,
target_value: None,
}
}
}
impl crate::ToFormData for ModifyCustinsResource {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for ModifyCustinsResource {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "ModifyCustinsResource";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<ModifyCustinsResourceResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(6);
if let Some(f) = &self.adjust_deadline {
params.push(("AdjustDeadline".into(), (f).into()));
}
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
if let Some(f) = &self.increase_ratio {
params.push(("IncreaseRatio".into(), (f).into()));
}
if let Some(f) = &self.resource_type {
params.push(("ResourceType".into(), (f).into()));
}
if let Some(f) = &self.restore_original_specification {
params.push(("RestoreOriginalSpecification".into(), (f).into()));
}
if let Some(f) = &self.target_value {
params.push(("TargetValue".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 删除节点创建订单预检查
///
/// Argument of [Connection::pre_check_create_order_for_delete_db_nodes()], returns [PreCheckCreateOrderForDeleteDBNodesResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct PreCheckCreateOrderForDeleteDBNodes {
/// 用于保证请求的幂等性,防止重复提交请求。由客户端生成该参数值,要保证在不同请求间唯一,最大值不超过64个ASCII字符,且该参数值中不能包含非ASCII字符。
#[setters(generate = true, strip_option)]
client_token: Option<String>,
/// 商品码。取值:
///
/// * **bards**:主实例按量付费
/// * **rds**:主实例包年包月
/// * **rords**:只读实例按量付费
/// * **rds\_rordspre\_public\_cn**:只读实例包年包月
/// * **bards_intl**:主实例按量付费
/// * **rds_intl**:主实例包年包月
/// * **rords_intl**:只读实例按量付费
/// * **rds\_rordspre\_public\_intl**:只读实例包年包月
commodity_code: String,
/// 实例id。
#[setters(generate = true, strip_option)]
db_instance_id: Option<String>,
/// 地域id。可以通过接口[describeregions](~~26243~~)查看地域id。
#[setters(generate = true, strip_option)]
region_id: Option<String>,
/// 可用区ID。
#[setters(generate = true, strip_option)]
zone_id: Option<String>,
/// 资源
#[setters(generate = true, strip_option)]
resource: Option<String>,
/// 是否自动支付。
/// 取值范围:
///
/// 1. **true**:自动支付。您需要确保账户余额充足。
///
/// 1. **false**:只生成订单不扣费。
///
///
///
///
/// > 默认值为true。如果您的支付方式余额不足,可以将参数AutoPay设置为false,此时会生成未支付订单,您可以登录RDS管理控制台自行支付。
/// >
#[setters(generate = true, strip_option)]
auto_pay: Option<bool>,
/// 优惠码。
#[setters(generate = true, strip_option)]
promotion_code: Option<String>,
/// 目标数据库版本。根据**Engine**参数取值的不同,本参数取值如下:
/// * MySQL:**5.5/5.6/5.7/8.0**
/// * SQL Server:**2008r2/08r2_ent_ha/2012/2012_ent_ha/2012_std_ha/2012_web/2014_std_ha/2016_ent_ha/2016_std_ha/2016_web/2017_std_ha/2017_ent/2019_std_ha/2019_ent**
/// * PostgreSQL:**10.0/11.0/12.0/13.0/14.0/15.0**
#[setters(generate = true, strip_option)]
engine_version: Option<String>,
/// 数据库节点类型。取值:
/// - **Master**:主节点
/// - **Slave**:备节点
#[setters(generate = true, strip_option)]
node_type: Option<String>,
/// 业务扩展参数。
#[setters(generate = true, strip_option)]
business_info: Option<String>,
/// 节点ID列表
#[setters(generate = true, strip_option)]
db_node_id: Option<Vec<String>>,
}
impl sealed::Bound for PreCheckCreateOrderForDeleteDBNodes {}
impl PreCheckCreateOrderForDeleteDBNodes {
pub fn new(commodity_code: impl Into<String>) -> Self {
Self {
client_token: None,
commodity_code: commodity_code.into(),
db_instance_id: None,
region_id: None,
zone_id: None,
resource: None,
auto_pay: None,
promotion_code: None,
engine_version: None,
node_type: None,
business_info: None,
db_node_id: None,
}
}
}
impl crate::ToFormData for PreCheckCreateOrderForDeleteDBNodes {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for PreCheckCreateOrderForDeleteDBNodes {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "PreCheckCreateOrderForDeleteDBNodes";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<PreCheckCreateOrderForDeleteDBNodesResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(12);
if let Some(f) = &self.auto_pay {
params.push(("AutoPay".into(), (f).into()));
}
if let Some(f) = &self.business_info {
params.push(("BusinessInfo".into(), (f).into()));
}
if let Some(f) = &self.client_token {
params.push(("ClientToken".into(), (f).into()));
}
params.push(("CommodityCode".into(), (&self.commodity_code).into()));
if let Some(f) = &self.db_instance_id {
params.push(("DBInstanceId".into(), (f).into()));
}
if let Some(f) = &self.db_node_id {
if let Ok(json) = serde_json::to_string(f) {
params.push(("DBNodeId".into(), json.into()));
}
}
if let Some(f) = &self.engine_version {
params.push(("EngineVersion".into(), (f).into()));
}
if let Some(f) = &self.node_type {
params.push(("NodeType".into(), (f).into()));
}
if let Some(f) = &self.promotion_code {
params.push(("PromotionCode".into(), (f).into()));
}
if let Some(f) = &self.region_id {
params.push(("RegionId".into(), (f).into()));
}
if let Some(f) = &self.resource {
params.push(("Resource".into(), (f).into()));
}
if let Some(f) = &self.zone_id {
params.push(("ZoneId".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于查询RDS机器人热点问题。
///
/// Argument of [Connection::query_recommend_by_code()], returns [QueryRecommendByCodeResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct QueryRecommendByCode {
/// 代码。
code: String,
/// 资源组ID。
#[setters(generate = true, strip_option)]
resource_group_id: Option<String>,
}
impl sealed::Bound for QueryRecommendByCode {}
impl QueryRecommendByCode {
pub fn new(code: impl Into<String>) -> Self {
Self {
code: code.into(),
resource_group_id: None,
}
}
}
impl crate::ToFormData for QueryRecommendByCode {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for QueryRecommendByCode {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "QueryRecommendByCode";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<QueryRecommendByCodeResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(2);
params.push(("Code".into(), (&self.code).into()));
if let Some(f) = &self.resource_group_id {
params.push(("ResourceGroupId".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于为RDS MySQL集群系列实例删除节点。
///
/// Argument of [Connection::create_order_for_delete_db_nodes()], returns [CreateOrderForDeleteDBNodesResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct CreateOrderForDeleteDBNodes {
/// 用于保证请求的幂等性,防止重复提交请求。由客户端生成该参数值,要保证在不同请求间唯一,最大值不超过64个ASCII字符,且该参数值中不能包含非ASCII字符。
#[setters(generate = true, strip_option)]
client_token: Option<String>,
/// 商品码。取值:
///
/// * **bards**:主实例按量付费
/// * **rds**:主实例包年包月
/// * **rords**:只读实例按量付费
/// * **rds\_rordspre\_public\_cn**:只读实例包年包月
/// * **bards_intl**:主实例按量付费
/// * **rds_intl**:主实例包年包月
/// * **rords_intl**:只读实例按量付费
/// * **rds\_rordspre\_public\_intl**:只读实例包年包月
commodity_code: String,
/// 实例ID。可调用[DescribeDBInstances](~~610396~~)获取。
#[setters(generate = true, strip_option)]
db_instance_id: Option<String>,
/// 地域ID。可调用[DescribeRegions](~~610399~~)获取。
#[setters(generate = true, strip_option)]
region_id: Option<String>,
/// 可用区ID。
#[setters(generate = true, strip_option)]
zone_id: Option<String>,
/// 资源。
#[setters(generate = true, strip_option)]
resource: Option<String>,
/// 是否自动支付。
/// 取值范围:
///
/// 1. **true**:自动支付。您需要确保账户余额充足。
///
/// 1. **false**:只生成订单不扣费。
///
///
///
///
/// > 默认值为true。如果您的支付方式余额不足,可以将参数AutoPay设置为false,此时会生成未支付订单,您可以登录RDS管理控制台自行支付。
/// >
#[setters(generate = true, strip_option)]
auto_pay: Option<bool>,
/// 优惠码。
#[setters(generate = true, strip_option)]
promotion_code: Option<String>,
/// 当前数据库版本。取值:
///
/// MySQL:**5.5、5.6、5.7、8.0**
#[setters(generate = true, strip_option)]
engine_version: Option<String>,
/// 数据库节点类型。取值:
/// - **Master**:主节点
/// - **Slave**:备节点
#[setters(generate = true, strip_option)]
node_type: Option<String>,
/// 业务扩展参数。
#[setters(generate = true, strip_option)]
business_info: Option<String>,
/// 节点ID列表。
#[setters(generate = true, strip_option)]
db_node_id: Option<Vec<String>>,
/// 资源组ID。
#[setters(generate = true, strip_option)]
resource_group_id: Option<String>,
}
impl sealed::Bound for CreateOrderForDeleteDBNodes {}
impl CreateOrderForDeleteDBNodes {
pub fn new(commodity_code: impl Into<String>) -> Self {
Self {
client_token: None,
commodity_code: commodity_code.into(),
db_instance_id: None,
region_id: None,
zone_id: None,
resource: None,
auto_pay: None,
promotion_code: None,
engine_version: None,
node_type: None,
business_info: None,
db_node_id: None,
resource_group_id: None,
}
}
}
impl crate::ToFormData for CreateOrderForDeleteDBNodes {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for CreateOrderForDeleteDBNodes {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "CreateOrderForDeleteDBNodes";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<CreateOrderForDeleteDBNodesResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(13);
if let Some(f) = &self.auto_pay {
params.push(("AutoPay".into(), (f).into()));
}
if let Some(f) = &self.business_info {
params.push(("BusinessInfo".into(), (f).into()));
}
if let Some(f) = &self.client_token {
params.push(("ClientToken".into(), (f).into()));
}
params.push(("CommodityCode".into(), (&self.commodity_code).into()));
if let Some(f) = &self.db_instance_id {
params.push(("DBInstanceId".into(), (f).into()));
}
if let Some(f) = &self.db_node_id {
if let Ok(json) = serde_json::to_string(f) {
params.push(("DBNodeId".into(), json.into()));
}
}
if let Some(f) = &self.engine_version {
params.push(("EngineVersion".into(), (f).into()));
}
if let Some(f) = &self.node_type {
params.push(("NodeType".into(), (f).into()));
}
if let Some(f) = &self.promotion_code {
params.push(("PromotionCode".into(), (f).into()));
}
if let Some(f) = &self.region_id {
params.push(("RegionId".into(), (f).into()));
}
if let Some(f) = &self.resource {
params.push(("Resource".into(), (f).into()));
}
if let Some(f) = &self.resource_group_id {
params.push(("ResourceGroupId".into(), (f).into()));
}
if let Some(f) = &self.zone_id {
params.push(("ZoneId".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 描述SQLServer实例或指定SQLServer版本允许升级到的版本。
///
/// Argument of [Connection::describe_sql_server_upgrade_versions()], returns [DescribeSQLServerUpgradeVersionsResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DescribeSQLServerUpgradeVersions {
/// 该参数用于保证请求的幂等性,防止重复提交请求。参数值由客户端生成,保证在不同请求间唯一。
///
/// 该参数值由 ASCII 字符组成,最长不超过 64 个字符,不能包含非 ASCII 字符。
#[setters(generate = true, strip_option)]
client_token: Option<String>,
/// 实例 ID。可调用 DescribeDBInstances 获取。
#[setters(generate = true, strip_option)]
db_instance_id: Option<String>,
/// 要查询的数据库版本。若指定instanceId,则使用实例的版本覆盖此参数
#[setters(generate = true, strip_option)]
engine_version: Option<String>,
}
impl sealed::Bound for DescribeSQLServerUpgradeVersions {}
impl DescribeSQLServerUpgradeVersions {
pub fn new() -> Self {
Self {
client_token: None,
db_instance_id: None,
engine_version: None,
}
}
}
impl crate::ToFormData for DescribeSQLServerUpgradeVersions {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DescribeSQLServerUpgradeVersions {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DescribeSQLServerUpgradeVersions";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DescribeSQLServerUpgradeVersionsResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(3);
if let Some(f) = &self.client_token {
params.push(("ClientToken".into(), (f).into()));
}
if let Some(f) = &self.db_instance_id {
params.push(("DBInstanceId".into(), (f).into()));
}
if let Some(f) = &self.engine_version {
params.push(("EngineVersion".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 获取用户的运维配置信息,目前包括计划内事件周期窗口信息。
///
/// Argument of [Connection::describe_active_operation_maintain_conf()], returns [DescribeActiveOperationMaintainConfResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DescribeActiveOperationMaintainConf {}
impl sealed::Bound for DescribeActiveOperationMaintainConf {}
impl DescribeActiveOperationMaintainConf {
pub fn new() -> Self {
Self {}
}
}
impl crate::ToFormData for DescribeActiveOperationMaintainConf {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DescribeActiveOperationMaintainConf {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DescribeActiveOperationMaintainConf";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DescribeActiveOperationMaintainConfResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 为指定实例创建新的加密或脱敏规则。
///
/// Argument of [Connection::create_masking_rules()], returns [CreateMaskingRulesResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct CreateMaskingRules {
/// 规则名称(一次仅支持输入一个规则名称)
rule_name: String,
/// 规则算法,可选多个,脱敏算法可以额外添加参数。格式:{name:算法1},{name:算法2,params:{加密位置,加密位数}}
#[setters(generate = true, strip_option)]
masking_algo: Option<String>,
/// 默认加密或脱敏算法名称
#[setters(generate = true, strip_option)]
default_algo: Option<String>,
/// 规则配置,JSON字符串格式,包含数据库、表、列的匹配规则
#[setters(generate = true, strip_option)]
rule_config: Option<CreateMaskingRulesRuleConfig>,
/// 实例ID
db_instance_name: String,
/// 地域ID
#[setters(generate = true, strip_option)]
region_id: Option<String>,
/// 数据库名称
#[setters(generate = true, strip_option)]
db_name: Option<String>,
}
impl sealed::Bound for CreateMaskingRules {}
impl CreateMaskingRules {
pub fn new(rule_name: impl Into<String>, db_instance_name: impl Into<String>) -> Self {
Self {
rule_name: rule_name.into(),
masking_algo: None,
default_algo: None,
rule_config: None,
db_instance_name: db_instance_name.into(),
region_id: None,
db_name: None,
}
}
}
impl crate::ToFormData for CreateMaskingRules {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for CreateMaskingRules {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "CreateMaskingRules";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<CreateMaskingRulesResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(7);
params.push(("DBInstanceName".into(), (&self.db_instance_name).into()));
if let Some(f) = &self.db_name {
params.push(("DBName".into(), (f).into()));
}
if let Some(f) = &self.default_algo {
params.push(("DefaultAlgo".into(), (f).into()));
}
if let Some(f) = &self.masking_algo {
params.push(("MaskingAlgo".into(), (f).into()));
}
if let Some(f) = &self.region_id {
params.push(("RegionId".into(), (f).into()));
}
if let Some(f) = &self.rule_config {
if let Ok(json) = serde_json::to_string(f) {
params.push(("RuleConfig".into(), json.into()));
}
}
params.push(("RuleName".into(), (&self.rule_name).into()));
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 修改指定实例中账号的加密或脱敏权限。
///
/// Argument of [Connection::modify_account_masking_privilege()], returns [ModifyAccountMaskingPrivilegeResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct ModifyAccountMaskingPrivilege {
/// 账号名称,支持多个账号,用逗号分隔
user_name: String,
/// 权限过期时间,UTC时间格式。(仅fullaccess权限需要设置)
#[setters(generate = true, strip_option)]
expire_time: Option<String>,
/// 权限类型(noneAccess,restrictedAccess,fullAccess)
privilege: PrivilegePrivilege,
/// 实例ID
db_instance_name: String,
/// 地域ID
#[setters(generate = true, strip_option)]
region_id: Option<String>,
/// 数据库名称
#[setters(generate = true, strip_option)]
db_name: Option<String>,
}
impl sealed::Bound for ModifyAccountMaskingPrivilege {}
impl ModifyAccountMaskingPrivilege {
pub fn new(
user_name: impl Into<String>,
privilege: impl Into<PrivilegePrivilege>,
db_instance_name: impl Into<String>,
) -> Self {
Self {
user_name: user_name.into(),
expire_time: None,
privilege: privilege.into(),
db_instance_name: db_instance_name.into(),
region_id: None,
db_name: None,
}
}
}
impl crate::ToFormData for ModifyAccountMaskingPrivilege {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for ModifyAccountMaskingPrivilege {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "ModifyAccountMaskingPrivilege";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<ModifyAccountMaskingPrivilegeResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(6);
params.push(("DBInstanceName".into(), (&self.db_instance_name).into()));
if let Some(f) = &self.db_name {
params.push(("DBName".into(), (f).into()));
}
if let Some(f) = &self.expire_time {
params.push(("ExpireTime".into(), (f).into()));
}
params.push(("Privilege".into(), (&self.privilege).into()));
if let Some(f) = &self.region_id {
params.push(("RegionId".into(), (f).into()));
}
params.push(("UserName".into(), (&self.user_name).into()));
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 用于修改指定实例的加密或脱敏规则。
///
/// Argument of [Connection::modify_masking_rules()], returns [ModifyMaskingRulesResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct ModifyMaskingRules {
/// 规则配置,JSON字符串格式
#[setters(generate = true, strip_option)]
rule_config: Option<ModifyMaskingRulesRuleConfig>,
/// 要修改的规则名称
rule_name: String,
/// 规则算法,可选多个,脱敏算法可以额外添加参数。格式:{name:算法1},{name:算法2,params:{加密位置,加密位数}}
#[setters(generate = true, strip_option)]
masking_algo: Option<String>,
/// 默认加密或脱敏算法名称
#[setters(generate = true, strip_option)]
default_algo: Option<String>,
/// 实例ID
db_instance_name: String,
/// 规则是否启用,取值:true、false
#[setters(generate = true, strip_option)]
enabled: Option<String>,
/// 地域ID
#[setters(generate = true, strip_option)]
region_id: Option<String>,
/// 数据库名称
#[setters(generate = true, strip_option)]
db_name: Option<String>,
}
impl sealed::Bound for ModifyMaskingRules {}
impl ModifyMaskingRules {
pub fn new(rule_name: impl Into<String>, db_instance_name: impl Into<String>) -> Self {
Self {
rule_config: None,
rule_name: rule_name.into(),
masking_algo: None,
default_algo: None,
db_instance_name: db_instance_name.into(),
enabled: None,
region_id: None,
db_name: None,
}
}
}
impl crate::ToFormData for ModifyMaskingRules {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for ModifyMaskingRules {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "ModifyMaskingRules";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<ModifyMaskingRulesResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(8);
params.push(("DBInstanceName".into(), (&self.db_instance_name).into()));
if let Some(f) = &self.db_name {
params.push(("DBName".into(), (f).into()));
}
if let Some(f) = &self.default_algo {
params.push(("DefaultAlgo".into(), (f).into()));
}
if let Some(f) = &self.enabled {
params.push(("Enabled".into(), (f).into()));
}
if let Some(f) = &self.masking_algo {
params.push(("MaskingAlgo".into(), (f).into()));
}
if let Some(f) = &self.region_id {
params.push(("RegionId".into(), (f).into()));
}
if let Some(f) = &self.rule_config {
if let Ok(json) = serde_json::to_string(f) {
params.push(("RuleConfig".into(), json.into()));
}
}
params.push(("RuleName".into(), (&self.rule_name).into()));
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 查询指定实例的加密或脱敏规则列表。
///
/// Argument of [Connection::describe_masking_rules()], returns [DescribeMaskingRulesResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DescribeMaskingRules {
/// 实例名称
db_instance_name: String,
/// 规则名称(逗号分隔)
#[setters(generate = true, strip_option)]
rule_name: Option<String>,
/// 地域ID
#[setters(generate = true, strip_option)]
region_id: Option<String>,
/// 数据库名称
#[setters(generate = true, strip_option)]
db_name: Option<String>,
}
impl sealed::Bound for DescribeMaskingRules {}
impl DescribeMaskingRules {
pub fn new(db_instance_name: impl Into<String>) -> Self {
Self {
db_instance_name: db_instance_name.into(),
rule_name: None,
region_id: None,
db_name: None,
}
}
}
impl crate::ToFormData for DescribeMaskingRules {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DescribeMaskingRules {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DescribeMaskingRules";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DescribeMaskingRulesResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(4);
params.push(("DBInstanceName".into(), (&self.db_instance_name).into()));
if let Some(f) = &self.db_name {
params.push(("DBName".into(), (f).into()));
}
if let Some(f) = &self.region_id {
params.push(("RegionId".into(), (f).into()));
}
if let Some(f) = &self.rule_name {
params.push(("RuleName".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 用于删除指定实例的加密或脱敏规则。
///
/// Argument of [Connection::delete_masking_rules()], returns [DeleteMaskingRulesResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DeleteMaskingRules {
/// 要删除的规则名称
rule_name: String,
/// 实例ID
db_instance_name: String,
/// 地域ID
#[setters(generate = true, strip_option)]
region_id: Option<String>,
/// 数据库名称
#[setters(generate = true, strip_option)]
db_name: Option<String>,
}
impl sealed::Bound for DeleteMaskingRules {}
impl DeleteMaskingRules {
pub fn new(rule_name: impl Into<String>, db_instance_name: impl Into<String>) -> Self {
Self {
rule_name: rule_name.into(),
db_instance_name: db_instance_name.into(),
region_id: None,
db_name: None,
}
}
}
impl crate::ToFormData for DeleteMaskingRules {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DeleteMaskingRules {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DeleteMaskingRules";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DeleteMaskingRulesResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(4);
params.push(("DBInstanceName".into(), (&self.db_instance_name).into()));
if let Some(f) = &self.db_name {
params.push(("DBName".into(), (f).into()));
}
if let Some(f) = &self.region_id {
params.push(("RegionId".into(), (f).into()));
}
params.push(("RuleName".into(), (&self.rule_name).into()));
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 查询指定实例中账号的加密或脱敏权限配置。
///
/// Argument of [Connection::describe_account_masking_privilege()], returns [DescribeAccountMaskingPrivilegeResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DescribeAccountMaskingPrivilege {
/// 实例ID
db_instance_name: String,
/// 账号名称,可指定具体账号进行查询
#[setters(generate = true, strip_option)]
user_name: Option<String>,
/// 地域ID
#[setters(generate = true, strip_option)]
region_id: Option<String>,
/// 数据库名称
#[setters(generate = true, strip_option)]
db_name: Option<String>,
}
impl sealed::Bound for DescribeAccountMaskingPrivilege {}
impl DescribeAccountMaskingPrivilege {
pub fn new(db_instance_name: impl Into<String>) -> Self {
Self {
db_instance_name: db_instance_name.into(),
user_name: None,
region_id: None,
db_name: None,
}
}
}
impl crate::ToFormData for DescribeAccountMaskingPrivilege {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DescribeAccountMaskingPrivilege {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DescribeAccountMaskingPrivilege";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DescribeAccountMaskingPrivilegeResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(4);
params.push(("DBInstanceName".into(), (&self.db_instance_name).into()));
if let Some(f) = &self.db_name {
params.push(("DBName".into(), (f).into()));
}
if let Some(f) = &self.region_id {
params.push(("RegionId".into(), (f).into()));
}
if let Some(f) = &self.user_name {
params.push(("UserName".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 删除实例参数修改的定时任务。
///
/// Argument of [Connection::delete_parameter_timed_schedule_task()], returns [DeleteParameterTimedScheduleTaskResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DeleteParameterTimedScheduleTask {
/// 实例名称。
#[setters(generate = true, strip_option)]
db_instance_name: Option<String>,
/// 参数修改定时任务ID。
#[setters(generate = true, strip_option)]
task_id: Option<i64>,
}
impl sealed::Bound for DeleteParameterTimedScheduleTask {}
impl DeleteParameterTimedScheduleTask {
pub fn new() -> Self {
Self {
db_instance_name: None,
task_id: None,
}
}
}
impl crate::ToFormData for DeleteParameterTimedScheduleTask {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DeleteParameterTimedScheduleTask {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DeleteParameterTimedScheduleTask";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DeleteParameterTimedScheduleTaskResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(2);
if let Some(f) = &self.db_instance_name {
params.push(("DBInstanceName".into(), (f).into()));
}
if let Some(f) = &self.task_id {
params.push(("TaskId".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 查询实例参数修改定时任务详情。
///
/// Argument of [Connection::describe_parameter_timed_schedule_task()], returns [DescribeParameterTimedScheduleTaskResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DescribeParameterTimedScheduleTask {
/// 实例ID。
db_instance_name: String,
}
impl sealed::Bound for DescribeParameterTimedScheduleTask {}
impl DescribeParameterTimedScheduleTask {
pub fn new(db_instance_name: impl Into<String>) -> Self {
Self {
db_instance_name: db_instance_name.into(),
}
}
}
impl crate::Request for DescribeParameterTimedScheduleTask {
const METHOD: http::Method = http::Method::GET;
const ACTION: &'static str = "DescribeParameterTimedScheduleTask";
type Body = ();
type ResponseWrap = crate::JsonResponseWrap<DescribeParameterTimedScheduleTaskResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(1);
params.push(("DbInstanceName".into(), (&self.db_instance_name).into()));
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {}
}
/// 改变参数修改定时任务中的生效时间。
///
/// Argument of [Connection::modify_parameter_timed_schedule_task()], returns [ModifyParameterTimedScheduleTaskResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct ModifyParameterTimedScheduleTask {
/// 实例名称。
#[setters(generate = true, strip_option)]
db_instance_name: Option<String>,
/// 任务ID。
#[setters(generate = true, strip_option)]
task_id: Option<i64>,
/// 要设置的计划切换时间,格式为yyyy-MM-ddTHH:mm:ssZ(UTC时间)。
#[setters(generate = true, strip_option)]
switch_time: Option<String>,
}
impl sealed::Bound for ModifyParameterTimedScheduleTask {}
impl ModifyParameterTimedScheduleTask {
pub fn new() -> Self {
Self {
db_instance_name: None,
task_id: None,
switch_time: None,
}
}
}
impl crate::ToFormData for ModifyParameterTimedScheduleTask {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for ModifyParameterTimedScheduleTask {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "ModifyParameterTimedScheduleTask";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<ModifyParameterTimedScheduleTaskResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(3);
if let Some(f) = &self.db_instance_name {
params.push(("DBInstanceName".into(), (f).into()));
}
if let Some(f) = &self.switch_time {
params.push(("SwitchTime".into(), (f).into()));
}
if let Some(f) = &self.task_id {
params.push(("TaskId".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 查询指定实例的列加密算法配置信息。
///
/// Argument of [Connection::describe_db_instance_cls()], returns [DescribeDBInstanceCLSResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DescribeDBInstanceCLS {
/// 实例ID
db_instance_id: String,
}
impl sealed::Bound for DescribeDBInstanceCLS {}
impl DescribeDBInstanceCLS {
pub fn new(db_instance_id: impl Into<String>) -> Self {
Self {
db_instance_id: db_instance_id.into(),
}
}
}
impl crate::ToFormData for DescribeDBInstanceCLS {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DescribeDBInstanceCLS {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DescribeDBInstanceCLS";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DescribeDBInstanceCLSResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(1);
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 修改指定实例的列加密算法配置。
///
/// Argument of [Connection::modify_db_instance_cls()], returns [ModifyDBInstanceCLSResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct ModifyDBInstanceCLS {
/// 实例ID
db_instance_id: String,
/// 列加密状态。可以选择:
/// - 1(开启加密)
/// - 0(关闭加密)
encryption_status: String,
/// 加密密钥ID,使用KMS密钥时必填
#[setters(generate = true, strip_option)]
encryption_key: Option<String>,
/// 角色的全局资源描述符,用来指定具体角色。详情请参见 RAM 角色概览。
/// 说明
/// 仅当列加密密钥模式为kms_key生效。如果不传入,使用内部默认值。
#[setters(generate = true, strip_option)]
role_arn: Option<String>,
/// 列加密密钥模式。可以选择:
///
/// - client_key(在客户端侧配置用户自行生成的随机密钥)
/// - kms_key(使用阿里云KMS配置自定义密钥)
///
/// 说明
/// 一旦实例被设置成使用KMS配置密钥,将无法再使用客户端侧配置随机密钥的方式。
#[setters(generate = true, strip_option)]
encryption_key_mode: Option<String>,
/// 加密使用的算法。可以选择:
///
/// - AES_128_CBC
/// - AES_128_GCM
/// - AES_128_CTR
/// - AES_128_ECB
/// - AES_256_CBC
/// - AES_256_GCM
/// - AES_256_CTR
/// - AES_256_ECB
/// - SM4_128_CBC
/// - SM4_128_GCM
/// - SM4_128_CTR
/// - SM4_128_ECB
#[setters(generate = true, strip_option)]
encryption_algorithm: Option<String>,
/// 是否启用白名单模式,true表示仅白名单内的列进行加密,false表示所有列都加密
#[setters(generate = true, strip_option)]
white_list_mode: Option<bool>,
/// 是否轮转密钥
#[setters(generate = true, strip_option)]
is_rotate: Option<bool>,
}
impl sealed::Bound for ModifyDBInstanceCLS {}
impl ModifyDBInstanceCLS {
pub fn new(db_instance_id: impl Into<String>, encryption_status: impl Into<String>) -> Self {
Self {
db_instance_id: db_instance_id.into(),
encryption_status: encryption_status.into(),
encryption_key: None,
role_arn: None,
encryption_key_mode: None,
encryption_algorithm: None,
white_list_mode: None,
is_rotate: None,
}
}
}
impl crate::ToFormData for ModifyDBInstanceCLS {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for ModifyDBInstanceCLS {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "ModifyDBInstanceCLS";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<ModifyDBInstanceCLSResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(8);
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
if let Some(f) = &self.encryption_algorithm {
params.push(("EncryptionAlgorithm".into(), (f).into()));
}
if let Some(f) = &self.encryption_key {
params.push(("EncryptionKey".into(), (f).into()));
}
if let Some(f) = &self.encryption_key_mode {
params.push(("EncryptionKeyMode".into(), (f).into()));
}
params.push(("EncryptionStatus".into(), (&self.encryption_status).into()));
if let Some(f) = &self.is_rotate {
params.push(("IsRotate".into(), (f).into()));
}
if let Some(f) = &self.role_arn {
params.push(("RoleArn".into(), (f).into()));
}
if let Some(f) = &self.white_list_mode {
params.push(("WhiteListMode".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 该接口用于为RDS Custom实例创建自定义镜像。
///
/// Argument of [Connection::create_rc_image()], returns [CreateRCImageResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct CreateRCImage {
/// 地域ID。可调用DescribeRegions获取。
#[setters(generate = true, strip_option)]
region_id: Option<String>,
/// 用于创建自定义镜像的快照ID。可调用DescribeRCSnapshots获取。
#[setters(generate = true, strip_option)]
snapshot_id: Option<String>,
/// 自定义镜像名称。
#[setters(generate = true, strip_option)]
image_name: Option<String>,
/// RDS Custom实例ID。
#[setters(generate = true, strip_option)]
instance_id: Option<String>,
}
impl sealed::Bound for CreateRCImage {}
impl CreateRCImage {
pub fn new() -> Self {
Self {
region_id: None,
snapshot_id: None,
image_name: None,
instance_id: None,
}
}
}
impl crate::ToFormData for CreateRCImage {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for CreateRCImage {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "CreateRCImage";
const URL_PATH: &'static str = "";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<CreateRCImageResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(4);
if let Some(f) = &self.image_name {
params.push(("ImageName".into(), (f).into()));
}
if let Some(f) = &self.instance_id {
params.push(("InstanceId".into(), (f).into()));
}
if let Some(f) = &self.region_id {
params.push(("RegionId".into(), (f).into()));
}
if let Some(f) = &self.snapshot_id {
params.push(("SnapshotId".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 打开或者关闭MySQL实例向量存储开关。
///
/// Argument of [Connection::modify_db_instance_vector_support_status()], returns [ModifyDBInstanceVectorSupportStatusResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct ModifyDBInstanceVectorSupportStatus {
/// 实例ID。可调用DescribeDBInstances获取。
db_instance_id: String,
/// 向量存储开关状态。取值范围:
///
/// - **ON**:已开启。
/// - **OFF**:已关闭。
status: StatusStatus,
}
impl sealed::Bound for ModifyDBInstanceVectorSupportStatus {}
impl ModifyDBInstanceVectorSupportStatus {
pub fn new(db_instance_id: impl Into<String>, status: impl Into<StatusStatus>) -> Self {
Self {
db_instance_id: db_instance_id.into(),
status: status.into(),
}
}
}
impl crate::ToFormData for ModifyDBInstanceVectorSupportStatus {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for ModifyDBInstanceVectorSupportStatus {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "ModifyDBInstanceVectorSupportStatus";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<ModifyDBInstanceVectorSupportStatusResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(2);
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
params.push(("Status".into(), (&self.status).into()));
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 查询导入任务预检查详情,会返回具体的预检查项和检查结果
///
/// Argument of [Connection::describe_import_task_validation()], returns [DescribeImportTaskValidationResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DescribeImportTaskValidation {
/// 任务 ID。调用**ValidateImportTask**接口创建导入任务预检查时返回的任务ID。
task_id: i64,
/// 实例ID。可调用DescribeDBInstances获取。
db_instance_id: String,
}
impl sealed::Bound for DescribeImportTaskValidation {}
impl DescribeImportTaskValidation {
pub fn new(task_id: impl Into<i64>, db_instance_id: impl Into<String>) -> Self {
Self {
task_id: task_id.into(),
db_instance_id: db_instance_id.into(),
}
}
}
impl crate::ToFormData for DescribeImportTaskValidation {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DescribeImportTaskValidation {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DescribeImportTaskValidation";
const URL_PATH: &'static str = "";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DescribeImportTaskValidationResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(2);
params.push(("DbInstanceId".into(), (&self.db_instance_id).into()));
params.push(("TaskId".into(), (&self.task_id).into()));
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// RDS原生复制实例,查询数据导入任务详情
///
/// Argument of [Connection::describe_import_task()], returns [DescribeImportTaskResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct DescribeImportTask {
/// 地域ID。可调用DescribeRegions获取。
region_id: String,
/// 实例ID。可调用DescribeDBInstances获取。
db_instance_id: String,
/// 任务ID。
task_id: String,
}
impl sealed::Bound for DescribeImportTask {}
impl DescribeImportTask {
pub fn new(
region_id: impl Into<String>,
db_instance_id: impl Into<String>,
task_id: impl Into<String>,
) -> Self {
Self {
region_id: region_id.into(),
db_instance_id: db_instance_id.into(),
task_id: task_id.into(),
}
}
}
impl crate::ToFormData for DescribeImportTask {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for DescribeImportTask {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "DescribeImportTask";
const URL_PATH: &'static str = "";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<DescribeImportTaskResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(3);
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
params.push(("RegionId".into(), (&self.region_id).into()));
params.push(("TaskId".into(), (&self.task_id).into()));
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 创建数据导入任务
///
/// Argument of [Connection::create_import_task()], returns [CreateImportTaskResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct CreateImportTask {
/// 地域ID。可调用[DescribeRegions](~~610399~~)获取。
region_id: String,
/// 源端MySQL Host IP,RDS会访问该IP并获取备份
host: String,
/// 源端MySQL端口
port: i32,
/// 流式传输端口,用于传输备份
stream_port: i32,
/// 源端MySQL账户,需要具有创建备份与搭建复制的权限,参考赋权sql
/// ```ignore
/// -- MySQL 5.7
/// mysql> CREATE USER 'myadmin'@'%' IDENTIFIED BY 's3cret';
/// mysql> GRANT RELOAD, LOCK TABLES, PROCESS, REPLICATION CLIENT, REPLICATION SLAVE ON *.* TO
/// 'myadmin'@'%';
/// mysql> FLUSH PRIVILEGES;
/// -- MySQL 8.0
/// mysql> CREATE USER 'myadmin'@'%' IDENTIFIED BY 'Test123!';
/// mysql> GRANT BACKUP_ADMIN, PROCESS, RELOAD, LOCK TABLES, REPLICATION CLIENT, REPLICATION SLAVE ON *.* TO 'myadmin'@'%';
/// mysql> GRANT SELECT ON performance_schema.log_status TO 'myadmin'@'%';
/// mysql> GRANT SELECT ON performance_schema.keyring_component_status TO myadmin@'%';
/// mysql> GRANT SELECT ON performance_schema.replication_group_members TO myadmin@'%';
/// mysql> FLUSH PRIVILEGES;
user: String,
/// 源端MySQL账户密码,需要进行Base64编码
password: String,
/// 源端云上实例类型
#[setters(generate = true, strip_option)]
source_platform: Option<CreateImportTaskSourcePlatform>,
/// 源端云上实例ID
#[setters(generate = true, strip_option)]
source_instance_id: Option<String>,
/// 源端xtrabackup安装地址
#[setters(generate = true, strip_option)]
xtrabackup_path: Option<String>,
/// 实例ID
db_instance_id: String,
/// 预估数据空间,单位:GB
#[setters(generate = true, strip_option)]
estimated_size: Option<i32>,
}
impl sealed::Bound for CreateImportTask {}
impl CreateImportTask {
pub fn new(
region_id: impl Into<String>,
host: impl Into<String>,
port: impl Into<i32>,
stream_port: impl Into<i32>,
user: impl Into<String>,
password: impl Into<String>,
db_instance_id: impl Into<String>,
) -> Self {
Self {
region_id: region_id.into(),
host: host.into(),
port: port.into(),
stream_port: stream_port.into(),
user: user.into(),
password: password.into(),
source_platform: None,
source_instance_id: None,
xtrabackup_path: None,
db_instance_id: db_instance_id.into(),
estimated_size: None,
}
}
}
impl crate::ToFormData for CreateImportTask {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for CreateImportTask {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "CreateImportTask";
const URL_PATH: &'static str = "";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<CreateImportTaskResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(11);
params.push(("DbInstanceId".into(), (&self.db_instance_id).into()));
if let Some(f) = &self.estimated_size {
params.push(("EstimatedSize".into(), (f).into()));
}
params.push(("Host".into(), (&self.host).into()));
params.push(("Password".into(), (&self.password).into()));
params.push(("Port".into(), (&self.port).into()));
params.push(("RegionId".into(), (&self.region_id).into()));
if let Some(f) = &self.source_instance_id {
params.push(("SourceInstanceId".into(), (f).into()));
}
if let Some(f) = &self.source_platform {
params.push(("SourcePlatform".into(), (f).into()));
}
params.push(("StreamPort".into(), (&self.stream_port).into()));
params.push(("User".into(), (&self.user).into()));
if let Some(f) = &self.xtrabackup_path {
params.push(("XtrabackupPath".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// RDS MySQL原生复制实例数据导入任务预检查
///
/// Argument of [Connection::validate_import_task()], returns [ValidateImportTaskResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct ValidateImportTask {
/// 地域ID。可调用DescribeRegions获取。
region_id: String,
/// 源端MySQL地址
host: String,
/// 源端MySQL端口号
port: i32,
/// 备份传输端口号
stream_port: i32,
/// 源端MySQL用户
user: String,
/// 源端MySQL用户密码(Base64加密)
password: String,
/// 源端类型
/// - ECS
#[setters(generate = true, strip_option)]
source_platform: Option<ValidateImportTaskSourcePlatform>,
/// 源端云实例id
#[setters(generate = true, strip_option)]
source_instance_id: Option<String>,
/// 源端Xtrabackup工具地址
#[setters(generate = true, strip_option)]
xtrabackup_path: Option<String>,
/// 实例ID,您可调用DescribeDBInstances接口获取该参数的值。
db_instance_id: String,
/// 预估实例大小(GB)
#[setters(generate = true, strip_option)]
estimated_size: Option<i32>,
}
impl sealed::Bound for ValidateImportTask {}
impl ValidateImportTask {
pub fn new(
region_id: impl Into<String>,
host: impl Into<String>,
port: impl Into<i32>,
stream_port: impl Into<i32>,
user: impl Into<String>,
password: impl Into<String>,
db_instance_id: impl Into<String>,
) -> Self {
Self {
region_id: region_id.into(),
host: host.into(),
port: port.into(),
stream_port: stream_port.into(),
user: user.into(),
password: password.into(),
source_platform: None,
source_instance_id: None,
xtrabackup_path: None,
db_instance_id: db_instance_id.into(),
estimated_size: None,
}
}
}
impl crate::ToFormData for ValidateImportTask {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for ValidateImportTask {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "ValidateImportTask";
const URL_PATH: &'static str = "";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<ValidateImportTaskResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(11);
params.push(("DbInstanceId".into(), (&self.db_instance_id).into()));
if let Some(f) = &self.estimated_size {
params.push(("EstimatedSize".into(), (f).into()));
}
params.push(("Host".into(), (&self.host).into()));
params.push(("Password".into(), (&self.password).into()));
params.push(("Port".into(), (&self.port).into()));
params.push(("RegionId".into(), (&self.region_id).into()));
if let Some(f) = &self.source_instance_id {
params.push(("SourceInstanceId".into(), (f).into()));
}
if let Some(f) = &self.source_platform {
params.push(("SourcePlatform".into(), (f).into()));
}
params.push(("StreamPort".into(), (&self.stream_port).into()));
params.push(("User".into(), (&self.user).into()));
if let Some(f) = &self.xtrabackup_path {
params.push(("XtrabackupPath".into(), (f).into()));
}
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 列表查询原生复制数据导入任务。
///
/// Argument of [Connection::list_import_tasks()], returns [ListImportTasksResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct ListImportTasks {
/// 地域ID。
region_id: String,
/// 实例ID。可调用DescribeDBInstances获取。
db_instance_id: String,
/// 每页记录数。取值:**1~100**。
///
/// 默认值:**30**。
/// >传入该参数,则**PageSize**和**PageNumber**参数不可用。
#[setters(generate = true, strip_option)]
max_results: Option<i32>,
/// 分页游标标识。
#[setters(generate = true, strip_option)]
next_token: Option<String>,
}
impl sealed::Bound for ListImportTasks {}
impl ListImportTasks {
pub fn new(region_id: impl Into<String>, db_instance_id: impl Into<String>) -> Self {
Self {
region_id: region_id.into(),
db_instance_id: db_instance_id.into(),
max_results: None,
next_token: None,
}
}
}
impl crate::ToFormData for ListImportTasks {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for ListImportTasks {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "ListImportTasks";
const URL_PATH: &'static str = "";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<ListImportTasksResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(4);
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
if let Some(f) = &self.max_results {
params.push(("MaxResults".into(), (f).into()));
}
if let Some(f) = &self.next_token {
params.push(("NextToken".into(), (f).into()));
}
params.push(("RegionId".into(), (&self.region_id).into()));
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 修改 RDS MySQL 原生复制实例数据导入任务
///
/// Argument of [Connection::modify_import_task()], returns [ModifyImportTaskResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct ModifyImportTask {
/// 目标地域ID,可以通过接口DescribeRegions查看地域ID。
region_id: String,
/// 实例ID。可调用DescribeDBInstances获取。
db_instance_id: String,
/// 任务ID。
task_id: String,
/// 取值范围如下:
///
///
/// - RETRY_IMPORT:重试导入
/// - CANCEL:取消任务
operation: TaskOperation,
}
impl sealed::Bound for ModifyImportTask {}
impl ModifyImportTask {
pub fn new(
region_id: impl Into<String>,
db_instance_id: impl Into<String>,
task_id: impl Into<String>,
operation: impl Into<TaskOperation>,
) -> Self {
Self {
region_id: region_id.into(),
db_instance_id: db_instance_id.into(),
task_id: task_id.into(),
operation: operation.into(),
}
}
}
impl crate::ToFormData for ModifyImportTask {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for ModifyImportTask {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "ModifyImportTask";
const URL_PATH: &'static str = "";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<ModifyImportTaskResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(4);
params.push(("DBInstanceId".into(), (&self.db_instance_id).into()));
params.push(("Operation".into(), (&self.operation).into()));
params.push(("RegionId".into(), (&self.region_id).into()));
params.push(("TaskId".into(), (&self.task_id).into()));
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 修改一个块存储设备的名称、描述、是否随实例释放、是否随磁盘删除其自动快照、是否启用自动快照策略、是否开启性能突发功能等。
///
/// Argument of [Connection::modify_rc_disk_attribute()], returns [ModifyRCDiskAttributeResponse].
#[derive(derive_setters::Setters, Debug)]
#[setters(generate = false)]
pub struct ModifyRCDiskAttribute {
/// 地域 ID。可调用 DescribeRegions 获取。
region_id: String,
/// 待修改属性的磁盘 ID。
disk_id: String,
/// 磁盘名称。长度为 2~128 个字符,支持 Unicode 中 letter 分类下的字符(其中包括英文、中文和数字等)。可以包含半角冒号(:)、下划线(_)、半角句号(.)或者短划线(-)。
#[setters(generate = true, strip_option)]
disk_name: Option<String>,
/// 磁盘描述。 长度为 2~256 个英文或中文字符,不能以http://和https://开头。
#[setters(generate = true, strip_option)]
description: Option<String>,
/// 磁盘是否随实例释放。默认值:无,无表示不改变当前的值。
///
/// 开启多重挂载特性的云盘,不支持设置该参数。
///
/// 在下列两种情况下,将参数DeleteWithInstance设置成false时会报错。
///
/// 磁盘的种类(category)为本地盘(ephemeral)时。
/// 磁盘的种类(category)为普通云盘(cloud),且不可以卸载(Portable=false)时。
/// 警告
/// 如果您设置了不随实例释放(DeleteWithInstance=false),一旦磁盘挂载的 ECS 实例被安全锁定且 OperationLocks 中标记了"LockReason" : "security"的锁定状态,释放实例时会忽略磁盘的 DeleteWithInstance 属性而被同时释放。
#[setters(generate = true, strip_option)]
delete_with_instance: Option<bool>,
/// 针对支持 Burst(性能突发)的磁盘是否开启此功能,取值范围:
///
/// true:是。
/// false:否。
/// 说明
/// 对于不支持 Burst 功能的磁盘,传入任意值将会报错。
#[setters(generate = true, strip_option)]
bursting_enabled: Option<bool>,
}
impl sealed::Bound for ModifyRCDiskAttribute {}
impl ModifyRCDiskAttribute {
pub fn new(region_id: impl Into<String>, disk_id: impl Into<String>) -> Self {
Self {
region_id: region_id.into(),
disk_id: disk_id.into(),
disk_name: None,
description: None,
delete_with_instance: None,
bursting_enabled: None,
}
}
}
impl crate::ToFormData for ModifyRCDiskAttribute {
fn to_form_data(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
Default::default()
}
}
impl crate::Request for ModifyRCDiskAttribute {
const METHOD: http::Method = http::Method::POST;
const ACTION: &'static str = "ModifyRCDiskAttribute";
const URL_PATH: &'static str = "";
type Body = crate::Form<Self>;
type ResponseWrap = crate::JsonResponseWrap<ModifyRCDiskAttributeResponse>;
fn to_query_params(&self) -> Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'_>)> {
let mut params = Vec::with_capacity(6);
if let Some(f) = &self.bursting_enabled {
params.push(("BurstingEnabled".into(), (f).into()));
}
if let Some(f) = &self.delete_with_instance {
params.push(("DeleteWithInstance".into(), (f).into()));
}
if let Some(f) = &self.description {
params.push(("Description".into(), (f).into()));
}
params.push(("DiskId".into(), (&self.disk_id).into()));
if let Some(f) = &self.disk_name {
params.push(("DiskName".into(), (f).into()));
}
params.push(("RegionId".into(), (&self.region_id).into()));
params
}
fn to_headers(&self) -> Vec<(std::borrow::Cow<'static, str>, String)> {
Default::default()
}
fn to_body(self) -> Self::Body {
crate::Form(self)
}
}
/// 节点详情。
#[derive(Debug, Clone, Default, serde::Serialize)]
pub struct PriceDBNode {
/// 节点规格。
#[serde(rename = "ClassCode")]
#[serde(skip_serializing_if = "Option::is_none")]
pub class_code: Option<String>,
/// 节点可用区ID。
#[serde(rename = "ZoneId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub zone_id: Option<String>,
}
/// RDS Serverless实例的相关设置。
/// >MariaDB不支持Serverless实例。
#[derive(Debug, Clone, Default, serde::Serialize)]
pub struct PriceServerlessConfig {
/// 实例RCU(RDS Capacity Unit)的自动扩缩范围最大值。
#[serde(rename = "MaxCapacity")]
#[serde(skip_serializing_if = "Option::is_none")]
pub max_capacity: Option<f64>,
/// 实例RCU(RDS Capacity Unit)的自动扩缩范围最小值。
#[serde(rename = "MinCapacity")]
#[serde(skip_serializing_if = "Option::is_none")]
pub min_capacity: Option<f64>,
}
/// 价格信息。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct DescribePriceResponsePriceInfoActivityInfo {
/// 错误描述。
#[serde(rename = "CheckErrMsg")]
pub check_err_msg: Option<String>,
/// 错误代码。
#[serde(rename = "ErrorCode")]
pub error_code: Option<String>,
/// 是否成功。
#[serde(rename = "Success")]
pub success: Option<String>,
}
/// 优惠详情信息。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct DescribePriceResponsePriceInfoCouponsCoupon {
/// 优惠券编号。
#[serde(rename = "CouponNo")]
pub coupon_no: Option<String>,
/// 优惠券描述。
#[serde(rename = "Description")]
pub description: Option<String>,
/// 是否已选择优惠券。
#[serde(rename = "IsSelected")]
pub is_selected: Option<String>,
/// 优惠券名称。
#[serde(rename = "Name")]
pub name: Option<String>,
}
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct DescribePriceResponsePriceInfoCoupons {
/// 优惠信息列表。
#[serde(rename = "Coupon")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub coupon: Vec<DescribePriceResponsePriceInfoCouponsCoupon>,
}
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct DescribePriceResponsePriceInfoRuleIds {
/// 活动ID列表。
#[serde(rename = "RuleId")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub rule_id: Vec<String>,
}
/// 价格信息。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct DescribePriceResponsePriceInfo {
/// 价格信息。
#[serde(rename = "ActivityInfo")]
pub activity_info: Option<DescribePriceResponsePriceInfoActivityInfo>,
#[serde(rename = "Coupons")]
pub coupons: Option<DescribePriceResponsePriceInfoCoupons>,
/// 货币单位。
#[serde(rename = "Currency")]
pub currency: Option<String>,
/// 折扣。
#[serde(rename = "DiscountPrice")]
pub discount_price: Option<f32>,
/// 订单信息。
#[serde(rename = "OrderLines")]
pub order_lines: Option<String>,
/// 原价。
#[serde(rename = "OriginalPrice")]
pub original_price: Option<f32>,
#[serde(rename = "RuleIds")]
pub rule_ids: Option<DescribePriceResponsePriceInfoRuleIds>,
/// 根据用户所选择的最大RCU计算出的每小时费用预估。
#[serde(rename = "TradeMaxRCUAmount")]
pub trade_max_rcu_amount: Option<f32>,
/// 根据用户所选择的最小RCU计算出的每小时费用预估。
#[serde(rename = "TradeMinRCUAmount")]
pub trade_min_rcu_amount: Option<f32>,
/// 最终价,为原价减去折扣。
#[serde(rename = "TradePrice")]
pub trade_price: Option<f32>,
}
/// 活动详细。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct DescribePriceResponseRulesRule {
/// 活动描述。
#[serde(rename = "Description")]
pub description: Option<String>,
/// 活动名称。
#[serde(rename = "Name")]
pub name: Option<String>,
/// 活动ID。
#[serde(rename = "RuleId")]
pub rule_id: Option<i64>,
}
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct DescribePriceResponseRules {
/// 活动规格列表。
#[serde(rename = "Rule")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub rule: Vec<DescribePriceResponseRulesRule>,
}
/// Serverless价格信息。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct ServerlessPrice {
/// maxRCU优惠金额。
#[serde(rename = "RCUDiscountMaxAmount")]
pub rcu_discount_max_amount: Option<f32>,
/// minRCU优惠金额。
#[serde(rename = "RCUDiscountMinAmount")]
pub rcu_discount_min_amount: Option<f32>,
/// maxRCU价格。
#[serde(rename = "RCUOriginalMaxAmount")]
pub rcu_original_max_amount: Option<f32>,
/// minRCU价格。
#[serde(rename = "RCUOriginalMinAmount")]
pub rcu_original_min_amount: Option<f32>,
/// 磁盘原始价格。
#[serde(rename = "StorageOriginalAmount")]
pub storage_original_amount: Option<f32>,
/// 优惠前总价最大值。
#[serde(rename = "TotalOriginalMaxAmount")]
pub total_original_max_amount: Option<f32>,
/// 优惠前总价最小值。
#[serde(rename = "TotalOriginalMinAmount")]
pub total_original_min_amount: Option<f32>,
/// maxRCU交易价格。
#[serde(rename = "TradeMaxRCUAmount")]
pub trade_max_rcu_amount: Option<f32>,
/// minRCU交易价格。
#[serde(rename = "TradeMinRCUAmount")]
pub trade_min_rcu_amount: Option<f32>,
/// 磁盘折扣价格。
#[serde(rename = "storageDiscountAmount")]
pub storage_discount_amount: Option<f32>,
}
/// 价格信息。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct RenewalPriceResponsePriceInfoActivityInfo {
/// 错误描述。
#[serde(rename = "CheckErrMsg")]
pub check_err_msg: Option<String>,
/// 错误代码。
#[serde(rename = "ErrorCode")]
pub error_code: Option<String>,
/// 是否成功。
#[serde(rename = "Success")]
pub success: Option<String>,
}
/// 优惠信息详情。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct RenewalPriceResponsePriceInfoCouponsCoupon {
/// 优惠券编号。
#[serde(rename = "CouponNo")]
pub coupon_no: Option<String>,
/// 优惠券描述。
#[serde(rename = "Description")]
pub description: Option<String>,
/// 是否已选择优惠券。
#[serde(rename = "IsSelected")]
pub is_selected: Option<String>,
/// 优惠券名称。
#[serde(rename = "Name")]
pub name: Option<String>,
}
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct RenewalPriceResponsePriceInfoCoupons {
/// 优惠信息列表。
#[serde(rename = "Coupon")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub coupon: Vec<RenewalPriceResponsePriceInfoCouponsCoupon>,
}
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct RenewalPriceResponsePriceInfoRuleIds {
/// 活动ID列表。
#[serde(rename = "RuleId")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub rule_id: Vec<String>,
}
/// 价格信息列表。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct RenewalPriceResponsePriceInfo {
/// 价格信息。
#[serde(rename = "ActivityInfo")]
pub activity_info: Option<RenewalPriceResponsePriceInfoActivityInfo>,
#[serde(rename = "Coupons")]
pub coupons: Option<RenewalPriceResponsePriceInfoCoupons>,
/// 货币单位。
#[serde(rename = "Currency")]
pub currency: Option<String>,
/// 折扣。
#[serde(rename = "DiscountPrice")]
pub discount_price: Option<f32>,
/// 原价。
#[serde(rename = "OriginalPrice")]
pub original_price: Option<f32>,
#[serde(rename = "RuleIds")]
pub rule_ids: Option<RenewalPriceResponsePriceInfoRuleIds>,
/// 最终价,为原价减去折扣。
#[serde(rename = "TradePrice")]
pub trade_price: Option<f32>,
}
/// 活动详情。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct RenewalPriceResponseRulesRule {
/// 活动描述。
#[serde(rename = "Description")]
pub description: Option<String>,
/// 活动名称。
#[serde(rename = "Name")]
pub name: Option<String>,
/// 活动ID。
#[serde(rename = "RuleId")]
pub rule_id: Option<i64>,
}
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct RenewalPriceResponseRules {
/// 活动规格列表。
#[serde(rename = "Rule")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub rule: Vec<RenewalPriceResponseRulesRule>,
}
/// 实例续费信息。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct AttributeResponseItemsItem {
/// 是否自动续费。
#[serde(rename = "AutoRenew")]
pub auto_renew: Option<String>,
/// 实例ID。
#[serde(rename = "DBInstanceId")]
pub db_instance_id: Option<String>,
/// 续费周期。
#[serde(rename = "Duration")]
pub duration: Option<i32>,
/// 地域ID。
#[serde(rename = "RegionId")]
pub region_id: Option<String>,
/// 实例状态。
#[serde(rename = "Status")]
pub status: Option<String>,
}
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct RenewalAttributeResponseItems {
/// 实例续费信息列表。
#[serde(rename = "Item")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub item: Vec<AttributeResponseItemsItem>,
}
/// 标签列表详情内容。
#[derive(Debug, Clone, Default, serde::Serialize)]
pub struct BInstanceTag {
/// 标签键。传入此参数为实例绑定标签。
///
/// * 若传入的标签键已存在,则直接为实例绑定该标签键。可调用ListTagResources查询已创建的标签。
/// * 若传入的标签键不存在,则先创建再为实例绑定该标签键。
/// * 不允许传入空字符串。
/// * 该参数与**Tag.Value**参数为配套参数,不可单独使用。
#[serde(rename = "Key")]
#[serde(skip_serializing_if = "Option::is_none")]
pub key: Option<String>,
/// 标签键对应的标签值。传入此参数为实例绑定标签。
///
/// * 若对应的标签键中存在传入的标签值,则直接为实例绑定该标签值。可调用ListTagResources查询已创建的标签。
/// * 若对应的标签键中不存在传入的标签值,则先创建再为实例绑定该标签值。
/// * 该参数与**Tag.Key**参数为配套参数,不可单独使用。
#[serde(rename = "Value")]
#[serde(skip_serializing_if = "Option::is_none")]
pub value: Option<String>,
}
impl crate::FlatSerialize for BInstanceTag {
fn flat_serialize<'a>(
&'a self,
name: &str,
params: &mut Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'a>)>,
) {
crate::FlatSerialize::flat_serialize(&self.key, &format!("{}.Key", name), params);
crate::FlatSerialize::flat_serialize(&self.value, &format!("{}.Value", name), params);
}
}
/// RDS Serverless实例的相关设置。创建Serverless实例时必传。
/// >MariaDB不支持创建Serverless实例。
#[derive(Debug, Clone, Default, serde::Serialize)]
pub struct CreateDBInstanceServerlessConfig {
/// 实例RCU(RDS Capacity Unit)自动扩缩范围的最大值。取值:
///
/// - MySQL:**1~32**
/// - SQL Server:**2~16**
/// - PostgreSQL:**1~14**
///
/// >该参数的值必须大于等于**MinCapacity**,且仅支持传入**整数**。
#[serde(rename = "MaxCapacity")]
#[serde(skip_serializing_if = "Option::is_none")]
pub max_capacity: Option<f64>,
/// 实例RCU自动扩缩范围的最小值。取值:
///
/// - MySQL:**0.5~32**
/// - SQL Server:**2~16**(仅支持整数)
/// - PostgreSQL:**0.5~14**
///
/// >该参数的值必须小于等于**MaxCapacity**。
#[serde(rename = "MinCapacity")]
#[serde(skip_serializing_if = "Option::is_none")]
pub min_capacity: Option<f64>,
/// 是否开启Serverless实例的智能暂停和启动。取值:
/// * **true**:启用。
/// * **false**:不启用(默认)。
///
/// > 仅MySQL和PostgreSQL的Serverless实例需设置该参数。如果10分钟无任何连接将进入暂停状态,当连接进入时会自动唤醒。
#[serde(rename = "AutoPause")]
#[serde(skip_serializing_if = "Option::is_none")]
pub auto_pause: Option<bool>,
/// 是否开启Serverless实例的强制弹性扩缩容。取值:
/// * **true**:启用。
/// * **false**:不启用(默认)。
///
/// > * 仅MySQL和PostgreSQL的Serverless实例需设置该参数。开启该参数后,实例进行强制扩缩容时会有30~120秒的服务不可用,请根据实际情况谨慎使用。
/// > * 实例RCU的弹性扩缩容通常会立刻生效,但在某些特殊情况下(例如大事务执行中)无法即刻完成扩缩容,此时可开启本参数进行强制扩缩容。
#[serde(rename = "SwitchForce")]
#[serde(skip_serializing_if = "Option::is_none")]
pub switch_force: Option<bool>,
}
/// 变配Serverless实例。
#[derive(Debug, Clone, Default, serde::Serialize)]
pub struct ServerlessConfiguration {
/// MySQL Serverless或PostgreSQL Serverless实例的[智能暂停和启动](~~2838448~~),取值:
/// * **true**:启用
/// * **false**(默认):不启用
///
/// > 如果10分钟无任何连接将进入暂停状态,当连接进入时会自动唤醒。
#[serde(rename = "AutoPause")]
#[serde(skip_serializing_if = "Option::is_none")]
pub auto_pause: Option<bool>,
/// Serverless实例RCU的自动扩缩范围**最大值**,取值:
/// - MySQL:**1~32**
/// - SQL Server:**2~16**(仅支持整数)
/// - PostgreSQL:**1~14**
///
/// > 该值必须大于等于**MinCapacity**。
#[serde(rename = "MaxCapacity")]
#[serde(skip_serializing_if = "Option::is_none")]
pub max_capacity: Option<f64>,
/// Serverless实例RCU的自动扩缩范围**最小值**,取值:
///
/// - MySQL:**0.5~32**
/// - SQL Server:**2~16**(仅支持整数)
/// - PostgreSQL:**0.5~14**
///
/// > 该值必须小于等于MaxCapacity。
#[serde(rename = "MinCapacity")]
#[serde(skip_serializing_if = "Option::is_none")]
pub min_capacity: Option<f64>,
/// MySQL Serverless或PostgreSQL Serverless实例的强制弹性扩缩容。实例RCU的弹性扩缩容通常会立刻生效,但在某些特殊情况下(例如大事务执行中)无法即刻完成扩缩容,此时可开启本参数进行强制扩缩容。取值:
///
/// - **true**:启用
/// - **false**(默认值):不启用
///
/// > 开启该参数后,实例进行**强制扩缩容时会出现30~120秒的服务不可用**,请根据实际情况谨慎使用。
#[serde(rename = "SwitchForce")]
#[serde(skip_serializing_if = "Option::is_none")]
pub switch_force: Option<bool>,
}
/// 支持售卖的存储类型详情。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct StorageType {
/// 实例存储类型。
#[serde(rename = "StorageType")]
pub storage_type: Option<String>,
}
/// 支持售卖的数据库系列详情。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct SupportedCategory {
/// 实例系列。
#[serde(rename = "Category")]
pub category: Option<String>,
/// 支持售卖的存储类型列表。
#[serde(rename = "SupportedStorageTypes")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub supported_storage_types: Vec<StorageType>,
}
/// 支持售卖的数据库版本详情。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct EngineVersion {
/// 支持售卖的数据库系列列表。
#[serde(rename = "SupportedCategorys")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub supported_categorys: Vec<SupportedCategory>,
/// 数据库版本。
#[serde(rename = "Version")]
pub version: Option<String>,
}
/// 支持售卖的数据库类型详情。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct SupportedEngine {
/// 数据库类型。
#[serde(rename = "Engine")]
pub engine: Option<String>,
/// 支持售卖的数据库版本列表。
#[serde(rename = "SupportedEngineVersions")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub supported_engine_versions: Vec<EngineVersion>,
}
/// 可用区资源详情。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct AvailableZone {
/// 地域ID。
#[serde(rename = "RegionId")]
pub region_id: Option<String>,
/// 支持售卖的数据库类型列表。
#[serde(rename = "SupportedEngines")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub supported_engines: Vec<SupportedEngine>,
/// 可用区ID。
#[serde(rename = "ZoneId")]
pub zone_id: Option<String>,
}
/// 实例存储空间范围。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct StorageRange {
/// 最大存储空间,单位:GB。
#[serde(rename = "MaxValue")]
pub max_value: Option<i32>,
/// 最小存储空间,单位:GB。
#[serde(rename = "MinValue")]
pub min_value: Option<i32>,
/// 调整存储空间的最小粒度。当前为固定5 GB递增。
#[serde(rename = "Step")]
pub step: Option<i32>,
}
/// 实例可用规格详情。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct InstanceClass {
/// 实例规格。
#[serde(rename = "DBInstanceClass")]
pub db_instance_class: Option<String>,
/// 实例存储空间范围。
#[serde(rename = "DBInstanceStorageRange")]
pub db_instance_storage_range: Option<StorageRange>,
}
/// [Babelfish for RDS PostgreSQL](~~428613~~)配置信息。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct BabelfishConfig {
/// Babelfish开关。
/// > 购买RDS PostgreSQL实例时,如果开启了Babelfish,则此参数固定为**true**。
#[serde(rename = "BabelfishEnabled")]
pub babelfish_enabled: Option<String>,
/// Babelfish[迁移模式](~~428613~~)。返回值:
/// - **single-db**:单数据库模式。
/// - **multi-db**:多数据库模式。
#[serde(rename = "MigrationMode")]
pub migration_mode: Option<String>,
}
/// 节点详情。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct ClusterNode {
/// 节点规格。
#[serde(rename = "ClassCode")]
pub class_code: Option<String>,
/// 节点规格类型。返回值:
/// - d:独享规格
/// - x:通用规格
#[serde(rename = "ClassType")]
pub class_type: Option<String>,
/// 节点CPU大小。
#[serde(rename = "Cpu")]
pub cpu: Option<String>,
/// 节点的内存大小。单位:MB。
#[serde(rename = "Memory")]
pub memory: Option<String>,
/// 节点ID。
#[serde(rename = "NodeId")]
pub node_id: Option<String>,
/// Region ID。
#[serde(rename = "NodeRegionId")]
pub node_region_id: Option<String>,
/// 节点角色。返回值:
///
/// - **primary**:主节点
/// - **secondary**:备节点
#[serde(rename = "NodeRole")]
pub node_role: Option<String>,
/// 可用区ID。
#[serde(rename = "NodeZoneId")]
pub node_zone_id: Option<String>,
/// 节点的状态。返回值:
/// - active
/// - creating
/// - deleting
/// - classchanging
/// - restarting
#[serde(rename = "Status")]
pub status: Option<String>,
#[serde(rename = "DisasterRecoveryNode")]
pub disaster_recovery_node: Option<bool>,
}
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct ClusterNodes {
/// 集群节点相关信息。
#[serde(rename = "DBClusterNode")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub db_cluster_node: Vec<ClusterNode>,
}
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct ExtraDbInstanceIds {
/// 数据库实例ID列表。
#[serde(rename = "DBInstanceId")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub db_instance_id: Vec<String>,
}
/// 扩展信息。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct ItemExtra {
/// 数据库账号的密码策略。返回值:
/// - **MaximumPasswordAge**:密码的最长使用时间
/// - **MinimumPasswordAge**:密码的最短使用时间
#[serde(rename = "AccountSecurityPolicy")]
pub account_security_policy: Option<String>,
#[serde(rename = "DBInstanceIds")]
pub db_instance_ids: Option<ExtraDbInstanceIds>,
/// 恢复模式。
#[serde(rename = "RecoveryModel")]
pub recovery_model: Option<String>,
}
/// 只读实例详情。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct AttributeItemReadOnlyDbInstanceIdsReadOnlyDbInstanceId {
/// 只读实例ID。
#[serde(rename = "DBInstanceId")]
pub db_instance_id: Option<String>,
}
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct AttributeItemReadOnlyDbInstanceIds {
/// 主实例下挂载的只读实例ID列表。
#[serde(rename = "ReadOnlyDBInstanceId")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub read_only_db_instance_id: Vec<AttributeItemReadOnlyDbInstanceIdsReadOnlyDbInstanceId>,
}
/// RDS Serverless实例的相关设置。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct ItemServerlessConfig {
/// 是否开启Serverless实例的自动启停功能。返回值:
///
/// - **true**:启用。
/// - **false**:不启用,默认值。
///
/// > 10分钟无任何连接将进入暂停状态,连接时会自动唤醒。
#[serde(rename = "AutoPause")]
pub auto_pause: Option<bool>,
/// 实例RCU(RDS Capacity Unit)自动扩缩范围的最大值。
#[serde(rename = "ScaleMax")]
pub scale_max: Option<f64>,
/// 实例RCU(RDS Capacity Unit)自动扩缩范围的最小值。
#[serde(rename = "ScaleMin")]
pub scale_min: Option<f64>,
/// 是否开启Serverless实例的强制弹性扩缩容。返回值:
///
/// - **true**:启用。
/// - **false**:不启用,默认值。
///
/// > 实例RCU的弹性扩缩容通常会立刻生效,但在某些特殊情况下无法即时完成扩缩容,此时可开启本参数进行强制扩缩容。
#[serde(rename = "SwitchForce")]
pub switch_force: Option<bool>,
}
/// 可用区详情。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct SlaveZone {
/// 可用区。
#[serde(rename = "ZoneId")]
pub zone_id: Option<String>,
}
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct AttributeResponseItemsDbInstanceAttributeItemSlaveZones {
/// 组成SlaveZones的参数列表。
#[serde(rename = "SlaveZone")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub slave_zone: Vec<SlaveZone>,
}
/// 实例属性详情。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct AttributeResponseItemsDbInstanceAttribute {
/// 可创建账号的最大数量。
#[serde(rename = "AccountMaxQuantity")]
pub account_max_quantity: Option<i32>,
/// 目前只针对**SQL Server**,获取高级特性值,多个值之间用半角逗号(,)隔开。返回值:
/// * **LinkedServer**:链接服务器。
/// * **DistributeTransaction**:分布式事务。
#[serde(rename = "AdvancedFeatures")]
pub advanced_features: Option<String>,
/// 实例升级小版本的方式。返回值:
/// * **Auto**:自动升级小版本。
/// * **Manual**:不自动升级,仅在当前版本下线时才强制升级。
#[serde(rename = "AutoUpgradeMinorVersion")]
pub auto_upgrade_minor_version: Option<String>,
/// 实例可用性状态,单位:百分比(%)。
#[serde(rename = "AvailabilityValue")]
pub availability_value: Option<String>,
/// [Babelfish for RDS PostgreSQL](~~428613~~)配置信息。
#[serde(rename = "BabelfishConfig")]
pub babelfish_config: Option<BabelfishConfig>,
/// 弃用参数,无需配置。
#[serde(rename = "BpeEnabled")]
pub bpe_enabled: Option<String>,
#[serde(rename = "IsAnalyticIns")]
pub is_analytic_ins: Option<bool>,
/// 是否满足临时升级条件。
/// > 按量付费实例不支持临时升级。
#[serde(rename = "CanTempUpgrade")]
pub can_temp_upgrade: Option<bool>,
/// 实例系列。返回值:
/// * **Basic**:基础系列
/// * **HighAvailability**:高可用系列
/// * **cluster**:MySQL集群系列
/// * **AlwaysOn**:SQL Server集群系列
/// * **Finance**:三节点企业系列
/// * **Serverless_basic**:Serverless基础系列
#[serde(rename = "Category")]
pub category: Option<String>,
/// 高性能云盘[数据归档](~~2701832~~)功能开关。返回值:
///
/// - **true**:开启。
/// - **false**:关闭。
#[serde(rename = "ColdDataEnabled")]
pub cold_data_enabled: Option<bool>,
/// 系统字符集排序规则。
#[serde(rename = "Collation")]
pub collation: Option<String>,
/// 实例的访问模式。返回值:
/// * **Standard**:标准访问模式。
/// * **Safe**:数据库代理模式。
#[serde(rename = "ConnectionMode")]
pub connection_mode: Option<String>,
/// 内网连接地址。
#[serde(rename = "ConnectionString")]
pub connection_string: Option<String>,
/// 实例的代理类型。返回值:
/// * **1**:共享代理。
/// * **2**:独享代理。
///
/// >不建议使用该参数,请使用返回参数**ProxyType**。
#[serde(rename = "ConsoleVersion")]
pub console_version: Option<String>,
/// 创建时间。格式为<i>yyyy-MM-dd</i>T<i>HH:mm:ss</i>Z(UTC时间)。
#[serde(rename = "CreationTime")]
pub creation_time: Option<String>,
/// 当前内核版本。
#[serde(rename = "CurrentKernelVersion")]
pub current_kernel_version: Option<String>,
#[serde(rename = "DBClusterNodes")]
pub db_cluster_nodes: Option<ClusterNodes>,
/// 实例CPU数量。
#[serde(rename = "DBInstanceCPU")]
pub db_instance_cpu: Option<String>,
/// 实例规格,详情请参见[实例规格表](~~26312~~)。
#[serde(rename = "DBInstanceClass")]
pub db_instance_class: Option<String>,
/// 实例规格族。返回值:
///
/// * **s**:共享型。
/// * **x**:通用型。
/// * **d**:独享套餐。
/// * **h**:独占物理机。
#[serde(rename = "DBInstanceClassType")]
pub db_instance_class_type: Option<String>,
/// 实例备注。
#[serde(rename = "DBInstanceDescription")]
pub db_instance_description: Option<String>,
/// 实例的磁盘使用量,单位:byte。
///
/// ><notice>对于RDS MySQL Serverless实例,当实例状态为**已暂停**(Stopped)时,该参数返回值为**0**。></notice>
#[serde(rename = "DBInstanceDiskUsed")]
pub db_instance_disk_used: Option<String>,
/// 实例ID。
#[serde(rename = "DBInstanceId")]
pub db_instance_id: Option<String>,
/// 实例内存,单位:M。
#[serde(rename = "DBInstanceMemory")]
pub db_instance_memory: Option<i64>,
/// 实例是内网或外网。返回值:
///
/// * **Internet**:外网。
/// * **Intranet**:内网。
#[serde(rename = "DBInstanceNetType")]
pub db_instance_net_type: Option<String>,
/// 实例状态,详情请参见[实例状态表](~~26315~~)。
#[serde(rename = "DBInstanceStatus")]
pub db_instance_status: Option<String>,
/// 实例存储空间,单位:GB。
#[serde(rename = "DBInstanceStorage")]
pub db_instance_storage: Option<i32>,
/// 实例储存类型。返回值:
///
/// - **local_ssd**、**ephemeral_ssd**:高性能本地盘。
/// - **cloud_ssd**:SSD云盘。
/// - **general_essd**:高性能云盘。
/// - **cloud_essd0**:ESSD PL0云盘。
/// - **cloud_essd**:ESSD PL1云盘。
/// - **cloud_essd2**:ESSD PL2云盘。
/// - **cloud_essd3**:ESSD PL3云盘。
#[serde(rename = "DBInstanceStorageType")]
pub db_instance_storage_type: Option<String>,
/// 实例类型。返回值:
///
/// * **Primary**:主实例。
/// * **Readonly**:只读实例。
/// * **Guard**:灾备实例。
/// * **Temp**:临时实例。
#[serde(rename = "DBInstanceType")]
pub db_instance_type: Option<String>,
/// 一个实例下可创建最大数据库数量。
#[serde(rename = "DBMaxQuantity")]
pub db_max_quantity: Option<i32>,
/// 专属集群ID。
#[serde(rename = "DedicatedHostGroupId")]
pub dedicated_host_group_id: Option<String>,
/// 是否已开启释放保护功能。返回值:
/// * **true**:已开启。
/// * **false**:未开启。
#[serde(rename = "DeletionProtection")]
pub deletion_protection: Option<bool>,
/// 灾备源实例信息。
#[serde(rename = "DisasterRecoveryInfo")]
pub disaster_recovery_info: Option<String>,
/// 当前实例的所有灾备实例。
#[serde(rename = "DisasterRecoveryInstances")]
pub disaster_recovery_instances: Option<String>,
/// 数据库类型。返回值:
///
/// - **MySQL**
/// - **PostgreSQL**
/// - **SQLServer**
/// - **MariaDB**
#[serde(rename = "Engine")]
pub engine: Option<String>,
/// 数据库版本。
#[serde(rename = "EngineVersion")]
pub engine_version: Option<String>,
/// 到期时间。格式为<i>yyyy-MM-dd</i>T<i>HH:mm:ss</i>Z(UTC时间)。
///
/// >按量付费实例无到期时间。
#[serde(rename = "ExpireTime")]
pub expire_time: Option<String>,
/// 扩展信息。
#[serde(rename = "Extra")]
pub extra: Option<ItemExtra>,
/// 专属集群MySQL通用版实例所属的组名。
#[serde(rename = "GeneralGroupName")]
pub general_group_name: Option<String>,
/// 该实例如果挂载着灾备实例,即为灾备实例的ID。
#[serde(rename = "GuardDBInstanceId")]
pub guard_db_instance_id: Option<String>,
/// IP地址类型。当前仅支持**IPv4**。
#[serde(rename = "IPType")]
pub ip_type: Option<String>,
/// 增量数据来源的实例ID,例如灾备实例的增量数据来源是主实例。只读实例的增量数据来源是主实例,如果没有返回此参数则表示该实例是主实例。
#[serde(rename = "IncrementSourceDBInstanceId")]
pub increment_source_db_instance_id: Option<String>,
/// 实例的网络类型。返回值:
/// * **Classic**:经典网络。
/// * **VPC**:专有网络。
#[serde(rename = "InstanceNetworkType")]
pub instance_network_type: Option<String>,
/// 实例的架构类型。返回值:
///
/// - **x86**
/// - **arm**
#[serde(rename = "InstructionSetArch")]
pub instruction_set_arch: Option<String>,
/// 高性能云盘的[Buffer Pool Extension(BPE)](~~2527067~~)功能开关。返回值:
///
/// - **1**:开启
/// - **0**:不开启
#[serde(rename = "IoAccelerationEnabled")]
pub io_acceleration_enabled: Option<String>,
/// 当前实例支持的最新内核版本。
#[serde(rename = "LatestKernelVersion")]
pub latest_kernel_version: Option<String>,
/// 实例锁定模式。返回值:
/// * **Unlock**:正常。
/// * **ManualLock**:手动触发锁定。
/// * **LockByExpiration**:实例过期自动锁定。
/// * **LockByRestoration**:实例回滚前的自动锁定。
/// * **LockByDiskQuota**:实例空间满自动锁定。
/// * **LockReadInstanceByDiskQuota**:只读实例空间满自动锁定。
#[serde(rename = "LockMode")]
pub lock_mode: Option<String>,
/// 锁定原因。
#[serde(rename = "LockReason")]
pub lock_reason: Option<String>,
/// 实例可维护时间段,表示为UTC时间,+8小时后是控制台上显示到的可维护时间段。
#[serde(rename = "MaintainTime")]
pub maintain_time: Option<String>,
/// 主实例的ID。
///
/// > 如果没有返回此参数则表示该实例是主实例。
#[serde(rename = "MasterInstanceId")]
pub master_instance_id: Option<String>,
/// 主可用区ID。
#[serde(rename = "MasterZone")]
pub master_zone: Option<String>,
/// 最大并发连接数。
#[serde(rename = "MaxConnections")]
pub max_connections: Option<i32>,
/// 最大IO吞吐。单位:MB/s。
#[serde(rename = "MaxIOMBPS")]
pub max_iombps: Option<i32>,
/// 最大每秒IO请求次数。
#[serde(rename = "MaxIOPS")]
pub max_iops: Option<i32>,
/// 实例是否正在进行弹性变配。返回**true**表示当前正在进行弹性变配,若未进行,则不返回该参数值。
#[serde(rename = "MultipleTempUpgrade")]
pub multiple_temp_upgrade: Option<bool>,
/// PgBouncer开关。
/// > 仅PostgreSQL实例返回此参数,如果开启了PgBouncer,则此参数返回值为**true**。
#[serde(rename = "PGBouncerEnabled")]
pub pg_bouncer_enabled: Option<String>,
/// 实例付费方式。返回值:
///
/// * **Postpaid**:按量付费。
/// * **Prepaid**:包年包月。
/// * **SERVERLESS**:Serverless。
#[serde(rename = "PayType")]
pub pay_type: Option<String>,
/// 内网连接端口。
#[serde(rename = "Port")]
pub port: Option<String>,
/// 实例支持的代理类型。返回值:
///
/// * **0**:不支持开通代理。
/// * **1**:支持开通共享代理(多租户模式)。
/// * **2**:支持开通独享代理(单租户模式)。
#[serde(rename = "ProxyType")]
pub proxy_type: Option<i32>,
#[serde(rename = "ReadOnlyDBInstanceIds")]
pub read_only_db_instance_ids: Option<AttributeItemReadOnlyDbInstanceIds>,
/// 只读实例延迟复制时间,只读实例延迟**ReadonlyInstanceSQLDelayedTime**的时间后再同步主实例数据,单位:秒(s)。
#[serde(rename = "ReadonlyInstanceSQLDelayedTime")]
pub readonly_instance_sql_delayed_time: Option<String>,
/// 地域ID。
#[serde(rename = "RegionId")]
pub region_id: Option<String>,
/// 资源组ID。
#[serde(rename = "ResourceGroupId")]
pub resource_group_id: Option<String>,
/// IP白名单分组下的IP列表。
#[serde(rename = "SecurityIPList")]
pub security_ip_list: Option<String>,
/// 白名单模式。返回值:
/// * **normal**:通用模式。
/// * **safety**:高安全模式。
#[serde(rename = "SecurityIPMode")]
pub security_ip_mode: Option<String>,
/// RDS Serverless实例的相关设置。
#[serde(rename = "ServerlessConfig")]
pub serverless_config: Option<ItemServerlessConfig>,
#[serde(rename = "SlaveZones")]
pub slave_zones: Option<AttributeResponseItemsDbInstanceAttributeItemSlaveZones>,
/// 当前实例是否可以开放SA账号、AD域、主机账号等高权限功能。返回值:
/// * **Enable**:开放。
/// * **Disabled**:不开放。
#[serde(rename = "SuperPermissionMode")]
pub super_permission_mode: Option<String>,
/// 该实例如果挂载着临时实例,即为临时实例ID。
#[serde(rename = "TempDBInstanceId")]
pub temp_db_instance_id: Option<String>,
/// 实例临时升级结束时间。
///
/// > 按量付费实例无实例临时升级结束时间。
#[serde(rename = "TempUpgradeTimeEnd")]
pub temp_upgrade_time_end: Option<String>,
/// 实例临时升级开始时间。
///
/// > 按量付费实例无实例临时升级开始时间。
#[serde(rename = "TempUpgradeTimeStart")]
pub temp_upgrade_time_start: Option<String>,
/// 时区。
#[serde(rename = "TimeZone")]
pub time_zone: Option<String>,
/// 专属集群MySQL通用版实例的异常提示信息。
#[serde(rename = "Tips")]
pub tips: Option<String>,
/// 专属集群MySQL通用版实例的异常提示等级。返回值:
/// * **1**:正常。
/// * **2**:只读实例和主实例规格不对齐,可能影响可用性,请按需调整实例规格。
#[serde(rename = "TipsLevel")]
pub tips_level: Option<i32>,
/// 交换机ID。
#[serde(rename = "VSwitchId")]
pub v_switch_id: Option<String>,
/// 专有网络实例ID。
#[serde(rename = "VpcCloudInstanceId")]
pub vpc_cloud_instance_id: Option<String>,
/// VPC ID。
#[serde(rename = "VpcId")]
pub vpc_id: Option<String>,
/// 可用区ID。
#[serde(rename = "ZoneId")]
pub zone_id: Option<String>,
/// 内部参数,无需配置。
#[serde(rename = "kindCode")]
pub kind_code: Option<String>,
/// OptimizedWritesInfo包含两个字段:
///
/// - **optimized_writes**:当前实例是否开启了16K原子写。
///
/// - **init_optimized_writes**:实例能否开启16K原子写。部分实例因为init_optimized_writes为false不在控制台展示16K原子写开关。
#[serde(rename = "OptimizedWritesInfo")]
pub optimized_writes_info: Option<String>,
/// 存储压缩模式。
#[serde(rename = "CompressionMode")]
pub compression_mode: Option<String>,
/// 实例是否支持开启存储压缩。
#[serde(rename = "SupportCompression")]
pub support_compression: Option<bool>,
/// 存储压缩率。
#[serde(rename = "CompressionRatio")]
pub compression_ratio: Option<String>,
/// 备用参数,无需配置。
#[serde(rename = "BlueGreenDeploymentName")]
pub blue_green_deployment_name: Option<String>,
/// 备用参数,无需配置。
#[serde(rename = "GreenInstanceName")]
pub green_instance_name: Option<String>,
/// 备用参数,无需配置。
#[serde(rename = "BlueInstanceName")]
pub blue_instance_name: Option<String>,
/// 备用参数,无需配置。
#[serde(rename = "ComputeBurstEnabled")]
pub compute_burst_enabled: Option<bool>,
/// 备用参数,无需配置。
#[serde(rename = "ReadOnlyStatus")]
pub read_only_status: Option<String>,
/// [高性能云盘](~~2340501~~)的IO性能突发功能开关。取值:
/// * **true**:开启。
/// * **false**:关闭。
#[serde(rename = "BurstingEnabled")]
pub bursting_enabled: Option<bool>,
/// 实例是否属于[MySQL DuckDB分析实例](~~2950002~~)。返回值:
///
/// - **true**:是
/// - **false**:否
#[serde(rename = "IsAnalyticReadOnlyIns")]
pub is_analytic_read_only_ins: Option<bool>,
/// 向量支持状态
#[serde(rename = "VectorSupportStatus")]
pub vector_support_status: Option<SupportStatus>,
}
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct InstanceAttributeResponseItems {
/// 实例属性列表。
#[serde(rename = "DBInstanceAttribute")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub db_instance_attribute: Vec<AttributeResponseItemsDbInstanceAttribute>,
}
/// 网络连接详情。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct DataConnection {
/// 数据库连接地址。
#[serde(rename = "ConnectionString")]
pub connection_string: Option<String>,
/// 实例ID。
#[serde(rename = "DBInstanceName")]
pub db_instance_name: Option<String>,
/// 实例的网络连接地址类型。取值:
///
/// * **vpc**:内网连接地址。
/// * **public**:公网连接地址。
#[serde(rename = "NetType")]
pub net_type: Option<String>,
/// 可用区ID。
#[serde(rename = "ZoneId")]
pub zone_id: Option<String>,
}
/// 节点信息。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct DataNode {
/// 实例ID。
#[serde(rename = "DBInstanceName")]
pub db_instance_name: Option<String>,
/// 专属集群ID。
/// >非专属集群实例返回空。
#[serde(rename = "DedicatedHostGroupId")]
pub dedicated_host_group_id: Option<String>,
/// 专属集群内的主机ID。
/// >非专属集群实例返回空。
#[serde(rename = "DedicatedHostId")]
pub dedicated_host_id: Option<String>,
/// 实例的唯一标识。
/// >非专属集群实例返回**-1**。
#[serde(rename = "NodeId")]
pub node_id: Option<String>,
/// 节点类型。返回值:
/// * **Master**:主节点。
/// * **Slave**:备节点。
#[serde(rename = "Role")]
pub role: Option<String>,
/// 可用区ID。
#[serde(rename = "ZoneId")]
pub zone_id: Option<String>,
}
/// 拓扑结构详情。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct TopologyResponseData {
/// 实例的网络连接信息列表。
#[serde(rename = "Connections")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub connections: Vec<DataConnection>,
/// 实例ID。
#[serde(rename = "DBInstanceName")]
pub db_instance_name: Option<String>,
/// 节点列表。
#[serde(rename = "Nodes")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub nodes: Vec<DataNode>,
}
/// 只读实例详情。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct InstancesResponseItemsDbInstanceItemReadOnlyDbInstanceIdsReadOnlyDbInstanceId {
/// 只读实例ID。
#[serde(rename = "DBInstanceId")]
pub db_instance_id: Option<String>,
}
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct InstancesResponseItemsDbInstanceItemReadOnlyDbInstanceIds {
/// 主实例下如果有只读实例,该参数为只读实例的ID列表。
#[serde(rename = "ReadOnlyDBInstanceId")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub read_only_db_instance_id:
Vec<InstancesResponseItemsDbInstanceItemReadOnlyDbInstanceIdsReadOnlyDbInstanceId>,
}
/// 实例详情。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct InstancesResponseItemsDbInstance {
/// 弃用参数。
#[serde(rename = "BpeEnabled")]
pub bpe_enabled: Option<String>,
/// 是否已开启IO突发。返回值:
///
/// - **true**:已开启
/// - **false**:未开启
#[serde(rename = "BurstingEnabled")]
pub bursting_enabled: Option<bool>,
/// 实例系列。返回值:
/// * **Basic**:基础系列
/// * **HighAvailability**:高可用系列
/// * **Finance**:三节点企业系列
/// >仅在**InstanceLevel**参数为**1**时返回。
#[serde(rename = "Category")]
pub category: Option<String>,
/// 实例是否属于[MySQL DuckDB分析实例](~~2950002~~)。返回值:
///
/// - **true**:是
/// - **false**:否
#[serde(rename = "IsAnalyticReadOnlyIns")]
pub is_analytic_read_only_ins: Option<bool>,
/// 实例的访问模式。返回值:
///
/// * **Standard**:标准访问模式
/// * **Safe**:数据库代理模式
#[serde(rename = "ConnectionMode")]
pub connection_mode: Option<String>,
/// 实例的连接地址。
#[serde(rename = "ConnectionString")]
pub connection_string: Option<String>,
/// 创建时间。格式:<i>yyyy-MM-dd</i>T<i>HH:mm:ss</i>Z(UTC时间)。
#[serde(rename = "CreateTime")]
pub create_time: Option<String>,
/// 实例CPU数量。
/// > 仅在InstanceLevel参数为1时返回。
#[serde(rename = "DBInstanceCPU")]
pub db_instance_cpu: Option<String>,
/// 实例规格,详见[实例规格表](~~26312~~)。
#[serde(rename = "DBInstanceClass")]
pub db_instance_class: Option<String>,
/// 实例描述。
#[serde(rename = "DBInstanceDescription")]
pub db_instance_description: Option<String>,
/// 实例ID。
#[serde(rename = "DBInstanceId")]
pub db_instance_id: Option<String>,
/// 节点的内存大小。单位:MB。
/// > 仅在InstanceLevel参数为1时返回。
#[serde(rename = "DBInstanceMemory")]
pub db_instance_memory: Option<i32>,
/// 实例的网络连接类型。返回值:
///
/// * **Internet**:外网连接
/// * **Intranet**:内网连接
#[serde(rename = "DBInstanceNetType")]
pub db_instance_net_type: Option<String>,
/// 实例状态,详情请参见[实例状态表](~~26315~~)。
#[serde(rename = "DBInstanceStatus")]
pub db_instance_status: Option<String>,
/// 实例储存类型。
#[serde(rename = "DBInstanceStorageType")]
pub db_instance_storage_type: Option<String>,
/// 实例类型。返回值:
///
/// * **Primary**:主实例
/// * **Readonly**:只读实例
/// * **Guard**:灾备实例
/// * **Temp**:临时实例
#[serde(rename = "DBInstanceType")]
pub db_instance_type: Option<String>,
/// 专属集群ID。
#[serde(rename = "DedicatedHostGroupId")]
pub dedicated_host_group_id: Option<String>,
/// 专属集群名称。
#[serde(rename = "DedicatedHostGroupName")]
pub dedicated_host_group_name: Option<String>,
/// Log节点所在主机的ID。
#[serde(rename = "DedicatedHostIdForLog")]
pub dedicated_host_id_for_log: Option<String>,
/// Master节点所在主机的ID。
#[serde(rename = "DedicatedHostIdForMaster")]
pub dedicated_host_id_for_master: Option<String>,
/// Slave节点所在主机的ID。
#[serde(rename = "DedicatedHostIdForSlave")]
pub dedicated_host_id_for_slave: Option<String>,
/// Log节点所在主机的名称。
#[serde(rename = "DedicatedHostNameForLog")]
pub dedicated_host_name_for_log: Option<String>,
/// Master节点所在主机的名称。
#[serde(rename = "DedicatedHostNameForMaster")]
pub dedicated_host_name_for_master: Option<String>,
/// Slave节点所在主机的名称。
#[serde(rename = "DedicatedHostNameForSlave")]
pub dedicated_host_name_for_slave: Option<String>,
/// Log节点所在主机的可用区ID。
#[serde(rename = "DedicatedHostZoneIdForLog")]
pub dedicated_host_zone_id_for_log: Option<String>,
/// Master节点所在主机的可用区ID。
#[serde(rename = "DedicatedHostZoneIdForMaster")]
pub dedicated_host_zone_id_for_master: Option<String>,
/// Slave节点所在主机的可用区ID。
#[serde(rename = "DedicatedHostZoneIdForSlave")]
pub dedicated_host_zone_id_for_slave: Option<String>,
/// 是否已开启释放保护功能。返回值:
///
/// * **true**:已开启
/// * **false**:未开启
#[serde(rename = "DeletionProtection")]
pub deletion_protection: Option<bool>,
/// 销毁时间。格式:<i>yyyy-MM-dd</i>T<i>HH:mm:ss</i>Z(UTC时间)。
#[serde(rename = "DestroyTime")]
pub destroy_time: Option<String>,
/// 数据库类型。
#[serde(rename = "Engine")]
pub engine: Option<String>,
/// 数据库版本。
#[serde(rename = "EngineVersion")]
pub engine_version: Option<String>,
/// 到期时间。格式:<i>yyyy-MM-dd</i>T<i>HH:mm:ss</i>Z(UTC时间)。
/// >按量付费实例无到期时间。
#[serde(rename = "ExpireTime")]
pub expire_time: Option<String>,
/// 专属集群MySQL通用版实例所属的组名。
#[serde(rename = "GeneralGroupName")]
pub general_group_name: Option<String>,
/// 主实例如果有灾备实例,该参数即为灾备实例的ID。
#[serde(rename = "GuardDBInstanceId")]
pub guard_db_instance_id: Option<String>,
/// 实例的网络类型。返回值:
///
/// * **Classic**:经典网络
/// * **VPC**:VPC网络
#[serde(rename = "InstanceNetworkType")]
pub instance_network_type: Option<String>,
/// 是否开启IO加速。返回值:
///
/// - 1:已开启
/// - 0:未开启
#[serde(rename = "IoAccelerationEnabled")]
pub io_acceleration_enabled: Option<String>,
/// 实例的锁定状态。返回值:
///
/// * **Unlock**:正常。
/// * **ManualLock**:手动触发锁定。
/// * **LockByExpiration**:实例过期自动锁定。
/// * **LockByRestoration**:实例回滚前自动锁定。
/// * **LockByDiskQuota**:实例空间满自动锁定。
/// * **Released**:实例已释放。此时实例无法进行解锁,只能使用备份数据重新创建新实例,重建时间较长,请耐心等待。
#[serde(rename = "LockMode")]
pub lock_mode: Option<String>,
/// 实例被锁定的原因。
#[serde(rename = "LockReason")]
pub lock_reason: Option<String>,
/// 主实例的ID,如果没有返回此参数(即为null)则表示该实例是主实例。
#[serde(rename = "MasterInstanceId")]
pub master_instance_id: Option<String>,
/// 是否是组合可用区。返回值:
/// - **true**
/// - **false**
/// >组合可用区即带有MAZ字样的可用区。例如:`cn-hangzhou-MAZ10(h,i)`。
#[serde(rename = "MutriORsignle")]
pub mutri_o_rsignle: Option<bool>,
/// 实例的付费类型。返回值:
///
/// * **Postpaid**:按量付费
/// * **Prepaid**:包年包月
#[serde(rename = "PayType")]
pub pay_type: Option<String>,
#[serde(rename = "ReadOnlyDBInstanceIds")]
pub read_only_db_instance_ids:
Option<InstancesResponseItemsDbInstanceItemReadOnlyDbInstanceIds>,
/// 地域ID。
#[serde(rename = "RegionId")]
pub region_id: Option<String>,
/// 资源组ID。
#[serde(rename = "ResourceGroupId")]
pub resource_group_id: Option<String>,
/// 当前专属集群MySQL通用版实例是否支持高可用权重切换。返回值:
/// * **100**:支持切换。
/// * **0**:不支持切换。
#[serde(rename = "SwitchWeight")]
pub switch_weight: Option<i32>,
/// 主实例如果有临时实例,该参数即为临时实例的ID。
#[serde(rename = "TempDBInstanceId")]
pub temp_db_instance_id: Option<String>,
/// 专属集群MySQL通用版实例的异常提示信息。
#[serde(rename = "Tips")]
pub tips: Option<String>,
/// 专属集群MySQL通用版实例的异常提示等级。返回值:
/// * **1**:正常。
/// * **2**:只读实例和主实例规格不对齐,可能影响可用性,请按需调整实例规格。
#[serde(rename = "TipsLevel")]
pub tips_level: Option<i32>,
/// 交换机ID。
#[serde(rename = "VSwitchId")]
pub v_switch_id: Option<String>,
/// 专有网络实例ID。
#[serde(rename = "VpcCloudInstanceId")]
pub vpc_cloud_instance_id: Option<String>,
/// VPC ID。
#[serde(rename = "VpcId")]
pub vpc_id: Option<String>,
/// VPC名称。
#[serde(rename = "VpcName")]
pub vpc_name: Option<String>,
/// 可用区ID。
#[serde(rename = "ZoneId")]
pub zone_id: Option<String>,
/// 备用参数,无需配置。
#[serde(rename = "BlueGreenDeploymentName")]
pub blue_green_deployment_name: Option<String>,
/// 备用参数,无需配置。
#[serde(rename = "BlueInstanceName")]
pub blue_instance_name: Option<String>,
/// 备用参数,无需配置。
#[serde(rename = "GreenInstanceName")]
pub green_instance_name: Option<String>,
/// 实例是否自动续费。返回值:
/// - **true**:自动续费。
/// - **false**:不自动续费。
///
/// > 仅当PayType取值为Prepaid(包年包月)时,此参数有返回值。
#[serde(rename = "AutoRenewal")]
pub auto_renewal: Option<bool>,
/// 预留参数。
#[serde(rename = "ColdDataEnabled")]
pub cold_data_enabled: Option<bool>,
#[serde(rename = "IsAnalyticIns")]
pub is_analytic_ins: Option<String>,
}
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct InstancesResponseItems {
/// 实例信息列表。
#[serde(rename = "DBInstance")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub db_instance: Vec<InstancesResponseItemsDbInstance>,
}
/// 详情如下。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct ClassesResponseItem {
/// 实例规格代码。更多信息,请参见[主实例规格列表](~~26312~~)和[只读实例规格列表](~~145759~~)。
#[serde(rename = "ClassCode")]
pub class_code: Option<String>,
/// 实例规格族。更多信息,请参见[实例规格族](~~57184~~)。
#[serde(rename = "ClassGroup")]
pub class_group: Option<String>,
/// 实例规格对应的CPU核数。单位:个。
#[serde(rename = "Cpu")]
pub cpu: Option<String>,
/// 安全增强型实例规格加密内存大小。单位:GB。
#[serde(rename = "EncryptedMemory")]
pub encrypted_memory: Option<String>,
/// 实例规格所属架构类型,返回值如下:
///
/// - 如果是实例为**x86**架构,默认该参数返回值为空。
/// - 如果是实例为**arm**架构,则返回**arm**。
#[serde(rename = "InstructionSetArch")]
pub instruction_set_arch: Option<String>,
/// 实例规格对应的最大连接数。单位:个。
#[serde(rename = "MaxConnections")]
pub max_connections: Option<String>,
/// 实例规格对应的最大IO带宽。单位:Mbps。
#[serde(rename = "MaxIOMBPS")]
pub max_iombps: Option<String>,
/// 实例规格对应的最大IOPS。单位:次/秒。
#[serde(rename = "MaxIOPS")]
pub max_iops: Option<String>,
/// 实例规格对应的内存容量。单位:GB。
#[serde(rename = "MemoryClass")]
pub memory_class: Option<String>,
/// 实例规格对应的价格。
///
/// <props="china">
/// * 单位:分(人民币)。
/// </props>
/// <props="intl">
/// * 单位:分(美元)。
/// </props>
///
/// > * **CommodityCode**参数中传入按量付费商品码时,本参数展示每小时的价格。
/// > * **CommodityCode**参数中传入包年包月商品码时,本参数展示每月的价格。
#[serde(rename = "ReferencePrice")]
pub reference_price: Option<String>,
/// 实例系列,取值:
/// * 常规实例
/// * **Basic**:基础系列。
/// * **HighAvailability**:高可用系列。
/// * **cluster**:MySQL或PostgreSQL集群系列。
/// * **AlwaysOn**:SQL Server集群系列。
/// * **Finance**:三节点企业系列。
/// * Serverless实例
/// * **serverless_basic**:Serverless基础系列。(仅适用MySQL和PostgreSQL)
/// * **serverless_standard**:Serverless高可用系列。(仅适用MySQL和PostgreSQL)
/// * **serverless_ha**:SQL Server Serverless高可用系列。
#[serde(rename = "category")]
pub category: Option<String>,
/// 实例存储类型
#[serde(rename = "storageType")]
pub storage_type: Option<String>,
}
/// 实例详情。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct ExpireTime {
/// 实例备注。
#[serde(rename = "DBInstanceDescription")]
pub db_instance_description: Option<String>,
/// 实例ID。
#[serde(rename = "DBInstanceId")]
pub db_instance_id: Option<String>,
/// 实例状态。详情请参见[实例状态表](~~26315~~)。
#[serde(rename = "DBInstanceStatus")]
pub db_instance_status: Option<String>,
/// 实例到期时间。<i>yyyy-MM-dd</i>T<i>HH:mm:ss</i>Z(UTC时间)。
/// > 按量付费实例无到期时间。
#[serde(rename = "ExpireTime")]
pub expire_time: Option<String>,
/// 实例锁定模式。取值:
///
/// - **Unlock**:正常
/// - **ManualLock**:手动触发锁定
/// - **LockByExpiration**:实例过期自动锁定
/// - **LockByRestoration**:实例回滚前的自动锁定
/// - **LockByDiskQuota**:实例空间满自动锁定
/// - **LockReadInstanceByDiskQuota**:只读实例空间满自动锁定
#[serde(rename = "LockMode")]
pub lock_mode: Option<String>,
/// 实例付费方式。取值:
///
/// - **Postpaid**:按量付费
/// - **Prepaid**:包年包月
#[serde(rename = "PayType")]
pub pay_type: Option<String>,
}
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct TimeResponseItems {
/// 实例信息列表。
#[serde(rename = "DBInstanceExpireTime")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub db_instance_expire_time: Vec<ExpireTime>,
}
/// 地域和可用区详情。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct RegionsResponseRegionsRdsRegion {
/// 地域名称。根据**AcceptLanguage**参数的值返回不同的语言。以cn-hangzhou地域为例的返回示例如下:
/// * **AcceptLanguage**为**zh-CN**:华东1(杭州)
/// * **AcceptLanguage**为**en-US**:China (Hangzhou)
#[serde(rename = "LocalName")]
pub local_name: Option<String>,
/// 地域对应的服务接入地址(Endpoint)。更多信息,请参见[服务接入点](~~610370~~)。
#[serde(rename = "RegionEndpoint")]
pub region_endpoint: Option<String>,
/// 地域ID。
#[serde(rename = "RegionId")]
pub region_id: Option<String>,
/// 可用区ID。
#[serde(rename = "ZoneId")]
pub zone_id: Option<String>,
/// 可用区名称。根据**AcceptLanguage**参数的值返回不同的语言。以cn-hangzhou-j可用区为例的返回示例如下:
/// * **AcceptLanguage**为**zh-CN**:杭州 可用区J
/// * **AcceptLanguage**为**en-US**:Hangzhou Zone J
#[serde(rename = "ZoneName")]
pub zone_name: Option<String>,
}
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct RegionsResponseRegions {
/// 可选的地域和可用区列表。
#[serde(rename = "RDSRegion")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub rds_region: Vec<RegionsResponseRegionsRdsRegion>,
}
/// 列表详情如下。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct InstancePerformance {
/// 实例的当前CPU使用率。单位:%。
#[serde(rename = "CPUUsage")]
pub cpu_usage: Option<String>,
/// 实例的名称。
#[serde(rename = "DBInstanceDescription")]
pub db_instance_description: Option<String>,
/// 实例ID。
#[serde(rename = "DBInstanceId")]
pub db_instance_id: Option<String>,
/// 实例的当前磁盘使用率。单位:%。
#[serde(rename = "DiskUsage")]
pub disk_usage: Option<String>,
/// 实例的当前IOPS使用量。单位:%。
#[serde(rename = "IOPSUsage")]
pub iops_usage: Option<String>,
/// 会话连接数。
#[serde(rename = "SessionUsage")]
pub session_usage: Option<String>,
}
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct PerformanceResponseItems {
/// 返回信息列表。
#[serde(rename = "DBInstancePerformance")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub db_instance_performance: Vec<InstancePerformance>,
}
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct CloneResponseItemsDbInstanceItemReadOnlyDbInstanceIdsReadOnlyDbInstanceId {
/// 只读实例ID。
#[serde(rename = "DBInstanceId")]
pub db_instance_id: Option<String>,
}
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct CloneResponseItemsDbInstanceItemReadOnlyDbInstanceIds {
/// 主实例下挂载的只读实例ID列表。
#[serde(rename = "ReadOnlyDBInstanceId")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub read_only_db_instance_id:
Vec<CloneResponseItemsDbInstanceItemReadOnlyDbInstanceIdsReadOnlyDbInstanceId>,
}
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct CloneResponseItemsDbInstance {
/// 实例系列,返回值:
/// - **Basic**:基础系列
/// - **HighAvailability**:高可用版
/// - **AlwaysOn**:SQL Server集群系列
/// - **cluster**:MySQL集群系列
/// - **Finance**:三节点企业系列
#[serde(rename = "Category")]
pub category: Option<String>,
/// 实例的访问模式,返回值:
///
/// - **Standard**:标准访问模式
/// - **Safe**:数据库代理模式
#[serde(rename = "ConnectionMode")]
pub connection_mode: Option<String>,
/// 实例创建时间。格式:<i>yyyy-MM-dd</i>T<i>HH:mm:ss</i>Z(UTC时间)。
#[serde(rename = "CreateTime")]
pub create_time: Option<String>,
/// 实例规格。详情请参见[实例规格表](~~26312~~)。
#[serde(rename = "DBInstanceClass")]
pub db_instance_class: Option<String>,
/// 实例名称,长度为2~256个字符。以中文、英文字母开头,可以包含数字、中文、英文、下划线(_)、短横线(-)。
/// > 不能以 http:// 和 https:// 开头。
#[serde(rename = "DBInstanceDescription")]
pub db_instance_description: Option<String>,
/// 实例ID。
#[serde(rename = "DBInstanceId")]
pub db_instance_id: Option<String>,
/// 实例的网络连接类型。返回值:
///
/// - **Internet**:公网连接
/// - **Intranet**:内网连接
#[serde(rename = "DBInstanceNetType")]
pub db_instance_net_type: Option<String>,
/// 实例状态。详情请参见[实例状态表](~~26315~~)。
#[serde(rename = "DBInstanceStatus")]
pub db_instance_status: Option<String>,
/// 实例储存类型,返回值:
/// - **local_ssd/ephemeral_ssd**:本地SSD盘
/// - **cloud_ssd**:SSD云盘
/// - **cloud_essd**:ESSD云盘
/// - **general_essd**:通用云盘
#[serde(rename = "DBInstanceStorageType")]
pub db_instance_storage_type: Option<String>,
/// 实例类型,返回值:
///
/// - **Primary**:主实例
/// - **Readonly**:只读实例
/// - **Guard**:灾备实例
/// - **Temp**:临时实例
#[serde(rename = "DBInstanceType")]
pub db_instance_type: Option<String>,
/// 实例销毁时间。格式:<i>yyyy-MM-dd</i>T<i>HH:mm:ss</i>Z(UTC时间)。
#[serde(rename = "DestroyTime")]
pub destroy_time: Option<String>,
/// 数据库类型,返回值:
/// - MySQL
/// - SQLServer
/// - PostgreSQL
/// - MariaDB
#[serde(rename = "Engine")]
pub engine: Option<String>,
/// 数据库版本。
#[serde(rename = "EngineVersion")]
pub engine_version: Option<String>,
/// 实例过期时间。格式:<i>yyyy-MM-dd</i>T<i>HH:mm:ss</i>Z(UTC时间)。
#[serde(rename = "ExpireTime")]
pub expire_time: Option<String>,
/// 主实例如果有灾备实例,该参数即为灾备实例的ID。
#[serde(rename = "GuardDBInstanceId")]
pub guard_db_instance_id: Option<String>,
/// 实例角色ID。
#[serde(rename = "InsId")]
pub ins_id: Option<i32>,
/// 实例的网络类型,目前仅支持专有网络**VPC**,经典网络已下线。
#[serde(rename = "InstanceNetworkType")]
pub instance_network_type: Option<String>,
/// 实例锁定状态,返回值:
///
/// - **Unlock**:正常,没有锁定。
/// - **ManualLock**:手动触发锁定。
/// - **LockByExpiration**:实例过期自动锁定。
/// - **LockByRestoration**:实例回滚前的自动锁定。
/// - **LockByDiskQuota**:实例空间满自动锁定,不可访问实例。
#[serde(rename = "LockMode")]
pub lock_mode: Option<String>,
/// 实例被锁定的原因。
#[serde(rename = "LockReason")]
pub lock_reason: Option<String>,
/// 主实例的ID,如果没有返回此参数(即为null)则表示该实例是主实例。
#[serde(rename = "MasterInstanceId")]
pub master_instance_id: Option<String>,
/// 是否是多可用区,返回值:
/// - **true**:是
/// - **false**:否
#[serde(rename = "MutriORsignle")]
pub mutri_o_rsignle: Option<bool>,
/// 实例的付费类型。返回值:
///
/// - **Postpaid**:后付费(按量付费)
/// - **Prepaid**:预付费(包年包月)
#[serde(rename = "PayType")]
pub pay_type: Option<String>,
#[serde(rename = "ReadOnlyDBInstanceIds")]
pub read_only_db_instance_ids: Option<CloneResponseItemsDbInstanceItemReadOnlyDbInstanceIds>,
/// 地域ID。
#[serde(rename = "RegionId")]
pub region_id: Option<String>,
/// 无。
#[serde(rename = "ReplicateId")]
pub replicate_id: Option<String>,
/// 资源组ID。
#[serde(rename = "ResourceGroupId")]
pub resource_group_id: Option<String>,
/// 临时实例ID。
#[serde(rename = "TempDBInstanceId")]
pub temp_db_instance_id: Option<String>,
/// 交换机ID。
#[serde(rename = "VSwitchId")]
pub v_switch_id: Option<String>,
/// VPC中的实例ID。
#[serde(rename = "VpcCloudInstanceId")]
pub vpc_cloud_instance_id: Option<String>,
/// 专有网络ID。
#[serde(rename = "VpcId")]
pub vpc_id: Option<String>,
/// 可用区ID。
#[serde(rename = "ZoneId")]
pub zone_id: Option<String>,
}
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct CloneResponseItems {
/// 由实例信息组成的数组。
#[serde(rename = "DBInstance")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub db_instance: Vec<CloneResponseItemsDbInstance>,
}
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct CsvResponseItemsDbInstanceAttributeItemSlaveZones {
/// 废弃参数,无需配置。
#[serde(rename = "slaveRegion")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub slave_region: Vec<String>,
}
/// 数据集详情如下。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct CsvResponseItemsDbInstanceAttribute {
/// 账号数上限。
#[serde(rename = "AccountMaxQuantity")]
pub account_max_quantity: Option<i32>,
/// 账号类型。
#[serde(rename = "AccountType")]
pub account_type: Option<String>,
/// 查询实例当前可用性状态,单位:百分比(%)。
#[serde(rename = "AvailabilityValue")]
pub availability_value: Option<String>,
/// 类别。
#[serde(rename = "Category")]
pub category: Option<String>,
/// 实例访问模式,返回值如下:
///
/// - **Performance**:标准访问模式。
/// - **Safty**:高安全访问模式。
#[serde(rename = "ConnectionMode")]
pub connection_mode: Option<String>,
/// 内网连接地址。
#[serde(rename = "ConnectionString")]
pub connection_string: Option<String>,
/// 创建时间。
#[serde(rename = "CreationTime")]
pub creation_time: Option<String>,
/// 实例CPU数量。
#[serde(rename = "DBInstanceCPU")]
pub db_instance_cpu: Option<String>,
/// 实例规格.
#[serde(rename = "DBInstanceClass")]
pub db_instance_class: Option<String>,
/// 实例规格族。
#[serde(rename = "DBInstanceClassType")]
pub db_instance_class_type: Option<String>,
/// 实例描述。
#[serde(rename = "DBInstanceDescription")]
pub db_instance_description: Option<String>,
/// 实例ID。
#[serde(rename = "DBInstanceId")]
pub db_instance_id: Option<String>,
/// 实例内存,单位:M。
#[serde(rename = "DBInstanceMemory")]
pub db_instance_memory: Option<i64>,
/// 实例的网络类型,返回值如下:
///
/// - **Internet**:外网。
/// - **Intranet**:内网。
#[serde(rename = "DBInstanceNetType")]
pub db_instance_net_type: Option<String>,
/// 实例状态。
#[serde(rename = "DBInstanceStatus")]
pub db_instance_status: Option<String>,
/// 实例存储空间,单位:GB。
#[serde(rename = "DBInstanceStorage")]
pub db_instance_storage: Option<i32>,
/// 实例类型,返回值如下:
///
/// - **Primary**:主实例。
/// - **ReadOnly**:只读实例。
/// - **Guard**:灾备实例。
/// - **Temp**:临时实例。
#[serde(rename = "DBInstanceType")]
pub db_instance_type: Option<String>,
/// 实例下可创建最大数据库数量。
#[serde(rename = "DBMaxQuantity")]
pub db_max_quantity: Option<i32>,
/// 数据库类型。
#[serde(rename = "Engine")]
pub engine: Option<String>,
/// 引擎版本。
#[serde(rename = "EngineVersion")]
pub engine_version: Option<String>,
/// 到期时间。
#[serde(rename = "ExpireTime")]
pub expire_time: Option<String>,
/// 废弃参数,无需配置。
#[serde(rename = "ExportKey")]
pub export_key: Option<String>,
/// 该实例如果挂载着灾备实例,即为灾备实例的ID。
#[serde(rename = "GuardDBInstanceId")]
pub guard_db_instance_id: Option<String>,
/// 增量数据来源的实例ID,如灾备实例的增量数据来源是主实例。只读实例的增量数据来源是主实例,如果没有返回此参数则表示该实例是主实例。
#[serde(rename = "IncrementSourceDBInstanceId")]
pub increment_source_db_instance_id: Option<String>,
/// 网络类型。
#[serde(rename = "InstanceNetworkType")]
pub instance_network_type: Option<String>,
/// 实例锁定模式。
#[serde(rename = "LockMode")]
pub lock_mode: Option<String>,
/// 锁定原因。
#[serde(rename = "LockReason")]
pub lock_reason: Option<String>,
/// 实例可维护时间段,是UTC时间,+8小时才是控制台上显示的可维护时间段。
#[serde(rename = "MaintainTime")]
pub maintain_time: Option<String>,
/// 主实例的ID。
#[serde(rename = "MasterInstanceId")]
pub master_instance_id: Option<String>,
/// 最大并发连接数。
#[serde(rename = "MaxConnections")]
pub max_connections: Option<i32>,
/// 最大每秒IO请求次数。
#[serde(rename = "MaxIOPS")]
pub max_iops: Option<i32>,
/// 实例付费方式。
#[serde(rename = "PayType")]
pub pay_type: Option<String>,
/// 内网连接端口。
#[serde(rename = "Port")]
pub port: Option<String>,
/// 只读实例对主实例的延迟时间,对只读实例有效。
#[serde(rename = "ReadDelayTime")]
pub read_delay_time: Option<String>,
/// 地域ID。
#[serde(rename = "RegionId")]
pub region_id: Option<String>,
/// IP白名单。
#[serde(rename = "SecurityIPList")]
pub security_ip_list: Option<String>,
#[serde(rename = "SlaveZones")]
pub slave_zones: Option<CsvResponseItemsDbInstanceAttributeItemSlaveZones>,
/// 无。
#[serde(rename = "SupportUpgradeAccountType")]
pub support_upgrade_account_type: Option<String>,
/// 标签。
#[serde(rename = "Tags")]
pub tags: Option<String>,
/// 该实例如果挂载着临时实例,即为临时实例ID。
#[serde(rename = "TempDBInstanceId")]
pub temp_db_instance_id: Option<String>,
/// 交换机ID。
#[serde(rename = "VSwitchId")]
pub v_switch_id: Option<String>,
/// VPC ID。
#[serde(rename = "VpcId")]
pub vpc_id: Option<String>,
/// 可用区ID。
#[serde(rename = "ZoneId")]
pub zone_id: Option<String>,
#[serde(rename = "DBInstanceStorageType")]
pub db_instance_storage_type: Option<String>,
}
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct CsvResponseItems {
/// 由**DBInstanceAttribute**组成的数据集。
#[serde(rename = "DBInstanceAttribute")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub db_instance_attribute: Vec<CsvResponseItemsDbInstanceAttribute>,
}
/// 大版本升级检查报告详情。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct TaskResponseItem {
/// 目标实例版本。
#[serde(rename = "TargetMajorVersion")]
pub target_major_version: Option<String>,
/// 检查报告到期时间。
///
/// 以Unix时间戳表示。单位:毫秒。
#[serde(rename = "EffectiveTime")]
pub effective_time: Option<String>,
/// 当前实例版本。
#[serde(rename = "SourceMajorVersion")]
pub source_major_version: Option<String>,
/// 大版本升级检查的检查结果。
///
/// 取值范围:
/// - Success:成功
/// - Fail:失败
///
/// > 当检查结果为**Fail**时,请排查**Detail**的参数取值,处理报错后再试,常见报错及处理方法,请参见[解读RDS PostgreSQL大版本升级检查报告](~~218391~~)。
#[serde(rename = "Result")]
pub result: Option<String>,
/// 大版本升级前检查任务ID。
#[serde(rename = "TaskId")]
pub task_id: Option<i32>,
/// 大版本升级检查报告内容。
#[serde(rename = "Detail")]
pub detail: Option<String>,
/// 检查时间。
///
/// 以Unix时间戳表示。单位:毫秒。
#[serde(rename = "CheckTime")]
pub check_time: Option<String>,
/// 升级时,推荐的最小磁盘容量。单位:GB。
///
/// > 仅RDS PostgreSQL实例会返回该参数。
#[serde(rename = "RecommendDiskSize")]
pub recommend_disk_size: Option<i32>,
/// 升级时,推荐的最小内存。单位:GB。
///
/// > 仅RDS PostgreSQL实例会返回该参数。
#[serde(rename = "RecommendLeastMemSize")]
pub recommend_least_mem_size: Option<i32>,
/// 升级时,推荐内存。单位:GB。
///
/// 当实例的内存大于或等于推荐内存,将以最快的速度进行升级,以尽量减少实例的只读时间。
///
/// > 仅RDS PostgreSQL实例会返回该参数。
#[serde(rename = "RecommendMemSize")]
pub recommend_mem_size: Option<i32>,
#[serde(rename = "UpgradeMode")]
pub upgrade_mode: Option<String>,
}
/// 大版本升级任务详情。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct VersionTasksResponseItem {
/// 升级后的大版本号。返回值:
/// * **10.0**
/// * **11.0**
/// * **12.0**
/// * **13.0**
/// * **14.0**
/// * **15.0**
#[serde(rename = "TargetMajorVersion")]
pub target_major_version: Option<String>,
/// 展示任务最终是否成功。
/// * **Success**:成功。
/// * **Failed**:失败。
/// * **Running**:迁移中。
#[serde(rename = "Result")]
pub result: Option<String>,
/// 大版本升级结束时间。
///
/// 以Unix时间戳表示。单位:毫秒。
#[serde(rename = "EndTime")]
pub end_time: Option<String>,
/// 大版本升级开始时间。
///
/// 以Unix时间戳表示。单位:毫秒。
#[serde(rename = "StartTime")]
pub start_time: Option<String>,
/// 升级前原实例的版本号。
#[serde(rename = "SourceMajorVersion")]
pub source_major_version: Option<String>,
/// 升级模式。
///
/// 取值范围:
/// - **clone**:不割接
/// - **switch**:割接
#[serde(rename = "UpgradeMode")]
pub upgrade_mode: Option<String>,
/// 统计信息收集模式。
///
/// 取值范围:
/// - **After**:割接后升级。
/// - **Before**:割接前升级。
#[serde(rename = "CollectStatMode")]
pub collect_stat_mode: Option<String>,
/// 升级前原实例的ID。
#[serde(rename = "SourceInsName")]
pub source_ins_name: Option<String>,
/// 任务ID。
#[serde(rename = "TaskId")]
pub task_id: Option<i32>,
/// 升级后新实例的ID。
#[serde(rename = "TargetInsName")]
pub target_ins_name: Option<String>,
/// 业务从原实例切换至新实例的时间。
///
/// 以Unix时间戳表示。单位:毫秒。
#[serde(rename = "SwitchTime")]
pub switch_time: Option<String>,
/// 任务的详细信息。
#[serde(rename = "Detail")]
pub detail: Option<String>,
/// 业务从原实例切换至新实例的结束时间。
///
/// 以Unix时间戳表示。单位:毫秒。
#[serde(rename = "SwitchEndTime")]
pub switch_end_time: Option<String>,
/// 逻辑复制延迟大小,单位:MB。
///
/// > 仅用于**零停机**大版本升级。
#[serde(rename = "totalLogicRepLatencyMB")]
pub total_logic_rep_latency_mb: Option<i32>,
/// 逻辑复制延迟预估同步时间,单位:秒。
/// > 仅用于**零停机**大版本升级。
#[serde(rename = "totalLogicRepDelayTime")]
pub total_logic_rep_delay_time: Option<i32>,
/// 零停机大版本升级的高版本**临时内网连接地址**,格式为`****.pg.rds.aliyuncs.com`。
/// > 仅用于**零停机**大版本升级。
#[serde(rename = "zeroDownTimeConnectionString")]
pub zero_down_time_connection_string: Option<String>,
/// 高版本实例端口,与源实例端口保持一致。
/// > 仅用于**零停机**大版本升级。
#[serde(rename = "zeroDownTimePort")]
pub zero_down_time_port: Option<i32>,
/// 是否割接。
///
/// - **true**:是。
/// - **false**:否。
#[serde(rename = "cutOver")]
pub cut_over: Option<bool>,
}
/// 实例权重信息详情。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct InfoResponseDBInstanceNetInfosDbInstanceNetInfoItemDbInstanceWeightsDbInstanceWeight {
/// 实例可用状态,取值:
/// * **Unavailable**:不可用。
/// * **Available**:可用。
#[serde(rename = "Availability")]
pub availability: Option<String>,
/// 实例ID。
#[serde(rename = "DBInstanceId")]
pub db_instance_id: Option<String>,
/// 实例类型,取值:
/// * **Master**:主实例。
/// * **Readonly**:只读实例。
#[serde(rename = "DBInstanceType")]
pub db_instance_type: Option<String>,
/// 废弃参数。
#[serde(rename = "Role")]
pub role: Option<String>,
/// 实例当前权重。
#[serde(rename = "Weight")]
pub weight: Option<String>,
}
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct InfoResponseDBInstanceNetInfosDbInstanceNetInfoItemDbInstanceWeights {
/// 实例权重信息列表。
///
/// > 开通了读写分离连接地址的实例会返回该参数
#[serde(rename = "DBInstanceWeight")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub db_instance_weight:
Vec<InfoResponseDBInstanceNetInfosDbInstanceNetInfoItemDbInstanceWeightsDbInstanceWeight>,
}
/// IP白名单分组详情。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct InfoResponseDBInstanceNetInfosDbInstanceNetInfoItemSecurityIpGroupsSecurityIpGroup {
/// IP白名单分组名称。
#[serde(rename = "SecurityIPGroupName")]
pub security_ip_group_name: Option<String>,
/// 白名单IP。
#[serde(rename = "SecurityIPs")]
pub security_i_ps: Option<String>,
}
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct InfoResponseDBInstanceNetInfosDbInstanceNetInfoItemSecurityIpGroups {
/// 实例的IP白名单分组列表。
#[serde(rename = "securityIPGroup")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub security_ip_group:
Vec<InfoResponseDBInstanceNetInfosDbInstanceNetInfoItemSecurityIpGroupsSecurityIpGroup>,
}
/// 连接地址信息详情。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct InfoResponseDBInstanceNetInfosDbInstanceNetInfo {
/// Babelfish for RDS PostgreSQL TDS端口号。
/// > 该参数仅适用于RDS PostgreSQL实例,Babelfish for RDS PostgreSQL的更多介绍,请参见[Babelfish简介](~~428613~~)。
#[serde(rename = "BabelfishPort")]
pub babelfish_port: Option<String>,
/// 连接地址。
#[serde(rename = "ConnectionString")]
pub connection_string: Option<String>,
/// 连接地址类型,取值:
/// * **Normal**:普通连接地址。
/// * **ReadWriteSplitting**:读写分离连接地址。
#[serde(rename = "ConnectionStringType")]
pub connection_string_type: Option<String>,
#[serde(rename = "DBInstanceWeights")]
pub db_instance_weights:
Option<InfoResponseDBInstanceNetInfosDbInstanceNetInfoItemDbInstanceWeights>,
/// 读请求分配策略,只在读写分离连接地址返回该参数,取值:
/// * **Standard**:按规格权重自动分配。
/// * **Custom**:自定义分配权重。
#[serde(rename = "DistributionType")]
pub distribution_type: Option<String>,
/// 混访模式下,经典网络的剩余时间,单位:秒。
#[serde(rename = "ExpiredTime")]
pub expired_time: Option<String>,
/// IP地址。
#[serde(rename = "IPAddress")]
pub ip_address: Option<String>,
/// 网络类型。
/// * 经典网络类型取值:
/// * **Inner**:内网。
/// * **Public**:外网。
/// * VPC类型取值:
/// * **Private**:内网。
/// * **Public**:外网。
#[serde(rename = "IPType")]
pub ip_type: Option<String>,
/// 延迟阈值,只在读写分离连接地址返回该参数,单位:秒。
/// >超过该延迟阈值的只读实例不会被分配流量。
#[serde(rename = "MaxDelayTime")]
pub max_delay_time: Option<String>,
/// PgBouncer端口号。
/// > 仅当RDS PostgreSQL实例开启了PgBouncer时,返回此参数。
#[serde(rename = "PGBouncerPort")]
pub pg_bouncer_port: Option<String>,
/// 连接端口。
#[serde(rename = "Port")]
pub port: Option<String>,
#[serde(rename = "SecurityIPGroups")]
pub security_ip_groups:
Option<InfoResponseDBInstanceNetInfosDbInstanceNetInfoItemSecurityIpGroups>,
/// IP版本是否能够升级,取值:
/// - **Enable**:可以升级。
/// - **Disabled**:不可以升级。
/// >IPv4版本可以升级到IPv6版本。
#[serde(rename = "Upgradeable")]
pub upgradeable: Option<String>,
/// VPC ID。
#[serde(rename = "VPCId")]
pub vpc_id: Option<String>,
/// 交换机ID。
#[serde(rename = "VSwitchId")]
pub v_switch_id: Option<String>,
}
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct InfoResponseDBInstanceNetInfos {
/// 实例的连接地址信息列表。
#[serde(rename = "DBInstanceNetInfo")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub db_instance_net_info: Vec<InfoResponseDBInstanceNetInfosDbInstanceNetInfo>,
}
/// 交换机信息详情。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct VSwitch {
/// 交换机中可用的IP地址数量。
#[serde(rename = "AvailableIpAddressCount")]
pub available_ip_address_count: String,
/// 交换机网段。
#[serde(rename = "CidrBlock")]
pub cidr_block: Option<String>,
/// 交换机的描述信息。
#[serde(rename = "Description")]
pub description: Option<String>,
/// 是否是默认交换机。
/// * **true**:是
/// * **false**:否
#[serde(rename = "IsDefault")]
pub is_default: Option<bool>,
/// 交换机所属可用区ID。
#[serde(rename = "IzNo")]
pub iz_no: Option<String>,
/// 交换机状态。取值:
///
/// * **Pending**:配置中。
/// * **Available**:可用。
#[serde(rename = "Status")]
pub status: Option<String>,
/// 交换机ID。
#[serde(rename = "VSwitchId")]
pub v_switch_id: Option<String>,
/// 交换机名称。
#[serde(rename = "VSwitchName")]
pub v_switch_name: Option<String>,
}
/// 主备实例信息详情。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct NodeInfo {
/// 备实例执行日志完成数据同步的时间。格式:<i>yyyy-MM-dd</i>T<i>HH:mm:ss</i>Z(UTC时间)。
#[serde(rename = "DataSyncTime")]
pub data_sync_time: Option<String>,
/// 备实例收到主实例日志的时间。格式:<i>yyyy-MM-dd</i>T<i>HH:mm:ss</i>Z(UTC时间)。
#[serde(rename = "LogSyncTime")]
pub log_sync_time: Option<String>,
/// 实例的唯一标识。
#[serde(rename = "NodeId")]
pub node_id: Option<String>,
/// 节点类型,取值:
/// * **Master**:主节点
/// * **Slave**:备节点
#[serde(rename = "NodeType")]
pub node_type: Option<String>,
/// 地域ID。
#[serde(rename = "RegionId")]
pub region_id: Option<String>,
/// 同步状态,取值:
/// * **NotAvailable**:不可用,即发生故障。
/// * **Syncing**:同步中,切换可能会发生数据丢失。
/// * **Synchronized**:完成同步。
/// * **NotSupport**:引擎类型或者版本不涉及主备同步。
#[serde(rename = "SyncStatus")]
pub sync_status: Option<String>,
/// 可用区ID。
#[serde(rename = "ZoneId")]
pub zone_id: Option<String>,
}
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct InstanceInfos {
/// 主备实例信息列表。
#[serde(rename = "NodeInfo")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub node_info: Vec<NodeInfo>,
}
/// 事件详情。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct EventItem {
/// 事件执行人的用户ID。
#[serde(rename = "CallerUid")]
pub caller_uid: Option<i64>,
/// 事件ID。
#[serde(rename = "EventId")]
pub event_id: Option<i32>,
/// 事件名称。
#[serde(rename = "EventName")]
pub event_name: Option<String>,
/// 事件的请求参数或上下文参数。
#[serde(rename = "EventPayload")]
pub event_payload: Option<String>,
/// 事件操作的来源。
#[serde(rename = "EventReason")]
pub event_reason: Option<String>,
/// 事件的记录时间。会稍晚于事件的发生时间。
#[serde(rename = "EventRecordTime")]
pub event_record_time: Option<String>,
/// 事件发生时间。
#[serde(rename = "EventTime")]
pub event_time: Option<String>,
/// 事件类型。
#[serde(rename = "EventType")]
pub event_type: Option<String>,
/// 执行事件的用户类型。
#[serde(rename = "EventUserType")]
pub event_user_type: Option<String>,
/// 地域ID。
#[serde(rename = "RegionId")]
pub region_id: Option<String>,
/// 事件关联资源名称。当前仅有实例ID。
#[serde(rename = "ResourceName")]
pub resource_name: Option<String>,
/// 事件关联资源类型。当前仅有实例。
#[serde(rename = "ResourceType")]
pub resource_type: Option<String>,
}
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct EventItems {
/// 事件列表。
#[serde(rename = "EventItems")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub event_items: Vec<EventItem>,
}
/// 通知详情。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct ItemList {
/// 当前阿里云主账号的ID。
#[serde(rename = "AliUid")]
pub ali_uid: Option<i64>,
/// 通知是否已被接收,即是否已调用[ConfirmNotify](~~610444~~)接口将通知标记为已确认。返回值:
/// * **true**:是
/// * **false**:否
#[serde(rename = "ConfirmFlag")]
pub confirm_flag: Option<bool>,
/// 当前阿里云账号下通知接收人的UID,该UID调用了[ConfirmNotify](~~610444~~)接口将通知标记为已确认。
///
/// 返回**0**代表该通知被系统自动接收。
#[serde(rename = "Confirmor")]
pub confirmor: Option<i64>,
/// 通知创建时间。
#[serde(rename = "GmtCreated")]
pub gmt_created: Option<String>,
/// 通知修改时间。
#[serde(rename = "GmtModified")]
pub gmt_modified: Option<String>,
/// 通知ID。
#[serde(rename = "Id")]
pub id: Option<i64>,
/// 重复发送的通知被拦截的次数。
#[serde(rename = "IdempotentCount")]
pub idempotent_count: Option<String>,
/// 用于保证通知的幂等性,防止重复发送通知。
#[serde(rename = "IdempotentId")]
pub idempotent_id: Option<String>,
/// 通知的等级。返回值:
/// * **help**:帮助级别
/// * **success**:执行成功级别
/// * **warning**:警告级别
/// * **error**:执行失败级别
/// * **loading**:任务进行中
/// * **notice**:普通级别
#[serde(rename = "Level")]
pub level: Option<String>,
/// 通知模板中的元素,由JSON字符串组成。**TemplateName**不同,JSON中包含的参数不同。
/// * **TemplateName**为**RenewalRecommend**:
/// * **instanceName**:即将过期实例的ID。
/// * **reservedTime**:剩余天数。
/// * **TemplateName**为**InstanceCreateFailed**:
/// * **orderId**:购买实例的订单号。
/// * **reason**:实例创建失败的原因。
#[serde(rename = "NotifyElement")]
pub notify_element: Option<String>,
/// 通知模版。返回值:
/// * **RenewalRecommend**:续费建议
/// * **InstanceCreateFailed**:实例创建失败且退款
#[serde(rename = "TemplateName")]
pub template_name: Option<String>,
/// 通知类型。返回值:
/// * **Sell**:售卖通知
/// * **Operation**:运维通知
/// * **Promotion**:促销通知
#[serde(rename = "Type")]
pub r#type: Option<String>,
}
/// 返回字段列表。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct NotifyResponseData {
/// 通知列表。
#[serde(rename = "NotifyItemList")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub notify_item_list: Vec<ItemList>,
/// 页码。
#[serde(rename = "PageNumber")]
pub page_number: Option<i32>,
/// 每页记录数。
#[serde(rename = "PageSize")]
pub page_size: Option<i32>,
/// 总记录数。
#[serde(rename = "TotalRecordCount")]
pub total_record_count: Option<i32>,
}
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct ResourceSetting {
/// 结束的日期。
#[serde(rename = "EndDate")]
pub end_date: Option<String>,
/// 是否置顶。
/// - true:是
/// - false:否
#[serde(rename = "IsTop")]
pub is_top: Option<String>,
/// 通知栏文案。
#[serde(rename = "NoticeBarContent")]
pub notice_bar_content: Option<String>,
/// 弹框按钮文案。
#[serde(rename = "PoppedUpButtonText")]
pub popped_up_button_text: Option<String>,
/// 弹框按钮类型。
/// - BUY:新购
/// - RENEW:续费
/// - UPGRADE:升级
#[serde(rename = "PoppedUpButtonType")]
pub popped_up_button_type: Option<String>,
/// 弹框按钮链接。
#[serde(rename = "PoppedUpButtonUrl")]
pub popped_up_button_url: Option<String>,
/// 弹框文案。
#[serde(rename = "PoppedUpContent")]
pub popped_up_content: Option<String>,
/// 资源位。
#[serde(rename = "ResourceNiche")]
pub resource_niche: Option<String>,
/// 生效日期。
#[serde(rename = "StartDate")]
pub start_date: Option<String>,
}
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct ResourceSettings {
/// RDS实例资源的通知设置信息。
#[serde(rename = "RdsInstanceResourceSetting")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub rds_instance_resource_setting: Vec<ResourceSetting>,
}
/// AD域服务信息详情。
#[derive(Debug, Clone, Default, serde::Serialize)]
pub struct ConfigHbaItem {
/// 允许用户从哪个或哪些IP访问数据库,0.0.0.0/0表示允许用户从任意IP地址访问数据库。
#[serde(rename = "Address")]
pub address: String,
/// 数据库名。表示允许用户访问的数据库,all表示允许用户访问所有数据库。
///
/// 如果配置多个,可通过逗号(,)分隔。
#[serde(rename = "Database")]
pub database: String,
/// 掩码。如果**Address**为IP地址,可以通过此参数指定IP地址的掩码。
#[serde(rename = "Mask")]
#[serde(skip_serializing_if = "Option::is_none")]
pub mask: Option<String>,
/// 认证方法。支持:
/// - **trust**
/// - **reject**
/// - **scram-sha-256**
/// - **md5**
/// - **password**
/// - **gss**
/// - **sspi**
/// - **ldap**
/// - **radius**
/// - **cert**
/// - **pam**
#[serde(rename = "Method")]
pub method: String,
/// 认证方式对应的可选参数。本示例使用LDAP认证,需要配置。此参数的更多参数解释,请参见[Authentication Methods](https://www.postgresql.org/docs/11/auth-methods.html)。
#[serde(rename = "Option")]
#[serde(skip_serializing_if = "Option::is_none")]
pub option: Option<String>,
/// 表示该条记录的优先级,取值范围:0~10000,0优先级最高。
///
/// 此参数用于标识每条记录,新增记录时,不允许与已有记录重复。修改或删除时,需要与已有记录的PriorityId相同,用于匹配记录。
#[serde(rename = "PriorityId")]
pub priority_id: i32,
/// 连接类型。
///
/// 支持配置以下取值:
/// - **host**:该条记录验证TCP/IP连接,包括SSL连接和非SSL连接。
/// - **hostssl**:该条记录只验证通过SSL建立的TCP/IP连接。
/// - **hostnossl**:该条记录只验证通过非SSL建立的TCP/IP连接。
/// > 如果使用hostssl连接类型,需要打开SSL链路加密,具体请参见[SSL链路加密](~~229518~~)。
#[serde(rename = "Type")]
pub r#type: String,
/// 允许哪些用户访问数据库,填写实例的用户名。如果配置多个,可通过逗号(,)分隔。
#[serde(rename = "User")]
pub user: String,
}
impl crate::FlatSerialize for ConfigHbaItem {
fn flat_serialize<'a>(
&'a self,
name: &str,
params: &mut Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'a>)>,
) {
crate::FlatSerialize::flat_serialize(&self.address, &format!("{}.Address", name), params);
crate::FlatSerialize::flat_serialize(&self.database, &format!("{}.Database", name), params);
crate::FlatSerialize::flat_serialize(&self.mask, &format!("{}.Mask", name), params);
crate::FlatSerialize::flat_serialize(&self.method, &format!("{}.Method", name), params);
crate::FlatSerialize::flat_serialize(&self.option, &format!("{}.Option", name), params);
crate::FlatSerialize::flat_serialize(
&self.priority_id,
&format!("{}.PriorityId", name),
params,
);
crate::FlatSerialize::flat_serialize(&self.r#type, &format!("{}.Type", name), params);
crate::FlatSerialize::flat_serialize(&self.user, &format!("{}.User", name), params);
}
}
/// 账号拥有的数据库权限详情。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct DatabasePrivilege {
/// 账号的权限类型,返回值如下:
/// * **ReadWrite**:读写
/// * **ReadOnly**:只读
/// * **DDLOnly**:仅DDL
/// * **DMLOnly**:只DML
/// * **Custom**:自定义(可以通过SQL命令修改)
#[serde(rename = "AccountPrivilege")]
pub account_privilege: Option<String>,
/// 账号权限类型对应的具体权限。请参见[账号权限列表](~~146395~~)。
#[serde(rename = "AccountPrivilegeDetail")]
pub account_privilege_detail: Option<String>,
/// 数据库名称。
#[serde(rename = "DBName")]
pub db_name: Option<String>,
}
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct DatabasePrivileges {
/// 账号拥有的数据库权限列表。
#[serde(rename = "DatabasePrivilege")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub database_privilege: Vec<DatabasePrivilege>,
}
/// 账号详情如下。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct InstanceAccount {
/// 账号描述。
#[serde(rename = "AccountDescription")]
pub account_description: Option<String>,
/// 数据库账号名称。
#[serde(rename = "AccountName")]
pub account_name: Option<String>,
/// 账号状态,返回值如下:
/// * **Unavailable**:不可用
/// * **Available**:可用
#[serde(rename = "AccountStatus")]
pub account_status: Option<String>,
/// 账号类型,返回值如下:
///
/// - **Normal**:普通账号
/// - **Super**:高权限账号
/// - **Sysadmin**(仅SQL Server支持):具备超级权限(SA)的账号
/// - **GlobalRO**(仅SQL Server支持):全局只读账号
#[serde(rename = "AccountType")]
pub account_type: Option<String>,
/// 是否拥有安全策略RLS权限,返回值如下:
///
/// - **t**:是
/// - **f**:否
///
/// > 仅PostgreSQL实例返回该参数。
#[serde(rename = "BypassRLS")]
pub bypass_rls: Option<String>,
/// 是否应用密码策略
/// > 仅SQLServer实例返回该参数。
#[serde(rename = "CheckPolicy")]
pub check_policy: Option<bool>,
/// 是否拥有创建数据库权限,返回值如下:
///
/// - **t**:是
/// - **f**:否
///
/// > 仅PostgreSQL实例返回该参数。
#[serde(rename = "CreateDB")]
pub create_db: Option<String>,
/// 是否拥有创建角色权限,返回值如下:
///
/// - **t**:是
/// - **f**:否
///
/// > 仅PostgreSQL实例返回该参数。
#[serde(rename = "CreateRole")]
pub create_role: Option<String>,
/// 账号所属实例ID。
#[serde(rename = "DBInstanceId")]
pub db_instance_id: Option<String>,
#[serde(rename = "DatabasePrivileges")]
pub database_privileges: Option<DatabasePrivileges>,
/// 密码过期时间
/// > 仅SQLServer实例返回该参数。
#[serde(rename = "PasswordExpireTime")]
pub password_expire_time: Option<String>,
/// 账号管理的数据库是否超过最大数量限制,返回值如下:
/// * **1**:是
/// * **0**:否
#[serde(rename = "PrivExceeded")]
pub priv_exceeded: Option<String>,
/// 是否拥有复制权限,返回值如下:
///
/// - **t**:是
/// - **f**:否
///
/// > 仅PostgreSQL实例返回该参数。
#[serde(rename = "Replication")]
pub replication: Option<String>,
/// 密码失效时间,返回值如下:
///
/// - **infinity**:永不过期。
/// - 返回为**空**:未设置。
/// - 返回**实际密码失效时间**。例如:2022-10-01T00:00:00Z,格式为:<i>yyyy-MM-dd</i>T<i>HH:mm:ss</i>Z(UTC时间)
///
/// > 仅PostgreSQL实例返回该参数。
#[serde(rename = "ValidUntil")]
pub valid_until: Option<String>,
}
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct ResponseAccounts {
/// 账号信息列表。
#[serde(rename = "DBInstanceAccount")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub db_instance_account: Vec<InstanceAccount>,
}
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct ResponseWords {
/// 保留的关键字列表。
#[serde(rename = "word")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub word: Vec<String>,
}
/// 配置项详情。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct DefaultHbaItemsHbaItem {
/// IP地址,固定值:0.0.0.0/0。
#[serde(rename = "Address")]
pub address: Option<String>,
/// 数据库名称,固定值:all和replication。
#[serde(rename = "Database")]
pub database: Option<String>,
/// 掩码,固定为空。
#[serde(rename = "Mask")]
pub mask: Option<String>,
/// 认证方式,固定值:md5。
#[serde(rename = "Method")]
pub method: Option<String>,
/// 认证方式对应配置参数,固定为空。
#[serde(rename = "Option")]
pub option: Option<String>,
/// 优先级,自动生成。
#[serde(rename = "PriorityId")]
pub priority_id: Option<i32>,
/// 连接类型,固定值:host。
#[serde(rename = "Type")]
pub r#type: Option<String>,
/// 用户名,固定值:all。
#[serde(rename = "User")]
pub user: Option<String>,
}
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct DefaultHbaItems {
/// pg_hba.conf文件的默认配置项列表。
#[serde(rename = "HbaItem")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub hba_item: Vec<DefaultHbaItemsHbaItem>,
}
/// 配置项详情。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct RunningHbaItemsHbaItem {
/// 客户端IP地址。
#[serde(rename = "Address")]
pub address: Option<String>,
/// 数据库名。
#[serde(rename = "Database")]
pub database: Option<String>,
/// 掩码。
#[serde(rename = "Mask")]
pub mask: Option<String>,
/// 认证方式。
#[serde(rename = "Method")]
pub method: Option<String>,
/// 认证方式对应的配置参数。不需要配置时,置为空。
#[serde(rename = "Option")]
pub option: Option<String>,
/// 优先级。
#[serde(rename = "PriorityId")]
pub priority_id: Option<i32>,
/// 连接类型,返回值如下:
///
/// * **host**:该条记录验证TCP/IP连接,包括SSL连接和非SSL连接。
/// * **hostssl**:该条记录只验证通过SSL建立的TCP/IP连接。
/// * **hostnossl**:该条记录只验证通过非SSL建立的TCP/IP连接。
#[serde(rename = "Type")]
pub r#type: Option<String>,
/// 用户名。
#[serde(rename = "User")]
pub user: Option<String>,
}
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct RunningHbaItems {
/// pg_hba.conf文件的当前配置项列表。
#[serde(rename = "HbaItem")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub hba_item: Vec<RunningHbaItemsHbaItem>,
}
/// 配置详情。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct AfterHbaItemsHbaItem {
/// IP地址。
#[serde(rename = "Address")]
pub address: Option<String>,
/// 数据库名。
#[serde(rename = "Database")]
pub database: Option<String>,
/// 掩码。
#[serde(rename = "Mask")]
pub mask: Option<String>,
/// 认证方式。
#[serde(rename = "Method")]
pub method: Option<String>,
/// 认证方式对应的对应参数。
#[serde(rename = "Option")]
pub option: Option<String>,
/// 优先级。
#[serde(rename = "PriorityId")]
pub priority_id: Option<i32>,
/// 连接类型。
#[serde(rename = "Type")]
pub r#type: Option<String>,
/// 用户名。
#[serde(rename = "User")]
pub user: Option<String>,
}
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct AfterHbaItems {
/// 修改后pg_hba.conf文件的配置列表。
#[serde(rename = "HbaItem")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub hba_item: Vec<AfterHbaItemsHbaItem>,
}
/// 配置详情。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct BeforeHbaItemsHbaItem {
/// IP地址。
#[serde(rename = "Address")]
pub address: Option<String>,
/// 数据库名。
#[serde(rename = "Database")]
pub database: Option<String>,
/// 掩码。
#[serde(rename = "Mask")]
pub mask: Option<String>,
/// 认证方式。
#[serde(rename = "Method")]
pub method: Option<String>,
/// 认证方式对应的配置参数。
#[serde(rename = "Option")]
pub option: Option<String>,
/// 优先级。
#[serde(rename = "PriorityId")]
pub priority_id: Option<i32>,
/// 连接类型。
#[serde(rename = "Type")]
pub r#type: Option<String>,
/// 用户名。
#[serde(rename = "User")]
pub user: Option<String>,
}
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct BeforeHbaItems {
/// 修改前pg_hba.conf文件的配置列表。
#[serde(rename = "HbaItem")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub hba_item: Vec<BeforeHbaItemsHbaItem>,
}
/// 修改记录详情。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct LogItem {
#[serde(rename = "AfterHbaItems")]
pub after_hba_items: Option<AfterHbaItems>,
#[serde(rename = "BeforeHbaItems")]
pub before_hba_items: Option<BeforeHbaItems>,
/// 修改状态。
/// - **success**:已生效
/// - **failed**:未生效
/// - **setting**:设置中
#[serde(rename = "ModifyStatus")]
pub modify_status: Option<String>,
/// 修改时间(UTC时间)。
#[serde(rename = "ModifyTime")]
pub modify_time: Option<String>,
/// 未生效原因。
#[serde(rename = "StatusReason")]
pub status_reason: Option<String>,
}
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct LogItems {
/// 修改记录列表。
#[serde(rename = "HbaLogItem")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub hba_log_item: Vec<LogItem>,
}
/// 账号详情。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct PrivilegeInfo {
/// 账号名称。
#[serde(rename = "Account")]
pub account: Option<String>,
/// 账号对该数据库拥有的权限,返回值:
/// * **ReadWrite**:读写
/// * **ReadOnly**:只读
/// * **DMLOnly**:仅DML
/// * **DDLOnly**:仅DDL
#[serde(rename = "AccountPrivilege")]
pub account_privilege: Option<String>,
/// 账号对该数据库具有的权限。
#[serde(rename = "AccountPrivilegeDetail")]
pub account_privilege_detail: Option<String>,
}
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct ItemAccounts {
/// 拥有数据库相关权限的账号列表。
#[serde(rename = "AccountPrivilegeInfo")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub account_privilege_info: Vec<PrivilegeInfo>,
}
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct AdvancedInfo {
/// 数据库高级属性。
///
/// > 仅SQL Server实例返回该参数。
#[serde(rename = "AdvancedDbProperty")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub advanced_db_property: Vec<crate::OpenObject>,
}
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct BasicInfo {
/// 数据库基础属性。
///
/// > 仅SQL Server实例返回该参数。
#[serde(rename = "BasicDbProperty")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub basic_db_property: Vec<crate::OpenObject>,
}
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct RuntimeInfo {
/// 数据库运行属性。
///
/// > 仅SQL Server实例返回该参数。
#[serde(rename = "RuntimeDbProperty")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub runtime_db_property: Vec<crate::OpenObject>,
}
/// 数据库信息详情。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct DatabasesResponseDatabasesDatabase {
#[serde(rename = "Accounts")]
pub accounts: Option<ItemAccounts>,
#[serde(rename = "AdvancedInfo")]
pub advanced_info: Option<AdvancedInfo>,
#[serde(rename = "BasicInfo")]
pub basic_info: Option<BasicInfo>,
/// 字符集名称。
#[serde(rename = "CharacterSetName")]
pub character_set_name: Option<String>,
/// 排序规则,此处C代表本土化。
///
/// > 仅PostgreSQL实例返回该参数。
#[serde(rename = "Collate")]
pub collate: Option<String>,
/// 限制并发量,-1代表未限制。
///
/// > 仅PostgreSQL实例返回该参数。
#[serde(rename = "ConnLimit")]
pub conn_limit: Option<String>,
/// 字符集类型。
///
/// > 仅PostgreSQL实例返回该参数。
#[serde(rename = "Ctype")]
pub ctype: Option<String>,
/// 数据库描述。
#[serde(rename = "DBDescription")]
pub db_description: Option<String>,
/// 数据库所属实例ID。
#[serde(rename = "DBInstanceId")]
pub db_instance_id: Option<String>,
/// 数据库名称。
#[serde(rename = "DBName")]
pub db_name: Option<String>,
/// 数据库状态,返回值:
///
/// - **Creating**:创建中
/// - **Running**:使用中
/// - **Deleting**:删除中
/// - **Cold**:冷存中
#[serde(rename = "DBStatus")]
pub db_status: Option<String>,
/// 数据库实例类型。
#[serde(rename = "Engine")]
pub engine: Option<String>,
/// 页码。
#[serde(rename = "PageNumber")]
pub page_number: Option<i32>,
/// 每页记录数。
#[serde(rename = "PageSize")]
pub page_size: Option<i32>,
#[serde(rename = "RuntimeInfo")]
pub runtime_info: Option<RuntimeInfo>,
/// 数据库表空间。
///
/// > 仅PostgreSQL实例返回该参数。
#[serde(rename = "Tablespace")]
pub tablespace: Option<String>,
/// 总记录数。
///
/// > 仅SQL Server实例返回该参数。
#[serde(rename = "TotalCount")]
pub total_count: Option<i32>,
#[serde(rename = "DuckDBEnabled")]
pub duck_db_enabled: Option<bool>,
}
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct DatabasesResponseDatabases {
/// 数据库信息列表。
#[serde(rename = "Database")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub database: Vec<DatabasesResponseDatabasesDatabase>,
}
/// 支持的字符集排序规则和时区详情。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct TimeZone {
/// 描述。
#[serde(rename = "Description")]
pub description: Option<String>,
/// 世界协调时间偏移。由世界协调时间UTC+时区差组成,格式:(UTC+<i>HH:mm</i>)。
#[serde(rename = "StandardTimeOffset")]
pub standard_time_offset: Option<String>,
/// 时区。
#[serde(rename = "TimeZone")]
pub time_zone: Option<String>,
}
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct TimeZones {
/// 支持的字符集排序规则和时区列表。
#[serde(rename = "CollationTimeZone")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub collation_time_zone: Vec<TimeZone>,
}
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct NameItems {
/// 支持的字符集列表。
#[serde(rename = "CharacterSetName")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub character_set_name: Vec<String>,
}
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct InstanceNames {
/// 只读实例的信息列表。
#[serde(rename = "ReadDBInstanceName")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub read_db_instance_name: Vec<String>,
}
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct DelayTimes {
/// 延迟时间列表。
#[serde(rename = "ReadDelayTime")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub read_delay_time: Vec<String>,
}
/// 详情如下。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct DelayReadonlyInstanceDelay {
/// 预写式日志(WAL)持久化延迟时间。单位:秒(s)。
#[serde(rename = "FlushLag")]
pub flush_lag: Option<String>,
/// 预写式日志(WAL)持久化延迟空间。单位:MB。
#[serde(rename = "FlushLatency")]
pub flush_latency: Option<String>,
/// 只读实例ID。
#[serde(rename = "ReadDBInstanceName")]
pub read_db_instance_name: Option<String>,
/// 预写式日志(WAL)回放延迟时间。单位:秒(s)。
#[serde(rename = "ReplayLag")]
pub replay_lag: Option<String>,
/// 预写式日志(WAL)回放延迟空间。单位:MB。
#[serde(rename = "ReplayLatency")]
pub replay_latency: Option<String>,
/// 预写式日志(WAL)发送延迟空间。单位:MB。
#[serde(rename = "SendLatency")]
pub send_latency: Option<String>,
/// 预写式日志(WAL)回写延迟时间。单位:秒(s)。
#[serde(rename = "WriteLag")]
pub write_lag: Option<String>,
/// 预写式日志(WAL)回写延迟空间。单位:MB。
#[serde(rename = "WriteLatency")]
pub write_latency: Option<String>,
}
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct ItemReadonlyInstanceDelay {
/// 预写式日志(WAL)延迟信息列表。
/// >仅PostgreSQL返回此参数。
#[serde(rename = "ReadonlyInstanceDelay")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub readonly_instance_delay: Vec<DelayReadonlyInstanceDelay>,
}
/// 延迟信息详情。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct DelayResponseItemsItem {
/// 主实例ID。
#[serde(rename = "DBInstanceId")]
pub db_instance_id: Option<String>,
#[serde(rename = "ReadDBInstanceNames")]
pub read_db_instance_names: Option<InstanceNames>,
#[serde(rename = "ReadDelayTimes")]
pub read_delay_times: Option<DelayTimes>,
#[serde(rename = "ReadonlyInstanceDelay")]
pub readonly_instance_delay: Option<ItemReadonlyInstanceDelay>,
}
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct DelayResponseItems {
/// 延迟信息列表。
#[serde(rename = "Items")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub items: Vec<DelayResponseItemsItem>,
}
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct CheckItem {
/// 是否可以一键修复。
///
/// - **true**:是。可以通过调用[ModifyDBInstanceConfig](~~2623684~~)接口一键修复。
/// - **false**:否。
///
///
/// ><notice>当数据库实例大版本不符合要求时,需要通过[手动升级](~~2623684~~)。></notice>
#[serde(rename = "AllowAutoModify")]
pub allow_auto_modify: Option<bool>,
/// 检查项的当前值。
#[serde(rename = "CurrentValue")]
pub current_value: Option<String>,
/// 检查项名称。
#[serde(rename = "Name")]
pub name: Option<String>,
/// 检查项的目标值(或目标区间)。
#[serde(rename = "RequiredValue")]
pub required_value: Option<String>,
/// 检查项。取值:
///
/// - **Parameter**:参数。
/// - **MinorVersion**:内核小版本。
/// - **MajorVersion**:数据库大版本。
#[serde(rename = "Type")]
pub r#type: Option<String>,
}
/// 集群节点详情。
#[derive(Debug, Clone, Default, serde::Serialize)]
pub struct CreateDBNodesDBNode {
/// 节点规格信息。
#[serde(rename = "classCode")]
pub class_code: String,
/// 节点使用的虚拟交换机ID。
#[serde(rename = "vswitchId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub vswitch_id: Option<String>,
/// 节点所在的可用区ID。
#[serde(rename = "zoneId")]
pub zone_id: String,
}
/// Endpoint节点详情。
#[derive(Debug, Clone, Default, serde::Serialize)]
pub struct CreateDBInstanceEndpointNodeItem {
/// 实例ID。可调用DescribeDBInstances查询。
#[serde(rename = "DBInstanceId")]
pub db_instance_id: String,
/// 节点ID。
#[serde(rename = "NodeId")]
pub node_id: String,
/// 节点当前权重取值,按照该取值分配读流量。
///
/// 取值范围:0~100
#[serde(rename = "Weight")]
#[serde(skip_serializing_if = "Option::is_none")]
pub weight: Option<i64>,
}
/// 返回数据列表。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct CreateDBInstanceEndpointResponseData {
/// 内网连接地址。
#[serde(rename = "ConnectionString")]
pub connection_string: Option<String>,
/// 实例的Endpoint ID。
#[serde(rename = "DBInstanceEndpointId")]
pub db_instance_endpoint_id: Option<String>,
/// 实例ID。
#[serde(rename = "DBInstanceName")]
pub db_instance_name: Option<String>,
}
/// 返回字段列表。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct CreateDBInstanceEndpointAddressResponseData {
/// 外网连接地址。
#[serde(rename = "ConnectionString")]
pub connection_string: Option<String>,
/// 实例的Endpoint ID。
#[serde(rename = "DBInstanceEndpointId")]
pub db_instance_endpoint_id: Option<String>,
/// 实例ID。
#[serde(rename = "DBInstanceName")]
pub db_instance_name: Option<String>,
}
/// 返回数据列表。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct DeleteDBInstanceEndpointResponseData {
/// 实例的Endpoint ID。
#[serde(rename = "DBInstanceEndpointId")]
pub db_instance_endpoint_id: Option<String>,
/// 实例ID。
#[serde(rename = "DBInstanceName")]
pub db_instance_name: Option<String>,
}
/// 返回数据列表。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct DeleteDBInstanceEndpointAddressResponseData {
/// 实例的Endpoint ID。
#[serde(rename = "DBInstanceEndpointId")]
pub db_instance_endpoint_id: Option<String>,
/// 实例ID。
#[serde(rename = "DBInstanceName")]
pub db_instance_name: Option<String>,
}
/// 集群节点列表。
#[derive(Debug, Clone, Default, serde::Serialize)]
pub struct NodeDBNode {
/// 节点规格信息。
#[serde(rename = "classCode")]
#[serde(skip_serializing_if = "Option::is_none")]
pub class_code: Option<String>,
/// 节点ID。
#[serde(rename = "nodeId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub node_id: Option<String>,
}
/// 节点详情。
#[derive(Debug, Clone, Default, serde::Serialize)]
pub struct ModifyDBInstanceEndpointNodeItem {
/// 实例ID。可调用DescribeDBInstances查询。
#[serde(rename = "DBInstanceId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub db_instance_id: Option<String>,
/// 节点ID。
///
/// 可以通过以下方式查询节点ID:
/// - 在RDS控制台的实例详情页下方的实例拓扑图中查看节点ID。
/// - 调用DescribeDBInstanceAttribute查询节点ID。
#[serde(rename = "NodeId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub node_id: Option<String>,
/// 节点当前权重取值,按照该取值分配读流量。
///
/// 取值范围:0~100
#[serde(rename = "Weight")]
#[serde(skip_serializing_if = "Option::is_none")]
pub weight: Option<i64>,
}
/// 返回字段列表。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct ModifyDBInstanceEndpointResponseData {
/// 实例的Endpoint ID。
#[serde(rename = "DBInstanceEndpointId")]
pub db_instance_endpoint_id: Option<String>,
/// 实例ID。
#[serde(rename = "DBInstanceName")]
pub db_instance_name: Option<String>,
}
/// 返回字段列表。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct ModifyDBInstanceEndpointAddressResponseData {
/// 实例的Endpoint ID。
#[serde(rename = "DBInstanceEndpointId")]
pub db_instance_endpoint_id: Option<String>,
/// 实例ID。
#[serde(rename = "DBInstanceName")]
pub db_instance_name: Option<String>,
}
/// 连接地址详情。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct AddressItem {
/// 连接地址。
#[serde(rename = "ConnectionString")]
pub connection_string: Option<String>,
/// IP地址。
#[serde(rename = "IpAddress")]
pub ip_address: Option<String>,
/// IP类型,取值含义如下:
/// - **Public**:外网
/// - **Private**:内网
#[serde(rename = "IpType")]
pub ip_type: Option<String>,
/// 连接端口号。
#[serde(rename = "Port")]
pub port: Option<String>,
/// 交换机ID。
#[serde(rename = "VSwitchId")]
pub v_switch_id: Option<String>,
/// VPC ID。
#[serde(rename = "VpcId")]
pub vpc_id: Option<String>,
}
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct AddressItems {
/// 连接地址相关信息列表。
#[serde(rename = "AddressItem")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub address_item: Vec<AddressItem>,
}
/// Endpoint详情。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct ItemsNodeItem {
/// 实例ID。
#[serde(rename = "DBInstanceId")]
pub db_instance_id: Option<String>,
/// 节点ID。
#[serde(rename = "NodeId")]
pub node_id: Option<String>,
/// 节点当前权重取值,按照该取值分配读流量。
///
/// 取值范围:0~100
#[serde(rename = "Weight")]
pub weight: Option<i32>,
}
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct NodeItems {
/// Endpoint节点相关信息列表。
#[serde(rename = "NodeItem")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub node_item: Vec<ItemsNodeItem>,
}
/// Endpoint详情。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct InstanceEndpoint {
#[serde(rename = "AddressItems")]
pub address_items: Option<AddressItems>,
/// 用户自定义的Endpoint描述。
#[serde(rename = "EndpointDescription")]
pub endpoint_description: Option<String>,
/// 实例的Endpoint ID。
#[serde(rename = "EndpointId")]
pub endpoint_id: Option<String>,
/// Endpoint类型,取值含义如下:
/// * **Primary**:实例的读写Endpoint
/// * **Readonly**:实例的只读Endpoint
#[serde(rename = "EndpointType")]
pub endpoint_type: Option<String>,
#[serde(rename = "NodeItems")]
pub node_items: Option<NodeItems>,
}
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct InstanceEndpoints {
/// 实例的Endpoint相关信息列表。
#[serde(rename = "DBInstanceEndpoint")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub db_instance_endpoint: Vec<InstanceEndpoint>,
}
/// 返回数据。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct EndpointsResponseData {
#[serde(rename = "DBInstanceEndpoints")]
pub db_instance_endpoints: Option<InstanceEndpoints>,
/// 实例名称。
#[serde(rename = "DBInstanceName")]
pub db_instance_name: Option<String>,
/// IP地址协议版本。取值如下:
///
/// - **ipv4**
/// - **ipv6**
#[serde(rename = "IpVersion")]
pub ip_version: Option<String>,
}
/// 代理节点详情。
#[derive(Debug, Clone, Default, serde::Serialize)]
pub struct ProxyDBProxyNode {
/// 节点CPU核数,取值**1**~**16**。
/// >选择**DBProxyNodes**时,该参数必选。
#[serde(rename = "cpuCores")]
#[serde(skip_serializing_if = "Option::is_none")]
pub cpu_cores: Option<String>,
/// 可用区中代理节点数量,取值**1**~**2**。
/// >选择**DBProxyNodes**时,该参数必选。
#[serde(rename = "nodeCounts")]
#[serde(skip_serializing_if = "Option::is_none")]
pub node_counts: Option<String>,
/// 节点所在的可用区 ID。
/// >选择**DBProxyNodes**时,该参数必选。
#[serde(rename = "zoneId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub zone_id: Option<String>,
}
/// 代理节点详情。
#[derive(Debug, Clone, Default, serde::Serialize)]
pub struct InstanceDBProxyNode {
/// 节点CPU核数,取值**1**~**16**。
/// >选择**DBProxyNodes**时,该参数必选。
#[serde(rename = "cpuCores")]
#[serde(skip_serializing_if = "Option::is_none")]
pub cpu_cores: Option<String>,
/// 可用区中代理节点数量,取值**1**~**2**。
/// >选择**DBProxyNodes**时,该参数必选。
#[serde(rename = "nodeCounts")]
#[serde(skip_serializing_if = "Option::is_none")]
pub node_counts: Option<String>,
/// 节点所在的可用区 ID。
/// >选择**DBProxyNodes**时,该参数必选。
#[serde(rename = "zoneId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub zone_id: Option<String>,
}
/// 迁移代理可用区详情。
#[derive(Debug, Clone, Default, serde::Serialize)]
pub struct AZ {
/// 代理连接地址 ID。可以通过接口 DescribeDBProxyEndpoint 获取。
/// >选择**MigrateAZ**时,该参数必选。
#[serde(rename = "dbProxyEndpointId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub db_proxy_endpoint_id: Option<String>,
/// 代理实例迁移对应的目标VSwitch ID。
/// >选择**MigrateAZ**时,该参数必选。
#[serde(rename = "destVSwitchId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub dest_v_switch_id: Option<String>,
/// 代理实例迁移对应的目标VPC ID。
/// >选择**MigrateAZ**时,该参数必选。
#[serde(rename = "destVpcId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub dest_vpc_id: Option<String>,
}
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct MinorVersions {
/// 代理实例可升级版本集合。
#[serde(rename = "DBProxyInstanceMinorVersions")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub db_proxy_instance_minor_versions: Vec<String>,
}
/// 数据库代理的连接地址信息详情。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct StringItem {
/// 代理终端连接地址。
#[serde(rename = "DBProxyConnectString")]
pub db_proxy_connect_string: Option<String>,
/// 代理连接地址的网络类型。
/// - OuterString:外网
/// - InnerString:内网
#[serde(rename = "DBProxyConnectStringNetType")]
pub db_proxy_connect_string_net_type: Option<String>,
/// 代理网络类型。
/// - 0:公网
/// - 1:经典网络
/// - 2:专有网络
#[serde(rename = "DBProxyConnectStringNetWorkType")]
pub db_proxy_connect_string_net_work_type: Option<String>,
/// 代理连接地址的端口。
#[serde(rename = "DBProxyConnectStringPort")]
pub db_proxy_connect_string_port: Option<String>,
/// 后端代理终端ID。
#[serde(rename = "DBProxyEndpointId")]
pub db_proxy_endpoint_id: Option<String>,
/// 代理终端名称,真实服务的代理终端ID。
#[serde(rename = "DBProxyEndpointName")]
pub db_proxy_endpoint_name: Option<String>,
/// 代理服务地址的VPC。
#[serde(rename = "DBProxyVpcId")]
pub db_proxy_vpc_id: Option<String>,
/// 代理的实例ID。
#[serde(rename = "DBProxyVpcInstanceId")]
pub db_proxy_vpc_instance_id: Option<String>,
/// 代理服务地址的vSwitch。
#[serde(rename = "DBProxyVswitchId")]
pub db_proxy_vswitch_id: Option<String>,
}
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct StringItems {
/// 数据库代理的连接地址信息列表。
#[serde(rename = "DBProxyConnectStringItems")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub db_proxy_connect_string_items: Vec<StringItem>,
}
/// 节点列表详情。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct ProxyResponseDBProxyNodesDbProxyNode {
/// 节点CPU核数。
#[serde(rename = "cpuCores")]
pub cpu_cores: Option<String>,
/// 代理节点ID。
#[serde(rename = "nodeId")]
pub node_id: Option<String>,
/// 节点所在的可用区 ID。
#[serde(rename = "zoneId")]
pub zone_id: Option<String>,
}
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct ProxyResponseDBProxyNodes {
/// 代理节点列表。
#[serde(rename = "DBProxyNodes")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub db_proxy_nodes: Vec<ProxyResponseDBProxyNodesDbProxyNode>,
}
/// 代理终端信息详情。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct EndpointItem {
/// 代理终端的备注信息。
#[serde(rename = "DbProxyEndpointAliases")]
pub db_proxy_endpoint_aliases: Option<String>,
/// 代理终端ID。
#[serde(rename = "DbProxyEndpointName")]
pub db_proxy_endpoint_name: Option<String>,
/// 代理终端类型。
/// - Custom:自定义代理终端
/// - RWSplit:默认代理终端
#[serde(rename = "DbProxyEndpointType")]
pub db_proxy_endpoint_type: Option<String>,
/// 代理终端模式。
/// - ReadOnly:只读模式
/// - ReadWrite:读写模式
#[serde(rename = "DbProxyReadWriteMode")]
pub db_proxy_read_write_mode: Option<String>,
}
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct EndpointItems {
/// 代理终端信息列表。
#[serde(rename = "DbProxyEndpointItems")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub db_proxy_endpoint_items: Vec<EndpointItem>,
}
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct VZones {
/// 代理服务所在的可用区列表。
#[serde(rename = "DBProxyAVZones")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub db_proxy_av_zones: Vec<String>,
}
/// 代理节点详情。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct EndpointResponseDBProxyNodesDbProxyNode {
/// 节点CPU核数。
#[serde(rename = "cpuCores")]
pub cpu_cores: Option<String>,
/// 可用区中代理节点 ID。
#[serde(rename = "nodeId")]
pub node_id: Option<String>,
/// 节点所在的可用区 ID。
#[serde(rename = "zoneId")]
pub zone_id: Option<String>,
}
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct EndpointResponseDBProxyNodes {
/// 代理终端下关联的代理节点列表。
#[serde(rename = "DBProxyNodes")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub db_proxy_nodes: Vec<EndpointResponseDBProxyNodesDbProxyNode>,
}
/// 代理连接地址的详细信息
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct ConnectItem {
/// 代理连接地址。
#[serde(rename = "DbProxyEndpointConnectString")]
pub db_proxy_endpoint_connect_string: Option<String>,
/// 网络类型,取值:
/// * **0**:公网
/// * **1**:经典网络
/// * **2**:专有网络
#[serde(rename = "DbProxyEndpointNetType")]
pub db_proxy_endpoint_net_type: Option<String>,
/// 服务端口,默认为**3306**。
#[serde(rename = "DbProxyEndpointPort")]
pub db_proxy_endpoint_port: Option<String>,
}
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct ConnectItems {
/// 代理连接地址的详细信息列表。
#[serde(rename = "EndpointConnectItems")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub endpoint_connect_items: Vec<ConnectItem>,
}
/// 性能值详情。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct ProxyPerformanceResponsePerformanceKeysPerformanceKeyItemValuesPerformanceValue {
/// 记录日期。格式:<i>yyyy-MM-dd</i>T<i>HH:mm:ss</i>Z(UTC时间)。
#[serde(rename = "Date")]
pub date: Option<String>,
/// 性能值。
#[serde(rename = "Value")]
pub value: Option<String>,
}
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct ProxyPerformanceResponsePerformanceKeysPerformanceKeyItemValues {
/// 性能值列表。
#[serde(rename = "PerformanceValue")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub performance_value:
Vec<ProxyPerformanceResponsePerformanceKeysPerformanceKeyItemValuesPerformanceValue>,
}
/// 性能信息。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct ProxyPerformanceResponsePerformanceKeysPerformanceKey {
/// 性能值的格式。
#[serde(rename = "ValueFormat")]
pub value_format: Option<String>,
/// 性能参数。
#[serde(rename = "Key")]
pub key: Option<String>,
#[serde(rename = "Values")]
pub values: Option<ProxyPerformanceResponsePerformanceKeysPerformanceKeyItemValues>,
/// 代理连接地址的终端id。可在DescribeDBProxy 接口查询
#[serde(rename = "Service")]
pub service: Option<String>,
/// 代理节点id
#[serde(rename = "Node")]
pub node: Option<String>,
/// 数据库节点id
#[serde(rename = "Server")]
pub server: Option<String>,
}
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct ProxyPerformanceResponsePerformanceKeys {
/// 性能列表。
#[serde(rename = "PerformanceKey")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub performance_key: Vec<ProxyPerformanceResponsePerformanceKeysPerformanceKey>,
}
/// SSL加密信息详情。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct ListItem {
/// 开启SSL加密的代理连接地址。
#[serde(rename = "CertCommonName")]
pub cert_common_name: Option<String>,
/// 实例ID。
#[serde(rename = "DbInstanceName")]
pub db_instance_name: Option<String>,
/// 代理连接地址名称。
#[serde(rename = "EndpointName")]
pub endpoint_name: Option<String>,
/// 默认代理连接地址终端标识。当前唯一取值:**RWSplit**。
#[serde(rename = "EndpointType")]
pub endpoint_type: Option<String>,
/// 证书过期时间。
#[serde(rename = "SslExpiredTime")]
pub ssl_expired_time: Option<String>,
}
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct ListItems {
/// SSL加密信息列表。
#[serde(rename = "DbProxyCertListItems")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub db_proxy_cert_list_items: Vec<ListItem>,
}
/// 系统指定权重详情。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct ItemsDbInstanceWeight {
/// 实例ID。
#[serde(rename = "DBInstanceId")]
pub db_instance_id: Option<String>,
/// 实例类型,取值:
/// * **Master**:主实例
/// * **Readonly**:只读实例
#[serde(rename = "DBInstanceType")]
pub db_instance_type: Option<String>,
/// 只读实例延迟复制时间,只读实例延迟**ReadonlyInstanceSQLDelayedTime**的时间后再同步主实例数据,单位:秒。
#[serde(rename = "ReadonlyInstanceSQLDelayedTime")]
pub readonly_instance_sql_delayed_time: Option<String>,
/// 系统实时计算的实例权重。
#[serde(rename = "Weight")]
pub weight: Option<String>,
}
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct WeightResponseItems {
/// 系统指定权重列表。
#[serde(rename = "DBInstanceWeight")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub db_instance_weight: Vec<ItemsDbInstanceWeight>,
}
/// 返回数据列表。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct AttachWhitelistTemplateToInstanceResponseData {
/// 返回状态。各取值含义如下:
/// - **ok**:正常返回
/// - **error**:错误返回
#[serde(rename = "Status")]
pub status: Option<String>,
}
/// 返回数据列表。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct DetachWhitelistTemplateToInstanceResponseData {
/// 返回状态。各取值含义如下:
/// - **ok**:正常返回
/// - **error**:错误返回
#[serde(rename = "Status")]
pub status: Option<String>,
}
/// 返回数据列表。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct ModifyWhitelistTemplateResponseData {
/// 返回状态。各取值含义如下:
/// - **ok**:正常返回
/// - **error**:错误返回
#[serde(rename = "Status")]
pub status: Option<String>,
}
/// 关联的安全组信息列表详情。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct DescribeSecurityGroupConfigurationResponseItemsEcsSecurityGroupRelation {
/// ECS安全组的网络类型。返回值:
/// * **Classic**:经典网络。
/// * **VPC**:专有网络。
#[serde(rename = "NetworkType")]
pub network_type: Option<String>,
/// 地域ID。
#[serde(rename = "RegionId")]
pub region_id: Option<String>,
/// ECS安全组ID。
#[serde(rename = "SecurityGroupId")]
pub security_group_id: Option<String>,
/// 安全组名称。
#[serde(rename = "SecurityGroupName")]
pub security_group_name: Option<String>,
}
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct DescribeSecurityGroupConfigurationResponseItems {
/// 关联的安全组信息列表。
#[serde(rename = "EcsSecurityGroupRelation")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub ecs_security_group_relation:
Vec<DescribeSecurityGroupConfigurationResponseItemsEcsSecurityGroupRelation>,
}
/// 关联的安全组信息详情。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct ModifySecurityGroupConfigurationResponseItemsEcsSecurityGroupRelation {
/// ECS安全组的网络类型。取值:
/// * **Classic**:经典网络
/// * **VPC**:专有网络
#[serde(rename = "NetworkType")]
pub network_type: Option<String>,
/// 地域ID。
#[serde(rename = "RegionId")]
pub region_id: Option<String>,
/// ECS安全组ID。
#[serde(rename = "SecurityGroupId")]
pub security_group_id: Option<String>,
}
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct ModifySecurityGroupConfigurationResponseItems {
/// 关联的安全组信息列表。
#[serde(rename = "EcsSecurityGroupRelation")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub ecs_security_group_relation:
Vec<ModifySecurityGroupConfigurationResponseItemsEcsSecurityGroupRelation>,
}
/// 返回数据列表。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct LinkedInstanceResponseData {
/// 实例信息。
#[serde(rename = "InsName")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub ins_name: Vec<String>,
/// 白名单模板ID。
#[serde(rename = "TemplateId")]
pub template_id: Option<i32>,
}
/// 分页返回的白名单模板列表。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct LinkedWhitelistTemplateResponseDataTemplate {
/// 数据表主键。
#[serde(rename = "Id")]
pub id: Option<i32>,
/// IP列表。
#[serde(rename = "Ips")]
pub ips: Option<String>,
/// 白名单模板ID。
#[serde(rename = "TemplateId")]
pub template_id: Option<i32>,
/// 白名单模板名称。
#[serde(rename = "TemplateName")]
pub template_name: Option<String>,
/// 用户ID。
#[serde(rename = "UserId")]
pub user_id: Option<i32>,
}
/// 返回数据列表。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct LinkedWhitelistTemplateResponseData {
/// 实例名称。
#[serde(rename = "InsName")]
pub ins_name: Option<String>,
/// 分页返回的白名单模板信息。
#[serde(rename = "Templates")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub templates: Vec<LinkedWhitelistTemplateResponseDataTemplate>,
}
/// 白名单模板信息。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct DescribeWhitelistTemplateResponseDataTemplate {
/// 数据表主键。
#[serde(rename = "Id")]
pub id: Option<i32>,
/// IP列表。
#[serde(rename = "Ips")]
pub ips: Option<String>,
/// 白名单模板ID。
#[serde(rename = "TemplateId")]
pub template_id: Option<i32>,
/// 白名单模板名称。
#[serde(rename = "TemplateName")]
pub template_name: Option<String>,
/// 用户ID。
#[serde(rename = "UserId")]
pub user_id: Option<i32>,
}
/// 返回数据列表。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct DescribeWhitelistTemplateResponseData {
/// 白名单模板信息。
#[serde(rename = "Template")]
pub template: Option<DescribeWhitelistTemplateResponseDataTemplate>,
}
/// 分页返回的白名单模板列表。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct AllWhitelistTemplateResponseDataTemplate {
/// 数据表主键。
#[serde(rename = "Id")]
pub id: Option<i32>,
/// IP列表。
#[serde(rename = "Ips")]
pub ips: Option<String>,
/// 白名单模板ID。
#[serde(rename = "TemplateId")]
pub template_id: Option<i32>,
/// 白名单模板名称。
#[serde(rename = "TemplateName")]
pub template_name: Option<String>,
/// 用户ID。
#[serde(rename = "UserId")]
pub user_id: Option<i32>,
}
/// 返回数据列表。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct AllWhitelistTemplateResponseData {
/// 当前页码。
#[serde(rename = "CurrPageNumbers")]
pub curr_page_numbers: Option<i32>,
/// 表示符合条件的数据是否有下一页,各取值含义如下:
/// - **true**:是
/// - **false**:否
#[serde(rename = "HasNext")]
pub has_next: Option<bool>,
/// 表示符合条件的数据是否有上一页,各取值含义如下:
/// - **true**:是
/// - **false**:否
#[serde(rename = "HasPrev")]
pub has_prev: Option<bool>,
/// 每页记录数。
#[serde(rename = "MaxRecordsPerPage")]
pub max_records_per_page: Option<i32>,
/// 分页返回的白名单模板信息。
#[serde(rename = "Templates")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub templates: Vec<AllWhitelistTemplateResponseDataTemplate>,
/// 总页数。
#[serde(rename = "TotalPageNumbers")]
pub total_page_numbers: Option<i32>,
/// 总记录数。
#[serde(rename = "TotalRecords")]
pub total_records: Option<i32>,
}
/// IP白名单分组详情。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct IpArray {
/// 白名单分组属性,默认为空。
/// >控制台不显示带有hidden属性的分组,带有该标签的分组通常是用于访问DTS等服务的。
#[serde(rename = "DBInstanceIPArrayAttribute")]
pub db_instance_ip_array_attribute: Option<String>,
/// IP白名单分组名称。
#[serde(rename = "DBInstanceIPArrayName")]
pub db_instance_ip_array_name: Option<String>,
/// IP白名单分组下的IP列表。
#[serde(rename = "SecurityIPList")]
pub security_ip_list: Option<String>,
/// IP地址的类型。
#[serde(rename = "SecurityIPType")]
pub security_ip_type: Option<String>,
}
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct ArrayListResponseItems {
/// IP白名单分组列表。
#[serde(rename = "DBInstanceIPArray")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub db_instance_ip_array: Vec<IpArray>,
}
/// 数据库级别的TDE状态详情。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct EResponseDatabasesDatabase {
/// 数据库名称。
#[serde(rename = "DBName")]
pub db_name: Option<String>,
/// 数据库级别的TDE状态,取值:
/// - **Enabled**
/// - **Disabled**
#[serde(rename = "TDEStatus")]
pub tde_status: Option<String>,
}
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct EResponseDatabases {
/// 数据库级别的TDE状态列表。
/// >对于SQL Server 2019标准版和SQL Server企业版实例,可以在实例级别的TDE开启时,控制数据库级别的TDE开启或关闭。
#[serde(rename = "Database")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub database: Vec<EResponseDatabasesDatabase>,
}
/// 密钥详情。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct KeyList {
/// 密钥别名。
#[serde(rename = "AliasName")]
pub alias_name: Option<String>,
/// 密钥的创建者。
#[serde(rename = "Creator")]
pub creator: Option<String>,
/// 预计删除密钥时间。格式:yyyy-MM-ddTHH:mm:ssZ(UTC时间)。
#[serde(rename = "DeleteDate")]
pub delete_date: Option<String>,
/// 密钥描述。
#[serde(rename = "Description")]
pub description: Option<String>,
/// 密钥ID。
#[serde(rename = "EncryptionKey")]
pub encryption_key: Option<String>,
/// 密钥的状态。返回值:
/// - **Enabled**:启用。
/// - **Disabled**:未启用。
#[serde(rename = "EncryptionKeyStatus")]
pub encryption_key_status: Option<String>,
/// Key的类型。返回值说明:
/// - CMK:用户自定义密钥
/// - ServiceKey:服务密钥
#[serde(rename = "KeyType")]
pub key_type: Option<String>,
/// 密钥用途。
#[serde(rename = "KeyUsage")]
pub key_usage: Option<String>,
/// 密钥过期时间。格式:yyyy-MM-ddTHH:mm:ssZ(UTC时间)。
#[serde(rename = "MaterialExpireTime")]
pub material_expire_time: Option<String>,
/// 密钥的来源。
#[serde(rename = "Origin")]
pub origin: Option<String>,
/// 密钥的使用途径:
///
/// - **TDE**:透明数据加密。
/// - **DiskEncryption**:云盘加密。
#[serde(rename = "UsedBy")]
pub used_by: Option<String>,
}
/// 分布式事务白名单分组详情。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct ListGroup {
/// ECS实例的IP地址和Windows系统的计算机名。格式:`ip,hostname`。多个实例之间以英文分号(;)隔开。
#[serde(rename = "SecurityIpHosts")]
pub security_ip_hosts: Option<String>,
/// 分布式事务白名单分组名称。
#[serde(rename = "WhitelistGroupName")]
pub whitelist_group_name: Option<String>,
}
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct ServerResponseItems {
/// 分布式事务白名单分组列表。
#[serde(rename = "WhiteListGroups")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub white_list_groups: Vec<ListGroup>,
}
/// 延迟最高的SQL详情
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct LatencyTopNItem {
/// SQL平均执行时间。单位:ms
#[serde(rename = "AvgLatency")]
pub avg_latency: Option<i64>,
/// SQL执行次数。
#[serde(rename = "SQLExecuteTimes")]
pub sql_execute_times: Option<i64>,
/// SQL语句。
/// > 展示SQL语句的前128个字符,仅统计执行时间大于100ms的SQL。
#[serde(rename = "SQLText")]
pub sql_text: Option<String>,
}
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct LatencyTopNItems {
/// 延迟最高的SQL列表。
#[serde(rename = "LatencyTopNItem")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub latency_top_n_item: Vec<LatencyTopNItem>,
}
/// 执行次数最多的SQL详情。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct QpsTopNItem {
/// SQL执行次数。
#[serde(rename = "SQLExecuteTimes")]
pub sql_execute_times: Option<i64>,
/// SQL语句。
/// > 展示SQL语句的前128个字符,仅统计执行时间大于5ms的SQL。
#[serde(rename = "SQLText")]
pub sql_text: Option<String>,
}
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct QpsTopNItems {
/// 执行次数最多的SQL列表。
#[serde(rename = "QPSTopNItem")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub qps_top_n_item: Vec<QpsTopNItem>,
}
/// SQL日志运行报告详情。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct ListResponseItemsItem {
#[serde(rename = "LatencyTopNItems")]
pub latency_top_n_items: Option<LatencyTopNItems>,
#[serde(rename = "QPSTopNItems")]
pub qps_top_n_items: Option<QpsTopNItems>,
/// 运行报告生成时间。格式:<i>yyyy-MM-dd</i>T<i>HH:mm:ss</i>Z(UTC时间)
#[serde(rename = "ReportTime")]
pub report_time: Option<String>,
}
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct ReportListResponseItems {
/// SQL日志运行报告列表。
#[serde(rename = "Item")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub item: Vec<ListResponseItemsItem>,
}
/// 审计文件详情。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct ItemsLogFile {
/// 文件名称。
#[serde(rename = "FileID")]
pub file_id: Option<String>,
/// 下载地址。若当前不可下载,则为空。
#[serde(rename = "LogDownloadURL")]
pub log_download_url: Option<String>,
/// SQL结束时间。格式:<i>yyyy-MM-dd</i>T<i>HH:mm:ss</i>Z(UTC时间)。
#[serde(rename = "LogEndTime")]
pub log_end_time: Option<String>,
/// 日志文件大小,单位:Byte。
#[serde(rename = "LogSize")]
pub log_size: Option<String>,
/// SQL起始时间。格式:<i>yyyy-MM-dd</i>T<i>HH:mm:ss</i>Z(UTC时间)。
#[serde(rename = "LogStartTime")]
pub log_start_time: Option<String>,
/// 文件当前状态,取值:
/// * **Success**:生成成功
/// * **Failed**:生成失败
/// * **Generating**:生成中
#[serde(rename = "LogStatus")]
pub log_status: Option<String>,
}
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct LogFilesResponseItems {
/// 审计文件列表。
#[serde(rename = "LogFile")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub log_file: Vec<ItemsLogFile>,
}
/// 慢日志信息详情。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct SlowLog {
/// 执行时间(平均值),单位:秒。
/// >仅SQL Server实例支持返回该参数。
#[serde(rename = "AvgExecutionTime")]
pub avg_execution_time: Option<i64>,
/// I/O写次数(平均值)。
/// >仅SQL Server实例支持返回该参数。
#[serde(rename = "AvgIOWriteCounts")]
pub avg_io_write_counts: Option<i64>,
/// 最后一次受影响的行数(平均值)。
/// >仅SQL Server实例支持返回该参数。
#[serde(rename = "AvgLastRowsAffectedCounts")]
pub avg_last_rows_affected_counts: Option<i64>,
/// 逻辑读次数(平均值)。
/// >仅SQL Server实例支持返回该参数。
#[serde(rename = "AvgLogicalReadCounts")]
pub avg_logical_read_counts: Option<i64>,
/// 物理读次数(平均值)。
/// >仅SQL Server实例支持返回该参数。
#[serde(rename = "AvgPhysicalReadCounts")]
pub avg_physical_read_counts: Option<i64>,
/// 受影响的行数(平均值)。
/// >仅SQL Server实例支持返回该参数。
#[serde(rename = "AvgRowsAffectedCounts")]
pub avg_rows_affected_counts: Option<i64>,
/// 数据生成日期。
#[serde(rename = "CreateTime")]
pub create_time: Option<String>,
/// 数据库名称。
#[serde(rename = "DBName")]
pub db_name: Option<String>,
/// 执行时长(最大值),单位:秒。
#[serde(rename = "MaxExecutionTime")]
pub max_execution_time: Option<i64>,
/// 执行时长(最大值),单位:毫秒。
#[serde(rename = "MaxExecutionTimeMS")]
pub max_execution_time_ms: Option<i64>,
/// I/O写次数(最大值)。
/// >仅SQL Server实例支持返回该参数。
#[serde(rename = "MaxIOWriteCounts")]
pub max_io_write_counts: Option<i64>,
/// 最后一次受影响的行数(最大值)。
/// >仅SQL Server实例支持返回该参数。
#[serde(rename = "MaxLastRowsAffectedCounts")]
pub max_last_rows_affected_counts: Option<i64>,
/// 锁定时长(最大值),单位:秒。
#[serde(rename = "MaxLockTime")]
pub max_lock_time: Option<i64>,
/// 锁定时长(最大值),单位:毫秒。
#[serde(rename = "MaxLockTimeMS")]
pub max_lock_time_ms: Option<i64>,
/// 逻辑读次数(最大值)。
/// >仅SQL Server实例支持返回该参数。
#[serde(rename = "MaxLogicalReadCounts")]
pub max_logical_read_counts: Option<i64>,
/// 物理读次数(最大值)。
/// >仅SQL Server实例支持返回该参数。
#[serde(rename = "MaxPhysicalReadCounts")]
pub max_physical_read_counts: Option<i64>,
/// 受影响的行数(最大值)。
/// >仅SQL Server实例支持返回该参数。
#[serde(rename = "MaxRowsAffectedCounts")]
pub max_rows_affected_counts: Option<i64>,
/// I/O写次数(最小值)。
/// >仅SQL Server实例支持返回该参数。
#[serde(rename = "MinIOWriteCounts")]
pub min_io_write_counts: Option<i64>,
/// 最后一次受影响的行数(最小值)。
/// >仅SQL Server实例支持返回该参数。
#[serde(rename = "MinLastRowsAffectedCounts")]
pub min_last_rows_affected_counts: Option<i64>,
/// 逻辑读次数(最小值)。
/// >仅SQL Server实例支持返回该参数。
#[serde(rename = "MinLogicalReadCounts")]
pub min_logical_read_counts: Option<i64>,
/// 物理读次数(最小值)。
/// >仅SQL Server实例支持返回该参数。
#[serde(rename = "MinPhysicalReadCounts")]
pub min_physical_read_counts: Option<i64>,
/// 受影响的行数(最小值)。
/// >仅SQL Server实例支持返回该参数。
#[serde(rename = "MinRowsAffectedCounts")]
pub min_rows_affected_counts: Option<i64>,
/// MySQL执行次数(总值)。
#[serde(rename = "MySQLTotalExecutionCounts")]
pub my_sql_total_execution_counts: Option<i64>,
/// MySQL执行时长(总值),单位:秒。
#[serde(rename = "MySQLTotalExecutionTimes")]
pub my_sql_total_execution_times: Option<i64>,
/// 解析的SQL行数(最大值)。
#[serde(rename = "ParseMaxRowCount")]
pub parse_max_row_count: Option<i64>,
/// 解析的SQL行数(总值)。
#[serde(rename = "ParseTotalRowCounts")]
pub parse_total_row_counts: Option<i64>,
/// 数据报表生成日期。
#[serde(rename = "ReportTime")]
pub report_time: Option<String>,
/// 返回的SQL行数(最大值)。
#[serde(rename = "ReturnMaxRowCount")]
pub return_max_row_count: Option<i64>,
/// 返回的SQL行数(总值)。
#[serde(rename = "ReturnTotalRowCounts")]
pub return_total_row_counts: Option<i64>,
/// 慢日志统计里的SQL语句唯一标识符,可用于获取该SQL语句的慢日志明细。
#[serde(rename = "SQLHASH")]
pub sqlhash: Option<String>,
/// 对应的是慢日志统计模版SQL的ID,现已废弃,请使用**SQLHASH**。
#[serde(rename = "SQLIdStr")]
pub sql_id_str: Option<String>,
/// CPU查询时间(平均值),单位:毫秒。
/// >仅SQL Server实例支持返回该参数。
#[serde(rename = "SQLServerAvgCpuTime")]
pub sql_server_avg_cpu_time: Option<i64>,
/// 执行时间(平均值),单位:毫秒。
/// >仅SQL Server实例支持返回该参数。
#[serde(rename = "SQLServerAvgExecutionTime")]
pub sql_server_avg_execution_time: Option<i64>,
/// CPU查询时间(最大值),单位:毫秒。
/// >仅SQL Server实例支持返回该参数。
#[serde(rename = "SQLServerMaxCpuTime")]
pub sql_server_max_cpu_time: Option<i64>,
/// CPU查询时间(最小值),单位:毫秒。
/// >仅SQL Server实例支持返回该参数。
#[serde(rename = "SQLServerMinCpuTime")]
pub sql_server_min_cpu_time: Option<i64>,
/// 执行时间(最小值),单位:毫秒。
/// >仅SQL Server实例支持返回该参数。
#[serde(rename = "SQLServerMinExecutionTime")]
pub sql_server_min_execution_time: Option<i64>,
/// CPU查询时间(总值),单位:毫秒。
/// >仅SQL Server实例支持返回该参数。
#[serde(rename = "SQLServerTotalCpuTime")]
pub sql_server_total_cpu_time: Option<i64>,
/// SQL Server执行次数(总值)。
#[serde(rename = "SQLServerTotalExecutionCounts")]
pub sql_server_total_execution_counts: Option<i64>,
/// SQL Server执行时长(总值),单位:毫秒。
#[serde(rename = "SQLServerTotalExecutionTimes")]
pub sql_server_total_execution_times: Option<i64>,
/// SQL语句。
#[serde(rename = "SQLText")]
pub sql_text: Option<String>,
/// 慢查询汇总标识ID。
#[serde(rename = "SlowLogId")]
pub slow_log_id: Option<i64>,
/// I/O写次数(总值)。
/// >仅SQL Server实例支持返回该参数。
#[serde(rename = "TotalIOWriteCounts")]
pub total_io_write_counts: Option<i64>,
/// 最后一次受影响的行数(总值)。
/// >仅SQL Server实例支持返回该参数。
#[serde(rename = "TotalLastRowsAffectedCounts")]
pub total_last_rows_affected_counts: Option<i64>,
/// 锁定时长(总值),单位:秒。
#[serde(rename = "TotalLockTimes")]
pub total_lock_times: Option<i64>,
/// 逻辑读次数(总值)。
#[serde(rename = "TotalLogicalReadCounts")]
pub total_logical_read_counts: Option<i64>,
/// 物理读次数(总值)。
#[serde(rename = "TotalPhysicalReadCounts")]
pub total_physical_read_counts: Option<i64>,
/// 影响的行数(总值)。
#[serde(rename = "TotalRowsAffectedCounts")]
pub total_rows_affected_counts: Option<i64>,
}
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct SlowLogsResponseItems {
/// 慢日志信息列表。
#[serde(rename = "SQLSlowLog")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub sql_slow_log: Vec<SlowLog>,
}
/// 慢日志明细详情。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct SlowRecord {
/// 连接的应用名称。
/// >仅SQL Server实例支持。
#[serde(rename = "ApplicationName")]
pub application_name: Option<String>,
/// 客户端主机名。
/// >仅SQL Server实例支持。
#[serde(rename = "ClientHostName")]
pub client_host_name: Option<String>,
/// CPU处理时长。单位:毫秒(ms)。
/// >仅SQL Server实例支持。
#[serde(rename = "CpuTime")]
pub cpu_time: Option<i64>,
/// 数据库名称。
#[serde(rename = "DBName")]
pub db_name: Option<String>,
/// 执行开始时间。格式:<i>yyyy-MM-dd</i>T<i>HH:mm:ss</i>Z(UTC时间)。
#[serde(rename = "ExecutionStartTime")]
pub execution_start_time: Option<String>,
/// 连接数据库的客户端名称及地址。
#[serde(rename = "HostAddress")]
pub host_address: Option<String>,
/// 最后一条语句的影响行数。
/// >仅SQL Server实例支持。
#[serde(rename = "LastRowsAffectedCount")]
pub last_rows_affected_count: Option<i64>,
/// 锁定时长。单位:秒(s)。
#[serde(rename = "LockTimes")]
pub lock_times: Option<i64>,
/// 逻辑读次数。
/// >仅SQL Server实例支持。
#[serde(rename = "LogicalIORead")]
pub logical_io_read: Option<i64>,
/// 解析行数。
#[serde(rename = "ParseRowCounts")]
pub parse_row_counts: Option<i64>,
/// 物理读次数。
/// >仅SQL Server实例支持。
#[serde(rename = "PhysicalIORead")]
pub physical_io_read: Option<i64>,
/// 执行时长。单位:毫秒(ms)。
///
/// > 对于SQL Server,该参数的单位为微秒(μs)。
#[serde(rename = "QueryTimeMS")]
pub query_time_ms: Option<i64>,
/// 执行时长。单位:秒(s)。
///
/// > 对于SQL Server,该参数的单位为毫秒(ms)。
#[serde(rename = "QueryTimes")]
pub query_times: Option<i64>,
/// 返回行数。
#[serde(rename = "ReturnRowCounts")]
pub return_row_counts: Option<i64>,
/// 影响行数。
/// >仅SQL Server实例支持。
#[serde(rename = "RowsAffectedCount")]
pub rows_affected_count: Option<i64>,
/// 慢日志明细里的SQL语句唯一标识符。
#[serde(rename = "SQLHash")]
pub sql_hash: Option<String>,
/// SQL命令详情。
#[serde(rename = "SQLText")]
pub sql_text: Option<String>,
/// 用户名。
/// >仅SQL Server实例支持。
#[serde(rename = "UserName")]
pub user_name: Option<String>,
/// I/O写入次数。
/// >仅SQL Server实例支持。
#[serde(rename = "WriteIOCount")]
pub write_io_count: Option<i64>,
#[serde(rename = "LockTimeMS")]
pub lock_time_ms: Option<i64>,
}
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct SlowLogRecordsResponseItems {
/// 慢日志明细列表。
#[serde(rename = "SQLSlowRecord")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub sql_slow_record: Vec<SlowRecord>,
}
/// 错误日志明细详情。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct ErrorLog {
/// 错误日志生成时间。格式:<i>yyyy-MM-dd</i>T<i>HH:mm:ss</i>Z(UTC时间)。
#[serde(rename = "CreateTime")]
pub create_time: Option<String>,
/// 错误日志信息。
#[serde(rename = "ErrorInfo")]
pub error_info: Option<String>,
/// 用户ip
#[serde(rename = "UserIp")]
pub user_ip: Option<String>,
/// 数据库名。
#[serde(rename = "Database")]
pub database: Option<String>,
/// 数据库用户
#[serde(rename = "User")]
pub user: Option<String>,
}
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct ErrorLogsResponseItems {
/// 错误日志明细列表。
#[serde(rename = "ErrorLog")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub error_log: Vec<ErrorLog>,
}
/// SQL审计日志详情。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct SqlRecord {
/// 执行操作的账号名称。
#[serde(rename = "AccountName")]
pub account_name: Option<String>,
/// 数据库名称。
#[serde(rename = "DBName")]
pub db_name: Option<String>,
/// 执行时间。格式:<i>yyyy-MM-dd</i>T<i>HH:mm:ss</i>Z(UTC时间)。
#[serde(rename = "ExecuteTime")]
pub execute_time: Option<String>,
/// 连接数据库的客户端IP地址。
#[serde(rename = "HostAddress")]
pub host_address: Option<String>,
/// 返回记录数。
#[serde(rename = "ReturnRowCounts")]
pub return_row_counts: Option<i64>,
/// SQL语句。
#[serde(rename = "SQLText")]
pub sql_text: Option<String>,
/// 线程ID。
#[serde(rename = "ThreadID")]
pub thread_id: Option<String>,
/// 执行耗时,单位:微秒。
#[serde(rename = "TotalExecutionTimes")]
pub total_execution_times: Option<i64>,
}
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct LLogRecordsResponseItems {
/// SQL审计日志列表。
#[serde(rename = "SQLRecord")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub sql_record: Vec<SqlRecord>,
}
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct BaksetIds {
/// 删除的备份集ID列表。
#[serde(rename = "DeletedBaksetIds")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub deleted_bakset_ids: Vec<i32>,
}
/// 单库备份下载链接详情。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct DbBackupDownloadLinkByDb {
/// 数据库名称。
#[serde(rename = "DataBase")]
pub data_base: Option<String>,
/// 下载链接地址。
#[serde(rename = "DownloadLink")]
pub download_link: Option<String>,
/// 内网下载链接地址。
#[serde(rename = "IntranetDownloadLink")]
pub intranet_download_link: Option<String>,
}
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct ItemBackupDownloadLinkByDb {
/// 单库备份下载链接列表。
///
/// > 云盘实例不返回该参数。
#[serde(rename = "BackupDownloadLinkByDB")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub backup_download_link_by_db: Vec<DbBackupDownloadLinkByDb>,
}
/// 备份集列表详情。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct DescribeBackupsResponseItemsBackup {
#[serde(rename = "BackupDownloadLinkByDB")]
pub backup_download_link_by_db: Option<ItemBackupDownloadLinkByDb>,
/// 公网下载地址,若当前不可下载,则返回空值。
///
/// 例如:备份方式为**快照备份**的SQL Server实例会返回空值。
///
/// > 云盘实例不返回该参数。
#[serde(rename = "BackupDownloadURL")]
pub backup_download_url: Option<String>,
/// 本次备份结束时间。格式:<i>yyyy-MM-dd</i>T<i>HH:mm</i>Z(UTC时间)。
#[serde(rename = "BackupEndTime")]
pub backup_end_time: Option<String>,
/// 备份集ID。
#[serde(rename = "BackupId")]
pub backup_id: Option<String>,
/// 备份任务的发起者。返回值:
/// * **System**:系统自动发起。
/// * **User**:用户手动发起。
#[serde(rename = "BackupInitiator")]
pub backup_initiator: Option<String>,
/// 内网下载地址,若当前不可下载,则返回空值。
///
/// 例如:备份方式为**快照备份**的SQL Server实例会返回空值。
///
/// > 云盘实例不返回该参数。
#[serde(rename = "BackupIntranetDownloadURL")]
pub backup_intranet_download_url: Option<String>,
/// 备份方式,返回值:
/// * **Logical**:逻辑备份
/// * **Physical**:物理备份
/// * **Snapshot**:快照备份
#[serde(rename = "BackupMethod")]
pub backup_method: Option<String>,
/// 备份模式,返回值:
/// * **Automated**:系统自动备份
/// * **Manual**:手动备份
#[serde(rename = "BackupMode")]
pub backup_mode: Option<String>,
/// 备份文件大小,单位:Byte。
#[serde(rename = "BackupSize")]
pub backup_size: Option<i64>,
/// 本次备份开始时间。格式:<i>yyyy-MM-dd</i>T<i>HH:mm</i>Z(UTC时间)。
#[serde(rename = "BackupStartTime")]
pub backup_start_time: Option<String>,
/// 备份集状态。
#[serde(rename = "BackupStatus")]
pub backup_status: Option<String>,
/// 备份类型,返回值:
/// * **FullBackup**:全量备份
/// * **IncrementalBackup**:增量备份
#[serde(rename = "BackupType")]
pub backup_type: Option<String>,
/// 校验和,采用CRC64算法。
#[serde(rename = "Checksum")]
pub checksum: Option<String>,
/// 备份集的一致性时间点。返回值为时间戳。
/// >仅MySQL 5.6返回本参数,其他版本返回0。
#[serde(rename = "ConsistentTime")]
pub consistent_time: Option<i64>,
/// SQL Server实例备份模式,分为常规备份模式(支持全量和增量恢复)和仅复制模式(仅支持全量恢复),返回值:
/// * 0:常规备份模式
/// * 1:仅复制模式
#[serde(rename = "CopyOnlyBackup")]
pub copy_only_backup: Option<String>,
/// 实例ID。
#[serde(rename = "DBInstanceId")]
pub db_instance_id: Option<String>,
/// 备份集的加密信息。
#[serde(rename = "Encryption")]
pub encryption: Option<String>,
/// 数据库类型。返回值:
/// - MySQL
/// - SQLServer
/// - PostgreSQL
/// - MariaDB
#[serde(rename = "Engine")]
pub engine: Option<String>,
/// 数据库版本。
#[serde(rename = "EngineVersion")]
pub engine_version: Option<String>,
/// 产生备份集的实例编号,用于区分该备份集产生于主实例或备实例。
#[serde(rename = "HostInstanceID")]
pub host_instance_id: Option<String>,
/// 备份集是否可用,返回值:
/// * **0**:不可用
/// * **1**:可用
#[serde(rename = "IsAvail")]
pub is_avail: Option<i32>,
/// 库表恢复的备份集状态,返回值:
/// * **OK**:正常。
/// * **LARGE**:表数量过多,不能用于库表恢复。
/// * **EMPTY**:备份失败的备份集。
///
/// > 空串表示未开通库表恢复的备份集。
#[serde(rename = "MetaStatus")]
pub meta_status: Option<String>,
/// 备份集的存储介质,返回值:
/// * **0**:常规存储
/// * **1**:归档存储
#[serde(rename = "StorageClass")]
pub storage_class: Option<String>,
/// 该数据备份是否可删除,返回值:
/// * **Enabled**:可删除
/// * **Disabled**:不可删除
#[serde(rename = "StoreStatus")]
pub store_status: Option<String>,
/// 备份集过期时间,格式为<i>yyyy-MM-dd</i>T<i>HH:mm</i>Z(UTC 时间)。
/// >
/// > - 仅SQL Server单库备份设置**备份集保留天数**后返回该值。
#[serde(rename = "ExpectExpireTime")]
pub expect_expire_time: Option<String>,
}
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct DescribeBackupsResponseItems {
/// 备份集列表。
#[serde(rename = "Backup")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub backup: Vec<DescribeBackupsResponseItemsBackup>,
}
/// 备份集列表。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct DetachedBackupsResponseItemsBackup {
/// 公网下载地址,若当前不可下载,则为空串。
#[serde(rename = "BackupDownloadURL")]
pub backup_download_url: Option<String>,
/// 本次备份结束时间。
///
/// 格式:<i>yyyy-MM-dd</i>T<i>HH:mm</i>Z(UTC时间)。
#[serde(rename = "BackupEndTime")]
pub backup_end_time: Option<String>,
/// 备份集ID。
#[serde(rename = "BackupId")]
pub backup_id: Option<String>,
/// 内网下载地址,若当前不可下载,则为空串。
#[serde(rename = "BackupIntranetDownloadURL")]
pub backup_intranet_download_url: Option<String>,
/// 备份方式,返回值:
///
/// - **Logical**:逻辑备份
/// - **Physical**:物理备份
/// - **Snapshot**:快照备份
#[serde(rename = "BackupMethod")]
pub backup_method: Option<String>,
/// 备份模式,返回值:
///
/// - **Automated**:系统自动备份
/// - **Manual**:手动备份
#[serde(rename = "BackupMode")]
pub backup_mode: Option<String>,
/// 备份文件大小,单位:Byte。
#[serde(rename = "BackupSize")]
pub backup_size: Option<i64>,
/// 本次备份开始时间。
///
/// 格式:<i>yyyy-MM-dd</i>T<i>HH:mm</i>Z(UTC时间)。
#[serde(rename = "BackupStartTime")]
pub backup_start_time: Option<String>,
/// 备份集状态,返回值:
///
/// - **Success**:已完成备份
/// - **Failed**:备份失败
#[serde(rename = "BackupStatus")]
pub backup_status: Option<String>,
/// 备份类型,返回值:
///
/// - **FullBackup**:全量备份
/// - **IncrementalBackup**:增量备份
#[serde(rename = "BackupType")]
pub backup_type: Option<String>,
/// 备份集的一致性时间点。返回值为时间戳。
///
/// > 仅MySQL 5.6返回本参数,其他版本返回0。
#[serde(rename = "ConsistentTime")]
pub consistent_time: Option<i64>,
/// 实例备注。
#[serde(rename = "DBInstanceComment")]
pub db_instance_comment: Option<String>,
/// 实例ID。
#[serde(rename = "DBInstanceId")]
pub db_instance_id: Option<String>,
/// 产生备份集的实例编号,用于区分该备份集产生于主实例或备实例。
#[serde(rename = "HostInstanceID")]
pub host_instance_id: Option<String>,
/// 备份集是否可用,返回值:
///
/// - **0**:不可用
/// - **1**:可用
#[serde(rename = "IsAvail")]
pub is_avail: Option<i32>,
/// 库表恢复的备份集状态,返回值:
///
/// - **OK**:正常。
/// - **LARGE**:表数量过多,不能用于库表恢复。
/// - **EMPTY**:备份失败的备份集。
#[serde(rename = "MetaStatus")]
pub meta_status: Option<String>,
/// 该数据备份是否可删除,返回值:
///
/// - **Enabled**:可删除
/// - **Disabled**:不可删除
#[serde(rename = "StoreStatus")]
pub store_status: Option<String>,
}
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct DetachedBackupsResponseItems {
/// 备份集列表。
#[serde(rename = "Backup")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub backup: Vec<DetachedBackupsResponseItemsBackup>,
}
/// 备份任务详情。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct BackupJob {
/// 任务生成的备份集ID。
/// >当返回参数**BackupStatus**为**Finished**后,传入请求参数**BackupJobId**才能够查看到备份集ID。
#[serde(rename = "BackupId")]
pub backup_id: Option<String>,
/// 备份任务ID。
#[serde(rename = "BackupJobId")]
pub backup_job_id: Option<String>,
/// 备份程序状态。取值:
/// * **NoStart**:未开始
/// * **Preparing**:准备中
/// * **Waiting**:等待中
/// * **Uploading**:上传中
/// * **Checking**:检查中
/// * **Finished**:已完成
#[serde(rename = "BackupProgressStatus")]
pub backup_progress_status: Option<String>,
/// 备份任务状态。取值:
/// * **NoStart**:未开始
/// * **Checking**:检查备份
/// * **Preparing**:准备备份
/// * **Waiting**:等待备份
/// * **Uploading**:上传备份
/// * **Finished**:完成备份
/// * **Failed**:备份失败
///
/// >有任务执行时才会返回本参数。
#[serde(rename = "BackupStatus")]
pub backup_status: Option<String>,
/// 备份模式,取值:
/// * **Automated**:系统自动备份
/// * **Manual**:手动备份
#[serde(rename = "JobMode")]
pub job_mode: Option<String>,
/// 任务进度百分比。
#[serde(rename = "Process")]
pub process: Option<String>,
/// 任务类型,取值:
/// * **TempBackupTask**:临时备份任务
/// * **NormalBackupTask**:普通备份任务
#[serde(rename = "TaskAction")]
pub task_action: Option<String>,
}
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct BackupTasksResponseItems {
/// 备份任务列表。
#[serde(rename = "BackupJob")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub backup_job: Vec<BackupJob>,
}
/// 日志文件详情。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct BinlogFilesResponseItemsBinLogFile {
/// 校验和,采用CRC64算法。
#[serde(rename = "Checksum")]
pub checksum: Option<String>,
/// 支持HTTP协议的下载链接URL,NULL表示没有下载链接。
#[serde(rename = "DownloadLink")]
pub download_link: Option<String>,
/// 日志文件大小。
///
/// 单位:Byte
#[serde(rename = "FileSize")]
pub file_size: Option<i64>,
/// 日志文件所在实例编号,用户区分该日志文件中日志产生于主实例或备实例。
/// > 您可以前往RDS管理控制台,进入实例详情页,然后在左侧导航栏单击**服务可用性**,查看**主库编号**和**备库编号**。
#[serde(rename = "HostInstanceID")]
pub host_instance_id: Option<String>,
/// 内网下载链接URL。
#[serde(rename = "IntranetDownloadLink")]
pub intranet_download_link: Option<String>,
/// URL过期时间。
///
/// 格式:<i>yyyy-MM-dd</i>T<i>HH:mm:ss</i>Z(UTC时间)
#[serde(rename = "LinkExpiredTime")]
pub link_expired_time: Option<String>,
/// 日志文件记录的开始时间。
///
/// 格式:<i>yyyy-MM-dd</i>T<i>HH:mm:ss</i>Z(UTC时间)
#[serde(rename = "LogBeginTime")]
pub log_begin_time: Option<String>,
/// 日志文件记录的结束时间。
///
/// 格式:<i>yyyy-MM-dd</i>T<i>HH:mm:ss</i>Z(UTC时间)
#[serde(rename = "LogEndTime")]
pub log_end_time: Option<String>,
/// 日志文件名称。
#[serde(rename = "LogFileName")]
pub log_file_name: Option<String>,
/// OSS的存储状态。
///
/// 返回值:
/// * **Uploading**:上传中
/// * **Completed**:上传完成
#[serde(rename = "RemoteStatus")]
pub remote_status: Option<String>,
}
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct BinlogFilesResponseItems {
/// 日志文件明细列表。
#[serde(rename = "BinLogFile")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub bin_log_file: Vec<BinlogFilesResponseItemsBinLogFile>,
}
/// 日志文件详情。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct BackupFilesResponseItemsBinLogFile {
/// HTTP协议的下载链接。若当前不可下载,则为空串。
#[serde(rename = "DownloadLink")]
pub download_link: Option<String>,
/// 日志文件大小。单位:Byte。
#[serde(rename = "FileSize")]
pub file_size: Option<i64>,
/// 内网下载地址,若当前不可下载,则为空串。有效期1小时。
#[serde(rename = "IntranetDownloadLink")]
pub intranet_download_link: Option<String>,
/// 链接过期时间。格式:<i>yyyy-MM-dd</i>T<i>HH:mm:ss</i>Z(UTC时间)。
#[serde(rename = "LinkExpiredTime")]
pub link_expired_time: Option<String>,
/// 日志文件记录的开始时间。格式:<i>yyyy-MM-dd</i>T<i>HH:mm</i>Z(UTC时间)。
#[serde(rename = "LogBeginTime")]
pub log_begin_time: Option<String>,
/// 日志文件记录的结束时间。格式:<i>yyyy-MM-dd</i>T<i>HH:mm</i>Z(UTC时间)。
#[serde(rename = "LogEndTime")]
pub log_end_time: Option<String>,
}
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct DescribeLogBackupFilesResponseItems {
/// 日志文件列表。
#[serde(rename = "BinLogFile")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub bin_log_file: Vec<BackupFilesResponseItemsBinLogFile>,
}
/// 备份中的库表信息详情。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct DescribeMetaListResponseItemsMeta {
/// 数据库名称。
#[serde(rename = "Database")]
pub database: Option<String>,
/// 表的大小,单位:KB。
#[serde(rename = "Size")]
pub size: Option<String>,
/// 表名称。
#[serde(rename = "Tables")]
pub tables: Option<String>,
}
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct DescribeMetaListResponseItems {
/// 备份中的库表信息列表。
#[serde(rename = "Meta")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub meta: Vec<DescribeMetaListResponseItemsMeta>,
}
/// Serverless选项。仅在需要将数据克隆至Serverless实例时传入。
///
/// > 该参数仅支持中国站。
#[derive(Debug, Clone, Default, serde::Serialize)]
pub struct CloneDBInstanceServerlessConfig {
/// 是否开启MySQL Serverless实例的自动启停功能。10分钟无任何连接进入暂停状态,连接进入时会自动唤醒。取值:
///
/// - **true**:启用
/// - **false**(默认):不启用
///
/// >- 仅MySQL Serverless实例支持该参数。
/// >- 该参数仅支持中国站。
#[serde(rename = "AutoPause")]
#[serde(skip_serializing_if = "Option::is_none")]
pub auto_pause: Option<bool>,
/// 实例RCU(RDS Capacity Unit)的自动扩缩范围最大值。取值:
///
/// - MySQL:**1~8**
/// - SQL Server:**2~8**
/// - PostgreSQL:**1~12**
///
/// >- 该参数的值必须大于等于**MinCapacity**,且仅支持传入**整数**。
/// >- 该参数仅支持中国站。
#[serde(rename = "MaxCapacity")]
#[serde(skip_serializing_if = "Option::is_none")]
pub max_capacity: Option<f64>,
/// 实例RCU(RDS Capacity Unit)的自动扩缩范围最小值。取值:
///
/// - MySQL:**0.5~8**
/// - SQL Server:**2~8**(仅支持整数)
/// - PostgreSQL:**0.5~12**
///
/// >- 该参数的值必须小于等于**MaxCapacity**。
/// >- 该参数仅支持中国站。
#[serde(rename = "MinCapacity")]
#[serde(skip_serializing_if = "Option::is_none")]
pub min_capacity: Option<f64>,
/// 是否开启MySQL Serverless实例的强制弹性扩缩容。实例RCU的弹性扩缩容通常会立刻生效,但在某些特殊情况下无法即时完成扩缩容,此时可开启本参数进行强制扩缩容。取值:
///
/// - **true**:启用
/// - **false**(默认):不启用
///
/// >- 仅MySQL Serverless实例支持该参数。
/// >- 该参数仅支持中国站。
#[serde(rename = "SwitchForce")]
#[serde(skip_serializing_if = "Option::is_none")]
pub switch_force: Option<bool>,
}
/// 备份集的库表信息。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct BackupMetaListResponseItemsMeta {
/// 数据库名称。
#[serde(rename = "Database")]
pub database: Option<String>,
/// 表的大小,单位:KB。多个表用英文逗号(,)隔开。
#[serde(rename = "Size")]
pub size: Option<String>,
/// 表名称,多个表用英文逗号(,)隔开。
#[serde(rename = "Tables")]
pub tables: Option<String>,
}
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct BackupMetaListResponseItems {
/// 备份集的库表信息列表。
#[serde(rename = "Meta")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub meta: Vec<BackupMetaListResponseItemsMeta>,
}
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct RestoreRegions {
/// 备份文件可以进行恢复的地域列表,即备份文件可以恢复到哪些地域。
#[serde(rename = "RestoreRegion")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub restore_region: Vec<String>,
}
/// 跨地域备份详情。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct BackupsResponseItemsItem {
/// RDS侧的备份生成时间。
#[serde(rename = "BackupEndTime")]
pub backup_end_time: Option<String>,
/// 跨地域备份方式,返回值:
/// * **L**:逻辑备份
/// * **P**:物理备份
#[serde(rename = "BackupMethod")]
pub backup_method: Option<String>,
/// 备份文件的备份策略,返回值:
/// * **0**:实例备份
/// * **1**:单库备份
#[serde(rename = "BackupSetScale")]
pub backup_set_scale: Option<i32>,
/// 转储完成的备份文件状态,返回值:
/// * **0**:完成备份
/// * **1**:备份失败
#[serde(rename = "BackupSetStatus")]
pub backup_set_status: Option<i32>,
/// 跨地域备份开始时间。
#[serde(rename = "BackupStartTime")]
pub backup_start_time: Option<String>,
/// 跨地域备份类型,返回值:
/// * **F**:全量备份
/// * **I**:增量备份
#[serde(rename = "BackupType")]
pub backup_type: Option<String>,
/// 实例系列,返回值:
///
/// * **Basic**:基础系列
/// * **HighAvailability**:高可用系列
/// * **Finance**:MySQL三节点企业系列(仅中国站支持)
#[serde(rename = "Category")]
pub category: Option<String>,
/// 备份文件里数据的时间点。
#[serde(rename = "ConsistentTime")]
pub consistent_time: Option<String>,
/// 跨地域备份文件外网下载链接。
#[serde(rename = "CrossBackupDownloadLink")]
pub cross_backup_download_link: Option<String>,
/// 跨地域备份文件ID。
#[serde(rename = "CrossBackupId")]
pub cross_backup_id: Option<i32>,
/// 跨地域备份的目的地域ID。
#[serde(rename = "CrossBackupRegion")]
pub cross_backup_region: Option<String>,
/// 跨地域备份文件压缩包名称。
#[serde(rename = "CrossBackupSetFile")]
pub cross_backup_set_file: Option<String>,
/// 备份文件存储位置。
#[serde(rename = "CrossBackupSetLocation")]
pub cross_backup_set_location: Option<String>,
/// 跨地域备份文件大小,单位:Byte。
#[serde(rename = "CrossBackupSetSize")]
pub cross_backup_set_size: Option<i64>,
/// 存储类型,返回值:
///
/// * **local_ssd**:高性能本地盘
/// * **cloud_ssd**:SSD云盘
/// * **cloud_essd**:ESSD云盘
#[serde(rename = "DBInstanceStorageType")]
pub db_instance_storage_type: Option<String>,
/// 数据库类型。
#[serde(rename = "Engine")]
pub engine: Option<String>,
/// 数据库版本。
#[serde(rename = "EngineVersion")]
pub engine_version: Option<String>,
/// 实例编号。用于区分该备份集产生于主实例或备实例。
#[serde(rename = "InstanceId")]
pub instance_id: Option<i32>,
#[serde(rename = "RestoreRegions")]
pub restore_regions: Option<RestoreRegions>,
}
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct RegionBackupsResponseItems {
/// 跨地域备份列表。
#[serde(rename = "Item")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub item: Vec<BackupsResponseItemsItem>,
}
/// 跨地域日志备份详情。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct FilesResponseItemsItem {
/// 跨地域备份目的地域ID。
#[serde(rename = "CrossBackupRegion")]
pub cross_backup_region: Option<String>,
/// 跨地域日志备份外网下载链接。
#[serde(rename = "CrossDownloadLink")]
pub cross_download_link: Option<String>,
/// 跨地域日志备份内网下载链接。
#[serde(rename = "CrossIntranetDownloadLink")]
pub cross_intranet_download_link: Option<String>,
/// 跨地域日志备份文件ID。
#[serde(rename = "CrossLogBackupId")]
pub cross_log_backup_id: Option<i32>,
/// 跨地域日志备份文件大小,单位:Byte。
#[serde(rename = "CrossLogBackupSize")]
pub cross_log_backup_size: Option<i64>,
/// 实例编号。
#[serde(rename = "InstanceId")]
pub instance_id: Option<i32>,
/// 下载链接过期时间。格式:<i>yyyy-MM-dd</i>T<i>HH:mm:ss</i>Z(UTC时间)。
#[serde(rename = "LinkExpiredTime")]
pub link_expired_time: Option<String>,
/// 跨地域日志备份文件记录的开始时间。格式:<i>yyyy-MM-dd</i>T<i>HH:mm:ss</i>Z(UTC时间)。
#[serde(rename = "LogBeginTime")]
pub log_begin_time: Option<String>,
/// 跨地域日志备份文件记录的结束时间。格式:<i>yyyy-MM-dd</i>T<i>HH:mm:ss</i>Z(UTC时间)。
#[serde(rename = "LogEndTime")]
pub log_end_time: Option<String>,
/// 跨地域日志备份文件名称。
#[serde(rename = "LogFileName")]
pub log_file_name: Option<String>,
}
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct RegionLogBackupFilesResponseItems {
/// 跨地域日志备份列表。
#[serde(rename = "Item")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub item: Vec<FilesResponseItemsItem>,
}
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct RegionResponseRegions {
/// 所查询地域当前可以进行跨地域备份的目的地域列表。
#[serde(rename = "Region")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub region: Vec<String>,
}
/// 跨地域备份设置信息。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct InstanceResponseItemsItem {
/// 跨地域备份总开关,取值:
/// * **Disable**:关闭
/// * **Enable**:开启
#[serde(rename = "BackupEnabled")]
pub backup_enabled: Option<String>,
/// 跨地域数据备份开启时间。格式:<i>yyyy-MM-dd</i>T<i>HH:mm:ss</i>Z(UTC时间)。
#[serde(rename = "BackupEnabledTime")]
pub backup_enabled_time: Option<String>,
/// 跨地域备份目的地域ID。
#[serde(rename = "CrossBackupRegion")]
pub cross_backup_region: Option<String>,
/// 跨地域备份保存类型。默认值:**1**,表示每个备份都保存。
#[serde(rename = "CrossBackupType")]
pub cross_backup_type: Option<String>,
/// 实例名称,长度为2~256个字符。以中文、英文字母开头,可以包含数字、中文、英文、下划线(_)、短横线(-)。
/// >不能以 http:// 和 https:// 开头。
#[serde(rename = "DBInstanceDescription")]
pub db_instance_description: Option<String>,
/// 实例ID。
#[serde(rename = "DBInstanceId")]
pub db_instance_id: Option<String>,
/// 实例状态,详情请参见[实例状态表](~~26315~~)。
#[serde(rename = "DBInstanceStatus")]
pub db_instance_status: Option<String>,
/// 数据库类型。
#[serde(rename = "Engine")]
pub engine: Option<String>,
/// 数据库版本。
#[serde(rename = "EngineVersion")]
pub engine_version: Option<String>,
/// 实例锁定状态,取值:
/// * **Unlock**:正常
/// * **ManualLock**:手动触发锁定
/// * **LockByExpiration**:实例过期自动锁定
/// * **LockByRestoration**:实例回滚前的自动锁定
/// * **LockByDiskQuota**:实例空间满自动锁定(不可访问实例)
#[serde(rename = "LockMode")]
pub lock_mode: Option<String>,
/// 跨地域日志备份开关,取值:
/// * **Disable**:关闭
/// * **Enable**:开启
#[serde(rename = "LogBackupEnabled")]
pub log_backup_enabled: Option<String>,
/// 跨地域日志备份开启时间。格式:<i>yyyy-MM-dd</i>T<i>HH:mm:ss</i>Z(UTC时间)。
#[serde(rename = "LogBackupEnabledTime")]
pub log_backup_enabled_time: Option<String>,
/// 跨地域备份保留方式。当前仅支持按配置时长保留,默认值:**1**。
#[serde(rename = "RetentType")]
pub retent_type: Option<i32>,
/// 跨地域备份保留天数,取值:**7~1825**。
#[serde(rename = "Retention")]
pub retention: Option<i32>,
}
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct InstanceResponseItems {
/// 跨地域备份设置列表。
#[serde(rename = "Item")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub item: Vec<InstanceResponseItemsItem>,
}
/// 性能参数值详情。
///
/// > 数组格式:{value1, value2, …}。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct InstancePerformanceResponsePerformanceKeysPerformanceKeyItemValuesPerformanceValue {
/// 记录日期。格式:<i>yyyy-MM-dd</i>T<i>HH:mm:ss</i>Z(UTC时间)。
#[serde(rename = "Date")]
pub date: Option<String>,
/// 性能值。
#[serde(rename = "Value")]
pub value: Option<String>,
}
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct InstancePerformanceResponsePerformanceKeysPerformanceKeyItemValues {
/// 性能参数值列表。
#[serde(rename = "PerformanceValue")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub performance_value:
Vec<InstancePerformanceResponsePerformanceKeysPerformanceKeyItemValuesPerformanceValue>,
}
/// 实例性能参数详情。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct InstancePerformanceResponsePerformanceKeysPerformanceKey {
/// 性能参数。
#[serde(rename = "Key")]
pub key: Option<String>,
/// 数据单位。
#[serde(rename = "Unit")]
pub unit: Option<String>,
/// 性能值的格式。
///
/// > 如果性能值由多个参数构成,以“&”分隔,例如com_delete&com_insert&com_insert_select&com_replace。
#[serde(rename = "ValueFormat")]
pub value_format: Option<String>,
#[serde(rename = "Values")]
pub values: Option<InstancePerformanceResponsePerformanceKeysPerformanceKeyItemValues>,
}
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct InstancePerformanceResponsePerformanceKeys {
/// 实例性能参数列表。
#[serde(rename = "PerformanceKey")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub performance_key: Vec<InstancePerformanceResponsePerformanceKeysPerformanceKey>,
}
/// 增强监控指标详情。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct AvailableMetricsResponseItem {
/// 增强指标描述信息。
#[serde(rename = "Description")]
pub description: Option<String>,
/// 增强指标类别。返回值:
/// - **os**:操作系统指标。
/// - **db**:数据库指标。
#[serde(rename = "Dimension")]
pub dimension: Option<String>,
/// 增强指标所在分组的Key。
#[serde(rename = "GroupKey")]
pub group_key: Option<String>,
/// 增强指标所在分组的名称。
#[serde(rename = "GroupKeyType")]
pub group_key_type: Option<String>,
/// 增强指标统计方法。返回值:
/// - **avg**:统计平均值。
/// - **min**:统计最小值。
/// - **max**:统计最大值。
#[serde(rename = "Method")]
pub method: Option<String>,
/// 增强指标的Key。
#[serde(rename = "MetricsKey")]
pub metrics_key: Option<String>,
/// 增强指标别名。
#[serde(rename = "MetricsKeyAlias")]
pub metrics_key_alias: Option<String>,
/// 增强指标编号。
#[serde(rename = "SortRule")]
pub sort_rule: Option<i32>,
/// 增强指标单位。
#[serde(rename = "Unit")]
pub unit: Option<String>,
}
/// 实例已开启的增强指标详情。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct InstanceMetricsResponseItem {
/// 增强指标描述信息。
#[serde(rename = "Description")]
pub description: Option<String>,
/// 增强指标类别。返回值:
/// - **os**:操作系统指标。
/// - **db**:数据库指标。
#[serde(rename = "Dimension")]
pub dimension: Option<String>,
/// 增强指标所在分组的Key。
#[serde(rename = "GroupKey")]
pub group_key: Option<String>,
/// 增强指标所在分组的名称。
#[serde(rename = "GroupKeyType")]
pub group_key_type: Option<String>,
/// 增强指标统计方法。返回值:
/// - **avg**:统计平均值。
/// - **min**:统计最小值。
/// - **max**:统计最大值。
#[serde(rename = "Method")]
pub method: Option<String>,
/// 增强指标的Key。
#[serde(rename = "MetricsKey")]
pub metrics_key: Option<String>,
/// 增强指标别名。
#[serde(rename = "MetricsKeyAlias")]
pub metrics_key_alias: Option<String>,
/// 增强指标编号。
#[serde(rename = "SortRule")]
pub sort_rule: Option<i32>,
/// 增强指标单位。
#[serde(rename = "Unit")]
pub unit: Option<String>,
}
/// 正在同步的参数详情。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct ConfigParametersDbInstanceParameter {
/// 参数描述。
#[serde(rename = "ParameterDescription")]
pub parameter_description: Option<String>,
/// 参数名称。
#[serde(rename = "ParameterName")]
pub parameter_name: Option<String>,
/// 参数值。
#[serde(rename = "ParameterValue")]
pub parameter_value: Option<String>,
}
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct ConfigParameters {
/// 正在同步的参数列表。
///
/// > 修改并提交参数后,需要等待实例同步参数,同步结束后从此列表删除。
#[serde(rename = "DBInstanceParameter")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub db_instance_parameter: Vec<ConfigParametersDbInstanceParameter>,
}
/// 参数模板信息。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct GroupInfo {
/// 参数模板ID。
#[serde(rename = "ParamGroupId")]
pub param_group_id: Option<String>,
/// 参数模板描述。
#[serde(rename = "ParameterGroupDesc")]
pub parameter_group_desc: Option<String>,
/// 参数模板名称。
#[serde(rename = "ParameterGroupName")]
pub parameter_group_name: Option<String>,
/// 参数模板类型。
#[serde(rename = "ParameterGroupType")]
pub parameter_group_type: Option<String>,
}
/// 当前运行的参数详情。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct RunningParametersDbInstanceParameter {
/// 参数默认值。
#[serde(rename = "ParameterDefaultValue")]
pub parameter_default_value: Option<String>,
/// 参数描述。
#[serde(rename = "ParameterDescription")]
pub parameter_description: Option<String>,
/// 参数名称。
#[serde(rename = "ParameterName")]
pub parameter_name: Option<String>,
/// 参数值。
#[serde(rename = "ParameterValue")]
pub parameter_value: Option<String>,
/// 参数值取值范围。
#[serde(rename = "ParameterValueRange")]
pub parameter_value_range: Option<String>,
}
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct RunningParameters {
/// 当前运行的参数列表。
#[serde(rename = "DBInstanceParameter")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub db_instance_parameter: Vec<RunningParametersDbInstanceParameter>,
}
/// 日志记录详情。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct ChangeLog {
/// 修改参数的Unix时间戳。单位:毫秒。
#[serde(rename = "ModifyTime")]
pub modify_time: Option<String>,
/// 修改后参数值。
#[serde(rename = "NewParameterValue")]
pub new_parameter_value: Option<String>,
/// 修改前参数值。
#[serde(rename = "OldParameterValue")]
pub old_parameter_value: Option<String>,
/// 参数名称。
#[serde(rename = "ParameterName")]
pub parameter_name: Option<String>,
/// 状态。取值:
/// * **Applied**:已生效。
/// * **Syncing**:正在应用,尚未生效。
#[serde(rename = "Status")]
pub status: Option<String>,
}
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct LogResponseItems {
/// 日志记录列表。
#[serde(rename = "ParameterChangeLog")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub parameter_change_log: Vec<ChangeLog>,
}
/// 参数详情。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct TemplateRecord {
/// 参数取值范围。
#[serde(rename = "CheckingCode")]
pub checking_code: Option<String>,
/// 参数是否可修改,返回值:
///
/// - **true**:是。
/// - **false**:否。
#[serde(rename = "ForceModify")]
pub force_modify: Option<String>,
/// 是否重启才生效,返回值:
///
/// - **true**:是。
/// - **false**:否。
#[serde(rename = "ForceRestart")]
pub force_restart: Option<String>,
/// 参数描述。
#[serde(rename = "ParameterDescription")]
pub parameter_description: Option<String>,
/// 参数名。
#[serde(rename = "ParameterName")]
pub parameter_name: Option<String>,
/// 参数默认值。
#[serde(rename = "ParameterValue")]
pub parameter_value: Option<String>,
}
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct ResponseParameters {
/// 参数列表。
#[serde(rename = "TemplateRecord")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub template_record: Vec<TemplateRecord>,
}
/// 模板对象。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct GroupsParameterGroup {
/// 参数模板创建时间。格式:yyyy-MM-ddTHH:mm:ssZ(UTC时间)。
#[serde(rename = "CreateTime")]
pub create_time: Option<String>,
/// 数据库引擎。
#[serde(rename = "Engine")]
pub engine: Option<String>,
/// 数据库版本。
#[serde(rename = "EngineVersion")]
pub engine_version: Option<String>,
/// 应用该参数模板是否需要重启实例。取值:
///
/// * 0:不需要重启
/// * 1:需要重启
#[serde(rename = "ForceRestart")]
pub force_restart: Option<i32>,
/// 参数模板内的参数数量。
#[serde(rename = "ParamCounts")]
pub param_counts: Option<i32>,
/// 参数模板类型。取值:
///
/// * 0:系统默认模板
/// * 1:用户自定义模板
/// * 2:系统自动备份模板(应用模板后系统会自动备份之前的参数设置为模板)
#[serde(rename = "ParameterGroupDesc")]
pub parameter_group_desc: Option<String>,
/// 参数模板ID。
#[serde(rename = "ParameterGroupId")]
pub parameter_group_id: Option<String>,
/// 参数模板名称。
#[serde(rename = "ParameterGroupName")]
pub parameter_group_name: Option<String>,
/// 参数模板类型。取值:
///
/// * 0:系统默认模板
/// * 1:用户自定义模板
/// * 2:系统自动备份模板(应用模板后系统会自动备份之前的参数设置为模板)
#[serde(rename = "ParameterGroupType")]
pub parameter_group_type: Option<i32>,
/// 最近一次参数模板更新时间。格式:yyyy-MM-ddTHH:mm:ssZ(UTC时间)。
#[serde(rename = "UpdateTime")]
pub update_time: Option<String>,
}
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct ParameterGroups {
/// 参数模板列表。
#[serde(rename = "ParameterGroup")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub parameter_group: Vec<GroupsParameterGroup>,
}
/// 参数详情。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct ParameterDetail {
/// 参数名称。
#[serde(rename = "ParamName")]
pub param_name: Option<String>,
/// 参数值。
#[serde(rename = "ParamValue")]
pub param_value: Option<String>,
}
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct ParamDetail {
/// 参数列表。
#[serde(rename = "ParameterDetail")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub parameter_detail: Vec<ParameterDetail>,
}
/// 参数模板详情。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct GroupParameterGroup {
/// 参数模板创建时间。
#[serde(rename = "CreateTime")]
pub create_time: Option<String>,
/// 数据库引擎。
#[serde(rename = "Engine")]
pub engine: Option<String>,
/// 数据库版本。
#[serde(rename = "EngineVersion")]
pub engine_version: Option<String>,
/// 应用该参数模板是否需要重启实例。取值:
/// * **0**:不需要重启
/// * **1**:需要重启
#[serde(rename = "ForceRestart")]
pub force_restart: Option<i32>,
/// 参数模板内的参数数量。
#[serde(rename = "ParamCounts")]
pub param_counts: Option<i32>,
#[serde(rename = "ParamDetail")]
pub param_detail: Option<ParamDetail>,
/// 参数模板描述。
#[serde(rename = "ParameterGroupDesc")]
pub parameter_group_desc: Option<String>,
/// 参数模板ID。
#[serde(rename = "ParameterGroupId")]
pub parameter_group_id: Option<String>,
/// 参数模板名称。
#[serde(rename = "ParameterGroupName")]
pub parameter_group_name: Option<String>,
/// 参数模板类型。取值:
/// * **0**:系统默认模板
/// * **1**:用户自定义模板
/// * **2**:系统自动备份模板(应用模板后系统会自动备份之前的参数设置为模板)
#[serde(rename = "ParameterGroupType")]
pub parameter_group_type: Option<i32>,
/// 最近一次参数模板更新时间。格式:<i>yyyy-MM-dd</i>T<i>HH:mm:ss</i>Z(UTC时间)。
#[serde(rename = "UpdateTime")]
pub update_time: Option<String>,
}
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct ParamGroup {
/// 参数模板信息列表。
#[serde(rename = "ParameterGroup")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub parameter_group: Vec<GroupParameterGroup>,
}
/// 关联实例信息。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct InfoRelatedCustinsInfo {
/// 应用参数模板的时间。
#[serde(rename = "AppliedTime")]
pub applied_time: Option<String>,
/// 实例ID。
#[serde(rename = "DBInstanceName")]
pub db_instance_name: Option<String>,
}
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct ResponseRelatedCustinsInfo {
/// 关联实例信息列表。
/// > 仅PostgreSQL模板适用。
#[serde(rename = "RelatedCustinsInfo")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub related_custins_info: Vec<InfoRelatedCustinsInfo>,
}
/// 迁移状态详情。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct FromDb {
/// 迁移任务状态。取值:
/// * **NotStart**:未开始
/// * **FullExporting**:全量导出中
/// * **FullImporting**:全量导入中
/// * **Success**:成功
/// * **Failed**:失败
/// * **Canceled**:已取消
/// * **Canceling**:正在取消
/// * **IncrementalWaiting**:增量同步等待
/// * **IncrementalImporting**:增量同步中
/// * **StopSyncing**:停止同步
#[serde(rename = "ImportDataStatus")]
pub import_data_status: Option<String>,
/// 迁移任务描述。
#[serde(rename = "ImportDataStatusDescription")]
pub import_data_status_description: Option<String>,
/// 迁移任务类型。取值:
/// * **Full**:全量迁移
/// * **Incremental**:增量迁移
#[serde(rename = "ImportDataType")]
pub import_data_type: Option<String>,
/// 迁移任务的ID。
#[serde(rename = "ImportId")]
pub import_id: Option<i32>,
/// 增量同步时间。格式:<i>yyyy-MM-dd</i>T<i>HH:mm:ss</i>Z(UTC时间)。
#[serde(rename = "IncrementalImportingTime")]
pub incremental_importing_time: Option<String>,
}
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct DatabaseResponseItems {
/// 迁移状态列表。
#[serde(rename = "ImportResultFromDB")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub import_result_from_db: Vec<FromDb>,
}
/// 运维任务详情。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct OperationTasksResponseItem {
/// 是否允许取消,1表示允许用户取消任务,0表示不允许取消。
#[serde(rename = "AllowCancel")]
pub allow_cancel: Option<String>,
/// 是否允许修改时间,1表示允许用户修改时间,0表示不允许用户修改时间。
#[serde(rename = "AllowChange")]
pub allow_change: Option<String>,
/// 事件等级代码,S1 系统运维 S0 风险修复。
#[serde(rename = "ChangeLevel")]
pub change_level: Option<String>,
/// 事件等级(英文)。
#[serde(rename = "ChangeLevelEn")]
pub change_level_en: Option<String>,
/// 事件等级(中文)。
#[serde(rename = "ChangeLevelZh")]
pub change_level_zh: Option<String>,
/// 创建时间,为UTC时间,格式为YYYY-MM-DDTHH:mm:ssZ。
#[serde(rename = "CreatedTime")]
pub created_time: Option<String>,
/// 当前可用区。
#[serde(rename = "CurrentAVZ")]
pub current_avz: Option<String>,
/// 数据库类型,如mysql/pgsql/mssql。
#[serde(rename = "DbType")]
pub db_type: Option<String>,
/// 内核版本号。
#[serde(rename = "DbVersion")]
pub db_version: Option<String>,
/// 任务执行时间可调整范围的最晚期限,为UTC时间,格式为YYYY-MM-DDTHH:mm:ssZ。
#[serde(rename = "Deadline")]
pub deadline: Option<String>,
/// 任务ID。
#[serde(rename = "Id")]
pub id: Option<i32>,
/// 事件影响。
#[serde(rename = "Impact")]
pub impact: Option<String>,
/// 事件影响(英文)。
#[serde(rename = "ImpactEn")]
pub impact_en: Option<String>,
/// 事件影响(中文)。
#[serde(rename = "ImpactZh")]
pub impact_zh: Option<String>,
/// 实例别名/实例备注。
#[serde(rename = "InsComment")]
pub ins_comment: Option<String>,
/// 实例名。
#[serde(rename = "InsName")]
pub ins_name: Option<String>,
/// 修改时间,为UTC时间,格式为YYYY-MM-DDTHH:mm:ssZ。
#[serde(rename = "ModifiedTime")]
pub modified_time: Option<String>,
/// 开始时间到切换时间之间所需的准备时间, 格式为HH:mm:ss。
#[serde(rename = "PrepareInterval")]
pub prepare_interval: Option<String>,
/// 待处理事件所属的地域ID。
#[serde(rename = "Region")]
pub region: Option<String>,
/// 执行结果信息。
#[serde(rename = "ResultInfo")]
pub result_info: Option<String>,
/// 后台执行任务的时间点,为UTC时间,格式为YYYY-MM-DDTHH:mm:ssZ。
#[serde(rename = "StartTime")]
pub start_time: Option<String>,
/// 任务状态。
/// * **3**:待处理任务。
/// * **4**:处理中任务。
/// * **5**:成功结束任务。
/// * **6**:失败结束任务。
/// * **7**:已取消任务。
#[serde(rename = "Status")]
pub status: Option<i32>,
/// 实例分片。
#[serde(rename = "SubInsNames")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub sub_ins_names: Vec<String>,
/// 后台发起切换操作的时间点,为UTC时间,格式为YYYY-MM-DDTHH:mm:ssZ。
#[serde(rename = "SwitchTime")]
pub switch_time: Option<String>,
/// 任务参数
#[serde(rename = "TaskParams")]
pub task_params: Option<String>,
/// 任务类型,取值:
///
/// * **rds\_apsaradb\_ha**:主从节点切换。
/// * **rds\_apsaradb\_transfer**:实例迁移。
/// * **rds\_apsaradb\_upgrade**:小版本升级。
/// * **rds\_apsaradb\_maxscale**: 代理小版本升级。
#[serde(rename = "TaskType")]
pub task_type: Option<String>,
/// 任务原因英文。
#[serde(rename = "TaskTypeEn")]
pub task_type_en: Option<String>,
/// 任务原因中文。
#[serde(rename = "TaskTypeZh")]
pub task_type_zh: Option<String>,
}
/// 用户备份文件详情。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct ResponseRecord {
/// 用户备份ID。
#[serde(rename = "BackupId")]
pub backup_id: Option<String>,
/// 备份文件中的Binlog文件信息,备份过程中如有增量内容则会返回此参数。
#[serde(rename = "BinlogInfo")]
pub binlog_info: Option<String>,
/// 用户备份的备注信息。
#[serde(rename = "Comment")]
pub comment: Option<String>,
/// 用户备份的导入开始时间,格式为Unix时间戳。单位:毫秒。
#[serde(rename = "CreationTime")]
pub creation_time: Option<String>,
/// 数据库引擎。
#[serde(rename = "Engine")]
pub engine: Option<String>,
/// 数据库版本。
#[serde(rename = "EngineVersion")]
pub engine_version: Option<String>,
/// 用户备份成功导入的时间,格式为Unix时间戳。单位:毫秒。
#[serde(rename = "FinishTime")]
pub finish_time: Option<String>,
/// 用户备份的导入完成时间,格式为Unix时间戳。单位:毫秒。
#[serde(rename = "ModificationTime")]
pub modification_time: Option<String>,
/// 用户备份文件所在的OSS Bucket名称。
#[serde(rename = "OssBucket")]
pub oss_bucket: Option<String>,
/// 用户备份文件元信息。更多信息,请参见[管理文件元信息](~~31859~~)。
#[serde(rename = "OssFileMetaData")]
pub oss_file_meta_data: Option<String>,
/// OSS中用户备份文件的文件名。
#[serde(rename = "OssFileName")]
pub oss_file_name: Option<String>,
/// OSS中用户备份文件的路径。
#[serde(rename = "OssFilePath")]
pub oss_file_path: Option<String>,
/// OSS中用户备份文件的大小。单位:KB。
#[serde(rename = "OssFileSize")]
pub oss_file_size: Option<i64>,
/// 用户备份文件的OSS下载地址。
#[serde(rename = "OssUrl")]
pub oss_url: Option<String>,
/// 用户备份文件导入失败的原因。
#[serde(rename = "Reason")]
pub reason: Option<String>,
/// 还原用户备份所需存储空间大小。单位:GB。
#[serde(rename = "RestoreSize")]
pub restore_size: Option<String>,
/// 用户备份文件保留时长。单位:天。
#[serde(rename = "Retention")]
pub retention: Option<i32>,
/// 用户备份文件状态。返回值:
/// * **Importing**:导入中。
/// * **Failed**:导入失败。
/// * **CheckSuccess**:校验通过。
/// * **BackupSuccess**:导入成功。
/// * **Deleted**:已删除。
#[serde(rename = "Status")]
pub status: Option<String>,
/// 用户备份所在的可用区ID。
#[serde(rename = "ZoneId")]
pub zone_id: Option<String>,
}
/// 备份数据上云任务信息详情。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct MigrateTask {
/// 备份数据上云任务类型,取值:
/// * **FULL**:表示通过全量备份文件去执行还原操作。
/// * **UPDF**:表示通过增量文件或者日志文件去还原增量部分的数据。
#[serde(rename = "BackupMode")]
pub backup_mode: Option<String>,
/// 备份数据上云任务创建时间。格式:<i>yyyy-MM-dd</i>T<i>HH:mm:ss</i>Z(UTC时间)。
#[serde(rename = "CreateTime")]
pub create_time: Option<String>,
/// 数据库名称。
#[serde(rename = "DBName")]
pub db_name: Option<String>,
/// 备份数据上云任务的描述信息。
#[serde(rename = "Description")]
pub description: Option<String>,
/// 备份数据上云任务结束时间。格式:<i>yyyy-MM-dd</i>T<i>HH:mm:ss</i>Z(UTC时间)。
#[serde(rename = "EndTime")]
pub end_time: Option<String>,
/// 是否是覆盖性导入。
#[serde(rename = "IsDBReplaced")]
pub is_db_replaced: Option<String>,
/// 备份数据上云任务的ID。
#[serde(rename = "MigrateTaskId")]
pub migrate_task_id: Option<String>,
/// 备份数据上云任务的状态,取值:
/// * **NoStart**:未开始
/// * **Running**:运行中
/// * **Success**:成功
/// * **Failed**:失败
/// * **Waiting**:等待(等待增量备份文件导入)
#[serde(rename = "Status")]
pub status: Option<String>,
}
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct MigrateTasksResponseItems {
/// 备份数据上云任务信息列表。
#[serde(rename = "MigrateTask")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub migrate_task: Vec<MigrateTask>,
}
/// 导入的文件详情。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct OssDownload {
/// 备份类型,取值:
/// * **Database**:全量备份文件
/// * **Differential_Database**:增量备份文件
/// * **Transaction_Log**:日志备份文件
#[serde(rename = "BackupMode")]
pub backup_mode: Option<String>,
/// 备份文件在下载列表中的创建时间。格式:<i>yyyy-MM-dd</i>T<i>HH:mm:ss</i>Z(UTC时间)。
#[serde(rename = "CreateTime")]
pub create_time: Option<String>,
/// 文件描述信息。
#[serde(rename = "Description")]
pub description: Option<String>,
/// 结束时间。格式:<i>yyyy-MM-dd</i>T<i>HH:mm:ss</i>Z(UTC时间)。
#[serde(rename = "EndTime")]
pub end_time: Option<String>,
/// 备份文件在OSS上的名称。
#[serde(rename = "FileName")]
pub file_name: Option<String>,
/// 备份文件大小,单位MB。
#[serde(rename = "FileSize")]
pub file_size: Option<String>,
/// 是否可用,取值:**True | False**
#[serde(rename = "IsAvailable")]
pub is_available: Option<String>,
/// 文件状态,取值:
/// * **NoStart**:未开始
/// * **Downloading**:下载中
/// * **Finished**:下载完成
/// * **DownloadFailed**:下载失败
/// * **VerifyFailed**:MD5校验失败
/// * **Deleted**:已删除
/// * **DeleteFailed**:删除失败
/// * **CheckSuccess**:检查成功
/// * **CheckFailed**:检查失败
/// * **Restoring**:还原中
/// * **Restored**:还原成功
/// * **RestoreFailed**:还原失败
#[serde(rename = "Status")]
pub status: Option<String>,
}
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct DownloadsResponseItems {
/// 导入的文件列表。
#[serde(rename = "OssDownload")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub oss_download: Vec<OssDownload>,
}
/// 一键上云检查报告详情。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct PrecheckResultResponseItem {
/// 上云前检查报告内容。
#[serde(rename = "Detail")]
pub detail: Option<String>,
/// 任务创建时间。
#[serde(rename = "GmtCreated")]
pub gmt_created: Option<String>,
/// 任务修改时间。
#[serde(rename = "GmtModified")]
pub gmt_modified: Option<String>,
/// 用户名。
#[serde(rename = "SourceAccount")]
pub source_account: Option<String>,
/// 自建PostgreSQL的类型。
///
/// - **idcOnVpc**:线下IDC自建PostgreSQL(IDC与VPC打通)
/// - **ecsOnVpc**:阿里云ECS自建PostgreSQL
#[serde(rename = "SourceCategory")]
pub source_category: Option<String>,
/// 自建PostgreSQL数据库的内网IP。
#[serde(rename = "SourceIpAddress")]
pub source_ip_address: Option<String>,
/// 密码。
#[serde(rename = "SourcePassword")]
pub source_password: Option<String>,
/// 自建PostgreSQL数据库的端口。
#[serde(rename = "SourcePort")]
pub source_port: Option<i64>,
/// 预留参数,查询结果为空。
#[serde(rename = "TargetEip")]
pub target_eip: Option<String>,
/// 目标实例ID。
#[serde(rename = "TargetInstanceName")]
pub target_instance_name: Option<String>,
/// 任务ID。
#[serde(rename = "TaskId")]
pub task_id: Option<i64>,
/// 任务名称。
#[serde(rename = "TaskName")]
pub task_name: Option<String>,
}
/// 迁移上云任务信息详情。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct MigrationResultResponseItem {
/// 迁移详情。
#[serde(rename = "Detail")]
pub detail: Option<String>,
/// 任务创建时间。
#[serde(rename = "GmtCreated")]
pub gmt_created: Option<String>,
/// 任务修改时间。
#[serde(rename = "GmtModified")]
pub gmt_modified: Option<String>,
/// 迁移阶段。
///
/// - **precheck**:预检查
/// - **basebackup**:全量备份
/// - **startup**:链路搭建
/// - **increment**:增量同步
/// - **switch**:上云切换
/// - **success**:上云完成
#[serde(rename = "MigrateStage")]
pub migrate_stage: Option<String>,
/// 复制链路信息。
#[serde(rename = "ReplicationInfo")]
pub replication_info: Option<String>,
/// 复制状态。
///
/// - **unstarted**:未启动
/// - **catchup**:追平中
/// - **streaming**:流式传输
/// - **disconnect**:断开连接
/// - **finish**:完成
#[serde(rename = "ReplicationState")]
pub replication_state: Option<String>,
/// 用户名。
#[serde(rename = "SourceAccount")]
pub source_account: Option<String>,
/// 自建PostgreSQL的类型。
///
/// - **idcOnVpc**:线下IDC自建PostgreSQL(IDC与VPC打通)
/// - **ecsOnVpc**:阿里云ECS自建PostgreSQL
#[serde(rename = "SourceCategory")]
pub source_category: Option<String>,
/// 自建PostgreSQL数据库的内网IP。
#[serde(rename = "SourceIpAddress")]
pub source_ip_address: Option<String>,
/// 密码。
#[serde(rename = "SourcePassword")]
pub source_password: Option<String>,
/// 自建PostgreSQL数据库的端口。
#[serde(rename = "SourcePort")]
pub source_port: Option<i64>,
/// 切换时间。
#[serde(rename = "SwitchTime")]
pub switch_time: Option<String>,
/// 预留参数,查询结果为空。
#[serde(rename = "TargetEip")]
pub target_eip: Option<String>,
/// 目标实例ID。
#[serde(rename = "TargetInstanceName")]
pub target_instance_name: Option<String>,
/// 任务ID。
#[serde(rename = "TaskId")]
pub task_id: Option<i64>,
/// 任务名称。
#[serde(rename = "TaskName")]
pub task_name: Option<String>,
}
/// 单元节点相关信息。
#[derive(Debug, Clone, Default, serde::Serialize)]
pub struct InstanceUnitNode {
/// 新建单元节点的名称。命名规则如下:
/// - 长度为**2~255**个字符。
/// - 以中文、英文字母开头,可以包含数字、中文、英文、下划线(_)、短横线(-)。
/// - 不能以`http://`或`https://`开头。
#[serde(rename = "DBInstanceDescription")]
#[serde(skip_serializing_if = "Option::is_none")]
pub db_instance_description: Option<String>,
/// 新建单元节点的存储空间大小。单位:GB。每5GB进行递增,取值范围请参见[实例规格表](~~26312~~)。您也可以调用DescribeAvailableResource接口查询目标实例规格中可用的存储空间范围。
#[serde(rename = "DBInstanceStorage")]
#[serde(skip_serializing_if = "Option::is_none")]
pub db_instance_storage: Option<i64>,
/// 实例存储类型,取值:
/// * **local_ssd**:高性能本地盘(推荐)。
/// * **cloud_ssd**:SSD云盘(不推荐,部分地域已经停止售卖)。
/// * **cloud_essd**:ESSD PL1云盘。
/// * **cloud_essd2**:ESSD PL2云盘。
/// * **cloud_essd3**:ESSD PL3云盘。
///
/// 本参数的默认值根据**DBInstanceClass**参数中传的规格代码自动判断:
/// - 规格代码为高性能本地盘规格:默认值为**local_ssd**。
/// - 规格代码为云盘规格:默认值为**cloud_essd**。
#[serde(rename = "DBInstanceStorageType")]
#[serde(skip_serializing_if = "Option::is_none")]
pub db_instance_storage_type: Option<String>,
/// 新建单元节点的实例规格。取值详情请参见[主实例规格表](~~26312~~)。您也可以调用DescribeAvailableResource接口查询目标地域中可用的实例规格列表。
#[serde(rename = "DbInstanceClass")]
#[serde(skip_serializing_if = "Option::is_none")]
pub db_instance_class: Option<String>,
/// 新建单元节点在同步时发生主键冲突采取的修复策略。取值:
/// * **overwrite**:覆盖目标节点中发生冲突的主键。
/// * **interrupt**:中止同步任务,报错并退出。
/// * **ignore**:隐藏当前节点中发生冲突的主键。
#[serde(rename = "DtsConflict")]
pub dts_conflict: String,
/// 新建单元节点的数据同步链路规格。取值:
/// * **small**
/// * **medium**
/// * **large**
/// * **micro**
///
/// >关于各规格的区别,请参见[数据同步规格链路说明](~~26605~~)。
#[serde(rename = "DtsInstanceClass")]
pub dts_instance_class: String,
/// 新建单元节点的数据库引擎。当前仅支持**MySQL**。
#[serde(rename = "Engine")]
#[serde(skip_serializing_if = "Option::is_none")]
pub engine: Option<String>,
/// 新建单元节点的数据库版本。取值:
/// * **8.0**
/// * **5.7**
/// * **5.6**
/// * **5.5**
#[serde(rename = "EngineVersion")]
#[serde(skip_serializing_if = "Option::is_none")]
pub engine_version: Option<String>,
/// 新建单元节点的付费类型。取值:
/// * **Postpaid**:后付费(按量付费)。
/// * **Prepaid**:预付费(包年包月)。
///
/// >系统会自动生成订单并自动完成支付,无需手动确认支付。
#[serde(rename = "PayType")]
#[serde(skip_serializing_if = "Option::is_none")]
pub pay_type: Option<String>,
/// 新建单元节点所在的地域ID,可调用DescribeRegions查询。
#[serde(rename = "RegionID")]
pub region_id: String,
/// 新建单元节点的[IP白名单](~~43185~~)。多条记录请以英文逗号(,)隔开,不可重复,最多1000条记录。支持如下两种格式:
/// * IP地址形式,例如:`10.10.10.10`。
/// * CIDR形式,例如:`10.10.10.10/24`(无类域间路由,**24**表示了地址中前缀的长度,范围为**1~32**)。
#[serde(rename = "SecurityIPList")]
#[serde(skip_serializing_if = "Option::is_none")]
pub security_ip_list: Option<String>,
/// 新建单元节点的虚拟交换机(vSwitch) ID。
#[serde(rename = "VSwitchID")]
#[serde(skip_serializing_if = "Option::is_none")]
pub v_switch_id: Option<String>,
/// 新建单元节点的专有网络(VPC)ID。
#[serde(rename = "VpcID")]
#[serde(skip_serializing_if = "Option::is_none")]
pub vpc_id: Option<String>,
/// 新建单元节点所在的可用区ID,可调用DescribeRegions查询。
#[serde(rename = "ZoneID")]
#[serde(skip_serializing_if = "Option::is_none")]
pub zone_id: Option<String>,
/// 新建单元节点的备节点可用区ID。可调用DescribeRegions查询。
/// * 如果和当前单元节点的**ZoneId**相同,则为单可用区部署。
/// * 如果和当前单元节点的**ZoneId**不同,则为多可用区部署。
#[serde(rename = "ZoneIDSlave1")]
#[serde(skip_serializing_if = "Option::is_none")]
pub zone_id_slave1: Option<String>,
/// 新建单元节点的日志节点可用区ID。可调用DescribeRegions查询。
/// * 如果和当前单元节点的**ZoneId**相同,则为单可用区部署。
/// * 如果和当前单元节点的**ZoneId**不同,则为多可用区部署。
#[serde(rename = "ZoneIDSlave2")]
#[serde(skip_serializing_if = "Option::is_none")]
pub zone_id_slave2: Option<String>,
}
impl crate::FlatSerialize for InstanceUnitNode {
fn flat_serialize<'a>(
&'a self,
name: &str,
params: &mut Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'a>)>,
) {
crate::FlatSerialize::flat_serialize(
&self.db_instance_description,
&format!("{}.DBInstanceDescription", name),
params,
);
crate::FlatSerialize::flat_serialize(
&self.db_instance_storage,
&format!("{}.DBInstanceStorage", name),
params,
);
crate::FlatSerialize::flat_serialize(
&self.db_instance_storage_type,
&format!("{}.DBInstanceStorageType", name),
params,
);
crate::FlatSerialize::flat_serialize(
&self.db_instance_class,
&format!("{}.DbInstanceClass", name),
params,
);
crate::FlatSerialize::flat_serialize(
&self.dts_conflict,
&format!("{}.DtsConflict", name),
params,
);
crate::FlatSerialize::flat_serialize(
&self.dts_instance_class,
&format!("{}.DtsInstanceClass", name),
params,
);
crate::FlatSerialize::flat_serialize(&self.engine, &format!("{}.Engine", name), params);
crate::FlatSerialize::flat_serialize(
&self.engine_version,
&format!("{}.EngineVersion", name),
params,
);
crate::FlatSerialize::flat_serialize(&self.pay_type, &format!("{}.PayType", name), params);
crate::FlatSerialize::flat_serialize(
&self.region_id,
&format!("{}.RegionID", name),
params,
);
crate::FlatSerialize::flat_serialize(
&self.security_ip_list,
&format!("{}.SecurityIPList", name),
params,
);
crate::FlatSerialize::flat_serialize(
&self.v_switch_id,
&format!("{}.VSwitchID", name),
params,
);
crate::FlatSerialize::flat_serialize(&self.vpc_id, &format!("{}.VpcID", name), params);
crate::FlatSerialize::flat_serialize(&self.zone_id, &format!("{}.ZoneID", name), params);
crate::FlatSerialize::flat_serialize(
&self.zone_id_slave1,
&format!("{}.ZoneIDSlave1", name),
params,
);
crate::FlatSerialize::flat_serialize(
&self.zone_id_slave2,
&format!("{}.ZoneIDSlave2", name),
params,
);
}
}
/// 标签相关信息。
#[derive(Debug, Clone, Default, serde::Serialize)]
pub struct DInstanceTag {
/// 标签键。可以同时创建N个标签键,N的取值范围:**1~20**。不允许传入空字符串。
#[serde(rename = "Key")]
#[serde(skip_serializing_if = "Option::is_none")]
pub key: Option<String>,
/// 标签键对应的标签值。可以同时创建N个标签值,N的取值范围:**1~20**。允许传入空字符串。
#[serde(rename = "Value")]
#[serde(skip_serializing_if = "Option::is_none")]
pub value: Option<String>,
}
impl crate::FlatSerialize for DInstanceTag {
fn flat_serialize<'a>(
&'a self,
name: &str,
params: &mut Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'a>)>,
) {
crate::FlatSerialize::flat_serialize(&self.key, &format!("{}.Key", name), params);
crate::FlatSerialize::flat_serialize(&self.value, &format!("{}.Value", name), params);
}
}
/// 返回信息组成的数组。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct InstanceResponseResult {
/// 本次调用创建的节点数量。
#[serde(rename = "CreateMemberCount")]
pub create_member_count: Option<String>,
/// 全球多活数据库集群ID。
#[serde(rename = "GadInstanceName")]
pub gad_instance_name: Option<String>,
/// 任务ID。
#[serde(rename = "TaskID")]
pub task_id: Option<String>,
}
/// 单元节点信息。
#[derive(Debug, Clone, Default, serde::Serialize)]
pub struct MemberUnitNode {
/// 新建单元节点的名称。命名规则如下:
/// - 长度为**2~255**个字符。
/// - 以中文、英文字母开头,可以包含数字、中文、英文、下划线(_)、短横线(-)。
/// - 不能以`http://`或`https://`开头。
#[serde(rename = "DBInstanceDescription")]
#[serde(skip_serializing_if = "Option::is_none")]
pub db_instance_description: Option<String>,
/// 新建单元节点的存储空间大小。单位:GB。每5 GB进行递增,取值范围请参见[实例规格表](~~26312~~)。您也可以调用DescribeAvailableResource接口查询目标实例规格中可用的存储空间范围。
#[serde(rename = "DBInstanceStorage")]
#[serde(skip_serializing_if = "Option::is_none")]
pub db_instance_storage: Option<i64>,
/// 实例存储类型,取值:
///
/// * **local_ssd**:本地SSD盘
/// * **cloud_ssd**:SSD云盘
/// * **cloud_essd**:ESSD PL1云盘
/// * **cloud_essd2**:ESSD PL2云盘
/// * **cloud_essd3**:ESSD PL3云盘
#[serde(rename = "DBInstanceStorageType")]
#[serde(skip_serializing_if = "Option::is_none")]
pub db_instance_storage_type: Option<String>,
/// 新建单元节点的实例规格。取值详情请参见[主实例规格表](~~26312~~)。您也可以调用DescribeAvailableResource接口查询目标地域中可用的实例规格列表。
#[serde(rename = "DbInstanceClass")]
#[serde(skip_serializing_if = "Option::is_none")]
pub db_instance_class: Option<String>,
/// 新建单元节点在同步时发生主键冲突采取的修复策略。取值:
/// * **overwrite**:覆盖目标节点中发生冲突的主键。
/// * **interrupt**:中止同步任务,报错并退出。
/// * **ignore**:覆盖当前节点中发生冲突的主键。
#[serde(rename = "DtsConflict")]
pub dts_conflict: String,
/// 新建单元节点的数据同步链路规格。取值:
/// * **small**
/// * **medium**
/// * **large**
/// * **micro**
///
/// >关于各规格的区别,请参见[数据同步规格链路说明](~~26605~~)。
#[serde(rename = "DtsInstanceClass")]
pub dts_instance_class: String,
/// 新建单元节点的数据库引擎。当前仅支持**MySQL**。
#[serde(rename = "Engine")]
#[serde(skip_serializing_if = "Option::is_none")]
pub engine: Option<String>,
/// 新建单元节点的数据库版本。取值:
/// * **8.0**
/// * **5.7**
/// * **5.6**
/// * **5.5**
#[serde(rename = "EngineVersion")]
#[serde(skip_serializing_if = "Option::is_none")]
pub engine_version: Option<String>,
/// 新建单元节点(备节点)所在的地域ID,可调用DescribeRegions查询。
#[serde(rename = "RegionID")]
pub region_id: String,
/// 新建单元节点的[IP白名单](~~43185~~)。多条记录请以英文逗号(,)隔开,不可重复,最多1000条记录。支持如下两种格式:
/// * IP地址形式,例如:`10.10.XX.XX`。
/// * CIDR形式,例如:`10.10.XX.XX/24`(无类域间路由,**24**表示了地址中前缀的长度,范围为**1~32**)。
#[serde(rename = "SecurityIPList")]
#[serde(skip_serializing_if = "Option::is_none")]
pub security_ip_list: Option<String>,
/// 新建单元节点的虚拟交换机(vSwitch) ID。
#[serde(rename = "VSwitchID")]
pub v_switch_id: String,
/// 新建单元节点的专有网络(VPC)ID。
#[serde(rename = "VpcID")]
pub vpc_id: String,
/// 新建单元节点所在的可用区ID,可调用DescribeRegions查询。
#[serde(rename = "ZoneID")]
#[serde(skip_serializing_if = "Option::is_none")]
pub zone_id: Option<String>,
/// 新建单元节点的备节点可用区ID。可调用DescribeRegions查询。
/// * 如果和当前单元节点的**ZoneId**相同,则为单可用区部署。
/// * 如果和当前单元节点的**ZoneId**不同,则为多可用区部署。
#[serde(rename = "ZoneIDSlave1")]
#[serde(skip_serializing_if = "Option::is_none")]
pub zone_id_slave1: Option<String>,
/// 新建单元节点的日志节点可用区ID。可调用DescribeRegions查询。
/// * 如果和当前单元节点的**ZoneId**相同,则为单可用区部署。
/// * 如果和当前单元节点的**ZoneId**不同,则为多可用区部署。
#[serde(rename = "ZoneIDSlave2")]
#[serde(skip_serializing_if = "Option::is_none")]
pub zone_id_slave2: Option<String>,
}
impl crate::FlatSerialize for MemberUnitNode {
fn flat_serialize<'a>(
&'a self,
name: &str,
params: &mut Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'a>)>,
) {
crate::FlatSerialize::flat_serialize(
&self.db_instance_description,
&format!("{}.DBInstanceDescription", name),
params,
);
crate::FlatSerialize::flat_serialize(
&self.db_instance_storage,
&format!("{}.DBInstanceStorage", name),
params,
);
crate::FlatSerialize::flat_serialize(
&self.db_instance_storage_type,
&format!("{}.DBInstanceStorageType", name),
params,
);
crate::FlatSerialize::flat_serialize(
&self.db_instance_class,
&format!("{}.DbInstanceClass", name),
params,
);
crate::FlatSerialize::flat_serialize(
&self.dts_conflict,
&format!("{}.DtsConflict", name),
params,
);
crate::FlatSerialize::flat_serialize(
&self.dts_instance_class,
&format!("{}.DtsInstanceClass", name),
params,
);
crate::FlatSerialize::flat_serialize(&self.engine, &format!("{}.Engine", name), params);
crate::FlatSerialize::flat_serialize(
&self.engine_version,
&format!("{}.EngineVersion", name),
params,
);
crate::FlatSerialize::flat_serialize(
&self.region_id,
&format!("{}.RegionID", name),
params,
);
crate::FlatSerialize::flat_serialize(
&self.security_ip_list,
&format!("{}.SecurityIPList", name),
params,
);
crate::FlatSerialize::flat_serialize(
&self.v_switch_id,
&format!("{}.VSwitchID", name),
params,
);
crate::FlatSerialize::flat_serialize(&self.vpc_id, &format!("{}.VpcID", name), params);
crate::FlatSerialize::flat_serialize(&self.zone_id, &format!("{}.ZoneID", name), params);
crate::FlatSerialize::flat_serialize(
&self.zone_id_slave1,
&format!("{}.ZoneIDSlave1", name),
params,
);
crate::FlatSerialize::flat_serialize(
&self.zone_id_slave2,
&format!("{}.ZoneIDSlave2", name),
params,
);
}
}
/// 返回信息组成的数组。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct MemberResponseResult {
/// 本次调用创建的节点数量。
#[serde(rename = "CreateCount")]
pub create_count: Option<String>,
/// 全球多活数据库集群ID。
#[serde(rename = "GadInstanceName")]
pub gad_instance_name: Option<String>,
}
/// 集群中各节点详细信息。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct InstanceMember {
/// 集群中节点的ID。
#[serde(rename = "DBInstanceID")]
pub db_instance_id: Option<String>,
/// 包含DTS同步信息的JSON数组。
/// >每个单元节点(备节点)都会通过DTS和中心节点(主节点)进行数据同步,该参数中包含了DTS的同步链路ID和请求ID。
#[serde(rename = "DtsInstance")]
pub dts_instance: Option<String>,
/// 集群中节点的数据库引擎。
/// >当前仅支持**mysql**。
#[serde(rename = "Engine")]
pub engine: Option<String>,
/// 集群中节点的数据库版本。
#[serde(rename = "EngineVersion")]
pub engine_version: Option<String>,
/// 集群中节点所在的地域ID。
#[serde(rename = "RegionId")]
pub region_id: Option<String>,
/// 资源组ID。
#[serde(rename = "ResourceGroupId")]
pub resource_group_id: Option<String>,
/// RDS全球多活数据库集群中的节点类型。返回值:
/// * **CENTRAL**:中心节点,集群中的唯一主节点,所有单元节点的数据都从该节点同步。
/// * **UNIT**:单元节点,一个集群中可以有10个单元节点,所有单元节点都从中心节点同步数据。
#[serde(rename = "Role")]
pub role: Option<String>,
/// 节点状态。取值:
/// * **activation**:运行中。
/// * **creating**:创建中。
#[serde(rename = "Status")]
pub status: Option<String>,
}
/// RDS全球多活数据库集群详细信息。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct GadInstance {
/// 集群的创建时间。格式为<i>yyyy-MM-dd</i>T<i>HH:mm:ss</i>Z(UTC时间)。
#[serde(rename = "CreationTime")]
pub creation_time: Option<String>,
/// 集群名称。
#[serde(rename = "Description")]
pub description: Option<String>,
/// 集群中各节点信息列表。
#[serde(rename = "GadInstanceMembers")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub gad_instance_members: Vec<InstanceMember>,
/// RDS全球多活数据库集群的ID。
#[serde(rename = "GadInstanceName")]
pub gad_instance_name: Option<String>,
/// 最后一次变更集群的时间。格式为<i>yyyy-MM-dd</i>T<i>HH:mm:ss</i>Z(UTC时间)。
#[serde(rename = "ModificationTime")]
pub modification_time: Option<String>,
/// RDS全球多活数据库集群的引擎。
/// >当前仅支持**mysql**。
#[serde(rename = "Service")]
pub service: Option<String>,
/// 集群状态。取值:
/// * **activation**:运行中。
/// * **creating**:创建中。
/// * **replica_adding**:添加节点中。
#[serde(rename = "Status")]
pub status: Option<String>,
}
/// 标签列表。每个实例最多创建并绑定**20**个标签。
#[derive(Debug, Clone, Default, serde::Serialize)]
pub struct TagResourcesTag {
/// 标签键。**不允许**传入空值、重复。
///
/// > 相同的标签键会被覆盖。
#[serde(rename = "Key")]
pub key: String,
/// 标签值。**允许**传入空值。
#[serde(rename = "Value")]
#[serde(skip_serializing_if = "Option::is_none")]
pub value: Option<String>,
}
impl crate::FlatSerialize for TagResourcesTag {
fn flat_serialize<'a>(
&'a self,
name: &str,
params: &mut Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'a>)>,
) {
crate::FlatSerialize::flat_serialize(&self.key, &format!("{}.Key", name), params);
crate::FlatSerialize::flat_serialize(&self.value, &format!("{}.Value", name), params);
}
}
/// 标签详情。
#[derive(Debug, Clone, Default, serde::Serialize)]
pub struct ListTagResourcesTag {
/// 标签键。可以同时查询N个标签键,N的取值范围:**1**~**20**。不允许传入空字符串。
/// >**ResourceId**参数和**Tag.Key**参数至少传入一个。
#[serde(rename = "Key")]
#[serde(skip_serializing_if = "Option::is_none")]
pub key: Option<String>,
/// 标签键对应的标签值。可以同时查询N个标签值,N的取值范围:**1**~**20**。允许传入空字符串。
#[serde(rename = "Value")]
#[serde(skip_serializing_if = "Option::is_none")]
pub value: Option<String>,
}
impl crate::FlatSerialize for ListTagResourcesTag {
fn flat_serialize<'a>(
&'a self,
name: &str,
params: &mut Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'a>)>,
) {
crate::FlatSerialize::flat_serialize(&self.key, &format!("{}.Key", name), params);
crate::FlatSerialize::flat_serialize(&self.value, &format!("{}.Value", name), params);
}
}
/// 查询到的实例和标签详情。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct ResourcesTagResource {
/// 实例ID。
#[serde(rename = "ResourceId")]
pub resource_id: Option<String>,
/// 资源类型。返回格式`ALIYUN::RDS::<资源类型>`,取值:
///
/// - **INSTANCE**:普通RDS实例。
/// - **CUSTOM**:RDS Custom实例。
/// - **CUSTOMDEPLOYMENTSET**:RDS Custom部署集。
/// - **CUSTOMDISK**:RDS Custom云盘。
/// - **CUSTOMSNAPSHOT**:RDS Custom快照。
#[serde(rename = "ResourceType")]
pub resource_type: Option<String>,
/// 标签键。
#[serde(rename = "TagKey")]
pub tag_key: Option<String>,
/// 标签键对应的标签值。
#[serde(rename = "TagValue")]
pub tag_value: Option<String>,
}
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct ResponseTagResources {
/// 查询到的实例和标签列表。
#[serde(rename = "TagResource")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub tag_resource: Vec<ResourcesTagResource>,
}
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct ItemDbInstanceIds {
/// 该标签所绑定的实例ID列表。
#[serde(rename = "DBInstanceIds")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub db_instance_ids: Vec<String>,
}
/// 标签对象。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct TagInfo {
#[serde(rename = "DBInstanceIds")]
pub db_instance_ids: Option<ItemDbInstanceIds>,
/// 标签键。
#[serde(rename = "TagKey")]
pub tag_key: Option<String>,
/// 标签值。
#[serde(rename = "TagValue")]
pub tag_value: Option<String>,
}
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct DescribeTagsResponseItems {
/// 标签列表。
#[serde(rename = "TagInfos")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub tag_infos: Vec<TagInfo>,
}
/// 标签详情。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct ItemTagsTag {
/// 标签键。
#[serde(rename = "TagKey")]
pub tag_key: Option<String>,
/// 标签值。
#[serde(rename = "TagValue")]
pub tag_value: Option<String>,
}
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct ItemTags {
/// 标签详情列表。
#[serde(rename = "Tag")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub tag: Vec<ItemTagsTag>,
}
/// 实例详情。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct DbInstanceTag {
/// 实例ID。
#[serde(rename = "DBInstanceId")]
pub db_instance_id: Option<String>,
#[serde(rename = "Tags")]
pub tags: Option<ItemTags>,
}
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct ByTagsResponseItems {
/// 实例详情列表。
#[serde(rename = "DBInstanceTag")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub db_instance_tag: Vec<DbInstanceTag>,
}
/// 指定数据库下已安装插件信息。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct InstalledExtension {
/// 插件类别。
///
/// - **external_access**:外部访问。
/// - **index_support**:索引支持。
/// - **information_sta**t:信息统计。
/// - **geography_space**:地理时空。
/// - **vector_engine**:向量引擎。
/// - **timing_engine**:时序引擎。
/// - **data_type**:数据类型。
/// - **encrypt_secure**:加密和安全。
/// - **text_process**:文本处理。
/// - **operation_maintenance**:应用运维。
/// - **self_develop**:自研。
#[serde(rename = "Category")]
pub category: Option<String>,
/// 插件用途。
#[serde(rename = "Comment")]
pub comment: Option<String>,
/// 插件默认版本。
#[serde(rename = "DefaultVersion")]
pub default_version: Option<String>,
/// 插件当前安装的版本。
#[serde(rename = "InstalledVersion")]
pub installed_version: Option<String>,
/// 插件名称。
#[serde(rename = "Name")]
pub name: Option<String>,
/// 插件所属用户。
#[serde(rename = "Owner")]
pub owner: Option<String>,
/// 插件优先级。
///
/// - **0**:默认展示。
/// - **1**:优先展示。
#[serde(rename = "Priority")]
pub priority: Option<String>,
/// 此插件安装时所依赖的插件。
#[serde(rename = "Requires")]
pub requires: Option<String>,
/// 阿里云账号ID。
///
/// > 仅独享插件(用户自行编写的插件)会返回该参数。每个阿里云账号下,仅显示其自身的独享插件。
#[serde(rename = "Uid")]
pub uid: Option<String>,
}
/// 指定数据库下未安装插件信息。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct UninstalledExtension {
/// 插件类别。
#[serde(rename = "Category")]
pub category: Option<String>,
/// 插件用途。
#[serde(rename = "Comment")]
pub comment: Option<String>,
/// 插件默认版本。
#[serde(rename = "DefaultVersion")]
pub default_version: Option<String>,
/// 插件当前安装的版本。
#[serde(rename = "InstalledVersion")]
pub installed_version: Option<String>,
/// 插件名称。
#[serde(rename = "Name")]
pub name: Option<String>,
/// 插件所属用户。
#[serde(rename = "Owner")]
pub owner: Option<String>,
/// 插件优先级。
#[serde(rename = "Priority")]
pub priority: Option<String>,
/// 此插件安装时所依赖的插件。
#[serde(rename = "Requires")]
pub requires: Option<String>,
/// 阿里云账号ID。
///
/// > 仅独享插件(用户自行编写的插件)会返回该参数。每个阿里云账号下,仅显示其自身的独享插件。
#[serde(rename = "Uid")]
pub uid: Option<String>,
}
/// 实例Replication Slot。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct ResponseSlot {
/// Replication Slot所在的数据库名称。
#[serde(rename = "Database")]
pub database: Option<String>,
/// Replication Slot使用的插件。
#[serde(rename = "Plugin")]
pub plugin: Option<String>,
/// Replication Slot名称。
#[serde(rename = "SlotName")]
pub slot_name: Option<String>,
/// Replication Slot状态。
/// - ACTIVE:活跃。
/// - INACTIVE:不活跃。
#[serde(rename = "SlotStatus")]
pub slot_status: Option<String>,
/// Replication Slot类型。
/// - physical:物理。
/// - logical:逻辑。
#[serde(rename = "SlotType")]
pub slot_type: Option<String>,
/// 当前Replication Slot对应订阅端的逻辑订阅的具体延迟,单位为秒(s)。
#[serde(rename = "SubReplayLag")]
pub sub_replay_lag: Option<String>,
/// Replication Slot是否为临时性的。
/// - true:是。
/// - false:否。
#[serde(rename = "Temporary")]
pub temporary: Option<String>,
/// Replication Slot堆积的日志量。
#[serde(rename = "WalDelay")]
pub wal_delay: Option<String>,
}
/// 记录项详情。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct LogsResponseItem {
/// 任务详情。
#[serde(rename = "Detail")]
pub detail: Option<String>,
/// 创建时间(UTC 时间)。
#[serde(rename = "GmtCreated")]
pub gmt_created: Option<String>,
/// 修改时间(UTC 时间)。
#[serde(rename = "GmtModified")]
pub gmt_modified: Option<String>,
/// 同步信息,预留字段。
#[serde(rename = "ReplicationInfo")]
pub replication_info: Option<String>,
/// 同步状态。
///
/// - **steaming**:同步中。
/// - **finish**:完成。
/// - **disconnect**:断开。
#[serde(rename = "ReplicationState")]
pub replication_state: Option<String>,
/// 同步数据的数据库账号。
#[serde(rename = "ReplicatorAccount")]
pub replicator_account: Option<String>,
/// 同步账号密码。
#[serde(rename = "ReplicatorPassword")]
pub replicator_password: Option<String>,
/// 源实例地址。
#[serde(rename = "SourceAddress")]
pub source_address: Option<String>,
/// 源实例类别。
///
/// - other:其他。
/// - aliyunRDS:阿里云 RDS 实例。
#[serde(rename = "SourceCategory")]
pub source_category: Option<String>,
/// 源实例端口。
#[serde(rename = "SourcePort")]
pub source_port: Option<i64>,
/// 目标实例 ID。
#[serde(rename = "TargetInstanceId")]
pub target_instance_id: Option<String>,
/// 任务 ID。
#[serde(rename = "TaskId")]
pub task_id: Option<i64>,
/// 任务名称。
#[serde(rename = "TaskName")]
pub task_name: Option<String>,
/// 任务阶段。
///
/// - **precheck**:预检查。
/// - **basebackup**:基础备份。
/// - **startup**:启动。
/// - **increment**:增量同步。
#[serde(rename = "TaskStage")]
pub task_stage: Option<String>,
/// 任务状态。
///
/// - **success**:成功。
/// - **failure**:失败。
/// - **running**:运行。
#[serde(rename = "TaskStatus")]
pub task_status: Option<String>,
/// 任务类型。
/// - **create**:创建同步链路。
/// - **create-dryrun**:创建同步链路预检查。
#[serde(rename = "TaskType")]
pub task_type: Option<String>,
}
/// 详情如下。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct ResponseSecret {
/// 阿里云账号ID。
#[serde(rename = "AccountId")]
pub account_id: Option<String>,
/// 用户对凭证的说明。
#[serde(rename = "Description")]
pub description: Option<String>,
/// 地域ID。
#[serde(rename = "RegionId")]
pub region_id: Option<String>,
/// 创建的Data API账号的用户凭证。
#[serde(rename = "SecretArn")]
pub secret_arn: Option<String>,
/// 用户凭证名称。
#[serde(rename = "SecretName")]
pub secret_name: Option<String>,
/// 数据库用户名。
#[serde(rename = "Username")]
pub username: Option<String>,
}
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct IdList {
/// 当前专属集群主机所在的可用区列表。
#[serde(rename = "ZoneIDList")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub zone_id_list: Vec<String>,
}
/// 集群信息列表详情如下。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct HostGroup {
/// 当前专属集群的资源调度的分配策略。返回值:
/// * **Evenly**:均衡分配
/// * **Intensively**:紧凑分配
#[serde(rename = "AllocationPolicy")]
pub allocation_policy: Option<String>,
/// 堡垒机ID。
#[serde(rename = "BastionInstanceId")]
pub bastion_instance_id: Option<String>,
/// 当前专属集群已分配CPU的比例。单位:百分号(%)。
#[serde(rename = "CpuAllocateRation")]
pub cpu_allocate_ration: Option<f32>,
/// 当前专属集群已分配CPU的个数。
#[serde(rename = "CpuAllocatedAmount")]
pub cpu_allocated_amount: Option<f32>,
/// 当前专属集群的CPU超配比。单位:百分号(%)。关于超配比的更多信息,请参见[管理集群](~~182328~~)。
#[serde(rename = "CpuAllocationRatio")]
pub cpu_allocation_ratio: Option<i32>,
/// 当前专属集群创建时间的时间戳。
#[serde(rename = "CreateTime")]
pub create_time: Option<String>,
/// 当前专属集群里的主机存储类型。取值:
/// * **dhg_cloud_ssd**:云盘
/// * **dhg_local_ssd**:本地盘
#[serde(rename = "DedicatedHostCountGroupByHostType")]
pub dedicated_host_count_group_by_host_type: Option<crate::OpenObject>,
/// 当前专属集群的名称。
#[serde(rename = "DedicatedHostGroupDesc")]
pub dedicated_host_group_desc: Option<String>,
/// 当前专属集群的ID。
#[serde(rename = "DedicatedHostGroupId")]
pub dedicated_host_group_id: Option<String>,
/// 当前专属集群已分配的磁盘比例。单位:百分号(%)。
#[serde(rename = "DiskAllocateRation")]
pub disk_allocate_ration: Option<f32>,
/// 当前专属集群中已分配的磁盘容量。单位:GB。
#[serde(rename = "DiskAllocatedAmount")]
pub disk_allocated_amount: Option<f32>,
/// 当前专属集群的磁盘空间超配比。单位:%。关于超配比的更多信息,请参见[管理集群](~~182328~~)。
#[serde(rename = "DiskAllocationRatio")]
pub disk_allocation_ratio: Option<i32>,
/// 当前专属集群的已使用磁盘容量。单位:GB。
#[serde(rename = "DiskUsedAmount")]
pub disk_used_amount: Option<f32>,
/// 当前专属集群的磁盘利用率。单位:百分号(%)。
#[serde(rename = "DiskUtility")]
pub disk_utility: Option<f32>,
/// 当前专属集群的数据库引擎。
#[serde(rename = "Engine")]
pub engine: Option<String>,
/// 当前专属集群中主机的总个数。
#[serde(rename = "HostNumber")]
pub host_number: Option<i32>,
/// 主机故障时系统的处理策略。返回值:
/// * **Auto**:自动替换主机。
/// * **Manual**:手动替换主机。
#[serde(rename = "HostReplacePolicy")]
pub host_replace_policy: Option<String>,
/// 当前专属集群中实例的总个数。
#[serde(rename = "InstanceNumber")]
pub instance_number: Option<i32>,
/// 当前专属集群已分配的内存比例。单位:百分号(%)。
#[serde(rename = "MemAllocateRation")]
pub mem_allocate_ration: Option<f32>,
/// 当前专属集群中已分配的内存数量。
#[serde(rename = "MemAllocatedAmount")]
pub mem_allocated_amount: Option<f32>,
/// 当前专属集群的内存超配比。单位:%。关于超配比的更多信息,请参见[管理集群](~~182328~~)。
#[serde(rename = "MemAllocationRatio")]
pub mem_allocation_ratio: Option<i32>,
/// 当前专属集群中已使用的内存数量。单位:MB。
#[serde(rename = "MemUsedAmount")]
pub mem_used_amount: Option<f32>,
/// 当前专属集群的内存利用率。单位:百分号(%)。
#[serde(rename = "MemUtility")]
pub mem_utility: Option<f32>,
/// 主机OS权限开放状态。返回值:
/// * **0**或者**null**:不可开放。
/// * **1**:可开放。
/// * **3**:已开放。
#[serde(rename = "OpenPermission")]
pub open_permission: Option<String>,
/// 当前专属集群的名称和ID信息。由**DedicatedHostGroupDesc**和**DedicatedHostGroupId**拼接,格式为:DedicatedHostGroupDesc/DedicatedHostGroupId。
#[serde(rename = "Text")]
pub text: Option<String>,
/// 当前专属集群所在专有网络VPC ID。
#[serde(rename = "VPCId")]
pub vpc_id: Option<String>,
#[serde(rename = "ZoneIDList")]
pub zone_id_list: Option<IdList>,
}
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct HostGroups {
/// 专属集群信息列表。
#[serde(rename = "DedicatedHostGroups")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub dedicated_host_groups: Vec<HostGroup>,
}
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct DedicatedHost {
/// 专属集群主机账号。可通过[CreateDedicatedHostAccount](~~196877~~)创建。
#[serde(rename = "AccountName")]
pub account_name: Option<String>,
/// 主机当前是否允许分配实例。返回值:
/// * **0**:不允许分配
/// * **1**:允许分配
#[serde(rename = "AllocationStatus")]
pub allocation_status: Option<String>,
/// 堡垒机ID。
#[serde(rename = "BastionInstanceId")]
pub bastion_instance_id: Option<String>,
/// 当前专属集群的CPU超配比。单位:%。关于超配比的更多信息,请参见[管理集群](~~182328~~)。
#[serde(rename = "CPUAllocationRatio")]
pub cpu_allocation_ratio: Option<String>,
/// 主机CPU已使用核数。单位:个。
#[serde(rename = "CpuUsed")]
pub cpu_used: Option<String>,
/// 主机创建时间。
#[serde(rename = "CreatedTime")]
pub created_time: Option<String>,
/// 专属集群ID。
#[serde(rename = "DedicatedHostGroupId")]
pub dedicated_host_group_id: Option<String>,
/// 主机ID。
#[serde(rename = "DedicatedHostId")]
pub dedicated_host_id: Option<String>,
/// 当前专属集群的磁盘空间超配比。单位:%。关于超配比的更多信息,请参见[管理集群](~~182328~~)。
#[serde(rename = "DiskAllocationRatio")]
pub disk_allocation_ratio: Option<String>,
/// 主机到期时间。
#[serde(rename = "EndTime")]
pub end_time: Option<String>,
/// 实例的数据库引擎。
#[serde(rename = "Engine")]
pub engine: Option<String>,
/// 主机CPU总核数。单位:个。
#[serde(rename = "HostCPU")]
pub host_cpu: Option<String>,
/// 主机规格。
#[serde(rename = "HostClass")]
pub host_class: Option<String>,
/// 主机内存总量。单位:MB。
#[serde(rename = "HostMem")]
pub host_mem: Option<String>,
/// 主机名称。
#[serde(rename = "HostName")]
pub host_name: Option<String>,
/// 主机状态。返回值:
/// * **0**:创建中
/// * **1**:使用中
/// * **2**:宕机
/// * **3**:宕机下线(替换主机中)
/// * **4**:下线
/// * **5**:删除
/// * **6**:重启中
#[serde(rename = "HostStatus")]
pub host_status: Option<String>,
/// 主机存储容量。单位:MB。
#[serde(rename = "HostStorage")]
pub host_storage: Option<String>,
/// 主机存储类型。返回值:
/// * **dhg_cloud_ssd**:ESSD云盘。
/// * **dhg_local_ssd**:SSD本地盘。
#[serde(rename = "HostType")]
pub host_type: Option<String>,
/// 主机内网IP地址。
#[serde(rename = "IPAddress")]
pub ip_address: Option<String>,
/// 主机镜像。仅在**Engine**参数为**mssql**时返回。返回值:
/// * **WindowsWithMssqlStdLicense**:Windows(含SQL Server标准版License)。
/// * **WindowsWithMssqlEntLisence**:Windows(含SQL Server企业版License)。
/// * **WindowsWithMssqlWebLisence**:Windows(含SQL ServerWeb版License)。
#[serde(rename = "ImageCategory")]
pub image_category: Option<String>,
/// 主机上的实例总数。
#[serde(rename = "InstanceNumber")]
pub instance_number: Option<String>,
/// 主机组中每台主机的内存最大使用率。
#[serde(rename = "MemAllocationRatio")]
pub mem_allocation_ratio: Option<String>,
/// 已使用内存。单位:MB。
#[serde(rename = "MemoryUsed")]
pub memory_used: Option<String>,
/// 主机OS权限开放状态。返回值:
/// * **0**或者**null**:不可开放。
/// * **1**:可开放。
/// * **3**:已开放。
#[serde(rename = "OpenPermission")]
pub open_permission: Option<String>,
/// 已使用存储空间。
#[serde(rename = "StorageUsed")]
pub storage_used: Option<String>,
/// 主机所属专有网络VPC ID。
#[serde(rename = "VPCId")]
pub vpc_id: Option<String>,
/// 主机所属虚拟交换机ID。
#[serde(rename = "VSwitchId")]
pub v_switch_id: Option<String>,
/// 主机所在可用区ID。
#[serde(rename = "ZoneId")]
pub zone_id: Option<String>,
}
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct DedicatedHosts {
/// 主机信息列表。
#[serde(rename = "DedicatedHosts")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub dedicated_hosts: Vec<DedicatedHost>,
}
/// 列表详情。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct VersionItem {
/// 内核小版本对应的社区小版本。
#[serde(rename = "CommunityMinorVersion")]
pub community_minor_version: Option<String>,
/// 小版本对应的数据库引擎。
#[serde(rename = "Engine")]
pub engine: Option<String>,
/// 小版本对应的数据库版本。
#[serde(rename = "EngineVersion")]
pub engine_version: Option<String>,
/// 内核小版本过期时间。
#[serde(rename = "ExpireDate")]
pub expire_date: Option<String>,
/// 内核版本过期状态。返回值如下:
///
/// - **vaild**:有效
/// - **expired**:过期
///
/// > 下线状态为Offline时,表示版本已下线,此时忽略过期状态。下线状态为Online时,过期状态为expired,表示版本已超过生命周期;过期状态为vaild,表示版本仍在生命周期内。
#[serde(rename = "ExpireStatus")]
pub expire_status: Option<ExpireStatus>,
/// 内部参数,无需关注。
#[serde(rename = "IsHotfixVersion")]
pub is_hotfix_version: Option<bool>,
/// 小版本的版本号。
#[serde(rename = "MinorVersion")]
pub minor_version: Option<String>,
/// 小版本对应的实例系列。返回值:
/// * **Basic**:基础系列。
/// * **HighAvailability**:高可用系列。
/// * **Finance**:三节点企业系列。
#[serde(rename = "NodeType")]
pub node_type: Option<String>,
/// 小版本发布说明的URL。
#[serde(rename = "ReleaseNote")]
pub release_note: Option<String>,
/// 发布类型。返回值:
/// * **LTS**:长期支持版本。
/// * **BETA**:预览版本。
#[serde(rename = "ReleaseType")]
pub release_type: Option<String>,
/// 内核版本下线状态。返回值如下:
/// - **Offline**:下线
/// - **Online**:在线
///
/// > 下线状态为Offline时,表示版本已下线,此时忽略过期状态。下线状态为Online时,过期状态为expired,表示版本已超过生命周期;过期状态为vaild,表示版本仍在生命周期内。
#[serde(rename = "StatusDesc")]
pub status_desc: Option<String>,
/// 内核小版本对应的标签。返回值如下:
///
/// - **pgsql\_docker_image**:通用实例标签。
/// - **pgsql\_babelfish_image**:Babelfish实例标签。
///
/// > 当前仅**PostgreSQL**返回该值。
#[serde(rename = "Tag")]
pub tag: Option<String>,
}
/// 地域信息。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct InfosResponseRegionsRdsRegion {
/// 地域ID。
#[serde(rename = "RegionId")]
pub region_id: Option<String>,
}
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct InfosResponseRegions {
/// 地域列表。
#[serde(rename = "RDSRegion")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub rds_region: Vec<InfosResponseRegionsRdsRegion>,
}
/// 共享代理的读写分离权重详情。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct ChannelResponseDBInstanceNetInfosDbInstanceNetInfoItemDbInstanceWeightsDbInstanceWeight {
/// 实例可用状态。返回值:
///
/// * **Unavailable**:不可用。
/// * **Available**:可用。
#[serde(rename = "Availability")]
pub availability: Option<String>,
/// 实例ID。
#[serde(rename = "DBInstanceId")]
pub db_instance_id: Option<String>,
/// 实例类型。返回值:
/// * **Master**:主实例。
/// * **Readonly**:只读实例。
#[serde(rename = "DBInstanceType")]
pub db_instance_type: Option<String>,
/// 实例当前权重。
#[serde(rename = "Weight")]
pub weight: Option<String>,
}
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct ChannelResponseDBInstanceNetInfosDbInstanceNetInfoItemDbInstanceWeights {
/// 共享代理的读写分离权重信息列表。
#[serde(rename = "DBInstanceWeight")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub db_instance_weight: Vec<
ChannelResponseDBInstanceNetInfosDbInstanceNetInfoItemDbInstanceWeightsDbInstanceWeight,
>,
}
/// 实例的IP白名单分组详情。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct ChannelResponseDBInstanceNetInfosDbInstanceNetInfoItemSecurityIpGroupsSecurityIpGroup {
/// IP白名单分组名称。
#[serde(rename = "SecurityIPGroupName")]
pub security_ip_group_name: Option<String>,
/// 白名单IP。
#[serde(rename = "SecurityIPs")]
pub security_i_ps: Option<String>,
}
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct ChannelResponseDBInstanceNetInfosDbInstanceNetInfoItemSecurityIpGroups {
/// 实例的IP白名单分组列表。
#[serde(rename = "securityIPGroup")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub security_ip_group:
Vec<ChannelResponseDBInstanceNetInfosDbInstanceNetInfoItemSecurityIpGroupsSecurityIpGroup>,
}
/// 实例连接信息详情。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct ChannelResponseDBInstanceNetInfosDbInstanceNetInfo {
/// 可用状态,取值:
///
/// * **Unavailable**:不可用。
/// * **Available**:可用。
#[serde(rename = "Availability")]
pub availability: Option<String>,
/// 连接地址。
#[serde(rename = "ConnectionString")]
pub connection_string: Option<String>,
/// 连接地址类型,取值:
///
/// * **Normal**:普通连接地址。
/// * **ReadWriteSplitting**:共享代理的读写分离地址。
#[serde(rename = "ConnectionStringType")]
pub connection_string_type: Option<String>,
#[serde(rename = "DBInstanceWeights")]
pub db_instance_weights:
Option<ChannelResponseDBInstanceNetInfosDbInstanceNetInfoItemDbInstanceWeights>,
/// 共享代理的读请求分配策略,只在读写分离连接地址返回该参数,取值:
///
/// * **Standard**:按规格权重自动分配。
/// * **Custom**:自定义分配权重。
#[serde(rename = "DistributionType")]
pub distribution_type: Option<String>,
/// IP地址。
#[serde(rename = "IPAddress")]
pub ip_address: Option<String>,
/// IP地址的网络类型,返回值:
///
/// * **Public**:公网。
/// * **Inner**:经典网络。
/// * **Private**:专有网络。
#[serde(rename = "IPType")]
pub ip_type: Option<String>,
/// 共享代理的只读实例延迟阈值,单位:秒。
/// > 只在**ConnectionStringType**为**ReadWriteSplitting**时返回该参数。
#[serde(rename = "MaxDelayTime")]
pub max_delay_time: Option<String>,
/// 服务端口。
#[serde(rename = "Port")]
pub port: Option<String>,
#[serde(rename = "SecurityIPGroups")]
pub security_ip_groups:
Option<ChannelResponseDBInstanceNetInfosDbInstanceNetInfoItemSecurityIpGroups>,
/// 内部参数,无需关注。
#[serde(rename = "Upgradeable")]
pub upgradeable: Option<String>,
/// 实例所属的专有网络(VPC)的ID。
#[serde(rename = "VPCId")]
pub vpc_id: Option<String>,
/// 实例所属的虚拟交换机(vSwitch)ID。
#[serde(rename = "VSwitchId")]
pub v_switch_id: Option<String>,
/// 实例经典网络地址的有效时间,单位:秒。
#[serde(rename = "expiredTime")]
pub expired_time: Option<String>,
}
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct ChannelResponseDBInstanceNetInfos {
/// 实例连接信息列表。
#[serde(rename = "DBInstanceNetInfo")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub db_instance_net_info: Vec<ChannelResponseDBInstanceNetInfosDbInstanceNetInfo>,
}
/// 关联的RDS实例信息详情。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct BInstance {
/// 实例ID。
#[serde(rename = "DBInstanceName")]
pub db_instance_name: Option<String>,
/// 数据库引擎,返回值:
/// - **MySQL**
/// - **SQLServer**
/// - **PostgreSQL**
#[serde(rename = "Engine")]
pub engine: Option<String>,
/// 密钥使用途径,返回值:
///
/// - **DiskEncryption**:云盘加密
/// - **TDE**:透明数据加密
#[serde(rename = "KeyUsedBy")]
pub key_used_by: Option<String>,
/// 实例状态,返回值:
///
/// - **CREATING**:实例创建中
/// - **ACTIVATION**:实例运行中
/// - **DELETING**:实例删除中
/// - **RESTARTING**:实例重启中
/// - **CLASS_CHANGING**:规格变配中
/// - **INS_MAINTAINING**:实例维护中
/// - **BACKUP_RECOVERING**:备份恢复中
/// - **NET_MODIFYING**:网络变更中
#[serde(rename = "Status")]
pub status: Option<String>,
}
/// 标签详情。
#[derive(Debug, Clone, Default, serde::Serialize)]
pub struct SnapshotsTag {
/// 标签值。
#[serde(rename = "Key")]
#[serde(skip_serializing_if = "Option::is_none")]
pub key: Option<String>,
/// 标签键。
#[serde(rename = "Value")]
#[serde(skip_serializing_if = "Option::is_none")]
pub value: Option<String>,
}
impl crate::FlatSerialize for SnapshotsTag {
fn flat_serialize<'a>(
&'a self,
name: &str,
params: &mut Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'a>)>,
) {
crate::FlatSerialize::flat_serialize(&self.key, &format!("{}.Key", name), params);
crate::FlatSerialize::flat_serialize(&self.value, &format!("{}.Value", name), params);
}
}
/// 标签详情。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct SnapshotsItemTag {
/// 标签键。
#[serde(rename = "TagKey")]
pub tag_key: Option<String>,
/// 标签值。
#[serde(rename = "TagValue")]
pub tag_value: Option<String>,
}
/// 快照信息列表。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct ResponseSnapshot {
/// 快照是否可用于创建云盘、回滚云盘、共享快照。取值说明:
/// - true:可用。
/// - false:不可用。
#[serde(rename = "Available")]
pub available: Option<bool>,
/// 快照类型。取值说明:
/// - Standard:标准快照。
/// - Flash:本地快照。该参数取值即将被弃用,原本地快照更替为快照极速可用功能。
/// - archive:归档快照。
#[serde(rename = "Category")]
pub category: Option<String>,
/// 创建时间。按照[ISO 8601](~~25696~~)标准表示,并使用UTC +0时间,格式为yyyy-MM-ddTHH:mm:ssZ。
#[serde(rename = "CreationTime")]
pub creation_time: Option<String>,
/// 快照描述信息。
#[serde(rename = "Description")]
pub description: Option<String>,
/// 该快照是否加密。取值说明:
/// - true:加密。
/// - false:不加密。
#[serde(rename = "Encrypted")]
pub encrypted: Option<bool>,
/// 该参数已弃用,无需填写。
#[serde(rename = "InstantAccess")]
pub instant_access: Option<bool>,
/// 快照创建进度,单位为百分比。
#[serde(rename = "Progress")]
pub progress: Option<String>,
/// 地域ID。
#[serde(rename = "RegionId")]
pub region_id: Option<String>,
/// 快照ID。
#[serde(rename = "SnapshotId")]
pub snapshot_id: Option<String>,
/// 快照名称。
#[serde(rename = "SnapshotName")]
pub snapshot_name: Option<String>,
/// 快照创建类型。取值说明:
/// - auto或者timer:自动创建快照。
/// - user:手动创建快照。
/// - all:所有的快照创建类型。
#[serde(rename = "SnapshotType")]
pub snapshot_type: Option<String>,
/// 源云盘ID。如果快照的源云盘已经被释放,该字段仍旧保留。
#[serde(rename = "SourceDiskId")]
pub source_disk_id: Option<String>,
/// 源磁盘容量。单位:GiB。
#[serde(rename = "SourceDiskSize")]
pub source_disk_size: Option<i64>,
/// 源磁盘类型。取值说明:
/// - SYSTEM:系统盘。
/// - DATA:数据盘。
#[serde(rename = "SourceDiskType")]
pub source_disk_type: Option<String>,
/// 源云盘类型。
///
/// >该参数即将被弃用,为提高兼容性,建议您尽量使用其他参数。
#[serde(rename = "SourceStorageType")]
pub source_storage_type: Option<String>,
/// 快照状态。取值说明
/// - progressing:正在创建的快照
/// - accomplished:创建成功的快照
/// - failed:创建失败的快照
#[serde(rename = "Status")]
pub status: Option<String>,
/// 快照是否被用作创建镜像或云盘。取值说明:
/// - image:使用快照创建了自定义镜像。
/// - disk:使用快照创建了云盘。
/// - image_disk:使用快照创建了数据盘和自定义镜像。
/// - none:暂未使用。
#[serde(rename = "Usage")]
pub usage: Option<String>,
/// 资源组ID。
#[serde(rename = "ResourceGroupId")]
pub resource_group_id: Option<String>,
/// 快照的最后变更时间。按照ISO 8601标准表示,并使用 UTC +0 时间,格式为 yyyy-MM-ddTHH:mm:ssZ。
#[serde(rename = "LastModifiedTime")]
pub last_modified_time: Option<String>,
/// 标签详情。
#[serde(rename = "Tag")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub tag: Vec<SnapshotsItemTag>,
}
/// 标签详情。
#[derive(Debug, Clone, Default, serde::Serialize)]
pub struct SnapshotTag {
/// 标签键。
#[serde(rename = "Key")]
#[serde(skip_serializing_if = "Option::is_none")]
pub key: Option<String>,
/// 标签值。
#[serde(rename = "Value")]
#[serde(skip_serializing_if = "Option::is_none")]
pub value: Option<String>,
}
impl crate::FlatSerialize for SnapshotTag {
fn flat_serialize<'a>(
&'a self,
name: &str,
params: &mut Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'a>)>,
) {
crate::FlatSerialize::flat_serialize(&self.key, &format!("{}.Key", name), params);
crate::FlatSerialize::flat_serialize(&self.value, &format!("{}.Value", name), params);
}
}
/// 标签列表。
#[derive(Debug, Clone, Default, serde::Serialize)]
pub struct DisksTag {
/// 标签键。**不允许**传入空值、重复。
#[serde(rename = "Key")]
#[serde(skip_serializing_if = "Option::is_none")]
pub key: Option<String>,
/// 标签值。**允许**传入空值。
#[serde(rename = "Value")]
#[serde(skip_serializing_if = "Option::is_none")]
pub value: Option<String>,
}
impl crate::FlatSerialize for DisksTag {
fn flat_serialize<'a>(
&'a self,
name: &str,
params: &mut Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'a>)>,
) {
crate::FlatSerialize::flat_serialize(&self.key, &format!("{}.Key", name), params);
crate::FlatSerialize::flat_serialize(&self.value, &format!("{}.Value", name), params);
}
}
/// 标签列表。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct DisksItemTag {
/// 标签键。
#[serde(rename = "TagKey")]
pub tag_key: Option<String>,
/// 标签值。
#[serde(rename = "TagValue")]
pub tag_value: Option<String>,
}
/// 磁盘信息例表。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct ResponseDisk {
/// 磁盘种类。取值说明
///
/// - **cloud_efficiency**:高效云盘。
/// - **cloud_ssd**:SSD云盘。
/// - **cloud_essd**:ESSD云盘。
/// - **cloud_auto**:高性能云盘。
#[serde(rename = "Category")]
pub category: Option<String>,
/// 创建时间。
#[serde(rename = "CreationTime")]
pub creation_time: Option<String>,
/// 是否同时删除自动快照。取值说明:
/// - true:删除云盘上的快照。
/// - false:保留云盘上的快照。
#[serde(rename = "DeleteAutoSnapshot")]
pub delete_auto_snapshot: Option<bool>,
/// 是否随实例释放。该参数取值范围:
///
/// - true:释放实例时,该磁盘随实例一起释放。
/// - false:释放实例时,该磁盘保留不释放。
#[serde(rename = "DeleteWithInstance")]
pub delete_with_instance: Option<bool>,
/// 磁盘描述。
#[serde(rename = "Description")]
pub description: Option<String>,
/// 磁盘的挂载点。
#[serde(rename = "Device")]
pub device: Option<String>,
/// 磁盘的计费方式。
///
/// 仅支持**PostPaid**:按量付费。
#[serde(rename = "DiskChargeType")]
pub disk_charge_type: Option<String>,
/// 磁盘ID。
#[serde(rename = "DiskId")]
pub disk_id: Option<String>,
/// 磁盘名称。
#[serde(rename = "DiskName")]
pub disk_name: Option<String>,
/// 是否只筛选出加密云盘。取值说明:
/// - true:是。
/// - false(默认值):否
#[serde(rename = "Encrypted")]
pub encrypted: Option<bool>,
/// 备用参数,无需填写。
#[serde(rename = "ExpiredTime")]
pub expired_time: Option<String>,
/// ESSD AutoPL云盘预配置的读写IOPS。可能值:0~min{50000, 1000*容量-基准性能}。 基准性能=min{1,800+50*容量, 50,000}。
///
/// `Category`取值为`cloud_auto`时才支持设置该参数。
#[serde(rename = "IOPS")]
pub iops: Option<i64>,
/// 创建RDS Custom实例时使用的镜像ID,只有通过镜像创建的云盘才有值,否则为空。这个值在云盘的生命周期内始终不变。
#[serde(rename = "ImageId")]
pub image_id: Option<String>,
/// 实例ID。
#[serde(rename = "InstanceId")]
pub instance_id: Option<String>,
/// ESSD云盘的性能等级。取值说明:
///
/// - PL0:单盘最高随机读写IOPS 1万。
/// - PL1:单盘最高随机读写IOPS 5万。
/// - PL2:单盘最高随机读写IOPS 10万。
/// - PL3:单盘最高随机读写IOPS 100万。
#[serde(rename = "PerformanceLevel")]
pub performance_level: Option<String>,
/// 地域ID。
#[serde(rename = "RegionId")]
pub region_id: Option<String>,
/// 磁盘所属的资源组ID。
#[serde(rename = "ResourceGroupId")]
pub resource_group_id: Option<String>,
/// 磁盘的序列号。
#[serde(rename = "SerialNumber")]
pub serial_number: Option<String>,
/// 磁盘大小,单位GiB。
#[serde(rename = "Size")]
pub size: Option<i64>,
/// 创建云盘使用的快照ID。
///
/// 如果创建云盘时,没有指定快照,则该参数值为空。该参数值在云盘的生命周期内始终不变。
///
#[serde(rename = "SourceSnapshotId")]
pub source_snapshot_id: Option<String>,
/// 磁盘状态。取值说明:
/// - In_use:使用中。
/// - Available:待挂载。
/// - Attaching:挂载中。
/// - Detaching:卸载中。
/// - Creating:创建中。
/// - ReIniting:初始化中。
#[serde(rename = "Status")]
pub status: Option<String>,
/// 云盘所属的专属块存储集群ID。如果您的云盘在公共云块存储集群中,则该返回值为空。
#[serde(rename = "StorageClusterId")]
pub storage_cluster_id: Option<String>,
/// 存储集ID。
#[serde(rename = "StorageSetId")]
pub storage_set_id: Option<String>,
/// 磁盘类型。取值范围:
/// - system:系统盘。
/// - data:数据盘。
#[serde(rename = "Type")]
pub r#type: Option<String>,
/// 可用区ID。
#[serde(rename = "ZoneId")]
pub zone_id: Option<String>,
/// 标签列表。
#[serde(rename = "Tag")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub tag: Vec<DisksItemTag>,
/// 挂载时间。
#[serde(rename = "AttachedTime")]
pub attached_time: Option<String>,
/// 是否开启 Burst(性能突发)。可能值:
///
/// true:是。
/// false:否。
/// 当DiskCategory取值为cloud_auto时才支持设置该参数。更多信息,请参见ESSD AutoPL 云盘。
#[serde(rename = "BurstingEnabled")]
pub bursting_enabled: Option<bool>,
/// 磁盘是否可卸载。
#[serde(rename = "Portable")]
pub portable: Option<bool>,
}
/// 返回结果。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct ResponseResponse {
/// 返回的状态码。
#[serde(rename = "Code")]
pub code: Option<String>,
/// RDS Custom实例ID。
#[serde(rename = "InstanceId")]
pub instance_id: Option<String>,
/// 请求返回消息。
///
/// > 请求成功时该参数返回**Successful**,请求失败时会返回请求异常信息(如错误码等)。
#[serde(rename = "Message")]
pub message: Option<String>,
}
/// 集群节点列表。
#[derive(Debug, Clone, Default, serde::Serialize)]
pub struct MigrateDBNodesDBNode {
/// 节点所在的可用区ID。
#[serde(rename = "zoneId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub zone_id: Option<String>,
/// 节点id
#[serde(rename = "nodeId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub node_id: Option<String>,
}
/// 公网IP资产的详情列表。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct AddressConfig {
/// 公网IP资产的IP地址。
#[serde(rename = "InstanceIp")]
pub instance_ip: Option<String>,
/// 公网IP资产是否已绑定DDoS原生防护。返回值:
///
/// - **true**:是
/// - **false**:否
#[serde(rename = "IsBgppack")]
pub is_bgppack: Option<bool>,
/// 实例的IP协议版本。返回值:
///
/// - **v4**
/// - **v6**
#[serde(rename = "IpVersion")]
pub ip_version: Option<String>,
/// 公网IP资产的DDoS防护状态。返回值:
///
/// - **mitigating**:清洗中
/// - **blackholed**:黑洞中
/// - **normal**:正常
#[serde(rename = "IpStatus")]
pub ip_status: Option<String>,
/// 公网IP资产所属的地域编码。
#[serde(rename = "RegionId")]
pub region_id: Option<String>,
/// 公网IP资产的DDoS弹性防护阈值。单位:Mbps。
#[serde(rename = "ElasticThreshold")]
pub elastic_threshold: Option<i32>,
/// 公网IP资产的DDoS基础防护阈值。单位:Mbps。
#[serde(rename = "BlackholeThreshold")]
pub blackhole_threshold: Option<i32>,
/// 公网IP资产的流量清洗阈值。单位:Mbps。
#[serde(rename = "DefenseBpsThreshold")]
pub defense_bps_threshold: Option<i32>,
/// 公网IP资产的报文数量清洗阈值。单位:pps。
#[serde(rename = "DefensePpsThreshold")]
pub defense_pps_threshold: Option<i32>,
/// 公网IP资产是否在原生防护中全力防护。返回值:
///
/// - **0**:非全力防护
/// - **1**:全力防护
#[serde(rename = "IsFullProtection")]
pub is_full_protection: Option<i32>,
}
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct InstanceList {
/// Custom实例ID。
#[serde(rename = "InstanceId")]
pub instance_id: Option<String>,
/// 公网IP资产的类型,固定值**ecs**。
#[serde(rename = "InstanceType")]
pub instance_type: Option<String>,
/// Custom实例名称。
#[serde(rename = "InstanceName")]
pub instance_name: Option<String>,
/// 实例的DDoS防护状态。返回值:
///
/// - **normal**:正常
/// - **abnormal**:被攻击中
#[serde(rename = "InstanceStatus")]
pub instance_status: Option<String>,
/// 公网IP资产的详情列表。
#[serde(rename = "IpAddressConfig")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub ip_address_config: Vec<AddressConfig>,
}
/// 正在遭受DDoS攻击的实例数量详情。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct DdosCount {
/// 处于黑洞状态的实例的数量。
#[serde(rename = "BlackholeCount")]
pub blackhole_count: Option<String>,
/// 实例的总数量。
#[serde(rename = "InstacenCount")]
pub instacen_count: Option<String>,
/// 正在进行攻击流量清洗的实例的数量。
#[serde(rename = "DefenseCount")]
pub defense_count: Option<String>,
}
/// 数据盘信息集合列表。
#[derive(Debug, Clone, Default, serde::Serialize)]
pub struct InstancesDataDisk {
/// 数据盘类型,取值:
///
/// - **cloud_efficiency**:高效云盘。
/// - **cloud_ssd**:SSD云盘。
/// - **cloud_essd**(默认):ESSD云盘。
/// - **cloud_auto**:高性能云盘。
#[serde(rename = "Category")]
#[serde(skip_serializing_if = "Option::is_none")]
pub category: Option<String>,
/// 预留参数,暂不支持。
#[serde(rename = "DeleteWithInstance")]
#[serde(skip_serializing_if = "Option::is_none")]
pub delete_with_instance: Option<bool>,
/// 是否加密云盘。取值范围:
/// - **true**:是
/// - **false**(默认):否
#[serde(rename = "Encrypted")]
#[serde(skip_serializing_if = "Option::is_none")]
pub encrypted: Option<String>,
/// 数据盘为ESSD云盘时的性能等级。ESSD云盘的性能差异请参见[ESSD云盘](~~2859916~~)。取值:
///
/// - **PL0**
/// - **PL1**(默认)
/// - **PL2**
/// - **PL3**
#[serde(rename = "PerformanceLevel")]
#[serde(skip_serializing_if = "Option::is_none")]
pub performance_level: Option<String>,
/// 数据盘大小,单位为GiB。取值范围:
///
/// - cloud_efficiency:20~32,768。
/// - cloud_ssd:20~32,768。
/// - cloud_auto:1~65,536。
/// - cloud_essd:具体取值范围与**DataDisk.PerformanceLevel**的取值有关。
/// - PL0:1~65,536。
/// - PL1:20~65,536。
/// - PL2:461~65,536。
/// - PL3:1,261~65,536。
///
/// 如果指定了**DataDisk.SnapshotId**参数且其对应的快照容量大于**DataDisk.Size**的值,则创建的云盘大小与快照相同。如果快照容量小于**DataDisk.Size**的值,则创建的云盘大小将为**DataDisk.Size**的值。
#[serde(rename = "Size")]
#[serde(skip_serializing_if = "Option::is_none")]
pub size: Option<i32>,
/// 创建数据盘使用的快照。
///
/// - 如果**DataDisk.SnapshotId**对应的快照容量大于**DataDisk.Size**的值,则创建的云盘大小与快照相同。如果快照容量小于**DataDisk.Size**的值,则创建的云盘大小将为**DataDisk.Size**的值。
/// - 不支持使用快照创建弹性临时盘。
/// - 2013年7月15日及以前的快照不能用来创建云盘。
#[serde(rename = "SnapshotId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub snapshot_id: Option<String>,
/// 数据盘的挂载点。
///
/// >该参数仅用于全镜像(整机镜像)场景。您可以通过将此参数设置为全镜像中数据盘对应的挂载点,并修改对应的**DataDisk.Size**和**DataDisk.Category**参数,达到修改全镜像中数据盘磁盘种类和大小的目的。
#[serde(rename = "Device")]
#[serde(skip_serializing_if = "Option::is_none")]
pub device: Option<String>,
}
/// 系统盘规格。
#[derive(Debug, Clone, Default, serde::Serialize)]
pub struct InstancesSystemDisk {
/// 系统盘类型,取值:
///
/// - **cloud_efficiency**:高效云盘。
/// - **cloud_ssd**:SSD云盘。
/// - **cloud_essd(默认)**:ESSD云盘。
/// - **cloud_auto**:高性能云盘。
#[serde(rename = "Category")]
#[serde(skip_serializing_if = "Option::is_none")]
pub category: Option<String>,
/// 系统盘大小,单位:GiB。取值必须大于或者等于参数**ImageId**对应的镜像大小。取值范围:
///
/// - **cloud_efficiency**:20~2048。
/// - **cloud_ssd**:20~2048。
/// - **cloud_auto**:1~2048。
/// - **cloud_essd**:具体取值范围与**SystemDisk.PerformanceLevel**的取值有关。
/// - PL0:1~2048。
/// - PL1:20~2048。
/// - PL2:461~2048。
/// - PL3:1,261~2048。
#[serde(rename = "Size")]
#[serde(skip_serializing_if = "Option::is_none")]
pub size: Option<i32>,
/// 系统盘为ESSD云盘时的性能等级。ESSD云盘的性能差异请参见[ESSD云盘](~~2859916~~)。取值:
///
/// - **PL0**
/// - **PL1**(默认)
/// - **PL2**
/// - **PL3**
#[serde(rename = "PerformanceLevel")]
#[serde(skip_serializing_if = "Option::is_none")]
pub performance_level: Option<String>,
}
/// 标签列表。
#[derive(Debug, Clone, Default, serde::Serialize)]
pub struct InstancesTag {
/// 标签键。可以同时创建N个标签键,N的取值范围:**1~20**。不允许传入空字符串。
#[serde(rename = "Key")]
#[serde(skip_serializing_if = "Option::is_none")]
pub key: Option<String>,
/// 标签键对应的标签值。可以同时创建N个标签值,N的取值范围:**1~20**。允许传入空字符串。
#[serde(rename = "Value")]
#[serde(skip_serializing_if = "Option::is_none")]
pub value: Option<String>,
}
impl crate::FlatSerialize for InstancesTag {
fn flat_serialize<'a>(
&'a self,
name: &str,
params: &mut Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'a>)>,
) {
crate::FlatSerialize::flat_serialize(&self.key, &format!("{}.Key", name), params);
crate::FlatSerialize::flat_serialize(&self.value, &format!("{}.Value", name), params);
}
}
/// ACK Edge集群信息。
#[derive(Debug, Clone, Default, serde::Serialize)]
pub struct EdgeParam {
/// 目标ACK Edge集群ID。
#[serde(rename = "ClusterId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub cluster_id: Option<String>,
/// ACK Edge集群内目标边缘节点池ID。
#[serde(rename = "NodePoolId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub node_pool_id: Option<String>,
}
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct IdSets {
/// 实例ID(InstanceIdSet)列表。
#[serde(rename = "InstanceIdSet")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub instance_id_set: Vec<String>,
}
/// 预留参数,暂不支持。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct OfInstance {
/// 预留参数,暂不支持。
#[serde(rename = "Currency")]
pub currency: Option<String>,
/// 预留参数,暂不支持。
#[serde(rename = "Fee")]
pub fee: Option<String>,
/// 预留参数,暂不支持。
#[serde(rename = "InstanceId")]
pub instance_id: Option<String>,
}
/// 数据盘集合。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct DisksDataDisk {
/// 数据盘的磁盘种类。
#[serde(rename = "Category")]
pub category: Option<String>,
/// 数据盘是否加密。该参数取值范围:
///
/// - **true**:加密。
/// - **false**:不加密。
#[serde(rename = "Encrypted")]
pub encrypted: Option<String>,
/// 当数据盘为ESSD云盘时,云盘的性能等级。
#[serde(rename = "PerformanceLevel")]
pub performance_level: Option<String>,
/// 数据盘的磁盘大小,单位为GiB。
#[serde(rename = "Size")]
pub size: Option<i64>,
/// 指定数据盘是否随实例释放。该参数取值范围:
///
/// - **true**:释放实例时,该磁盘随实例一起释放。
/// - **false**:释放实例时,该磁盘保留不释放。
#[serde(rename = "DeleteWithInstance")]
pub delete_with_instance: Option<bool>,
/// 磁盘挂载的实例的设备名
#[serde(rename = "Device")]
pub device: Option<String>,
/// 创建云盘使用的快照 ID。
/// 如果创建云盘时,没有指定快照,则该参数值为空。
#[serde(rename = "SnapshotId")]
pub snapshot_id: Option<String>,
}
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct DataDisks {
/// 数据盘集合。
#[serde(rename = "DataDisk")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub data_disk: Vec<DisksDataDisk>,
}
/// 专有宿主机属性数组。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct HostAttribute {
/// 专有宿主机ID。
#[serde(rename = "DedicatedHostId")]
pub dedicated_host_id: Option<String>,
/// 专有宿主机的名称。
#[serde(rename = "DedicatedHostName")]
pub dedicated_host_name: Option<String>,
}
/// 标签信息。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct ResponseTagsTag {
/// 资源ID。
#[serde(rename = "ResourceId")]
pub resource_id: Option<String>,
/// 标签键。
#[serde(rename = "TagKey")]
pub tag_key: Option<String>,
/// 资源类型。
///
/// - **ALIYUN::RDS::INSTANCE**:云数据库RDS实例
/// - **ALIYUN::RDS::CUSTOM**:RDS Custom实例
#[serde(rename = "ResourceType")]
pub resource_type: Option<String>,
/// 标签值。
#[serde(rename = "TagValue")]
pub tag_value: Option<String>,
}
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct ResponseTags {
/// 标签列表。
#[serde(rename = "Tag")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub tag: Vec<ResponseTagsTag>,
}
/// 弹性公网IP绑定信息。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct EipAddress {
/// 弹性公网IP的ID。
#[serde(rename = "AllocationId")]
pub allocation_id: Option<String>,
/// 弹性公网IP的公网带宽限速,单位为Mbit/s。
#[serde(rename = "Bandwidth")]
pub bandwidth: Option<i32>,
/// 公网类型实例付费方式。取值:
///
/// - **paybytraffic**:按使用流量计费。
/// - **paybybandwidth**:按固定带宽计费。
/// > **按使用流量计费**模式下的出入带宽峰值都是带宽上限,不作为业务承诺指标。当出现资源争抢时,带宽峰值可能会受到限制。如果您的业务需要有带宽的保障,请使用**按固定带宽计费**模式。
#[serde(rename = "InternetChargeType")]
pub internet_charge_type: Option<String>,
/// 弹性公网IP地址。
#[serde(rename = "IpAddress")]
pub ip_address: Option<String>,
}
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct InnerIpAddress {
/// 经典网络类型实例的内网IP地址。
#[serde(rename = "IpAddress")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub ip_address: Vec<String>,
}
/// 实例锁定类型。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct LockReason {
/// 实例锁定类型。可能值:
///
/// - **financial**:因欠费被锁定。
/// - **security**:因安全原因被锁定。
/// - **Recycling**:抢占式实例的待释放锁定状态。
/// - **dedicatedhostfinancial**:因为专有宿主机欠费导致RDS Custom实例被锁定。
/// - **refunded**:因退款被锁定。
#[serde(rename = "LockReason")]
pub lock_reason: Option<String>,
}
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct OperationLocks {
/// 实例锁定类型。
#[serde(rename = "LockReason")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub lock_reason: Vec<LockReason>,
}
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct PublicIpAddress {
/// 实例公网IP地址。
#[serde(rename = "IpAddress")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub ip_address: Vec<String>,
}
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct GroupIds {
/// 安全组。
#[serde(rename = "SecurityGroupId")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub security_group_id: Vec<String>,
}
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct PrivateIpAddress {
/// 私有IP地址。
#[serde(rename = "IpAddress")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub ip_address: Vec<String>,
}
/// 专有网络VPC属性。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct ResponseVpcAttributes {
/// 云产品的IP,用于VPC云产品之间的网络互通。
#[serde(rename = "NatIpAddress")]
pub nat_ip_address: Option<String>,
#[serde(rename = "PrivateIpAddress")]
pub private_ip_address: Option<PrivateIpAddress>,
/// 交换机ID。
#[serde(rename = "VSwitchId")]
pub v_switch_id: Option<String>,
/// 专有网络VPC ID。
#[serde(rename = "VpcId")]
pub vpc_id: Option<String>,
}
/// 系统盘规格。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct ResponseSystemDisk {
/// 系统盘大小,单位:GiB。
#[serde(rename = "SystemDiskSize")]
pub system_disk_size: Option<i64>,
/// 系统盘类型,取值:
///
/// - **cloud_efficiency**:高效云盘。
/// - **cloud_ssd**:SSD云盘。
/// - **cloud_essd**:ESSD云盘。
/// - **cloud_auto**:高性能云盘。
#[serde(rename = "SystemDiskCategory")]
pub system_disk_category: Option<String>,
/// 系统盘为ESSD云盘时的性能等级。取值:
///
/// - **PL0**
/// - **PL1**
/// - **PL2**
/// - **PL3**
#[serde(rename = "SystemDiskPerformanceLevel")]
pub system_disk_performance_level: Option<String>,
/// 备用参数。
#[serde(rename = "DeleteWithInstance")]
pub delete_with_instance: Option<bool>,
/// 是否加密云盘。取值:
///
/// - **true**:是
/// - **false**:否
#[serde(rename = "Encrypted")]
pub encrypted: Option<String>,
}
/// 查询到的实例和标签详情。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct ItemTagResource {
/// 资源ID。
#[serde(rename = "ResourceId")]
pub resource_id: Option<String>,
/// 资源类型。
///
/// - `ALIYUN::RDS::INSTANCE`:云数据库RDS实例
/// - `ALIYUN::RDS::CUSTOM`:RDS Custom实例
#[serde(rename = "ResourceType")]
pub resource_type: Option<String>,
/// 标签键。
#[serde(rename = "TagKey")]
pub tag_key: Option<String>,
/// 标签值。
#[serde(rename = "TagValue")]
pub tag_value: Option<String>,
}
/// 标签详情。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct InstancesItemTag {
/// 资源ID。
#[serde(rename = "ResourceId")]
pub resource_id: Option<String>,
/// 资源类型。
///
/// - `ALIYUN::RDS::INSTANCE`:云数据库RDS实例
/// - `ALIYUN::RDS::CUSTOM`:RDS Custom实例
#[serde(rename = "ResourceType")]
pub resource_type: Option<String>,
/// 标签键。
#[serde(rename = "TagKey")]
pub tag_key: Option<String>,
/// 标签值。
#[serde(rename = "TagValue")]
pub tag_value: Option<String>,
}
/// 专有网络VPC属性。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct ItemVpcAttributes {
/// 预留参数。
#[serde(rename = "NatIpAddress")]
pub nat_ip_address: Option<String>,
/// 私网IP地址。
#[serde(rename = "PrivateIpAddress")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub private_ip_address: Vec<String>,
/// 交换机ID。
#[serde(rename = "VSwitchId")]
pub v_switch_id: Option<String>,
/// 专有网络VPC ID。
#[serde(rename = "VpcId")]
pub vpc_id: Option<String>,
}
/// 实例详情信息。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct CInstance {
/// 主机IP地址。
#[serde(rename = "HostIp")]
pub host_ip: Option<String>,
/// 主机名称。
#[serde(rename = "HostName")]
pub host_name: Option<String>,
/// 集群名称。
#[serde(rename = "ClusterName")]
pub cluster_name: Option<String>,
/// 数据库类型。
#[serde(rename = "DbType")]
pub db_type: Option<String>,
/// 实例状态。返回值如下:
///
/// - **Pending**:创建中
/// - **Running**:运行中
/// - **Starting**:启动中
/// - **Stopping**:暂停中
/// - **Stopped**:已暂停
///
/// > 此接口返回的实例状态可能存在延迟,如果与**DescribeRCInstanceAttribute**接口返回值存在差异,请以**DescribeRCInstanceAttribute**接口为准。
#[serde(rename = "Status")]
pub status: Option<String>,
/// 地域ID。
#[serde(rename = "RegionId")]
pub region_id: Option<String>,
/// 专有网络VPC的ID。
#[serde(rename = "VpcId")]
pub vpc_id: Option<String>,
/// 实例ID。
#[serde(rename = "InstanceId")]
pub instance_id: Option<String>,
/// 描述信息
#[serde(rename = "Description")]
pub description: Option<String>,
/// 任务创建时间(GMT)。
#[serde(rename = "GmtCreated")]
pub gmt_created: Option<String>,
/// 付费类型,返回值如下:
/// * **PrePaid**:包年包月
/// * **PostPaid**:按量付费
#[serde(rename = "InstanceChargeType")]
pub instance_charge_type: Option<String>,
/// 是否允许加入ACK集群。该参数配置为**1**时,创建的实例可以通过API接口**AttachRCInstances**添加到ACK集群中,从而实现对容器应用的高效管理。
///
/// - **1**:是
/// - **0**(默认):否
#[serde(rename = "CreateMode")]
pub create_mode: Option<String>,
/// 可用区ID。
#[serde(rename = "ZoneId")]
pub zone_id: Option<String>,
/// 查询到的实例和标签详情。
#[serde(rename = "TagResources")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub tag_resources: Vec<ItemTagResource>,
/// 按量付费实例的竞价策略。返回值如下:
///
/// - **NoSpot**:正常按量付费实例。
/// - **SpotAsPriceGo**:系统自动出价,跟随当前市场实际价格。
#[serde(rename = "SpotStrategy")]
pub spot_strategy: Option<String>,
/// 标签详情。
#[serde(rename = "Tags")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub tags: Vec<InstancesItemTag>,
/// 实例公网IP。
#[serde(rename = "PublicIp")]
pub public_ip: Option<String>,
/// 实例规格。
///
/// 更多信息请参见[RDS Custom实例规格列表](~~2844823~~)。
#[serde(rename = "InstanceType")]
pub instance_type: Option<String>,
/// 实例规格族。
///
///
/// 更多信息请参见[RDS Custom实例规格列表](~~2844823~~)。
#[serde(rename = "InstanceTypeFamily")]
pub instance_type_family: Option<String>,
/// 安全组ID。
#[serde(rename = "SecurityGroupId")]
pub security_group_id: Option<String>,
/// vCPU数量。
#[serde(rename = "Cpu")]
pub cpu: Option<i32>,
/// 内存大小,单位MiB。
#[serde(rename = "Memory")]
pub memory: Option<i32>,
/// 实例到期时间。按照ISO 8601标准表示,并使用UTC+0时间,格式为`yyyy-MM-ddTHH:mm:ssZ`。
///
/// > +8小时后是控制台上显示的到期时间。
#[serde(rename = "ExpiredTime")]
pub expired_time: Option<String>,
/// 部署集ID。
#[serde(rename = "DeploymentSetId")]
pub deployment_set_id: Option<String>,
/// 镜像ID。
#[serde(rename = "ImageId")]
pub image_id: Option<String>,
/// 专有网络VPC属性。
#[serde(rename = "VpcAttributes")]
pub vpc_attributes: Option<ItemVpcAttributes>,
/// 节点类型。返回**rds_vnode**时,表示该节点是容器节点。
#[serde(rename = "NodeType")]
pub node_type: Option<String>,
/// 实例名称
#[serde(rename = "InstanceName")]
pub instance_name: Option<String>,
#[serde(rename = "StoppedMode")]
pub stopped_mode: Option<String>,
/// 实例的操作系统名称。
#[serde(rename = "OSName")]
pub os_name: Option<String>,
/// 实例的操作系统类型,分为 Windows Server 和 Linux 两种。可能值:
///
/// windows。
/// linux。
#[serde(rename = "OSType")]
pub os_type: Option<String>,
/// 实例最近一次的启动时间。以 ISO 8601 为标准,并使用 UTC+0 时间,格式为 yyyy-MM-ddTHH:mmZ。
#[serde(rename = "StartTime")]
pub start_time: Option<String>,
/// 实例主机名。
#[serde(rename = "EcsHostName")]
pub ecs_host_name: Option<String>,
}
/// 镜像下包含云盘和快照的映射关系。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct DeviceMapping {
/// 云盘的属性。
///
/// - **system**:系统盘。
/// - **data**:数据盘。
#[serde(rename = "Type")]
pub r#type: Option<String>,
/// 云盘的设备信息,例如`/dev/xvdb`。
#[serde(rename = "Device")]
pub device: Option<String>,
/// 云盘的大小。单位为 GiB。
#[serde(rename = "Size")]
pub size: Option<String>,
}
/// 镜像信息集合。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct ResponseImage {
/// 镜像系统架构类型。取值:
///
/// - x86_64。
/// - arm64。
#[serde(rename = "Architecture")]
pub architecture: Option<String>,
/// 镜像的创建时间。
#[serde(rename = "CreationTime")]
pub creation_time: Option<String>,
/// 镜像描述信息。
#[serde(rename = "Description")]
pub description: Option<String>,
/// 镜像ID。
#[serde(rename = "ImageId")]
pub image_id: Option<String>,
/// 镜像名称。
#[serde(rename = "ImageName")]
pub image_name: Option<String>,
/// 镜像版本。
#[serde(rename = "ImageVersion")]
pub image_version: Option<String>,
/// 是否为公开镜像。公开镜像包括阿里云提供的公共镜像以及您已发布为社区镜像的自定义镜像。
///
/// - **true**:公开镜像。
/// - **false**:非公开镜像。
#[serde(rename = "IsPublic")]
pub is_public: Option<bool>,
/// 操作系统的中文显示名称。
#[serde(rename = "OSName")]
pub os_name: Option<String>,
/// 操作系统的英文显示名称。
#[serde(rename = "OSNameEn")]
pub os_name_en: Option<String>,
/// 操作系统类型。取值:
///
/// - **windows**。
/// - **linux**。
#[serde(rename = "OSType")]
pub os_type: Option<String>,
/// 镜像大小。单位:GiB。
#[serde(rename = "Size")]
pub size: Option<i64>,
/// 镜像的状态。取值:
///
/// - **UnAvailable**:不可用。
/// - **Available**:可用。
/// - **Creating**:创建中。
/// - **CreateFailed**:创建失败。
#[serde(rename = "Status")]
pub status: Option<String>,
/// 镜像是否被RDS Custom实例使用。取值:
///
/// - **instance**:创建了一个或多个RDS Custom实例。
/// - **none**:未创建过RDS Custom实例。
#[serde(rename = "Usage")]
pub usage: Option<String>,
/// 是否支持RDS Custom实例。取值:
///
/// - **true**:是。
/// - **false**:否。
#[serde(rename = "IsSupportRdsCustom")]
pub is_support_rds_custom: Option<bool>,
/// 操作系统平台。
#[serde(rename = "Platform")]
pub platform: Option<String>,
/// 镜像下包含云盘和快照的映射关系。
#[serde(rename = "DiskDeviceMappings")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub disk_device_mappings: Vec<DeviceMapping>,
}
/// 标签列表。
#[derive(Debug, Clone, Default, serde::Serialize)]
pub struct DiskTag {
/// 标签键。可以同时创建N个标签键,N的取值范围:**1~20**。不允许传入空字符串。
#[serde(rename = "Key")]
#[serde(skip_serializing_if = "Option::is_none")]
pub key: Option<String>,
/// 标签键对应的标签值。可以同时查询N个标签值,N的取值范围:**1**~**20**。允许传入空字符串。
#[serde(rename = "Value")]
#[serde(skip_serializing_if = "Option::is_none")]
pub value: Option<String>,
}
impl crate::FlatSerialize for DiskTag {
fn flat_serialize<'a>(
&'a self,
name: &str,
params: &mut Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'a>)>,
) {
crate::FlatSerialize::flat_serialize(&self.key, &format!("{}.Key", name), params);
crate::FlatSerialize::flat_serialize(&self.value, &format!("{}.Value", name), params);
}
}
/// 数据盘信息集合列表。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct ItemDataDisk {
/// 数据盘类型,目前只支持**cloud_essd**(ESSD云盘)。
#[serde(rename = "Category")]
pub category: Option<String>,
/// 备用参数,暂不支持。
#[serde(rename = "DeleteWithInstance")]
pub delete_with_instance: Option<bool>,
/// 是否加密云盘。返回值:
///
/// - **true**:是
/// - **false**(默认值):否
#[serde(rename = "Encrypted")]
pub encrypted: Option<String>,
/// SSD云盘的性能等级。返回值:
///
/// - **PL0**:单盘最高随机读写IOPS 1万。
/// - **PL1**:单盘最高随机读写IOPS 5万。
/// - **PL2**:单盘最高随机读写IOPS 10万。
/// - **PL3**:单盘最高随机读写IOPS 100万。
#[serde(rename = "PerformanceLevel")]
pub performance_level: Option<String>,
/// 数据盘大小,单位为GiB。
#[serde(rename = "Size")]
pub size: Option<i32>,
}
/// 标签列表。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct ListItemTag {
/// 标签键。
#[serde(rename = "Key")]
pub key: Option<String>,
/// 标签键对应的标签值。
#[serde(rename = "Value")]
pub value: Option<String>,
}
/// 系统盘规格。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct ItemSystemDisk {
/// 系统盘的云盘种类,目前仅支持**cloud_essd**(ESSD 云盘)。
#[serde(rename = "Category")]
pub category: Option<String>,
/// 系统盘大小,单位:GiB。
#[serde(rename = "Size")]
pub size: Option<i32>,
/// SSD云盘的性能等级。返回值:
///
/// - **PL0**:单盘最高随机读写IOPS 1万。
/// - **PL1**:单盘最高随机读写IOPS 5万。
/// - **PL2**:单盘最高随机读写IOPS 10万。
/// - **PL3**:单盘最高随机读写IOPS 100万。
#[serde(rename = "PerformanceLevel")]
pub performance_level: Option<String>,
}
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct PoolList {
/// RDS Custom容器集群ID。
#[serde(rename = "ClusterId")]
pub cluster_id: Option<String>,
/// 节点池ID。
#[serde(rename = "NodePoolId")]
pub node_pool_id: Option<String>,
/// 备用参数,暂不支持。
#[serde(rename = "SecurityEnhancementStrategy")]
pub security_enhancement_strategy: Option<String>,
/// 数据盘列表。
#[serde(rename = "DataDisk")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub data_disk: Vec<ItemDataDisk>,
/// 标签列表。
#[serde(rename = "Tag")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub tag: Vec<ListItemTag>,
/// 部署集ID。
#[serde(rename = "DeploymentSetId")]
pub deployment_set_id: Option<String>,
/// 实例描述。
#[serde(rename = "Description")]
pub description: Option<String>,
/// 实例名称。
#[serde(rename = "InstanceName")]
pub instance_name: Option<String>,
/// 实例root账号密码。
#[serde(rename = "Password")]
pub password: Option<String>,
/// 交换机ID。
#[serde(rename = "VSwitchId")]
pub v_switch_id: Option<String>,
/// 实例主机名。
#[serde(rename = "HostName")]
pub host_name: Option<String>,
/// 备用参数,暂不支持。
#[serde(rename = "InternetChargeType")]
pub internet_charge_type: Option<String>,
/// 实例使用的镜像ID。
#[serde(rename = "ImageId")]
pub image_id: Option<String>,
/// 实例资源规格。
#[serde(rename = "InstanceType")]
pub instance_type: Option<String>,
/// 备用参数,暂不支持。
#[serde(rename = "InternetMaxBandwidthOut")]
pub internet_max_bandwidth_out: Option<i32>,
/// 备用参数,暂不支持。
#[serde(rename = "IoOptimized")]
pub io_optimized: Option<String>,
/// 密钥对名称。
#[serde(rename = "KeyPairName")]
pub key_pair_name: Option<String>,
/// 实例所在地域ID。
#[serde(rename = "RegionId")]
pub region_id: Option<String>,
/// 安全组ID。
#[serde(rename = "SecurityGroupId")]
pub security_group_id: Option<String>,
/// 是否自动支付。返回值:
/// - **true**(默认):自动支付。您需要确保账户余额充足。
/// - **false**:只生成订单不扣费。
#[serde(rename = "AutoPay")]
pub auto_pay: Option<bool>,
/// 可用区ID。
#[serde(rename = "ZoneId")]
pub zone_id: Option<String>,
/// 资源组ID。
#[serde(rename = "ResourceGroupId")]
pub resource_group_id: Option<String>,
/// 付费类型,返回值:
/// * **Prepaid**:包年包月。
/// * **Postpaid**:按量付费。
#[serde(rename = "InstanceChargeType")]
pub instance_charge_type: Option<String>,
/// 备用参数,暂不支持。
#[serde(rename = "SpotStrategy")]
pub spot_strategy: Option<String>,
/// 系统盘规格。
#[serde(rename = "SystemDisk")]
pub system_disk: Option<ItemSystemDisk>,
/// 是否允许加入ACK集群。
#[serde(rename = "CreateMode")]
pub create_mode: Option<String>,
/// 购买资源的时长。
#[serde(rename = "Period")]
pub period: Option<i32>,
/// 包年包月计费方式的时长单位。返回值:
/// - **Year**:年
/// - **Month**(默认):月
#[serde(rename = "PeriodUnit")]
pub period_unit: Option<String>,
/// 实例是否自动续费。返回值:
///
/// * **true**(默认):是
/// * **false**:否
#[serde(rename = "AutoRenew")]
pub auto_renew: Option<bool>,
/// 节点池名称。
#[serde(rename = "NodePoolName")]
pub node_pool_name: Option<String>,
}
/// 数据盘信息集合列表。
#[derive(Debug, Clone, Default, serde::Serialize)]
pub struct PoolDataDisk {
/// 数据盘类型,目前只支持**cloud_essd**(ESSD云盘)。
#[serde(rename = "Category")]
#[serde(skip_serializing_if = "Option::is_none")]
pub category: Option<String>,
/// 备用参数,暂不支持。
#[serde(rename = "DeleteWithInstance")]
#[serde(skip_serializing_if = "Option::is_none")]
pub delete_with_instance: Option<bool>,
/// 数据盘是否加密。该参数取值范围:
///
/// - **true**:是
/// - **false**:(默认值)否
#[serde(rename = "Encrypted")]
#[serde(skip_serializing_if = "Option::is_none")]
pub encrypted: Option<String>,
/// ESSD云盘的性能等级。取值说明:
///
/// - **PL0**:单盘最高随机读写IOPS 1万。
/// - **PL1**:单盘最高随机读写IOPS 5万。
/// - **PL2**:单盘最高随机读写IOPS 10万。
/// - **PL3**:单盘最高随机读写IOPS 100万。
#[serde(rename = "PerformanceLevel")]
#[serde(skip_serializing_if = "Option::is_none")]
pub performance_level: Option<String>,
/// 数据盘大小,单位为GiB,取值范围:20~65536。
#[serde(rename = "Size")]
#[serde(skip_serializing_if = "Option::is_none")]
pub size: Option<i32>,
}
/// 系统盘规格。
#[derive(Debug, Clone, Default, serde::Serialize)]
pub struct PoolSystemDisk {
/// 系统盘的云盘种类,目前仅支持**cloud_essd**(ESSD 云盘)。
#[serde(rename = "Category")]
#[serde(skip_serializing_if = "Option::is_none")]
pub category: Option<String>,
/// 系统盘大小,单位:GiB。取值范围:20~2048。
#[serde(rename = "Size")]
#[serde(skip_serializing_if = "Option::is_none")]
pub size: Option<i32>,
/// ESSD云盘的性能等级。取值说明:
///
/// - **PL0**:单盘最高随机读写IOPS 1万。
/// - **PL1**:单盘最高随机读写IOPS 5万。
/// - **PL2**:单盘最高随机读写IOPS 10万。
/// - **PL3**:单盘最高随机读写IOPS 100万。
#[serde(rename = "PerformanceLevel")]
#[serde(skip_serializing_if = "Option::is_none")]
pub performance_level: Option<String>,
}
/// 标签列表。
#[derive(Debug, Clone, Default, serde::Serialize)]
pub struct PoolTag {
/// 标签键。可以同时创建N个标签键,N的取值范围:**1~20**。不允许传入空字符串。
#[serde(rename = "Key")]
#[serde(skip_serializing_if = "Option::is_none")]
pub key: Option<String>,
/// 标签键对应的标签值。可以同时创建N个标签值,N的取值范围:**1**~**20**。允许传入空字符串。
#[serde(rename = "Value")]
#[serde(skip_serializing_if = "Option::is_none")]
pub value: Option<String>,
}
impl crate::FlatSerialize for PoolTag {
fn flat_serialize<'a>(
&'a self,
name: &str,
params: &mut Vec<(std::borrow::Cow<'static, str>, crate::QueryValue<'a>)>,
) {
crate::FlatSerialize::flat_serialize(&self.key, &format!("{}.Key", name), params);
crate::FlatSerialize::flat_serialize(&self.value, &format!("{}.Value", name), params);
}
}
/// 安全组信息。
#[derive(Debug, Clone, Default, serde::Serialize)]
pub struct GroupPermission {
/// 授权策略。
#[serde(rename = "Policy")]
#[serde(skip_serializing_if = "Option::is_none")]
pub policy: Option<String>,
/// 规则优先级。取值范围为 1~100。
/// 数字越小,代表优先级越高,优先级相同的安全组规则,优先以拒绝访问(drop)的规则为准。
#[serde(rename = "Priority")]
#[serde(skip_serializing_if = "Option::is_none")]
pub priority: Option<i32>,
/// 协议类型。不区分大小写。取值范围:
///
/// - **ICMP**
/// - **GRE**
/// - **TCP**
/// - **UDP**
/// - **ALL**(支持所有协议)
#[serde(rename = "IpProtocol")]
#[serde(skip_serializing_if = "Option::is_none")]
pub ip_protocol: Option<String>,
/// 源端 IP 地址段,用于入方向授权。支持 CIDR 格式和 IPv4 格式的 IP 地址范围。
#[serde(rename = "SourceCidrIp")]
#[serde(skip_serializing_if = "Option::is_none")]
pub source_cidr_ip: Option<String>,
/// 目的端安全组开放的传输层协议相关的端口范围。取值范围:
/// - TCP/UDP协议:取值范围为**1**~**65535**。使用斜线(/)隔开起始端口和终止端口。正确示范:**1/200**;错误示范:**200/1**。
/// - ICMP协议:**-1/-1**。
/// - GRE协议:**-1/-1**。
/// - IpProtocol取值为all:**-1/-1**。
#[serde(rename = "PortRange")]
#[serde(skip_serializing_if = "Option::is_none")]
pub port_range: Option<String>,
/// 目的端 IP 地址段,用于出方向授权。支持 CIDR 格式和 IPv4 格式的 IP 地址范围。
#[serde(rename = "DestCidrIp")]
#[serde(skip_serializing_if = "Option::is_none")]
pub dest_cidr_ip: Option<String>,
/// 源端安全组开放的传输层协议相关的端口范围。取值范围:
///
/// - TCP/UDP协议:取值范围为**1**~**65535**。使用斜线(/)隔开起始端口和终止端口。正确示范:**1/200**;错误示范:**200/1**。
/// - ICMP协议:**-1/-1**。
/// - GRE协议:**-1/-1**。
/// - IpProtocol取值为all:**-1/-1**。
#[serde(rename = "SourcePortRange")]
#[serde(skip_serializing_if = "Option::is_none")]
pub source_port_range: Option<String>,
}
/// 事件列表。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct EventsStatResponseItem {
/// 系统事件分类。取值说明:
/// - **Exception**:异常事件
/// - **Optimize**:优化事件
/// - **Notification**:通知事件
/// - **Maintenance**:计划内运维事件
#[serde(rename = "EventCategory")]
pub event_category: Option<String>,
/// 总记录数。
#[serde(rename = "TotalCount")]
pub total_count: Option<i32>,
}
/// 数据概览。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct ItemData {
/// 应用分组的云服务类型,取值说明:
/// - **web**:web应用。
/// - **native**:本地应用。
#[serde(rename = "CmsProduct")]
pub cms_product: Option<String>,
/// 数据库类型。
#[serde(rename = "DbType")]
pub db_type: Option<String>,
/// 翻页参数。
#[serde(rename = "DetailImpact")]
pub detail_impact: Option<String>,
/// 实例操作详情。
#[serde(rename = "DetailReason")]
pub detail_reason: Option<String>,
/// 告警结束时间。
#[serde(rename = "EndTime")]
pub end_time: Option<String>,
/// 系统事件分类。取值说明:
/// - **Exception**:异常事件
/// - **Optimize**:优化事件
/// - **Notification**:通知事件
/// - **Maintenance**:计划内运维事件
#[serde(rename = "EventCategory")]
pub event_category: Option<String>,
/// 事件编码。
#[serde(rename = "EventCode")]
pub event_code: Option<String>,
/// 事件详情。
#[serde(rename = "EventDetail")]
pub event_detail: Option<String>,
/// 事件ID。
#[serde(rename = "EventId")]
pub event_id: Option<String>,
/// 事件影响概况。
#[serde(rename = "EventImpact")]
pub event_impact: Option<String>,
/// 事件级别,取值说明:
/// - **INFO**:通知
/// - **WARN**:警告
/// - **CRITICAL**:紧急
#[serde(rename = "EventLevel")]
pub event_level: Option<String>,
/// 事件操作的来源。
#[serde(rename = "EventReason")]
pub event_reason: Option<String>,
/// 事件状态,取值说明:
/// - **Inquiring**:问询中
/// - **Scheduled**:计划中
/// - **Running**:执行中
/// - **Succeed**:执行完成
/// - **Failed**:执行失败
/// - **Canceled**:已取消
#[serde(rename = "EventStatus")]
pub event_status: Option<String>,
/// 系统事件类型,取值说明:
/// - **SystemMaintenance.Reboot**:因系统维护实例重启
/// - **SystemMaintenance.Redeploy**:因系统维护实例重新部署
/// - **SystemFailure.Reboot**:因系统错误实例重启
/// - **SystemFailure.Redeploy**:因系统错误实例重新部署
/// - **SystemFailure.Delete**:因实例创建失败实例释放
/// - **InstanceFailure.Reboot**:因实例错误实例重启
/// - **InstanceExpiration.Stop**:因包年包月期限到期,实例停止
/// - **InstanceExpiration.Delete**:因包年包月期限到期,实例释放
/// - **AccountUnbalanced.Stop**:因账号欠费,按量付费实例停止
/// - **AccountUnbalanced.Delete**:因账号欠费,按量付费实例释放
#[serde(rename = "EventType")]
pub event_type: Option<String>,
/// 事件的创建时间。
#[serde(rename = "GmtCreated")]
pub gmt_created: Option<String>,
/// 事件的更新时间。
#[serde(rename = "GmtModified")]
pub gmt_modified: Option<String>,
/// 处理状态。
#[serde(rename = "HandleStatus")]
pub handle_status: Option<String>,
/// 是否有生命周期。
#[serde(rename = "HasLifeCycle")]
pub has_life_cycle: Option<i32>,
/// 实例ID。
#[serde(rename = "InstanceId")]
pub instance_id: Option<String>,
/// 实例名称。
#[serde(rename = "InstanceName")]
pub instance_name: Option<String>,
/// 是否关闭成功,取值说明:
/// - **0**:关闭
/// - **1**:开启
#[serde(rename = "IsClosed")]
pub is_closed: Option<i32>,
/// 产品名称。
#[serde(rename = "Product")]
pub product: Option<String>,
/// 地域ID。
#[serde(rename = "RegionId")]
pub region_id: Option<String>,
/// 资源类型,取值说明:
/// - **Instance**:实例资源
/// - **Host**:主机资源
/// - **User**:用户资源
#[serde(rename = "ResourceType")]
pub resource_type: Option<String>,
/// 源数据的类型。
#[serde(rename = "SourceType")]
pub source_type: Option<String>,
/// 开始时间。
#[serde(rename = "StartTime")]
pub start_time: Option<String>,
/// 资源所属用户ID。
#[serde(rename = "Uid")]
pub uid: Option<String>,
}
/// 事件列表。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct EventsResponseItem {
/// 数据概览。
#[serde(rename = "Data")]
pub data: Option<ItemData>,
/// 任务ID。
#[serde(rename = "Id")]
pub id: Option<String>,
/// 地域。
#[serde(rename = "Region")]
pub region: Option<String>,
/// 事件来源。
#[serde(rename = "Source")]
pub source: Option<String>,
/// 数据库版本。
#[serde(rename = "Specversion")]
pub specversion: Option<String>,
/// 待处理事件的名称。
#[serde(rename = "Subject")]
pub subject: Option<String>,
/// 查询任务已运行时间,单位:秒(s)。
#[serde(rename = "Time")]
pub time: Option<String>,
/// 事件类型。
#[serde(rename = "Type")]
pub r#type: Option<String>,
}
/// 任务信息列表。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct TasksStatResponseItem {
/// 任务状态,取值说明:
/// - **Scheduled**:等待执行
/// - **Running**:执行中
/// - **Succeed**:执行成功
/// - **Failed**:执行失败
/// - **Cancelling**:正在终止
/// - **Canceled**:已终止
/// - **Waiting**:等待预设时间
#[serde(rename = "Status")]
pub status: Option<String>,
/// 任务总数量。
#[serde(rename = "TotalCount")]
pub total_count: Option<i32>,
}
/// 任务对象。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct HistoryTasksResponseItem {
/// 允许的操作信息,具体使用时是根据currentStepName+status在此信息中匹配操作Action,如果未匹配到Action,代表任务当前状态不支持操作,示例:
/// ```ignore
/// "steps": [
/// {
/// "step_name": "exec_task", // 步骤名, 与currentStepName匹配
/// "action_info": { // 步骤支持的操作
/// "Waiting": [ // 状态,与status匹配
/// "modifySwitchTime" // 操作Action,可能多个,即代表支持多个操作
/// ]
/// }
/// },
/// {
/// "step_name": "init_task", // 步骤名
/// "action_info": { // 步骤支持的操作
/// "Running": [ // 状态
/// "cancel", // 操作
/// "pause"
/// ]
/// }
/// }
/// ]
/// }
/// ```
///
/// 系统可支持的操作:
/// - **retry**:重试
/// - **cancel**:取消
/// - **modifySwitchTime**:修改切换时间或恢复时间
#[serde(rename = "ActionInfo")]
pub action_info: Option<String>,
/// 请求用户ID,callerSource为User时代表用户UID。
#[serde(rename = "CallerSource")]
pub caller_source: Option<String>,
/// 请求来源,取值说明:
/// - **System**:系统
/// - **User**:用户
#[serde(rename = "CallerUid")]
pub caller_uid: Option<String>,
/// 当前执行的步骤名,如果为空代表任务未开始。
#[serde(rename = "CurrentStepName")]
pub current_step_name: Option<String>,
/// 数据库类型。
#[serde(rename = "DbType")]
pub db_type: Option<String>,
/// 任务结束时间。
#[serde(rename = "EndTime")]
pub end_time: Option<String>,
/// 实例ID。
#[serde(rename = "InstanceId")]
pub instance_id: Option<String>,
/// 实例名。
#[serde(rename = "InstanceName")]
pub instance_name: Option<String>,
/// 实例类型。
#[serde(rename = "InstanceType")]
pub instance_type: Option<String>,
/// 产品。
#[serde(rename = "Product")]
pub product: Option<String>,
/// 当前进度。
#[serde(rename = "Progress")]
pub progress: Option<f32>,
/// 当前任务发起的原因。
#[serde(rename = "ReasonCode")]
pub reason_code: Option<String>,
/// 地域ID。
#[serde(rename = "RegionId")]
pub region_id: Option<String>,
/// 预估剩余执行时间,单位为秒(s)。
#[serde(rename = "RemainTime")]
pub remain_time: Option<i32>,
/// 任务开始时间。
#[serde(rename = "StartTime")]
pub start_time: Option<String>,
/// 任务状态。
/// - Scheduled:等待执行
/// - Running:执行中
/// - Succeed:执行成功
/// - Failed:执行失败
/// - Cancelling:正在终止
/// - Canceled:已终止
/// - Waiting:等待预设时间
#[serde(rename = "Status")]
pub status: Option<String>,
/// 任务详情。
#[serde(rename = "TaskDetail")]
pub task_detail: Option<String>,
/// 任务ID。
#[serde(rename = "TaskId")]
pub task_id: Option<String>,
/// 任务类型。
#[serde(rename = "TaskType")]
pub task_type: Option<String>,
/// 资源所属用户ID。
#[serde(rename = "Uid")]
pub uid: Option<String>,
}
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct ProgressInfo {
/// 任务开始时间。格式为<i>yyyy-MM-dd</i>T<i>HH:mm</i>Z(UTC时间)。
#[serde(rename = "BeginTime")]
pub begin_time: Option<String>,
/// 当前的子步骤名称。
#[serde(rename = "CurrentStepName")]
pub current_step_name: Option<String>,
/// 当任务涉及库时,显示库名。
#[serde(rename = "DBName")]
pub db_name: Option<String>,
/// 预计结束时间。
/// > 若无特殊情况,该参数为空。
#[serde(rename = "ExpectedFinishTime")]
pub expected_finish_time: Option<String>,
/// 任务结束时间。格式为<i>yyyy-MM-dd</i>T<i>HH:mm</i>Z(UTC时间)。
#[serde(rename = "FinishTime")]
pub finish_time: Option<String>,
/// 任务进度百分比。
#[serde(rename = "Progress")]
pub progress: Option<String>,
/// 任务进度的描述信息。
/// > 若目标任务无进度描述信息,该参数为空。
#[serde(rename = "ProgressInfo")]
pub progress_info: Option<String>,
/// 任务预计剩余时间。单位:秒。
/// > 如果任务不处于执行中则不返回本参数或返回的值为**0**。
#[serde(rename = "Remain")]
pub remain: Option<i32>,
/// 任务状态。
#[serde(rename = "Status")]
pub status: Option<String>,
/// 任务的子步骤进度。例如`1/4`表示该任务共包含4个子步骤,当前正在执行第一步。
#[serde(rename = "StepProgressInfo")]
pub step_progress_info: Option<String>,
/// 任务子步骤详情。
#[serde(rename = "StepsInfo")]
pub steps_info: Option<String>,
/// 任务使用的API接口,例如**CreateDBInstance**。
#[serde(rename = "TaskAction")]
pub task_action: Option<String>,
/// 任务出错时的错误码。
/// > 仅在任务出错时返回。
#[serde(rename = "TaskErrorCode")]
pub task_error_code: Option<String>,
/// 任务出错时的错误信息。
/// > 仅在任务出错时返回。
#[serde(rename = "TaskErrorMessage")]
pub task_error_message: Option<String>,
/// 任务ID。
#[serde(rename = "TaskId")]
pub task_id: Option<String>,
}
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct DescribeTasksResponseItems {
/// 任务执行信息列表。
#[serde(rename = "TaskProgressInfo")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub task_progress_info: Vec<ProgressInfo>,
}
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct ModifyOrder {
/// 规格族。
#[serde(rename = "ClassGroup")]
pub class_group: Option<String>,
/// 实例规格对应的CPU核数。单位:个。
#[serde(rename = "Cpu")]
pub cpu: Option<String>,
/// 实例ID
#[serde(rename = "DbInstanceId")]
pub db_instance_id: Option<String>,
/// 生效时间,取值:
/// * **Immediate**(默认值):立即生效。
/// * **MaintainTime**:在可运维时间段内生效,请参见[ModifyDBInstanceMaintainTime](~~610402~~)。
#[serde(rename = "EffectiveTime")]
pub effective_time: Option<String>,
/// 标记
#[serde(rename = "Mark")]
pub mark: Option<String>,
/// 实例规格对应的内存容量。单位:GB。
#[serde(rename = "MemoryClass")]
pub memory_class: Option<String>,
/// 任务状态。
#[serde(rename = "Status")]
pub status: Option<String>,
/// 存储描述信息
#[serde(rename = "Storage")]
pub storage: Option<String>,
/// 变配目标规格
#[serde(rename = "TargetDBInstanceClass")]
pub target_db_instance_class: Option<String>,
}
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct InfoResponseData {
/// CPU调整截止日期
#[serde(rename = "CpuAdjustDeadline")]
pub cpu_adjust_deadline: Option<String>,
/// CPU可调最大比率
#[serde(rename = "CpuAdjustableMaxRatio")]
pub cpu_adjustable_max_ratio: Option<String>,
/// 最大CPU使用率。
#[serde(rename = "CpuAdjustableMaxValue")]
pub cpu_adjustable_max_value: Option<String>,
/// CPU使用率.
#[serde(rename = "CpuIncreaseRatio")]
pub cpu_increase_ratio: Option<String>,
/// CPU使用率。单位:%。
#[serde(rename = "CpuIncreaseRatioValue")]
pub cpu_increase_ratio_value: Option<String>,
/// 实例ID。
#[serde(rename = "DBInstanceId")]
pub db_instance_id: Option<String>,
/// 最大每秒IO请求次数。
#[serde(rename = "IopsAdjustableMaxValue")]
pub iops_adjustable_max_value: Option<String>,
/// 最大连接调整截止日期
#[serde(rename = "MaxConnAdjustDeadline")]
pub max_conn_adjust_deadline: Option<String>,
/// 最大并发连接数。
#[serde(rename = "MaxConnAdjustableMaxValue")]
pub max_conn_adjustable_max_value: Option<String>,
/// 最大并发连接数。
#[serde(rename = "MaxConnIncreaseRatio")]
pub max_conn_increase_ratio: Option<String>,
/// 最大并发连接数。
#[serde(rename = "MaxConnIncreaseRatioValue")]
pub max_conn_increase_ratio_value: Option<String>,
/// 最大IOPS调整截止日期
#[serde(rename = "MaxIopsAdjustDeadline")]
pub max_iops_adjust_deadline: Option<String>,
/// 最大每秒IO请求次数。
#[serde(rename = "MaxIopsIncreaseRatio")]
pub max_iops_increase_ratio: Option<String>,
/// 最大每秒IO请求次数。
#[serde(rename = "MaxIopsIncreaseRatioValue")]
pub max_iops_increase_ratio_value: Option<String>,
/// 内存可调最大比率。
#[serde(rename = "MemAdjustableMaxRatio")]
pub mem_adjustable_max_ratio: Option<String>,
/// 待评估资源的最大值。
#[serde(rename = "MemAdjustableMaxValue")]
pub mem_adjustable_max_value: Option<String>,
/// 内存调整截止日期。
#[serde(rename = "MemoryAdjustDeadline")]
pub memory_adjust_deadline: Option<String>,
/// 内存增加率
#[serde(rename = "MemoryIncreaseRatio")]
pub memory_increase_ratio: Option<String>,
/// 内存使用量,单位:mb。
#[serde(rename = "MemoryIncreaseRatioValue")]
pub memory_increase_ratio_value: Option<String>,
/// 实例CPU数量。
#[serde(rename = "OriginCpu")]
pub origin_cpu: Option<String>,
/// 最大并发连接数。
#[serde(rename = "OriginMaxConn")]
pub origin_max_conn: Option<String>,
/// 最大每秒IO请求次数。
#[serde(rename = "OriginMaxIops")]
pub origin_max_iops: Option<String>,
/// 实际使用的内存。单位:mb。
#[serde(rename = "OriginMemory")]
pub origin_memory: Option<String>,
}
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct ActivityResponseItem {
/// 实例系列,取值:
/// * **Basic**:基础版。
/// * **HighAvailability**:高可用版。
/// * **AlwaysOn**:集群版。
/// * **Finance**:三节点企业版。
///
///
///
///
#[serde(rename = "Category")]
pub category: Option<String>,
/// 付费类型。
/// - 按量付费:POSTPAY
/// - 包年包月:PREPAY
#[serde(rename = "ChargeType")]
pub charge_type: Option<String>,
/// 实例规格代码。更多信息,请参见[主实例规格列表](~~26312~~)和[只读实例规格列表](~~145759~~)。
#[serde(rename = "ClassCode")]
pub class_code: Option<String>,
/// 实例规格族。更多信息,请参见[实例规格族](~~57184~~)。
#[serde(rename = "ClassGroup")]
pub class_group: Option<String>,
/// 实例规格对应的CPU核数。单位:个。
#[serde(rename = "Cpu")]
pub cpu: Option<String>,
/// 磁盘存储大小(每节点,单位GB)。
#[serde(rename = "DiskSize")]
pub disk_size: Option<i32>,
/// 数据库类型。返回值:
/// - MySQL
/// - SQLServer
/// - PostgreSQL
/// - PPAS
/// - MariaDB
#[serde(rename = "Engine")]
pub engine: Option<String>,
/// 数据库版本。
#[serde(rename = "EngineVersion")]
pub engine_version: Option<String>,
/// 实例ID。
#[serde(rename = "InstanceId")]
pub instance_id: Option<String>,
/// 实例名称。
#[serde(rename = "InstanceName")]
pub instance_name: Option<String>,
/// 最大并发连接数。
#[serde(rename = "MaxConnections")]
pub max_connections: Option<i32>,
/// 最大Iombps
#[serde(rename = "MaxIombps")]
pub max_iombps: Option<i32>,
/// 最大Iops。
#[serde(rename = "MaxIops")]
pub max_iops: Option<i32>,
/// 内存大小。
#[serde(rename = "Memory")]
pub memory: Option<i64>,
/// 实例存储类型,取值:
/// * **local_ssd**:本地SSD盘。
/// * **cloud_ssd**:SSD云盘。
/// * **cloud_essd**:ESSD PL1云盘。
/// * **cloud_essd2**:ESSD PL2云盘。
/// * **cloud_essd3**:ESSD PL3云盘。
#[serde(rename = "StorageType")]
pub storage_type: Option<String>,
/// 升级实例系列
#[serde(rename = "UpgradeCategory")]
pub upgrade_category: Option<String>,
/// 升级实例规格代码。
#[serde(rename = "UpgradeClassCode")]
pub upgrade_class_code: Option<String>,
/// 升级实例规格族
#[serde(rename = "UpgradeClassGroup")]
pub upgrade_class_group: Option<String>,
/// 升级cpu核数
#[serde(rename = "UpgradeCpu")]
pub upgrade_cpu: Option<String>,
/// 升级描述内容。
#[serde(rename = "UpgradeDescContent")]
pub upgrade_desc_content: Option<String>,
/// 升级磁盘大小
#[serde(rename = "UpgradeDiskSize")]
pub upgrade_disk_size: Option<i32>,
/// 升级最大并发连接数。
#[serde(rename = "UpgradeMaxConnections")]
pub upgrade_max_connections: Option<i32>,
/// 升级最大Iombps
#[serde(rename = "UpgradeMaxIombps")]
pub upgrade_max_iombps: Option<i32>,
/// 升级最大Iops。
#[serde(rename = "UpgradeMaxIops")]
pub upgrade_max_iops: Option<i32>,
/// 升级内存大小
#[serde(rename = "UpgradeMemory")]
pub upgrade_memory: Option<i64>,
/// 升级参考价格。
#[serde(rename = "UpgradeReferencePrice")]
pub upgrade_reference_price: Option<String>,
/// 升级实例存储类型
#[serde(rename = "UpgradeStorageType")]
pub upgrade_storage_type: Option<String>,
}
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct GroupRel {
/// 安全组名称。
#[serde(rename = "SecurityGroupName")]
pub security_group_name: Option<String>,
}
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct FailuresFailure {
/// 响应码。各取值含义如下:
/// - **200**:正常
/// - **400**:客户端错误
/// - **401**:身份验证失败
/// - **404**:找不到请求页面
/// - **500**:服务端错误
#[serde(rename = "Code")]
pub code: Option<String>,
/// 返回结果的提示信息。
#[serde(rename = "Message")]
pub message: Option<String>,
}
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct ResponseFailures {
/// 失败的订单信息
#[serde(rename = "Failures")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub failures: Vec<FailuresFailure>,
}
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct ClassItem {
/// 可升级的版本规格的CPU大小
#[serde(rename = "CPU")]
pub cpu: Option<String>,
/// 可升级的版本规格
#[serde(rename = "DBInstanceClass")]
pub db_instance_class: Option<String>,
/// 可升级的版本规格的类型
#[serde(rename = "DBInstanceClassType")]
pub db_instance_class_type: Option<String>,
/// 组类型
#[serde(rename = "Group")]
pub group: Option<String>,
/// 可升级的版本规格的内存大小
#[serde(rename = "Memory")]
pub memory: Option<String>,
}
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct ClassItems {
/// 一个列表,描述了每个版本是否可以成为升级目标
#[serde(rename = "DBInstanceClassItem")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub db_instance_class_item: Vec<ClassItem>,
}
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct UpgradeVersion {
#[serde(rename = "DBInstanceClassItems")]
pub db_instance_class_items: Option<ClassItems>,
/// 是否支持升级到该版本
#[serde(rename = "EnableUpgrade")]
pub enable_upgrade: Option<String>,
/// 版本值
#[serde(rename = "Version")]
pub version: Option<String>,
}
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct UpgradeVersions {
/// 一个列表,显示是否支持升级到目标版本
#[serde(rename = "SQLServerUpgradeVersion")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub sql_server_upgrade_version: Vec<UpgradeVersion>,
}
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct VersionsResponseItemsItem {
/// 当前的版本。若传DBInstanceId,则返回实例版本。若未传DBInstanceId,但传了EngineVersion,则返回EngineVersion。
#[serde(rename = "CurrentVersion")]
pub current_version: Option<String>,
#[serde(rename = "SQLServerUpgradeVersions")]
pub sql_server_upgrade_versions: Option<UpgradeVersions>,
}
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct VersionsResponseItems {
/// 返回数据
#[serde(rename = "Item")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub item: Vec<VersionsResponseItemsItem>,
}
/// 配置信息
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct ResponseConfig {
/// 创建时间, 格式为YYYY-MM-DDTHH:mm:ssZ
#[serde(rename = "CreatedTime")]
pub created_time: Option<String>,
/// 周期时间,多个英文逗号拼接
/// * cycleType为Week时可选1~7代表周一~周日
/// * cycleType为Month时可选1~28
#[serde(rename = "CycleTime")]
pub cycle_time: Option<String>,
/// 周期类型,Month/Week
#[serde(rename = "CycleType")]
pub cycle_type: Option<String>,
/// 运维时间窗口结束时间,零时区
/// 默认:20:00:00Z
#[serde(rename = "MaintainEndTime")]
pub maintain_end_time: Option<String>,
/// 运维时间窗口开始时间,零时区
/// 默认:18:00:00Z
#[serde(rename = "MaintainStartTime")]
pub maintain_start_time: Option<String>,
/// 修改时间, 格式为YYYY-MM-DDTHH:mm:ssZ,如2018-05-30T14:30:00Z
#[serde(rename = "ModifiedTime")]
pub modified_time: Option<String>,
/// 是否生效
/// * 1: Valid
/// * 2: Unvalid
#[serde(rename = "Status")]
pub status: Option<i32>,
}
/// 规则配置,JSON字符串格式,包含数据库、表、列的匹配规则
#[derive(Debug, Clone, Default, serde::Serialize)]
pub struct CreateMaskingRulesRuleConfig {
/// 列列表
#[serde(rename = "Columns")]
#[serde(skip_serializing_if = "Vec::is_empty")]
pub columns: Vec<String>,
/// 数据库列表
#[serde(rename = "Databases")]
#[serde(skip_serializing_if = "Vec::is_empty")]
pub databases: Vec<String>,
/// 表列表
#[serde(rename = "Tables")]
#[serde(skip_serializing_if = "Vec::is_empty")]
pub tables: Vec<String>,
}
/// 规则配置,JSON字符串格式
#[derive(Debug, Clone, Default, serde::Serialize)]
pub struct ModifyMaskingRulesRuleConfig {
/// 列列表
#[serde(rename = "Columns")]
#[serde(skip_serializing_if = "Vec::is_empty")]
pub columns: Vec<String>,
/// 数据库列表
#[serde(rename = "Databases")]
#[serde(skip_serializing_if = "Vec::is_empty")]
pub databases: Vec<String>,
/// 表列表
#[serde(rename = "Tables")]
#[serde(skip_serializing_if = "Vec::is_empty")]
pub tables: Vec<String>,
}
/// 规则配置
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct ItemRuleConfig {
/// 列列表
#[serde(rename = "Columns")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub columns: Vec<String>,
/// 数据库列表
#[serde(rename = "Databases")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub databases: Vec<String>,
/// 表列表
#[serde(rename = "Tables")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub tables: Vec<String>,
}
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct DataRule {
/// 默认加密或脱敏算法
#[serde(rename = "DefaultAlgo")]
pub default_algo: Option<String>,
/// 规则是否启用
#[serde(rename = "Enabled")]
pub enabled: Option<String>,
/// 规则算法,可选多个,脱敏算法可以额外添加参数。格式:{name:算法1},{name:算法2,params:{加密位置,加密位数}}
#[serde(rename = "MaskingAlgo")]
pub masking_algo: Option<String>,
/// 规则配置
#[serde(rename = "RuleConfig")]
pub rule_config: Option<ItemRuleConfig>,
/// 规则名称
#[serde(rename = "RuleName")]
pub rule_name: Option<String>,
}
/// 返回数据
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct RulesResponseData {
/// 加密或脱敏规则列表
#[serde(rename = "Rules")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub rules: Vec<DataRule>,
}
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct UserPrivilege {
/// 权限过期时间,UTC时间格式
#[serde(rename = "ExpireTime")]
pub expire_time: Option<String>,
/// 权限类型,restrictedAccess表示受限访问(需脱敏)
#[serde(rename = "Privilege")]
pub privilege: Option<String>,
/// 账号名称
#[serde(rename = "UserName")]
pub user_name: Option<String>,
}
/// 返回数据
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct PrivilegeResponseData {
/// 用户加密或脱敏权限列表
#[serde(rename = "UserPrivilege")]
#[serde(default)]
#[serde(deserialize_with = "crate::deserialize_default_on_null")]
pub user_privilege: Vec<UserPrivilege>,
}
/// 任务列表。
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct TaskList {
/// 参数修改定时任务ID。
#[serde(rename = "TaskId")]
pub task_id: Option<String>,
/// 实例名称。
#[serde(rename = "DBInstanceName")]
pub db_instance_name: Option<String>,
/// 状态。取值:
/// * **PENDING**:待执行。
/// * **EXECUTING**:执行中。
/// * **COMPLETED**:已完成。
/// * **EXECUTING**:失败。
#[serde(rename = "Status")]
pub status: Option<String>,
/// 修改参数的生效时间。
#[serde(rename = "SwitchTime")]
pub switch_time: Option<String>,
/// 修改的参数设置。
#[serde(rename = "Parameters")]
pub parameters: Option<String>,
}
/// 数据导入任务详情
#[derive(Debug, Clone, Default, serde::Deserialize)]
#[serde(default)]
pub struct ImportTasksResponseItem {
/// 任务ID。
#[serde(rename = "TaskId")]
pub task_id: Option<i64>,
/// 任务名称。
#[serde(rename = "TaskName")]
pub task_name: Option<String>,
/// 创建时间,为UTC时间,格式为YYYY-MM-DDTHH:mm:ssZ。
#[serde(rename = "CreatedTime")]
pub created_time: Option<String>,
/// 任务状态。
#[serde(rename = "Status")]
pub status: Option<String>,
/// 内核版本号。
#[serde(rename = "DbVersion")]
pub db_version: Option<String>,
/// 任务类型。
#[serde(rename = "TaskType")]
pub task_type: Option<String>,
/// 目标实例ID。
#[serde(rename = "TargetInstanceName")]
pub target_instance_name: Option<String>,
}
/// Enum type marshalled as String
#[derive(Debug, Clone, PartialEq, Eq, serde::Serialize, serde::Deserialize)]
pub enum TimeType {
#[serde(rename = "Year")]
Year,
#[serde(rename = "Month")]
Month,
#[serde(rename = "Day")]
Day,
#[serde(rename = "Hour")]
Hour,
}
impl Default for TimeType {
fn default() -> Self {
Self::Year
}
}
impl TimeType {
/// Returns the string value of this enum variant as used in the API.
pub fn as_str(&self) -> &'static str {
match self {
Self::Year => "Year",
Self::Month => "Month",
Self::Day => "Day",
Self::Hour => "Hour",
}
}
}
impl std::fmt::Display for TimeType {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "{}", self.as_str())
}
}
impl<'a> From<&'a TimeType> for crate::QueryValue<'a> {
fn from(value: &'a TimeType) -> Self {
crate::QueryValue::from(value.as_str())
}
}
/// Enum type marshalled as String
#[derive(Debug, Clone, PartialEq, Eq, serde::Serialize, serde::Deserialize)]
pub enum CreateDBInstancePeriod {
#[serde(rename = "Year")]
Year,
#[serde(rename = "Month")]
Month,
#[serde(rename = "Day")]
Day,
#[serde(rename = "1")]
V1,
#[serde(rename = "2")]
V2,
#[serde(rename = "3")]
V3,
}
impl Default for CreateDBInstancePeriod {
fn default() -> Self {
Self::Year
}
}
impl CreateDBInstancePeriod {
/// Returns the string value of this enum variant as used in the API.
pub fn as_str(&self) -> &'static str {
match self {
Self::Year => "Year",
Self::Month => "Month",
Self::Day => "Day",
Self::V1 => "1",
Self::V2 => "2",
Self::V3 => "3",
}
}
}
impl std::fmt::Display for CreateDBInstancePeriod {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "{}", self.as_str())
}
}
impl<'a> From<&'a CreateDBInstancePeriod> for crate::QueryValue<'a> {
fn from(value: &'a CreateDBInstancePeriod) -> Self {
crate::QueryValue::from(value.as_str())
}
}
/// Enum type marshalled as String
#[derive(Debug, Clone, PartialEq, Eq, serde::Serialize, serde::Deserialize)]
pub enum InstanceStorageAutoScale {
#[serde(rename = "Enable")]
Enable,
#[serde(rename = "Disable")]
Disable,
}
impl Default for InstanceStorageAutoScale {
fn default() -> Self {
Self::Enable
}
}
impl InstanceStorageAutoScale {
/// Returns the string value of this enum variant as used in the API.
pub fn as_str(&self) -> &'static str {
match self {
Self::Enable => "Enable",
Self::Disable => "Disable",
}
}
}
impl std::fmt::Display for InstanceStorageAutoScale {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "{}", self.as_str())
}
}
impl<'a> From<&'a InstanceStorageAutoScale> for crate::QueryValue<'a> {
fn from(value: &'a InstanceStorageAutoScale) -> Self {
crate::QueryValue::from(value.as_str())
}
}
/// Enum type marshalled as String
#[derive(Debug, Clone, PartialEq, Eq, serde::Serialize, serde::Deserialize)]
pub enum InstanceOptimizedWrites {
#[serde(rename = "optimized")]
Optimized,
#[serde(rename = "none")]
None,
}
impl Default for InstanceOptimizedWrites {
fn default() -> Self {
Self::Optimized
}
}
impl InstanceOptimizedWrites {
/// Returns the string value of this enum variant as used in the API.
pub fn as_str(&self) -> &'static str {
match self {
Self::Optimized => "optimized",
Self::None => "none",
}
}
}
impl std::fmt::Display for InstanceOptimizedWrites {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "{}", self.as_str())
}
}
impl<'a> From<&'a InstanceOptimizedWrites> for crate::QueryValue<'a> {
fn from(value: &'a InstanceOptimizedWrites) -> Self {
crate::QueryValue::from(value.as_str())
}
}
/// Enum type marshalled as String
#[derive(Debug, Clone, PartialEq, Eq, serde::Serialize, serde::Deserialize)]
pub enum RebuildPeriod {
#[serde(rename = "Year")]
Year,
#[serde(rename = "Month")]
Month,
#[serde(rename = "1")]
V1,
#[serde(rename = "2")]
V2,
}
impl Default for RebuildPeriod {
fn default() -> Self {
Self::Year
}
}
impl RebuildPeriod {
/// Returns the string value of this enum variant as used in the API.
pub fn as_str(&self) -> &'static str {
match self {
Self::Year => "Year",
Self::Month => "Month",
Self::V1 => "1",
Self::V2 => "2",
}
}
}
impl std::fmt::Display for RebuildPeriod {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "{}", self.as_str())
}
}
impl<'a> From<&'a RebuildPeriod> for crate::QueryValue<'a> {
fn from(value: &'a RebuildPeriod) -> Self {
crate::QueryValue::from(value.as_str())
}
}
/// Enum type marshalled as String
#[derive(Debug, Clone, PartialEq, Eq, serde::Serialize, serde::Deserialize)]
pub enum SpecDirection {
#[serde(rename = "Up")]
Up,
#[serde(rename = "Down")]
Down,
#[serde(rename = "Auto")]
Auto,
#[serde(rename = "TempUpgrade")]
TempUpgrade,
#[serde(rename = "Serverless")]
Serverless,
}
impl Default for SpecDirection {
fn default() -> Self {
Self::Up
}
}
impl SpecDirection {
/// Returns the string value of this enum variant as used in the API.
pub fn as_str(&self) -> &'static str {
match self {
Self::Up => "Up",
Self::Down => "Down",
Self::Auto => "Auto",
Self::TempUpgrade => "TempUpgrade",
Self::Serverless => "Serverless",
}
}
}
impl std::fmt::Display for SpecDirection {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "{}", self.as_str())
}
}
impl<'a> From<&'a SpecDirection> for crate::QueryValue<'a> {
fn from(value: &'a SpecDirection) -> Self {
crate::QueryValue::from(value.as_str())
}
}
/// Enum type marshalled as String
#[derive(Debug, Clone, PartialEq, Eq, serde::Serialize, serde::Deserialize)]
pub enum SpecOptimizedWrites {
#[serde(rename = "optimized")]
Optimized,
#[serde(rename = "none")]
None,
}
impl Default for SpecOptimizedWrites {
fn default() -> Self {
Self::Optimized
}
}
impl SpecOptimizedWrites {
/// Returns the string value of this enum variant as used in the API.
pub fn as_str(&self) -> &'static str {
match self {
Self::Optimized => "optimized",
Self::None => "none",
}
}
}
impl std::fmt::Display for SpecOptimizedWrites {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "{}", self.as_str())
}
}
impl<'a> From<&'a SpecOptimizedWrites> for crate::QueryValue<'a> {
fn from(value: &'a SpecOptimizedWrites) -> Self {
crate::QueryValue::from(value.as_str())
}
}
/// Enum type marshalled as String
#[derive(Debug, Clone, PartialEq, Eq, serde::Serialize, serde::Deserialize)]
pub enum ConfigStorageAutoScale {
#[serde(rename = "Enable")]
Enable,
#[serde(rename = "Disable")]
Disable,
}
impl Default for ConfigStorageAutoScale {
fn default() -> Self {
Self::Enable
}
}
impl ConfigStorageAutoScale {
/// Returns the string value of this enum variant as used in the API.
pub fn as_str(&self) -> &'static str {
match self {
Self::Enable => "Enable",
Self::Disable => "Disable",
}
}
}
impl std::fmt::Display for ConfigStorageAutoScale {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "{}", self.as_str())
}
}
impl<'a> From<&'a ConfigStorageAutoScale> for crate::QueryValue<'a> {
fn from(value: &'a ConfigStorageAutoScale) -> Self {
crate::QueryValue::from(value.as_str())
}
}
/// Enum type marshalled as String
#[derive(Debug, Clone, PartialEq, Eq, serde::Serialize, serde::Deserialize)]
pub enum SupportStatus {
#[serde(rename = "None")]
None,
#[serde(rename = "ON")]
On,
#[serde(rename = "OFF")]
Off,
}
impl Default for SupportStatus {
fn default() -> Self {
Self::None
}
}
impl SupportStatus {
/// Returns the string value of this enum variant as used in the API.
pub fn as_str(&self) -> &'static str {
match self {
Self::None => "None",
Self::On => "ON",
Self::Off => "OFF",
}
}
}
impl std::fmt::Display for SupportStatus {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "{}", self.as_str())
}
}
impl<'a> From<&'a SupportStatus> for crate::QueryValue<'a> {
fn from(value: &'a SupportStatus) -> Self {
crate::QueryValue::from(value.as_str())
}
}
/// Enum type marshalled as String
#[derive(Debug, Clone, PartialEq, Eq, serde::Serialize, serde::Deserialize)]
pub enum TargetMode {
#[serde(rename = "primary")]
Primary,
#[serde(rename = "readOnly")]
ReadOnly,
}
impl Default for TargetMode {
fn default() -> Self {
Self::Primary
}
}
impl TargetMode {
/// Returns the string value of this enum variant as used in the API.
pub fn as_str(&self) -> &'static str {
match self {
Self::Primary => "primary",
Self::ReadOnly => "readOnly",
}
}
}
impl std::fmt::Display for TargetMode {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "{}", self.as_str())
}
}
impl<'a> From<&'a TargetMode> for crate::QueryValue<'a> {
fn from(value: &'a TargetMode) -> Self {
crate::QueryValue::from(value.as_str())
}
}
/// Enum type marshalled as String
#[derive(Debug, Clone, PartialEq, Eq, serde::Serialize, serde::Deserialize)]
pub enum PType {
#[serde(rename = "IPv4")]
IPv4,
#[serde(rename = "IPV4")]
Ipv4,
#[serde(rename = "IpV4")]
IpV4,
#[serde(rename = "IPv6")]
IPv6,
#[serde(rename = "IPV6")]
Ipv6,
#[serde(rename = "IpV6")]
IpV6,
}
impl Default for PType {
fn default() -> Self {
Self::IPv4
}
}
impl PType {
/// Returns the string value of this enum variant as used in the API.
pub fn as_str(&self) -> &'static str {
match self {
Self::IPv4 => "IPv4",
Self::Ipv4 => "IPV4",
Self::IpV4 => "IpV4",
Self::IPv6 => "IPv6",
Self::Ipv6 => "IPV6",
Self::IpV6 => "IpV6",
}
}
}
impl std::fmt::Display for PType {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "{}", self.as_str())
}
}
impl<'a> From<&'a PType> for crate::QueryValue<'a> {
fn from(value: &'a PType) -> Self {
crate::QueryValue::from(value.as_str())
}
}
/// Enum type marshalled as String
#[derive(Debug, Clone, PartialEq, Eq, serde::Serialize, serde::Deserialize)]
pub enum BackupLog {
#[serde(rename = "1")]
V1,
#[serde(rename = "0")]
V0,
#[serde(rename = "True")]
True,
#[serde(rename = "False")]
False,
}
impl Default for BackupLog {
fn default() -> Self {
Self::V1
}
}
impl BackupLog {
/// Returns the string value of this enum variant as used in the API.
pub fn as_str(&self) -> &'static str {
match self {
Self::V1 => "1",
Self::V0 => "0",
Self::True => "True",
Self::False => "False",
}
}
}
impl std::fmt::Display for BackupLog {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "{}", self.as_str())
}
}
impl<'a> From<&'a BackupLog> for crate::QueryValue<'a> {
fn from(value: &'a BackupLog) -> Self {
crate::QueryValue::from(value.as_str())
}
}
/// Enum type marshalled as String
#[derive(Debug, Clone, PartialEq, Eq, serde::Serialize, serde::Deserialize)]
pub enum TasksBackupMode {
#[serde(rename = "Automated")]
Automated,
#[serde(rename = "Manual")]
Manual,
}
impl Default for TasksBackupMode {
fn default() -> Self {
Self::Automated
}
}
impl TasksBackupMode {
/// Returns the string value of this enum variant as used in the API.
pub fn as_str(&self) -> &'static str {
match self {
Self::Automated => "Automated",
Self::Manual => "Manual",
}
}
}
impl std::fmt::Display for TasksBackupMode {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "{}", self.as_str())
}
}
impl<'a> From<&'a TasksBackupMode> for crate::QueryValue<'a> {
fn from(value: &'a TasksBackupMode) -> Self {
crate::QueryValue::from(value.as_str())
}
}
/// Enum type marshalled as String
#[derive(Debug, Clone, PartialEq, Eq, serde::Serialize, serde::Deserialize)]
pub enum JobStatus {
#[serde(rename = "NoStart")]
NoStart,
#[serde(rename = "Progressing")]
Progressing,
}
impl Default for JobStatus {
fn default() -> Self {
Self::NoStart
}
}
impl JobStatus {
/// Returns the string value of this enum variant as used in the API.
pub fn as_str(&self) -> &'static str {
match self {
Self::NoStart => "NoStart",
Self::Progressing => "Progressing",
}
}
}
impl std::fmt::Display for JobStatus {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "{}", self.as_str())
}
}
impl<'a> From<&'a JobStatus> for crate::QueryValue<'a> {
fn from(value: &'a JobStatus) -> Self {
crate::QueryValue::from(value.as_str())
}
}
/// Enum type marshalled as String
#[derive(Debug, Clone, PartialEq, Eq, serde::Serialize, serde::Deserialize)]
pub enum ListRestoreType {
#[serde(rename = "BackupSetID")]
BackupSetId,
#[serde(rename = "RestoreTime")]
RestoreTime,
}
impl Default for ListRestoreType {
fn default() -> Self {
Self::BackupSetId
}
}
impl ListRestoreType {
/// Returns the string value of this enum variant as used in the API.
pub fn as_str(&self) -> &'static str {
match self {
Self::BackupSetId => "BackupSetID",
Self::RestoreTime => "RestoreTime",
}
}
}
impl std::fmt::Display for ListRestoreType {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "{}", self.as_str())
}
}
impl<'a> From<&'a ListRestoreType> for crate::QueryValue<'a> {
fn from(value: &'a ListRestoreType) -> Self {
crate::QueryValue::from(value.as_str())
}
}
/// Enum type marshalled as String
#[derive(Debug, Clone, PartialEq, Eq, serde::Serialize, serde::Deserialize)]
pub enum CloneDBInstancePeriod {
#[serde(rename = "Year")]
Year,
#[serde(rename = "Month")]
Month,
}
impl Default for CloneDBInstancePeriod {
fn default() -> Self {
Self::Year
}
}
impl CloneDBInstancePeriod {
/// Returns the string value of this enum variant as used in the API.
pub fn as_str(&self) -> &'static str {
match self {
Self::Year => "Year",
Self::Month => "Month",
}
}
}
impl std::fmt::Display for CloneDBInstancePeriod {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "{}", self.as_str())
}
}
impl<'a> From<&'a CloneDBInstancePeriod> for crate::QueryValue<'a> {
fn from(value: &'a CloneDBInstancePeriod) -> Self {
crate::QueryValue::from(value.as_str())
}
}
/// Enum type marshalled as String
#[derive(Debug, Clone, PartialEq, Eq, serde::Serialize, serde::Deserialize)]
pub enum InstanceRestoreType {
#[serde(rename = "BackupSet")]
BackupSet,
#[serde(rename = "BackupTime")]
BackupTime,
#[serde(rename = "0")]
V0,
#[serde(rename = "1")]
V1,
}
impl Default for InstanceRestoreType {
fn default() -> Self {
Self::BackupSet
}
}
impl InstanceRestoreType {
/// Returns the string value of this enum variant as used in the API.
pub fn as_str(&self) -> &'static str {
match self {
Self::BackupSet => "BackupSet",
Self::BackupTime => "BackupTime",
Self::V0 => "0",
Self::V1 => "1",
}
}
}
impl std::fmt::Display for InstanceRestoreType {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "{}", self.as_str())
}
}
impl<'a> From<&'a InstanceRestoreType> for crate::QueryValue<'a> {
fn from(value: &'a InstanceRestoreType) -> Self {
crate::QueryValue::from(value.as_str())
}
}
/// Enum type marshalled as String
#[derive(Debug, Clone, PartialEq, Eq, serde::Serialize, serde::Deserialize)]
pub enum ModifyMode {
#[serde(rename = "Individual")]
Individual,
#[serde(rename = "Collectivity")]
Collectivity,
}
impl Default for ModifyMode {
fn default() -> Self {
Self::Individual
}
}
impl ModifyMode {
/// Returns the string value of this enum variant as used in the API.
pub fn as_str(&self) -> &'static str {
match self {
Self::Individual => "Individual",
Self::Collectivity => "Collectivity",
}
}
}
impl std::fmt::Display for ModifyMode {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "{}", self.as_str())
}
}
impl<'a> From<&'a ModifyMode> for crate::QueryValue<'a> {
fn from(value: &'a ModifyMode) -> Self {
crate::QueryValue::from(value.as_str())
}
}
/// Enum type marshalled as String
#[derive(Debug, Clone, PartialEq, Eq, serde::Serialize, serde::Deserialize)]
pub enum FileMode {
#[serde(rename = "oss")]
Oss,
#[serde(rename = "stream")]
Stream,
}
impl Default for FileMode {
fn default() -> Self {
Self::Oss
}
}
impl FileMode {
/// Returns the string value of this enum variant as used in the API.
pub fn as_str(&self) -> &'static str {
match self {
Self::Oss => "oss",
Self::Stream => "stream",
}
}
}
impl std::fmt::Display for FileMode {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "{}", self.as_str())
}
}
impl<'a> From<&'a FileMode> for crate::QueryValue<'a> {
fn from(value: &'a FileMode) -> Self {
crate::QueryValue::from(value.as_str())
}
}
/// Enum type marshalled as String
#[derive(Debug, Clone, PartialEq, Eq, serde::Serialize, serde::Deserialize)]
pub enum TaskBackupMode {
#[serde(rename = "FULL")]
Full,
#[serde(rename = "DIFF")]
Diff,
#[serde(rename = "UPDF")]
Updf,
#[serde(rename = "0")]
V0,
#[serde(rename = "1")]
V1,
#[serde(rename = "2")]
V2,
}
impl Default for TaskBackupMode {
fn default() -> Self {
Self::Full
}
}
impl TaskBackupMode {
/// Returns the string value of this enum variant as used in the API.
pub fn as_str(&self) -> &'static str {
match self {
Self::Full => "FULL",
Self::Diff => "DIFF",
Self::Updf => "UPDF",
Self::V0 => "0",
Self::V1 => "1",
Self::V2 => "2",
}
}
}
impl std::fmt::Display for TaskBackupMode {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "{}", self.as_str())
}
}
impl<'a> From<&'a TaskBackupMode> for crate::QueryValue<'a> {
fn from(value: &'a TaskBackupMode) -> Self {
crate::QueryValue::from(value.as_str())
}
}
/// Enum type marshalled as String
#[derive(Debug, Clone, PartialEq, Eq, serde::Serialize, serde::Deserialize)]
pub enum ExpireStatus {
#[serde(rename = "vaild")]
Vaild,
#[serde(rename = "expired")]
Expired,
}
impl Default for ExpireStatus {
fn default() -> Self {
Self::Vaild
}
}
impl ExpireStatus {
/// Returns the string value of this enum variant as used in the API.
pub fn as_str(&self) -> &'static str {
match self {
Self::Vaild => "vaild",
Self::Expired => "expired",
}
}
}
impl std::fmt::Display for ExpireStatus {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "{}", self.as_str())
}
}
impl<'a> From<&'a ExpireStatus> for crate::QueryValue<'a> {
fn from(value: &'a ExpireStatus) -> Self {
crate::QueryValue::from(value.as_str())
}
}
/// Enum type marshalled as String
#[derive(Debug, Clone, PartialEq, Eq, serde::Serialize, serde::Deserialize)]
pub enum InstancesPeriodUnit {
#[serde(rename = "Month")]
Month,
#[serde(rename = "Year")]
Year,
}
impl Default for InstancesPeriodUnit {
fn default() -> Self {
Self::Month
}
}
impl InstancesPeriodUnit {
/// Returns the string value of this enum variant as used in the API.
pub fn as_str(&self) -> &'static str {
match self {
Self::Month => "Month",
Self::Year => "Year",
}
}
}
impl std::fmt::Display for InstancesPeriodUnit {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "{}", self.as_str())
}
}
impl<'a> From<&'a InstancesPeriodUnit> for crate::QueryValue<'a> {
fn from(value: &'a InstancesPeriodUnit) -> Self {
crate::QueryValue::from(value.as_str())
}
}
/// Enum type marshalled as String
#[derive(Debug, Clone, PartialEq, Eq, serde::Serialize, serde::Deserialize)]
pub enum ChargeType {
#[serde(rename = "PrePaid")]
PrePaid,
#[serde(rename = "PostPaid")]
PostPaid,
}
impl Default for ChargeType {
fn default() -> Self {
Self::PrePaid
}
}
impl ChargeType {
/// Returns the string value of this enum variant as used in the API.
pub fn as_str(&self) -> &'static str {
match self {
Self::PrePaid => "PrePaid",
Self::PostPaid => "PostPaid",
}
}
}
impl std::fmt::Display for ChargeType {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "{}", self.as_str())
}
}
impl<'a> From<&'a ChargeType> for crate::QueryValue<'a> {
fn from(value: &'a ChargeType) -> Self {
crate::QueryValue::from(value.as_str())
}
}
/// Enum type marshalled as String
#[derive(Debug, Clone, PartialEq, Eq, serde::Serialize, serde::Deserialize)]
pub enum TypePeriod {
#[serde(rename = "Year")]
Year,
#[serde(rename = "Month")]
Month,
#[serde(rename = "Day")]
Day,
}
impl Default for TypePeriod {
fn default() -> Self {
Self::Year
}
}
impl TypePeriod {
/// Returns the string value of this enum variant as used in the API.
pub fn as_str(&self) -> &'static str {
match self {
Self::Year => "Year",
Self::Month => "Month",
Self::Day => "Day",
}
}
}
impl std::fmt::Display for TypePeriod {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "{}", self.as_str())
}
}
impl<'a> From<&'a TypePeriod> for crate::QueryValue<'a> {
fn from(value: &'a TypePeriod) -> Self {
crate::QueryValue::from(value.as_str())
}
}
/// Enum type marshalled as String
#[derive(Debug, Clone, PartialEq, Eq, serde::Serialize, serde::Deserialize)]
pub enum InstanceDirection {
#[serde(rename = "Up")]
Up,
#[serde(rename = "Down")]
Down,
}
impl Default for InstanceDirection {
fn default() -> Self {
Self::Up
}
}
impl InstanceDirection {
/// Returns the string value of this enum variant as used in the API.
pub fn as_str(&self) -> &'static str {
match self {
Self::Up => "Up",
Self::Down => "Down",
}
}
}
impl std::fmt::Display for InstanceDirection {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "{}", self.as_str())
}
}
impl<'a> From<&'a InstanceDirection> for crate::QueryValue<'a> {
fn from(value: &'a InstanceDirection) -> Self {
crate::QueryValue::from(value.as_str())
}
}
/// Enum type marshalled as String
#[derive(Debug, Clone, PartialEq, Eq, serde::Serialize, serde::Deserialize)]
pub enum PoolPeriodUnit {
#[serde(rename = "Month")]
Month,
#[serde(rename = "Year")]
Year,
}
impl Default for PoolPeriodUnit {
fn default() -> Self {
Self::Month
}
}
impl PoolPeriodUnit {
/// Returns the string value of this enum variant as used in the API.
pub fn as_str(&self) -> &'static str {
match self {
Self::Month => "Month",
Self::Year => "Year",
}
}
}
impl std::fmt::Display for PoolPeriodUnit {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "{}", self.as_str())
}
}
impl<'a> From<&'a PoolPeriodUnit> for crate::QueryValue<'a> {
fn from(value: &'a PoolPeriodUnit) -> Self {
crate::QueryValue::from(value.as_str())
}
}
/// Enum type marshalled as String
#[derive(Debug, Clone, PartialEq, Eq, serde::Serialize, serde::Deserialize)]
pub enum PrivilegePrivilege {
#[serde(rename = "noneAccess")]
NoneAccess,
#[serde(rename = "fullAccess")]
FullAccess,
#[serde(rename = "restrictedAccess")]
RestrictedAccess,
}
impl Default for PrivilegePrivilege {
fn default() -> Self {
Self::NoneAccess
}
}
impl PrivilegePrivilege {
/// Returns the string value of this enum variant as used in the API.
pub fn as_str(&self) -> &'static str {
match self {
Self::NoneAccess => "noneAccess",
Self::FullAccess => "fullAccess",
Self::RestrictedAccess => "restrictedAccess",
}
}
}
impl std::fmt::Display for PrivilegePrivilege {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "{}", self.as_str())
}
}
impl<'a> From<&'a PrivilegePrivilege> for crate::QueryValue<'a> {
fn from(value: &'a PrivilegePrivilege) -> Self {
crate::QueryValue::from(value.as_str())
}
}
/// Enum type marshalled as String
#[derive(Debug, Clone, PartialEq, Eq, serde::Serialize, serde::Deserialize)]
pub enum StatusStatus {
#[serde(rename = "ON")]
On,
#[serde(rename = "OFF")]
Off,
}
impl Default for StatusStatus {
fn default() -> Self {
Self::On
}
}
impl StatusStatus {
/// Returns the string value of this enum variant as used in the API.
pub fn as_str(&self) -> &'static str {
match self {
Self::On => "ON",
Self::Off => "OFF",
}
}
}
impl std::fmt::Display for StatusStatus {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "{}", self.as_str())
}
}
impl<'a> From<&'a StatusStatus> for crate::QueryValue<'a> {
fn from(value: &'a StatusStatus) -> Self {
crate::QueryValue::from(value.as_str())
}
}
/// Enum type marshalled as String
#[derive(Debug, Clone, PartialEq, Eq, serde::Serialize, serde::Deserialize)]
pub enum CreateImportTaskSourcePlatform {
#[serde(rename = "ECS")]
Ecs,
#[serde(rename = "RdsCustom")]
RdsCustom,
}
impl Default for CreateImportTaskSourcePlatform {
fn default() -> Self {
Self::Ecs
}
}
impl CreateImportTaskSourcePlatform {
/// Returns the string value of this enum variant as used in the API.
pub fn as_str(&self) -> &'static str {
match self {
Self::Ecs => "ECS",
Self::RdsCustom => "RdsCustom",
}
}
}
impl std::fmt::Display for CreateImportTaskSourcePlatform {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "{}", self.as_str())
}
}
impl<'a> From<&'a CreateImportTaskSourcePlatform> for crate::QueryValue<'a> {
fn from(value: &'a CreateImportTaskSourcePlatform) -> Self {
crate::QueryValue::from(value.as_str())
}
}
/// Enum type marshalled as String
#[derive(Debug, Clone, PartialEq, Eq, serde::Serialize, serde::Deserialize)]
pub enum ValidateImportTaskSourcePlatform {
#[serde(rename = "ECS")]
Ecs,
#[serde(rename = "RdsCustom")]
RdsCustom,
}
impl Default for ValidateImportTaskSourcePlatform {
fn default() -> Self {
Self::Ecs
}
}
impl ValidateImportTaskSourcePlatform {
/// Returns the string value of this enum variant as used in the API.
pub fn as_str(&self) -> &'static str {
match self {
Self::Ecs => "ECS",
Self::RdsCustom => "RdsCustom",
}
}
}
impl std::fmt::Display for ValidateImportTaskSourcePlatform {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "{}", self.as_str())
}
}
impl<'a> From<&'a ValidateImportTaskSourcePlatform> for crate::QueryValue<'a> {
fn from(value: &'a ValidateImportTaskSourcePlatform) -> Self {
crate::QueryValue::from(value.as_str())
}
}
/// Enum type marshalled as String
#[derive(Debug, Clone, PartialEq, Eq, serde::Serialize, serde::Deserialize)]
pub enum TaskOperation {
#[serde(rename = "RETRY_IMPORT")]
RetryImport,
#[serde(rename = "CANCEL")]
Cancel,
}
impl Default for TaskOperation {
fn default() -> Self {
Self::RetryImport
}
}
impl TaskOperation {
/// Returns the string value of this enum variant as used in the API.
pub fn as_str(&self) -> &'static str {
match self {
Self::RetryImport => "RETRY_IMPORT",
Self::Cancel => "CANCEL",
}
}
}
impl std::fmt::Display for TaskOperation {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "{}", self.as_str())
}
}
impl<'a> From<&'a TaskOperation> for crate::QueryValue<'a> {
fn from(value: &'a TaskOperation) -> Self {
crate::QueryValue::from(value.as_str())
}
}
/// ### 适用引擎
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
/// - RDS MariaDB
///
/// ### 相关功能文档
/// ><warning>该API操作涉及费用,请仔细阅读相关功能文档后再进行操作。></warning>
///
/// - [RDS MySQL按量付费转包年包月](~~96048~~)、[RDS MySQL包年包月转按量付费](~~161875~~)
/// - [RDS PostgreSQL按量付费转包年包月](~~96743~~)、[RDS PostgreSQL包年包月转按量付费](~~162756~~)
/// - [RDS SQL Server按量付费转包年包月](~~95631~~)、[RDS SQL Server包年包月转按量付费](~~162755~~)
/// - [RDS MariaDB按量付费转包年包月](~~97120~~)、[RDS MariaDB包年包月转按量付费](~~169252~~)
///
/// Return value of [Connection::transform_db_instance_pay_type()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct TransformDBInstancePayTypeResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 实例ID。
#[serde(rename = "DBInstanceId")]
pub db_instance_id: Option<String>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
/// 到期时间。
/// >如果变更为按量付费,该参数不返回。
#[serde(rename = "ExpiredTime")]
pub expired_time: Option<String>,
/// 订单ID。
#[serde(rename = "OrderId")]
pub order_id: Option<i64>,
/// 付费类型。
/// - 按量付费:POSTPAY
/// - 包年包月:PREPAY
#[serde(rename = "ChargeType")]
pub charge_type: Option<String>,
}
/// ### 适用引擎
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
/// - RDS MariaDB
///
/// ### 相关功能文档
/// ><warning>该API操作涉及费用变更,转换后立即按包年包月计费。建议提前完成费用测算,并仔细阅读相关功能文档后再进行操作。></warning>
///
/// - [RDS MySQL按量付费转包年包月](~~96048~~)
/// - [RDS PostgreSQL按量付费转包年包月](~~96743~~)
/// - [RDS SQL Server按量付费转包年包月](~~95631~~)
/// - [RDS MariaDB按量付费转包年包月](~~97120~~)
///
/// Return value of [Connection::modify_db_instance_pay_type()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct ModifyDBInstancePayTypeResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 生成的订单ID。
#[serde(rename = "OrderId")]
pub order_id: Option<i64>,
}
///
///
/// Return value of [Connection::modify_instance_auto_renewal_attribute()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct ModifyInstanceAutoRenewalAttributeResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
/// ### 适用引擎
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
/// - RDS MariaDB
///
/// Return value of [Connection::describe_price()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DescribePriceResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 订单参数。
/// >仅当**OrderParamOut**参数传入**true**时,返回该参数。
#[serde(rename = "OrderParams")]
pub order_params: Option<String>,
/// 价格信息。
#[serde(rename = "PriceInfo")]
pub price_info: Option<DescribePriceResponsePriceInfo>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
#[serde(rename = "Rules")]
pub rules: Option<DescribePriceResponseRules>,
/// Serverless价格信息。
#[serde(rename = "ServerlessPrice")]
pub serverless_price: Option<ServerlessPrice>,
/// 是否允许使用折扣。
#[serde(rename = "ShowDiscount")]
pub show_discount: Option<bool>,
/// 根据用户所选择的最大RCU计算出的每小时费用预估。
#[serde(rename = "TradeMaxRCUAmount")]
pub trade_max_rcu_amount: Option<f32>,
/// 根据用户所选择的最小RCU计算出的每小时费用预估。
#[serde(rename = "TradeMinRCUAmount")]
pub trade_min_rcu_amount: Option<f32>,
}
///
///
/// Return value of [Connection::describe_renewal_price()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DescribeRenewalPriceResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 价格信息列表。
#[serde(rename = "PriceInfo")]
pub price_info: Option<RenewalPriceResponsePriceInfo>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
#[serde(rename = "Rules")]
pub rules: Option<RenewalPriceResponseRules>,
}
/// ### 适用引擎
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
/// - RDS MariaDB
///
/// Return value of [Connection::describe_instance_auto_renewal_attribute()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DescribeInstanceAutoRenewalAttributeResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
#[serde(rename = "Items")]
pub items: Option<RenewalAttributeResponseItems>,
/// 当前页数。
#[serde(rename = "PageNumber")]
pub page_number: Option<i32>,
/// 每页显示记录数。
#[serde(rename = "PageRecordCount")]
pub page_record_count: Option<i32>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
/// 总记录数。
#[serde(rename = "TotalRecordCount")]
pub total_record_count: Option<i32>,
}
///
///
/// Return value of [Connection::renew_instance()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct RenewInstanceResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 订单ID。
#[serde(rename = "OrderId")]
pub order_id: Option<i64>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
/// 该接口已停止维护:**接口仍可以正常调用,但阿里云不再维护该接口**。
///
/// Return value of [Connection::describe_db_instance_promote_activity()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DescribeDBInstancePromoteActivityResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 阿里云账号ID。
#[serde(rename = "AliUid")]
pub ali_uid: Option<String>,
/// - 中国站:26842
/// - 国际站:26888
#[serde(rename = "Bid")]
pub bid: Option<String>,
/// 实例ID。可调用[DescribeDBInstances](~~610396~~)获取。
#[serde(rename = "DBInstanceId")]
pub db_instance_id: Option<String>,
/// 实例名称。
#[serde(rename = "DBInstanceName")]
pub db_instance_name: Option<String>,
/// 数据库引擎类型,取值范围如下:
/// * **MySQL**
/// * **PostgreSQL**
/// * **Oracle**
#[serde(rename = "DBType")]
pub db_type: Option<String>,
/// 实例的动态属性。详情请参见[实例动态](~~2391834~~)。
#[serde(rename = "IsActivity")]
pub is_activity: Option<String>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
/// >使用新版SDK包调用本接口时,由于SDK内部的客户端默认超时时间和服务端的不一致,因此可能返回请求超时的错误,但实际上接口已调用成功。如需避免这个问题,您可以在调用前设置ReadTimeout参数为20000。
/// 
///
/// Return value of [Connection::create_db_instance()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct CreateDBInstanceResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 创建实例预检查是否通过。返回值:
/// * **true**:通过。
/// * **false**:未通过。
///
/// > * 如不执行预检查,则不返回该参数。
/// > * 如预检查未通过,则返回对应错误。
#[serde(rename = "DryRunResult")]
pub dry_run_result: Option<bool>,
/// 实例是否成功绑定标签。返回值:
/// * **true**:成功。
/// * **false**:失败。
///
/// >如不为实例绑定标签,则不返回该参数。
#[serde(rename = "TagResult")]
pub tag_result: Option<bool>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
/// 实例内网连接地址。
#[serde(rename = "ConnectionString")]
pub connection_string: Option<String>,
/// 实例ID。若给**Amount**参数指定大于**1**的值, 将返回与该值对应的实例ID个数,以逗号分隔。
///
/// 例如**Amount**参数为**3**,则返回3个实例ID。示例:
/// `rm-uf6wjk5*****1,rm-uf6wjk5*****2,rm-uf6wjk5*****3`
#[serde(rename = "DBInstanceId")]
pub db_instance_id: Option<String>,
/// 实例内网连接地址对应端口号。
#[serde(rename = "Port")]
pub port: Option<String>,
/// 批量创建任务的任务ID。
///
/// * 仅在**Amount**参数大于1时返回。
/// * 当前暂不支持通过**TaskId**的值查看任务。
#[serde(rename = "TaskId")]
pub task_id: Option<String>,
/// 表示当前请求需要在创建实例前执行预检查。
///
/// * 返回值固定为**true**。
/// * 如不执行预检查,则不返回该参数。
#[serde(rename = "DryRun")]
pub dry_run: Option<bool>,
/// 订单ID。
#[serde(rename = "OrderId")]
pub order_id: Option<String>,
}
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
/// - RDS MariaDB
///
/// ### 相关功能文档
/// ><warning>该API操作涉及费用,请仔细阅读相关功能文档后再进行操作。></warning>
///
/// - [RDS MySQL回收站重建实例](~~96065~~)
/// - [RDS PostgreSQL回收站重建实例](~~96752~~)
/// - [RDS SQL Server回收站重建实例](~~95669~~)
/// - [RDS MariaDB回收站重建实例](~~97131~~)
///
/// Return value of [Connection::create_db_instance_for_rebuild()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct CreateDBInstanceForRebuildResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 实例ID。
#[serde(rename = "DBInstanceId")]
pub db_instance_id: Option<String>,
/// 订单ID。
#[serde(rename = "OrderId")]
pub order_id: Option<String>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
/// 任务ID。
#[serde(rename = "TaskId")]
pub task_id: Option<String>,
}
///
///
/// Return value of [Connection::delete_db_instance()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DeleteDBInstanceResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 地域ID。
#[serde(rename = "RegionId")]
pub region_id: Option<String>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
///
///
/// Return value of [Connection::restart_db_instance()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct RestartDBInstanceResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
///
///
/// Return value of [Connection::stop_db_instance()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct StopDBInstanceResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
///
///
/// Return value of [Connection::start_db_instance()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct StartDBInstanceResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 该参数仅支持专属集群实例,迁移任务ID。
#[serde(rename = "MigrationId")]
pub migration_id: Option<i32>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
/// 任务ID。
#[serde(rename = "TaskId")]
pub task_id: Option<i32>,
}
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
/// - RDS MariaDB
///
/// ### 计费说明
/// 本API操作涉及[变配费用](~~57178~~),请仔细阅读相关功能文档后再进行操作。
///
/// ### 相关功能文档
///
/// - [RDS MySQL变更配置](~~96061~~)
/// - [RDS PostgreSQL变更配置](~~96750~~)
/// - [RDS SQL Server变更配置](~~95665~~)
/// - [RDS MariaDB变更配置](~~97129~~)
///
/// Return value of [Connection::modify_db_instance_spec()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct ModifyDBInstanceSpecResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 实例ID。
#[serde(rename = "DBInstanceId")]
pub db_instance_id: Option<String>,
/// 订单ID。
#[serde(rename = "OrderId")]
pub order_id: Option<i64>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
///
///
/// Return value of [Connection::destroy_db_instance()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DestroyDBInstanceResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
///
///
/// Return value of [Connection::modify_das_instance_config()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct ModifyDasInstanceConfigResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
///
///
/// Return value of [Connection::migrate_to_other_zone()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct MigrateToOtherZoneResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 实例ID。
#[serde(rename = "DBInstanceId")]
pub db_instance_id: Option<String>,
/// 订单ID,仅MySQL实例适用。
#[serde(rename = "OrderId")]
pub order_id: Option<i64>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
///
///
/// Return value of [Connection::modify_db_instance_description()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct ModifyDBInstanceDescriptionResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
///
///
/// Return value of [Connection::modify_db_instance_maintain_time()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct ModifyDBInstanceMaintainTimeResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
///
///
/// Return value of [Connection::modify_resource_group()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct ModifyResourceGroupResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
///
///
/// Return value of [Connection::modify_ha_diagnose_config()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct ModifyHADiagnoseConfigResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
/// ### 适用引擎
/// RDS SQL Server(共享型实例和2008 R2版本不支持)
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
///
/// [RDS SQL Server自定义账号密码策略](~~95640~~)
///
/// Return value of [Connection::modify_account_security_policy()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct ModifyAccountSecurityPolicyResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
/// ### 适用引擎
/// RDS SQL Server
///
/// Return value of [Connection::describe_support_online_resize_disk()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DescribeSupportOnlineResizeDiskResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 响应结果集。
#[serde(rename = "Data")]
pub data: Option<String>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
/// 是否请求成功。
#[serde(rename = "Success")]
pub success: Option<bool>,
}
///
///
/// Return value of [Connection::describe_available_zones()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DescribeAvailableZonesResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// RDS可用区资源列表。
#[serde(rename = "AvailableZones")]
#[serde(default)]
pub available_zones: Vec<AvailableZone>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
///
///
/// Return value of [Connection::describe_available_classes()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DescribeAvailableClassesResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 当前实例可用规格列表。
#[serde(rename = "DBInstanceClasses")]
#[serde(default)]
pub db_instance_classes: Vec<InstanceClass>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
///
///
/// Return value of [Connection::describe_db_instance_attribute()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DescribeDBInstanceAttributeResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
#[serde(rename = "Items")]
pub items: Option<InstanceAttributeResponseItems>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
/// ### 适用引擎
///
/// RDS MySQL
///
/// Return value of [Connection::get_db_instance_topology()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct GetDBInstanceTopologyResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 拓扑结构详情。
#[serde(rename = "Data")]
pub data: Option<TopologyResponseData>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
///
///
/// Return value of [Connection::describe_db_instances()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DescribeDBInstancesResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
#[serde(rename = "Items")]
pub items: Option<InstancesResponseItems>,
/// 翻页凭证。如果调用结果分多页展示,再次调用接口时在**NextToken**处传入该值便可以展示下一页的内容。
#[serde(rename = "NextToken")]
pub next_token: Option<String>,
/// 页码。
/// >若您传入了**MaxResults**或**NextToken**参数,则本返回值仅会返回**1**,您可直接忽略。
#[serde(rename = "PageNumber")]
pub page_number: Option<i32>,
/// 当前页实例个数。
#[serde(rename = "PageRecordCount")]
pub page_record_count: Option<i32>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
/// 总记录数。
/// >若您传入了**MaxResults**或**NextToken**参数,则本返回值仅会显示当前页的记录数,您可直接忽略。
#[serde(rename = "TotalRecordCount")]
pub total_record_count: Option<i32>,
}
///
///
/// Return value of [Connection::list_classes()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct ListClassesResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 实例规格信息列表。
#[serde(rename = "Items")]
#[serde(default)]
pub items: Vec<ClassesResponseItem>,
/// 地域ID。
#[serde(rename = "RegionId")]
pub region_id: Option<String>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
///
///
/// Return value of [Connection::describe_db_instances_by_expire_time()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DescribeDBInstancesByExpireTimeResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
#[serde(rename = "Items")]
pub items: Option<TimeResponseItems>,
/// 页码,取值:大于**0**且不超过Integer类型的最大值。
///
/// 默认值:**1**。
#[serde(rename = "PageNumber")]
pub page_number: Option<i32>,
/// 当前页的实例个数。
#[serde(rename = "PageRecordCount")]
pub page_record_count: Option<i32>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
/// 总记录数。
#[serde(rename = "TotalRecordCount")]
pub total_record_count: Option<i32>,
}
///
///
/// Return value of [Connection::describe_regions()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DescribeRegionsResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
#[serde(rename = "Regions")]
pub regions: Option<RegionsResponseRegions>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
///
///
/// Return value of [Connection::check_instance_exist()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct CheckInstanceExistResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 目标实例是否存在。返回值:
/// * **true**:存在
/// * **false**:不存在
#[serde(rename = "IsExistInstance")]
pub is_exist_instance: Option<bool>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
///
///
/// Return value of [Connection::describe_ha_diagnose_config()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DescribeHADiagnoseConfigResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
/// 阿里云对RDS实例的可用性检测方式。返回值:
/// - **LONG**:长连接
/// - **SHORT**:短连接
#[serde(rename = "TcpConnectionType")]
pub tcp_connection_type: Option<String>,
}
/// ### 适用引擎
/// RDS MySQL
///
/// ### 相关功能文档
/// <props="china">[创建和查看MySQL分析实例](~~155180~~)</props>
///
/// Return value of [Connection::describe_analyticdb_by_primary_db_instance()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DescribeAnalyticdbByPrimaryDBInstanceResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 已关联的分析型实例数量。
#[serde(rename = "AnalyticDBCount")]
pub analytic_db_count: Option<i32>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
/// - RDS MariaDB
///
/// Return value of [Connection::check_cloud_resource_authorized()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct CheckCloudResourceAuthorizedResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 授权状态,取值:
/// - **1**:已授权
/// - **0**:未授权
#[serde(rename = "AuthorizationState")]
pub authorization_state: Option<i32>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
/// 角色的全局资源描述符,用来指定具体角色。详情请参见[RAM角色概览](~~93689~~)。
#[serde(rename = "RoleArn")]
pub role_arn: Option<String>,
}
///
///
/// Return value of [Connection::release_instance_connection()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct ReleaseInstanceConnectionResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
///
///
/// Return value of [Connection::describe_db_instance_detail()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DescribeDBInstanceDetailResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 激活状态。
#[serde(rename = "ActivationState")]
pub activation_state: Option<String>,
/// 实例ID。
#[serde(rename = "DBInstanceId")]
pub db_instance_id: Option<String>,
/// License类型。
#[serde(rename = "LicenseType")]
pub license_type: Option<String>,
/// 地域ID。
#[serde(rename = "RegionId")]
pub region_id: Option<String>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
///
///
/// Return value of [Connection::describe_db_instances_by_performance()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DescribeDBInstancesByPerformanceResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
#[serde(rename = "Items")]
pub items: Option<PerformanceResponseItems>,
/// 页码。
#[serde(rename = "PageNumber")]
pub page_number: Option<i32>,
/// 当前页实例个数。
#[serde(rename = "PageRecordCount")]
pub page_record_count: Option<i32>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
/// 查询出的总实例数量。
#[serde(rename = "TotalRecordCount")]
pub total_record_count: Option<i32>,
}
///
///
/// Return value of [Connection::describe_db_instances_for_clone()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DescribeDBInstancesForCloneResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
#[serde(rename = "Items")]
pub items: Option<CloneResponseItems>,
/// 页码。
#[serde(rename = "PageNumber")]
pub page_number: Option<i32>,
/// 当前页实例个数。
#[serde(rename = "PageRecordCount")]
pub page_record_count: Option<i32>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
/// 总记录数。
#[serde(rename = "TotalRecordCount")]
pub total_record_count: Option<i32>,
}
///
///
/// Return value of [Connection::describe_db_instances_as_csv()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DescribeDBInstancesAsCsvResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
#[serde(rename = "Items")]
pub items: Option<CsvResponseItems>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
///
///
/// Return value of [Connection::modify_db_instance_auto_upgrade_minor_version()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct ModifyDBInstanceAutoUpgradeMinorVersionResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
///
///
/// Return value of [Connection::describe_upgrade_major_version_precheck_task()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DescribeUpgradeMajorVersionPrecheckTaskResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
/// 页码。
#[serde(rename = "PageNumber")]
pub page_number: Option<i32>,
/// 每页显示记录数。
#[serde(rename = "PageRecordCount")]
pub page_record_count: Option<i32>,
/// 升级检查报告记录数。
#[serde(rename = "TotalRecordCount")]
pub total_record_count: Option<i32>,
/// 大版本升级检查报告属性列表。
#[serde(rename = "Items")]
#[serde(default)]
pub items: Vec<TaskResponseItem>,
}
///
///
/// Return value of [Connection::describe_upgrade_major_version_tasks()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DescribeUpgradeMajorVersionTasksResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
/// 页码。
#[serde(rename = "PageNumber")]
pub page_number: Option<i32>,
/// 每页可显示的记录数。
#[serde(rename = "PageRecordCount")]
pub page_record_count: Option<i32>,
/// 总记录数。
#[serde(rename = "TotalRecordCount")]
pub total_record_count: Option<i32>,
/// 大版本升级任务列表。
#[serde(rename = "Items")]
#[serde(default)]
pub items: Vec<VersionTasksResponseItem>,
}
///
///
/// Return value of [Connection::upgrade_db_instance_engine_version()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct UpgradeDBInstanceEngineVersionResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
/// 任务ID。
#[serde(rename = "TaskId")]
pub task_id: Option<String>,
}
///
///
/// Return value of [Connection::upgrade_db_instance_kernel_version()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct UpgradeDBInstanceKernelVersionResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 实例ID。
#[serde(rename = "DBInstanceName")]
pub db_instance_name: Option<String>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
/// 升级的目标内核小版本。
#[serde(rename = "TargetMinorVersion")]
pub target_minor_version: Option<String>,
/// 任务ID。
#[serde(rename = "TaskId")]
pub task_id: Option<String>,
}
///
///
/// Return value of [Connection::upgrade_db_instance_major_version_precheck()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct UpgradeDBInstanceMajorVersionPrecheckResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 实例名称。
#[serde(rename = "DBInstanceName")]
pub db_instance_name: Option<String>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
/// 目标实例版本。
#[serde(rename = "TargetMajorVersion")]
pub target_major_version: Option<String>,
/// 任务ID。
#[serde(rename = "TaskId")]
pub task_id: Option<String>,
}
///
///
/// Return value of [Connection::upgrade_db_instance_major_version()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct UpgradeDBInstanceMajorVersionResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 实例ID。
#[serde(rename = "DBInstanceId")]
pub db_instance_id: Option<String>,
/// 订单ID。
#[serde(rename = "OrderId")]
pub order_id: Option<String>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
/// 预留参数。
#[serde(rename = "TaskId")]
pub task_id: Option<i64>,
}
///
///
/// Return value of [Connection::allocate_instance_public_connection()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct AllocateInstancePublicConnectionResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 数据库连接地址。
#[serde(rename = "ConnectionString")]
pub connection_string: Option<String>,
/// 实例ID。
#[serde(rename = "DbInstanceName")]
pub db_instance_name: Option<String>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
///
///
/// Return value of [Connection::release_instance_public_connection()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct ReleaseInstancePublicConnectionResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
///
///
/// Return value of [Connection::modify_db_instance_connection_string()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct ModifyDBInstanceConnectionStringResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
///
///
/// Return value of [Connection::modify_db_instance_network_expire_time()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct ModifyDBInstanceNetworkExpireTimeResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
///
///
/// Return value of [Connection::switch_db_instance_net_type()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct SwitchDBInstanceNetTypeResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 切换后的数据库连接地址。
#[serde(rename = "NewConnectionString")]
pub new_connection_string: Option<String>,
/// 切换前的数据库连接地址。
#[serde(rename = "OldConnectionString")]
pub old_connection_string: Option<String>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
///
///
/// Return value of [Connection::modify_db_instance_network_type()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct ModifyDBInstanceNetworkTypeResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 实例连接地址。
#[serde(rename = "ConnectionString")]
pub connection_string: Option<String>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
/// 任务ID。
#[serde(rename = "TaskId")]
pub task_id: Option<String>,
}
///
///
/// Return value of [Connection::switch_db_instance_vpc()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct SwitchDBInstanceVpcResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
/// ### 适用引擎
///
/// - RDS PostgreSQL
/// - RDS SQL Server
///
/// > 当前支持的配置项为[RDS PostgreSQL PgBouncer功能](~~2398301~~)、[RDS PostgreSQL云盘加密功能](~~124822~~)、[RDS SQL Server云盘加密功能](~~135391~~)<props="china">、[RDS SQL Server简单恢复功能](~~2618484~~)</props>和[RDS SQL Server错误日志清理功能](~~95645~~)。
///
/// Return value of [Connection::modify_db_instance_config()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct ModifyDBInstanceConfigResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
///
///
/// Return value of [Connection::describe_db_instance_net_info()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DescribeDBInstanceNetInfoResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
#[serde(rename = "DBInstanceNetInfos")]
pub db_instance_net_infos: Option<InfoResponseDBInstanceNetInfos>,
/// 网络类型,取值:
/// * **Classic**:经典网络。
/// * **VPC**:专有网络。
#[serde(rename = "InstanceNetworkType")]
pub instance_network_type: Option<String>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
/// 白名单模式,取值:
/// * **normal**:通用模式。
/// * **safety**:高安全模式。
#[serde(rename = "SecurityIPMode")]
pub security_ip_mode: Option<String>,
}
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
/// - RDS MariaDB
///
/// Return value of [Connection::describe_v_switches()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DescribeVSwitchesResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 当前页码。
#[serde(rename = "PageNumber")]
pub page_number: Option<i32>,
/// 每页记录数。与请求参数**PageSize**中传入的值对应。
#[serde(rename = "PageSize")]
pub page_size: Option<i32>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
/// 总记录数。
#[serde(rename = "TotalCount")]
pub total_count: Option<i32>,
/// 交换机信息列表。
#[serde(rename = "VSwitchs")]
#[serde(default)]
pub v_switchs: Vec<VSwitch>,
}
///
///
/// Return value of [Connection::modify_db_instance_ha_config()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct ModifyDBInstanceHAConfigResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
///
///
/// Return value of [Connection::modify_ha_switch_config()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct ModifyHASwitchConfigResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
///
///
/// Return value of [Connection::describe_db_instance_ha_config()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DescribeDBInstanceHAConfigResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 实例ID。
#[serde(rename = "DBInstanceId")]
pub db_instance_id: Option<String>,
/// 高可用模式,取值:
/// * **RPO**:数据一致性优先,实例会尽可能保障数据的可靠性,即数据丢失量最少。对于数据一致性要求比较高的用户应该使用RPO模式。
/// * **RTO**:实例可用性优先,实例会尽快恢复服务,即可用时间最长。对于数据库在线时间要求比较高的用户应该使用RTO模式。
///
/// >仅MySQL实例返回此参数。
#[serde(rename = "HAMode")]
pub ha_mode: Option<String>,
#[serde(rename = "HostInstanceInfos")]
pub host_instance_infos: Option<InstanceInfos>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
/// 数据复制方式,取值:
/// * **Sync**:强同步
/// * **Semi-sync**:半同步
/// * **Async**:异步
///
/// >仅MySQL实例返回此参数。
#[serde(rename = "SyncMode")]
pub sync_mode: Option<String>,
}
///
///
/// Return value of [Connection::describe_ha_switch_config()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DescribeHASwitchConfigResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 主备自动切换设置,取值:
/// * **Auto**:出现故障时自动切换主备实例。
/// * **Manual**:已临时关闭自动切换。
#[serde(rename = "HAConfig")]
pub ha_config: Option<String>,
/// 临时关闭截止时间。格式:<i>yyyy-MM-dd</i>T<i>HH:mm:ss</i>Z(UTC时间)。
#[serde(rename = "ManualHATime")]
pub manual_ha_time: Option<String>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
///
///
/// Return value of [Connection::switch_db_instance_ha()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct SwitchDBInstanceHAResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
///
///
/// Return value of [Connection::modify_action_event_policy()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct ModifyActionEventPolicyResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 历史事件功能的启用情况。
#[serde(rename = "EnableEventLog")]
pub enable_event_log: Option<String>,
/// 开启或关闭历史事件功能的地域ID。
#[serde(rename = "RegionId")]
pub region_id: Option<String>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
///
///
/// Return value of [Connection::describe_events()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DescribeEventsResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
#[serde(rename = "EventItems")]
pub event_items: Option<EventItems>,
/// 页码。
#[serde(rename = "PageNumber")]
pub page_number: Option<i32>,
/// 每页记录数。
#[serde(rename = "PageSize")]
pub page_size: Option<i32>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
/// 总记录数。
#[serde(rename = "TotalRecordCount")]
pub total_record_count: Option<i32>,
}
///
///
/// Return value of [Connection::describe_action_event_policy()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DescribeActionEventPolicyResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 历史事件功能开启情况。
#[serde(rename = "EnableEventLog")]
pub enable_event_log: Option<String>,
/// 地域ID。
#[serde(rename = "RegionId")]
pub region_id: Option<String>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
/// - RDS MariaDB
///
/// ### 功能说明
/// RDS通知会以高亮的形式展示于RDS控制台顶部,包含续费提醒、实例创建失败提醒等。
///
/// 通过本接口查询了通知以后,您可以调用[ConfirmNotify](~~610444~~)将该通知标记为已确认,代表您已知晓该通知的内容。
///
/// Return value of [Connection::query_notify()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct QueryNotifyResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 返回字段列表。
#[serde(rename = "Data")]
pub data: Option<NotifyResponseData>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
/// - RDS MariaDB
///
/// ### 功能说明
/// 您可以先调用[QueryNotify](~~610443~~)查询通知,然后调用本接口将该通知标记为已确认,代表您已知晓该通知的内容。
///
/// Return value of [Connection::confirm_notify()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct ConfirmNotifyResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
/// 该接口已停止维护:接口仍可以正常调用,但阿里云不再维护该接口。
///
/// Return value of [Connection::describe_rds_resource_settings()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DescribeRdsResourceSettingsResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
#[serde(rename = "RdsInstanceResourceSettings")]
pub rds_instance_resource_settings: Option<ResourceSettings>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
/// - RDS MariaDB
///
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
///
/// - [RDS MySQL创建账号](~~96089~~)
/// - [RDS PostgreSQL创建账号](~~96753~~)
/// - [RDS SQL Server创建账号](~~95810~~)
/// - [RDS MariaDB创建账号](~~97132~~)
///
/// Return value of [Connection::create_account()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct CreateAccountResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
///
///
/// Return value of [Connection::delete_account()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DeleteAccountResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
/// ### 适用引擎
///
/// RDS SQL Server(不支持共享型实例及2008 R2版本实例)
///
/// > 使用该接口前,您需要预先设置SQL Server账号密码策略。具体操作,请参见[ModifyAccountSecurityPolicy](~~2848321~~)。
///
/// ### 相关功能文档
/// [RDS SQL Server自定义账号密码策略](~~2845728~~)
///
/// Return value of [Connection::modify_account_check_policy()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct ModifyAccountCheckPolicyResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
///
///
/// Return value of [Connection::modify_account_description()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct ModifyAccountDescriptionResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
/// ### 适用引擎
/// RDS PostgreSQL
///
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
///
/// - [RDS PostgreSQL接入自建域](~~349288~~)
/// - [PostgreSQL pg_hba.conf介绍](https://www.postgresql.org/docs/11/auth-pg-hba-conf.html)
///
/// Return value of [Connection::modify_pg_hba_config()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct ModifyPGHbaConfigResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
///
///
/// Return value of [Connection::describe_accounts()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DescribeAccountsResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
#[serde(rename = "Accounts")]
pub accounts: Option<ResponseAccounts>,
/// 页码。
#[serde(rename = "PageNumber")]
pub page_number: Option<i32>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
/// 超级权限账号首次启用时间。格式:<i>yyyy-MM-dd</i>T<i>HH:mm:ss</i>Z(UTC时间)。
///
/// > 仅SQL Server实例返回该参数。
#[serde(rename = "SystemAdminAccountFirstActivationTime")]
pub system_admin_account_first_activation_time: Option<String>,
/// 超级权限账号是否启用,返回值如下:
///
/// - **True**:已启用
/// - **False**:未启用
///
///
/// > 仅SQL Server实例支持[超级权限账号](~~170736~~),该参数有返回值。其他引擎实例的返回值为空。
#[serde(rename = "SystemAdminAccountStatus")]
pub system_admin_account_status: Option<String>,
/// 总记录数。
#[serde(rename = "TotalRecordCount")]
pub total_record_count: Option<i32>,
/// 资源组ID。
#[serde(rename = "ResourceGroupId")]
pub resource_group_id: Option<String>,
}
///
///
/// Return value of [Connection::describe_instance_keywords()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DescribeInstanceKeywordsResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 保留关键字的类型,即表示是账号名或数据库名的保留关键字。
#[serde(rename = "Key")]
pub key: Option<String>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
#[serde(rename = "Words")]
pub words: Option<ResponseWords>,
}
/// ### 适用引擎
/// RDS PostgreSQL
///
/// Return value of [Connection::describe_pg_hba_config()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DescribePGHbaConfigResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 实例ID。
#[serde(rename = "DBInstanceId")]
pub db_instance_id: Option<String>,
#[serde(rename = "DefaultHbaItems")]
pub default_hba_items: Option<DefaultHbaItems>,
/// pg_hba.conf文件最近一次修改的时间。
#[serde(rename = "HbaModifyTime")]
pub hba_modify_time: Option<String>,
/// pg_hba.conf文件最近一次修改的状态。返回值如下:
///
/// - **success**:成功
/// - **setting**:设置中
/// - **failed**:失败
#[serde(rename = "LastModifyStatus")]
pub last_modify_status: Option<String>,
/// 此参数显示pg_hba.conf文件最近一次修改状态对应的原因。
#[serde(rename = "ModifyStatusReason")]
pub modify_status_reason: Option<String>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
#[serde(rename = "RunningHbaItems")]
pub running_hba_items: Option<RunningHbaItems>,
}
/// ### 适用引擎
/// RDS PostgreSQL
///
/// Return value of [Connection::describe_modify_pg_hba_config_log()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DescribeModifyPGHbaConfigLogResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 实例ID。
#[serde(rename = "DBInstanceId")]
pub db_instance_id: Option<String>,
#[serde(rename = "HbaLogItems")]
pub hba_log_items: Option<LogItems>,
/// 历史记录数。
#[serde(rename = "LogItemCount")]
pub log_item_count: Option<i32>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
///
///
/// Return value of [Connection::reset_account_password()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct ResetAccountPasswordResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
///
///
/// Return value of [Connection::lock_account()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct LockAccountResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
///
///
/// Return value of [Connection::unlock_account()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct UnlockAccountResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
///
///
/// Return value of [Connection::grant_account_privilege()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct GrantAccountPrivilegeResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
///
///
/// Return value of [Connection::grant_operator_permission()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct GrantOperatorPermissionResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
///
///
/// Return value of [Connection::revoke_operator_permission()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct RevokeOperatorPermissionResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
///
///
/// Return value of [Connection::revoke_account_privilege()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct RevokeAccountPrivilegeResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
///
///
/// Return value of [Connection::reset_account()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct ResetAccountResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
///
///
/// Return value of [Connection::check_account_name_available()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct CheckAccountNameAvailableResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
/// 资源组ID。
#[serde(rename = "ResourceGroupId")]
pub resource_group_id: Option<String>,
}
///
///
/// Return value of [Connection::create_database()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct CreateDatabaseResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 请求 ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
///
///
/// Return value of [Connection::delete_database()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DeleteDatabaseResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
///
///
/// Return value of [Connection::copy_database()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct CopyDatabaseResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 数据库名称。
#[serde(rename = "DBName")]
pub db_name: Option<String>,
/// 数据库状态,返回值:
/// * **Creating**:创建中。
/// * **Running**:使用中。
/// * **Deleting**:删除中。
#[serde(rename = "DBStatus")]
pub db_status: Option<String>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
/// 任务ID。
#[serde(rename = "TaskId")]
pub task_id: Option<String>,
}
///
///
/// Return value of [Connection::modify_db_description()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct ModifyDBDescriptionResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
/// ### 适用引擎
/// - RDS SQL Server
///
/// ### 相关功能文档
/// 当前该接口支持的功能为[修改SQL Server数据库属性](~~2401398~~)、[云盘数据归档OSS](~~2767189~~),且通过API使用数据归档OSS功能前,请先在控制台开启数据归档功能。
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
///
/// Return value of [Connection::modify_database_config()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct ModifyDatabaseConfigResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
///
///
/// Return value of [Connection::modify_collation_time_zone()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct ModifyCollationTimeZoneResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 系统字符集排序规则。
#[serde(rename = "Collation")]
pub collation: Option<String>,
/// 实例ID。
#[serde(rename = "DBInstanceId")]
pub db_instance_id: Option<String>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
/// 任务ID。
#[serde(rename = "TaskId")]
pub task_id: Option<String>,
/// 时区。
#[serde(rename = "Timezone")]
pub timezone: Option<String>,
}
///
///
/// Return value of [Connection::describe_databases()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DescribeDatabasesResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
#[serde(rename = "Databases")]
pub databases: Option<DatabasesResponseDatabases>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
///
///
/// Return value of [Connection::describe_collation_time_zones()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DescribeCollationTimeZonesResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
#[serde(rename = "CollationTimeZones")]
pub collation_time_zones: Option<TimeZones>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
///
///
/// Return value of [Connection::describe_character_set_name()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DescribeCharacterSetNameResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
#[serde(rename = "CharacterSetNameItems")]
pub character_set_name_items: Option<NameItems>,
/// 数据库引擎类型。
#[serde(rename = "Engine")]
pub engine: Option<String>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
///
///
/// Return value of [Connection::copy_database_between_instances()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct CopyDatabaseBetweenInstancesResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
///
///
/// Return value of [Connection::check_db_name_available()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct CheckDBNameAvailableResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 请求ID。
/// >仅返回请求ID时,表示数据库名称可用,否则会返回报错信息,提示数据库名称重复或不符合命名规范。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
///
///
/// Return value of [Connection::create_read_only_db_instance()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct CreateReadOnlyDBInstanceResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 创建的只读实例内网数据库连接地址。
#[serde(rename = "ConnectionString")]
pub connection_string: Option<String>,
/// 创建的只读实例ID。
#[serde(rename = "DBInstanceId")]
pub db_instance_id: Option<String>,
/// 订单ID。
#[serde(rename = "OrderId")]
pub order_id: Option<String>,
/// 创建的只读实例内网数据库连接端口。
#[serde(rename = "Port")]
pub port: Option<String>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
///
///
/// Return value of [Connection::modify_readonly_instance_delay_replication_time()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct ModifyReadonlyInstanceDelayReplicationTimeResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 只读实例ID。
#[serde(rename = "DBInstanceId")]
pub db_instance_id: Option<String>,
/// 延迟复制时间。单位:秒。
#[serde(rename = "ReadSQLReplicationTime")]
pub read_sql_replication_time: Option<String>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
/// 任务ID。
#[serde(rename = "TaskId")]
pub task_id: Option<String>,
}
///
///
/// Return value of [Connection::describe_read_db_instance_delay()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DescribeReadDBInstanceDelayResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 主实例ID。
#[serde(rename = "DBInstanceId")]
pub db_instance_id: Option<String>,
/// 延迟时间,单位为秒。
#[serde(rename = "DelayTime")]
pub delay_time: Option<i32>,
#[serde(rename = "Items")]
pub items: Option<DelayResponseItems>,
/// 只读实例ID。
#[serde(rename = "ReadDBInstanceId")]
pub read_db_instance_id: Option<String>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
/// ### 适用引擎
/// RDS PostgreSQL
///
/// ### 相关功能文档
/// [DuckDB分析实例](~~2977241~~)
///
/// Return value of [Connection::precheck_duck_db_dependency()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct PrecheckDuckDBDependencyResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 不符合创建DuckDB分析实例的条目。
#[serde(rename = "FailedCheckItems")]
#[serde(default)]
pub failed_check_items: Vec<CheckItem>,
/// 是否通过创建DuckDB分析实例的前置校验。取值:
///
/// - **true**:是。
/// - **false**:否。
#[serde(rename = "Result")]
pub result: Option<bool>,
}
/// ### 适用引擎
///
/// <props="china">
///
/// - RDS MySQL
/// - RDS PostgreSQL
///
/// </props>
///
/// <props="intl">RDS MySQL</props>
///
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
///
///
/// <props="china">
///
/// - RDS MySQL:[RDS MySQL集群版增加实例节点](~~464129~~)
/// - RDS PostgreSQL:[RDS PostgreSQL集群版增加实例节点](~~2778876~~)
///
/// </props>
///
/// <props="intl">
///
/// [RDS MySQL集群版增加实例节点](~~464129~~)
///
/// </props>
///
/// Return value of [Connection::create_db_nodes()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct CreateDBNodesResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 实例ID。
#[serde(rename = "DBInstanceId")]
pub db_instance_id: Option<String>,
/// 创建的节点ID。取值类型为String,多个节点以`,`分隔。
#[serde(rename = "NodeIds")]
pub node_ids: Option<String>,
/// 订单ID。
#[serde(rename = "OrderId")]
pub order_id: Option<i64>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
/// ### 适用引擎
///
/// <props="china">
///
/// - RDS MySQL
/// - RDS PostgreSQL
///
/// </props>
///
/// <props="intl">RDS MySQL</props>
///
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
///
/// <props="china">
///
/// - RDS MySQL:[增加集群只读地址](~~464132~~)
/// - RDS PostgreSQL:[增加集群只读地址](~~96788~~)
///
/// </props>
///
/// <props="intl">
///
/// [增加集群只读地址](~~464132~~)
/// </props>
///
/// Return value of [Connection::create_db_instance_endpoint()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct CreateDBInstanceEndpointResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 返回数据列表。
#[serde(rename = "Data")]
pub data: Option<CreateDBInstanceEndpointResponseData>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
/// ### 适用引擎
/// <props="china">
///
/// - RDS MySQL
/// - RDS PostgreSQL
///
/// </props>
///
/// <props="intl">RDS MySQL</props>
///
/// ### 注意事项
/// - 创建Endpoint的外网连接地址,在一个Endpoint没有外网地址时,才可以创建该Endpoint外网地址。
/// - 流量分配权重等配置与该Endpoint的内网地址的配置一致。每一个Endpoint只能有一个外网地址和内网地址。
///
/// Return value of [Connection::create_db_instance_endpoint_address()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct CreateDBInstanceEndpointAddressResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 返回字段列表。
#[serde(rename = "Data")]
pub data: Option<CreateDBInstanceEndpointAddressResponseData>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
/// ### 适用引擎
/// <props="china">
///
/// - RDS MySQL
/// - RDS PostgreSQL
///
/// </props>
///
/// <props="intl">RDS MySQL</props>
///
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
///
/// <props="china">
///
/// - RDS MySQL:[RDS MySQL集群版删除实例节点](~~464130~~)
/// - RDS PostgreSQL:[RDS PostgreSQL集群版删除实例节点](~~2778876~~)
///
/// </props>
///
/// <props="intl">
///
/// [RDS MySQL集群版删除实例节点](~~464130~~)
///
/// </props>
///
/// Return value of [Connection::delete_db_nodes()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DeleteDBNodesResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 实例ID。
#[serde(rename = "DBInstanceId")]
pub db_instance_id: Option<String>,
/// 订单ID。
#[serde(rename = "OrderId")]
pub order_id: Option<i64>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
/// ### 适用引擎
/// <props="china">
///
/// - RDS MySQL
/// - RDS PostgreSQL
///
/// </props>
///
/// <props="intl">RDS MySQL</props>
///
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
///
/// <props="china">
///
/// - RDS MySQL:[删除集群只读地址](~~464133~~)
/// - PostgreSQL:[删除集群只读地址](~~96788~~)
///
/// </props>
///
/// <props="intl">
///
/// RDS MySQL:[删除集群只读地址](~~464133~~)
///
/// </props>
///
/// Return value of [Connection::delete_db_instance_endpoint()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DeleteDBInstanceEndpointResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 返回数据列表。
#[serde(rename = "Data")]
pub data: Option<DeleteDBInstanceEndpointResponseData>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
/// ### 适用引擎
/// <props="china">
///
/// - RDS MySQL
/// - RDS PostgreSQL
///
/// </props>
///
/// <props="intl">RDS MySQL</props>
///
/// ### 注意事项
/// 删除Endpoint中的地址,目前仅支持删除Endpoint的外网地址。如需删除内网地址,可以直接删除Endpoint。
///
/// Return value of [Connection::delete_db_instance_endpoint_address()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DeleteDBInstanceEndpointAddressResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 返回数据列表。
#[serde(rename = "Data")]
pub data: Option<DeleteDBInstanceEndpointAddressResponseData>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
/// ### 适用引擎
///
/// - RDS MySQL
///
/// ### 相关功能文档
/// [变更节点配置](~~2627998~~)
/// ><warning>该API操作涉及费用,请仔细阅读相关功能文档后再进行操作。></warning>
///
/// Return value of [Connection::modify_db_node()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct ModifyDBNodeResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 实例ID。
#[serde(rename = "DBInstanceId")]
pub db_instance_id: Option<String>,
/// 订单ID。
#[serde(rename = "OrderId")]
pub order_id: Option<i64>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
/// 表示请求是否成功,各取值含义如下:
///
/// - **true**:成功
/// - **false**:失败
#[serde(rename = "Success")]
pub success: Option<bool>,
}
/// ### 适用引擎
/// <props="china">
///
/// - RDS MySQL
/// - RDS PostgreSQL
///
/// </props>
///
/// <props="intl">RDS MySQL</props>
///
/// Return value of [Connection::modify_db_instance_endpoint()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct ModifyDBInstanceEndpointResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 返回字段列表。
#[serde(rename = "Data")]
pub data: Option<ModifyDBInstanceEndpointResponseData>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
/// ### 适用引擎
/// <props="china">
///
/// - RDS MySQL
/// - RDS PostgreSQL
///
/// </props>
///
/// <props="intl">RDS MySQL</props>
///
/// ### 注意事项
/// - 修改Endpoint连接地址,包括修改外网和内网的连接串和端口、内网连接的VPC、vSwitch、IP等参数。
/// - 修改时,需要将VpcId、VSwitchId看作一组。内网地址的VpcId、VSwitchId、PrivateIpAddress等信息与ConnectionStringPrefix、Port不能同时传入,但至少传入其中一个参数。
///
/// Return value of [Connection::modify_db_instance_endpoint_address()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct ModifyDBInstanceEndpointAddressResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 返回字段列表。
#[serde(rename = "Data")]
pub data: Option<ModifyDBInstanceEndpointAddressResponseData>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
/// ### 适用引擎
/// <props="china">
///
/// - RDS MySQL
/// - RDS PostgreSQL
///
/// </props>
///
/// <props="intl">RDS MySQL</props>
///
/// Return value of [Connection::describe_db_instance_endpoints()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DescribeDBInstanceEndpointsResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 返回数据。
#[serde(rename = "Data")]
pub data: Option<EndpointsResponseData>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
///
///
/// Return value of [Connection::create_db_proxy_endpoint_address()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct CreateDBProxyEndpointAddressResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
///
///
/// Return value of [Connection::delete_db_proxy_endpoint_address()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DeleteDBProxyEndpointAddressResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
///
///
/// Return value of [Connection::modify_db_proxy()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct ModifyDBProxyResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
///
///
/// Return value of [Connection::upgrade_db_proxy_instance_kernel_version()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct UpgradeDBProxyInstanceKernelVersionResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 代理ID。
#[serde(rename = "DBInstanceName")]
pub db_instance_name: Option<String>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
/// 任务ID。
#[serde(rename = "TaskId")]
pub task_id: Option<String>,
}
///
///
/// Return value of [Connection::modify_db_proxy_instance()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct ModifyDBProxyInstanceResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
///
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
///
/// - [RDS MySQL配置数据库代理连接地址访问策略](~~2621331~~)
/// - [RDS PostgreSQL配置数据库代理连接地址访问策略](~~418273~~)
///
/// Return value of [Connection::modify_db_proxy_endpoint()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct ModifyDBProxyEndpointResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
///
///
/// Return value of [Connection::modify_db_proxy_endpoint_address()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct ModifyDBProxyEndpointAddressResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
///
///
/// Return value of [Connection::modify_db_proxy_instance_ssl()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct ModifyDbProxyInstanceSslResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
///
/// Return value of [Connection::describe_db_proxy()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DescribeDBProxyResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
#[serde(rename = "DBProxyInstanceMinorVersions")]
pub db_proxy_instance_minor_versions: Option<MinorVersions>,
#[serde(rename = "DBProxyConnectStringItems")]
pub db_proxy_connect_string_items: Option<StringItems>,
/// 内部参数,无需关注。
#[serde(rename = "DBProxyEngineType")]
pub db_proxy_engine_type: Option<String>,
/// 代理实例当前版本。
#[serde(rename = "DBProxyInstanceCurrentMinorVersion")]
pub db_proxy_instance_current_minor_version: Option<String>,
/// 代理实例最新版本。
#[serde(rename = "DBProxyInstanceLatestMinorVersion")]
pub db_proxy_instance_latest_minor_version: Option<String>,
/// 代理实例名称。
#[serde(rename = "DBProxyInstanceName")]
pub db_proxy_instance_name: Option<String>,
/// 开通的代理实例数量。
#[serde(rename = "DBProxyInstanceNum")]
pub db_proxy_instance_num: Option<i32>,
/// 该参数仅RDS PostgreSQL支持。表示代理实例规格实际大小。
///
/// 格式:`CPU/内存`。
///
/// 例如:4/8表示4核CPU 8GB内存。
#[serde(rename = "DBProxyInstanceSize")]
pub db_proxy_instance_size: Option<String>,
/// 代理实例的运行状态。
/// - DBInstanceClassChanging:变配中
/// - Creating:创建中
/// - Running:运行中
/// - Deleting:删除中
#[serde(rename = "DBProxyInstanceStatus")]
pub db_proxy_instance_status: Option<String>,
/// 代理服务类型。
/// - 1:共享型代理
/// - 2:独享型代理
/// - 3:通用型代理
///
/// > RDS PostgreSQL不支持共享型代理。
#[serde(rename = "DBProxyInstanceType")]
pub db_proxy_instance_type: Option<String>,
/// 内部参数,无需关注。
#[serde(rename = "DBProxyKindCode")]
pub db_proxy_kind_code: Option<String>,
#[serde(rename = "DBProxyNodes")]
pub db_proxy_nodes: Option<ProxyResponseDBProxyNodes>,
/// 连接保持状态。取值:
/// - **Enabled**:开启
/// - **Disabled**:关闭
/// - **Unsupported**:实例不支持开启连接保持
#[serde(rename = "DBProxyPersistentConnectionStatus")]
pub db_proxy_persistent_connection_status: Option<String>,
/// 数据库代理功能开关状态。
/// - Shutdown:关闭
/// - Startup:开启
#[serde(rename = "DBProxyServiceStatus")]
pub db_proxy_service_status: Option<String>,
#[serde(rename = "DbProxyEndpointItems")]
pub db_proxy_endpoint_items: Option<EndpointItems>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
/// 资源组ID。
#[serde(rename = "ResourceGroupId")]
pub resource_group_id: Option<String>,
#[serde(rename = "DBProxyAVZones")]
pub db_proxy_av_zones: Option<VZones>,
}
///
///
/// Return value of [Connection::describe_db_proxy_endpoint()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DescribeDBProxyEndpointResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 代理连接地址。
#[serde(rename = "DBProxyConnectString")]
pub db_proxy_connect_string: Option<String>,
/// 代理连接地址的网络类型,取值:
///
/// * **InnerString**:内网地址。
/// * **OuterString**:外网地址。
#[serde(rename = "DBProxyConnectStringNetType")]
pub db_proxy_connect_string_net_type: Option<String>,
/// 代理连接地址端口。
#[serde(rename = "DBProxyConnectStringPort")]
pub db_proxy_connect_string_port: Option<String>,
/// 代理连接地址ID。
#[serde(rename = "DBProxyEndpointId")]
pub db_proxy_endpoint_id: Option<String>,
/// 内部参数,无需关注。
#[serde(rename = "DBProxyEngineType")]
pub db_proxy_engine_type: Option<String>,
/// 代理终端的设置信息,格式为JSON,包含下述参数:
/// * **TransactionReadSqlRouteOptimizeStatus**:事务拆分设置,取值为**0**(关闭)或**1**(开启)。
/// * **ConnectionPersist**:连接池设置:取值为**0**(关闭)、**1**(会话级连接池)或**2**(事务级连接池)。
/// * **ReadWriteSpliting**:读写分离设置,取值为**0**(关闭)或**1**(开启)。
/// * **AZProximityAccess**:就近访问,取值为 **0**(关闭)或 **1**(开启)。
/// * **CausalConsistRead**:读一致性设置:取值为**0**(最终一致性)、**1**(会话一致性)或**2**(全局一致性)。
/// * **HtapFilter**:HTAP行列自动分流,取值为 **0**(关闭)或 **1**(开启)。
/// * **PinPreparedStmt**:仅RDS PostgrSQL可见,内部参数。
///
/// > RDS PostgreSQL仅支持修改**ReadWriteSpliting**,**TransactionReadSqlRouteOptimizeStatus**和**PinPreparedStmt**默认为1。
#[serde(rename = "DBProxyFeatures")]
pub db_proxy_features: Option<String>,
#[serde(rename = "DBProxyNodes")]
pub db_proxy_nodes: Option<EndpointResponseDBProxyNodes>,
/// 代理终端的备注信息。
#[serde(rename = "DbProxyEndpointAliases")]
pub db_proxy_endpoint_aliases: Option<String>,
/// 代理终端的读写类型,取值:
/// * **ReadWrite**:读写模式。
/// * **ReadOnly**:只读模式。
#[serde(rename = "DbProxyEndpointReadWriteMode")]
pub db_proxy_endpoint_read_write_mode: Option<String>,
/// 代理终端的交换机ID。
#[serde(rename = "DbProxyEndpointVswitchId")]
pub db_proxy_endpoint_vswitch_id: Option<String>,
/// 代理终端的VPC ID
#[serde(rename = "DbProxyEndpointVpcId")]
pub db_proxy_endpoint_vpc_id: Option<String>,
/// 代理终端的可用区信息。
#[serde(rename = "DbProxyEndpointZoneId")]
pub db_proxy_endpoint_zone_id: Option<String>,
#[serde(rename = "EndpointConnectItems")]
pub endpoint_connect_items: Option<ConnectItems>,
/// 读权重分配模式,详情请参见[读权重分配](~~96076~~)。取值:
///
/// * **Standard**:按规格权重自动分配。
/// * **Custom**:自定义分配权重。
#[serde(rename = "ReadOnlyInstanceDistributionType")]
pub read_only_instance_distribution_type: Option<String>,
/// 读写分离的延迟阈值,当只读实例延迟时间超过该阈值时,读取流量不发往该实例,单位:秒。
#[serde(rename = "ReadOnlyInstanceMaxDelayTime")]
pub read_only_instance_max_delay_time: Option<String>,
/// 一致性读超时时间,单位:毫秒。默认为**10**毫秒,取值:**0~60000**
#[serde(rename = "CausalConsistReadTimeout")]
pub causal_consist_read_timeout: Option<String>,
/// 读权重分配信息,即传入主实例和只读实例的读请求权重,格式为JSON,包含下述参数:
/// * **DBInstanceId**:实例ID。
/// * **DBInstanceType**:实例类型,取值为**Master**(主实例)或**ReadOnly**(只读实例)。
/// * **NodeID**:集群系列中主实例主节点和备节点的节点ID。
/// * **NodeType**:集群系列中的节点类型,取值为**Primary**(主实例-主节点)或**Secondary**(主实例-备节点)。
/// * **Weight**:读请求权重,以**100**递增,最大值为**10000**。
#[serde(rename = "ReadOnlyInstanceWeight")]
pub read_only_instance_weight: Option<String>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
/// 最小保留实例数。
#[serde(rename = "DBProxyEndpointMinSlaveCount")]
pub db_proxy_endpoint_min_slave_count: Option<String>,
}
///
///
/// Return value of [Connection::describe_db_proxy_performance()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DescribeDBProxyPerformanceResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 查询结束时间。
#[serde(rename = "EndTime")]
pub end_time: Option<String>,
/// 查询开始时间。
#[serde(rename = "StartTime")]
pub start_time: Option<String>,
/// 监控实例的ID。
#[serde(rename = "DBInstanceId")]
pub db_instance_id: Option<String>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
/// 内部参数,无需关注。
#[serde(rename = "DBProxyEngineType")]
pub db_proxy_engine_type: Option<String>,
#[serde(rename = "PerformanceKeys")]
pub performance_keys: Option<ProxyPerformanceResponsePerformanceKeys>,
}
///
///
/// Return value of [Connection::get_db_proxy_instance_ssl()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct GetDbProxyInstanceSslResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
#[serde(rename = "DbProxyCertListItems")]
pub db_proxy_cert_list_items: Option<ListItems>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
///
///
/// Return value of [Connection::modify_read_write_splitting_connection()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct ModifyReadWriteSplittingConnectionResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
///
///
/// Return value of [Connection::describe_db_instance_proxy_configuration()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DescribeDBInstanceProxyConfigurationResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 是否开启防暴力破解:
/// * **Enable**:开启
/// * **Disable**:关闭
///
///
/// 返回值格式为JSON字符串,如:
///
/// {"status":"Disable", "check_interval_seconds": 60,
/// "max_failed_login_attempts": 60, "blocking_seconds": 600}
/// 参数说明及取值范围:
/// * 对于每一个客户端,check_interval_seconds秒内最多允许max_failed_login_attempts次错误密码登录,否则将对该客户端IP禁止登录blocking_seconds秒钟。
/// * 取值范围:
/// * check_interval_seconds:**30-600**,单位为秒。
/// * max_failed_login_attempts:**10-5000**,单位为次。
/// * blocking_seconds:**30-3600**,单位为秒。
#[serde(rename = "AttacksProtectionConfiguration")]
pub attacks_protection_configuration: Option<String>,
/// 是否开启短连接优化:
/// * **Enable**:开启
/// * **Disable**:关闭
///
/// 返回值格式为JSON字符串,如:
///
/// {"status":"Disable"}。
#[serde(rename = "PersistentConnectionsConfiguration")]
pub persistent_connections_configuration: Option<String>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
/// 是否开启透明切换:
/// * **Enable**:开启
/// * **Disable**:关闭
///
/// 返回值格式为JSON字符串,如:
///
/// {"status":"Enable"}。
#[serde(rename = "TransparentSwitchConfiguration")]
pub transparent_switch_configuration: Option<String>,
}
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS SQL Server
///
/// ### 功能描述
/// 对拥有只读实例的SQL Server主实例,可以创建统一只读地址。创建该地址后,不影响原主实例、只读实例的已有访问地址,以及正常的内外网申请。
///
/// ### 前体条件
/// 调用该接口时,实例必须满足以下条件,否则将操作失败:
/// - MySQL实例使用的是共享代理。
/// - 实例状态为运行中。
/// - 实例拥有只读实例。
/// - 实例没有正在执行的DTS迁移任务。
/// - 实例为如下版本:
/// - SQL Server集群版。
/// - MySQL 5.7高可用版(本地SSD盘)
/// - MySQL 5.6
///
/// Return value of [Connection::allocate_read_write_splitting_connection()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct AllocateReadWriteSplittingConnectionResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
///
///
/// Return value of [Connection::release_read_write_splitting_connection()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct ReleaseReadWriteSplittingConnectionResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
///
///
/// Return value of [Connection::calculate_db_instance_weight()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct CalculateDBInstanceWeightResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
#[serde(rename = "Items")]
pub items: Option<WeightResponseItems>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
/// ### 适用引擎
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
///
/// Return value of [Connection::attach_whitelist_template_to_instance()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct AttachWhitelistTemplateToInstanceResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 返回数据列表。
#[serde(rename = "Data")]
pub data: Option<AttachWhitelistTemplateToInstanceResponseData>,
/// Http状态码。各取值含义如下:
/// - **200**:正常
/// - **400**:客户端错误
/// - **500**:服务端错误
#[serde(rename = "HttpStatusCode")]
pub http_status_code: Option<i32>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
/// 表示请求是否成功,各取值含义如下:
///
/// - **true**:成功
/// - **false**:失败
#[serde(rename = "Success")]
pub success: Option<bool>,
}
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
///
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
///
/// [服务关联角色](~~342840~~)
///
/// Return value of [Connection::create_service_linked_role()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct CreateServiceLinkedRoleResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
/// ### 适用引擎
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
///
/// Return value of [Connection::detach_whitelist_template_to_instance()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DetachWhitelistTemplateToInstanceResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 返回数据列表。
#[serde(rename = "Data")]
pub data: Option<DetachWhitelistTemplateToInstanceResponseData>,
/// Http状态码。各取值含义如下:
/// - **200**:正常
/// - **400**:客户端错误
/// - **500**:服务端错误
#[serde(rename = "HttpStatusCode")]
pub http_status_code: Option<i32>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
/// 表示请求是否成功,各取值含义如下:
///
/// - **true**:成功
/// - **false**:失败
#[serde(rename = "Success")]
pub success: Option<bool>,
}
/// ### 适用引擎
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
///
/// Return value of [Connection::modify_whitelist_template()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct ModifyWhitelistTemplateResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 返回数据列表。
#[serde(rename = "Data")]
pub data: Option<ModifyWhitelistTemplateResponseData>,
/// Http状态码。各取值含义如下:
/// - **200**:正常
/// - **400**:客户端错误
/// - **500**:服务端错误
#[serde(rename = "HttpStatusCode")]
pub http_status_code: Option<i32>,
/// 请求ID,每次请求都是唯一值,便于后续排查问题。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
/// 表示请求是否成功,各取值含义如下:
///
/// - **true**:成功
/// - **false**:失败
#[serde(rename = "Success")]
pub success: Option<bool>,
}
///
///
/// Return value of [Connection::describe_security_group_configuration()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DescribeSecurityGroupConfigurationResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 实例ID。
#[serde(rename = "DBInstanceName")]
pub db_instance_name: Option<String>,
#[serde(rename = "Items")]
pub items: Option<DescribeSecurityGroupConfigurationResponseItems>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
///
///
/// Return value of [Connection::modify_security_group_configuration()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct ModifySecurityGroupConfigurationResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 实例ID。
#[serde(rename = "DBInstanceName")]
pub db_instance_name: Option<String>,
#[serde(rename = "Items")]
pub items: Option<ModifySecurityGroupConfigurationResponseItems>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
/// ### 适用引擎
/// RDS SQL Server
///
/// ### 相关功能文档
/// [RDS SQL Server设置安全组规则](~~2392322~~)
///
/// Return value of [Connection::create_db_instance_security_group_rule()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct CreateDBInstanceSecurityGroupRuleResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
/// ### 适用引擎
/// RDS SQL Server
///
/// ### 相关功能文档
/// [RDS SQL Server设置安全组规则](~~2392322~~)
///
/// Return value of [Connection::describe_db_instance_security_group_rule()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DescribeDBInstanceSecurityGroupRuleResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 安全组规则详情。
#[serde(rename = "Data")]
pub data: Option<String>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
/// ### 适用引擎
/// RDS SQL Server
///
/// ### 相关功能文档
/// [RDS SQL Server设置安全组规则](~~2392322~~)
///
/// Return value of [Connection::modify_db_instance_security_group_rule()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct ModifyDBInstanceSecurityGroupRuleResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
/// ### 适用引擎
/// RDS SQL Server
///
/// ### 相关功能文档
/// [RDS SQL Server设置安全组规则](~~2392322~~)
///
/// Return value of [Connection::delete_db_instance_security_group_rule()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DeleteDBInstanceSecurityGroupRuleResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
///
///
/// Return value of [Connection::modify_security_ips()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct ModifySecurityIpsResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
/// 任务ID。
#[serde(rename = "TaskId")]
pub task_id: Option<String>,
}
///
///
/// Return value of [Connection::modify_db_instance_ssl()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct ModifyDBInstanceSSLResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
///
///
/// Return value of [Connection::modify_db_instance_tde()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct ModifyDBInstanceTDEResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
///
///
/// Return value of [Connection::modify_dtc_security_ip_hosts_for_sql_server()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct ModifyDTCSecurityIpHostsForSQLServerResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// RDS实例ID。
#[serde(rename = "DBInstanceId")]
pub db_instance_id: Option<String>,
/// 设置白名单的结果,取值:
/// * **Success**:设置成功
/// * **Fail**:设置失败
#[serde(rename = "DTCSetResult")]
pub dtc_set_result: Option<String>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
/// 设置任务ID。
#[serde(rename = "TaskId")]
pub task_id: Option<String>,
}
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
/// - RDS MariaDB
///
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
///
/// - [RDS MySQL开启和关闭实例释放保护](~~414512~~)
/// - [RDS PostgreSQL开启和关闭实例释放保护](~~471512~~)
/// - [RDS SQL Server开启和关闭实例释放保护](~~416209~~)
/// - [RDS MariaDB开启和关闭实例释放保护](~~414512~~)
///
/// Return value of [Connection::modify_db_instance_deletion_protection()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct ModifyDBInstanceDeletionProtectionResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
/// ### 适用引擎
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
///
/// Return value of [Connection::describe_whitelist_template_linked_instance()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DescribeWhitelistTemplateLinkedInstanceResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 返回数据列表。
#[serde(rename = "Data")]
pub data: Option<LinkedInstanceResponseData>,
/// Http状态码。各取值含义如下:
/// - **200**:正常
/// - **400**:客户端错误
/// - **500**:服务端错误
#[serde(rename = "HttpStatusCode")]
pub http_status_code: Option<i32>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
/// 表示请求是否成功,各取值含义如下:
///
/// - **true**:成功
/// - **false**:失败
#[serde(rename = "Success")]
pub success: Option<bool>,
}
/// ### 适用引擎
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
///
/// Return value of [Connection::describe_instance_linked_whitelist_template()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DescribeInstanceLinkedWhitelistTemplateResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 返回数据列表。
#[serde(rename = "Data")]
pub data: Option<LinkedWhitelistTemplateResponseData>,
/// Http状态码。各取值含义如下:
/// - **200**:正常
/// - **400**:客户端错误
/// - **500**:服务端错误
#[serde(rename = "HttpStatusCode")]
pub http_status_code: Option<i32>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
/// 表示请求是否成功,各取值含义如下:
///
/// - **true**:成功
/// - **false**:失败
#[serde(rename = "Success")]
pub success: Option<bool>,
}
/// ### 适用引擎
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
///
/// Return value of [Connection::describe_whitelist_template()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DescribeWhitelistTemplateResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 返回数据列表。
#[serde(rename = "Data")]
pub data: Option<DescribeWhitelistTemplateResponseData>,
/// Http状态码。各取值含义如下:
/// - **200**:正常
/// - **400**:客户端错误
/// - **500**:服务端错误
#[serde(rename = "HttpStatusCode")]
pub http_status_code: Option<i32>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
/// 表示请求是否成功,各取值含义如下:
///
/// - **true**:成功
/// - **false**:失败
#[serde(rename = "Success")]
pub success: Option<bool>,
}
/// ### 适用引擎
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
///
/// Return value of [Connection::describe_all_whitelist_template()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DescribeAllWhitelistTemplateResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 返回数据列表。
#[serde(rename = "Data")]
pub data: Option<AllWhitelistTemplateResponseData>,
/// Http状态码。各取值含义如下:
/// - **200**:正常
/// - **400**:客户端错误
/// - **500**:服务端错误
#[serde(rename = "HttpStatusCode")]
pub http_status_code: Option<i32>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
/// 表示请求是否成功,各取值含义如下:
///
/// - **true**:成功
/// - **false**:失败
#[serde(rename = "Success")]
pub success: Option<bool>,
}
///
///
/// Return value of [Connection::describe_db_instance_ip_array_list()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DescribeDBInstanceIPArrayListResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
#[serde(rename = "Items")]
pub items: Option<ArrayListResponseItems>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
///
///
/// Return value of [Connection::describe_db_instance_ssl()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DescribeDBInstanceSSLResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// PostgreSQL云盘版实例的认证方法,返回值:
/// - **cert**
/// - **prefer**
/// - **verify-ca**
/// - **verify-full**(RDS PostgreSQL 12以上支持)
#[serde(rename = "ACL")]
pub acl: Option<String>,
/// PostgreSQL云盘版实例的服务器证书类型,返回值:
/// - **aliyun**:使用云证书
/// - **custom**:使用自定义证书
#[serde(rename = "CAType")]
pub ca_type: Option<String>,
/// PostgreSQL云盘版实例的客户端证书授权机构公钥。
#[serde(rename = "ClientCACert")]
pub client_ca_cert: Option<String>,
/// PostgreSQL云盘版实例的客户端证书授权机构公钥有效期。格式:yyyy-MM-ddTHH:mm:ssZ(UTC时间)。
///
/// 暂不支持该参数,无需关注。
#[serde(rename = "ClientCACertExpireTime")]
pub client_ca_cert_expire_time: Option<String>,
/// PostgreSQL云盘版实例的客户端吊销证书文件。
#[serde(rename = "ClientCertRevocationList")]
pub client_cert_revocation_list: Option<String>,
/// 受SSL保护的连接地址。
#[serde(rename = "ConnectionString")]
pub connection_string: Option<String>,
/// SQL Server实例的[强制SSL加密功能](~~95715~~)是否已开启,返回值:
///
/// - **1**:开启。
/// - **0**:未开启。
#[serde(rename = "ForceEncryption")]
pub force_encryption: Option<String>,
/// PostgreSQL云盘版实例当前SSL链路配置状态,返回值:
///
/// - **success**:成功
/// - **setting**:设置中
/// - **failed**:失败
#[serde(rename = "LastModifyStatus")]
pub last_modify_status: Option<String>,
/// PostgreSQL云盘版实例当前SSL链路配置状态对应的原因。
#[serde(rename = "ModifyStatusReason")]
pub modify_status_reason: Option<String>,
/// PostgreSQL云盘版实例的replication权限认证方法,返回值:
/// - **cert**
/// - **prefer**
/// - **verify-ca**
/// - **verify-full**(RDS PostgreSQL 12以上支持)
#[serde(rename = "ReplicationACL")]
pub replication_acl: Option<String>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
/// 是否需要更新SSL证书,返回值:
///
/// > SSL证书有效期为1年,证书到期后不更新,会导致使用加密连接的客户端程序无法正常连接实例。
/// <details>
/// <summary>MySQL、SQL Server</summary>
///
/// - **No**:无需更新
/// - **Yes**:需更新
/// </details>
///
/// <details>
/// <summary>PostgreSQL</summary>
///
/// - **0**:无需更新
/// - **1**:需更新
///
/// </details>
#[serde(rename = "RequireUpdate")]
pub require_update: Option<String>,
/// PostgreSQL云盘版实例需要更新的服务器证书列表。
#[serde(rename = "RequireUpdateItem")]
pub require_update_item: Option<String>,
/// PostgreSQL云盘版实例需要更新证书的原因。
#[serde(rename = "RequireUpdateReason")]
pub require_update_reason: Option<String>,
/// PostgreSQL云盘版实例的服务器证书创建时间,当CAType配置为aliyun时有效。
#[serde(rename = "SSLCreateTime")]
pub ssl_create_time: Option<String>,
/// SSL的加密状态,返回值:
/// <details>
/// <summary>MySQL、SQL Server</summary>
///
/// - **Yes**:已开启
/// - **No**:未开启
/// </details>
///
/// <details>
/// <summary>PostgreSQL</summary>
///
/// - **on**:已开启
/// - **off**:未开启
///
/// </details>
#[serde(rename = "SSLEnabled")]
pub ssl_enabled: Option<String>,
/// SSL证书有效期。格式:yyyy-MM-ddTHH:mm:ssZ(UTC时间)。
#[serde(rename = "SSLExpireTime")]
pub ssl_expire_time: Option<String>,
/// PostgreSQL云盘版实例签发服务器证书的CA证书URL。
#[serde(rename = "ServerCAUrl")]
pub server_ca_url: Option<String>,
/// PostgreSQL云盘版实例的服务器证书内容。
#[serde(rename = "ServerCert")]
pub server_cert: Option<String>,
/// PostgreSQL云盘版实例的服务器证书私钥。
#[serde(rename = "ServerKey")]
pub server_key: Option<String>,
/// SQL Server实例已指定的[最低LTS版本号](~~95715~~),当前支持1.0、1.1、1.2。
#[serde(rename = "TlsVersion")]
pub tls_version: Option<String>,
}
///
///
/// Return value of [Connection::describe_db_instance_tde()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DescribeDBInstanceTDEResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
#[serde(rename = "Databases")]
pub databases: Option<EResponseDatabases>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
/// 实例级别的TDE加密的密钥方式,取值:
/// - **Aliyun_Generate_Key**
/// - **Customer_Provided_Key**
/// - **Unknown**
#[serde(rename = "TDEMode")]
pub tde_mode: Option<String>,
/// 实例级别的TDE状态,取值:
/// - **Enabled**
/// - **Disabled**
#[serde(rename = "TDEStatus")]
pub tde_status: Option<String>,
/// TDE加密使用的密钥ID。
#[serde(rename = "EncryptionKey")]
pub encryption_key: Option<String>,
}
///
///
/// Return value of [Connection::describe_db_instance_encryption_key()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DescribeDBInstanceEncryptionKeyResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 密钥的创建者。
#[serde(rename = "Creator")]
pub creator: Option<String>,
/// 预计删除密钥时间。格式:yyyy-MM-ddTHH:mm:ssZ(UTC时间)。
#[serde(rename = "DeleteDate")]
pub delete_date: Option<String>,
/// 密钥描述。
#[serde(rename = "Description")]
pub description: Option<String>,
/// 密钥ID。
#[serde(rename = "EncryptionKey")]
pub encryption_key: Option<String>,
/// 密钥列表。
#[serde(rename = "EncryptionKeyList")]
#[serde(default)]
pub encryption_key_list: Vec<KeyList>,
/// 密钥的状态。返回值:
/// - **Enabled**:启用。
/// - **Disabled**:未启用。
#[serde(rename = "EncryptionKeyStatus")]
pub encryption_key_status: Option<String>,
/// 密钥用途。
#[serde(rename = "KeyUsage")]
pub key_usage: Option<String>,
/// 密钥过期时间。格式:yyyy-MM-ddTHH:mm:ssZ(UTC时间)。
#[serde(rename = "MaterialExpireTime")]
pub material_expire_time: Option<String>,
/// 密钥的来源。
#[serde(rename = "Origin")]
pub origin: Option<String>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
///
///
/// Return value of [Connection::describe_db_instance_ip_hostname()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DescribeDBInstanceIpHostnameResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 实例ID。
#[serde(rename = "DBInstanceId")]
pub db_instance_id: Option<String>,
/// RDS SQL Server实例底层所在ECS实例的内网IP和ECS主机名,包含主备实例。格式为:`ip1,hostname1;ip2,hostname2`。
#[serde(rename = "IpHostnameInfos")]
pub ip_hostname_infos: Option<String>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
///
///
/// Return value of [Connection::describe_dtc_security_ip_hosts_for_sql_server()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DescribeDTCSecurityIpHostsForSQLServerResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 实例ID。
#[serde(rename = "DBInstanceId")]
pub db_instance_id: Option<String>,
/// 分布式事务白名单条目数。
#[serde(rename = "IpHostPairNum")]
pub ip_host_pair_num: Option<String>,
#[serde(rename = "Items")]
pub items: Option<ServerResponseItems>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
///
///
/// Return value of [Connection::migrate_security_ip_mode()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct MigrateSecurityIPModeResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 实例ID。
#[serde(rename = "DBInstanceId")]
pub db_instance_id: Option<String>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
/// 切换后的白名单模式,即高安全白名单模式。
#[serde(rename = "SecurityIPMode")]
pub security_ip_mode: Option<String>,
}
///
///
/// Return value of [Connection::describe_sql_log_report_list()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DescribeSQLLogReportListResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
#[serde(rename = "Items")]
pub items: Option<ReportListResponseItems>,
/// 页码。
#[serde(rename = "PageNumber")]
pub page_number: Option<i32>,
/// 本页SQL日志运行报告个数。
#[serde(rename = "PageRecordCount")]
pub page_record_count: Option<i32>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
/// 总记录数。
#[serde(rename = "TotalRecordCount")]
pub total_record_count: Option<i32>,
}
///
///
/// Return value of [Connection::purge_db_instance_log()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct PurgeDBInstanceLogResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
///
///
/// Return value of [Connection::describe_sql_log_files()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DescribeSQLLogFilesResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
#[serde(rename = "Items")]
pub items: Option<LogFilesResponseItems>,
/// 页码。
#[serde(rename = "PageNumber")]
pub page_number: Option<i32>,
/// 本页记录数。
#[serde(rename = "PageRecordCount")]
pub page_record_count: Option<i32>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
/// 总记录数。
#[serde(rename = "TotalRecordCount")]
pub total_record_count: Option<i32>,
}
///
///
/// Return value of [Connection::describe_slow_logs()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DescribeSlowLogsResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 实例ID。
#[serde(rename = "DBInstanceId")]
pub db_instance_id: Option<String>,
/// 查询结束日期。
#[serde(rename = "EndTime")]
pub end_time: Option<String>,
/// 数据库类型。
#[serde(rename = "Engine")]
pub engine: Option<String>,
#[serde(rename = "Items")]
pub items: Option<SlowLogsResponseItems>,
/// 页码。
#[serde(rename = "PageNumber")]
pub page_number: Option<i32>,
/// 本页SQL语句个数。
#[serde(rename = "PageRecordCount")]
pub page_record_count: Option<i32>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
/// 查询开始日期。
#[serde(rename = "StartTime")]
pub start_time: Option<String>,
/// 总记录数。
#[serde(rename = "TotalRecordCount")]
pub total_record_count: Option<i32>,
}
///
///
/// Return value of [Connection::describe_slow_log_records()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DescribeSlowLogRecordsResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 实例ID。
#[serde(rename = "DBInstanceId")]
pub db_instance_id: Option<String>,
/// 数据库类型。
#[serde(rename = "Engine")]
pub engine: Option<String>,
#[serde(rename = "Items")]
pub items: Option<SlowLogRecordsResponseItems>,
/// 页码。
#[serde(rename = "PageNumber")]
pub page_number: Option<i32>,
/// 本页SQL语句个数。
#[serde(rename = "PageRecordCount")]
pub page_record_count: Option<i32>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
/// 总记录数。
#[serde(rename = "TotalRecordCount")]
pub total_record_count: Option<i32>,
}
///
///
/// Return value of [Connection::describe_error_logs()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DescribeErrorLogsResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
#[serde(rename = "Items")]
pub items: Option<ErrorLogsResponseItems>,
/// 页码。
#[serde(rename = "PageNumber")]
pub page_number: Option<i32>,
/// 本页错误日志个数。
#[serde(rename = "PageRecordCount")]
pub page_record_count: Option<i32>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
/// 总记录数。
#[serde(rename = "TotalRecordCount")]
pub total_record_count: Option<i32>,
}
///
///
/// Return value of [Connection::modify_sql_collector_policy()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct ModifySQLCollectorPolicyResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
/// 该接口已停止维护:接口仍可以正常调用,但阿里云不再维护该接口。建议您使用[ModifySqlLogConfig](~~2778835~~)接口。
///
/// Return value of [Connection::modify_sql_collector_retention()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct ModifySQLCollectorRetentionResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
///
///
/// Return value of [Connection::describe_sql_collector_policy()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DescribeSQLCollectorPolicyResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
/// SQL洞察(SQL审计)开启情况,取值:
/// * **Enable**:开启
/// * **Disabled**:关闭
#[serde(rename = "SQLCollectorStatus")]
pub sql_collector_status: Option<String>,
/// 预留参数。
#[serde(rename = "StoragePeriod")]
pub storage_period: Option<i32>,
}
///
///
/// Return value of [Connection::describe_sql_log_records()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DescribeSQLLogRecordsResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
#[serde(rename = "Items")]
pub items: Option<LLogRecordsResponseItems>,
/// 页码。
#[serde(rename = "PageNumber")]
pub page_number: Option<i32>,
/// 本页SQL审计日志个数。
#[serde(rename = "PageRecordCount")]
pub page_record_count: Option<i32>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
/// 总记录数。
#[serde(rename = "TotalRecordCount")]
pub total_record_count: Option<i64>,
}
///
///
/// Return value of [Connection::describe_sql_collector_retention()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DescribeSQLCollectorRetentionResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// SQL洞察日志保存时长,取值:
/// * **30**:30天
/// * **180**:180天
/// * **365**:1年
/// * **1095**:3年
/// * **1825**:5年
///
/// > RDS PostgreSQL和RDS SQL Server的SQL洞察日志保存时长固定为30天。
#[serde(rename = "ConfigValue")]
pub config_value: Option<String>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
/// ### 适用引擎
/// RDS SQL Server
///
///
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。
///
/// [手动备份SQL Server数据](~~95717~~)
///
/// Return value of [Connection::modify_backup_set_expire_time()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct ModifyBackupSetExpireTimeResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
/// 请求是否成功,返回值:
///
/// - **true**:成功
/// - **false**:失败
#[serde(rename = "Success")]
pub success: Option<bool>,
/// 返回字段列表。
#[serde(rename = "Data")]
pub data: Option<String>,
}
///
///
/// Return value of [Connection::create_backup()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct CreateBackupResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 备份任务ID。
#[serde(rename = "BackupJobId")]
pub backup_job_id: Option<String>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
///
///
/// Return value of [Connection::delete_backup()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DeleteBackupResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
///
///
/// Return value of [Connection::delete_backup_file()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DeleteBackupFileResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
#[serde(rename = "DeletedBaksetIds")]
pub deleted_bakset_ids: Option<BaksetIds>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
///
///
/// Return value of [Connection::modify_backup_policy()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct ModifyBackupPolicyResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 备份压缩方式,取值:
/// * **0**:不压缩。
/// * **1**:zlib压缩。
/// * **2**:并行zlib压缩。
/// * **4**:quicklz压缩,开启了库表恢复。
/// * **8**:MySQL8.0 quicklz压缩但是还未支持库表恢复。
#[serde(rename = "CompressType")]
pub compress_type: Option<String>,
/// 实例ID。
#[serde(rename = "DBInstanceID")]
pub db_instance_id: Option<String>,
/// 是否开启日志备份。取值:
/// * **1**:开启
/// * **0**:关闭
///
///
/// > SQL Server实例日志备份默认开启,无法关闭。
#[serde(rename = "EnableBackupLog")]
pub enable_backup_log: Option<String>,
/// **MySQL**实例使用空间大于80%,或者剩余空间小于5 GB时,是否无条件清理Binlog。
#[serde(rename = "HighSpaceUsageProtection")]
pub high_space_usage_protection: Option<String>,
/// **MySQL**实例日志备份本地保留小时数。
#[serde(rename = "LocalLogRetentionHours")]
pub local_log_retention_hours: Option<i32>,
/// **MySQL**实例本地日志最大循环空间使用率。
#[serde(rename = "LocalLogRetentionSpace")]
pub local_log_retention_space: Option<String>,
/// **MySQL**实例本地Binlog保留个数。
#[serde(rename = "LogBackupLocalRetentionNumber")]
pub log_backup_local_retention_number: Option<i32>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
///
///
/// Return value of [Connection::describe_backups()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DescribeBackupsResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
#[serde(rename = "Items")]
pub items: Option<DescribeBackupsResponseItems>,
/// 页码。
#[serde(rename = "PageNumber")]
pub page_number: Option<String>,
/// 本页备份集个数。
#[serde(rename = "PageRecordCount")]
pub page_record_count: Option<String>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
/// 实例的快照链大小,单位:字节(Byte)。
#[serde(rename = "TotalEcsSnapshotSize")]
pub total_ecs_snapshot_size: Option<i64>,
/// 总记录数。
#[serde(rename = "TotalRecordCount")]
pub total_record_count: Option<String>,
}
///
///
/// Return value of [Connection::describe_detached_backups()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DescribeDetachedBackupsResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
#[serde(rename = "Items")]
pub items: Option<DetachedBackupsResponseItems>,
/// 页码。
#[serde(rename = "PageNumber")]
pub page_number: Option<String>,
/// 本页备份集个数。
#[serde(rename = "PageRecordCount")]
pub page_record_count: Option<String>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
///
/// 总记录数。
#[serde(rename = "TotalRecordCount")]
pub total_record_count: Option<String>,
}
///
///
/// Return value of [Connection::describe_backup_policy()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DescribeBackupPolicyResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// **MySQL**实例归档备份的保留个数。
#[serde(rename = "ArchiveBackupKeepCount")]
pub archive_backup_keep_count: Option<String>,
/// **MySQL**实例归档备份的保留周期。
#[serde(rename = "ArchiveBackupKeepPolicy")]
pub archive_backup_keep_policy: Option<String>,
/// **MySQL**实例归档备份的保留天数。
#[serde(rename = "ArchiveBackupRetentionPeriod")]
pub archive_backup_retention_period: Option<String>,
/// 备份间隔,单位:分钟。
/// * 对于MySQL实例:指[快照备份频率](~~98818~~)(非快照备份周期)。
/// * 对于SQL Server实例:指日志备份频率。
#[serde(rename = "BackupInterval")]
pub backup_interval: Option<String>,
/// 是否已开启日志备份。返回值:
/// * **Enable**:是
/// * **Disabled**:否
///
/// **对于SQL Server实例:**
///
/// - 仅实例日志备份频率为**每5 分钟**时才**返回Enable**;
/// - 日志备份频率为**每30分钟**或**与数据备份一致**时,本参数**返回Disabled**。**请以BackupInterval返回值为准**。
#[serde(rename = "BackupLog")]
pub backup_log: Option<String>,
/// **SQL Server云盘版**实例的备份方式。返回值:
/// * **Physical**:物理备份
/// * **Snapshot**:快照备份
#[serde(rename = "BackupMethod")]
pub backup_method: Option<String>,
/// **SQL Server企业集群版**实例备库备份的设置。返回值:
/// - **1**:优先备库
/// - **2**:强制主库
///
/// > 仅当SupportModifyBackupPriority为True时返回该参数。
#[serde(rename = "BackupPriority")]
pub backup_priority: Option<i32>,
/// 数据备份保留天数。
#[serde(rename = "BackupRetentionPeriod")]
pub backup_retention_period: Option<i32>,
/// **MySQL**和**PostgreSQL**实例是否已开启秒级备份。返回值:
///
/// - **Flash**:开启
/// - **Standard**:关闭
///
/// > 仅在**BackupPolicyMode**参数为**DataBackupPolicy**时生效。
#[serde(rename = "Category")]
pub category: Option<String>,
/// 备份压缩方式。返回值:
/// * **0**:不压缩
/// * **1**:zlib压缩
/// * **2**:并行zlib压缩
/// * **4**:quicklz压缩,开启了库表恢复
/// * **8**:quicklz压缩但还未支持库表恢复
#[serde(rename = "CompressType")]
pub compress_type: Option<String>,
/// 是否开启了日志备份。返回值:
/// * **1**:开启
/// * **0**:关闭
///
/// **对于SQL Server实例:**
/// - 仅实例日志备份频率为**每5 分钟**时才**返回1**。
/// - 日志备份频率为**每30分钟**或**与数据备份一致**时,本参数**返回0**。**请以BackupInterval返回值为准**。
#[serde(rename = "EnableBackupLog")]
pub enable_backup_log: Option<String>,
/// **SQL Server**实例是否已开启增量备份。返回值:
/// * **True**:是
/// * **False**:否
#[serde(rename = "EnableIncrementDataBackup")]
pub enable_increment_data_backup: Option<bool>,
/// **MySQL**实例是否已开启PITR任意时间点恢复(原日志备份的升级版)。返回值:
/// - **True**:是
/// - **False**:否
///
/// > 功能详情,请参见[设置任意时间点恢复策略](~~2666046~~)。
#[serde(rename = "EnablePitrProtection")]
pub enable_pitr_protection: Option<bool>,
/// **MySQL**实例使用空间大于80%,或者剩余空间小于5 GB时,是否强制清理Binlog。返回值:
///
/// * **Disable**:不清理
/// * **Enable**:清理
#[serde(rename = "HighSpaceUsageProtection")]
pub high_space_usage_protection: Option<String>,
/// **MySQL**实例本地日志备份保留小时数。
#[serde(rename = "LocalLogRetentionHours")]
pub local_log_retention_hours: Option<i32>,
/// **MySQL**实例本地日志最大空间使用率。
#[serde(rename = "LocalLogRetentionSpace")]
pub local_log_retention_space: Option<String>,
/// **SQL Server**实例的日志备份频率。返回值:
///
/// * **LogInterval**:每30分钟备份一次;
/// * 默认与数据备份周期**PreferredBackupPeriod**一致。
#[serde(rename = "LogBackupFrequency")]
pub log_backup_frequency: Option<String>,
/// **MySQL**实例本地Binlog保留个数。
#[serde(rename = "LogBackupLocalRetentionNumber")]
pub log_backup_local_retention_number: Option<i32>,
/// 日志备份保留天数。
#[serde(rename = "LogBackupRetentionPeriod")]
pub log_backup_retention_period: Option<i32>,
/// **MySQL**实例的可任意时间点恢复天数。
#[serde(rename = "PitrRetentionPeriod")]
pub pitr_retention_period: Option<i32>,
/// 数据备份周期,多个取值用英文逗号(,)隔开。返回值:
/// * **Monday**:周一
/// * **Tuesday**:周二
/// * **Wednesday**:周三
/// * **Thursday**:周四
/// * **Friday**:周五
/// * **Saturday**:周六
/// * **Sunday**:周日
#[serde(rename = "PreferredBackupPeriod")]
pub preferred_backup_period: Option<String>,
/// 数据备份时间,格式:<i>HH:mm</i>Z-<i>HH:mm</i>Z(UTC时间)。
#[serde(rename = "PreferredBackupTime")]
pub preferred_backup_time: Option<String>,
/// 下次备份时间。格式:<i>yyyy-MM-dd</i>T<i>HH:mm</i>Z(UTC时间)。
#[serde(rename = "PreferredNextBackupTime")]
pub preferred_next_backup_time: Option<String>,
/// **MySQL**已删除实例的归档备份保留策略。返回值:
/// * **None**:不保留
/// * **Lastest**:保留最后一个
/// * **All**:全部保留
#[serde(rename = "ReleasedKeepPolicy")]
pub released_keep_policy: Option<String>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
/// **SQL Server**实例是否支持修改备库备份选项。返回值:
///
/// - **True**:是
/// - **False**:否
#[serde(rename = "SupportModifyBackupPriority")]
pub support_modify_backup_priority: Option<bool>,
/// 备用参数。
#[serde(rename = "SupportReleasedKeep")]
pub support_released_keep: Option<i32>,
/// **SQL Server**实例是否支持快照备份。返回值:
///
/// - **1**:是
/// - **0**:否
#[serde(rename = "SupportVolumeShadowCopy")]
pub support_volume_shadow_copy: Option<i32>,
/// **SQL Server**实例是否支持[5分钟日志备份功能](~~95717~~)。返回值:
/// - **0**:不支持
/// - **1**:支持
#[serde(rename = "SupportsHighFrequencyBackup")]
pub supports_high_frequency_backup: Option<i64>,
}
///
///
/// Return value of [Connection::describe_backup_tasks()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DescribeBackupTasksResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
#[serde(rename = "Items")]
pub items: Option<BackupTasksResponseItems>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
///
///
/// Return value of [Connection::describe_binlog_files()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DescribeBinlogFilesResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
#[serde(rename = "Items")]
pub items: Option<BinlogFilesResponseItems>,
/// 页码。
#[serde(rename = "PageNumber")]
pub page_number: Option<i32>,
/// 当前页日志文件个数。
#[serde(rename = "PageRecordCount")]
pub page_record_count: Option<i32>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
/// 日志文件总大小。
#[serde(rename = "TotalFileSize")]
pub total_file_size: Option<i64>,
/// 日志文件总数。
#[serde(rename = "TotalRecordCount")]
pub total_record_count: Option<i32>,
}
///
///
/// Return value of [Connection::describe_log_backup_files()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DescribeLogBackupFilesResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
#[serde(rename = "Items")]
pub items: Option<DescribeLogBackupFilesResponseItems>,
/// 页码。
#[serde(rename = "PageNumber")]
pub page_number: Option<i32>,
/// 本页日志文件个数。
#[serde(rename = "PageRecordCount")]
pub page_record_count: Option<i32>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
/// 所有日志文件大小之和,单位:Byte。
#[serde(rename = "TotalFileSize")]
pub total_file_size: Option<i64>,
/// 日志文件总数。
#[serde(rename = "TotalRecordCount")]
pub total_record_count: Option<i32>,
}
///
///
/// Return value of [Connection::describe_backup_database()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DescribeBackupDatabaseResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 数据库名,格式为"db1,db2"。
#[serde(rename = "DatabaseNames")]
pub database_names: Option<String>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
///
///
/// Return value of [Connection::create_temp_db_instance()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct CreateTempDBInstanceResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
/// 临时实例ID。
#[serde(rename = "TempDBInstanceId")]
pub temp_db_instance_id: Option<String>,
}
///
///
/// Return value of [Connection::describe_local_available_recovery_time()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DescribeLocalAvailableRecoveryTimeResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 实例ID。
#[serde(rename = "DBInstanceId")]
pub db_instance_id: Option<String>,
/// 备份可恢复的起始时间。
#[serde(rename = "RecoveryBeginTime")]
pub recovery_begin_time: Option<String>,
/// 备份可恢复的终止时间。
#[serde(rename = "RecoveryEndTime")]
pub recovery_end_time: Option<String>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
///
///
/// Return value of [Connection::describe_meta_list()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DescribeMetaListResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 实例名称。
#[serde(rename = "DBInstanceName")]
pub db_instance_name: Option<String>,
#[serde(rename = "Items")]
pub items: Option<DescribeMetaListResponseItems>,
/// 页码。
#[serde(rename = "PageNumber")]
pub page_number: Option<i32>,
/// 本页记录数。
#[serde(rename = "PageRecordCount")]
pub page_record_count: Option<i32>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
/// 总页数。
#[serde(rename = "TotalPageCount")]
pub total_page_count: Option<i32>,
/// 总记录数。
#[serde(rename = "TotalRecordCount")]
pub total_record_count: Option<i32>,
}
///
///
/// Return value of [Connection::recovery_db_instance()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct RecoveryDBInstanceResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 实例ID。
#[serde(rename = "DBInstanceId")]
pub db_instance_id: Option<String>,
/// 订单ID。
#[serde(rename = "OrderId")]
pub order_id: Option<String>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
///
///
/// Return value of [Connection::clone_db_instance()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct CloneDBInstanceResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 实例ID。
#[serde(rename = "DBInstanceId")]
pub db_instance_id: Option<String>,
/// 订单ID。
#[serde(rename = "OrderId")]
pub order_id: Option<String>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
///
///
/// Return value of [Connection::restore_table()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct RestoreTableResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
///
///
/// Return value of [Connection::create_ddr_instance()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct CreateDdrInstanceResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 新实例连接地址。
/// >参数**DBInstanceNetType**决定该地址为内网或外网。
#[serde(rename = "ConnectionString")]
pub connection_string: Option<String>,
/// 新实例ID。
#[serde(rename = "DBInstanceId")]
pub db_instance_id: Option<String>,
/// 订单ID。
#[serde(rename = "OrderId")]
pub order_id: Option<String>,
/// 新实例连接端口。
/// >参数**DBInstanceNetType**决定该端口为内网端口或外网端口。
#[serde(rename = "Port")]
pub port: Option<String>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
///
///
/// Return value of [Connection::modify_instance_cross_backup_policy()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct ModifyInstanceCrossBackupPolicyResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 跨地域备份总开关,取值:
/// * **Disable**:关闭
/// * **Enable**:开启
#[serde(rename = "BackupEnabled")]
pub backup_enabled: Option<String>,
/// 跨地域备份的目的地域ID。
#[serde(rename = "CrossBackupRegion")]
pub cross_backup_region: Option<String>,
/// 跨地域备份保存类型。默认值:**1**,表示每个备份都保存。
#[serde(rename = "CrossBackupType")]
pub cross_backup_type: Option<String>,
/// 实例ID。
#[serde(rename = "DBInstanceId")]
pub db_instance_id: Option<String>,
/// 跨地域日志备份开关,取值:
/// * **Disable**:关闭
/// * **Enable**:开启
#[serde(rename = "LogBackupEnabled")]
pub log_backup_enabled: Option<String>,
/// 源实例地域ID,可以通过接口[DescribeRegions](~~26243~~)查看地域ID。
#[serde(rename = "RegionId")]
pub region_id: Option<String>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
/// 跨地域备份保留方式。默认值:**1**,表示按时长保留。
#[serde(rename = "RetentType")]
pub retent_type: Option<i32>,
/// 跨地域备份保留天数,取值:**7~1825**。
#[serde(rename = "Retention")]
pub retention: Option<i32>,
}
///
///
/// Return value of [Connection::describe_instance_cross_backup_policy()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DescribeInstanceCrossBackupPolicyResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 跨地域备份总开关,取值:
/// * **Disable**:关闭
/// * **Enable**:开启
#[serde(rename = "BackupEnabled")]
pub backup_enabled: Option<String>,
/// 跨地域备份开启时间。格式:<i>yyyy-MM-dd</i>T<i>HH:mm:ss</i>Z(UTC时间)。
#[serde(rename = "BackupEnabledTime")]
pub backup_enabled_time: Option<String>,
/// 跨地域备份的目的地域ID。
#[serde(rename = "CrossBackupRegion")]
pub cross_backup_region: Option<String>,
/// 跨地域备份保存类型。默认值:**1**,表示每个备份都保存。
#[serde(rename = "CrossBackupType")]
pub cross_backup_type: Option<String>,
/// 实例名称,长度为2~256个字符。以中文、英文字母开头,可以包含数字、中文、英文、下划线(_)、短横线(-)。
/// >不能以 http:// 和 https:// 开头。
#[serde(rename = "DBInstanceDescription")]
pub db_instance_description: Option<String>,
/// 实例ID。
#[serde(rename = "DBInstanceId")]
pub db_instance_id: Option<String>,
/// 实例状态。详情请参见[实例状态表](~~26315~~)。
#[serde(rename = "DBInstanceStatus")]
pub db_instance_status: Option<String>,
/// 数据库类型。
#[serde(rename = "Engine")]
pub engine: Option<String>,
/// 数据库版本。
#[serde(rename = "EngineVersion")]
pub engine_version: Option<String>,
/// 实例锁定状态,取值:
/// * **Unlock**:正常,没有锁定。
/// * **ManualLock**:手动触发锁定。
/// * **LockByExpiration**:实例过期自动锁定。
/// * **LockByRestoration**:实例回滚前的自动锁定。
/// * **LockByDiskQuota**:实例空间满自动锁定,不可访问实例。
#[serde(rename = "LockMode")]
pub lock_mode: Option<String>,
/// 跨地域日志备份开关,取值:
/// * **Disable**:关闭
/// * **Enable**:开启
#[serde(rename = "LogBackupEnabled")]
pub log_backup_enabled: Option<String>,
/// 跨地域日志备份开启时间。格式:<i>yyyy-MM-dd</i>T<i>HH:mm:ss</i>Z(UTC时间)。
#[serde(rename = "LogBackupEnabledTime")]
pub log_backup_enabled_time: Option<String>,
/// 实例所在地域ID。
#[serde(rename = "RegionId")]
pub region_id: Option<String>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
/// 跨地域备份保留方式。默认值:**1**,表示按时长保留。
#[serde(rename = "RetentType")]
pub retent_type: Option<i32>,
/// 跨地域备份保留天数,取值:**7~1825**。
#[serde(rename = "Retention")]
pub retention: Option<i32>,
}
///
///
/// Return value of [Connection::describe_cross_backup_meta_list()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DescribeCrossBackupMetaListResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 跨地域备份集所属实例。
#[serde(rename = "DBInstanceName")]
pub db_instance_name: Option<String>,
#[serde(rename = "Items")]
pub items: Option<BackupMetaListResponseItems>,
/// 页码。
#[serde(rename = "PageNumber")]
pub page_number: Option<i32>,
/// 本页记录数。
#[serde(rename = "PageRecordCount")]
pub page_record_count: Option<i32>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
/// 总页数。
#[serde(rename = "TotalPageCount")]
pub total_page_count: Option<i32>,
/// 总记录数。
#[serde(rename = "TotalRecordCount")]
pub total_record_count: Option<i32>,
}
///
///
/// Return value of [Connection::describe_cross_region_backups()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DescribeCrossRegionBackupsResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 查询结束时间。
#[serde(rename = "EndTime")]
pub end_time: Option<String>,
#[serde(rename = "Items")]
pub items: Option<RegionBackupsResponseItems>,
/// 页码,取值:大于0且不超过Integer的最大值。
///
/// 默认值:**1**。
#[serde(rename = "PageNumber")]
pub page_number: Option<i32>,
/// 本页备份文件个数。
#[serde(rename = "PageRecordCount")]
pub page_record_count: Option<i32>,
/// 实例所在地域ID。
#[serde(rename = "RegionId")]
pub region_id: Option<String>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
/// 查询开始时间。
#[serde(rename = "StartTime")]
pub start_time: Option<String>,
/// 总记录数。
#[serde(rename = "TotalRecordCount")]
pub total_record_count: Option<i32>,
}
///
///
/// Return value of [Connection::describe_cross_region_log_backup_files()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DescribeCrossRegionLogBackupFilesResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 实例ID。
#[serde(rename = "DBInstanceId")]
pub db_instance_id: Option<String>,
/// 查询结束时间。格式:<i>yyyy-MM-dd</i>T<i>HH:mm:ss</i>Z(UTC时间)。
#[serde(rename = "EndTime")]
pub end_time: Option<String>,
#[serde(rename = "Items")]
pub items: Option<RegionLogBackupFilesResponseItems>,
/// 页码,取值:大于0且不超过Integer的最大值。
///
/// 默认值:**1**。
#[serde(rename = "PageNumber")]
pub page_number: Option<i32>,
/// 本页备份文件个数。
#[serde(rename = "PageRecordCount")]
pub page_record_count: Option<i32>,
/// 实例所在地域ID。
#[serde(rename = "RegionId")]
pub region_id: Option<String>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
/// 查询开始时间。格式:<i>yyyy-MM-dd</i>T<i>HH:mm:ss</i>Z(UTC时间)。
#[serde(rename = "StartTime")]
pub start_time: Option<String>,
/// 总记录数。
#[serde(rename = "TotalRecordCount")]
pub total_record_count: Option<i32>,
}
///
///
/// Return value of [Connection::describe_available_cross_region()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DescribeAvailableCrossRegionResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
#[serde(rename = "Regions")]
pub regions: Option<RegionResponseRegions>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
///
///
/// Return value of [Connection::describe_available_recovery_time()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DescribeAvailableRecoveryTimeResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 跨地域备份文件ID。
#[serde(rename = "CrossBackupId")]
pub cross_backup_id: Option<i32>,
/// 跨地域备份文件可恢复的起始时间。格式:yyyy-MM-ddTHH:mm:ssZ(GMT时间)。
#[serde(rename = "RecoveryBeginTime")]
pub recovery_begin_time: Option<String>,
/// 跨地域备份文件可恢复的结束时间。格式:yyyy-MM-ddTHH:mm:ssZ(GMT时间)。
#[serde(rename = "RecoveryEndTime")]
pub recovery_end_time: Option<String>,
/// 源实例所在地域。
#[serde(rename = "RegionId")]
pub region_id: Option<String>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
///
///
/// Return value of [Connection::describe_cross_region_backup_db_instance()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DescribeCrossRegionBackupDBInstanceResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
#[serde(rename = "Items")]
pub items: Option<InstanceResponseItems>,
/// 跨地域备份设置列表内的Item数量。
#[serde(rename = "ItemsNumbers")]
pub items_numbers: Option<i32>,
/// 页码,取值:大于0且不超过Integer的最大值。
///
/// 默认值:**1**。
#[serde(rename = "PageNumber")]
pub page_number: Option<i32>,
/// 每页记录数。默认值:30。
#[serde(rename = "PageSize")]
pub page_size: Option<i32>,
/// 地域ID。
#[serde(rename = "RegionId")]
pub region_id: Option<String>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
/// 总记录数。
#[serde(rename = "TotalRecords")]
pub total_records: Option<i32>,
}
///
///
/// Return value of [Connection::check_create_ddr_db_instance()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct CheckCreateDdrDBInstanceResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 是否能创建容灾恢复实例,返回值:
/// - **true**
/// - **false**
#[serde(rename = "IsValid")]
pub is_valid: Option<String>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
///
///
/// Return value of [Connection::restore_ddr_table()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct RestoreDdrTableResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 实例ID。
#[serde(rename = "DBInstanceId")]
pub db_instance_id: Option<String>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
///
///
/// Return value of [Connection::modify_db_instance_monitor()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct ModifyDBInstanceMonitorResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
///
///
/// Return value of [Connection::modify_db_instance_metrics()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct ModifyDBInstanceMetricsResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 实例ID。
#[serde(rename = "DBInstanceId")]
pub db_instance_id: Option<String>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
/// 本次变更的应用范围。返回值:
/// * **instance**:实例级别。
/// * **region**:地域级别。
#[serde(rename = "Scope")]
pub scope: Option<String>,
}
///
///
/// Return value of [Connection::describe_resource_usage()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DescribeResourceUsageResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 归档备份的占用空间,单位:Byte。
#[serde(rename = "ArchiveBackupSize")]
pub archive_backup_size: Option<i64>,
/// 数据备份占用的总空间(不包括归档备份),单位:Byte。
///
/// > 对于**SQL Server**实例,表示物理备份和快照备份的总大小。
#[serde(rename = "BackupDataSize")]
pub backup_data_size: Option<i64>,
/// 日志备份占用的总空间(不包括归档备份),单位:Byte。
#[serde(rename = "BackupLogSize")]
pub backup_log_size: Option<i64>,
/// OSS中备份集的数据文件大小,单位:Byte。0表示没有数据。
///
/// > 对于**SQL Server**实例,表示物理备份占用空间。
#[serde(rename = "BackupOssDataSize")]
pub backup_oss_data_size: Option<i64>,
/// OSS中备份集的日志文件大小,单位:Byte。0表示没有数据。
#[serde(rename = "BackupOssLogSize")]
pub backup_oss_log_size: Option<i64>,
/// 备份占用空间(数据备份+日志备份),单位:Byte。-1表示没有数据。
#[serde(rename = "BackupSize")]
pub backup_size: Option<i64>,
/// 冷备份的占用空间,单位:Byte。-1表示没有数据。
#[serde(rename = "ColdBackupSize")]
pub cold_backup_size: Option<i64>,
/// 实例ID。
#[serde(rename = "DBInstanceId")]
pub db_instance_id: Option<String>,
/// 数据文件占用空间,单位:Byte。-1表示没有数据。
#[serde(rename = "DataSize")]
pub data_size: Option<i64>,
/// 已用空间(DataSize+LogSize),单位:Byte。-1表示没有数据。
#[serde(rename = "DiskUsed")]
pub disk_used: Option<i64>,
/// 数据库类型。
#[serde(rename = "Engine")]
pub engine: Option<String>,
/// 日志占用空间,单位:Byte。-1表示没有数据。
#[serde(rename = "LogSize")]
pub log_size: Option<i64>,
/// 扣除免费额度后,需要付费的备份占用空间,单位:Byte。
#[serde(rename = "PaidBackupSize")]
pub paid_backup_size: Option<i64>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
/// SQL的占用空间,单位:Byte。-1表示没有数据。
#[serde(rename = "SQLSize")]
pub sql_size: Option<i64>,
/// **SQL Server实例**的快照备份占用空间,单位:Byte。0表示没有数据。
#[serde(rename = "BackupEcsSnapshotSize")]
pub backup_ecs_snapshot_size: Option<String>,
}
///
///
/// Return value of [Connection::describe_db_instance_performance()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DescribeDBInstancePerformanceResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 实例ID。
#[serde(rename = "DBInstanceId")]
pub db_instance_id: Option<String>,
/// 查询结束时间。格式:<i>yyyy-MM-dd</i>T<i>HH:mm</i>Z(UTC时间)。
#[serde(rename = "EndTime")]
pub end_time: Option<String>,
/// 数据库类型。
#[serde(rename = "Engine")]
pub engine: Option<String>,
#[serde(rename = "PerformanceKeys")]
pub performance_keys: Option<InstancePerformanceResponsePerformanceKeys>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
/// 查询开始时间。格式:<i>yyyy-MM-dd</i>T<i>HH:mm</i>Z(UTC时间)。
#[serde(rename = "StartTime")]
pub start_time: Option<String>,
}
///
///
/// Return value of [Connection::describe_db_instance_monitor()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DescribeDBInstanceMonitorResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 监控的采集数据间隔,单位:秒。
#[serde(rename = "Period")]
pub period: Option<String>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
///
///
/// Return value of [Connection::describe_available_metrics()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DescribeAvailableMetricsResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
///
/// 实例ID。
#[serde(rename = "DBInstanceName")]
pub db_instance_name: Option<String>,
/// 增强监控指标列表。
#[serde(rename = "Items")]
#[serde(default)]
pub items: Vec<AvailableMetricsResponseItem>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
/// 实例支持的增强指标总数。
#[serde(rename = "TotalRecordCount")]
pub total_record_count: Option<i32>,
}
///
///
/// Return value of [Connection::describe_db_instance_metrics()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DescribeDBInstanceMetricsResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 实例ID。
#[serde(rename = "DBInstanceName")]
pub db_instance_name: Option<String>,
/// 实例已开启的增强指标列表。
#[serde(rename = "Items")]
#[serde(default)]
pub items: Vec<InstanceMetricsResponseItem>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
/// 实例已开启的增强指标总数。
#[serde(rename = "TotalRecordCount")]
pub total_record_count: Option<i32>,
}
///
///
/// Return value of [Connection::create_parameter_group()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct CreateParameterGroupResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 参数模板ID。可以通过接口[DescribeParameterGroups](~~144491~~)查看参数模板ID。
#[serde(rename = "ParameterGroupId")]
pub parameter_group_id: Option<String>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
///
///
/// Return value of [Connection::delete_parameter_group()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DeleteParameterGroupResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 参数模板ID。
#[serde(rename = "ParameterGroupId")]
pub parameter_group_id: Option<String>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
///
///
/// Return value of [Connection::modify_parameter()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct ModifyParameterResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
///
///
/// Return value of [Connection::modify_parameter_group()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct ModifyParameterGroupResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 参数模板ID。
#[serde(rename = "ParameterGroupId")]
pub parameter_group_id: Option<String>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
///
///
/// Return value of [Connection::describe_parameters()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DescribeParametersResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
#[serde(rename = "ConfigParameters")]
pub config_parameters: Option<ConfigParameters>,
/// 数据库类型。
#[serde(rename = "Engine")]
pub engine: Option<String>,
/// 数据库版本号。
#[serde(rename = "EngineVersion")]
pub engine_version: Option<String>,
/// 参数模板信息。
#[serde(rename = "ParamGroupInfo")]
pub param_group_info: Option<GroupInfo>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
#[serde(rename = "RunningParameters")]
pub running_parameters: Option<RunningParameters>,
}
///
///
/// Return value of [Connection::describe_modify_parameter_log()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DescribeModifyParameterLogResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 实例ID。
#[serde(rename = "DBInstanceId")]
pub db_instance_id: Option<String>,
/// 数据库类型。
#[serde(rename = "Engine")]
pub engine: Option<String>,
/// 数据库版本。
#[serde(rename = "EngineVersion")]
pub engine_version: Option<String>,
#[serde(rename = "Items")]
pub items: Option<LogResponseItems>,
/// 页数。
#[serde(rename = "PageNumber")]
pub page_number: Option<i32>,
/// 每页记录数。
#[serde(rename = "PageRecordCount")]
pub page_record_count: Option<i32>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
/// 日志记录总数。
#[serde(rename = "TotalRecordCount")]
pub total_record_count: Option<i32>,
}
///
///
/// Return value of [Connection::describe_parameter_templates()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DescribeParameterTemplatesResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 数据库类型。
#[serde(rename = "Engine")]
pub engine: Option<String>,
/// 数据库版本号。
#[serde(rename = "EngineVersion")]
pub engine_version: Option<String>,
/// 参数个数。
#[serde(rename = "ParameterCount")]
pub parameter_count: Option<String>,
#[serde(rename = "Parameters")]
pub parameters: Option<ResponseParameters>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
///
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
///
/// - [MySQL使用参数模板](~~130565~~)
/// - [PostgreSQL使用参数模板](~~457176~~)
///
/// Return value of [Connection::describe_parameter_groups()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DescribeParameterGroupsResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
#[serde(rename = "ParameterGroups")]
pub parameter_groups: Option<ParameterGroups>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
/// 目标地域是否有参数模板。取值:
///
/// * true:无参数模板
/// * false:有参数模板
/// ><warning>该参数已废弃,不建议使用。></warning>
#[serde(rename = "SignalForOptimizeParams")]
pub signal_for_optimize_params: Option<bool>,
}
///
///
/// Return value of [Connection::describe_parameter_group()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DescribeParameterGroupResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
#[serde(rename = "ParamGroup")]
pub param_group: Option<ParamGroup>,
#[serde(rename = "RelatedCustinsInfo")]
pub related_custins_info: Option<ResponseRelatedCustinsInfo>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
///
///
/// Return value of [Connection::clone_parameter_group()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct CloneParameterGroupResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
///
///
/// Return value of [Connection::descibe_imports_from_database()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DescibeImportsFromDatabaseResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
#[serde(rename = "Items")]
pub items: Option<DatabaseResponseItems>,
/// 页码。
#[serde(rename = "PageNumber")]
pub page_number: Option<i32>,
/// 每页记录数。
#[serde(rename = "PageRecordCount")]
pub page_record_count: Option<i32>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
/// 记录总数。
#[serde(rename = "TotalRecordCount")]
pub total_record_count: Option<i32>,
}
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
/// - RDS MariaDB
///
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
///
/// - [RDS MySQL计划内事件](~~104183~~)
/// - [RDS PostgreSQL计划内事件](~~104452~~)
/// - [RDS SQL Server计划内事件](~~104451~~)
/// - [RDS MariaDB计划内事件](~~104454~~)
///
/// Return value of [Connection::modify_active_operation_tasks()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct ModifyActiveOperationTasksResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 运维任务ID,多个ID间使用英文逗号(,)分隔。
#[serde(rename = "Ids")]
pub ids: Option<String>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
/// - RDS MariaDB
///
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
///
/// - [RDS MySQL计划内事件](~~104183~~)
/// - [RDS PostgreSQL计划内事件](~~104452~~)
/// - [RDS SQL Server计划内事件](~~104451~~)
/// - [RDS MariaDB计划内事件](~~104454~~)
///
/// Return value of [Connection::describe_active_operation_tasks()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DescribeActiveOperationTasksResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 运维任务列表。
#[serde(rename = "Items")]
#[serde(default)]
pub items: Vec<OperationTasksResponseItem>,
/// 页码,大于0, 默认1。
#[serde(rename = "PageNumber")]
pub page_number: Option<i32>,
/// 每页记录数, 默认每页25条,最大100。
#[serde(rename = "PageSize")]
pub page_size: Option<i32>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
/// 返回的任务记录数。
#[serde(rename = "TotalRecordCount")]
pub total_record_count: Option<i32>,
}
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
/// - RDS MariaDB
///
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
///
/// - [RDS MySQL计划内事件](~~104183~~)
/// - [RDS PostgreSQL计划内事件](~~104452~~)
/// - [RDS SQL Server计划内事件](~~104451~~)
/// - [RDS MariaDB计划内事件](~~104454~~)
///
/// ### 使用限制
/// 以下情况任务不允许被取消:
/// - allowCancel为0。
/// - 当前时间大于任务开始时间。
/// - 任务状态不为3(等待执行)。
///
/// Return value of [Connection::cancel_active_operation_tasks()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct CancelActiveOperationTasksResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 批量取消任务ID,多个ID间使用英文逗号(,)分隔。
#[serde(rename = "Ids")]
pub ids: Option<String>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
///
///
/// Return value of [Connection::delete_user_backup_file()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DeleteUserBackupFileResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 已删除的用户备份ID。
#[serde(rename = "BackupId")]
pub backup_id: Option<String>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
/// ### 适用引擎
/// RDS MySQL
///
/// ### 相关功能文档
/// 用户备份即MySQL自建库的全量备份数据,您可以将用户备份恢复至云上。更多信息,请参见[MySQL 5.7、8.0自建数据库全量上云](~~251779~~)。
///
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
///
/// Return value of [Connection::update_user_backup_file()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct UpdateUserBackupFileResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 用户备份ID。
#[serde(rename = "BackupId")]
pub backup_id: Option<String>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
///
///
/// Return value of [Connection::list_user_backup_files()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct ListUserBackupFilesResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 用户备份文件详情列表。
#[serde(rename = "Records")]
#[serde(default)]
pub records: Vec<ResponseRecord>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
///
///
/// Return value of [Connection::import_user_backup_file()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct ImportUserBackupFileResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 用户备份ID。
#[serde(rename = "BackupId")]
pub backup_id: Option<String>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
/// 导入用户备份是否成功。是则返回**true**,否则返回错误信息。
#[serde(rename = "Status")]
pub status: Option<bool>,
}
///
///
/// Return value of [Connection::create_migrate_task()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct CreateMigrateTaskResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 迁移上云任务类型,返回值:
/// * **FULL**:通过全量备份文件执行还原操作。
/// * **UPDF**:通过增量备份文件或日志文件还原增量数据。
#[serde(rename = "BackupMode")]
pub backup_mode: Option<String>,
/// 实例ID。
#[serde(rename = "DBInstanceId")]
pub db_instance_id: Option<String>,
/// 数据库名称。
#[serde(rename = "DBName")]
pub db_name: Option<String>,
/// 迁移任务ID。
#[serde(rename = "MigrateTaskId")]
pub migrate_task_id: Option<String>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
/// 任务ID。
#[serde(rename = "TaskId")]
pub task_id: Option<String>,
}
///
///
/// Return value of [Connection::create_online_database_task()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct CreateOnlineDatabaseTaskResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
///
///
/// Return value of [Connection::describe_migrate_tasks()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DescribeMigrateTasksResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 实例ID。
#[serde(rename = "DBInstanceId")]
pub db_instance_id: Option<String>,
#[serde(rename = "Items")]
pub items: Option<MigrateTasksResponseItems>,
/// 获取第几页的数据。
#[serde(rename = "PageNumber")]
pub page_number: Option<i32>,
/// 每页记录数。
#[serde(rename = "PageRecordCount")]
pub page_record_count: Option<i32>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
/// 满足条件的总的记录数。
#[serde(rename = "TotalRecordCount")]
pub total_record_count: Option<i32>,
}
///
///
/// Return value of [Connection::describe_oss_downloads()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DescribeOssDownloadsResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 实例ID。
#[serde(rename = "DBInstanceId")]
pub db_instance_id: Option<String>,
#[serde(rename = "Items")]
pub items: Option<DownloadsResponseItems>,
/// 迁移任务的ID。
#[serde(rename = "MigrateTaskId")]
pub migrate_task_id: Option<String>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
///
///
/// Return value of [Connection::describe_migrate_task_by_id()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DescribeMigrateTaskByIdResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 备份数据上云任务类型,取值:
///
/// - **FULL**:表示通过全量备份文件去执行还原操作。
/// - **UPDF**:表示通过增量文件或者日志文件去还原增量部分的数据。
#[serde(rename = "BackupMode")]
pub backup_mode: Option<String>,
/// 备份数据上云任务创建时间。格式:<i>yyyy-MM-dd</i>T<i>HH:mm:ss</i>Z(UTC时间)。
#[serde(rename = "CreateTime")]
pub create_time: Option<String>,
/// 实例ID。
#[serde(rename = "DBInstanceName")]
pub db_instance_name: Option<String>,
/// 数据库名称。
#[serde(rename = "DBName")]
pub db_name: Option<String>,
/// 备份数据上云任务的描述信息。
#[serde(rename = "Description")]
pub description: Option<String>,
/// 备份数据上云任务结束时间。格式:<i>yyyy-MM-dd</i>T<i>HH:mm:ss</i>Z(UTC时间)。
#[serde(rename = "EndTime")]
pub end_time: Option<String>,
/// 是否是覆盖性导入。取值:
///
/// - **False**:否
/// - **True**:是
#[serde(rename = "IsDBReplaced")]
pub is_db_replaced: Option<String>,
/// OSS备份上云任务的ID。
#[serde(rename = "MigrateTaskId")]
pub migrate_task_id: Option<String>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
/// 备份数据上云任务的状态,取值:
/// - **NoStart**:未开始
/// - **Running**:运行中
/// - **Success**:成功
/// - **Failed**:失败
/// - **Waiting**:等待增量备份文件导入
#[serde(rename = "Status")]
pub status: Option<String>,
}
///
///
/// Return value of [Connection::terminate_migrate_task()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct TerminateMigrateTaskResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
/// ### 适用引擎
///
/// - RDS SQL Server
///
/// Return value of [Connection::delete_ad_setting()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DeleteADSettingResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
/// ### 适用引擎
///
/// - RDS SQL Server
///
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
///
/// - [SQL Server接入自建域](~~170734~~)
///
/// Return value of [Connection::modify_ad_info()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct ModifyADInfoResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
/// ### 适用引擎
///
/// - RDS SQL Server
///
/// Return value of [Connection::describe_ad_info()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DescribeADInfoResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// AD域的DNS信息。
#[serde(rename = "ADDNS")]
pub addns: Option<String>,
/// AD域的服务IP地址。
#[serde(rename = "ADServerIpAddress")]
pub ad_server_ip_address: Option<String>,
/// AD域的状态。返回值:
/// * **-1**:正在加入AD域。
/// * **0**:加入AD域失败。
/// * **1**:加入AD域成功。
#[serde(rename = "ADStatus")]
pub ad_status: Option<String>,
/// 异常原因。
#[serde(rename = "AbnormalReason")]
pub abnormal_reason: Option<String>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
/// AD域的用户名。
#[serde(rename = "UserName")]
pub user_name: Option<String>,
}
/// ### 适用引擎
///
/// - RDS PostgreSQL
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
///
/// [一键上云](~~365562~~)
///
/// Return value of [Connection::create_cloud_migration_precheck_task()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct CreateCloudMigrationPrecheckTaskResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 目标实例名称。
#[serde(rename = "DBInstanceName")]
pub db_instance_name: Option<String>,
/// 请求ID
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
/// 任务ID。
#[serde(rename = "TaskId")]
pub task_id: Option<i64>,
/// 任务名称。
#[serde(rename = "TaskName")]
pub task_name: Option<String>,
}
/// ### 适用引擎
///
/// - RDS PostgreSQL
///
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
///
/// [一键上云](~~365562~~)
///
/// Return value of [Connection::create_cloud_migration_task()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct CreateCloudMigrationTaskResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 目标实例名称。
#[serde(rename = "DBInstanceName")]
pub db_instance_name: Option<String>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
/// 任务ID。
#[serde(rename = "TaskId")]
pub task_id: Option<i64>,
/// 任务名称。
#[serde(rename = "TaskName")]
pub task_name: Option<String>,
}
/// ### 适用引擎
///
/// - RDS PostgreSQL
///
/// Return value of [Connection::describe_cloud_migration_precheck_result()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DescribeCloudMigrationPrecheckResultResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 一键上云检查报告列表。
#[serde(rename = "Items")]
#[serde(default)]
pub items: Vec<PrecheckResultResponseItem>,
/// 页数。
#[serde(rename = "PageNumber")]
pub page_number: Option<i64>,
/// 每页最大记录数
#[serde(rename = "PageSize")]
pub page_size: Option<i64>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
/// 查询结果统计。
#[serde(rename = "TotalSize")]
pub total_size: Option<i32>,
}
/// ### 适用引擎
///
/// - RDS PostgreSQL
///
/// Return value of [Connection::describe_cloud_migration_result()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DescribeCloudMigrationResultResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 迁移上云任务信息列表。
#[serde(rename = "Items")]
#[serde(default)]
pub items: Vec<MigrationResultResponseItem>,
/// 页数。
#[serde(rename = "PageNumber")]
pub page_number: Option<i64>,
/// 每页最大记录数。
#[serde(rename = "PageSize")]
pub page_size: Option<i64>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
/// 查询结果统计。
#[serde(rename = "TotalSize")]
pub total_size: Option<i32>,
}
/// ### 适用引擎
///
/// - RDS PostgreSQL
///
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
///
/// [一键上云](~~365562~~)
///
/// Return value of [Connection::activate_migration_target_instance()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct ActivateMigrationTargetInstanceResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 目标实例名称。
#[serde(rename = "DBInstanceName")]
pub db_instance_name: Option<String>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
/// 自建PostgreSQL数据库的内网IP。
#[serde(rename = "SourceIpAddress")]
pub source_ip_address: Option<String>,
/// 自建PostgreSQL数据库的端口。
#[serde(rename = "SourcePort")]
pub source_port: Option<i64>,
/// 任务ID。
#[serde(rename = "TaskId")]
pub task_id: Option<i64>,
}
///
///
/// Return value of [Connection::create_gad_instance()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct CreateGADInstanceResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
/// 返回信息组成的数组。
#[serde(rename = "Result")]
pub result: Option<InstanceResponseResult>,
}
///
///
/// Return value of [Connection::create_gad_instance_member()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct CreateGadInstanceMemberResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
/// 返回信息组成的数组。
#[serde(rename = "Result")]
pub result: Option<MemberResponseResult>,
}
///
///
/// Return value of [Connection::delete_gad_instance()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DeleteGadInstanceResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
/// ### 适用引擎
///
/// - RDS MySQL
///
/// ### 注意事项
/// 仅支持移除单元节点。
///
/// Return value of [Connection::detach_gad_instance_member()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DetachGadInstanceMemberResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
///
///
/// Return value of [Connection::describe_gad_instances()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DescribeGadInstancesResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// RDS全球多活数据库集群信息列表。
#[serde(rename = "GadInstances")]
#[serde(default)]
pub gad_instances: Vec<GadInstance>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
/// ### 适用引擎
/// RDS MySQL
///
/// Return value of [Connection::receive_db_instance()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct ReceiveDBInstanceResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 切换完成后的灾备实例ID。
#[serde(rename = "GuardDBInstanceId")]
pub guard_db_instance_id: Option<String>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
///
///
/// Return value of [Connection::tag_resources()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct TagResourcesResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
///
///
/// Return value of [Connection::add_tags_to_resource()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct AddTagsToResourceResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
///
///
/// Return value of [Connection::untag_resources()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct UntagResourcesResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
///
///
/// Return value of [Connection::remove_tags_from_resource()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct RemoveTagsFromResourceResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
///
///
/// Return value of [Connection::list_tag_resources()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct ListTagResourcesResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 如果一次查询没有返回全部结果,则可在后续查询中传入前一次返回的token继续查询。
#[serde(rename = "NextToken")]
pub next_token: Option<String>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
#[serde(rename = "TagResources")]
pub tag_resources: Option<ResponseTagResources>,
}
///
///
/// Return value of [Connection::describe_tags()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DescribeTagsResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
#[serde(rename = "Items")]
pub items: Option<DescribeTagsResponseItems>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
/// - RDS MariaDB
///
/// Return value of [Connection::describe_db_instance_by_tags()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DescribeDBInstanceByTagsResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
#[serde(rename = "Items")]
pub items: Option<ByTagsResponseItems>,
/// 页码。
#[serde(rename = "PageNumber")]
pub page_number: Option<i32>,
/// 每页记录数。
#[serde(rename = "PageRecordCount")]
pub page_record_count: Option<i32>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
/// 总记录数。
#[serde(rename = "TotalRecordCount")]
pub total_record_count: Option<i32>,
}
/// <props="china">您可以加入RDS PostgreSQL插件交流钉钉群(103525002795),进行咨询、交流和反馈,获取更多关于插件的信息。</props>
///
/// ### 适用引擎
/// RDS PostgreSQL
///
///
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
///
/// [管理插件](~~2402409~~)
///
/// ### 注意事项
/// 只能安装实例大版本支持的插件,否则会安装失败。
/// - 插件支持情况请参见[支持插件列表](~~142340~~)。
/// - 您可以调用[DescribeDBInstanceAttribute](~~610394~~)查询实例大版本。
///
/// Return value of [Connection::create_postgres_extensions()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct CreatePostgresExtensionsResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
/// <props="china">您可以加入RDS PostgreSQL插件交流钉钉群(103525002795),进行咨询、交流和反馈,获取更多关于插件的信息。</props>
///
/// ### 适用引擎
/// RDS PostgreSQL
///
///
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
///
/// [管理插件](~~2402409~~)
///
/// Return value of [Connection::delete_postgres_extensions()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DeletePostgresExtensionsResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
/// <props="china">您可以加入RDS PostgreSQL插件交流钉钉群(103525002795),进行咨询、交流和反馈,获取更多关于插件的信息。</props>
///
/// ### 适用引擎
/// RDS PostgreSQL
///
///
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
///
/// [管理插件](~~2402409~~)
///
/// Return value of [Connection::update_postgres_extensions()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct UpdatePostgresExtensionsResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
/// <props="china">您可以加入RDS PostgreSQL插件交流钉钉群(103525002795),进行咨询、交流和反馈,获取更多关于插件的信息。</props>
///
/// ### 适用引擎
/// RDS PostgreSQL
///
///
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
///
/// [管理插件](~~2402409~~)
///
/// Return value of [Connection::describe_postgres_extensions()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DescribePostgresExtensionsResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 指定数据库下已安装插件信息列表。
#[serde(rename = "InstalledExtensions")]
#[serde(default)]
pub installed_extensions: Vec<InstalledExtension>,
/// 插件概览相关信息。
#[serde(rename = "Overview")]
pub overview: Option<crate::OpenObject>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
/// 指定数据库下未安装插件信息列表。
#[serde(rename = "UninstalledExtensions")]
#[serde(default)]
pub uninstalled_extensions: Vec<UninstalledExtension>,
}
/// ### 适用引擎
///
/// - RDS PostgreSQL
///
/// ### 注意事项
/// 仅当Replication Slot的状态(SlotStatus)为**INACTIVE**时,可以被删除。您可以调用DescribeSlots接口查询Replication Slot状态。
///
/// Return value of [Connection::delete_slot()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DeleteSlotResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
/// Replication Slot名称。
#[serde(rename = "SlotName")]
pub slot_name: Option<String>,
}
/// ### 适用引擎
///
/// - RDS PostgreSQL
///
/// Return value of [Connection::describe_slots()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DescribeSlotsResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
/// 实例Replication Slot信息列表。
#[serde(rename = "Slots")]
#[serde(default)]
pub slots: Vec<ResponseSlot>,
}
/// ### 适用引擎
///
/// - RDS PostgreSQL
/// - RDS SQL Server
///
/// > 不同引擎的传参要求有所区别,请按要求传参。
///
/// Return value of [Connection::create_replication_link()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct CreateReplicationLinkResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 灾备实例ID。
#[serde(rename = "DBInstanceId")]
pub db_instance_id: Option<String>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
/// 任务ID。
#[serde(rename = "TaskId")]
pub task_id: Option<i64>,
/// 任务名称。
#[serde(rename = "TaskName")]
pub task_name: Option<String>,
}
/// ### 适用引擎
///
/// - RDS PostgreSQL
///
/// Return value of [Connection::describe_replication_link_logs()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DescribeReplicationLinkLogsResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 实例 ID。
#[serde(rename = "DBInstanceId")]
pub db_instance_id: Option<String>,
/// 记录项。
#[serde(rename = "Items")]
#[serde(default)]
pub items: Vec<LogsResponseItem>,
/// 请求 ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
/// 总记录数。
#[serde(rename = "TotalSize")]
pub total_size: Option<i32>,
}
/// ### 适用引擎
/// - RDS PostgreSQL
///
/// Return value of [Connection::rebuild_replication_link()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct RebuildReplicationLinkResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 实例 ID。
#[serde(rename = "DBInstanceId")]
pub db_instance_id: Option<String>,
/// 请求 ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
/// 任务 ID。
#[serde(rename = "TaskId")]
pub task_id: Option<i64>,
/// 任务名称。
#[serde(rename = "TaskName")]
pub task_name: Option<String>,
}
/// ### 适用引擎
/// RDS SQL Server
///
/// Return value of [Connection::switch_replication_link()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct SwitchReplicationLinkResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 灾备实例ID。
#[serde(rename = "DBInstanceId")]
pub db_instance_id: Option<String>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
/// 任务ID。
#[serde(rename = "TaskId")]
pub task_id: Option<i64>,
/// 任务名称。
#[serde(rename = "TaskName")]
pub task_name: Option<String>,
}
/// ### 适用引擎
///
/// - RDS PostgreSQL
/// - RDS SQL Server
///
/// Return value of [Connection::delete_replication_link()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DeleteReplicationLinkResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 灾备实例ID。
#[serde(rename = "DBInstanceId")]
pub db_instance_id: Option<String>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
/// 任务ID。
#[serde(rename = "TaskId")]
pub task_id: Option<i64>,
/// 任务名称。
#[serde(rename = "TaskName")]
pub task_name: Option<String>,
}
/// ### 适用引擎
/// RDS PostgreSQL
///
/// ### 相关功能文档
/// [承诺型Serverless](~~2928780~~)
///
/// Return value of [Connection::modify_compute_burst_config()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct ModifyComputeBurstConfigResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 请求的ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
/// ### 适用引擎
/// RDS PostgreSQL
///
/// ### 相关功能文档
/// [承诺型Serverless](~~2928780~~)
///
/// Return value of [Connection::describe_compute_burst_config()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DescribeComputeBurstConfigResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 是否开启了承诺型 Serverless 功能。
///
/// - **true**:是。
/// - **false**:否。
#[serde(rename = "ComputeBurstEnabled")]
pub compute_burst_enabled: Option<bool>,
/// 承诺型 Serverless 功能配置详情。
#[serde(rename = "ComputeBurstConfig")]
pub compute_burst_config: Option<crate::OpenObject>,
/// 请求ID
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
/// ### 适用引擎
///
/// - RDS MySQL
///
/// Return value of [Connection::create_secret()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct CreateSecretResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
/// 创建的Data API账号的用户凭证。
#[serde(rename = "SecretArn")]
pub secret_arn: Option<String>,
/// 用户凭证的名称。
#[serde(rename = "SecretName")]
pub secret_name: Option<String>,
/// 请求是否成功,返回值如下:
///
/// - **true**:请求成功。
/// - **false**:请求失败。
#[serde(rename = "Success")]
pub success: Option<bool>,
}
/// Return value of [Connection::delete_secret()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DeleteSecretResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
/// Data API账号的用户凭证。
#[serde(rename = "SecretArn")]
pub secret_arn: Option<String>,
/// 用户凭证的名称。
#[serde(rename = "SecretName")]
pub secret_name: Option<String>,
/// 请求是否成功,返回值如下:
///
/// - **true**:请求成功。
/// - **false**:请求失败。
#[serde(rename = "Success")]
pub success: Option<bool>,
}
/// ### 适用引擎
///
/// - RDS MySQL
///
/// Return value of [Connection::describe_secrets()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DescribeSecretsResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 查询分页的页码。
#[serde(rename = "PageNumber")]
pub page_number: Option<i64>,
/// 每页记录数。
#[serde(rename = "PageSize")]
pub page_size: Option<i64>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
/// 返回凭证详情列表。
#[serde(rename = "Secrets")]
#[serde(default)]
pub secrets: Vec<ResponseSecret>,
}
///
///
/// Return value of [Connection::describe_dedicated_host_groups()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DescribeDedicatedHostGroupsResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
#[serde(rename = "DedicatedHostGroups")]
pub dedicated_host_groups: Option<HostGroups>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
///
///
/// Return value of [Connection::describe_dedicated_hosts()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DescribeDedicatedHostsResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 主机组ID。
#[serde(rename = "DedicatedHostGroupId")]
pub dedicated_host_group_id: Option<String>,
#[serde(rename = "DedicatedHosts")]
pub dedicated_hosts: Option<DedicatedHosts>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
///
///
/// Return value of [Connection::migrate_db_instance()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct MigrateDBInstanceResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 迁移排队序号。当序号为0时,就会进行迁移切换。
#[serde(rename = "MigrationId")]
pub migration_id: Option<i32>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
/// 任务ID。
#[serde(rename = "TaskId")]
pub task_id: Option<i32>,
}
///
///
/// Return value of [Connection::rebuild_db_instance()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct RebuildDBInstanceResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 重建排队序号。当序号为0时,就会进行重建迁移。
#[serde(rename = "MigrationId")]
pub migration_id: Option<i32>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
/// 任务ID。
#[serde(rename = "TaskId")]
pub task_id: Option<i32>,
}
///
///
/// Return value of [Connection::migrate_connection_to_other_zone()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct MigrateConnectionToOtherZoneResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
/// ### 适用引擎
///
/// - RDS MySQL
///
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
///
/// - [只读实例延迟复制](~~96056~~)
///
/// Return value of [Connection::modify_db_instance_delayed_replication_time()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct ModifyDBInstanceDelayedReplicationTimeResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 只读实例ID。
#[serde(rename = "DBInstanceId")]
pub db_instance_id: Option<String>,
/// 只读实例的复制延迟时间。单位:秒。
///
#[serde(rename = "ReadSQLReplicationTime")]
pub read_sql_replication_time: Option<String>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
/// 任务ID。
#[serde(rename = "TaskId")]
pub task_id: Option<String>,
}
/// ### 适用引擎
///
/// - RDS PostgreSQL
///
/// Return value of [Connection::check_service_linked_role()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct CheckServiceLinkedRoleResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 是否已经创建服务关联角色(SLR)。
#[serde(rename = "HasServiceLinkedRole")]
pub has_service_linked_role: Option<String>,
/// 当前场景下是否需要该服务关联角色(默认为true)。
#[serde(rename = "RequireServiceLinkedRole")]
pub require_service_linked_role: Option<String>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
///
/// ### 功能说明
/// 该接口用于新购、升级RDS MySQL、PostgreSQL实例前了解实例小版本详情,方便按需选择。
///
/// Return value of [Connection::describe_db_mini_engine_versions()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DescribeDBMiniEngineVersionsResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 实例ID。
#[serde(rename = "DBInstanceId")]
pub db_instance_id: Option<String>,
/// 每页记录数。
#[serde(rename = "MaxRecordsPerPage")]
pub max_records_per_page: Option<i32>,
/// 小版本列表。
#[serde(rename = "MinorVersionItems")]
#[serde(default)]
pub minor_version_items: Vec<VersionItem>,
/// 当前页码。
#[serde(rename = "PageNumbers")]
pub page_numbers: Option<i32>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
/// 总记录数。
#[serde(rename = "TotalCount")]
pub total_count: Option<i32>,
}
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
/// - RDS MariaDB
///
/// Return value of [Connection::describe_region_infos()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DescribeRegionInfosResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
#[serde(rename = "Regions")]
pub regions: Option<InfosResponseRegions>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
/// - RDS MariaDB
///
/// Return value of [Connection::describe_db_instance_net_info_for_channel()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DescribeDBInstanceNetInfoForChannelResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
#[serde(rename = "DBInstanceNetInfos")]
pub db_instance_net_infos: Option<ChannelResponseDBInstanceNetInfos>,
/// 实例网络类型。返回值:
/// * **VPC**:专有网络。
/// * **Classic**:经典网络。
#[serde(rename = "InstanceNetworkType")]
pub instance_network_type: Option<String>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
/// ### 适用引擎
///
/// - RDS SQL Server
///
/// ### 前提条件
/// - RDS实例需满足如下条件:
/// - 实例所在地域:除华北3(张家口)外的其他地域均支持使用该功能。
/// - 实例系列:基础系列、高可用系列(2012及以上版本)、集群系列。
/// - 实例规格:通用型、独享型(不支持共享型)。
/// - 网络类型:专有网络。如需变更网络类型,请参见[更改网络类型](~~95707~~)。
/// - 实例创建时间:高可用系列和集群系列实例的创建时间需在2021年01月01日或之后;基础系列实例的创建时间需在2022年09月02日或之后。实例**创建时间**可在**基本信息**页内的**运行状态**中查看。
/// - 登录账号必须为**阿里云主账号**。
///
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
/// [创建主机账号并登录](~~354862~~)
///
/// Return value of [Connection::describe_host_web_shell()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DescribeHostWebShellResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// WebShell登录地址。
#[serde(rename = "LoginUrl")]
pub login_url: Option<String>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
/// - RDS MariaDB
///
/// Return value of [Connection::describe_class_details()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DescribeClassDetailsResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 系列。取值:
/// * **Basic**:基础系列
/// * **HighAvailability**:高可用系列
/// * **AlwaysOn**:集群系列
/// * **Finance**:三节点企业系列
#[serde(rename = "Category")]
pub category: Option<String>,
/// 规格代码。
#[serde(rename = "ClassCode")]
pub class_code: Option<String>,
/// 规格族。
#[serde(rename = "ClassGroup")]
pub class_group: Option<String>,
/// 实例规格对应的CPU核数。单位:个。
#[serde(rename = "Cpu")]
pub cpu: Option<String>,
/// 存储类型,取值:
/// * **local_ssd**:本地SSD盘
/// * **cloud_ssd**:SSD云盘
/// * **cloud_essd**:ESSD PL1云盘
/// * **cloud_essd2**:ESSD PL2云盘
/// * **cloud_essd3**:ESSD PL3云盘
#[serde(rename = "DBInstanceStorageType")]
pub db_instance_storage_type: Option<String>,
/// 架构。
#[serde(rename = "InstructionSetArch")]
pub instruction_set_arch: Option<String>,
/// 最大连接数。
#[serde(rename = "MaxConnections")]
pub max_connections: Option<String>,
/// 实例规格对应的最大IO带宽。单位:Mbps。
#[serde(rename = "MaxIOMBPS")]
pub max_iombps: Option<String>,
/// 实例规格对应的最大IOPS。单位:次/秒。
#[serde(rename = "MaxIOPS")]
pub max_iops: Option<String>,
/// 内存容量。单位:GB。
#[serde(rename = "MemoryClass")]
pub memory_class: Option<String>,
/// 价格。
///
/// <props="china">单位:分(人民币)。</props>
/// <props="intl">单位:美分(美元)。</props>
///
/// >* CommodityCode参数中传入按量付费的商品Code时,显示为每小时的价格。
/// >* CommodityCode参数中传入包年包月的商品Code时,显示为每月的价格。
#[serde(rename = "ReferencePrice")]
pub reference_price: Option<String>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
///
/// Return value of [Connection::describe_kms_associate_resources()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DescribeKmsAssociateResourcesResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 关联的RDS实例信息列表。
#[serde(rename = "AssociateDBInstances")]
#[serde(default)]
pub associate_db_instances: Vec<BInstance>,
/// 是否存在关联的RDS实例。
///
/// - **true**:是。
/// - **false**:否。
#[serde(rename = "AssociateStatus")]
pub associate_status: Option<bool>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
/// Return value of [Connection::describe_rc_snapshots()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DescribeRCSnapshotsResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 快照信息列表。
#[serde(rename = "Snapshots")]
#[serde(default)]
pub snapshots: Vec<ResponseSnapshot>,
/// 页码。
#[serde(rename = "PageNumber")]
pub page_number: Option<i64>,
/// 每页记录数。
#[serde(rename = "PageSize")]
pub page_size: Option<i64>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
/// 总记录数。
#[serde(rename = "TotalCount")]
pub total_count: Option<i64>,
}
/// Return value of [Connection::detach_rc_disk()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DetachRCDiskResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
/// 调用该接口时,您需要注意:
/// - 如果指定的快照ID不存在,请求将被忽略。
/// - 如果快照已经被用于创建自定义镜像,将不能执行删除操作。您需要先删除已创建的自定义镜像,才能继续删除快照。
/// - 如果快照已经被用于创建云盘,且未设置`Force`参数或`Force=false`时,不能直接删除快照。如果您确定要删除快照,请设置`Force=true`进行强制删除,快照被强制删除后对应的云盘将不能执行重新初始化。
///
/// Return value of [Connection::delete_rc_snapshot()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DeleteRCSnapshotResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
/// 以下场景中,您无法为指定的云盘创建快照:
/// - 云盘保留的手动快照数达到了256份。
/// - 上份快照还未完成创建。
/// - 云盘挂载的实例从未启动过。
/// - 云盘挂载的实例未处于**已停止**(Stopped)或者**运行中**(Running)状态。
///
/// 创建快照时,您需要注意:
///
/// - 如果创建快照还未完成,这份快照无法用于创建自定义镜像(CreateImage)。
/// - 如果云盘已挂载到RDS Custom实例上,创建快照期间请勿变更实例状态。
/// - 支持对处于**已过期**(Expired)状态的云盘创建快照。若创建快照时云盘正好达到过期释放时间,云盘被释放的同时也会删除创建中(Creating)的快照。
///
/// Return value of [Connection::create_rc_snapshot()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct CreateRCSnapshotResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
/// 快照ID。
#[serde(rename = "SnapshotId")]
pub snapshot_id: Option<String>,
}
/// Return value of [Connection::describe_rc_disks()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DescribeRCDisksResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 磁盘信息例表。
#[serde(rename = "Disks")]
#[serde(default)]
pub disks: Vec<ResponseDisk>,
/// 页码。
#[serde(rename = "PageNumber")]
pub page_number: Option<i64>,
/// 每页记录数。
#[serde(rename = "PageSize")]
pub page_size: Option<i64>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
/// 总记录数。
#[serde(rename = "TotalCount")]
pub total_count: Option<i64>,
}
/// 调用该接口时,您需要注意:
/// - 您的磁盘手动快照会被保留。
/// - 释放磁盘时,云盘的状态必须为待挂载(Available)。
/// - 如果指定ID的磁盘不存在,请求将被忽略。
///
/// Return value of [Connection::delete_rc_disk()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DeleteRCDiskResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
/// 调用该接口时,您需要注意:
/// - 磁盘的状态必须为待挂载(Available)。
/// - 挂载数据盘时:
/// - 目标RDS Custom实例必须处于运行中(Running)或者已停止(Stopped)状态。
/// - 如果是您单独购买的磁盘,计费方式必须是按量付费。
/// - 从RDS Custom实例上卸载的系统盘作为数据盘挂载时,不限制计费方式。
/// - 弹性临时盘一旦卸载,只能重新挂载至其原始实例。
/// - 挂载系统盘时:
/// - 目标RDS Custom实例必须是卸载系统盘时的源实例。
/// - 目标RDS Custom实例必须处于已停止(Stopped)状态。
/// - 您必须设置实例登录凭证。
/// - 弹性临时盘不支持挂载为系统盘。
///
/// Return value of [Connection::attach_rc_disk()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct AttachRCDiskResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
/// KubeConfig用于在客户端配置ACK集群的访问凭据,包含访问目标集群的身份和认证数据等信息。使用kubectl管理集群时,您需要通过KubeConfig来连接。请妥善管理集群的KubeConfig凭据,并在无需使用凭据时及时完成吊销,避免KubeConfig泄露带来的数据泄露等安全风险。
///
/// Return value of [Connection::describe_rc_cluster_config()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DescribeRCClusterConfigResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
/// 集群访问配置。
#[serde(rename = "Config")]
pub config: Option<String>,
/// KubeConfig 的过期时间。格式:RFC3339格式的UTC时间。
#[serde(rename = "Expiration")]
pub expiration: Option<String>,
}
/// Return value of [Connection::attach_rc_instances()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct AttachRCInstancesResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
/// 返回结果。
#[serde(rename = "Responses")]
#[serde(default)]
pub responses: Vec<ResponseResponse>,
/// 任务ID。
#[serde(rename = "TaskId")]
pub task_id: Option<String>,
}
/// Return value of [Connection::delete_rc_cluster_nodes()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DeleteRCClusterNodesResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
/// 任务ID。
#[serde(rename = "TaskId")]
pub task_id: Option<String>,
}
/// 开启原生复制功能的RDS MySQL实例需满足:
/// - 引擎版本:MySQL 5.7
/// - 产品系列:基础系列
/// - 计费方式:按量付费或包年包月
/// - 内核版本:大于等于20240930
///
/// 关于原生复制的更多信息,请参见[RDS原生复制](~~2856530~~)。
///
/// Return value of [Connection::modify_db_instance_replication_switch()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct ModifyDBInstanceReplicationSwitchResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
/// ### 适用引擎
/// RDS MySQL
///
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
/// [RDS MySQL原生复制实例](~~2856487~~)
///
/// Return value of [Connection::describe_db_instance_replication()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DescribeDBInstanceReplicationResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
/// 开启或关闭原生复制模式,返回值如下:
/// - **ON**:开启。
/// - **OFF**:关闭。
#[serde(rename = "ExternalReplication")]
pub external_replication: Option<String>,
/// 原生复制的复制源。
#[serde(rename = "ReplicationSource")]
pub replication_source: Option<String>,
/// 当前复制状态,返回值如下:
///
/// - **Running**:运行中
/// - **Connecting**:正在连接
/// - **Stopped**:已停止
/// - **Error**:错误
#[serde(rename = "ReplicationState")]
pub replication_state: Option<String>,
/// 当前复制延迟(单位:秒)。
#[serde(rename = "ReplicationDelay")]
pub replication_delay: Option<String>,
/// 复制报错信息。
#[serde(rename = "ReplicationErrorMessage")]
pub replication_error_message: Option<String>,
/// 复制端IP
#[serde(rename = "ReplicationIp")]
pub replication_ip: Option<String>,
/// 复制端端口
#[serde(rename = "ReplicationPort")]
pub replication_port: Option<String>,
/// 已执行的全局事务标识符
#[serde(rename = "GtidExecuted")]
pub gtid_executed: Option<String>,
/// 导入状态,是否成功导入全量数据
#[serde(rename = "ImportStatus")]
pub import_status: Option<String>,
}
/// Return value of [Connection::migrate_db_nodes()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct MigrateDBNodesResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// Id of the request
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
/// 实例ID。
#[serde(rename = "DBInstanceId")]
pub db_instance_id: Option<String>,
/// 表示请求是否成功,各取值含义如下:
///
/// - **true**:成功
/// - **false**:失败
#[serde(rename = "Success")]
pub success: Option<bool>,
}
/// 适用引擎:
/// * RDS PostgreSQL
///
/// Return value of [Connection::switch_over_major_version_upgrade()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct SwitchOverMajorVersionUpgradeResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// Id of the request
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS SQL Server
///
/// ### 相关功能文档
///
/// - [RDS Custom for MySQL简介](~~2844223~~)
/// - [RDS Custom for SQL Server简介](~~2864363~~)
///
/// ### 注意事项
/// 如果RDS Custom实例开启了公网IP,绑定EIP后,已开启的公网IP会自动释放。
///
/// Return value of [Connection::associate_eip_address_with_rc_instance()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct AssociateEipAddressWithRCInstanceResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
/// ### 适用引擎
/// RDS SQL Server
///
/// ### 相关功能文档
/// [RDS Custom简介](~~2864363~~)
///
/// > 一个[DDoS原生防护](~~63643~~)实例包含一个或者多个公网IP资产的场景下,您可以调用本接口查询当前阿里云账号下RDS Custom for SQL Server实例的DDos防护信息及所属原生防护实例的详情,例如DDoS基础防护阈值、流量清洗阈值、公网IP资产的DDoS防护状态、实例ID、实例的防护状态等。
///
/// Return value of [Connection::describe_rc_instance_ip_address()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DescribeRCInstanceIpAddressResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
/// 查询到的公网IP资产的总数量。
#[serde(rename = "Total")]
pub total: Option<String>,
/// 公网IP资产所属实例的详情列表。
#[serde(rename = "RCInstanceList")]
#[serde(default)]
pub rc_instance_list: Vec<InstanceList>,
}
/// ### 适用引擎
/// RDS SQL Server
///
/// ### 相关功能文档
/// [RDS Custom简介](~~2864363~~)
///
/// <props="china">
///
/// > DDoS攻击,全称为分布式拒绝服务攻击(Distributed Denial of Service attack),是一种常见的网络安全攻击方式。这种攻击形式主要通过恶意流量消耗网络或网络设备的资源,从而导致网站无法正常运行或在线服务无法正常提供。发生DDoS攻击的原因,常见的DDoS攻击类型,识别和防护DDoS攻击的方法,请参见[DDoS攻击](https://www.aliyun.com/getting-started/what-is/what-is-ddos)。</props>
///
/// Return value of [Connection::describe_rc_instance_ddos_count()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DescribeRCInstanceDdosCountResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
/// 正在遭受DDoS攻击的实例数量详情。
#[serde(rename = "DdosCount")]
pub ddos_count: Option<DdosCount>,
}
/// Return value of [Connection::stop_rc_instance()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct StopRCInstanceResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
/// 释放后,实例所使用的物理资源都被回收,相关数据全部丢失且不可恢复。
///
/// Return value of [Connection::delete_rc_instances()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DeleteRCInstancesResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
/// - 在创建RDS Custom实例前,请先提交工单,申请将阿里云账号加入白名单。
/// - 仅支持创建包年包月类型的RDS Custom实例。
/// - 支持的地域为北京、上海、深圳和杭州。
///
/// Return value of [Connection::run_rc_instances()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct RunRCInstancesResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
#[serde(rename = "InstanceIdSets")]
pub instance_id_sets: Option<IdSets>,
/// 订单ID。
#[serde(rename = "OrderId")]
pub order_id: Option<String>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
/// ### 注意事项
/// - 请确保在使用该接口前,您已充分了解的RDS Custom的包年包月、按量付费等计费方式和价格。
/// - 请确保目标实例的状态为运行中(**Running**)或者已暂停(**Stopped**),并且账号无欠费。
/// - 确保云盘状态为使用中(**In_use**),且操作前15分钟内未成功修改过云盘计费方式。
///
/// - 更换计费方式后,默认自动扣费。请确保账户余额充足,否则会生成异常订单,此时只能作废订单。
///
/// ### 使用须知
/// 请参照对应的功能文档:
/// - [变更实例的计费方式](~~2878542~~)
/// - [变更云盘的计费方式](~~2878547~~)
///
/// Return value of [Connection::modify_rc_instance_charge_type()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct ModifyRCInstanceChargeTypeResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 预留参数,暂不支持。
#[serde(rename = "FeeOfInstances")]
#[serde(default)]
pub fee_of_instances: Vec<OfInstance>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
/// 实例ID列表。
#[serde(rename = "InstanceIds")]
#[serde(default)]
pub instance_ids: Vec<String>,
/// 到期时间。
/// >如果变更为按量付费,该参数不返回。
#[serde(rename = "ExpiredTime")]
#[serde(default)]
pub expired_time: Vec<String>,
/// 付费类型。
/// - **POSTPAY**:按量付费
/// - **PREPAY**:包年包月
#[serde(rename = "ChargeType")]
pub charge_type: Option<String>,
/// 订单ID。
#[serde(rename = "OrderId")]
pub order_id: Option<String>,
}
/// Return value of [Connection::start_rc_instance()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct StartRCInstanceResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
/// Return value of [Connection::describe_rc_instance_attribute()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DescribeRCInstanceAttributeResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 实例所在的集群ID。
/// >该参数即将被弃用,为提高兼容性,请尽量使用其他参数。
#[serde(rename = "ClusterId")]
pub cluster_id: Option<String>,
/// vCPU数。
#[serde(rename = "Cpu")]
pub cpu: Option<i32>,
/// 实例创建时间。以 ISO 8601 为标准,并使用 UTC+0 时间,格式为 yyyy-MM-ddTHH:mmZ。
#[serde(rename = "CreationTime")]
pub creation_time: Option<String>,
/// 突发性能实例的运行模式。
#[serde(rename = "CreditSpecification")]
pub credit_specification: Option<String>,
#[serde(rename = "DataDisks")]
pub data_disks: Option<DataDisks>,
/// 专有宿主机属性数组。
#[serde(rename = "DedicatedHostAttribute")]
pub dedicated_host_attribute: Option<HostAttribute>,
#[serde(rename = "Tags")]
pub tags: Option<ResponseTags>,
/// 部署集ID。
#[serde(rename = "DeploymentSetId")]
pub deployment_set_id: Option<String>,
/// 实例描述。
#[serde(rename = "Description")]
pub description: Option<String>,
/// 备用参数。
#[serde(rename = "DiskType")]
pub disk_type: Option<String>,
/// 对应的ECS实例规格族。
#[serde(rename = "EcsInstanceType")]
pub ecs_instance_type: Option<String>,
/// 弹性公网IP绑定信息。
#[serde(rename = "EipAddress")]
pub eip_address: Option<EipAddress>,
/// 实例是否开启了Jumbo frame特性。 可能值:
///
/// - **true**:开启。
///
/// - **false**:不开启。
#[serde(rename = "EnableJumboFrame")]
pub enable_jumbo_frame: Option<bool>,
/// 到期时间。以 ISO 8601 为标准,并使用 UTC+0 时间,格式为 yyyy-MM-ddTHH:mmZ。
#[serde(rename = "ExpiredTime")]
pub expired_time: Option<String>,
/// 实例主机名。
#[serde(rename = "HostName")]
pub host_name: Option<String>,
/// 主机存储类型。取值:
/// * **dhg_cloud_ssd**:ESSD云盘。
/// * **dhg_local_ssd**:本地SSD盘。
#[serde(rename = "HostType")]
pub host_type: Option<String>,
/// 实例运行的镜像ID。
#[serde(rename = "ImageId")]
pub image_id: Option<String>,
#[serde(rename = "InnerIpAddress")]
pub inner_ip_address: Option<InnerIpAddress>,
/// 实例ID。
#[serde(rename = "InstanceId")]
pub instance_id: Option<String>,
/// 实例名称。
#[serde(rename = "InstanceName")]
pub instance_name: Option<String>,
/// 网络类型。取值范围:
///
/// - **classic**:经典网络。
/// - **vpc**:专有网络VPC。
#[serde(rename = "InstanceNetworkType")]
pub instance_network_type: Option<String>,
/// 实例规格。
#[serde(rename = "InstanceType")]
pub instance_type: Option<String>,
/// 公网带宽计费方式。可能值:
///
/// - **PayByBandwidth**:按固定带宽计费。
/// - **PayByTraffic**:按使用流量计费。
///
/// > **按使用流量计费**模式下的出入带宽峰值都是带宽上限,不作为业务承诺指标。当出现资源争抢时,带宽峰值可能会受到限制。如果您的业务需要有带宽的保障,请使用**按固定带宽计费**模式。
#[serde(rename = "InternetChargeType")]
pub internet_charge_type: Option<String>,
/// 公网入带宽最大值,单位:Mbit/s。
#[serde(rename = "InternetMaxBandwidthIn")]
pub internet_max_bandwidth_in: Option<i32>,
/// 公网出带宽最大值,单位:Mbit/s。
#[serde(rename = "InternetMaxBandwidthOut")]
pub internet_max_bandwidth_out: Option<i32>,
/// 是否为I/O优化实例。
///
/// - **optimized**:I/O优化。
/// - **none**:非IO优化。
#[serde(rename = "IoOptimized")]
pub io_optimized: Option<String>,
/// 密钥对的名称。
#[serde(rename = "KeyPairName")]
pub key_pair_name: Option<String>,
/// 内存大小,单位MiB。
#[serde(rename = "Memory")]
pub memory: Option<i32>,
#[serde(rename = "OperationLocks")]
pub operation_locks: Option<OperationLocks>,
#[serde(rename = "PublicIpAddress")]
pub public_ip_address: Option<PublicIpAddress>,
/// 地域ID。
#[serde(rename = "RegionId")]
pub region_id: Option<String>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
#[serde(rename = "SecurityGroupIds")]
pub security_group_ids: Option<GroupIds>,
/// 实例序列号。
#[serde(rename = "SerialNumber")]
pub serial_number: Option<String>,
/// 实例状态。取值范围:
///
/// - **Pending**:创建中。
/// - **Running**:运行中。
/// - **Starting**:启动中。
/// - **Stopping**:暂停中。
/// - **Stopped**:已暂停。
#[serde(rename = "Status")]
pub status: Option<String>,
/// 实例停机后是否继续收费。可能值:
///
/// - **KeepCharging**:停机后继续收费,为您继续保留库存资源。
/// - **StopCharging**:停机后不收费。停机后,我们释放实例对应的资源,例如vCPU、内存和公网IP等资源。重启是否成功依赖于当前地域中是否仍有资源库存。
/// - **Not-applicable**:本实例不支持停机不收费功能。
#[serde(rename = "StoppedMode")]
pub stopped_mode: Option<String>,
/// 实例的VLAN ID。
/// >该参数即将被弃用,为提高兼容性,请尽量使用其他参数。
#[serde(rename = "VlanId")]
pub vlan_id: Option<String>,
/// 专有网络VPC属性。
#[serde(rename = "VpcAttributes")]
pub vpc_attributes: Option<ResponseVpcAttributes>,
/// 可用区ID。
#[serde(rename = "ZoneId")]
pub zone_id: Option<String>,
/// 资源组ID。
#[serde(rename = "ResourceGroupId")]
pub resource_group_id: Option<String>,
/// 付费类型,取值:
/// * **PrePaid**:包年包月
/// * **PostPaid**:按量付费
#[serde(rename = "InstanceChargeType")]
pub instance_charge_type: Option<String>,
/// 数据库类型。取值:
///
/// - **mssql**:SQL Server
/// - **mysql**:MySQL
#[serde(rename = "DbType")]
pub db_type: Option<String>,
/// 按量付费实例的竞价策略。取值范围:
///
/// - **NoSpot**:正常按量付费实例。
/// - **SpotAsPriceGo**:系统自动出价,跟随当前市场实际价格。
#[serde(rename = "SpotStrategy")]
pub spot_strategy: Option<String>,
/// 系统盘规格。
#[serde(rename = "SystemDisk")]
pub system_disk: Option<ResponseSystemDisk>,
/// 是否加入了ACK集群。取值:
///
/// - **1**:是
/// - **0**:否
#[serde(rename = "CreateMode")]
pub create_mode: Option<i32>,
/// 实例是否自动续费,取值:
///
/// * **true**:是
/// * **false**:否
#[serde(rename = "AutoRenew")]
pub auto_renew: Option<bool>,
/// 是否开启释放保护功能。取值:
/// * **true**:开启
/// * **false**:关闭
#[serde(rename = "DeletionProtection")]
pub deletion_protection: Option<bool>,
/// GPU数量。
#[serde(rename = "Gpu")]
pub gpu: Option<i32>,
/// GPU类型。
#[serde(rename = "GpuTypes")]
pub gpu_types: Option<String>,
/// 节点类型。返回**rds_vnode**时,表示该节点是容器节点。
#[serde(rename = "NodeType")]
pub node_type: Option<String>,
/// 实例的自定义数据,格式为base64加密字符串。
///
/// > 如果实例不存在自定义数据,则返回空字符串。
#[serde(rename = "UserData")]
pub user_data: Option<String>,
}
/// 本地盘实例不支持变更存储空间。
///
/// Return value of [Connection::resize_rc_instance_disk()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct ResizeRCInstanceDiskResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 订单ID。
#[serde(rename = "OrderId")]
pub order_id: Option<i64>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
/// 请确保在使用该接口前,您已充分了解RDS Custom实例的计费方式、产品定价以及降配退款规则。
///
/// 调用该接口时,您需要注意:
/// - 已过期实例无法修改实例规格,您可以续费后重新操作。
/// - 当前仅支持**标准版云盘实例**变更实例规格。
/// - 升级或降低实例规格时,您需要注意:
/// - 实例必须处于**运行中**(Running)或**已暂停**(Stopped)状态。
/// - 降低前后的实例规格价格差退款会退还到您的原付费方式中,已使用的代金券不退回。
///
/// Return value of [Connection::modify_rc_instance()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct ModifyRCInstanceResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 订单ID。
#[serde(rename = "OrderId")]
pub order_id: Option<i64>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
/// Return value of [Connection::delete_rc_deployment_set()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DeleteRCDeploymentSetResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
/// Return value of [Connection::describe_rc_metric_list()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DescribeRCMetricListResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 监控数据列表。
#[serde(rename = "Datapoints")]
pub datapoints: Option<String>,
/// 分页游标标识。
#[serde(rename = "NextToken")]
pub next_token: Option<String>,
/// 监控数据的统计周期。
#[serde(rename = "Period")]
pub period: Option<String>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
/// 请求是否成功,返回值:
///
/// - **true**:请求成功。
/// - **false**:请求失败。
#[serde(rename = "Success")]
pub success: Option<bool>,
}
/// Return value of [Connection::describe_rc_instances()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DescribeRCInstancesResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
/// 分页页码。
#[serde(rename = "PageNumber")]
pub page_number: Option<i32>,
/// 分页每页大小。
#[serde(rename = "PageSize")]
pub page_size: Option<i32>,
/// 总记录数。
#[serde(rename = "TotalCount")]
pub total_count: Option<i32>,
/// 实例信息。
#[serde(rename = "RCInstances")]
#[serde(default)]
pub rc_instances: Vec<CInstance>,
}
/// Return value of [Connection::describe_rc_image_list()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DescribeRCImageListResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
/// 镜像总数。
#[serde(rename = "TotalCount")]
pub total_count: Option<i32>,
/// 分页页码。
#[serde(rename = "PageNumber")]
pub page_number: Option<i32>,
/// 每页记录数。
#[serde(rename = "PageSize")]
pub page_size: Option<i32>,
/// 地域ID。
#[serde(rename = "RegionId")]
pub region_id: Option<String>,
/// 镜像信息。
#[serde(rename = "Images")]
#[serde(default)]
pub images: Vec<ResponseImage>,
}
/// Return value of [Connection::modify_rc_instance_description()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct ModifyRCInstanceDescriptionResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
/// - 支持的磁盘类型:高效云盘、SSD云盘、ESSD云盘、高性能云盘(默认)。
/// - 磁盘付费类型为包年包月(**Prepaid**)时,必须传入一个挂载此磁盘的包年包月的实例ID(**InstanceId**),此磁盘的到期时间与挂载磁盘的实例保持一致。
/// - 支持单独创建按量付费(**Postpaid**)的磁盘,无需挂载到实例上。您也可以根据需要在创建时将其挂载到任意付费类型的实例上。
/// - 不同规格实例支持挂载的磁盘类型和数量不同。
///
/// Return value of [Connection::create_rc_disk()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct CreateRCDiskResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 云盘ID。
#[serde(rename = "DiskId")]
pub disk_id: Option<String>,
/// 订单ID。
#[serde(rename = "OrderId")]
pub order_id: Option<String>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
/// - 实例的状态必须为已暂停(Stopped)状态。
/// - 重装系统将丢失原系统盘上的数据,请谨慎操作。
///
/// Return value of [Connection::replace_rc_instance_system_disk()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct ReplaceRCInstanceSystemDiskResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
/// VNC 登录地址存在时效性,有效期为15秒,调用接口成功后如果15秒内不使用该链接,该地址会自动失效,您需要重新调用接口获取。
///
/// Return value of [Connection::describe_rc_instance_vnc_url()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DescribeRCInstanceVncUrlResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
/// VNC登录地址。
///
///
/// ><notice>VNC 登录地址存在时效性,有效期为15秒,调用接口成功后如果15秒内不使用该链接,该地址会自动失效,您需要重新调用接口获取。></notice>
#[serde(rename = "LoginUrl")]
pub login_url: Option<String>,
}
/// Return value of [Connection::describe_rc_node_pool()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DescribeRCNodePoolResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
/// 节点池信息列表。
#[serde(rename = "NodePoolList")]
#[serde(default)]
pub node_pool_list: Vec<PoolList>,
}
/// Return value of [Connection::create_rc_node_pool()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct CreateRCNodePoolResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
/// 实例ID列表。
#[serde(rename = "InstanceIdSets")]
#[serde(default)]
pub instance_id_sets: Vec<String>,
/// 订单ID。
#[serde(rename = "OrderId")]
pub order_id: Option<String>,
/// 节点池ID。
#[serde(rename = "NodePoolId")]
pub node_pool_id: Option<String>,
}
/// Return value of [Connection::renew_rc_instance()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct RenewRCInstanceResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// RDS Custom实例ID。
#[serde(rename = "DBInstanceId")]
pub db_instance_id: Option<String>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
/// 订单ID。
#[serde(rename = "OrderIds")]
pub order_ids: Option<String>,
/// 订单ID。
#[serde(rename = "OrderId")]
pub order_id: Option<String>,
}
/// Return value of [Connection::authorize_rc_security_group_permission()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct AuthorizeRCSecurityGroupPermissionResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
/// Return value of [Connection::describe_history_events_stat()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DescribeHistoryEventsStatResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 事件列表。
#[serde(rename = "Items")]
#[serde(default)]
pub items: Vec<EventsStatResponseItem>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
/// Return value of [Connection::describe_history_events()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DescribeHistoryEventsResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 事件列表。
#[serde(rename = "Items")]
#[serde(default)]
pub items: Vec<EventsResponseItem>,
/// 页码。
#[serde(rename = "PageNumber")]
pub page_number: Option<i32>,
/// 每页记录数。
#[serde(rename = "PageSize")]
pub page_size: Option<i32>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
/// 总记录数。
#[serde(rename = "TotalCount")]
pub total_count: Option<i32>,
}
/// Return value of [Connection::modify_event_info()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct ModifyEventInfoResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 错误代码。
#[serde(rename = "ErrorCode")]
pub error_code: Option<String>,
/// 错误id。
#[serde(rename = "ErrorEventId")]
pub error_event_id: Option<String>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
/// 成功记录数。
#[serde(rename = "SuccessCount")]
pub success_count: Option<i32>,
/// 成功事件id。
#[serde(rename = "SuccessEventId")]
pub success_event_id: Option<String>,
}
/// Return value of [Connection::describe_history_tasks_stat()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DescribeHistoryTasksStatResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 任务信息列表。
#[serde(rename = "Items")]
#[serde(default)]
pub items: Vec<TasksStatResponseItem>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
/// - RDS SQL Server
///
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
///
/// - [RDS MySQL任务列表](~~474275~~)
/// - [RDS PostrgreSQL任务列表](~~474537~~)
/// - [RDS SQL Server任务列表](~~614826~~)
///
/// Return value of [Connection::describe_history_tasks()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DescribeHistoryTasksResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 任务列表。
#[serde(rename = "Items")]
#[serde(default)]
pub items: Vec<HistoryTasksResponseItem>,
/// 查询结果的页码。
#[serde(rename = "PageNumber")]
pub page_number: Option<i32>,
/// 每页记录数。
#[serde(rename = "PageSize")]
pub page_size: Option<i32>,
/// 请求唯一ID,如果遇到问题请提供这个请求ID,由工作人员为您排查。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
/// 不考虑分页因素,满足这些限制条件的总任务数。
#[serde(rename = "TotalCount")]
pub total_count: Option<i32>,
}
/// Return value of [Connection::modify_task_info()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct ModifyTaskInfoResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 错误代码。
#[serde(rename = "ErrorCode")]
pub error_code: Option<String>,
/// 失败的任务ID,遇到一个失败即返回。
#[serde(rename = "ErrorTaskId")]
pub error_task_id: Option<String>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
/// 成功任务数。
#[serde(rename = "SuccessCount")]
pub success_count: Option<String>,
}
///
///
/// Return value of [Connection::describe_tasks()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DescribeTasksResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
#[serde(rename = "Items")]
pub items: Option<DescribeTasksResponseItems>,
/// 页码。
#[serde(rename = "PageNumber")]
pub page_number: Option<i32>,
/// 本页记录个数。
#[serde(rename = "PageRecordCount")]
pub page_record_count: Option<i32>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
/// 总记录数。
#[serde(rename = "TotalRecordCount")]
pub total_record_count: Option<i32>,
}
/// Return value of [Connection::create_youhui_for_order()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct CreateYouhuiForOrderResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
/// 优惠券ID。
#[serde(rename = "YouhuiId")]
pub youhui_id: Option<String>,
}
/// Return value of [Connection::describe_current_modify_order()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DescribeCurrentModifyOrderResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 变配订单
#[serde(rename = "ModifyOrder")]
#[serde(default)]
pub modify_order: Vec<ModifyOrder>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
/// Return value of [Connection::describe_custins_resource_info()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DescribeCustinsResourceInfoResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 返回数据。
#[serde(rename = "Data")]
#[serde(default)]
pub data: Vec<InfoResponseData>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
/// Return value of [Connection::describe_db_instance_connectivity()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DescribeDBInstanceConnectivityResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 连接诊断错误码。取值范围如下:
/// * **SRC_IP_NOT_IN_USER_WHITELIST**:源IP地址没有加入白名单。
/// * **CONNECTION_ABNORMAL**:连接正常。
#[serde(rename = "ConnCheckErrorCode")]
pub conn_check_error_code: Option<String>,
/// 连接诊断错误信息。
#[serde(rename = "ConnCheckErrorMessage")]
pub conn_check_error_message: Option<String>,
/// 连接诊断结果。取值范围如下:
/// * **Success**
/// * **Failed**
#[serde(rename = "ConnCheckResult")]
pub conn_check_result: Option<String>,
/// 实例ID。
#[serde(rename = "DbInstanceName")]
pub db_instance_name: Option<String>,
/// Id of the request
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
/// Return value of [Connection::describe_host_group_elastic_strategy_parameters()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DescribeHostGroupElasticStrategyParametersResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 实例的当前cpu使用率。单位:%。
#[serde(rename = "CpuShar")]
pub cpu_shar: Option<i32>,
/// 实例的cpu使用量。单位:核
#[serde(rename = "CpuZoom")]
pub cpu_zoom: Option<i32>,
/// io请求次数。
#[serde(rename = "IopsZoom")]
pub iops_zoom: Option<i32>,
/// 实例规格的最大并发连接数。
#[serde(rename = "MaxConnZoom")]
pub max_conn_zoom: Option<i32>,
/// 当前专属集群中实例的内存总量。单位:mb。
#[serde(rename = "MemoryZoom")]
pub memory_zoom: Option<i32>,
/// 请求id。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
/// Return value of [Connection::describe_marketing_activity()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DescribeMarketingActivityResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 阿里云账号ID。
#[serde(rename = "AliUid")]
pub ali_uid: Option<i64>,
/// - 国内:26842
/// - 国际:26888
#[serde(rename = "Bid")]
pub bid: Option<String>,
/// 活动参数
#[serde(rename = "Items")]
#[serde(default)]
pub items: Vec<ActivityResponseItem>,
/// 地域ID。
#[serde(rename = "RegionId")]
pub region_id: Option<String>,
/// Id of the request
#[serde(rename = "RequestId")]
pub request_id: String,
}
/// Return value of [Connection::describe_quick_sale_config()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DescribeQuickSaleConfigResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// `商品code
///
/// - rds:包年包月
///
/// - bards:按量付费
#[serde(rename = "Commodity")]
pub commodity: Option<String>,
/// 商品配置详情
#[serde(rename = "Items")]
pub items: Option<crate::OpenObject>,
/// Id of the request
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
/// Return value of [Connection::describe_resource_details()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DescribeResourceDetailsResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 数据备份的占用空间(不包括归档备份),单位:Byte。
#[serde(rename = "BackupDataSize")]
pub backup_data_size: Option<i64>,
/// 备份日志大小,单位为Byte。
#[serde(rename = "BackupLogSize")]
pub backup_log_size: Option<i64>,
/// 备份大小,单位:MB。
#[serde(rename = "BackupSize")]
pub backup_size: Option<i64>,
/// 磁盘容量。
#[serde(rename = "DbInstanceStorage")]
pub db_instance_storage: Option<i64>,
/// 代理实例名称
#[serde(rename = "DbProxyInstanceName")]
pub db_proxy_instance_name: Option<String>,
/// 已用空间,由数据文件占用空间和日志占用空间组成,单位:Byte。-1表示没有数据。
#[serde(rename = "DiskUsed")]
pub disk_used: Option<i64>,
/// 实例存储类型
#[serde(rename = "InstanceStorageType")]
pub instance_storage_type: Option<String>,
/// rds白名单分组规格
#[serde(rename = "RdsEcsSecurityGroupRel")]
#[serde(default)]
pub rds_ecs_security_group_rel: Vec<GroupRel>,
/// 地域ID。
#[serde(rename = "Region")]
pub region: Option<String>,
/// Id of the request
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
/// 资源组ID。
#[serde(rename = "ResourceGroupId")]
pub resource_group_id: Option<String>,
/// 该实例的[IP白名单](~~43185~~)。多条记录请以半角逗号(,)隔开,不可重复,最多1000条记录。支持如下两种格式:
/// * IP地址形式,例如:10.10.XX.XX。
/// * CIDR形式,例如:10.10.XX.XX/24(无类域间路由,24表示了地址中前缀的长度,范围为1~32)。
///
/// 如不填则默认为原实例default分组白名单信息。
#[serde(rename = "SecurityIPList")]
pub security_ip_list: Option<String>,
/// 交换机ID。
///
/// > 与RDS实例需属于同一可用区。
#[serde(rename = "VSwitchId")]
pub v_switch_id: Option<String>,
/// VPC ID。
#[serde(rename = "VpcId")]
pub vpc_id: Option<String>,
}
/// Return value of [Connection::evaluate_local_extend_disk()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct EvaluateLocalExtendDiskResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 是否可用。取值:
///
/// - **true**:可用。
///
/// - **false**:不可用。
#[serde(rename = "Available")]
pub available: Option<String>,
/// 实例ID。
#[serde(rename = "DBInstanceId")]
pub db_instance_id: Option<String>,
/// 数据库实例传输类型
#[serde(rename = "DBInstanceTransType")]
pub db_instance_trans_type: Option<String>,
/// 本地盘最大值,单位:GB。
#[serde(rename = "LocalUpgradeDiskLimit")]
pub local_upgrade_disk_limit: Option<i64>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
/// Return value of [Connection::modify_custins_resource()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct ModifyCustinsResourceResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 请求id。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
/// 任务ID。
#[serde(rename = "TaskId")]
pub task_id: Option<i32>,
}
/// Return value of [Connection::pre_check_create_order_for_delete_db_nodes()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct PreCheckCreateOrderForDeleteDBNodesResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
#[serde(rename = "Failures")]
pub failures: Option<ResponseFailures>,
/// 预检结果。
#[serde(rename = "PreCheckResult")]
pub pre_check_result: Option<bool>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
/// Return value of [Connection::query_recommend_by_code()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct QueryRecommendByCodeResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 返回数据。
#[serde(rename = "Data")]
pub data: Option<String>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
/// 请求是否成功,返回值:
///
/// - **true**:请求成功。
/// - **false**:请求失败。
#[serde(rename = "Success")]
pub success: Option<bool>,
}
/// ### 适用引擎
/// RDS MySQL
///
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。
/// ></notice>
///
/// [RDS MySQL集群系列删除实例节点](~~464130~~)
///
/// Return value of [Connection::create_order_for_delete_db_nodes()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct CreateOrderForDeleteDBNodesResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 实例ID。
#[serde(rename = "DBInstanceId")]
pub db_instance_id: Option<String>,
/// 订单ID。
#[serde(rename = "OrderId")]
pub order_id: Option<i64>,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
/// 适用引擎:
/// * SQLServer(仅支持2016及更早版本)
///
/// Return value of [Connection::describe_sql_server_upgrade_versions()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DescribeSQLServerUpgradeVersionsResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
#[serde(rename = "Items")]
pub items: Option<VersionsResponseItems>,
/// 请求 ID
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
/// Return value of [Connection::describe_active_operation_maintain_conf()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DescribeActiveOperationMaintainConfResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 配置信息
#[serde(rename = "Config")]
pub config: Option<ResponseConfig>,
/// 是否配置过,首次访问hasConfig为0
/// * 1: 是
/// * 0: 否
#[serde(rename = "HasConfig")]
pub has_config: Option<i32>,
/// 请求ID
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
/// ## 请求说明
/// - 在使用此接口前,请确保已在 DAS 安全中心 开通列加密服务。
/// - 如果在调用接口时收到错误信息ColumnEncryptionErrorCode.NOT_PURCHASED,请前往 DAS(数据库自治服务)安全中心 购买并开通列加密服务后再使用。
///
/// Return value of [Connection::create_masking_rules()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct CreateMaskingRulesResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 返回数据
#[serde(rename = "Data")]
#[serde(default)]
pub data: std::collections::HashMap<String, String>,
/// 请求ID
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
/// 请求是否成功,返回值:
///
/// - **true**:成功
/// - **false**:失败
#[serde(rename = "Success")]
pub success: Option<String>,
}
/// ## 请求说明
/// - 在使用此接口前,请确保已在 DAS 安全中心 开通列加密服务。
/// - 如果在调用接口时收到错误信息ColumnEncryptionErrorCode.NOT_PURCHASED,请前往 DAS(数据库自治服务)安全中心 购买并开通列加密服务后再使用。
///
/// Return value of [Connection::modify_account_masking_privilege()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct ModifyAccountMaskingPrivilegeResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 返回数据
#[serde(rename = "Data")]
#[serde(default)]
pub data: std::collections::HashMap<String, String>,
/// 请求ID
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
/// 操作是否成功
#[serde(rename = "Success")]
pub success: Option<String>,
}
/// ## 请求说明
/// - 在使用此接口前,请确保已在 DAS 安全中心 开通列加密服务。
/// - 如果在调用接口时收到错误信息ColumnEncryptionErrorCode.NOT_PURCHASED,请前往 DAS(数据库自治服务)安全中心 购买并开通列加密服务后再使用。
///
/// Return value of [Connection::modify_masking_rules()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct ModifyMaskingRulesResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 返回数据
#[serde(rename = "Data")]
#[serde(default)]
pub data: std::collections::HashMap<String, String>,
/// 请求ID
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
/// 操作是否成功
#[serde(rename = "Success")]
pub success: Option<String>,
}
/// ## 请求说明
/// - 在使用此接口前,请确保已在 DAS 安全中心 开通列加密服务。
/// - 如果在调用接口时收到错误信息ColumnEncryptionErrorCode.NOT_PURCHASED,请前往 DAS(数据库自治服务)安全中心 购买并开通列加密服务后再使用。
///
/// Return value of [Connection::describe_masking_rules()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DescribeMaskingRulesResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 返回数据
#[serde(rename = "Data")]
pub data: Option<RulesResponseData>,
/// 请求ID
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
/// ## 请求说明
/// - 在使用此接口前,请确保已在 DAS 安全中心 开通列加密服务。
/// - 如果在调用接口时收到错误信息ColumnEncryptionErrorCode.NOT_PURCHASED,请前往 DAS(数据库自治服务)安全中心 购买并开通列加密服务后再使用。
///
/// Return value of [Connection::delete_masking_rules()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DeleteMaskingRulesResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 返回数据
#[serde(rename = "Data")]
#[serde(default)]
pub data: std::collections::HashMap<String, String>,
/// 请求ID
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
/// 操作是否成功
#[serde(rename = "Success")]
pub success: Option<String>,
}
/// ## 请求说明
/// - 在调用此接口前,请确保已在 DAS 安全中心 开通列加密服务。
/// - 如果在调用接口时收到错误信息ColumnEncryptionErrorCode.NOT_PURCHASED,请前往 DAS(数据库自治服务)安全中心 购买并开通列加密服务后再使用。
///
/// Return value of [Connection::describe_account_masking_privilege()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DescribeAccountMaskingPrivilegeResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 返回数据
#[serde(rename = "Data")]
pub data: Option<PrivilegeResponseData>,
/// 请求ID
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
///
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
///
/// - [RDS MySQL设置实例参数](~~96063~~)
/// - [RDS PostgreSQL设置实例参数](~~96751~~)
///
/// Return value of [Connection::delete_parameter_timed_schedule_task()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DeleteParameterTimedScheduleTaskResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
///
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
///
/// - [RDS MySQL设置实例参数](~~96063~~)
/// - [RDS PostgreSQL设置实例参数](~~96751~~)
///
/// Return value of [Connection::describe_parameter_timed_schedule_task()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DescribeParameterTimedScheduleTaskResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
/// 扫描任务列表。
#[serde(rename = "TaskList")]
#[serde(default)]
pub task_list: Vec<TaskList>,
}
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS PostgreSQL
///
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
///
/// - [RDS MySQL设置实例参数](~~96063~~)
/// - [RDS PostgreSQL设置实例参数](~~96751~~)
///
/// Return value of [Connection::modify_parameter_timed_schedule_task()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct ModifyParameterTimedScheduleTaskResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 请求 ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
/// ## 请求说明
/// - 在使用此接口前,请确保已在 DAS 安全中心 开通列加密服务。
/// - 如果在调用接口时收到错误信息ColumnEncryptionErrorCode.NOT_PURCHASED,请前往 DAS(数据库自治服务)安全中心 购买并开通列加密服务后再使用。
///
/// Return value of [Connection::describe_db_instance_cls()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DescribeDBInstanceCLSResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 请求ID
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
/// 自定义KMS主密钥 ID。
/// 说明
/// 仅当列加密密钥模式为kms_key时生效。如果不传入,则不变更当前数据库列加密密钥设置。
#[serde(rename = "EncryptionKey")]
pub encryption_key: Option<String>,
/// 列加密密钥模式。可以选择:
///
/// - client_key(在客户端侧配置用户自行生成的随机密钥)
/// - kms_key(使用阿里云KMS配置自定义密钥)
///
/// 说明
/// 一旦实例被设置成使用KMS配置密钥,将无法再使用客户端侧配置随机密钥的方式。
#[serde(rename = "EncryptionKeyMode")]
pub encryption_key_mode: Option<String>,
/// 加密使用的算法。可以选择:
///
/// - AES_128_CBC
/// - AES_128_GCM
/// - AES_128_CTR
/// - AES_128_ECB
/// - AES_256_CBC
/// - AES_256_GCM
/// - AES_256_CTR
/// - AES_256_ECB
/// - SM4_128_CBC
/// - SM4_128_GCM
/// - SM4_128_CTR
/// - SM4_128_ECB
#[serde(rename = "Algorithm")]
pub algorithm: Option<String>,
/// 是否启用白名单模式
#[serde(rename = "WhiteListMode")]
pub white_list_mode: Option<bool>,
}
/// ## 请求说明
/// - 在使用此接口前,请确保已在 DAS 安全中心 开通列加密服务。
/// - 如果在调用接口时收到错误信息,请前往 DAS(数据库自治服务)安全中心 购买并开通列加密服务后再使用。
///
/// Return value of [Connection::modify_db_instance_cls()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct ModifyDBInstanceCLSResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 请求ID
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
/// ### 适用引擎
///
/// - RDS MySQL
/// - RDS SQL Server
///
/// ### 相关功能文档
///
/// - [RDS Custom for MySQL简介](~~2844223~~)
/// - [RDS Custom for SQL Server简介](~~2864363~~)
///
/// ### 使用方法
///
/// - 方法一:通过**系统盘**产生的快照创建自定义镜像,传值时搭配SnapshotId和ImageName一起使用。
/// - 方法二:通过Custom实例创建自定义镜像,传值时搭配InstanceId和ImageName一起使用。
///
/// Return value of [Connection::create_rc_image()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct CreateRCImageResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
/// ### 适用引擎
///
/// - RDS MySQL
///
/// ### 相关功能文档
/// ><notice>使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。></notice>
///
/// - [RDS MySQL向量存储](~~2998661~~)
///
/// Return value of [Connection::modify_db_instance_vector_support_status()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct ModifyDBInstanceVectorSupportStatusResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
/// 查询导入任务预检查详情
///
/// Return value of [Connection::describe_import_task_validation()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DescribeImportTaskValidationResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// Id of the request
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
/// 表示请求是否成功,各取值含义如下:
///
/// - **true**:成功
/// - **false**:失败
#[serde(rename = "Success")]
pub success: Option<bool>,
/// 任务状态。参数无效。
#[serde(rename = "Status")]
pub status: Option<String>,
/// 任务详情。
#[serde(rename = "Detail")]
pub detail: Option<String>,
}
/// 查询导入任务详情
///
/// Return value of [Connection::describe_import_task()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct DescribeImportTaskResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
/// 任务ID
#[serde(rename = "TaskId")]
pub task_id: Option<i64>,
/// 任务名称。
#[serde(rename = "TaskName")]
pub task_name: Option<String>,
/// 任务状态
#[serde(rename = "Status")]
pub status: Option<String>,
/// 任务的详细信息
#[serde(rename = "Detail")]
pub detail: Option<String>,
/// 切换的目标灾备实例名称。
#[serde(rename = "TargetInstanceName")]
pub target_instance_name: Option<String>,
/// 任务类型,用于查询特定类型任务情况,如有多个用英文逗号分隔,最多支持30个,默认为空,表示不限制。
#[serde(rename = "TaskType")]
pub task_type: Option<String>,
/// 访问源IP地址。
#[serde(rename = "SourceIp")]
pub source_ip: Option<String>,
/// 源端MySQL端口
#[serde(rename = "SourcePort")]
pub source_port: Option<String>,
/// 账号名称。
#[serde(rename = "Account")]
pub account: Option<String>,
/// 内核版本号。
#[serde(rename = "DbVersion")]
pub db_version: Option<String>,
/// 源实例类别。
///
/// - **ECS**:阿里云ECS。
/// - **other**:其他。
#[serde(rename = "SourceCategory")]
pub source_category: Option<String>,
}
/// 创建数据导入任务,用于RDS MySQL原生复制实例数据导入
///
/// Return value of [Connection::create_import_task()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct CreateImportTaskResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// Id of the request
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
/// 导入任务ID
#[serde(rename = "TaskId")]
pub task_id: Option<String>,
}
/// RDS MySQL原生复制实例数据导入任务预检查
///
/// Return value of [Connection::validate_import_task()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct ValidateImportTaskResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// Id of the request
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
/// 预检查任务ID
#[serde(rename = "TaskId")]
pub task_id: Option<i64>,
}
/// 列表查询原生复制实例数据导入任务。
///
/// Return value of [Connection::list_import_tasks()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct ListImportTasksResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// Id of the request
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
/// 无
#[serde(rename = "Items")]
#[serde(default)]
pub items: Vec<ImportTasksResponseItem>,
/// 分页游标标识。
#[serde(rename = "NextToken")]
pub next_token: Option<String>,
/// 每页记录数。取值:**1~100**。
///
/// 默认值:**30**。
/// >传入该参数,则**PageSize**和**PageNumber**参数不可用。
#[serde(rename = "MaxResults")]
pub max_results: Option<i32>,
}
/// 修改RDS MySQL原生复制实例数据导入任务
///
/// Return value of [Connection::modify_import_task()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct ModifyImportTaskResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// 请求ID。
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
/// 任务ID。
#[serde(rename = "TaskId")]
pub task_id: Option<i64>,
/// 任务名称。
#[serde(rename = "TaskName")]
pub task_name: Option<String>,
/// 数据导入任务状态
#[serde(rename = "Status")]
pub status: Option<String>,
}
/// 您可以调用DiskId参数修改一个块存储设备的名称、描述、是否随实例释放等属性
///
/// Return value of [Connection::modify_rc_disk_attribute()].
#[derive(Debug, Default, serde::Deserialize)]
pub struct ModifyRCDiskAttributeResponse {
#[serde(flatten)]
pub code_message: crate::CodeMessage,
/// Id of the request
#[serde(rename = "RequestId")]
pub request_id: Option<String>,
}
crate::impl_to_code_message!(
TransformDBInstancePayTypeResponse,
ModifyDBInstancePayTypeResponse,
ModifyInstanceAutoRenewalAttributeResponse,
DescribePriceResponse,
DescribeRenewalPriceResponse,
DescribeInstanceAutoRenewalAttributeResponse,
RenewInstanceResponse,
DescribeDBInstancePromoteActivityResponse,
CreateDBInstanceResponse,
CreateDBInstanceForRebuildResponse,
DeleteDBInstanceResponse,
RestartDBInstanceResponse,
StopDBInstanceResponse,
StartDBInstanceResponse,
ModifyDBInstanceSpecResponse,
DestroyDBInstanceResponse,
ModifyDasInstanceConfigResponse,
MigrateToOtherZoneResponse,
ModifyDBInstanceDescriptionResponse,
ModifyDBInstanceMaintainTimeResponse,
ModifyResourceGroupResponse,
ModifyHADiagnoseConfigResponse,
ModifyAccountSecurityPolicyResponse,
DescribeSupportOnlineResizeDiskResponse,
DescribeAvailableZonesResponse,
DescribeAvailableClassesResponse,
DescribeDBInstanceAttributeResponse,
GetDBInstanceTopologyResponse,
DescribeDBInstancesResponse,
ListClassesResponse,
DescribeDBInstancesByExpireTimeResponse,
DescribeRegionsResponse,
CheckInstanceExistResponse,
DescribeHADiagnoseConfigResponse,
DescribeAnalyticdbByPrimaryDBInstanceResponse,
CheckCloudResourceAuthorizedResponse,
ReleaseInstanceConnectionResponse,
DescribeDBInstanceDetailResponse,
DescribeDBInstancesByPerformanceResponse,
DescribeDBInstancesForCloneResponse,
DescribeDBInstancesAsCsvResponse,
ModifyDBInstanceAutoUpgradeMinorVersionResponse,
DescribeUpgradeMajorVersionPrecheckTaskResponse,
DescribeUpgradeMajorVersionTasksResponse,
UpgradeDBInstanceEngineVersionResponse,
UpgradeDBInstanceKernelVersionResponse,
UpgradeDBInstanceMajorVersionPrecheckResponse,
UpgradeDBInstanceMajorVersionResponse,
AllocateInstancePublicConnectionResponse,
ReleaseInstancePublicConnectionResponse,
ModifyDBInstanceConnectionStringResponse,
ModifyDBInstanceNetworkExpireTimeResponse,
SwitchDBInstanceNetTypeResponse,
ModifyDBInstanceNetworkTypeResponse,
SwitchDBInstanceVpcResponse,
ModifyDBInstanceConfigResponse,
DescribeDBInstanceNetInfoResponse,
DescribeVSwitchesResponse,
ModifyDBInstanceHAConfigResponse,
ModifyHASwitchConfigResponse,
DescribeDBInstanceHAConfigResponse,
DescribeHASwitchConfigResponse,
SwitchDBInstanceHAResponse,
ModifyActionEventPolicyResponse,
DescribeEventsResponse,
DescribeActionEventPolicyResponse,
QueryNotifyResponse,
ConfirmNotifyResponse,
DescribeRdsResourceSettingsResponse,
CreateAccountResponse,
DeleteAccountResponse,
ModifyAccountCheckPolicyResponse,
ModifyAccountDescriptionResponse,
ModifyPGHbaConfigResponse,
DescribeAccountsResponse,
DescribeInstanceKeywordsResponse,
DescribePGHbaConfigResponse,
DescribeModifyPGHbaConfigLogResponse,
ResetAccountPasswordResponse,
LockAccountResponse,
UnlockAccountResponse,
GrantAccountPrivilegeResponse,
GrantOperatorPermissionResponse,
RevokeOperatorPermissionResponse,
RevokeAccountPrivilegeResponse,
ResetAccountResponse,
CheckAccountNameAvailableResponse,
CreateDatabaseResponse,
DeleteDatabaseResponse,
CopyDatabaseResponse,
ModifyDBDescriptionResponse,
ModifyDatabaseConfigResponse,
ModifyCollationTimeZoneResponse,
DescribeDatabasesResponse,
DescribeCollationTimeZonesResponse,
DescribeCharacterSetNameResponse,
CopyDatabaseBetweenInstancesResponse,
CheckDBNameAvailableResponse,
CreateReadOnlyDBInstanceResponse,
ModifyReadonlyInstanceDelayReplicationTimeResponse,
DescribeReadDBInstanceDelayResponse,
PrecheckDuckDBDependencyResponse,
CreateDBNodesResponse,
CreateDBInstanceEndpointResponse,
CreateDBInstanceEndpointAddressResponse,
DeleteDBNodesResponse,
DeleteDBInstanceEndpointResponse,
DeleteDBInstanceEndpointAddressResponse,
ModifyDBNodeResponse,
ModifyDBInstanceEndpointResponse,
ModifyDBInstanceEndpointAddressResponse,
DescribeDBInstanceEndpointsResponse,
CreateDBProxyEndpointAddressResponse,
DeleteDBProxyEndpointAddressResponse,
ModifyDBProxyResponse,
UpgradeDBProxyInstanceKernelVersionResponse,
ModifyDBProxyInstanceResponse,
ModifyDBProxyEndpointResponse,
ModifyDBProxyEndpointAddressResponse,
ModifyDbProxyInstanceSslResponse,
DescribeDBProxyResponse,
DescribeDBProxyEndpointResponse,
DescribeDBProxyPerformanceResponse,
GetDbProxyInstanceSslResponse,
ModifyReadWriteSplittingConnectionResponse,
DescribeDBInstanceProxyConfigurationResponse,
AllocateReadWriteSplittingConnectionResponse,
ReleaseReadWriteSplittingConnectionResponse,
CalculateDBInstanceWeightResponse,
AttachWhitelistTemplateToInstanceResponse,
CreateServiceLinkedRoleResponse,
DetachWhitelistTemplateToInstanceResponse,
ModifyWhitelistTemplateResponse,
DescribeSecurityGroupConfigurationResponse,
ModifySecurityGroupConfigurationResponse,
CreateDBInstanceSecurityGroupRuleResponse,
DescribeDBInstanceSecurityGroupRuleResponse,
ModifyDBInstanceSecurityGroupRuleResponse,
DeleteDBInstanceSecurityGroupRuleResponse,
ModifySecurityIpsResponse,
ModifyDBInstanceSSLResponse,
ModifyDBInstanceTDEResponse,
ModifyDTCSecurityIpHostsForSQLServerResponse,
ModifyDBInstanceDeletionProtectionResponse,
DescribeWhitelistTemplateLinkedInstanceResponse,
DescribeInstanceLinkedWhitelistTemplateResponse,
DescribeWhitelistTemplateResponse,
DescribeAllWhitelistTemplateResponse,
DescribeDBInstanceIPArrayListResponse,
DescribeDBInstanceSSLResponse,
DescribeDBInstanceTDEResponse,
DescribeDBInstanceEncryptionKeyResponse,
DescribeDBInstanceIpHostnameResponse,
DescribeDTCSecurityIpHostsForSQLServerResponse,
MigrateSecurityIPModeResponse,
DescribeSQLLogReportListResponse,
PurgeDBInstanceLogResponse,
DescribeSQLLogFilesResponse,
DescribeSlowLogsResponse,
DescribeSlowLogRecordsResponse,
DescribeErrorLogsResponse,
ModifySQLCollectorPolicyResponse,
ModifySQLCollectorRetentionResponse,
DescribeSQLCollectorPolicyResponse,
DescribeSQLLogRecordsResponse,
DescribeSQLCollectorRetentionResponse,
ModifyBackupSetExpireTimeResponse,
CreateBackupResponse,
DeleteBackupResponse,
DeleteBackupFileResponse,
ModifyBackupPolicyResponse,
DescribeBackupsResponse,
DescribeDetachedBackupsResponse,
DescribeBackupPolicyResponse,
DescribeBackupTasksResponse,
DescribeBinlogFilesResponse,
DescribeLogBackupFilesResponse,
DescribeBackupDatabaseResponse,
CreateTempDBInstanceResponse,
DescribeLocalAvailableRecoveryTimeResponse,
DescribeMetaListResponse,
RecoveryDBInstanceResponse,
CloneDBInstanceResponse,
RestoreTableResponse,
CreateDdrInstanceResponse,
ModifyInstanceCrossBackupPolicyResponse,
DescribeInstanceCrossBackupPolicyResponse,
DescribeCrossBackupMetaListResponse,
DescribeCrossRegionBackupsResponse,
DescribeCrossRegionLogBackupFilesResponse,
DescribeAvailableCrossRegionResponse,
DescribeAvailableRecoveryTimeResponse,
DescribeCrossRegionBackupDBInstanceResponse,
CheckCreateDdrDBInstanceResponse,
RestoreDdrTableResponse,
ModifyDBInstanceMonitorResponse,
ModifyDBInstanceMetricsResponse,
DescribeResourceUsageResponse,
DescribeDBInstancePerformanceResponse,
DescribeDBInstanceMonitorResponse,
DescribeAvailableMetricsResponse,
DescribeDBInstanceMetricsResponse,
CreateParameterGroupResponse,
DeleteParameterGroupResponse,
ModifyParameterResponse,
ModifyParameterGroupResponse,
DescribeParametersResponse,
DescribeModifyParameterLogResponse,
DescribeParameterTemplatesResponse,
DescribeParameterGroupsResponse,
DescribeParameterGroupResponse,
CloneParameterGroupResponse,
DescibeImportsFromDatabaseResponse,
ModifyActiveOperationTasksResponse,
DescribeActiveOperationTasksResponse,
CancelActiveOperationTasksResponse,
DeleteUserBackupFileResponse,
UpdateUserBackupFileResponse,
ListUserBackupFilesResponse,
ImportUserBackupFileResponse,
CreateMigrateTaskResponse,
CreateOnlineDatabaseTaskResponse,
DescribeMigrateTasksResponse,
DescribeOssDownloadsResponse,
DescribeMigrateTaskByIdResponse,
TerminateMigrateTaskResponse,
DeleteADSettingResponse,
ModifyADInfoResponse,
DescribeADInfoResponse,
CreateCloudMigrationPrecheckTaskResponse,
CreateCloudMigrationTaskResponse,
DescribeCloudMigrationPrecheckResultResponse,
DescribeCloudMigrationResultResponse,
ActivateMigrationTargetInstanceResponse,
CreateGADInstanceResponse,
CreateGadInstanceMemberResponse,
DeleteGadInstanceResponse,
DetachGadInstanceMemberResponse,
DescribeGadInstancesResponse,
ReceiveDBInstanceResponse,
TagResourcesResponse,
AddTagsToResourceResponse,
UntagResourcesResponse,
RemoveTagsFromResourceResponse,
ListTagResourcesResponse,
DescribeTagsResponse,
DescribeDBInstanceByTagsResponse,
CreatePostgresExtensionsResponse,
DeletePostgresExtensionsResponse,
UpdatePostgresExtensionsResponse,
DescribePostgresExtensionsResponse,
DeleteSlotResponse,
DescribeSlotsResponse,
CreateReplicationLinkResponse,
DescribeReplicationLinkLogsResponse,
RebuildReplicationLinkResponse,
SwitchReplicationLinkResponse,
DeleteReplicationLinkResponse,
ModifyComputeBurstConfigResponse,
DescribeComputeBurstConfigResponse,
CreateSecretResponse,
DeleteSecretResponse,
DescribeSecretsResponse,
DescribeDedicatedHostGroupsResponse,
DescribeDedicatedHostsResponse,
MigrateDBInstanceResponse,
RebuildDBInstanceResponse,
MigrateConnectionToOtherZoneResponse,
ModifyDBInstanceDelayedReplicationTimeResponse,
CheckServiceLinkedRoleResponse,
DescribeDBMiniEngineVersionsResponse,
DescribeRegionInfosResponse,
DescribeDBInstanceNetInfoForChannelResponse,
DescribeHostWebShellResponse,
DescribeClassDetailsResponse,
DescribeKmsAssociateResourcesResponse,
DescribeRCSnapshotsResponse,
DetachRCDiskResponse,
DeleteRCSnapshotResponse,
CreateRCSnapshotResponse,
DescribeRCDisksResponse,
DeleteRCDiskResponse,
AttachRCDiskResponse,
DescribeRCClusterConfigResponse,
AttachRCInstancesResponse,
DeleteRCClusterNodesResponse,
ModifyDBInstanceReplicationSwitchResponse,
DescribeDBInstanceReplicationResponse,
MigrateDBNodesResponse,
SwitchOverMajorVersionUpgradeResponse,
AssociateEipAddressWithRCInstanceResponse,
DescribeRCInstanceIpAddressResponse,
DescribeRCInstanceDdosCountResponse,
StopRCInstanceResponse,
DeleteRCInstancesResponse,
RunRCInstancesResponse,
ModifyRCInstanceChargeTypeResponse,
StartRCInstanceResponse,
DescribeRCInstanceAttributeResponse,
ResizeRCInstanceDiskResponse,
ModifyRCInstanceResponse,
DeleteRCDeploymentSetResponse,
DescribeRCMetricListResponse,
DescribeRCInstancesResponse,
DescribeRCImageListResponse,
ModifyRCInstanceDescriptionResponse,
CreateRCDiskResponse,
ReplaceRCInstanceSystemDiskResponse,
DescribeRCInstanceVncUrlResponse,
DescribeRCNodePoolResponse,
CreateRCNodePoolResponse,
RenewRCInstanceResponse,
AuthorizeRCSecurityGroupPermissionResponse,
DescribeHistoryEventsStatResponse,
DescribeHistoryEventsResponse,
ModifyEventInfoResponse,
DescribeHistoryTasksStatResponse,
DescribeHistoryTasksResponse,
ModifyTaskInfoResponse,
DescribeTasksResponse,
CreateYouhuiForOrderResponse,
DescribeCurrentModifyOrderResponse,
DescribeCustinsResourceInfoResponse,
DescribeDBInstanceConnectivityResponse,
DescribeHostGroupElasticStrategyParametersResponse,
DescribeMarketingActivityResponse,
DescribeQuickSaleConfigResponse,
DescribeResourceDetailsResponse,
EvaluateLocalExtendDiskResponse,
ModifyCustinsResourceResponse,
PreCheckCreateOrderForDeleteDBNodesResponse,
QueryRecommendByCodeResponse,
CreateOrderForDeleteDBNodesResponse,
DescribeSQLServerUpgradeVersionsResponse,
DescribeActiveOperationMaintainConfResponse,
CreateMaskingRulesResponse,
ModifyAccountMaskingPrivilegeResponse,
ModifyMaskingRulesResponse,
DescribeMaskingRulesResponse,
DeleteMaskingRulesResponse,
DescribeAccountMaskingPrivilegeResponse,
DeleteParameterTimedScheduleTaskResponse,
DescribeParameterTimedScheduleTaskResponse,
ModifyParameterTimedScheduleTaskResponse,
DescribeDBInstanceCLSResponse,
ModifyDBInstanceCLSResponse,
CreateRCImageResponse,
ModifyDBInstanceVectorSupportStatusResponse,
DescribeImportTaskValidationResponse,
DescribeImportTaskResponse,
CreateImportTaskResponse,
ValidateImportTaskResponse,
ListImportTasksResponse,
ModifyImportTaskResponse,
ModifyRCDiskAttributeResponse
);