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

ファイルを表示 Open project: Azure/azure-powershell Class Usage Examples

Public Methods

Method 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

Method Description
ThrowIfTrue ( bool condition, string message ) : void

Method Details

GetApiManagementClient() public static method

public static GetApiManagementClient ( ) : ApiManagementClient
return ApiManagementClient

GetLocations() public static method

public static GetLocations ( this managementClient ) : IEnumerable
managementClient this
return IEnumerable

GetManagementClient() public static method

public static GetManagementClient ( ) : Microsoft.WindowsAzure.Management.ManagementClient
return Microsoft.WindowsAzure.Management.ManagementClient

GetResourceGroups() public static method

public static GetResourceGroups ( this resourceManagementClient ) : IEnumerable
resourceManagementClient this
return IEnumerable

GetResourceManagementClient() public static method

public static GetResourceManagementClient ( ) : Microsoft.Azure.Management.Resources.ResourceManagementClient
return Microsoft.Azure.Management.Resources.ResourceManagementClient

ToStream() public static method

public static ToStream ( this doc ) : Stream
doc this
return Stream

TryCreateApiService() public static method

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

TryGetLocation() public static method

public static TryGetLocation ( this managementClient, string preferedLocationName = null ) : string
managementClient this
preferedLocationName string
return string

TryGetResourceGroup() public static method

public static TryGetResourceGroup ( this resourceManagementClient, string location ) : string
resourceManagementClient this
location string
return string

TryRegisterResourceGroup() public static method

public static TryRegisterResourceGroup ( this resourceManagementClient, string location, string resourceGroupName ) : void
resourceManagementClient this
location string
resourceGroupName string
return void

TryRegisterSubscriptionForResource() public static method

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