[occi-wg] First Draft of OCCI xml Scheme
Gary Mazz
garymazzaferro at gmail.com
Mon Mar 8 01:04:10 CST 2010
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>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OCCI-XML-01.xsd
Type: application/xml
Size: 2977 bytes
Desc: not available
Url : http://www.ogf.org/pipermail/occi-wg/attachments/20100308/835ff63f/attachment.rdf
More information about the occi-wg
mailing list