DiscoveryModelFactory.KnowledgeBaseOperationResponse Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.