"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.CreateNetworkInterfaceRequest = exports.CreateNetworkInterfaceRequestTag = exports.CreateNetworkInterfaceRequestNetworkInterfaceTrafficConfig = exports.CreateNetworkInterfaceRequestEnhancedNetwork = exports.CreateNetworkInterfaceRequestConnectionTrackingConfiguration = void 0;
// This file is auto-generated, don't edit it
const $dara = __importStar(require("@darabonba/typescript"));
class CreateNetworkInterfaceRequestConnectionTrackingConfiguration extends $dara.Model {
    static names() {
        return {
            tcpClosedAndTimeWaitTimeout: 'TcpClosedAndTimeWaitTimeout',
            tcpEstablishedTimeout: 'TcpEstablishedTimeout',
            udpTimeout: 'UdpTimeout',
        };
    }
    static types() {
        return {
            tcpClosedAndTimeWaitTimeout: 'number',
            tcpEstablishedTimeout: 'number',
            udpTimeout: 'number',
        };
    }
    validate() {
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.CreateNetworkInterfaceRequestConnectionTrackingConfiguration = CreateNetworkInterfaceRequestConnectionTrackingConfiguration;
class CreateNetworkInterfaceRequestEnhancedNetwork extends $dara.Model {
    static names() {
        return {
            enableRss: 'EnableRss',
            enableSriov: 'EnableSriov',
            virtualFunctionQuantity: 'VirtualFunctionQuantity',
            virtualFunctionTotalQueueNumber: 'VirtualFunctionTotalQueueNumber',
        };
    }
    static types() {
        return {
            enableRss: 'boolean',
            enableSriov: 'boolean',
            virtualFunctionQuantity: 'number',
            virtualFunctionTotalQueueNumber: 'number',
        };
    }
    validate() {
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.CreateNetworkInterfaceRequestEnhancedNetwork = CreateNetworkInterfaceRequestEnhancedNetwork;
class CreateNetworkInterfaceRequestNetworkInterfaceTrafficConfig extends $dara.Model {
    static names() {
        return {
            networkInterfaceTrafficMode: 'NetworkInterfaceTrafficMode',
            queueNumber: 'QueueNumber',
            queuePairNumber: 'QueuePairNumber',
            rxQueueSize: 'RxQueueSize',
            txQueueSize: 'TxQueueSize',
        };
    }
    static types() {
        return {
            networkInterfaceTrafficMode: 'string',
            queueNumber: 'number',
            queuePairNumber: 'number',
            rxQueueSize: 'number',
            txQueueSize: 'number',
        };
    }
    validate() {
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.CreateNetworkInterfaceRequestNetworkInterfaceTrafficConfig = CreateNetworkInterfaceRequestNetworkInterfaceTrafficConfig;
class CreateNetworkInterfaceRequestTag extends $dara.Model {
    static names() {
        return {
            key: 'Key',
            value: 'Value',
        };
    }
    static types() {
        return {
            key: 'string',
            value: 'string',
        };
    }
    validate() {
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.CreateNetworkInterfaceRequestTag = CreateNetworkInterfaceRequestTag;
class CreateNetworkInterfaceRequest extends $dara.Model {
    static names() {
        return {
            businessType: 'BusinessType',
            clientToken: 'ClientToken',
            connectionTrackingConfiguration: 'ConnectionTrackingConfiguration',
            deleteOnRelease: 'DeleteOnRelease',
            description: 'Description',
            enhancedNetwork: 'EnhancedNetwork',
            instanceType: 'InstanceType',
            ipv4Prefix: 'Ipv4Prefix',
            ipv4PrefixCount: 'Ipv4PrefixCount',
            ipv6Address: 'Ipv6Address',
            ipv6AddressCount: 'Ipv6AddressCount',
            ipv6Prefix: 'Ipv6Prefix',
            ipv6PrefixCount: 'Ipv6PrefixCount',
            networkInterfaceName: 'NetworkInterfaceName',
            networkInterfaceTrafficConfig: 'NetworkInterfaceTrafficConfig',
            networkInterfaceTrafficMode: 'NetworkInterfaceTrafficMode',
            ownerAccount: 'OwnerAccount',
            ownerId: 'OwnerId',
            primaryIpAddress: 'PrimaryIpAddress',
            privateIpAddress: 'PrivateIpAddress',
            queueNumber: 'QueueNumber',
            queuePairNumber: 'QueuePairNumber',
            regionId: 'RegionId',
            resourceGroupId: 'ResourceGroupId',
            resourceOwnerAccount: 'ResourceOwnerAccount',
            resourceOwnerId: 'ResourceOwnerId',
            rxQueueSize: 'RxQueueSize',
            secondaryPrivateIpAddressCount: 'SecondaryPrivateIpAddressCount',
            securityGroupId: 'SecurityGroupId',
            securityGroupIds: 'SecurityGroupIds',
            sourceDestCheck: 'SourceDestCheck',
            tag: 'Tag',
            txQueueSize: 'TxQueueSize',
            vSwitchId: 'VSwitchId',
            visible: 'Visible',
        };
    }
    static types() {
        return {
            businessType: 'string',
            clientToken: 'string',
            connectionTrackingConfiguration: CreateNetworkInterfaceRequestConnectionTrackingConfiguration,
            deleteOnRelease: 'boolean',
            description: 'string',
            enhancedNetwork: CreateNetworkInterfaceRequestEnhancedNetwork,
            instanceType: 'string',
            ipv4Prefix: { 'type': 'array', 'itemType': 'string' },
            ipv4PrefixCount: 'number',
            ipv6Address: { 'type': 'array', 'itemType': 'string' },
            ipv6AddressCount: 'number',
            ipv6Prefix: { 'type': 'array', 'itemType': 'string' },
            ipv6PrefixCount: 'number',
            networkInterfaceName: 'string',
            networkInterfaceTrafficConfig: CreateNetworkInterfaceRequestNetworkInterfaceTrafficConfig,
            networkInterfaceTrafficMode: 'string',
            ownerAccount: 'string',
            ownerId: 'number',
            primaryIpAddress: 'string',
            privateIpAddress: { 'type': 'array', 'itemType': 'string' },
            queueNumber: 'number',
            queuePairNumber: 'number',
            regionId: 'string',
            resourceGroupId: 'string',
            resourceOwnerAccount: 'string',
            resourceOwnerId: 'number',
            rxQueueSize: 'number',
            secondaryPrivateIpAddressCount: 'number',
            securityGroupId: 'string',
            securityGroupIds: { 'type': 'array', 'itemType': 'string' },
            sourceDestCheck: 'boolean',
            tag: { 'type': 'array', 'itemType': CreateNetworkInterfaceRequestTag },
            txQueueSize: 'number',
            vSwitchId: 'string',
            visible: 'boolean',
        };
    }
    validate() {
        if (this.connectionTrackingConfiguration && typeof this.connectionTrackingConfiguration.validate === 'function') {
            this.connectionTrackingConfiguration.validate();
        }
        if (this.enhancedNetwork && typeof this.enhancedNetwork.validate === 'function') {
            this.enhancedNetwork.validate();
        }
        if (Array.isArray(this.ipv4Prefix)) {
            $dara.Model.validateArray(this.ipv4Prefix);
        }
        if (Array.isArray(this.ipv6Address)) {
            $dara.Model.validateArray(this.ipv6Address);
        }
        if (Array.isArray(this.ipv6Prefix)) {
            $dara.Model.validateArray(this.ipv6Prefix);
        }
        if (this.networkInterfaceTrafficConfig && typeof this.networkInterfaceTrafficConfig.validate === 'function') {
            this.networkInterfaceTrafficConfig.validate();
        }
        if (Array.isArray(this.privateIpAddress)) {
            $dara.Model.validateArray(this.privateIpAddress);
        }
        if (Array.isArray(this.securityGroupIds)) {
            $dara.Model.validateArray(this.securityGroupIds);
        }
        if (Array.isArray(this.tag)) {
            $dara.Model.validateArray(this.tag);
        }
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.CreateNetworkInterfaceRequest = CreateNetworkInterfaceRequest;
//# sourceMappingURL=CreateNetworkInterfaceRequest.js.map