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
Optional.
-
#internal_ip ⇒ String
Optional.
-
#network ⇒ String
The network to connect the NIC to.
-
#network_tier ⇒ String
Optional.
-
#subnetwork ⇒ String
Optional.
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.
3477 3478 3479 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 3477 def initialize(**args) update!(**args) end |
Instance Attribute Details
#external_ip ⇒ String
Optional. The external IP to define in the NIC.
Corresponds to the JSON property externalIp
3452 3453 3454 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 3452 def external_ip @external_ip end |
#internal_ip ⇒ String
Optional. 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
3458 3459 3460 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 3458 def internal_ip @internal_ip end |
#network ⇒ String
The network to connect the NIC to.
Corresponds to the JSON property network
3463 3464 3465 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 3463 def network @network end |
#network_tier ⇒ String
Optional. The networking tier used for optimizing connectivity between
instances and systems on the internet. Applies only for external ephemeral IP
addresses. If left empty, will default to PREMIUM.
Corresponds to the JSON property networkTier
3470 3471 3472 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 3470 def network_tier @network_tier end |
#subnetwork ⇒ String
Optional. The subnetwork to connect the NIC to.
Corresponds to the JSON property subnetwork
3475 3476 3477 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 3475 def subnetwork @subnetwork end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3482 3483 3484 3485 3486 3487 3488 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 3482 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) @network_tier = args[:network_tier] if args.key?(:network_tier) @subnetwork = args[:subnetwork] if args.key?(:subnetwork) end |