Class: Google::Apis::TrafficdirectorV2::StaticListener
- Inherits:
-
Object
- Object
- Google::Apis::TrafficdirectorV2::StaticListener
- 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
Overview
Describes a statically loaded listener.
Instance Attribute Summary collapse
-
#last_updated ⇒ String
The timestamp when the Listener was last successfully updated.
-
#listener ⇒ Hash<String,Object>
The listener config.
Instance Method Summary collapse
-
#initialize(**args) ⇒ StaticListener
constructor
A new instance of StaticListener.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ StaticListener
Returns a new instance of StaticListener.
1122 1123 1124 |
# File 'generated/google/apis/trafficdirector_v2/classes.rb', line 1122 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
1115 1116 1117 |
# File 'generated/google/apis/trafficdirector_v2/classes.rb', line 1115 def last_updated @last_updated end |
#listener ⇒ Hash<String,Object>
The listener config.
Corresponds to the JSON property listener
1120 1121 1122 |
# File 'generated/google/apis/trafficdirector_v2/classes.rb', line 1120 def listener @listener end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1127 1128 1129 1130 |
# File 'generated/google/apis/trafficdirector_v2/classes.rb', line 1127 def update!(**args) @last_updated = args[:last_updated] if args.key?(:last_updated) @listener = args[:listener] if args.key?(:listener) end |