cloudflare
Version:
The official TypeScript library for the Cloudflare API
34 lines • 1.17 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Quota = exports.BaseQuota = 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 BaseQuota = /* @__PURE__ */ (() => {
class BaseQuota extends resource_1.APIResource {
/**
* Lists the number of secrets used in the account.
*
* @example
* ```ts
* const quota = await client.secretsStore.quota.get({
* account_id: '985e105f4ecef8ad9ca31a8372d0c353',
* });
* ```
*/
get(params, options) {
const { account_id } = params;
return this._client.get((0, path_1.path) `/accounts/${account_id}/secrets_store/quota`, options)._thenUnwrap((obj) => obj.result);
}
}
BaseQuota._key = Object.freeze([
'secretsStore',
'quota',
]);
return BaseQuota;
})();
exports.BaseQuota = BaseQuota;
class Quota extends BaseQuota {
}
exports.Quota = Quota;
//# sourceMappingURL=quota.js.map