Class: Google::Apis::ComputeV1::BgpRoute

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) ⇒ BgpRoute

Returns a new instance of BgpRoute.



6312
6313
6314
# File 'lib/google/apis/compute_v1/classes.rb', line 6312

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

Instance Attribute Details

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

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



6290
6291
6292
# File 'lib/google/apis/compute_v1/classes.rb', line 6290

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>)


6295
6296
6297
# File 'lib/google/apis/compute_v1/classes.rb', line 6295

def communities
  @communities
end

#destinationGoogle::Apis::ComputeV1::BgpRouteNetworkLayerReachabilityInformation

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



6300
6301
6302
# File 'lib/google/apis/compute_v1/classes.rb', line 6300

def destination
  @destination
end

#medFixnum

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

Returns:

  • (Fixnum)


6305
6306
6307
# File 'lib/google/apis/compute_v1/classes.rb', line 6305

def med
  @med
end

#originString

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

Returns:

  • (String)


6310
6311
6312
# File 'lib/google/apis/compute_v1/classes.rb', line 6310

def origin
  @origin
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6317
6318
6319
6320
6321
6322
6323
# File 'lib/google/apis/compute_v1/classes.rb', line 6317

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