aboutsummaryrefslogtreecommitdiffstats
path: root/models-pap/src/main/java/org
diff options
context:
space:
mode:
authorramverma <ram.krishna.verma@est.tech>2019-03-20 13:36:35 +0000
committerramverma <ram.krishna.verma@est.tech>2019-03-20 13:36:35 +0000
commitd614f2f3871ea6b46b0e8b0bbd8be70414710164 (patch)
treec385289b6eaf5b517788a6eac1f696dc5b8a6487 /models-pap/src/main/java/org
parent9727c320342dfaffeb13c4b5894fb4a9047943d7 (diff)
Adding classes to models-pap
Change-Id: I59acfeeef5e2b93d7d16dbf5c26811a037e255c1 Issue-ID: POLICY-1541 Signed-off-by: ramverma <ram.krishna.verma@est.tech>
Diffstat (limited to 'models-pap/src/main/java/org')
-rw-r--r--models-pap/src/main/java/org/onap/policy/models/pap/concepts/PdpGroup.java2
-rw-r--r--models-pap/src/main/java/org/onap/policy/models/pap/concepts/PdpGroupStateChangeResponse.java35
-rw-r--r--models-pap/src/main/java/org/onap/policy/models/pap/concepts/PdpInstanceDetails.java2
-rw-r--r--models-pap/src/main/java/org/onap/policy/models/pap/concepts/PdpPolicies.java2
-rw-r--r--models-pap/src/main/java/org/onap/policy/models/pap/concepts/PdpSubGroup.java2
-rw-r--r--models-pap/src/main/java/org/onap/policy/models/pap/concepts/Policy.java42
6 files changed, 80 insertions, 5 deletions
diff --git a/models-pap/src/main/java/org/onap/policy/models/pap/concepts/PdpGroup.java b/models-pap/src/main/java/org/onap/policy/models/pap/concepts/PdpGroup.java
index 6da5a10d1..148168d89 100644
--- a/models-pap/src/main/java/org/onap/policy/models/pap/concepts/PdpGroup.java
+++ b/models-pap/src/main/java/org/onap/policy/models/pap/concepts/PdpGroup.java
@@ -41,7 +41,7 @@ public class PdpGroup {
private String name;
private String version;
- private PdpState state;
+ private PdpState pdpGroupstate;
private String description;
private Map<String, String> properties;
private List<PdpSubGroup> pdpSubgroups;
diff --git a/models-pap/src/main/java/org/onap/policy/models/pap/concepts/PdpGroupStateChangeResponse.java b/models-pap/src/main/java/org/onap/policy/models/pap/concepts/PdpGroupStateChangeResponse.java
new file mode 100644
index 000000000..1c013012a
--- /dev/null
+++ b/models-pap/src/main/java/org/onap/policy/models/pap/concepts/PdpGroupStateChangeResponse.java
@@ -0,0 +1,35 @@
+/*-
+ * ============LICENSE_START=======================================================
+ * Copyright (C) 2019 Nordix Foundation.
+ * ================================================================================
+ * 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.
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ * ============LICENSE_END=========================================================
+ */
+
+package org.onap.policy.models.pap.concepts;
+
+import lombok.Getter;
+import lombok.Setter;
+import lombok.ToString;
+
+/**
+ * Response to PDP Group State Change REST API.
+ */
+@Getter
+@Setter
+@ToString
+public class PdpGroupStateChangeResponse extends SimpleResponse {
+
+}
diff --git a/models-pap/src/main/java/org/onap/policy/models/pap/concepts/PdpInstanceDetails.java b/models-pap/src/main/java/org/onap/policy/models/pap/concepts/PdpInstanceDetails.java
index 44645fcc0..168c20e38 100644
--- a/models-pap/src/main/java/org/onap/policy/models/pap/concepts/PdpInstanceDetails.java
+++ b/models-pap/src/main/java/org/onap/policy/models/pap/concepts/PdpInstanceDetails.java
@@ -38,7 +38,7 @@ import org.onap.policy.pdp.common.enums.PdpState;
public class PdpInstanceDetails {
private String instanceId;
- private PdpState state;
+ private PdpState pdpState;
private PdpHealthStatus healthy;
private String message;
}
diff --git a/models-pap/src/main/java/org/onap/policy/models/pap/concepts/PdpPolicies.java b/models-pap/src/main/java/org/onap/policy/models/pap/concepts/PdpPolicies.java
index f20255858..e5ae24d0f 100644
--- a/models-pap/src/main/java/org/onap/policy/models/pap/concepts/PdpPolicies.java
+++ b/models-pap/src/main/java/org/onap/policy/models/pap/concepts/PdpPolicies.java
@@ -21,10 +21,10 @@
package org.onap.policy.models.pap.concepts;
import java.util.List;
+
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
-import org.onap.policy.pdp.common.models.Policy;
/**
* Request deploy or update a set of policies using the <i>simple</i> PDP Group deployment
diff --git a/models-pap/src/main/java/org/onap/policy/models/pap/concepts/PdpSubGroup.java b/models-pap/src/main/java/org/onap/policy/models/pap/concepts/PdpSubGroup.java
index 248c82979..ebb476d92 100644
--- a/models-pap/src/main/java/org/onap/policy/models/pap/concepts/PdpSubGroup.java
+++ b/models-pap/src/main/java/org/onap/policy/models/pap/concepts/PdpSubGroup.java
@@ -27,8 +27,6 @@ import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
-import org.onap.policy.pdp.common.models.Policy;
-
/**
* Class to represent a group of all PDP's of the same pdp type running for a particular domain.
*
diff --git a/models-pap/src/main/java/org/onap/policy/models/pap/concepts/Policy.java b/models-pap/src/main/java/org/onap/policy/models/pap/concepts/Policy.java
new file mode 100644
index 000000000..e1281fc51
--- /dev/null
+++ b/models-pap/src/main/java/org/onap/policy/models/pap/concepts/Policy.java
@@ -0,0 +1,42 @@
+/*-
+ * ============LICENSE_START=======================================================
+ * Copyright (C) 2019 Nordix Foundation.
+ * ================================================================================
+ * 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.
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ * ============LICENSE_END=========================================================
+ */
+
+package org.onap.policy.models.pap.concepts;
+
+import lombok.Getter;
+import lombok.Setter;
+import lombok.ToString;
+
+/**
+ * Class to represent a policy running in a PDP.
+ *
+ * @author Ram Krishna Verma (ram.krishna.verma@est.tech)
+ */
+@Getter
+@Setter
+@ToString
+public class Policy {
+
+ private String name;
+ private String policyVersion;
+ private String policyType;
+ private String policyTypeVersion;
+ private String policyTypeImpl;
+}