google-cloud-gke_multi_cloud-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: 0f04e1f6312ea97e79b92118f2af0ba06c598b425d9cfed41940f67b6c5a4edf
4
- data.tar.gz: fa5a8b29e28d8c06b559b710bc9f454a41c0855ce8522d918fa2ba08f72d6660
3
+ metadata.gz: 54678eb55c16a6d56112db4b5ad4a183dc93631661c4482ee95c45292f2f2c54
4
+ data.tar.gz: 52feb6b37efb467f2951e9f01070ffb2bdd2fa3e295e2fb608d51ef54dc7f955
5
5
  SHA512:
6
- metadata.gz: 4ba5a74176bdfdf87c174ab8465a42ac63123cad617d3f367cb23ed6722779f5c1e9644ede01a45d28bf31105848fb7661119fa42fd40569c9c01377cbd02b52
7
- data.tar.gz: 27630b36ea801feed49e4248dd293541201a90129d07a7e1ee64d1d0a5ff35e8acf0a8c0d319288f5f057036f44d09b6deb92921c162ad6bea1433091f4c18bb
6
+ metadata.gz: 131b75cf08765233869207677601733b1de344b164d2d7bdb7cde0c22910f77d09b4850f01ee5084414ab9714500eb42794b4c2f06429d6d0b22ed50b4cd75da
7
+ data.tar.gz: bc997c36e530db9fa2b790a51c9c378ad5448ef17c59bd4fbfd327cbfa89ef960713241f610374931f67cb34ecd3e9d820e1386b033196d23b101ce8f109733d
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Ruby Client for the Anthos Multi-Cloud V1 API
2
2
 
3
- API Client library for the Anthos Multi-Cloud V1 API
3
+ Anthos Multi-Cloud provides a way to manage Kubernetes clusters that run on AWS and Azure infrastructure using the Anthos Multi-Cloud API. Combined with Connect, you can manage Kubernetes clusters on Google Cloud, AWS, and Azure from the Google Cloud Console. When you create a cluster with Anthos Multi-Cloud, Google creates the resources needed and brings up a cluster on your behalf. You can deploy workloads with the Anthos Multi-Cloud API or the gcloud and kubectl command-line tools.
4
4
 
5
5
  Anthos Multi-Cloud provides a way to manage Kubernetes clusters that run on AWS and Azure infrastructure using the Anthos Multi-Cloud API. Combined with Connect, you can manage Kubernetes clusters on Google Cloud, AWS, and Azure from the Google Cloud Console.
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
 
@@ -153,7 +153,7 @@ module Google
153
153
  credentials = @config.credentials
154
154
  # Use self-signed JWT if the endpoint is unchanged from default,
155
155
  # but only if the default endpoint does not have a region prefix.
156
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
156
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
157
157
  !@config.endpoint.split(".").first.include?("-")
158
158
  credentials ||= Credentials.default scope: @config.scope,
159
159
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -174,7 +174,8 @@ module Google
174
174
  credentials: credentials,
175
175
  endpoint: @config.endpoint,
176
176
  channel_args: @config.channel_args,
177
- interceptors: @config.interceptors
177
+ interceptors: @config.interceptors,
178
+ channel_pool_config: @config.channel_pool
178
179
  )
179
180
  end
180
181
 
@@ -256,14 +257,14 @@ module Google
256
257
  # # Call the create_attached_cluster method.
257
258
  # result = client.create_attached_cluster request
258
259
  #
259
- # # The returned object is of type Gapic::Operation. You can use this
260
- # # object to check the status of an operation, cancel it, or wait
261
- # # for results. Here is how to block until completion:
260
+ # # The returned object is of type Gapic::Operation. You can use it to
261
+ # # check the status of an operation, cancel it, or wait for results.
262
+ # # Here is how to wait for a response.
262
263
  # result.wait_until_done! timeout: 60
263
264
  # if result.response?
264
265
  # p result.response
265
266
  # else
266
- # puts "Error!"
267
+ # puts "No response received."
267
268
  # end
