~mike-mayo/openstack-android/trunk

« back to all changes in this revision

Viewing changes to main/conf/image.xsd

  • Committer: Mike Mayo
  • Date: 2010-07-20 23:45:31 UTC
  • Revision ID: mike.mayo@rackspace.com-20100720234531-27gu2kqx5gjekbmi
android app

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" encoding="UTF-8"?>
 
2
<schema
 
3
    elementFormDefault="qualified"
 
4
    attributeFormDefault="unqualified"
 
5
    xmlns="http://www.w3.org/2001/XMLSchema"
 
6
    xmlns:csapi="http://docs.rackspacecloud.com/servers/api/v1.0"
 
7
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
 
8
    targetNamespace="http://docs.rackspacecloud.com/servers/api/v1.0"
 
9
>
 
10
  <include schemaLocation="common.xsd" />
 
11
  <element name="image" type="csapi:Image" />
 
12
 
 
13
  <!-- Complex Types -->
 
14
  <complexType name="Image">
 
15
    <attribute type="xsd:int"         name="id"        use="optional" />
 
16
    <attribute type="xsd:string"      name="name"      use="required" />
 
17
    <attribute type="xsd:int"         name="serverId"  use="optional" />
 
18
    <attribute type="xsd:dateTime"    name="updated" use="optional" />
 
19
    <attribute type="xsd:dateTime"    name="created" use="optional" />
 
20
    <attribute type="csapi:Progress"  name="progress"  use="optional" />
 
21
    <attribute type="csapi:ImageStatus" name="status"    use="optional" />
 
22
  </complexType>
 
23
 
 
24
  <!-- Simple Types -->
 
25
  <simpleType name="ImageStatus">
 
26
    <restriction base="xsd:string">
 
27
      <enumeration value="UNKNOWN" />
 
28
      <enumeration value="ACTIVE" />
 
29
      <enumeration value="SAVING" />
 
30
      <enumeration value="PREPARING" />
 
31
      <enumeration value="QUEUED" />
 
32
      <enumeration value="FAILED" />
 
33
    </restriction>
 
34
  </simpleType>
 
35
 
 
36
</schema>
 
37