Initial OpenECOMP MSO commit
[so.git] / mso-api-handlers / mso-api-handler-infra / src / main / java / org / openecomp / mso / apihandlerinfra / Constants.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * OPENECOMP - MSO
4  * ================================================================================
5  * Copyright (C) 2017 AT&T Intellectual Property. 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
21 package org.openecomp.mso.apihandlerinfra;
22
23
24 public class Constants {
25
26         public static final String VNF_TYPES_PATH = "/{version: v1|v2|v3}/vnf-types";
27         public static final String NETWORK_TYPES_PATH = "/{version: v1|v2|v3}/network-types";
28         public static final String VF_MODULE_MODEL_NAMES_PATH = "/{version: v2|v3}/vf-module-model-names";
29         public static final String REQUEST_ID_PATH = "/{request-id}";
30         
31         public static final String STATUS_SUCCESS = "SUCCESS";
32         
33         public static final String MODIFIED_BY_APIHANDLER = "APIH";
34         
35         public static final String SCHEMA_VERSION_V1 = "v1";
36         public static final String SCHEMA_VERSION_V2 = "v2";
37         public static final String SCHEMA_VERSION_V3 = "v3";
38         
39         public static final long PROGRESS_REQUEST_COMPLETED = 100L;
40         public static final long PROGRESS_REQUEST_RECEIVED = 0L;
41         public static final long PROGRESS_REQUEST_IN_PROGRESS = 20L;
42         
43         public static final String VNF_TYPE_WILDCARD = "*";
44         
45         public static final String VOLUME_GROUP_COMPONENT_TYPE = "VOLUME_GROUP";
46         
47         public static final String VALID_INSTANCE_NAME_FORMAT = "^[a-zA-Z][a-zA-Z0-9_-]*$";
48         
49 }