Class: Google::Apis::BaremetalsolutionV2::GoogleCloudBaremetalsolutionV2ServerNetworkTemplateLogicalInterface
- Inherits:
-
Object
- Object
- Google::Apis::BaremetalsolutionV2::GoogleCloudBaremetalsolutionV2ServerNetworkTemplateLogicalInterface
- 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) ⇒ GoogleCloudBaremetalsolutionV2ServerNetworkTemplateLogicalInterface
constructor
A new instance of GoogleCloudBaremetalsolutionV2ServerNetworkTemplateLogicalInterface.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudBaremetalsolutionV2ServerNetworkTemplateLogicalInterface
Returns a new instance of GoogleCloudBaremetalsolutionV2ServerNetworkTemplateLogicalInterface.
181 182 183 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 181 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. This is of syntax or and forms part of the
network template name.
Corresponds to the JSON property name
168 169 170 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 168 def name @name end |
#required ⇒ Boolean Also known as: required?
If true, interface must have network connected.
Corresponds to the JSON property required
173 174 175 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 173 def required @required end |
#type ⇒ String
Interface type.
Corresponds to the JSON property type
179 180 181 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 179 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
186 187 188 189 190 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 186 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 |