2  * Copyright 2016-2017, Nokia Corporation
 
   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
 
   8  *     http://www.apache.org/licenses/LICENSE-2.0
 
  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.
 
  17 package org.onap.vfc.nfvo.driver.vnfm.svnfm.constant;
 
  19 public class CommonConstants {
 
  20         public static final String SCHEMA_HTTP = "http";
 
  22         public static final String HTTP_ERROR_DESC_500 = "Internal Server Error";
 
  25         public static final String CONTENT_TYPE = "Content-Type";
 
  26         public static final String ACCEPT = "Accept";
 
  28         public static final String AUTH = "auth";
 
  29         public static final String AUTHORIZATION = "Authorization";
 
  30         public static final String UTF_8 = "utf-8";
 
  33         // /external-system/esr-vnfm-list/esr-vnfm/{vnfm-id}/esr-system-info-list
 
  34         public static final String RetrieveVnfmListPath = "/external-system/esr-vnfm-list/esr-vnfm/%s/esr-system-info-list";
 
  37         public static final String NslcmGrantPath = "/ns/grantvnf";
 
  38         public static final String NslcmNotifyPath = "/vnfs/%s/Notify";
 
  41         public static final String RetrieveVnfPackagePath = "/catalog/v1/vnfpackages/%s";
 
  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="/vnfs";
 
  48         public static final String CbamInstantiateVnfPath="/vnfs/%s/instantiate";
 
  49         public static final String CbamQueryVnfPath="/vnfs/%s";
 
  50         public static final String CbamDeleteVnfPath="/vnfs/%s";
 
  51         public static final String CbamTerminateVnfPath="/vnfs/%s/terminate";
 
  52         public static final String CbamGetOperStatusPath="/operation_executions/%s";
 
  53         public static final String CbamScaleVnfPath = "/vnfs/%s/scale";
 
  54         public static final String CbamHealVnfPath="/vnfs/%s/heal";
 
  56         public static final String CbamUploadVnfPackagePath="/api/catalog/vnfpackages";
 
  59         public static final String NSLCM_OPERATION_INSTANTIATE = "Instantiate";
 
  60         public static final String NSLCM_OPERATION_TERMINATE = "Terminal";
 
  61         public static final String NSLCM_OPERATION_SCALE_OUT = "Scaleout";
 
  62         public static final String NSLCM_OPERATION_SCALE_IN = "Scalein";
 
  63         public static final String NSLCM_OPERATION_SCALE_UP = "Scaleup";
 
  64         public static final String NSLCM_OPERATION_SCALE_DOWN = "Scaledown";
 
  66         public static final String CBAM_OPERATION_STATUS_START = "start";
 
  67         public static final String CBAM_OPERATION_STATUS_FINISH = "finished";
 
  68         public static final String CBAM_OPERATION_STATUS_ERROR = "error";
 
  71         public static final String MSB_REGISTER_SERVICE_PATH = "/api/microservices/v1/services";
 
  72         public static final String MSB_UNREGISTER_SERVICE_PATH = "/api/microservices/v1/services/%s/version/%s/nodes/%s/%s";
 
  73         public static final String MSB_QUERY_SERVICE_PATH = "/api/microservices/v1/services/%s/version/%s";