Class EndpointKeysImpl

  • All Implemented Interfaces:
    EndpointKeys

    public class EndpointKeysImpl
    extends Object
    implements EndpointKeys
    An instance of this class provides access to all the operations defined in EndpointKeys.
    • Constructor Detail

      • EndpointKeysImpl

        public EndpointKeysImpl​(retrofit2.Retrofit retrofit,
                                QnAMakerClientImpl client)
        Initializes an instance of EndpointKeysImpl.
        Parameters:
        retrofit - the Retrofit instance built from a Retrofit Builder.
        client - the instance of the service client containing this operation class.
    • Method Detail

      • getKeysAsync

        public com.microsoft.rest.ServiceFuture<EndpointKeysDTO> getKeysAsync​(com.microsoft.rest.ServiceCallback<EndpointKeysDTO> serviceCallback)
        Gets endpoint keys for an endpoint.
        Parameters:
        serviceCallback - the async ServiceCallback to handle successful and failed responses.
        Returns:
        the ServiceFuture object
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • getKeysWithServiceResponseAsync

        public rx.Observable<com.microsoft.rest.ServiceResponse<EndpointKeysDTO>> getKeysWithServiceResponseAsync()
        Gets endpoint keys for an endpoint.
        Returns:
        the observable to the EndpointKeysDTO object
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • refreshKeysAsync

        public com.microsoft.rest.ServiceFuture<EndpointKeysDTO> refreshKeysAsync​(String keyType,
                                                                                  com.microsoft.rest.ServiceCallback<EndpointKeysDTO> serviceCallback)
        Re-generates an endpoint key.
        Parameters:
        keyType - Type of Key
        serviceCallback - the async ServiceCallback to handle successful and failed responses.
        Returns:
        the ServiceFuture object
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • refreshKeysWithServiceResponseAsync

        public rx.Observable<com.microsoft.rest.ServiceResponse<EndpointKeysDTO>> refreshKeysWithServiceResponseAsync​(String keyType)
        Re-generates an endpoint key.
        Parameters:
        keyType - Type of Key
        Returns:
        the observable to the EndpointKeysDTO object
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation