UNPKG

cloudflare

Version:

The official TypeScript library for the Cloudflare API

24 lines 967 B
"use strict"; // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. Object.defineProperty(exports, "__esModule", { value: true }); exports.Top = void 0; const resource_1 = require("cloudflare/resource"); const core_1 = require("cloudflare/core"); class Top extends resource_1.APIResource { ases(query = {}, options) { if ((0, core_1.isRequestOptions)(query)) { return this.ases({}, query); } return this._client.get('/radar/netflows/top/ases', { query, ...options })._thenUnwrap((obj) => obj.result); } locations(query = {}, options) { if ((0, core_1.isRequestOptions)(query)) { return this.locations({}, query); } return this._client.get('/radar/netflows/top/locations', { query, ...options })._thenUnwrap((obj) => obj.result); } } exports.Top = Top; (function (Top) { })(Top = exports.Top || (exports.Top = {})); //# sourceMappingURL=top.js.map