268
269
  #
269
270
  def create_attached_cluster request, options = nil
@@ -366,14 +367,14 @@ module Google
366
367
  # # Call the update_attached_cluster method.
367
368
  # result = client.update_attached_cluster request
368
369
  #
369
- # # The returned object is of type Gapic::Operation. You can use this
370
- # # object to check the status of an operation, cancel it, or wait
371
- # # for results. Here is how to block until completion:
370
+ # # The returned object is of type Gapic::Operation. You can use it to
371
+ # # check the status of an operation, cancel it, or wait for results.
372
+ # # Here is how to wait for a response.
372
373
  # result.wait_until_done! timeout: 60
373
374
  # if result.response?
374
375
  # p result.response
375
376
  # else
376
- # puts "Error!"
377
+ # puts "No response received."
377
378
  # end
378
379
  #
379
380
  def update_attached_cluster request, options = nil
@@ -489,14 +490,14 @@ module Google
489
490
  # # Call the import_attached_cluster method.
490
491
  # result = client.import_attached_cluster request
491
492
  #
492
- # # The returned object is of type Gapic::Operation. You can use this
493
- # # object to check the status of an operation, cancel it, or wait
494
- # # for results. Here is how to block until completion:
493
+ # # The returned object is of type Gapic::Operation. You can use it to
494
+ # # check the status of an operation, cancel it, or wait for results.
495
+ # # Here is how to wait for a response.
495
496
  # result.wait_until_done! timeout: 60
496
497
  # if result.response?
497
498
  # p result.response
498
499
  # else
499
- # puts "Error!"
500
+ # puts "No response received."
500
501
  # end
501
502
  #
502
503
  def import_attached_cluster request, options = nil
@@ -695,13 +696,11 @@ module Google
695
696
  # # Call the list_attached_clusters method.
696
697
  # result = client.list_attached_clusters request
697
698
  #
698
- # # The returned object is of type Gapic::PagedEnumerable. You can
699
- # # iterate over all elements by calling #each, and the enumerable
700
- # # will lazily make API calls to fetch subsequent pages. Other
701
- # # methods are also available for managing paging directly.
702
- # result.each do |response|
699
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
700
+ # # over elements, and API calls will be issued to fetch pages as needed.
701
+ # result.each do |item|
703
702
  # # Each element is of type ::Google::Cloud::GkeMultiCloud::V1::AttachedCluster.
704
- # p response
703
+ # p item
705
704
  # end
706
705
  #
707
706
  def list_attached_clusters request, options = nil
@@ -822,14 +821,14 @@ module Google
822
821
  # # Call the delete_attached_cluster method.
823
822
  # result = client.delete_attached_cluster request
824
823
  #
825
- # # The returned object is of type Gapic::Operation. You can use this
826
- # # object to check the status of an operation, cancel it, or wait
827
- # # for results. Here is how to block until completion:
824
+ # # The returned object is of type Gapic::Operation. You can use it to
825
+ # # check the status of an operation, cancel it, or wait for results.
826
+ # # Here is how to wait for a response.
828
827
  # result.wait_until_done! timeout: 60
829
828
  # if result.response?
830
829
  # p result.response
831
830
  # else
832
- # puts "Error!"
831
+ # puts "No response received."
833
832
  # end
834
833
  #
835
834
  def delete_attached_cluster request, options = nil
@@ -1120,9 +1119,9 @@ module Google
1120
1119
  # * (`String`) The path to a service account key file in JSON format
1121
1120
  # * (`Hash`) A service account key as a Hash
1122
1121
  # * (`Google::Auth::Credentials`) A googleauth credentials object
1123
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
1122
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
1124
1123
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
1125
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
1124
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
1126
1125
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
1127
1126
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
1128
1127
  # * (`nil`) indicating no credentials
@@ -1164,7 +1163,9 @@ module Google
1164
1163
  class Configuration
1165
1164
  extend ::Gapic::Config
1166
1165
 
