aboutsummaryrefslogtreecommitdiffstats
path: root/models-pap/src
diff options
context:
space:
mode:
authorJim Hahn <jrh3@att.com>2019-03-15 11:36:16 -0400
committerJim Hahn <jrh3@att.com>2019-03-15 11:36:16 -0400
commit9ca69ce08503a4032136ed468859fc73e68fd3d3 (patch)
tree5648c948f8ce7793676562a99ee5d6860aeadca8 /models-pap/src
parent4d23287f72f42103521d2b7738e93e79532b0246 (diff)
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 <jrh3@att.com>
Diffstat (limited to 'models-pap/src')
-rw-r--r--models-pap/src/main/java/org/onap/policy/models/pap/concepts/PdpGroups.java37
1 files changed, 37 insertions, 0 deletions
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<PdpGroup> groups;
+}