2011-04-27 21:49:56 -04:00
|
|
|
require 'fog/core/model'
|
|
|
|
|
|
|
|
module Fog
|
2011-06-16 19:28:54 -04:00
|
|
|
module Compute
|
|
|
|
class StormOnDemand
|
2011-04-27 21:49:56 -04:00
|
|
|
|
|
|
|
class Template < Fog::Model
|
|
|
|
identity :id
|
|
|
|
attribute :name
|
2013-05-21 09:11:06 -04:00
|
|
|
attribute :deprecated
|
2011-04-27 21:49:56 -04:00
|
|
|
attribute :description
|
|
|
|
attribute :manage_level
|
|
|
|
attribute :os
|
2013-05-21 09:11:06 -04:00
|
|
|
attribute :zone_availability
|
2011-04-27 21:49:56 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
def initialize(attributes={})
|
|
|
|
super
|
|
|
|
end
|
|
|
|
|
2013-05-21 09:11:06 -04:00
|
|
|
def restore(options)
|
|
|
|
requires :identity
|
|
|
|
service.restore_template({:id => identity}.merge!(options))
|
|
|
|
end
|
|
|
|
|
2011-04-27 21:49:56 -04:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|