Class: Google::Apis::VmmigrationV1alpha1::NetworkInterface
- Inherits:
-
Object
- Object
- Google::Apis::VmmigrationV1alpha1::NetworkInterface
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/vmmigration_v1alpha1/classes.rb,
lib/google/apis/vmmigration_v1alpha1/representations.rb,
lib/google/apis/vmmigration_v1alpha1/representations.rb
Overview
NetworkInterface represents a NIC of a VM.
Instance Attribute Summary collapse
-
#external_ip ⇒ String
The external IP to define in the NIC.
-
#internal_ip ⇒ String
The internal IP to define in the NIC.
-
#network ⇒ String
The network to connect the NIC to.
-
#subnetwork ⇒ String
The subnetwork to connect the NIC to.
Instance Method Summary collapse
-
#initialize(**args) ⇒ NetworkInterface
constructor
A new instance of NetworkInterface.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ NetworkInterface
Returns a new instance of NetworkInterface.
1724 1725 1726 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 1724 def initialize(**args) update!(**args) end |
Instance Attribute Details
#external_ip ⇒ String
The external IP to define in the NIC.
Corresponds to the JSON property externalIp
1706 1707 1708 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 1706 def external_ip @external_ip end |
#internal_ip ⇒ String
The internal IP to define in the NIC. The formats accepted are: ephemeral \
ipv4 address \ a named address resource full path.
Corresponds to the JSON property internalIp
1712 1713 1714 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 1712 def internal_ip @internal_ip end |
#network ⇒ String
The network to connect the NIC to.
Corresponds to the JSON property network
1717 1718 1719 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 1717 def network @network end |
#subnetwork ⇒ String
The subnetwork to connect the NIC to.
Corresponds to the JSON property subnetwork
1722 1723 1724 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 1722 def subnetwork @subnetwork end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1729 1730 1731 1732 1733 1734 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 1729 def update!(**args) @external_ip = args[:external_ip] if args.key?(:external_ip) @internal_ip = args[:internal_ip] if args.key?(:internal_ip) @network = args[:network] if args.key?(:network) @subnetwork = args[:subnetwork] if args.key?(:subnetwork) end |