C# Class Elastacloud.AzureManagement.Fluent.Clients.StorageClient

Defines a class which can perform operations on blobs
Inheritance: IStorageClient
Show file Open project: azurecoder/fluent-management Class Usage Examples

Public Methods

Method Description
CreateNewStorageAccount ( string name, string location = LocationConstants.NorthEurope, StorageManagementOptions options = null ) : void

Creates a new storage account given a name and location

CreateStorageAccountIfNotExists ( string name, string location = LocationConstants.NorthEurope, StorageManagementOptions options = null ) : void

Create the storage account if an account by the same name doesn't exist

DeleteStorageAccount ( string name ) : void
GetSaSFromBlobUri ( string blobUri ) : string

Gets a shared access signature given a full blob uri

GetStorageAccountKeys ( string name ) : string[]
GetStorageAccountList ( ) : List
GetStorageAccountListWithKeys ( ) : List
GetStorageStatus ( string name ) : StorageStatus
StorageClient ( string subscriptionId, X509Certificate2 certificate ) : System

Used to construct a storage client with a subscription id and management certificate

StorageClient ( string accountName, string accountKey ) : System

Used to construct a client with an account name and account key

Method Details

CreateNewStorageAccount() public method

Creates a new storage account given a name and location
public CreateNewStorageAccount ( string name, string location = LocationConstants.NorthEurope, StorageManagementOptions options = null ) : void
name string
location string
options StorageManagementOptions
return void

CreateStorageAccountIfNotExists() public method

Create the storage account if an account by the same name doesn't exist
public CreateStorageAccountIfNotExists ( string name, string location = LocationConstants.NorthEurope, StorageManagementOptions options = null ) : void
name string
location string
options StorageManagementOptions
return void

DeleteStorageAccount() public method

public DeleteStorageAccount ( string name ) : void
name string
return void

GetSaSFromBlobUri() public method

Gets a shared access signature given a full blob uri
public GetSaSFromBlobUri ( string blobUri ) : string
blobUri string
return string

GetStorageAccountKeys() public method

public GetStorageAccountKeys ( string name ) : string[]
name string
return string[]

GetStorageAccountList() public method

public GetStorageAccountList ( ) : List
return List

GetStorageAccountListWithKeys() public method

public GetStorageAccountListWithKeys ( ) : List
return List

GetStorageStatus() public method

public GetStorageStatus ( string name ) : StorageStatus
name string
return StorageStatus

StorageClient() public method

Used to construct a storage client with a subscription id and management certificate
public StorageClient ( string subscriptionId, X509Certificate2 certificate ) : System
subscriptionId string
certificate System.Security.Cryptography.X509Certificates.X509Certificate2
return System

StorageClient() public method

Used to construct a client with an account name and account key
public StorageClient ( string accountName, string accountKey ) : System
accountName string
accountKey string
return System