lib/google/cloud/app_engine/v1/versions/client.rb in google-cloud-app_engine-v1-0.5.0 vs lib/google/cloud/app_engine/v1/versions/client.rb in google-cloud-app_engine-v1-0.6.0

- old
+ new

@@ -201,17 +201,15 @@ # request = Google::Cloud::AppEngine::V1::ListVersionsRequest.new # # # Call the list_versions method. # result = client.list_versions 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::AppEngine::V1::Version. - # p response + # p item # end # def list_versions request, options = nil raise ::ArgumentError, "request must be provided" if request.nil? @@ -386,18 +384,18 @@ # request = Google::Cloud::AppEngine::V1::CreateVersionRequest.new # # # Call the create_version method. # result = client.create_version 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_version request, options = nil raise ::ArgumentError, "request must be provided" if request.nil? @@ -520,18 +518,18 @@ # request = Google::Cloud::AppEngine::V1::UpdateVersionRequest.new # # # Call the update_version method. # result = client.update_version 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_version request, options = nil raise ::ArgumentError, "request must be provided" if request.nil? @@ -614,17 +612,17 @@ # request = Google::Cloud::AppEngine::V1::DeleteVersionRequest.new # # # Call the delete_version method. # result = client.delete_version 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_version request, options = nil raise ::ArgumentError, "request must be provided" if request.nil?