Class: Google::Apis::MigrationcenterV1alpha1::MachineNetworkDetails

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) ⇒ MachineNetworkDetails

Returns a new instance of MachineNetworkDetails.



5458
5459
5460
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 5458

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

Instance Attribute Details

#default_gatewayString

Default gateway address. Corresponds to the JSON property defaultGateway

Returns:

  • (String)


5435
5436
5437
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 5435

def default_gateway
  @default_gateway
end

#network_adaptersGoogle::Apis::MigrationcenterV1alpha1::NetworkAdapterList

List of network adapters. Corresponds to the JSON property networkAdapters



5440
5441
5442
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 5440

def network_adapters
  @network_adapters
end

#primary_ip_addressString

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

Returns:

  • (String)


5445
5446
5447
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 5445

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)


5451
5452
5453
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 5451

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)


5456
5457
5458
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 5456

def public_ip_address
  @public_ip_address
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5463
5464
5465
5466
5467
5468
5469
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 5463

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