google-cloud-redis 0.4.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/redis.rb +4 -0
- data/lib/google/cloud/redis/v1.rb +8 -0
- data/lib/google/cloud/redis/v1/cloud_redis_client.rb +11 -2
- data/lib/google/cloud/redis/v1beta1.rb +8 -0
- data/lib/google/cloud/redis/v1beta1/cloud_redis_client.rb +11 -2
- data/lib/google/cloud/redis/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: de8a5586d37378e599ef50f7b863de0917cce7f7218a2bb7236613af2996cffd
|
4
|
+
data.tar.gz: b7c56741d2dbc60e44849765d03f5ab0ca9446a1c27eee73f63d7374c34a9513
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bdfef3d9caa343bd07c98e6b0a8c3bd7d8884dc7f42142ac6fecd934bff118f832c183bb1ce42a9b186d9b6d6cc56495c8399de97b0bf1c1b67d8e94b8c3f0f9
|
7
|
+
data.tar.gz: 8a96a74abf1f87b6a485a9c94c4f9827df33b16933b7e8c01b2dda8d94db6610c2c987c9ad252868afed4c01f5f3abaa779d868801cb36479743369e971edae0
|
data/lib/google/cloud/redis.rb
CHANGED
@@ -133,6 +133,10 @@ module Google
|
|
133
133
|
# The default timeout, in seconds, for calls made through this client.
|
134
134
|
# @param metadata [Hash]
|
135
135
|
# Default metadata to be sent with each request. This can be overridden on a per call basis.
|
136
|
+
# @param service_address [String]
|
137
|
+
# Override for the service hostname, or `nil` to leave as the default.
|
138
|
+
# @param service_port [Integer]
|
139
|
+
# Override for the service port, or `nil` to leave as the default.
|
136
140
|
# @param exception_transformer [Proc]
|
137
141
|
# An optional proc that intercepts any exceptions raised during an API call to inject
|
138
142
|
# custom error handling.
|
@@ -122,6 +122,10 @@ module Google
|
|
122
122
|
# The default timeout, in seconds, for calls made through this client.
|
123
123
|
# @param metadata [Hash]
|
124
124
|
# Default metadata to be sent with each request. This can be overridden on a per call basis.
|
125
|
+
# @param service_address [String]
|
126
|
+
# Override for the service hostname, or `nil` to leave as the default.
|
127
|
+
# @param service_port [Integer]
|
128
|
+
# Override for the service port, or `nil` to leave as the default.
|
125
129
|
# @param exception_transformer [Proc]
|
126
130
|
# An optional proc that intercepts any exceptions raised during an API call to inject
|
127
131
|
# custom error handling.
|
@@ -131,6 +135,8 @@ module Google
|
|
131
135
|
client_config: nil,
|
132
136
|
timeout: nil,
|
133
137
|
metadata: nil,
|
138
|
+
service_address: nil,
|
139
|
+
service_port: nil,
|
134
140
|
exception_transformer: nil,
|
135
141
|
lib_name: nil,
|
136
142
|
lib_version: nil
|
@@ -142,6 +148,8 @@ module Google
|
|
142
148
|
metadata: metadata,
|
143
149
|
exception_transformer: exception_transformer,
|
144
150
|
lib_name: lib_name,
|
151
|
+
service_address: service_address,
|
152
|
+
service_port: service_port,
|
145
153
|
lib_version: lib_version
|
146
154
|
}.select { |_, v| v != nil }
|
147
155
|
Google::Cloud::Redis::V1::CloudRedisClient.new(**kwargs)
|
@@ -151,6 +151,10 @@ module Google
|
|
151
151
|
# The default timeout, in seconds, for calls made through this client.
|
152
152
|
# @param metadata [Hash]
|
153
153
|
# Default metadata to be sent with each request. This can be overridden on a per call basis.
|
154
|
+
# @param service_address [String]
|
155
|
+
# Override for the service hostname, or `nil` to leave as the default.
|
156
|
+
# @param service_port [Integer]
|
157
|
+
# Override for the service port, or `nil` to leave as the default.
|
154
158
|
# @param exception_transformer [Proc]
|
155
159
|
# An optional proc that intercepts any exceptions raised during an API call to inject
|
156
160
|
# custom error handling.
|
@@ -160,6 +164,8 @@ module Google
|
|
160
164
|
client_config: {},
|
161
165
|
timeout: DEFAULT_TIMEOUT,
|
162
166
|
metadata: nil,
|
167
|
+
service_address: nil,
|
168
|
+
service_port: nil,
|
163
169
|
exception_transformer: nil,
|
164
170
|
lib_name: nil,
|
165
171
|
lib_version: ""
|
@@ -177,7 +183,10 @@ module Google
|
|
177
183
|
client_config: client_config,
|
178
184
|
timeout: timeout,
|
179
185
|
lib_name: lib_name,
|
186
|
+
service_address: service_address,
|
187
|
+
service_port: service_port,
|
180
188
|
lib_version: lib_version,
|
189
|
+
metadata: metadata,
|
181
190
|
)
|
182
191
|
|
183
192
|
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
@@ -223,8 +232,8 @@ module Google
|
|
223
232
|
end
|
224
233
|
|
225
234
|
# Allow overriding the service path/port in subclasses.
|
226
|
-
service_path = self.class::SERVICE_ADDRESS
|
227
|
-
port = self.class::DEFAULT_SERVICE_PORT
|
235
|
+
service_path = service_address || self.class::SERVICE_ADDRESS
|
236
|
+
port = service_port || self.class::DEFAULT_SERVICE_PORT
|
228
237
|
interceptors = self.class::GRPC_INTERCEPTORS
|
229
238
|
@cloud_redis_stub = Google::Gax::Grpc.create_stub(
|
230
239
|
service_path,
|
@@ -122,6 +122,10 @@ module Google
|
|
122
122
|
# The default timeout, in seconds, for calls made through this client.
|
123
123
|
# @param metadata [Hash]
|
124
124
|
# Default metadata to be sent with each request. This can be overridden on a per call basis.
|
125
|
+
# @param service_address [String]
|
126
|
+
# Override for the service hostname, or `nil` to leave as the default.
|
127
|
+
# @param service_port [Integer]
|
128
|
+
# Override for the service port, or `nil` to leave as the default.
|
125
129
|
# @param exception_transformer [Proc]
|
126
130
|
# An optional proc that intercepts any exceptions raised during an API call to inject
|
127
131
|
# custom error handling.
|
@@ -131,6 +135,8 @@ module Google
|
|
131
135
|
client_config: nil,
|
132
136
|
timeout: nil,
|
133
137
|
metadata: nil,
|
138
|
+
service_address: nil,
|
139
|
+
service_port: nil,
|
134
140
|
exception_transformer: nil,
|
135
141
|
lib_name: nil,
|
136
142
|
lib_version: nil
|
@@ -142,6 +148,8 @@ module Google
|
|
142
148
|
metadata: metadata,
|
143
149
|
exception_transformer: exception_transformer,
|
144
150
|
lib_name: lib_name,
|
151
|
+
service_address: service_address,
|
152
|
+
service_port: service_port,
|
145
153
|
lib_version: lib_version
|
146
154
|
}.select { |_, v| v != nil }
|
147
155
|
Google::Cloud::Redis::V1beta1::CloudRedisClient.new(**kwargs)
|
@@ -151,6 +151,10 @@ module Google
|
|
151
151
|
# The default timeout, in seconds, for calls made through this client.
|
152
152
|
# @param metadata [Hash]
|
153
153
|
# Default metadata to be sent with each request. This can be overridden on a per call basis.
|
154
|
+
# @param service_address [String]
|
155
|
+
# Override for the service hostname, or `nil` to leave as the default.
|
156
|
+
# @param service_port [Integer]
|
157
|
+
# Override for the service port, or `nil` to leave as the default.
|
154
158
|
# @param exception_transformer [Proc]
|
155
159
|
# An optional proc that intercepts any exceptions raised during an API call to inject
|
156
160
|
# custom error handling.
|
@@ -160,6 +164,8 @@ module Google
|
|
160
164
|
client_config: {},
|
161
165
|
timeout: DEFAULT_TIMEOUT,
|
162
166
|
metadata: nil,
|
167
|
+
service_address: nil,
|
168
|
+
service_port: nil,
|
163
169
|
exception_transformer: nil,
|
164
170
|
lib_name: nil,
|
165
171
|
lib_version: ""
|
@@ -177,7 +183,10 @@ module Google
|
|
177
183
|
client_config: client_config,
|
178
184
|
timeout: timeout,
|
179
185
|
lib_name: lib_name,
|
186
|
+
service_address: service_address,
|
187
|
+
service_port: service_port,
|
180
188
|
lib_version: lib_version,
|
189
|
+
metadata: metadata,
|
181
190
|
)
|
182
191
|
|
183
192
|
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
@@ -223,8 +232,8 @@ module Google
|
|
223
232
|
end
|
224
233
|
|
225
234
|
# Allow overriding the service path/port in subclasses.
|
226
|
-
service_path = self.class::SERVICE_ADDRESS
|
227
|
-
port = self.class::DEFAULT_SERVICE_PORT
|
235
|
+
service_path = service_address || self.class::SERVICE_ADDRESS
|
236
|
+
port = service_port || self.class::DEFAULT_SERVICE_PORT
|
228
237
|
interceptors = self.class::GRPC_INTERCEPTORS
|
229
238
|
@cloud_redis_stub = Google::Gax::Grpc.create_stub(
|
230
239
|
service_path,
|
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.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: 2019-
|
11
|
+
date: 2019-07-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-gax
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '1.
|
19
|
+
version: '1.7'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '1.
|
26
|
+
version: '1.7'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: googleapis-common-protos
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|