Class: Google::Apis::ComputeAlpha::RouterBgp

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/compute_alpha/classes.rb,
generated/google/apis/compute_alpha/representations.rb,
generated/google/apis/compute_alpha/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ RouterBgp

Returns a new instance of RouterBgp



17985
17986
17987
# File 'generated/google/apis/compute_alpha/classes.rb', line 17985

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

Instance Attribute Details

User-specified flag to indicate which mode to use for advertisement. Corresponds to the JSON property advertiseMode

Returns:

  • (String)


17960
17961
17962
# File 'generated/google/apis/compute_alpha/classes.rb', line 17960

def advertise_mode
  @advertise_mode
end

#advertised_groupsArray<String>

User-specified list of prefix groups to advertise in custom mode. This field can only be populated if advertise_mode is CUSTOM and is advertised to all peers of the router. These groups will be advertised in addition to any specified prefixes. Leave this field blank to advertise no custom groups. Corresponds to the JSON property advertisedGroups

Returns:

  • (Array<String>)


17968
17969
17970
# File 'generated/google/apis/compute_alpha/classes.rb', line 17968

def advertised_groups
  @advertised_groups
end

#advertised_prefixsArray<Google::Apis::ComputeAlpha::RouterAdvertisedPrefix>

User-specified list of individual prefixes to advertise in custom mode. This field can only be populated if advertise_mode is CUSTOM and is advertised to all peers of the router. These prefixes will be advertised in addition to any specified groups. Leave this field blank to advertise no custom prefixes. Corresponds to the JSON property advertisedPrefixs



17976
17977
17978
# File 'generated/google/apis/compute_alpha/classes.rb', line 17976

def advertised_prefixs
  @advertised_prefixs
end

#asnFixnum

Local BGP Autonomous System Number (ASN). Must be an RFC6996 private ASN, either 16-bit or 32-bit. The value will be fixed for this router resource. All VPN tunnels that link to this router will have the same local ASN. Corresponds to the JSON property asn

Returns:

  • (Fixnum)


17983
17984
17985
# File 'generated/google/apis/compute_alpha/classes.rb', line 17983

def asn
  @asn
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



17990
17991
17992
17993
17994
17995
# File 'generated/google/apis/compute_alpha/classes.rb', line 17990

def update!(**args)
  @advertise_mode = args[:advertise_mode] if args.key?(:advertise_mode)
  @advertised_groups = args[:advertised_groups] if args.key?(:advertised_groups)
  @advertised_prefixs = args[:advertised_prefixs] if args.key?(:advertised_prefixs)
  @asn = args[:asn] if args.key?(:asn)
end