Aharoni, Pavel (pa0916) | ca3cb01 | 2018-10-22 15:29:57 +0300 | [diff] [blame] | 1 | /*-
|
| 2 | * ============LICENSE_START=======================================================
|
| 3 | * OSAM
|
| 4 | * ================================================================================
|
| 5 | * Copyright (C) 2018 AT&T
|
| 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 |
|
| 22 |
|
| 23 | package org.onap.osam.aai;
|
| 24 |
|
| 25 | import org.onap.osam.aai.model.AaiGetOperationalEnvironments.OperationalEnvironmentList;
|
| 26 | import org.onap.osam.aai.model.AaiGetPnfs.Pnf;
|
| 27 | import org.onap.osam.aai.model.AaiGetTenatns.GetTenantsResponse;
|
| 28 | import org.onap.osam.aai.model.AaiNodeQueryResponse;
|
| 29 | import org.onap.osam.aai.model.PortDetailsTranslator;
|
| 30 | import org.onap.osam.aai.model.ResourceType;
|
| 31 | import org.onap.osam.model.SubscriberList;
|
| 32 | import org.onap.osam.model.probes.ExternalComponentStatus;
|
| 33 |
|
| 34 | import javax.ws.rs.core.Response;
|
| 35 | import java.util.List;
|
| 36 |
|
| 37 | public interface AaiClientInterface {
|
| 38 |
|
| 39 | AaiResponse<AaiNodeQueryResponse> searchNodeTypeByName(String name, ResourceType type);
|
| 40 |
|
| 41 | AaiResponse<SubscriberList> getAllSubscribers();
|
| 42 |
|
| 43 | AaiResponse getSubscriberData(String subscriberId);
|
| 44 |
|
| 45 | AaiResponse getServices();
|
| 46 |
|
| 47 | AaiResponse getServicesByOwningEntityId(List<String> owningEntityIds);
|
| 48 |
|
| 49 | AaiResponse<GetTenantsResponse[]> getTenants(String globalCustomerId, String serviceType);
|
| 50 |
|
| 51 | AaiResponse<OperationalEnvironmentList> getOperationalEnvironments(String operationalEnvironmentType, String operationalEnvironmentStatus);
|
| 52 |
|
| 53 | AaiResponse getAllAicZones();
|
| 54 |
|
| 55 | AaiResponse getAicZoneForPnf(String globalCustomerId , String serviceType , String serviceId);
|
| 56 |
|
| 57 | AaiResponse getVNFData();
|
| 58 |
|
| 59 | AaiResponse getNetworkCollectionDetails(String serviceInstanceId);
|
| 60 |
|
| 61 | AaiResponse getInstanceGroupsByCloudRegion(String cloudOwner, String cloudRegionId, String networkFunction);
|
| 62 |
|
| 63 | Response 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 | List<PortDetailsTranslator.PortDetails> getPortMirroringSourcePorts(String configurationID);
|
| 84 |
|
| 85 | AaiResponse getInstanceGroupsByVnfInstanceId(String vnfInstanceId);
|
| 86 |
|
| 87 | ExternalComponentStatus probeAaiGetAllSubscribers();
|
| 88 | }
|