lib/google/cloud/compute/v1/region_ssl_policies/rest/client.rb in google-cloud-compute-v1-1.10.0 vs lib/google/cloud/compute/v1/region_ssl_policies/rest/client.rb in google-cloud-compute-v1-2.0.0
- old
+ new
@@ -192,13 +192,13 @@
# Name of the region scoping this request.
# @param request_id [::String]
# An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
# @param ssl_policy [::String]
# Name of the SSL policy to delete. The name must be 1-63 characters long, and comply with RFC1035.
- # @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
@@ -267,13 +267,13 @@
# Project ID for this request.
# @param region [::String]
# Name of the region scoping this request.
# @param ssl_policy [::String]
# Name of the SSL policy to update. The name must be 1-63 characters long, and comply with RFC1035.
- # @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::SslPolicy]
- # @yieldparam response [::Faraday::Response]
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
#
# @return [::Google::Cloud::Compute::V1::SslPolicy]
#
# @raise [::Google::Cloud::Error] if the REST call is aborted.
def get request, options = nil
@@ -301,12 +301,12 @@
options.apply_defaults timeout: @config.timeout,
metadata: @config.metadata,
retry_policy: @config.retry_policy
- @region_ssl_policies_stub.get request, options do |result, response|
- yield result, response if block_given?
+ @region_ssl_policies_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
@@ -335,13 +335,13 @@
# Name of the region scoping this request.
# @param request_id [::String]
# An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
# @param ssl_policy_resource [::Google::Cloud::Compute::V1::SslPolicy, ::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
@@ -418,13 +418,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::SslPolicy>]
- # @yieldparam response [::Faraday::Response]
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
#
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::SslPolicy>]
#
# @raise [::Google::Cloud::Error] if the REST call is aborted.
def list request, options = nil
@@ -452,13 +452,13 @@
options.apply_defaults timeout: @config.timeout,
metadata: @config.metadata,
retry_policy: @config.retry_policy
- @region_ssl_policies_stub.list request, options do |result, response|
+ @region_ssl_policies_stub.list request, options do |result, operation|
result = ::Gapic::Rest::PagedEnumerable.new @region_ssl_policies_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
@@ -493,13 +493,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 [::Google::Cloud::Compute::V1::SslPoliciesListAvailableFeaturesResponse]
- # @yieldparam response [::Faraday::Response]
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
#
# @return [::Google::Cloud::Compute::V1::SslPoliciesListAvailableFeaturesResponse]
#
# @raise [::Google::Cloud::Error] if the REST call is aborted.
def list_available_features request, options = nil
@@ -527,12 +527,12 @@
options.apply_defaults timeout: @config.timeout,
metadata: @config.metadata,
retry_policy: @config.retry_policy
- @region_ssl_policies_stub.list_available_features request, options do |result, response|
- yield result, response if block_given?
+ @region_ssl_policies_stub.list_available_features 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
@@ -563,12 +563,12 @@
# An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
# @param ssl_policy [::String]
# Name of the SSL policy to update. The name must be 1-63 characters long, and comply with RFC1035.
# @param ssl_policy_resource [::Google::Cloud::Compute::V1::SslPolicy, ::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