From 9ca69ce08503a4032136ed468859fc73e68fd3d3 Mon Sep 17 00:00:00 2001 From: Jim Hahn Date: Fri, 15 Mar 2019 11:36:16 -0400 Subject: Add list of policy groups to API models The PDP Group Deploy REST API should take a list of PdpGroup, not a single PdpGroup. Change-Id: I0d626ce16793f5bcb3d34b697116f8545861d9f6 Issue-ID: POLICY-1542 Signed-off-by: Jim Hahn --- .../onap/policy/models/pap/concepts/PdpGroups.java | 37 ++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 models-pap/src/main/java/org/onap/policy/models/pap/concepts/PdpGroups.java diff --git a/models-pap/src/main/java/org/onap/policy/models/pap/concepts/PdpGroups.java b/models-pap/src/main/java/org/onap/policy/models/pap/concepts/PdpGroups.java new file mode 100644 index 000000000..4c732bbf9 --- /dev/null +++ b/models-pap/src/main/java/org/onap/policy/models/pap/concepts/PdpGroups.java @@ -0,0 +1,37 @@ +/* + * ============LICENSE_START======================================================= + * ONAP Policy Models + * ================================================================================ + * Copyright (C) 2019 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.policy.models.pap.concepts; + +import java.util.List; +import lombok.Getter; +import lombok.Setter; +import lombok.ToString; + +/** + * Request deploy or update a set of groups via the PDP Group deployment + * REST API. + */ +@Getter +@Setter +@ToString +public class PdpGroups { + private List groups; +} -- cgit 1.2.3-korg