Update to support new oauth2 API
Use new auto value for RootDirectory