Class: Google::Apis::BaremetalsolutionV2::LogicalInterface
- Inherits:
-
Object
- Object
- Google::Apis::BaremetalsolutionV2::LogicalInterface
- 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
Logical interface.
Instance Attribute Summary collapse
-
#name ⇒ String
Interface name.
-
#required ⇒ Boolean
(also: #required?)
If true, interface must have network connected.
-
#type ⇒ String
Interface type.
Instance Method Summary collapse
-
#initialize(**args) ⇒ LogicalInterface
constructor
A new instance of LogicalInterface.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ LogicalInterface
Returns a new instance of LogicalInterface.
653 654 655 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 653 def initialize(**args) update!(**args) end |
Instance Attribute Details
#name ⇒ String
Interface name. This is not a globally unique identifier. Name is unique only
inside the ServerNetworkTemplate.
Corresponds to the JSON property name
640 641 642 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 640 def name @name end |
#required ⇒ Boolean Also known as: required?
If true, interface must have network connected.
Corresponds to the JSON property required
645 646 647 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 645 def required @required end |
#type ⇒ String
Interface type.
Corresponds to the JSON property type
651 652 653 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 651 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
658 659 660 661 662 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 658 def update!(**args) @name = args[:name] if args.key?(:name) @required = args[:required] if args.key?(:required) @type = args[:type] if args.key?(:type) end |