Class: Google::Apis::NetworkmanagementV1::VpnTunnelInfo

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 tunnel.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ VpnTunnelInfo

Returns a new instance of VpnTunnelInfo.



4715
4716
4717
# File 'lib/google/apis/networkmanagement_v1/classes.rb', line 4715

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

Instance Attribute Details

#display_nameString

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

Returns:

  • (String)


4665
4666
4667
# File 'lib/google/apis/networkmanagement_v1/classes.rb', line 4665

def display_name
  @display_name
end

#network_uriString

URI of the VPC network where the VPN tunnel is configured. Format: projects/ project_id/global/networks/network_id` Corresponds to the JSON propertynetworkUri`

Returns:

  • (String)


4671
4672
4673
# File 'lib/google/apis/networkmanagement_v1/classes.rb', line 4671

def network_uri
  @network_uri
end

#regionString

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

Returns:

  • (String)


4676
4677
4678
# File 'lib/google/apis/networkmanagement_v1/classes.rb', line 4676

def region
  @region
end

#remote_gatewayString

URI of a VPN gateway at remote end of the tunnel. Format: * projects/ project_id/regions/region/vpnGateways/vpn_gateway_id`` (GCP HA VPN gateway)

  • projects/project_id/global/peerVpnGateways/peer_vpn_gateway_id`(GCP peer VPN gateway) Corresponds to the JSON propertyremoteGateway`

Returns:

  • (String)


4684
4685
4686
# File 'lib/google/apis/networkmanagement_v1/classes.rb', line 4684

def remote_gateway
  @remote_gateway
end

#remote_gateway_ipString

Remote VPN gateway's IP address. Corresponds to the JSON property remoteGatewayIp

Returns:

  • (String)


4689
4690
4691
# File 'lib/google/apis/networkmanagement_v1/classes.rb', line 4689

def remote_gateway_ip
  @remote_gateway_ip
end

#routing_typeString

Type of the routing policy. Corresponds to the JSON property routingType

Returns:

  • (String)


4694
4695
4696
# File 'lib/google/apis/networkmanagement_v1/classes.rb', line 4694

def routing_type
  @routing_type
end

#source_gatewayString

URI of the VPN gateway at local end of the tunnel. Format: * projects/ project_id/regions/region/vpnGateways/vpn_gateway_id(HA VPN gateway) * ` projects/`project_id`/regions/`region`/targetVpnGateways/` target_vpn_gateway_id (Classic VPN gateway) Corresponds to the JSON property sourceGateway

Returns:

  • (String)


4702
4703
4704
# File 'lib/google/apis/networkmanagement_v1/classes.rb', line 4702

def source_gateway
  @source_gateway
end

#source_gateway_ipString

Local VPN gateway's IP address. Corresponds to the JSON property sourceGatewayIp

Returns:

  • (String)


4707
4708
4709
# File 'lib/google/apis/networkmanagement_v1/classes.rb', line 4707

def source_gateway_ip
  @source_gateway_ip
end

#uriString

URI of the VPN tunnel. Format: projects/project_id/regions/region/ vpnTunnels/vpn_tunnel_id` Corresponds to the JSON propertyuri`

Returns:

  • (String)


4713
4714
4715
# File 'lib/google/apis/networkmanagement_v1/classes.rb', line 4713

def uri
  @uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
# File 'lib/google/apis/networkmanagement_v1/classes.rb', line 4720

def update!(**args)
  @display_name = args[:display_name] if args.key?(:display_name)
  @network_uri = args[:network_uri] if args.key?(:network_uri)
  @region = args[:region] if args.key?(:region)
  @remote_gateway = args[:remote_gateway] if args.key?(:remote_gateway)
  @remote_gateway_ip = args[:remote_gateway_ip] if args.key?(:remote_gateway_ip)
  @routing_type = args[:routing_type] if args.key?(:routing_type)
  @source_gateway = args[:source_gateway] if args.key?(:source_gateway)
  @source_gateway_ip = args[:source_gateway_ip] if args.key?(:source_gateway_ip)
  @uri = args[:uri] if args.key?(:uri)
end