1167
- config_attr :endpoint, "gkemulticloud.googleapis.com", ::String
1166
+ DEFAULT_ENDPOINT = "gkemulticloud.googleapis.com"
1167
+
1168
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
1168
1169
  config_attr :credentials, nil do |value|
1169
1170
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
1170
1171
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -1199,6 +1200,14 @@ module Google
1199
1200
  end
1200
1201
  end
1201
1202
 
1203
+ ##
1204
+ # Configuration for the channel pool
1205
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
1206
+ #
1207
+ def channel_pool
1208
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
1209
+ end
1210
+
1202
1211
  ##
1203
1212
  # Configuration RPC class for the AttachedClusters API.
1204
1213
  #
@@ -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
@@ -158,13 +159,11 @@ module Google
158
159
  # # Call the list_operations method.
159
160
  # result = client.list_operations request
160
161
  #
161
- # # The returned object is of type Gapic::PagedEnumerable. You can
162
- # # iterate over all elements by calling #each, and the enumerable
163
- # # will lazily make API calls to fetch subsequent pages. Other
164
- # # methods are also available for managing paging directly.
165
- # result.each do |response|
162
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
163
+ # # over elements, and API calls will be issued to fetch pages as needed.
164
+ # result.each do |item|
166
165
  # # Each element is of type ::Google::Longrunning::Operation.
167
- # p response
166
+ # p item
168
167
  # end
169
168
  #
170
169
  def list_operations request, options = nil
@@ -253,14 +252,14 @@ module Google
253
252
  # # Call the get_operation method.
254
253
  # result = client.get_operation request
255
254
  #
256
- # # The returned object is of type Gapic::Operation. You can use this
257
- # # object to check the status of an operation, cancel it, or wait
258
- # # for results. Here is how to block until completion:
255
+ # # The returned object is of type Gapic::Operation. You can use it to
256
+ # # check the status of an operation, cancel it, or wait for results.
257
+ # # Here is how to wait for a response.
259
258
  # result.wait_until_done! timeout: 60
260
259
  # if result.response?
261
260
  # p result.response
262
261
  # else
263
- # puts "Error!"
262
+ # puts "No response received."
264
263
  # end
265
264
  #
266
265
  def get_operation request, options = nil
@@ -540,14 +539,14 @@ module Google
540
539
  # # Call the wait_operation method.
541
540
  # result = client.wait_operation request
542
541
  #
543
- # # The returned object is of type Gapic::Operation. You can use this
544
- # # object to check the status of an operation, cancel it, or wait
545
- # # for results. Here is how to block until completion:
542
+ # # The returned object is of type Gapic::Operation. You can use it to
543
+ # # check the status of an operation, cancel it, or wait for results.
544
+ # # Here is how to wait for a response.
546
545
  # result.wait_until_done! timeout: 60
547
546
  # if result.response?
548
547
  # p result.response
549
548
  # else
550
- # puts "Error!"
549
+ # puts "No response received."
551
550
  # end
552
551
  #
553
552
  def wait_operation request, options = nil
@@ -622,9 +621,9 @@ module Google
622
621
  # * (`String`) The path to a service account key file in JSON format
623
622
  # * (`Hash`) A service account key as a Hash
624
623
  # * (`Google::Auth::Credentials`) A googleauth credentials object
625
- # (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))
626
625
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
627
- # (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))
628
627
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
629
628
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
630
629
  # * (`nil`) indicating no credentials
@@ -666,7 +665,9 @@ module Google
666
665
  class Configuration
667
666
  extend ::Gapic::Config
668
667
 
669
- config_attr :endpoint, "gkemulticloud.googleapis.com", ::String
668
+ DEFAULT_ENDPOINT = "gkemulticloud.googleapis.com"
669
+
670
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
670
671
  config_attr :credentials, nil do |value|
671
672
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
672
673
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -701,6 +702,14 @@ module Google
701
702
  end
702
703
  end
703
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
+
704
713
  ##
705
714
  # Configuration RPC class for the Operations API.
706
715
  #
@@ -166,7 +166,7 @@ module Google
166
166
  credentials = @config.credentials
