public virtual Response StopResize(string poolId, PoolStopResizeOptions poolStopResizeOptions, CancellationToken cancellationToken = default) { return(RestClient.StopResize(poolId, poolStopResizeOptions, cancellationToken).GetRawResponse()); }
public virtual async Task <Response> StopResizeAsync(string poolId, PoolStopResizeOptions poolStopResizeOptions, CancellationToken cancellationToken = default) { return((await RestClient.StopResizeAsync(poolId, poolStopResizeOptions, cancellationToken).ConfigureAwait(false)).GetRawResponse()); }
/// <summary> /// Stops an ongoing resize operation on the Pool. /// </summary> /// <remarks> /// This does not restore the Pool to its previous state before the resize /// operation: it only stops any further changes being made, and the Pool /// maintains its current state. After stopping, the Pool stabilizes at the /// number of Compute Nodes it was at when the stop operation was done. During /// the stop operation, the Pool allocation state changes first to stopping and /// then to steady. A resize operation need not be an explicit resize Pool /// request; this API can also be used to halt the initial sizing of the Pool /// when it is created. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='poolId'> /// The ID of the Pool whose resizing you want to stop. /// </param> /// <param name='poolStopResizeOptions'> /// Additional parameters for the operation /// </param> public static PoolStopResizeHeaders StopResize(this IPoolOperations operations, string poolId, PoolStopResizeOptions poolStopResizeOptions = default(PoolStopResizeOptions)) { return(operations.StopResizeAsync(poolId, poolStopResizeOptions).GetAwaiter().GetResult()); }
/// <summary> /// Stops an ongoing resize operation on the Pool. /// </summary> /// <remarks> /// This does not restore the Pool to its previous state before the resize /// operation: it only stops any further changes being made, and the Pool /// maintains its current state. After stopping, the Pool stabilizes at the /// number of Compute Nodes it was at when the stop operation was done. During /// the stop operation, the Pool allocation state changes first to stopping and /// then to steady. A resize operation need not be an explicit resize Pool /// request; this API can also be used to halt the initial sizing of the Pool /// when it is created. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='poolId'> /// The ID of the Pool whose resizing you want to stop. /// </param> /// <param name='poolStopResizeOptions'> /// Additional parameters for the operation /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <PoolStopResizeHeaders> StopResizeAsync(this IPoolOperations operations, string poolId, PoolStopResizeOptions poolStopResizeOptions = default(PoolStopResizeOptions), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.StopResizeWithHttpMessagesAsync(poolId, poolStopResizeOptions, null, cancellationToken).ConfigureAwait(false)) { return(_result.Headers); } }
/// <summary> /// Stops an ongoing resize operation on the pool. /// </summary> /// <remarks> /// This does not restore the pool to its previous state before the resize /// operation: it only stops any further changes being made, and the pool /// maintains its current state. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='poolId'> /// The id of the pool whose resizing you want to stop. /// </param> /// <param name='poolStopResizeOptions'> /// Additional parameters for the operation /// </param> public static PoolStopResizeHeaders StopResize(this IPoolOperations operations, string poolId, PoolStopResizeOptions poolStopResizeOptions = default(PoolStopResizeOptions)) { return(System.Threading.Tasks.Task.Factory.StartNew(s => ((IPoolOperations)s).StopResizeAsync(poolId, poolStopResizeOptions), operations, System.Threading.CancellationToken.None, System.Threading.Tasks.TaskCreationOptions.None, System.Threading.Tasks.TaskScheduler.Default).Unwrap().GetAwaiter().GetResult()); }