// This file is auto-generated, don't edit it import * as $dara from '@darabonba/typescript'; export class AssignIpv6AddressesRequest extends $dara.Model { /** * @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; /** * @remarks * The IPv6 addresses to assign to the ENI. Valid values of N: 1 to 10. * * Example: Ipv6Address.1=2001:db8:1234:1a00::\\*\\*\\*\\* * * > You must specify `Ipv6Addresses.N` or `Ipv6AddressCount`, but not both. * * @example * 2001:db8:1234:1a00::**** */ ipv6Address?: string[]; /** * @remarks * The number of IPv6 addresses to randomly generate for the ENI. Valid values: 1 to 10. * * > You must specify `Ipv6Addresses.N` or `Ipv6AddressCount`, but not both. * * @example * 1 */ ipv6AddressCount?: number; /** * @remarks * The IPv6 prefixes to assign to the ENI. Valid values of N: 1 to 10. * * > To assign IPv6 prefixes to the ENI, you must specify Ipv6Prefix.N or Ipv6PrefixCount, but not both. */ ipv6Prefix?: string[]; /** * @remarks * The number of IPv6 prefixes to assign to the ENI. Valid values: 1 to 10. * * > To assign IPv6 prefixes to the ENI, you must specify Ipv6Prefix.N or Ipv6PrefixCount, but not both. * * @example * hide */ ipv6PrefixCount?: number; /** * @remarks * The ENI ID. * * This parameter is required. * * @example * eni-bp1iqejowblx6h8j**** */ networkInterfaceId?: string; ownerAccount?: string; ownerId?: number; /** * @remarks * The region ID of the ENI. 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; resourceOwnerAccount?: string; resourceOwnerId?: number; static names(): { [key: string]: string } { return { clientToken: 'ClientToken', ipv6Address: 'Ipv6Address', ipv6AddressCount: 'Ipv6AddressCount', ipv6Prefix: 'Ipv6Prefix', ipv6PrefixCount: 'Ipv6PrefixCount', networkInterfaceId: 'NetworkInterfaceId', ownerAccount: 'OwnerAccount', ownerId: 'OwnerId', regionId: 'RegionId', resourceOwnerAccount: 'ResourceOwnerAccount', resourceOwnerId: 'ResourceOwnerId', }; } static types(): { [key: string]: any } { return { clientToken: 'string', ipv6Address: { 'type': 'array', 'itemType': 'string' }, ipv6AddressCount: 'number', ipv6Prefix: { 'type': 'array', 'itemType': 'string' }, ipv6PrefixCount: 'number', networkInterfaceId: 'string', ownerAccount: 'string', ownerId: 'number', regionId: 'string', resourceOwnerAccount: 'string', resourceOwnerId: 'number', }; } validate() { if(Array.isArray(this.ipv6Address)) { $dara.Model.validateArray(this.ipv6Address); } if(Array.isArray(this.ipv6Prefix)) { $dara.Model.validateArray(this.ipv6Prefix); } super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } }