Class: Google::Apis::MigrationcenterV1alpha1::NetworkAdapterDetails

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/migrationcenter_v1alpha1/classes.rb,
lib/google/apis/migrationcenter_v1alpha1/representations.rb,
lib/google/apis/migrationcenter_v1alpha1/representations.rb

Overview

Details of network adapter.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ NetworkAdapterDetails

Returns a new instance of NetworkAdapterDetails.



4613
4614
4615
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 4613

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#adapter_typeString

Network adapter type (e.g. VMXNET3). Corresponds to the JSON property adapterType

Returns:

  • (String)


4601
4602
4603
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 4601

def adapter_type
  @adapter_type
end

#addressesGoogle::Apis::MigrationcenterV1alpha1::NetworkAddressList

List of allocated/assigned network addresses. Corresponds to the JSON property addresses



4606
4607
4608
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 4606

def addresses
  @addresses
end

#mac_addressString

MAC address. Corresponds to the JSON property macAddress

Returns:

  • (String)


4611
4612
4613
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 4611

def mac_address
  @mac_address
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4618
4619
4620
4621
4622
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 4618

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