Class: Google::Apis::ComputeV1::VpnGatewayStatusTunnel

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/compute_v1/classes.rb,
lib/google/apis/compute_v1/representations.rb,
lib/google/apis/compute_v1/representations.rb

Overview

Contains some information about a VPN tunnel.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ VpnGatewayStatusTunnel

Returns a new instance of VpnGatewayStatusTunnel.



61188
61189
61190
# File 'lib/google/apis/compute_v1/classes.rb', line 61188

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

Instance Attribute Details

#local_gateway_interfaceFixnum

Output only. The VPN gateway interface this VPN tunnel is associated with. Corresponds to the JSON property localGatewayInterface

Returns:

  • (Fixnum)


61173
61174
61175
# File 'lib/google/apis/compute_v1/classes.rb', line 61173

def local_gateway_interface
  @local_gateway_interface
end

#peer_gateway_interfaceFixnum

Output only. The peer gateway interface this VPN tunnel is connected to, the peer gateway could either be an external VPN gateway or a Google Cloud VPN gateway. Corresponds to the JSON property peerGatewayInterface

Returns:

  • (Fixnum)


61181
61182
61183
# File 'lib/google/apis/compute_v1/classes.rb', line 61181

def peer_gateway_interface
  @peer_gateway_interface
end

#tunnel_urlString

Output only. URL reference to the VPN tunnel. Corresponds to the JSON property tunnelUrl

Returns:

  • (String)


61186
61187
61188
# File 'lib/google/apis/compute_v1/classes.rb', line 61186

def tunnel_url
  @tunnel_url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



61193
61194
61195
61196
61197
# File 'lib/google/apis/compute_v1/classes.rb', line 61193

def update!(**args)
  @local_gateway_interface = args[:local_gateway_interface] if args.key?(:local_gateway_interface)
  @peer_gateway_interface = args[:peer_gateway_interface] if args.key?(:peer_gateway_interface)
  @tunnel_url = args[:tunnel_url] if args.key?(:tunnel_url)
end