Class: Google::Apis::ComputeAlpha::BgpRouteAsPath
- Inherits:
-
Object
- Object
- Google::Apis::ComputeAlpha::BgpRouteAsPath
- 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
-
#asns ⇒ Array<Fixnum>
[Output only] ASNs in the path segment.
-
#type ⇒ String
[Output only] Type of AS-PATH segment (SEQUENCE or SET) Corresponds to the JSON property
type
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ BgpRouteAsPath
constructor
A new instance of BgpRouteAsPath.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ BgpRouteAsPath
Returns a new instance of BgpRouteAsPath.
5481 5482 5483 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 5481 def initialize(**args) update!(**args) end |
Instance Attribute Details
#asns ⇒ Array<Fixnum>
[Output only] ASNs in the path segment. When type is SEQUENCE, these are
ordered.
Corresponds to the JSON property asns
5474 5475 5476 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 5474 def asns @asns end |
#type ⇒ String
[Output only] Type of AS-PATH segment (SEQUENCE or SET)
Corresponds to the JSON property type
5479 5480 5481 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 5479 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5486 5487 5488 5489 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 5486 def update!(**args) @asns = args[:asns] if args.key?(:asns) @type = args[:type] if args.key?(:type) end |