blob: 9c2997aa9818b467a848a4f31b1fae36c30fd104 [file] [log] [blame]
Aharoni, Pavel (pa0916)ca3cb012018-10-22 15:29:57 +03001/*-
2 * ============LICENSE_START=======================================================
3 * OSAM
4 * ================================================================================
5 * Copyright (C) 2018 AT&T
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
22
23package org.onap.osam.policy.rest;
24
25import com.fasterxml.jackson.annotation.JsonInclude;
26import com.fasterxml.jackson.annotation.JsonProperty;
27import com.fasterxml.jackson.annotation.JsonPropertyOrder;
28
29/*
30 [
31 {
32 "policyConfigMessage": "Config Retrieved! ",
33 "policyConfigStatus": "CONFIG_RETRIEVED",
34 "type": "JSON",
35 "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\"}}",
36 "policyName": "SNIRO_CM_1707.Config_MS_Demo_TimeLimitAndVerticalTopology_zone_localTime.1.xml",
37 "policyVersion": "1",
38 "matchingConditions": {
39 "ECOMPName": "SNIRO-Placement",
40 "ConfigName": "",
41 "service": "TimeLimitAndVerticalTopology",
42 "uuid": "",
43 "Location": ""
44 },
45 "responseAttributes": {},
46 "property": null
47 },
48 {
49 "policyConfigMessage": "Config Retrieved! ",
50 "policyConfigStatus": "CONFIG_RETRIEVED",
51 "type": "JSON",
52 "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\"}}",
53 "policyName": "SNIRO_CM_1707.Config_MS_Demo_TimeLimitAndVerticalTopology_pserver_localTime.1.xml",
54 "policyVersion": "1",
55 "matchingConditions": {
56 "ECOMPName": "SNIRO-Placement",
57 "ConfigName": "",
58 "service": "TimeLimitAndVerticalTopology",
59 "uuid": "",
60 "Location": ""
61 },
62 "responseAttributes": {},
63 "property": null
64 },
65 {
66 "policyConfigMessage": "Config Retrieved! ",
67 "policyConfigStatus": "CONFIG_RETRIEVED",
68 "type": "JSON",
69 "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\"}}",
70 "policyName": "SNIRO_CM_1707.Config_MS_Demo_TimeLimitAndVerticalTopology_vnf_localTime.1.xml",
71 "policyVersion": "1",
72 "matchingConditions": {
73 "ECOMPName": "SNIRO-Placement",
74 "ConfigName": "",
75 "service": "TimeLimitAndVerticalTopology",
76 "uuid": "",
77 "Location": ""
78 },
79 "responseAttributes": {},
80 "property": null
81 }
82 ]
83*/
84@JsonInclude(JsonInclude.Include.NON_NULL)
85@JsonPropertyOrder({
86 "policyConfigMessage",
87 "policyConfigStatus",
88 "type",
89 "config",
90 "policyName",
91 "policyVersion",
92 "matchingConditions"
93})
94public class RequestDetails {
95
96 @JsonProperty("policyName")
97 private String policyName;
98
99 @JsonProperty("policyName")
100 public String getPolicyName() {
101 return policyName;
102 }
103
104 @JsonProperty("policyName")
105 public void setPolicyName(String policyName) {
106 this.policyName = policyName;
107 }
108
109}