"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.DescribeVpnGatewaysResponseBody = exports.DescribeVpnGatewaysResponseBodyVpnGateways = exports.DescribeVpnGatewaysResponseBodyVpnGatewaysVpnGateway = exports.DescribeVpnGatewaysResponseBodyVpnGatewaysVpnGatewayTags = exports.DescribeVpnGatewaysResponseBodyVpnGatewaysVpnGatewayTagsTag = exports.DescribeVpnGatewaysResponseBodyVpnGatewaysVpnGatewayReservationData = exports.DescribeVpnGatewaysResponseBodyVpnGatewaysVpnGatewayEniInstanceIds = void 0;
// This file is auto-generated, don't edit it
const $dara = __importStar(require("@darabonba/typescript"));
class DescribeVpnGatewaysResponseBodyVpnGatewaysVpnGatewayEniInstanceIds extends $dara.Model {
    static names() {
        return {
            eniInstanceId: 'EniInstanceId',
        };
    }
    static types() {
        return {
            eniInstanceId: { 'type': 'array', 'itemType': 'string' },
        };
    }
    validate() {
        if (Array.isArray(this.eniInstanceId)) {
            $dara.Model.validateArray(this.eniInstanceId);
        }
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.DescribeVpnGatewaysResponseBodyVpnGatewaysVpnGatewayEniInstanceIds = DescribeVpnGatewaysResponseBodyVpnGatewaysVpnGatewayEniInstanceIds;
class DescribeVpnGatewaysResponseBodyVpnGatewaysVpnGatewayReservationData extends $dara.Model {
    static names() {
        return {
            reservationEndTime: 'ReservationEndTime',
            reservationIpsec: 'ReservationIpsec',
            reservationMaxConnections: 'ReservationMaxConnections',
            reservationOrderType: 'ReservationOrderType',
            reservationSpec: 'ReservationSpec',
            reservationSsl: 'ReservationSsl',
            status: 'Status',
        };
    }
    static types() {
        return {
            reservationEndTime: 'string',
            reservationIpsec: 'string',
            reservationMaxConnections: 'number',
            reservationOrderType: 'string',
            reservationSpec: 'string',
            reservationSsl: 'string',
            status: 'string',
        };
    }
    validate() {
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.DescribeVpnGatewaysResponseBodyVpnGatewaysVpnGatewayReservationData = DescribeVpnGatewaysResponseBodyVpnGatewaysVpnGatewayReservationData;
class DescribeVpnGatewaysResponseBodyVpnGatewaysVpnGatewayTagsTag 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.DescribeVpnGatewaysResponseBodyVpnGatewaysVpnGatewayTagsTag = DescribeVpnGatewaysResponseBodyVpnGatewaysVpnGatewayTagsTag;
class DescribeVpnGatewaysResponseBodyVpnGatewaysVpnGatewayTags extends $dara.Model {
    static names() {
        return {
            tag: 'Tag',
        };
    }
    static types() {
        return {
            tag: { 'type': 'array', 'itemType': DescribeVpnGatewaysResponseBodyVpnGatewaysVpnGatewayTagsTag },
        };
    }
    validate() {
        if (Array.isArray(this.tag)) {
            $dara.Model.validateArray(this.tag);
        }
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.DescribeVpnGatewaysResponseBodyVpnGatewaysVpnGatewayTags = DescribeVpnGatewaysResponseBodyVpnGatewaysVpnGatewayTags;
class DescribeVpnGatewaysResponseBodyVpnGatewaysVpnGateway extends $dara.Model {
    static names() {
        return {
            autoPropagate: 'AutoPropagate',
            businessStatus: 'BusinessStatus',
            chargeType: 'ChargeType',
            createTime: 'CreateTime',
            description: 'Description',
            disasterRecoveryInternetIp: 'DisasterRecoveryInternetIp',
            disasterRecoveryVSwitchId: 'DisasterRecoveryVSwitchId',
            enableBgp: 'EnableBgp',
            endTime: 'EndTime',
            eniInstanceIds: 'EniInstanceIds',
            gatewayType: 'GatewayType',
            internetIp: 'InternetIp',
            ipsecVpn: 'IpsecVpn',
            name: 'Name',
            networkType: 'NetworkType',
            reservationData: 'ReservationData',
            resourceGroupId: 'ResourceGroupId',
            spec: 'Spec',
            sslMaxConnections: 'SslMaxConnections',
            sslVpn: 'SslVpn',
            sslVpnInternetIp: 'SslVpnInternetIp',
            status: 'Status',
            tag: 'Tag',
            tags: 'Tags',
            vSwitchId: 'VSwitchId',
            vpcId: 'VpcId',
            vpnGatewayId: 'VpnGatewayId',
            vpnType: 'VpnType',
        };
    }
    static types() {
        return {
            autoPropagate: 'boolean',
            businessStatus: 'string',
            chargeType: 'string',
            createTime: 'number',
            description: 'string',
            disasterRecoveryInternetIp: 'string',
            disasterRecoveryVSwitchId: 'string',
            enableBgp: 'boolean',
            endTime: 'number',
            eniInstanceIds: DescribeVpnGatewaysResponseBodyVpnGatewaysVpnGatewayEniInstanceIds,
            gatewayType: 'string',
            internetIp: 'string',
            ipsecVpn: 'string',
            name: 'string',
            networkType: 'string',
            reservationData: DescribeVpnGatewaysResponseBodyVpnGatewaysVpnGatewayReservationData,
            resourceGroupId: 'string',
            spec: 'string',
            sslMaxConnections: 'number',
            sslVpn: 'string',
            sslVpnInternetIp: 'string',
            status: 'string',
            tag: 'string',
            tags: DescribeVpnGatewaysResponseBodyVpnGatewaysVpnGatewayTags,
            vSwitchId: 'string',
            vpcId: 'string',
            vpnGatewayId: 'string',
            vpnType: 'string',
        };
    }
    validate() {
        if (this.eniInstanceIds && typeof this.eniInstanceIds.validate === 'function') {
            this.eniInstanceIds.validate();
        }
        if (this.reservationData && typeof this.reservationData.validate === 'function') {
            this.reservationData.validate();
        }
        if (this.tags && typeof this.tags.validate === 'function') {
            this.tags.validate();
        }
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.DescribeVpnGatewaysResponseBodyVpnGatewaysVpnGateway = DescribeVpnGatewaysResponseBodyVpnGatewaysVpnGateway;
class DescribeVpnGatewaysResponseBodyVpnGateways extends $dara.Model {
    static names() {
        return {
            vpnGateway: 'VpnGateway',
        };
    }
    static types() {
        return {
            vpnGateway: { 'type': 'array', 'itemType': DescribeVpnGatewaysResponseBodyVpnGatewaysVpnGateway },
        };
    }
    validate() {
        if (Array.isArray(this.vpnGateway)) {
            $dara.Model.validateArray(this.vpnGateway);
        }
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.DescribeVpnGatewaysResponseBodyVpnGateways = DescribeVpnGatewaysResponseBodyVpnGateways;
class DescribeVpnGatewaysResponseBody extends $dara.Model {
    static names() {
        return {
            pageNumber: 'PageNumber',
            pageSize: 'PageSize',
            requestId: 'RequestId',
            totalCount: 'TotalCount',
            vpnGateways: 'VpnGateways',
        };
    }
    static types() {
        return {
            pageNumber: 'number',
            pageSize: 'number',
            requestId: 'string',
            totalCount: 'number',
            vpnGateways: DescribeVpnGatewaysResponseBodyVpnGateways,
        };
    }
    validate() {
        if (this.vpnGateways && typeof this.vpnGateways.validate === 'function') {
            this.vpnGateways.validate();
        }
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.DescribeVpnGatewaysResponseBody = DescribeVpnGatewaysResponseBody;
//# sourceMappingURL=DescribeVpnGatewaysResponseBody.js.map