deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lut...@redhat.com
Subject embedded CIMI collections (rev 2)
Date Wed, 10 Oct 2012 21:41:50 GMT

This series of patches adds support for embedded collections for CIMI
models. Compared to the first revision, the XML should now be correct with
regards to the CIMI 1.0 spec.

The main reason I like this better than the way Michal did it is because it
makes it unnecessary to have XXXCollection classes for
collections. Instead, you can just write

  collection :things, :class => CIMI::Model::Thing

For example, for the disks collection in machine, we simply have

  class CIMI::Model::Machine < CIMI::Model::Base
    ...
    collection :disks, :class => CIMI::Model::Disk
    ...
  end

The interesting stuff are the last three patches in the series. The other
ones can probably be acked and committed as they are.

David

P.S.: Michal, I know you are waiting for these - if you are ok with these
patches, feel free to push them.

Mime
View raw message