Class: Google::Apis::ComputeAlpha::BgpRoute
- Inherits:
-
Object
- Object
- Google::Apis::ComputeAlpha::BgpRoute
- 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
Instance Attribute Summary collapse
-
#as_paths ⇒ Array<Google::Apis::ComputeAlpha::BgpRouteAsPath>
[Output only] AS-PATH for the route Corresponds to the JSON property
asPaths
. -
#communities ⇒ Array<String>
[Output only] BGP communities in human-readable A:B format.
-
#destination ⇒ Google::Apis::ComputeAlpha::BgpRouteNetworkLayerReachabilityInformation
Network Layer Reachability Information (NLRI) for a route.
-
#med ⇒ Fixnum
[Output only] BGP multi-exit discriminator Corresponds to the JSON property
med
. -
#origin ⇒ String
[Output only] BGP origin (EGP, IGP or INCOMPLETE) Corresponds to the JSON property
origin
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ BgpRoute
constructor
A new instance of BgpRoute.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ BgpRoute
Returns a new instance of BgpRoute.
5452 5453 5454 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 5452 def initialize(**args) update!(**args) end |
Instance Attribute Details
#as_paths ⇒ Array<Google::Apis::ComputeAlpha::BgpRouteAsPath>
[Output only] AS-PATH for the route
Corresponds to the JSON property asPaths
5430 5431 5432 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 5430 def as_paths @as_paths end |
#communities ⇒ Array<String>
[Output only] BGP communities in human-readable A:B format.
Corresponds to the JSON property communities
5435 5436 5437 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 5435 def communities @communities end |
#destination ⇒ Google::Apis::ComputeAlpha::BgpRouteNetworkLayerReachabilityInformation
Network Layer Reachability Information (NLRI) for a route.
Corresponds to the JSON property destination
5440 5441 5442 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 5440 def destination @destination end |
#med ⇒ Fixnum
[Output only] BGP multi-exit discriminator
Corresponds to the JSON property med
5445 5446 5447 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 5445 def med @med end |
#origin ⇒ String
[Output only] BGP origin (EGP, IGP or INCOMPLETE)
Corresponds to the JSON property origin
5450 5451 5452 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 5450 def origin @origin end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5457 5458 5459 5460 5461 5462 5463 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 5457 def update!(**args) @as_paths = args[:as_paths] if args.key?(:as_paths) @communities = args[:communities] if args.key?(:communities) @destination = args[:destination] if args.key?(:destination) @med = args[:med] if args.key?(:med) @origin = args[:origin] if args.key?(:origin) end |