Share via


DocumentIntelligenceModelFactory.OperationDetails Method

Definition

Initializes a new instance of OperationDetails.

public static Azure.AI.DocumentIntelligence.OperationDetails OperationDetails (string operationId = default, Azure.AI.DocumentIntelligence.OperationStatus status = default, int? percentCompleted = default, DateTimeOffset createdOn = default, DateTimeOffset lastUpdatedOn = default, string kind = default, Uri resourceLocation = default, string apiVersion = default, System.Collections.Generic.IReadOnlyDictionary<string,string> tags = default, Azure.AI.DocumentIntelligence.DocumentIntelligenceError error = default);
static member OperationDetails : string * Azure.AI.DocumentIntelligence.OperationStatus * Nullable<int> * DateTimeOffset * DateTimeOffset * string * Uri * string * System.Collections.Generic.IReadOnlyDictionary<string, string> * Azure.AI.DocumentIntelligence.DocumentIntelligenceError -> Azure.AI.DocumentIntelligence.OperationDetails
Public Shared Function OperationDetails (Optional operationId As String = Nothing, Optional status As OperationStatus = Nothing, Optional percentCompleted As Nullable(Of Integer) = Nothing, Optional createdOn As DateTimeOffset = Nothing, Optional lastUpdatedOn As DateTimeOffset = Nothing, Optional kind As String = Nothing, Optional resourceLocation As Uri = Nothing, Optional apiVersion As String = Nothing, Optional tags As IReadOnlyDictionary(Of String, String) = Nothing, Optional error As DocumentIntelligenceError = Nothing) As OperationDetails

Parameters

operationId
String

Operation ID.

status
OperationStatus

Operation status. notStarted, running, completed, or failed.

percentCompleted
Nullable<Int32>

Operation progress (0-100).

createdOn
DateTimeOffset

Date and time (UTC) when the operation was created.

lastUpdatedOn
DateTimeOffset

Date and time (UTC) when the status was last updated.

kind
String

Type of operation.

resourceLocation
Uri

URL of the resource targeted by this operation.

apiVersion
String

API version used to create this operation.

tags
IReadOnlyDictionary<String,String>

List of key-value tag attributes associated with the document model.

error
DocumentIntelligenceError

Encountered error.

Returns

A new OperationDetails instance for mocking.

Applies to