cloudflare
Version:
The official TypeScript library for the Cloudflare API
44 lines • 1.27 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 ['ssl', 'certificatePacks', 'quota'];
/**
* For a given zone, list certificate pack quotas.
*
* @example
* ```ts
* const quota = await client.ssl.certificatePacks.quota.get({
* zone_id: '023e105f4ecef8ad9ca31a8372d0c353',
* });
* ```
*/
get(params: QuotaGetParams, options?: RequestOptions): APIPromise<QuotaGetResponse>;
}
export declare class Quota extends BaseQuota {
}
export interface QuotaGetResponse {
advanced?: QuotaGetResponse.Advanced;
}
export declare namespace QuotaGetResponse {
interface Advanced {
/**
* Quantity Allocated.
*/
allocated?: number;
/**
* Quantity Used.
*/
used?: number;
}
}
export interface QuotaGetParams {
/**
* Identifier.
*/
zone_id: string;
}
export declare namespace Quota {
export { type QuotaGetResponse as QuotaGetResponse, type QuotaGetParams as QuotaGetParams };
}
//# sourceMappingURL=quota.d.ts.map