Class TriggerAsyncClient
java.lang.Object
com.azure.analytics.synapse.artifacts.TriggerAsyncClient
Initializes a new instance of the asynchronous ArtifactsClient type.
-
Method Summary
Modifier and TypeMethodDescriptioncreateOrUpdateTrigger
(String triggerName, TriggerResource trigger) Creates or updates a trigger.createOrUpdateTrigger
(String triggerName, TriggerResource trigger, String ifMatch) Creates or updates a trigger.Mono<com.azure.core.http.rest.Response<TriggerResource>>
createOrUpdateTriggerWithResponse
(String triggerName, TriggerResource trigger, String ifMatch) Creates or updates a trigger.deleteTrigger
(String triggerName) Deletes a trigger.deleteTriggerWithResponse
(String triggerName) Deletes a trigger.getEventSubscriptionStatus
(String triggerName) Get a trigger's event subscription status.Mono<com.azure.core.http.rest.Response<TriggerSubscriptionOperationStatus>>
getEventSubscriptionStatusWithResponse
(String triggerName) Get a trigger's event subscription status.getTrigger
(String triggerName) Gets a trigger.getTrigger
(String triggerName, String ifNoneMatch) Gets a trigger.com.azure.core.http.rest.PagedFlux<TriggerResource>
Lists triggers.Mono<com.azure.core.http.rest.Response<TriggerResource>>
getTriggerWithResponse
(String triggerName, String ifNoneMatch) Gets a trigger.startTrigger
(String triggerName) Starts a trigger.startTriggerWithResponse
(String triggerName) Starts a trigger.stopTrigger
(String triggerName) Stops a trigger.stopTriggerWithResponse
(String triggerName) Stops a trigger.subscribeTriggerToEvents
(String triggerName) Subscribe event trigger to events.Mono<com.azure.core.http.rest.Response<TriggerSubscriptionOperationStatus>>
subscribeTriggerToEventsWithResponse
(String triggerName) Subscribe event trigger to events.unsubscribeTriggerFromEvents
(String triggerName) Unsubscribe event trigger from events.Mono<com.azure.core.http.rest.Response<TriggerSubscriptionOperationStatus>>
unsubscribeTriggerFromEventsWithResponse
(String triggerName) Unsubscribe event trigger from events.
-
Method Details
-
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 ofMono
. - 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
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 ofMono
. - 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
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.
-
getTrigger
Gets a trigger.- Parameters:
triggerName
- The trigger name.- 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
Deletes a trigger.- Parameters:
triggerName
- The trigger name.- Returns:
- the
Response
on successful completion ofMono
. - 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
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 ofMono
. - 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
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 ofMono
. - 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.
-
getEventSubscriptionStatus
Get a trigger's event subscription status.- Parameters:
triggerName
- The trigger name.- Returns:
- a trigger's event subscription status 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 ofMono
. - 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
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
Starts a trigger.- Parameters:
triggerName
- The trigger name.- Returns:
- the
Response
on successful completion ofMono
. - 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
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
Stops a trigger.- Parameters:
triggerName
- The trigger name.- Returns:
- the
Response
on successful completion ofMono
. - 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
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.
-