Class: Google::Apis::NetworkconnectivityV1alpha1::RouterApplianceInstance

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/networkconnectivity_v1alpha1/classes.rb,
lib/google/apis/networkconnectivity_v1alpha1/representations.rb,
lib/google/apis/networkconnectivity_v1alpha1/representations.rb
more...

Overview

RouterAppliance represents a Router appliance which is specified by a VM URI and a NIC address.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ RouterApplianceInstance

Returns a new instance of RouterApplianceInstance.

[View source]

977
978
979
# File 'lib/google/apis/networkconnectivity_v1alpha1/classes.rb', line 977

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

Instance Attribute Details

#ip_addressString

The IP address of the network interface to use for peering. Corresponds to the JSON property ipAddress

Returns:

  • (String)

965
966
967
# File 'lib/google/apis/networkconnectivity_v1alpha1/classes.rb', line 965

def ip_address
  @ip_address
end

#network_interfaceString

Corresponds to the JSON property networkInterface

Returns:

  • (String)

970
971
972
# File 'lib/google/apis/networkconnectivity_v1alpha1/classes.rb', line 970

def network_interface
  @network_interface
end

#virtual_machineString

The URI of the virtual machine resource Corresponds to the JSON property virtualMachine

Returns:

  • (String)

975
976
977
# File 'lib/google/apis/networkconnectivity_v1alpha1/classes.rb', line 975

def virtual_machine
  @virtual_machine
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object

[View source]

982
983
984
985
986
# File 'lib/google/apis/networkconnectivity_v1alpha1/classes.rb', line 982

def update!(**args)
  @ip_address = args[:ip_address] if args.key?(:ip_address)
  @network_interface = args[:network_interface] if args.key?(:network_interface)
  @virtual_machine = args[:virtual_machine] if args.key?(:virtual_machine)
end