Does anyone have an example of doing the equivalent of a lxc device add to share a folder using pylxd?

Does anyone have an example of doing the equivalent of a lxc device add to share a folder using pylxd?

OK I sussed its adding a device to the container… I’ve simplified this in my implementation by creating pre-canned profiles which have the device added…