google-cloud-gke_multi_cloud-v1 0.3.0 → 0.5.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.
Files changed (29) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -2
  3. data/lib/google/cloud/gke_multi_cloud/v1/attached_clusters/client.rb +32 -32
  4. data/lib/google/cloud/gke_multi_cloud/v1/attached_clusters/operations.rb +17 -17
  5. data/lib/google/cloud/gke_multi_cloud/v1/aws_clusters/client.rb +42 -44
  6. data/lib/google/cloud/gke_multi_cloud/v1/aws_clusters/operations.rb +17 -17
  7. data/lib/google/cloud/gke_multi_cloud/v1/azure_clusters/client.rb +58 -59
  8. data/lib/google/cloud/gke_multi_cloud/v1/azure_clusters/operations.rb +17 -17
  9. data/lib/google/cloud/gke_multi_cloud/v1/version.rb +1 -1
  10. data/lib/google/cloud/gkemulticloud/v1/attached_resources_pb.rb +26 -52
  11. data/lib/google/cloud/gkemulticloud/v1/attached_service_pb.rb +26 -49
  12. data/lib/google/cloud/gkemulticloud/v1/attached_service_services_pb.rb +1 -1
  13. data/lib/google/cloud/gkemulticloud/v1/aws_resources_pb.rb +26 -158
  14. data/lib/google/cloud/gkemulticloud/v1/aws_service_pb.rb +27 -69
  15. data/lib/google/cloud/gkemulticloud/v1/aws_service_services_pb.rb +1 -1
  16. data/lib/google/cloud/gkemulticloud/v1/azure_resources_pb.rb +27 -150
  17. data/lib/google/cloud/gkemulticloud/v1/azure_service_pb.rb +27 -92
  18. data/lib/google/cloud/gkemulticloud/v1/azure_service_services_pb.rb +1 -1
  19. data/lib/google/cloud/gkemulticloud/v1/common_resources_pb.rb +25 -50
  20. data/proto_docs/google/api/client.rb +67 -4
  21. data/proto_docs/google/cloud/gkemulticloud/v1/attached_resources.rb +3 -3
  22. data/proto_docs/google/cloud/gkemulticloud/v1/attached_service.rb +6 -6
  23. data/proto_docs/google/cloud/gkemulticloud/v1/aws_resources.rb +1 -1
  24. data/proto_docs/google/cloud/gkemulticloud/v1/aws_service.rb +4 -4
  25. data/proto_docs/google/cloud/gkemulticloud/v1/azure_resources.rb +26 -5
  26. data/proto_docs/google/cloud/gkemulticloud/v1/azure_service.rb +8 -5
  27. data/proto_docs/google/protobuf/any.rb +7 -4
  28. data/proto_docs/google/protobuf/timestamp.rb +1 -3
  29. metadata +14 -8
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: da80a219c1109e503f02010db3d68ba11315bd4adb426bea2954a6505d1c86ff
4
- data.tar.gz: cafbc60120cf2b4e602440264664d88e6d460a4bb3449c4dacfb996425e1f9de
3
+ metadata.gz: fc02e5a425611aa5e2e1b4007e3f719af0a73c5b16af773e091ebd7c431c6311
4
+ data.tar.gz: bd3cddc86c8ab48ae5c6b3e604200c0b388b7db45f7859b1ad0444dccedc9f27
5
5
  SHA512:
6
- metadata.gz: 6a95671e4cad369299277888f4e88fe56cccd5bbcde247f79ffd5f7ad715f0b797d7e2200bffa73bba5e9349b89736100d0ab5018d844fc3ab2694fd4e0d1708
7
- data.tar.gz: 166374276b202431493e346ee23b84fdde4ba803df82ba3311d764d2707e6662fad4bb21a98b88a5332266eb329664a0e2836139bd9e1525ebf57bb2852a5620
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
@@ -190,7 +190,7 @@ module Google
190
190
  ##
191
191
  # Creates a new
192
192
  # {::Google::Cloud::GkeMultiCloud::V1::AttachedCluster AttachedCluster} resource
193
- # on a given GCP project and region.
193
+ # on a given Google Cloud Platform project and region.
194
194
  #
195
195
  # If successful, the response contains a newly created
196
196
  # {::Google::Longrunning::Operation Operation} resource that can be
@@ -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
@@ -569,7 +569,7 @@ module Google
569
569
  # `projects/<project-id>/locations/<region>/attachedClusters/<cluster-id>`.
570
570
  #
