Class: Google::Apis::ComputeBeta::VpnGatewayStatusTunnel
- Inherits:
-
Object
- Object
- Google::Apis::ComputeBeta::VpnGatewayStatusTunnel
- 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
-
#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 GCP 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.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ VpnGatewayStatusTunnel
Returns a new instance of VpnGatewayStatusTunnel
31830 31831 31832 |
# File 'generated/google/apis/compute_beta/classes.rb', line 31830 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
31817 31818 31819 |
# File 'generated/google/apis/compute_beta/classes.rb', line 31817 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 GCP VPN gateway.
Corresponds to the JSON property peerGatewayInterface
31823 31824 31825 |
# File 'generated/google/apis/compute_beta/classes.rb', line 31823 def peer_gateway_interface @peer_gateway_interface end |
#tunnel_url ⇒ String
URL reference to the VPN tunnel.
Corresponds to the JSON property tunnelUrl
31828 31829 31830 |
# File 'generated/google/apis/compute_beta/classes.rb', line 31828 def tunnel_url @tunnel_url end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
31835 31836 31837 31838 31839 |
# File 'generated/google/apis/compute_beta/classes.rb', line 31835 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 |