2 * ============LICENSE_START====================================================
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
11 * http://www.apache.org/licenses/LICENSE-2.0
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====================================================
23 xmlns:xs="http://www.w3.org/2001/XMLSchema"
24 xmlns:locate="urn:locate:v1_0"
25 targetNamespace="urn:locate:v1_0"
26 elementFormDefault="qualified">
28 <xs:complexType name="endpoint">
30 <!-- Must be set to "token" -->
31 <xs:element name="name" type="xs:string" minOccurs="1" maxOccurs="1"/>
32 <xs:element name="major" type="xs:int" minOccurs="1" maxOccurs="1"/>
33 <xs:element name="minor" type="xs:int" minOccurs="1" maxOccurs="1"/>
34 <xs:element name="patch" type="xs:int" minOccurs="1" maxOccurs="1"/>
35 <xs:element name="pkg" type="xs:int" minOccurs="1" maxOccurs="1"/>
36 <xs:element name="latitude" type="xs:float" minOccurs="1" maxOccurs="1"/>
37 <xs:element name="longitude" type="xs:float" minOccurs="1" maxOccurs="1"/>
38 <xs:element name="protocol" type="xs:string" minOccurs="1" maxOccurs="1"/>
39 <xs:element name="subprotocol" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
40 <xs:element name="hostname" type="xs:string" minOccurs="1" maxOccurs="1"/>
41 <xs:element name="port" type="xs:int" minOccurs="1" maxOccurs="1"/>
45 <xs:element name="endpoints">
48 <xs:element name="endpoint" type="locate:endpoint" minOccurs="0" maxOccurs="unbounded"/>
53 <xs:complexType name="mgmt_endpoint">
55 <xs:extension base="locate:endpoint">
57 <xs:element name="special_ports" minOccurs="0" maxOccurs="unbounded" >
60 <xs:element name="name" type="xs:string" minOccurs="1" maxOccurs="1"/>
61 <xs:element name="port" type="xs:int" minOccurs="1" maxOccurs="1"/>
62 <xs:element name="protocol" type="xs:string" minOccurs="1" maxOccurs="1"/>
63 <xs:element name="protocol_versions" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
72 <xs:element name="mgmt_endpoints">
75 <xs:element name="mgmt_endpoint" type="locate:mgmt_endpoint" minOccurs="0" maxOccurs="unbounded"/>