C# Class Microsoft.Azure.Commands.ManagedCache.PSCacheClient

Exibir arquivo Open project: Azure/azure-powershell

Public Methods

Method Description
AddNamedCache ( string cacheServiceName, string namedCacheName, string expiryPolicy, int expiryTimeInMinutes, bool noeviction, bool notifications, bool highAvailability ) : CloudServiceResource
CreateCacheService ( string subscriptionID, string cacheServiceName, string location, CacheServiceSkuType sku, string memorySize ) : CloudServiceResource
DeleteCacheService ( string cacheServiceName ) : void
GetAccessKeys ( string cacheServiceName ) : CachingKeysResponse
GetCacheServices ( string cacheServiceName ) : List
GetLocations ( ) : List
GetNamedCache ( string cacheServiceName, string namedCacheName ) : CloudServiceResource
NormalizeCacheServiceName ( string cacheServiceName ) : string
PSCacheClient ( ) : System
PSCacheClient ( AzureSMProfile profile, AzureSubscription currentSubscription ) : System
RegenerateAccessKeys ( string cacheServiceName, string keyType ) : CachingKeysResponse
RemoveNamedCache ( string cacheServiceName, string namedCacheName, Action ConfirmAction, bool force ) : void
SetNamedCache ( string cacheServiceName, string namedCacheName, string expiryPolicy, int expiryTimeInMinutes, bool noeviction, bool notifications, bool highAvailability, Action ConfirmAction, bool force ) : CloudServiceResource
UpdateCacheService ( string cacheServiceName, CacheServiceSkuType sku, string memory, Action ConfirmAction, bool force ) : CloudServiceResource

Private Methods

Method Description
Base32NoPaddingEncode ( byte data ) : string
CloudServiceExists ( string cloudServiceName ) : bool
EnsureCloudServiceExists ( string subscriptionId, string location ) : string
FetchCloudServiceResource ( string cacheServiceName, string &cloudServiceName ) : CloudServiceResource
GetAssociatedCloudServiceName ( string cacheServiceName ) : string
GetCacheService ( string cloudServiceName, string cacheServiceName ) : CloudServiceResource
GetCloudServiceName ( string subscriptionId, string region ) : string

The following logic was ported from Azure Cache management portal. It is critical to maintain the parity. Do not modify unless you understand the consequence.

GetPromptMessgaeIfThereIsDataLoss ( CacheServiceSkuType existingSkuType, CacheServiceSkuType newSkuType, int existingSkuCount, int newSkuCount ) : string
InitializeParameters ( string location, CacheServiceSkuType sku, string memorySize ) : CacheServiceCreateParameters
IsCachingResource ( string resourceType ) : bool
ProvisionCacheService ( string cloudServiceName, string cacheServiceName, CacheServiceCreateParameters param, bool createOrUpdate ) : CloudServiceResource
WaitForProvisionDone ( string cacheServiceName, string cloudServiceName ) : CloudServiceResource
WriteProgress ( string progress ) : void

Method Details

AddNamedCache() public method

public AddNamedCache ( string cacheServiceName, string namedCacheName, string expiryPolicy, int expiryTimeInMinutes, bool noeviction, bool notifications, bool highAvailability ) : CloudServiceResource
cacheServiceName string
namedCacheName string
expiryPolicy string
expiryTimeInMinutes int
noeviction bool
notifications bool
highAvailability bool
return CloudServiceResource

CreateCacheService() public method

public CreateCacheService ( string subscriptionID, string cacheServiceName, string location, CacheServiceSkuType sku, string memorySize ) : CloudServiceResource
subscriptionID string
cacheServiceName string
location string
sku CacheServiceSkuType
memorySize string
return CloudServiceResource

DeleteCacheService() public method

public DeleteCacheService ( string cacheServiceName ) : void
cacheServiceName string
return void

GetAccessKeys() public method

public GetAccessKeys ( string cacheServiceName ) : CachingKeysResponse
cacheServiceName string
return CachingKeysResponse

GetCacheServices() public method

public GetCacheServices ( string cacheServiceName ) : List
cacheServiceName string
return List

GetLocations() public method

public GetLocations ( ) : List
return List

GetNamedCache() public method

public GetNamedCache ( string cacheServiceName, string namedCacheName ) : CloudServiceResource
cacheServiceName string
namedCacheName string
return CloudServiceResource

NormalizeCacheServiceName() public method

public NormalizeCacheServiceName ( string cacheServiceName ) : string
cacheServiceName string
return string

PSCacheClient() public method

public PSCacheClient ( ) : System
return System

PSCacheClient() public method

public PSCacheClient ( AzureSMProfile profile, AzureSubscription currentSubscription ) : System
profile Microsoft.Azure.Commands.Common.Authentication.Models.AzureSMProfile
currentSubscription Microsoft.Azure.Commands.Common.Authentication.Models.AzureSubscription
return System

RegenerateAccessKeys() public method

public RegenerateAccessKeys ( string cacheServiceName, string keyType ) : CachingKeysResponse
cacheServiceName string
keyType string
return CachingKeysResponse

RemoveNamedCache() public method

public RemoveNamedCache ( string cacheServiceName, string namedCacheName, Action ConfirmAction, bool force ) : void
cacheServiceName string
namedCacheName string
ConfirmAction Action
force bool
return void

SetNamedCache() public method

public SetNamedCache ( string cacheServiceName, string namedCacheName, string expiryPolicy, int expiryTimeInMinutes, bool noeviction, bool notifications, bool highAvailability, Action ConfirmAction, bool force ) : CloudServiceResource
cacheServiceName string
namedCacheName string
expiryPolicy string
expiryTimeInMinutes int
noeviction bool
notifications bool
highAvailability bool
ConfirmAction Action
force bool
return CloudServiceResource

UpdateCacheService() public method

public UpdateCacheService ( string cacheServiceName, CacheServiceSkuType sku, string memory, Action ConfirmAction, bool force ) : CloudServiceResource
cacheServiceName string
sku CacheServiceSkuType
memory string
ConfirmAction Action
force bool
return CloudServiceResource