Class: Google::Apis::TrafficdirectorV2::DynamicListenerState

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_updatedString

The timestamp when the Listener was last successfully updated. Corresponds to the JSON property lastUpdated

Returns:

  • (String)


335
336
337
# File 'generated/google/apis/trafficdirector_v2/classes.rb', line 335

def last_updated
  @last_updated
end

#listenerHash<String,Object>

The listener config. Corresponds to the JSON property listener

Returns:

  • (Hash<String,Object>)


340
341
342
# File 'generated/google/apis/trafficdirector_v2/classes.rb', line 340

def listener
  @listener
end

#version_infoString

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

Returns:

  • (String)


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