Class: Google::Apis::MigrationcenterV1::NetworkAdapterDetails
- Inherits:
-
Object
- Object
- Google::Apis::MigrationcenterV1::NetworkAdapterDetails
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/migrationcenter_v1/classes.rb,
lib/google/apis/migrationcenter_v1/representations.rb,
lib/google/apis/migrationcenter_v1/representations.rb
Overview
Details of network adapter.
Instance Attribute Summary collapse
-
#adapter_type ⇒ String
Network adapter type (e.g. VMXNET3).
-
#addresses ⇒ Google::Apis::MigrationcenterV1::NetworkAddressList
List of allocated/assigned network addresses.
-
#mac_address ⇒ String
MAC address.
Instance Method Summary collapse
-
#initialize(**args) ⇒ NetworkAdapterDetails
constructor
A new instance of NetworkAdapterDetails.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ NetworkAdapterDetails
Returns a new instance of NetworkAdapterDetails.
2839 2840 2841 |
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 2839 def initialize(**args) update!(**args) end |
Instance Attribute Details
#adapter_type ⇒ String
Network adapter type (e.g. VMXNET3).
Corresponds to the JSON property adapterType
2827 2828 2829 |
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 2827 def adapter_type @adapter_type end |
#addresses ⇒ Google::Apis::MigrationcenterV1::NetworkAddressList
List of allocated/assigned network addresses.
Corresponds to the JSON property addresses
2832 2833 2834 |
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 2832 def addresses @addresses end |
#mac_address ⇒ String
MAC address.
Corresponds to the JSON property macAddress
2837 2838 2839 |
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 2837 def mac_address @mac_address end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2844 2845 2846 2847 2848 |
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 2844 def update!(**args) @adapter_type = args[:adapter_type] if args.key?(:adapter_type) @addresses = args[:addresses] if args.key?(:addresses) @mac_address = args[:mac_address] if args.key?(:mac_address) end |