chore: Update generator to set client version for headers (#2141)

This commit is contained in:
Daniel Azuma authored and GitHub committed 2021-01-01 09:40:59 -08:00
1 parent d2ed72fb53
commit 1e2aeaeeeb
311 files changed
+933 -311

No files matched your search

@@ -41,7 +41,9 @@ module Google
<% end -%>
def initialize
super('<%= api.root_url %>', '<%= api.service_path %>')
super('<%= api.root_url %>', '<%= api.service_path %>',
client_name: '<%= api.gem_name %>',
client_version: <%= api.qualified_name %>::GEM_VERSION)
@batch_path = '<%= api.batch_path %>'
end
<% for api_method in api.all_methods -%>