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.



6926
6927
6928
# File 'lib/google/apis/compute_beta/classes.rb', line 6926

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



6904
6905
6906
# File 'lib/google/apis/compute_beta/classes.rb', line 6904

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


6909
6910
6911
# File 'lib/google/apis/compute_beta/classes.rb', line 6909

def communities
  @communities
end

#destinationGoogle::Apis::ComputeBeta::BgpRouteNetworkLayerReachabilityInformation

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



6914
6915
6916
# File 'lib/google/apis/compute_beta/classes.rb', line 6914

def destination
  @destination
end

#medFixnum

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

Returns:

  • (Fixnum)


6919
6920
6921
# File 'lib/google/apis/compute_beta/classes.rb', line 6919

def med
  @med
end

#originString

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

Returns:

  • (String)


6924
6925
6926
# File 'lib/google/apis/compute_beta/classes.rb', line 6924

def origin
  @origin
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6931
6932
6933
6934
6935
6936
6937
# File 'lib/google/apis/compute_beta/classes.rb', line 6931

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