Class OperationsImpl
- java.lang.Object
-
- com.microsoft.azure.cognitiveservices.knowledge.qnamaker.implementation.OperationsImpl
-
- All Implemented Interfaces:
Operations
public class OperationsImpl extends Object implements Operations
An instance of this class provides access to all the operations defined in Operations.
-
-
Constructor Summary
Constructors Constructor Description OperationsImpl(retrofit2.Retrofit retrofit, QnAMakerClientImpl client)Initializes an instance of OperationsImpl.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OperationgetDetails(String operationId)Gets details of a specific long running operation.rx.Observable<Operation>getDetailsAsync(String operationId)Gets details of a specific long running operation.com.microsoft.rest.ServiceFuture<Operation>getDetailsAsync(String operationId, com.microsoft.rest.ServiceCallback<Operation> serviceCallback)Gets details of a specific long running operation.rx.Observable<com.microsoft.rest.ServiceResponseWithHeaders<Operation,OperationsGetDetailsHeaders>>getDetailsWithServiceResponseAsync(String operationId)Gets details of a specific long running operation.
-
-
-
Constructor Detail
-
OperationsImpl
public OperationsImpl(retrofit2.Retrofit retrofit, QnAMakerClientImpl client)Initializes an instance of OperationsImpl.- Parameters:
retrofit- the Retrofit instance built from a Retrofit Builder.client- the instance of the service client containing this operation class.
-
-
Method Detail
-
getDetails
public Operation getDetails(String operationId)
Gets details of a specific long running operation.- Specified by:
getDetailsin interfaceOperations- Parameters:
operationId- Operation id.- Returns:
- the Operation object if successful.
- Throws:
IllegalArgumentException- thrown if parameters fail the validationErrorResponseException- thrown if the request is rejected by serverRuntimeException- all other wrapped checked exceptions if the request fails to be sent
-
getDetailsAsync
public com.microsoft.rest.ServiceFuture<Operation> getDetailsAsync(String operationId, com.microsoft.rest.ServiceCallback<Operation> serviceCallback)
Gets details of a specific long running operation.- Parameters:
operationId- Operation id.serviceCallback- the async ServiceCallback to handle successful and failed responses.- Returns:
- the
ServiceFutureobject - Throws:
IllegalArgumentException- thrown if parameters fail the validation
-
getDetailsAsync
public rx.Observable<Operation> getDetailsAsync(String operationId)
Gets details of a specific long running operation.- Specified by:
getDetailsAsyncin interfaceOperations- Parameters:
operationId- Operation id.- Returns:
- the observable to the Operation object
- Throws:
IllegalArgumentException- thrown if parameters fail the validation
-
getDetailsWithServiceResponseAsync
public rx.Observable<com.microsoft.rest.ServiceResponseWithHeaders<Operation,OperationsGetDetailsHeaders>> getDetailsWithServiceResponseAsync(String operationId)
Gets details of a specific long running operation.- Parameters:
operationId- Operation id.- Returns:
- the observable to the Operation object
- Throws:
IllegalArgumentException- thrown if parameters fail the validation
-
-