"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.DescribeVpnConnectionsResponseBody = exports.DescribeVpnConnectionsResponseBodyVpnConnections = exports.DescribeVpnConnectionsResponseBodyVpnConnectionsVpnConnection = exports.DescribeVpnConnectionsResponseBodyVpnConnectionsVpnConnectionVpnBgpConfig = exports.DescribeVpnConnectionsResponseBodyVpnConnectionsVpnConnectionVcoHealthCheck = exports.DescribeVpnConnectionsResponseBodyVpnConnectionsVpnConnectionTunnelOptionsSpecification = exports.DescribeVpnConnectionsResponseBodyVpnConnectionsVpnConnectionTunnelOptionsSpecificationTunnelOptions = exports.DescribeVpnConnectionsResponseBodyVpnConnectionsVpnConnectionTunnelOptionsSpecificationTunnelOptionsTunnelIpsecConfig = exports.DescribeVpnConnectionsResponseBodyVpnConnectionsVpnConnectionTunnelOptionsSpecificationTunnelOptionsTunnelIkeConfig = exports.DescribeVpnConnectionsResponseBodyVpnConnectionsVpnConnectionTunnelOptionsSpecificationTunnelOptionsTunnelBgpConfig = exports.DescribeVpnConnectionsResponseBodyVpnConnectionsVpnConnectionTag = exports.DescribeVpnConnectionsResponseBodyVpnConnectionsVpnConnectionTagTag = exports.DescribeVpnConnectionsResponseBodyVpnConnectionsVpnConnectionIpsecConfig = exports.DescribeVpnConnectionsResponseBodyVpnConnectionsVpnConnectionIkeConfig = void 0;
// This file is auto-generated, don't edit it
const $dara = __importStar(require("@darabonba/typescript"));
class DescribeVpnConnectionsResponseBodyVpnConnectionsVpnConnectionIkeConfig 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.DescribeVpnConnectionsResponseBodyVpnConnectionsVpnConnectionIkeConfig = DescribeVpnConnectionsResponseBodyVpnConnectionsVpnConnectionIkeConfig;
class DescribeVpnConnectionsResponseBodyVpnConnectionsVpnConnectionIpsecConfig 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.DescribeVpnConnectionsResponseBodyVpnConnectionsVpnConnectionIpsecConfig = DescribeVpnConnectionsResponseBodyVpnConnectionsVpnConnectionIpsecConfig;
class DescribeVpnConnectionsResponseBodyVpnConnectionsVpnConnectionTagTag 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.DescribeVpnConnectionsResponseBodyVpnConnectionsVpnConnectionTagTag = DescribeVpnConnectionsResponseBodyVpnConnectionsVpnConnectionTagTag;
class DescribeVpnConnectionsResponseBodyVpnConnectionsVpnConnectionTag extends $dara.Model {
    static names() {
        return {
            tag: 'Tag',
        };
    }
    static types() {
        return {
            tag: { 'type': 'array', 'itemType': DescribeVpnConnectionsResponseBodyVpnConnectionsVpnConnectionTagTag },
        };
    }
    validate() {
        if (Array.isArray(this.tag)) {
            $dara.Model.validateArray(this.tag);
        }
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.DescribeVpnConnectionsResponseBodyVpnConnectionsVpnConnectionTag = DescribeVpnConnectionsResponseBodyVpnConnectionsVpnConnectionTag;
class DescribeVpnConnectionsResponseBodyVpnConnectionsVpnConnectionTunnelOptionsSpecificationTunnelOptionsTunnelBgpConfig 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.DescribeVpnConnectionsResponseBodyVpnConnectionsVpnConnectionTunnelOptionsSpecificationTunnelOptionsTunnelBgpConfig = DescribeVpnConnectionsResponseBodyVpnConnectionsVpnConnectionTunnelOptionsSpecificationTunnelOptionsTunnelBgpConfig;
class DescribeVpnConnectionsResponseBodyVpnConnectionsVpnConnectionTunnelOptionsSpecificationTunnelOptionsTunnelIkeConfig 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.DescribeVpnConnectionsResponseBodyVpnConnectionsVpnConnectionTunnelOptionsSpecificationTunnelOptionsTunnelIkeConfig = DescribeVpnConnectionsResponseBodyVpnConnectionsVpnConnectionTunnelOptionsSpecificationTunnelOptionsTunnelIkeConfig;
class DescribeVpnConnectionsResponseBodyVpnConnectionsVpnConnectionTunnelOptionsSpecificationTunnelOptionsTunnelIpsecConfig 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.DescribeVpnConnectionsResponseBodyVpnConnectionsVpnConnectionTunnelOptionsSpecificationTunnelOptionsTunnelIpsecConfig = DescribeVpnConnectionsResponseBodyVpnConnectionsVpnConnectionTunnelOptionsSpecificationTunnelOptionsTunnelIpsecConfig;
class DescribeVpnConnectionsResponseBodyVpnConnectionsVpnConnectionTunnelOptionsSpecificationTunnelOptions 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: DescribeVpnConnectionsResponseBodyVpnConnectionsVpnConnectionTunnelOptionsSpecificationTunnelOptionsTunnelBgpConfig,
            tunnelId: 'string',
            tunnelIkeConfig: DescribeVpnConnectionsResponseBodyVpnConnectionsVpnConnectionTunnelOptionsSpecificationTunnelOptionsTunnelIkeConfig,
            tunnelIndex: 'number',
            tunnelIpsecConfig: DescribeVpnConnectionsResponseBodyVpnConnectionsVpnConnectionTunnelOptionsSpecificationTunnelOptionsTunnelIpsecConfig,
            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.DescribeVpnConnectionsResponseBodyVpnConnectionsVpnConnectionTunnelOptionsSpecificationTunnelOptions = DescribeVpnConnectionsResponseBodyVpnConnectionsVpnConnectionTunnelOptionsSpecificationTunnelOptions;
class DescribeVpnConnectionsResponseBodyVpnConnectionsVpnConnectionTunnelOptionsSpecification extends $dara.Model {
    static names() {
        return {
            tunnelOptions: 'TunnelOptions',
        };
    }
    static types() {
        return {
            tunnelOptions: { 'type': 'array', 'itemType': DescribeVpnConnectionsResponseBodyVpnConnectionsVpnConnectionTunnelOptionsSpecificationTunnelOptions },
        };
    }
    validate() {
        if (Array.isArray(this.tunnelOptions)) {
            $dara.Model.validateArray(this.tunnelOptions);
        }
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.DescribeVpnConnectionsResponseBodyVpnConnectionsVpnConnectionTunnelOptionsSpecification = DescribeVpnConnectionsResponseBodyVpnConnectionsVpnConnectionTunnelOptionsSpecification;
class DescribeVpnConnectionsResponseBodyVpnConnectionsVpnConnectionVcoHealthCheck 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.DescribeVpnConnectionsResponseBodyVpnConnectionsVpnConnectionVcoHealthCheck = DescribeVpnConnectionsResponseBodyVpnConnectionsVpnConnectionVcoHealthCheck;
class DescribeVpnConnectionsResponseBodyVpnConnectionsVpnConnectionVpnBgpConfig extends $dara.Model {
    static names() {
        return {
            authKey: 'AuthKey',
            localAsn: 'LocalAsn',
            localBgpIp: 'LocalBgpIp',
            peerAsn: 'PeerAsn',
            peerBgpIp: 'PeerBgpIp',
            status: 'Status',
            tunnelCidr: 'TunnelCidr',
        };
    }
    static types() {
        return {
            authKey: 'string',
            localAsn: 'number',
            localBgpIp: 'string',
            peerAsn: 'number',
            peerBgpIp: 'string',
            status: 'string',
            tunnelCidr: 'string',
        };
    }
    validate() {
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.DescribeVpnConnectionsResponseBodyVpnConnectionsVpnConnectionVpnBgpConfig = DescribeVpnConnectionsResponseBodyVpnConnectionsVpnConnectionVpnBgpConfig;
class DescribeVpnConnectionsResponseBodyVpnConnectionsVpnConnection 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',
            resourceGroupId: 'ResourceGroupId',
            spec: 'Spec',
            state: 'State',
            status: 'Status',
            tag: 'Tag',
            transitRouterId: 'TransitRouterId',
            transitRouterName: 'TransitRouterName',
            tunnelBandwidth: 'TunnelBandwidth',
            tunnelOptionsSpecification: 'TunnelOptionsSpecification',
            vcoHealthCheck: 'VcoHealthCheck',
            vpnBgpConfig: 'VpnBgpConfig',
            vpnConnectionId: 'VpnConnectionId',
            vpnGatewayId: 'VpnGatewayId',
        };
    }
    static types() {
        return {
            attachInstanceId: 'string',
            attachType: 'string',
            createTime: 'number',
            crossAccountAuthorized: 'boolean',
            customerGatewayId: 'string',
            effectImmediately: 'boolean',
            enableDpd: 'boolean',
            enableNatTraversal: 'boolean',
            enableTunnelsBgp: 'boolean',
            ikeConfig: DescribeVpnConnectionsResponseBodyVpnConnectionsVpnConnectionIkeConfig,
            internetIp: 'string',
            ipsecConfig: DescribeVpnConnectionsResponseBodyVpnConnectionsVpnConnectionIpsecConfig,
            localSubnet: 'string',
            name: 'string',
            networkType: 'string',
            remoteCaCertificate: 'string',
            remoteSubnet: 'string',
            resourceGroupId: 'string',
            spec: 'string',
            state: 'string',
            status: 'string',
            tag: DescribeVpnConnectionsResponseBodyVpnConnectionsVpnConnectionTag,
            transitRouterId: 'string',
            transitRouterName: 'string',
            tunnelBandwidth: 'string',
            tunnelOptionsSpecification: DescribeVpnConnectionsResponseBodyVpnConnectionsVpnConnectionTunnelOptionsSpecification,
            vcoHealthCheck: DescribeVpnConnectionsResponseBodyVpnConnectionsVpnConnectionVcoHealthCheck,
            vpnBgpConfig: DescribeVpnConnectionsResponseBodyVpnConnectionsVpnConnectionVpnBgpConfig,
            vpnConnectionId: 'string',
            vpnGatewayId: '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.tag && typeof this.tag.validate === 'function') {
            this.tag.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.DescribeVpnConnectionsResponseBodyVpnConnectionsVpnConnection = DescribeVpnConnectionsResponseBodyVpnConnectionsVpnConnection;
class DescribeVpnConnectionsResponseBodyVpnConnections extends $dara.Model {
    static names() {
        return {
            vpnConnection: 'VpnConnection',
        };
    }
    static types() {
        return {
            vpnConnection: { 'type': 'array', 'itemType': DescribeVpnConnectionsResponseBodyVpnConnectionsVpnConnection },
        };
    }
    validate() {
        if (Array.isArray(this.vpnConnection)) {
            $dara.Model.validateArray(this.vpnConnection);
        }
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.DescribeVpnConnectionsResponseBodyVpnConnections = DescribeVpnConnectionsResponseBodyVpnConnections;
class DescribeVpnConnectionsResponseBody extends $dara.Model {
    static names() {
        return {
            pageNumber: 'PageNumber',
            pageSize: 'PageSize',
            requestId: 'RequestId',
            totalCount: 'TotalCount',
            vpnConnections: 'VpnConnections',
        };
    }
    static types() {
        return {
            pageNumber: 'number',
            pageSize: 'number',
            requestId: 'string',
            totalCount: 'number',
            vpnConnections: DescribeVpnConnectionsResponseBodyVpnConnections,
        };
    }
    validate() {
        if (this.vpnConnections && typeof this.vpnConnections.validate === 'function') {
            this.vpnConnections.validate();
        }
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.DescribeVpnConnectionsResponseBody = DescribeVpnConnectionsResponseBody;
//# sourceMappingURL=DescribeVpnConnectionsResponseBody.js.map