Interface DeviceSecurityGroupsClient


public interface DeviceSecurityGroupsClient
An instance of this class provides access to all the operations defined in DeviceSecurityGroupsClient.
  • Method Details

    • list

      com.azure.core.http.rest.PagedIterable<DeviceSecurityGroupInner> list(String resourceId)
      Use this method get the list of device security groups for the specified IoT Hub resource.
      Parameters:
      resourceId - The identifier of the resource.
      Returns:
      list of device security groups 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.
    • list

      com.azure.core.http.rest.PagedIterable<DeviceSecurityGroupInner> list(String resourceId, com.azure.core.util.Context context)
      Use this method get the list of device security groups for the specified IoT Hub resource.
      Parameters:
      resourceId - The identifier of the resource.
      context - The context to associate with this operation.
      Returns:
      list of device security groups 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.
    • get

      DeviceSecurityGroupInner get(String resourceId, String deviceSecurityGroupName)
      Use this method to get the device security group for the specified IoT Hub resource.
      Parameters:
      resourceId - The identifier of the resource.
      deviceSecurityGroupName - The name of the device security group. Note that the name of the device security group is case insensitive.
      Returns:
      the device security group resource.
      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<DeviceSecurityGroupInner> getWithResponse(String resourceId, String deviceSecurityGroupName, com.azure.core.util.Context context)
      Use this method to get the device security group for the specified IoT Hub resource.
      Parameters:
      resourceId - The identifier of the resource.
      deviceSecurityGroupName - The name of the device security group. Note that the name of the device security group is case insensitive.
      context - The context to associate with this operation.
      Returns:
      the device security group resource 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

      DeviceSecurityGroupInner createOrUpdate(String resourceId, String deviceSecurityGroupName, DeviceSecurityGroupInner deviceSecurityGroup)
      Use this method to creates or updates the device security group on a specified IoT Hub resource.
      Parameters:
      resourceId - The identifier of the resource.
      deviceSecurityGroupName - The name of the device security group. Note that the name of the device security group is case insensitive.
      deviceSecurityGroup - Security group object.
      Returns:
      the device security group resource.
      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<DeviceSecurityGroupInner> createOrUpdateWithResponse(String resourceId, String deviceSecurityGroupName, DeviceSecurityGroupInner deviceSecurityGroup, com.azure.core.util.Context context)
      Use this method to creates or updates the device security group on a specified IoT Hub resource.
      Parameters:
      resourceId - The identifier of the resource.
      deviceSecurityGroupName - The name of the device security group. Note that the name of the device security group is case insensitive.
      deviceSecurityGroup - Security group object.
      context - The context to associate with this operation.
      Returns:
      the device security group resource 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.
    • delete

      void delete(String resourceId, String deviceSecurityGroupName)
      User this method to deletes the device security group.
      Parameters:
      resourceId - The identifier of the resource.
      deviceSecurityGroupName - The name of the device security group. Note that the name of the device security group is case insensitive.
      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 resourceId, String deviceSecurityGroupName, com.azure.core.util.Context context)
      User this method to deletes the device security group.
      Parameters:
      resourceId - The identifier of the resource.
      deviceSecurityGroupName - The name of the device security group. Note that the name of the device security group is case insensitive.
      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.