Exemplo n.º 1
0
 /// <summary>
 /// Creates or updates the specified firewall rule.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the Azure resource group that contains the Data Lake Store
 /// account.
 /// </param>
 /// <param name='accountName'>
 /// The name of the Data Lake Store account to which to add the firewall rule.
 /// </param>
 /// <param name='name'>
 /// The name of the firewall rule to create or update.
 /// </param>
 /// <param name='parameters'>
 /// Parameters supplied to create the create firewall rule.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <FirewallRule> CreateOrUpdateFirewallRuleAsync(this IAccountOperations operations, string resourceGroupName, string accountName, string name, FirewallRule parameters, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.CreateOrUpdateFirewallRuleWithHttpMessagesAsync(resourceGroupName, accountName, name, parameters, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }