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.



500
501
502
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 500

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

Instance Attribute Details

#ip_addressString

IP address configured. Corresponds to the JSON property ipAddress

Returns:

  • (String)


483
484
485
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 483

def ip_address
  @ip_address
end

#mac_addressArray<String>

List of physical nics. Corresponds to the JSON property macAddress

Returns:

  • (Array<String>)


488
489
490
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 488

def mac_address
  @mac_address
end

#networkString

Name of the network. Corresponds to the JSON property network

Returns:

  • (String)


493
494
495
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 493

def network
  @network
end

#typeString

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

Returns:

  • (String)


498
499
500
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 498

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



505
506
507
508
509
510
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 505

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