UNPKG

cloudflare

Version:

The official TypeScript library for the Cloudflare API

27 lines 1.27 kB
"use strict"; // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. Object.defineProperty(exports, "__esModule", { value: true }); exports.Queues = void 0; const resource_1 = require("cloudflare/resource"); class Queues extends resource_1.APIResource { /** * Define the rules for a given queue which will determine event notification * production. */ update(bucketName, queueId, params, options) { const { account_id, ...body } = params; return this._client.put(`/accounts/${account_id}/event_notifications/r2/${bucketName}/configuration/queues/${queueId}`, { body, ...options })._thenUnwrap((obj) => obj.result); } /** * Turn off all event notifications configured for delivery to a given queue. No * further notifications will be produced for the queue once complete. */ delete(bucketName, queueId, params, options) { const { account_id } = params; return this._client.delete(`/accounts/${account_id}/event_notifications/r2/${bucketName}/configuration/queues/${queueId}`, options)._thenUnwrap((obj) => obj.result); } } exports.Queues = Queues; (function (Queues) { })(Queues = exports.Queues || (exports.Queues = {})); //# sourceMappingURL=queues.js.map