Class: Google::Apis::ComputeAlpha::BgpRouteNetworkLayerReachabilityInformation

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

Overview

Network Layer Reachability Information (NLRI) for a route.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ BgpRouteNetworkLayerReachabilityInformation

Returns a new instance of BgpRouteNetworkLayerReachabilityInformation.



5425
5426
5427
# File 'lib/google/apis/compute_alpha/classes.rb', line 5425

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

Instance Attribute Details

#destinationString

Human readable CIDR notation for a prefix. E.g. 10.42.0.0/16. Corresponds to the JSON property destination

Returns:

  • (String)


5417
5418
5419
# File 'lib/google/apis/compute_alpha/classes.rb', line 5417

def destination
  @destination
end

#path_idFixnum

If the BGP session supports multiple paths (RFC 7911), the path identifier for this route. Corresponds to the JSON property pathId

Returns:

  • (Fixnum)


5423
5424
5425
# File 'lib/google/apis/compute_alpha/classes.rb', line 5423

def path_id
  @path_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5430
5431
5432
5433
# File 'lib/google/apis/compute_alpha/classes.rb', line 5430

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