google-cloud-apigee_registry-v1 0.4.0 → 0.6.0

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: 156728116ba847a4ad59a8c58ef162d81d6474a0a927fddec48673d5210bafe1
4
- data.tar.gz: 0b87f057c3ab6ba497c105aefbf82b44a94ed010a1d1dec03c410a9339453fd4
3
+ metadata.gz: 57b135728d5a751ca1319356039d3f3c94a242b0cceea6a8d379072d1c72a3f9
4
+ data.tar.gz: c4dfe2a02c722dcc956503118910268ca401090779e2784d1d897dac6a6315cd
5
5
  SHA512:
6
- metadata.gz: f71c2bef6e33976ebf985d781822c040f21a74d200ef0dafe8a2dc94f75204649cd433ddae2b561262636f960c7ba0fae1c77325cfb563c6cd91e4378edef6cc
7
- data.tar.gz: 478054668a86dbae0a45452a565287a2b82c00ee9db2c68fa5fc56f13761fed911340032f2b6b5ccc874acf51e8ed8b5ca268b3a93bde9c6a9a3ed62f062343e
6
+ metadata.gz: bd1fd5d204afcdca577219c1abe1d87567240c25f8e3f8da91359fccf106df7e7231c8c1d2b20adf29f5991b374dbe4ab48d945c4c79985823f668385619bae2
7
+ data.tar.gz: 61e1ec53d163f48da849a054250cfb365f360480c84d0625d26de64f8b30d2e1af746b6c40a8c20e622feb9130855743dc79643938d895b423afab5cdaef654c
data/README.md CHANGED
@@ -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
 
@@ -126,7 +126,7 @@ module Google
126
126
  credentials = @config.credentials
127
127
  # Use self-signed JWT if the endpoint is unchanged from default,
128
128
  # but only if the default endpoint does not have a region prefix.
129
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
129
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
130
130
  !@config.endpoint.split(".").first.include?("-")
131
131
  credentials ||= Credentials.default scope: @config.scope,
132
132
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -159,7 +159,8 @@ module Google
159
159
  credentials: credentials,
160
160
  endpoint: @config.endpoint,
161
161
  channel_args: @config.channel_args,
162
- interceptors: @config.interceptors
162
+ interceptors: @config.interceptors,
163
+ channel_pool_config: @config.channel_pool
163
164
  )
164
165
  end
165
166
 
@@ -502,9 +503,9 @@ module Google
502
503
  # * (`String`) The path to a service account key file in JSON format
503
504
  # * (`Hash`) A service account key as a Hash
504
505
  # * (`Google::Auth::Credentials`) A googleauth credentials object
505
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
506
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
506
507
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
507
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
508
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
508
509
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
509
510
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
510
511
  # * (`nil`) indicating no credentials
@@ -546,7 +547,9 @@ module Google
546
547
  class Configuration
547
548
  extend ::Gapic::Config
548
549
 
549
- config_attr :endpoint, "apigeeregistry.googleapis.com", ::String
550
+ DEFAULT_ENDPOINT = "apigeeregistry.googleapis.com"
551
+
552
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
550
553
  config_attr :credentials, nil do |value|
551
554
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
552
555
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -581,6 +584,14 @@ module Google
581
584
  end
582
585
  end
583
586
 
587
+ ##
588
+ # Configuration for the channel pool
589
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
590
+ #
591
+ def channel_pool
592
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
593
+ end
594
+
584
595
  ##
585
596
  # Configuration RPC class for the Provisioning API.
586
597
  #
@@ -93,7 +93,8 @@ module Google
93
93
  credentials: credentials,
94
94
  endpoint: @config.endpoint,
95
95
  channel_args: @config.channel_args,
96
- interceptors: @config.interceptors
96
+ interceptors: @config.interceptors,
97
+ channel_pool_config: @config.channel_pool
97
98
  )
98
99
 
99
100
  # Used by an LRO wrapper for some methods of this service
