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

- old
+ new

@@ -191,13 +191,13 @@ # Name of the region scoping this request. # @param request_id [::String] # begin_interface: MixerMutationRequestBuilder Request ID to support idempotency. # @param url_map [::String] # Name of the UrlMap resource to delete. - # @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 [::Gapic::GenericLRO::Operation] - # @yieldparam response [::Faraday::Response] + # @yieldparam operation [::Gapic::Rest::TransportOperation] # # @return [::Gapic::GenericLRO::Operation] # # @raise [::Google::Cloud::Error] if the REST call is aborted. def delete request, options = nil @@ -266,13 +266,13 @@ # Project ID for this request. # @param region [::String] # Name of the region scoping this request. # @param url_map [::String] # Name of the UrlMap resource to return. - # @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::UrlMap] - # @yieldparam response [::Faraday::Response] + # @yieldparam operation [::Gapic::Rest::TransportOperation] # # @return [::Google::Cloud::Compute::V1::UrlMap] # # @raise [::Google::Cloud::Error] if the REST call is aborted. def get request, options = nil @@ -300,12 +300,12 @@ options.apply_defaults timeout: @config.timeout, metadata: @config.metadata, retry_policy: @config.retry_policy - @region_url_maps_stub.get request, options do |result, response| - yield result, response if block_given? + @region_url_maps_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 @@ -334,13 +334,13 @@ # Name of the region scoping this request. # @param request_id [::String] # begin_interface: MixerMutationRequestBuilder Request ID to support idempotency. # @param url_map_resource [::Google::Cloud::Compute::V1::UrlMap, ::Hash] # The body resource 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 [::Gapic::GenericLRO::Operation] - # @yieldparam response [::Faraday::Response] + # @yieldparam operation [::Gapic::Rest::TransportOperation] # # @return [::Gapic::GenericLRO::Operation] # # @raise [::Google::Cloud::Error] if the REST call is aborted. def insert request, options = nil @@ -417,13 +417,13 @@ # Project ID for this request. # @param region [::String] # Name of the region scoping this request. # @param return_partial_success [::Boolean] # Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. - # @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 [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::UrlMap>] - # @yieldparam response [::Faraday::Response] + # @yieldparam operation [::Gapic::Rest::TransportOperation] # # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::UrlMap>] # # @raise [::Google::Cloud::Error] if the REST call is aborted. def list request, options = nil @@ -451,13 +451,13 @@ options.apply_defaults timeout: @config.timeout, metadata: @config.metadata, retry_policy: @config.retry_policy - @region_url_maps_stub.list request, options do |result, response| + @region_url_maps_stub.list request, options do |result, operation| result = ::Gapic::Rest::PagedEnumerable.new @region_url_maps_stub, :list, "items", request, result, options - yield result, response if block_given? + yield result, operation if block_given? return result end rescue ::Gapic::Rest::Error => e raise ::Google::Cloud::Error.from_error(e) end @@ -488,13 +488,13 @@ # begin_interface: MixerMutationRequestBuilder Request ID to support idempotency. # @param url_map [::String] # Name of the UrlMap resource to patch. # @param url_map_resource [::Google::Cloud::Compute::V1::UrlMap, ::Hash] # The body resource 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 [::Gapic::GenericLRO::Operation] - # @yieldparam response [::Faraday::Response] + # @yieldparam operation [::Gapic::Rest::TransportOperation] # # @return [::Gapic::GenericLRO::Operation] # # @raise [::Google::Cloud::Error] if the REST call is aborted. def patch request, options = nil @@ -567,13 +567,13 @@ # begin_interface: MixerMutationRequestBuilder Request ID to support idempotency. # @param url_map [::String] # Name of the UrlMap resource to update. # @param url_map_resource [::Google::Cloud::Compute::V1::UrlMap, ::Hash] # The body resource 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 [::Gapic::GenericLRO::Operation] - # @yieldparam response [::Faraday::Response] + # @yieldparam operation [::Gapic::Rest::TransportOperation] # # @return [::Gapic::GenericLRO::Operation] # # @raise [::Google::Cloud::Error] if the REST call is aborted. def update request, options = nil @@ -644,13 +644,13 @@ # Name of the region scoping this request. # @param region_url_maps_validate_request_resource [::Google::Cloud::Compute::V1::RegionUrlMapsValidateRequest, ::Hash] # The body resource for this request # @param url_map [::String] # Name of the UrlMap resource to be validated as. - # @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::UrlMapsValidateResponse] - # @yieldparam response [::Faraday::Response] + # @yieldparam operation [::Gapic::Rest::TransportOperation] # # @return [::Google::Cloud::Compute::V1::UrlMapsValidateResponse] # # @raise [::Google::Cloud::Error] if the REST call is aborted. def validate request, options = nil @@ -678,11 +678,11 @@ options.apply_defaults timeout: @config.timeout, metadata: @config.metadata, retry_policy: @config.retry_policy - @region_url_maps_stub.validate request, options do |result, response| - yield result, response if block_given? + @region_url_maps_stub.validate 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