[occi-wg] First Draft of OCCI xml Scheme
Andy Edmonds
andy.edmonds at gmail.com
Wed Mar 10 09:27:31 CST 2010
Gary,
Linked is a OCCI schema that we are using in SLA at SOI currently.
HTH,
Andy
http://dl.dropbox.com/u/165239/sla%40soi-a4-occi.xsd
On Mar 8, 7:04 am, Gary Mazz <garymazzafe... at gmail.com> wrote:
> Hi,
>
> This is the first draft of the occi xml scheme. Its not the final
> version but, its about 100% of what occi defines. I'll be following up
> with the xml reference file.
>
> Notes:
> 1) This version of the scheme is based on assigning all occi resources
> xml elements and occi metadata to XML attributes. This creates a
> problem in XML scheme version 1.0. Defining the "id" attributes as
> unique and defining enumerated values for attributes is unsupported.
> 2)I'll move to the 1.1 version as soon as I figure out 1.1 constraints
> 3) Occi float values are currently defined as decimal, just to make
> parsing easier.
>
> cheers,
> gary
>
> <?xml version="1.0" encoding="utf-8"?>
> <xs:schema attributeFormDefault="unqualified"
> elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
> <xs:element name="collection">
> <xs:complexType>
> <xs:sequence>
> <xs:element maxOccurs="unbounded" name="compute">
> <xs:complexType>
> <xs:attribute name="id" type="xs:string" use="required" />
> <xs:attribute name="title" type="xs:string" use="optional" />
> <xs:attribute name="summary" type="xs:string" use="optional" />
> <xs:attribute name="cores" type="xs:positiveInteger"
> use="optional" />
> <xs:attribute name="architecture" type="xs:string"
> use="optional" />
> <xs:attribute name="hostname" type="xs:string" use="required" />
> </xs:complexType>
> </xs:element>
> <xs:element maxOccurs="unbounded" name="network">
> <xs:complexType>
> <xs:attribute name="id" type="xs:string" use="required" />
> <xs:attribute name="allocation" type="xs:string"
> use="optional" />
> <xs:attribute name="title" type="xs:string" use="optional" />
> <xs:attribute name="summary" type="xs:string" use="optional" />
> <xs:attribute name="address" type="xs:string" use="optional" />
> <xs:attribute name="gateway" type="xs:string" use="optional" />
> <xs:attribute name="vlan" type="xs:unsignedInteger"
> use="optional" />
> <xs:attribute name="label" type="xs:string" use="optional" />
> </xs:complexType>
> </xs:element>
> <xs:element maxOccurs="unbounded" name="memory">
> <xs:complexType>
> <xs:attribute name="id" type="xs:string" use="required" />
> <xs:attribute name="title" type="xs:string" use="optional" />
> <xs:attribute name="summary" type="xs:string" use="optional" />
> <xs:attribute name="size" type="xs:decimal" use="optional" />
> </xs:complexType>
> </xs:element>
> <xs:element maxOccurs="unbounded" name="storage">
> <xs:complexType>
> <xs:sequence minOccurs="0">
> <xs:element name="link" type="xs:anyurl" />
> </xs:sequence>
> <xs:attribute name="id" type="xs:string" use="required" />
> <xs:attribute name="title" type="xs:string" use="optional" />
> <xs:attribute name="summary" type="xs:string" use="optional" />
> <xs:attribute name="size" type="xs:decimal" use="optional" />
> <xs:attribute name="status" type="xs:string" use="optional" >
>
> </xs:complexType>
> </xs:element>
> </xs:sequence>
> <xs:attribute name="id" type="xs:string" use="required" />
> <xs:attribute name="title" type="xs:string" use="optional" />
> <xs:attribute name="summary" type="xs:string" use="optional" />
> </xs:complexType>
> </xs:element>
> </xs:schema>
>
> OCCI-XML-01.xsd
> 3KViewDownload
More information about the occi-wg
mailing list