225f095664f4c736547489be59bb5d814a60b4f8
[vfc/nfvo/resmanagement.git] /
1 /*
2  * Copyright 2016 Huawei Technologies Co., Ltd.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *     http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16
17 package org.onap.vfc.nfvo.res.service.base.openstack.inf;
18
19 import org.openo.baseservice.remoteservice.exception.ServiceException;
20
21 import net.sf.json.JSONObject;
22
23 /**
24  * <br/>
25  * <p>
26  * </p>
27  *
28  * @author
29  * @version NFVO 0.5 Aug 25, 2016
30  */
31 public interface ResManagement {
32
33     /**
34      * <br/>
35      *
36      * @param jsonObject
37      * @return
38      * @throws ServiceException
39      * @since NFVO 0.5
40      */
41     int add(JSONObject jsonObject) throws ServiceException;
42
43     /**
44      * <br/>
45      *
46      * @param jsonObject
47      * @return
48      * @throws ServiceException
49      * @since NFVO 0.5
50      */
51     int update(JSONObject jsonObject) throws ServiceException;
52
53     /*
54      * key : parameter key value : parameter value
55      */
56     /**
57      * <br/>
58      *
59      * @param id
60      * @return
61      * @throws ServiceException
62      * @since NFVO 0.5
63      */
64     int delete(String id) throws ServiceException;
65
66 }