Class: Google::Apis::ComputeV1::ExternalVpnGatewayInterface
- Inherits:
-
Object
- Object
- Google::Apis::ComputeV1::ExternalVpnGatewayInterface
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/compute_v1/classes.rb,
lib/google/apis/compute_v1/representations.rb,
lib/google/apis/compute_v1/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.
-
#ipv6_address ⇒ String
IPv6 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.
8473 8474 8475 |
# File 'lib/google/apis/compute_v1/classes.rb', line 8473 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
8453 8454 8455 |
# File 'lib/google/apis/compute_v1/classes.rb', line 8453 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
8461 8462 8463 |
# File 'lib/google/apis/compute_v1/classes.rb', line 8461 def ip_address @ip_address end |
#ipv6_address ⇒ String
IPv6 address of the interface in the external VPN gateway. This IPv6 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. Must specify
an IPv6 address (not IPV4-mapped) using any format described in RFC 4291 (e.g.
2001:db8:0:0:2d9:51:0:0). The output format is RFC 5952 format (e.g. 2001:db8::
2d9:51:0:0).
Corresponds to the JSON property ipv6Address
8471 8472 8473 |
# File 'lib/google/apis/compute_v1/classes.rb', line 8471 def ipv6_address @ipv6_address end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
8478 8479 8480 8481 8482 |
# File 'lib/google/apis/compute_v1/classes.rb', line 8478 def update!(**args) @id = args[:id] if args.key?(:id) @ip_address = args[:ip_address] if args.key?(:ip_address) @ipv6_address = args[:ipv6_address] if args.key?(:ipv6_address) end |