"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.ListIpsecServersResponseBody = exports.ListIpsecServersResponseBodyIpsecServers = exports.ListIpsecServersResponseBodyIpsecServersIpsecConfig = exports.ListIpsecServersResponseBodyIpsecServersIkeConfig = void 0;
// This file is auto-generated, don't edit it
const $dara = __importStar(require("@darabonba/typescript"));
class ListIpsecServersResponseBodyIpsecServersIkeConfig extends $dara.Model {
    static names() {
        return {
            ikeAuthAlg: 'IkeAuthAlg',
            ikeEncAlg: 'IkeEncAlg',
            ikeLifetime: 'IkeLifetime',
            ikeMode: 'IkeMode',
            ikePfs: 'IkePfs',
            ikeVersion: 'IkeVersion',
            localId: 'LocalId',
            remoteId: 'RemoteId',
        };
    }
    static types() {
        return {
            ikeAuthAlg: 'string',
            ikeEncAlg: 'string',
            ikeLifetime: 'number',
            ikeMode: 'string',
            ikePfs: 'string',
            ikeVersion: 'string',
            localId: 'string',
            remoteId: 'string',
        };
    }
    validate() {
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.ListIpsecServersResponseBodyIpsecServersIkeConfig = ListIpsecServersResponseBodyIpsecServersIkeConfig;
class ListIpsecServersResponseBodyIpsecServersIpsecConfig 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.ListIpsecServersResponseBodyIpsecServersIpsecConfig = ListIpsecServersResponseBodyIpsecServersIpsecConfig;
class ListIpsecServersResponseBodyIpsecServers extends $dara.Model {
    static names() {
        return {
            clientIpPool: 'ClientIpPool',
            creationTime: 'CreationTime',
            effectImmediately: 'EffectImmediately',
            IDaaSInstanceId: 'IDaaSInstanceId',
            ikeConfig: 'IkeConfig',
            internetIp: 'InternetIp',
            ipsecConfig: 'IpsecConfig',
            ipsecServerId: 'IpsecServerId',
            ipsecServerName: 'IpsecServerName',
            localSubnet: 'LocalSubnet',
            maxConnections: 'MaxConnections',
            multiFactorAuthEnabled: 'MultiFactorAuthEnabled',
            onlineClientCount: 'OnlineClientCount',
            psk: 'Psk',
            pskEnabled: 'PskEnabled',
            regionId: 'RegionId',
            resourceGroupId: 'ResourceGroupId',
            vpnGatewayId: 'VpnGatewayId',
        };
    }
    static types() {
        return {
            clientIpPool: 'string',
            creationTime: 'string',
            effectImmediately: 'boolean',
            IDaaSInstanceId: 'string',
            ikeConfig: ListIpsecServersResponseBodyIpsecServersIkeConfig,
            internetIp: 'string',
            ipsecConfig: ListIpsecServersResponseBodyIpsecServersIpsecConfig,
            ipsecServerId: 'string',
            ipsecServerName: 'string',
            localSubnet: 'string',
            maxConnections: 'number',
            multiFactorAuthEnabled: 'boolean',
            onlineClientCount: 'number',
            psk: 'string',
            pskEnabled: 'boolean',
            regionId: 'string',
            resourceGroupId: '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();
        }
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.ListIpsecServersResponseBodyIpsecServers = ListIpsecServersResponseBodyIpsecServers;
class ListIpsecServersResponseBody extends $dara.Model {
    static names() {
        return {
            ipsecServers: 'IpsecServers',
            maxResults: 'MaxResults',
            nextToken: 'NextToken',
            requestId: 'RequestId',
            totalCount: 'TotalCount',
        };
    }
    static types() {
        return {
            ipsecServers: { 'type': 'array', 'itemType': ListIpsecServersResponseBodyIpsecServers },
            maxResults: 'number',
            nextToken: 'string',
            requestId: 'string',
            totalCount: 'number',
        };
    }
    validate() {
        if (Array.isArray(this.ipsecServers)) {
            $dara.Model.validateArray(this.ipsecServers);
        }
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.ListIpsecServersResponseBody = ListIpsecServersResponseBody;
//# sourceMappingURL=ListIpsecServersResponseBody.js.map