IotSensorsOperations Class

IotSensorsOperations 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.object
IotSensorsOperations

Constructor

IotSensorsOperations(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

Create or update IoT sensor.

delete

Delete IoT sensor.

download_activation

Download sensor activation file.

download_reset_password

Download file for reset password of the sensor.

get

Get IoT sensor.

list

List IoT sensors.

trigger_ti_package_update

Trigger threat intelligence package update.

create_or_update

Create or update IoT sensor.

async create_or_update(scope: str, iot_sensor_name: str, iot_sensors_model: azure.mgmt.security.models._models_py3.IotSensorsModel, **kwargs) -> azure.mgmt.security.models._models_py3.IotSensorsModel

Parameters

scope
str
Required

Scope of the query (IoT Hub, /providers/Microsoft.Devices/iotHubs/myHub).

iot_sensor_name
str
Required

Name of the IoT sensor.

iot_sensors_model
IotSensorsModel
Required

The IoT sensor model.

cls
callable

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

Returns

IotSensorsModel, or the result of cls(response)

Return type

Exceptions

delete

Delete IoT sensor.

async delete(scope: str, iot_sensor_name: str, **kwargs) -> None

Parameters

scope
str
Required

Scope of the query (IoT Hub, /providers/Microsoft.Devices/iotHubs/myHub).

iot_sensor_name
str
Required

Name of the IoT sensor.

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

download_activation

Download sensor activation file.

async download_activation(scope: str, iot_sensor_name: str, **kwargs) -> IO

Parameters

scope
str
Required

Scope of the query (IoT Hub, /providers/Microsoft.Devices/iotHubs/myHub).

iot_sensor_name
str
Required

Name of the IoT sensor.

cls
callable

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

Returns

IO, or the result of cls(response)

Return type

<xref:IO>

Exceptions

download_reset_password

Download file for reset password of the sensor.

async download_reset_password(scope: str, iot_sensor_name: str, body: azure.mgmt.security.models._models_py3.ResetPasswordInput, **kwargs) -> IO

Parameters

scope
str
Required

Scope of the query (IoT Hub, /providers/Microsoft.Devices/iotHubs/myHub).

iot_sensor_name
str
Required

Name of the IoT sensor.

body
ResetPasswordInput
Required

The reset password input.

cls
callable

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

Returns

IO, or the result of cls(response)

Return type

<xref:IO>

Exceptions

get

Get IoT sensor.

async get(scope: str, iot_sensor_name: str, **kwargs) -> azure.mgmt.security.models._models_py3.IotSensorsModel

Parameters

scope
str
Required

Scope of the query (IoT Hub, /providers/Microsoft.Devices/iotHubs/myHub).

iot_sensor_name
str
Required

Name of the IoT sensor.

cls
callable

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

Returns

IotSensorsModel, or the result of cls(response)

Return type

Exceptions

list

List IoT sensors.

async list(scope: str, **kwargs) -> azure.mgmt.security.models._models_py3.IotSensorsList

Parameters

scope
str
Required

Scope of the query (IoT Hub, /providers/Microsoft.Devices/iotHubs/myHub).

cls
callable

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

Returns

IotSensorsList, or the result of cls(response)

Return type

Exceptions

trigger_ti_package_update

Trigger threat intelligence package update.

async trigger_ti_package_update(scope: str, iot_sensor_name: str, **kwargs) -> None

Parameters

scope
str
Required

Scope of the query (IoT Hub, /providers/Microsoft.Devices/iotHubs/myHub).

iot_sensor_name
str
Required

Name of the IoT sensor.

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

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'>