Interface TriggersClient
public interface TriggersClient
An instance of this class provides access to all the operations defined in TriggersClient.
-
Method Summary
Modifier and TypeMethodDescriptionbeginStart
(String resourceGroupName, String factoryName, String triggerName) Starts a trigger.beginStart
(String resourceGroupName, String factoryName, String triggerName, com.azure.core.util.Context context) Starts a trigger.Stops a trigger.beginStop
(String resourceGroupName, String factoryName, String triggerName, com.azure.core.util.Context context) Stops a trigger.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<TriggerSubscriptionOperationStatusInner>,
TriggerSubscriptionOperationStatusInner> beginSubscribeToEvents
(String resourceGroupName, String factoryName, String triggerName) Subscribe event trigger to events.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<TriggerSubscriptionOperationStatusInner>,
TriggerSubscriptionOperationStatusInner> beginSubscribeToEvents
(String resourceGroupName, String factoryName, String triggerName, com.azure.core.util.Context context) Subscribe event trigger to events.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<TriggerSubscriptionOperationStatusInner>,
TriggerSubscriptionOperationStatusInner> beginUnsubscribeFromEvents
(String resourceGroupName, String factoryName, String triggerName) Unsubscribe event trigger from events.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<TriggerSubscriptionOperationStatusInner>,
TriggerSubscriptionOperationStatusInner> beginUnsubscribeFromEvents
(String resourceGroupName, String factoryName, String triggerName, com.azure.core.util.Context context) Unsubscribe event trigger from events.createOrUpdate
(String resourceGroupName, String factoryName, String triggerName, TriggerResourceInner trigger) Creates or updates a trigger.com.azure.core.http.rest.Response<TriggerResourceInner>
createOrUpdateWithResponse
(String resourceGroupName, String factoryName, String triggerName, TriggerResourceInner trigger, String ifMatch, com.azure.core.util.Context context) Creates or updates a trigger.void
Deletes a trigger.com.azure.core.http.rest.Response<Void>
deleteWithResponse
(String resourceGroupName, String factoryName, String triggerName, com.azure.core.util.Context context) Deletes a trigger.Gets a trigger.getEventSubscriptionStatus
(String resourceGroupName, String factoryName, String triggerName) Get a trigger's event subscription status.com.azure.core.http.rest.Response<TriggerSubscriptionOperationStatusInner>
getEventSubscriptionStatusWithResponse
(String resourceGroupName, String factoryName, String triggerName, com.azure.core.util.Context context) Get a trigger's event subscription status.com.azure.core.http.rest.Response<TriggerResourceInner>
getWithResponse
(String resourceGroupName, String factoryName, String triggerName, String ifNoneMatch, com.azure.core.util.Context context) Gets a trigger.com.azure.core.http.rest.PagedIterable<TriggerResourceInner>
listByFactory
(String resourceGroupName, String factoryName) Lists triggers.com.azure.core.http.rest.PagedIterable<TriggerResourceInner>
listByFactory
(String resourceGroupName, String factoryName, com.azure.core.util.Context context) Lists triggers.queryByFactory
(String resourceGroupName, String factoryName, TriggerFilterParameters filterParameters) Query triggers.com.azure.core.http.rest.Response<TriggerQueryResponseInner>
queryByFactoryWithResponse
(String resourceGroupName, String factoryName, TriggerFilterParameters filterParameters, com.azure.core.util.Context context) Query triggers.void
Starts a trigger.void
start
(String resourceGroupName, String factoryName, String triggerName, com.azure.core.util.Context context) Starts a trigger.void
Stops a trigger.void
stop
(String resourceGroupName, String factoryName, String triggerName, com.azure.core.util.Context context) Stops a trigger.subscribeToEvents
(String resourceGroupName, String factoryName, String triggerName) Subscribe event trigger to events.subscribeToEvents
(String resourceGroupName, String factoryName, String triggerName, com.azure.core.util.Context context) Subscribe event trigger to events.unsubscribeFromEvents
(String resourceGroupName, String factoryName, String triggerName) Unsubscribe event trigger from events.unsubscribeFromEvents
(String resourceGroupName, String factoryName, String triggerName, com.azure.core.util.Context context) Unsubscribe event trigger from events.
-
Method Details
-
listByFactory
com.azure.core.http.rest.PagedIterable<TriggerResourceInner> listByFactory(String resourceGroupName, String factoryName) Lists triggers.- Parameters:
resourceGroupName
- The resource group name.factoryName
- The factory name.- Returns:
- a list of trigger resources as paginated response with
PagedIterable
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
listByFactory
com.azure.core.http.rest.PagedIterable<TriggerResourceInner> listByFactory(String resourceGroupName, String factoryName, com.azure.core.util.Context context) Lists triggers.- Parameters:
resourceGroupName
- The resource group name.factoryName
- The factory name.context
- The context to associate with this operation.- Returns:
- a list of trigger resources as paginated response with
PagedIterable
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
queryByFactoryWithResponse
com.azure.core.http.rest.Response<TriggerQueryResponseInner> queryByFactoryWithResponse(String resourceGroupName, String factoryName, TriggerFilterParameters filterParameters, com.azure.core.util.Context context) Query triggers.- Parameters:
resourceGroupName
- The resource group name.factoryName
- The factory name.filterParameters
- Parameters to filter the triggers.context
- The context to associate with this operation.- Returns:
- a query of triggers along with
Response
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
queryByFactory
TriggerQueryResponseInner queryByFactory(String resourceGroupName, String factoryName, TriggerFilterParameters filterParameters) Query triggers.- Parameters:
resourceGroupName
- The resource group name.factoryName
- The factory name.filterParameters
- Parameters to filter the triggers.- Returns:
- a query of triggers.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
createOrUpdateWithResponse
com.azure.core.http.rest.Response<TriggerResourceInner> createOrUpdateWithResponse(String resourceGroupName, String factoryName, String triggerName, TriggerResourceInner trigger, String ifMatch, com.azure.core.util.Context context) Creates or updates a trigger.- Parameters:
resourceGroupName
- The resource group name.factoryName
- The factory name.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.- Returns:
- trigger resource type along with
Response
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
createOrUpdate
TriggerResourceInner createOrUpdate(String resourceGroupName, String factoryName, String triggerName, TriggerResourceInner trigger) Creates or updates a trigger.- Parameters:
resourceGroupName
- The resource group name.factoryName
- The factory name.triggerName
- The trigger name.trigger
- Trigger resource definition.- Returns:
- trigger resource type.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
getWithResponse
com.azure.core.http.rest.Response<TriggerResourceInner> getWithResponse(String resourceGroupName, String factoryName, String triggerName, String ifNoneMatch, com.azure.core.util.Context context) Gets a trigger.- Parameters:
resourceGroupName
- The resource group name.factoryName
- The factory name.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.- Returns:
- a trigger along with
Response
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
get
Gets a trigger.- Parameters:
resourceGroupName
- The resource group name.factoryName
- The factory name.triggerName
- The trigger name.- Returns:
- a trigger.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
deleteWithResponse
com.azure.core.http.rest.Response<Void> deleteWithResponse(String resourceGroupName, String factoryName, String triggerName, com.azure.core.util.Context context) Deletes a trigger.- Parameters:
resourceGroupName
- The resource group name.factoryName
- The factory name.triggerName
- The trigger name.context
- The context to associate with this operation.- Returns:
- the
Response
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
delete
Deletes a trigger.- Parameters:
resourceGroupName
- The resource group name.factoryName
- The factory name.triggerName
- The trigger name.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
beginSubscribeToEvents
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<TriggerSubscriptionOperationStatusInner>,TriggerSubscriptionOperationStatusInner> beginSubscribeToEvents(String resourceGroupName, String factoryName, String triggerName) Subscribe event trigger to events.- Parameters:
resourceGroupName
- The resource group name.factoryName
- The factory name.triggerName
- The trigger name.- Returns:
- the
SyncPoller
for polling of defines the response of a trigger subscription operation. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
beginSubscribeToEvents
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<TriggerSubscriptionOperationStatusInner>,TriggerSubscriptionOperationStatusInner> beginSubscribeToEvents(String resourceGroupName, String factoryName, String triggerName, com.azure.core.util.Context context) Subscribe event trigger to events.- Parameters:
resourceGroupName
- The resource group name.factoryName
- The factory name.triggerName
- The trigger name.context
- The context to associate with this operation.- Returns:
- the
SyncPoller
for polling of defines the response of a trigger subscription operation. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
subscribeToEvents
TriggerSubscriptionOperationStatusInner subscribeToEvents(String resourceGroupName, String factoryName, String triggerName) Subscribe event trigger to events.- Parameters:
resourceGroupName
- The resource group name.factoryName
- The factory name.triggerName
- The trigger name.- Returns:
- defines the response of a trigger subscription operation.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
subscribeToEvents
TriggerSubscriptionOperationStatusInner subscribeToEvents(String resourceGroupName, String factoryName, String triggerName, com.azure.core.util.Context context) Subscribe event trigger to events.- Parameters:
resourceGroupName
- The resource group name.factoryName
- The factory name.triggerName
- The trigger name.context
- The context to associate with this operation.- Returns:
- defines the response of a trigger subscription operation.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
getEventSubscriptionStatusWithResponse
com.azure.core.http.rest.Response<TriggerSubscriptionOperationStatusInner> getEventSubscriptionStatusWithResponse(String resourceGroupName, String factoryName, String triggerName, com.azure.core.util.Context context) Get a trigger's event subscription status.- Parameters:
resourceGroupName
- The resource group name.factoryName
- The factory name.triggerName
- The trigger name.context
- The context to associate with this operation.- Returns:
- a trigger's event subscription status along with
Response
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
getEventSubscriptionStatus
TriggerSubscriptionOperationStatusInner getEventSubscriptionStatus(String resourceGroupName, String factoryName, String triggerName) Get a trigger's event subscription status.- Parameters:
resourceGroupName
- The resource group name.factoryName
- The factory name.triggerName
- The trigger name.- Returns:
- a trigger's event subscription status.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
beginUnsubscribeFromEvents
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<TriggerSubscriptionOperationStatusInner>,TriggerSubscriptionOperationStatusInner> beginUnsubscribeFromEvents(String resourceGroupName, String factoryName, String triggerName) Unsubscribe event trigger from events.- Parameters:
resourceGroupName
- The resource group name.factoryName
- The factory name.triggerName
- The trigger name.- Returns:
- the
SyncPoller
for polling of defines the response of a trigger subscription operation. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
beginUnsubscribeFromEvents
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<TriggerSubscriptionOperationStatusInner>,TriggerSubscriptionOperationStatusInner> beginUnsubscribeFromEvents(String resourceGroupName, String factoryName, String triggerName, com.azure.core.util.Context context) Unsubscribe event trigger from events.- Parameters:
resourceGroupName
- The resource group name.factoryName
- The factory name.triggerName
- The trigger name.context
- The context to associate with this operation.- Returns:
- the
SyncPoller
for polling of defines the response of a trigger subscription operation. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
unsubscribeFromEvents
TriggerSubscriptionOperationStatusInner unsubscribeFromEvents(String resourceGroupName, String factoryName, String triggerName) Unsubscribe event trigger from events.- Parameters:
resourceGroupName
- The resource group name.factoryName
- The factory name.triggerName
- The trigger name.- Returns:
- defines the response of a trigger subscription operation.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
unsubscribeFromEvents
TriggerSubscriptionOperationStatusInner unsubscribeFromEvents(String resourceGroupName, String factoryName, String triggerName, com.azure.core.util.Context context) Unsubscribe event trigger from events.- Parameters:
resourceGroupName
- The resource group name.factoryName
- The factory name.triggerName
- The trigger name.context
- The context to associate with this operation.- Returns:
- defines the response of a trigger subscription operation.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
beginStart
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginStart(String resourceGroupName, String factoryName, String triggerName) Starts a trigger.- Parameters:
resourceGroupName
- The resource group name.factoryName
- The factory name.triggerName
- The trigger name.- Returns:
- the
SyncPoller
for polling of long-running operation. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
beginStart
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginStart(String resourceGroupName, String factoryName, String triggerName, com.azure.core.util.Context context) Starts a trigger.- Parameters:
resourceGroupName
- The resource group name.factoryName
- The factory name.triggerName
- The trigger name.context
- The context to associate with this operation.- Returns:
- the
SyncPoller
for polling of long-running operation. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
start
Starts a trigger.- Parameters:
resourceGroupName
- The resource group name.factoryName
- The factory name.triggerName
- The trigger name.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
start
void start(String resourceGroupName, String factoryName, String triggerName, com.azure.core.util.Context context) Starts a trigger.- Parameters:
resourceGroupName
- The resource group name.factoryName
- The factory name.triggerName
- The trigger name.context
- The context to associate with this operation.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
beginStop
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginStop(String resourceGroupName, String factoryName, String triggerName) Stops a trigger.- Parameters:
resourceGroupName
- The resource group name.factoryName
- The factory name.triggerName
- The trigger name.- Returns:
- the
SyncPoller
for polling of long-running operation. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
beginStop
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginStop(String resourceGroupName, String factoryName, String triggerName, com.azure.core.util.Context context) Stops a trigger.- Parameters:
resourceGroupName
- The resource group name.factoryName
- The factory name.triggerName
- The trigger name.context
- The context to associate with this operation.- Returns:
- the
SyncPoller
for polling of long-running operation. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
stop
Stops a trigger.- Parameters:
resourceGroupName
- The resource group name.factoryName
- The factory name.triggerName
- The trigger name.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
stop
void stop(String resourceGroupName, String factoryName, String triggerName, com.azure.core.util.Context context) Stops a trigger.- Parameters:
resourceGroupName
- The resource group name.factoryName
- The factory name.triggerName
- The trigger name.context
- The context to associate with this operation.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-