Class: Google::Apis::TrafficdirectorV2::DynamicListenerState
- Inherits:
-
Object
- Object
- Google::Apis::TrafficdirectorV2::DynamicListenerState
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/trafficdirector_v2/classes.rb,
generated/google/apis/trafficdirector_v2/representations.rb,
generated/google/apis/trafficdirector_v2/representations.rb
Instance Attribute Summary collapse
-
#last_updated ⇒ String
The timestamp when the Listener was last successfully updated.
-
#listener ⇒ Hash<String,Object>
The listener config.
-
#version_info ⇒ String
This is the per-resource version information.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DynamicListenerState
constructor
A new instance of DynamicListenerState.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ DynamicListenerState
Returns a new instance of DynamicListenerState.
349 350 351 |
# File 'generated/google/apis/trafficdirector_v2/classes.rb', line 349 def initialize(**args) update!(**args) end |
Instance Attribute Details
#last_updated ⇒ String
The timestamp when the Listener was last successfully updated.
Corresponds to the JSON property lastUpdated
335 336 337 |
# File 'generated/google/apis/trafficdirector_v2/classes.rb', line 335 def last_updated @last_updated end |
#listener ⇒ Hash<String,Object>
The listener config.
Corresponds to the JSON property listener
340 341 342 |
# File 'generated/google/apis/trafficdirector_v2/classes.rb', line 340 def listener @listener end |
#version_info ⇒ String
This is the per-resource version information. This version is currently taken
from the :ref:version_info
field at the time that the listener was loaded.
In the future, discrete per-listener versions may be supported by the API.
Corresponds to the JSON property versionInfo
347 348 349 |
# File 'generated/google/apis/trafficdirector_v2/classes.rb', line 347 def version_info @version_info end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
354 355 356 357 358 |
# File 'generated/google/apis/trafficdirector_v2/classes.rb', line 354 def update!(**args) @last_updated = args[:last_updated] if args.key?(:last_updated) @listener = args[:listener] if args.key?(:listener) @version_info = args[:version_info] if args.key?(:version_info) end |