cloudflare
Version:
The official TypeScript library for the Cloudflare API
44 lines • 1.44 kB
TypeScript
import { APIResource } from "../../../../core/resource.js";
import { APIPromise } from "../../../../core/api-promise.js";
import { RequestOptions } from "../../../../internal/request-options.js";
export declare class BaseQuota extends APIResource {
static readonly _key: readonly ['zeroTrust', 'dex', 'commands', 'quota'];
/**
* Retrieves the current quota usage and limits for device commands within a
* specific account, including the time when the quota will reset
*
* @example
* ```ts
* const quota = await client.zeroTrust.dex.commands.quota.get(
* { account_id: '01a7362d577a6c3019a474fd6f485823' },
* );
* ```
*/
get(params: QuotaGetParams, options?: RequestOptions): APIPromise<QuotaGetResponse>;
}
export declare class Quota extends BaseQuota {
}
export interface QuotaGetResponse {
/**
* The total number of commands that can be initiated for an account.
*/
quota: number;
/**
* The number of commands that have been initiated for an account.
*/
quota_usage: number;
/**
* The time when the quota resets.
*/
reset_time: string;
}
export interface QuotaGetParams {
/**
* Unique Cloudflare account ID.
*/
account_id: string;
}
export declare namespace Quota {
export { type QuotaGetResponse as QuotaGetResponse, type QuotaGetParams as QuotaGetParams };
}
//# sourceMappingURL=quota.d.ts.map