dcf52e30e500cc67b7b304fa4db6eea754953162
[so.git] / bpmn / MSOCommonBPMN / src / main / resources / xsd / MsoServiceRequestTypesV1.xsd
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3                 ============LICENSE_START=======================================================
4                 ONAP - SO
5                 ================================================================================
6                 Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
7                 ================================================================================
8                 Licensed under the Apache License, Version 2.0 (the "License");
9                 you may not use this file except in compliance with the License.
10                 You may obtain a copy of the License at
11                 http://www.apache.org/licenses/LICENSE-2.0
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                 ============LICENSE_END=========================================================
18         -->
19 <!--
20                 ================================================================
21                 Description: This is the schema for MSO Request data
22
23                 ================================================================
24                 Change Log: Version Author Comments 
25                 =========== ======= ====== ========
26                 0.10 ss835w 2014-12-22. First draft
27                 0.20 dr695h 2014-01-09. Second draft
28
29                 ================================  ================================
30         -->
31 <schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://ecomp.att.com/mso/request/types/v1" targetNamespace="http://ecomp.att.com/mso/request/types/v1" elementFormDefault="qualified">
32         <complexType name="response-type">
33                 <sequence>
34                         <element name="request-id" type="string" minOccurs="1" maxOccurs="1"/>
35                         <element name="request-action" type="tns:request-action-type" minOccurs="1" maxOccurs="1"/>
36                         <element name="source" type="string" minOccurs="1" maxOccurs="1"/>
37                         <element name="request-id-in-progress" type="string" minOccurs="0" maxOccurs="1"/>
38                         <element name="error-code" type="int" minOccurs="0" maxOccurs="1"/>
39                         <element name="error-message" type="string" minOccurs="0" maxOccurs="1"/>
40                         <element name="ack-final-indicator" type="tns:y-or-n-type" minOccurs="1" maxOccurs="1"/>
41                 </sequence>
42         </complexType>
43         <annotation>
44                 <documentation xml:lang="en">order-number is required if service-type equals SDN-ETHERNET-INTERNET. order-version is required if service-type equals 
45                 SDN-ETHERNET-INTERNET, source=OMX,  and request-action=Layer3ServiceActivateRequest or ChangeLayer3ServiceProvRequest</documentation>
46         </annotation>
47         <element name="request-information">
48                 <complexType>
49                         <sequence>
50                                 <element name="request-id" type="string" minOccurs="1" maxOccurs="1"/>
51                                 <element name="request-action" type="tns:request-action-type" minOccurs="1" maxOccurs="1"/>
52                                 <element name="request-sub-action" type="tns:request-sub-action-type" minOccurs="0" maxOccurs="1"/>
53                                 <element name="source" type="string" minOccurs="1" maxOccurs="1"/>
54                                 <element name="notification-url" type="string" minOccurs="0" maxOccurs="1"/>
55                                 <element name="order-number" type="string" minOccurs="0" maxOccurs="1"/>
56                                 <element name="order-version" type="string" minOccurs="0" maxOccurs="1"/>
57                         </sequence>
58                 </complexType>
59         </element>
60         <annotation>
61                 <documentation xml:lang="en">subscriber-name required if request-action=Layer3ServiceActivateRequest</documentation>
62         </annotation>
63         <element name="service-information">
64                 <complexType>
65                         <sequence>
66                                 <element name="service-type" type="tns:service-type" minOccurs="1" maxOccurs="1"/>
67                                 <element name="service-instance-id" type="string" minOccurs="1" maxOccurs="1"/>
68                                 <element name="subscriber-name" type="string" minOccurs="0" maxOccurs="1"/>
69                         </sequence>
70                 </complexType>
71         </element>
72         <element name="feature-information">
73                 <complexType>
74                         <sequence>
75                                 <element name="feature-type" type="tns:feature-type"/>
76                                 <element name="feature-instance-id" type="string"/>
77                                 <element name="feature-yang-model" type="string"/>
78                                 <element name="feature-yang-model-version" type="string"/>
79                         </sequence>
80                 </complexType>
81         </element>
82         <simpleType name="request-action-type">
83                 <restriction base="string">
84                         <enumeration value="Layer3ServiceActivateRequest"/>
85                         <enumeration value="Layer3ServiceTestAndTurnupRequest"/>
86                         <enumeration value="ChangeLayer3ServiceActivateRequest"/>
87                         <enumeration value="ChangeLayer3ServiceProvRequest"/>
88                         <enumeration value="DisconnectLayer3ServiceRequest"/>
89                         <enumeration value="GetLayer3ServiceDetailsRequest"/>
90                         <enumeration value="ChangeFeatureActivateRequest"/>
91                 </restriction>
92         </simpleType>
93         <simpleType name="request-sub-action-type">
94                 <restriction base="string">
95                         <enumeration value="CANCEL"/>
96                         <enumeration value="SUPP"/>
97                 </restriction>
98         </simpleType>
99         <simpleType name="service-type">
100                 <restriction base="string">
101                         <enumeration value="SDN-ETHERNET-INTERNET"/>
102                 </restriction>
103         </simpleType>
104         <simpleType name="y-or-n-type">
105                 <restriction base="string">
106                         <enumeration value="Y"/>
107                         <enumeration value="N"/>
108                 </restriction>
109         </simpleType>
110         <simpleType name="feature-type">
111                 <restriction base="string">
112                         <enumeration value="FIREWALL-LITE"/>
113                 </restriction>
114         </simpleType>
115 </schema>