Class: Occi::Infrastructure::Compute::Restart
- Inherits:
-
Core::Action
- Object
- Core::Category
- Core::Action
- Occi::Infrastructure::Compute::Restart
- Defined in:
- lib/occi/infrastructure/compute.rb
Instance Attribute Summary
Attributes inherited from Core::Category
#attributes, #model, #scheme, #term, #title
Instance Method Summary collapse
-
#initialize(scheme = 'http://schemas.ogf.org/occi/infrastructure/compute/action#', term = 'restart', title = 'restart compute instance') ⇒ Restart
constructor
A new instance of Restart.
Methods inherited from Core::Action
Methods inherited from Core::Category
#as_json, categories, get_class, #inspect, #location, #related_to?, #to_header, #to_s, #to_string, #to_string_short, #to_text, #type_identifier
Constructor Details
#initialize(scheme = 'http://schemas.ogf.org/occi/infrastructure/compute/action#', term = 'restart', title = 'restart compute instance') ⇒ Restart
Returns a new instance of Restart.
26 27 28 29 30 31 32 33 34 |
# File 'lib/occi/infrastructure/compute.rb', line 26 def initialize(scheme='http://schemas.ogf.org/occi/infrastructure/compute/action#', term='restart', title='restart compute instance') super @attributes.method = Occi::Core::AttributeProperties.new( { :mutable => true, :pattern => 'graceful|warm|cold', :default => 'cold' }) end |