DeviceSecurityGroupsOperations Class

DeviceSecurityGroupsOperations operations.

You should not instantiate this class directly. Instead, you should create a Client instance that instantiates it for you and attaches it as an attribute.

Inheritance
builtins.object
DeviceSecurityGroupsOperations

Constructor

DeviceSecurityGroupsOperations(client, config, serializer, deserializer)

Parameters

client
Required

Client for service requests.

config
Required

Configuration of service client.

serializer
Required

An object model serializer.

deserializer
Required

An object model deserializer.

Variables

models

Alias to model classes used in this operation group.

Methods

create_or_update

Use this method to creates or updates the device security group on a specified IoT Hub resource.

delete

User this method to deletes the device security group.

get

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

list

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

create_or_update

Use this method to creates or updates the device security group on a specified IoT Hub resource.

create_or_update(resource_id, device_security_group_name, device_security_group, **kwargs)

Parameters

resource_id
str
Required

The identifier of the resource.

device_security_group_name
str
Required

The name of the device security group. Note that the name of the device security group is case insensitive.

device_security_group
DeviceSecurityGroup
Required

Security group object.

cls
callable

A custom type or function that will be passed the direct response

Returns

DeviceSecurityGroup, or the result of cls(response)

Return type

delete

User this method to deletes the device security group.

delete(resource_id, device_security_group_name, **kwargs)

Parameters

resource_id
str
Required

The identifier of the resource.

device_security_group_name
str
Required

The name of the device security group. Note that the name of the device security group is case insensitive.

cls
callable

A custom type or function that will be passed the direct response

Returns

None, or the result of cls(response)

Return type

get

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

get(resource_id, device_security_group_name, **kwargs)

Parameters

resource_id
str
Required

The identifier of the resource.

device_security_group_name
str
Required

The name of the device security group. Note that the name of the device security group is case insensitive.

cls
callable

A custom type or function that will be passed the direct response

Returns

DeviceSecurityGroup, or the result of cls(response)

Return type

list

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

list(resource_id, **kwargs)

Parameters

resource_id
str
Required

The identifier of the resource.

cls
callable

A custom type or function that will be passed the direct response

Returns

An iterator like instance of either DeviceSecurityGroupList or the result of cls(response)

Return type

Attributes

models

models = <module 'azure.mgmt.security.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.6.8\\x64\\lib\\site-packages\\azure\\mgmt\\security\\models\\__init__.py'>