Class: Google::Apis::NetworkconnectivityV1::RouterApplianceInstance
- Inherits:
-
Object
- Object
- Google::Apis::NetworkconnectivityV1::RouterApplianceInstance
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/networkconnectivity_v1/classes.rb,
lib/google/apis/networkconnectivity_v1/representations.rb,
lib/google/apis/networkconnectivity_v1/representations.rb
Overview
A router appliance instance is a Compute Engine virtual machine (VM) instance that acts as a BGP speaker. A router appliance instance is specified by the URI of the VM and the internal IP address of one of the VM's network interfaces.
Instance Attribute Summary collapse
-
#ip_address ⇒ String
The IP address on the VM to use for peering.
-
#virtual_machine ⇒ String
The URI of the VM.
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.
2824 2825 2826 |
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 2824 def initialize(**args) update!(**args) end |
Instance Attribute Details
#ip_address ⇒ String
The IP address on the VM to use for peering.
Corresponds to the JSON property ipAddress
2817 2818 2819 |
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 2817 def ip_address @ip_address end |
#virtual_machine ⇒ String
The URI of the VM.
Corresponds to the JSON property virtualMachine
2822 2823 2824 |
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 2822 def virtual_machine @virtual_machine end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2829 2830 2831 2832 |
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 2829 def update!(**args) @ip_address = args[:ip_address] if args.key?(:ip_address) @virtual_machine = args[:virtual_machine] if args.key?(:virtual_machine) end |