armpit
Version:
Another resource manager programming interface toolkit.
35 lines • 1.45 kB
TypeScript
import type { Resource } from "@azure/arm-resources";
import type { Subscription } from "@azure/arm-resources-subscriptions";
export type Account = Pick<Subscription, "id" | "managedByTenants" | "state" | "tenantId"> & {
readonly cloudName?: "AzureCloud" | (string & {});
readonly homeTenantId?: string;
readonly isDefault: boolean;
readonly name: string;
readonly user?: {
readonly name: string;
readonly type: string;
};
};
export type ResourceSummary = Pick<Resource, "id" | "name" | "type">;
export type SubscriptionId = string;
export declare function isSubscriptionId(value: unknown): value is SubscriptionId;
export type SubscriptionIdOrName = string;
export declare function isSubscriptionIdOrName(value: unknown): value is SubscriptionIdOrName;
export type TenantId = string;
export declare function isTenantId(value: unknown): value is TenantId;
export declare function isNamedLocationDescriptor<T extends any>(resource?: T): resource is T & {
name: string;
location: string;
};
export declare function extractSubscriptionId(resourceId?: string): string | null;
export type Scope = string;
export declare function isScope(value: unknown): value is Scope;
export interface AzCliAccessToken {
accessToken: string;
expiresOn: string;
expires_on: number;
subscription: SubscriptionIdOrName;
tenant: TenantId;
tokenType: string;
}
//# sourceMappingURL=azUtils.d.ts.map