UNPKG

cloudflare

Version:

The official TypeScript library for the Cloudflare API

32 lines • 1.12 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 BaseRelate = /* @__PURE__ */ (() => { class BaseRelate extends APIResource { /** * Removes a reference link between related threat events in Cloudforce One. * * @example * ```ts * const relate = * await client.cloudforceOne.threatEvents.relate.delete( * 'event_id', * { account_id: 'account_id' }, * ); * ``` */ delete(eventID, params, options) { const { account_id } = params; return this._client.delete(path `/accounts/${account_id}/cloudforce-one/events/relate/${eventID}`, options)._thenUnwrap((obj) => obj.result); } } BaseRelate._key = Object.freeze([ 'cloudforceOne', 'threatEvents', 'relate', ]); return BaseRelate; })(); export class Relate extends BaseRelate { } //# sourceMappingURL=relate.mjs.map