google-cloud-redis 0.7.1 → 0.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: d0570228d910b750db8c495c53e5e8ff77270e1697f1a30b62b792c6e90d3d66
4
- data.tar.gz: a871a8c5b95d6131b3fb7309a1ce6b8434fc22aec2f63bc55caf864994e5aef8
3
+ metadata.gz: a9b727610a4671400d1ff1eb5d6014d116f7dc2bf2bf5914a19ed31802ac9172
4
+ data.tar.gz: 31662dff8cf9b9ea74da77ad1c289e6847da9dd379642d945228e4eba93f7f8b
5
5
  SHA512:
6
- metadata.gz: f903bcbb19c30d9fb74ec9ca170794b2329711eed2c111efdc8a85595f25e430259c681a31676b2c119e291809d49d97945691f2576b501b64f09698eeb9d98d
7
- data.tar.gz: d5ed36f2c3d757096c3b60713ce627c3d8f62f70c9fe23a33f1566ef2e297534e81e07dd1a2e70bacf734e8a35fa9bbf9f78b3ce4d9fb3eb4841e7a2d33da411
6
+ metadata.gz: 96d5d002687a23fdabd88e4a614dc0f9941faf003e9e9e0e9abfce59e224483c303174a00893047c7422b340f406b901da8dc179eba484d9c869e24b626398d0
7
+ data.tar.gz: 5cfbf2620ab96c3f7c66c4022393f63b842f4b573af87f3dee4d1e5e11feb763a8f3c763bc6525f2c518b4aa8789f2683fb399b4b8fd311ffdf8d348d986d7c2
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Ruby Client for Google Cloud Memorystore for Redis API ([Alpha](https://github.com/googleapis/google-cloud-ruby#versioning))
1
+ # Ruby Client for Google Cloud Memorystore for Redis API
2
2
 
3
3
  [Google Cloud Memorystore for Redis API][Product Documentation]:
4
4
  Creates and manages Redis instances on the Google Cloud Platform.
@@ -21,7 +21,7 @@ module Google
21
21
  # rubocop:disable LineLength
22
22
 
23
23
  ##
24
- # # Ruby Client for Google Cloud Memorystore for Redis API ([Alpha](https://github.com/googleapis/google-cloud-ruby#versioning))
24
+ # # Ruby Client for Google Cloud Memorystore for Redis API
25
25
  #
26
26
  # [Google Cloud Memorystore for Redis API][Product Documentation]:
27
27
  # Creates and manages Redis instances on the Google Cloud Platform.
@@ -22,7 +22,7 @@ module Google
22
22
  # rubocop:disable LineLength
23
23
 
24
24
  ##
25
- # # Ruby Client for Google Cloud Memorystore for Redis API ([Alpha](https://github.com/googleapis/google-cloud-ruby#versioning))
25
+ # # Ruby Client for Google Cloud Memorystore for Redis API
26
26
  #
27
27
  # [Google Cloud Memorystore for Redis API][Product Documentation]:
28
28
  # Creates and manages Redis instances on the Google Cloud Platform.
@@ -214,6 +214,9 @@ module Google
214
214
  google_api_client.freeze
215
215
 
216
216
  headers = { :"x-goog-api-client" => google_api_client }
217
+ if credentials.respond_to?(:quota_project_id) && credentials.quota_project_id
218
+ headers[:"x-goog-user-project"] = credentials.quota_project_id
219
+ end
217
220
  headers.merge!(metadata) unless metadata.nil?
218
221
  client_config_file = Pathname.new(__dir__).join(
219
222
  "cloud_redis_client_config.json"
@@ -22,7 +22,7 @@ module Google
22
22
  # rubocop:disable LineLength
23
23
 
24
24
  ##
25
- # # Ruby Client for Google Cloud Memorystore for Redis API ([Alpha](https://github.com/googleapis/google-cloud-ruby#versioning))
25
+ # # Ruby Client for Google Cloud Memorystore for Redis API
26
26
  #
27
27
  # [Google Cloud Memorystore for Redis API][Product Documentation]:
28
28
  # Creates and manages Redis instances on the Google Cloud Platform.
@@ -214,6 +214,9 @@ module Google
214
214
  google_api_client.freeze
215
215
 
216
216
  headers = { :"x-goog-api-client" => google_api_client }
217
+ if credentials.respond_to?(:quota_project_id) && credentials.quota_project_id
218
+ headers[:"x-goog-user-project"] = credentials.quota_project_id
219
+ end
217
220
  headers.merge!(metadata) unless metadata.nil?
218
221
  client_config_file = Pathname.new(__dir__).join(
219
222
  "cloud_redis_client_config.json"
@@ -16,7 +16,7 @@
16
16
  module Google
17
17
  module Cloud
18
18
  module Redis
19
- VERSION = "0.7.1".freeze
19
+ VERSION = "0.8.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-redis
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.1
4
+ version: 0.8.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-13 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