class Google::Apis::ComputeBeta::RouterInterface

Router interfaces. Each interface requires either one linked resource (e.g. #linked_vpn_tunnel) or IP address + range (specified in #ip_range).

Attributes

ip_range[RW]

IP address and range of the interface. The IP range must be in the RFC3927 link-local IP space. The value must be a CIDR-formatted string, for example: 169.254.0.1/30. NOTE: Do not truncate the address as it represents the IP address of the interface. Corresponds to the JSON property `ipRange` @return [String]

linked_vpn_tunnel[RW]

URI of linked VPN tunnel. It must be in the same region as the router. Each interface can have at most one linked resource. Corresponds to the JSON property `linkedVpnTunnel` @return [String]

name[RW]

Name of this interface entry. The name must be 1-63 characters long and comply with RFC1035. Corresponds to the JSON property `name` @return [String]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/compute_beta/classes.rb, line 6897
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/compute_beta/classes.rb, line 6902
def update!(**args)
  @ip_range = args[:ip_range] if args.key?(:ip_range)
  @linked_vpn_tunnel = args[:linked_vpn_tunnel] if args.key?(:linked_vpn_tunnel)
  @name = args[:name] if args.key?(:name)
end