UNPKG

cloudflare

Version:

The official TypeScript library for the Cloudflare API

30 lines • 1.15 kB
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. import { APIResource } from "../../../core/resource.mjs"; import { path } from "../../../internal/utils/path.mjs"; export var BaseASN = /* @__PURE__ */ (() => { class BaseASN extends APIResource { /** * Delete an ASN from botnet threat feed for a given user. */ delete(asnID, params, options) { const { account_id } = params; return this._client.delete(path `/accounts/${account_id}/botnet_feed/configs/asn/${asnID}`, options)._thenUnwrap((obj) => obj.result); } /** * Gets a list of all ASNs registered for a user for the DDoS Botnet Feed API. */ get(params, options) { const { account_id } = params; return this._client.get(path `/accounts/${account_id}/botnet_feed/configs/asn`, options)._thenUnwrap((obj) => obj.result); } } BaseASN._key = Object.freeze([ 'botnetFeed', 'configs', 'asn', ]); return BaseASN; })(); export class ASN extends BaseASN { } //# sourceMappingURL=asn.mjs.map