Class: Google::Apis::TranslateV3beta1::WaitOperationRequest

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/translate_v3beta1/classes.rb,
generated/google/apis/translate_v3beta1/representations.rb,
generated/google/apis/translate_v3beta1/representations.rb

Overview

The request message for Operations.WaitOperation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ WaitOperationRequest

Returns a new instance of WaitOperationRequest.



906
907
908
# File 'generated/google/apis/translate_v3beta1/classes.rb', line 906

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#timeoutString

The maximum duration to wait before timing out. If left blank, the wait will be at most the time permitted by the underlying HTTP/RPC protocol. If RPC context deadline is also specified, the shorter one will be used. Corresponds to the JSON property timeout

Returns:

  • (String)


904
905
906
# File 'generated/google/apis/translate_v3beta1/classes.rb', line 904

def timeout
  @timeout
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



911
912
913
# File 'generated/google/apis/translate_v3beta1/classes.rb', line 911

def update!(**args)
  @timeout = args[:timeout] if args.key?(:timeout)
end