Class: Google::Apis::MigrationcenterV1::MachineNetworkDetails
- Inherits:
-
Object
- Object
- Google::Apis::MigrationcenterV1::MachineNetworkDetails
- 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
-
#adapters ⇒ Google::Apis::MigrationcenterV1::NetworkAdapterList
List of network adapters.
-
#primary_ip_address ⇒ String
The primary IP address of the machine.
-
#primary_mac_address ⇒ String
MAC address of the machine.
-
#public_ip_address ⇒ String
The public IP address of the machine.
Instance Method Summary collapse
-
#initialize(**args) ⇒ MachineNetworkDetails
constructor
A new instance of MachineNetworkDetails.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ MachineNetworkDetails
Returns a new instance of MachineNetworkDetails.
2903 2904 2905 |
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 2903 def initialize(**args) update!(**args) end |
Instance Attribute Details
#adapters ⇒ Google::Apis::MigrationcenterV1::NetworkAdapterList
List of network adapters.
Corresponds to the JSON property adapters
2885 2886 2887 |
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 2885 def adapters @adapters end |
#primary_ip_address ⇒ String
The primary IP address of the machine.
Corresponds to the JSON property primaryIpAddress
2890 2891 2892 |
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 2890 def primary_ip_address @primary_ip_address end |
#primary_mac_address ⇒ String
MAC address of the machine. This property is used to uniqly identify the
machine.
Corresponds to the JSON property primaryMacAddress
2896 2897 2898 |
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 2896 def primary_mac_address @primary_mac_address end |
#public_ip_address ⇒ String
The public IP address of the machine.
Corresponds to the JSON property publicIpAddress
2901 2902 2903 |
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 2901 def public_ip_address @public_ip_address end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2908 2909 2910 2911 2912 2913 |
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 2908 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 |