UNPKG

cloudflare

Version:

The official TypeScript library for the Cloudflare API

40 lines • 1.4 kB
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. import { APIResource } from "../../../../core/resource.mjs"; export var BaseAses = /* @__PURE__ */ (() => { class BaseAses extends APIResource { /** * Retrieves the top autonomous systems by BGP updates (announcements only). * * @example * ```ts * const ase = await client.radar.bgp.top.ases.get(); * ``` */ get(query = {}, options) { return this._client.get('/radar/bgp/top/ases', { query, ...options })._thenUnwrap((obj) => obj.result); } /** * Retrieves the full list of autonomous systems on the global routing table * ordered by announced prefixes count. The data comes from public BGP MRT data * archives and updates every 2 hours. * * @example * ```ts * const response = await client.radar.bgp.top.ases.prefixes(); * ``` */ prefixes(query = {}, options) { return this._client.get('/radar/bgp/top/ases/prefixes', { query, ...options })._thenUnwrap((obj) => obj.result); } } BaseAses._key = Object.freeze([ 'radar', 'bgp', 'top', 'ases', ]); return BaseAses; })(); export class Ases extends BaseAses { } //# sourceMappingURL=ases.mjs.map