1
<?xml version="1.0" encoding="UTF-8"?>
2
<?xml-stylesheet type="text/xsl" href="../xslt/schema.xslt"?>
4
<!-- (C) 2009 Rackspace Hosting, All Rights Reserved -->
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"
19
xmlns="http://www.w3.org/1999/xhtml">
20
<xsdxt:title>Flavors</xsdxt:title>
21
<xsdxt:link rel="index" href="api.xsd" />
25
xmlns="http://www.w3.org/1999/xhtml">
27
This schema file defines all entities related to <a
28
href="#type_Flavor" title="See definition of
34
<element name="flavor" type="csapi:Flavor">
38
xmlns="http://www.w3.org/1999/xhtml">
40
The element defines an available hardware configuration for
47
<xsdxt:code type="application/xml" href="../samples/flavor.xml" />
50
<xsdxt:code type="application/json" href="../samples/flavor.json" />
57
<element name="flavors" type="csapi:Flavors">
61
xmlns="http://www.w3.org/1999/xhtml">
63
A collection of flavors.
69
<xsdxt:code type="application/xml" href="../samples/flavors.xml" />
72
<xsdxt:code type="application/json" href="../samples/flavors.json" />
79
<!-- Complex Types -->
80
<complexType name="Flavor">
81
<attribute type="xsd:int" name="id" use="required">
85
xmlns="http://www.w3.org/1999/xhtml">
92
<attribute type="xsd:string" name="name" use="required">
96
xmlns="http://www.w3.org/1999/xhtml">
98
The name of the flavor.
103
<attribute type="xsd:int" name="ram" use="optional">
107
xmlns="http://www.w3.org/1999/xhtml">
109
The amount of RAM in the flavor in megabytes.
114
<attribute type="xsd:int" name="disk" use="optional">
118
xmlns="http://www.w3.org/1999/xhtml">
120
The amount of disk space in the flavor in gigabytes.
127
<complexType name="Flavors">
129
<element name="flavor" type="csapi:Flavor" minOccurs="0" maxOccurs="1000">
133
xmlns="http://www.w3.org/1999/xhtml">
135
A collection of flavors.