lib/google/cloud/memcache/v1beta2/cloud_memcache/client.rb in google-cloud-memcache-v1beta2-0.4.0 vs lib/google/cloud/memcache/v1beta2/cloud_memcache/client.rb in google-cloud-memcache-v1beta2-0.5.0

- old
+ new

@@ -259,17 +259,15 @@ # request = Google::Cloud::Memcache::V1beta2::ListInstancesRequest.new # # # Call the list_instances method. # result = client.list_instances 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::Memcache::V1beta2::Instance. - # p response + # p item # end # def list_instances request, options = nil raise ::ArgumentError, "request must be provided" if request.nil? @@ -453,18 +451,18 @@ # request = Google::Cloud::Memcache::V1beta2::CreateInstanceRequest.new # # # Call the create_instance method. # result = client.create_instance 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_instance request, options = nil raise ::ArgumentError, "request must be provided" if request.nil? @@ -551,18 +549,18 @@ # request = Google::Cloud::Memcache::V1beta2::UpdateInstanceRequest.new # # # Call the update_instance method. # result = client.update_instance 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_instance request, options = nil raise ::ArgumentError, "request must be provided" if request.nil? @@ -652,18 +650,18 @@ # request = Google::Cloud::Memcache::V1beta2::UpdateParametersRequest.new # # # Call the update_parameters method. # result = client.update_parameters 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_parameters request, options = nil raise ::ArgumentError, "request must be provided" if request.nil? @@ -747,18 +745,18 @@ # request = Google::Cloud::Memcache::V1beta2::DeleteInstanceRequest.new # # # Call the delete_instance method. # result = client.delete_instance 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_instance request, options = nil raise ::ArgumentError, "request must be provided" if request.nil? @@ -848,18 +846,18 @@ # request = Google::Cloud::Memcache::V1beta2::ApplyParametersRequest.new # # # Call the apply_parameters method. # result = client.apply_parameters 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 apply_parameters request, options = nil raise ::ArgumentError, "request must be provided" if request.nil? @@ -949,18 +947,18 @@ # request = Google::Cloud::Memcache::V1beta2::ApplySoftwareUpdateRequest.new # # # Call the apply_software_update method. # result = client.apply_software_update 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 apply_software_update request, options = nil raise ::ArgumentError, "request must be provided" if request.nil? @@ -1050,17 +1048,17 @@ # request = Google::Cloud::Memcache::V1beta2::RescheduleMaintenanceRequest.new # # # Call the reschedule_maintenance method. # result = client.reschedule_maintenance 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 reschedule_maintenance request, options = nil raise ::ArgumentError, "request must be provided" if request.nil?