class Google::Apis::TrafficdirectorV2::DynamicListener
Describes a dynamically loaded listener via the LDS API. [#next-free-field: 6]
Attributes
The listener state for any active listener by this name. These are listeners that are available to service data plane traffic. Corresponds to the JSON property `activeState` @return [Google::Apis::TrafficdirectorV2::DynamicListenerState]
The listener state for any draining listener by this name. These are listeners that are currently undergoing draining in preparation to stop servicing data plane traffic. Note that if attempting to recreate an Envoy configuration from a configuration dump, the draining listeners should generally be discarded. Corresponds to the JSON property `drainingState` @return [Google::Apis::TrafficdirectorV2::DynamicListenerState]
Set if the last update failed, cleared after the next successful update. Corresponds to the JSON property `errorState` @return [Google::Apis::TrafficdirectorV2::UpdateFailureState]
The name or unique id of this listener, pulled from the DynamicListenerState
config. Corresponds to the JSON property `name` @return [String]
The listener state for any warming listener by this name. These are listeners that are currently undergoing warming in preparation to service data plane traffic. Note that if attempting to recreate an Envoy configuration from a configuration dump, the warming listeners should generally be discarded. Corresponds to the JSON property `warmingState` @return [Google::Apis::TrafficdirectorV2::DynamicListenerState]
Public Class Methods
# File lib/google/apis/trafficdirector_v2/classes.rb, line 314 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/trafficdirector_v2/classes.rb, line 319 def update!(**args) @active_state = args[:active_state] if args.key?(:active_state) @draining_state = args[:draining_state] if args.key?(:draining_state) @error_state = args[:error_state] if args.key?(:error_state) @name = args[:name] if args.key?(:name) @warming_state = args[:warming_state] if args.key?(:warming_state) end