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.



9287
9288
9289
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 9287

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

Instance Attribute Details

#default_gwString

Default gateway address. Corresponds to the JSON property defaultGw

Returns:

  • (String)


9264
9265
9266
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 9264

def default_gw
  @default_gw
end

#network_adaptersGoogle::Apis::MigrationcenterV1alpha1::NetworkAdapterList

List of network adapters. Corresponds to the JSON property networkAdapters



9269
9270
9271
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 9269

def network_adapters
  @network_adapters
end

#primary_ip_addressString

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

Returns:

  • (String)


9274
9275
9276
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 9274

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)


9280
9281
9282
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 9280

def primary_mac_address
  @primary_mac_address
end

#public_ip_addressString

Public IP address of the machine. Corresponds to the JSON property publicIpAddress

Returns:

  • (String)


9285
9286
9287
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 9285

def public_ip_address
  @public_ip_address
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



9292
9293
9294
9295
9296
9297
9298
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 9292

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)
  @public_ip_address = args[:public_ip_address] if args.key?(:public_ip_address)
end