Class: Google::Apis::ComputeV1::BgpRouteAsPath
- Inherits:
-
Object
- Object
- Google::Apis::ComputeV1::BgpRouteAsPath
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/compute_v1/classes.rb,
lib/google/apis/compute_v1/representations.rb,
lib/google/apis/compute_v1/representations.rb
Instance Attribute Summary collapse
-
#asns ⇒ Array<Fixnum>
Output only.
-
#asns32 ⇒ Array<Fixnum>
Output only.
-
#type ⇒ String
Output only.
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.
6404 6405 6406 |
# File 'lib/google/apis/compute_v1/classes.rb', line 6404 def initialize(**args) update!(**args) end |
Instance Attribute Details
#asns ⇒ Array<Fixnum>
Output only. [Output only] ASNs in the path segment. When type is SEQUENCE,
these are
ordered.
Corresponds to the JSON property asns
6390 6391 6392 |
# File 'lib/google/apis/compute_v1/classes.rb', line 6390 def asns @asns end |
#asns32 ⇒ Array<Fixnum>
Output only. [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
6397 6398 6399 |
# File 'lib/google/apis/compute_v1/classes.rb', line 6397 def asns32 @asns32 end |
#type ⇒ String
Output only. [Output only] Type of AS-PATH segment (SEQUENCE or SET)
Corresponds to the JSON property type
6402 6403 6404 |
# File 'lib/google/apis/compute_v1/classes.rb', line 6402 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
6409 6410 6411 6412 6413 |
# File 'lib/google/apis/compute_v1/classes.rb', line 6409 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 |