Class: Google::Apis::BaremetalsolutionV2::Network

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) ⇒ Network

Returns a new instance of Network.



463
464
465
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 463

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

Instance Attribute Details

#ip_addressString

IP address configured. Corresponds to the JSON property ipAddress

Returns:

  • (String)


446
447
448
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 446

def ip_address
  @ip_address
end

#mac_addressArray<String>

List of physical nics. Corresponds to the JSON property macAddress

Returns:

  • (Array<String>)


451
452
453
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 451

def mac_address
  @mac_address
end

#networkString

Name of the network. Corresponds to the JSON property network

Returns:

  • (String)


456
457
458
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 456

def network
  @network
end

#typeString

The type of this network. Corresponds to the JSON property type

Returns:

  • (String)


461
462
463
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 461

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



468
469
470
471
472
473
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 468

def update!(**args)
  @ip_address = args[:ip_address] if args.key?(:ip_address)
  @mac_address = args[:mac_address] if args.key?(:mac_address)
  @network = args[:network] if args.key?(:network)
  @type = args[:type] if args.key?(:type)
end