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.



198
199
200
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 198

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

#existing_network_idString

Name of the existing network to use. Will be of the format at--vlan for pre- intake UI networks like for eg, at-123456-vlan001 or any user-defined name like for eg, my-network-name for networks provisioned using intake UI. The field is exclusively filled only in case of an already existing network. Mutually exclusive with network_id. Corresponds to the JSON property existingNetworkId

Returns:

  • (String)


188
189
190
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 188

def existing_network_id
  @existing_network_id
end

#network_idString

Name of the network to use, within the same ProvisioningConfig request. This represents a new network being provisioned in the same request. Can have any user-defined name like for eg, my-network-name. Mutually exclusive with existing_network_id. Corresponds to the JSON property networkId

Returns:

  • (String)


196
197
198
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 196

def network_id
  @network_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



203
204
205
206
207
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 203

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