'How to enable/disable data_write for an Audit Log via API call?

My client has a cloud function that monitors activity to audit logging. They want me to make a change so that if logging is turned off for something that it get turned back on. I need an API from a Python library to do this. An example would be that someone turned off "data_write" for Cloud Resource Manager API. What Python library do I use and what function call will allow me to update the setting putting it back to enabled? I know the service name would be "cloudresourcemanager.googleapis.com" and I want to "ADD" "DATA_WRITE" back to it since it had been previously removed.

I just need someone to point me to the right API and function.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source