C# Класс Microsoft.Azure.Commands.ResourceManager.Common.RMProfileClient

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
WarningLog Action

Открытые методы

Метод Описание
AcquireAccessToken ( string tenantId ) : IAccessToken
AddOrSetEnvironment ( Microsoft.Azure.Common.Authentication.Models.AzureEnvironment environment ) : Microsoft.Azure.Common.Authentication.Models.AzureEnvironment
GetSubscriptions ( string tenantId ) : IEnumerable
ListEnvironments ( string name ) : List
ListSubscriptions ( ) : IEnumerable
ListSubscriptions ( string tenant, string &listNextLink ) : IEnumerable
ListTenants ( ) : IEnumerable

List all tenants for the account in the profile context

ListTenants ( string tenant ) : List
Login ( Microsoft.Azure.Common.Authentication.Models.AzureAccount account, Microsoft.Azure.Common.Authentication.Models.AzureEnvironment environment, string tenantId, string subscriptionId, string subscriptionName, SecureString password ) : Microsoft.Azure.Common.Authentication.Models.AzureRMProfile
RMProfileClient ( Microsoft.Azure.Common.Authentication.Models.AzureRMProfile profile ) : Hyak.Common
RemoveEnvironment ( string name ) : Microsoft.Azure.Common.Authentication.Models.AzureEnvironment
SetCurrentContext ( string tenantId ) : Microsoft.Azure.Common.Authentication.Models.AzureContext
SetCurrentContext ( string subscriptionId, string subscriptionName, string tenantId ) : Microsoft.Azure.Common.Authentication.Models.AzureContext
TryGetSubscriptionById ( string tenantId, string subscriptionId, Microsoft.Azure.Common.Authentication.Models.AzureSubscription &subscription ) : bool
TryGetSubscriptionByName ( string tenantId, string subscriptionName, Microsoft.Azure.Common.Authentication.Models.AzureSubscription &subscription ) : bool

Приватные методы

Метод Описание
AcquireAccessToken ( Microsoft.Azure.Common.Authentication.Models.AzureAccount account, Microsoft.Azure.Common.Authentication.Models.AzureEnvironment environment, string tenantId, SecureString password, ShowDialog promptBehavior ) : IAccessToken
CreateTenant ( string tenantIdOrDomain ) : Microsoft.Azure.Common.Authentication.Models.AzureTenant
CreateTenantFromString ( string tenantOrDomain, string accessTokenTenantId ) : Microsoft.Azure.Common.Authentication.Models.AzureTenant
GetFirstSubscription ( string tenantId ) : Microsoft.Azure.Common.Authentication.Models.AzureSubscription
ListAccountTenants ( Microsoft.Azure.Common.Authentication.Models.AzureAccount account, Microsoft.Azure.Common.Authentication.Models.AzureEnvironment environment, SecureString password, ShowDialog promptBehavior ) : List
ListSubscriptionsForTenant ( Microsoft.Azure.Common.Authentication.Models.AzureAccount account, Microsoft.Azure.Common.Authentication.Models.AzureEnvironment environment, SecureString password, ShowDialog promptBehavior, string tenantId, string &listNextLink ) : IEnumerable
MergeEnvironmentProperties ( Microsoft.Azure.Common.Authentication.Models.AzureEnvironment environment1, Microsoft.Azure.Common.Authentication.Models.AzureEnvironment environment2 ) : Microsoft.Azure.Common.Authentication.Models.AzureEnvironment
SwitchSubscription ( Microsoft.Azure.Common.Authentication.Models.AzureSubscription subscription ) : void
TryGetTenantSubscription ( IAccessToken accessToken, Microsoft.Azure.Common.Authentication.Models.AzureAccount account, Microsoft.Azure.Common.Authentication.Models.AzureEnvironment environment, string tenantId, string subscriptionId, string subscriptionName, Microsoft.Azure.Common.Authentication.Models.AzureSubscription &subscription, Microsoft.Azure.Common.Authentication.Models.AzureTenant &tenant ) : bool
WriteWarningMessage ( string message ) : void

