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.



750
751
752
# File 'lib/google/apis/networkconnectivity_v1alpha1/classes.rb', line 750

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)


738
739
740
# File 'lib/google/apis/networkconnectivity_v1alpha1/classes.rb', line 738

def ip_address
  @ip_address
end

#network_interfaceString

Corresponds to the JSON property networkInterface

Returns:

  • (String)


743
744
745
# File 'lib/google/apis/networkconnectivity_v1alpha1/classes.rb', line 743

def network_interface
  @network_interface
end

#virtual_machineString

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

Returns:

  • (String)


748
749
750
# File 'lib/google/apis/networkconnectivity_v1alpha1/classes.rb', line 748

def virtual_machine
  @virtual_machine
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



755
756
757
758
759
# File 'lib/google/apis/networkconnectivity_v1alpha1/classes.rb', line 755

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