google-cloud-gke_multi_cloud-v1 0.4.0 → 0.5.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: fc02e5a425611aa5e2e1b4007e3f719af0a73c5b16af773e091ebd7c431c6311
4
+ data.tar.gz: bd3cddc86c8ab48ae5c6b3e604200c0b388b7db45f7859b1ad0444dccedc9f27
5
5
  SHA512:
6
- metadata.gz: 4ba5a74176bdfdf87c174ab8465a42ac63123cad617d3f367cb23ed6722779f5c1e9644ede01a45d28bf31105848fb7661119fa42fd40569c9c01377cbd02b52
7
- data.tar.gz: 27630b36ea801feed49e4248dd293541201a90129d07a7e1ee64d1d0a5ff35e8acf0a8c0d319288f5f057036f44d09b6deb92921c162ad6bea1433091f4c18bb
6
+ metadata.gz: f6ad66bb563b588503204aed3650ccc23c78dd9ece2e7ab44dcfbe8b2e4bc8ba4c92fcf4445398e5c16c0342491d590c6ddcab87d55952bdc037966c98186547
7
+ data.tar.gz: 974724d9cc213b20eaae2d191cff5b11d9113dd4ea522d86f3497f25cbea20749615f87451c91bccf88a3f0c9d357d9347457e17c12fb5d01e40a79398f8ddf6
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
@@ -256,14 +256,14 @@ module Google
256
256
  # # Call the create_attached_cluster method.
257
257
  # result = client.create_attached_cluster request
258
258
  #
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:
259
+ # # The returned object is of type Gapic::Operation. You can use it to
260
+ # # check the status of an operation, cancel it, or wait for results.
261
+ # # Here is how to wait for a response.
262
262
  # result.wait_until_done! timeout: 60
263
263
  # if result.response?
264
264
  # p result.response
265
265
  # else
266
- # puts "Error!"
266
+ # puts "No response received."
267
267
  # end
268
268
  #
269
269
  def create_attached_cluster request, options = nil
@@ -366,14 +366,14 @@ module Google
366
366
  # # Call the update_attached_cluster method.
367
367
  # result = client.update_attached_cluster request
368
368
  #
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:
369
+ # # The returned object is of type Gapic::Operation. You can use it to
370
+ # # check the status of an operation, cancel it, or wait for results.
371
+ # # Here is how to wait for a response.
372
372
  # result.wait_until_done! timeout: 60
373
373
  # if result.response?
374
374
  # p result.response
375
375
  # else
376
- # puts "Error!"
376
+ # puts "No response received."
377
377
  # end
378
378
  #
379
379
  def update_attached_cluster request, options = nil
@@ -489,14 +489,14 @@ module Google
489
489
  # # Call the import_attached_cluster method.
490
490
  # result = client.import_attached_cluster request
491
491
  #
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:
492
+ # # The returned object is of type Gapic::Operation. You can use it to
493
+ # # check the status of an operation, cancel it, or wait for results.
494
+ # # Here is how to wait for a response.
495
495
  # result.wait_until_done! timeout: 60
496
496
  # if result.response?
497
497
  # p result.response
498
498
  # else
499
- # puts "Error!"
499
+ # puts "No response received."
500
500
  # end
501
501
  #
502
502
  def import_attached_cluster request, options = nil
@@ -695,13 +695,11 @@ module Google
695
695
  # # Call the list_attached_clusters method.
696
696
  # result = client.list_attached_clusters request
697
697
  #
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|
698
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
699
+ # # over elements, and API calls will be issued to fetch pages as needed.
700
+ # result.each do |item|
703
701
  # # Each element is of type ::Google::Cloud::GkeMultiCloud::V1::AttachedCluster.
704
- # p response
702
+ # p item
705
703
  # end
706
704
  #
707
705
  def list_attached_clusters request, options = nil
@@ -822,14 +820,14 @@ module Google
822
820
  # # Call the delete_attached_cluster method.
823
821
  # result = client.delete_attached_cluster request
824
822
  #
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:
823
+ # # The returned object is of type Gapic::Operation. You can use it to
824
+ # # check the status of an operation, cancel it, or wait for results.
825
+ # # Here is how to wait for a response.
828
826
  # result.wait_until_done! timeout: 60
