Update query binding via scripting

Is it possible to update a query binding on a component, in particular the query binding polling properties, via python scripting?

My use case would be having a button that users could toggle auto-update of a table on/off. Would it also possible to check whether polling is on/off as well on the component property?

I'm guessing polling period set to 0 would turn it off, so you could bind that to something

That's an idea. I couldn't find anything in the docs that confirms that setting it to 0 will turn it off but I'll give it a try.