lib/google/cloud/redis/v1beta1/cloud_redis/client.rb in google-cloud-redis-v1beta1-0.8.0 vs lib/google/cloud/redis/v1beta1/cloud_redis/client.rb in google-cloud-redis-v1beta1-0.9.0

- old
+ new

@@ -251,17 +251,15 @@ # request = Google::Cloud::Redis::V1beta1::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::Redis::V1beta1::Instance. - # p response + # p item # end # def list_instances request, options = nil raise ::ArgumentError, "request must be provided" if request.nil? @@ -543,18 +541,18 @@ # request = Google::Cloud::Redis::V1beta1::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? @@ -651,18 +649,18 @@ # request = Google::Cloud::Redis::V1beta1::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? @@ -749,18 +747,18 @@ # request = Google::Cloud::Redis::V1beta1::UpgradeInstanceRequest.new # # # Call the upgrade_instance method. # result = client.upgrade_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 upgrade_instance request, options = nil raise ::ArgumentError, "request must be provided" if request.nil? @@ -853,18 +851,18 @@ # request = Google::Cloud::Redis::V1beta1::ImportInstanceRequest.new # # # Call the import_instance method. # result = client.import_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 import_instance request, options = nil raise ::ArgumentError, "request must be provided" if request.nil? @@ -955,18 +953,18 @@ # request = Google::Cloud::Redis::V1beta1::ExportInstanceRequest.new # # # Call the export_instance method. # result = client.export_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 export_instance request, options = nil raise ::ArgumentError, "request must be provided" if request.nil? @@ -1054,18 +1052,18 @@ # request = Google::Cloud::Redis::V1beta1::FailoverInstanceRequest.new # # # Call the failover_instance method. # result = client.failover_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 failover_instance request, options = nil raise ::ArgumentError, "request must be provided" if request.nil? @@ -1150,18 +1148,18 @@ # request = Google::Cloud::Redis::V1beta1::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? @@ -1252,17 +1250,17 @@ # request = Google::Cloud::Redis::V1beta1::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?