@@ -620,9 +621,9 @@ module Google
620
621
  # * (`String`) The path to a service account key file in JSON format
621
622
  # * (`Hash`) A service account key as a Hash
622
623
  # * (`Google::Auth::Credentials`) A googleauth credentials object
623
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
624
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
624
625
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
625
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
626
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
626
627
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
627
628
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
628
629
  # * (`nil`) indicating no credentials
@@ -664,7 +665,9 @@ module Google
664
665
  class Configuration
665
666
  extend ::Gapic::Config
666
667
 
667
- config_attr :endpoint, "apigeeregistry.googleapis.com", ::String
668
+ DEFAULT_ENDPOINT = "apigeeregistry.googleapis.com"
669
+
670
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
668
671
  config_attr :credentials, nil do |value|
669
672
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
670
673
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -699,6 +702,14 @@ module Google
699
702
  end
700
703
  end
701
704
 
705
+ ##
706
+ # Configuration for the channel pool
707
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
708
+ #
709
+ def channel_pool
710
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
711
+ end
712
+
702
713
  ##
703
714
  # Configuration RPC class for the Operations API.
704
715
  #
@@ -122,7 +122,7 @@ module Google
122
122
  credentials = @config.credentials
123
123
  # Use self-signed JWT if the endpoint is unchanged from default,
124
124
  # but only if the default endpoint does not have a region prefix.
125
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
125
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
126
126
  !@config.endpoint.split(".").first.include?("-")
127
127
  credentials ||= Credentials.default scope: @config.scope,
128
128
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -211,6 +211,29 @@ module Google
211
211
  # @return [::Gapic::Operation]
212
212
  #
213
213
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
214
+ #
215
+ # @example Basic example
216
+ # require "google/cloud/apigee_registry/v1"
217
+ #
218
+ # # Create a client object. The client can be reused for multiple calls.
219
+ # client = Google::Cloud::ApigeeRegistry::V1::Provisioning::Rest::Client.new
220
+ #
221
+ # # Create a request. To set request fields, pass in keyword arguments.
222
+ # request = Google::Cloud::ApigeeRegistry::V1::CreateInstanceRequest.new
223
+ #
224
+ # # Call the create_instance method.
225
+ # result = client.create_instance request
226
+ #
227
+ # # The returned object is of type Gapic::Operation. You can use it to
228
+ # # check the status of an operation, cancel it, or wait for results.
229
+ # # Here is how to wait for a response.
230
+ # result.wait_until_done! timeout: 60
231
+ # if result.response?
232
+ # p result.response
233
+ # else
234
+ # puts "No response received."
235
+ # end
236
+ #
214
237
  def create_instance request, options = nil
215
238
  raise ::ArgumentError, "request must be provided" if request.nil?
216
239
 
@@ -275,6 +298,29 @@ module Google
275
298
  # @return [::Gapic::Operation]
276
299
  #
277
300
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
301
+ #
302
+ # @example Basic example
303
+ # require "google/cloud/apigee_registry/v1"
304
+ #
305
+ # # Create a client object. The client can be reused for multiple calls.
306
+ # client = Google::Cloud::ApigeeRegistry::V1::Provisioning::Rest::Client.new
307
+ #
308
+ # # Create a request. To set request fields, pass in keyword arguments.
309
+ # request = Google::Cloud::ApigeeRegistry::V1::DeleteInstanceRequest.new
310
+ #
311
+ # # Call the delete_instance method.
312
+ # result = client.delete_instance request
313
+ #
314
+ # # The returned object is of type Gapic::Operation. You can use it to
315
+ # # check the status of an operation, cancel it, or wait for results.
316
+ # # Here is how to wait for a response.
317
+ # result.wait_until_done! timeout: 60
318
+ # if result.response?
319
+ # p result.response
320
+ # else
321
+ # puts "No response received."
322
+ # end
323
+ #
278
324
  def delete_instance request, options = nil
279
325
  raise ::ArgumentError, "request must be provided" if request.nil?
