lib/google/cloud/tasks/v2/cloud_tasks/client.rb in google-cloud-tasks-v2-0.6.0 vs lib/google/cloud/tasks/v2/cloud_tasks/client.rb in google-cloud-tasks-v2-0.7.0

- old
+ new

@@ -272,17 +272,15 @@ # request = Google::Cloud::Tasks::V2::ListQueuesRequest.new # # # Call the list_queues method. # result = client.list_queues 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::Tasks::V2::Queue. - # p response + # p item # end # def list_queues request, options = nil raise ::ArgumentError, "request must be provided" if request.nil? @@ -1385,16 +1383,14 @@ # request = Google::Cloud::Tasks::V2::ListTasksRequest.new # # # Call the list_tasks method. # result = client.list_tasks 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::Tasks::V2::Task. - # p response + # p item # end # def list_tasks request, options = nil raise ::ArgumentError, "request must be provided" if request.nil?