mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
Consolidate getSubscriptions (#16821)
* Consolidate getSubscriptions * Undo test change
This commit is contained in:
@@ -11,8 +11,14 @@ import { azureResource } from 'azureResource';
|
||||
import { AzureAccount, Tenant } from 'azurecore';
|
||||
|
||||
export interface IAzureResourceSubscriptionService {
|
||||
getSubscriptions(account: Account, credential: msRest.ServiceClientCredentials, tenantId: string): Promise<azureResource.AzureResourceSubscription[]>;
|
||||
getAllSubscriptions(account: Account): Promise<azureResource.AzureResourceSubscription[]>;
|
||||
/**
|
||||
* Gets subscriptions for the given account. Any errors that occur while fetching the subscriptions for each tenant
|
||||
* will be displayed to the user, but this function will only throw an error if it's unable to fetch any subscriptions.
|
||||
* @param account The account to get the subscriptions for
|
||||
* @param tenants The list of tenants to get subscriptions for - if undefined then subscriptions for all tenants will be retrieved
|
||||
* @returns The list of all subscriptions on this account that were able to be retrieved
|
||||
*/
|
||||
getSubscriptions(account: Account, tenants?: string[] | undefined): Promise<azureResource.AzureResourceSubscription[]>;
|
||||
}
|
||||
|
||||
export interface IAzureResourceSubscriptionFilterService {
|
||||
|
||||
Reference in New Issue
Block a user