1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/lib/fog/storm_on_demand/models/vpn/vpn.rb

30 lines
599 B
Ruby

require 'fog/core/model'
module Fog
module VPN
class StormOnDemand
class Vpn < Fog::Model
identity :uniq_id
attribute :active
attribute :activeStatus
attribute :current_users
attribute :domain
attribute :max_users
attribute :network_range
attribute :region_id
attribute :vpn
def initialize(attributes={})
super
end
def update(options={})
requires :identity
service.update_vpn({:uniq_id => identity}.merge!(options))
end
end
end
end
end