// This file is auto-generated, don't edit it import * as $dara from '@darabonba/typescript'; export class CreateNetworkInterfaceResponseBodyIpv4PrefixSetsIpv4PrefixSet extends $dara.Model { ipv4Prefix?: string; static names(): { [key: string]: string } { return { ipv4Prefix: 'Ipv4Prefix', }; } static types(): { [key: string]: any } { return { ipv4Prefix: 'string', }; } validate() { super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } } export class CreateNetworkInterfaceResponseBodyIpv4PrefixSets extends $dara.Model { ipv4PrefixSet?: CreateNetworkInterfaceResponseBodyIpv4PrefixSetsIpv4PrefixSet[]; static names(): { [key: string]: string } { return { ipv4PrefixSet: 'Ipv4PrefixSet', }; } static types(): { [key: string]: any } { return { ipv4PrefixSet: { 'type': 'array', 'itemType': CreateNetworkInterfaceResponseBodyIpv4PrefixSetsIpv4PrefixSet }, }; } validate() { if(Array.isArray(this.ipv4PrefixSet)) { $dara.Model.validateArray(this.ipv4PrefixSet); } super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } } export class CreateNetworkInterfaceResponseBodyIpv6PrefixSetsIpv6PrefixSet extends $dara.Model { ipv6Prefix?: string; static names(): { [key: string]: string } { return { ipv6Prefix: 'Ipv6Prefix', }; } static types(): { [key: string]: any } { return { ipv6Prefix: 'string', }; } validate() { super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } } export class CreateNetworkInterfaceResponseBodyIpv6PrefixSets extends $dara.Model { ipv6PrefixSet?: CreateNetworkInterfaceResponseBodyIpv6PrefixSetsIpv6PrefixSet[]; static names(): { [key: string]: string } { return { ipv6PrefixSet: 'Ipv6PrefixSet', }; } static types(): { [key: string]: any } { return { ipv6PrefixSet: { 'type': 'array', 'itemType': CreateNetworkInterfaceResponseBodyIpv6PrefixSetsIpv6PrefixSet }, }; } validate() { if(Array.isArray(this.ipv6PrefixSet)) { $dara.Model.validateArray(this.ipv6PrefixSet); } super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } } export class CreateNetworkInterfaceResponseBodyIpv6SetsIpv6Set extends $dara.Model { ipv6Address?: string; static names(): { [key: string]: string } { return { ipv6Address: 'Ipv6Address', }; } static types(): { [key: string]: any } { return { ipv6Address: 'string', }; } validate() { super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } } export class CreateNetworkInterfaceResponseBodyIpv6Sets extends $dara.Model { ipv6Set?: CreateNetworkInterfaceResponseBodyIpv6SetsIpv6Set[]; static names(): { [key: string]: string } { return { ipv6Set: 'Ipv6Set', }; } static types(): { [key: string]: any } { return { ipv6Set: { 'type': 'array', 'itemType': CreateNetworkInterfaceResponseBodyIpv6SetsIpv6Set }, }; } validate() { if(Array.isArray(this.ipv6Set)) { $dara.Model.validateArray(this.ipv6Set); } super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } } export class CreateNetworkInterfaceResponseBodyPrivateIpSetsPrivateIpSet extends $dara.Model { primary?: boolean; privateIpAddress?: string; static names(): { [key: string]: string } { return { primary: 'Primary', privateIpAddress: 'PrivateIpAddress', }; } static types(): { [key: string]: any } { return { primary: 'boolean', privateIpAddress: 'string', }; } validate() { super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } } export class CreateNetworkInterfaceResponseBodyPrivateIpSets extends $dara.Model { privateIpSet?: CreateNetworkInterfaceResponseBodyPrivateIpSetsPrivateIpSet[]; static names(): { [key: string]: string } { return { privateIpSet: 'PrivateIpSet', }; } static types(): { [key: string]: any } { return { privateIpSet: { 'type': 'array', 'itemType': CreateNetworkInterfaceResponseBodyPrivateIpSetsPrivateIpSet }, }; } validate() { if(Array.isArray(this.privateIpSet)) { $dara.Model.validateArray(this.privateIpSet); } super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } } export class CreateNetworkInterfaceResponseBodySecurityGroupIds extends $dara.Model { securityGroupId?: string[]; static names(): { [key: string]: string } { return { securityGroupId: 'SecurityGroupId', }; } static types(): { [key: string]: any } { return { securityGroupId: { 'type': 'array', 'itemType': 'string' }, }; } validate() { if(Array.isArray(this.securityGroupId)) { $dara.Model.validateArray(this.securityGroupId); } super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } } export class CreateNetworkInterfaceResponseBodyTagsTag extends $dara.Model { tagKey?: string; tagValue?: string; static names(): { [key: string]: string } { return { tagKey: 'TagKey', tagValue: 'TagValue', }; } static types(): { [key: string]: any } { return { tagKey: 'string', tagValue: 'string', }; } validate() { super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } } export class CreateNetworkInterfaceResponseBodyTags extends $dara.Model { tag?: CreateNetworkInterfaceResponseBodyTagsTag[]; static names(): { [key: string]: string } { return { tag: 'Tag', }; } static types(): { [key: string]: any } { return { tag: { 'type': 'array', 'itemType': CreateNetworkInterfaceResponseBodyTagsTag }, }; } validate() { if(Array.isArray(this.tag)) { $dara.Model.validateArray(this.tag); } super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } } export class CreateNetworkInterfaceResponseBody extends $dara.Model { /** * @remarks * The description of the ENI. * * @example * testDescription */ description?: string; ipv4PrefixSets?: CreateNetworkInterfaceResponseBodyIpv4PrefixSets; ipv6PrefixSets?: CreateNetworkInterfaceResponseBodyIpv6PrefixSets; ipv6Sets?: CreateNetworkInterfaceResponseBodyIpv6Sets; /** * @remarks * The media access control (MAC) address of the ENI. * * @example * 00:16:3e:12:**:** */ macAddress?: string; /** * @remarks * The ID of the ENI. * * @example * eni-bp14v2sdd3v8htln**** */ networkInterfaceId?: string; /** * @remarks * The name of the ENI. * * @example * my-eni-name */ networkInterfaceName?: string; /** * @remarks * The ID of the account to which the ENI belongs. * * @example * 123456**** */ ownerId?: string; /** * @remarks * The private IP address of the ENI. * * @example * ``172.17.**.**`` */ privateIpAddress?: string; privateIpSets?: CreateNetworkInterfaceResponseBodyPrivateIpSets; /** * @remarks * The request ID. * * @example * 473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E */ requestId?: string; /** * @remarks * The ID of the resource group to which the ENI belongs. * * @example * rg-2ze88m67qx5z**** */ resourceGroupId?: string; securityGroupIds?: CreateNetworkInterfaceResponseBodySecurityGroupIds; /** * @remarks * The ID of the distributor to which the ENI belongs. * * @example * 12345678910 */ serviceID?: number; /** * @remarks * Indicates whether the user of the ENI is an Alibaba Cloud service or a distributor. * * @example * true */ serviceManaged?: boolean; /** * @remarks * > This parameter is in invitational preview and is not publicly available. * * @example * false */ sourceDestCheck?: boolean; /** * @remarks * The state of the ENI. * * @example * Available */ status?: string; tags?: CreateNetworkInterfaceResponseBodyTags; /** * @remarks * The type of the ENI. * * @example * Secondary */ type?: string; /** * @remarks * The ID of the vSwitch to which the ENI is connected. * * @example * vsw-bp16usj2p27htro3**** */ vSwitchId?: string; /** * @remarks * The ID of the VPC to which the ENI belongs. * * @example * vpc-bp1j7w3gc1cexjqd**** */ vpcId?: string; /** * @remarks * The zone ID of the ENI. * * @example * cn-hangzhou-e */ zoneId?: string; static names(): { [key: string]: string } { return { description: 'Description', ipv4PrefixSets: 'Ipv4PrefixSets', ipv6PrefixSets: 'Ipv6PrefixSets', ipv6Sets: 'Ipv6Sets', macAddress: 'MacAddress', networkInterfaceId: 'NetworkInterfaceId', networkInterfaceName: 'NetworkInterfaceName', ownerId: 'OwnerId', privateIpAddress: 'PrivateIpAddress', privateIpSets: 'PrivateIpSets', requestId: 'RequestId', resourceGroupId: 'ResourceGroupId', securityGroupIds: 'SecurityGroupIds', serviceID: 'ServiceID', serviceManaged: 'ServiceManaged', sourceDestCheck: 'SourceDestCheck', status: 'Status', tags: 'Tags', type: 'Type', vSwitchId: 'VSwitchId', vpcId: 'VpcId', zoneId: 'ZoneId', }; } static types(): { [key: string]: any } { return { description: 'string', ipv4PrefixSets: CreateNetworkInterfaceResponseBodyIpv4PrefixSets, ipv6PrefixSets: CreateNetworkInterfaceResponseBodyIpv6PrefixSets, ipv6Sets: CreateNetworkInterfaceResponseBodyIpv6Sets, macAddress: 'string', networkInterfaceId: 'string', networkInterfaceName: 'string', ownerId: 'string', privateIpAddress: 'string', privateIpSets: CreateNetworkInterfaceResponseBodyPrivateIpSets, requestId: 'string', resourceGroupId: 'string', securityGroupIds: CreateNetworkInterfaceResponseBodySecurityGroupIds, serviceID: 'number', serviceManaged: 'boolean', sourceDestCheck: 'boolean', status: 'string', tags: CreateNetworkInterfaceResponseBodyTags, type: 'string', vSwitchId: 'string', vpcId: 'string', zoneId: 'string', }; } validate() { if(this.ipv4PrefixSets && typeof (this.ipv4PrefixSets as any).validate === 'function') { (this.ipv4PrefixSets as any).validate(); } if(this.ipv6PrefixSets && typeof (this.ipv6PrefixSets as any).validate === 'function') { (this.ipv6PrefixSets as any).validate(); } if(this.ipv6Sets && typeof (this.ipv6Sets as any).validate === 'function') { (this.ipv6Sets as any).validate(); } if(this.privateIpSets && typeof (this.privateIpSets as any).validate === 'function') { (this.privateIpSets as any).validate(); } if(this.securityGroupIds && typeof (this.securityGroupIds as any).validate === 'function') { (this.securityGroupIds as any).validate(); } if(this.tags && typeof (this.tags as any).validate === 'function') { (this.tags as any).validate(); } super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } }