UNPKG

armpit

Version:

Another resource manager programming interface toolkit.

57 lines 2.2 kB
import type { Resource } from "@azure/arm-resources"; import type { Subscription } from "@azure/arm-resources-subscriptions"; import type { Brand } from "./tsUtils.js"; 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 = Brand<string, "SubscriptionId">; export declare function isSubscriptionId(value: unknown): value is SubscriptionId; export type SubscriptionName = Brand<string, "SubscriptionName">; export declare function isSubscriptionName(value: unknown): value is SubscriptionName; export type SubscriptionIdOrName = SubscriptionName | SubscriptionId; export declare function isSubscriptionIdOrName(value: unknown): value is SubscriptionIdOrName; export type TenantId = Brand<string, "TenantId">; export declare function isTenantId(value: unknown): value is TenantId; export type ResourceId = Brand<string, "ResourceId">; export declare function isResourceId(resourceId?: unknown): resourceId is ResourceId; export interface SimpleAdUser { id: string; userPrincipalName?: string; displayName?: string; } export interface AzCliAccessToken { accessToken: string; expiresOn: string; expires_on: number; subscription: SubscriptionIdOrName; tenant: TenantId; tokenType: string; } export type AccessTokenScope = Brand<string, "AccessTokenScope">; export declare function isAccessTokenScope(value: unknown): value is AccessTokenScope; export interface VirtualMachineCreateResult { id: string; resourceGroup: string; powerState?: string; publicIpAddress?: string; fqdns?: string; privateIpAddress?: string; macAddress?: string; location?: string; identity?: { type?: string; userAssignedIdentities?: { [propertyName: string]: object; }; }; zones?: string; } //# sourceMappingURL=azureTypes.d.ts.map