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.



1051
1052
1053
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1051

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)


1039
1040
1041
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1039

def address
  @address
end

#existing_network_idString

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

Returns:

  • (String)


1044
1045
1046
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1044

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)


1049
1050
1051
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1049

def network_id
  @network_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1056
1057
1058
1059
1060
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1056

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