Containerization feature of SO
[so.git] / adapters / mso-vfc-adapter / src / main / java / org / onap / so / adapters / vfc / constant / CommonConstant.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * ONAP - SO
4  * ================================================================================
5  * Copyright (C) 2017 Huawei Technologies Co., Ltd. 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.vfc.constant;
22
23 /**
24  * CommonConstant
25  * <br>
26  * <p>
27  * </p>
28  * 
29  * @author
30  * @version     ONAP Amsterdam Release  2017-08-28
31  */
32 public class CommonConstant {
33     
34     public static final String STR_EMPTY = "";
35
36     public static final String NFVO_CREATE_URL = "/api/nslcm/v1/ns";
37
38     public static final String NFVO_INSTANTIATE_URL = "/api/nslcm/v1/ns/%s/instantiate";
39
40     public static final String NFVO_TERMINATE_URL = "/api/nslcm/v1/ns/%s/terminate";
41
42     public static final String NFVO_DELETE_URL = "/api/nslcm/v1/ns/%s";
43
44     public static final String NFVO_QUERY_URL = "/api/nslcm/v1/jobs/%s";
45
46     public static final String NFVO_SCALE_URL = "/api/nslcm/v1/ns/%s/scale";
47
48     /**
49      * 
50      * <br>
51      * <p>
52      * </p>
53      * 
54      * @author
55      * @version     ONAP Amsterdam Release  2017-08-28
56      */
57     public static class MethodType {
58
59         public static final String POST = "post";
60
61         public static final String DELETE = "delete";
62
63         public static final String PUT = "put";
64
65         public static final String GET = "get";
66
67         private MethodType() {
68
69         }
70     }
71
72     /**
73      * 
74      * <br>
75      * <p>
76      * </p>
77      * 
78      * @author
79      * @version     ONAP Amsterdam Release  2017-08-28
80      */
81     public static class Step {
82
83         public static final String CREATE = "create";
84
85         public static final String INSTANTIATE = "instantiate";
86
87         public static final String STATUS = "status";
88
89         public static final String TERMINATE = "terminate";
90
91         public static final String QUERY = "query";
92
93         public static final String DELETE = "delete";
94
95         public static final String SCALE = "scale";
96
97         private Step() {
98
99         }
100
101     }
102
103
104     public static final String NSD_ID = "nsdId";
105
106     public static final String NS_NAME = "nsName";
107
108     public static final String DESC = "description";
109
110     public static final String NS_INSTANCE_ID = "nsInstanceId";
111
112     public static final String JOB_ID = "jobId";
113
114     public static final String ADDITIONAL_PARAM_FOR_NS = "additionalParamForNs";
115
116     public static final String LOCAL_HOST = "localhost";
117
118     public static class StatusDesc {
119
120         public static final String INSTANTIATE_NS_FAILED = "instantiate ns failed";
121
122         public static final String QUERY_JOB_STATUS_FAILED = "query job status failed";
123
124         public static final String TERMINATE_NS_FAILED = "terminate ns failed";
125
126         public static final String DELETE_NS_FAILED = "delete ns failed";
127
128         public static final String CREATE_NS_FAILED = "create ns failed";
129
130         public static final String SCALE_NS_FAILED = "scale ns failed";
131
132         private StatusDesc() {
133
134         }
135     }
136     
137     private CommonConstant() {
138
139     }
140 }