829
827
  # if result.response?
830
828
  # p result.response
831
829
  # else
832
- # puts "Error!"
830
+ # puts "No response received."
833
831
  # end
834
832
  #
835
833
  def delete_attached_cluster request, options = nil
@@ -1120,9 +1118,9 @@ module Google
1120
1118
  # * (`String`) The path to a service account key file in JSON format
1121
1119
  # * (`Hash`) A service account key as a Hash
1122
1120
  # * (`Google::Auth::Credentials`) A googleauth credentials object
1123
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
1121
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
1124
1122
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
1125
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
1123
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
1126
1124
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
1127
1125
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
1128
1126
  # * (`nil`) indicating no credentials
@@ -1164,7 +1162,9 @@ module Google
1164
1162
  class Configuration
1165
1163
  extend ::Gapic::Config
1166
1164
 
1167
- config_attr :endpoint, "gkemulticloud.googleapis.com", ::String
1165
+ DEFAULT_ENDPOINT = "gkemulticloud.googleapis.com"
1166
+
1167
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
1168
1168
  config_attr :credentials, nil do |value|
1169
1169
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
1170
1170
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -158,13 +158,11 @@ module Google
158
158
  # # Call the list_operations method.
159
159
  # result = client.list_operations request
160
160
  #
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|
161
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
162
+ # # over elements, and API calls will be issued to fetch pages as needed.
163
+ # result.each do |item|
166
164
  # # Each element is of type ::Google::Longrunning::Operation.
167
- # p response
165
+ # p item
168
166
  # end
169
167
  #
170
168
  def list_operations request, options = nil
@@ -253,14 +251,14 @@ module Google
253
251
  # # Call the get_operation method.
254
252
  # result = client.get_operation request
255
253
  #
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:
254
+ # # The returned object is of type Gapic::Operation. You can use it to
255
+ # # check the status of an operation, cancel it, or wait for results.
256
+ # # Here is how to wait for a response.
259
257
  # result.wait_until_done! timeout: 60
260
258
  # if result.response?
261
259
  # p result.response
262
260
  # else
263
- # puts "Error!"
261
+ # puts "No response received."
264
262
  # end
265
263
  #
266
264
  def get_operation request, options = nil
@@ -540,14 +538,14 @@ module Google
540
538
  # # Call the wait_operation method.
541
539
  # result = client.wait_operation request
542
540
  #
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:
541
+ # # The returned object is of type Gapic::Operation. You can use it to
542
+ # # check the status of an operation, cancel it, or wait for results.
543
+ # # Here is how to wait for a response.
546
544
  # result.wait_until_done! timeout: 60
547
545
  # if result.response?
548
546
  # p result.response
549
547
  # else
550
- # puts "Error!"
548
+ # puts "No response received."
551
549
  # end
552
550
  #
553
551
  def wait_operation request, options = nil
@@ -622,9 +620,9 @@ module Google
622
620
  # * (`String`) The path to a service account key file in JSON format
623
621
  # * (`Hash`) A service account key as a Hash
624
622
  # * (`Google::Auth::Credentials`) A googleauth credentials object
625
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
623
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
626
624
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
627
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
625
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
628
626
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
629
627
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
630
628
  # * (`nil`) indicating no credentials
@@ -666,7 +664,9 @@ module Google
666
664
  class Configuration
667
665
  extend ::Gapic::Config
668
666
 
669
- config_attr :endpoint, "gkemulticloud.googleapis.com", ::String
667
+ DEFAULT_ENDPOINT = "gkemulticloud.googleapis.com"
668
+
669
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
670
670
  config_attr :credentials, nil do |value|
671
671
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
672
672
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -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
@@ -268,14 +268,14 @@ module Google
268
268
  # # Call the create_aws_cluster method.
269
269
  # result = client.create_aws_cluster request
270
270
  #
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:
271
+ # # The returned object is of type Gapic::Operation. You can use it to
272
+ # # check the status of an operation, cancel it, or wait for results.
273
+ # # Here is how to wait for a response.
274
274
  # result.wait_until_done! timeout: 60
