azure.iot.deviceupdate package¶
-
class
azure.iot.deviceupdate.DeviceUpdateClient(endpoint: str, instance_id: str, credential: TokenCredential, **kwargs: Any)[source]¶ Device Update for IoT Hub is an Azure service that enables customers to publish updates for their IoT devices to the cloud, and then deploy that update to their devices (approve updates to groups of devices managed and provisioned in IoT Hub). It leverages the proven security and reliability of the Windows Update platform, optimized for IoT devices. It works globally and knows when and how to update devices, enabling customers to focus on their business goals and let Device Update for IoT Hub handle the updates.
- Variables
device_update (azure.iot.deviceupdate.operations.DeviceUpdateOperations) – DeviceUpdateOperations operations
device_management (azure.iot.deviceupdate.operations.DeviceManagementOperations) – DeviceManagementOperations operations
- Parameters
endpoint (str) – The Device Update for IoT Hub account endpoint (hostname only, no protocol). Required.
instance_id (str) – The Device Update for IoT Hub account instance identifier. Required.
credential (TokenCredential) – Credential needed for the client to connect to Azure. Required.
- Keyword Arguments
-
send_request(request: azure.core.rest._rest_py3.HttpRequest, **kwargs: Any) → azure.core.rest._rest_py3.HttpResponse[source]¶ Runs the network request through the client’s chained policies.
>>> from azure.core.rest import HttpRequest >>> request = HttpRequest("GET", "https://www.example.org/") <HttpRequest [GET], url: 'https://www.example.org/'> >>> response = client.send_request(request) <HttpResponse: 200 OK>
For more information on this code flow, see https://aka.ms/azsdk/dpcodegen/python/send_request
- Parameters
request (HttpRequest) – The network request you want to make. Required.
- Keyword Arguments
stream (bool) – Whether the response payload will be streamed. Defaults to False.
- Returns
The response of your network call. Does not do error handling on your response.
- Return type