"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.DownloadVpnConnectionConfigResponseBody = exports.DownloadVpnConnectionConfigResponseBodyVpnConnectionConfig = exports.DownloadVpnConnectionConfigResponseBodyVpnConnectionConfigTunnelsConfig = exports.DownloadVpnConnectionConfigResponseBodyVpnConnectionConfigTunnelsConfigTunnelConfig = exports.DownloadVpnConnectionConfigResponseBodyVpnConnectionConfigTunnelsConfigTunnelConfigIpsecConfig = exports.DownloadVpnConnectionConfigResponseBodyVpnConnectionConfigTunnelsConfigTunnelConfigIkeConfig = exports.DownloadVpnConnectionConfigResponseBodyVpnConnectionConfigIpsecConfig = exports.DownloadVpnConnectionConfigResponseBodyVpnConnectionConfigIkeConfig = exports.DownloadVpnConnectionConfigResponseBodyVpnConnectionConfigBgpConfigs = exports.DownloadVpnConnectionConfigResponseBodyVpnConnectionConfigBgpConfigsBgpConfig = void 0;
// This file is auto-generated, don't edit it
const $dara = __importStar(require("@darabonba/typescript"));
class DownloadVpnConnectionConfigResponseBodyVpnConnectionConfigBgpConfigsBgpConfig extends $dara.Model {
    static names() {
        return {
            localAsn: 'LocalAsn',
            localBgpIp: 'LocalBgpIp',
            peerAsn: 'PeerAsn',
            peerBgpIp: 'PeerBgpIp',
            tunnelCidr: 'TunnelCidr',
            tunnelId: 'TunnelId',
        };
    }
    static types() {
        return {
            localAsn: 'string',
            localBgpIp: 'string',
            peerAsn: 'string',
            peerBgpIp: 'string',
            tunnelCidr: 'string',
            tunnelId: 'string',
        };
    }
    validate() {
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.DownloadVpnConnectionConfigResponseBodyVpnConnectionConfigBgpConfigsBgpConfig = DownloadVpnConnectionConfigResponseBodyVpnConnectionConfigBgpConfigsBgpConfig;
class DownloadVpnConnectionConfigResponseBodyVpnConnectionConfigBgpConfigs extends $dara.Model {
    static names() {
        return {
            bgpConfig: 'BgpConfig',
        };
    }
    static types() {
        return {
            bgpConfig: { 'type': 'array', 'itemType': DownloadVpnConnectionConfigResponseBodyVpnConnectionConfigBgpConfigsBgpConfig },
        };
    }
    validate() {
        if (Array.isArray(this.bgpConfig)) {
            $dara.Model.validateArray(this.bgpConfig);
        }
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.DownloadVpnConnectionConfigResponseBodyVpnConnectionConfigBgpConfigs = DownloadVpnConnectionConfigResponseBodyVpnConnectionConfigBgpConfigs;
class DownloadVpnConnectionConfigResponseBodyVpnConnectionConfigIkeConfig 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.DownloadVpnConnectionConfigResponseBodyVpnConnectionConfigIkeConfig = DownloadVpnConnectionConfigResponseBodyVpnConnectionConfigIkeConfig;
class DownloadVpnConnectionConfigResponseBodyVpnConnectionConfigIpsecConfig 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.DownloadVpnConnectionConfigResponseBodyVpnConnectionConfigIpsecConfig = DownloadVpnConnectionConfigResponseBodyVpnConnectionConfigIpsecConfig;
class DownloadVpnConnectionConfigResponseBodyVpnConnectionConfigTunnelsConfigTunnelConfigIkeConfig 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.DownloadVpnConnectionConfigResponseBodyVpnConnectionConfigTunnelsConfigTunnelConfigIkeConfig = DownloadVpnConnectionConfigResponseBodyVpnConnectionConfigTunnelsConfigTunnelConfigIkeConfig;
class DownloadVpnConnectionConfigResponseBodyVpnConnectionConfigTunnelsConfigTunnelConfigIpsecConfig 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.DownloadVpnConnectionConfigResponseBodyVpnConnectionConfigTunnelsConfigTunnelConfigIpsecConfig = DownloadVpnConnectionConfigResponseBodyVpnConnectionConfigTunnelsConfigTunnelConfigIpsecConfig;
class DownloadVpnConnectionConfigResponseBodyVpnConnectionConfigTunnelsConfigTunnelConfig extends $dara.Model {
    static names() {
        return {
            ikeConfig: 'IkeConfig',
            ipsecConfig: 'IpsecConfig',
            local: 'Local',
            remote: 'Remote',
            tunnelId: 'TunnelId',
        };
    }
    static types() {
        return {
            ikeConfig: DownloadVpnConnectionConfigResponseBodyVpnConnectionConfigTunnelsConfigTunnelConfigIkeConfig,
            ipsecConfig: DownloadVpnConnectionConfigResponseBodyVpnConnectionConfigTunnelsConfigTunnelConfigIpsecConfig,
            local: 'string',
            remote: 'string',
            tunnelId: 'string',
        };
    }
    validate() {
        if (this.ikeConfig && typeof this.ikeConfig.validate === 'function') {
            this.ikeConfig.validate();
        }
        if (this.ipsecConfig && typeof this.ipsecConfig.validate === 'function') {
            this.ipsecConfig.validate();
        }
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.DownloadVpnConnectionConfigResponseBodyVpnConnectionConfigTunnelsConfigTunnelConfig = DownloadVpnConnectionConfigResponseBodyVpnConnectionConfigTunnelsConfigTunnelConfig;
class DownloadVpnConnectionConfigResponseBodyVpnConnectionConfigTunnelsConfig extends $dara.Model {
    static names() {
        return {
            tunnelConfig: 'TunnelConfig',
        };
    }
    static types() {
        return {
            tunnelConfig: { 'type': 'array', 'itemType': DownloadVpnConnectionConfigResponseBodyVpnConnectionConfigTunnelsConfigTunnelConfig },
        };
    }
    validate() {
        if (Array.isArray(this.tunnelConfig)) {
            $dara.Model.validateArray(this.tunnelConfig);
        }
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.DownloadVpnConnectionConfigResponseBodyVpnConnectionConfigTunnelsConfig = DownloadVpnConnectionConfigResponseBodyVpnConnectionConfigTunnelsConfig;
class DownloadVpnConnectionConfigResponseBodyVpnConnectionConfig extends $dara.Model {
    static names() {
        return {
            bgpConfigs: 'BgpConfigs',
            ikeConfig: 'IkeConfig',
            ipsecConfig: 'IpsecConfig',
            local: 'Local',
            localSubnet: 'LocalSubnet',
            remote: 'Remote',
            remoteSubnet: 'RemoteSubnet',
            tunnelsConfig: 'TunnelsConfig',
        };
    }
    static types() {
        return {
            bgpConfigs: DownloadVpnConnectionConfigResponseBodyVpnConnectionConfigBgpConfigs,
            ikeConfig: DownloadVpnConnectionConfigResponseBodyVpnConnectionConfigIkeConfig,
            ipsecConfig: DownloadVpnConnectionConfigResponseBodyVpnConnectionConfigIpsecConfig,
            local: 'string',
            localSubnet: 'string',
            remote: 'string',
            remoteSubnet: 'string',
            tunnelsConfig: DownloadVpnConnectionConfigResponseBodyVpnConnectionConfigTunnelsConfig,
        };
    }
    validate() {
        if (this.bgpConfigs && typeof this.bgpConfigs.validate === 'function') {
            this.bgpConfigs.validate();
        }
        if (this.ikeConfig && typeof this.ikeConfig.validate === 'function') {
            this.ikeConfig.validate();
        }
        if (this.ipsecConfig && typeof this.ipsecConfig.validate === 'function') {
            this.ipsecConfig.validate();
        }
        if (this.tunnelsConfig && typeof this.tunnelsConfig.validate === 'function') {
            this.tunnelsConfig.validate();
        }
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.DownloadVpnConnectionConfigResponseBodyVpnConnectionConfig = DownloadVpnConnectionConfigResponseBodyVpnConnectionConfig;
class DownloadVpnConnectionConfigResponseBody extends $dara.Model {
    static names() {
        return {
            requestId: 'RequestId',
            vpnConnectionConfig: 'VpnConnectionConfig',
        };
    }
    static types() {
        return {
            requestId: 'string',
            vpnConnectionConfig: DownloadVpnConnectionConfigResponseBodyVpnConnectionConfig,
        };
    }
    validate() {
        if (this.vpnConnectionConfig && typeof this.vpnConnectionConfig.validate === 'function') {
            this.vpnConnectionConfig.validate();
        }
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.DownloadVpnConnectionConfigResponseBody = DownloadVpnConnectionConfigResponseBody;
//# sourceMappingURL=DownloadVpnConnectionConfigResponseBody.js.map