// This file is auto-generated, don't edit it import * as $dara from '@darabonba/typescript'; export class ModifyElasticityAssuranceAutoRenewAttributeRequestPrivatePoolOptions extends $dara.Model { /** * @remarks * The IDs of elasticity assurances. * * > You can renew up to 50 elasticity assurances at a time. */ id?: string[]; static names(): { [key: string]: string } { return { id: 'Id', }; } static types(): { [key: string]: any } { return { id: { 'type': 'array', 'itemType': 'string' }, }; } validate() { if(Array.isArray(this.id)) { $dara.Model.validateArray(this.id); } super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } } export class ModifyElasticityAssuranceAutoRenewAttributeRequest extends $dara.Model { privatePoolOptions?: ModifyElasticityAssuranceAutoRenewAttributeRequestPrivatePoolOptions; ownerAccount?: string; ownerId?: number; /** * @remarks * The auto-renewal period for the elasticity assurance. * * * Valid values when `PeriodUnit` is set to `Year`: 1, 3, and 5. * * Valid values when `PeriodUnit` is set to `Month`: 1. * * Default value: 1. * * @example * 1 */ period?: number; /** * @remarks * The unit of the renewal duration. Valid values: * * * Month * * Year * * Default value: Month. * * @example * Month */ periodUnit?: string; /** * @remarks * The ID of the region to which the elasticity assurance belongs. You can call the [DescribeRegions](https://help.aliyun.com/document_detail/25609.html) operation to query the most recent region list. * * This parameter is required. * * @example * cn-hangzhou */ regionId?: string; /** * @remarks * The auto-renewal status of the elasticity assurance. Valid values: * * * AutoRenewal: Auto-renewal is enabled for the elasticity assurance. * * Normal: Auto-renewal is disabled for the elasticity assurance. * * NotRenewal: The elasticity assurance is not renewed. The system no longer sends an expiration notification but sends only a renewal notification three days before the elasticity assurance expires. You can change the value of this parameter from NotRenewal to `Normal` for an elasticity assurance, and then manually renew the elasticity assurance. Alternatively, you can set the RenewalStatus parameter to AutoRenewal. * * @example * Normal */ renewalStatus?: string; resourceOwnerAccount?: string; resourceOwnerId?: number; static names(): { [key: string]: string } { return { privatePoolOptions: 'PrivatePoolOptions', ownerAccount: 'OwnerAccount', ownerId: 'OwnerId', period: 'Period', periodUnit: 'PeriodUnit', regionId: 'RegionId', renewalStatus: 'RenewalStatus', resourceOwnerAccount: 'ResourceOwnerAccount', resourceOwnerId: 'ResourceOwnerId', }; } static types(): { [key: string]: any } { return { privatePoolOptions: ModifyElasticityAssuranceAutoRenewAttributeRequestPrivatePoolOptions, ownerAccount: 'string', ownerId: 'number', period: 'number', periodUnit: 'string', regionId: 'string', renewalStatus: 'string', resourceOwnerAccount: 'string', resourceOwnerId: 'number', }; } validate() { if(this.privatePoolOptions && typeof (this.privatePoolOptions as any).validate === 'function') { (this.privatePoolOptions as any).validate(); } super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } }