// This file is auto-generated, don't edit it import * as $dara from '@darabonba/typescript'; export class JoinSecurityGroupRequest extends $dara.Model { /** * @remarks * The instance ID. * * > If you configure this parameter, you cannot configure `NetworkInterfaceId`. * * @example * i-bp67acfmxazb4p**** */ instanceId?: string; /** * @remarks * The ENI ID. * * > If you configure this parameter, you cannot configure `InstanceId`. * * @example * eni-bp13kd656hxambfe**** */ networkInterfaceId?: string; ownerAccount?: string; ownerId?: number; /** * @remarks * The region ID. You can call the [DescribeRegions](https://help.aliyun.com/document_detail/25609.html) operation to query the most recent region list. * * * If you want to add an instance to a security group, you do not need to specify a region ID. * * If you want to add an ENI to a security group, you must specify the region ID of the ENI. * * @example * cn-hangzhou */ regionId?: string; resourceOwnerAccount?: string; resourceOwnerId?: number; /** * @remarks * The ID of the security group. You can call the [DescribeSecurityGroups](https://help.aliyun.com/document_detail/25556.html) operation to query the most recent security group list. * * This parameter is required. * * @example * sg-bp67acfmxazb4p**** */ securityGroupId?: string; static names(): { [key: string]: string } { return { instanceId: 'InstanceId', networkInterfaceId: 'NetworkInterfaceId', ownerAccount: 'OwnerAccount', ownerId: 'OwnerId', regionId: 'RegionId', resourceOwnerAccount: 'ResourceOwnerAccount', resourceOwnerId: 'ResourceOwnerId', securityGroupId: 'SecurityGroupId', }; } static types(): { [key: string]: any } { return { instanceId: 'string', networkInterfaceId: 'string', ownerAccount: 'string', ownerId: 'number', regionId: 'string', resourceOwnerAccount: 'string', resourceOwnerId: 'number', securityGroupId: 'string', }; } validate() { super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } }