C# Класс Microsoft.WindowsAzure.Commands.Utilities.Store.StoreClient

Показать файл Открыть проект

Private Properties

Свойство Тип Описание
Base32NoPaddingEncode string
CreateCloudServiceIfNotExists string
GetCloudServiceName string
GetResourceInformation string
GetStoreCloudServices List
IsDataService bool

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

Метод Описание
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.

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

Метод Описание
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

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

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

Gets add ons based on the passed filter.
public GetAddOn ( AddOnSearchOptions searchOptions = null ) : List
searchOptions AddOnSearchOptions The add on search options
Результат List

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

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
Результат string

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

public GetLocations ( ) : List
Результат List

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

public NewAddOn ( string name, string addon, string plan, string location, string promotionCode ) : void
name string
addon string
plan string
location string
promotionCode string
Результат void

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

Removes given Add-On
public RemoveAddOn ( string name ) : void
name string The add-on name
Результат void

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

Parameterless constructor added for mocking framework.
public StoreClient ( ) : System
Результат System

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

Creates new instance from the store client.
public StoreClient ( AzureSMProfile profile, AzureSubscription subscription ) : System
profile AzureSMProfile
subscription AzureSubscription The Microsoft Azure subscription
Результат System

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

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
Результат System

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

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
Результат bool

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

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
Результат void