Class: Occi::Infrastructure::Compute::Stop

Inherits:
Core::Action show all
Defined in:
lib/occi/infrastructure/compute.rb

Instance Attribute Summary

Attributes inherited from Core::Category

#attributes, #model, #scheme, #term, #title

Instance Method Summary collapse

Methods inherited from Core::Action

#to_header, #to_text

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 = 'stop', title = 'stop compute instance') ⇒ Stop

Returns a new instance of Stop.



14
15
16
17
18
19
20
21
22
# File 'lib/occi/infrastructure/compute.rb', line 14

def initialize(scheme='http://schemas.ogf.org/occi/infrastructure/compute/action#',
    term='stop',
    title='stop compute instance')
  super
  @attributes.method = Occi::Core::AttributeProperties.new(
      { :mutable => true,
        :pattern => 'graceful|acpioff|poweroff',
        :default => 'poweroff' })
end