a85da585365ec064932b982d67f25b6c21d759be
[so.git] / adapters / mso-openstack-adapters / src / main / java / org / onap / so / adapters / network / MsoNetworkAdapterAsync.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * ONAP - SO
4  * ================================================================================
5  * Copyright (C) 2017 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 package org.onap.so.adapters.network;
22
23
24 import java.util.List;
25 import java.util.Map;
26
27 import javax.jws.Oneway;
28 import javax.jws.WebMethod;
29 import javax.jws.WebParam;
30 import javax.jws.WebService;
31 import javax.xml.bind.annotation.XmlElement;
32
33 import org.onap.so.entity.MsoRequest;
34 import org.onap.so.openstack.beans.NetworkRollback;
35 import org.onap.so.openstack.beans.Subnet;
36 /**
37  * This webservice defines the Asynchronous versions of NETWORK adapter calls.
38  * The notification messages for final responses are documented elsewhere
39  * (by the client service WSDL).
40  *
41  */
42 @WebService (name="NetworkAdapterAsync", targetNamespace="http://org.onap.so/networkA")
43 public interface MsoNetworkAdapterAsync
44 {
45         /**
46          * This is the "Create NETWORK" Web Service Endpoint definition.
47          */
48         @WebMethod
49         @Oneway
50         public void createNetworkA (@WebParam(name="cloudSiteId") @XmlElement(required=true) String cloudSiteId,
51                                                         @WebParam(name="tenantId") @XmlElement(required=true) String tenantId,
52                                                         @WebParam(name="networkType") @XmlElement(required=true) String networkType,
53                                                         @WebParam(name="modelCustomizationUuid") String modelCustomizationUuid,
54                                                         @WebParam(name="networkName") @XmlElement(required=true) String networkName,
55                                                         @WebParam(name="physicalNetworkName") String physicalNetworkName,
56                                                         @WebParam(name="vlans") List<Integer> vlans,
57                                                         @WebParam(name="failIfExists") Boolean failIfExists,
58                                                         @WebParam(name="backout") Boolean backout,
59                                                         @WebParam(name="subnets") List<Subnet> subnets,
60                                                         @WebParam(name="networkParams") Map<String, String> networkParams,
61                                                         @WebParam(name="messageId") @XmlElement(required=true) String messageId,
62                                                         @WebParam(name="request") MsoRequest msoRequest,
63                                                         @WebParam(name="notificationUrl") @XmlElement(required=true) String notificationUrl );
64
65         @WebMethod
66         @Oneway
67         public void updateNetworkA (@WebParam(name="cloudSiteId") @XmlElement(required=true) String cloudSiteId,
68                                                 @WebParam(name="tenantId") @XmlElement(required=true) String tenantId,
69                                                 @WebParam(name="networkType") @XmlElement(required=true) String networkType,
70                                                 @WebParam(name="modelCustomizationUuid") String modelCustomizationUuid,
71                                                 @WebParam(name="networkId") @XmlElement(required=true) String networkId,
72                                                 @WebParam(name="networkName") @XmlElement(required=true) String networkName,
73                                                 @WebParam(name="physicalNetworkName") @XmlElement(required=true) String physicalNetworkName,
74                                                 @WebParam(name="vlans") @XmlElement(required=true) List<Integer> vlans,
75                                                 @WebParam(name="subnets") List<Subnet> subnets,
76                                                 @WebParam(name="networkParams") Map<String, String> networkParams,
77                                                 @WebParam(name="messageId") @XmlElement(required=true) String messageId,
78                                                 @WebParam(name="request") MsoRequest msoRequest,
79                                                 @WebParam(name="notificationUrl") @XmlElement(required=true) String notificationUrl );
80
81         @WebMethod
82         @Oneway
83         public void queryNetworkA (@WebParam(name="cloudSiteId") @XmlElement(required=true) String cloudSiteId,
84                                                         @WebParam(name="tenantId") @XmlElement(required=true) String tenantId,
85                                                         @WebParam(name="networkNameOrId") @XmlElement(required=true) String networkNameOrId,
86                                                         @WebParam(name="messageId") @XmlElement(required=true) String messageId,
87                                                         @WebParam(name="request") MsoRequest msoRequest,
88                                                         @WebParam(name="notificationUrl") @XmlElement(required=true) String notificationUrl );
89
90         @WebMethod
91         @Oneway
92         public void deleteNetworkA (@WebParam(name="cloudSiteId") @XmlElement(required=true) String cloudSiteId,
93                                                         @WebParam(name="tenantId") @XmlElement(required=true) String tenantId,
94                                                         @WebParam(name="networkType") @XmlElement(required=true) String networkType,
95                                                         @WebParam(name="modelCustomizationUuid") String modelCustomizationUuid,
96                                                         @WebParam(name="networkId") @XmlElement(required=true) String networkId,
97                                                         @WebParam(name="messageId") @XmlElement(required=true) String messageId,
98                                                         @WebParam(name="request") MsoRequest msoRequest,
99                                                         @WebParam(name="notificationUrl") @XmlElement(required=true) String notificationUrl );
100
101         @WebMethod
102         @Oneway
103         public void rollbackNetworkA (@WebParam(name="rollback") @XmlElement(required=true) NetworkRollback rollback,
104                                                 @WebParam(name="messageId") @XmlElement(required=true) String messageId,
105                                                 @WebParam(name="notificationUrl") @XmlElement(required=true) String notificationUrl );
106
107         @WebMethod
108         public void healthCheckA ();
109 }