275
275
  # if result.response?
276
276
  # p result.response
277
277
  # else
278
- # puts "Error!"
278
+ # puts "No response received."
279
279
  # end
280
280
  #
281
281
  def create_aws_cluster request, options = nil
@@ -392,14 +392,14 @@ module Google
392
392
  # # Call the update_aws_cluster method.
393
393
  # result = client.update_aws_cluster request
394
394
  #
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:
395
+ # # The returned object is of type Gapic::Operation. You can use it to
396
+ # # check the status of an operation, cancel it, or wait for results.
397
+ # # Here is how to wait for a response.
398
398
  # result.wait_until_done! timeout: 60
399
399
  # if result.response?
400
400
  # p result.response
401
401
  # else
402
- # puts "Error!"
402
+ # puts "No response received."
403
403
  # end
404
404
  #
405
405
  def update_aws_cluster request, options = nil
@@ -598,13 +598,11 @@ module Google
598
598
  # # Call the list_aws_clusters method.
599
599
  # result = client.list_aws_clusters request
600
600
  #
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|
601
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
602
+ # # over elements, and API calls will be issued to fetch pages as needed.
603
+ # result.each do |item|
606
604
  # # Each element is of type ::Google::Cloud::GkeMultiCloud::V1::AwsCluster.
607
- # p response
605
+ # p item
608
606
  # end
609
607
  #
610
608
  def list_aws_clusters request, options = nil
@@ -722,14 +720,14 @@ module Google
722
720
  # # Call the delete_aws_cluster method.
723
721
  # result = client.delete_aws_cluster request
724
722
  #
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:
723
+ # # The returned object is of type Gapic::Operation. You can use it to
724
+ # # check the status of an operation, cancel it, or wait for results.
725
+ # # Here is how to wait for a response.
728
726
  # result.wait_until_done! timeout: 60
729
727
  # if result.response?
730
728
  # p result.response
731
729
  # else
732
- # puts "Error!"
730
+ # puts "No response received."
733
731
  # end
734
732
  #
735
733
  def delete_aws_cluster request, options = nil
@@ -937,14 +935,14 @@ module Google
937
935
  # # Call the create_aws_node_pool method.
938
936
  # result = client.create_aws_node_pool request
939
937
  #
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:
938
+ # # The returned object is of type Gapic::Operation. You can use it to
939
+ # # check the status of an operation, cancel it, or wait for results.
940
+ # # Here is how to wait for a response.
943
941
  # result.wait_until_done! timeout: 60
944
942
  # if result.response?
945
943
  # p result.response
946
944
  # else
947
- # puts "Error!"
945
+ # puts "No response received."
948
946
  # end
949
947
  #
950
948
  def create_aws_node_pool request, options = nil
@@ -1060,14 +1058,14 @@ module Google
1060
1058
  # # Call the update_aws_node_pool method.
1061
1059
  # result = client.update_aws_node_pool request
1062
1060
  #
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:
1061
+ # # The returned object is of type Gapic::Operation. You can use it to
1062
+ # # check the status of an operation, cancel it, or wait for results.
1063
+ # # Here is how to wait for a response.
1066
1064
  # result.wait_until_done! timeout: 60
1067
1065
  # if result.response?
1068
1066
  # p result.response
1069
1067
  # else
1070
- # puts "Error!"
1068
+ # puts "No response received."
1071
1069
  # end
1072
1070
  #
1073
1071
  def update_aws_node_pool request, options = nil
@@ -1268,13 +1266,11 @@ module Google
1268
1266
  # # Call the list_aws_node_pools method.
1269
1267
  # result = client.list_aws_node_pools request
1270
1268
  #
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|
1269
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1270
+ # # over elements, and API calls will be issued to fetch pages as needed.
1271
+ # result.each do |item|
1276
1272
  # # Each element is of type ::Google::Cloud::GkeMultiCloud::V1::AwsNodePool.
1277
- # p response
1273
+ # p item
1278
1274
  # end
1279
1275
  #
1280
1276
  def list_aws_node_pools request, options = nil
