Commit 1f0a4fe6 authored by Matija Čupić's avatar Matija Čupić

Add missing user agent header to GCP client

parent 8ba3e473
...@@ -47,7 +47,7 @@ module GoogleApi ...@@ -47,7 +47,7 @@ module GoogleApi
service.authorization = access_token service.authorization = access_token
service.fetch_all(items: :projects) do |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
end end
...@@ -55,7 +55,7 @@ module GoogleApi ...@@ -55,7 +55,7 @@ module GoogleApi
service = Google::Apis::CloudbillingV1::CloudbillingService.new service = Google::Apis::CloudbillingV1::CloudbillingService.new
service.authorization = access_token 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 end
def projects_zones_clusters_get(project_id, zone, cluster_id) def projects_zones_clusters_get(project_id, zone, cluster_id)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment