Improve license scan result
[externalapi/nbi.git] / docs / offeredapis / api_status / model.xsd
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3
4         Copyright (c) 2018 Orange
5
6         Licensed under the Apache License, Version 2.0 (the "License");
7         you may not use this file except in compliance with the License.
8         You may obtain a copy of the License at
9
10             http://www.apache.org/licenses/LICENSE-2.0
11
12         Unless required by applicable law or agreed to in writing, software
13         distributed under the License is distributed on an "AS IS" BASIS,
14         WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15         See the License for the specific language governing permissions and
16         limitations under the License.
17
18 -->
19 <xs:schema xmlns:xmime="http://www.w3.org/2005/05/xmlmime"
20            xmlns="http://orange.com/ONAPNBI/api/status/v4/model"
21            xmlns:xs="http://www.w3.org/2001/XMLSchema"
22            attributeFormDefault="unqualified"
23            elementFormDefault="qualified"
24            targetNamespace="http://orange.com/ONAPNBI/api/status/v4/model">
25    <xs:annotation id="signature">
26       <xs:appinfo>API Designer</xs:appinfo>
27       <xs:documentation>Model: status
28                     Version: 4.0.1
29                     Owner: ONAPNBI
30                     Generated on: 2019-03-12T16:45:47.241Z
31                     Generated by: Orange API Designer v2, model-v1</xs:documentation>
32    </xs:annotation>
33    <xs:simpleType name="StatusValue">
34       <xs:restriction base="xs:string">
35          <xs:enumeration value="ok"/>
36          <xs:enumeration value="ko"/>
37       </xs:restriction>
38    </xs:simpleType>
39    <xs:simpleType name="ComponentsName">
40       <xs:restriction base="xs:string">
41          <xs:enumeration value="sdc connectivity"/>
42          <xs:enumeration value="so connectivity"/>
43          <xs:enumeration value="aai connectivity"/>
44          <xs:enumeration value="dmaap connectivity"/>
45       </xs:restriction>
46    </xs:simpleType>
47    <xs:simpleType name="ApplicationName">
48       <xs:restriction base="xs:string">
49          <xs:enumeration value="nbi"/>
50       </xs:restriction>
51    </xs:simpleType>
52    <xs:element name="ErrorDetail" type="ErrorDetail"/>
53    <xs:complexType name="ErrorDetail">
54       <xs:sequence minOccurs="1" maxOccurs="1">
55          <xs:element name="code" type="xs:int" minOccurs="1"/>
56          <xs:element name="message" type="xs:string" minOccurs="1"/>
57          <xs:element name="description" type="xs:string" minOccurs="0"/>
58          <xs:element name="infoURL" type="xs:string" minOccurs="0"/>
59       </xs:sequence>
60    </xs:complexType>
61    <xs:element name="Error" type="Error"/>
62    <xs:complexType name="Error">
63       <xs:sequence minOccurs="1" maxOccurs="1">
64          <xs:element name="code" type="xs:int" minOccurs="1"/>
65          <xs:element name="message" type="xs:string" minOccurs="1"/>
66          <xs:element name="description" type="xs:string" minOccurs="0"/>
67          <xs:element name="infoURL" type="xs:string" minOccurs="0"/>
68          <xs:element name="details"
69                      type="ErrorDetail"
70                      minOccurs="0"
71                      maxOccurs="unbounded"/>
72       </xs:sequence>
73    </xs:complexType>
74    <xs:element name="Component" type="Component">
75       <xs:annotation>
76          <xs:documentation source="public"/>
77       </xs:annotation>
78    </xs:element>
79    <xs:complexType name="Component">
80       <xs:annotation>
81          <xs:documentation source="public"/>
82       </xs:annotation>
83       <xs:sequence minOccurs="1" maxOccurs="1">
84          <xs:element name="name" type="ComponentsName" minOccurs="1">
85             <xs:annotation>
86                <xs:documentation source="public"/>
87             </xs:annotation>
88          </xs:element>
89          <xs:element name="status" type="StatusValue" minOccurs="1">
90             <xs:annotation>
91                <xs:documentation source="public"/>
92             </xs:annotation>
93          </xs:element>
94       </xs:sequence>
95    </xs:complexType>
96    <xs:element name="Status" type="Status">
97       <xs:annotation>
98          <xs:documentation source="public"/>
99       </xs:annotation>
100    </xs:element>
101    <xs:complexType name="Status">
102       <xs:annotation>
103          <xs:documentation source="public"/>
104       </xs:annotation>
105       <xs:sequence minOccurs="1" maxOccurs="1">
106          <xs:element name="name" type="ApplicationName" minOccurs="1">
107             <xs:annotation>
108                <xs:documentation source="public">application name</xs:documentation>
109             </xs:annotation>
110          </xs:element>
111          <xs:element name="status" type="StatusValue" minOccurs="1">
112             <xs:annotation>
113                <xs:documentation source="public"/>
114             </xs:annotation>
115          </xs:element>
116          <xs:element name="version" type="xs:string" minOccurs="1">
117             <xs:annotation>
118                <xs:documentation source="public"/>
119             </xs:annotation>
120          </xs:element>
121          <xs:element name="components"
122                      type="Component"
123                      minOccurs="1"
124                      maxOccurs="unbounded">
125             <xs:annotation>
126                <xs:documentation source="public"/>
127             </xs:annotation>
128          </xs:element>
129       </xs:sequence>
130    </xs:complexType>
131 </xs:schema>