167
167
  # Use self-signed JWT if the endpoint is unchanged from default,
168
168
  # but only if the default endpoint does not have a region prefix.
169
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
169
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
170
170
  !@config.endpoint.split(".").first.include?("-")
171
171
  credentials ||= Credentials.default scope: @config.scope,
172
172
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -187,7 +187,8 @@ module Google
187
187
  credentials: credentials,
188
188
  endpoint: @config.endpoint,
189
189
  channel_args: @config.channel_args,
190
- interceptors: @config.interceptors
190
+ interceptors: @config.interceptors,
191
+ channel_pool_config: @config.channel_pool
191
192
  )
192
193
  end
193
194
 
@@ -268,14 +269,14 @@ module Google
268
269
  # # Call the create_aws_cluster method.
269
270
  # result = client.create_aws_cluster request
270
271
  #
271
- # # The returned object is of type Gapic::Operation. You can use this
272
- # # object to check the status of an operation, cancel it, or wait
273
- # # for results. Here is how to block until completion:
272
+ # # The returned object is of type Gapic::Operation. You can use it to
273
+ # # check the status of an operation, cancel it, or wait for results.
274
+ # # Here is how to wait for a response.
274
275
  # result.wait_until_done! timeout: 60
275
276
  # if result.response?
276
277
  # p result.response
277
278
  # else
278
- # puts "Error!"
279
+ # puts "No response received."
279
280
  # end
280
281
  #
281
282
  def create_aws_cluster request, options = nil
@@ -392,14 +393,14 @@ module Google
392
393
  # # Call the update_aws_cluster method.
393
394
  # result = client.update_aws_cluster request
394
395
  #
395
- # # The returned object is of type Gapic::Operation. You can use this
396
- # # object to check the status of an operation, cancel it, or wait
397
- # # for results. Here is how to block until completion:
396
+ # # The returned object is of type Gapic::Operation. You can use it to
397
+ # # check the status of an operation, cancel it, or wait for results.
398
+ # # Here is how to wait for a response.
398
399
  # result.wait_until_done! timeout: 60
399
400
  # if result.response?
400
401
  # p result.response
401
402
  # else
402
- # puts "Error!"
403
+ # puts "No response received."
403
404
  # end
404
405
  #
405
406
  def update_aws_cluster request, options = nil
@@ -598,13 +599,11 @@ module Google
598
599
  # # Call the list_aws_clusters method.
599
600
  # result = client.list_aws_clusters request
600
601
  #
601
- # # The returned object is of type Gapic::PagedEnumerable. You can
602
- # # iterate over all elements by calling #each, and the enumerable
603
- # # will lazily make API calls to fetch subsequent pages. Other
604
- # # methods are also available for managing paging directly.
605
- # result.each do |response|
602
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
603
+ # # over elements, and API calls will be issued to fetch pages as needed.
604
+ # result.each do |item|
606
605
  # # Each element is of type ::Google::Cloud::GkeMultiCloud::V1::AwsCluster.
607
- # p response
606
+ # p item
608
607
  # end
609
608
  #
610
609
  def list_aws_clusters request, options = nil
@@ -722,14 +721,14 @@ module Google
722
721
  # # Call the delete_aws_cluster method.
723
722
  # result = client.delete_aws_cluster request
724
723
  #
725
- # # The returned object is of type Gapic::Operation. You can use this
726
- # # object to check the status of an operation, cancel it, or wait
727
- # # for results. Here is how to block until completion:
724
+ # # The returned object is of type Gapic::Operation. You can use it to
725
+ # # check the status of an operation, cancel it, or wait for results.
726
+ # # Here is how to wait for a response.
728
727
  # result.wait_until_done! timeout: 60
729
728
  # if result.response?
730
729
  # p result.response
731
730
  # else
732
- # puts "Error!"
731
+ # puts "No response received."
733
732
  # end
734
733
  #
735
734
  def delete_aws_cluster request, options = nil
@@ -937,14 +936,14 @@ module Google
937
936
  # # Call the create_aws_node_pool method.
