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.



997
998
999
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 997

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)


985
986
987
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 985

def address
  @address
end

#existing_network_idString

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

Returns:

  • (String)


990
991
992
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 990

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)


995
996
997
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 995

def network_id
  @network_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1002
1003
1004
1005
1006
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1002

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