Revision created by MOE tool push_codebase.
[gae.git] / java / src / main / com / google / appengine / tools / development / appengine-web.xsd
blobea439b0ad76fc5ec7d86aff974af04db71b56867
1 <?xml version="1.0" encoding="UTF-8"?>
2 <xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="http://appengine.google.com/ns/1.0" xmlns:xs="http://www.w3.org/2001/XMLSchema">
3 <xs:element name="appengine-web-app" type="ns:appengine-web-appType" xmlns:ns="http://appengine.google.com/ns/1.0"/>
4 <xs:complexType name="env-varType">
5 <xs:simpleContent>
6 <xs:extension base="xs:string">
7 <xs:attribute type="xs:string" name="name" use="required"/>
8 <xs:attribute type="xs:string" name="value" use="required"/>
9 </xs:extension>
10 </xs:simpleContent>
11 </xs:complexType>
12 <xs:complexType name="system-propertiesType">
13 <xs:sequence>
14 <xs:element type="ns:propertyType" name="property" maxOccurs="unbounded" minOccurs="0" xmlns:ns="http://appengine.google.com/ns/1.0"/>
15 </xs:sequence>
16 </xs:complexType>
17 <xs:complexType name="propertyType">
18 <xs:simpleContent>
19 <xs:extension base="xs:string">
20 <xs:attribute type="xs:string" name="name" use="required"/>
21 <xs:attribute type="xs:string" name="value" use="required"/>
22 </xs:extension>
23 </xs:simpleContent>
24 </xs:complexType>
25 <xs:complexType name="vm-settingsType">
26 <xs:sequence>
27 <xs:element type="ns:settingType" name="setting" maxOccurs="unbounded" minOccurs="0" xmlns:ns="http://appengine.google.com/ns/1.0"/>
28 </xs:sequence>
29 </xs:complexType>
30 <xs:complexType name="settingType">
31 <xs:simpleContent>
32 <xs:extension base="xs:string">
33 <xs:attribute type="xs:string" name="name" use="required"/>
34 <xs:attribute type="xs:string" name="value" use="required"/>
35 </xs:extension>
36 </xs:simpleContent>
37 </xs:complexType>
38 <xs:complexType name="asyncSessionPersistenceType">
39 <xs:simpleContent>
40 <xs:extension base="xs:string">
41 <xs:attribute type="xs:boolean" name="enabled" use="required"/>
42 <xs:attribute type="xs:string" name="queue-name" use="optional"/>
43 </xs:extension>
44 </xs:simpleContent>
45 </xs:complexType>
46 <xs:complexType name="appengine-web-appType">
47 <xs:all>
48 <xs:element type="xs:string" name="application" minOccurs="0"/>
49 <xs:element type="xs:string" name="version" minOccurs="0"/>
50 <xs:element type="xs:string" name="source-language" minOccurs="0"/>
51 <xs:element type="xs:string" name="module" minOccurs="0"/>
52 <xs:element type="xs:string" name="instance-class" minOccurs="0"/>
53 <xs:element type="ns:automatic-scaling-type" name="automatic-scaling" minOccurs="0" xmlns:ns="http://appengine.google.com/ns/1.0"/>
54 <xs:element type="ns:manual-scaling-type" name="manual-scaling" minOccurs="0" xmlns:ns="http://appengine.google.com/ns/1.0"/>
55 <xs:element type="ns:basic-scaling-type" name="basic-scaling" minOccurs="0" xmlns:ns="http://appengine.google.com/ns/1.0"/>
56 <xs:element type="ns:static-filesType" name="static-files" minOccurs="0" xmlns:ns="http://appengine.google.com/ns/1.0"/>
57 <xs:element type="ns:resource-filesType" name="resource-files" minOccurs="0" xmlns:ns="http://appengine.google.com/ns/1.0"/>
58 <xs:element type="ns:system-propertiesType" name="system-properties" minOccurs="0" xmlns:ns="http://appengine.google.com/ns/1.0"/>
59 <xs:element type="ns:vm-settingsType" name="vm-settings" minOccurs="0" xmlns:ns="http://appengine.google.com/ns/1.0"/>
60 <xs:element type="ns:vm-health-checkType" name="vm-health-check" minOccurs="0" xmlns:ns="http://appengine.google.com/ns/1.0"/>
61 <xs:element type="ns:env-variablesType" name="env-variables" minOccurs="0" xmlns:ns="http://appengine.google.com/ns/1.0"/>
62 <xs:element type="xs:boolean" name="ssl-enabled" minOccurs="0" xmlns:ns="http://appengine.google.com/ns/1.0"/>
63 <xs:element type="xs:boolean" name="sessions-enabled" minOccurs="0" xmlns:ns="http://appengine.google.com/ns/1.0"/>
64 <xs:element type="ns:asyncSessionPersistenceType" name="async-session-persistence" minOccurs="0" xmlns:ns="http://appengine.google.com/ns/1.0"/>
65 <xs:element type="ns:userPermissionsType" name="user-permissions" minOccurs="0" xmlns:ns="http://appengine.google.com/ns/1.0"/>
66 <xs:element type="xs:string" name="public-root" minOccurs="0"/>
67 <xs:element type="ns:inboundServicesType" name="inbound-services" minOccurs="0" xmlns:ns="http://appengine.google.com/ns/1.0"/>
68 <xs:element type="xs:boolean" name="precompilation-enabled" minOccurs="0" xmlns:ns="http://appengine.google.com/ns/1.0"/>
69 <xs:element type="ns:admin-console" name="admin-console" minOccurs="0" xmlns:ns="http://appengine.google.com/ns/1.0"/>
70 <xs:element type="ns:static-error-handlers" name="static-error-handlers" minOccurs="0" xmlns:ns="http://appengine.google.com/ns/1.0"/>
71 <xs:element type="xs:boolean" name="warmup-requests-enabled" minOccurs="0" xmlns:ns="http://appengine.google.com/ns/1.0"/>
72 <xs:element type="xs:boolean" name="threadsafe" minOccurs="0" xmlns:ns="http://appengine.google.com/ns/1.0"/>
73 <xs:element type="xs:string" name="auto-id-policy" minOccurs="0" xmlns:ns="http://appengine.google.com/ns/1.0"/>
74 <xs:element type="xs:boolean" name="code-lock" minOccurs="0" xmlns:ns="http://appengine.google.com/ns/1.0"/>
75 <xs:element type="xs:boolean" name="vm" minOccurs="0" xmlns:ns="http://appengine.google.com/ns/1.0"/>
76 <xs:element type="ns:pagespeedType" name="pagespeed" minOccurs="0" xmlns:ns="http://appengine.google.com/ns/1.0"/>
77 <xs:element type="ns:classLoaderConfigType" name="class-loader-config" minOccurs="0" xmlns:ns="http://appengine.google.com/ns/1.0"/>
78 <xs:element type="ns:urlStreamHandlerType" name="url-stream-handler" minOccurs="0" xmlns:ns="http://appengine.google.com/ns/1.0"/>
79 <xs:element type="xs:boolean" name="use-google-connector-j" minOccurs="0" xmlns:ns="http://appengine.google.com/ns/1.0"/>
80 </xs:all>
81 </xs:complexType>
82 <xs:complexType name="env-variablesType">
83 <xs:sequence>
84 <xs:element type="ns:env-varType" name="env-var" maxOccurs="unbounded" minOccurs="0" xmlns:ns="http://appengine.google.com/ns/1.0"/>
85 </xs:sequence>
86 </xs:complexType>
87 <xs:complexType name="includeType">
88 <xs:attribute type="xs:string" name="path" use="required"/>
89 </xs:complexType>
90 <!-- Adds two things to includeType: expiration attribute, and http-header children -->
91 <xs:complexType name="staticIncludeType">
92 <xs:complexContent>
93 <xs:extension base="ns:includeType" xmlns:ns="http://appengine.google.com/ns/1.0">
94 <xs:sequence>
95 <xs:element type="ns:http-headerType" name="http-header" minOccurs="0" maxOccurs="unbounded" xmlns:ns="http://appengine.google.com/ns/1.0"/>
96 </xs:sequence>
97 <xs:attribute type="ns:expirationType" name="expiration" use="optional" xmlns:ns="http://appengine.google.com/ns/1.0"/>
98 </xs:extension>
99 </xs:complexContent>
100 </xs:complexType>
101 <!-- See RFC 2616 for what constitutes valid HTTP header names and values. -->
102 <xs:complexType name="http-headerType">
103 <xs:attribute type="xs:string" name="name" use="required"/>
104 <xs:attribute type="xs:string" name="value" use="required"/>
105 </xs:complexType>
106 <xs:complexType name="resource-filesType">
107 <xs:sequence>
108 <xs:element type="ns:includeType" name="include" maxOccurs="unbounded" minOccurs="0" xmlns:ns="http://appengine.google.com/ns/1.0"/>
109 <xs:element type="ns:excludeType" name="exclude" maxOccurs="unbounded" minOccurs="0" xmlns:ns="http://appengine.google.com/ns/1.0"/>
110 </xs:sequence>
111 </xs:complexType>
112 <xs:complexType name="automatic-scaling-type">
113 <xs:all>
114 <xs:element type="xs:string" name="min-pending-latency" minOccurs="0"/>
115 <xs:element type="xs:string" name="max-pending-latency" minOccurs="0"/>
116 <xs:element type="xs:string" name="min-idle-instances" minOccurs="0"/>
117 <xs:element type="xs:string" name="max-idle-instances" minOccurs="0"/>
118 <xs:element type="xs:string" name="max-concurrent-requests" minOccurs="0"/>
119 </xs:all>
120 </xs:complexType>
121 <xs:complexType name="vm-health-checkType">
122 <xs:all>
123 <xs:element type="xs:boolean" name="enable-health-check" minOccurs="0"/>
124 <xs:element type="xs:unsignedInt" name="check-interval-sec" minOccurs="0"/>
125 <xs:element type="xs:unsignedInt" name="timeout-sec" minOccurs="0"/>
126 <xs:element type="xs:unsignedInt" name="unhealthy-threshold" minOccurs="0"/>
127 <xs:element type="xs:unsignedInt" name="healthy-threshold" minOccurs="0"/>
128 <xs:element type="xs:unsignedInt" name="restart-threshold" minOccurs="0"/>
129 <xs:element type="xs:string" name="host" minOccurs="0"/>
130 </xs:all>
131 </xs:complexType>
132 <xs:complexType name="manual-scaling-type">
133 <xs:all>
134 <xs:element type="xs:string" name="instances"/>
135 </xs:all>
136 </xs:complexType>
137 <xs:complexType name="basic-scaling-type">
138 <xs:all>
139 <xs:element type="xs:string" name="max-instances"/>
140 <xs:element type="xs:string" name="idle-timeout" minOccurs="0"/>
141 </xs:all>
142 </xs:complexType>
143 <xs:complexType name="static-filesType">
144 <xs:sequence>
145 <xs:element type="ns:staticIncludeType" name="include" maxOccurs="unbounded" minOccurs="0" xmlns:ns="http://appengine.google.com/ns/1.0"/>
146 <xs:element type="ns:excludeType" name="exclude" maxOccurs="unbounded" minOccurs="0" xmlns:ns="http://appengine.google.com/ns/1.0"/>
147 </xs:sequence>
148 </xs:complexType>
149 <xs:complexType name="excludeType">
150 <xs:attribute type="xs:string" name="path" use="required"/>
151 </xs:complexType>
152 <xs:complexType name="userPermissionsType">
153 <xs:sequence>
154 <xs:element type="ns:permissionType" name="permission" maxOccurs="unbounded" minOccurs="0" xmlns:ns="http://appengine.google.com/ns/1.0"/>
155 </xs:sequence>
156 </xs:complexType>
157 <xs:complexType name="permissionType">
158 <xs:simpleContent>
159 <xs:extension base="xs:string">
160 <xs:attribute type="xs:string" name="class" use="required"/>
161 <xs:attribute type="xs:string" name="name" use="required"/>
162 <xs:attribute type="xs:string" name="actions" use="optional"/>
163 </xs:extension>
164 </xs:simpleContent>
165 </xs:complexType>
166 <xs:complexType name="inboundServicesType">
167 <xs:sequence>
168 <xs:element type="xs:string" name="service" maxOccurs="unbounded" minOccurs="0" xmlns:ns="http://appengine.google.com/ns/1.0"/>
169 </xs:sequence>
170 </xs:complexType>
171 <xs:simpleType name="expirationType">
172 <xs:restriction base="xs:string">
173 <xs:pattern value="\s*(([0-9]+)([DdHhMm]|[sS]?))(\s+([0-9]+)([DdHhMm]|[sS]?))*\s*"/>
174 </xs:restriction>
175 </xs:simpleType>
176 <xs:complexType name="admin-console">
177 <xs:sequence>
178 <xs:element type="ns:admin-console-pageType" name="page" maxOccurs="unbounded" minOccurs="0" xmlns:ns="http://appengine.google.com/ns/1.0"/>
179 </xs:sequence>
180 </xs:complexType>
181 <xs:complexType name="admin-console-pageType">
182 <xs:simpleContent>
183 <xs:extension base="xs:string">
184 <xs:attribute type="xs:string" name="name" use="required"/>
185 <xs:attribute type="xs:string" name="url" use="required"/>
186 </xs:extension>
187 </xs:simpleContent>
188 </xs:complexType>
189 <xs:complexType name="static-error-handlers">
190 <xs:sequence>
191 <xs:element type="ns:static-error-handlers-handler" name="handler" maxOccurs="unbounded" minOccurs="0" xmlns:ns="http://appengine.google.com/ns/1.0"/>
192 </xs:sequence>
193 </xs:complexType>
194 <xs:complexType name="static-error-handlers-handler">
195 <xs:simpleContent>
196 <xs:extension base="xs:string">
197 <xs:attribute type="xs:string" name="file" use="required"/>
198 <xs:attribute type="xs:string" name="error-code" use="optional"/>
199 </xs:extension>
200 </xs:simpleContent>
201 </xs:complexType>
202 <xs:complexType name="pagespeedType">
203 <xs:choice maxOccurs="unbounded" minOccurs="0">
204 <xs:element type="xs:string" name="url-blacklist"/>
205 <xs:element type="xs:string" name="domain-to-rewrite"/>
206 <xs:element type="xs:string" name="enabled-rewriter"/>
207 <xs:element type="xs:string" name="disabled-rewriter"/>
208 </xs:choice>
209 </xs:complexType>
210 <xs:complexType name="classLoaderConfigType">
211 <xs:sequence>
212 <xs:element type="ns:prioritySpecifierType" name="priority-specifier" maxOccurs="unbounded" minOccurs="1"/>
213 </xs:sequence>
214 </xs:complexType>
215 <xs:complexType name="prioritySpecifierType">
216 <xs:simpleContent>
217 <xs:extension base="xs:string">
218 <xs:attribute type="xs:string" name="filename" use="required"/>
219 <xs:attribute type="xs:double" name="priority" use="optional"/>
220 </xs:extension>
221 </xs:simpleContent>
222 </xs:complexType>
223 <xs:simpleType name="urlStreamHandlerType">
224 <xs:restriction base="xs:string">
225 <xs:pattern value="urlfetch|native"/>
226 </xs:restriction>
227 </xs:simpleType>
228 </xs:schema>