938
937
  # result = client.create_aws_node_pool request
939
938
  #
940
- # # The returned object is of type Gapic::Operation. You can use this
941
- # # object to check the status of an operation, cancel it, or wait
942
- # # for results. Here is how to block until completion:
939
+ # # The returned object is of type Gapic::Operation. You can use it to
940
+ # # check the status of an operation, cancel it, or wait for results.
941
+ # # Here is how to wait for a response.
943
942
  # result.wait_until_done! timeout: 60
944
943
  # if result.response?
945
944
  # p result.response
946
945
  # else
947
- # puts "Error!"
946
+ # puts "No response received."
948
947
  # end
949
948
  #
950
949
  def create_aws_node_pool request, options = nil
@@ -1060,14 +1059,14 @@ module Google
1060
1059
  # # Call the update_aws_node_pool method.
1061
1060
  # result = client.update_aws_node_pool request
1062
1061
  #
1063
- # # The returned object is of type Gapic::Operation. You can use this
1064
- # # object to check the status of an operation, cancel it, or wait
1065
- # # for results. Here is how to block until completion:
1062
+ # # The returned object is of type Gapic::Operation. You can use it to
1063
+ # # check the status of an operation, cancel it, or wait for results.
1064
+ # # Here is how to wait for a response.
1066
1065
  # result.wait_until_done! timeout: 60
1067
1066
  # if result.response?
1068
1067
  # p result.response
1069
1068
  # else
1070
- # puts "Error!"
1069
+ # puts "No response received."
1071
1070
  # end
1072
1071
  #
1073
1072
  def update_aws_node_pool request, options = nil
@@ -1268,13 +1267,11 @@ module Google
1268
1267
  # # Call the list_aws_node_pools method.
1269
1268
  # result = client.list_aws_node_pools request
1270
1269
  #
1271
- # # The returned object is of type Gapic::PagedEnumerable. You can
1272
- # # iterate over all elements by calling #each, and the enumerable
1273
- # # will lazily make API calls to fetch subsequent pages. Other
1274
- # # methods are also available for managing paging directly.
1275
- # result.each do |response|
1270
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1271
+ # # over elements, and API calls will be issued to fetch pages as needed.
1272
+ # result.each do |item|
1276
1273
  # # Each element is of type ::Google::Cloud::GkeMultiCloud::V1::AwsNodePool.
1277
- # p response
1274
+ # p item
1278
1275
  # end
1279
1276
  #
1280
1277
  def list_aws_node_pools request, options = nil
@@ -1390,14 +1387,14 @@ module Google
1390
1387
  # # Call the delete_aws_node_pool method.
1391
1388
  # result = client.delete_aws_node_pool request
1392
1389
  #
1393
- # # The returned object is of type Gapic::Operation. You can use this
1394
- # # object to check the status of an operation, cancel it, or wait
1395
- # # for results. Here is how to block until completion:
1390
+ # # The returned object is of type Gapic::Operation. You can use it to
1391
+ # # check the status of an operation, cancel it, or wait for results.
1392
+ # # Here is how to wait for a response.
1396
1393
  # result.wait_until_done! timeout: 60
1397
1394
  # if result.response?
1398
1395
  # p result.response
1399
1396
  # else
1400
- # puts "Error!"
1397
+ # puts "No response received."
1401
1398
  # end
1402
1399
  #
1403
1400
  def delete_aws_node_pool request, options = nil
@@ -1574,9 +1571,9 @@ module Google
1574
1571
  # * (`String`) The path to a service account key file in JSON format
1575
1572
  # * (`Hash`) A service account key as a Hash
1576
1573
  # * (`Google::Auth::Credentials`) A googleauth credentials object
1577
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
1574
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
1578
1575
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
1579
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
1576
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
1580
1577
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
1581
1578
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
1582
1579
  # * (`nil`) indicating no credentials
@@ -1618,7 +1615,9 @@ module Google
1618
1615
  class Configuration
1619
1616
  extend ::Gapic::Config
1620
1617
 
