"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.ModifyVpnConnectionAttributeResponseBody = exports.ModifyVpnConnectionAttributeResponseBodyVpnBgpConfig = exports.ModifyVpnConnectionAttributeResponseBodyVcoHealthCheck = exports.ModifyVpnConnectionAttributeResponseBodyTunnelOptionsSpecification = exports.ModifyVpnConnectionAttributeResponseBodyTunnelOptionsSpecificationTunnelOptions = exports.ModifyVpnConnectionAttributeResponseBodyTunnelOptionsSpecificationTunnelOptionsTunnelIpsecConfig = exports.ModifyVpnConnectionAttributeResponseBodyTunnelOptionsSpecificationTunnelOptionsTunnelIkeConfig = exports.ModifyVpnConnectionAttributeResponseBodyTunnelOptionsSpecificationTunnelOptionsTunnelBgpConfig = exports.ModifyVpnConnectionAttributeResponseBodyIpsecConfig = exports.ModifyVpnConnectionAttributeResponseBodyIkeConfig = void 0;
// This file is auto-generated, don't edit it
const $dara = __importStar(require("@darabonba/typescript"));
class ModifyVpnConnectionAttributeResponseBodyIkeConfig 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.ModifyVpnConnectionAttributeResponseBodyIkeConfig = ModifyVpnConnectionAttributeResponseBodyIkeConfig;
class ModifyVpnConnectionAttributeResponseBodyIpsecConfig 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.ModifyVpnConnectionAttributeResponseBodyIpsecConfig = ModifyVpnConnectionAttributeResponseBodyIpsecConfig;
class ModifyVpnConnectionAttributeResponseBodyTunnelOptionsSpecificationTunnelOptionsTunnelBgpConfig extends $dara.Model {
    static names() {
        return {
            localAsn: 'LocalAsn',
            localBgpIp: 'LocalBgpIp',
            peerAsn: 'PeerAsn',
            peerBgpIp: 'PeerBgpIp',
            tunnelCidr: 'TunnelCidr',
        };
    }
    static types() {
        return {
            localAsn: 'number',
            localBgpIp: 'string',
            peerAsn: 'number',
            peerBgpIp: 'string',
            tunnelCidr: 'string',
        };
    }
    validate() {
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.ModifyVpnConnectionAttributeResponseBodyTunnelOptionsSpecificationTunnelOptionsTunnelBgpConfig = ModifyVpnConnectionAttributeResponseBodyTunnelOptionsSpecificationTunnelOptionsTunnelBgpConfig;
class ModifyVpnConnectionAttributeResponseBodyTunnelOptionsSpecificationTunnelOptionsTunnelIkeConfig 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.ModifyVpnConnectionAttributeResponseBodyTunnelOptionsSpecificationTunnelOptionsTunnelIkeConfig = ModifyVpnConnectionAttributeResponseBodyTunnelOptionsSpecificationTunnelOptionsTunnelIkeConfig;
class ModifyVpnConnectionAttributeResponseBodyTunnelOptionsSpecificationTunnelOptionsTunnelIpsecConfig 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.ModifyVpnConnectionAttributeResponseBodyTunnelOptionsSpecificationTunnelOptionsTunnelIpsecConfig = ModifyVpnConnectionAttributeResponseBodyTunnelOptionsSpecificationTunnelOptionsTunnelIpsecConfig;
class ModifyVpnConnectionAttributeResponseBodyTunnelOptionsSpecificationTunnelOptions extends $dara.Model {
    static names() {
        return {
            customerGatewayId: 'CustomerGatewayId',
            enableDpd: 'EnableDpd',
            enableNatTraversal: 'EnableNatTraversal',
            internetIp: 'InternetIp',
            remoteCaCertificate: 'RemoteCaCertificate',
            role: 'Role',
            state: 'State',
            tunnelBgpConfig: 'TunnelBgpConfig',
            tunnelId: 'TunnelId',
            tunnelIkeConfig: 'TunnelIkeConfig',
            tunnelIpsecConfig: 'TunnelIpsecConfig',
            zoneNo: 'ZoneNo',
        };
    }
    static types() {
        return {
            customerGatewayId: 'string',
            enableDpd: 'boolean',
            enableNatTraversal: 'boolean',
            internetIp: 'string',
            remoteCaCertificate: 'string',
            role: 'string',
            state: 'string',
            tunnelBgpConfig: ModifyVpnConnectionAttributeResponseBodyTunnelOptionsSpecificationTunnelOptionsTunnelBgpConfig,
            tunnelId: 'string',
            tunnelIkeConfig: ModifyVpnConnectionAttributeResponseBodyTunnelOptionsSpecificationTunnelOptionsTunnelIkeConfig,
            tunnelIpsecConfig: ModifyVpnConnectionAttributeResponseBodyTunnelOptionsSpecificationTunnelOptionsTunnelIpsecConfig,
            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.ModifyVpnConnectionAttributeResponseBodyTunnelOptionsSpecificationTunnelOptions = ModifyVpnConnectionAttributeResponseBodyTunnelOptionsSpecificationTunnelOptions;
class ModifyVpnConnectionAttributeResponseBodyTunnelOptionsSpecification extends $dara.Model {
    static names() {
        return {
            tunnelOptions: 'TunnelOptions',
        };
    }
    static types() {
        return {
            tunnelOptions: { 'type': 'array', 'itemType': ModifyVpnConnectionAttributeResponseBodyTunnelOptionsSpecificationTunnelOptions },
        };
    }
    validate() {
        if (Array.isArray(this.tunnelOptions)) {
            $dara.Model.validateArray(this.tunnelOptions);
        }
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.ModifyVpnConnectionAttributeResponseBodyTunnelOptionsSpecification = ModifyVpnConnectionAttributeResponseBodyTunnelOptionsSpecification;
class ModifyVpnConnectionAttributeResponseBodyVcoHealthCheck extends $dara.Model {
    static names() {
        return {
            dip: 'Dip',
            enable: 'Enable',
            interval: 'Interval',
            retry: 'Retry',
            sip: 'Sip',
        };
    }
    static types() {
        return {
            dip: 'string',
            enable: 'string',
            interval: 'number',
            retry: 'number',
            sip: 'string',
        };
    }
    validate() {
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.ModifyVpnConnectionAttributeResponseBodyVcoHealthCheck = ModifyVpnConnectionAttributeResponseBodyVcoHealthCheck;
class ModifyVpnConnectionAttributeResponseBodyVpnBgpConfig extends $dara.Model {
    static names() {
        return {
            enableBgp: 'EnableBgp',
            localAsn: 'LocalAsn',
            localBgpIp: 'LocalBgpIp',
            peerAsn: 'PeerAsn',
            peerBgpIp: 'PeerBgpIp',
            status: 'Status',
            tunnelCidr: 'TunnelCidr',
        };
    }
    static types() {
        return {
            enableBgp: 'string',
            localAsn: 'number',
            localBgpIp: 'string',
            peerAsn: 'number',
            peerBgpIp: 'string',
            status: 'string',
            tunnelCidr: 'string',
        };
    }
    validate() {
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.ModifyVpnConnectionAttributeResponseBodyVpnBgpConfig = ModifyVpnConnectionAttributeResponseBodyVpnBgpConfig;
class ModifyVpnConnectionAttributeResponseBody extends $dara.Model {
    static names() {
        return {
            createTime: 'CreateTime',
            customerGatewayId: 'CustomerGatewayId',
            description: 'Description',
            effectImmediately: 'EffectImmediately',
            enableDpd: 'EnableDpd',
            enableNatTraversal: 'EnableNatTraversal',
            enableTunnelsBgp: 'EnableTunnelsBgp',
            ikeConfig: 'IkeConfig',
            ipsecConfig: 'IpsecConfig',
            localSubnet: 'LocalSubnet',
            name: 'Name',
            remoteSubnet: 'RemoteSubnet',
            requestId: 'RequestId',
            resourceGroupId: 'ResourceGroupId',
            tunnelOptionsSpecification: 'TunnelOptionsSpecification',
            vcoHealthCheck: 'VcoHealthCheck',
            vpnBgpConfig: 'VpnBgpConfig',
            vpnConnectionId: 'VpnConnectionId',
            vpnGatewayId: 'VpnGatewayId',
        };
    }
    static types() {
        return {
            createTime: 'number',
            customerGatewayId: 'string',
            description: 'string',
            effectImmediately: 'boolean',
            enableDpd: 'boolean',
            enableNatTraversal: 'boolean',
            enableTunnelsBgp: 'boolean',
            ikeConfig: ModifyVpnConnectionAttributeResponseBodyIkeConfig,
            ipsecConfig: ModifyVpnConnectionAttributeResponseBodyIpsecConfig,
            localSubnet: 'string',
            name: 'string',
            remoteSubnet: 'string',
            requestId: 'string',
            resourceGroupId: 'string',
            tunnelOptionsSpecification: ModifyVpnConnectionAttributeResponseBodyTunnelOptionsSpecification,
            vcoHealthCheck: ModifyVpnConnectionAttributeResponseBodyVcoHealthCheck,
            vpnBgpConfig: ModifyVpnConnectionAttributeResponseBodyVpnBgpConfig,
            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.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.ModifyVpnConnectionAttributeResponseBody = ModifyVpnConnectionAttributeResponseBody;
//# sourceMappingURL=ModifyVpnConnectionAttributeResponseBody.js.map