Device profile
Device profile resource for device configuration profiles.
SyncDeviceProfiles
SyncDeviceProfiles(client: SyncClient)
Bases: BaseResource['SyncClient']
Device profiles resource for device profile management.
Methods:
-
get_all–List all device profiles.
-
update_devices–Update devices associated with a device profile.
get_all
get_all() -> list[DeviceProfileInstance]
List all device profiles.
Returns:
-
list[DeviceProfileInstance]–list[DeviceProfileInstance]: List of all device profile instances.
update_devices
update_devices(
profile_id: str, data: DeviceProfileDevicesUpdate
) -> DeviceProfileDevicesUpdateResponse
Update devices associated with a device profile.
Parameters:
-
(profile_idstr) –The unique identifier of the device profile.
-
(dataDeviceProfileDevicesUpdate) –The device association update data.
Returns:
-
DeviceProfileDevicesUpdateResponse(DeviceProfileDevicesUpdateResponse) –The response containing updated device associations.
AsyncDeviceProfiles
AsyncDeviceProfiles(client: AsyncClient)
Bases: BaseResource['AsyncClient']
Async device profiles resource for device profile management.
Methods:
-
get_all–List all device profiles.
-
update_devices–Update devices associated with a device profile.
get_all
async
get_all() -> list[DeviceProfileInstance]
List all device profiles.
Returns:
-
list[DeviceProfileInstance]–list[DeviceProfileInstance]: List of all device profile instances.
update_devices
async
update_devices(
profile_id: str, data: DeviceProfileDevicesUpdate
) -> DeviceProfileDevicesUpdateResponse
Update devices associated with a device profile.
Parameters:
-
(profile_idstr) –The unique identifier of the device profile.
-
(dataDeviceProfileDevicesUpdate) –The device association update data.
Returns:
-
DeviceProfileDevicesUpdateResponse(DeviceProfileDevicesUpdateResponse) –The response containing updated device associations.
Request and response types: Device profile models.