How change dynamically allowed Extensions and upload size

Hi i need to change with API GOOGLE DRIVE the Allowed Extensions and upload size and Quantity file to upload.
There is a macro? How can i do it?