Adding classes to models-pap 96/82796/1
authorramverma <ram.krishna.verma@est.tech>
Wed, 20 Mar 2019 13:36:35 +0000 (13:36 +0000)
committerramverma <ram.krishna.verma@est.tech>
Wed, 20 Mar 2019 13:36:35 +0000 (13:36 +0000)
Change-Id: I59acfeeef5e2b93d7d16dbf5c26811a037e255c1
Issue-ID: POLICY-1541
Signed-off-by: ramverma <ram.krishna.verma@est.tech>
models-pap/src/main/java/org/onap/policy/models/pap/concepts/PdpGroup.java
models-pap/src/main/java/org/onap/policy/models/pap/concepts/PdpGroupStateChangeResponse.java [new file with mode: 0644]
models-pap/src/main/java/org/onap/policy/models/pap/concepts/PdpInstanceDetails.java
models-pap/src/main/java/org/onap/policy/models/pap/concepts/PdpPolicies.java
models-pap/src/main/java/org/onap/policy/models/pap/concepts/PdpSubGroup.java
models-pap/src/main/java/org/onap/policy/models/pap/concepts/Policy.java [new file with mode: 0644]

index 6da5a10..148168d 100644 (file)
@@ -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 (file)
index 0000000..1c01301
--- /dev/null
@@ -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 {
+
+}
index 44645fc..168c20e 100644 (file)
@@ -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;
 }
index f202558..e5ae24d 100644 (file)
 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
index 248c829..ebb476d 100644 (file)
@@ -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 (file)
index 0000000..e1281fc
--- /dev/null
@@ -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;
+}