Class: Google::Apis::BaremetalsolutionV2::NetworkAddress

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 network.

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#addressString

IPv4 address to be assigned to the server. Corresponds to the JSON property address

Returns:

  • (String)


1316
1317
1318
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1316

def address
  @address
end

#existing_network_idString

Name of the existing network to use. Corresponds to the JSON property existingNetworkId

Returns:

  • (String)


1321
1322
1323
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1321

def existing_network_id
  @existing_network_id
end

#network_idString

Id of the network to use, within the same ProvisioningConfig request. Corresponds to the JSON property networkId

Returns:

  • (String)


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