Class: Google::Apis::RuntimeconfigV1beta1::WatchVariableRequest

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

Overview

Request for the WatchVariable() method.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ WatchVariableRequest

Returns a new instance of WatchVariableRequest.



885
886
887
# File 'generated/google/apis/runtimeconfig_v1beta1/classes.rb', line 885

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

Instance Attribute Details

#newer_thanString

If specified, checks the current timestamp of the variable and if the current timestamp is newer than newerThan timestamp, the method returns immediately. If not specified or the variable has an older timestamp, the watcher waits for a the value to change before returning. Corresponds to the JSON property newerThan

Returns:

  • (String)


883
884
885
# File 'generated/google/apis/runtimeconfig_v1beta1/classes.rb', line 883

def newer_than
  @newer_than
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



890
891
892
# File 'generated/google/apis/runtimeconfig_v1beta1/classes.rb', line 890

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