Class: Google::Apis::TrafficdirectorV3::Address

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/trafficdirector_v3/classes.rb,
lib/google/apis/trafficdirector_v3/representations.rb,
lib/google/apis/trafficdirector_v3/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.



46
47
48
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 46

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

Instance Attribute Details

#envoy_internal_addressGoogle::Apis::TrafficdirectorV3::EnvoyInternalAddress

The address represents an envoy internal listener. [#comment: Corresponds to the JSON property envoyInternalAddress



34
35
36
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 34

def envoy_internal_address
  @envoy_internal_address
end

#pipeGoogle::Apis::TrafficdirectorV3::Pipe

Corresponds to the JSON property pipe



39
40
41
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 39

def pipe
  @pipe
end

#socket_addressGoogle::Apis::TrafficdirectorV3::SocketAddress

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



44
45
46
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 44

def socket_address
  @socket_address
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



51
52
53
54
55
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 51

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