C# Class Microsoft.WindowsAzure.Commands.Utilities.Store.StoreClient

Datei anzeigen Open project: Azure/azure-powershell

Private Properties

Property Type Description
Base32NoPaddingEncode string
CreateCloudServiceIfNotExists string
GetCloudServiceName string
GetResourceInformation string
GetStoreCloudServices List
IsDataService bool

Public Methods

Method Description
GetAddOn ( AddOnSearchOptions searchOptions = null ) : List

Gets add ons based on the passed filter.

GetConfirmationMessage ( OperationType operation, string addon = null, string plan = null ) : string

Gets confirmation message for the given operation.

GetLocations ( ) : List
NewAddOn ( string name, string addon, string plan, string location, string promotionCode ) : void
RemoveAddOn ( string name ) : void

Removes given Add-On

StoreClient ( ) : System

Parameterless constructor added for mocking framework.

StoreClient ( AzureSMProfile profile, AzureSubscription subscription ) : System

Creates new instance from the store client.

StoreClient ( AzureSubscription subscription, Microsoft.WindowsAzure.Management.Compute.ComputeManagementClient compute, Microsoft.WindowsAzure.Management.Store.StoreManagementClient store, Microsoft.WindowsAzure.Commands.Utilities.Store.MarketplaceClient marketplace, Microsoft.WindowsAzure.Management.ManagementClient management ) : System
TryGetAddOn ( string name, Microsoft.WindowsAzure.Commands.Utilities.Store.WindowsAzureAddOn &addon ) : bool

Tries to get an add-on using it's name.

UpdateAddOn ( string name, string plan, string promotionCode ) : void

Updates an add-on plan.

Private Methods

Method Description
Base32NoPaddingEncode ( byte data ) : string
CreateCloudServiceIfNotExists ( string location ) : string
GetCloudServiceName ( string subscriptionId, string region ) : string
GetResourceInformation ( string addon, string location, string &type, string &cloudService ) : string
GetStoreCloudServices ( ) : List
IsDataService ( string type ) : bool

Method Details

GetAddOn() public method

Gets add ons based on the passed filter.
public GetAddOn ( AddOnSearchOptions searchOptions = null ) : List
searchOptions AddOnSearchOptions The add on search options
return List

GetConfirmationMessage() public method

Gets confirmation message for the given operation.
public GetConfirmationMessage ( OperationType operation, string addon = null, string plan = null ) : string
operation OperationType The operation type
addon string The add-on id
plan string The plan id
return string

GetLocations() public method

public GetLocations ( ) : List
return List

NewAddOn() public method

public NewAddOn ( string name, string addon, string plan, string location, string promotionCode ) : void
name string
addon string
plan string
location string
promotionCode string
return void

RemoveAddOn() public method

Removes given Add-On
public RemoveAddOn ( string name ) : void
name string The add-on name
return void

StoreClient() public method

Parameterless constructor added for mocking framework.
public StoreClient ( ) : System
return System

StoreClient() public method

Creates new instance from the store client.
public StoreClient ( AzureSMProfile profile, AzureSubscription subscription ) : System
profile AzureSMProfile
subscription AzureSubscription The Microsoft Azure subscription
return System

StoreClient() public method

public StoreClient ( AzureSubscription subscription, Microsoft.WindowsAzure.Management.Compute.ComputeManagementClient compute, Microsoft.WindowsAzure.Management.Store.StoreManagementClient store, Microsoft.WindowsAzure.Commands.Utilities.Store.MarketplaceClient marketplace, Microsoft.WindowsAzure.Management.ManagementClient management ) : System
subscription AzureSubscription
compute Microsoft.WindowsAzure.Management.Compute.ComputeManagementClient
store Microsoft.WindowsAzure.Management.Store.StoreManagementClient
marketplace Microsoft.WindowsAzure.Commands.Utilities.Store.MarketplaceClient
management Microsoft.WindowsAzure.Management.ManagementClient
return System

TryGetAddOn() public method

Tries to get an add-on using it's name.
public TryGetAddOn ( string name, Microsoft.WindowsAzure.Commands.Utilities.Store.WindowsAzureAddOn &addon ) : bool
name string The add-on name
addon Microsoft.WindowsAzure.Commands.Utilities.Store.WindowsAzureAddOn The add-on instance. Will be null if not found
return bool

UpdateAddOn() public method

Updates an add-on plan.
public UpdateAddOn ( string name, string plan, string promotionCode ) : void
name string The add-on name
plan string The add-on new plan id
promotionCode string The plan promotion code
return void