Class: Google::Apis::MigrationcenterV1::MachineNetworkDetails

Inherits:
Object
  • Object
show all
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 adapters and settings.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ MachineNetworkDetails

Returns a new instance of MachineNetworkDetails.



2847
2848
2849
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 2847

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

Instance Attribute Details

#adaptersGoogle::Apis::MigrationcenterV1::NetworkAdapterList

List of network adapters. Corresponds to the JSON property adapters



2829
2830
2831
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 2829

def adapters
  @adapters
end

#primary_ip_addressString

The primary IP address of the machine. Corresponds to the JSON property primaryIpAddress

Returns:

  • (String)


2834
2835
2836
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 2834

def primary_ip_address
  @primary_ip_address
end

#primary_mac_addressString

MAC address of the machine. This property is used to uniqly identify the machine. Corresponds to the JSON property primaryMacAddress

Returns:

  • (String)


2840
2841
2842
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 2840

def primary_mac_address
  @primary_mac_address
end

#public_ip_addressString

The public IP address of the machine. Corresponds to the JSON property publicIpAddress

Returns:

  • (String)


2845
2846
2847
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 2845

def public_ip_address
  @public_ip_address
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2852
2853
2854
2855
2856
2857
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 2852

def update!(**args)
  @adapters = args[:adapters] if args.key?(:adapters)
  @primary_ip_address = args[:primary_ip_address] if args.key?(:primary_ip_address)
  @primary_mac_address = args[:primary_mac_address] if args.key?(:primary_mac_address)
  @public_ip_address = args[:public_ip_address] if args.key?(:public_ip_address)
end