Class: Google::Apis::ComputeV1::RouterBgpPeerCustomLearnedIpRange

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/compute_v1/classes.rb,
lib/google/apis/compute_v1/representations.rb,
lib/google/apis/compute_v1/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ RouterBgpPeerCustomLearnedIpRange

Returns a new instance of RouterBgpPeerCustomLearnedIpRange.



34900
34901
34902
# File 'lib/google/apis/compute_v1/classes.rb', line 34900

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

Instance Attribute Details

#rangeString

The custom learned route IP address range. Must be a valid CIDR-formatted prefix. If an IP address is provided without a subnet mask, it is interpreted as, for IPv4, a /32 singular IP address range, and, for IPv6, /128. Corresponds to the JSON property range

Returns:

  • (String)


34898
34899
34900
# File 'lib/google/apis/compute_v1/classes.rb', line 34898

def range
  @range
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



34905
34906
34907
# File 'lib/google/apis/compute_v1/classes.rb', line 34905

def update!(**args)
  @range = args[:range] if args.key?(:range)
end