Class: Google::Apis::ComputeAlpha::VpnGatewayStatusTunnel

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



50633
50634
50635
# File 'lib/google/apis/compute_alpha/classes.rb', line 50633

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

Instance Attribute Details

#local_gateway_interfaceFixnum

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

Returns:

  • (Fixnum)


50620
50621
50622
# File 'lib/google/apis/compute_alpha/classes.rb', line 50620

def local_gateway_interface
  @local_gateway_interface
end

#peer_gateway_interfaceFixnum

The peer gateway interface this VPN tunnel is connected to, the peer gateway could either be an external VPN gateway or GCP VPN gateway. Corresponds to the JSON property peerGatewayInterface

Returns:

  • (Fixnum)


50626
50627
50628
# File 'lib/google/apis/compute_alpha/classes.rb', line 50626

def peer_gateway_interface
  @peer_gateway_interface
end

#tunnel_urlString

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

Returns:

  • (String)


50631
50632
50633
# File 'lib/google/apis/compute_alpha/classes.rb', line 50631

def tunnel_url
  @tunnel_url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



50638
50639
50640
50641
50642
# File 'lib/google/apis/compute_alpha/classes.rb', line 50638

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