google-cloud-firestore 0.26.0 → 0.26.1

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: ec9d1913fdc1c6817571acb97d791e1f452b7a774b8958d0affe0d80d61a3aa7
4
- data.tar.gz: 139129578cb7616d7f3f1b4e8ffc0991913f57982c3c9e66e8b190b5166a0d02
3
+ metadata.gz: 13e08067d2cf6d137bd42758a42d5d6c4857135c92bc97c7384024ffb00d8bde
4
+ data.tar.gz: cc7d1971f8e3ff3917f62a193085fbad1d1c49eec0c254da159c05bb501d65ae
5
5
  SHA512:
6
- metadata.gz: 28805388905373117c1ddb97e176d4e98bb45312ab6e5d2097ffe6dd96af9d6cef799496f3dedf5322f6b712c53091c51fd2e0365120d3c97ccfe2e01fdbe974
7
- data.tar.gz: fe2f0cb02869d789fe5ee18336c3486f099662452ad4ad78676cbe3d7488feb46ef84b162c02508b07352dd785b2c6f0e5672af603dfcd060b62eb4f424b8f9f
6
+ metadata.gz: 19e532ded089afcf078925c2db89faf226834894f640b195e5d9569702a905e97d9ed7df775daef2c99fab0cd2ab19cda3e3d909e4231ecb3e0aafaf5e059984
7
+ data.tar.gz: 4cf4c9117d4df324091b54b41f7fcd763a0b80290bbd2ad5b7cbdfaab92014a20a3d37fc596024281947881f17383e7707a8d61a6b2c820895ee97a256b05d9d
@@ -1,5 +1,9 @@
1
1
  # Release History
2
2
 
3
+ ### 0.26.1 / 2019-07-08
4
+
5
+ * Support overriding service host and port in the low-level interface.
6
+
3
7
  ### 0.26.0 / 2019-06-13
4
8
 
5
9
  BREAKING CHANGE: The default return value of Client#transaction has been
@@ -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::Firestore::V1::FirestoreClient.new(**kwargs)
@@ -188,6 +188,10 @@ module Google
188
188
  # The default timeout, in seconds, for calls made through this client.
189
189
  # @param metadata [Hash]
190
190
  # Default metadata to be sent with each request. This can be overridden on a per call basis.
191
+ # @param service_address [String]
192
+ # Override for the service hostname, or `nil` to leave as the default.
193
+ # @param service_port [Integer]
194
+ # Override for the service port, or `nil` to leave as the default.
191
195
  # @param exception_transformer [Proc]
192
196
  # An optional proc that intercepts any exceptions raised during an API call to inject
193
197
  # custom error handling.
@@ -197,6 +201,8 @@ module Google
197
201
  client_config: {},
198
202
  timeout: DEFAULT_TIMEOUT,
199
203
  metadata: nil,
204
+ service_address: nil,
205
+ service_port: nil,
200
206
  exception_transformer: nil,
201
207
  lib_name: nil,
202
208
  lib_version: ""
@@ -251,8 +257,8 @@ module Google
251
257
  end
252
258
 
253
259
  # Allow overriding the service path/port in subclasses.
254
- service_path = self.class::SERVICE_ADDRESS
255
- port = self.class::DEFAULT_SERVICE_PORT
260
+ service_path = service_address || self.class::SERVICE_ADDRESS
261
+ port = service_port || self.class::DEFAULT_SERVICE_PORT
256
262
  interceptors = self.class::GRPC_INTERCEPTORS
257
263
  @firestore_stub = Google::Gax::Grpc.create_stub(
258
264
  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::Firestore::V1beta1::FirestoreClient.new(**kwargs)
@@ -188,6 +188,10 @@ module Google
188
188
  # The default timeout, in seconds, for calls made through this client.
189
189
  # @param metadata [Hash]
190
190
  # Default metadata to be sent with each request. This can be overridden on a per call basis.
191
+ # @param service_address [String]
192
+ # Override for the service hostname, or `nil` to leave as the default.
193
+ # @param service_port [Integer]
194
+ # Override for the service port, or `nil` to leave as the default.
191
195
  # @param exception_transformer [Proc]
192
196
  # An optional proc that intercepts any exceptions raised during an API call to inject
193
197
  # custom error handling.
@@ -197,6 +201,8 @@ module Google
197
201
  client_config: {},
198
202
  timeout: DEFAULT_TIMEOUT,
199
203
  metadata: nil,
204
+ service_address: nil,
205
+ service_port: nil,
200
206
  exception_transformer: nil,
201
207
  lib_name: nil,
202
208
  lib_version: ""
@@ -251,8 +257,8 @@ module Google
251
257
  end
252
258
 
253
259
  # Allow overriding the service path/port in subclasses.
254
- service_path = self.class::SERVICE_ADDRESS
255
- port = self.class::DEFAULT_SERVICE_PORT
260
+ service_path = service_address || self.class::SERVICE_ADDRESS
261
+ port = service_port || self.class::DEFAULT_SERVICE_PORT
256
262
  interceptors = self.class::GRPC_INTERCEPTORS
257
263
  @firestore_stub = Google::Gax::Grpc.create_stub(
258
264
  service_path,
@@ -16,7 +16,7 @@
16
16
  module Google
17
17
  module Cloud
18
18
  module Firestore
19
- VERSION = "0.26.0".freeze
19
+ VERSION = "0.26.1".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-firestore
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.26.0
4
+ version: 0.26.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google Inc
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-cloud-core
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '1.0'
33
+ version: '1.7'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '1.0'
40
+ version: '1.7'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: concurrent-ruby
43
43
  requirement: !ruby/object:Gem::Requirement