Compartilhar via


ArmComputeScheduleModelFactory.ResourceOperationDetails Method

Definition

Initializes a new instance of ResourceOperationDetails.

public static Azure.ResourceManager.ComputeSchedule.Models.ResourceOperationDetails ResourceOperationDetails (string operationId = default, Azure.Core.ResourceIdentifier resourceId = default, Azure.ResourceManager.ComputeSchedule.Models.ResourceOperationType opType = default, string subscriptionId = default, DateTimeOffset deadline = default, Azure.ResourceManager.ComputeSchedule.Models.ScheduledActionDeadlineType deadlineType = default, Azure.ResourceManager.ComputeSchedule.Models.ScheduledActionOperationState state = default, string timeZone = default, Azure.ResourceManager.ComputeSchedule.Models.ResourceOperationError resourceOperationError = default, DateTimeOffset? completedOn = default, Azure.ResourceManager.ComputeSchedule.Models.UserRequestRetryPolicy retryPolicy = default);
static member ResourceOperationDetails : string * Azure.Core.ResourceIdentifier * Azure.ResourceManager.ComputeSchedule.Models.ResourceOperationType * string * DateTimeOffset * Azure.ResourceManager.ComputeSchedule.Models.ScheduledActionDeadlineType * Azure.ResourceManager.ComputeSchedule.Models.ScheduledActionOperationState * string * Azure.ResourceManager.ComputeSchedule.Models.ResourceOperationError * Nullable<DateTimeOffset> * Azure.ResourceManager.ComputeSchedule.Models.UserRequestRetryPolicy -> Azure.ResourceManager.ComputeSchedule.Models.ResourceOperationDetails
Public Shared Function ResourceOperationDetails (Optional operationId As String = Nothing, Optional resourceId As ResourceIdentifier = Nothing, Optional opType As ResourceOperationType = Nothing, Optional subscriptionId As String = Nothing, Optional deadline As DateTimeOffset = Nothing, Optional deadlineType As ScheduledActionDeadlineType = Nothing, Optional state As ScheduledActionOperationState = Nothing, Optional timeZone As String = Nothing, Optional resourceOperationError As ResourceOperationError = Nothing, Optional completedOn As Nullable(Of DateTimeOffset) = Nothing, Optional retryPolicy As UserRequestRetryPolicy = Nothing) As ResourceOperationDetails

Parameters

operationId
String

Operation identifier for the unique operation.

resourceId
ResourceIdentifier

Unique identifier for the resource involved in the operation, eg ArmId.

opType
ResourceOperationType

Type of operation performed on the resources.

subscriptionId
String

Subscription id attached to the request.

deadline
DateTimeOffset

Deadline for the operation.

deadlineType
ScheduledActionDeadlineType

Type of deadline of the operation.

state
ScheduledActionOperationState

Current state of the operation.

timeZone
String

Timezone for the operation.

resourceOperationError
ResourceOperationError

Operation level errors if they exist.

completedOn
Nullable<DateTimeOffset>

Time the operation was complete if errors are null.

retryPolicy
UserRequestRetryPolicy

Retry policy the user can pass.

Returns

A new ResourceOperationDetails instance for mocking.

Applies to