Class: Google::Apis::ComputeAlpha::BgpRoute

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ BgpRoute

Returns a new instance of BgpRoute.



5369
5370
5371
# File 'lib/google/apis/compute_alpha/classes.rb', line 5369

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

Instance Attribute Details

#as_pathsArray<Google::Apis::ComputeAlpha::BgpRouteAsPath>

[Output only] AS-PATH for the route Corresponds to the JSON property asPaths



5347
5348
5349
# File 'lib/google/apis/compute_alpha/classes.rb', line 5347

def as_paths
  @as_paths
end

#communitiesArray<String>

[Output only] BGP communities in human-readable A:B format. Corresponds to the JSON property communities

Returns:

  • (Array<String>)


5352
5353
5354
# File 'lib/google/apis/compute_alpha/classes.rb', line 5352

def communities
  @communities
end

#destinationGoogle::Apis::ComputeAlpha::BgpRouteNetworkLayerReachabilityInformation

Network Layer Reachability Information (NLRI) for a route. Corresponds to the JSON property destination



5357
5358
5359
# File 'lib/google/apis/compute_alpha/classes.rb', line 5357

def destination
  @destination
end

#medFixnum

[Output only] BGP multi-exit discriminator Corresponds to the JSON property med

Returns:

  • (Fixnum)


5362
5363
5364
# File 'lib/google/apis/compute_alpha/classes.rb', line 5362

def med
  @med
end

#originString

[Output only] BGP origin (EGP, IGP or INCOMPLETE) Corresponds to the JSON property origin

Returns:

  • (String)


5367
5368
5369
# File 'lib/google/apis/compute_alpha/classes.rb', line 5367

def origin
  @origin
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5374
5375
5376
5377
5378
5379
5380
# File 'lib/google/apis/compute_alpha/classes.rb', line 5374

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