diff options
author | Jim Hahn <jrh3@att.com> | 2019-04-05 13:01:47 -0400 |
---|---|---|
committer | Jim Hahn <jrh3@att.com> | 2019-04-05 13:04:30 -0400 |
commit | 6ccb805aca758411d85bf2d4b15b271459e637c3 (patch) | |
tree | 7b3326645adc7cab433a43a5d9a3178d2c1f119a /models-pap/src | |
parent | 009e46781b895c60a012c4ac13baddb145f698e9 (diff) |
Add undeploy response to models-pap
Also modified toString() methods on other response classes to
invoke the super class' toString() so the error message is printed.
Change-Id: I7147da8acd521ed30d40aa6cbf2d8fd43715179b
Issue-ID: POLICY-1542
Signed-off-by: Jim Hahn <jrh3@att.com>
Diffstat (limited to 'models-pap/src')
4 files changed, 38 insertions, 3 deletions
diff --git a/models-pap/src/main/java/org/onap/policy/models/pap/concepts/PdpGroupDeleteResponse.java b/models-pap/src/main/java/org/onap/policy/models/pap/concepts/PdpGroupDeleteResponse.java index 46da8d363..e1094f48a 100644 --- a/models-pap/src/main/java/org/onap/policy/models/pap/concepts/PdpGroupDeleteResponse.java +++ b/models-pap/src/main/java/org/onap/policy/models/pap/concepts/PdpGroupDeleteResponse.java @@ -29,7 +29,7 @@ import lombok.ToString; */ @Getter @Setter -@ToString +@ToString(callSuper = true) public class PdpGroupDeleteResponse extends SimpleResponse { } diff --git a/models-pap/src/main/java/org/onap/policy/models/pap/concepts/PdpGroupDeployResponse.java b/models-pap/src/main/java/org/onap/policy/models/pap/concepts/PdpGroupDeployResponse.java index b81d02b87..2d7dd2ec3 100644 --- a/models-pap/src/main/java/org/onap/policy/models/pap/concepts/PdpGroupDeployResponse.java +++ b/models-pap/src/main/java/org/onap/policy/models/pap/concepts/PdpGroupDeployResponse.java @@ -29,7 +29,7 @@ import lombok.ToString; */ @Getter @Setter -@ToString +@ToString(callSuper = true) public class PdpGroupDeployResponse extends SimpleResponse { } 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 index 1c013012a..292848346 100644 --- 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 @@ -29,7 +29,7 @@ import lombok.ToString; */ @Getter @Setter -@ToString +@ToString(callSuper = true) public class PdpGroupStateChangeResponse extends SimpleResponse { } diff --git a/models-pap/src/main/java/org/onap/policy/models/pap/concepts/PolicyUndeployResponse.java b/models-pap/src/main/java/org/onap/policy/models/pap/concepts/PolicyUndeployResponse.java new file mode 100644 index 000000000..a41913032 --- /dev/null +++ b/models-pap/src/main/java/org/onap/policy/models/pap/concepts/PolicyUndeployResponse.java @@ -0,0 +1,35 @@ +/* + * ============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 lombok.Getter; +import lombok.Setter; +import lombok.ToString; + +/** + * Response to a Policy UNDEPLOY REST API. + */ +@Getter +@Setter +@ToString(callSuper = true) +public class PolicyUndeployResponse extends SimpleResponse { + +} |