lib/google/iam/v1beta/workload_identity_pools/client.rb in google-iam-v1beta-0.4.0 vs lib/google/iam/v1beta/workload_identity_pools/client.rb in google-iam-v1beta-0.5.0
- old
+ new
@@ -267,17 +267,15 @@
# request = Google::Iam::V1beta::ListWorkloadIdentityPoolsRequest.new
#
# # Call the list_workload_identity_pools method.
# result = client.list_workload_identity_pools request
#
- # # The returned object is of type Gapic::PagedEnumerable. You can
- # # iterate over all elements by calling #each, and the enumerable
- # # will lazily make API calls to fetch subsequent pages. Other
- # # methods are also available for managing paging directly.
- # result.each do |response|
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
+ # # over elements, and API calls will be issued to fetch pages as needed.
+ # result.each do |item|
# # Each element is of type ::Google::Iam::V1beta::WorkloadIdentityPool.
- # p response
+ # p item
# end
#
def list_workload_identity_pools request, options = nil
raise ::ArgumentError, "request must be provided" if request.nil?
@@ -456,18 +454,18 @@
# request = Google::Iam::V1beta::CreateWorkloadIdentityPoolRequest.new
#
# # Call the create_workload_identity_pool method.
# result = client.create_workload_identity_pool request
#
- # # The returned object is of type Gapic::Operation. You can use this
- # # object to check the status of an operation, cancel it, or wait
- # # for results. Here is how to block until completion:
+ # # The returned object is of type Gapic::Operation. You can use it to
+ # # check the status of an operation, cancel it, or wait for results.
+ # # Here is how to wait for a response.
# result.wait_until_done! timeout: 60
# if result.response?
# p result.response
# else
- # puts "Error!"
+ # puts "No response received."
# end
#
def create_workload_identity_pool request, options = nil
raise ::ArgumentError, "request must be provided" if request.nil?
@@ -552,18 +550,18 @@
# request = Google::Iam::V1beta::UpdateWorkloadIdentityPoolRequest.new
#
# # Call the update_workload_identity_pool method.
# result = client.update_workload_identity_pool request
#
- # # The returned object is of type Gapic::Operation. You can use this
- # # object to check the status of an operation, cancel it, or wait
- # # for results. Here is how to block until completion:
+ # # The returned object is of type Gapic::Operation. You can use it to
+ # # check the status of an operation, cancel it, or wait for results.
+ # # Here is how to wait for a response.
# result.wait_until_done! timeout: 60
# if result.response?
# p result.response
# else
- # puts "Error!"
+ # puts "No response received."
# end
#
def update_workload_identity_pool request, options = nil
raise ::ArgumentError, "request must be provided" if request.nil?
@@ -656,18 +654,18 @@
# request = Google::Iam::V1beta::DeleteWorkloadIdentityPoolRequest.new
#
# # Call the delete_workload_identity_pool method.
# result = client.delete_workload_identity_pool request
#
- # # The returned object is of type Gapic::Operation. You can use this
- # # object to check the status of an operation, cancel it, or wait
- # # for results. Here is how to block until completion:
+ # # The returned object is of type Gapic::Operation. You can use it to
+ # # check the status of an operation, cancel it, or wait for results.
+ # # Here is how to wait for a response.
# result.wait_until_done! timeout: 60
# if result.response?
# p result.response
# else
- # puts "Error!"
+ # puts "No response received."
# end
#
def delete_workload_identity_pool request, options = nil
raise ::ArgumentError, "request must be provided" if request.nil?
@@ -750,18 +748,18 @@
# request = Google::Iam::V1beta::UndeleteWorkloadIdentityPoolRequest.new
#
# # Call the undelete_workload_identity_pool method.
# result = client.undelete_workload_identity_pool request
#
- # # The returned object is of type Gapic::Operation. You can use this
- # # object to check the status of an operation, cancel it, or wait
- # # for results. Here is how to block until completion:
+ # # The returned object is of type Gapic::Operation. You can use it to
+ # # check the status of an operation, cancel it, or wait for results.
+ # # Here is how to wait for a response.
# result.wait_until_done! timeout: 60
# if result.response?
# p result.response
# else
- # puts "Error!"
+ # puts "No response received."
# end
#
def undelete_workload_identity_pool request, options = nil
raise ::ArgumentError, "request must be provided" if request.nil?
@@ -856,17 +854,15 @@
# request = Google::Iam::V1beta::ListWorkloadIdentityPoolProvidersRequest.new
#
# # Call the list_workload_identity_pool_providers method.
# result = client.list_workload_identity_pool_providers request
#
- # # The returned object is of type Gapic::PagedEnumerable. You can
- # # iterate over all elements by calling #each, and the enumerable
- # # will lazily make API calls to fetch subsequent pages. Other
- # # methods are also available for managing paging directly.
- # result.each do |response|
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
+ # # over elements, and API calls will be issued to fetch pages as needed.
+ # result.each do |item|
# # Each element is of type ::Google::Iam::V1beta::WorkloadIdentityPoolProvider.
- # p response
+ # p item
# end
#
def list_workload_identity_pool_providers request, options = nil
raise ::ArgumentError, "request must be provided" if request.nil?
@@ -1046,18 +1042,18 @@
# request = Google::Iam::V1beta::CreateWorkloadIdentityPoolProviderRequest.new
#
# # Call the create_workload_identity_pool_provider method.
# result = client.create_workload_identity_pool_provider request
#
- # # The returned object is of type Gapic::Operation. You can use this
- # # object to check the status of an operation, cancel it, or wait
- # # for results. Here is how to block until completion:
+ # # The returned object is of type Gapic::Operation. You can use it to
+ # # check the status of an operation, cancel it, or wait for results.
+ # # Here is how to wait for a response.
# result.wait_until_done! timeout: 60
# if result.response?
# p result.response
# else
- # puts "Error!"
+ # puts "No response received."
# end
#
def create_workload_identity_pool_provider request, options = nil
raise ::ArgumentError, "request must be provided" if request.nil?
@@ -1142,18 +1138,18 @@
# request = Google::Iam::V1beta::UpdateWorkloadIdentityPoolProviderRequest.new
#
# # Call the update_workload_identity_pool_provider method.
# result = client.update_workload_identity_pool_provider request
#
- # # The returned object is of type Gapic::Operation. You can use this
- # # object to check the status of an operation, cancel it, or wait
- # # for results. Here is how to block until completion:
+ # # The returned object is of type Gapic::Operation. You can use it to
+ # # check the status of an operation, cancel it, or wait for results.
+ # # Here is how to wait for a response.
# result.wait_until_done! timeout: 60
# if result.response?
# p result.response
# else
- # puts "Error!"
+ # puts "No response received."
# end
#
def update_workload_identity_pool_provider request, options = nil
raise ::ArgumentError, "request must be provided" if request.nil?
@@ -1241,18 +1237,18 @@
# request = Google::Iam::V1beta::DeleteWorkloadIdentityPoolProviderRequest.new
#
# # Call the delete_workload_identity_pool_provider method.
# result = client.delete_workload_identity_pool_provider request
#
- # # The returned object is of type Gapic::Operation. You can use this
- # # object to check the status of an operation, cancel it, or wait
- # # for results. Here is how to block until completion:
+ # # The returned object is of type Gapic::Operation. You can use it to
+ # # check the status of an operation, cancel it, or wait for results.
+ # # Here is how to wait for a response.
# result.wait_until_done! timeout: 60
# if result.response?
# p result.response
# else
- # puts "Error!"
+ # puts "No response received."
# end
#
def delete_workload_identity_pool_provider request, options = nil
raise ::ArgumentError, "request must be provided" if request.nil?
@@ -1336,18 +1332,18 @@
# request = Google::Iam::V1beta::UndeleteWorkloadIdentityPoolProviderRequest.new
#
# # Call the undelete_workload_identity_pool_provider method.
# result = client.undelete_workload_identity_pool_provider request
#
- # # The returned object is of type Gapic::Operation. You can use this
- # # object to check the status of an operation, cancel it, or wait
- # # for results. Here is how to block until completion:
+ # # The returned object is of type Gapic::Operation. You can use it to
+ # # check the status of an operation, cancel it, or wait for results.
+ # # Here is how to wait for a response.
# result.wait_until_done! timeout: 60
# if result.response?
# p result.response
# else
- # puts "Error!"
+ # puts "No response received."
# end
#
def undelete_workload_identity_pool_provider request, options = nil
raise ::ArgumentError, "request must be provided" if request.nil?
@@ -1426,12 +1422,12 @@
# @!attribute [rw] credentials
# Credentials to send with calls. You may provide any of the following types:
# * (`String`) The path to a service account key file in JSON format
# * (`Hash`) A service account key as a Hash
# * (`Google::Auth::Credentials`) A googleauth credentials object
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
# * (`nil`) indicating no credentials
# @return [::Object]
# @!attribute [rw] scope