AT&T 2.0.19 Code drop, stage 3
[aaf/authz.git] / auth / auth-locate / src / main / xsd / locate_1_0.xsd
1 <!-- 
2  * ============LICENSE_START====================================================
3  * org.onap.aaf
4  * ===========================================================================
5  * Copyright (c) 2018 AT&T Intellectual Property. All rights reserved.
6  * ===========================================================================
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  * ============LICENSE_END====================================================
19  *
20 -->
21 <xs:schema 
22         xmlns:xs="http://www.w3.org/2001/XMLSchema" 
23         xmlns:locate_local="urn:locate_local:v1_0" 
24         targetNamespace="urn:locate_local:v1_0" 
25         elementFormDefault="qualified">
26         
27
28 <!-- 
29         Requests
30  -->
31         <xs:complexType name="Request">
32                 <xs:sequence>
33                 </xs:sequence>
34         </xs:complexType>
35
36 <!-- 
37         In 
38 -->     
39         <xs:element name="inRequest">
40                 <xs:complexType>
41                         <xs:complexContent>
42                                 <xs:extension base="locate_local:Request">
43                                         <xs:sequence>
44                                                 <xs:element name="name" type="xs:string"/>
45                                                 <xs:element name="action" type="xs:string"/>
46                                         </xs:sequence>
47                                 </xs:extension>
48                         </xs:complexContent>
49                 </xs:complexType>
50         </xs:element>
51
52
53 <!-- 
54         Out 
55 -->     
56         <xs:element name="out">
57                 <xs:complexType>
58                         <xs:sequence>
59                                 <xs:element name="name" type="xs:string"/>
60                         </xs:sequence>
61                 </xs:complexType>
62         </xs:element>
63
64 <!--  **************** STANDARD ELEMENTS ******************* -->
65 <!--
66         Errors
67         Note: This Error Structure has been made to conform to the AT&T TSS Policies
68  -->
69         <xs:element name="error">
70                 <xs:complexType>
71                         <xs:sequence>
72                                 <!--
73                                 Unique message identifier of the format ‘ABCnnnn’ where ‘ABC’ is
74                                         either ‘SVC’ for Service Exceptions or ‘POL’ for Policy Exception.
75                                         Exception numbers may be in the range of 0001 to 9999 where :
76                                         * 0001 to 0199 are reserved for common exception messages
77                                         * 0200 to 0999 are reserved for Parlay Web Services specification use
78                                         * 1000-9999 are available for exceptions 
79                                  -->
80                                 <xs:element name="messageId" type="xs:string" minOccurs="1" maxOccurs="1"/>
81                                 
82                                 <!-- 
83                                 Message text, with replacement
84                                         variables marked with %n, where n is
85                                         an index into the list of <variables>
86                                         elements, starting at 1
87                                  -->
88                                 <xs:element name="text" type="xs:string" minOccurs="1" maxOccurs="1"/>
89                                 
90                                 <!-- 
91                                 List of zero or more strings that
92                                         represent the contents of the variables
93                                         used by the message text. -->
94                                 <xs:element name="variables" type="xs:string" minOccurs="0" maxOccurs="unbounded" />
95                         </xs:sequence>
96                 </xs:complexType>
97         </xs:element>
98         
99 <!-- 
100         API 
101 -->     
102         <xs:element name="api">
103                 <xs:complexType>
104                         <xs:sequence>
105                                 <xs:element name="route" minOccurs="0" maxOccurs="unbounded">
106                                         <xs:complexType>
107                                                 <xs:sequence>
108                                                         <xs:element name="meth" type="xs:string" minOccurs="1" maxOccurs="1"/>
109                                                         <xs:element name="path" type="xs:string" minOccurs="1" maxOccurs="1"/>
110                                                         <xs:element name="param" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
111                                                         <xs:element name="desc" type="xs:string" minOccurs="1" maxOccurs="1"/>
112                                                         <xs:element name="comments" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
113                                                         <xs:element name="contentType" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
114                                                         <xs:element name="expected" type="xs:int" minOccurs="1" maxOccurs="1"/>
115                                                         <xs:element name="explicitErr" type="xs:int" minOccurs="0" maxOccurs="unbounded"/>
116                                                 </xs:sequence>  
117                                         </xs:complexType>
118                                 </xs:element>
119                         </xs:sequence>
120                 </xs:complexType>
121         </xs:element>
122 </xs:schema>