class Google::Apis::VmmigrationV1alpha1::NetworkInterface

NetworkInterface represents a NIC of a VM.

Attributes

external_ip[RW]

The external IP to define in the NIC. Corresponds to the JSON property ‘externalIp` @return [String]

internal_ip[RW]

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` @return [String]

network[RW]

The network to connect the NIC to. Corresponds to the JSON property ‘network` @return [String]

subnetwork[RW]

The subnetwork to connect the NIC to. Corresponds to the JSON property ‘subnetwork` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/vmmigration_v1alpha1/classes.rb, line 1548
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/vmmigration_v1alpha1/classes.rb, line 1553
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