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.



1248
1249
1250
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1248

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)


1236
1237
1238
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1236

def address
  @address
end

#existing_network_idString

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

Returns:

  • (String)


1241
1242
1243
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1241

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)


1246
1247
1248
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1246

def network_id
  @network_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1253
1254
1255
1256
1257
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1253

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