// This file is auto-generated, don't edit it import * as $dara from '@darabonba/typescript'; export class RenewReservedInstancesRequest extends $dara.Model { /** * @remarks * Specifies whether to enable auto-renewal for the reserved instance. Valid values: * * * true * * false * * Default value: false. * * @example * true */ autoRenew?: boolean; /** * @remarks * The auto-renewal duration. Unit: months. This parameter takes effect only when AutoRenew is set to true. * * Valid values: 12 and 36. Default value: 12. * * @example * 1 */ autoRenewPeriod?: number; /** * @remarks * The client token that is used to ensure the idempotence of the request. You can use the client to generate the token, but you must make sure that the token is unique among different requests. The **token** can contain only ASCII characters and cannot exceed 64 characters in length. For more information, see [How to ensure idempotence](https://help.aliyun.com/document_detail/25693.html). * * @example * 123e4567-e89b-12d3-a456-426655440000 */ clientToken?: string; ownerAccount?: string; ownerId?: number; /** * @remarks * The validity period of the reserved instance. * * Valid values: 1 and 3. * * Default value: 1. * * @example * 1 */ period?: number; /** * @remarks * The unit of the validity period of the reserved instance. * * Set the value to Year. * * @example * Year */ periodUnit?: string; /** * @remarks * The region ID of the reserved instance. * * You can call the [DescribeRegions](https://help.aliyun.com/document_detail/25609.html) operation to query the most recent region list. * * @example * cn-hangzhou */ regionId?: string; /** * @remarks * The IDs of the reserved instances. */ reservedInstanceId?: string[]; resourceOwnerAccount?: string; resourceOwnerId?: number; static names(): { [key: string]: string } { return { autoRenew: 'AutoRenew', autoRenewPeriod: 'AutoRenewPeriod', clientToken: 'ClientToken', ownerAccount: 'OwnerAccount', ownerId: 'OwnerId', period: 'Period', periodUnit: 'PeriodUnit', regionId: 'RegionId', reservedInstanceId: 'ReservedInstanceId', resourceOwnerAccount: 'ResourceOwnerAccount', resourceOwnerId: 'ResourceOwnerId', }; } static types(): { [key: string]: any } { return { autoRenew: 'boolean', autoRenewPeriod: 'number', clientToken: 'string', ownerAccount: 'string', ownerId: 'number', period: 'number', periodUnit: 'string', regionId: 'string', reservedInstanceId: { 'type': 'array', 'itemType': 'string' }, resourceOwnerAccount: 'string', resourceOwnerId: 'number', }; } validate() { if(Array.isArray(this.reservedInstanceId)) { $dara.Model.validateArray(this.reservedInstanceId); } super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } }