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

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.



928
929
930
# File 'lib/google/apis/networkconnectivity_v1alpha1/classes.rb', line 928

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)


916
917
918
# File 'lib/google/apis/networkconnectivity_v1alpha1/classes.rb', line 916

def ip_address
  @ip_address
end

#network_interfaceString

Corresponds to the JSON property networkInterface

Returns:

  • (String)


921
922
923
# File 'lib/google/apis/networkconnectivity_v1alpha1/classes.rb', line 921

def network_interface
  @network_interface
end

#virtual_machineString

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

Returns:

  • (String)


926
927
928
# File 'lib/google/apis/networkconnectivity_v1alpha1/classes.rb', line 926

def virtual_machine
  @virtual_machine
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



933
934
935
936
937
# File 'lib/google/apis/networkconnectivity_v1alpha1/classes.rb', line 933

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