Update to 0.40.0
Changes: https://github.com/googleapis/google-api-ruby-client/blob/master/CHANGELOG.md