google-cloud-firestore-v1 0.10.0 → 0.11.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -40,6 +40,9 @@ module Google
40
40
  # truly serverless apps.
41
41
  #
42
42
  class Client
43
+ # @private
44
+ DEFAULT_ENDPOINT_TEMPLATE = "firestore.$UNIVERSE_DOMAIN$"
45
+
43
46
  # @private
44
47
  attr_reader :firestore_stub
45
48
 
@@ -168,6 +171,15 @@ module Google
168
171
  @config
169
172
  end
170
173
 
174
+ ##
175
+ # The effective universe domain
176
+ #
177
+ # @return [String]
178
+ #
179
+ def universe_domain
180
+ @firestore_stub.universe_domain
181
+ end
182
+
171
183
  ##
172
184
  # Create a new Firestore REST client object.
173
185
  #
@@ -195,8 +207,9 @@ module Google
195
207
  credentials = @config.credentials
196
208
  # Use self-signed JWT if the endpoint is unchanged from default,
197
209
  # but only if the default endpoint does not have a region prefix.
198
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
199
- !@config.endpoint.split(".").first.include?("-")
210
+ enable_self_signed_jwt = @config.endpoint.nil? ||
211
+ (@config.endpoint == Configuration::DEFAULT_ENDPOINT &&
212
+ !@config.endpoint.split(".").first.include?("-"))
200
213
  credentials ||= Credentials.default scope: @config.scope,
201
214
  enable_self_signed_jwt: enable_self_signed_jwt
202
215
  if credentials.is_a?(::String) || credentials.is_a?(::Hash)
@@ -206,13 +219,19 @@ module Google
206
219
  @quota_project_id = @config.quota_project
207
220
  @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
208
221
 
222
+ @firestore_stub = ::Google::Cloud::Firestore::V1::Firestore::Rest::ServiceStub.new(
223
+ endpoint: @config.endpoint,
224
+ endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
225
+ universe_domain: @config.universe_domain,
226
+ credentials: credentials
227
+ )
228
+
209
229
  @location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config|
210
230
  config.credentials = credentials
211
231
  config.quota_project = @quota_project_id
212
- config.endpoint = @config.endpoint
232
+ config.endpoint = @firestore_stub.endpoint
233
+ config.universe_domain = @firestore_stub.universe_domain
213
234
  end
214
-
215
- @firestore_stub = ::Google::Cloud::Firestore::V1::Firestore::Rest::ServiceStub.new endpoint: @config.endpoint, credentials: credentials
216
235
  end
217
236
 
218
237
  ##
@@ -254,7 +273,10 @@ module Google
254
273
  # Reads the document in a transaction.
255
274
  # @param read_time [::Google::Protobuf::Timestamp, ::Hash]
256
275
  # Reads the version of the document at the given time.
257
- # This may not be older than 270 seconds.
276
+ #
277
+ # This must be a microsecond precision timestamp within the past one hour,
278
+ # or if Point-in-Time Recovery is enabled, can additionally be a whole
279
+ # minute timestamp within the past 7 days.
258
280
  # @yield [result, operation] Access the result along with the TransportOperation object
259
281
  # @yieldparam result [::Google::Cloud::Firestore::V1::Document]
260
282
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -262,6 +284,22 @@ module Google
262
284
  # @return [::Google::Cloud::Firestore::V1::Document]
263
285
  #
264
286
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
287
+ #
288
+ # @example Basic example
289
+ # require "google/cloud/firestore/v1"
290
+ #
291
+ # # Create a client object. The client can be reused for multiple calls.
292
+ # client = Google::Cloud::Firestore::V1::Firestore::Rest::Client.new
293
+ #
294
+ # # Create a request. To set request fields, pass in keyword arguments.
295
+ # request = Google::Cloud::Firestore::V1::GetDocumentRequest.new
296
+ #
297
+ # # Call the get_document method.
298
+ # result = client.get_document request
299
+ #
300
+ # # The returned object is of type Google::Cloud::Firestore::V1::Document.
301
+ # p result
302
+ #
265
303
  def get_document request, options = nil
