google-cloud-firestore-v1 0.4.3 → 0.4.4
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: caff5a90ad86b9e2286c019fda5d74ad2be02ea0ee356159ace27292b581f5c1
|
4
|
+
data.tar.gz: 376b85b0ea7e53d4849be76978d107310836edc59e792364a5c2302b37ad3b0c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4321c314895807c9faf1198cb2ae2cb46799afee72cdc5990266e9a9938d57e572be10fd2e533bdd2712a06293531352305784722699075e091480a6f728a3ea
|
7
|
+
data.tar.gz: 99d05447c328b45e7e618849d8ec890817024aee4fd505211ca82a2c5c3c0ed1bf3f4a3d405439124cfb9ac4f289a89fdb9ade8bb99eff501cafe9c605bbbc4c
|
@@ -46,13 +46,12 @@ module Google
|
|
46
46
|
# See {::Google::Cloud::Firestore::V1::Firestore::Client::Configuration}
|
47
47
|
# for a description of the configuration fields.
|
48
48
|
#
|
49
|
-
#
|
49
|
+
# @example
|
50
50
|
#
|
51
|
-
#
|
52
|
-
#
|
53
|
-
#
|
54
|
-
#
|
55
|
-
# end
|
51
|
+
# # Modify the configuration for all Firestore clients
|
52
|
+
# ::Google::Cloud::Firestore::V1::Firestore::Client.configure do |config|
|
53
|
+
# config.timeout = 10.0
|
54
|
+
# end
|
56
55
|
#
|
57
56
|
# @yield [config] Configure the Client client.
|
58
57
|
# @yieldparam config [Client::Configuration]
|
@@ -171,19 +170,15 @@ module Google
|
|
171
170
|
##
|
172
171
|
# Create a new Firestore client object.
|
173
172
|
#
|
174
|
-
#
|
175
|
-
#
|
176
|
-
# To create a new Firestore client with the default
|
177
|
-
# configuration:
|
178
|
-
#
|
179
|
-
# client = ::Google::Cloud::Firestore::V1::Firestore::Client.new
|
173
|
+
# @example
|
180
174
|
#
|
181
|
-
#
|
182
|
-
#
|
175
|
+
# # Create a client using the default configuration
|
176
|
+
# client = ::Google::Cloud::Firestore::V1::Firestore::Client.new
|
183
177
|
#
|
184
|
-
#
|
185
|
-
#
|
186
|
-
#
|
178
|
+
# # Create a client using a custom configuration
|
179
|
+
# client = ::Google::Cloud::Firestore::V1::Firestore::Client.new do |config|
|
180
|
+
# config.timeout = 10.0
|
181
|
+
# end
|
187
182
|
#
|
188
183
|
# @yield [config] Configure the Firestore client.
|
189
184
|
# @yieldparam config [Client::Configuration]
|
@@ -203,10 +198,9 @@ module Google
|
|
203
198
|
|
204
199
|
# Create credentials
|
205
200
|
credentials = @config.credentials
|
206
|
-
# Use self-signed JWT if the
|
201
|
+
# Use self-signed JWT if the endpoint is unchanged from default,
|
207
202
|
# but only if the default endpoint does not have a region prefix.
|
208
|
-
enable_self_signed_jwt = @config.
|
209
|
-
@config.endpoint == Client.configure.endpoint &&
|
203
|
+
enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
|
210
204
|
!@config.endpoint.split(".").first.include?("-")
|
211
205
|
credentials ||= Credentials.default scope: @config.scope,
|
212
206
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -293,7 +287,9 @@ module Google
|
|
293
287
|
options.apply_defaults timeout: @config.rpcs.get_document.timeout,
|
294
288
|
metadata: metadata,
|
295
289
|
retry_policy: @config.rpcs.get_document.retry_policy
|
296
|
-
|
290
|
+
|
291
|
+
options.apply_defaults timeout: @config.timeout,
|
292
|
+
metadata: @config.metadata,
|
297
293
|
retry_policy: @config.retry_policy
|
298
294
|
|
299
295
|
@firestore_stub.call_rpc :get_document, request, options: options do |response, operation|
|
@@ -392,7 +388,9 @@ module Google
|
|
392
388
|
options.apply_defaults timeout: @config.rpcs.list_documents.timeout,
|
393
389
|
metadata: metadata,
|
394
390
|
retry_policy: @config.rpcs.list_documents.retry_policy
|
395
|
-
|
391
|
+
|
392
|
+
options.apply_defaults timeout: @config.timeout,
|
393
|
+
metadata: @config.metadata,
|
396
394
|
retry_policy: @config.retry_policy
|
397
395
|
|
398
396
|
@firestore_stub.call_rpc :list_documents, request, options: options do |response, operation|
|
@@ -476,7 +474,9 @@ module Google
|
|
476
474
|
options.apply_defaults timeout: @config.rpcs.update_document.timeout,
|
477
475
|
metadata: metadata,
|
478
476
|
retry_policy: @config.rpcs.update_document.retry_policy
|
479
|
-
|
477
|
+
|
478
|
+
options.apply_defaults timeout: @config.timeout,
|
479
|
+
metadata: @config.metadata,
|
480
480
|
retry_policy: @config.retry_policy
|
481
481
|
|
482
482
|
@firestore_stub.call_rpc :update_document, request, options: options do |response, operation|
|
@@ -546,7 +546,9 @@ module Google
|
|
546
546
|
options.apply_defaults timeout: @config.rpcs.delete_document.timeout,
|
547
547
|
metadata: metadata,
|
548
548
|
retry_policy: @config.rpcs.delete_document.retry_policy
|
549
|
-
|
549
|
+
|
550
|
+
options.apply_defaults timeout: @config.timeout,
|
551
|
+
metadata: @config.metadata,
|
550
552
|
retry_policy: @config.retry_policy
|
551
553
|
|
552
554
|
@firestore_stub.call_rpc :delete_document, request, options: options do |response, operation|
|
@@ -636,7 +638,9 @@ module Google
|
|
636
638
|
options.apply_defaults timeout: @config.rpcs.batch_get_documents.timeout,
|
637
639
|
metadata: metadata,
|
638
640
|
retry_policy: @config.rpcs.batch_get_documents.retry_policy
|
639
|
-
|
641
|
+
|
642
|
+
options.apply_defaults timeout: @config.timeout,
|
643
|
+
metadata: @config.metadata,
|
640
644
|
retry_policy: @config.retry_policy
|
641
645
|
|
642
646
|
@firestore_stub.call_rpc :batch_get_documents, request, options: options do |response, operation|
|
@@ -706,7 +710,9 @@ module Google
|
|
706
710
|
options.apply_defaults timeout: @config.rpcs.begin_transaction.timeout,
|
707
711
|
metadata: metadata,
|
708
712
|
retry_policy: @config.rpcs.begin_transaction.retry_policy
|
709
|
-
|
713
|
+
|
714
|
+
options.apply_defaults timeout: @config.timeout,
|
715
|
+
metadata: @config.metadata,
|
710
716
|
retry_policy: @config.retry_policy
|
711
717
|
|
712
718
|
@firestore_stub.call_rpc :begin_transaction, request, options: options do |response, operation|
|
@@ -779,7 +785,9 @@ module Google
|
|
779
785
|
options.apply_defaults timeout: @config.rpcs.commit.timeout,
|
780
786
|
metadata: metadata,
|
781
787
|
retry_policy: @config.rpcs.commit.retry_policy
|
782
|
-
|
788
|
+
|
789
|
+
options.apply_defaults timeout: @config.timeout,
|
790
|
+
metadata: @config.metadata,
|
783
791
|
retry_policy: @config.retry_policy
|
784
792
|
|
785
793
|
@firestore_stub.call_rpc :commit, request, options: options do |response, operation|
|
@@ -848,7 +856,9 @@ module Google
|
|
848
856
|
options.apply_defaults timeout: @config.rpcs.rollback.timeout,
|
849
857
|
metadata: metadata,
|
850
858
|
retry_policy: @config.rpcs.rollback.retry_policy
|
851
|
-
|
859
|
+
|
860
|
+
options.apply_defaults timeout: @config.timeout,
|
861
|
+
metadata: @config.metadata,
|
852
862
|
retry_policy: @config.retry_policy
|
853
863
|
|
854
864
|
@firestore_stub.call_rpc :rollback, request, options: options do |response, operation|
|
@@ -931,7 +941,9 @@ module Google
|
|
931
941
|
options.apply_defaults timeout: @config.rpcs.run_query.timeout,
|
932
942
|
metadata: metadata,
|
933
943
|
retry_policy: @config.rpcs.run_query.retry_policy
|
934
|
-
|
944
|
+
|
945
|
+
options.apply_defaults timeout: @config.timeout,
|
946
|
+
metadata: @config.metadata,
|
935
947
|
retry_policy: @config.retry_policy
|
936
948
|
|
937
949
|
@firestore_stub.call_rpc :run_query, request, options: options do |response, operation|
|
@@ -1038,7 +1050,9 @@ module Google
|
|
1038
1050
|
options.apply_defaults timeout: @config.rpcs.partition_query.timeout,
|
1039
1051
|
metadata: metadata,
|
1040
1052
|
retry_policy: @config.rpcs.partition_query.retry_policy
|
1041
|
-
|
1053
|
+
|
1054
|
+
options.apply_defaults timeout: @config.timeout,
|
1055
|
+
metadata: @config.metadata,
|
1042
1056
|
retry_policy: @config.retry_policy
|
1043
1057
|
|
1044
1058
|
@firestore_stub.call_rpc :partition_query, request, options: options do |response, operation|
|
@@ -1091,7 +1105,9 @@ module Google
|
|
1091
1105
|
options.apply_defaults timeout: @config.rpcs.write.timeout,
|
1092
1106
|
metadata: metadata,
|
1093
1107
|
retry_policy: @config.rpcs.write.retry_policy
|
1094
|
-
|
1108
|
+
|
1109
|
+
options.apply_defaults timeout: @config.timeout,
|
1110
|
+
metadata: @config.metadata,
|
1095
1111
|
retry_policy: @config.retry_policy
|
1096
1112
|
|
1097
1113
|
@firestore_stub.call_rpc :write, request, options: options do |response, operation|
|
@@ -1143,7 +1159,9 @@ module Google
|
|
1143
1159
|
options.apply_defaults timeout: @config.rpcs.listen.timeout,
|
1144
1160
|
metadata: metadata,
|
1145
1161
|
retry_policy: @config.rpcs.listen.retry_policy
|
1146
|
-
|
1162
|
+
|
1163
|
+
options.apply_defaults timeout: @config.timeout,
|
1164
|
+
metadata: @config.metadata,
|
1147
1165
|
retry_policy: @config.retry_policy
|
1148
1166
|
|
1149
1167
|
@firestore_stub.call_rpc :listen, request, options: options do |response, operation|
|
@@ -1217,7 +1235,9 @@ module Google
|
|
1217
1235
|
options.apply_defaults timeout: @config.rpcs.list_collection_ids.timeout,
|
1218
1236
|
metadata: metadata,
|
1219
1237
|
retry_policy: @config.rpcs.list_collection_ids.retry_policy
|
1220
|
-
|
1238
|
+
|
1239
|
+
options.apply_defaults timeout: @config.timeout,
|
1240
|
+
metadata: @config.metadata,
|
1221
1241
|
retry_policy: @config.retry_policy
|
1222
1242
|
|
1223
1243
|
@firestore_stub.call_rpc :list_collection_ids, request, options: options do |response, operation|
|
@@ -1300,7 +1320,9 @@ module Google
|
|
1300
1320
|
options.apply_defaults timeout: @config.rpcs.batch_write.timeout,
|
1301
1321
|
metadata: metadata,
|
1302
1322
|
retry_policy: @config.rpcs.batch_write.retry_policy
|
1303
|
-
|
1323
|
+
|
1324
|
+
options.apply_defaults timeout: @config.timeout,
|
1325
|
+
metadata: @config.metadata,
|
1304
1326
|
retry_policy: @config.retry_policy
|
1305
1327
|
|
1306
1328
|
@firestore_stub.call_rpc :batch_write, request, options: options do |response, operation|
|
@@ -1382,7 +1404,9 @@ module Google
|
|
1382
1404
|
options.apply_defaults timeout: @config.rpcs.create_document.timeout,
|
1383
1405
|
metadata: metadata,
|
1384
1406
|
retry_policy: @config.rpcs.create_document.retry_policy
|
1385
|
-
|
1407
|
+
|
1408
|
+
options.apply_defaults timeout: @config.timeout,
|
1409
|
+
metadata: @config.metadata,
|
1386
1410
|
retry_policy: @config.retry_policy
|
1387
1411
|
|
1388
1412
|
@firestore_stub.call_rpc :create_document, request, options: options do |response, operation|
|
@@ -1406,22 +1430,21 @@ module Google
|
|
1406
1430
|
# Configuration can be applied globally to all clients, or to a single client
|
1407
1431
|
# on construction.
|
1408
1432
|
#
|
1409
|
-
#
|
1410
|
-
#
|
1411
|
-
#
|
1412
|
-
# to 20 seconds,
|
1413
|
-
#
|
1414
|
-
#
|
1415
|
-
#
|
1416
|
-
#
|
1417
|
-
#
|
1418
|
-
#
|
1419
|
-
#
|
1420
|
-
#
|
1421
|
-
#
|
1422
|
-
#
|
1423
|
-
#
|
1424
|
-
# end
|
1433
|
+
# @example
|
1434
|
+
#
|
1435
|
+
# # Modify the global config, setting the timeout for
|
1436
|
+
# # get_document to 20 seconds,
|
1437
|
+
# # and all remaining timeouts to 10 seconds.
|
1438
|
+
# ::Google::Cloud::Firestore::V1::Firestore::Client.configure do |config|
|
1439
|
+
# config.timeout = 10.0
|
1440
|
+
# config.rpcs.get_document.timeout = 20.0
|
1441
|
+
# end
|
1442
|
+
#
|
1443
|
+
# # Apply the above configuration only to a new client.
|
1444
|
+
# client = ::Google::Cloud::Firestore::V1::Firestore::Client.new do |config|
|
1445
|
+
# config.timeout = 10.0
|
1446
|
+
# config.rpcs.get_document.timeout = 20.0
|
1447
|
+
# end
|
1425
1448
|
#
|
1426
1449
|
# @!attribute [rw] endpoint
|
1427
1450
|
# The hostname or hostname:port of the service endpoint.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-firestore-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-08-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.7'
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.a
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: '0.
|
29
|
+
version: '0.7'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|