google-cloud-datastore 1.7.3 → 1.8.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: 9f2ebaa4ef5f6df793ea6c9ce94ae2f3f0d4f6a130a89b57982fbdc783aad3ff
4
- data.tar.gz: e2f10484c3750fb62120887e7252866b105acc4849d7c32b50750bbe66a3d411
3
+ metadata.gz: 24443175e79fea809e939ff9a0270b29267fc9adaffb9ed0aae19728fd296904
4
+ data.tar.gz: 04cad098d4bc8d86d4d95ca8aeef0eab46f57491fc4c0b5dd32640587d383604
5
5
  SHA512:
6
- metadata.gz: c3601afcabc92f1c253b121e7e9a0c8c4ce6344023c6ab7b605b1e810c514a169985bd26e92bdaeeb088b082dc5451abc04aa08f63e852066a20bdef236c77bc
7
- data.tar.gz: bb94e78fbfe0cad10d00e1f250747cc0d4c23862ee0f6d01d70fc936c6c2d92dfb9e60daebe87b1fc4d9415cbc25532ca1d97cf72705754266014f24ce90f2a8
6
+ metadata.gz: 0423c4729d6962cf87e42641a838554521e22f4390146480d3e296c3e3f2d9a385958113c223b3d080bc4ef5311359c56ce6967011deaf8672d4521261aee24d
7
+ data.tar.gz: 3fbfeb296dcfd2d59779e2c971bae80e149804242a9962cc877bef8c79580700846f07f21cec5fefd96a6fd722c040632acdbf89d3a2fc629bbf476188d8fadd
@@ -1,5 +1,11 @@
1
1
  # Release History
2
2
 
3
+ ### 1.8.0 / 2020-03-11
4
+
5
+ #### Features
6
+
7
+ * Support separate project setting for quota/billing
8
+
3
9
  ### 1.7.3 / 2020-01-23
4
10
 
5
11
  #### Documentation
@@ -142,6 +142,9 @@ module Google
142
142
  google_api_client.freeze
143
143
 
144
144
  headers = { :"x-goog-api-client" => google_api_client }
145
+ if credentials.respond_to?(:quota_project_id) && credentials.quota_project_id
146
+ headers[:"x-goog-user-project"] = credentials.quota_project_id
147
+ end
145
148
  headers.merge!(metadata) unless metadata.nil?
146
149
  client_config_file = Pathname.new(__dir__).join(
147
150
  "datastore_client_config.json"
@@ -16,7 +16,7 @@
16
16
  module Google
17
17
  module Cloud
18
18
  module Datastore
19
- VERSION = "1.7.3".freeze
19
+ VERSION = "1.8.0".freeze
20
20
  end
21
21
  end
22
22
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-datastore
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.3
4
+ version: 1.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Moore
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2020-01-23 00:00:00.000000000 Z
12
+ date: 2020-03-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: google-cloud-core