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

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

Constant Summary

Constants included from StormOnDemand::RealShared

StormOnDemand::RealShared::API_URL, StormOnDemand::RealShared::API_VERSION

Instance Method Summary collapse

Methods included from StormOnDemand::RealShared

#initialize, #reload, #request

Instance Method Details

#create_vpn(options = {}) ⇒ Object



5
6
7
8
9
10
# File 'lib/fog/storm_on_demand/requests/vpn/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/storm_on_demand/requests/vpn/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/storm_on_demand/requests/vpn/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/storm_on_demand/requests/vpn/update_vpn.rb', line 5

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