C# Class Microsoft.WindowsAzure.Commands.Utilities.CloudService.ServiceSettings

Mostrar archivo Open project: Azure/azure-powershell Class Usage Examples

Public Methods

Method Description
Equals ( object obj ) : bool
GetHashCode ( ) : int
Load ( string path ) : ServiceSettings
LoadDefault ( string path, string slot, string location, string affinityGroup, string subscription, string storageAccountName, string suppliedServiceName, string serviceDefinitionName, string &serviceName ) : ServiceSettings
Save ( string path ) : void
ServiceSettings ( ) : System

Private Methods

Method Description
GetDefaultLocation ( string localLocation, string location ) : string
GetDefaultSlot ( string localSlot, string globalSlot, string slot ) : string
GetDefaultStorageName ( string localStorageName, string globalStorageAccountName, string storageAccountName, string serviceName ) : string
GetDefaultSubscription ( string localSubscription, string subscription ) : string
GetServiceName ( string suppliedServiceName, string serviceDefinitionName ) : string
SanitizeStorageAccountName ( string name ) : string

Sanitize a name for use as a storage account name.

ValidateStorageAccountName ( string name ) : void

Validate that the storage account name contains only lower case letters or numbers and is between 3 and 24 characters in length (per http://msdn.microsoft.com/en-us/library/windowsazure/hh264518.aspx) unless the string is empty (which can happen if it wasn't provided or generated).

Method Details

Equals() public method

public Equals ( object obj ) : bool
obj object
return bool

GetHashCode() public method

public GetHashCode ( ) : int
return int

Load() public static method

public static Load ( string path ) : ServiceSettings
path string
return ServiceSettings

LoadDefault() public static method

public static LoadDefault ( string path, string slot, string location, string affinityGroup, string subscription, string storageAccountName, string suppliedServiceName, string serviceDefinitionName, string &serviceName ) : ServiceSettings
path string
slot string
location string
affinityGroup string
subscription string
storageAccountName string
suppliedServiceName string
serviceDefinitionName string
serviceName string
return ServiceSettings

Save() public method

public Save ( string path ) : void
path string
return void

ServiceSettings() public method

public ServiceSettings ( ) : System
return System