Interface TriggersClient
public interface TriggersClient
An instance of this class provides access to all the operations defined in TriggersClient.
-
Method Summary
Modifier and TypeMethodDescriptioncom.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<TriggerInner>,
TriggerInner> beginCreateOrUpdate
(String deviceName, String name, String resourceGroupName, TriggerInner trigger) Creates or updates a trigger.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<TriggerInner>,
TriggerInner> beginCreateOrUpdate
(String deviceName, String name, String resourceGroupName, TriggerInner trigger, com.azure.core.util.Context context) Creates or updates a trigger.beginDelete
(String deviceName, String name, String resourceGroupName) Deletes the trigger on the gateway device.beginDelete
(String deviceName, String name, String resourceGroupName, com.azure.core.util.Context context) Deletes the trigger on the gateway device.createOrUpdate
(String deviceName, String name, String resourceGroupName, TriggerInner trigger) Creates or updates a trigger.createOrUpdate
(String deviceName, String name, String resourceGroupName, TriggerInner trigger, com.azure.core.util.Context context) Creates or updates a trigger.void
Deletes the trigger on the gateway device.void
delete
(String deviceName, String name, String resourceGroupName, com.azure.core.util.Context context) Deletes the trigger on the gateway device.Get a specific trigger by name.com.azure.core.http.rest.Response<TriggerInner>
getWithResponse
(String deviceName, String name, String resourceGroupName, com.azure.core.util.Context context) Get a specific trigger by name.com.azure.core.http.rest.PagedIterable<TriggerInner>
listByDataBoxEdgeDevice
(String deviceName, String resourceGroupName) Lists all the triggers configured in the device.com.azure.core.http.rest.PagedIterable<TriggerInner>
listByDataBoxEdgeDevice
(String deviceName, String resourceGroupName, String filter, com.azure.core.util.Context context) Lists all the triggers configured in the device.
-
Method Details
-
listByDataBoxEdgeDevice
com.azure.core.http.rest.PagedIterable<TriggerInner> listByDataBoxEdgeDevice(String deviceName, String resourceGroupName) Lists all the triggers configured in the device.- Parameters:
deviceName
- The device name.resourceGroupName
- The resource group name.- Returns:
- collection of all trigger on the data box edge device 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.
-
listByDataBoxEdgeDevice
com.azure.core.http.rest.PagedIterable<TriggerInner> listByDataBoxEdgeDevice(String deviceName, String resourceGroupName, String filter, com.azure.core.util.Context context) Lists all the triggers configured in the device.- Parameters:
deviceName
- The device name.resourceGroupName
- The resource group name.filter
- Specify $filter='CustomContextTag eq <tag>' to filter on custom context tag property.context
- The context to associate with this operation.- Returns:
- collection of all trigger on the data box edge device 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.
-
getWithResponse
com.azure.core.http.rest.Response<TriggerInner> getWithResponse(String deviceName, String name, String resourceGroupName, com.azure.core.util.Context context) Get a specific trigger by name.- Parameters:
deviceName
- The device name.name
- The trigger name.resourceGroupName
- The resource group name.context
- The context to associate with this operation.- Returns:
- a specific trigger by name 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
Get a specific trigger by name.- Parameters:
deviceName
- The device name.name
- The trigger name.resourceGroupName
- The resource group name.- Returns:
- a specific trigger by 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.
-
beginCreateOrUpdate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<TriggerInner>,TriggerInner> beginCreateOrUpdate(String deviceName, String name, String resourceGroupName, TriggerInner trigger) Creates or updates a trigger.- Parameters:
deviceName
- Creates or updates a trigger.name
- The trigger name.resourceGroupName
- The resource group name.trigger
- The trigger.- Returns:
- the
SyncPoller
for polling of trigger details. - 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.
-
beginCreateOrUpdate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<TriggerInner>,TriggerInner> beginCreateOrUpdate(String deviceName, String name, String resourceGroupName, TriggerInner trigger, com.azure.core.util.Context context) Creates or updates a trigger.- Parameters:
deviceName
- Creates or updates a trigger.name
- The trigger name.resourceGroupName
- The resource group name.trigger
- The trigger.context
- The context to associate with this operation.- Returns:
- the
SyncPoller
for polling of trigger details. - 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
TriggerInner createOrUpdate(String deviceName, String name, String resourceGroupName, TriggerInner trigger) Creates or updates a trigger.- Parameters:
deviceName
- Creates or updates a trigger.name
- The trigger name.resourceGroupName
- The resource group name.trigger
- The trigger.- Returns:
- trigger details.
- 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
TriggerInner createOrUpdate(String deviceName, String name, String resourceGroupName, TriggerInner trigger, com.azure.core.util.Context context) Creates or updates a trigger.- Parameters:
deviceName
- Creates or updates a trigger.name
- The trigger name.resourceGroupName
- The resource group name.trigger
- The trigger.context
- The context to associate with this operation.- Returns:
- trigger details.
- 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.
-
beginDelete
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDelete(String deviceName, String name, String resourceGroupName) Deletes the trigger on the gateway device.- Parameters:
deviceName
- The device name.name
- The trigger name.resourceGroupName
- The resource group 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.
-
beginDelete
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDelete(String deviceName, String name, String resourceGroupName, com.azure.core.util.Context context) Deletes the trigger on the gateway device.- Parameters:
deviceName
- The device name.name
- The trigger name.resourceGroupName
- The resource group 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.
-
delete
Deletes the trigger on the gateway device.- Parameters:
deviceName
- The device name.name
- The trigger name.resourceGroupName
- The resource group 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.
-
delete
void delete(String deviceName, String name, String resourceGroupName, com.azure.core.util.Context context) Deletes the trigger on the gateway device.- Parameters:
deviceName
- The device name.name
- The trigger name.resourceGroupName
- The resource group 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.
-