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.
-
#default_gateway ⇒ String
Optional.
-
#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.
3832 3833 3834 |
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 3832 def initialize(**args) update!(**args) end |
Instance Attribute Details
#adapters ⇒ Google::Apis::MigrationcenterV1::NetworkAdapterList
List of network adapters.
Corresponds to the JSON property adapters
3809 3810 3811 |
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 3809 def adapters @adapters end |
#default_gateway ⇒ String
Optional. Default gateway address.
Corresponds to the JSON property defaultGateway
3814 3815 3816 |
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 3814 def default_gateway @default_gateway end |
#primary_ip_address ⇒ String
The primary IP address of the machine.
Corresponds to the JSON property primaryIpAddress
3819 3820 3821 |
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 3819 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
3825 3826 3827 |
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 3825 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
3830 3831 3832 |
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 3830 def public_ip_address @public_ip_address end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3837 3838 3839 3840 3841 3842 3843 |
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 3837 def update!(**args) @adapters = args[:adapters] if args.key?(:adapters) @default_gateway = args[:default_gateway] if args.key?(:default_gateway) @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 |