I don't have much time, so I haven't been able to make a decent library. This might be a good starting point if you are thinking about developing your own library of functions to manage Paloalto SASE / Prisma Access.
Paloalto API documentation for Prisma configuration: https://pan.dev/access/api/prisma-access-config/