lib/google/cloud/gaming/v1/realms_service/client.rb in google-cloud-gaming-v1-0.5.0 vs lib/google/cloud/gaming/v1/realms_service/client.rb in google-cloud-gaming-v1-0.6.0

- old
+ new

@@ -233,17 +233,15 @@ # request = Google::Cloud::Gaming::V1::ListRealmsRequest.new # # # Call the list_realms method. # result = client.list_realms 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::Gaming::V1::Realm. - # p response + # p item # end # def list_realms request, options = nil raise ::ArgumentError, "request must be provided" if request.nil? @@ -416,18 +414,18 @@ # request = Google::Cloud::Gaming::V1::CreateRealmRequest.new # # # Call the create_realm method. # result = client.create_realm 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_realm request, options = nil raise ::ArgumentError, "request must be provided" if request.nil? @@ -510,18 +508,18 @@ # request = Google::Cloud::Gaming::V1::DeleteRealmRequest.new # # # Call the delete_realm method. # result = client.delete_realm 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_realm request, options = nil raise ::ArgumentError, "request must be provided" if request.nil? @@ -608,17 +606,17 @@ # request = Google::Cloud::Gaming::V1::UpdateRealmRequest.new # # # Call the update_realm method. # result = client.update_realm 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_realm request, options = nil raise ::ArgumentError, "request must be provided" if request.nil?