Class: Google::Apis::ComputeBeta::VpnGatewayStatusTunnel

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

Overview

Contains some information about a VPN tunnel.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ VpnGatewayStatusTunnel

Returns a new instance of VpnGatewayStatusTunnel.



34100
34101
34102
# File 'generated/google/apis/compute_beta/classes.rb', line 34100

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)


34087
34088
34089
# File 'generated/google/apis/compute_beta/classes.rb', line 34087

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)


34093
34094
34095
# File 'generated/google/apis/compute_beta/classes.rb', line 34093

def peer_gateway_interface
  @peer_gateway_interface
end

#tunnel_urlString

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

Returns:

  • (String)


34098
34099
34100
# File 'generated/google/apis/compute_beta/classes.rb', line 34098

def tunnel_url
  @tunnel_url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



34105
34106
34107
34108
34109
# File 'generated/google/apis/compute_beta/classes.rb', line 34105

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