Class: Vcloud::Walker::Resource::GatewayIpsecVpnService

Inherits:
Entity
  • Object
show all
Defined in:
lib/vcloud/walker/resource/gateway_ipsec_vpn_service.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Entity

#to_summary

Constructor Details

#initialize(fog_vpn_service) ⇒ GatewayIpsecVpnService

Returns a new instance of GatewayIpsecVpnService.



7
8
9
10
11
12
13
# File 'lib/vcloud/walker/resource/gateway_ipsec_vpn_service.rb', line 7

def initialize fog_vpn_service
  @IsEnabled = fog_vpn_service[:IsEnabled]
  if fog_vpn_service[:Tunnel]
    fog_vpn_tunnels = [fog_vpn_service[:Tunnel]].flatten
    @Tunnels = populate_tunnel_info(fog_vpn_tunnels)
  end
end

Instance Attribute Details

#IsEnabledObject (readonly)

Returns the value of attribute IsEnabled.



5
6
7
# File 'lib/vcloud/walker/resource/gateway_ipsec_vpn_service.rb', line 5

def IsEnabled
  @IsEnabled
end

#TunnelsObject (readonly)

Returns the value of attribute Tunnels.



5
6
7
# File 'lib/vcloud/walker/resource/gateway_ipsec_vpn_service.rb', line 5

def Tunnels
  @Tunnels
end