I see in the source file service/iothub_service_client_python.py
that the class IoTHubRegistryManager
has methods to create and update devices and methods. They are largely used in samples and EtE tests.
Is there a counterpart to managed EdgeDevices via this python sdk? I don't see any sample or test using it.
Here on StackOverflow i found only this question but the answer is not complete. They propose a solution based on some TypeScript code that adds a device with a capability but there is no such a thing on the python sdk. For instance, the current api is
def create_device(self, device_id, primary_key, secondary_key, auth_method):
"""Creates a device on IoTHub using the given parameters.
:param device_id: The name of the device
:type device_id: str
:param primary_key: The primary key of the device
:type primary_key: str
:param secondary_key: The secondary key of the device
:type secondary_key: str
:param auth_method: The authentication method used to authenticate the device client
:type auth_method: IoTHubRegistryManagerAuthMethod(Enum)
:return: The device client instance
:rtype: IoTHubDevice
"""
pass
Thanks