"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.CreateVpnConnectionRequest = exports.CreateVpnConnectionRequestTunnelOptionsSpecification = exports.CreateVpnConnectionRequestTunnelOptionsSpecificationTunnelIpsecConfig = exports.CreateVpnConnectionRequestTunnelOptionsSpecificationTunnelIkeConfig = exports.CreateVpnConnectionRequestTunnelOptionsSpecificationTunnelBgpConfig = exports.CreateVpnConnectionRequestTags = void 0;
// This file is auto-generated, don't edit it
const $dara = __importStar(require("@darabonba/typescript"));
class CreateVpnConnectionRequestTags 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.CreateVpnConnectionRequestTags = CreateVpnConnectionRequestTags;
class CreateVpnConnectionRequestTunnelOptionsSpecificationTunnelBgpConfig extends $dara.Model {
    static names() {
        return {
            localAsn: 'LocalAsn',
            localBgpIp: 'LocalBgpIp',
            tunnelCidr: 'TunnelCidr',
        };
    }
    static types() {
        return {
            localAsn: 'number',
            localBgpIp: 'string',
            tunnelCidr: 'string',
        };
    }
    validate() {
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.CreateVpnConnectionRequestTunnelOptionsSpecificationTunnelBgpConfig = CreateVpnConnectionRequestTunnelOptionsSpecificationTunnelBgpConfig;
class CreateVpnConnectionRequestTunnelOptionsSpecificationTunnelIkeConfig extends $dara.Model {
    static names() {
        return {
            ikeAuthAlg: 'IkeAuthAlg',
            ikeEncAlg: 'IkeEncAlg',
            ikeLifetime: 'IkeLifetime',
            ikeMode: 'IkeMode',
            ikePfs: 'IkePfs',
            ikeVersion: 'IkeVersion',
            localId: 'LocalId',
            psk: 'Psk',
            remoteId: 'RemoteId',
        };
    }
    static types() {
        return {
            ikeAuthAlg: 'string',
            ikeEncAlg: 'string',
            ikeLifetime: 'number',
            ikeMode: 'string',
            ikePfs: 'string',
            ikeVersion: 'string',
            localId: 'string',
            psk: 'string',
            remoteId: 'string',
        };
    }
    validate() {
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.CreateVpnConnectionRequestTunnelOptionsSpecificationTunnelIkeConfig = CreateVpnConnectionRequestTunnelOptionsSpecificationTunnelIkeConfig;
class CreateVpnConnectionRequestTunnelOptionsSpecificationTunnelIpsecConfig extends $dara.Model {
    static names() {
        return {
            ipsecAuthAlg: 'IpsecAuthAlg',
            ipsecEncAlg: 'IpsecEncAlg',
            ipsecLifetime: 'IpsecLifetime',
            ipsecPfs: 'IpsecPfs',
        };
    }
    static types() {
        return {
            ipsecAuthAlg: 'string',
            ipsecEncAlg: 'string',
            ipsecLifetime: 'number',
            ipsecPfs: 'string',
        };
    }
    validate() {
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.CreateVpnConnectionRequestTunnelOptionsSpecificationTunnelIpsecConfig = CreateVpnConnectionRequestTunnelOptionsSpecificationTunnelIpsecConfig;
class CreateVpnConnectionRequestTunnelOptionsSpecification extends $dara.Model {
    static names() {
        return {
            customerGatewayId: 'CustomerGatewayId',
            enableDpd: 'EnableDpd',
            enableNatTraversal: 'EnableNatTraversal',
            remoteCaCertificate: 'RemoteCaCertificate',
            role: 'Role',
            tunnelBgpConfig: 'TunnelBgpConfig',
            tunnelIkeConfig: 'TunnelIkeConfig',
            tunnelIpsecConfig: 'TunnelIpsecConfig',
        };
    }
    static types() {
        return {
            customerGatewayId: 'string',
            enableDpd: 'boolean',
            enableNatTraversal: 'boolean',
            remoteCaCertificate: 'string',
            role: 'string',
            tunnelBgpConfig: CreateVpnConnectionRequestTunnelOptionsSpecificationTunnelBgpConfig,
            tunnelIkeConfig: CreateVpnConnectionRequestTunnelOptionsSpecificationTunnelIkeConfig,
            tunnelIpsecConfig: CreateVpnConnectionRequestTunnelOptionsSpecificationTunnelIpsecConfig,
        };
    }
    validate() {
        if (this.tunnelBgpConfig && typeof this.tunnelBgpConfig.validate === 'function') {
            this.tunnelBgpConfig.validate();
        }
        if (this.tunnelIkeConfig && typeof this.tunnelIkeConfig.validate === 'function') {
            this.tunnelIkeConfig.validate();
        }
        if (this.tunnelIpsecConfig && typeof this.tunnelIpsecConfig.validate === 'function') {
            this.tunnelIpsecConfig.validate();
        }
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.CreateVpnConnectionRequestTunnelOptionsSpecification = CreateVpnConnectionRequestTunnelOptionsSpecification;
class CreateVpnConnectionRequest extends $dara.Model {
    static names() {
        return {
            autoConfigRoute: 'AutoConfigRoute',
            bgpConfig: 'BgpConfig',
            clientToken: 'ClientToken',
            customerGatewayId: 'CustomerGatewayId',
            dryRun: 'DryRun',
            effectImmediately: 'EffectImmediately',
            enableDpd: 'EnableDpd',
            enableNatTraversal: 'EnableNatTraversal',
            enableTunnelsBgp: 'EnableTunnelsBgp',
            healthCheckConfig: 'HealthCheckConfig',
            ikeConfig: 'IkeConfig',
            ipsecConfig: 'IpsecConfig',
            localSubnet: 'LocalSubnet',
            name: 'Name',
            ownerAccount: 'OwnerAccount',
            ownerId: 'OwnerId',
            regionId: 'RegionId',
            remoteCaCertificate: 'RemoteCaCertificate',
            remoteSubnet: 'RemoteSubnet',
            resourceOwnerAccount: 'ResourceOwnerAccount',
            resourceOwnerId: 'ResourceOwnerId',
            tags: 'Tags',
            tunnelOptionsSpecification: 'TunnelOptionsSpecification',
            vpnGatewayId: 'VpnGatewayId',
        };
    }
    static types() {
        return {
            autoConfigRoute: 'boolean',
            bgpConfig: 'string',
            clientToken: 'string',
            customerGatewayId: 'string',
            dryRun: 'boolean',
            effectImmediately: 'boolean',
            enableDpd: 'boolean',
            enableNatTraversal: 'boolean',
            enableTunnelsBgp: 'boolean',
            healthCheckConfig: 'string',
            ikeConfig: 'string',
            ipsecConfig: 'string',
            localSubnet: 'string',
            name: 'string',
            ownerAccount: 'string',
            ownerId: 'number',
            regionId: 'string',
            remoteCaCertificate: 'string',
            remoteSubnet: 'string',
            resourceOwnerAccount: 'string',
            resourceOwnerId: 'number',
            tags: { 'type': 'array', 'itemType': CreateVpnConnectionRequestTags },
            tunnelOptionsSpecification: { 'type': 'array', 'itemType': CreateVpnConnectionRequestTunnelOptionsSpecification },
            vpnGatewayId: 'string',
        };
    }
    validate() {
        if (Array.isArray(this.tags)) {
            $dara.Model.validateArray(this.tags);
        }
        if (Array.isArray(this.tunnelOptionsSpecification)) {
            $dara.Model.validateArray(this.tunnelOptionsSpecification);
        }
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.CreateVpnConnectionRequest = CreateVpnConnectionRequest;
//# sourceMappingURL=CreateVpnConnectionRequest.js.map