280
326
 
@@ -339,6 +385,22 @@ module Google
339
385
  # @return [::Google::Cloud::ApigeeRegistry::V1::Instance]
340
386
  #
341
387
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
388
+ #
389
+ # @example Basic example
390
+ # require "google/cloud/apigee_registry/v1"
391
+ #
392
+ # # Create a client object. The client can be reused for multiple calls.
393
+ # client = Google::Cloud::ApigeeRegistry::V1::Provisioning::Rest::Client.new
394
+ #
395
+ # # Create a request. To set request fields, pass in keyword arguments.
396
+ # request = Google::Cloud::ApigeeRegistry::V1::GetInstanceRequest.new
397
+ #
398
+ # # Call the get_instance method.
399
+ # result = client.get_instance request
400
+ #
401
+ # # The returned object is of type Google::Cloud::ApigeeRegistry::V1::Instance.
402
+ # p result
403
+ #
342
404
  def get_instance request, options = nil
343
405
  raise ::ArgumentError, "request must be provided" if request.nil?
344
406
 
@@ -412,9 +474,9 @@ module Google
412
474
  # * (`String`) The path to a service account key file in JSON format
413
475
  # * (`Hash`) A service account key as a Hash
414
476
  # * (`Google::Auth::Credentials`) A googleauth credentials object
415
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
477
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
416
478
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
417
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
479
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
418
480
  # * (`nil`) indicating no credentials
419
481
  # @return [::Object]
420
482
  # @!attribute [rw] scope
@@ -447,7 +509,9 @@ module Google
447
509
  class Configuration
448
510
  extend ::Gapic::Config
449
511
 
450
- config_attr :endpoint, "apigeeregistry.googleapis.com", ::String
512
+ DEFAULT_ENDPOINT = "apigeeregistry.googleapis.com"
513
+
514
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
451
515
  config_attr :credentials, nil do |value|
452
516
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
453
517
  allowed.any? { |klass| klass === value }
@@ -136,6 +136,26 @@ module Google
136
136
  # @return [::Gapic::Operation]
137
137
  #
138
138
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
139
+ #
140
+ # @example Basic example
141
+ # require "google/longrunning"
142
+ #
143
+ # # Create a client object. The client can be reused for multiple calls.
144
+ # client = Google::Longrunning::Operations::Rest::Client.new
145
+ #
146
+ # # Create a request. To set request fields, pass in keyword arguments.
147
+ # request = Google::Longrunning::ListOperationsRequest.new
148
+ #
149
+ # # Call the list_operations method.
150
+ # result = client.list_operations request
151
+ #
152
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
153
+ # # over elements, and API calls will be issued to fetch pages as needed.
154
+ # result.each do |item|
155
+ # # Each element is of type ::Google::Longrunning::Operation.
156
+ # p item
157
+ # end
158
+ #
139
159
  def list_operations request, options = nil
140
160
  raise ::ArgumentError, "request must be provided" if request.nil?
141
161
 
@@ -201,6 +221,29 @@ module Google
201
221
  # @return [::Gapic::Operation]
202
222
  #
203
223
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
224
+ #
225
+ # @example Basic example
226
+ # require "google/longrunning"
227
+ #
228
+ # # Create a client object. The client can be reused for multiple calls.
229
+ # client = Google::Longrunning::Operations::Rest::Client.new
230
+ #
231
+ # # Create a request. To set request fields, pass in keyword arguments.
232
+ # request = Google::Longrunning::GetOperationRequest.new
233
+ #
234
+ # # Call the get_operation method.
235
+ # result = client.get_operation request
236
+ #
237
+ # # The returned object is of type Gapic::Operation. You can use it to
238
+ # # check the status of an operation, cancel it, or wait for results.
239
+ # # Here is how to wait for a response.
240
+ # result.wait_until_done! timeout: 60
241
+ # if result.response?
242
+ # p result.response
243
+ # else
244
+ # puts "No response received."
245
+ # end
246
+ #
204
247
  def get_operation request, options = nil