266
304
  raise ::ArgumentError, "request must be provided" if request.nil?
267
305
 
@@ -358,7 +396,9 @@ module Google
358
396
  # @param read_time [::Google::Protobuf::Timestamp, ::Hash]
359
397
  # Perform the read at the provided time.
360
398
  #
361
- # This may not be older than 270 seconds.
399
+ # This must be a microsecond precision timestamp within the past one hour,
400
+ # or if Point-in-Time Recovery is enabled, can additionally be a whole
401
+ # minute timestamp within the past 7 days.
362
402
  # @param show_missing [::Boolean]
363
403
  # If the list should show missing documents.
364
404
  #
@@ -376,6 +416,26 @@ module Google
376
416
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Firestore::V1::Document>]
377
417
  #
378
418
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
419
+ #
420
+ # @example Basic example
421
+ # require "google/cloud/firestore/v1"
422
+ #
423
+ # # Create a client object. The client can be reused for multiple calls.
424
+ # client = Google::Cloud::Firestore::V1::Firestore::Rest::Client.new
425
+ #
426
+ # # Create a request. To set request fields, pass in keyword arguments.
427
+ # request = Google::Cloud::Firestore::V1::ListDocumentsRequest.new
428
+ #
429
+ # # Call the list_documents method.
430
+ # result = client.list_documents request
431
+ #
432
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
433
+ # # over elements, and API calls will be issued to fetch pages as needed.
434
+ # result.each do |item|
435
+ # # Each element is of type ::Google::Cloud::Firestore::V1::Document.
436
+ # p item
437
+ # end
438
+ #
379
439
  def list_documents request, options = nil
380
440
  raise ::ArgumentError, "request must be provided" if request.nil?
381
441
 
@@ -456,6 +516,22 @@ module Google
456
516
  # @return [::Google::Cloud::Firestore::V1::Document]
457
517
  #
458
518
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
519
+ #
520
+ # @example Basic example
521
+ # require "google/cloud/firestore/v1"
522
+ #
523
+ # # Create a client object. The client can be reused for multiple calls.
524
+ # client = Google::Cloud::Firestore::V1::Firestore::Rest::Client.new
525
+ #
526
+ # # Create a request. To set request fields, pass in keyword arguments.
527
+ # request = Google::Cloud::Firestore::V1::UpdateDocumentRequest.new
528
+ #
529
+ # # Call the update_document method.
530
+ # result = client.update_document request
531
+ #
532
+ # # The returned object is of type Google::Cloud::Firestore::V1::Document.
533
+ # p result
534
+ #
459
535
  def update_document request, options = nil
460
536
  raise ::ArgumentError, "request must be provided" if request.nil?
461
537
 
@@ -522,6 +598,22 @@ module Google
522
598
  # @return [::Google::Protobuf::Empty]
523
599
  #
524
600
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
601
+ #
602
+ # @example Basic example
603
+ # require "google/cloud/firestore/v1"
604
+ #
605
+ # # Create a client object. The client can be reused for multiple calls.
606
+ # client = Google::Cloud::Firestore::V1::Firestore::Rest::Client.new
607
+ #
608
+ # # Create a request. To set request fields, pass in keyword arguments.
609
+ # request = Google::Cloud::Firestore::V1::DeleteDocumentRequest.new
610
+ #
611
+ # # Call the delete_document method.
612
+ # result = client.delete_document request
613
+ #
614
+ # # The returned object is of type Google::Protobuf::Empty.
615
+ # p result
616
+ #
525
617
  def delete_document request, options = nil
526
618
  raise ::ArgumentError, "request must be provided" if request.nil?
527
619
 
@@ -600,10 +692,32 @@ module Google
600
692
  # stream.
601
693
  # @param read_time [::Google::Protobuf::Timestamp, ::Hash]
602
694
  # Reads documents as they were at the given time.
