Replaced all tabs with spaces in java and pom.xml
[so.git] / adapters / mso-openstack-adapters / src / main / java / org / onap / so / adapters / vnf / MsoVnfAdapterAsync.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.vnf;
22
23
24 import java.util.Map;
25 import javax.jws.Oneway;
26 import javax.jws.WebMethod;
27 import javax.jws.WebParam;
28 import javax.jws.WebService;
29 import javax.xml.bind.annotation.XmlElement;
30 import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
31 import org.onap.so.entity.MsoRequest;
32 import org.onap.so.openstack.beans.VnfRollback;
33 import org.onap.so.openstack.mappers.MapAdapter;
34
35 /**
36  * This webservice defines the Asynchronous versions of VNF adapter calls. The notification messages for final responses
37  * are documented elsewhere (by the client service WSDL).
38  *
39  */
40 @WebService(name = "VnfAdapterAsync", targetNamespace = "http://org.onap.so/vnfA")
41 public interface MsoVnfAdapterAsync {
42     /**
43      * This is the "Create VNF" Web Service Endpoint definition.
44      */
45     @WebMethod
46     @Oneway
47     public void createVnfA(@WebParam(name = "cloudSiteId") @XmlElement(required = true) String cloudSiteId,
48             @WebParam(name = "cloudOwner") @XmlElement(required = false) String cloudOwner,
49             @WebParam(name = "tenantId") @XmlElement(required = true) String tenantId,
50             @WebParam(name = "vnfType") @XmlElement(required = true) String vnfType,
51             @WebParam(name = "vnfVersion") @XmlElement(required = false) String vnfVersion,
52             @WebParam(name = "vnfName") @XmlElement(required = true) String vnfName,
53             @WebParam(name = "requestType") @XmlElement(required = false) String requestType,
54             @WebParam(name = "volumeGroupHeatStackId") @XmlElement(required = false) String volumeGroupHeatStackId,
55             @WebParam(name = "inputs") @XmlJavaTypeAdapter(MapAdapter.class) Map<String, Object> inputs,
56             @WebParam(name = "failIfExists") Boolean failIfExists, @WebParam(name = "backout") Boolean backout,
57             @WebParam(name = "enableBridge") Boolean enableBridge,
58             @WebParam(name = "messageId") @XmlElement(required = true) String messageId,
59             @WebParam(name = "request") MsoRequest msoRequest,
60             @WebParam(name = "notificationUrl") @XmlElement(required = true) String notificationUrl);
61
62     @WebMethod
63     @Oneway
64     public void updateVnfA(@WebParam(name = "cloudSiteId") @XmlElement(required = true) String cloudSiteId,
65             @WebParam(name = "cloudOwner") @XmlElement(required = false) String cloudOwner,
66             @WebParam(name = "tenantId") @XmlElement(required = true) String tenantId,
67             @WebParam(name = "vnfType") @XmlElement(required = true) String vnfType,
68             @WebParam(name = "vnfVersion") @XmlElement(required = false) String vnfVersion,
69             @WebParam(name = "vnfName") @XmlElement(required = true) String vnfName,
70             @WebParam(name = "requestType") @XmlElement(required = false) String requestType,
71             @WebParam(name = "volumeGroupHeatStackId") @XmlElement(required = false) String volumeGroupHeatStackId,
72             @WebParam(name = "inputs") @XmlJavaTypeAdapter(MapAdapter.class) Map<String, Object> inputs,
73             @WebParam(name = "messageId") @XmlElement(required = true) String messageId,
74             @WebParam(name = "request") MsoRequest msoRequest,
75             @WebParam(name = "notificationUrl") @XmlElement(required = true) String notificationUrl);
76
77     @WebMethod
78     @Oneway
79     public void queryVnfA(@WebParam(name = "cloudSiteId") @XmlElement(required = true) String cloudSiteId,
80             @WebParam(name = "cloudOwner") @XmlElement(required = false) String cloudOwner,
81             @WebParam(name = "tenantId") @XmlElement(required = true) String tenantId,
82             @WebParam(name = "vnfName") @XmlElement(required = true) String vnfName,
83             @WebParam(name = "messageId") @XmlElement(required = true) String messageId,
84             @WebParam(name = "request") MsoRequest msoRequest,
85             @WebParam(name = "notificationUrl") @XmlElement(required = true) String notificationUrl);
86
87     @WebMethod
88     @Oneway
89     public void deleteVnfA(@WebParam(name = "cloudSiteId") @XmlElement(required = true) String cloudSiteId,
90             @WebParam(name = "cloudOwner") @XmlElement(required = false) String cloudOwner,
91             @WebParam(name = "tenantId") @XmlElement(required = true) String tenantId,
92             @WebParam(name = "vnfName") @XmlElement(required = true) String vnfName,
93             @WebParam(name = "messageId") @XmlElement(required = true) String messageId,
94             @WebParam(name = "request") MsoRequest msoRequest,
95             @WebParam(name = "notificationUrl") @XmlElement(required = true) String notificationUrl);
96
97     @WebMethod
98     @Oneway
99     public void rollbackVnfA(@WebParam(name = "rollback") @XmlElement(required = true) VnfRollback rollback,
100             @WebParam(name = "messageId") @XmlElement(required = true) String messageId,
101             @WebParam(name = "notificationUrl") @XmlElement(required = true) String notificationUrl);
102
103
104     @WebMethod
105     public void healthCheckA();
106 }