google-cloud-firestore-v1 0.10.0 → 0.11.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: eb73865cabf048a91f48e3fbd2e03d26d3bfda63ca86d5615ec09f66b197715b
4
- data.tar.gz: 3dc2ee99432f186a1ae3aaa8a2a8864c43798686e859f2fdf9681e1eca655a4f
3
+ metadata.gz: bd8410c9d4b2acde222850053a5e33cf0660ac2bcdb836457984a47ca06ad0be
4
+ data.tar.gz: 58b4bd3107da514c814c79b46e6c79597ee7a2a585059d437c07295a10db138e
5
5
  SHA512:
6
- metadata.gz: 64695f7ce62c795f612349c1024918cab68d5c2cc023b03253ccafda63ad2fdc7ee94228a2eaa15b506554ad5b426a1842ded3d565fe62e87cc0c9b3dc57127c
7
- data.tar.gz: 9d7c31a397e4364c283f5b702a2ae94a546d0f3c835c04a2c671f1021873644fc3257a411c02c3c4ab1f5f576b6df9bcb30ea137a26ebe1010cd094c8b64adfc
6
+ metadata.gz: 2d0abf9821790a3e5fb73ad527a49448a6dc8bbe16ccabce35280e1c8d78171b26a16ef77e137dc720c338bda2c95916e60f5280a46f3890939a854f5cbcbe41
7
+ data.tar.gz: d6a55ea6ea2e8621e1dac82d97204f1e3b227d6a26e9d21a543d93522d8cd406bc2345f524ad55295945212d52ea33e56c7309865dc4056252e269dc40bcdcba
data/AUTHENTICATION.md CHANGED
@@ -1,151 +1,122 @@
1
1
  # Authentication
2
2
 
