Interface DeviceSecurityGroups


public interface DeviceSecurityGroups
Resource collection API of DeviceSecurityGroups.
  • Method Summary

    Modifier and Type
    Method
    Description
    define(String name)
    Begins definition for a new DeviceSecurityGroup resource.
    void
    User this method to deletes the device security group.
    com.azure.core.http.rest.Response<Void>
    deleteByIdWithResponse(String id, com.azure.core.util.Context context)
    User this method to deletes the device security group.
    void
    deleteByResourceGroup(String resourceId, String deviceSecurityGroupName)
    User this method to deletes the device security group.
    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.
    get(String resourceId, String deviceSecurityGroupName)
    Use this method to get the device security group for the specified IoT Hub resource.
    Use this method to get the device security group for the specified IoT Hub resource.
    com.azure.core.http.rest.Response<DeviceSecurityGroup>
    getByIdWithResponse(String id, com.azure.core.util.Context context)
    Use this method to get the device security group for the specified IoT Hub resource.
    com.azure.core.http.rest.Response<DeviceSecurityGroup>
    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.
    com.azure.core.http.rest.PagedIterable<DeviceSecurityGroup>
    list(String resourceId)
    Use this method get the list of device security groups for the specified IoT Hub resource.
    com.azure.core.http.rest.PagedIterable<DeviceSecurityGroup>
    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.
  • Method Details

    • list

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

      DeviceSecurityGroup 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<DeviceSecurityGroup> 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.
    • deleteByResourceGroup

      void deleteByResourceGroup(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.
    • getById

      Use this method to get the device security group for the specified IoT Hub resource.
      Parameters:
      id - the resource ID.
      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.
    • getByIdWithResponse

      com.azure.core.http.rest.Response<DeviceSecurityGroup> getByIdWithResponse(String id, com.azure.core.util.Context context)
      Use this method to get the device security group for the specified IoT Hub resource.
      Parameters:
      id - the resource ID.
      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.
    • deleteById

      void deleteById(String id)
      User this method to deletes the device security group.
      Parameters:
      id - the resource ID.
      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.
    • deleteByIdWithResponse

      com.azure.core.http.rest.Response<Void> deleteByIdWithResponse(String id, com.azure.core.util.Context context)
      User this method to deletes the device security group.
      Parameters:
      id - the resource ID.
      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.
    • define

      Begins definition for a new DeviceSecurityGroup resource.
      Parameters:
      name - resource name.
      Returns:
      the first stage of the new DeviceSecurityGroup definition.