2011-08-02 15:18:00 -04:00
|
|
|
module Fog
|
|
|
|
module Compute
|
|
|
|
class Cloudstack
|
2014-05-27 15:26:52 -04:00
|
|
|
|
2011-08-02 15:18:00 -04:00
|
|
|
class Real
|
2014-05-27 15:26:52 -04:00
|
|
|
# Enables an account
|
2011-08-02 15:18:00 -04:00
|
|
|
#
|
2014-08-27 05:20:54 -04:00
|
|
|
# {CloudStack API Reference}[http://cloudstack.apache.org/docs/api/apidocs-4.4/root_admin/enableAccount.html]
|
|
|
|
def enable_account(*args)
|
|
|
|
options = {}
|
|
|
|
if args[0].is_a? Hash
|
|
|
|
options = args[0]
|
|
|
|
options.merge!('command' => 'enableAccount')
|
|
|
|
else
|
|
|
|
options.merge!('command' => 'enableAccount')
|
|
|
|
end
|
2011-08-02 15:18:00 -04:00
|
|
|
request(options)
|
|
|
|
end
|
|
|
|
end
|
2014-05-27 15:26:52 -04:00
|
|
|
|
2011-08-02 15:18:00 -04:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
2014-05-27 15:26:52 -04:00
|
|
|
|