~todd-deshane/openstack-manuals/working

« back to all changes in this revision

Viewing changes to doc/source/docbkx/openstack-compute-api-1.0/xsd/flavor.xsd

  • Committer: Anne Gentle
  • Date: 2011-04-14 18:12:25 UTC
  • Revision ID: anne@openstack.org-20110414181225-owwk0h4saf7w9hhw
Added output files

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" encoding="UTF-8"?>
 
2
<?xml-stylesheet type="text/xsl" href="../xslt/schema.xslt"?>
 
3
 
 
4
<!-- (C) 2009 Rackspace Hosting, All Rights Reserved -->
 
5
 
 
6
 
 
7
<schema
 
8
    elementFormDefault="qualified"
 
9
    attributeFormDefault="unqualified"
 
10
    xmlns="http://www.w3.org/2001/XMLSchema"
 
11
    xmlns:csapi="http://docs.rackspacecloud.com/servers/api/v1.0"
 
12
    xmlns:xsdxt="http://docs.rackspacecloud.com/xsd-ext/v1.0"
 
13
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
 
14
    targetNamespace="http://docs.rackspacecloud.com/servers/api/v1.0"
 
15
>
 
16
  <annotation>
 
17
    <xsd:appinfo
 
18
        xml:lang="EN"
 
19
        xmlns="http://www.w3.org/1999/xhtml">
 
20
      <xsdxt:title>Flavors</xsdxt:title>
 
21
      <xsdxt:link rel="index" href="api.xsd" />
 
22
    </xsd:appinfo>
 
23
    <xsd:documentation
 
24
        xml:lang="EN"
 
25
        xmlns="http://www.w3.org/1999/xhtml">
 
26
      <p>
 
27
        This schema file defines all entities related to <a
 
28
        href="#type_Flavor" title="See definition of
 
29
        Flavor">Flavors</a>.
 
30
      </p>
 
31
    </xsd:documentation>
 
32
  </annotation>
 
33
 
 
34
  <element name="flavor" type="csapi:Flavor">
 
35
    <annotation>
 
36
      <xsd:documentation
 
37
          xml:lang="EN"
 
38
          xmlns="http://www.w3.org/1999/xhtml">
 
39
        <p>
 
40
          The element defines an available hardware configuration for
 
41
          a server.
 
42
        </p>
 
43
      </xsd:documentation>
 
44
      <xsd:appinfo>
 
45
        <xsdxt:samples>
 
46
          <xsdxt:sample>
 
47
            <xsdxt:code type="application/xml" href="../samples/flavor.xml" />
 
48
          </xsdxt:sample>
 
49
          <xsdxt:sample>
 
50
            <xsdxt:code type="application/json" href="../samples/flavor.json" />
 
51
          </xsdxt:sample>
 
52
        </xsdxt:samples>
 
53
      </xsd:appinfo>
 
54
    </annotation>
 
55
  </element>
 
56
 
 
57
  <element name="flavors" type="csapi:Flavors">
 
58
    <annotation>
 
59
      <xsd:documentation
 
60
          xml:lang="EN"
 
61
          xmlns="http://www.w3.org/1999/xhtml">
 
62
        <p>
 
63
          A collection of flavors.
 
64
        </p>
 
65
      </xsd:documentation>
 
66
      <xsd:appinfo>
 
67
        <xsdxt:samples>
 
68
          <xsdxt:sample>
 
69
            <xsdxt:code type="application/xml" href="../samples/flavors.xml" />
 
70
          </xsdxt:sample>
 
71
          <xsdxt:sample>
 
72
            <xsdxt:code type="application/json" href="../samples/flavors.json" />
 
73
          </xsdxt:sample>
 
74
        </xsdxt:samples>
 
75
      </xsd:appinfo>
 
76
    </annotation>
 
77
  </element>
 
78
 
 
79
  <!-- Complex Types -->
 
80
  <complexType name="Flavor">
 
81
    <attribute type="xsd:int"    name="id"   use="required">
 
82
      <annotation>
 
83
        <xsd:documentation
 
84
            xml:lang="EN"
 
85
            xmlns="http://www.w3.org/1999/xhtml">
 
86
          <p>
 
87
            The ID of the flavor.
 
88
          </p>
 
89
        </xsd:documentation>
 
90
      </annotation>
 
91
    </attribute>
 
92
    <attribute type="xsd:string" name="name" use="required">
 
93
      <annotation>
 
94
        <xsd:documentation
 
95
            xml:lang="EN"
 
96
            xmlns="http://www.w3.org/1999/xhtml">
 
97
          <p>
 
98
            The name of the flavor.
 
99
          </p>
 
100
        </xsd:documentation>
 
101
      </annotation>
 
102
    </attribute>
 
103
    <attribute type="xsd:int"    name="ram"  use="optional">
 
104
      <annotation>
 
105
        <xsd:documentation
 
106
            xml:lang="EN"
 
107
            xmlns="http://www.w3.org/1999/xhtml">
 
108
          <p>
 
109
            The amount of RAM in the flavor in megabytes.
 
110
          </p>
 
111
        </xsd:documentation>
 
112
      </annotation>
 
113
    </attribute>
 
114
    <attribute type="xsd:int"    name="disk" use="optional">
 
115
      <annotation>
 
116
        <xsd:documentation
 
117
            xml:lang="EN"
 
118
            xmlns="http://www.w3.org/1999/xhtml">
 
119
          <p>
 
120
            The amount of disk space in the flavor in gigabytes.
 
121
          </p>
 
122
        </xsd:documentation>
 
123
      </annotation>
 
124
    </attribute>
 
125
  </complexType>
 
126
 
 
127
  <complexType name="Flavors">
 
128
    <sequence>
 
129
      <element name="flavor" type="csapi:Flavor" minOccurs="0" maxOccurs="1000">
 
130
        <annotation>
 
131
          <xsd:documentation
 
132
              xml:lang="EN"
 
133
              xmlns="http://www.w3.org/1999/xhtml">
 
134
            <p>
 
135
              A collection of flavors.
 
136
            </p>
 
137
          </xsd:documentation>
 
138
        </annotation>
 
139
      </element>
 
140
    </sequence>
 
141
  </complexType>
 
142
 
 
143
</schema>
 
144