Class: Google::Apis::ComputeAlpha::RouterAdvertisedPrefix

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

Overview

Description-tagged prefixes for the router to advertise.

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) ⇒ RouterAdvertisedPrefix

Returns a new instance of RouterAdvertisedPrefix



17825
17826
17827
# File 'generated/google/apis/compute_alpha/classes.rb', line 17825

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

Instance Attribute Details

#descriptionString

User-specified description for the prefix. Corresponds to the JSON property description

Returns:

  • (String)


17818
17819
17820
# File 'generated/google/apis/compute_alpha/classes.rb', line 17818

def description
  @description
end

#prefixString

The prefix to advertise. The value must be a CIDR-formatted string. Corresponds to the JSON property prefix

Returns:

  • (String)


17823
17824
17825
# File 'generated/google/apis/compute_alpha/classes.rb', line 17823

def prefix
  @prefix
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



17830
17831
17832
17833
# File 'generated/google/apis/compute_alpha/classes.rb', line 17830

def update!(**args)
  @description = args[:description] if args.key?(:description)
  @prefix = args[:prefix] if args.key?(:prefix)
end