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