Add missing user agent header to GCP client

This commit is contained in:
Matija Čupić 2018-01-11 02:29:36 +01:00
parent 8ba3e473a5
commit 1f0a4fe6a4
No known key found for this signature in database
GPG key ID: 4BAF84FFACD2E5DE

View file

@ -47,7 +47,7 @@ module GoogleApi
service.authorization = access_token
service.fetch_all(items: :projects) do |token|
service.list_projects(page_token: token)
service.list_projects(page_token: token, options: user_agent_header)
end
end
@ -55,7 +55,7 @@ module GoogleApi
service = Google::Apis::CloudbillingV1::CloudbillingService.new
service.authorization = access_token
service.get_project_billing_info("projects/#{project_id}")
service.get_project_billing_info("projects/#{project_id}", options: user_agent_header)
end
def projects_zones_clusters_get(project_id, zone, cluster_id)