Update gvnfm-driver .gitreview file
[vfc/nfvo/driver/vnfm/gvnfm.git] / juju / juju-vnfmadapter / Juju-vnfmadapterService / service / src / main / java / org / openo / nfvo / jujuvnfmadapter / service / constant / ParamConstants.java
1 /*
2  * Copyright 2016 Huawei Technologies Co., Ltd.
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.openo.nfvo.jujuvnfmadapter.service.constant;
18
19 /**
20  * 
21  * Parameter constants class.<br>
22  * <p>
23  * </p>
24  * 
25  * @author
26  * @version     NFVO 0.5  Sep 12, 2016
27  */
28 public class ParamConstants {
29
30     public static final String GET_TOKENS_V1 = "{\"grantType\": \"password\", \"userName\": \"%s\",\"value\": \"%s\"}";
31
32     public static final String GET_TOKENS_V2 =
33             "{\"auth\":{\"identity\": {\"methods\": [\"password\"],\"password\": {\"user\": {\"name\": \"%s\",\"password\": \"%s\"}}}}}";
34
35     public static final String GET_IAM_TOKENS =
36             "{\"auth\": {\"identity\": {\"methods\": [\"password\"],\"password\": {\"user\": {\"name\": "
37                     + "\"%s\",\"password\": \"%s\",\"domain\": {\"name\": \"%s\"}}}},\"scope\": {\"domain\": {\"name\": \"%s\"}}}}";
38
39     public static final String GET_TOKEN_SUC_RESP =
40             "{\"token\": {\"methods\": [\"password\"],\"expires_at\": \"\",\"user\": {\"id\": \"%s\","
41                     + "\"name\": \"%s\"},\"roa_rand\": \"%s\"}}";
42
43     public static final String GET_TOKEN_FAIL_RESP = "{\"Information\": \"%s\"}";
44
45     public static final String REST_3RD_CONNECTION = "/rest/plat/smapp/v1/oauth/token";
46
47     public static final String REST_3RD_DISCONNECT = "/rest/plat/smapp/v1/sessions?roarand=%s";
48
49     public static final String REST_3RD_HANDSHAKE = "/rest/plat/ssm/v1/sessions/verify";
50
51     public static final String IAM_AUTH = "/v3/auth/tokens";
52
53     public static final String CSM_AUTH_CONNECT = "/v2/auth/tokens";
54
55     public static final String CSM_AUTH_DISCONNECT = "/v2/auth/tokens/%s/%s";
56
57     public static final String CSM_AUTH_HANDSHAKE = "/v2/nfvo/shakehand?roattr=status";
58
59     public static final String VNFMMED = "/rest/vnfmmed/";
60
61     public static final String CONNECTMGR_CONNECT = "/connectmgr/v1/connect";
62
63     public static final String CONNECTMGR_DISCONNECT = "/connectmgr/v1/disconnect";
64
65     public static final String CONNECTMGR_HANDSHAKE = "/connectmgr/v1/handshake";
66
67     public static final String CREATE_VNF_PERF = "/staticsmgr/v1/vnfperformance";
68
69     public static final String VNFMGR_INSTANCE = "/vnfmgr/v1/instances";
70
71     public static final String VNF_SCALE = "/vnfmgr/v1/instances/%s/scale";
72
73     public static final String VNFD_FLAVOR = "/vnfdmgr/v1/flavor";
74
75     public static final String VNFDGR_INSTALL = "/vnfdmgr/v1/vnfd/%s/install";
76
77     public static final String VNFDGR_DETAIL = "/vnfdmgr/v1/vnfd/%s";
78
79     public static final String VNFDGR_DETAILS = "/vnfdmgr/v1/vnfd";
80
81     public static final String VNFDGR_TOPOLOGY = "/vnfdmgr/v1/topology/%s";
82
83     public static final String UPDATE_RESOURCE = "/rest/v1/resmanage/resuse/updateres";
84
85     public static final String VNFDGR_INSTANCE = "/vnfmmed/v1/vnfdm/";
86
87     public static final String VNF_QUERY = "/resmgr/v1/vnfs";
88
89     public static final String VMS_QUERY = "/resmgr/v1/vms";
90
91     public static final String REST_EVENT_ADD = "/rest/v1/resmanage/vnfm/site";
92
93     public static final String REST_EVENT_DEL = "/rest/v1/resmanage/vnfm/site/%s";
94
95     public static final String VNFMGR_VNFKPI = "/staticsmgr/v1/vnfkpi";
96
97     public static final String RES_VNF = "/rest/v1/resmanage/vappvm";
98
99     public static final String NOTIFY_VNF_PERF = "/rest/v1/resmanage/vappvm";
100
101     public static final String PARAM_MODULE = "VnfmDriver";
102
103     public static final String GET_ALL_SITES = "/rest/v1/resmanage/sites";
104
105     public static final String GET_ALL_SOS = "/rest/sodriver/v1/sos";
106
107     public static final String OPERATION_LOG_PATH = "/rest/plat/audit/v1/logs";
108
109     public static final String SYSTEM_LOG_PATH = "/rest/plat/audit/v1/systemlogs";
110
111     public static final String SECURITY_LOG_PATH = "/rest/plat/audit/v1/seculogs";
112
113     public static final String SCALINGPOLICY_QUERY = "/policymgr/v1/scalingpolicy";
114
115     public static final String SCALINGPOLICY_OPERATE = "/policymgr/v1/scalingpolicy/%s/%s";
116
117     public static final String ACTIVE_POLICY = "/policymgr/v1/activepolicy";
118
119     public static final String DEACTIVE_POLICY = "/policymgr/v1/deactivepolicy";
120
121     public static final String GET_VNFM_VNF = "/rest/v1/resmanage/vapps?vnfmId=%s";
122
123     public static final String GET_RES_NET = "/rest/v1/resmanage/virtualnetworks?id=%s";
124
125     public static final String GET_JOB_STATUS = "/vnfmgr/v1/jobs/%s";
126
127     public static final String CREATE_POLICY = "/policymgr/v1/vnfs/%s/policies";
128
129     public static final String REST_FOR_VNFD_PLANS = "/v2/vapps/templates/%s/plans";
130
131     public static final String REST_GET_VNFDS = "/v2/vapps/templates";
132
133     public static final String REST_FOR_VNFD_BASIC = "/v2/vapps/templates?type=basic&vendor=%s&vnfdID=%s&version=%s";
134
135     public static final String REST_TOPOLOGY = "/v1/vapps/templates/%s?type=templatetopology";
136
137     public static final String VNF_INSTANCE = "/v2/vapps/instances";
138
139     public static final String VNF_INSTANCE_DEL = "/v2/vapps/instances/%s";
140     
141     private ParamConstants() {
142         //Constructor
143     }
144 }