API for oZones Server
|Assignee:||Hector Sanjuan||% Done:|
|Target version:||Release 3.2 - S0|
Similar to OCA for OpenNebula
feature #789: Moved OCAInteration to VDC class. Update method still needs to be moved
feature #789: Solves minor bugs in host update for VDC. Deals with empty host lists
Feature #789: Small improvements to OZonesClient and cli helpers
The client's default template attribute to put_resource() and post_resource() is now a JSON string.
post/put_resource_str() converts a ONE template into json (method to_body) and then calls put/post_resource()
post_resource_file() reads the ONE template from file, then calls post_resource_str()
cli helpers have been accordingly updated. FORCE attribute handling has been remove from delhost action.
feature #789: Moved Configuration.rb to OCA. Added support to print configuration files in JSON. Updated OZones client to use Configuration.rb parser
Feature #789: First version of ozones api
Slightly tested. Uncommented. To be extended with some utils (like printing helpers).
Feature #789: Update install file
Include OZones API files among the client files to be installed with ozones or opennebula client files
Feature #789: Move ozones api files one level up
zona.rb can be found directly in ozones lib/ dir. Install script updated accordingly.
Feature #789: Symbolize the keys from resource data hashes.
This means accessing properties of a resource should primarily be done with a symbol name: vdc[:HOSTS] instead of vdc["HOSTS"]. All client code updated accordingly.
In practice, and to easy the task of developers it will still work if Strings are used (.to_sym performed by default).