SchedulerController up
[portal.git] / portal-BE / src / main / java / org / onap / portal / scheduler / policy / rest / RequestDetails.java
1 /*
2  * ============LICENSE_START==========================================
3  * ONAP Portal
4  * ===================================================================
5  * Copyright (C) 2019 AT&T Intellectual Property. All rights reserved.
6  * ===================================================================
7  * Modifications Copyright (c) 2019 Samsung
8  * ===================================================================
9  *
10  * Unless otherwise specified, all software contained herein is licensed
11  * under the Apache License, Version 2.0 (the "License");
12  * you may not use this software except in compliance with the License.
13  * You may obtain a copy of the License at
14  *
15  *             http://www.apache.org/licenses/LICENSE-2.0
16  *
17  * Unless required by applicable law or agreed to in writing, software
18  * distributed under the License is distributed on an "AS IS" BASIS,
19  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
20  * See the License for the specific language governing permissions and
21  * limitations under the License.
22  *
23  * Unless otherwise specified, all documentation contained herein is licensed
24  * under the Creative Commons License, Attribution 4.0 Intl. (the "License");
25  * you may not use this documentation except in compliance with the License.
26  * You may obtain a copy of the License at
27  *
28  *             https://creativecommons.org/licenses/by/4.0/
29  *
30  * Unless required by applicable law or agreed to in writing, documentation
31  * distributed under the License is distributed on an "AS IS" BASIS,
32  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
33  * See the License for the specific language governing permissions and
34  * limitations under the License.
35  *
36  * ============LICENSE_END============================================
37  *
38  *
39  */
40
41 package org.onap.portal.scheduler.policy.rest;
42
43 import com.fasterxml.jackson.annotation.JsonInclude;
44 import com.fasterxml.jackson.annotation.JsonProperty;
45 import com.fasterxml.jackson.annotation.JsonPropertyOrder;
46
47 /*
48         [
49           {
50             "policyConfigMessage": "Config Retrieved! ",
51             "policyConfigStatus": "CONFIG_RETRIEVED",
52             "type": "JSON",
53             "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\"}}",
54             "policyName": "SNIRO_CM_1707.Config_MS_Demo_TimeLimitAndVerticalTopology_zone_localTime.1.xml",
55             "policyVersion": "1",
56             "matchingConditions": {
57               "ECOMPName": "SNIRO-Placement",
58               "ConfigName": "",
59               "service": "TimeLimitAndVerticalTopology",
60               "uuid": "",
61               "Location": ""
62             },
63             "responseAttributes": {},
64             "property": null
65           },
66           {
67             "policyConfigMessage": "Config Retrieved! ",
68             "policyConfigStatus": "CONFIG_RETRIEVED",
69             "type": "JSON",
70             "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\"}}",
71             "policyName": "SNIRO_CM_1707.Config_MS_Demo_TimeLimitAndVerticalTopology_pserver_localTime.1.xml",
72             "policyVersion": "1",
73             "matchingConditions": {
74               "ECOMPName": "SNIRO-Placement",
75               "ConfigName": "",
76               "service": "TimeLimitAndVerticalTopology",
77               "uuid": "",
78               "Location": ""
79             },
80             "responseAttributes": {},
81             "property": null
82           },
83           {
84             "policyConfigMessage": "Config Retrieved! ",
85             "policyConfigStatus": "CONFIG_RETRIEVED",
86             "type": "JSON",
87             "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\"}}",
88             "policyName": "SNIRO_CM_1707.Config_MS_Demo_TimeLimitAndVerticalTopology_vnf_localTime.1.xml",
89             "policyVersion": "1",
90             "matchingConditions": {
91               "ECOMPName": "SNIRO-Placement",
92               "ConfigName": "",
93               "service": "TimeLimitAndVerticalTopology",
94               "uuid": "",
95               "Location": ""
96             },
97             "responseAttributes": {},
98             "property": null
99           }
100         ]
101 */
102 @JsonInclude(JsonInclude.Include.NON_NULL)
103 @JsonPropertyOrder({
104     "policyConfigMessage",
105     "policyConfigStatus",
106     "type",
107     "config",
108     "policyName",
109     "policyVersion",
110     "matchingConditions"
111 })
112 public class RequestDetails {
113         
114         @JsonProperty("policyName")
115     private String policyName;   
116     
117         @JsonProperty("policyName")
118     public String getPolicyName() {
119         return policyName;
120     }
121
122     @JsonProperty("policyName")
123     public void setPolicyName(String policyName) {
124         this.policyName = policyName;
125     }
126     
127 }