cloudflare
Version:
The official TypeScript library for the Cloudflare API
34 lines • 1.06 kB
JavaScript
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
import { APIResource } from "../../../../core/resource.mjs";
import { V4PagePagination } from "../../../../core/pagination.mjs";
export var BaseEvents = /* @__PURE__ */ (() => {
class BaseEvents extends APIResource {
/**
* Retrieves the BGP hijack events.
*
* @example
* ```ts
* // Automatically fetches more pages as needed.
* for await (const eventListResponse of client.radar.bgp.hijacks.events.list()) {
* // ...
* }
* ```
*/
list(query = {}, options) {
return this._client.getAPIList('/radar/bgp/hijacks/events', (V4PagePagination), {
query,
...options,
});
}
}
BaseEvents._key = Object.freeze([
'radar',
'bgp',
'hijacks',
'events',
]);
return BaseEvents;
})();
export class Events extends BaseEvents {
}
//# sourceMappingURL=events.mjs.map