google-cloud-tasks 1.4.0 → 1.5.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: f0dd09d686124333b16ffe44d6c2eb0eb5d8db010cfcfcd3d970ff6dcfffe21d
4
- data.tar.gz: 4057cee51cc946bbb8a7518b09c9ff44ce2860fa52e2da4df70ee592cb0754fb
3
+ metadata.gz: fcbaf97e3ebb4a57306fe1e16e97b7aed5ed50449994aab670ec330af99a0782
4
+ data.tar.gz: afea7a2a40feb15a2b2b44dc9515c8fd634a5b7d160fb2a687a40da21d9f39db
5
5
  SHA512:
6
- metadata.gz: 9607438fdda4621705ef0bfee26e0838f4f393cee5b2db35662fe3e292af25fe8d2c6fed91a45485374c1d36affa8237f7f44c2a5770e0eb8fd394486b24d2a9
7
- data.tar.gz: 11ed9939d8fe6602c1d17552bbda0dfa61478a496eb33d910371816628080bba07fdaf4c28d61c8212c857a95098c43c957bbd4c8fe4d26f0ffe95d9421860cd
6
+ metadata.gz: f4ae86bbe6e744463fd3bc3b2084aededcab7822276078e2bd85669336ab2749a08718e5ca9a7f6746318e5ea7257b3e1825b7ea6792c9ce1597d758fa1fa265
7
+ data.tar.gz: ab577c823c39c2b82dbffe931fa7a8ee01028797bae1ad6f6a938ee2a2d7d2926bc42b7e4609747f6aa9213c9cf4448d918c5dc6b6198824bf6ae985df49b861
@@ -207,6 +207,9 @@ module Google
207
207
  google_api_client.freeze
208
208
 
209
209
  headers = { :"x-goog-api-client" => google_api_client }
210
+ if credentials.respond_to?(:quota_project_id) && credentials.quota_project_id
211
+ headers[:"x-goog-user-project"] = credentials.quota_project_id
212
+ end
210
213
  headers.merge!(metadata) unless metadata.nil?
211
214
  client_config_file = Pathname.new(__dir__).join(
212
215
  "cloud_tasks_client_config.json"
@@ -207,6 +207,9 @@ module Google
207
207
  google_api_client.freeze
208
208
 
209
209
  headers = { :"x-goog-api-client" => google_api_client }
210
+ if credentials.respond_to?(:quota_project_id) && credentials.quota_project_id
211
+ headers[:"x-goog-user-project"] = credentials.quota_project_id
212
+ end
210
213
  headers.merge!(metadata) unless metadata.nil?
211
214
  client_config_file = Pathname.new(__dir__).join(
212
215
  "cloud_tasks_client_config.json"
@@ -207,6 +207,9 @@ module Google
207
207
  google_api_client.freeze
208
208
 
209
209
  headers = { :"x-goog-api-client" => google_api_client }
210
+ if credentials.respond_to?(:quota_project_id) && credentials.quota_project_id
211
+ headers[:"x-goog-user-project"] = credentials.quota_project_id
212
+ end
210
213
  headers.merge!(metadata) unless metadata.nil?
211
214
  client_config_file = Pathname.new(__dir__).join(
212
215
  "cloud_tasks_client_config.json"
@@ -16,7 +16,7 @@
16
16
  module Google
17
17
  module Cloud
18
18
  module Tasks
19
- VERSION = "1.4.0".freeze
19
+ VERSION = "1.5.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-tasks
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 1.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-02-24 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-gax