Class: Google::Apis::NetworkconnectivityV1alpha1::RouterApplianceInstance
- Inherits:
-
Object
- Object
- Google::Apis::NetworkconnectivityV1alpha1::RouterApplianceInstance
- 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
-
#ip_address ⇒ String
The IP address of the network interface to use for peering.
-
#network_interface ⇒ String
Corresponds to the JSON property
networkInterface
. -
#virtual_machine ⇒ String
The URI of the virtual machine resource Corresponds to the JSON property
virtualMachine
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ RouterApplianceInstance
constructor
A new instance of RouterApplianceInstance.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_address ⇒ String
The IP address of the network interface to use for peering.
Corresponds to the JSON property ipAddress
738 739 740 |
# File 'lib/google/apis/networkconnectivity_v1alpha1/classes.rb', line 738 def ip_address @ip_address end |
#network_interface ⇒ String
Corresponds to the JSON property networkInterface
743 744 745 |
# File 'lib/google/apis/networkconnectivity_v1alpha1/classes.rb', line 743 def network_interface @network_interface end |
#virtual_machine ⇒ String
The URI of the virtual machine resource
Corresponds to the JSON property virtualMachine
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 |