lib/google/cloud/resource_manager/v3/folders/client.rb in google-cloud-resource_manager-v3-0.3.0 vs lib/google/cloud/resource_manager/v3/folders/client.rb in google-cloud-resource_manager-v3-0.4.0
- old
+ new
@@ -337,17 +337,15 @@
# request = Google::Cloud::ResourceManager::V3::ListFoldersRequest.new
#
# # Call the list_folders method.
# result = client.list_folders 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::Cloud::ResourceManager::V3::Folder.
- # p response
+ # p item
# end
#
def list_folders request, options = nil
raise ::ArgumentError, "request must be provided" if request.nil?
@@ -462,17 +460,15 @@
# request = Google::Cloud::ResourceManager::V3::SearchFoldersRequest.new
#
# # Call the search_folders method.
# result = client.search_folders 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::Cloud::ResourceManager::V3::Folder.
- # p response
+ # p item
# end
#
def search_folders request, options = nil
raise ::ArgumentError, "request must be provided" if request.nil?
@@ -573,18 +569,18 @@
# request = Google::Cloud::ResourceManager::V3::CreateFolderRequest.new
#
# # Call the create_folder method.
# result = client.create_folder 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_folder request, options = nil
raise ::ArgumentError, "request must be provided" if request.nil?
@@ -676,18 +672,18 @@
# request = Google::Cloud::ResourceManager::V3::UpdateFolderRequest.new
#
# # Call the update_folder method.
# result = client.update_folder 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_folder request, options = nil
raise ::ArgumentError, "request must be provided" if request.nil?
@@ -790,18 +786,18 @@
# request = Google::Cloud::ResourceManager::V3::MoveFolderRequest.new
#
# # Call the move_folder method.
# result = client.move_folder 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 move_folder request, options = nil
raise ::ArgumentError, "request must be provided" if request.nil?
@@ -892,18 +888,18 @@
# request = Google::Cloud::ResourceManager::V3::DeleteFolderRequest.new
#
# # Call the delete_folder method.
# result = client.delete_folder 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_folder request, options = nil
raise ::ArgumentError, "request must be provided" if request.nil?
@@ -994,17 +990,17 @@
# request = Google::Cloud::ResourceManager::V3::UndeleteFolderRequest.new
#
# # Call the undelete_folder method.
# result = client.undelete_folder 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_folder request, options = nil
raise ::ArgumentError, "request must be provided" if request.nil?