Move dev guide to OpenStack

This commit is contained in:
Ziad Sawalha 2011-07-14 23:32:28 -05:00
parent 6f1b98c3c7
commit 3ff4650778
80 changed files with 3 additions and 5632 deletions

View File

@ -168,14 +168,14 @@ information is therefore called a `Developer Guide`. Developer in this case is n
working on the Keystone source code itself.
The [dev guide](https://github.com/rackspace/keystone/raw/master/keystone/content/identitydevguide.pdf) is automatically
generated from XML and other artifacts in the `doc/guide` folder.
generated from XML and other artifacts that live in the [OpenStack Manuals project](https://launchpad.net/openstack-manuals).
To build the Developer Guide from source, you need [Maven](http://maven.apache.org/). To build the docs and publish a new PDF:
$ cd doc/guide
$ cd to folder with the pom.xml file
$ mvn clean generate-sources && cp target/docbkx/pdf/identitydevguide.pdf ../../keystone/content/identitydevguide.pdf
The output will go into the `doc/guide/target` folder (the source is in `doc/guide/src`). Output generated is PDF and webhelp.
The output will go into the `target` folder (the source is in `src`). Output generated is PDF and webhelp.
### Editing and Compiling the Admin Guide

View File

@ -1,99 +0,0 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.openstack.identity</groupId>
<artifactId>docs</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>jar</packaging>
<name>docs</name>
<url>http://maven.apache.org</url>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.sun.xml.bind</groupId>
<artifactId>jaxb-impl</artifactId>
<version>2.1.12</version>
</dependency>
<dependency>
<groupId>com.thoughtworks.xstream</groupId>
<artifactId>xstream</artifactId>
<version>1.3.1</version>
</dependency>
<dependency>
<groupId>org.codehaus.jettison</groupId>
<artifactId>jettison</artifactId>
<version>1.1</version>
</dependency>
</dependencies>
<build>
<resources>
<resource>
<directory>target/docbkx/pdf</directory>
<excludes>
<exclude>**/*.fo</exclude>
</excludes>
</resource>
</resources>
<plugins>
<plugin>
<groupId>com.rackspace.cloud.api</groupId>
<artifactId>clouddocs-maven-plugin</artifactId>
<version>1.0.4-SNAPSHOT</version>
<executions>
<execution>
<goals>
<goal>generate-pdf</goal>
<goal>generate-webhelp</goal>
</goals>
<phase>generate-sources</phase>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>org.docbook</groupId>
<artifactId>docbook-xml</artifactId>
<version>4.4</version>
<scope>runtime</scope>
</dependency>
</dependencies>
<configuration>
<xincludeSupported>true</xincludeSupported>
</configuration>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>Rackspace Research Repositories</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<repositories>
<repository>
<id>rackspace-research</id>
<name>Rackspace Research Repository</name>
<url>http://maven.research.rackspacecloud.com/content/groups/public/</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>rackspace-research</id>
<name>Rackspace Research Repository</name>
<url>http://maven.research.rackspacecloud.com/content/groups/public/</url>
</pluginRepository>
</pluginRepositories>
</profile>
</profiles>
</project>

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -1,60 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://web.resource.org/cc/"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="19.21315"
height="18.294994"
id="svg2"
sodipodi:version="0.32"
inkscape:version="0.45"
sodipodi:modified="true"
version="1.0">
<defs
id="defs4" />
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
gridtolerance="10000"
guidetolerance="10"
objecttolerance="10"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="7.9195959"
inkscape:cx="17.757032"
inkscape:cy="7.298821"
inkscape:document-units="px"
inkscape:current-layer="layer1"
inkscape:window-width="984"
inkscape:window-height="852"
inkscape:window-x="148"
inkscape:window-y="66" />
<metadata
id="metadata7">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
</cc:Work>
</rdf:RDF>
</metadata>
<g
inkscape:label="Layer 1"
inkscape:groupmode="layer"
id="layer1"
transform="translate(-192.905,-516.02064)">
<path
style="fill:#000000"
d="M 197.67968,534.31563 C 197.40468,534.31208 196.21788,532.53719 195.04234,530.37143 L 192.905,526.43368 L 193.45901,525.87968 C 193.76371,525.57497 194.58269,525.32567 195.27896,525.32567 L 196.5449,525.32567 L 197.18129,527.33076 L 197.81768,529.33584 L 202.88215,523.79451 C 205.66761,520.74678 208.88522,517.75085 210.03239,517.13691 L 212.11815,516.02064 L 207.90871,520.80282 C 205.59351,523.43302 202.45735,527.55085 200.93947,529.95355 C 199.42159,532.35625 197.95468,534.31919 197.67968,534.31563 z "
id="path2223" />
</g>
</svg>

Before

Width:  |  Height:  |  Size: 2.1 KiB

View File

@ -1,37 +0,0 @@
{
"auth":{
"token":{
"id":"asdasdasd-adsasdads-asdasdasd-adsadsasd",
"expires":"2010-11-01T03:32:15-05:00"
},
"serviceCatalog":{
"service1":[
{
"region":"DFW",
"publicURL":"https://service1-public/v1/blah-blah",
"internalURL":"https://service1-internal/v1/blah-blah"
},
{
"region":"ORD",
"publicURL":"https://service1-public-ord/v1/blah-blah",
"internalURL":"https://service1-internal-ord/v1/blah-blah"
}
],
"service2":[
{
"region":"DFW",
"publicURL":"https://service2-public-dfw/v1/blah-blah"
},
{
"region":"ORD",
"publicURL":"https://service2-public-orf/v1/blah-blah"
}
],
"service3":[
{
"publicURL":"https://service3-public/v1/blah-blah"
}
]
}
}
}

View File

@ -1,29 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<auth xmlns="http://docs.openstack.org/identity/api/v2.0">
<token expires="2010-11-01T03:32:15-05:00"
id="ab48a9efdfedb23ty3494"/>
<serviceCatalog>
<service name="service1">
<endpoint
region="DFW"
publicURL="https://service1.public.com/v2.0/blah-blah"
internalURL="https://service1.internal.com/v2.0/blah-blah"/>
<endpoint
region="ORD"
publicURL="https://service1.public.com/v2.0/blah-blah"
internalURL="https://service1.internal.com/v2.0/blah-blah"/>
</service>
<service name="service2">
<endpoint
region="DFW"
publicURL="https://service2.public.com/v2.0/blah-blah"/>
<endpoint
region="ORD"
publicURL="https://service2.public.com/v2.0/blah-blah"/>
</service>
<service name="service3">
<endpoint
publicURL="https://service3.public.com/v2.0/blah-blah"/>
</service>
</serviceCatalog>
</auth>

View File

@ -1,7 +0,0 @@
{
"passwordCredentials":{
"username":"test_user",
"password":"a86850deb2742ec3cb41518e26aa2d89",
"tenantId":"77654"
}
}

View File

@ -1,5 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<passwordCredentials
xmlns="http://docs.openstack.org/identity/api/v2.0"
password="P@ssword1" username="testuser"
tenantId="77654"/>

View File

@ -1,72 +0,0 @@
{
"choices":{
"values":[
{
"id":"v1.0",
"status":"DEPRECATED",
"links":[
{
"rel":"self",
"href":"http://identity.api.openstack.org/v2.0"
}
],
"media-types":{
"values":[
{
"base":"application/xml",
"type":"application/vnd.openstack.identity-v1.0+xml"
},
{
"base":"application/json",
"type":"application/vnd.openstack.identity-v1.0+json"
}
]
}
},
{
"id":"v1.1",
"status":"CURRENT",
"links":[
{
"rel":"self",
"href":"http://identity.api.openstack.org/v1.1"
}
],
"media-types":{
"values":[
{
"base":"application/xml",
"type":"application/vnd.openstack.identity-v1.1+xml"
},
{
"base":"application/json",
"type":"application/vnd.openstack.identity-v1.1+json"
}
]
}
},
{
"id":"v2.0",
"status":"BETA",
"links":[
{
"rel":"self",
"href":"http://identity.api.openstack.org/v2.0"
}
],
"media-types":{
"values":[
{
"base":"application/xml",
"type":"application/vnd.openstack.identity-v2.0+xml"
},
{
"base":"application/json",
"type":"application/vnd.openstack.identity-v2.0+json"
}
]
}
}
]
}
}

View File

@ -1,41 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<choices xmlns="http://docs.openstack.org/common/api/v2.0"
xmlns:atom="http://www.w3.org/2005/Atom">
<version id="v1.0" status="DEPRECATED">
<media-types>
<media-type base="application/xml"
type="application/vnd.openstack.identity-v1.0+xml"/>
<media-type base="application/json"
type="application/vnd.openstack.identity-v1.0+json"/>
</media-types>
<atom:link rel="self"
href="http://identity.api.openstack.org/v1.0"/>
</version>
<version id="v1.1" status="CURRENT">
<media-types>
<media-type base="application/xml"
type="application/vnd.openstack.identity-v1.1+xml"/>
<media-type base="application/json"
type="application/vnd.openstack.identity-v1.1+json"/>
</media-types>
<atom:link rel="self"
href="http://identity.api.openstack.org/v1.1"/>
</version>
<version id="v2.0" status="BETA">
<media-types>
<media-type base="application/xml"
type="application/vnd.openstack.identity-v2.0+xml"/>
<media-type base="application/json"
type="application/vnd.openstack.identity-v2.0+json"/>
</media-types>
<atom:link rel="self"
href="http://identity.api.openstack.org/v2.0"/>
</version>
</choices>

View File

@ -1,6 +0,0 @@
{
"endpoint":{
"id":3,
"href":"https://auth.keystone.com/v2.0/baseURLs/1"
}
}

View File

@ -1,4 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<endpoint xmlns="http://docs.openstack.org/identity/api/v2.0"
id="3" />

View File

@ -1,11 +0,0 @@
{
"endpointTemplate":{
"id":1,
"region":"DFW",
"global":true,
"serviceName":"service1",
"publicURL":"https://service-public.com/v1",
"internalURL":"https://service-internal.com/v1",
"enabled":true
}
}

View File

@ -1,12 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<endpointTemplate
xmlns="http://docs.openstack.org/identity/api/v2.0"
id="1"
region="DFW"
global="true"
serviceName="service1"
publicURL="https://service-public.com/v1"
internalURL="https://service-internal.com/v1"
enabled="true"
/>

View File

@ -1,43 +0,0 @@
{
"endpointsTemplates":[
{
"id":1,
"region":"DFW",
"global":true,
"serviceName":"service1",
"publicURL":"https://service1.public.com/v1",
"internalURL":"https://service1.internal.com/v1",
"enabled":true
},
{
"id":2,
"region":"ORD",
"serviceName":"service2",
"publicURL":"https://service2.public.com/v1",
"internalURL":"https://service2.internal.com/v1",
"enabled":false
},
{
"id":3,
"region":"DFW",
"global":true,
"serviceName":"service1",
"publicURL":"https://service.public.com/v1.0",
"enabled":true
},
{
"id":4,
"region":"ORD",
"serviceName":"service2",
"publicURL":"https://service2.public.com/v2",
"enabled":true
},
{
"id":5,
"global":true,
"serviceName":"service3",
"publicURL":"https://service3.public.com/v3.2",
"enabled":true
}
]
}

View File

@ -1,42 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<endpointTemplates xmlns="http://docs.openstack.org/identity/api/v2.0">
<endpointTemplate
id="1"
region="DFW"
global="true"
serviceName="service1"
publicURL="https://service1.public.com/v1"
internalURL="https://service1.internal.clouddrive.com/v1"
enabled="true"
/>
<endpointTemplate
id="2"
region="ORD"
serviceName="service2"
publicURL="https://service2.public.com/v1"
internalURL="https://service2.internal.public.com/v1"
enabled="false"
/>
<endpointTemplate
id="3"
region="DFW"
global="true"
serviceName="service1"
publicURL="https://service1.public.com/v1"
enabled="true"
/>
<endpointTemplate
id="4"
region="ORD"
serviceName="service2"
publicURL="https://service2.public.com/v1"
enabled="true"
/>
<endpointTemplate
id="5"
global="true"
serviceName="service3"
publicURL="https://service3.public.com/v1"
/>
</endpointTemplates>

View File

@ -1,24 +0,0 @@
{
"endpoints":[
{
"id":1,
"href":"https://auth.keystone.com/v2.0/baseURLs/1"
},
{
"id":2,
"href":"https://auth.keystone.com/v2.0/baseURLs/2"
},
{
"id":3,
"href":"https://auth.keystone.com/v2.0/baseURLs/3"
},
{
"id":4,
"href":"https://auth.keystone.com/v2.0/baseURLs/4"
},
{
"id":5,
"href":"https://auth.keystone.com/v2.0/baseURLs/5"
}
]
}

View File

@ -1,20 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<endpoints
xmlns="http://docs.openstack.org/identity/api/v2.0">
<endpoint
href="https://auth.keystone.com/v2.0/baseURLs/1"
id="1" />
<endpoint
href="https://auth.keystone.com/v2.0/baseURLs/2"
id="2" />
<endpoint
href="https://auth.keystone.com/v2.0/baseURLs/3"
id="3" />
<endpoint
href="https://auth.keystone.com/v2.0/baseURLs/4"
id="4" />
<endpoint
href="https://auth.keystone.com/v2.0/baseURLs/5"
id="5" />
</endpoints>

View File

@ -1,22 +0,0 @@
{
"user":{
"groups":{
"values":[
{
"tenantId":"1234",
"id":"Admin"
}
]
},
"id":"jqsmith",
"tenantId":"1234",
"email":"john.smith@example.org",
"enabled":true,
"RS-META:metadata":{
"values":{
"MetaKey1":"MetaValue1",
"MetaKey2":"MetaValue2"
}
}
}
}

View File

@ -1,13 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<user xmlns="http://docs.openstack.org/identity/api/v2.0"
enabled="true" email="john.smith@example.org"
tenantId="1234" id="jqsmith">
<groups>
<group tenantId="1234" id="Admin"/>
</groups>
<metadata
xmlns="http://docs.rackspacecloud.com/identity/api/ext/meta/v2.0">
<meta key="MetaKey1">MetaValue1</meta>
<meta key="MetaKey2">MetaValue2</meta>
</metadata>
</user>

View File

@ -1,21 +0,0 @@
{
"extension":{
"name":"User Metadata Extension",
"namespace":"http://docs.rackspacecloud.com/identity/api/ext/meta/v2.0",
"alias":"RS-META",
"updated":"2011-01-12T11:22:33-06:00",
"description":"Allows associating arbritrary metadata with a user.",
"links":[
{
"rel":"describedby",
"type":"application/pdf",
"href":"http://docs.rackspacecloud.com/identity/api/ext/identity-meta-20111201.pdf"
},
{
"rel":"describedby",
"type":"application/vnd.sun.wadl+xml",
"href":"http://docs.rackspacecloud.com/identity/api/ext/identity-cbs.wadl"
}
]
}
}

View File

@ -1,23 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<extension xmlns="http://docs.openstack.org/common/api/v1.0"
xmlns:atom="http://www.w3.org/2005/Atom"
name="User Metadata Extension"
namespace="http://docs.rackspacecloud.com/identity/api/ext/meta/v2.0"
alias="RS-META"
updated="2011-01-12T11:22:33-06:00">
<description>
Allows associating arbritrary metadata with a user.
</description>
<atom:link rel="describedby"
type="application/pdf"
href="http://docs.rackspacecloud.com/identity/api/ext/identity-meta-20111201.pdf"/>
<atom:link rel="describedby"
type="application/vnd.sun.wadl+xml"
href="http://docs.rackspacecloud.com/identity/api/ext/identity-meta.wadl"/>
</extension>

View File

@ -1,44 +0,0 @@
{
"extensions":{
"values":[
{
"name":"Reset Password Extension",
"namespace":"http://docs.rackspacecloud.com/identity/api/ext/rpe/v2.0",
"alias":"RS-RPE",
"updated":"2011-01-22T13:25:27-06:00",
"description":"Adds the capability to reset a user's password. The user is emailed when the password has been reset.",
"links":[
{
"rel":"describedby",
"type":"application/pdf",
"href":"http://docs.rackspacecloud.com/identity/api/ext/identity-rpe-20111111.pdf"
},
{
"rel":"describedby",
"type":"application/vnd.sun.wadl+xml",
"href":"http://docs.rackspacecloud.com/identity/api/ext/identity-rpe.wadl"
}
]
},
{
"name":"User Metadata Extension",
"namespace":"http://docs.rackspacecloud.com/identity/api/ext/meta/v2.0",
"alias":"RS-META",
"updated":"2011-01-12T11:22:33-06:00",
"description":"Allows associating arbritrary metadata with a user.",
"links":[
{
"rel":"describedby",
"type":"application/pdf",
"href":"http://docs.rackspacecloud.com/identity/api/ext/identity-meta-20111201.pdf"
},
{
"rel":"describedby",
"type":"application/vnd.sun.wadl+xml",
"href":"http://docs.rackspacecloud.com/identity/api/ext/identity-meta.wadl"
}
]
}
]
}
}

View File

@ -1,39 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<extensions xmlns="http://docs.openstack.org/common/api/v1.0"
xmlns:atom="http://www.w3.org/2005/Atom">
<extension
name="Reset Password Extension"
namespace="http://docs.rackspacecloud.com/identity/api/ext/rpe/v1.0"
alias="RS-RPE"
updated="2011-01-22T13:25:27-06:00">
<description>
Adds the capability to reset a user's password. The user is
emailed when the password has been reset.
</description>
<atom:link rel="describedby"
type="application/pdf"
href="http://docs.rackspacecloud.com/identity/api/ext/identity-rpe-20111111.pdf"/>
<atom:link rel="describedby"
type="application/vnd.sun.wadl+xml"
href="http://docs.rackspacecloud.com/identity/api/ext/identity-rpe.wadl"/>
</extension>
<extension
name="User Metadata Extension"
namespace="http://docs.rackspacecloud.com/identity/api/ext/meta/v2.0"
alias="RS-META"
updated="2011-01-12T11:22:33-06:00">
<description>
Allows associating arbritrary metadata with a user.
</description>
<atom:link rel="describedby"
type="application/pdf"
href="http://docs.rackspacecloud.com/identity/api/ext/identity-meta-20111201.pdf"/>
<atom:link rel="describedby"
type="application/vnd.sun.wadl+xml"
href="http://docs.rackspacecloud.com/identity/api/ext/identity-meta.wadl"/>
</extension>
</extensions>

View File

@ -1,29 +0,0 @@
{
"user":{
"groups":{
"values":[
{
"tenantId":"1234",
"id":"Admin"
},
{
"tenantId":"1234",
"id":"DBUser"
},
{
"id":"Super"
}
],
"links":[
{
"rel":"next",
"href":"http://identity.api.openstack.org/v2.0/tenants/1234/users/jqsmith/groups?marker=Super"
}
]
},
"id":"jqsmith",
"tenantId":"1234",
"email":"john.smith@example.org",
"enabled":true
}
}

View File

@ -1,14 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<user xmlns="http://docs.openstack.org/identity/api/v2.0"
xmlns:atom="http://www.w3.org/2005/Atom"
enabled="true" email="john.smith@example.org"
tenantId="1234" id="jqsmith">
<groups>
<group tenantId="1234" id="Admin"/>
<group tenantId="1234" id="DBUser"/>
<group id="Super"/>
<atom:link
rel="next"
href="http://identity.api.openstack.org/v2.0/tenants/1234/users/jqsmith/groups?marker=Super"/>
</groups>
</user>

View File

@ -1,6 +0,0 @@
{
"group":{
"id":"test_global_group",
"description":"A description ..."
}
}

View File

@ -1,4 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<group xmlns="http://docs.openstack.org/identity/api/v2.0" id="test group">
<description>A Description of the group</description>
</group>

View File

@ -1,13 +0,0 @@
{
"groups":{
"values":[
{
"id":"test_global_group_add",
"description":"A description ..."
}
],
"links":[
]
}
}

View File

@ -1,5 +0,0 @@
<groups xmlns="http://docs.openstack.org/identity/api/v2.0">
<group xmlns="http://docs.openstack.org/identity/api/v2.0" id="test_global_group_add">
<description>A Description of the group</description>
</group>
</groups>

View File

@ -1,7 +0,0 @@
{
"identityFault":{
"message":"Fault",
"details":"Error Details...",
"code":500
}
}

View File

@ -1,6 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<identityFault xmlns="http://docs.openstack.org/identity/api/v2.0"
code="500">
<message>Fault</message>
<details>Error Details...</details>
</identityFault>

View File

@ -1,7 +0,0 @@
{
"itemNotFound":{
"message":"Item not found.",
"details":"Error Details...",
"code":404
}
}

View File

@ -1,6 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<itemNotFound xmlns="http://docs.openstack.org/identity/api/v2.0"
code="404">
<message>Item not found.</message>
<details>Error Details...</details>
</itemNotFound>

View File

@ -1,7 +0,0 @@
{
"itemNotFound":{
"message":"Item not found.",
"details":"Error Details...",
"code":404
}
}

View File

@ -1,4 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<role xmlns="http://docs.openstack.org/identity/api/v2.0" id="Admin"
description="All Access" />

View File

@ -1,7 +0,0 @@
{
"roleRef":{
"id":1,
"roleId":"admin",
"tenantId":"one"
}
}

View File

@ -1,4 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<roleRef xmlns="http://docs.openstack.org/identity/api/v2.0"
id="1" roleId="Admin" tenantId="tenantId"/>

View File

@ -1,14 +0,0 @@
{
"roleRefs":[
{
"id":1,
"roleId":"admin",
"tenantId":"one"
},
{
"id":2,
"roleId":"test",
"tenantId":"two"
}
]
}

View File

@ -1,9 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<roleRefs
xmlns="http://docs.openstack.org/identity/api/v2.0">
<roleRef xmlns="http://docs.openstack.org/identity/api/v2.0"
roleId="admin" id="3" tenantId="tenantId"/>
<roleRef xmlns="http://docs.openstack.org/identity/api/v2.0"
roleId="test" id="4" tenantId="tenantId"/>
</roleRefs>

View File

@ -1,12 +0,0 @@
{
"roles":[
{
"id":"Admin",
"description":"All access"
},
{
"id":"Guest",
"description":"Guest Access"
}
]
}

View File

@ -1,6 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<roles xmlns="http://docs.openstack.org/identity/api/v2.0">
<role id="Admin" description="All Access" />
<role id="Guest" description="Guest Access" />
</roles>

View File

@ -1,4 +0,0 @@
POST /v2.0/tokens HTTP/1.1
Host: identity.api.openstack.org
Content-Type: application/json
Accept: application/xml

View File

@ -1,4 +0,0 @@
HTTP/1.1 200 OKAY
Date: Mon, 12 Nov 2010 15:55:01 GMT
Content-Length:
Content-Type: application/xml; charset=UTF-8

View File

@ -1,7 +0,0 @@
{
"tenant":{
"id":"1234",
"description":"A description ...",
"enabled":true
}
}

View File

@ -1,5 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<tenant xmlns="http://docs.openstack.org/identity/api/v2.0"
enabled="true" id="1234">
<description>A description...</description>
</tenant>

View File

@ -1,5 +0,0 @@
{
"tenant":{
"description":"A NEW description..."
}
}

View File

@ -1,4 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<tenant xmlns="http://docs.openstack.org/identity/api/v2.0">
<description>A NEW description...</description>
</tenant>

View File

@ -1,17 +0,0 @@
{
"tenants":{
"values":[
{
"id":"1234",
"description":"A description ...",
"enabled":true
}
],
"links":[
{
"rel":"next",
"href":"http://identity.api.openstack.org/v2.0/tenants?limit=1&marker=1234"
}
]
}
}

View File

@ -1,10 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<tenants xmlns="http://docs.openstack.org/identity/api/v2.0"
xmlns:atom="http://www.w3.org/2005/Atom">
<tenant enabled="true" id="1234">
<description>A description...</description>
</tenant>
<atom:link
rel="next"
href="http://identity.api.openstack.org/v2.0/tenants?limit=1&amp;marker=1234"/>
</tenants>

View File

@ -1,21 +0,0 @@
{
"tenants":{
"values":[
{
"id":"3645",
"description":"A description ...",
"enabled":true
}
],
"links":[
{
"rel":"next",
"href":"http://identity.api.openstack.org/v2.0/tenants?limit=1&marker=3645"
},
{
"rel":"previous",
"href":"http://identity.api.openstack.org/v2.0/tenants?limit=1"
}
]
}
}

View File

@ -1,13 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<tenants xmlns="http://docs.openstack.org/identity/api/v2.0"
xmlns:atom="http://www.w3.org/2005/Atom">
<tenant enabled="true" id="3645">
<description>A description...</description>
</tenant>
<atom:link
rel="previous"
href="http://identity.api.openstack.org/v2.0/tenants?limit=1"/>
<atom:link
rel="next"
href="http://identity.api.openstack.org/v2.0/tenants?limit=1&amp;marker=3645"/>
</tenants>

View File

@ -1,17 +0,0 @@
{
"tenants":{
"values":[
{
"id":"9999",
"description":"A description ...",
"enabled":true
}
],
"links":[
{
"rel":"previous",
"href":"http://identity.api.openstack.org/v2.0/tenants?limit=1&marker=1234"
}
]
}
}

View File

@ -1,10 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<tenants xmlns="http://docs.openstack.org/identity/api/v2.0"
xmlns:atom="http://www.w3.org/2005/Atom">
<tenant enabled="true" id="9999">
<description>A description...</description>
</tenant>
<atom:link
rel="previous"
href="http://identity.api.openstack.org/v2.0/tenants?limit=1&amp;marker=1234"/>
</tenants>

View File

@ -1,5 +0,0 @@
GET /v2.0/tenants HTTP/1.1
Host: identity.api.openstack.org
Content-Type: application/json
X-Auth-Token: fa8426a0-8eaf-4d22-8e13-7c1b16a9370c
Accept: application/json

View File

@ -1,21 +0,0 @@
HTTP/1.1 200 OK
Content-Type: application/json; charset=UTF-8
Content-Length: 100
Date: Sun, 1 Jan 2011 9:00:00 GMT
{
"tenants":{
"values":[
{
"id":"1234",
"description":"A description ...",
"enabled":true
},
{
"id":"3456",
"description":"A description ...",
"enabled":true
}
]
}
}

View File

@ -1,14 +0,0 @@
HTTP/1.1 200 OK
Content-Type: application/xml; charset=UTF-8
Content-Length: 200
Date: Sun, 1 Jan 2011 9:00:00 GMT
<?xml version="1.0" encoding="UTF-8"?>
<tenants xmlns="http://docs.openstack.org/identity/api/v2.0">
<tenant enabled="true" id="1234">
<description>A description...</description>
</tenant>
<tenant enabled="true" id="3645">
<description>A description...</description>
</tenant>
</tenants>

View File

@ -1,7 +0,0 @@
{
"tenant":{
"id":"1234",
"description":"A NEW description...",
"enabled":true
}
}

View File

@ -1,5 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<tenant xmlns="http://docs.openstack.org/identity/api/v2.0"
enabled="true" id="1234">
<description>A NEW description...</description>
</tenant>

View File

@ -1,20 +0,0 @@
{
"auth":{
"token":{
"expires":"2010-11-01T03:32:15-05:00",
"id":"ab48a9efdfedb23ty3494",
"tenantId":"1234"
},
"user":{
"username":"jqsmith",
"roleRefs":[
{
"roleId":"Admin",
"id":1,
"tenantId":"one"
}
],
"tenantId":"1234"
}
}
}

View File

@ -1,12 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<auth xmlns="http://docs.openstack.org/identity/api/v2.0">
<token expires="2010-11-01T03:32:15-05:00"
id="ab48a9efdfedb23ty3494"
tenantId="1234"/>
<user username="jqsmith" tenantId="1234">
<roleRefs xmlns="http://docs.openstack.org/identity/api/v2.0">
<roleRef xmlns="http://docs.openstack.org/identity/api/v2.0"
id="4" roleId="Admin" tenantId="1234"/>
</roleRefs>
</user>
</auth>

View File

@ -1,19 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title type="text">About This Version</title>
<updated>2011-01-21T11:33:21-06:00</updated>
<id>http://identity.api.openstack.org/v2.0/</id>
<author><name>OpenStack</name><uri>http://www.openstack.org/</uri></author>
<link rel="self" href="http://identity.api.openstack.org/v2.0/"/>
<entry>
<id>http://identity.api.openstack.org/v2.0/</id>
<title type="text">Version v2.0</title>
<updated>2011-01-21T11:33:21-06:00</updated>
<link rel="self" href="http://identity.api.openstack.org/v2.0/"/>
<link rel="describedby" type="application/pdf"
href="http://docs.openstack.org/identity/api/v2.0/identity-devguide-20110125.pdf"/>
<link rel="describedby" type="application/vnd.sun.wadl+xml"
href="http://docs.openstack.org/identity/api/v2.0/application.wadl"/>
<content type="text">Version v2.0 CURRENT (2011-01-21T11:33:21-06:00)</content>
</entry>
</feed>

View File

@ -1,33 +0,0 @@
{
"version":{
"id":"v2.0",
"status":"CURRENT",
"updated":"2011-01-21T11:33:21-06:00",
"links":[
{
"rel":"self",
"href":"http://identity.api.openstack.org/v2.0/"
},
{
"rel":"describedby",
"type":"application/pdf",
"href":"http://docs.rackspacecloud.com/identity/api/v2.0/identity-devguide-20110125.pdf"
},
{
"rel":"describedby",
"type":"application/vnd.sun.wadl+xml",
"href":"http://docs.rackspacecloud.com/identity/api/v2.0/application.wadl"
}
],
"media-types":[
{
"base":"application/xml",
"type":"application/vnd.openstack.identity-v2.0+xml"
},
{
"base":"application/json",
"type":"application/vnd.openstack.identity-v2.0+json"
}
]
}
}

View File

@ -1,23 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<version xmlns="http://docs.openstack.org/common/api/v1.0"
xmlns:atom="http://www.w3.org/2005/Atom"
id="v2.0" status="CURRENT" updated="2011-01-21T11:33:21-06:00">
<media-types>
<media-type base="application/xml"
type="application/vnd.openstack.identity-v2.0+xml"/>
<media-type base="application/json"
type="application/vnd.openstack.identity-v2.0+json"/>
</media-types>
<atom:link rel="self"
href="http://identity.api.openstack.org/v2.0/"/>
<atom:link rel="describedby"
type="application/pdf"
href="http://docs.rackspacecloud.com/identity/api/v2.0/identity-devguide-20110125.pdf" />
<atom:link rel="describedby"
type="application/vnd.sun.wadl+xml"
href="http://docs.rackspacecloud.com/identity/api/v2.0/application.wadl" />
</version>

View File

@ -1,29 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title type="text">Available API Versions</title>
<updated>2010-12-12T18:30:02.25Z</updated>
<id>http://identity.api.openstack.org/</id>
<author><name>Rackspace</name><uri>http://www.rackspace.com/</uri></author>
<link rel="self" href="http://identity.api.openstack.org/"/>
<entry>
<id>http://identity.api.openstack.org/v2.0/</id>
<title type="text">Version v2.0</title>
<updated>2011-05-27T20:22:02.25Z</updated>
<link rel="self" href="http://identity.api.openstack.org/v2.0/"/>
<content type="text">Version v2.1 CURRENT (2011-05-27T20:22:02.25Z)</content>
</entry>
<entry>
<id>http://identity.api.openstack.org/v1.1/</id>
<title type="text">Version v1.1</title>
<updated>2010-12-12T18:30:02.25Z</updated>
<link rel="self" href="http://identity.api.openstack.org/v1.1/"/>
<content type="text">Version v1.1 CURRENT (2010-12-12T18:30:02.25Z)</content>
</entry>
<entry>
<id>http://identity.api.openstack.org/v1.0/</id>
<title type="text">Version v1.0</title>
<updated>2009-10-09T11:30:00Z</updated>
<link rel="self" href="http://identity.api.openstack.org/v1.0/"/>
<content type="text">Version v1.0 DEPRECATED (2009-10-09T11:30:00Z)</content>
</entry>
</feed>

View File

@ -1,39 +0,0 @@
{
"versions":{
"values":[
{
"id":"v1.0",
"status":"DEPRECATED",
"updated":"2009-10-09T11:30:00Z",
"links":[
{
"rel":"self",
"href":"http://identity.api.openstack.org/v1.0/"
}
]
},
{
"id":"v1.1",
"status":"CURRENT",
"updated":"2010-12-12T18:30:02.25Z",
"links":[
{
"rel":"self",
"href":"http://identity.api.openstack.org/v1.1/"
}
]
},
{
"id":"v2.0",
"status":"BETA",
"updated":"2011-05-27T20:22:02.25Z",
"links":[
{
"rel":"self",
"href":"http://identity.api.openstack.org/v2.0/"
}
]
}
]
}
}

View File

@ -1,24 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<versions xmlns="http://docs.openstack.org/common/api/v1.0"
xmlns:atom="http://www.w3.org/2005/Atom">
<version id="v1.0" status="DEPRECATED"
updated="2009-10-09T11:30:00Z">
<atom:link rel="self"
href="http://identity.api.openstack.org/v1.0/"/>
</version>
<version id="v1.1" status="CURRENT"
updated="2010-12-12T18:30:02.25Z">
<atom:link rel="self"
href="http://identity.api.openstack.org/v1.1/"/>
</version>
<version id="v2.0" status="BETA"
updated="2011-05-27T20:22:02.25Z">
<atom:link rel="self"
href="http://identity.api.openstack.org/v2.0/"/>
</version>
</versions>

View File

@ -1,56 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="../xslt/schema.xslt"?>
<!-- (C) 2009-2011 Rackspace Hosting, All Rights Reserved -->
<schema
elementFormDefault="qualified"
attributeFormDefault="unqualified"
xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:capi="http://docs.openstack.org/common/api/v1.0"
xmlns:xsdxt="http://docs.rackspacecloud.com/xsd-ext/v1.0"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://docs.openstack.org/common/api/v1.0"
>
<annotation>
<xsd:appinfo
xml:lang="EN"
xmlns="http://www.w3.org/1999/xhtml">
<xsdxt:title>Open Stack Common API Schema Types 1.0</xsdxt:title>
<xsdxt:link rev="index" href="extensions.xsd" />
<xsdxt:link rev="index" href="limits.xsd" />
<xsdxt:link rev="index" href="version.xsd" />
</xsd:appinfo>
<xsd:documentation
xml:lang="EN"
xmlns="http://www.w3.org/1999/xhtml">
<p>
This is the main index XML Schema document
for Common API Schema Types Version 1.0.
</p>
</xsd:documentation>
</annotation>
<include schemaLocation="extensions.xsd">
<annotation>
<xsd:documentation
xml:lang="EN"
xmlns="http://www.w3.org/1999/xhtml">
<p>
Types related to extensions.
</p>
</xsd:documentation>
</annotation>
</include>
<include schemaLocation="version.xsd">
<annotation>
<xsd:documentation
xml:lang="EN"
xmlns="http://www.w3.org/1999/xhtml">
<p>
Types related to API version details.
</p>
</xsd:documentation>
</annotation>
</include>
</schema>

View File

@ -1,17 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<schema
elementFormDefault="qualified"
attributeFormDefault="unqualified"
xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:identity="http://docs.openstack.org/identity/api/v2.0"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://docs.openstack.org/identity/api/v2.0"
>
<include schemaLocation="token.xsd"/>
<include schemaLocation="tenant.xsd"/>
<include schemaLocation="fault.xsd"/>
<include schemaLocation="endpoints.xsd"/>
<include schemaLocation="roles.xsd"/>
<include schemaLocation="user.xsd"/>
</schema>

View File

@ -1,115 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema elementFormDefault="qualified" attributeFormDefault="unqualified"
targetNamespace="http://www.w3.org/2005/Atom"
xmlns:html="http://www.w3.org/1999/xhtml"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:xml="http://www.w3.org/XML/1998/namespace"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="xml.xsd"/>
<xs:simpleType name="relation">
<xs:restriction base="xs:string">
<xs:enumeration value="alternate" />
<xs:enumeration value="appendix" />
<xs:enumeration value="archives" />
<xs:enumeration value="author" />
<xs:enumeration value="bookmark" />
<xs:enumeration value="chapter" />
<xs:enumeration value="contents" />
<xs:enumeration value="copyright" />
<xs:enumeration value="current" />
<xs:enumeration value="describedby" />
<xs:enumeration value="edit" />
<xs:enumeration value="edit-media" />
<xs:enumeration value="first" />
<xs:enumeration value="glossary" />
<xs:enumeration value="help" />
<xs:enumeration value="hub" />
<xs:enumeration value="icon" />
<xs:enumeration value="index" />
<xs:enumeration value="last" />
<xs:enumeration value="latest-version" />
<xs:enumeration value="license" />
<xs:enumeration value="monitor" />
<xs:enumeration value="monitor-group" />
<xs:enumeration value="next" />
<xs:enumeration value="next-arvhice" />
<xs:enumeration value="nofollow" />
<xs:enumeration value="payment" />
<xs:enumeration value="predecessor-version" />
<xs:enumeration value="prefetch" />
<xs:enumeration value="prev" />
<xs:enumeration value="previous" />
<xs:enumeration value="prev-archive" />
<xs:enumeration value="replies" />
<xs:enumeration value="search" />
<xs:enumeration value="section" />
<xs:enumeration value="self" />
<xs:enumeration value="service" />
<xs:enumeration value="start" />
<xs:enumeration value="stylesheet" />
<xs:enumeration value="subsection" />
<xs:enumeration value="successor-version" />
<xs:enumeration value="up" />
<xs:enumeration value="version-history" />
<xs:enumeration value="via" />
<xs:enumeration value="working-copy" />
<xs:enumeration value="working-copy-of" />
</xs:restriction>
</xs:simpleType>
<xs:element name="link" type="atom:link" />
<xs:complexType name="link">
<xs:annotation>
<xs:documentation>
<html:p>See section 3.4 of the ATOM RFC <html:a href="http://tools.ietf.org/html/rfc4287">RFC4287</html:a></html:p>
</xs:documentation>
</xs:annotation>
<xs:attribute name="rel" use="required" type="atom:relation">
<xs:annotation>
<xs:documentation>
<html:p>TODO(Jorge)</html:p>
</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="type" use="optional" type="xs:string">
<xs:annotation>
<xs:documentation>
<html:p>TODO(Jorge)</html:p>
</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="href" use="required" type="xs:anyURI">
<xs:annotation>
<xs:documentation>
<html:p>TODO(Jorge)</html:p>
</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="hreflang" use="optional" type="xs:NMTOKEN">
<xs:annotation>
<xs:documentation>
<html:p>TODO(Jorge)</html:p>
</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="title" use="optional" type="xs:string">
<xs:annotation>
<xs:documentation>
<html:p>TODO(Jorge)</html:p>
</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute ref="xml:base" />
<xs:attribute ref="xml:lang" />
</xs:complexType>
</xs:schema>

View File

@ -1,287 +0,0 @@
<?xml version='1.0'?>
<?xml-stylesheet href="../2008/09/xsd.xsl" type="text/xsl"?>
<xs:schema targetNamespace="http://www.w3.org/XML/1998/namespace"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns ="http://www.w3.org/1999/xhtml"
xml:lang="en">
<xs:annotation>
<xs:documentation>
<div>
<h1>About the XML namespace</h1>
<div class="bodytext">
<p>
This schema document describes the XML namespace, in a form
suitable for import by other schema documents.
</p>
<p>
See <a href="http://www.w3.org/XML/1998/namespace.html">
http://www.w3.org/XML/1998/namespace.html</a> and
<a href="http://www.w3.org/TR/REC-xml">
http://www.w3.org/TR/REC-xml</a> for information
about this namespace.
</p>
<p>
Note that local names in this namespace are intended to be
defined only by the World Wide Web Consortium or its subgroups.
The names currently defined in this namespace are listed below.
They should not be used with conflicting semantics by any Working
Group, specification, or document instance.
</p>
<p>
See further below in this document for more information about <a
href="#usage">how to refer to this schema document from your own
XSD schema documents</a> and about <a href="#nsversioning">the
namespace-versioning policy governing this schema document</a>.
</p>
</div>
</div>
</xs:documentation>
</xs:annotation>
<xs:attribute name="lang">
<xs:annotation>
<xs:documentation>
<div>
<h3>lang (as an attribute name)</h3>
<p>
denotes an attribute whose value
is a language code for the natural language of the content of
any element; its value is inherited. This name is reserved
by virtue of its definition in the XML specification.</p>
</div>
<div>
<h4>Notes</h4>
<p>
Attempting to install the relevant ISO 2- and 3-letter
codes as the enumerated possible values is probably never
going to be a realistic possibility.
</p>
<p>
See BCP 47 at <a href="http://www.rfc-editor.org/rfc/bcp/bcp47.txt">
http://www.rfc-editor.org/rfc/bcp/bcp47.txt</a>
and the IANA language subtag registry at
<a href="http://www.iana.org/assignments/language-subtag-registry">
http://www.iana.org/assignments/language-subtag-registry</a>
for further information.
</p>
<p>
The union allows for the 'un-declaration' of xml:lang with
the empty string.
</p>
</div>
</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:union memberTypes="xs:language">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value=""/>
</xs:restriction>
</xs:simpleType>
</xs:union>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="space">
<xs:annotation>
<xs:documentation>
<div>
<h3>space (as an attribute name)</h3>
<p>
denotes an attribute whose
value is a keyword indicating what whitespace processing
discipline is intended for the content of the element; its
value is inherited. This name is reserved by virtue of its
definition in the XML specification.</p>
</div>
</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:NCName">
<xs:enumeration value="default"/>
<xs:enumeration value="preserve"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="base" type="xs:anyURI"> <xs:annotation>
<xs:documentation>
<div>
<h3>base (as an attribute name)</h3>
<p>
denotes an attribute whose value
provides a URI to be used as the base for interpreting any
relative URIs in the scope of the element on which it
appears; its value is inherited. This name is reserved
by virtue of its definition in the XML Base specification.</p>
<p>
See <a
href="http://www.w3.org/TR/xmlbase/">http://www.w3.org/TR/xmlbase/</a>
for information about this attribute.
</p>
</div>
</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="id" type="xs:ID">
<xs:annotation>
<xs:documentation>
<div>
<h3>id (as an attribute name)</h3>
<p>
denotes an attribute whose value
should be interpreted as if declared to be of type ID.
This name is reserved by virtue of its definition in the
xml:id specification.</p>
<p>
See <a
href="http://www.w3.org/TR/xml-id/">http://www.w3.org/TR/xml-id/</a>
for information about this attribute.
</p>
</div>
</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attributeGroup name="specialAttrs">
<xs:attribute ref="xml:base"/>
<xs:attribute ref="xml:lang"/>
<xs:attribute ref="xml:space"/>
<xs:attribute ref="xml:id"/>
</xs:attributeGroup>
<xs:annotation>
<xs:documentation>
<div>
<h3>Father (in any context at all)</h3>
<div class="bodytext">
<p>
denotes Jon Bosak, the chair of
the original XML Working Group. This name is reserved by
the following decision of the W3C XML Plenary and
XML Coordination groups:
</p>
<blockquote>
<p>
In appreciation for his vision, leadership and
dedication the W3C XML Plenary on this 10th day of
February, 2000, reserves for Jon Bosak in perpetuity
the XML name "xml:Father".
</p>
</blockquote>
</div>
</div>
</xs:documentation>
</xs:annotation>
<xs:annotation>
<xs:documentation>
<div xml:id="usage" id="usage">
<h2><a name="usage">About this schema document</a></h2>
<div class="bodytext">
<p>
This schema defines attributes and an attribute group suitable
for use by schemas wishing to allow <code>xml:base</code>,
<code>xml:lang</code>, <code>xml:space</code> or
<code>xml:id</code> attributes on elements they define.
</p>
<p>
To enable this, such a schema must import this schema for
the XML namespace, e.g. as follows:
</p>
<pre>
&lt;schema . . .>
. . .
&lt;import namespace="http://www.w3.org/XML/1998/namespace"
schemaLocation="http://www.w3.org/2001/xml.xsd"/>
</pre>
<p>
or
</p>
<pre>
&lt;import namespace="http://www.w3.org/XML/1998/namespace"
schemaLocation="http://www.w3.org/2009/01/xml.xsd"/>
</pre>
<p>
Subsequently, qualified reference to any of the attributes or the
group defined below will have the desired effect, e.g.
</p>
<pre>
&lt;type . . .>
. . .
&lt;attributeGroup ref="xml:specialAttrs"/>
</pre>
<p>
will define a type which will schema-validate an instance element
with any of those attributes.
</p>
</div>
</div>
</xs:documentation>
</xs:annotation>
<xs:annotation>
<xs:documentation>
<div id="nsversioning" xml:id="nsversioning">
<h2><a name="nsversioning">Versioning policy for this schema document</a></h2>
<div class="bodytext">
<p>
In keeping with the XML Schema WG's standard versioning
policy, this schema document will persist at
<a href="http://www.w3.org/2009/01/xml.xsd">
http://www.w3.org/2009/01/xml.xsd</a>.
</p>
<p>
At the date of issue it can also be found at
<a href="http://www.w3.org/2001/xml.xsd">
http://www.w3.org/2001/xml.xsd</a>.
</p>
<p>
The schema document at that URI may however change in the future,
in order to remain compatible with the latest version of XML
Schema itself, or with the XML namespace itself. In other words,
if the XML Schema or XML namespaces change, the version of this
document at <a href="http://www.w3.org/2001/xml.xsd">
http://www.w3.org/2001/xml.xsd
</a>
will change accordingly; the version at
<a href="http://www.w3.org/2009/01/xml.xsd">
http://www.w3.org/2009/01/xml.xsd
</a>
will not change.
</p>
<p>
Previous dated (and unchanging) versions of this schema
document are at:
</p>
<ul>
<li><a href="http://www.w3.org/2009/01/xml.xsd">
http://www.w3.org/2009/01/xml.xsd</a></li>
<li><a href="http://www.w3.org/2007/08/xml.xsd">
http://www.w3.org/2007/08/xml.xsd</a></li>
<li><a href="http://www.w3.org/2004/10/xml.xsd">
http://www.w3.org/2004/10/xml.xsd</a></li>
<li><a href="http://www.w3.org/2001/03/xml.xsd">
http://www.w3.org/2001/03/xml.xsd</a></li>
</ul>
</div>
</div>
</xs:documentation>
</xs:annotation>
</xs:schema>

View File

@ -1,200 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<schema
elementFormDefault="qualified"
attributeFormDefault="unqualified"
xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:idm="http://docs.openstack.org/identity/api/v2.0"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning"
xmlns:atom="http://www.w3.org/2005/Atom"
targetNamespace="http://docs.openstack.org/identity/api/v2.0"
>
<!-- Import ATOM specific schema definitions -->
<import vc:minVersion="1.1" namespace="http://www.w3.org/2005/Atom"
schemaLocation="atom/atom.xsd" />
<element name="endpointTemplates" type="idm:EndpointTemplateList">
<annotation>
<xsd:documentation
xml:lang="EN"
xmlns="http://www.w3.org/1999/xhtml">
<p>
A list of Endpoint Templates.
</p>
</xsd:documentation>
</annotation>
</element>
<element name="endpointTemplate" type="idm:EndpointTemplate">
<annotation>
<xsd:documentation
xml:lang="EN"
xmlns="http://www.w3.org/1999/xhtml">
<p>
An Endpoint Template.
</p>
</xsd:documentation>
</annotation>
</element>
<element name="endpoint" type="idm:Endpoint">
<annotation>
<xsd:documentation
xml:lang="EN"
xmlns="http://www.w3.org/1999/xhtml">
<p>
An Endpoint.
</p>
</xsd:documentation>
</annotation>
</element>
<element name="endpoints" type="idm:EndpointList">
<annotation>
<xsd:documentation
xml:lang="EN"
xmlns="http://www.w3.org/1999/xhtml">
<p>
A list of Endpoints.
</p>
</xsd:documentation>
</annotation>
</element>
<!-- Complex Types -->
<complexType name="EndpointTemplate">
<attribute name="id" type="xsd:int" use="required">
<annotation>
<xsd:documentation
xml:lang="EN"
xmlns="http://www.w3.org/1999/xhtml">
<p>
An ID uniquely identifying the Endpoint Template.
</p>
</xsd:documentation>
</annotation>
</attribute>
<attribute name="serviceName" type="xsd:string" use="required">
<annotation>
<xsd:documentation
xml:lang="EN"
xmlns="http://www.w3.org/1999/xhtml">
<p>
The service name of Endpoint Template.
</p>
</xsd:documentation>
</annotation>
</attribute>
<attribute name="region" type="xsd:string" use="optional">
<annotation>
<xsd:documentation
xml:lang="EN"
xmlns="http://www.w3.org/1999/xhtml">
<p>
The region of Endpoint Template.
</p>
</xsd:documentation>
</annotation>
</attribute>
<attribute name="publicURL" type="xsd:anyURI" use="required">
<annotation>
<xsd:documentation
xml:lang="EN"
xmlns="http://www.w3.org/1999/xhtml">
<p>
The public URL to access represented service.
</p>
</xsd:documentation>
</annotation>
</attribute>
<attribute name="internalURL" type="xsd:anyURI" use="optional">
<annotation>
<xsd:documentation
xml:lang="EN"
xmlns="http://www.w3.org/1999/xhtml">
<p>
The internal version of the public URL.
</p>
</xsd:documentation>
</annotation>
</attribute>
<attribute name="adminURL" type="xsd:anyURI" use="optional">
<annotation>
<xsd:documentation
xml:lang="EN"
xmlns="http://www.w3.org/1999/xhtml">
<p>
The admin URL.
</p>
</xsd:documentation>
</annotation>
</attribute>
<attribute name="global" type="xsd:boolean" default="false" use="optional">
<annotation>
<xsd:documentation
xml:lang="EN"
xmlns="http://www.w3.org/1999/xhtml">
<p>
If true the Endpoint Template is automatically part of every account.
</p>
</xsd:documentation>
</annotation>
</attribute>
<attribute name="enabled" type="xsd:boolean" default="true" use="optional">
<annotation>
<xsd:documentation
xml:lang="EN"
xmlns="http://www.w3.org/1999/xhtml">
<p>
True if the Endpoint Template is enabled (active).
A Endpoint Template cannot be added if it's disabled or inactive (false).
</p>
</xsd:documentation>
</annotation>
</attribute>
<anyAttribute namespace="##other" processContents="lax"/>
</complexType>
<complexType name="Endpoint">
<attribute name="id" type="xsd:int" use="required">
<annotation>
<xsd:documentation
xml:lang="EN"
xmlns="http://www.w3.org/1999/xhtml">
<p>
An ID uniquely identifying the Endpoint.
</p>
</xsd:documentation>
</annotation>
</attribute>
<attribute name="href" type="xsd:anyURI" use="optional">
<annotation>
<xsd:documentation
xml:lang="EN"
xmlns="http://www.w3.org/1999/xhtml">
<p>
A hyperlink reference to the URL Endpoint Template.
</p>
</xsd:documentation>
</annotation>
</attribute>
<anyAttribute namespace="##other" processContents="lax"/>
</complexType>
<complexType name="EndpointTemplateList">
<sequence>
<element name="endpointTemplate" type="idm:EndpointTemplate" minOccurs="0" maxOccurs="unbounded"/>
<element vc:minVersion="1.1" ref="atom:link" minOccurs="0" maxOccurs="unbounded" />
<any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded" />
</sequence>
<anyAttribute namespace="##other" processContents="lax"/>
</complexType>
<complexType name="EndpointList">
<sequence>
<element name="endpoint" type="idm:Endpoint" minOccurs="0" maxOccurs="unbounded"/>
<element vc:minVersion="1.1" ref="atom:link" minOccurs="0" maxOccurs="unbounded" />
<any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded" />
</sequence>
<anyAttribute namespace="##other" processContents="lax"/>
</complexType>
</schema>

View File

@ -1,56 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema elementFormDefault="qualified" attributeFormDefault="unqualified"
targetNamespace="http://docs.openstack.org/common/api/v1.0"
xmlns:ext="http://docs.openstack.org/common/api/v1.0"
xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning"
xmlns:html="http://www.w3.org/1999/xhtml"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<!-- Import ATOM specific schema definitions -->
<xsd:import namespace="http://www.w3.org/2005/Atom" schemaLocation="atom/atom.xsd" />
<xsd:element name="extensions" type="ext:Extensions"/>
<xsd:element name="extension" type="ext:Extension"/>
<xsd:complexType name="Extensions">
<xsd:sequence>
<xsd:element name="extension" type="ext:Extension" minOccurs="0" maxOccurs="unbounded" />
<xsd:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded" />
</xsd:sequence>
<xsd:anyAttribute namespace="##other" processContents="lax"/>
</xsd:complexType>
<xsd:complexType name="Extension">
<xsd:sequence>
<xsd:element name="description" type="xsd:string" minOccurs="1" />
<xsd:element vc:minVersion="1.1" ref="atom:link" minOccurs="0" maxOccurs="unbounded" />
<xsd:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required"/>
<xsd:attribute name="namespace" type="xsd:anyURI" use="required"/>
<xsd:attribute name="alias" type="ext:Alias" use="required"/>
<xsd:attribute name="updated" type="xsd:dateTime" use="optional"/>
<xsd:anyAttribute namespace="##other" processContents="lax"/>
<xsd:assert vc:minVersion="1.1" test="atom:link[@rel='describedby']">
<xsd:annotation>
<xsd:documentation
xml:lang="EN"
xmlns="http://www.w3.org/1999/xhtml">
<p>
There should be at least one atom link
with a describedby relation.
</p>
</xsd:documentation>
</xsd:annotation>
</xsd:assert>
</xsd:complexType>
<xsd:simpleType name="Alias">
<xsd:restriction base="xsd:string">
<xsd:pattern value="\w+\-\w+" />
</xsd:restriction>
</xsd:simpleType>
</xsd:schema>

View File

@ -1,135 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<schema
elementFormDefault="qualified"
attributeFormDefault="unqualified"
xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:identity="http://docs.openstack.org/identity/api/v2.0"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://docs.openstack.org/identity/api/v2.0"
>
<!-- Fault Elements -->
<element name="identityFault" type="identity:IdentityFault"/>
<element name="serviceUnavailable" type="identity:ServiceUnavailableFault"/>
<element name="badRequest" type="identity:BadRequestFault"/>
<element name="unauthorized" type="identity:UnauthorizedFault"/>
<element name="overLimit" type="identity:OverLimitFault"/>
<element name="userDisabled" type="identity:UserDisabledFault"/>
<element name="forbidden" type="identity:ForbiddenFault"/>
<element name="itemNotFound" type="identity:ItemNotFoundFault"/>
<element name="tenantConflict" type="identity:TenantConflictFault"/>
<!-- Fault Types -->
<complexType name="IdentityFault">
<sequence>
<element name="message" type="xsd:string">
<annotation>
<xsd:documentation
xml:lang="EN"
xmlns="http://www.w3.org/1999/xhtml">
<p>
A human readable message that is appropriate for display
to the end user.
</p>
</xsd:documentation>
</annotation>
</element>
<element name="details" type="xsd:string" minOccurs="0">
<annotation>
<xsd:documentation
xml:lang="EN"
xmlns="http://www.w3.org/1999/xhtml">
<p>
The optional &lt;details&gt; element may contain useful
information for tracking down errors (e.g a stack
trace). This information may or may not be appropriate
for display to an end user.
</p>
</xsd:documentation>
</annotation>
</element>
<any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded" />
</sequence>
<attribute name="code" type="xsd:int" use="required">
<annotation>
<xsd:documentation
xml:lang="EN"
xmlns="http://www.w3.org/1999/xhtml">
<p>
The HTTP status code associated with the current fault.
</p>
</xsd:documentation>
</annotation>
</attribute>
<anyAttribute namespace="##other" processContents="lax"/>
</complexType>
<complexType name="ServiceUnavailableFault">
<complexContent>
<extension base="identity:IdentityFault">
</extension>
</complexContent>
</complexType>
<complexType name="BadRequestFault">
<complexContent>
<extension base="identity:IdentityFault">
</extension>
</complexContent>
</complexType>
<complexType name="UnauthorizedFault">
<complexContent>
<extension base="identity:IdentityFault">
</extension>
</complexContent>
</complexType>
<complexType name="UserDisabledFault">
<complexContent>
<extension base="identity:IdentityFault">
</extension>
</complexContent>
</complexType>
<complexType name="ForbiddenFault">
<complexContent>
<extension base="identity:IdentityFault">
</extension>
</complexContent>
</complexType>
<complexType name="ItemNotFoundFault">
<complexContent>
<extension base="identity:IdentityFault">
</extension>
</complexContent>
</complexType>
<complexType name="TenantConflictFault">
<complexContent>
<extension base="identity:IdentityFault">
</extension>
</complexContent>
</complexType>
<complexType name="OverLimitFault">
<complexContent>
<extension base="identity:IdentityFault">
<attribute name="retryAt" type="xsd:dateTime" use="optional">
<annotation>
<xsd:documentation
xml:lang="EN"
xmlns="http://www.w3.org/1999/xhtml">
<p>
An optional dateTime denoting when an operation should
be retried.
</p>
</xsd:documentation>
</annotation>
</attribute>
</extension>
</complexContent>
</complexType>
</schema>

View File

@ -1,112 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<schema
elementFormDefault="qualified"
attributeFormDefault="unqualified"
xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:identity="http://docs.openstack.org/identity/api/v2.0"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning"
xmlns:atom="http://www.w3.org/2005/Atom"
targetNamespace="http://docs.openstack.org/identity/api/v2.0"
>
<!-- Import ATOM specific schema definitions -->
<import vc:minVersion="1.1" namespace="http://www.w3.org/2005/Atom"
schemaLocation="atom/atom.xsd" />
<!-- Elements -->
<element name="roles" type="identity:RoleList" >
<annotation>
<xsd:documentation
xml:lang="EN"
xmlns="http://www.w3.org/1999/xhtml">
<p>
A list of roles.
</p>
</xsd:documentation>
</annotation>
</element>
<element name="role" type="identity:Role" >
<annotation>
<xsd:documentation
xml:lang="EN"
xmlns="http://www.w3.org/1999/xhtml">
<p>
A role.
</p>
</xsd:documentation>
</annotation>
</element>
<element name="roleRefs" type="identity:RoleRefList" >
<annotation>
<xsd:documentation
xml:lang="EN"
xmlns="http://www.w3.org/1999/xhtml">
<p>
A list of roles refs.
</p>
</xsd:documentation>
</annotation>
</element>
<element name="roleRef" type="identity:RoleRef" >
<annotation>
<xsd:documentation
xml:lang="EN"
xmlns="http://www.w3.org/1999/xhtml">
<p>
A role reference.
</p>
</xsd:documentation>
</annotation>
</element>
<!-- Complex Types -->
<complexType name="Role">
<attribute name="id" type="xsd:string" use="required"/>
<attribute name="description" type="xsd:string" use="optional"/>
<anyAttribute namespace="##other" processContents="lax"/>
</complexType>
<complexType name="RoleList">
<sequence>
<element name="role" type="identity:Role" minOccurs="0" maxOccurs="unbounded"/>
<element vc:minVersion="1.1" ref="atom:link" minOccurs="0" maxOccurs="unbounded" />
<any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded" />
</sequence>
<anyAttribute namespace="##other" processContents="lax"/>
</complexType>
<complexType name="RoleRef">
<attribute name="id" type="xsd:int" use="required"/>
<attribute name="tenantId" type="xsd:string" use="required" />
<attribute name="href" type="xsd:anyURI" use="optional">
<annotation>
<xsd:documentation
xml:lang="EN"
xmlns="http://www.w3.org/1999/xhtml">
<p>
A hyperlink refrence to the role URL.
</p>
</xsd:documentation>
</annotation>
</attribute>
<anyAttribute namespace="##other" processContents="lax"/>
</complexType>
<complexType name="RoleRefList">
<sequence>
<element name="role" type="identity:RoleRef" minOccurs="0" maxOccurs="unbounded"/>
<element vc:minVersion="1.1" ref="atom:link" minOccurs="0" maxOccurs="unbounded" />
<any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded" />
</sequence>
<anyAttribute namespace="##other" processContents="lax"/>
</complexType>
</schema>

View File

@ -1,40 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<schema
elementFormDefault="qualified"
attributeFormDefault="unqualified"
xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:identity="http://docs.openstack.org/identity/api/v2.0"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning"
xmlns:atom="http://www.w3.org/2005/Atom"
targetNamespace="http://docs.openstack.org/identity/api/v2.0"
>
<!-- Import ATOM specific schema definitions -->
<import vc:minVersion="1.1" namespace="http://www.w3.org/2005/Atom"
schemaLocation="atom/atom.xsd" />
<!-- Elements -->
<element name="tenant" type="identity:Tenant" />
<element name="tenants" type="identity:Tenants" />
<!-- Complex Types -->
<complexType name="Tenants">
<sequence>
<element name="tenant" type="identity:Tenant" maxOccurs="1000"/>
<element vc:minVersion="1.1" ref="atom:link" minOccurs="0" maxOccurs="unbounded" />
<any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded" />
</sequence>
<anyAttribute namespace="##other" processContents="lax"/>
</complexType>
<complexType name="Tenant">
<sequence>
<element name="description" type="xsd:string"/>
<any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded" />
</sequence>
<attribute name="enabled" type="xsd:boolean" use="optional" default="true"/>
<attribute name="id" type="xsd:string" use="optional"/>
<anyAttribute namespace="##other" processContents="lax"/>
</complexType>
</schema>

View File

@ -1,170 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<schema
elementFormDefault="qualified"
attributeFormDefault="unqualified"
xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:identity="http://docs.openstack.org/identity/api/v2.0"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://docs.openstack.org/identity/api/v2.0"
>
<include schemaLocation="roles.xsd"/>
<!-- Elements -->
<element name="passwordCredentials" type="identity:PasswordCredentials"/>
<element name="auth" type="identity:AuthData"/>
<!-- Complex Types -->
<complexType name="Credentials" abstract="true" />
<complexType name="PasswordCredentials">
<complexContent>
<extension base="identity:Credentials">
<sequence>
<any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded" />
</sequence>
<attribute name="password" type="xsd:string" use="required" />
<attribute name="username" type="xsd:string" use="required" />
<attribute name="tenantId" type="xsd:string" use="optional" />
<anyAttribute namespace="##other" processContents="lax"/>
</extension>
</complexContent>
</complexType>
<complexType name="AuthData">
<sequence>
<element name="token" type="identity:Token"/>
<element name="user" type="identity:User"/>
<element name="serviceCatalog" type="identity:ServiceCatalog"/>
<any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded" />
</sequence>
<anyAttribute namespace="##other" processContents="lax"/>
</complexType>
<complexType name="Token">
<sequence>
<any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded" />
</sequence>
<attribute name="expires" type="xsd:dateTime" use="required"/>
<attribute name="id" type="xsd:string" use="required"/>
<anyAttribute namespace="##other" processContents="lax"/>
</complexType>
<complexType name="User">
<sequence>
<element name="groups" type="identity:Groups" />
<element name="roleRefs" type="identity:RoleRefList" />
<any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded" />
</sequence>
<attribute name="tenantId" type="xsd:string"/>
<attribute name="username" type="xsd:string"/>
<anyAttribute namespace="##other" processContents="lax"/>
</complexType>
<complexType name="Groups">
<sequence>
<element name="group" type="identity:Group" maxOccurs="1000"/>
<any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded" />
</sequence>
<anyAttribute namespace="##other" processContents="lax"/>
</complexType>
<complexType name="Group">
<attribute name="id" type="xsd:string" use="required"/>
<attribute name="tenantId" type="xsd:string" use="optional"/>
<anyAttribute namespace="##other" processContents="lax"/>
</complexType>
<complexType name="ServiceCatalog">
<sequence>
<element name="service" type="identity:Service" minOccurs="1" maxOccurs="unbounded">
<annotation>
<xsd:documentation
xml:lang="EN"
xmlns="http://www.w3.org/1999/xhtml">
<p>
A list of services.
</p>
</xsd:documentation>
</annotation>
</element>
</sequence>
<anyAttribute namespace="##other" processContents="lax"/>
</complexType>
<complexType name="Service">
<sequence>
<element name="endpoint" type="identity:Endpoint" minOccurs="1" maxOccurs="unbounded">
<annotation>
<xsd:documentation
xml:lang="EN"
xmlns="http://www.w3.org/1999/xhtml">
<p>
A list of endpoints.
</p>
</xsd:documentation>
</annotation>
</element>
</sequence>
<attribute name="name" type="xsd:ID" use="required">
<annotation>
<xsd:documentation
xml:lang="EN"
xmlns="http://www.w3.org/1999/xhtml">
<p>
The service name.
</p>
</xsd:documentation>
</annotation>
</attribute>
<anyAttribute namespace="##other" processContents="lax"/>
</complexType>
<complexType name="Endpoint">
<attribute name="region" type="xsd:string" use="optional">
<annotation>
<xsd:documentation
xml:lang="EN"
xmlns="http://www.w3.org/1999/xhtml">
<p>
The airport code of the region where the endpoint
lives.
</p>
</xsd:documentation>
</annotation>
</attribute>
<attribute name="publicURL" type="xsd:anyURI" use="required">
<annotation>
<xsd:documentation
xml:lang="EN"
xmlns="http://www.w3.org/1999/xhtml">
<p>
The publically accessible service URL.
</p>
</xsd:documentation>
</annotation>
</attribute>
<attribute name="internalURL" type="xsd:anyURI" use="optional">
<annotation>
<xsd:documentation
xml:lang="EN"
xmlns="http://www.w3.org/1999/xhtml">
<p>
A service URL, accessible only within the
Rackspace Cloud.
</p>
</xsd:documentation>
</annotation>
</attribute>
<attribute name="adminURL" type="xsd:anyURI" use="optional">
<annotation>
<xsd:documentation
xml:lang="EN"
xmlns="http://www.w3.org/1999/xhtml">
<p>
A service URL used for administration. This may expose
additional functionality not found in the public and
internal URL.
</p>
</xsd:documentation>
</annotation>
</attribute>
<anyAttribute namespace="##other" processContents="lax"/>
</complexType>
</schema>

View File

@ -1,100 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="../xslt/schema.xslt"?>
<!-- (C) 2010 Rackspace Hosting, All Rights Reserved -->
<schema
elementFormDefault="qualified"
attributeFormDefault="unqualified"
xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:identity="http://docs.openstack.org/identity/api/v2.0"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning"
xmlns:atom="http://www.w3.org/2005/Atom"
targetNamespace="http://docs.openstack.org/identity/api/v2.0"
>
<!-- Import ATOM specific schema definitions -->
<import vc:minVersion="1.1" namespace="http://www.w3.org/2005/Atom"
schemaLocation="atom/atom.xsd" />
<element name="users" type="identity:UserList" >
<annotation>
<xsd:documentation
xml:lang="EN"
xmlns="http://www.w3.org/2001/XMLSchema">
<p>
A list of Users.
</p>
</xsd:documentation>
</annotation>
</element>
<element name="user" type="identity:User">
<annotation>
<xsd:documentation
xml:lang="EN"
xmlns="http://www.w3.org/2001/XMLSchema">
<p>
A Keystone User.
</p>
</xsd:documentation>
</annotation>
</element>
<!-- Complex Types -->
<complexType name="User">
<attribute name="id" type="xsd:ID" use="optional"/>
<attribute name="password" type="xsd:string" use="optional"/>
<attribute name="tenantId" type="xsd:string" use="optional"/>
<attribute name="email" type="xsd:string" use="optional"/>
<attribute name="enabled" type="xsd:boolean" default="true" use="optional"/>
<anyAttribute namespace="##other" processContents="lax"/>
</complexType>
<complexType name="UserWithOnlyEnabled">
<complexContent>
<restriction base="identity:User">
<attribute name="id" type="xsd:ID" use="prohibited"/>
<attribute name="password" type="xsd:string" use="prohibited"/>
<attribute name="tenantId" type="xsd:string" use="prohibited"/>
<attribute name="email" type="xsd:string" use="prohibited"/>
<attribute name="enabled" type="xsd:boolean" use="required"/>
</restriction>
</complexContent>
</complexType>
<complexType name="UserWithOnlyPassword">
<complexContent>
<restriction base="identity:User">
<attribute name="id" type="xsd:ID" use="prohibited"/>
<attribute name="tenantId" type="xsd:string" use="prohibited"/>
<attribute name="email" type="xsd:string" use="prohibited"/>
<attribute name="enabled" type="xsd:boolean" use="prohibited"/>
<attribute name="password" type="xsd:string" use="required"/>
</restriction>
</complexContent>
</complexType>
<complexType name="UserWithOnlyTenant">
<complexContent>
<restriction base="identity:User">
<attribute name="id" type="xsd:ID" use="prohibited"/>
<attribute name="email" type="xsd:string" use="prohibited"/>
<attribute name="enabled" type="xsd:boolean" use="prohibited"/>
<attribute name="password" type="xsd:string" use="prohibited"/>
<attribute name="tenantId" type="xsd:string" use="required"/>
</restriction>
</complexContent>
</complexType>
<complexType name="UserList">
<sequence>
<element name="user" type="identity:User" minOccurs="0" maxOccurs="unbounded"/>
<element vc:minVersion="1.1" ref="atom:link" minOccurs="0" maxOccurs="unbounded" />
<any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded" />
</sequence>
<anyAttribute namespace="##other" processContents="lax"/>
</complexType>
</schema>

View File

@ -1,200 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema elementFormDefault="qualified" attributeFormDefault="unqualified"
targetNamespace="http://docs.openstack.org/common/api/v1.0"
xmlns:vers="http://docs.openstack.org/common/api/v1.0"
xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning"
xmlns:html="http://www.w3.org/1999/xhtml"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
<!-- Import ATOM specific schema definitions -->
<xs:import namespace="http://www.w3.org/2005/Atom" schemaLocation="atom/atom.xsd" />
<!-- Multiple choices -->
<xs:element name="choices" type="vers:VersionChoiceList" />
<!-- Versioning -->
<xs:element name="versions" type="vers:VersionChoiceList" />
<xs:element name="version" type="vers:VersionChoice" vc:minVersion="1.0" vc:maxVersion="1.1"/>
<xs:element name="version" type="vers:VersionChoiceRoot" vc:minVersion="1.1"/>
<!-- Types -->
<xs:simpleType name="VersionStatus">
<xs:annotation>
<xs:documentation>
<html:p>
The VersionStatus type describes a service's operational status.
</html:p>
</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:enumeration value="DEPRECATED" />
<xs:enumeration value="ALPHA" />
<xs:enumeration value="BETA" />
<xs:enumeration value="CURRENT" />
</xs:restriction>
</xs:simpleType>
<xs:complexType name="VersionChoiceList">
<xs:annotation>
<xs:documentation>
<html:p>
A version choice list outlines a collection of service version choices.
</html:p>
</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="version" type="vers:VersionChoice" minOccurs="1" maxOccurs="unbounded" />
<xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded" />
</xs:sequence>
<xs:anyAttribute namespace="##other" processContents="lax"/>
<xs:assert vc:minVersion="1.1" test="every $v in vers:version satisfies $v/atom:link[@rel='self']">
<xs:annotation>
<xs:documentation>
<html:p>
In version lists, every single version must
contain at least one self link.
</html:p>
</xs:documentation>
</xs:annotation>
</xs:assert>
</xs:complexType>
<xs:complexType name="VersionChoiceRoot" vc:minVersion="1.1">
<xs:complexContent>
<xs:extension base="vers:VersionChoice">
<xs:assert test="atom:link[@rel='describedby']">
<xs:annotation>
<xs:documentation>
<html:p>
When used as a root element, a version choice
must contain at least one describedby link.
</html:p>
</xs:documentation>
</xs:annotation>
</xs:assert>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="VersionChoice">
<xs:annotation>
<xs:documentation>
<html:p>
A version choice contains relevant information about an available service
that a user can then use to target a specific version of the service. Note
that both the descriptive media types and the atom link references are
not manditory and are offered as message enrichment elements rather
than message requirements.
</html:p>
</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="media-types" type="vers:MediaTypeList" minOccurs="0" maxOccurs="1" />
<xs:element vc:minVersion="1.1" ref="atom:link" minOccurs="0" maxOccurs="unbounded" />
<xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded" />
</xs:sequence>
<xs:attribute name="id" type="xs:string" use="required">
<xs:annotation>
<xs:documentation>
<html:p>
The ID of a version choice represents the service version's unique
identifier. This ID is guaranteed to be unique only among the
service version choices outlined in the VersionChoiceList.
</html:p>
</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="status" type="vers:VersionStatus" use="required">
<xs:annotation>
<xs:documentation>
<html:p>
A version choice's status describes the current operational state of
the given service version. The operational status is captured in a
simple type enumeration called VersionStatus.
</html:p>
</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="updated" type="xs:dateTime" use="optional">
<xs:annotation>
<xs:documentation>
<html:p>
A version choice's updated attribute describes
the time when the version was updated. The
time should be updated anytime
<html:strong>anything</html:strong> in the
version has changed: documentation,
extensions, bug fixes.
</html:p>
</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:anyAttribute namespace="##other" processContents="lax"/>
</xs:complexType>
<xs:complexType name="MediaTypeList">
<xs:annotation>
<xs:documentation>
<html:p>
A MediaTypeList outlines a collection of valid media types for a given
service version.
</html:p>
</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="media-type" type="vers:MediaType" minOccurs="1" maxOccurs="unbounded" />
<xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded" />
</xs:sequence>
<xs:anyAttribute namespace="##other" processContents="lax"/>
</xs:complexType>
<xs:complexType name="MediaType">
<xs:annotation>
<xs:documentation>
<html:p>
A MediaType describes what content types the service version understands.
</html:p>
</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded" />
</xs:sequence>
<xs:attribute name="base" type="xs:string" use="optional" default="">
<xs:annotation>
<xs:documentation>
<html:p>
The base of a given media type describes the simple MIME type
that then a more complicated media type can be derived from. These
types are basic and provide no namespace or version specific
data are are only provided as a convenience. Because of this the
base attribute is declared as optional.
</html:p>
</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="type" type="xs:string" use="required">
<xs:annotation>
<xs:documentation>
<html:p>
The type attribute of a MediaType describes the MIME specific
identifier of the media type in question. This identifier should include
a vendor namespace (
<html:a href="http://tools.ietf.org/html/rfc2048">See RFC 2048</html:a>)
as well as a version suffix.
</html:p>
</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:anyAttribute namespace="##other" processContents="lax"/>
</xs:complexType>
</xs:schema>