DeviceSecurityGroups Interface

public interface DeviceSecurityGroups

Resource collection API of DeviceSecurityGroups.

Method Summary

Modifier and Type Method and Description
abstract Blank define(String name)

Begins definition for a new DeviceSecurityGroup resource.

abstract void deleteById(String id)

User this method to deletes the device security group.

abstract Response<Void> deleteByIdWithResponse(String id, Context context)

User this method to deletes the device security group.

abstract void deleteByResourceGroup(String resourceId, String deviceSecurityGroupName)

User this method to deletes the device security group.

abstract Response<Void> deleteByResourceGroupWithResponse(String resourceId, String deviceSecurityGroupName, Context context)

User this method to deletes the device security group.

abstract DeviceSecurityGroup get(String resourceId, String deviceSecurityGroupName)

Use this method to get the device security group for the specified IoT Hub resource.

abstract DeviceSecurityGroup getById(String id)

Use this method to get the device security group for the specified IoT Hub resource.

abstract Response<DeviceSecurityGroup> getByIdWithResponse(String id, Context context)

Use this method to get the device security group for the specified IoT Hub resource.

abstract Response<DeviceSecurityGroup> getWithResponse(String resourceId, String deviceSecurityGroupName, Context context)

Use this method to get the device security group for the specified IoT Hub resource.

abstract PagedIterable<DeviceSecurityGroup> list(String resourceId)

Use this method get the list of device security groups for the specified IoT Hub resource.

abstract PagedIterable<DeviceSecurityGroup> list(String resourceId, Context context)

Use this method get the list of device security groups for the specified IoT Hub resource.

Method Details

define

public abstract DeviceSecurityGroup.DefinitionStages.Blank define(String name)

Begins definition for a new DeviceSecurityGroup resource.

Parameters:

name - resource name.

Returns:

the first stage of the new DeviceSecurityGroup definition.

deleteById

public abstract void deleteById(String id)

User this method to deletes the device security group.

Parameters:

id - the resource ID.

deleteByIdWithResponse

public abstract Response<Void> deleteByIdWithResponse(String id, 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:

deleteByResourceGroup

public abstract 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.

deleteByResourceGroupWithResponse

public abstract Response<Void> deleteByResourceGroupWithResponse(String resourceId, String deviceSecurityGroupName, 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:

get

public abstract 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.

getById

public abstract DeviceSecurityGroup getById(String id)

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<T>.

getByIdWithResponse

public abstract Response<DeviceSecurityGroup> getByIdWithResponse(String id, 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<T>.

getWithResponse

public abstract Response<DeviceSecurityGroup> getWithResponse(String resourceId, String deviceSecurityGroupName, 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<T>.

list

public abstract 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<T>.

list

public abstract PagedIterable<DeviceSecurityGroup> list(String resourceId, 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<T>.

Applies to