Class: Google::Apis::MigrationcenterV1alpha1::VirtualMachineNetworkDetails
- Inherits:
-
Object
- Object
- Google::Apis::MigrationcenterV1alpha1::VirtualMachineNetworkDetails
- 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_gw ⇒ String
Default gateway address.
-
#network_adapters ⇒ Google::Apis::MigrationcenterV1alpha1::NetworkAdapterList
List of network adapters.
-
#primary_ip_address ⇒ String
IP address of the machine.
-
#primary_mac_address ⇒ String
MAC address of the machine.
-
#public_ip_address ⇒ String
Public IP address of the machine.
Instance Method Summary collapse
-
#initialize(**args) ⇒ VirtualMachineNetworkDetails
constructor
A new instance of VirtualMachineNetworkDetails.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ VirtualMachineNetworkDetails
Returns a new instance of VirtualMachineNetworkDetails.
7660 7661 7662 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 7660 def initialize(**args) update!(**args) end |
Instance Attribute Details
#default_gw ⇒ String
Default gateway address.
Corresponds to the JSON property defaultGw
7637 7638 7639 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 7637 def default_gw @default_gw end |
#network_adapters ⇒ Google::Apis::MigrationcenterV1alpha1::NetworkAdapterList
List of network adapters.
Corresponds to the JSON property networkAdapters
7642 7643 7644 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 7642 def network_adapters @network_adapters end |
#primary_ip_address ⇒ String
IP address of the machine.
Corresponds to the JSON property primaryIpAddress
7647 7648 7649 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 7647 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
7653 7654 7655 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 7653 def primary_mac_address @primary_mac_address end |
#public_ip_address ⇒ String
Public IP address of the machine.
Corresponds to the JSON property publicIpAddress
7658 7659 7660 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 7658 def public_ip_address @public_ip_address end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
7665 7666 7667 7668 7669 7670 7671 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 7665 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 |