"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    var desc = Object.getOwnPropertyDescriptor(m, k);
    if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
      desc = { enumerable: true, get: function() { return m[k]; } };
    }
    Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
    Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
    o["default"] = v;
});
var __importStar = (this && this.__importStar) || (function () {
    var ownKeys = function(o) {
        ownKeys = Object.getOwnPropertyNames || function (o) {
            var ar = [];
            for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
            return ar;
        };
        return ownKeys(o);
    };
    return function (mod) {
        if (mod && mod.__esModule) return mod;
        var result = {};
        if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
        __setModuleDefault(result, mod);
        return result;
    };
})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.CreateNetworkInterfaceResponseBody = exports.CreateNetworkInterfaceResponseBodyTags = exports.CreateNetworkInterfaceResponseBodyTagsTag = exports.CreateNetworkInterfaceResponseBodySecurityGroupIds = exports.CreateNetworkInterfaceResponseBodyPrivateIpSets = exports.CreateNetworkInterfaceResponseBodyPrivateIpSetsPrivateIpSet = exports.CreateNetworkInterfaceResponseBodyIpv6Sets = exports.CreateNetworkInterfaceResponseBodyIpv6SetsIpv6Set = exports.CreateNetworkInterfaceResponseBodyIpv6PrefixSets = exports.CreateNetworkInterfaceResponseBodyIpv6PrefixSetsIpv6PrefixSet = exports.CreateNetworkInterfaceResponseBodyIpv4PrefixSets = exports.CreateNetworkInterfaceResponseBodyIpv4PrefixSetsIpv4PrefixSet = void 0;
// This file is auto-generated, don't edit it
const $dara = __importStar(require("@darabonba/typescript"));
class CreateNetworkInterfaceResponseBodyIpv4PrefixSetsIpv4PrefixSet extends $dara.Model {
    static names() {
        return {
            ipv4Prefix: 'Ipv4Prefix',
        };
    }
    static types() {
        return {
            ipv4Prefix: 'string',
        };
    }
    validate() {
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.CreateNetworkInterfaceResponseBodyIpv4PrefixSetsIpv4PrefixSet = CreateNetworkInterfaceResponseBodyIpv4PrefixSetsIpv4PrefixSet;
class CreateNetworkInterfaceResponseBodyIpv4PrefixSets extends $dara.Model {
    static names() {
        return {
            ipv4PrefixSet: 'Ipv4PrefixSet',
        };
    }
    static types() {
        return {
            ipv4PrefixSet: { 'type': 'array', 'itemType': CreateNetworkInterfaceResponseBodyIpv4PrefixSetsIpv4PrefixSet },
        };
    }
    validate() {
        if (Array.isArray(this.ipv4PrefixSet)) {
            $dara.Model.validateArray(this.ipv4PrefixSet);
        }
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.CreateNetworkInterfaceResponseBodyIpv4PrefixSets = CreateNetworkInterfaceResponseBodyIpv4PrefixSets;
class CreateNetworkInterfaceResponseBodyIpv6PrefixSetsIpv6PrefixSet extends $dara.Model {
    static names() {
        return {
            ipv6Prefix: 'Ipv6Prefix',
        };
    }
    static types() {
        return {
            ipv6Prefix: 'string',
        };
    }
    validate() {
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.CreateNetworkInterfaceResponseBodyIpv6PrefixSetsIpv6PrefixSet = CreateNetworkInterfaceResponseBodyIpv6PrefixSetsIpv6PrefixSet;
class CreateNetworkInterfaceResponseBodyIpv6PrefixSets extends $dara.Model {
    static names() {
        return {
            ipv6PrefixSet: 'Ipv6PrefixSet',
        };
    }
    static types() {
        return {
            ipv6PrefixSet: { 'type': 'array', 'itemType': CreateNetworkInterfaceResponseBodyIpv6PrefixSetsIpv6PrefixSet },
        };
    }
    validate() {
        if (Array.isArray(this.ipv6PrefixSet)) {
            $dara.Model.validateArray(this.ipv6PrefixSet);
        }
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.CreateNetworkInterfaceResponseBodyIpv6PrefixSets = CreateNetworkInterfaceResponseBodyIpv6PrefixSets;
class CreateNetworkInterfaceResponseBodyIpv6SetsIpv6Set extends $dara.Model {
    static names() {
        return {
            ipv6Address: 'Ipv6Address',
        };
    }
    static types() {
        return {
            ipv6Address: 'string',
        };
    }
    validate() {
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.CreateNetworkInterfaceResponseBodyIpv6SetsIpv6Set = CreateNetworkInterfaceResponseBodyIpv6SetsIpv6Set;
class CreateNetworkInterfaceResponseBodyIpv6Sets extends $dara.Model {
    static names() {
        return {
            ipv6Set: 'Ipv6Set',
        };
    }
    static types() {
        return {
            ipv6Set: { 'type': 'array', 'itemType': CreateNetworkInterfaceResponseBodyIpv6SetsIpv6Set },
        };
    }
    validate() {
        if (Array.isArray(this.ipv6Set)) {
            $dara.Model.validateArray(this.ipv6Set);
        }
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.CreateNetworkInterfaceResponseBodyIpv6Sets = CreateNetworkInterfaceResponseBodyIpv6Sets;
class CreateNetworkInterfaceResponseBodyPrivateIpSetsPrivateIpSet extends $dara.Model {
    static names() {
        return {
            primary: 'Primary',
            privateIpAddress: 'PrivateIpAddress',
        };
    }
    static types() {
        return {
            primary: 'boolean',
            privateIpAddress: 'string',
        };
    }
    validate() {
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.CreateNetworkInterfaceResponseBodyPrivateIpSetsPrivateIpSet = CreateNetworkInterfaceResponseBodyPrivateIpSetsPrivateIpSet;
class CreateNetworkInterfaceResponseBodyPrivateIpSets extends $dara.Model {
    static names() {
        return {
            privateIpSet: 'PrivateIpSet',
        };
    }
    static types() {
        return {
            privateIpSet: { 'type': 'array', 'itemType': CreateNetworkInterfaceResponseBodyPrivateIpSetsPrivateIpSet },
        };
    }
    validate() {
        if (Array.isArray(this.privateIpSet)) {
            $dara.Model.validateArray(this.privateIpSet);
        }
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.CreateNetworkInterfaceResponseBodyPrivateIpSets = CreateNetworkInterfaceResponseBodyPrivateIpSets;
class CreateNetworkInterfaceResponseBodySecurityGroupIds extends $dara.Model {
    static names() {
        return {
            securityGroupId: 'SecurityGroupId',
        };
    }
    static types() {
        return {
            securityGroupId: { 'type': 'array', 'itemType': 'string' },
        };
    }
    validate() {
        if (Array.isArray(this.securityGroupId)) {
            $dara.Model.validateArray(this.securityGroupId);
        }
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.CreateNetworkInterfaceResponseBodySecurityGroupIds = CreateNetworkInterfaceResponseBodySecurityGroupIds;
class CreateNetworkInterfaceResponseBodyTagsTag extends $dara.Model {
    static names() {
        return {
            tagKey: 'TagKey',
            tagValue: 'TagValue',
        };
    }
    static types() {
        return {
            tagKey: 'string',
            tagValue: 'string',
        };
    }
    validate() {
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.CreateNetworkInterfaceResponseBodyTagsTag = CreateNetworkInterfaceResponseBodyTagsTag;
class CreateNetworkInterfaceResponseBodyTags extends $dara.Model {
    static names() {
        return {
            tag: 'Tag',
        };
    }
    static types() {
        return {
            tag: { 'type': 'array', 'itemType': CreateNetworkInterfaceResponseBodyTagsTag },
        };
    }
    validate() {
        if (Array.isArray(this.tag)) {
            $dara.Model.validateArray(this.tag);
        }
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.CreateNetworkInterfaceResponseBodyTags = CreateNetworkInterfaceResponseBodyTags;
class CreateNetworkInterfaceResponseBody extends $dara.Model {
    static names() {
        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() {
        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.validate === 'function') {
            this.ipv4PrefixSets.validate();
        }
        if (this.ipv6PrefixSets && typeof this.ipv6PrefixSets.validate === 'function') {
            this.ipv6PrefixSets.validate();
        }
        if (this.ipv6Sets && typeof this.ipv6Sets.validate === 'function') {
            this.ipv6Sets.validate();
        }
        if (this.privateIpSets && typeof this.privateIpSets.validate === 'function') {
            this.privateIpSets.validate();
        }
        if (this.securityGroupIds && typeof this.securityGroupIds.validate === 'function') {
            this.securityGroupIds.validate();
        }
        if (this.tags && typeof this.tags.validate === 'function') {
            this.tags.validate();
        }
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.CreateNetworkInterfaceResponseBody = CreateNetworkInterfaceResponseBody;
//# sourceMappingURL=CreateNetworkInterfaceResponseBody.js.map