Addresses https://github.com/googleapis/toolkit/issues/692. Manual changes are in: lib/google/apis/core/base_service.rb spec/google/apis/core/service_spec.rb