Class: Google::Apis::ComputeV1::RouterBgp
- Inherits:
-
Object
- Object
- Google::Apis::ComputeV1::RouterBgp
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- generated/google/apis/compute_v1/classes.rb,
generated/google/apis/compute_v1/representations.rb,
generated/google/apis/compute_v1/representations.rb
Instance Attribute Summary collapse
-
#advertise_mode ⇒ String
User-specified flag to indicate which mode to use for advertisement.
-
#advertised_groups ⇒ Array<String>
User-specified list of prefix groups to advertise in custom mode.
-
#advertised_ip_ranges ⇒ Array<Google::Apis::ComputeV1::RouterAdvertisedIpRange>
User-specified list of individual IP ranges to advertise in custom mode.
-
#asn ⇒ Fixnum
Local BGP Autonomous System Number (ASN).
Instance Method Summary collapse
-
#initialize(**args) ⇒ RouterBgp
constructor
A new instance of RouterBgp.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ RouterBgp
Returns a new instance of RouterBgp.
25840 25841 25842 |
# File 'generated/google/apis/compute_v1/classes.rb', line 25840 def initialize(**args) update!(**args) end |
Instance Attribute Details
#advertise_mode ⇒ String
User-specified flag to indicate which mode to use for advertisement. The
options are DEFAULT or CUSTOM.
Corresponds to the JSON property advertiseMode
25815 25816 25817 |
# File 'generated/google/apis/compute_v1/classes.rb', line 25815 def advertise_mode @advertise_mode end |
#advertised_groups ⇒ Array<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
25823 25824 25825 |
# File 'generated/google/apis/compute_v1/classes.rb', line 25823 def advertised_groups @advertised_groups end |
#advertised_ip_ranges ⇒ Array<Google::Apis::ComputeV1::RouterAdvertisedIpRange>
User-specified list of individual IP ranges 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 IP ranges will be advertised in addition to any
specified groups. Leave this field blank to advertise no custom IP ranges.
Corresponds to the JSON property advertisedIpRanges
25831 25832 25833 |
# File 'generated/google/apis/compute_v1/classes.rb', line 25831 def advertised_ip_ranges @advertised_ip_ranges end |
#asn ⇒ Fixnum
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
25838 25839 25840 |
# File 'generated/google/apis/compute_v1/classes.rb', line 25838 def asn @asn end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
25845 25846 25847 25848 25849 25850 |
# File 'generated/google/apis/compute_v1/classes.rb', line 25845 def update!(**args) @advertise_mode = args[:advertise_mode] if args.key?(:advertise_mode) @advertised_groups = args[:advertised_groups] if args.key?(:advertised_groups) @advertised_ip_ranges = args[:advertised_ip_ranges] if args.key?(:advertised_ip_ranges) @asn = args[:asn] if args.key?(:asn) end |