ResourceUsageRestClient class
Base class that should be used (derived from) to make requests to VSS REST apis
- Extends
Constructors
Resource |
Properties
RESOURCE_AREA_ID |
Methods
get |
|
get |
Gets the Project Level limits and Usage for a project. |
Constructor Details
ResourceUsageRestClient(IVssRestClientOptions)
new ResourceUsageRestClient(options: IVssRestClientOptions)
Parameters
- options
- IVssRestClientOptions
Property Details
RESOURCE_AREA_ID
static RESOURCE_AREA_ID: string
Property Value
string
Method Details
getLimits()
function getLimits(): Promise<{[key: string]: ResourceUsage.Usage}>
Returns
Promise<{[key: string]: Usage}>
getProjectLimit(string)
Gets the Project Level limits and Usage for a project.
function getProjectLimit(project: string): Promise<{[key: string]: ResourceUsage.Usage}>
Parameters
- project
-
string
Project ID or project name
Returns
Promise<{[key: string]: Usage}>