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.



7330
7331
7332
# File 'lib/google/apis/compute_alpha/classes.rb', line 7330

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

Instance Attribute Details

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

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



7308
7309
7310
# File 'lib/google/apis/compute_alpha/classes.rb', line 7308

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


7313
7314
7315
# File 'lib/google/apis/compute_alpha/classes.rb', line 7313

def communities
  @communities
end

#destinationGoogle::Apis::ComputeAlpha::BgpRouteNetworkLayerReachabilityInformation

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



7318
7319
7320
# File 'lib/google/apis/compute_alpha/classes.rb', line 7318

def destination
  @destination
end

#medFixnum

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

Returns:

  • (Fixnum)


7323
7324
7325
# File 'lib/google/apis/compute_alpha/classes.rb', line 7323

def med
  @med
end

#originString

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

Returns:

  • (String)


7328
7329
7330
# File 'lib/google/apis/compute_alpha/classes.rb', line 7328

def origin
  @origin
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7335
7336
7337
7338
7339
7340
7341
# File 'lib/google/apis/compute_alpha/classes.rb', line 7335

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