C# Class Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Test.ScenarioTests.ApiManagementHelper

Afficher le fichier Open project: Azure/azure-powershell Class Usage Examples

Méthodes publiques

Méthode Description
GetApiManagementClient ( ) : ApiManagementClient
GetLocations ( this managementClient ) : IEnumerable
GetManagementClient ( ) : Microsoft.WindowsAzure.Management.ManagementClient
GetResourceGroups ( this resourceManagementClient ) : IEnumerable
GetResourceManagementClient ( ) : Microsoft.Azure.Management.Resources.ResourceManagementClient
ToStream ( this doc ) : Stream
TryCreateApiService ( this client, string resourceGroupName, string apiServiceName, string location, SkuType skuType = SkuType.Developer ) : void
TryGetLocation ( this managementClient, string preferedLocationName = null ) : string
TryGetResourceGroup ( this resourceManagementClient, string location ) : string
TryRegisterResourceGroup ( this resourceManagementClient, string location, string resourceGroupName ) : void
TryRegisterSubscriptionForResource ( this resourceManagementClient, string providerName = "Microsoft.ApiManagement" ) : void

Private Methods

Méthode Description
ThrowIfTrue ( bool condition, string message ) : void

Method Details

GetApiManagementClient() public static méthode

public static GetApiManagementClient ( ) : ApiManagementClient
Résultat ApiManagementClient

GetLocations() public static méthode

public static GetLocations ( this managementClient ) : IEnumerable
managementClient this
Résultat IEnumerable

GetManagementClient() public static méthode

public static GetManagementClient ( ) : Microsoft.WindowsAzure.Management.ManagementClient
Résultat Microsoft.WindowsAzure.Management.ManagementClient

GetResourceGroups() public static méthode

public static GetResourceGroups ( this resourceManagementClient ) : IEnumerable
resourceManagementClient this
Résultat IEnumerable

GetResourceManagementClient() public static méthode

public static GetResourceManagementClient ( ) : Microsoft.Azure.Management.Resources.ResourceManagementClient
Résultat Microsoft.Azure.Management.Resources.ResourceManagementClient

ToStream() public static méthode

public static ToStream ( this doc ) : Stream
doc this
Résultat Stream

TryCreateApiService() public static méthode

public static TryCreateApiService ( this client, string resourceGroupName, string apiServiceName, string location, SkuType skuType = SkuType.Developer ) : void
client this
resourceGroupName string
apiServiceName string
location string
skuType SkuType
Résultat void

TryGetLocation() public static méthode

public static TryGetLocation ( this managementClient, string preferedLocationName = null ) : string
managementClient this
preferedLocationName string
Résultat string

TryGetResourceGroup() public static méthode

public static TryGetResourceGroup ( this resourceManagementClient, string location ) : string
resourceManagementClient this
location string
Résultat string

TryRegisterResourceGroup() public static méthode

public static TryRegisterResourceGroup ( this resourceManagementClient, string location, string resourceGroupName ) : void
resourceManagementClient this
location string
resourceGroupName string
Résultat void

TryRegisterSubscriptionForResource() public static méthode

public static TryRegisterSubscriptionForResource ( this resourceManagementClient, string providerName = "Microsoft.ApiManagement" ) : void
resourceManagementClient this
providerName string
Résultat void