lib/google/cloud/run/v2/services/client.rb in google-cloud-run-v2-0.6.0 vs lib/google/cloud/run/v2/services/client.rb in google-cloud-run-v2-0.7.0
- old
+ new
@@ -237,18 +237,18 @@
# request = Google::Cloud::Run::V2::CreateServiceRequest.new
#
# # Call the create_service method.
# result = client.create_service 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_service request, options = nil
raise ::ArgumentError, "request must be provided" if request.nil?
@@ -433,17 +433,15 @@
# request = Google::Cloud::Run::V2::ListServicesRequest.new
#
# # Call the list_services method.
# result = client.list_services 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::Service.
- # p response
+ # p item
# end
#
def list_services request, options = nil
raise ::ArgumentError, "request must be provided" if request.nil?
@@ -535,18 +533,18 @@
# request = Google::Cloud::Run::V2::UpdateServiceRequest.new
#
# # Call the update_service method.
# result = client.update_service 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_service request, options = nil
raise ::ArgumentError, "request must be provided" if request.nil?
@@ -641,17 +639,17 @@
# request = Google::Cloud::Run::V2::DeleteServiceRequest.new
#
# # Call the delete_service method.
# result = client.delete_service 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_service request, options = nil
raise ::ArgumentError, "request must be provided" if request.nil?