Class TriggerAsyncClient


  • public final class TriggerAsyncClient
    extends Object
    Initializes a new instance of the asynchronous ArtifactsClient type.
    • Method Detail

      • getTriggersByWorkspace

        public com.azure.core.http.rest.PagedFlux<TriggerResource> getTriggersByWorkspace()
        Lists triggers.
        Returns:
        a list of trigger resources as paginated response with PagedFlux.
        Throws:
        CloudErrorException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • createOrUpdateTriggerWithResponse

        public Mono<com.azure.core.http.rest.Response<TriggerResource>> createOrUpdateTriggerWithResponse​(String triggerName,
                                                                                                          TriggerResource trigger,
                                                                                                          String ifMatch)
        Creates or updates a trigger.
        Parameters:
        triggerName - The trigger name.
        trigger - Trigger resource definition.
        ifMatch - ETag of the trigger entity. Should only be specified for update, for which it should match existing entity or can be * for unconditional update.
        Returns:
        trigger resource type along with Response on successful completion of Mono.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        CloudErrorException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • createOrUpdateTrigger

        public Mono<TriggerResource> createOrUpdateTrigger​(String triggerName,
                                                           TriggerResource trigger,
                                                           String ifMatch)
        Creates or updates a trigger.
        Parameters:
        triggerName - The trigger name.
        trigger - Trigger resource definition.
        ifMatch - ETag of the trigger entity. Should only be specified for update, for which it should match existing entity or can be * for unconditional update.
        Returns:
        trigger resource type on successful completion of Mono.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        CloudErrorException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • createOrUpdateTrigger

        public Mono<TriggerResource> createOrUpdateTrigger​(String triggerName,
                                                           TriggerResource trigger)
        Creates or updates a trigger.
        Parameters:
        triggerName - The trigger name.
        trigger - Trigger resource definition.
        Returns:
        trigger resource type on successful completion of Mono.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        CloudErrorException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • getTriggerWithResponse

        public Mono<com.azure.core.http.rest.Response<TriggerResource>> getTriggerWithResponse​(String triggerName,
                                                                                               String ifNoneMatch)
        Gets a trigger.
        Parameters:
        triggerName - The trigger name.
        ifNoneMatch - ETag of the trigger entity. Should only be specified for get. If the ETag matches the existing entity tag, or if * was provided, then no content will be returned.
        Returns:
        a trigger along with Response on successful completion of Mono.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        CloudErrorException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • getTrigger

        public Mono<TriggerResource> getTrigger​(String triggerName,
                                                String ifNoneMatch)
        Gets a trigger.
        Parameters:
        triggerName - The trigger name.
        ifNoneMatch - ETag of the trigger entity. Should only be specified for get. If the ETag matches the existing entity tag, or if * was provided, then no content will be returned.
        Returns:
        a trigger on successful completion of Mono.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        CloudErrorException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • deleteTriggerWithResponse

        public Mono<com.azure.core.http.rest.Response<Void>> deleteTriggerWithResponse​(String triggerName)
        Deletes a trigger.
        Parameters:
        triggerName - The trigger name.
        Returns:
        the Response on successful completion of Mono.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        CloudErrorException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • deleteTrigger

        public Mono<Void> deleteTrigger​(String triggerName)
        Deletes a trigger.
        Parameters:
        triggerName - The trigger name.
        Returns:
        A Mono that completes when a successful response is received.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        CloudErrorException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • subscribeTriggerToEventsWithResponse

        public Mono<com.azure.core.http.rest.Response<TriggerSubscriptionOperationStatus>> subscribeTriggerToEventsWithResponse​(String triggerName)
        Subscribe event trigger to events.
        Parameters:
        triggerName - The trigger name.
        Returns:
        defines the response of a trigger subscription operation along with Response on successful completion of Mono.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        CloudErrorException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • subscribeTriggerToEvents

        public Mono<TriggerSubscriptionOperationStatus> subscribeTriggerToEvents​(String triggerName)
        Subscribe event trigger to events.
        Parameters:
        triggerName - The trigger name.
        Returns:
        defines the response of a trigger subscription operation on successful completion of Mono.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        CloudErrorException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • getEventSubscriptionStatusWithResponse

        public Mono<com.azure.core.http.rest.Response<TriggerSubscriptionOperationStatus>> getEventSubscriptionStatusWithResponse​(String triggerName)
        Get a trigger's event subscription status.
        Parameters:
        triggerName - The trigger name.
        Returns:
        a trigger's event subscription status along with Response on successful completion of Mono.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        CloudErrorException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • unsubscribeTriggerFromEventsWithResponse

        public Mono<com.azure.core.http.rest.Response<TriggerSubscriptionOperationStatus>> unsubscribeTriggerFromEventsWithResponse​(String triggerName)
        Unsubscribe event trigger from events.
        Parameters:
        triggerName - The trigger name.
        Returns:
        defines the response of a trigger subscription operation along with Response on successful completion of Mono.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        CloudErrorException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • unsubscribeTriggerFromEvents

        public Mono<TriggerSubscriptionOperationStatus> unsubscribeTriggerFromEvents​(String triggerName)
        Unsubscribe event trigger from events.
        Parameters:
        triggerName - The trigger name.
        Returns:
        defines the response of a trigger subscription operation on successful completion of Mono.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        CloudErrorException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • startTriggerWithResponse

        public Mono<com.azure.core.http.rest.Response<Void>> startTriggerWithResponse​(String triggerName)
        Starts a trigger.
        Parameters:
        triggerName - The trigger name.
        Returns:
        the Response on successful completion of Mono.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        CloudErrorException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • startTrigger

        public Mono<Void> startTrigger​(String triggerName)
        Starts a trigger.
        Parameters:
        triggerName - The trigger name.
        Returns:
        A Mono that completes when a successful response is received.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        CloudErrorException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • stopTriggerWithResponse

        public Mono<com.azure.core.http.rest.Response<Void>> stopTriggerWithResponse​(String triggerName)
        Stops a trigger.
        Parameters:
        triggerName - The trigger name.
        Returns:
        the Response on successful completion of Mono.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        CloudErrorException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • stopTrigger

        public Mono<Void> stopTrigger​(String triggerName)
        Stops a trigger.
        Parameters:
        triggerName - The trigger name.
        Returns:
        A Mono that completes when a successful response is received.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        CloudErrorException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.