cloudflare
Version:
The official TypeScript library for the Cloudflare API
37 lines • 1.32 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Limits = exports.BaseLimits = 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 BaseLimits = /* @__PURE__ */ (() => {
class BaseLimits extends resource_1.APIResource {
/**
* Retrieves current DLP usage limits and quotas for the account, including maximum
* allowed counts and current usage for custom entries, dataset cells, and document
* fingerprints.
*
* @example
* ```ts
* const limits = await client.zeroTrust.dlp.limits.list({
* account_id: 'account_id',
* });
* ```
*/
list(params, options) {
const { account_id } = params;
return this._client.get((0, path_1.path) `/accounts/${account_id}/dlp/limits`, options)._thenUnwrap((obj) => obj.result);
}
}
BaseLimits._key = Object.freeze([
'zeroTrust',
'dlp',
'limits',
]);
return BaseLimits;
})();
exports.BaseLimits = BaseLimits;
class Limits extends BaseLimits {
}
exports.Limits = Limits;
//# sourceMappingURL=limits.js.map