Class: Google::Apis::TrafficdirectorV2::StaticListener

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

Overview

Describes a statically loaded listener.

Instance Attribute Summary collapse

Instance Method Summary collapse

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_updatedString

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

Returns:

  • (String)


1115
1116
1117
# File 'generated/google/apis/trafficdirector_v2/classes.rb', line 1115

def last_updated
  @last_updated
end

#listenerHash<String,Object>

The listener config. Corresponds to the JSON property listener

Returns:

  • (Hash<String,Object>)


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