C# Class Microsoft.Azure.Commands.ResourceManager.Common.RMProfileClient

Mostrar archivo Open project: Azure/azure-powershell Class Usage Examples

Public Properties

Property Type Description
WarningLog Action

Public Methods

Method Description
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

Private Methods

Method Description
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

Method Details

AcquireAccessToken() public method

public AcquireAccessToken ( string tenantId ) : IAccessToken
tenantId string
return IAccessToken

AddOrSetEnvironment() public method

public AddOrSetEnvironment ( Microsoft.Azure.Common.Authentication.Models.AzureEnvironment environment ) : Microsoft.Azure.Common.Authentication.Models.AzureEnvironment
environment Microsoft.Azure.Common.Authentication.Models.AzureEnvironment
return Microsoft.Azure.Common.Authentication.Models.AzureEnvironment

GetSubscriptions() public method

public GetSubscriptions ( string tenantId ) : IEnumerable
tenantId string
return IEnumerable

ListEnvironments() public method

public ListEnvironments ( string name ) : List
name string
return List

ListSubscriptions() public method

public ListSubscriptions ( ) : IEnumerable
return IEnumerable

ListSubscriptions() public method

public ListSubscriptions ( string tenant, string &listNextLink ) : IEnumerable
tenant string
listNextLink string
return IEnumerable

ListTenants() public method

List all tenants for the account in the profile context
public ListTenants ( ) : IEnumerable
return IEnumerable

ListTenants() public method

public ListTenants ( string tenant ) : List
tenant string
return List

Login() public method

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
return Microsoft.Azure.Common.Authentication.Models.AzureRMProfile

RMProfileClient() public method

public RMProfileClient ( Microsoft.Azure.Common.Authentication.Models.AzureRMProfile profile ) : Hyak.Common
profile Microsoft.Azure.Common.Authentication.Models.AzureRMProfile
return Hyak.Common

RemoveEnvironment() public method

public RemoveEnvironment ( string name ) : Microsoft.Azure.Common.Authentication.Models.AzureEnvironment
name string
return Microsoft.Azure.Common.Authentication.Models.AzureEnvironment

SetCurrentContext() public method

public SetCurrentContext ( string tenantId ) : Microsoft.Azure.Common.Authentication.Models.AzureContext
tenantId string
return Microsoft.Azure.Common.Authentication.Models.AzureContext

SetCurrentContext() public method

public SetCurrentContext ( string subscriptionId, string subscriptionName, string tenantId ) : Microsoft.Azure.Common.Authentication.Models.AzureContext
subscriptionId string
subscriptionName string
tenantId string
return Microsoft.Azure.Common.Authentication.Models.AzureContext

TryGetSubscriptionById() public method

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
return bool

TryGetSubscriptionByName() public method

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
return bool

Property Details

WarningLog public_oe property

public Action WarningLog
return Action