Class 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 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:
        getDetails in interface Operations
        Parameters:
        operationId - Operation id.
        Returns:
        the Operation object if successful.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
        ErrorResponseException - thrown if the request is rejected by server
        RuntimeException - 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 ServiceFuture object
        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:
        getDetailsAsync in interface Operations
        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