@linode/api-v4
Version:
JavaScript wrapper around the Linode APIv4
31 lines • 1.18 kB
TypeScript
import { Filter, Params, ResourcePage as Page } from 'src/types';
import { Quota, QuotaType, QuotaUsage } from './types';
/**
* getQuota
*
* Returns the details for a single quota within a particular service specified by `type`.
*
* @param type { QuotaType } retrieve a quota within this service type.
* @param id { number } the quota ID to look up.
*/
export declare const getQuota: (type: QuotaType, id: number) => Promise<Quota>;
/**
* getQuotas
*
* Returns a paginated list of quotas for a particular service specified by `type`.
*
* This request can be filtered on `quota_name`, `service_name` and `scope`.
*
* @param type { QuotaType } retrieve quotas within this service type.
*/
export declare const getQuotas: (type: QuotaType, params?: Params, filter?: Filter) => Promise<Page<Quota>>;
/**
* getQuotaUsage
*
* Returns the usage for a single quota within a particular service specified by `type`.
*
* @param type { QuotaType } retrieve a quota within this service type.
* @param id { number } the quota ID to look up.
*/
export declare const getQuotaUsage: (type: QuotaType, id: number) => Promise<QuotaUsage>;
//# sourceMappingURL=quotas.d.ts.map