From 142b2e20f3bd0bf5e2309873fedf3ab495bc4e6d Mon Sep 17 00:00:00 2001 From: Mike Moore Date: Thu, 30 May 2019 08:52:28 -0600 Subject: [PATCH] Call GAPIC client using positional args --- lib/google/gax/operation.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/google/gax/operation.rb b/lib/google/gax/operation.rb index 33b70c2..2a01050 100644 --- a/lib/google/gax/operation.rb +++ b/lib/google/gax/operation.rb @@ -214,7 +214,7 @@ def cancel options: nil # Converts hash and nil to an options object options = ApiCall::Options.new options.to_h if options.respond_to? :to_h - @client.cancel_operation name: @grpc_op.name, options: options + @client.cancel_operation({ name: @grpc_op.name }, options) end ## @@ -227,7 +227,7 @@ def delete options: nil # Converts hash and nil to an options object options = ApiCall::Options.new options.to_h if options.respond_to? :to_h - @client.delete_operation name: @grpc_op.name, options: options + @client.delete_operation({ name: @grpc_op.name }, options) end ## @@ -242,7 +242,7 @@ def reload! options: nil # Converts hash and nil to an options object options = ApiCall::Options.new options.to_h if options.respond_to? :to_h - gax_op = @client.get_operation name: @grpc_op.name, options: options + gax_op = @client.get_operation({ name: @grpc_op.name }, options) @grpc_op = gax_op.grpc_op if done?