205
248
  raise ::ArgumentError, "request must be provided" if request.nil?
206
249
 
@@ -267,6 +310,22 @@ module Google
267
310
  # @return [::Google::Protobuf::Empty]
268
311
  #
269
312
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
313
+ #
314
+ # @example Basic example
315
+ # require "google/longrunning"
316
+ #
317
+ # # Create a client object. The client can be reused for multiple calls.
318
+ # client = Google::Longrunning::Operations::Rest::Client.new
319
+ #
320
+ # # Create a request. To set request fields, pass in keyword arguments.
321
+ # request = Google::Longrunning::DeleteOperationRequest.new
322
+ #
323
+ # # Call the delete_operation method.
324
+ # result = client.delete_operation request
325
+ #
326
+ # # The returned object is of type Google::Protobuf::Empty.
327
+ # p result
328
+ #
270
329
  def delete_operation request, options = nil
271
330
  raise ::ArgumentError, "request must be provided" if request.nil?
272
331
 
@@ -338,6 +397,22 @@ module Google
338
397
  # @return [::Google::Protobuf::Empty]
339
398
  #
340
399
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
400
+ #
401
+ # @example Basic example
402
+ # require "google/longrunning"
403
+ #
404
+ # # Create a client object. The client can be reused for multiple calls.
405
+ # client = Google::Longrunning::Operations::Rest::Client.new
406
+ #
407
+ # # Create a request. To set request fields, pass in keyword arguments.
408
+ # request = Google::Longrunning::CancelOperationRequest.new
409
+ #
410
+ # # Call the cancel_operation method.
411
+ # result = client.cancel_operation request
412
+ #
413
+ # # The returned object is of type Google::Protobuf::Empty.
414
+ # p result
415
+ #
341
416
  def cancel_operation request, options = nil
342
417
  raise ::ArgumentError, "request must be provided" if request.nil?
343
418
 
@@ -411,9 +486,9 @@ module Google
411
486
  # * (`String`) The path to a service account key file in JSON format
412
487
  # * (`Hash`) A service account key as a Hash
413
488
  # * (`Google::Auth::Credentials`) A googleauth credentials object
414
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
489
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
415
490
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
416
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
491
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
417
492
  # * (`nil`) indicating no credentials
418
493
  # @return [::Object]
419
494
  # @!attribute [rw] scope
@@ -446,7 +521,9 @@ module Google
446
521
  class Configuration
447
522
  extend ::Gapic::Config
448
523
 
449
- config_attr :endpoint, "apigeeregistry.googleapis.com", ::String
524
+ DEFAULT_ENDPOINT = "apigeeregistry.googleapis.com"
525
+
526
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
450
527
  config_attr :credentials, nil do |value|
451
528
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
452
529
  allowed.any? { |klass| klass === value }
@@ -567,7 +644,7 @@ module Google
567
644
 
568
645
  verb, uri, query_string_params, body = OperationsServiceStub.transcode_list_operations_request request_pb
569
646
  query_string_params = if query_string_params.any?
570
- query_string_params.to_h { |p| p.split("=", 2) }
647
+ query_string_params.to_h { |p| p.split "=", 2 }
571
648
  else
572
649
  {}
573
650
  end
@@ -605,7 +682,7 @@ module Google
605
682
 
606
683
  verb, uri, query_string_params, body = OperationsServiceStub.transcode_get_operation_request request_pb
607
684
  query_string_params = if query_string_params.any?
608
- query_string_params.to_h { |p| p.split("=", 2) }
685
+ query_string_params.to_h { |p| p.split "=", 2 }
609
686
  else
610
687
  {}
611
688
  end
@@ -643,7 +720,7 @@ module Google
643
720
 
644
721
  verb, uri, query_string_params, body = OperationsServiceStub.transcode_delete_operation_request request_pb
645
722
  query_string_params = if query_string_params.any?
