"use strict";
// File generated from our OpenAPI spec by Stainless.
Object.defineProperty(exports, "__esModule", { value: true });
exports.Routes = void 0;
const resource_1 = require("cloudflare/resource");
const core_1 = require("cloudflare/core");
class Routes extends resource_1.APIResource {
    moas(query = {}, options) {
        if ((0, core_1.isRequestOptions)(query)) {
            return this.moas({}, query);
        }
        return this._client.get('/radar/bgp/routes/moas', { query, ...options })._thenUnwrap((obj) => obj.result);
    }
    pfx2as(query = {}, options) {
        if ((0, core_1.isRequestOptions)(query)) {
            return this.pfx2as({}, query);
        }
        return this._client.get('/radar/bgp/routes/pfx2as', { query, ...options })._thenUnwrap((obj) => obj.result);
    }
    stats(query = {}, options) {
        if ((0, core_1.isRequestOptions)(query)) {
            return this.stats({}, query);
        }
        return this._client.get('/radar/bgp/routes/stats', { query, ...options })._thenUnwrap((obj) => obj.result);
    }
    timeseries(query = {}, options) {
        if ((0, core_1.isRequestOptions)(query)) {
            return this.timeseries({}, query);
        }
        return this._client.get('/radar/bgp/routes/timeseries', { query, ...options })._thenUnwrap((obj) => obj.result);
    }
}
exports.Routes = Routes;
(function (Routes) {
})(Routes = exports.Routes || (exports.Routes = {}));
//# sourceMappingURL=routes.js.map