603
- # This may not be older than 270 seconds.
695
+ #
696
+ # This must be a microsecond precision timestamp within the past one hour,
697
+ # or if Point-in-Time Recovery is enabled, can additionally be a whole
698
+ # minute timestamp within the past 7 days.
604
699
  # @return [::Enumerable<::Google::Cloud::Firestore::V1::BatchGetDocumentsResponse>]
605
700
  #
606
701
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
702
+ #
703
+ # @example Basic example
704
+ # require "google/cloud/firestore/v1"
705
+ #
706
+ # # Create a client object. The client can be reused for multiple calls.
707
+ # client = Google::Cloud::Firestore::V1::Firestore::Rest::Client.new
708
+ #
709
+ # # Create a request. To set request fields, pass in keyword arguments.
710
+ # request = Google::Cloud::Firestore::V1::BatchGetDocumentsRequest.new
711
+ #
712
+ # # Call the batch_get_documents method to start streaming.
713
+ # output = client.batch_get_documents request
714
+ #
715
+ # # The returned object is a streamed enumerable yielding elements of type
716
+ # # ::Google::Cloud::Firestore::V1::BatchGetDocumentsResponse
717
+ # output.each do |current_response|
718
+ # p current_response
719
+ # end
720
+ #
607
721
  def batch_get_documents request, options = nil
608
722
  raise ::ArgumentError, "request must be provided" if request.nil?
609
723
 
@@ -675,6 +789,22 @@ module Google
675
789
  # @return [::Google::Cloud::Firestore::V1::BeginTransactionResponse]
676
790
  #
677
791
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
792
+ #
793
+ # @example Basic example
794
+ # require "google/cloud/firestore/v1"
795
+ #
796
+ # # Create a client object. The client can be reused for multiple calls.
797
+ # client = Google::Cloud::Firestore::V1::Firestore::Rest::Client.new
798
+ #
799
+ # # Create a request. To set request fields, pass in keyword arguments.
800
+ # request = Google::Cloud::Firestore::V1::BeginTransactionRequest.new
801
+ #
802
+ # # Call the begin_transaction method.
803
+ # result = client.begin_transaction request
804
+ #
805
+ # # The returned object is of type Google::Cloud::Firestore::V1::BeginTransactionResponse.
806
+ # p result
807
+ #
678
808
  def begin_transaction request, options = nil
679
809
  raise ::ArgumentError, "request must be provided" if request.nil?
680
810
 
@@ -744,6 +874,22 @@ module Google
744
874
  # @return [::Google::Cloud::Firestore::V1::CommitResponse]
745
875
  #
746
876
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
877
+ #
878
+ # @example Basic example
879
+ # require "google/cloud/firestore/v1"
880
+ #
881
+ # # Create a client object. The client can be reused for multiple calls.
882
+ # client = Google::Cloud::Firestore::V1::Firestore::Rest::Client.new
883
+ #
884
+ # # Create a request. To set request fields, pass in keyword arguments.
885
+ # request = Google::Cloud::Firestore::V1::CommitRequest.new
886
+ #
887
+ # # Call the commit method.
888
+ # result = client.commit request
889
+ #
890
+ # # The returned object is of type Google::Cloud::Firestore::V1::CommitResponse.
891
+ # p result
892
+ #
747
893
  def commit request, options = nil
748
894
  raise ::ArgumentError, "request must be provided" if request.nil?
749
895
 
@@ -809,6 +955,22 @@ module Google
809
955
  # @return [::Google::Protobuf::Empty]
810
956
  #
811
957
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
958
+ #
959
+ # @example Basic example
960
+ # require "google/cloud/firestore/v1"
961
+ #
962
+ # # Create a client object. The client can be reused for multiple calls.
963
+ # client = Google::Cloud::Firestore::V1::Firestore::Rest::Client.new
964
+ #
965
+ # # Create a request. To set request fields, pass in keyword arguments.
966
+ # request = Google::Cloud::Firestore::V1::RollbackRequest.new
967
+ #
968
+ # # Call the rollback method.
969
+ # result = client.rollback request
970
+ #
971
+ # # The returned object is of type Google::Protobuf::Empty.
972
+ # p result
973
+ #
812
974
  def rollback request, options = nil
