Class: Google::Apis::BaremetalsolutionV2::GoogleCloudBaremetalsolutionV2LogicalInterface
- Inherits:
-
Object
- Object
- Google::Apis::BaremetalsolutionV2::GoogleCloudBaremetalsolutionV2LogicalInterface
- 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
Each logical interface represents a logical abstraction of the underlying physical interface (for eg. bond, nic) of the instance. Each logical interface can effectively map to multiple network-IP pairs and still be mapped to one underlying physical interface.
Instance Attribute Summary collapse
-
#interface_index ⇒ Fixnum
The index of the logical interface mapping to the index of the hardware bond or nic on the chosen network template.
-
#logical_network_interfaces ⇒ Array<Google::Apis::BaremetalsolutionV2::LogicalNetworkInterface>
List of logical network interfaces within a logical interface.
-
#name ⇒ String
Interface name.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudBaremetalsolutionV2LogicalInterface
constructor
A new instance of GoogleCloudBaremetalsolutionV2LogicalInterface.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudBaremetalsolutionV2LogicalInterface
Returns a new instance of GoogleCloudBaremetalsolutionV2LogicalInterface.
205 206 207 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 205 def initialize(**args) update!(**args) end |
Instance Attribute Details
#interface_index ⇒ Fixnum
The index of the logical interface mapping to the index of the hardware bond
or nic on the chosen network template. This field is deprecated.
Corresponds to the JSON property interfaceIndex
192 193 194 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 192 def interface_index @interface_index end |
#logical_network_interfaces ⇒ Array<Google::Apis::BaremetalsolutionV2::LogicalNetworkInterface>
List of logical network interfaces within a logical interface.
Corresponds to the JSON property logicalNetworkInterfaces
197 198 199 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 197 def logical_network_interfaces @logical_network_interfaces end |
#name ⇒ String
Interface name. This is of syntax or and forms part of the network template
name.
Corresponds to the JSON property name
203 204 205 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 203 def name @name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
210 211 212 213 214 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 210 def update!(**args) @interface_index = args[:interface_index] if args.key?(:interface_index) @logical_network_interfaces = args[:logical_network_interfaces] if args.key?(:logical_network_interfaces) @name = args[:name] if args.key?(:name) end |