Class: Google::Apis::RuntimeconfigV1beta1::WatchVariableRequest
- Inherits:
-
Object
- Object
- Google::Apis::RuntimeconfigV1beta1::WatchVariableRequest
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/runtimeconfig_v1beta1/classes.rb,
lib/google/apis/runtimeconfig_v1beta1/representations.rb,
lib/google/apis/runtimeconfig_v1beta1/representations.rb
Overview
Request for the WatchVariable()
method.
Instance Attribute Summary collapse
-
#newer_than ⇒ String
If specified, checks the current timestamp of the variable and if the current timestamp is newer than
newerThan
timestamp, the method returns immediately.
Instance Method Summary collapse
-
#initialize(**args) ⇒ WatchVariableRequest
constructor
A new instance of WatchVariableRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ WatchVariableRequest
Returns a new instance of WatchVariableRequest.
815 816 817 |
# File 'lib/google/apis/runtimeconfig_v1beta1/classes.rb', line 815 def initialize(**args) update!(**args) end |
Instance Attribute Details
#newer_than ⇒ String
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
813 814 815 |
# File 'lib/google/apis/runtimeconfig_v1beta1/classes.rb', line 813 def newer_than @newer_than end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
820 821 822 |
# File 'lib/google/apis/runtimeconfig_v1beta1/classes.rb', line 820 def update!(**args) @newer_than = args[:newer_than] if args.key?(:newer_than) end |