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

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



2849
2850
2851
# File 'lib/google/apis/networkmanagement_v1/classes.rb', line 2849

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

Instance Attribute Details

#display_nameString

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

Returns:

  • (String)


2820
2821
2822
# File 'lib/google/apis/networkmanagement_v1/classes.rb', line 2820

def display_name
  @display_name
end

#ip_addressString

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

Returns:

  • (String)


2825
2826
2827
# File 'lib/google/apis/networkmanagement_v1/classes.rb', line 2825

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)


2830
2831
2832
# File 'lib/google/apis/networkmanagement_v1/classes.rb', line 2830

def network_uri
  @network_uri
end

#regionString

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

Returns:

  • (String)


2835
2836
2837
# File 'lib/google/apis/networkmanagement_v1/classes.rb', line 2835

def region
  @region
end

#uriString

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

Returns:

  • (String)


2840
2841
2842
# File 'lib/google/apis/networkmanagement_v1/classes.rb', line 2840

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)


2847
2848
2849
# File 'lib/google/apis/networkmanagement_v1/classes.rb', line 2847

def vpn_tunnel_uri
  @vpn_tunnel_uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2854
2855
2856
2857
2858
2859
2860
2861
# File 'lib/google/apis/networkmanagement_v1/classes.rb', line 2854

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