813
975
  raise ::ArgumentError, "request must be provided" if request.nil?
814
976
 
@@ -882,10 +1044,32 @@ module Google
882
1044
  # stream.
883
1045
  # @param read_time [::Google::Protobuf::Timestamp, ::Hash]
884
1046
  # Reads documents as they were at the given time.
885
- # This may not be older than 270 seconds.
1047
+ #
1048
+ # This must be a microsecond precision timestamp within the past one hour,
1049
+ # or if Point-in-Time Recovery is enabled, can additionally be a whole
1050
+ # minute timestamp within the past 7 days.
886
1051
  # @return [::Enumerable<::Google::Cloud::Firestore::V1::RunQueryResponse>]
887
1052
  #
888
1053
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1054
+ #
1055
+ # @example Basic example
1056
+ # require "google/cloud/firestore/v1"
1057
+ #
1058
+ # # Create a client object. The client can be reused for multiple calls.
1059
+ # client = Google::Cloud::Firestore::V1::Firestore::Rest::Client.new
1060
+ #
1061
+ # # Create a request. To set request fields, pass in keyword arguments.
1062
+ # request = Google::Cloud::Firestore::V1::RunQueryRequest.new
1063
+ #
1064
+ # # Call the run_query method to start streaming.
1065
+ # output = client.run_query request
1066
+ #
1067
+ # # The returned object is a streamed enumerable yielding elements of type
1068
+ # # ::Google::Cloud::Firestore::V1::RunQueryResponse
1069
+ # output.each do |current_response|
1070
+ # p current_response
1071
+ # end
1072
+ #
889
1073
  def run_query request, options = nil
890
1074
  raise ::ArgumentError, "request must be provided" if request.nil?
891
1075
 
@@ -977,12 +1161,31 @@ module Google
977
1161
  # @param read_time [::Google::Protobuf::Timestamp, ::Hash]
978
1162
  # Executes the query at the given timestamp.
979
1163
  #
980
- # Requires:
981
- #
982
- # * Cannot be more than 270 seconds in the past.
1164
+ # This must be a microsecond precision timestamp within the past one hour,
1165
+ # or if Point-in-Time Recovery is enabled, can additionally be a whole
1166
+ # minute timestamp within the past 7 days.
983
1167
  # @return [::Enumerable<::Google::Cloud::Firestore::V1::RunAggregationQueryResponse>]
984
1168
  #
985
1169
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1170
+ #
1171
+ # @example Basic example
1172
+ # require "google/cloud/firestore/v1"
1173
+ #
1174
+ # # Create a client object. The client can be reused for multiple calls.
1175
+ # client = Google::Cloud::Firestore::V1::Firestore::Rest::Client.new
1176
+ #
1177
+ # # Create a request. To set request fields, pass in keyword arguments.
1178
+ # request = Google::Cloud::Firestore::V1::RunAggregationQueryRequest.new
1179
+ #
1180
+ # # Call the run_aggregation_query method to start streaming.
1181
+ # output = client.run_aggregation_query request
1182
+ #
1183
+ # # The returned object is a streamed enumerable yielding elements of type
1184
+ # # ::Google::Cloud::Firestore::V1::RunAggregationQueryResponse
1185
+ # output.each do |current_response|
1186
+ # p current_response
1187
+ # end
1188
+ #
986
1189
  def run_aggregation_query request, options = nil
987
1190
  raise ::ArgumentError, "request must be provided" if request.nil?
988
1191
 
@@ -1086,7 +1289,10 @@ module Google
1086
1289
  # 2 partitions, to complete the total of 10 specified in `partition_count`.
1087
1290
  # @param read_time [::Google::Protobuf::Timestamp, ::Hash]
1088
1291
  # Reads documents as they were at the given time.
