UNPKG

cloudflare

Version:

The official TypeScript library for the Cloudflare API

22 lines 913 B
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. import { APIResource } from 'cloudflare/resource'; import { isRequestOptions } from 'cloudflare/core'; import * as EventsAPI from 'cloudflare/resources/radar/bgp/hijacks/events'; import { V4PagePagination } from 'cloudflare/pagination'; export class Events extends APIResource { list(query = {}, options) { if (isRequestOptions(query)) { return this.list({}, query); } return this._client.getAPIList('/radar/bgp/hijacks/events', EventListResponsesV4PagePagination, { query, ...options, }); } } export class EventListResponsesV4PagePagination extends V4PagePagination { } (function (Events) { Events.EventListResponsesV4PagePagination = EventsAPI.EventListResponsesV4PagePagination; })(Events || (Events = {})); //# sourceMappingURL=events.mjs.map