UNPKG

cloudflare

Version:

The official TypeScript library for the Cloudflare API

44 lines 1.96 kB
"use strict"; // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. Object.defineProperty(exports, "__esModule", { value: true }); exports.PriorityResource = void 0; const resource_1 = require("cloudflare/resource"); class PriorityResource extends resource_1.APIResource { /** * Create a New Priority Requirement */ create(accountIdentifier, body, options) { return this._client.post(`/accounts/${accountIdentifier}/cloudforce-one/requests/priority/new`, { body, ...options, })._thenUnwrap((obj) => obj.result); } /** * Update a Priority Intelligence Requirement */ update(accountIdentifier, priorityIdentifer, body, options) { return this._client.put(`/accounts/${accountIdentifier}/cloudforce-one/requests/priority/${priorityIdentifer}`, { body, ...options })._thenUnwrap((obj) => obj.result); } /** * Delete a Priority Intelligence Report */ delete(accountIdentifier, priorityIdentifer, options) { return this._client.delete(`/accounts/${accountIdentifier}/cloudforce-one/requests/priority/${priorityIdentifer}`, options)._thenUnwrap((obj) => obj.result); } /** * Get a Priority Intelligence Requirement */ get(accountIdentifier, priorityIdentifer, options) { return this._client.get(`/accounts/${accountIdentifier}/cloudforce-one/requests/priority/${priorityIdentifer}`, options)._thenUnwrap((obj) => obj.result); } /** * Get Priority Intelligence Requirement Quota */ quota(accountIdentifier, options) { return this._client.get(`/accounts/${accountIdentifier}/cloudforce-one/requests/priority/quota`, options)._thenUnwrap((obj) => obj.result); } } exports.PriorityResource = PriorityResource; (function (PriorityResource) { })(PriorityResource = exports.PriorityResource || (exports.PriorityResource = {})); //# sourceMappingURL=priority.js.map