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 +4 -4
- data/README.md +1 -1
- data/lib/google/cloud/redis.rb +1 -1
- data/lib/google/cloud/redis/v1.rb +1 -1
- data/lib/google/cloud/redis/v1/cloud_redis_client.rb +3 -0
- data/lib/google/cloud/redis/v1beta1.rb +1 -1
- data/lib/google/cloud/redis/v1beta1/cloud_redis_client.rb +3 -0
- data/lib/google/cloud/redis/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a9b727610a4671400d1ff1eb5d6014d116f7dc2bf2bf5914a19ed31802ac9172
|
4
|
+
data.tar.gz: 31662dff8cf9b9ea74da77ad1c289e6847da9dd379642d945228e4eba93f7f8b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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.
|
data/lib/google/cloud/redis.rb
CHANGED
@@ -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
|
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
|
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
|
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"
|
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.
|
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-
|
11
|
+
date: 2020-03-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-gax
|