Class: Google::Apis::VmmigrationV1alpha1::NetworkInterface

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ NetworkInterface

Returns a new instance of NetworkInterface.



3983
3984
3985
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 3983

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#external_ipString

Optional. The external IP to define in the NIC. Corresponds to the JSON property externalIp

Returns:

  • (String)


3958
3959
3960
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 3958

def external_ip
  @external_ip
end

#internal_ipString

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

Returns:

  • (String)


3964
3965
3966
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 3964

def internal_ip
  @internal_ip
end

#networkString

Optional. The network to connect the NIC to. Corresponds to the JSON property network

Returns:

  • (String)


3969
3970
3971
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 3969

def network
  @network
end

#network_tierString

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

Returns:

  • (String)


3976
3977
3978
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 3976

def network_tier
  @network_tier
end

#subnetworkString

Optional. The subnetwork to connect the NIC to. Corresponds to the JSON property subnetwork

Returns:

  • (String)


3981
3982
3983
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 3981

def subnetwork
  @subnetwork
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3988
3989
3990
3991
3992
3993
3994
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 3988

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