예제 #1
0
 /// <summary>
 /// List the local users associated with the storage account.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group within the user's subscription. The name is
 /// case insensitive.
 /// </param>
 /// <param name='accountName'>
 /// 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='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <LocalUsers> ListAsync(this ILocalUsersOperations operations, string resourceGroupName, string accountName, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListWithHttpMessagesAsync(resourceGroupName, accountName, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
예제 #2
0
 /// <summary>
 /// Create or update the properties of a local user associated with the storage
 /// account
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group within the user's subscription. The name is
 /// case insensitive.
 /// </param>
 /// <param name='accountName'>
 /// 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='username'>
 /// The name of local user. The username must contain lowercase letters and
 /// numbers only. It must be unique only within the storage account.
 /// </param>
 /// <param name='properties'>
 /// The local user associated with a storage account.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <LocalUser> CreateOrUpdateAsync(this ILocalUsersOperations operations, string resourceGroupName, string accountName, string username, LocalUser properties, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, accountName, username, properties, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
예제 #3
0
 /// <summary>
 /// Get the local user of the storage account by username.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group within the user's subscription. The name is
 /// case insensitive.
 /// </param>
 /// <param name='accountName'>
 /// 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='username'>
 /// The name of local user. The username must contain lowercase letters and
 /// numbers only. It must be unique only within the storage account.
 /// </param>
 public static LocalUser Get(this ILocalUsersOperations operations, string resourceGroupName, string accountName, string username)
 {
     return(operations.GetAsync(resourceGroupName, accountName, username).GetAwaiter().GetResult());
 }
예제 #4
0
 /// <summary>
 /// Deletes the local user associated with the specified storage account.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group within the user's subscription. The name is
 /// case insensitive.
 /// </param>
 /// <param name='accountName'>
 /// 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='username'>
 /// The name of local user. The username must contain lowercase letters and
 /// numbers only. It must be unique only within the storage account.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task DeleteAsync(this ILocalUsersOperations operations, string resourceGroupName, string accountName, string username, CancellationToken cancellationToken = default(CancellationToken))
 {
     (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, accountName, username, null, cancellationToken).ConfigureAwait(false)).Dispose();
 }
예제 #5
0
 /// <summary>
 /// Deletes the local user associated with the specified storage account.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group within the user's subscription. The name is
 /// case insensitive.
 /// </param>
 /// <param name='accountName'>
 /// 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='username'>
 /// The name of local user. The username must contain lowercase letters and
 /// numbers only. It must be unique only within the storage account.
 /// </param>
 public static void Delete(this ILocalUsersOperations operations, string resourceGroupName, string accountName, string username)
 {
     operations.DeleteAsync(resourceGroupName, accountName, username).GetAwaiter().GetResult();
 }
예제 #6
0
 /// <summary>
 /// Create or update the properties of a local user associated with the storage
 /// account
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group within the user's subscription. The name is
 /// case insensitive.
 /// </param>
 /// <param name='accountName'>
 /// 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='username'>
 /// The name of local user. The username must contain lowercase letters and
 /// numbers only. It must be unique only within the storage account.
 /// </param>
 /// <param name='properties'>
 /// The local user associated with a storage account.
 /// </param>
 public static LocalUser CreateOrUpdate(this ILocalUsersOperations operations, string resourceGroupName, string accountName, string username, LocalUser properties)
 {
     return(operations.CreateOrUpdateAsync(resourceGroupName, accountName, username, properties).GetAwaiter().GetResult());
 }
 /// <summary>
 /// List the local users associated with the storage account.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group within the user's subscription. The name is
 /// case insensitive.
 /// </param>
 /// <param name='accountName'>
 /// 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>
 public static IEnumerable <LocalUser> List(this ILocalUsersOperations operations, string resourceGroupName, string accountName)
 {
     return(operations.ListAsync(resourceGroupName, accountName).GetAwaiter().GetResult());
 }