Class: Google::Apis::ComputeAlpha::BgpRouteAsPath

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

Returns a new instance of BgpRouteAsPath.



6001
6002
6003
# File 'lib/google/apis/compute_alpha/classes.rb', line 6001

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

Instance Attribute Details

#asnsArray<Fixnum>

[Output only] ASNs in the path segment. When type is SEQUENCE, these are ordered. Corresponds to the JSON property asns

Returns:

  • (Array<Fixnum>)


5994
5995
5996
# File 'lib/google/apis/compute_alpha/classes.rb', line 5994

def asns
  @asns
end

#typeString

[Output only] Type of AS-PATH segment (SEQUENCE or SET) Corresponds to the JSON property type

Returns:

  • (String)


5999
6000
6001
# File 'lib/google/apis/compute_alpha/classes.rb', line 5999

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6006
6007
6008
6009
# File 'lib/google/apis/compute_alpha/classes.rb', line 6006

def update!(**args)
  @asns = args[:asns] if args.key?(:asns)
  @type = args[:type] if args.key?(:type)
end