Class: Google::Apis::BaremetalsolutionV2::NetworkAddress
- Inherits:
-
Object
- Object
- Google::Apis::BaremetalsolutionV2::NetworkAddress
- 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 network.
Instance Attribute Summary collapse
-
#address ⇒ String
IPv4 address to be assigned to the server.
-
#existing_network_id ⇒ String
Name of the existing network to use.
-
#network_id ⇒ String
Id of the network to use, within the same ProvisioningConfig request.
Instance Method Summary collapse
-
#initialize(**args) ⇒ NetworkAddress
constructor
A new instance of NetworkAddress.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ NetworkAddress
Returns a new instance of NetworkAddress.
1328 1329 1330 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1328 def initialize(**args) update!(**args) end |
Instance Attribute Details
#address ⇒ String
IPv4 address to be assigned to the server.
Corresponds to the JSON property address
1316 1317 1318 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1316 def address @address end |
#existing_network_id ⇒ String
Name of the existing network to use.
Corresponds to the JSON property existingNetworkId
1321 1322 1323 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1321 def existing_network_id @existing_network_id end |
#network_id ⇒ String
Id of the network to use, within the same ProvisioningConfig request.
Corresponds to the JSON property networkId
1326 1327 1328 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1326 def network_id @network_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1333 1334 1335 1336 1337 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1333 def update!(**args) @address = args[:address] if args.key?(:address) @existing_network_id = args[:existing_network_id] if args.key?(:existing_network_id) @network_id = args[:network_id] if args.key?(:network_id) end |