Search in sources :

Example 1 with AAIClientCallFailed

use of org.onap.so.apihandlerinfra.tenantisolation.exceptions.AAIClientCallFailed in project so by onap.

the class AAIClientHelper method updateAaiOperationalEnvironment.

public void updateAaiOperationalEnvironment(String operationalEnvironmentId, Map<String, String> payload) throws AAIClientCallFailed {
    try {
        AAIResourceUri uri = AAIUriFactory.createResourceUri(AAIFluentTypeBuilder.cloudInfrastructure().operationalEnvironment(operationalEnvironmentId));
        AAIResourcesClient aaiClient = this.getClient();
        aaiClient.update(uri, payload);
    } catch (Exception ex) {
        logStackTrace(ex);
        throw new AAIClientCallFailed("Call to A&AI failed!", ex);
    }
}
Also used : AAIClientCallFailed(org.onap.so.apihandlerinfra.tenantisolation.exceptions.AAIClientCallFailed) AAIResourceUri(org.onap.aaiclient.client.aai.entities.uri.AAIResourceUri) AAIResourcesClient(org.onap.aaiclient.client.aai.AAIResourcesClient) NotFoundException(javax.ws.rs.NotFoundException)

Aggregations

NotFoundException (javax.ws.rs.NotFoundException)1 AAIResourcesClient (org.onap.aaiclient.client.aai.AAIResourcesClient)1 AAIResourceUri (org.onap.aaiclient.client.aai.entities.uri.AAIResourceUri)1 AAIClientCallFailed (org.onap.so.apihandlerinfra.tenantisolation.exceptions.AAIClientCallFailed)1