Change: add OPEN-O seed code for VF-C
[vfc/nfvo/driver/vnfm/svnfm.git] / huawei / vnfmadapter / VnfmadapterService / service / src / main / java / org / openo / nfvo / vnfmadapter / service / adapter / inf / IResourceManager.java
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.openo.nfvo.vnfmadapter.service.adapter.inf;
18
19 import java.util.Map;
20
21 import net.sf.json.JSONObject;
22
23 /**
24  * Resource Manager interface.</br>
25  *
26  * @author
27  * @version     NFVO 0.5  Sep 13, 2016
28  */
29 public interface IResourceManager {
30
31     /**
32      * Get VNFM CSAR information<br>
33      *
34      * @param csarid String
35      * @return
36      * @since  NFVO 0.5
37      */
38     JSONObject getVnfmCsarInfo(String csarid);
39
40     /**
41      * Download CSAR.<br>
42      *
43      * @param url String
44      * @param filePath String
45      * @return
46      * @since  NFVO 0.5
47      */
48     JSONObject downloadCsar(String url,String filePath);
49
50     /**
51      * Get all clouds<br>
52      *
53      * @param url String
54      * @return
55      * @since  NFVO 0.5
56      */
57     JSONObject getAllCloud(String url,String connToken);
58
59
60     /**
61      * get VNFD Plan Info.<br>
62      *
63      * @param url String
64      * @param vnfdid String
65      * @return
66      * @since  NFVO 0.5
67      */
68     JSONObject getVNFDPlanInfo(String url, String vnfdid, String conntoken);
69
70     /**
71      * Upload VNF package.<br>
72      *
73      * @param vnfpkg JSONObject
74      * @param paramsMap Map<String, String>
75      * @return
76      * @since  NFVO 0.5
77      */
78     JSONObject uploadVNFPackage(JSONObject vnfpkg, Map<String, String> paramsMap);
79 }