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: 8138ed482f70c35a4ea0a50a6ad1268d647d8253814d7715dfd10118247a56d8
4
- data.tar.gz: 98afa47d663cebba3b8163220c40eb982a2c69b8ae797d2bbc541f25699d044f
3
+ metadata.gz: caff5a90ad86b9e2286c019fda5d74ad2be02ea0ee356159ace27292b581f5c1
4
+ data.tar.gz: 376b85b0ea7e53d4849be76978d107310836edc59e792364a5c2302b37ad3b0c
5
5
  SHA512:
6
- metadata.gz: 04c8ee4aa436e41b3ef6e924e4f94d632f2b5a0fdc9a5981586e72c6cd0a863b9b5fd5d8df7b811110d8e568ad06086b9fa77ce3dae5aea488fa71beb6955e3c
7
- data.tar.gz: 6e0677e76755f583a9ef3853b5ca338dd042e0fcde45aaedf2fef84e6082e96a01bbd97f9bc515b8376d28f5700624381a91fc76f522ee74acd7bebf089a2387
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
- # ## Example
49
+ # @example
50
50
  #
51
- # To modify the configuration for all Firestore clients:
52
- #
53
- # ::Google::Cloud::Firestore::V1::Firestore::Client.configure do |config|
54
- # config.timeout = 10.0
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
- # ## Examples
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
- # To create a new Firestore client with a custom
182
- # configuration:
175
+ # # Create a client using the default configuration
176
+ # client = ::Google::Cloud::Firestore::V1::Firestore::Client.new
183
177
  #
184
- # client = ::Google::Cloud::Firestore::V1::Firestore::Client.new do |config|
185
- # config.timeout = 10.0
186
- # end
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 scope and endpoint are unchanged from default,
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.scope == Client.configure.scope &&
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- # # Examples
1410
- #
1411
- # To modify the global config, setting the timeout for get_document
1412
- # to 20 seconds, and all remaining timeouts to 10 seconds:
1413
- #
1414
- # ::Google::Cloud::Firestore::V1::Firestore::Client.configure do |config|
1415
- # config.timeout = 10.0
1416
- # config.rpcs.get_document.timeout = 20.0
1417
- # end
1418
- #
1419
- # To apply the above configuration only to a new client:
1420
- #
1421
- # client = ::Google::Cloud::Firestore::V1::Firestore::Client.new do |config|
1422
- # config.timeout = 10.0
1423
- # config.rpcs.get_document.timeout = 20.0
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.
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Firestore
23
23
  module V1
24
- VERSION = "0.4.3"
24
+ VERSION = "0.4.4"
25
25
  end
26
26
  end
27
27
  end
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.3
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-07-12 00:00:00.000000000 Z
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.5'
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.5'
29
+ version: '0.7'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a