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.



7354
7355
7356
# File 'lib/google/apis/compute_alpha/classes.rb', line 7354

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

Instance Attribute Details

#asnsArray<Fixnum>

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

Returns:

  • (Array<Fixnum>)


7340
7341
7342
# File 'lib/google/apis/compute_alpha/classes.rb', line 7340

def asns
  @asns
end

#asns32Array<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

Returns:

  • (Array<Fixnum>)


7347
7348
7349
# File 'lib/google/apis/compute_alpha/classes.rb', line 7347

def asns32
  @asns32
end

#typeString

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

Returns:

  • (String)


7352
7353
7354
# File 'lib/google/apis/compute_alpha/classes.rb', line 7352

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7359
7360
7361
7362
7363
# File 'lib/google/apis/compute_alpha/classes.rb', line 7359

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