Class: Google::Apis::NetworkmanagementV1::VpnGatewayInfo

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/networkmanagement_v1/classes.rb,
generated/google/apis/networkmanagement_v1/representations.rb,
generated/google/apis/networkmanagement_v1/representations.rb

Overview

For display only. Metadata associated with a Compute Engine VPN gateway.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ VpnGatewayInfo

Returns a new instance of VpnGatewayInfo.



1635
1636
1637
# File 'generated/google/apis/networkmanagement_v1/classes.rb', line 1635

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

Instance Attribute Details

#display_nameString

Name of a VPN gateway. Corresponds to the JSON property displayName

Returns:

  • (String)


1606
1607
1608
# File 'generated/google/apis/networkmanagement_v1/classes.rb', line 1606

def display_name
  @display_name
end

#ip_addressString

IP address of the VPN gateway. Corresponds to the JSON property ipAddress

Returns:

  • (String)


1611
1612
1613
# File 'generated/google/apis/networkmanagement_v1/classes.rb', line 1611

def ip_address
  @ip_address
end

#network_uriString

URI of a Compute Engine network where the VPN gateway is configured. Corresponds to the JSON property networkUri

Returns:

  • (String)


1616
1617
1618
# File 'generated/google/apis/networkmanagement_v1/classes.rb', line 1616

def network_uri
  @network_uri
end

#regionString

Name of a GCP region where this VPN gateway is configured. Corresponds to the JSON property region

Returns:

  • (String)


1621
1622
1623
# File 'generated/google/apis/networkmanagement_v1/classes.rb', line 1621

def region
  @region
end

#uriString

URI of a VPN gateway. Corresponds to the JSON property uri

Returns:

  • (String)


1626
1627
1628
# File 'generated/google/apis/networkmanagement_v1/classes.rb', line 1626

def uri
  @uri
end

#vpn_tunnel_uriString

A VPN tunnel that is associated with this VPN gateway. There may be multiple VPN tunnels configured on a VPN gateway, and only the one relevant to the test is displayed. Corresponds to the JSON property vpnTunnelUri

Returns:

  • (String)


1633
1634
1635
# File 'generated/google/apis/networkmanagement_v1/classes.rb', line 1633

def vpn_tunnel_uri
  @vpn_tunnel_uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1640
1641
1642
1643
1644
1645
1646
1647
# File 'generated/google/apis/networkmanagement_v1/classes.rb', line 1640

def update!(**args)
  @display_name = args[:display_name] if args.key?(:display_name)
  @ip_address = args[:ip_address] if args.key?(:ip_address)
  @network_uri = args[:network_uri] if args.key?(:network_uri)
  @region = args[:region] if args.key?(:region)
  @uri = args[:uri] if args.key?(:uri)
  @vpn_tunnel_uri = args[:vpn_tunnel_uri] if args.key?(:vpn_tunnel_uri)
end