Class: Google::Apis::ComputeBeta::BgpRouteAsPath

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

Returns a new instance of BgpRouteAsPath.



5198
5199
5200
# File 'lib/google/apis/compute_beta/classes.rb', line 5198

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


5191
5192
5193
# File 'lib/google/apis/compute_beta/classes.rb', line 5191

def asns
  @asns
end

#typeString

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

Returns:

  • (String)


5196
5197
5198
# File 'lib/google/apis/compute_beta/classes.rb', line 5196

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5203
5204
5205
5206
# File 'lib/google/apis/compute_beta/classes.rb', line 5203

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