Class: Google::Apis::TrafficdirectorV2::Address

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

Addresses specify either a logical or physical address and port, which are used to tell Envoy where to bind/listen, connect to upstream and find management servers.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Address

Returns a new instance of Address.



41
42
43
# File 'generated/google/apis/trafficdirector_v2/classes.rb', line 41

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#pipeGoogle::Apis::TrafficdirectorV2::Pipe

Corresponds to the JSON property pipe



34
35
36
# File 'generated/google/apis/trafficdirector_v2/classes.rb', line 34

def pipe
  @pipe
end

#socket_addressGoogle::Apis::TrafficdirectorV2::SocketAddress

[#next-free-field: 7] Corresponds to the JSON property socketAddress



39
40
41
# File 'generated/google/apis/trafficdirector_v2/classes.rb', line 39

def socket_address
  @socket_address
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



46
47
48
49
# File 'generated/google/apis/trafficdirector_v2/classes.rb', line 46

def update!(**args)
  @pipe = args[:pipe] if args.key?(:pipe)
  @socket_address = args[:socket_address] if args.key?(:socket_address)
end