@@ -1390,14 +1386,14 @@ module Google
1390
1386
  # # Call the delete_aws_node_pool method.
1391
1387
  # result = client.delete_aws_node_pool request
1392
1388
  #
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:
1389
+ # # The returned object is of type Gapic::Operation. You can use it to
1390
+ # # check the status of an operation, cancel it, or wait for results.
1391
+ # # Here is how to wait for a response.
1396
1392
  # result.wait_until_done! timeout: 60
1397
1393
  # if result.response?
1398
1394
  # p result.response
1399
1395
  # else
1400
- # puts "Error!"
1396
+ # puts "No response received."
1401
1397
  # end
1402
1398
  #
1403
1399
  def delete_aws_node_pool request, options = nil
@@ -1574,9 +1570,9 @@ module Google
1574
1570
  # * (`String`) The path to a service account key file in JSON format
1575
1571
  # * (`Hash`) A service account key as a Hash
1576
1572
  # * (`Google::Auth::Credentials`) A googleauth credentials object
1577
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
1573
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
1578
1574
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
1579
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
1575
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
1580
1576
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
1581
1577
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
1582
1578
  # * (`nil`) indicating no credentials
@@ -1618,7 +1614,9 @@ module Google
1618
1614
  class Configuration
1619
1615
  extend ::Gapic::Config
1620
1616
 
1621
- config_attr :endpoint, "gkemulticloud.googleapis.com", ::String
1617
+ DEFAULT_ENDPOINT = "gkemulticloud.googleapis.com"
1618
+
1619
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
1622
1620
  config_attr :credentials, nil do |value|
1623
1621
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
1624
1622
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -158,13 +158,11 @@ module Google
158
158
  # # Call the list_operations method.
159
159
  # result = client.list_operations request
160
160
  #
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|
161
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
162
+ # # over elements, and API calls will be issued to fetch pages as needed.
163
+ # result.each do |item|
166
164
  # # Each element is of type ::Google::Longrunning::Operation.
167
- # p response
165
+ # p item
168
166
  # end
169
167
  #
170
168
  def list_operations request, options = nil
@@ -253,14 +251,14 @@ module Google
253
251
  # # Call the get_operation method.
254
252
  # result = client.get_operation request
255
253
  #
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:
254
+ # # The returned object is of type Gapic::Operation. You can use it to
255
+ # # check the status of an operation, cancel it, or wait for results.
256
+ # # Here is how to wait for a response.
259
257
  # result.wait_until_done! timeout: 60
260
258
  # if result.response?
261
259
  # p result.response
262
260
  # else
263
- # puts "Error!"
261
+ # puts "No response received."
264
262
  # end
265
263
  #
266
264
  def get_operation request, options = nil
@@ -540,14 +538,14 @@ module Google
540
538
  # # Call the wait_operation method.
541
539
  # result = client.wait_operation request
542
540
  #
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:
541
+ # # The returned object is of type Gapic::Operation. You can use it to
542
+ # # check the status of an operation, cancel it, or wait for results.
543
+ # # Here is how to wait for a response.
546
544
  # result.wait_until_done! timeout: 60
547
545
  # if result.response?
548
546
  # p result.response
549
547
  # else
550
- # puts "Error!"
548
+ # puts "No response received."
551
549
  # end
552
550
  #
553
551
  def wait_operation request, options = nil
@@ -622,9 +620,9 @@ module Google
622
620
  # * (`String`) The path to a service account key file in JSON format
623
621
  # * (`Hash`) A service account key as a Hash
624
622
  # * (`Google::Auth::Credentials`) A googleauth credentials object
625
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
623
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
626
624
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
627
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
625
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
628
626
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
629
627
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
630
628
  # * (`nil`) indicating no credentials
@@ -666,7 +664,9 @@ module Google
666
664
  class Configuration
667
665
  extend ::Gapic::Config
668
666
 
669
- config_attr :endpoint, "gkemulticloud.googleapis.com", ::String
667
+ DEFAULT_ENDPOINT = "gkemulticloud.googleapis.com"
668
+
669
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
670
670
  config_attr :credentials, nil do |value|
671
671
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
672
672
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC