/// <summary> /// The Update operation updates the properties of an existing Batch /// account in the specified resource group. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.Batch.IAccountOperations. /// </param> /// <param name='resourceGroupName'> /// Required. The name of the resource group that contains the Batch /// account. /// </param> /// <param name='accountName'> /// Required. The name of the account. /// </param> /// <param name='parameters'> /// Required. Additional parameters for account update /// </param> /// <returns> /// Values returned by the Update operation. /// </returns> public static Task<BatchAccountUpdateResponse> UpdateAsync(this IAccountOperations operations, string resourceGroupName, string accountName, BatchAccountUpdateParameters parameters) { return operations.UpdateAsync(resourceGroupName, accountName, parameters, CancellationToken.None); }
/// <summary> /// The Update operation updates the properties of an existing Batch /// account in the specified resource group. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.Batch.IAccountOperations. /// </param> /// <param name='resourceGroupName'> /// Required. The name of the resource group that contains the Batch /// account. /// </param> /// <param name='accountName'> /// Required. The name of the account. /// </param> /// <param name='parameters'> /// Required. Additional parameters for account update /// </param> /// <returns> /// Values returned by the Update operation. /// </returns> public static BatchAccountUpdateResponse Update(this IAccountOperations operations, string resourceGroupName, string accountName, BatchAccountUpdateParameters parameters) { return Task.Factory.StartNew((object s) => { return ((IAccountOperations)s).UpdateAsync(resourceGroupName, accountName, parameters); } , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); }