diff options
author | Pamela Dragosh <pdragosh@research.att.com> | 2019-03-15 13:11:53 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2019-03-15 13:11:53 +0000 |
commit | 886df68bad719ab7ab3672e58ee153f4f6af92c2 (patch) | |
tree | ab29256d63544581a9575f9a35a04b4b9e08aa74 /models-pap | |
parent | 4c28d2cdbf03be9dfe51caa05d45ba341b4c94cd (diff) | |
parent | b021c3ecf1e8e523cd25cc377666d1d33c3fae97 (diff) |
Merge "Add classes for PDP "simple" REST APIs"
Diffstat (limited to 'models-pap')
4 files changed, 80 insertions, 10 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 a66263c56..46da8d363 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 @@ -30,10 +30,6 @@ import lombok.ToString; @Getter @Setter @ToString -public class PdpGroupDeleteResponse { +public class PdpGroupDeleteResponse extends SimpleResponse { - /** - * Optional detailed message in error cases. - */ - private String errorDetails; } 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 c14aa6650..b81d02b87 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 @@ -30,10 +30,6 @@ import lombok.ToString; @Getter @Setter @ToString -public class PdpGroupDeployResponse { +public class PdpGroupDeployResponse extends SimpleResponse { - /** - * Optional detailed message in error cases. - */ - private String errorDetails; } 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 new file mode 100644 index 000000000..f20255858 --- /dev/null +++ b/models-pap/src/main/java/org/onap/policy/models/pap/concepts/PdpPolicies.java @@ -0,0 +1,39 @@ +/* + * ============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; +import org.onap.policy.pdp.common.models.Policy; + +/** + * Request deploy or update a set of policies using the <i>simple</i> PDP Group deployment + * REST API. Only the "name" and "policyVersion" fields of a Policy are used, and only the + * "name" field is actually required. + */ +@Getter +@Setter +@ToString +public class PdpPolicies { + private List<Policy> policies; +} diff --git a/models-pap/src/main/java/org/onap/policy/models/pap/concepts/SimpleResponse.java b/models-pap/src/main/java/org/onap/policy/models/pap/concepts/SimpleResponse.java new file mode 100644 index 000000000..e4e84e7f0 --- /dev/null +++ b/models-pap/src/main/java/org/onap/policy/models/pap/concepts/SimpleResponse.java @@ -0,0 +1,39 @@ +/* + * ============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 returned when no extra output fields are needed. + */ +@Getter +@Setter +@ToString +public class SimpleResponse { + + /** + * Optional detailed message in error cases. + */ + private String errorDetails; +} |