Class: Google::Apis::ComputeBeta::BgpRoute

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ BgpRoute

Returns a new instance of BgpRoute.



7030
7031
7032
# File 'lib/google/apis/compute_beta/classes.rb', line 7030

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

Instance Attribute Details

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

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



7008
7009
7010
# File 'lib/google/apis/compute_beta/classes.rb', line 7008

def as_paths
  @as_paths
end

#communitiesArray<String>

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

Returns:

  • (Array<String>)


7013
7014
7015
# File 'lib/google/apis/compute_beta/classes.rb', line 7013

def communities
  @communities
end

#destinationGoogle::Apis::ComputeBeta::BgpRouteNetworkLayerReachabilityInformation

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



7018
7019
7020
# File 'lib/google/apis/compute_beta/classes.rb', line 7018

def destination
  @destination
end

#medFixnum

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

Returns:

  • (Fixnum)


7023
7024
7025
# File 'lib/google/apis/compute_beta/classes.rb', line 7023

def med
  @med
end

#originString

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

Returns:

  • (String)


7028
7029
7030
# File 'lib/google/apis/compute_beta/classes.rb', line 7028

def origin
  @origin
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7035
7036
7037
7038
7039
7040
7041
# File 'lib/google/apis/compute_beta/classes.rb', line 7035

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