"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.ModifyTunnelAttributeResponseBody = exports.ModifyTunnelAttributeResponseBodyTunnelIpsecConfig = exports.ModifyTunnelAttributeResponseBodyTunnelIkeConfig = exports.ModifyTunnelAttributeResponseBodyTunnelBgpConfig = void 0;
// This file is auto-generated, don't edit it
const $dara = __importStar(require("@darabonba/typescript"));
class ModifyTunnelAttributeResponseBodyTunnelBgpConfig extends $dara.Model {
    static names() {
        return {
            enableBgp: 'EnableBgp',
            localAsn: 'LocalAsn',
            localBgpIp: 'LocalBgpIp',
            peerAsn: 'PeerAsn',
            peerBgpIp: 'PeerBgpIp',
            tunnelCidr: 'TunnelCidr',
        };
    }
    static types() {
        return {
            enableBgp: 'boolean',
            localAsn: 'number',
            localBgpIp: 'string',
            peerAsn: 'number',
            peerBgpIp: 'string',
            tunnelCidr: 'string',
        };
    }
    validate() {
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.ModifyTunnelAttributeResponseBodyTunnelBgpConfig = ModifyTunnelAttributeResponseBodyTunnelBgpConfig;
class ModifyTunnelAttributeResponseBodyTunnelIkeConfig 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.ModifyTunnelAttributeResponseBodyTunnelIkeConfig = ModifyTunnelAttributeResponseBodyTunnelIkeConfig;
class ModifyTunnelAttributeResponseBodyTunnelIpsecConfig 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.ModifyTunnelAttributeResponseBodyTunnelIpsecConfig = ModifyTunnelAttributeResponseBodyTunnelIpsecConfig;
class ModifyTunnelAttributeResponseBody extends $dara.Model {
    static names() {
        return {
            customerGatewayId: 'CustomerGatewayId',
            enableDpd: 'EnableDpd',
            enableNatTraversal: 'EnableNatTraversal',
            internetIp: 'InternetIp',
            remoteCaCertificate: 'RemoteCaCertificate',
            requestId: 'RequestId',
            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',
            requestId: 'string',
            role: 'string',
            state: 'string',
            tunnelBgpConfig: ModifyTunnelAttributeResponseBodyTunnelBgpConfig,
            tunnelId: 'string',
            tunnelIkeConfig: ModifyTunnelAttributeResponseBodyTunnelIkeConfig,
            tunnelIpsecConfig: ModifyTunnelAttributeResponseBodyTunnelIpsecConfig,
            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.ModifyTunnelAttributeResponseBody = ModifyTunnelAttributeResponseBody;
//# sourceMappingURL=ModifyTunnelAttributeResponseBody.js.map