Class: Google::Apis::BaremetalsolutionV1alpha1::NetworkAddress

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/baremetalsolution_v1alpha1/classes.rb,
lib/google/apis/baremetalsolution_v1alpha1/representations.rb,
lib/google/apis/baremetalsolution_v1alpha1/representations.rb

Overview

A network.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ NetworkAddress

Returns a new instance of NetworkAddress.



186
187
188
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 186

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#addressString

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

Returns:

  • (String)


179
180
181
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 179

def address
  @address
end

#network_idString

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

Returns:

  • (String)


184
185
186
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 184

def network_id
  @network_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



191
192
193
194
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 191

def update!(**args)
  @address = args[:address] if args.key?(:address)
  @network_id = args[:network_id] if args.key?(:network_id)
end