Interface Triggers


public interface Triggers
Resource collection API of Triggers.
  • Method Details

    • listByDataBoxEdgeDevice

      com.azure.core.http.rest.PagedIterable<Trigger> 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<Trigger> 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<Trigger> 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

      Trigger get(String deviceName, String name, String resourceGroupName)
      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.
    • createOrUpdate

      Trigger 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

      Trigger 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.
    • delete

      void delete(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.
      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.