Class: Google::Apis::ComputeV1::ExternalVpnGatewayInterface

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/compute_v1/classes.rb,
generated/google/apis/compute_v1/representations.rb,
generated/google/apis/compute_v1/representations.rb

Overview

The interface for the external VPN gateway.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ ExternalVpnGatewayInterface

Returns a new instance of ExternalVpnGatewayInterface.



5884
5885
5886
# File 'generated/google/apis/compute_v1/classes.rb', line 5884

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#idFixnum

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

Returns:

  • (Fixnum)


5874
5875
5876
# File 'generated/google/apis/compute_v1/classes.rb', line 5874

def id
  @id
end

#ip_addressString

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

Returns:

  • (String)


5882
5883
5884
# File 'generated/google/apis/compute_v1/classes.rb', line 5882

def ip_address
  @ip_address
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5889
5890
5891
5892
# File 'generated/google/apis/compute_v1/classes.rb', line 5889

def update!(**args)
  @id = args[:id] if args.key?(:id)
  @ip_address = args[:ip_address] if args.key?(:ip_address)
end