~ubuntu-branches/ubuntu/saucy/keystone/saucy-proposed

« back to all changes in this revision

Viewing changes to keystone/content/admin/xsd/services.xsd

  • Committer: Bazaar Package Importer
  • Author(s): Chuck Short
  • Date: 2011-08-23 10:18:22 UTC
  • Revision ID: james.westby@ubuntu.com-20110823101822-enve6zceb3lqhuvj
Tags: upstream-1.0~d4~20110823.1078
ImportĀ upstreamĀ versionĀ 1.0~d4~20110823.1078

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) 2011 OpenStack LLC., All Rights Reserved -->
 
5
 
 
6
<schema
 
7
    elementFormDefault="qualified"
 
8
    attributeFormDefault="unqualified"
 
9
    xmlns="http://www.w3.org/2001/XMLSchema"
 
10
    xmlns:identity="http://docs.openstack.org/identity/api/v2.0"
 
11
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
 
12
    xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning"
 
13
    xmlns:xsdxt="http://docs.rackspacecloud.com/xsd-ext/v1.0"
 
14
    xmlns:atom="http://www.w3.org/2005/Atom"
 
15
    targetNamespace="http://docs.openstack.org/identity/api/v2.0"
 
16
>
 
17
 
 
18
    <!-- Import ATOM specific schema definitions -->
 
19
    <import vc:minVersion="1.1" namespace="http://www.w3.org/2005/Atom"
 
20
            schemaLocation="atom/atom.xsd" />
 
21
 
 
22
    <!-- Elements -->
 
23
    <element name="services" type="identity:ServiceList">
 
24
        <annotation>
 
25
            <xsd:documentation
 
26
                    xml:lang="EN"
 
27
                    xmlns="http://www.w3.org/1999/xhtml">
 
28
                <p>
 
29
                    A list of services.
 
30
                </p>
 
31
            </xsd:documentation>
 
32
        </annotation>
 
33
    </element>
 
34
    
 
35
    <element name="service" type="identity:Service"  >
 
36
        <annotation>
 
37
            <xsd:documentation
 
38
                    xml:lang="EN"
 
39
                    xmlns="http://www.w3.org/1999/xhtml">
 
40
                <p>
 
41
                    A service.
 
42
                </p>
 
43
            </xsd:documentation>
 
44
        </annotation>
 
45
    </element>
 
46
    
 
47
    
 
48
    <!-- Complex Types -->
 
49
    <complexType name="Service">
 
50
        <attribute name="id" type="xsd:string" use="required"/>
 
51
        <attribute name="type" type="identity:ExtensibleServiceType" use="required"/>
 
52
        <attribute name="description" type="xsd:string"  use="optional"/>
 
53
        <anyAttribute namespace="##other" processContents="lax"/>
 
54
    </complexType>
 
55
    
 
56
    <complexType name="ServiceList">
 
57
        <sequence>
 
58
            <element name="service" type="identity:Service" minOccurs="0" maxOccurs="unbounded"/>
 
59
            <element vc:minVersion="1.1" ref="atom:link" minOccurs="0" maxOccurs="unbounded" />
 
60
            <any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded" />
 
61
        </sequence>
 
62
        <anyAttribute namespace="##other" processContents="lax"/>
 
63
    </complexType>
 
64
 
 
65
    <!-- Simple Types -->
 
66
    <simpleType name="ExtensibleServiceType">
 
67
        <annotation>
 
68
            <xsd:documentation
 
69
                xml:lang="EN"
 
70
                xmlns="http://www.w3.org/1999/xhtml">
 
71
                <p>
 
72
                    An extensible service type allows all of the
 
73
                    strings defined in <a href="#type_ServiceType"
 
74
                        title="See definition of
 
75
                        ServiceType">ServiceType</a> or an
 
76
                    alias prefixed status.
 
77
                </p>
 
78
            </xsd:documentation>
 
79
        </annotation>
 
80
        <union memberTypes="identity:ServiceType identity:ExtendedService"/>
 
81
    </simpleType>
 
82
 
 
83
    <simpleType name="ServiceType">
 
84
        <restriction base="xsd:string">
 
85
            <enumeration value="compute">
 
86
                <annotation>
 
87
                    <xsd:documentation
 
88
                        xml:lang="EN"
 
89
                        xmlns="http://www.w3.org/1999/xhtml">
 
90
                        <p>
 
91
                            The type for an OpenStack Compute API 1.1 compatible service.
 
92
                        </p>
 
93
                    </xsd:documentation>
 
94
                </annotation>
 
95
            </enumeration>
 
96
            <enumeration value="object-store">
 
97
                <annotation>
 
98
                    <xsd:documentation
 
99
                        xml:lang="EN"
 
100
                        xmlns="http://www.w3.org/1999/xhtml">
 
101
                        <p>
 
102
                            The type for a Swift-compatible service.
 
103
                        </p>
 
104
                    </xsd:documentation>
 
105
                </annotation>
 
106
            </enumeration>
 
107
            <enumeration value="image-service">
 
108
                <annotation>
 
109
                    <xsd:documentation
 
110
                        xml:lang="EN"
 
111
                        xmlns="http://www.w3.org/1999/xhtml">
 
112
                        <p>
 
113
                            The type for a Glance-compatible service
 
114
                        </p>
 
115
                    </xsd:documentation>
 
116
                </annotation>
 
117
            </enumeration>
 
118
            <enumeration value="identity">
 
119
                <annotation>
 
120
                    <xsd:documentation
 
121
                        xml:lang="EN"
 
122
                        xmlns="http://www.w3.org/1999/xhtml">
 
123
                        <p>
 
124
                            The type for a Keystone-compatible service.
 
125
                        </p>
 
126
                    </xsd:documentation>
 
127
                </annotation>
 
128
            </enumeration>
 
129
        </restriction>
 
130
    </simpleType>
 
131
    
 
132
    <simpleType name="ExtendedService">
 
133
        <annotation>
 
134
            <xsd:documentation
 
135
                xml:lang="EN"
 
136
                xmlns="http://www.w3.org/1999/xhtml">
 
137
                <p>
 
138
                    A non-core service type which must contain an extension prefix.
 
139
                </p>
 
140
            </xsd:documentation>
 
141
        </annotation>
 
142
        <restriction base="xsd:string">
 
143
            <pattern value="(\w|-)+:\w+"/>
 
144
        </restriction>
 
145
    </simpleType>
 
146
</schema>
 
 
b'\\ No newline at end of file'