1089
- # This may not be older than 270 seconds.
1292
+ #
1293
+ # This must be a microsecond precision timestamp within the past one hour,
1294
+ # or if Point-in-Time Recovery is enabled, can additionally be a whole
1295
+ # minute timestamp within the past 7 days.
1090
1296
  # @yield [result, operation] Access the result along with the TransportOperation object
1091
1297
  # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Firestore::V1::Cursor>]
1092
1298
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -1094,6 +1300,26 @@ module Google
1094
1300
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Firestore::V1::Cursor>]
1095
1301
  #
1096
1302
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1303
+ #
1304
+ # @example Basic example
1305
+ # require "google/cloud/firestore/v1"
1306
+ #
1307
+ # # Create a client object. The client can be reused for multiple calls.
1308
+ # client = Google::Cloud::Firestore::V1::Firestore::Rest::Client.new
1309
+ #
1310
+ # # Create a request. To set request fields, pass in keyword arguments.
1311
+ # request = Google::Cloud::Firestore::V1::PartitionQueryRequest.new
1312
+ #
1313
+ # # Call the partition_query method.
1314
+ # result = client.partition_query request
1315
+ #
1316
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1317
+ # # over elements, and API calls will be issued to fetch pages as needed.
1318
+ # result.each do |item|
1319
+ # # Each element is of type ::Google::Cloud::Firestore::V1::Cursor.
1320
+ # p item
1321
+ # end
1322
+ #
1097
1323
  def partition_query request, options = nil
1098
1324
  raise ::ArgumentError, "request must be provided" if request.nil?
1099
1325
 
@@ -1160,7 +1386,10 @@ module Google
1160
1386
  # {::Google::Cloud::Firestore::V1::ListCollectionIdsResponse ListCollectionIdsResponse}.
1161
1387
  # @param read_time [::Google::Protobuf::Timestamp, ::Hash]
1162
1388
  # Reads documents as they were at the given time.
1163
- # This may not be older than 270 seconds.
1389
+ #
1390
+ # This must be a microsecond precision timestamp within the past one hour,
1391
+ # or if Point-in-Time Recovery is enabled, can additionally be a whole
1392
+ # minute timestamp within the past 7 days.
1164
1393
  # @yield [result, operation] Access the result along with the TransportOperation object
1165
1394
  # @yieldparam result [::Gapic::Rest::PagedEnumerable<::String>]
1166
1395
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -1168,6 +1397,22 @@ module Google
1168
1397
  # @return [::Gapic::Rest::PagedEnumerable<::String>]
1169
1398
  #
1170
1399
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1400
+ #
1401
+ # @example Basic example
1402
+ # require "google/cloud/firestore/v1"
1403
+ #
1404
+ # # Create a client object. The client can be reused for multiple calls.
1405
+ # client = Google::Cloud::Firestore::V1::Firestore::Rest::Client.new
1406
+ #
1407
+ # # Create a request. To set request fields, pass in keyword arguments.
1408
+ # request = Google::Cloud::Firestore::V1::ListCollectionIdsRequest.new
1409
+ #
1410
+ # # Call the list_collection_ids method.
1411
+ # result = client.list_collection_ids request
1412
+ #
1413
+ # # The returned object is of type Google::Cloud::Firestore::V1::ListCollectionIdsResponse.
1414
+ # p result
1415
+ #
1171
1416
  def list_collection_ids request, options = nil
1172
1417
  raise ::ArgumentError, "request must be provided" if request.nil?
1173
1418
 
@@ -1249,6 +1494,22 @@ module Google
1249
1494
  # @return [::Google::Cloud::Firestore::V1::BatchWriteResponse]
1250
1495
  #
1251
1496
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1497
+ #
1498
+ # @example Basic example
1499
+ # require "google/cloud/firestore/v1"
1500
+ #
1501
+ # # Create a client object. The client can be reused for multiple calls.
1502
+ # client = Google::Cloud::Firestore::V1::Firestore::Rest::Client.new
1503
+ #
1504
+ # # Create a request. To set request fields, pass in keyword arguments.
1505
+ # request = Google::Cloud::Firestore::V1::BatchWriteRequest.new
1506
+ #
1507
+ # # Call the batch_write method.
1508
+ # result = client.batch_write request
1509
+ #
1510
+ # # The returned object is of type Google::Cloud::Firestore::V1::BatchWriteResponse.
1511
+ # p result
1512
+ #
1252
1513
  def batch_write request, options = nil
