templates/default/service/client/_client.erb in gapic-generator-0.4.2 vs templates/default/service/client/_client.erb in gapic-generator-0.5.0

- old
+ new

@@ -98,10 +98,11 @@ credentials = @config.credentials credentials ||= Credentials.default scope: @config.scope if credentials.is_a?(String) || credentials.is_a?(Hash) credentials = Credentials.new credentials, scope: @config.scope end - @quota_project_id = credentials.respond_to?(:quota_project_id) ? credentials.quota_project_id : nil + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id <%- if service.lro? -%> <%= service.lro_client_ivar %> = <%= service.operations_name %>.new do |config| config.credentials = credentials config.endpoint = @config.endpoint