summaryrefslogtreecommitdiffstats
path: root/auth/auth-locate/src/main/xsd/locate_1_0.xsd
blob: ea7b3ccec23ee26f7a1c7dc145cac3a161995961 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
<!-- 
 * ============LICENSE_START====================================================
 * org.onap.aaf
 * ===========================================================================
 * Copyright (c) 2018 AT&T Intellectual Property. All rights reserved.
 * ===========================================================================
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * ============LICENSE_END====================================================
 *
-->
<xs:schema 
	xmlns:xs="http://www.w3.org/2001/XMLSchema" 
	xmlns:locate_local="urn:locate_local:v1_0" 
	targetNamespace="urn:locate_local:v1_0" 
	elementFormDefault="qualified">
	

<!-- 
	Requests
 -->
	<xs:complexType name="Request">
		<xs:sequence>
		</xs:sequence>
	</xs:complexType>

<!-- 
	In 
-->	
	<xs:element name="inRequest">
		<xs:complexType>
			<xs:complexContent>
				<xs:extension base="locate_local:Request">
					<xs:sequence>
						<xs:element name="name" type="xs:string"/>
						<xs:element name="action" type="xs:string"/>
					</xs:sequence>
				</xs:extension>
			</xs:complexContent>
		</xs:complexType>
	</xs:element>


<!-- 
	Out 
-->	
	<xs:element name="out">
		<xs:complexType>
			<xs:sequence>
				<xs:element name="name" type="xs:string"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>

<!--  **************** STANDARD ELEMENTS ******************* -->
<!--
	Errors
	Note: This Error Structure has been made to conform to the AT&T TSS Policies
 -->
	<xs:element name="error">
		<xs:complexType>
			<xs:sequence>
				<!--
				Unique message identifier of the format ‘ABCnnnn’ where ‘ABC’ is
					either ‘SVC’ for Service Exceptions or ‘POL’ for Policy Exception.
					Exception numbers may be in the	range of 0001 to 9999 where :
					* 0001 to 0199 are reserved for	common exception messages
					* 0200 to 0999 are reserved for Parlay Web Services specification use
					* 1000-9999 are available for exceptions 
				 -->
				<xs:element name="messageId" type="xs:string" minOccurs="1" maxOccurs="1"/>
				
				<!-- 
				Message text, with replacement
					variables marked with %n, where n is
					an index into the list of <variables>
					elements, starting at 1
				 -->
				<xs:element name="text" type="xs:string" minOccurs="1" maxOccurs="1"/>
				
				<!-- 
				List of zero or more strings that
					represent the contents of the variables
					used by the message text. -->
				<xs:element name="variables" type="xs:string" minOccurs="0" maxOccurs="unbounded" />
			</xs:sequence>
		</xs:complexType>
	</xs:element>
	
<!-- 
	API 
-->	
	<xs:element name="api">
		<xs:complexType>
			<xs:sequence>
				<xs:element name="route" minOccurs="0" maxOccurs="unbounded">
					<xs:complexType>
						<xs:sequence>
							<xs:element name="meth" type="xs:string" minOccurs="1" maxOccurs="1"/>
							<xs:element name="path" type="xs:string" minOccurs="1" maxOccurs="1"/>
							<xs:element name="param" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
							<xs:element name="desc" type="xs:string" minOccurs="1" maxOccurs="1"/>
							<xs:element name="comments" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
							<xs:element name="contentType" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
							<xs:element name="expected" type="xs:int" minOccurs="1" maxOccurs="1"/>
							<xs:element name="explicitErr" type="xs:int" minOccurs="0" maxOccurs="unbounded"/>
						</xs:sequence>	
					</xs:complexType>
				</xs:element>
			</xs:sequence>
		</xs:complexType>
	</xs:element>
</xs:schema>