Class: Google::Apis::ComputeAlpha::VpnGatewayStatusTunnel
- Inherits:
-
Object
- Object
- Google::Apis::ComputeAlpha::VpnGatewayStatusTunnel
- 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
-
#local_gateway_interface ⇒ Fixnum
The VPN gateway interface this VPN tunnel is associated with.
-
#peer_gateway_interface ⇒ Fixnum
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.
-
#tunnel_url ⇒ String
URL reference to the VPN tunnel.
Instance Method Summary collapse
-
#initialize(**args) ⇒ VpnGatewayStatusTunnel
constructor
A new instance of VpnGatewayStatusTunnel.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ VpnGatewayStatusTunnel
Returns a new instance of VpnGatewayStatusTunnel.
54942 54943 54944 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 54942 def initialize(**args) update!(**args) end |
Instance Attribute Details
#local_gateway_interface ⇒ Fixnum
The VPN gateway interface this VPN tunnel is associated with.
Corresponds to the JSON property localGatewayInterface
54929 54930 54931 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 54929 def local_gateway_interface @local_gateway_interface end |
#peer_gateway_interface ⇒ Fixnum
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
54935 54936 54937 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 54935 def peer_gateway_interface @peer_gateway_interface end |
#tunnel_url ⇒ String
URL reference to the VPN tunnel.
Corresponds to the JSON property tunnelUrl
54940 54941 54942 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 54940 def tunnel_url @tunnel_url end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
54947 54948 54949 54950 54951 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 54947 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 |