From a76f5614e10f99658114ea1ff2eaf334e0df01c8 Mon Sep 17 00:00:00 2001 From: FrancescoFioraEst Date: Tue, 3 Jan 2023 16:15:39 +0000 Subject: Refactor Post instances to create and update ACM instances Issue-ID: POLICY-4493 Change-Id: I31c00e6d61a53dcd6a03a911a618f1c6495f2d38 Signed-off-by: FrancescoFioraEst --- .../models/acm/concepts/AutomationComposition.java | 2 +- .../rest/instantiation/InstantiationUpdate.java | 34 ---------------------- 2 files changed, 1 insertion(+), 35 deletions(-) delete mode 100644 models/src/main/java/org/onap/policy/clamp/models/acm/messages/rest/instantiation/InstantiationUpdate.java (limited to 'models/src') diff --git a/models/src/main/java/org/onap/policy/clamp/models/acm/concepts/AutomationComposition.java b/models/src/main/java/org/onap/policy/clamp/models/acm/concepts/AutomationComposition.java index b19f54c3b..83c51eadb 100644 --- a/models/src/main/java/org/onap/policy/clamp/models/acm/concepts/AutomationComposition.java +++ b/models/src/main/java/org/onap/policy/clamp/models/acm/concepts/AutomationComposition.java @@ -37,7 +37,7 @@ import org.onap.policy.models.tosca.authorative.concepts.ToscaEntity; @Data @EqualsAndHashCode(callSuper = true) public class AutomationComposition extends ToscaEntity implements Comparable { - @NonNull + private UUID instanceId; @NonNull diff --git a/models/src/main/java/org/onap/policy/clamp/models/acm/messages/rest/instantiation/InstantiationUpdate.java b/models/src/main/java/org/onap/policy/clamp/models/acm/messages/rest/instantiation/InstantiationUpdate.java deleted file mode 100644 index 7aab59436..000000000 --- a/models/src/main/java/org/onap/policy/clamp/models/acm/messages/rest/instantiation/InstantiationUpdate.java +++ /dev/null @@ -1,34 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * Copyright (C) 2022 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.clamp.models.acm.messages.rest.instantiation; - -import java.util.Map; -import java.util.UUID; -import lombok.Data; -import org.onap.policy.clamp.models.acm.concepts.AutomationCompositionElement; - -@Data -public class InstantiationUpdate { - - private InstantiationCommand instantiationCommand; - - private Map elements; -} -- cgit 1.2.3-korg