5f69b87694cd00042f85022cf26fddbe51936c82
[vid.git] / vid-app-common / src / main / java / org / onap / vid / aai / AaiClientInterface.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * VID
4  * ================================================================================
5  * Copyright (C) 2017 - 2019 AT&T Intellectual Property. All rights reserved.
6  * ================================================================================
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  * 
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  * 
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  * ============LICENSE_END=========================================================
19  */
20
21 package org.onap.vid.aai;
22
23 import com.fasterxml.jackson.databind.JsonNode;
24 import java.net.URI;
25 import java.util.List;
26 import java.util.Map;
27 import javax.ws.rs.core.Response;
28 import org.onap.vid.aai.model.AaiGetOperationalEnvironments.OperationalEnvironmentList;
29 import org.onap.vid.aai.model.AaiGetPnfs.Pnf;
30 import org.onap.vid.aai.model.AaiGetTenatns.GetTenantsResponse;
31 import org.onap.vid.aai.model.PortDetailsTranslator;
32 import org.onap.vid.aai.model.Properties;
33 import org.onap.vid.aai.model.ResourceType;
34 import org.onap.vid.services.ProbeInterface;
35 import org.onap.vid.model.SubscriberList;
36 /**
37  * Created by Oren on 7/4/17.
38  */
39 public interface AaiClientInterface  extends ProbeInterface {
40
41     boolean isNodeTypeExistsByName(String name, ResourceType type);
42
43     <T> T typedAaiGet(URI path, Class<T> clz);
44
45     AaiResponse<SubscriberList> getAllSubscribers();
46
47     AaiResponse getSubscriberData(String subscriberId);
48
49     AaiResponse getServices();
50
51     AaiResponse getServicesByOwningEntityId(List<String> owningEntityIds);
52
53     AaiResponse<GetTenantsResponse[]> getTenants(String globalCustomerId, String serviceType);
54
55     AaiResponse<OperationalEnvironmentList> getOperationalEnvironments(String operationalEnvironmentType, String operationalEnvironmentStatus);
56
57     AaiResponse getAllAicZones();
58
59     AaiResponse getNetworkCollectionDetails(String serviceInstanceId);
60
61     AaiResponse getInstanceGroupsByCloudRegion(String cloudOwner, String cloudRegionId, String networkFunction);
62
63     AaiResponse getVNFData(String globalSubscriberId, String serviceType);
64
65     AaiResponse getVNFData(String globalSubscriberId, String serviceType, String serviceInstanceId);
66
67     AaiResponse getNodeTemplateInstances(String globalCustomerId, String serviceType, String modelVersionId, String modelInvariantId, String cloudRegion);
68
69     Response getVersionByInvariantId(List<String> modelInvariantId);
70
71     AaiResponse getServicesByProjectNames(List<String> projectNames);
72
73     AaiResponse getServiceModelsByDistributionStatus();
74         
75     AaiResponse getPNFData(String globalCustomerId, String serviceType, String modelVersionId, String modelInvariantId, String cloudRegion, String equipVendor, String equipModel);
76
77     AaiResponse<Pnf> getSpecificPnf(String pnfId);
78
79     AaiResponse getServiceInstance(String globalCustomerId, String serviceType, String serviceInstanceId);
80
81     AaiResponse getLogicalLink(String link);
82
83     AaiResponse<JsonNode> getCloudRegionAndSourceByPortMirroringConfigurationId(String configurationId);
84
85     List<PortDetailsTranslator.PortDetails> getPortMirroringSourcePorts(String configurationID);
86
87     AaiResponse getInstanceGroupsByVnfInstanceId(String vnfInstanceId);
88
89     Response doAaiGet(String uri, boolean xml);
90
91     String getCloudOwnerByCloudRegionId(String cloudRegionId);
92
93     GetTenantsResponse getHomingDataByVfModule(String vnfInstanceId, String vfModuleId);
94
95     void resetCache(String cacheName);
96
97     Map<String, Properties> getCloudRegionAndTenantByVnfId(String vnfId);
98 }