google-cloud-redis 0.4.0 → 0.5.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: daa5d848262260c423a5e94f8e0fb5435f8a2ee14a07da9f5149284f0f1eac0f
4
- data.tar.gz: 1bd8d217b08af39038a6549c330e849b75ee811d691bb201a67c92e9016675a9
3
+ metadata.gz: de8a5586d37378e599ef50f7b863de0917cce7f7218a2bb7236613af2996cffd
4
+ data.tar.gz: b7c56741d2dbc60e44849765d03f5ab0ca9446a1c27eee73f63d7374c34a9513
5
5
  SHA512:
6
- metadata.gz: b3a17b7ce2507c765af55b03b45829352754450eadcd448ebf018c7bd8762f557a801b50ae78bb1eb79f54635935acd017bbd4a0a2df445c43b9d221dcf87558
7
- data.tar.gz: 920098ec49c9a73df79b8e08f1dfb11092d86b581fb34370ceaf8733081b4430b2f42a84590120f1fdf2408cc3722e509cf3a31870f55dee600b30089ec5a7d5
6
+ metadata.gz: bdfef3d9caa343bd07c98e6b0a8c3bd7d8884dc7f42142ac6fecd934bff118f832c183bb1ce42a9b186d9b6d6cc56495c8399de97b0bf1c1b67d8e94b8c3f0f9
7
+ data.tar.gz: 8a96a74abf1f87b6a485a9c94c4f9827df33b16933b7e8c01b2dda8d94db6610c2c987c9ad252868afed4c01f5f3abaa779d868801cb36479743369e971edae0
@@ -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,
@@ -16,7 +16,7 @@
16
16
  module Google
17
17
  module Cloud
18
18
  module Redis
19
- VERSION = "0.4.0".freeze
19
+ VERSION = "0.5.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.4.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-06-13 00:00:00.000000000 Z
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.3'
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.3'
26
+ version: '1.7'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: googleapis-common-protos
29
29
  requirement: !ruby/object:Gem::Requirement