DeviceSecurityGroupsOperations Class
DeviceSecurityGroupsOperations async 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.objectDeviceSecurityGroupsOperations
Constructor
DeviceSecurityGroupsOperations(client, config, serializer, deserializer)
Parameters
- client
Client for service requests.
- config
Configuration of service client.
- serializer
An object model serializer.
- deserializer
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.
async create_or_update(resource_id: str, device_security_group_name: str, device_security_group: azure.mgmt.security.models._models_py3.DeviceSecurityGroup, **kwargs) -> azure.mgmt.security.models._models_py3.DeviceSecurityGroup
Parameters
- device_security_group_name
- str
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
Exceptions
delete
User this method to deletes the device security group.
async delete(resource_id: str, device_security_group_name: str, **kwargs) -> None
Parameters
- device_security_group_name
- str
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
Exceptions
get
Use this method to get the device security group for the specified IoT Hub resource.
async get(resource_id: str, device_security_group_name: str, **kwargs) -> azure.mgmt.security.models._models_py3.DeviceSecurityGroup
Parameters
- device_security_group_name
- str
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
Exceptions
list
Use this method get the list of device security groups for the specified IoT Hub resource.
list(resource_id: str, **kwargs) -> AsyncIterable[azure.mgmt.security.models._models_py3.DeviceSecurityGroupList]
Parameters
- 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
Exceptions
Attributes
models
models = <module 'azure.mgmt.security.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.9.13\\x64\\lib\\site-packages\\azure\\mgmt\\security\\models\\__init__.py'>
Feedback
Submit and view feedback for