9c5debeec7fbf2b8c1cdfd99f9747bc5cf73e396
[portal.git] / ecomp-portal-BE-common / src / main / java / org / openecomp / portalapp / portal / scheduler / policy / rest / RequestDetails.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * VID
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.portalapp.portal.scheduler.policy.rest;
22
23 import com.fasterxml.jackson.annotation.JsonInclude;
24 import com.fasterxml.jackson.annotation.JsonProperty;
25 import com.fasterxml.jackson.annotation.JsonPropertyOrder;
26
27 /*
28         [
29           {
30             "policyConfigMessage": "Config Retrieved! ",
31             "policyConfigStatus": "CONFIG_RETRIEVED",
32             "type": "JSON",
33             "config": "{\"service\":\"TimeLimitAndVerticalTopology\",\"policyName\":\"SNIRO_CM_1707.Demo_TimeLimitAndVerticalTopology_zone_localTime\",\"description\":\"dev instance\",\"templateVersion\":\"1702.03\",\"version\":\"1707\",\"priority\":\"4\",\"riskType\":\"test\",\"riskLevel\":\"3\",\"guard\":\"False\",\"content\":{\"serviceType\":\"networkOnDemand\",\"identity\":\"vnf_upgrade_policy\",\"policyScope\":{\"serviceType\":[\"networkOnDemand\"],\"aicZone\":[\" \"],\"entityType\":[\"vnf\"]},\"timeSchedule\":{\"allowedPeriodicTime\":[{\"day\":\"weekday\",\"timeRange\":[{\"start_time\":\"04:00:00\",\"end_time\":\"13:00:00\"}]}]},\"nodeType\":[\"vnf\"],\"type\":\"timeLimitAndVerticalTopology\",\"conflictScope\":\"vnf_zone\"}}",
34             "policyName": "SNIRO_CM_1707.Config_MS_Demo_TimeLimitAndVerticalTopology_zone_localTime.1.xml",
35             "policyVersion": "1",
36             "matchingConditions": {
37               "ECOMPName": "SNIRO-Placement",
38               "ConfigName": "",
39               "service": "TimeLimitAndVerticalTopology",
40               "uuid": "",
41               "Location": ""
42             },
43             "responseAttributes": {},
44             "property": null
45           },
46           {
47             "policyConfigMessage": "Config Retrieved! ",
48             "policyConfigStatus": "CONFIG_RETRIEVED",
49             "type": "JSON",
50             "config": "{\"service\":\"TimeLimitAndVerticalTopology\",\"policyName\":\"SNIRO_CM_1707.Demo_TimeLimitAndVerticalTopology_pserver_localTime\",\"description\":\"dev instance\",\"templateVersion\":\"1702.03\",\"version\":\"1707\",\"priority\":\"4\",\"riskType\":\"test\",\"riskLevel\":\"3\",\"guard\":\"False\",\"content\":{\"serviceType\":\"networkOnDemand\",\"identity\":\"vnf_upgrade_policy\",\"policyScope\":{\"serviceType\":[\"networkOnDemand\"],\"aicZone\":[\" \"],\"entityType\":[\"vnf\"]},\"timeSchedule\":{\"allowedPeriodicTime\":[{\"day\":\"weekday\",\"timeRange\":[{\"start_time\":\"04:00:00\",\"end_time\":\"13:00:00\"}]}]},\"nodeType\":[\"vnf\"],\"type\":\"timeLimitAndVerticalTopology\",\"conflictScope\":\"vnf_pserver\"}}",
51             "policyName": "SNIRO_CM_1707.Config_MS_Demo_TimeLimitAndVerticalTopology_pserver_localTime.1.xml",
52             "policyVersion": "1",
53             "matchingConditions": {
54               "ECOMPName": "SNIRO-Placement",
55               "ConfigName": "",
56               "service": "TimeLimitAndVerticalTopology",
57               "uuid": "",
58               "Location": ""
59             },
60             "responseAttributes": {},
61             "property": null
62           },
63           {
64             "policyConfigMessage": "Config Retrieved! ",
65             "policyConfigStatus": "CONFIG_RETRIEVED",
66             "type": "JSON",
67             "config": "{\"service\":\"TimeLimitAndVerticalTopology\",\"policyName\":\"SNIRO_CM_1707.Demo_TimeLimitAndVerticalTopology_vnf_localTime\",\"description\":\"dev instance\",\"templateVersion\":\"1702.03\",\"version\":\"1707\",\"priority\":\"4\",\"riskType\":\"test\",\"riskLevel\":\"3\",\"guard\":\"False\",\"content\":{\"serviceType\":\"networkOnDemand\",\"identity\":\"vnf_upgrade_policy\",\"policyScope\":{\"serviceType\":[\"networkOnDemand\"],\"aicZone\":[\" \"],\"entityType\":[\"vnf\"]},\"timeSchedule\":{\"allowedPeriodicTime\":[{\"day\":\"weekday\",\"timeRange\":[{\"start_time\":\"04:00:00\",\"end_time\":\"13:00:00\"}]}]},\"nodeType\":[\"vnf\"],\"type\":\"timeLimitAndVerticalTopology\",\"conflictScope\":\"vnf\"}}",
68             "policyName": "SNIRO_CM_1707.Config_MS_Demo_TimeLimitAndVerticalTopology_vnf_localTime.1.xml",
69             "policyVersion": "1",
70             "matchingConditions": {
71               "ECOMPName": "SNIRO-Placement",
72               "ConfigName": "",
73               "service": "TimeLimitAndVerticalTopology",
74               "uuid": "",
75               "Location": ""
76             },
77             "responseAttributes": {},
78             "property": null
79           }
80         ]
81 */
82 @JsonInclude(JsonInclude.Include.NON_NULL)
83 @JsonPropertyOrder({
84     "policyConfigMessage",
85     "policyConfigStatus",
86     "type",
87     "config",
88     "policyName",
89     "policyVersion",
90     "matchingConditions"
91 })
92 public class RequestDetails {
93         
94         @JsonProperty("policyName")
95     private String policyName;   
96     
97         @JsonProperty("policyName")
98     public String getPolicyName() {
99         return policyName;
100     }
101
102     @JsonProperty("policyName")
103     public void setPolicyName(String policyName) {
104         this.policyName = policyName;
105     }
106     
107 }