1253
1514
  raise ::ArgumentError, "request must be provided" if request.nil?
1254
1515
 
@@ -1327,6 +1588,22 @@ module Google
1327
1588
  # @return [::Google::Cloud::Firestore::V1::Document]
1328
1589
  #
1329
1590
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1591
+ #
1592
+ # @example Basic example
1593
+ # require "google/cloud/firestore/v1"
1594
+ #
1595
+ # # Create a client object. The client can be reused for multiple calls.
1596
+ # client = Google::Cloud::Firestore::V1::Firestore::Rest::Client.new
1597
+ #
1598
+ # # Create a request. To set request fields, pass in keyword arguments.
1599
+ # request = Google::Cloud::Firestore::V1::CreateDocumentRequest.new
1600
+ #
1601
+ # # Call the create_document method.
1602
+ # result = client.create_document request
1603
+ #
1604
+ # # The returned object is of type Google::Cloud::Firestore::V1::Document.
1605
+ # p result
1606
+ #
1330
1607
  def create_document request, options = nil
1331
1608
  raise ::ArgumentError, "request must be provided" if request.nil?
1332
1609
 
@@ -1392,17 +1669,17 @@ module Google
1392
1669
  # end
1393
1670
  #
1394
1671
  # @!attribute [rw] endpoint
1395
- # The hostname or hostname:port of the service endpoint.
1396
- # Defaults to `"firestore.googleapis.com"`.
1397
- # @return [::String]
1672
+ # A custom service endpoint, as a hostname or hostname:port. The default is
1673
+ # nil, indicating to use the default endpoint in the current universe domain.
1674
+ # @return [::String,nil]
1398
1675
  # @!attribute [rw] credentials
1399
1676
  # Credentials to send with calls. You may provide any of the following types:
1400
1677
  # * (`String`) The path to a service account key file in JSON format
1401
1678
  # * (`Hash`) A service account key as a Hash
1402
1679
  # * (`Google::Auth::Credentials`) A googleauth credentials object
1403
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
1680
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
1404
1681
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
1405
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
1682
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
1406
1683
  # * (`nil`) indicating no credentials
1407
1684
  # @return [::Object]
1408
1685
  # @!attribute [rw] scope
@@ -1431,11 +1708,20 @@ module Google
1431
1708
  # @!attribute [rw] quota_project
1432
1709
  # A separate project against which to charge quota.
1433
1710
  # @return [::String]
1711
+ # @!attribute [rw] universe_domain
1712
+ # The universe domain within which to make requests. This determines the
1713
+ # default endpoint URL. The default value of nil uses the environment
1714
+ # universe (usually the default "googleapis.com" universe).
1715
+ # @return [::String,nil]
1434
1716
  #
1435
1717
  class Configuration
1436
1718
  extend ::Gapic::Config
1437
1719
 
1438
- config_attr :endpoint, "firestore.googleapis.com", ::String
1720
+ # @private
1721
+ # The endpoint specific to the default "googleapis.com" universe. Deprecated.
1722
+ DEFAULT_ENDPOINT = "firestore.googleapis.com"
1723
+
1724
+ config_attr :endpoint, nil, ::String, nil
1439
1725
  config_attr :credentials, nil do |value|
1440
1726
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
1441
1727
  allowed.any? { |klass| klass === value }
@@ -1447,6 +1733,7 @@ module Google
1447
1733
  config_attr :metadata, nil, ::Hash, nil
1448
1734
  config_attr :retry_policy, nil, ::Hash, ::Proc, nil
1449
1735
  config_attr :quota_project, nil, ::String, nil
1736
+ config_attr :universe_domain, nil, ::String, nil
1450
1737
 
1451
1738
  # @private
1452
1739
  def initialize parent_config = nil