Class: Google::Apis::BaremetalsolutionV2::Network
- Inherits:
-
Object
- Object
- Google::Apis::BaremetalsolutionV2::Network
- 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
-
#ip_address ⇒ String
IP address configured.
-
#mac_address ⇒ Array<String>
List of physical nics.
-
#network ⇒ String
Name of the network.
-
#type ⇒ String
The type of this network.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Network
constructor
A new instance of Network.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_address ⇒ String
IP address configured.
Corresponds to the JSON property ipAddress
483 484 485 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 483 def ip_address @ip_address end |
#mac_address ⇒ Array<String>
List of physical nics.
Corresponds to the JSON property macAddress
488 489 490 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 488 def mac_address @mac_address end |
#network ⇒ String
Name of the network.
Corresponds to the JSON property network
493 494 495 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 493 def network @network end |
#type ⇒ String
The type of this network.
Corresponds to the JSON property type
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 |