Class: Google::Apis::MigrationcenterV1alpha1::VirtualMachineNetworkDetails

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 adapters and settings

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ VirtualMachineNetworkDetails

Returns a new instance of VirtualMachineNetworkDetails.



2926
2927
2928
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2926

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

Instance Attribute Details

#default_gwString

Default GW address. Top-level object, will be later encriched by full RouteInfo. Corresponds to the JSON property defaultGw

Returns:

  • (String)


2908
2909
2910
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2908

def default_gw
  @default_gw
end

#network_adaptersGoogle::Apis::MigrationcenterV1alpha1::NetworkAdapterList

List of Network Adapters. Corresponds to the JSON property networkAdapters



2913
2914
2915
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2913

def network_adapters
  @network_adapters
end

#primary_ip_addressString

IP Address of the machine. Corresponds to the JSON property primaryIpAddress

Returns:

  • (String)


2918
2919
2920
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2918

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)


2924
2925
2926
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2924

def primary_mac_address
  @primary_mac_address
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2931
2932
2933
2934
2935
2936
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2931

def update!(**args)
  @default_gw = args[:default_gw] if args.key?(:default_gw)
  @network_adapters = args[:network_adapters] if args.key?(:network_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)
end