Class: Google::Apis::BaremetalsolutionV2::NetworkAddressReservation
- Inherits:
-
Object
- Object
- Google::Apis::BaremetalsolutionV2::NetworkAddressReservation
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/baremetalsolution_v2/classes.rb,
lib/google/apis/baremetalsolution_v2/representations.rb,
lib/google/apis/baremetalsolution_v2/representations.rb
Overview
A reservation of one or more addresses in a network.
Instance Attribute Summary collapse
-
#end_address ⇒ String
The last address of this reservation block, inclusive.
-
#note ⇒ String
A note about this reservation, intended for human consumption.
-
#start_address ⇒ String
The first address of this reservation block.
Instance Method Summary collapse
-
#initialize(**args) ⇒ NetworkAddressReservation
constructor
A new instance of NetworkAddressReservation.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ NetworkAddressReservation
Returns a new instance of NetworkAddressReservation.
1196 1197 1198 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1196 def initialize(**args) update!(**args) end |
Instance Attribute Details
#end_address ⇒ String
The last address of this reservation block, inclusive. I.e., for cases when
reservations are only single addresses, end_address and start_address will be
the same. Must be specified as a single IPv4 address, e.g. 10.1.2.2.
Corresponds to the JSON property endAddress
1183 1184 1185 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1183 def end_address @end_address end |
#note ⇒ String
A note about this reservation, intended for human consumption.
Corresponds to the JSON property note
1188 1189 1190 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1188 def note @note end |
#start_address ⇒ String
The first address of this reservation block. Must be specified as a single
IPv4 address, e.g. 10.1.2.2.
Corresponds to the JSON property startAddress
1194 1195 1196 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1194 def start_address @start_address end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1201 1202 1203 1204 1205 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1201 def update!(**args) @end_address = args[:end_address] if args.key?(:end_address) @note = args[:note] if args.key?(:note) @start_address = args[:start_address] if args.key?(:start_address) end |