Class: Google::Apis::ComputeAlpha::ExternalVpnGatewayInterface
- Inherits:
-
Object
- Object
- Google::Apis::ComputeAlpha::ExternalVpnGatewayInterface
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/compute_alpha/classes.rb,
lib/google/apis/compute_alpha/representations.rb,
lib/google/apis/compute_alpha/representations.rb
Overview
The interface for the external VPN gateway.
Instance Attribute Summary collapse
-
#id ⇒ Fixnum
The numeric ID of this interface.
-
#ip_address ⇒ String
IP address of the interface in the external VPN gateway.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ExternalVpnGatewayInterface
constructor
A new instance of ExternalVpnGatewayInterface.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ExternalVpnGatewayInterface
Returns a new instance of ExternalVpnGatewayInterface.
8642 8643 8644 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 8642 def initialize(**args) update!(**args) end |
Instance Attribute Details
#id ⇒ Fixnum
The numeric ID of this interface. The allowed input values for this id for
different redundancy types of external VPN gateway: -
SINGLE_IP_INTERNALLY_REDUNDANT - 0 - TWO_IPS_REDUNDANCY - 0, 1 -
FOUR_IPS_REDUNDANCY - 0, 1, 2, 3
Corresponds to the JSON property id
8632 8633 8634 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 8632 def id @id end |
#ip_address ⇒ String
IP address of the interface in the external VPN gateway. Only IPv4 is
supported. This IP address can be either from your on-premise gateway or
another Cloud provider's VPN gateway, it cannot be an IP address from Google
Compute Engine.
Corresponds to the JSON property ipAddress
8640 8641 8642 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 8640 def ip_address @ip_address end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
8647 8648 8649 8650 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 8647 def update!(**args) @id = args[:id] if args.key?(:id) @ip_address = args[:ip_address] if args.key?(:ip_address) end |