Class: Google::Apis::BaremetalsolutionV2::NetworkAddressReservation

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ NetworkAddressReservation

Returns a new instance of NetworkAddressReservation.



1159
1160
1161
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1159

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

Instance Attribute Details

#end_addressString

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

Returns:

  • (String)


1146
1147
1148
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1146

def end_address
  @end_address
end

#noteString

A note about this reservation, intended for human consumption. Corresponds to the JSON property note

Returns:

  • (String)


1151
1152
1153
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1151

def note
  @note
end

#start_addressString

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

Returns:

  • (String)


1157
1158
1159
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1157

def start_address
  @start_address
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1164
1165
1166
1167
1168
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1164

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