571
571
  # See [Resource Names](https://cloud.google.com/apis/design/resource_names)
572
- # for more details on GCP resource names.
572
+ # for more details on Google Cloud Platform resource names.
573
573
  #
574
574
  # @yield [response, operation] Access the result along with the RPC operation
575
575
  # @yieldparam response [::Google::Cloud::GkeMultiCloud::V1::AttachedCluster]
@@ -661,7 +661,7 @@ module Google
661
661
  # Location names are formatted as `projects/<project-id>/locations/<region>`.
662
662
  #
663
663
  # See [Resource Names](https://cloud.google.com/apis/design/resource_names)
664
- # for more details on GCP resource names.
664
+ # for more details on Google Cloud Platform resource names.
665
665
  # @param page_size [::Integer]
666
666
  # The maximum number of items to return.
667
667
  #
@@ -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
@@ -777,7 +775,7 @@ module Google
777
775
  # `projects/<project-id>/locations/<region>/attachedClusters/<cluster-id>`.
778
776
  #
779
777
  # See [Resource Names](https://cloud.google.com/apis/design/resource_names)
780
- # for more details on GCP resource names.
778
+ # for more details on Google Cloud Platform resource names.
781
779
  # @param validate_only [::Boolean]
782
780
  # If set, only validate the request, but do not actually delete the resource.
783
781
  # @param allow_missing [::Boolean]
@@ -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
@@ -996,7 +994,7 @@ module Google
996
994
  # See [Resource Names](https://cloud.google.com/apis/design/resource_names)
997
995
  # for more details on Google Cloud resource names.
998
996
  # @param attached_cluster_id [::String]
999
- # Required. A client provided ID the resource. Must be unique within the
997
+ # Required. A client provided ID of the resource. Must be unique within the
1000
998
  # parent resource.
1001
999
  #
1002
1000
  # The provided ID will be part of the
@@ -1009,7 +1007,7 @@ module Google
1009
1007
  # When generating an install manifest for importing an existing Membership
1010
1008
  # resource, the attached_cluster_id field must be the Membership id.
1011
1009
  #
1012
- # Membership names are formatted as `resource name formatted as
1010
+ # Membership names are formatted as
1013
1011
  # `projects/<project-id>/locations/<region>/memberships/<membership-id>`.
1014
1012
  # @param platform_version [::String]
1015
1013
  # Required. The platform version for the cluster (e.g. `1.19.0-gke.1000`).
@@ -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
@@ -202,7 +202,7 @@ module Google
202
202
 
203
203
  ##
204
204
  # Creates a new {::Google::Cloud::GkeMultiCloud::V1::AwsCluster AwsCluster}
205
- # resource on a given GCP project and region.
205
+ # resource on a given Google Cloud Platform project and region.
206
206
  #
207
207
  # If successful, the response contains a newly created
208
208
  # {::Google::Longrunning::Operation Operation} resource that can be
@@ -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
@@ -472,7 +472,7 @@ module Google
472
472
  # `projects/<project-id>/locations/<region>/awsClusters/<cluster-id>`.
473
473
  #
474
474
  # See [Resource Names](https://cloud.google.com/apis/design/resource_names)
475
- # for more details on GCP resource names.
475
+ # for more details on Google Cloud Platform resource names.
476
476
  #
477
477
  # @yield [response, operation] Access the result along with the RPC operation
478
478
  # @yieldparam response [::Google::Cloud::GkeMultiCloud::V1::AwsCluster]
@@ -564,7 +564,7 @@ module Google
564
564
  # Location names are formatted as `projects/<project-id>/locations/<region>`.
565
565
  #
566
566
  # See [Resource Names](https://cloud.google.com/apis/design/resource_names)
567
- # for more details on GCP resource names.
567
+ # for more details on Google Cloud Platform resource names.
568
568
  # @param page_size [::Integer]
569
569
  # The maximum number of items to return.
570
570
  #
@@ -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
@@ -683,7 +681,7 @@ module Google
683
681
  # `projects/<project-id>/locations/<region>/awsClusters/<cluster-id>`.
684
682
  #
685
683
  # See [Resource Names](https://cloud.google.com/apis/design/resource_names)
686
- # for more details on GCP resource names.
684
+ # for more details on Google Cloud Platform resource names.
687
685
  # @param validate_only [::Boolean]
688
686
  # If set, only validate the request, but do not actually delete the resource.
689
687
  # @param allow_missing [::Boolean]
@@ -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