public virtual Response UpdateProperties(string poolId, PoolUpdatePropertiesParameter poolUpdatePropertiesParameter, PoolUpdatePropertiesOptions poolUpdatePropertiesOptions, CancellationToken cancellationToken = default) { return(RestClient.UpdateProperties(poolId, poolUpdatePropertiesParameter, poolUpdatePropertiesOptions, cancellationToken).GetRawResponse()); }
public virtual async Task <Response> UpdatePropertiesAsync(string poolId, PoolUpdatePropertiesParameter poolUpdatePropertiesParameter, PoolUpdatePropertiesOptions poolUpdatePropertiesOptions, CancellationToken cancellationToken = default) { return((await RestClient.UpdatePropertiesAsync(poolId, poolUpdatePropertiesParameter, poolUpdatePropertiesOptions, cancellationToken).ConfigureAwait(false)).GetRawResponse()); }
/// <summary> /// Updates the properties of the specified Pool. /// </summary> /// <remarks> /// This fully replaces all the updatable properties of the Pool. For example, /// if the Pool has a StartTask associated with it and if StartTask is not /// specified with this request, then the Batch service will remove the /// existing StartTask. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='poolId'> /// The ID of the Pool to update. /// </param> /// <param name='poolUpdatePropertiesParameter'> /// The parameters for the request. /// </param> /// <param name='poolUpdatePropertiesOptions'> /// Additional parameters for the operation /// </param> public static PoolUpdatePropertiesHeaders UpdateProperties(this IPoolOperations operations, string poolId, PoolUpdatePropertiesParameter poolUpdatePropertiesParameter, PoolUpdatePropertiesOptions poolUpdatePropertiesOptions = default(PoolUpdatePropertiesOptions)) { return(operations.UpdatePropertiesAsync(poolId, poolUpdatePropertiesParameter, poolUpdatePropertiesOptions).GetAwaiter().GetResult()); }
/// <summary> /// Updates the properties of the specified Pool. /// </summary> /// <remarks> /// This fully replaces all the updatable properties of the Pool. For example, /// if the Pool has a StartTask associated with it and if StartTask is not /// specified with this request, then the Batch service will remove the /// existing StartTask. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='poolId'> /// The ID of the Pool to update. /// </param> /// <param name='poolUpdatePropertiesParameter'> /// The parameters for the request. /// </param> /// <param name='poolUpdatePropertiesOptions'> /// Additional parameters for the operation /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <PoolUpdatePropertiesHeaders> UpdatePropertiesAsync(this IPoolOperations operations, string poolId, PoolUpdatePropertiesParameter poolUpdatePropertiesParameter, PoolUpdatePropertiesOptions poolUpdatePropertiesOptions = default(PoolUpdatePropertiesOptions), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.UpdatePropertiesWithHttpMessagesAsync(poolId, poolUpdatePropertiesParameter, poolUpdatePropertiesOptions, null, cancellationToken).ConfigureAwait(false)) { return(_result.Headers); } }
/// <summary> /// Updates the properties of a pool. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='poolId'> /// The id of the pool to update. /// </param> /// <param name='poolUpdatePropertiesParameter'> /// The parameters for the request. /// </param> /// <param name='poolUpdatePropertiesOptions'> /// Additional parameters for the operation /// </param> public static PoolUpdatePropertiesHeaders UpdateProperties(this IPoolOperations operations, string poolId, PoolUpdatePropertiesParameter poolUpdatePropertiesParameter, PoolUpdatePropertiesOptions poolUpdatePropertiesOptions = default(PoolUpdatePropertiesOptions)) { return(System.Threading.Tasks.Task.Factory.StartNew(s => ((IPoolOperations)s).UpdatePropertiesAsync(poolId, poolUpdatePropertiesParameter, poolUpdatePropertiesOptions), operations, System.Threading.CancellationToken.None, System.Threading.Tasks.TaskCreationOptions.None, System.Threading.Tasks.TaskScheduler.Default).Unwrap().GetAwaiter().GetResult()); }