google-cloud-firestore 1.3.0 → 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 388f42fa34e44a5331d19d8fd5069e2d28a7213a080e398f61b360be0986040e
4
- data.tar.gz: e3370f1aeb624e54ad4f14762f82151c2393dd6a36c6631a5eadaf30f5f2cbfb
3
+ metadata.gz: 889cb510f153ac1dd619ffddc1cac4c2dce575eef604576ffffdaf801be49568
4
+ data.tar.gz: 8a3aa5693f9e4e972048d663904f49744a8a6a03c122c8bac1c50c5aa77a50e8
5
5
  SHA512:
6
- metadata.gz: 73b290ce65d254e250a96ca950fad5e2fe48d321f4364b593db13438aab549864c38dd123f0c876a89efc63e68eed00c1520bb3a6be86b752ab5cd0c46d396ae
7
- data.tar.gz: e40578ef50b3b11c630cba1219dde1a54b153a6d4b91e48ba2416ebac3aa1b2abac1ff48de8797d32a15cabf6fdb76b08972fcb7f60f0cecc20822594346691d
6
+ metadata.gz: ab41a1196f01e81a2a1a4b7a35422aadee0b9174d729592aeae98247a8b736e559219df95276e4d35a2ff623dc7afa259b665cd9d66d619587b3be05a12f4688
7
+ data.tar.gz: 5c721933e97977aa82cb2ff4de9a04efd2b1f4230aafb11348b24def72f40ede03f6ac877f42af113d31a6c74063d735753190bfc211a33ebc1b23516cd8540e
@@ -1,5 +1,11 @@
1
1
  # Release History
2
2
 
3
+ ### 1.4.0 / 2020-03-11
4
+
5
+ #### Features
6
+
7
+ * Support separate project setting for quota/billing
8
+
3
9
  ### 1.3.0 / 2020-03-02
4
10
 
5
11
  #### Features
@@ -230,6 +230,9 @@ module Google
230
230
  google_api_client.freeze
231
231
 
232
232
  headers = { :"x-goog-api-client" => google_api_client }
233
+ if credentials.respond_to?(:quota_project_id) && credentials.quota_project_id
234
+ headers[:"x-goog-user-project"] = credentials.quota_project_id
235
+ end
233
236
  headers.merge!(metadata) unless metadata.nil?
234
237
  client_config_file = Pathname.new(__dir__).join(
235
238
  "firestore_admin_client_config.json"
@@ -231,6 +231,9 @@ module Google
231
231
  google_api_client.freeze
232
232
 
233
233
  headers = { :"x-goog-api-client" => google_api_client }
234
+ if credentials.respond_to?(:quota_project_id) && credentials.quota_project_id
235
+ headers[:"x-goog-user-project"] = credentials.quota_project_id
236
+ end
234
237
  headers.merge!(metadata) unless metadata.nil?
235
238
  client_config_file = Pathname.new(__dir__).join(
236
239
  "firestore_client_config.json"
@@ -239,6 +239,9 @@ module Google
239
239
  google_api_client.freeze
240
240
 
241
241
  headers = { :"x-goog-api-client" => google_api_client }
242
+ if credentials.respond_to?(:quota_project_id) && credentials.quota_project_id
243
+ headers[:"x-goog-user-project"] = credentials.quota_project_id
244
+ end
242
245
  headers.merge!(metadata) unless metadata.nil?
243
246
  client_config_file = Pathname.new(__dir__).join(
244
247
  "firestore_client_config.json"
@@ -16,7 +16,7 @@
16
16
  module Google
17
17
  module Cloud
18
18
  module Firestore
19
- VERSION = "1.3.0".freeze
19
+ VERSION = "1.4.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-firestore
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.4.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-03-02 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