Freigeben über


ArmBatchModelFactory.BatchResizeOperationStatus Method

Definition

Initializes a new instance of BatchResizeOperationStatus.

public static Azure.ResourceManager.Batch.Models.BatchResizeOperationStatus BatchResizeOperationStatus (int? targetDedicatedNodes = default, int? targetLowPriorityNodes = default, TimeSpan? resizeTimeout = default, Azure.ResourceManager.Batch.Models.BatchNodeDeallocationOption? nodeDeallocationOption = default, DateTimeOffset? startOn = default, System.Collections.Generic.IEnumerable<Azure.ResponseError> errors = default);
static member BatchResizeOperationStatus : Nullable<int> * Nullable<int> * Nullable<TimeSpan> * Nullable<Azure.ResourceManager.Batch.Models.BatchNodeDeallocationOption> * Nullable<DateTimeOffset> * seq<Azure.ResponseError> -> Azure.ResourceManager.Batch.Models.BatchResizeOperationStatus
Public Shared Function BatchResizeOperationStatus (Optional targetDedicatedNodes As Nullable(Of Integer) = Nothing, Optional targetLowPriorityNodes As Nullable(Of Integer) = Nothing, Optional resizeTimeout As Nullable(Of TimeSpan) = Nothing, Optional nodeDeallocationOption As Nullable(Of BatchNodeDeallocationOption) = Nothing, Optional startOn As Nullable(Of DateTimeOffset) = Nothing, Optional errors As IEnumerable(Of ResponseError) = Nothing) As BatchResizeOperationStatus

Parameters

targetDedicatedNodes
Nullable<Int32>

The desired number of dedicated compute nodes in the pool.

targetLowPriorityNodes
Nullable<Int32>

The desired number of Spot/low-priority compute nodes in the pool.

resizeTimeout
Nullable<TimeSpan>

The default value is 15 minutes. The minimum value is 5 minutes. If you specify a value less than 5 minutes, the Batch service returns an error; if you are calling the REST API directly, the HTTP status code is 400 (Bad Request).

nodeDeallocationOption
Nullable<BatchNodeDeallocationOption>

The default value is requeue.

startOn
Nullable<DateTimeOffset>

The time when this resize operation was started.

errors
IEnumerable<ResponseError>

This property is set only if an error occurred during the last pool resize, and only when the pool allocationState is Steady.

Returns

A new BatchResizeOperationStatus instance for mocking.

Applies to