149 lines
5.8 KiB
XML
149 lines
5.8 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
||
<?xml-stylesheet type="text/xsl" href="../xslt/schema.xslt"?>
|
||
|
||
<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:xsdxt="http://docs.rackspacecloud.com/xsd-ext/v1.0"
|
||
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">
|
||
<annotation>
|
||
<xsd:documentation xml:lang="EN" xmlns="http://www.w3.org/1999/xhtml">
|
||
<p>
|
||
A container used to group or isolate resources and/or identity
|
||
objects. Depending on the service operator, a tenant may map to a customer,
|
||
account, organization, or project.
|
||
</p>
|
||
</xsd:documentation>
|
||
<xsd:appinfo>
|
||
<xsdxt:samples>
|
||
<xsdxt:sample>
|
||
<xsdxt:code type="application/xml" href="../samples/tenant.xml" />
|
||
</xsdxt:sample>
|
||
<xsdxt:sample>
|
||
<xsdxt:code type="application/json" href="../samples/tenant.json" />
|
||
</xsdxt:sample>
|
||
</xsdxt:samples>
|
||
</xsd:appinfo>
|
||
</annotation>
|
||
</element>
|
||
<element name="tenants" type="identity:Tenants">
|
||
<annotation>
|
||
<xsd:documentation
|
||
xml:lang="EN"
|
||
xmlns="http://www.w3.org/1999/xhtml">
|
||
<p>
|
||
A list of tenants.
|
||
</p>
|
||
</xsd:documentation>
|
||
</annotation>
|
||
</element>
|
||
|
||
<!-- Complex Types -->
|
||
<complexType name="Tenants">
|
||
<sequence>
|
||
<element name="tenant" type="identity:Tenant" maxOccurs="100"/>
|
||
<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">
|
||
<annotation>
|
||
<xsd:documentation
|
||
xml:lang="EN"
|
||
xmlns="http://www.w3.org/1999/xhtml">
|
||
<p>
|
||
An free text description of the tenant.
|
||
</p>
|
||
</xsd:documentation>
|
||
</annotation>
|
||
</element>
|
||
<any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded" />
|
||
</sequence>
|
||
<attribute name="id" type="xsd:ID" use="optional">
|
||
<annotation>
|
||
<xsd:documentation
|
||
xml:lang="EN"
|
||
xmlns="http://www.w3.org/1999/xhtml">
|
||
<p>
|
||
An ID uniquely identifying the tenant. This usually comes from the back-end store.
|
||
</p>
|
||
</xsd:documentation>
|
||
</annotation>
|
||
</attribute>
|
||
<attribute name="name" type="xsd:string" use="optional">
|
||
<annotation>
|
||
<xsd:documentation
|
||
xml:lang="EN"
|
||
xmlns="http://www.w3.org/1999/xhtml">
|
||
<p>
|
||
The name of the tenant. This is guaranteed to be unique, but may change.
|
||
</p>
|
||
</xsd:documentation>
|
||
</annotation>
|
||
</attribute>
|
||
<attribute name="enabled" type="xsd:boolean" use="optional" default="true">
|
||
<annotation>
|
||
<xsd:documentation
|
||
xml:lang="EN"
|
||
xmlns="http://www.w3.org/1999/xhtml">
|
||
<p>
|
||
An boolean signifying if a tenant is enabled or not. A disabled tenant
|
||
cannot be authenticated against.
|
||
</p>
|
||
</xsd:documentation>
|
||
</annotation>
|
||
</attribute>
|
||
<attribute name="display-name" type="xsd:string" use="optional">
|
||
<annotation>
|
||
<xsd:documentation
|
||
xml:lang="EN"
|
||
xmlns="http://www.w3.org/1999/xhtml">
|
||
<p>
|
||
A human-readable, friendly name for use in user interfaces.
|
||
</p>
|
||
</xsd:documentation>
|
||
</annotation>
|
||
</attribute>
|
||
<attribute type="xsd:dateTime" name="updated" use="optional">
|
||
<annotation>
|
||
<xsd:documentation
|
||
xml:lang="EN"
|
||
xmlns="http://www.w3.org/1999/xhtml">
|
||
<p>
|
||
A time-stamp identifying the modification time of the
|
||
tenant.
|
||
</p>
|
||
</xsd:documentation>
|
||
</annotation>
|
||
</attribute>
|
||
<attribute type="xsd:dateTime" name="created" use="optional">
|
||
<annotation>
|
||
<xsd:documentation
|
||
xml:lang="EN"
|
||
xmlns="http://www.w3.org/1999/xhtml">
|
||
<p>
|
||
A creation time-stamp for the tenant.
|
||
</p>
|
||
</xsd:documentation>
|
||
</annotation>
|
||
</attribute>
|
||
<anyAttribute namespace="##other" processContents="lax"/>
|
||
</complexType>
|
||
</schema>
|