lib/google/cloud/functions/v1/cloud_functions_service/client.rb in google-cloud-functions-v1-0.8.0 vs lib/google/cloud/functions/v1/cloud_functions_service/client.rb in google-cloud-functions-v1-0.8.1

- old
+ new

@@ -232,17 +232,15 @@ # request = Google::Cloud::Functions::V1::ListFunctionsRequest.new # # # Call the list_functions method. # result = client.list_functions 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::Functions::V1::CloudFunction. - # p response + # p item # end # def list_functions request, options = nil raise ::ArgumentError, "request must be provided" if request.nil? @@ -414,18 +412,18 @@ # request = Google::Cloud::Functions::V1::CreateFunctionRequest.new # # # Call the create_function method. # result = client.create_function 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_function request, options = nil raise ::ArgumentError, "request must be provided" if request.nil? @@ -509,18 +507,18 @@ # request = Google::Cloud::Functions::V1::UpdateFunctionRequest.new # # # Call the update_function method. # result = client.update_function 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_function request, options = nil raise ::ArgumentError, "request must be provided" if request.nil? @@ -604,17 +602,17 @@ # request = Google::Cloud::Functions::V1::DeleteFunctionRequest.new # # # Call the delete_function method. # result = client.delete_function 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_function request, options = nil raise ::ArgumentError, "request must be provided" if request.nil?