lib/google/cloud/compute/v1/image_family_views/rest/client.rb in google-cloud-compute-v1-1.10.0 vs lib/google/cloud/compute/v1/image_family_views/rest/client.rb in google-cloud-compute-v1-2.0.0

- old
+ new

@@ -160,13 +160,13 @@ # Name of the image family to search for. # @param project [::String] # Project ID for this request. # @param zone [::String] # The name of the zone for this request. - # @yield [result, response] Access the result along with the Faraday response object + # @yield [result, operation] Access the result along with the TransportOperation object # @yieldparam result [::Google::Cloud::Compute::V1::ImageFamilyView] - # @yieldparam response [::Faraday::Response] + # @yieldparam operation [::Gapic::Rest::TransportOperation] # # @return [::Google::Cloud::Compute::V1::ImageFamilyView] # # @raise [::Google::Cloud::Error] if the REST call is aborted. def get request, options = nil @@ -194,11 +194,11 @@ options.apply_defaults timeout: @config.timeout, metadata: @config.metadata, retry_policy: @config.retry_policy - @image_family_views_stub.get request, options do |result, response| - yield result, response if block_given? + @image_family_views_stub.get request, options do |result, operation| + yield result, operation if block_given? return result end rescue ::Gapic::Rest::Error => e raise ::Google::Cloud::Error.from_error(e) end