Class: Fog::Compute::StormOnDemand::Image
- Defined in:
- lib/fog/storm_on_demand/models/compute/image.rb
Instance Attribute Summary
Attributes inherited from Model
Instance Method Summary collapse
Methods inherited from Model
#initialize, #inspect, #reload, #symbolize_keys, #to_json, #wait_for
Methods included from Attributes::ClassMethods
#_load, #aliases, #attribute, #attributes, #identity, #ignore_attributes, #ignored_attributes
Methods included from Fog::Core::DeprecatedConnectionAccessors
#connection, #connection=, #prepare_service_value
Methods included from Attributes::InstanceMethods
#_dump, #attributes, #dup, #identity, #identity=, #merge_attributes, #new_record?, #persisted?, #requires, #requires_one
Constructor Details
This class inherits a constructor from Fog::Model
Instance Method Details
#destroy ⇒ Object
20 21 22 23 24 |
# File 'lib/fog/storm_on_demand/models/compute/image.rb', line 20 def destroy requires :identity service.delete_image(:id => identity) true end |
#restore(options = {}) ⇒ Object
31 32 33 34 35 |
# File 'lib/fog/storm_on_demand/models/compute/image.rb', line 31 def restore(={}) requires :identity service.restore_image({:id => identity}.merge!()) true end |
#update(options = {}) ⇒ Object
26 27 28 29 |
# File 'lib/fog/storm_on_demand/models/compute/image.rb', line 26 def update(={}) requires :identity service.update_image({:id => identity}.merge!()).body end |