Class: Google::Apis::MigrationcenterV1alpha1::MachineNetworkDetails
- Inherits:
-
Object
- Object
- Google::Apis::MigrationcenterV1alpha1::MachineNetworkDetails
- 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
-
#default_gateway ⇒ String
Default gateway address.
-
#network_adapters ⇒ Google::Apis::MigrationcenterV1alpha1::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.
5608 5609 5610 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 5608 def initialize(**args) update!(**args) end |
Instance Attribute Details
#default_gateway ⇒ String
Default gateway address.
Corresponds to the JSON property defaultGateway
5585 5586 5587 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 5585 def default_gateway @default_gateway end |
#network_adapters ⇒ Google::Apis::MigrationcenterV1alpha1::NetworkAdapterList
List of network adapters.
Corresponds to the JSON property networkAdapters
5590 5591 5592 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 5590 def network_adapters @network_adapters end |
#primary_ip_address ⇒ String
The primary IP address of the machine.
Corresponds to the JSON property primaryIpAddress
5595 5596 5597 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 5595 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
5601 5602 5603 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 5601 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
5606 5607 5608 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 5606 def public_ip_address @public_ip_address end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5613 5614 5615 5616 5617 5618 5619 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 5613 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 |