google-cloud-firestore 0.26.0 → 0.26.1
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 +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/google/cloud/firestore/v1.rb +8 -0
- data/lib/google/cloud/firestore/v1/firestore_client.rb +8 -2
- data/lib/google/cloud/firestore/v1beta1.rb +8 -0
- data/lib/google/cloud/firestore/v1beta1/firestore_client.rb +8 -2
- data/lib/google/cloud/firestore/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: 13e08067d2cf6d137bd42758a42d5d6c4857135c92bc97c7384024ffb00d8bde
|
4
|
+
data.tar.gz: cc7d1971f8e3ff3917f62a193085fbad1d1c49eec0c254da159c05bb501d65ae
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 19e532ded089afcf078925c2db89faf226834894f640b195e5d9569702a905e97d9ed7df775daef2c99fab0cd2ab19cda3e3d909e4231ecb3e0aafaf5e059984
|
7
|
+
data.tar.gz: 4cf4c9117d4df324091b54b41f7fcd763a0b80290bbd2ad5b7cbdfaab92014a20a3d37fc596024281947881f17383e7707a8d61a6b2c820895ee97a256b05d9d
|
data/CHANGELOG.md
CHANGED
@@ -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,
|
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.
|
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-
|
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.
|
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.
|
40
|
+
version: '1.7'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: concurrent-ruby
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|