Class: Fog::Compute::StormOnDemand::Image

Inherits:
Model
  • Object
show all
Defined in:
lib/fog/storm_on_demand/models/compute/image.rb

Instance Method Summary collapse

Instance Method Details

#destroyObject



18
19
20
21
22
# File 'lib/fog/storm_on_demand/models/compute/image.rb', line 18

def destroy
  requires :identity
  service.delete_image(:id => identity)
  true
end

#restore(options = {}) ⇒ Object



29
30
31
32
33
# File 'lib/fog/storm_on_demand/models/compute/image.rb', line 29

def restore(options={})
  requires :identity
  service.restore_image({:id => identity}.merge!(options))
  true
end

#update(options = {}) ⇒ Object



24
25
26
27
# File 'lib/fog/storm_on_demand/models/compute/image.rb', line 24

def update(options={})
  requires :identity
  service.update_image({:id => identity}.merge!(options)).body
end