Class: Google::Apis::ComputeAlpha::VpnGatewayStatusVpnConnection

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

A VPN connection contains all VPN tunnels connected from this VpnGateway to the same peer gateway. The peer gateway could either be a external VPN gateway or GCP VPN gateway.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ VpnGatewayStatusVpnConnection

Returns a new instance of VpnGatewayStatusVpnConnection.



44307
44308
44309
# File 'lib/google/apis/compute_alpha/classes.rb', line 44307

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

Instance Attribute Details

#peer_external_gatewayString

URL reference to the peer external VPN gateways to which the VPN tunnels in this VPN connection are connected. This field is mutually exclusive with peer_gcp_gateway. Corresponds to the JSON property peerExternalGateway

Returns:

  • (String)


44287
44288
44289
# File 'lib/google/apis/compute_alpha/classes.rb', line 44287

def peer_external_gateway
  @peer_external_gateway
end

#peer_gcp_gatewayString

URL reference to the peer side VPN gateways to which the VPN tunnels in this VPN connection are connected. This field is mutually exclusive with peer_gcp_gateway. Corresponds to the JSON property peerGcpGateway

Returns:

  • (String)


44294
44295
44296
# File 'lib/google/apis/compute_alpha/classes.rb', line 44294

def peer_gcp_gateway
  @peer_gcp_gateway
end

#stateGoogle::Apis::ComputeAlpha::VpnGatewayStatusHighAvailabilityRequirementState

Describes the high availability requirement state for the VPN connection between this Cloud VPN gateway and a peer gateway. Corresponds to the JSON property state



44300
44301
44302
# File 'lib/google/apis/compute_alpha/classes.rb', line 44300

def state
  @state
end

#tunnelsArray<Google::Apis::ComputeAlpha::VpnGatewayStatusTunnel>

List of VPN tunnels that are in this VPN connection. Corresponds to the JSON property tunnels



44305
44306
44307
# File 'lib/google/apis/compute_alpha/classes.rb', line 44305

def tunnels
  @tunnels
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



44312
44313
44314
44315
44316
44317
# File 'lib/google/apis/compute_alpha/classes.rb', line 44312

def update!(**args)
  @peer_external_gateway = args[:peer_external_gateway] if args.key?(:peer_external_gateway)
  @peer_gcp_gateway = args[:peer_gcp_gateway] if args.key?(:peer_gcp_gateway)
  @state = args[:state] if args.key?(:state)
  @tunnels = args[:tunnels] if args.key?(:tunnels)
end