public final class TriggerClient extends Object
Modifier and Type | Method and Description |
---|---|
TriggerResource |
createOrUpdateTrigger(String triggerName,
TriggerResource trigger)
Creates or updates a trigger.
|
TriggerResource |
createOrUpdateTrigger(String triggerName,
TriggerResource trigger,
String ifMatch)
Creates or updates a trigger.
|
com.azure.core.http.rest.Response<TriggerResource> |
createOrUpdateTriggerWithResponse(String triggerName,
TriggerResource trigger,
String ifMatch,
com.azure.core.util.Context context)
Creates or updates a trigger.
|
void |
deleteTrigger(String triggerName)
Deletes a trigger.
|
com.azure.core.http.rest.Response<Void> |
deleteTriggerWithResponse(String triggerName,
com.azure.core.util.Context context)
Deletes a trigger.
|
TriggerSubscriptionOperationStatus |
getEventSubscriptionStatus(String triggerName)
Get a trigger's event subscription status.
|
com.azure.core.http.rest.Response<TriggerSubscriptionOperationStatus> |
getEventSubscriptionStatusWithResponse(String triggerName,
com.azure.core.util.Context context)
Get a trigger's event subscription status.
|
TriggerResource |
getTrigger(String triggerName)
Gets a trigger.
|
TriggerResource |
getTrigger(String triggerName,
String ifNoneMatch)
Gets a trigger.
|
com.azure.core.http.rest.PagedIterable<TriggerResource> |
getTriggersByWorkspace()
Lists triggers.
|
com.azure.core.http.rest.PagedIterable<TriggerResource> |
getTriggersByWorkspace(com.azure.core.util.Context context)
Lists triggers.
|
com.azure.core.http.rest.Response<TriggerResource> |
getTriggerWithResponse(String triggerName,
String ifNoneMatch,
com.azure.core.util.Context context)
Gets a trigger.
|
void |
startTrigger(String triggerName)
Starts a trigger.
|
com.azure.core.http.rest.Response<Void> |
startTriggerWithResponse(String triggerName,
com.azure.core.util.Context context)
Starts a trigger.
|
void |
stopTrigger(String triggerName)
Stops a trigger.
|
com.azure.core.http.rest.Response<Void> |
stopTriggerWithResponse(String triggerName,
com.azure.core.util.Context context)
Stops a trigger.
|
TriggerSubscriptionOperationStatus |
subscribeTriggerToEvents(String triggerName)
Subscribe event trigger to events.
|
com.azure.core.http.rest.Response<TriggerSubscriptionOperationStatus> |
subscribeTriggerToEventsWithResponse(String triggerName,
com.azure.core.util.Context context)
Subscribe event trigger to events.
|
TriggerSubscriptionOperationStatus |
unsubscribeTriggerFromEvents(String triggerName)
Unsubscribe event trigger from events.
|
com.azure.core.http.rest.Response<TriggerSubscriptionOperationStatus> |
unsubscribeTriggerFromEventsWithResponse(String triggerName,
com.azure.core.util.Context context)
Unsubscribe event trigger from events.
|
public com.azure.core.http.rest.PagedIterable<TriggerResource> getTriggersByWorkspace()
CloudErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.public com.azure.core.http.rest.PagedIterable<TriggerResource> getTriggersByWorkspace(com.azure.core.util.Context context)
context
- The context to associate with this operation.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.public TriggerResource createOrUpdateTrigger(String triggerName, TriggerResource trigger, String ifMatch)
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.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.public TriggerResource createOrUpdateTrigger(String triggerName, TriggerResource trigger)
triggerName
- The trigger name.trigger
- Trigger resource definition.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.public com.azure.core.http.rest.Response<TriggerResource> createOrUpdateTriggerWithResponse(String triggerName, TriggerResource trigger, String ifMatch, com.azure.core.util.Context context)
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.context
- The context to associate with this operation.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.public TriggerResource getTrigger(String triggerName, String ifNoneMatch)
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.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.public TriggerResource getTrigger(String triggerName)
triggerName
- The trigger name.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.public com.azure.core.http.rest.Response<TriggerResource> getTriggerWithResponse(String triggerName, String ifNoneMatch, com.azure.core.util.Context context)
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.context
- The context to associate with this operation.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.public void deleteTrigger(String triggerName)
triggerName
- The trigger name.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.public com.azure.core.http.rest.Response<Void> deleteTriggerWithResponse(String triggerName, com.azure.core.util.Context context)
triggerName
- The trigger name.context
- The context to associate with this operation.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.public TriggerSubscriptionOperationStatus subscribeTriggerToEvents(String triggerName)
triggerName
- The trigger name.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.public com.azure.core.http.rest.Response<TriggerSubscriptionOperationStatus> subscribeTriggerToEventsWithResponse(String triggerName, com.azure.core.util.Context context)
triggerName
- The trigger name.context
- The context to associate with this operation.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.public TriggerSubscriptionOperationStatus getEventSubscriptionStatus(String triggerName)
triggerName
- The trigger name.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.public com.azure.core.http.rest.Response<TriggerSubscriptionOperationStatus> getEventSubscriptionStatusWithResponse(String triggerName, com.azure.core.util.Context context)
triggerName
- The trigger name.context
- The context to associate with this operation.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.public TriggerSubscriptionOperationStatus unsubscribeTriggerFromEvents(String triggerName)
triggerName
- The trigger name.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.public com.azure.core.http.rest.Response<TriggerSubscriptionOperationStatus> unsubscribeTriggerFromEventsWithResponse(String triggerName, com.azure.core.util.Context context)
triggerName
- The trigger name.context
- The context to associate with this operation.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.public void startTrigger(String triggerName)
triggerName
- The trigger name.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.public com.azure.core.http.rest.Response<Void> startTriggerWithResponse(String triggerName, com.azure.core.util.Context context)
triggerName
- The trigger name.context
- The context to associate with this operation.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.public void stopTrigger(String triggerName)
triggerName
- The trigger name.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.public com.azure.core.http.rest.Response<Void> stopTriggerWithResponse(String triggerName, com.azure.core.util.Context context)
triggerName
- The trigger name.context
- The context to associate with this operation.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.Copyright © 2021 Microsoft Corporation. All rights reserved.