/// <summary>
 /// Lists all the storage accounts available under the given resource
 /// group. Note that storage keys are not returned; use the ListKeys
 /// operation for this.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.Storage.IStorageAccountOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The name of the resource group within the user's
 /// subscription.
 /// </param>
 /// <returns>
 /// The list storage accounts operation response.
 /// </returns>
 public static StorageAccountListResponse ListByResourceGroup(this IStorageAccountOperations operations, string resourceGroupName)
 {
     return(Task.Factory.StartNew((object s) =>
     {
         return ((IStorageAccountOperations)s).ListByResourceGroupAsync(resourceGroupName);
     }
                                  , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
 /// <summary>
 /// Updates the account type or tags for a storage account. It can also
 /// be used to add a custom domain (note that custom domains cannot be
 /// added via the Create operation). Only one custom domain is
 /// supported per storage account. In order to replace a custom
 /// domain, the old value must be cleared before a new value may be
 /// set. To clear a custom domain, simply update the custom domain
 /// with empty string. Then call update again with the new cutsom
 /// domain name. The update API can only be used to update one of
 /// tags, accountType, or customDomain per call. To update multiple of
 /// these properties, call the API multiple times with one change per
 /// call. This call does not change the storage keys for the account.
 /// If you want to change storage account keys, use the RegenerateKey
 /// operation. The location and name of the storage account cannot be
 /// changed after creation.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.Storage.IStorageAccountOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The name of the resource group within the user's
 /// subscription.
 /// </param>
 /// <param name='accountName'>
 /// Required. The name of the storage account within the specified
 /// resource group. Storage account names must be between 3 and 24
 /// characters in length and use numbers and lower-case letters only.
 /// </param>
 /// <param name='parameters'>
 /// Required. The parameters to update on the account. Note that only
 /// one property can be changed at a time using this API.
 /// </param>
 /// <returns>
 /// The Update storage account operation response.
 /// </returns>
 public static StorageAccountUpdateResponse Update(this IStorageAccountOperations operations, string resourceGroupName, string accountName, StorageAccountUpdateParameters parameters)
 {
     return(Task.Factory.StartNew((object s) =>
     {
         return ((IStorageAccountOperations)s).UpdateAsync(resourceGroupName, accountName, parameters);
     }
                                  , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
 /// <summary>
 /// Checks that account name is valid and is not in use.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.Storage.IStorageAccountOperations.
 /// </param>
 /// <param name='accountName'>
 /// Required. The name of the storage account within the specified
 /// resource group. Storage account names must be between 3 and 24
 /// characters in length and use numbers and lower-case letters only.
 /// </param>
 /// <returns>
 /// The CheckNameAvailability operation response.
 /// </returns>
 public static CheckNameAvailabilityResponse CheckNameAvailability(this IStorageAccountOperations operations, string accountName)
 {
     return(Task.Factory.StartNew((object s) =>
     {
         return ((IStorageAccountOperations)s).CheckNameAvailabilityAsync(accountName);
     }
                                  , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
Esempio n. 4
0
 /// <summary>
 /// The Regenerate Keys operation regenerates the primary or secondary
 /// access key for the specified storage account.  (see
 /// http://msdn.microsoft.com/en-us/library/windowsazure/ee460795.aspx
 /// for more information)
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.Storage.IStorageAccountOperations.
 /// </param>
 /// <param name='parameters'>
 /// Required. Parameters supplied to the Regenerate Keys operation.
 /// </param>
 /// <returns>
 /// The primary and secondary access keys for a storage account.
 /// </returns>
 public static StorageAccountRegenerateKeysResponse RegenerateKeys(this IStorageAccountOperations operations, StorageAccountRegenerateKeysParameters parameters)
 {
     return(Task.Factory.StartNew((object s) =>
     {
         return ((IStorageAccountOperations)s).RegenerateKeysAsync(parameters);
     }
                                  , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
Esempio n. 5
0
 /// <summary>
 /// Prepare storage account migration api validates and prepares the
 /// given storage account for IaaS Classic to ARM migration.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.Storage.IStorageAccountOperations.
 /// </param>
 /// <param name='storageAccountName'>
 /// Required. Name of storage account to be migrated.
 /// </param>
 /// <returns>
 /// The response body contains the status of the specified asynchronous
 /// operation, indicating whether it has succeeded, is inprogress, or
 /// has failed. Note that this status is distinct from the HTTP status
 /// code returned for the Get Operation Status operation itself. If
 /// the asynchronous operation succeeded, the response body includes
 /// the HTTP status code for the successful request. If the
 /// asynchronous operation failed, the response body includes the HTTP
 /// status code for the failed request and error information regarding
 /// the failure.
 /// </returns>
 public static OperationStatusResponse PrepareMigration(this IStorageAccountOperations operations, string storageAccountName)
 {
     return(Task.Factory.StartNew((object s) =>
     {
         return ((IStorageAccountOperations)s).PrepareMigrationAsync(storageAccountName);
     }
                                  , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
Esempio n. 6
0
 /// <summary>
 /// The Begin Creating Storage Account operation creates a new storage
 /// account in Azure.  (see
 /// http://msdn.microsoft.com/en-us/library/windowsazure/hh264518.aspx
 /// for more information)
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.Storage.IStorageAccountOperations.
 /// </param>
 /// <param name='parameters'>
 /// Required. Parameters supplied to the Begin Creating Storage Account
 /// operation.
 /// </param>
 /// <returns>
 /// A standard service response including an HTTP status code and
 /// request ID.
 /// </returns>
 public static AzureOperationResponse BeginCreating(this IStorageAccountOperations operations, StorageAccountCreateParameters parameters)
 {
     return(Task.Factory.StartNew((object s) =>
     {
         return ((IStorageAccountOperations)s).BeginCreatingAsync(parameters);
     }
                                  , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
 /// <summary>
 /// Initializes a new instance of the StorageManagementClient class.
 /// </summary>
 private StorageManagementClient()
     : base()
 {
     this._storageAccounts = new StorageAccountOperations(this);
     this._apiVersion      = "2014-05-01";
     this._longRunningOperationInitialTimeout = -1;
     this._longRunningOperationRetryTimeout   = -1;
     this.HttpClient.Timeout = TimeSpan.FromSeconds(300);
 }
Esempio n. 8
0
 /// <summary>
 /// Initializes a new instance of the StorageManagementClient class.
 /// </summary>
 /// <param name='httpClient'>
 /// The Http client
 /// </param>
 public StorageManagementClient(HttpClient httpClient)
     : base(httpClient)
 {
     this._storageAccounts = new StorageAccountOperations(this);
     this._apiVersion      = "2015-05-01-preview";
     this._longRunningOperationInitialTimeout = -1;
     this._longRunningOperationRetryTimeout   = -1;
     this.HttpClient.Timeout = TimeSpan.FromSeconds(300);
 }
Esempio n. 9
0
 /// <summary>
 /// Initializes a new instance of the StorageManagementClient class.
 /// </summary>
 public StorageManagementClient()
     : base()
 {
     this._storageAccounts = new StorageAccountOperations(this);
     this._usage           = new UsageOperations(this);
     this._apiVersion      = "2015-06-15";
     this._longRunningOperationInitialTimeout = -1;
     this._longRunningOperationRetryTimeout   = -1;
     this.HttpClient.Timeout = TimeSpan.FromSeconds(300);
 }
Esempio n. 10
0
 /// <summary>
 /// The Regenerate Keys operation regenerates the primary or secondary
 /// access key for the specified storage account.  (see
 /// http://msdn.microsoft.com/en-us/library/windowsazure/ee460795.aspx
 /// for more information)
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.Storage.IStorageAccountOperations.
 /// </param>
 /// <param name='parameters'>
 /// Parameters supplied to the Regenerate Keys operation.
 /// </param>
 /// <returns>
 /// The primary and secondary access keys for a storage account.
 /// </returns>
 public static StorageAccountRegenerateKeysResponse RegenerateKeys(this IStorageAccountOperations operations, StorageAccountRegenerateKeysParameters parameters)
 {
     try
     {
         return(operations.RegenerateKeysAsync(parameters).Result);
     }
     catch (AggregateException ex)
     {
         if (ex.InnerExceptions.Count > 1)
         {
             throw;
         }
         else
         {
             throw ex.InnerException;
         }
     }
 }
Esempio n. 11
0
 /// <summary>
 /// The List Storage Accounts operation lists the storage accounts
 /// available under the current subscription.  (see
 /// http://msdn.microsoft.com/en-us/library/windowsazure/ee460787.aspx
 /// for more information)
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.Storage.IStorageAccountOperations.
 /// </param>
 /// <returns>
 /// The List Storage Accounts operation response.
 /// </returns>
 public static StorageAccountListResponse List(this IStorageAccountOperations operations)
 {
     try
     {
         return(operations.ListAsync().Result);
     }
     catch (AggregateException ex)
     {
         if (ex.InnerExceptions.Count > 1)
         {
             throw;
         }
         else
         {
             throw ex.InnerException;
         }
     }
 }
Esempio n. 12
0
 /// <summary>
 /// The Update Storage Account operation updates the label, the
 /// description, and enables or disables the geo-replication status
 /// for a storage account in Windows Azure.  (see
 /// http://msdn.microsoft.com/en-us/library/windowsazure/hh264516.aspx
 /// for more information)
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.Storage.IStorageAccountOperations.
 /// </param>
 /// <param name='accountName'>
 /// Name of the storage account to update.
 /// </param>
 /// <param name='parameters'>
 /// Parameters supplied to the Update Storage Account operation.
 /// </param>
 /// <returns>
 /// A standard service response including an HTTP status code and
 /// request ID.
 /// </returns>
 public static OperationResponse Update(this IStorageAccountOperations operations, string accountName, StorageAccountUpdateParameters parameters)
 {
     try
     {
         return(operations.UpdateAsync(accountName, parameters).Result);
     }
     catch (AggregateException ex)
     {
         if (ex.InnerExceptions.Count > 1)
         {
             throw;
         }
         else
         {
             throw ex.InnerException;
         }
     }
 }
Esempio n. 13
0
 /// <summary>
 /// The Get Storage Keys operation returns the primary and secondary
 /// access keys for the specified storage account.  (see
 /// http://msdn.microsoft.com/en-us/library/windowsazure/ee460785.aspx
 /// for more information)
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.Storage.IStorageAccountOperations.
 /// </param>
 /// <param name='accountName'>
 /// The name of the desired storage account.
 /// </param>
 /// <returns>
 /// The primary and secondary access keys for a storage account.
 /// </returns>
 public static StorageAccountGetKeysResponse GetKeys(this IStorageAccountOperations operations, string accountName)
 {
     try
     {
         return(operations.GetKeysAsync(accountName).Result);
     }
     catch (AggregateException ex)
     {
         if (ex.InnerExceptions.Count > 1)
         {
             throw;
         }
         else
         {
             throw ex.InnerException;
         }
     }
 }
Esempio n. 14
0
 /// <summary>
 /// The Create Storage Account operation creates a new storage account
 /// in Windows Azure.  (see
 /// http://msdn.microsoft.com/en-us/library/windowsazure/hh264518.aspx
 /// for more information)
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.Storage.IStorageAccountOperations.
 /// </param>
 /// <param name='parameters'>
 /// Parameters supplied to the Create Storage Account operation.
 /// </param>
 /// <returns>
 /// A standard service response including an HTTP status code and
 /// request ID.
 /// </returns>
 public static OperationResponse BeginCreating(this IStorageAccountOperations operations, StorageAccountCreateParameters parameters)
 {
     try
     {
         return(operations.BeginCreatingAsync(parameters).Result);
     }
     catch (AggregateException ex)
     {
         if (ex.InnerExceptions.Count > 1)
         {
             throw;
         }
         else
         {
             throw ex.InnerException;
         }
     }
 }
Esempio n. 15
0
 /// <summary>
 /// The Check Name Availability operation checks if a storage account
 /// name is available for use in Windows Azure.  (see
 /// http://msdn.microsoft.com/en-us/library/windowsazure/jj154125.aspx
 /// for more information)
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.Storage.IStorageAccountOperations.
 /// </param>
 /// <param name='accountName'>
 /// The desired storage account name to check for availability.
 /// </param>
 /// <returns>
 /// The response to a storage account check name availability request.
 /// </returns>
 public static CheckNameAvailabilityResponse CheckNameAvailability(this IStorageAccountOperations operations, string accountName)
 {
     try
     {
         return(operations.CheckNameAvailabilityAsync(accountName).Result);
     }
     catch (AggregateException ex)
     {
         if (ex.InnerExceptions.Count > 1)
         {
             throw;
         }
         else
         {
             throw ex.InnerException;
         }
     }
 }
Esempio n. 16
0
 /// <summary>
 /// The Get Storage Account Properties operation returns system
 /// properties for the specified storage account.  (see
 /// http://msdn.microsoft.com/en-us/library/windowsazure/ee460802.aspx
 /// for more information)
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.Storage.IStorageAccountOperations.
 /// </param>
 /// <param name='serviceName'>
 /// Name of the storage account to get.
 /// </param>
 /// <returns>
 /// The Get Storage Account Properties operation response.
 /// </returns>
 public static StorageServiceGetResponse Get(this IStorageAccountOperations operations, string serviceName)
 {
     try
     {
         return(operations.GetAsync(serviceName).Result);
     }
     catch (AggregateException ex)
     {
         if (ex.InnerExceptions.Count > 1)
         {
             throw;
         }
         else
         {
             throw ex.InnerException;
         }
     }
 }
 /// <summary>
 /// The Update Storage Account operation updates the label and the
 /// description, and enables or disables the geo-replication status
 /// for a storage account in Azure.  (see
 /// http://msdn.microsoft.com/en-us/library/windowsazure/hh264516.aspx
 /// for more information)
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.Storage.IStorageAccountOperations.
 /// </param>
 /// <param name='accountName'>
 /// Required. Name of the storage account to update.
 /// </param>
 /// <param name='parameters'>
 /// Required. Parameters supplied to the Update Storage Account
 /// operation.
 /// </param>
 /// <returns>
 /// A standard service response including an HTTP status code and
 /// request ID.
 /// </returns>
 public static Task <AzureOperationResponse> UpdateAsync(this IStorageAccountOperations operations, string accountName, StorageAccountUpdateParameters parameters)
 {
     return(operations.UpdateAsync(accountName, parameters, CancellationToken.None));
 }
Esempio n. 18
0
 /// <summary>
 /// Initializes a new instance of the StorageManagementClient class.
 /// </summary>
 private StorageManagementClient()
     : base()
 {
     this._storageAccounts   = new StorageAccountOperations(this);
     this.HttpClient.Timeout = TimeSpan.FromSeconds(300);
 }
Esempio n. 19
0
 /// <summary>
 /// Asynchronously creates a new storage account with the specified
 /// parameters. Existing accounts cannot be updated with this API and
 /// should instead use the Update Storage Account API. If an account
 /// is already created and subsequent PUT request is issued with exact
 /// same set of properties, then HTTP 200 would be returned.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.Storage.IStorageAccountOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The name of the resource group within the user’s
 /// subscription.
 /// </param>
 /// <param name='accountName'>
 /// Required. The name of the storage account within the specified
 /// resource group. Storage account names must be between 3 and 24
 /// characters in length and use numbers and lower-case letters only.
 /// </param>
 /// <param name='parameters'>
 /// Required. The parameters to provide for the created account.
 /// </param>
 /// <returns>
 /// The Create storage account operation response.
 /// </returns>
 public static Task <StorageAccountCreateResponse> BeginCreateAsync(this IStorageAccountOperations operations, string resourceGroupName, string accountName, StorageAccountCreateParameters parameters)
 {
     return(operations.BeginCreateAsync(resourceGroupName, accountName, parameters, CancellationToken.None));
 }
Esempio n. 20
0
 /// <summary>
 /// Regenerates the access keys for the specified storage account.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.Storage.IStorageAccountOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The name of the resource group within the user’s
 /// subscription.
 /// </param>
 /// <param name='accountName'>
 /// Required. The name of the storage account within the specified
 /// resource group. Storage account names must be between 3 and 24
 /// characters in length and use numbers and lower-case letters only.
 /// </param>
 /// <param name='regenerateKey'>
 /// Required. Specifies name of the key which should be regenerated.
 /// </param>
 /// <returns>
 /// The RegenerateKey operation response.
 /// </returns>
 public static Task <StorageAccountRegenerateKeyResponse> RegenerateKeyAsync(this IStorageAccountOperations operations, string resourceGroupName, string accountName, KeyName regenerateKey)
 {
     return(operations.RegenerateKeyAsync(resourceGroupName, accountName, regenerateKey, CancellationToken.None));
 }
Esempio n. 21
0
 /// <summary>
 /// Lists the access keys for the specified storage account.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.Storage.IStorageAccountOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The name of the resource group.
 /// </param>
 /// <param name='accountName'>
 /// Required. The name of the storage account.
 /// </param>
 /// <returns>
 /// The ListKeys operation response.
 /// </returns>
 public static Task <StorageAccountListKeysResponse> ListKeysAsync(this IStorageAccountOperations operations, string resourceGroupName, string accountName)
 {
     return(operations.ListKeysAsync(resourceGroupName, accountName, CancellationToken.None));
 }
Esempio n. 22
0
 /// <summary>
 /// Lists all the storage accounts available under the subscription.
 /// Note that storage keys are not returned; use the ListKeys
 /// operation for this.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.Storage.IStorageAccountOperations.
 /// </param>
 /// <returns>
 /// The list storage accounts operation response.
 /// </returns>
 public static Task <StorageAccountListResponse> ListAsync(this IStorageAccountOperations operations)
 {
     return(operations.ListAsync(CancellationToken.None));
 }
Esempio n. 23
0
 /// <summary>
 /// Deletes a storage account in Microsoft Azure.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.Storage.IStorageAccountOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The name of the resource group within the user’s
 /// subscription.
 /// </param>
 /// <param name='accountName'>
 /// Required. The name of the storage account within the specified
 /// resource group. Storage account names must be between 3 and 24
 /// characters in length and use numbers and lower-case letters only.
 /// </param>
 /// <returns>
 /// A standard service response including an HTTP status code and
 /// request ID.
 /// </returns>
 public static Task <AzureOperationResponse> DeleteAsync(this IStorageAccountOperations operations, string resourceGroupName, string accountName)
 {
     return(operations.DeleteAsync(resourceGroupName, accountName, CancellationToken.None));
 }
Esempio n. 24
0
 /// <summary>
 /// Checks that account name is valid and is not in use.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.Storage.IStorageAccountOperations.
 /// </param>
 /// <param name='accountName'>
 /// Required. The name of the storage account within the specified
 /// resource group. Storage account names must be between 3 and 24
 /// characters in length and use numbers and lower-case letters only.
 /// </param>
 /// <returns>
 /// The CheckNameAvailability operation response.
 /// </returns>
 public static Task <CheckNameAvailabilityResponse> CheckNameAvailabilityAsync(this IStorageAccountOperations operations, string accountName)
 {
     return(operations.CheckNameAvailabilityAsync(accountName, CancellationToken.None));
 }
 /// <summary>
 /// The Begin Creating Storage Account operation creates a new storage
 /// account in Azure.  (see
 /// http://msdn.microsoft.com/en-us/library/windowsazure/hh264518.aspx
 /// for more information)
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.Storage.IStorageAccountOperations.
 /// </param>
 /// <param name='parameters'>
 /// Required. Parameters supplied to the Begin Creating Storage Account
 /// operation.
 /// </param>
 /// <returns>
 /// A standard service response including an HTTP status code and
 /// request ID.
 /// </returns>
 public static Task <AzureOperationResponse> BeginCreatingAsync(this IStorageAccountOperations operations, StorageAccountCreateParameters parameters)
 {
     return(operations.BeginCreatingAsync(parameters, CancellationToken.None));
 }
Esempio n. 26
0
 /// <summary>
 /// The Delete Storage Account operation deletes the specifiedstorage
 /// account from Windows Azure.  (see
 /// http://msdn.microsoft.com/en-us/library/windowsazure/hh264517.aspx
 /// for more information)
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.Storage.IStorageAccountOperations.
 /// </param>
 /// <param name='accountName'>
 /// The name of the storage account.
 /// </param>
 /// <returns>
 /// A standard service response including an HTTP status code and
 /// request ID.
 /// </returns>
 public static Task <OperationResponse> DeleteAsync(this IStorageAccountOperations operations, string accountName)
 {
     return(operations.DeleteAsync(accountName, CancellationToken.None));
 }
 /// <summary>
 /// The Regenerate Keys operation regenerates the primary or secondary
 /// access key for the specified storage account.  (see
 /// http://msdn.microsoft.com/en-us/library/windowsazure/ee460795.aspx
 /// for more information)
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.Storage.IStorageAccountOperations.
 /// </param>
 /// <param name='parameters'>
 /// Required. Parameters supplied to the Regenerate Keys operation.
 /// </param>
 /// <returns>
 /// The primary and secondary access keys for a storage account.
 /// </returns>
 public static Task <StorageAccountRegenerateKeysResponse> RegenerateKeysAsync(this IStorageAccountOperations operations, StorageAccountRegenerateKeysParameters parameters)
 {
     return(operations.RegenerateKeysAsync(parameters, CancellationToken.None));
 }
 /// <summary>
 /// The Get Storage Keys operation returns the primary and secondary
 /// access keys for the specified storage account.  (see
 /// http://msdn.microsoft.com/en-us/library/windowsazure/ee460785.aspx
 /// for more information)
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.Storage.IStorageAccountOperations.
 /// </param>
 /// <param name='accountName'>
 /// Required. The name of the desired storage account.
 /// </param>
 /// <returns>
 /// The primary and secondary access keys for a storage account.
 /// </returns>
 public static Task <StorageAccountGetKeysResponse> GetKeysAsync(this IStorageAccountOperations operations, string accountName)
 {
     return(operations.GetKeysAsync(accountName, CancellationToken.None));
 }
 /// <summary>
 /// The Create Storage Account operation creates a new storage account
 /// in Azure.  (see
 /// http://msdn.microsoft.com/en-us/library/windowsazure/hh264518.aspx
 /// for more information)
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.Storage.IStorageAccountOperations.
 /// </param>
 /// <param name='parameters'>
 /// Required. Parameters supplied to the Create Storage Account
 /// operation.
 /// </param>
 /// <returns>
 /// The response body contains the status of the specified asynchronous
 /// operation, indicating whether it has succeeded, is inprogress, or
 /// has failed. Note that this status is distinct from the HTTP status
 /// code returned for the Get Operation Status operation itself. If
 /// the asynchronous operation succeeded, the response body includes
 /// the HTTP status code for the successful request. If the
 /// asynchronous operation failed, the response body includes the HTTP
 /// status code for the failed request and error information regarding
 /// the failure.
 /// </returns>
 public static Task <OperationStatusResponse> CreateAsync(this IStorageAccountOperations operations, StorageAccountCreateParameters parameters)
 {
     return(operations.CreateAsync(parameters, CancellationToken.None));
 }
Esempio n. 30
0
 /// <summary>
 /// The Get Storage Account Properties operation returns system
 /// properties for the specified storage account.  (see
 /// http://msdn.microsoft.com/en-us/library/windowsazure/ee460802.aspx
 /// for more information)
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.Storage.IStorageAccountOperations.
 /// </param>
 /// <param name='serviceName'>
 /// Name of the storage account to get.
 /// </param>
 /// <returns>
 /// The Get Storage Account Properties operation response.
 /// </returns>
 public static Task <StorageServiceGetResponse> GetAsync(this IStorageAccountOperations operations, string serviceName)
 {
     return(operations.GetAsync(serviceName, CancellationToken.None));
 }