Class: Google::Apis::ComputeV1::VpnGatewayStatusVpnConnection

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/compute_v1/classes.rb,
generated/google/apis/compute_v1/representations.rb,
generated/google/apis/compute_v1/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

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

#to_json

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

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ VpnGatewayStatusVpnConnection

Returns a new instance of VpnGatewayStatusVpnConnection



29443
29444
29445
# File 'generated/google/apis/compute_v1/classes.rb', line 29443

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)


29423
29424
29425
# File 'generated/google/apis/compute_v1/classes.rb', line 29423

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)


29430
29431
29432
# File 'generated/google/apis/compute_v1/classes.rb', line 29430

def peer_gcp_gateway
  @peer_gcp_gateway
end

#stateGoogle::Apis::ComputeV1::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



29436
29437
29438
# File 'generated/google/apis/compute_v1/classes.rb', line 29436

def state
  @state
end

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

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



29441
29442
29443
# File 'generated/google/apis/compute_v1/classes.rb', line 29441

def tunnels
  @tunnels
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



29448
29449
29450
29451
29452
29453
# File 'generated/google/apis/compute_v1/classes.rb', line 29448

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