@microsoft/windows-admin-center-sdk
Version:
Microsoft - Windows Admin Center Shell
82 lines (81 loc) • 2.03 kB
TypeScript
export declare enum SubscriptionState {
Deleted = 0,
Disabled = 1,
Enabled = 2,
PastDue = 3,
Warned = 4
}
export declare enum SpendingLimit {
CurrentPeriodOff = 0,
Off = 1,
On = 2
}
export interface SubscriptionPolicies {
/**
* The subscription location placement ID. The ID indicates which regions are visible for a subscription.
* For example, a subscription with a location placement Id of Public_2014-09-01 has access to Azure public regions.
*/
locationPlacementId: string;
/**
* The subscription quota ID.
*/
quotaId: string;
/**
* The subscription spending limit.
*/
spendingLimit: SpendingLimit;
}
export interface Subscription {
/**
* The authorization source of the request.
* Valid values are one or more combinations of Legacy, RoleBased, Bypassed, Direct and Management.
* For example, 'Legacy, RoleBased'.
*/
authorizationSource: string;
/**
* The subscription display name.
*/
displayName: string;
/**
* The fully qualified ID for the subscription. For example, /subscriptions/00000000-0000-0000-0000-000000000000.
*/
id: string;
/**
* The subscription state. Possible values are Enabled, Warned, PastDue, Disabled, and Deleted.
*/
state: SubscriptionState;
/**
* The subscription ID.
*/
subscriptionId: string;
/**
* The subscription policies.
*/
subscriptionPolicies: SubscriptionPolicies;
}
/**
* Subscription list operation response.
*/
export interface SubscriptionListResult {
/**
* The URL to get the next set of results.
*/
nextLink: string;
/**
* An array of subscriptions.
*/
value: Subscription[];
}
/**
* Custom response to list all subscriptions.
*/
export interface SubscriptionsOperationResult {
/**
* The http status code.
*/
httpStatusCode: number;
/**
* The subscription list.
*/
value?: SubscriptionListResult;
}