Class: Occi::Infrastructure::Compute

Inherits:
Core::Resource show all
Defined in:
lib/occi/infrastructure/compute.rb,
lib/occi/infrastructure_ext/monkey_island/compute.rb

Overview

See Also:

  • `Occi`Occi::Infrastructure`Occi::Infrastructure::Compute`

Constant Summary

Constants inherited from Core::Entity

Core::Entity::ERRORS

Constants included from Core::Helpers::Renderable

Core::Helpers::Renderable::RENDERER_FACTORY_CLASS

Instance Attribute Summary

Attributes inherited from Core::Resource

#links, #summary

Attributes inherited from Core::Entity

#actions, #attributes, #id, #kind, #location, #mixins, #title

Instance Method Summary collapse

Methods inherited from Core::Resource

#<<, #add_link, #links_by_kind, #links_by_kind_identifier, #links_by_klass, #remove, #remove_link, #valid!

Methods inherited from Core::Entity

#<<, #add_action, #add_mixin, #added_attributes, #availability_zone, #availability_zones, #base_attributes, #disable_action, #enable_action, #identify!, #initialize, #kind_identifier, #region, #regions, #remove, #remove_action, #remove_mixin, #replace_mixin, #valid!, #valid?

Methods included from Core::Helpers::MixinSelector

#dependent_term, #dependent_term!, #dependent_terms, #select_mixin, #select_mixin!, #select_mixins

Methods included from Core::Helpers::InstanceAttributeResetter

#attribute_names, #remove_undef_attributes, #reset_added_attributes, #reset_added_attributes!, #reset_attribute, #reset_attributes, #reset_attributes!, #reset_base_attributes, #reset_base_attributes!

Methods included from Core::Helpers::InstanceAttributesAccessor

#[], #[]=, #attribute?

Methods included from Core::Helpers::Locatable

#location

Methods included from Core::Helpers::Renderable

extended, included, #render, #renderer_factory, renderer_factory, renderer_factory_class, #renderer_for

Constructor Details

This class inherits a constructor from Occi::Core::Entity

Instance Method Details

#networkinterfacesEnumerable


14
15
16
# File 'lib/occi/infrastructure/compute.rb', line 14

def networkinterfaces
  links_by_kind_identifier Occi::Infrastructure::Constants::NETWORKINTERFACE_KIND
end

#os_tplOcci::Core::Mixin, NilClass


19
20
21
# File 'lib/occi/infrastructure/compute.rb', line 19

def os_tpl
  select_mixin Occi::Infrastructure::Mixins::OsTpl.new
end

#resource_tplOcci::Core::Mixin, NilClass


24
25
26
# File 'lib/occi/infrastructure/compute.rb', line 24

def resource_tpl
  select_mixin Occi::Infrastructure::Mixins::ResourceTpl.new
end

6
7
8
# File 'lib/occi/infrastructure_ext/monkey_island/compute.rb', line 6

def securitygrouplinks
  links_by_kind_identifier Occi::InfrastructureExt::Constants::SECURITY_GROUP_LINK_KIND
end

9
10
11
# File 'lib/occi/infrastructure/compute.rb', line 9

def storagelinks
  links_by_kind_identifier Occi::Infrastructure::Constants::STORAGELINK_KIND
end