2 * ============LICENSE_START=======================================================
3 * Copyright (C) 2023 Nordix Foundation
4 * ================================================================================
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
9 * http://www.apache.org/licenses/LICENSE-2.0
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
17 * SPDX-License-Identifier: Apache-2.0
18 * ============LICENSE_END=========================================================
21 package org.onap.cps.ncmp.rest.stub.handlers;
23 import java.util.List;
24 import org.onap.cps.ncmp.rest.api.NetworkCmProxyApi;
25 import org.onap.cps.ncmp.rest.model.CmHandleQueryParameters;
26 import org.onap.cps.ncmp.rest.model.ResourceDataBatchRequest;
27 import org.onap.cps.ncmp.rest.model.RestModuleDefinition;
28 import org.onap.cps.ncmp.rest.model.RestModuleReference;
29 import org.onap.cps.ncmp.rest.model.RestOutputCmHandle;
30 import org.onap.cps.ncmp.rest.model.RestOutputCmHandleCompositeState;
31 import org.onap.cps.ncmp.rest.model.RestOutputCmHandlePublicProperties;
32 import org.springframework.http.HttpStatus;
33 import org.springframework.http.ResponseEntity;
35 public interface NetworkCmProxyApiStubDefaultImpl extends NetworkCmProxyApi {
37 String ASYNC_REQUEST_ID = "requestId";
40 default ResponseEntity<Object> getResourceDataForCmHandle(final String datastoreName,
41 final String cmHandle,
42 final String resourceIdentifier,
43 final String optionsParamInQuery,
44 final String topicParamInQuery,
45 final Boolean includeDescendants) {
46 return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
50 default ResponseEntity<Object> getResourceDataForCmHandleBatch(final String topicParamInQuery,
51 final ResourceDataBatchRequest
52 resourceDataBatchRequest) {
53 return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
57 default ResponseEntity<List<RestOutputCmHandle>> searchCmHandles(
58 final CmHandleQueryParameters cmHandleQueryParameters) {
59 return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
63 default ResponseEntity<Void> createResourceDataRunningForCmHandle(final String datastoreName,
64 final String resourceIdentifier,
65 final String cmHandleId,
66 final Object requestBody,
67 final String contentType) {
68 return new ResponseEntity<>(HttpStatus.CREATED);
72 default ResponseEntity<Void> deleteResourceDataRunningForCmHandle(final String datastoreName,
73 final String cmHandleId,
74 final String resourceIdentifier,
75 final String contentType) {
76 return new ResponseEntity<>(HttpStatus.NO_CONTENT);
80 default ResponseEntity<Object> setDataSyncEnabledFlagForCmHandle(final String cmHandleId,
81 final Boolean dataSyncEnabled) {
82 return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
86 default ResponseEntity<List<String>> searchCmHandleIds(final CmHandleQueryParameters cmHandleQueryParameters) {
87 return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
91 default ResponseEntity<RestOutputCmHandlePublicProperties> getCmHandlePublicPropertiesByCmHandleId(
92 final String cmHandleId) {
93 return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
97 default ResponseEntity<RestOutputCmHandleCompositeState> getCmHandleStateByCmHandleId(final String cmHandle) {
98 return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
102 default ResponseEntity<List<RestModuleDefinition>> getModuleDefinitionsByCmHandleId(final String cmHandle) {
103 return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
107 default ResponseEntity<List<RestModuleReference>> getModuleReferencesByCmHandle(final String cmHandleId) {
108 return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
112 default ResponseEntity<Object> patchResourceDataRunningForCmHandle(final String datastoreName,
113 final String resourceIdentifier,
114 final String cmHandleId,
115 final Object requestBody,
116 final String contentType) {
117 return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
121 default ResponseEntity<Object> queryResourceDataForCmHandle(final String datastoreName,
122 final String cmHandle,
123 final String cpsPath,
124 final String optionsParamInQuery,
125 final String topicParamInQuery,
126 final Boolean includeDescendants) {
127 return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
131 default ResponseEntity<RestOutputCmHandle> retrieveCmHandleDetailsById(final String cmHandleId) {
132 return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
136 default ResponseEntity<Object> updateResourceDataRunningForCmHandle(final String datastoreName,
137 final String resourceIdentifier,
138 final String cmHandleId,
139 final Object requestBody,
140 final String contentType) {
141 return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);