Class: Google::Apis::ComputeV1::VpnGatewayStatusTunnel
- Inherits:
-
Object
- Object
- Google::Apis::ComputeV1::VpnGatewayStatusTunnel
- 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
-
#local_gateway_interface ⇒ Fixnum
Output only.
-
#peer_gateway_interface ⇒ Fixnum
Output only.
-
#tunnel_url ⇒ String
Output only.
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.
66431 66432 66433 |
# File 'lib/google/apis/compute_v1/classes.rb', line 66431 def initialize(**args) update!(**args) end |
Instance Attribute Details
#local_gateway_interface ⇒ Fixnum
Output only. The VPN gateway interface this VPN tunnel is associated with.
Corresponds to the JSON property localGatewayInterface
66416 66417 66418 |
# File 'lib/google/apis/compute_v1/classes.rb', line 66416 def local_gateway_interface @local_gateway_interface end |
#peer_gateway_interface ⇒ Fixnum
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
66424 66425 66426 |
# File 'lib/google/apis/compute_v1/classes.rb', line 66424 def peer_gateway_interface @peer_gateway_interface end |
#tunnel_url ⇒ String
Output only. URL reference to the VPN tunnel.
Corresponds to the JSON property tunnelUrl
66429 66430 66431 |
# File 'lib/google/apis/compute_v1/classes.rb', line 66429 def tunnel_url @tunnel_url end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
66436 66437 66438 66439 66440 |
# File 'lib/google/apis/compute_v1/classes.rb', line 66436 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 |