Skip to content
This repository has been archived by the owner on Dec 8, 2021. It is now read-only.

Commit

Permalink
Call GAPIC client using positional args (#208)
Browse files Browse the repository at this point in the history
  • Loading branch information
blowmage committed May 30, 2019
1 parent e0b6499 commit 40e9181
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/google/gax/operation.rb
Expand Up @@ -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

##
Expand All @@ -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

##
Expand All @@ -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?
Expand Down

0 comments on commit 40e9181

Please sign in to comment.