UNPKG

cloudflare

Version:

The official TypeScript library for the Cloudflare API

24 lines 912 B
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. import { APIResource } from 'cloudflare/resource'; export class Predefined extends APIResource { /** * Updates a DLP predefined profile. Only supports enabling/disabling entries. */ update(profileId, params, options) { const { account_id, ...body } = params; return this._client.put(`/accounts/${account_id}/dlp/profiles/predefined/${profileId}`, { body, ...options, }); } /** * Fetches a predefined DLP profile. */ get(profileId, params, options) { const { account_id } = params; return this._client.get(`/accounts/${account_id}/dlp/profiles/predefined/${profileId}`, options)._thenUnwrap((obj) => obj.result); } } (function (Predefined) { })(Predefined || (Predefined = {})); //# sourceMappingURL=predefined.mjs.map