3
- In general, the google-cloud-firestore-v1 library uses
4
- [Service Account](https://cloud.google.com/iam/docs/creating-managing-service-accounts)
5
- credentials to connect to Google Cloud services. When running within
6
- [Google Cloud Platform environments](#google-cloud-platform-environments) the
7
- credentials will be discovered automatically. When running on other
8
- environments, the Service Account credentials can be specified by providing the
9
- path to the
10
- [JSON keyfile](https://cloud.google.com/iam/docs/managing-service-account-keys)
11
- for the account (or the JSON itself) in
12
- [environment variables](#environment-variables). Additionally, Cloud SDK
13
- credentials can also be discovered automatically, but this is only recommended
14
- during development.
3
+ The recommended way to authenticate to the google-cloud-firestore-v1 library is to use
4
+ [Application Default Credentials (ADC)](https://cloud.google.com/docs/authentication/application-default-credentials).
5
+ To review all of your authentication options, see [Credentials lookup](#credential-lookup).
15
6
 
16
7
  ## Quickstart
17
8
 
18
- 1. [Create a service account and credentials](#creating-a-service-account).
19
- 2. Set the [environment variable](#environment-variables).
9
+ The following example shows how to set up authentication for a local development
10
+ environment with your user credentials.
20
11
 
21
- ```sh
22
- export FIRESTORE_CREDENTIALS=path/to/keyfile.json
23
- ```
24
-
25
- 3. Initialize the client.
12
+ **NOTE:** This method is _not_ recommended for running in production. User credentials
13
+ should be used only during development.
26
14
 
27
- ```ruby
28
- require "google/cloud/firestore/v1"
15
+ 1. [Download and install the Google Cloud CLI](https://cloud.google.com/sdk).
16
+ 2. Set up a local ADC file with your user credentials:
29
17
 
30
- client = ::Google::Cloud::Firestore::V1::Firestore::Client.new
18
+ ```sh
19
+ gcloud auth application-default login
31
20
  ```
32
21
 
33
- ## Credential Lookup
34
-
35
- The google-cloud-firestore-v1 library aims to make authentication
36
- as simple as possible, and provides several mechanisms to configure your system
37
- without requiring **Service Account Credentials** directly in code.
38
-
39
- **Credentials** are discovered in the following order:
40
-
41
- 1. Specify credentials in method arguments
42
- 2. Specify credentials in configuration
43
- 3. Discover credentials path in environment variables
44
- 4. Discover credentials JSON in environment variables
45
- 5. Discover credentials file in the Cloud SDK's path
46
- 6. Discover GCP credentials
47
-
48
- ### Google Cloud Platform environments
22
+ 3. Write code as if already authenticated.
49
23
 
50
- When running on Google Cloud Platform (GCP), including Google Compute Engine
51
- (GCE), Google Kubernetes Engine (GKE), Google App Engine (GAE), Google Cloud
52
- Functions (GCF) and Cloud Run, **Credentials** are discovered automatically.
53
- Code should be written as if already authenticated.
24
+ For more information about setting up authentication for a local development environment, see
25
+ [Set up Application Default Credentials](https://cloud.google.com/docs/authentication/provide-credentials-adc#local-dev).
54
26
 
55
- ### Environment Variables
27
+ ## Credential Lookup
56
28
 
57
- The **Credentials JSON** can be placed in environment variables instead of
58
- declaring them directly in code. Each service has its own environment variable,
59
- allowing for different service accounts to be used for different services. (See
60
- the READMEs for the individual service gems for details.) The path to the
61
- **Credentials JSON** file can be stored in the environment variable, or the
62
- **Credentials JSON** itself can be stored for environments such as Docker
63
- containers where writing files is difficult or not encouraged.
29
+ The google-cloud-firestore-v1 library provides several mechanisms to configure your system.
30
+ Generally, using Application Default Credentials to facilitate automatic
31
+ credentials discovery is the easist method. But if you need to explicitly specify
32
+ credentials, there are several methods available to you.
64
33
 
65
- The environment variables that google-cloud-firestore-v1
66
- checks for credentials are configured on the service Credentials class (such as
67
- {::Google::Cloud::Firestore::V1::Firestore::Credentials}):
34
+ Credentials are accepted in the following ways, in the following order or precedence:
68
35
 
69
- * `FIRESTORE_CREDENTIALS` - Path to JSON file, or JSON contents
70
- * `FIRESTORE_KEYFILE` - Path to JSON file, or JSON contents
71
- * `GOOGLE_CLOUD_CREDENTIALS` - Path to JSON file, or JSON contents
72
- * `GOOGLE_CLOUD_KEYFILE` - Path to JSON file, or JSON contents
73
- * `GOOGLE_APPLICATION_CREDENTIALS` - Path to JSON file
36
+ 1. Credentials specified in method arguments
37
+ 2. Credentials specified in configuration
38
+ 3. Credentials pointed to or included in environment variables
39
+ 4. Credentials found in local ADC file
40
+ 5. Credentials returned by the metadata server for the attached service account (GCP)
74
41
 
75
- ```ruby
76
- require "google/cloud/firestore/v1"
77
-
78
- ENV["FIRESTORE_CREDENTIALS"] = "path/to/keyfile.json"
42
+ ### Configuration
79
43
 
80
- client = ::Google::Cloud::Firestore::V1::Firestore::Client.new
81
- ```
44
+ You can configure a path to a JSON credentials file, either for an individual client object or
45
+ globally, for all client objects. The JSON file can contain credentials created for
46
+ [workload identity federation](https://cloud.google.com/iam/docs/workload-identity-federation),
47
+ [workforce identity federation](https://cloud.google.com/iam/docs/workforce-identity-federation), or a
48
+ [service account key](https://cloud.google.com/docs/authentication/provide-credentials-adc#local-key).
82
49
 
83
- ### Configuration
50
+ Note: Service account keys are a security risk if not managed correctly. You should
51
+ [choose a more secure alternative to service account keys](https://cloud.google.com/docs/authentication#auth-decision-tree)
52
+ whenever possible.
84
53
 
85
- The path to the **Credentials JSON** file can be configured instead of storing
86
- it in an environment variable. Either on an individual client initialization:
54
+ To configure a credentials file for an individual client initialization:
87
55
 
88
56
  ```ruby
89
57
  require "google/cloud/firestore/v1"
90
58
 
91
59
  client = ::Google::Cloud::Firestore::V1::Firestore::Client.new do |config|
92
- config.credentials = "path/to/keyfile.json"
60
+ config.credentials = "path/to/credentialfile.json"
93
61
  end
94
62
  ```
95
63
 
96
- Or globally for all clients:
64
+ To configure a credentials file globally for all clients:
97
65
 
98
66
  ```ruby
99
67
  require "google/cloud/firestore/v1"
100
68
 
101
69
  ::Google::Cloud::Firestore::V1::Firestore::Client.configure do |config|
102
- config.credentials = "path/to/keyfile.json"
70
+ config.credentials = "path/to/credentialfile.json"
103
71
  end
104
72
 
105
73
  client = ::Google::Cloud::Firestore::V1::Firestore::Client.new
106
74
  ```
107
75
 
108
- ### Cloud SDK
76
+ ### Environment Variables
109
77
 
110
- This option allows for an easy way to authenticate during development. If
111
- credentials are not provided in code or in environment variables, then Cloud SDK
112
- credentials are discovered.
78
+ You can also use an environment variable to provide a JSON credentials file.
79
+ The environment variable can contain a path to the credentials file or, for
80
+ environments such as Docker containers where writing files is not encouraged,
81
+ you can include the credentials file itself.
113
82
 
114
- To configure your system for this, simply:
83
+ The JSON file can contain credentials created for
84
+ [workload identity federation](https://cloud.google.com/iam/docs/workload-identity-federation),
85
+ [workforce identity federation](https://cloud.google.com/iam/docs/workforce-identity-federation), or a
86
+ [service account key](https://cloud.google.com/docs/authentication/provide-credentials-adc#local-key).
115
87
 
116
- 1. [Download and install the Cloud SDK](https://cloud.google.com/sdk)
117
- 2. Authenticate using OAuth 2.0 `$ gcloud auth application-default login`
118
- 3. Write code as if already authenticated.
88
+ Note: Service account keys are a security risk if not managed correctly. You should
89
+ [choose a more secure alternative to service account keys](https://cloud.google.com/docs/authentication#auth-decision-tree)
90
+ whenever possible.
91
+
92
+ The environment variables that google-cloud-firestore-v1
93
+ checks for credentials are:
119
94
 
120
- **NOTE:** This is _not_ recommended for running in production. The Cloud SDK
121
- *should* only be used during development.
95
+ * `GOOGLE_CLOUD_CREDENTIALS` - Path to JSON file, or JSON contents
96
+ * `GOOGLE_APPLICATION_CREDENTIALS` - Path to JSON file
122
97
 
123
- ## Creating a Service Account
98
+ ```ruby
99
+ require "google/cloud/firestore/v1"
124
100
 
125
- Google Cloud requires **Service Account Credentials** to
126
- connect to the APIs. You will use the **JSON key file** to
127
- connect to most services with google-cloud-firestore-v1.
101
+ ENV["GOOGLE_APPLICATION_CREDENTIALS"] = "path/to/credentialfile.json"
128
102
 
129
- If you are not running this client within
130
- [Google Cloud Platform environments](#google-cloud-platform-environments), you
131
- need a Google Developers service account.
103
+ client = ::Google::Cloud::Firestore::V1::Firestore::Client.new
104
+ ```
132
105
 
133
- 1. Visit the [Google Cloud Console](https://console.cloud.google.com/project).
134
- 2. Create a new project or click on an existing project.
135
- 3. Activate the menu in the upper left and select **APIs & Services**. From
136
- here, you will enable the APIs that your application requires.
106
+ ### Local ADC file
137
107
 
138
- *Note: You may need to enable billing in order to use these services.*
108
+ You can set up a local ADC file with your user credentials for authentication during
109
+ development. If credentials are not provided in code or in environment variables,
110
+ then the local ADC credentials are discovered.
139
111
 
140
- 4. Select **Credentials** from the side navigation.
112
+ Follow the steps in [Quickstart](#quickstart) to set up a local ADC file.
141
113
 
142
- Find the "Create credentials" drop down near the top of the page, and select
143
- "Service account" to be guided through downloading a new JSON key file.
114
+ ### Google Cloud Platform environments
144
115
 
145
- If you want to re-use an existing service account, you can easily generate a
146
- new key file. Just select the account you wish to re-use, click the pencil
147
- tool on the right side to edit the service account, select the **Keys** tab,
148
- and then select **Add Key**.
116
+ When running on Google Cloud Platform (GCP), including Google Compute Engine
117
+ (GCE), Google Kubernetes Engine (GKE), Google App Engine (GAE), Google Cloud
118
+ Functions (GCF) and Cloud Run, credentials are retrieved from the attached
119
+ service account automatically. Code should be written as if already authenticated.
149
120
 
150
- The key file you download will be used by this library to authenticate API
151
- requests and should be stored in a secure location.
121
+ For more information, see
122
+ [Set up ADC for Google Cloud services](https://cloud.google.com/docs/authentication/provide-credentials-adc#attached-sa).
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Ruby Client for the Cloud Firestore V1 API
2
2
 
3
- API Client library for the Cloud Firestore V1 API
3
+ Accesses the NoSQL document database built for automatic scaling, high performance, and ease of application development.
4
4
 
5
5
  Cloud Firestore is a NoSQL document database built for automatic scaling, high performance, and ease of application development.
6
6
 
@@ -47,7 +47,7 @@ for general usage information.
47
47
 
48
48
  To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
49
49
  The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/current/stdlibs/logger/Logger.html) as shown below,
50
- or a [`Google::Cloud::Logging::Logger`](https://googleapis.dev/ruby/google-cloud-logging/latest)
50
+ or a [`Google::Cloud::Logging::Logger`](https://cloud.google.com/ruby/docs/reference/google-cloud-logging/latest)
51
51
  that will write logs to [Cloud Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
52
52
  and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
53
53
 
@@ -38,6 +38,9 @@ module Google
38
38
  # truly serverless apps.
39
39
  #
40
40
  class Client
41
+ # @private
42
+ DEFAULT_ENDPOINT_TEMPLATE = "firestore.$UNIVERSE_DOMAIN$"
43
+
41
44
  # @private
42
45
  attr_reader :firestore_stub
43
46
 
@@ -173,6 +176,15 @@ module Google
173
176
  @config
174
177
  end
175
178
 
179
+ ##
180
+ # The effective universe domain
181
+ #
182
+ # @return [String]
183
+ #
184
+ def universe_domain
185
+ @firestore_stub.universe_domain
186
+ end
187
+
176
188
  ##
177
189
  # Create a new Firestore client object.
178
190
  #
@@ -206,8 +218,9 @@ module Google
206
218
  credentials = @config.credentials
207
219
  # Use self-signed JWT if the endpoint is unchanged from default,
208
220
  # but only if the default endpoint does not have a region prefix.
209
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
210
- !@config.endpoint.split(".").first.include?("-")
221
+ enable_self_signed_jwt = @config.endpoint.nil? ||
222
+ (@config.endpoint == Configuration::DEFAULT_ENDPOINT &&
223
+ !@config.endpoint.split(".").first.include?("-"))
211
224
  credentials ||= Credentials.default scope: @config.scope,
212
225
  enable_self_signed_jwt: enable_self_signed_jwt
213
226
  if credentials.is_a?(::String) || credentials.is_a?(::Hash)
@@ -216,19 +229,23 @@ module Google
216
229
  @quota_project_id = @config.quota_project
217
230
  @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
218
231
 
219
- @location_client = Google::Cloud::Location::Locations::Client.new do |config|
220
- config.credentials = credentials
221
- config.quota_project = @quota_project_id
222
- config.endpoint = @config.endpoint
223
- end
224
-
225
232
  @firestore_stub = ::Gapic::ServiceStub.new(
226
233
  ::Google::Cloud::Firestore::V1::Firestore::Stub,
227
- credentials: credentials,
228
- endpoint: @config.endpoint,
234
+ credentials: credentials,
235
+ endpoint: @config.endpoint,
236
+ endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
237
+ universe_domain: @config.universe_domain,
229
238
  channel_args: @config.channel_args,
230
- interceptors: @config.interceptors
239
+ interceptors: @config.interceptors,
240
+ channel_pool_config: @config.channel_pool
231
241
  )
242
+
243
+ @location_client = Google::Cloud::Location::Locations::Client.new do |config|
244
+ config.credentials = credentials
245
+ config.quota_project = @quota_project_id
246
+ config.endpoint = @firestore_stub.endpoint
247
+ config.universe_domain = @firestore_stub.universe_domain
248
+ end
232
249
  end
233
250
 
234
251
  ##
@@ -270,7 +287,10 @@ module Google
270
287
  # Reads the document in a transaction.
271
288
  # @param read_time [::Google::Protobuf::Timestamp, ::Hash]
272
289
  # Reads the version of the document at the given time.
273
- # This may not be older than 270 seconds.
290
+ #
291
+ # This must be a microsecond precision timestamp within the past one hour,
292
+ # or if Point-in-Time Recovery is enabled, can additionally be a whole
293
+ # minute timestamp within the past 7 days.
274
294
  #
275
295
  # @yield [response, operation] Access the result along with the RPC operation
276
296
  # @yieldparam response [::Google::Cloud::Firestore::V1::Document]
@@ -397,7 +417,9 @@ module Google
397
417
  # @param read_time [::Google::Protobuf::Timestamp, ::Hash]
398
418
  # Perform the read at the provided time.
399
419
  #
400
- # This may not be older than 270 seconds.
420
+ # This must be a microsecond precision timestamp within the past one hour,
421
+ # or if Point-in-Time Recovery is enabled, can additionally be a whole
422
+ # minute timestamp within the past 7 days.
401
423
  # @param show_missing [::Boolean]
402
424
  # If the list should show missing documents.
403
425
  #
@@ -715,7 +737,10 @@ module Google
715
737
  # stream.
716
738
  # @param read_time [::Google::Protobuf::Timestamp, ::Hash]
717
739
  # Reads documents as they were at the given time.
718
- # This may not be older than 270 seconds.
740
+ #
741
+ # This must be a microsecond precision timestamp within the past one hour,
742
+ # or if Point-in-Time Recovery is enabled, can additionally be a whole
743
+ # minute timestamp within the past 7 days.
719
744
  #
720
745
  # @yield [response, operation] Access the result along with the RPC operation
721
746
  # @yieldparam response [::Enumerable<::Google::Cloud::Firestore::V1::BatchGetDocumentsResponse>]
@@ -1091,7 +1116,10 @@ module Google
1091
1116
  # stream.
1092
1117
  # @param read_time [::Google::Protobuf::Timestamp, ::Hash]
1093
1118
  # Reads documents as they were at the given time.
1094
- # This may not be older than 270 seconds.
1119
+ #
1120
+ # This must be a microsecond precision timestamp within the past one hour,
1121
+ # or if Point-in-Time Recovery is enabled, can additionally be a whole
1122
+ # minute timestamp within the past 7 days.
1095
1123
  #
1096
1124
  # @yield [response, operation] Access the result along with the RPC operation
1097
1125
  # @yieldparam response [::Enumerable<::Google::Cloud::Firestore::V1::RunQueryResponse>]
@@ -1211,9 +1239,9 @@ module Google
1211
1239
  # @param read_time [::Google::Protobuf::Timestamp, ::Hash]
1212
1240
  # Executes the query at the given timestamp.
1213
1241
  #
1214
- # Requires:
1215
- #
1216
- # * Cannot be more than 270 seconds in the past.
1242
+ # This must be a microsecond precision timestamp within the past one hour,
1243
+ # or if Point-in-Time Recovery is enabled, can additionally be a whole
1244
+ # minute timestamp within the past 7 days.
1217
1245
  #
1218
1246
  # @yield [response, operation] Access the result along with the RPC operation
1219
1247
  # @yieldparam response [::Enumerable<::Google::Cloud::Firestore::V1::RunAggregationQueryResponse>]
@@ -1345,7 +1373,10 @@ module Google
1345
1373
  # 2 partitions, to complete the total of 10 specified in `partition_count`.
1346
1374
  # @param read_time [::Google::Protobuf::Timestamp, ::Hash]
1347
1375
  # Reads documents as they were at the given time.
1348
- # This may not be older than 270 seconds.
1376
+ #
1377
+ # This must be a microsecond precision timestamp within the past one hour,
1378
+ # or if Point-in-Time Recovery is enabled, can additionally be a whole
1379
+ # minute timestamp within the past 7 days.
1349
1380
  #
1350
1381
  # @yield [response, operation] Access the result along with the RPC operation
1351
1382
  # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Firestore::V1::Cursor>]
@@ -1418,7 +1449,7 @@ module Google
1418
1449
 
1419
1450
  ##
1420
1451
  # Streams batches of document updates and deletes, in order. This method is
1421
- # only available via the gRPC API (not REST).
1452
+ # only available via gRPC or WebChannel (not REST).
1422
1453
  #
1423
1454
  # @param request [::Gapic::StreamInput, ::Enumerable<::Google::Cloud::Firestore::V1::WriteRequest, ::Hash>]
1424
1455
  # An enumerable of {::Google::Cloud::Firestore::V1::WriteRequest} instances.
@@ -1496,8 +1527,8 @@ module Google
1496
1527
  end
1497
1528
 
1498
1529
  ##
1499
- # Listens to changes. This method is only available via the gRPC API (not
1500
- # REST).
1530
+ # Listens to changes. This method is only available via gRPC or WebChannel
1531
+ # (not REST).
1501
1532
  #
1502
1533
  # @param request [::Gapic::StreamInput, ::Enumerable<::Google::Cloud::Firestore::V1::ListenRequest, ::Hash>]
1503
1534
  # An enumerable of {::Google::Cloud::Firestore::V1::ListenRequest} instances.
@@ -1604,7 +1635,10 @@ module Google
1604
1635
  # {::Google::Cloud::Firestore::V1::ListCollectionIdsResponse ListCollectionIdsResponse}.
1605
1636
  # @param read_time [::Google::Protobuf::Timestamp, ::Hash]
1606
1637
  # Reads documents as they were at the given time.
1607
- # This may not be older than 270 seconds.
1638
+ #
1639
+ # This must be a microsecond precision timestamp within the past one hour,
1640
+ # or if Point-in-Time Recovery is enabled, can additionally be a whole
1641
+ # minute timestamp within the past 7 days.
1608
1642
  #
1609
1643
  # @yield [response, operation] Access the result along with the RPC operation
1610
1644
  # @yieldparam response [::Google::Cloud::Firestore::V1::ListCollectionIdsResponse]
@@ -1907,17 +1941,17 @@ module Google
1907
1941
  # end
1908
1942
  #
1909
1943
  # @!attribute [rw] endpoint
1910
- # The hostname or hostname:port of the service endpoint.
1911
- # Defaults to `"firestore.googleapis.com"`.
1912
- # @return [::String]
1944
+ # A custom service endpoint, as a hostname or hostname:port. The default is
1945
+ # nil, indicating to use the default endpoint in the current universe domain.
1946
+ # @return [::String,nil]
1913
1947
  # @!attribute [rw] credentials
1914
1948
  # Credentials to send with calls. You may provide any of the following types:
1915
1949
  # * (`String`) The path to a service account key file in JSON format
1916
1950
  # * (`Hash`) A service account key as a Hash
1917
1951
  # * (`Google::Auth::Credentials`) A googleauth credentials object
1918
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
1952
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
1919
1953
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
1920
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
1954
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
1921
1955
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
1922
1956
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
1923
1957
  # * (`nil`) indicating no credentials
@@ -1955,11 +1989,20 @@ module Google
1955
1989
  # @!attribute [rw] quota_project
1956
1990
  # A separate project against which to charge quota.
1957
1991
  # @return [::String]
1992
+ # @!attribute [rw] universe_domain
1993
+ # The universe domain within which to make requests. This determines the
1994
+ # default endpoint URL. The default value of nil uses the environment
1995
+ # universe (usually the default "googleapis.com" universe).
1996
+ # @return [::String,nil]
1958
1997
  #
1959
1998
  class Configuration
1960
1999
  extend ::Gapic::Config
1961
2000
 
1962
- config_attr :endpoint, "firestore.googleapis.com", ::String
2001
+ # @private
2002
+ # The endpoint specific to the default "googleapis.com" universe. Deprecated.
2003
+ DEFAULT_ENDPOINT = "firestore.googleapis.com"
2004
+
2005
+ config_attr :endpoint, nil, ::String, nil
1963
2006
  config_attr :credentials, nil do |value|
1964
2007
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
1965
2008
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -1974,6 +2017,7 @@ module Google
1974
2017
  config_attr :metadata, nil, ::Hash, nil
1975
2018
  config_attr :retry_policy, nil, ::Hash, ::Proc, nil
1976
2019
  config_attr :quota_project, nil, ::String, nil
2020
+ config_attr :universe_domain, nil, ::String, nil
1977
2021
 
1978
2022
  # @private
1979
2023
  def initialize parent_config = nil
@@ -1994,6 +2038,14 @@ module Google
1994
2038
  end
1995
2039
  end
1996
2040
 
2041
+ ##
2042
+ # Configuration for the channel pool
2043
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
2044
+ #
2045
+ def channel_pool
2046
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
2047
+ end
2048
+
1997
2049
  ##
1998
2050
  # Configuration RPC class for the Firestore API.
1999
2051
  #