Update get operation status part
[vfc/nfvo/driver/vnfm/svnfm.git] / nokia / vnfmdriver / vfcadaptorservice / vfcadaptor / src / main / java / org / onap / vfc / nfvo / driver / vnfm / svnfm / 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 org.onap.vfc.nfvo.driver.vnfm.svnfm.constant;
18
19 public class CommonConstants {
20         public static final String SCHEMA_HTTP = "http";
21         
22         public static final String HTTP_ERROR_DESC_500 = "Internal Server Error";
23         
24         
25         public static final String CONTENT_TYPE = "Content-Type";
26         public static final String ACCEPT = "Accept";
27         
28         public static final String AUTH = "auth";
29         public static final String AUTHORIZATION = "Authorization";
30         public static final String UTF_8 = "utf-8";
31         
32         //AAI path get vnfm
33         // /external-system/esr-vnfm-list/esr-vnfm/{vnfm-id}/esr-system-info-list
34         public static final String RetrieveVnfmListPath = "/aai/v11/external-system/esr-vnfm-list/esr-vnfm/%s/esr-system-info-list";
35         
36         //Nslcm path
37         public static final String NslcmGrantPath = "/api/nslcm/v1/ns/grantvnf";
38         public static final String NslcmNotifyPath = "/api/nslcm/v1/ns/%s/vnfs/%s/Notify";
39         
40         //Catalog path
41         public static final String RetrieveVnfPackagePath = "/api/catalog/v1/vnfpackages/%s";
42         
43         //CBAM -- Nokia VNFM path
44         public static final String CBAM_TOKEN_KEY = "access_token";
45         public static final String CbamRetrieveTokenPath="/auth/realms/cbam/protocol/openid-connect/token";
46         public static final String CbamRetrieveTokenPostStr="grant_type=password&client_id=%s&client_secret=%s&username=%s&password=%s";
47         public static final String CbamCreateVnfPath="/vnfm/lcm/v3/vnfs";
48         public static final String CbamModifyVnfPath="/vnfm/lcm/v3/vnfs/%s";
49         public static final String CbamInstantiateVnfPath="/vnfm/lcm/v3/vnfs/%s/instantiate";
50         public static final String CbamQueryVnfPath="/vnfm/lcm/v3/vnfs/%s";
51         public static final String CbamDeleteVnfPath="/vnfm/lcm/v3/vnfs/%s";
52         public static final String CbamTerminateVnfPath="/vnfm/lcm/v3/vnfs/%s/terminate";
53         public static final String CbamGetOperStatusPath="/vnfm/lcm/v3/operation_executions/%s";
54         public static final String CbamScaleVnfPath = "/vnfm/lcm/v3/vnfs/%s/scale";
55         public static final String CbamHealVnfPath="/vnfm/lcm/v3/vnfs/%s/heal";
56         public static final String CbamQueryVnfcResourcePath="/vnfm/lcm/v3/vnfs/%s/vnfc_resource_info";
57         
58         public static final String CbamUploadVnfPackagePath="/api/catalog/adapter/vnfpackages";
59         
60         
61         public static final String NSLCM_OPERATION_INSTANTIATE = "Instantiate";
62         public static final String NSLCM_OPERATION_TERMINATE = "Terminal";
63         public static final String NSLCM_OPERATION_SCALE_OUT = "Scaleout";
64         public static final String NSLCM_OPERATION_SCALE_IN = "Scalein";
65         public static final String NSLCM_OPERATION_SCALE_UP = "Scaleup";
66         public static final String NSLCM_OPERATION_SCALE_DOWN = "Scaledown";
67         
68         public static final String CBAM_OPERATION_STATUS_START = "started";
69         public static final String CBAM_OPERATION_STATUS_PROCESSING = "processing";
70         public static final String CBAM_OPERATION_STATUS_FINISH = "finished";
71         public static final String CBAM_OPERATION_STATUS_ERROR = "error";
72         
73         //MSB
74         public static final String MSB_REGISTER_SERVICE_PATH = "/api/microservices/v1/services";
75         public static final String MSB_UNREGISTER_SERVICE_PATH = "/api/microservices/v1/services/%s/version/%s/nodes/%s/%s";
76         public static final String MSB_QUERY_SERVICE_PATH = "/api/microservices/v1/services/%s/version/%s";
77 }