Описание методов

AcquireAccessToken() публичный Метод

public AcquireAccessToken ( string tenantId ) : IAccessToken
tenantId string
Результат IAccessToken

AddOrSetEnvironment() публичный Метод

public AddOrSetEnvironment ( Microsoft.Azure.Common.Authentication.Models.AzureEnvironment environment ) : Microsoft.Azure.Common.Authentication.Models.AzureEnvironment
environment Microsoft.Azure.Common.Authentication.Models.AzureEnvironment
Результат Microsoft.Azure.Common.Authentication.Models.AzureEnvironment

GetSubscriptions() публичный Метод

public GetSubscriptions ( string tenantId ) : IEnumerable
tenantId string
Результат IEnumerable

ListEnvironments() публичный Метод

public ListEnvironments ( string name ) : List
name string
Результат List

ListSubscriptions() публичный Метод

public ListSubscriptions ( ) : IEnumerable
Результат IEnumerable

ListSubscriptions() публичный Метод

public ListSubscriptions ( string tenant, string &listNextLink ) : IEnumerable
tenant string
listNextLink string
Результат IEnumerable

ListTenants() публичный Метод

List all tenants for the account in the profile context
public ListTenants ( ) : IEnumerable
Результат IEnumerable

ListTenants() публичный Метод

public ListTenants ( string tenant ) : List
tenant string
Результат List

Login() публичный Метод

public Login ( Microsoft.Azure.Common.Authentication.Models.AzureAccount account, Microsoft.Azure.Common.Authentication.Models.AzureEnvironment environment, string tenantId, string subscriptionId, string subscriptionName, SecureString password ) : Microsoft.Azure.Common.Authentication.Models.AzureRMProfile
account Microsoft.Azure.Common.Authentication.Models.AzureAccount
environment Microsoft.Azure.Common.Authentication.Models.AzureEnvironment
tenantId string
subscriptionId string
subscriptionName string
password System.Security.SecureString
Результат Microsoft.Azure.Common.Authentication.Models.AzureRMProfile

RMProfileClient() публичный Метод

public RMProfileClient ( Microsoft.Azure.Common.Authentication.Models.AzureRMProfile profile ) : Hyak.Common
profile Microsoft.Azure.Common.Authentication.Models.AzureRMProfile
Результат Hyak.Common

RemoveEnvironment() публичный Метод

public RemoveEnvironment ( string name ) : Microsoft.Azure.Common.Authentication.Models.AzureEnvironment
name string
Результат Microsoft.Azure.Common.Authentication.Models.AzureEnvironment

SetCurrentContext() публичный Метод

public SetCurrentContext ( string tenantId ) : Microsoft.Azure.Common.Authentication.Models.AzureContext
tenantId string
Результат Microsoft.Azure.Common.Authentication.Models.AzureContext

SetCurrentContext() публичный Метод

public SetCurrentContext ( string subscriptionId, string subscriptionName, string tenantId ) : Microsoft.Azure.Common.Authentication.Models.AzureContext
subscriptionId string
subscriptionName string
tenantId string
Результат Microsoft.Azure.Common.Authentication.Models.AzureContext

TryGetSubscriptionById() публичный Метод

public TryGetSubscriptionById ( string tenantId, string subscriptionId, Microsoft.Azure.Common.Authentication.Models.AzureSubscription &subscription ) : bool
tenantId string
subscriptionId string
subscription Microsoft.Azure.Common.Authentication.Models.AzureSubscription
Результат bool

TryGetSubscriptionByName() публичный Метод

public TryGetSubscriptionByName ( string tenantId, string subscriptionName, Microsoft.Azure.Common.Authentication.Models.AzureSubscription &subscription ) : bool
tenantId string
subscriptionName string
subscription Microsoft.Azure.Common.Authentication.Models.AzureSubscription
Результат bool

Описание свойств

WarningLog публичное свойство

public Action WarningLog
Результат Action