"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.DescribeVpnConnectionResponseBody = exports.DescribeVpnConnectionResponseBodyVpnBgpConfig = exports.DescribeVpnConnectionResponseBodyVcoHealthCheck = exports.DescribeVpnConnectionResponseBodyTunnelOptionsSpecification = exports.DescribeVpnConnectionResponseBodyTunnelOptionsSpecificationTunnelOptions = exports.DescribeVpnConnectionResponseBodyTunnelOptionsSpecificationTunnelOptionsTunnelIpsecConfig = exports.DescribeVpnConnectionResponseBodyTunnelOptionsSpecificationTunnelOptionsTunnelIkeConfig = exports.DescribeVpnConnectionResponseBodyTunnelOptionsSpecificationTunnelOptionsTunnelBgpConfig = exports.DescribeVpnConnectionResponseBodyTags = exports.DescribeVpnConnectionResponseBodyTagsTag = exports.DescribeVpnConnectionResponseBodyIpsecConfig = exports.DescribeVpnConnectionResponseBodyIkeConfig = void 0;
// This file is auto-generated, don't edit it
const $dara = __importStar(require("@darabonba/typescript"));
class DescribeVpnConnectionResponseBodyIkeConfig 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.DescribeVpnConnectionResponseBodyIkeConfig = DescribeVpnConnectionResponseBodyIkeConfig;
class DescribeVpnConnectionResponseBodyIpsecConfig 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.DescribeVpnConnectionResponseBodyIpsecConfig = DescribeVpnConnectionResponseBodyIpsecConfig;
class DescribeVpnConnectionResponseBodyTagsTag 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.DescribeVpnConnectionResponseBodyTagsTag = DescribeVpnConnectionResponseBodyTagsTag;
class DescribeVpnConnectionResponseBodyTags extends $dara.Model {
    static names() {
        return {
            tag: 'Tag',
        };
    }
    static types() {
        return {
            tag: { 'type': 'array', 'itemType': DescribeVpnConnectionResponseBodyTagsTag },
        };
    }
    validate() {
        if (Array.isArray(this.tag)) {
            $dara.Model.validateArray(this.tag);
        }
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.DescribeVpnConnectionResponseBodyTags = DescribeVpnConnectionResponseBodyTags;
class DescribeVpnConnectionResponseBodyTunnelOptionsSpecificationTunnelOptionsTunnelBgpConfig extends $dara.Model {
    static names() {
        return {
            bgpStatus: 'BgpStatus',
            localAsn: 'LocalAsn',
            localBgpIp: 'LocalBgpIp',
            peerAsn: 'PeerAsn',
            peerBgpIp: 'PeerBgpIp',
            tunnelCidr: 'TunnelCidr',
        };
    }
    static types() {
        return {
            bgpStatus: 'string',
            localAsn: 'string',
            localBgpIp: 'string',
            peerAsn: 'string',
            peerBgpIp: 'string',
            tunnelCidr: 'string',
        };
    }
    validate() {
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.DescribeVpnConnectionResponseBodyTunnelOptionsSpecificationTunnelOptionsTunnelBgpConfig = DescribeVpnConnectionResponseBodyTunnelOptionsSpecificationTunnelOptionsTunnelBgpConfig;
class DescribeVpnConnectionResponseBodyTunnelOptionsSpecificationTunnelOptionsTunnelIkeConfig 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: 'string',
            ikeMode: 'string',
            ikePfs: 'string',
            ikeVersion: 'string',
            localId: 'string',
            psk: 'string',
            remoteId: 'string',
        };
    }
    validate() {
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.DescribeVpnConnectionResponseBodyTunnelOptionsSpecificationTunnelOptionsTunnelIkeConfig = DescribeVpnConnectionResponseBodyTunnelOptionsSpecificationTunnelOptionsTunnelIkeConfig;
class DescribeVpnConnectionResponseBodyTunnelOptionsSpecificationTunnelOptionsTunnelIpsecConfig extends $dara.Model {
    static names() {
        return {
            ipsecAuthAlg: 'IpsecAuthAlg',
            ipsecEncAlg: 'IpsecEncAlg',
            ipsecLifetime: 'IpsecLifetime',
            ipsecPfs: 'IpsecPfs',
        };
    }
    static types() {
        return {
            ipsecAuthAlg: 'string',
            ipsecEncAlg: 'string',
            ipsecLifetime: 'string',
            ipsecPfs: 'string',
        };
    }
    validate() {
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.DescribeVpnConnectionResponseBodyTunnelOptionsSpecificationTunnelOptionsTunnelIpsecConfig = DescribeVpnConnectionResponseBodyTunnelOptionsSpecificationTunnelOptionsTunnelIpsecConfig;
class DescribeVpnConnectionResponseBodyTunnelOptionsSpecificationTunnelOptions extends $dara.Model {
    static names() {
        return {
            customerGatewayId: 'CustomerGatewayId',
            enableDpd: 'EnableDpd',
            enableNatTraversal: 'EnableNatTraversal',
            internetIp: 'InternetIp',
            remoteCaCertificate: 'RemoteCaCertificate',
            role: 'Role',
            state: 'State',
            status: 'Status',
            tunnelBgpConfig: 'TunnelBgpConfig',
            tunnelId: 'TunnelId',
            tunnelIkeConfig: 'TunnelIkeConfig',
            tunnelIndex: 'TunnelIndex',
            tunnelIpsecConfig: 'TunnelIpsecConfig',
            zoneNo: 'ZoneNo',
        };
    }
    static types() {
        return {
            customerGatewayId: 'string',
            enableDpd: 'string',
            enableNatTraversal: 'string',
            internetIp: 'string',
            remoteCaCertificate: 'string',
            role: 'string',
            state: 'string',
            status: 'string',
            tunnelBgpConfig: DescribeVpnConnectionResponseBodyTunnelOptionsSpecificationTunnelOptionsTunnelBgpConfig,
            tunnelId: 'string',
            tunnelIkeConfig: DescribeVpnConnectionResponseBodyTunnelOptionsSpecificationTunnelOptionsTunnelIkeConfig,
            tunnelIndex: 'number',
            tunnelIpsecConfig: DescribeVpnConnectionResponseBodyTunnelOptionsSpecificationTunnelOptionsTunnelIpsecConfig,
            zoneNo: 'string',
        };
    }
    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.DescribeVpnConnectionResponseBodyTunnelOptionsSpecificationTunnelOptions = DescribeVpnConnectionResponseBodyTunnelOptionsSpecificationTunnelOptions;
class DescribeVpnConnectionResponseBodyTunnelOptionsSpecification extends $dara.Model {
    static names() {
        return {
            tunnelOptions: 'TunnelOptions',
        };
    }
    static types() {
        return {
            tunnelOptions: { 'type': 'array', 'itemType': DescribeVpnConnectionResponseBodyTunnelOptionsSpecificationTunnelOptions },
        };
    }
    validate() {
        if (Array.isArray(this.tunnelOptions)) {
            $dara.Model.validateArray(this.tunnelOptions);
        }
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.DescribeVpnConnectionResponseBodyTunnelOptionsSpecification = DescribeVpnConnectionResponseBodyTunnelOptionsSpecification;
class DescribeVpnConnectionResponseBodyVcoHealthCheck extends $dara.Model {
    static names() {
        return {
            dip: 'Dip',
            enable: 'Enable',
            interval: 'Interval',
            policy: 'Policy',
            retry: 'Retry',
            sip: 'Sip',
            status: 'Status',
        };
    }
    static types() {
        return {
            dip: 'string',
            enable: 'string',
            interval: 'number',
            policy: 'string',
            retry: 'number',
            sip: 'string',
            status: 'string',
        };
    }
    validate() {
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.DescribeVpnConnectionResponseBodyVcoHealthCheck = DescribeVpnConnectionResponseBodyVcoHealthCheck;
class DescribeVpnConnectionResponseBodyVpnBgpConfig extends $dara.Model {
    static names() {
        return {
            authKey: 'AuthKey',
            enableBgp: 'EnableBgp',
            localAsn: 'LocalAsn',
            localBgpIp: 'LocalBgpIp',
            peerAsn: 'PeerAsn',
            peerBgpIp: 'PeerBgpIp',
            status: 'Status',
            tunnelCidr: 'TunnelCidr',
        };
    }
    static types() {
        return {
            authKey: 'string',
            enableBgp: 'string',
            localAsn: 'number',
            localBgpIp: 'string',
            peerAsn: 'number',
            peerBgpIp: 'string',
            status: 'string',
            tunnelCidr: 'string',
        };
    }
    validate() {
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.DescribeVpnConnectionResponseBodyVpnBgpConfig = DescribeVpnConnectionResponseBodyVpnBgpConfig;
class DescribeVpnConnectionResponseBody extends $dara.Model {
    static names() {
        return {
            attachInstanceId: 'AttachInstanceId',
            attachType: 'AttachType',
            createTime: 'CreateTime',
            crossAccountAuthorized: 'CrossAccountAuthorized',
            customerGatewayId: 'CustomerGatewayId',
            effectImmediately: 'EffectImmediately',
            enableDpd: 'EnableDpd',
            enableNatTraversal: 'EnableNatTraversal',
            enableTunnelsBgp: 'EnableTunnelsBgp',
            ikeConfig: 'IkeConfig',
            internetIp: 'InternetIp',
            ipsecConfig: 'IpsecConfig',
            localSubnet: 'LocalSubnet',
            name: 'Name',
            networkType: 'NetworkType',
            remoteCaCertificate: 'RemoteCaCertificate',
            remoteSubnet: 'RemoteSubnet',
            requestId: 'RequestId',
            resourceGroupId: 'ResourceGroupId',
            spec: 'Spec',
            state: 'State',
            status: 'Status',
            tags: 'Tags',
            transitRouterId: 'TransitRouterId',
            transitRouterName: 'TransitRouterName',
            tunnelBandwidth: 'TunnelBandwidth',
            tunnelOptionsSpecification: 'TunnelOptionsSpecification',
            vcoHealthCheck: 'VcoHealthCheck',
            vpnBgpConfig: 'VpnBgpConfig',
            vpnConnectionId: 'VpnConnectionId',
            vpnGatewayId: 'VpnGatewayId',
            zoneNo: 'ZoneNo',
        };
    }
    static types() {
        return {
            attachInstanceId: 'string',
            attachType: 'string',
            createTime: 'number',
            crossAccountAuthorized: 'boolean',
            customerGatewayId: 'string',
            effectImmediately: 'boolean',
            enableDpd: 'boolean',
            enableNatTraversal: 'boolean',
            enableTunnelsBgp: 'boolean',
            ikeConfig: DescribeVpnConnectionResponseBodyIkeConfig,
            internetIp: 'string',
            ipsecConfig: DescribeVpnConnectionResponseBodyIpsecConfig,
            localSubnet: 'string',
            name: 'string',
            networkType: 'string',
            remoteCaCertificate: 'string',
            remoteSubnet: 'string',
            requestId: 'string',
            resourceGroupId: 'string',
            spec: 'string',
            state: 'string',
            status: 'string',
            tags: DescribeVpnConnectionResponseBodyTags,
            transitRouterId: 'string',
            transitRouterName: 'string',
            tunnelBandwidth: 'string',
            tunnelOptionsSpecification: DescribeVpnConnectionResponseBodyTunnelOptionsSpecification,
            vcoHealthCheck: DescribeVpnConnectionResponseBodyVcoHealthCheck,
            vpnBgpConfig: DescribeVpnConnectionResponseBodyVpnBgpConfig,
            vpnConnectionId: 'string',
            vpnGatewayId: 'string',
            zoneNo: 'string',
        };
    }
    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.tags && typeof this.tags.validate === 'function') {
            this.tags.validate();
        }
        if (this.tunnelOptionsSpecification && typeof this.tunnelOptionsSpecification.validate === 'function') {
            this.tunnelOptionsSpecification.validate();
        }
        if (this.vcoHealthCheck && typeof this.vcoHealthCheck.validate === 'function') {
            this.vcoHealthCheck.validate();
        }
        if (this.vpnBgpConfig && typeof this.vpnBgpConfig.validate === 'function') {
            this.vpnBgpConfig.validate();
        }
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.DescribeVpnConnectionResponseBody = DescribeVpnConnectionResponseBody;
//# sourceMappingURL=DescribeVpnConnectionResponseBody.js.map