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.
-
#asns32 ⇒ 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.
6581 6582 6583 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 6581 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
6567 6568 6569 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 6567 def asns @asns end |
#asns32 ⇒ Array<Fixnum>
[Output only] ASNs in the path segment. This field is for better support of 32
bit ASNs as the other asns field suffers from overflow when the ASN is larger.
When type is SEQUENCE, these are ordered.
Corresponds to the JSON property asns32
6574 6575 6576 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 6574 def asns32 @asns32 end |
#type ⇒ String
[Output only] Type of AS-PATH segment (SEQUENCE or SET)
Corresponds to the JSON property type
6579 6580 6581 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 6579 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
6586 6587 6588 6589 6590 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 6586 def update!(**args) @asns = args[:asns] if args.key?(:asns) @asns32 = args[:asns32] if args.key?(:asns32) @type = args[:type] if args.key?(:type) end |