cloudflare
Version:
The official TypeScript library for the Cloudflare API
41 lines • 1.6 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.PayloadLogs = exports.BasePayloadLogs = void 0;
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
const resource_1 = require("../../../core/resource.js");
const path_1 = require("../../../internal/utils/path.js");
var BasePayloadLogs = /* @__PURE__ */ (() => {
class BasePayloadLogs extends resource_1.APIResource {
/**
* Enables or disables payload logging for DLP matches. When enabled, matched
* content is stored for review.
*
* @deprecated
*/
update(params, options) {
const { account_id, ...body } = params;
return this._client.put((0, path_1.path) `/accounts/${account_id}/dlp/payload_log`, { body, ...options })._thenUnwrap((obj) => obj.result);
}
/**
* Gets the current payload logging configuration for DLP, showing whether matched
* content is being logged.
*
* @deprecated
*/
get(params, options) {
const { account_id } = params;
return this._client.get((0, path_1.path) `/accounts/${account_id}/dlp/payload_log`, options)._thenUnwrap((obj) => obj.result);
}
}
BasePayloadLogs._key = Object.freeze([
'zeroTrust',
'dlp',
'payloadLogs',
]);
return BasePayloadLogs;
})();
exports.BasePayloadLogs = BasePayloadLogs;
class PayloadLogs extends BasePayloadLogs {
}
exports.PayloadLogs = PayloadLogs;
//# sourceMappingURL=payload-logs.js.map