lib/google/cloud/run/v2/jobs/client.rb in google-cloud-run-v2-0.6.0 vs lib/google/cloud/run/v2/jobs/client.rb in google-cloud-run-v2-0.7.0

- old
+ new

@@ -220,18 +220,18 @@ # request = Google::Cloud::Run::V2::CreateJobRequest.new # # # Call the create_job method. # result = client.create_job 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_job request, options = nil raise ::ArgumentError, "request must be provided" if request.nil? @@ -409,17 +409,15 @@ # request = Google::Cloud::Run::V2::ListJobsRequest.new # # # Call the list_jobs method. # result = client.list_jobs 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::Run::V2::Job. - # p response + # p item # end # def list_jobs request, options = nil raise ::ArgumentError, "request must be provided" if request.nil? @@ -508,18 +506,18 @@ # request = Google::Cloud::Run::V2::UpdateJobRequest.new # # # Call the update_job method. # result = client.update_job 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_job request, options = nil raise ::ArgumentError, "request must be provided" if request.nil? @@ -609,18 +607,18 @@ # request = Google::Cloud::Run::V2::DeleteJobRequest.new # # # Call the delete_job method. # result = client.delete_job 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_job request, options = nil raise ::ArgumentError, "request must be provided" if request.nil? @@ -710,17 +708,17 @@ # request = Google::Cloud::Run::V2::RunJobRequest.new # # # Call the run_job method. # result = client.run_job 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 run_job request, options = nil raise ::ArgumentError, "request must be provided" if request.nil?