// This file is auto-generated, don't edit it import * as $dara from '@darabonba/typescript'; export class CreateNetworkInterfacePermissionRequest extends $dara.Model { /** * @remarks * The ID of the Alibaba Cloud partner (certified ISV) account or individual user. * * This parameter is required. * * @example * 1234567890 */ accountId?: number; /** * @remarks * The ID of the ENI. * * This parameter is required. * * @example * eni-bp14v2sdd3v8htln**** */ networkInterfaceId?: string; ownerAccount?: string; ownerId?: number; /** * @remarks * The ENI permission. Only InstanceAttach is currently supported. * * InstanceAttach: allows the authorized user to attach your ENI to their ECS instance. The ECS instance must be in the same zone as the ENI. * * This parameter is required. * * @example * InstanceAttach */ permission?: string; /** * @remarks * The region of the ENI permission. You can call [DescribeRegions](https://help.aliyun.com/document_detail/25609.html) to query the most recent region list of Alibaba Cloud. * * This parameter is required. * * @example * cn-hangzhou */ regionId?: string; resourceOwnerAccount?: string; resourceOwnerId?: number; static names(): { [key: string]: string } { return { accountId: 'AccountId', networkInterfaceId: 'NetworkInterfaceId', ownerAccount: 'OwnerAccount', ownerId: 'OwnerId', permission: 'Permission', regionId: 'RegionId', resourceOwnerAccount: 'ResourceOwnerAccount', resourceOwnerId: 'ResourceOwnerId', }; } static types(): { [key: string]: any } { return { accountId: 'number', networkInterfaceId: 'string', ownerAccount: 'string', ownerId: 'number', permission: 'string', regionId: 'string', resourceOwnerAccount: 'string', resourceOwnerId: 'number', }; } validate() { super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } }