DiscoveryModelFactory.KnowledgeBaseOperationResponse Method

Definition

Response indicating the KnowledgeBase operation. Please note this is the abstract base class. The derived classes available for instantiation are: KnowledgeBaseIndexingOperationResponse and KnowledgeBaseSearchOperationResponse.

public static Azure.AI.Discovery.KnowledgeBaseOperationResponse KnowledgeBaseOperationResponse(string id = default, Azure.AI.Discovery.OperationState status = default, Azure.ResponseError error = default, string operationType = default);
static member KnowledgeBaseOperationResponse : string * Azure.AI.Discovery.OperationState * Azure.ResponseError * string -> Azure.AI.Discovery.KnowledgeBaseOperationResponse
Public Shared Function KnowledgeBaseOperationResponse (Optional id As String = Nothing, Optional status As OperationState = Nothing, Optional error As ResponseError = Nothing, Optional operationType As String = Nothing) As KnowledgeBaseOperationResponse

Parameters

id
String

The unique ID of the operation.

status
OperationState

The status of the operation.

error
ResponseError

Error object that describes the error when status is 'Failed'.

operationType
String

The type of operation.

Returns

A new KnowledgeBaseOperationResponse instance for mocking.

Applies to