Create seed code of svnfm vnfmdriver
[vfc/nfvo/driver/vnfm/svnfm.git] / nokia / vnfmdriver / vfcadaptorservice / vfcadaptor / src / main / java / com / nokia / vfcadaptor / constant / CommonConstants.java
1 /*
2  * Copyright 2016-2017, Nokia Corporation
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 com.nokia.vfcadaptor.constant;
18
19 public class CommonConstants {
20         public static final String HTTP_ERROR_DESC_500 = "Internal Server Error";
21         
22         
23         public static final String CONTENT_TYPE = "Content-Type";
24         public static final String ACCEPT = "Accept";
25         
26         public static final String AUTH = "auth";
27         public static final String AUTHORIZATION = "Authorization";
28         public static final String UTF_8 = "utf-8";
29         
30         //Nslcm path
31         public static final String RetrieveNvfmListPath = "/nslcm/vl/vnfms/%s";
32         public static final String NslcmGrantPath = "/nslcm/v1/ns/grantvnf";
33         public static final String NslcmNotifyPath = "/nslcm/v1/vnfs/%s/Notify";
34         
35         //Catalog path
36         public static final String RetrieveVnfPackagePath = "/catalog/v1/vnfpackages/%s";
37         
38         //CBAM -- Nokia VNFM path
39         public static final String CBAM_TOKEN_KEY = "access_token";
40         public static final String RetrieveCbamTokenPath="/auth/realms/cbam/protocol/openid-connect/token";
41         public static final String RetrieveCbamTokenPostStr="grant_type=%s&client_id=%s&client_secret=%s";
42         public static final String CbamCreateVnfPath="/vnfs";
43         public static final String CbamInstantiateVnfPath="/vnfs/%s/instantiate";
44         public static final String CbamQueryVnfPath="/vnfs/%s";
45         public static final String CbamDeleteVnfPath="/vnfs/%s";
46         public static final String CbamTerminateVnfPath="/vnfs/%s/terminate";
47         public static final String CbamGetOperStatusPath="/operation_executions/%s";
48         public static final String CbamScaleVnfPath = "/vnfs/%s/scale";
49         public static final String CbamHealVnfPath="/vnfs/%s/heal";
50         
51         public static final String NSLCM_OPERATION_INSTANTIATE = "Instantiate";
52         public static final String NSLCM_OPERATION_SCALE_OUT = "Scaleout";
53         public static final String NSLCM_OPERATION_SCALE_IN = "Scalein";
54         public static final String NSLCM_OPERATION_SCALE_UP = "Scaleup";
55         public static final String NSLCM_OPERATION_SCALE_DOWN = "Scaledown";
56         public static final String NSLCM_OPERATION_SCALE_TERMINATE = "Terminal";
57 }