IotSitesOperations Class

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

Constructor

IotSitesOperations(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 site.

delete

Delete IoT site.

get

Get IoT site.

list

List IoT sites.

create_or_update

Create or update IoT site.

async create_or_update(scope: str, iot_sites_model: azure.mgmt.security.models._models_py3.IotSitesModel, **kwargs) -> azure.mgmt.security.models._models_py3.IotSitesModel

Parameters

scope
str
Required

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

iot_sites_model
IotSitesModel
Required

The IoT sites model.

cls
callable

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

Returns

IotSitesModel, or the result of cls(response)

Return type

Exceptions

delete

Delete IoT site.

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

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

None, or the result of cls(response)

Return type

Exceptions

get

Get IoT site.

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

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

IotSitesModel, or the result of cls(response)

Return type

Exceptions

list

List IoT sites.

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

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

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