Search in sources :

Example 1 with CloudOrchestrationRequest

use of org.onap.so.apihandlerinfra.tenantisolation.CloudOrchestrationRequest in project so by onap.

the class CreateEcompOperationalEnvironmentTest method getCloudOrchestrationRequest.

public CloudOrchestrationRequest getCloudOrchestrationRequest() {
    CloudOrchestrationRequest request = new CloudOrchestrationRequest();
    RequestDetails reqDetails = new RequestDetails();
    RequestInfo reqInfo = new RequestInfo();
    RequestParameters reqParams = new RequestParameters();
    reqParams.setTenantContext("TEST");
    reqParams.setWorkloadContext("ECOMP_TEST");
    reqParams.setOperationalEnvironmentType(OperationalEnvironment.ECOMP);
    reqInfo.setInstanceName("TEST_ECOMP_ENVIRONMENT");
    reqDetails.setRequestInfo(reqInfo);
    reqDetails.setRequestParameters(reqParams);
    request.setRequestDetails(reqDetails);
    request.setOperationalEnvironmentId("operationalEnvId");
    return request;
}
Also used : CloudOrchestrationRequest(org.onap.so.apihandlerinfra.tenantisolation.CloudOrchestrationRequest) RequestInfo(org.onap.so.apihandlerinfra.tenantisolationbeans.RequestInfo) RequestDetails(org.onap.so.apihandlerinfra.tenantisolationbeans.RequestDetails) RequestParameters(org.onap.so.apihandlerinfra.tenantisolationbeans.RequestParameters)

Example 2 with CloudOrchestrationRequest

use of org.onap.so.apihandlerinfra.tenantisolation.CloudOrchestrationRequest in project so by onap.

the class AAIClientObjectBuilderTest method getCloudOrchestrationRequest.

public CloudOrchestrationRequest getCloudOrchestrationRequest() {
    CloudOrchestrationRequest cor = new CloudOrchestrationRequest();
    RequestDetails reqDetails = new RequestDetails();
    RequestInfo reqInfo = new RequestInfo();
    RequestParameters reqParams = new RequestParameters();
    reqParams.setTenantContext("TEST");
    reqParams.setWorkloadContext("ECOMP_TEST");
    reqParams.setOperationalEnvironmentType(OperationalEnvironment.ECOMP);
    reqInfo.setInstanceName("TEST_ECOMP_ENVIRONMENT");
    reqDetails.setRequestInfo(reqInfo);
    reqDetails.setRequestParameters(reqParams);
    cor.setRequestDetails(reqDetails);
    return cor;
}
Also used : CloudOrchestrationRequest(org.onap.so.apihandlerinfra.tenantisolation.CloudOrchestrationRequest) RequestInfo(org.onap.so.apihandlerinfra.tenantisolationbeans.RequestInfo) RequestDetails(org.onap.so.apihandlerinfra.tenantisolationbeans.RequestDetails) RequestParameters(org.onap.so.apihandlerinfra.tenantisolationbeans.RequestParameters)

Aggregations

CloudOrchestrationRequest (org.onap.so.apihandlerinfra.tenantisolation.CloudOrchestrationRequest)2 RequestDetails (org.onap.so.apihandlerinfra.tenantisolationbeans.RequestDetails)2 RequestInfo (org.onap.so.apihandlerinfra.tenantisolationbeans.RequestInfo)2 RequestParameters (org.onap.so.apihandlerinfra.tenantisolationbeans.RequestParameters)2