/// <summary> /// Creates or updates the specified Data Lake Store account with the /// specified firewall rules. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.DataLake.Store.IDataLakeStoreAccountOperations. /// </param> /// <param name='resourceGroupName'> /// Required. The name of the resource group the account is in. /// </param> /// <param name='accountName'> /// Required. The name of the account to add the firewall rule to /// </param> /// <param name='parameters'> /// Required. Parameters supplied to the create firewall rule operation. /// </param> /// <returns> /// Data Lake Store account Firewall rule information response. /// </returns> public static Task<DataLakeStoreFirewallRuleCreateUpdateOrGetResponse> CreateOrUpdateFirewallRuleAsync(this IDataLakeStoreAccountOperations operations, string resourceGroupName, string accountName, DataLakeStoreFirewallRuleCreateOrUpdateParameters parameters) { return operations.CreateOrUpdateFirewallRuleAsync(resourceGroupName, accountName, parameters, CancellationToken.None); }
/// <summary> /// Creates or updates the specified Data Lake Store account with the /// specified firewall rules. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.DataLake.Store.IDataLakeStoreAccountOperations. /// </param> /// <param name='resourceGroupName'> /// Required. The name of the resource group the account is in. /// </param> /// <param name='accountName'> /// Required. The name of the account to add the firewall rule to /// </param> /// <param name='parameters'> /// Required. Parameters supplied to the create firewall rule operation. /// </param> /// <returns> /// Data Lake Store account Firewall rule information response. /// </returns> public static DataLakeStoreFirewallRuleCreateUpdateOrGetResponse CreateOrUpdateFirewallRule(this IDataLakeStoreAccountOperations operations, string resourceGroupName, string accountName, DataLakeStoreFirewallRuleCreateOrUpdateParameters parameters) { return Task.Factory.StartNew((object s) => { return ((IDataLakeStoreAccountOperations)s).CreateOrUpdateFirewallRuleAsync(resourceGroupName, accountName, parameters); } , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); }