646
- query_string_params.to_h { |p| p.split("=", 2) }
723
+ query_string_params.to_h { |p| p.split "=", 2 }
647
724
  else
648
725
  {}
649
726
  end
@@ -681,7 +758,7 @@ module Google
681
758
 
682
759
  verb, uri, query_string_params, body = OperationsServiceStub.transcode_cancel_operation_request request_pb
683
760
  query_string_params = if query_string_params.any?
684
- query_string_params.to_h { |p| p.split("=", 2) }
761
+ query_string_params.to_h { |p| p.split "=", 2 }
685
762
  else
686
763
  {}
687
764
  end
@@ -59,7 +59,7 @@ module Google
59
59
 
60
60
  verb, uri, query_string_params, body = ServiceStub.transcode_create_instance_request request_pb
61
61
  query_string_params = if query_string_params.any?
62
- query_string_params.to_h { |p| p.split("=", 2) }
62
+ query_string_params.to_h { |p| p.split "=", 2 }
63
63
  else
64
64
  {}
65
65
  end
@@ -97,7 +97,7 @@ module Google
97
97
 
98
98
  verb, uri, query_string_params, body = ServiceStub.transcode_delete_instance_request request_pb
99
99
  query_string_params = if query_string_params.any?
100
- query_string_params.to_h { |p| p.split("=", 2) }
100
+ query_string_params.to_h { |p| p.split "=", 2 }
101
101
  else
102
102
  {}
103
103
  end
@@ -135,7 +135,7 @@ module Google
135
135
 
136
136
  verb, uri, query_string_params, body = ServiceStub.transcode_get_instance_request request_pb
137
137
  query_string_params = if query_string_params.any?
138
- query_string_params.to_h { |p| p.split("=", 2) }
138
+ query_string_params.to_h { |p| p.split "=", 2 }
139
139
  else
140
140
  {}
141
141
  end
@@ -294,7 +294,7 @@ module Google
294
294
  credentials = @config.credentials
295
295
  # Use self-signed JWT if the endpoint is unchanged from default,
296
296
  # but only if the default endpoint does not have a region prefix.
297
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
297
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
298
298
  !@config.endpoint.split(".").first.include?("-")
299
299
  credentials ||= Credentials.default scope: @config.scope,
300
300
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -321,7 +321,8 @@ module Google
321
321
  credentials: credentials,
322
322
  endpoint: @config.endpoint,
323
323
  channel_args: @config.channel_args,
324
- interceptors: @config.interceptors
324
+ interceptors: @config.interceptors,
325
+ channel_pool_config: @config.channel_pool
325
326
  )
326
327
  end
327
328
 
@@ -3639,9 +3640,9 @@ module Google
3639
3640
  # * (`String`) The path to a service account key file in JSON format
3640
3641
  # * (`Hash`) A service account key as a Hash
3641
3642
  # * (`Google::Auth::Credentials`) A googleauth credentials object
3642
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
3643
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
3643
3644
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
3644
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
3645
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
3645
3646
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
3646
3647
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
3647
3648
  # * (`nil`) indicating no credentials
@@ -3683,7 +3684,9 @@ module Google
3683
3684
  class Configuration
3684
3685
  extend ::Gapic::Config
3685
3686
 
3686
- config_attr :endpoint, "apigeeregistry.googleapis.com", ::String
3687
+ DEFAULT_ENDPOINT = "apigeeregistry.googleapis.com"
3688
+
3689
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
3687
3690
  config_attr :credentials, nil do |value|
3688
3691
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
3689
3692
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -3718,6 +3721,14 @@ module Google
3718
3721
  end
3719
3722
  end
3720
3723
 
3724
+ ##
3725
+ # Configuration for the channel pool
3726
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
3727
+ #
3728
+ def channel_pool
3729
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
3730
+ end
3731
+
3721
3732
  ##
3722
3733
  # Configuration RPC class for the Registry API.
3723
3734
  #