google-cloud-error_reporting 0.34.2 → 0.35.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 173b5b87dc1433ffb1ffa192ced7fb9b1baf2e9d9e8a7cd9486206e799dfca0a
4
- data.tar.gz: cea7f7464dde358cdf9e970b08956d7f55ff42c127a0213b9994f1b9e83da28b
3
+ metadata.gz: 14b7376e46c49c261ee4387207a28bbe055c6f248559e7fae9c91eb8a23c92d5
4
+ data.tar.gz: 2e276f3374ca544e9518d64ec22ebd296717cc29a22a21f6beb6fd586fc79df2
5
5
  SHA512:
6
- metadata.gz: 50d908041034a6007b00db0ee953fc05a4d0cfc6a9545267d5d6b2d8b59da5a6f317ccccb0b8f7204b153f8ee483abcc189708c5b18924f4138a15f16caa0253
7
- data.tar.gz: 9ede7e05bcd746c482725ada88397b6b84b3bea7282671dccbe309246dc657b6cf641f4943d0a92648413ead9cb0644d30d6937127ef5aaa05bd99bc61589100
6
+ metadata.gz: 81ce022171fa09fe64c7ef5a8104fd5b179408bbf108e59c9242195c50874c8a71bc4cccf7a955da5d4c6a9cc6d6ca84ac519d0821486a692bc8680959e3f936
7
+ data.tar.gz: a18c83dc1b646173cc4910f37729193e2edd18be0123dc127ed298228ca3719d9f2a7fce5c34a5e669e5a4d4e3ba78bd57ddedd1c027afb943707fe2c60d7840
@@ -1,5 +1,11 @@
1
1
  # Release History
2
2
 
3
+ ### 0.35.0 / 2020-03-11
4
+
5
+ #### Features
6
+
7
+ * Support separate project setting for quota/billing
8
+
3
9
  ### 0.34.2 / 2020-01-23
4
10
 
5
11
  #### Documentation
@@ -153,6 +153,9 @@ module Google
153
153
  google_api_client.freeze
154
154
 
155
155
  headers = { :"x-goog-api-client" => google_api_client }
156
+ if credentials.respond_to?(:quota_project_id) && credentials.quota_project_id
157
+ headers[:"x-goog-user-project"] = credentials.quota_project_id
158
+ end
156
159
  headers.merge!(metadata) unless metadata.nil?
157
160
  client_config_file = Pathname.new(__dir__).join(
158
161
  "error_group_service_client_config.json"
@@ -165,6 +165,9 @@ module Google
165
165
  google_api_client.freeze
166
166
 
167
167
  headers = { :"x-goog-api-client" => google_api_client }
168
+ if credentials.respond_to?(:quota_project_id) && credentials.quota_project_id
169
+ headers[:"x-goog-user-project"] = credentials.quota_project_id
170
+ end
168
171
  headers.merge!(metadata) unless metadata.nil?
169
172
  client_config_file = Pathname.new(__dir__).join(
170
173
  "error_stats_service_client_config.json"
@@ -151,6 +151,9 @@ module Google
151
151
  google_api_client.freeze
152
152
 
153
153
  headers = { :"x-goog-api-client" => google_api_client }
154
+ if credentials.respond_to?(:quota_project_id) && credentials.quota_project_id
155
+ headers[:"x-goog-user-project"] = credentials.quota_project_id
156
+ end
154
157
  headers.merge!(metadata) unless metadata.nil?
155
158
  client_config_file = Pathname.new(__dir__).join(
156
159
  "report_errors_service_client_config.json"
@@ -16,7 +16,7 @@
16
16
  module Google
17
17
  module Cloud
18
18
  module ErrorReporting
19
- VERSION = "0.34.2".freeze
19
+ VERSION = "0.35.0".freeze
20
20
  end
21
21
  end
22
22
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-error_reporting
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.34.2
4
+ version: 0.35.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google Inc
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-01-23 00:00:00.000000000 Z
11
+ date: 2020-03-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-cloud-core