1621
- config_attr :endpoint, "gkemulticloud.googleapis.com", ::String
1618
+ DEFAULT_ENDPOINT = "gkemulticloud.googleapis.com"
1619
+
1620
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
1622
1621
  config_attr :credentials, nil do |value|
1623
1622
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
1624
1623
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -1653,6 +1652,14 @@ module Google
1653
1652
  end
1654
1653
  end
1655
1654
 
1655
+ ##
1656
+ # Configuration for the channel pool
1657
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
1658
+ #
1659
+ def channel_pool
1660
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
1661
+ end
1662
+
1656
1663
  ##
1657
1664
  # Configuration RPC class for the AwsClusters API.
1658
1665
  #
@@ -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
@@ -158,13 +159,11 @@ module Google
158
159
  # # Call the list_operations method.
159
160
  # result = client.list_operations request
160
161
  #
161
- # # The returned object is of type Gapic::PagedEnumerable. You can
162
- # # iterate over all elements by calling #each, and the enumerable
163
- # # will lazily make API calls to fetch subsequent pages. Other
164
- # # methods are also available for managing paging directly.
165
- # result.each do |response|
162
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
163
+ # # over elements, and API calls will be issued to fetch pages as needed.
164
+ # result.each do |item|
166
165
  # # Each element is of type ::Google::Longrunning::Operation.
167
- # p response
166
+ # p item
168
167
  # end
169
168
  #
170
169
  def list_operations request, options = nil
@@ -253,14 +252,14 @@ module Google
253
252
  # # Call the get_operation method.
254
253
  # result = client.get_operation request
255
254
  #
256
- # # The returned object is of type Gapic::Operation. You can use this
257
- # # object to check the status of an operation, cancel it, or wait
258
- # # for results. Here is how to block until completion:
255
+ # # The returned object is of type Gapic::Operation. You can use it to
256
+ # # check the status of an operation, cancel it, or wait for results.
257
+ # # Here is how to wait for a response.
259
258
  # result.wait_until_done! timeout: 60
260
259
  # if result.response?
261
260
  # p result.response
262
261
  # else
263
- # puts "Error!"
262
+ # puts "No response received."
264
263
  # end
265
264
  #
266
265
  def get_operation request, options = nil
@@ -540,14 +539,14 @@ module Google
540
539
  # # Call the wait_operation method.
541
540
  # result = client.wait_operation request
542
541
  #
543
- # # The returned object is of type Gapic::Operation. You can use this
544
- # # object to check the status of an operation, cancel it, or wait
545
- # # for results. Here is how to block until completion:
542
+ # # The returned object is of type Gapic::Operation. You can use it to
543
+ # # check the status of an operation, cancel it, or wait for results.
544
+ # # Here is how to wait for a response.
546
545
  # result.wait_until_done! timeout: 60
547
546
  # if result.response?
548
547
  # p result.response
549
548
  # else
550
- # puts "Error!"
549
+ # puts "No response received."
551
550
  # end
552
551
  #
553
552
  def wait_operation request, options = nil
@@ -622,9 +621,9 @@ module Google
622
621
  # * (`String`) The path to a service account key file in JSON format
623
622
  # * (`Hash`) A service account key as a Hash
624
623
  # * (`Google::Auth::Credentials`) A googleauth credentials object
625
- # (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))
626
625
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
627
- # (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))
628
627
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
629
628
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
630
629
  # * (`nil`) indicating no credentials
@@ -666,7 +665,9 @@ module Google
666
665
  class Configuration
667
666
  extend ::Gapic::Config
668
667
 
669
- config_attr :endpoint, "gkemulticloud.googleapis.com", ::String
668
+ DEFAULT_ENDPOINT = "gkemulticloud.googleapis.com"
669
+
670
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
670
671
  config_attr :credentials, nil do |value|
671
672
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
672
673
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -701,6 +702,14 @@ module Google
701
702
  end
702
703
  end
703
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
+
704
713
  ##
705
714
  # Configuration RPC class for the Operations API.
706
715
  #