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?