Class: Fog::VPN::StormOnDemand::Real

Inherits:
Object
  • Object
show all
Includes:
StormOnDemand::Shared
Defined in:
lib/fog/vpn/storm_on_demand.rb,
lib/fog/vpn/storm_on_demand/requests/get_vpn.rb,
lib/fog/vpn/storm_on_demand/requests/create_vpn.rb,
lib/fog/vpn/storm_on_demand/requests/update_vpn.rb,
lib/fog/vpn/storm_on_demand/requests/list_vpn_users.rb

Constant Summary

Constants included from StormOnDemand::Shared

StormOnDemand::Shared::API_URL, StormOnDemand::Shared::API_VERSION

Instance Method Summary collapse

Methods included from StormOnDemand::Shared

#initialize, #reload, #request

Instance Method Details

#create_vpn(options = {}) ⇒ Object



5
6
7
8
9
10
# File 'lib/fog/vpn/storm_on_demand/requests/create_vpn.rb', line 5

def create_vpn(options = {})
  request(
    :path => "/VPN/create",
    :body => Fog::JSON.encode(:params => options)
  )
end

#get_vpn(options = {}) ⇒ Object



5
6
7
8
9
10
# File 'lib/fog/vpn/storm_on_demand/requests/get_vpn.rb', line 5

def get_vpn(options = {})
  request(
    :path => "/VPN/details",
    :body => Fog::JSON.encode(:params => options)
  )
end

#list_vpn_users(options = {}) ⇒ Object



5
6
7
8
9
10
# File 'lib/fog/vpn/storm_on_demand/requests/list_vpn_users.rb', line 5

def list_vpn_users(options = {})
  request(
    :path => "/VPN/list",
    :body => Fog::JSON.encode(:params => options)
  )
end

#update_vpn(options = {}) ⇒ Object



5
6
7
8
9
10
# File 'lib/fog/vpn/storm_on_demand/requests/update_vpn.rb', line 5

def update_vpn(options = {})
  request(
    :path => "/VPN/update",
    :body => Fog::JSON.encode(:params => options)
  )
end