OnPremiseIotSensorsOperations Class

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

Constructor

OnPremiseIotSensorsOperations(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 on-premise IoT sensor.

delete

Delete on-premise IoT sensor.

download_activation

Download sensor activation file.

download_reset_password

Download file for reset password of the sensor.

get

Get on-premise IoT sensor.

list

List on-premise IoT sensors.

create_or_update

Create or update on-premise IoT sensor.

async create_or_update(on_premise_iot_sensor_name: str, **kwargs) -> azure.mgmt.security.models._models_py3.OnPremiseIotSensor

Parameters

on_premise_iot_sensor_name
str
Required

Name of the on-premise IoT sensor.

cls
callable

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

Returns

OnPremiseIotSensor, or the result of cls(response)

Return type

Exceptions

delete

Delete on-premise IoT sensor.

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

Parameters

on_premise_iot_sensor_name
str
Required

Name of the on-premise 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(on_premise_iot_sensor_name: str, **kwargs) -> IO

Parameters

on_premise_iot_sensor_name
str
Required

Name of the on-premise 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(on_premise_iot_sensor_name: str, body: azure.mgmt.security.models._models_py3.ResetPasswordInput, **kwargs) -> IO

Parameters

on_premise_iot_sensor_name
str
Required

Name of the on-premise IoT sensor.

body
ResetPasswordInput
Required

Input for reset password.

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 on-premise IoT sensor.

async get(on_premise_iot_sensor_name: str, **kwargs) -> azure.mgmt.security.models._models_py3.OnPremiseIotSensor

Parameters

on_premise_iot_sensor_name
str
Required

Name of the on-premise IoT sensor.

cls
callable

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

Returns

OnPremiseIotSensor, or the result of cls(response)

Return type

Exceptions

list

List on-premise IoT sensors.

async list(**kwargs) -> azure.mgmt.security.models._models_py3.OnPremiseIotSensorsList

Parameters

cls
callable

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

Returns

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