Search in sources :

Example 6 with CredentialViewResponse

use of com.sequenceiq.environment.api.v1.credential.model.response.CredentialViewResponse in project cloudbreak by hortonworks.

the class CredentialViewConverter method convert.

public CredentialViewResponse convert(CredentialView credentialView) {
    CredentialViewResponse response = new CredentialViewResponse();
    response.setName(credentialView.getName());
    response.setCloudPlatform(credentialView.getCloudPlatform());
    response.setCreator(credentialView.getCreator());
    response.setCrn(credentialView.getResourceCrn());
    response.setDescription(credentialView.getDescription());
    response.setVerificationStatusText(credentialView.getVerificationStatusText());
    response.setType(credentialView.getType());
    response.setGovCloud(credentialView.getGovCloud());
    return response;
}
Also used : CredentialViewResponse(com.sequenceiq.environment.api.v1.credential.model.response.CredentialViewResponse)

Aggregations

CredentialViewResponse (com.sequenceiq.environment.api.v1.credential.model.response.CredentialViewResponse)6 Test (org.junit.jupiter.api.Test)3 SimpleEnvironmentResponse (com.sequenceiq.environment.api.v1.environment.model.response.SimpleEnvironmentResponse)2 NameOrCrn (com.sequenceiq.cloudbreak.api.endpoint.v4.dto.NameOrCrn)1 StackViewV4Response (com.sequenceiq.cloudbreak.api.endpoint.v4.stacks.response.StackViewV4Response)1 TelemetryResponse (com.sequenceiq.common.api.telemetry.response.TelemetryResponse)1 CompactRegionResponse (com.sequenceiq.environment.api.v1.environment.model.response.CompactRegionResponse)1 EnvironmentNetworkResponse (com.sequenceiq.environment.api.v1.environment.model.response.EnvironmentNetworkResponse)1 FreeIpaResponse (com.sequenceiq.environment.api.v1.environment.model.response.FreeIpaResponse)1 SimpleEnvironmentResponses (com.sequenceiq.environment.api.v1.environment.model.response.SimpleEnvironmentResponses)1 ProxyViewResponse (com.sequenceiq.environment.api.v1.proxy.model.response.ProxyViewResponse)1 Credential (com.sequenceiq.environment.credential.domain.Credential)1 CredentialView (com.sequenceiq.environment.credential.domain.CredentialView)1 EnvironmentDto (com.sequenceiq.environment.environment.dto.EnvironmentDto)1 ParameterizedTest (org.junit.jupiter.params.ParameterizedTest)1 EnumSource (org.junit.jupiter.params.provider.EnumSource)1