lib/google/iam/v1/iam_policy/rest/client.rb in google-iam-v1-0.3.0 vs lib/google/iam/v1/iam_policy/rest/client.rb in google-iam-v1-0.4.0
- old
+ new
@@ -190,13 +190,13 @@
# OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
# the fields in the mask will be modified. If no mask is provided, the
# following default mask is used:
#
# `paths: "bindings, etag"`
- # @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::Iam::V1::Policy]
- # @yieldparam response [::Faraday::Response]
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
#
# @return [::Google::Iam::V1::Policy]
#
# @raise [::Google::Cloud::Error] if the REST call is aborted.
def set_iam_policy request, options = nil
@@ -226,12 +226,12 @@
metadata: @config.metadata,
retry_policy: @config.retry_policy
bindings_override = @config.bindings_override["google.iam.v1.IAMPolicy.SetIamPolicy"]
- @iam_policy_stub.set_iam_policy request, options, bindings_override: bindings_override do |result, response|
- yield result, response if block_given?
+ @iam_policy_stub.set_iam_policy request, options, bindings_override: bindings_override 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
@@ -260,13 +260,13 @@
# REQUIRED: The resource for which the policy is being requested.
# See the operation documentation for the appropriate value for this field.
# @param options [::Google::Iam::V1::GetPolicyOptions, ::Hash]
# OPTIONAL: A `GetPolicyOptions` object for specifying options to
# `GetIamPolicy`.
- # @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::Iam::V1::Policy]
- # @yieldparam response [::Faraday::Response]
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
#
# @return [::Google::Iam::V1::Policy]
#
# @raise [::Google::Cloud::Error] if the REST call is aborted.
def get_iam_policy request, options = nil
@@ -296,12 +296,12 @@
metadata: @config.metadata,
retry_policy: @config.retry_policy
bindings_override = @config.bindings_override["google.iam.v1.IAMPolicy.GetIamPolicy"]
- @iam_policy_stub.get_iam_policy request, options, bindings_override: bindings_override do |result, response|
- yield result, response if block_given?
+ @iam_policy_stub.get_iam_policy request, options, bindings_override: bindings_override 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
@@ -336,13 +336,13 @@
# @param permissions [::Array<::String>]
# The set of permissions to check for the `resource`. Permissions with
# wildcards (such as '*' or 'storage.*') are not allowed. For more
# information see
# [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
- # @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::Iam::V1::TestIamPermissionsResponse]
- # @yieldparam response [::Faraday::Response]
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
#
# @return [::Google::Iam::V1::TestIamPermissionsResponse]
#
# @raise [::Google::Cloud::Error] if the REST call is aborted.
def test_iam_permissions request, options = nil
@@ -372,11 +372,11 @@
metadata: @config.metadata,
retry_policy: @config.retry_policy
bindings_override = @config.bindings_override["google.iam.v1.IAMPolicy.TestIamPermissions"]
- @iam_policy_stub.test_iam_permissions request, options, bindings_override: bindings_override do |result, response|
- yield result, response if block_given?
+ @iam_policy_stub.test_iam_permissions request, options, bindings_override: bindings_override 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