Search in sources :

Example 1 with ClouderaManagerRepositoryV1Request

use of com.sequenceiq.distrox.api.v1.distrox.model.cluster.cm.repository.ClouderaManagerRepositoryV1Request in project cloudbreak by hortonworks.

the class DistroXTemplateTestDto method withCluster.

private DistroXTemplateTestDto withCluster(ClusterV4Request clusterV4Request) {
    DistroXClusterV1Request cluster = new DistroXClusterV1Request();
    cluster.setBlueprintName(clusterV4Request.getBlueprintName());
    ClouderaManagerV1Request cm = new ClouderaManagerV1Request();
    ClouderaManagerRepositoryV1Request repository = new ClouderaManagerRepositoryV1Request();
    cm.setRepository(repository);
    cluster.setCm(cm);
    cluster.setUserName(clusterV4Request.getUserName());
    cluster.setPassword(clusterV4Request.getPassword());
    getRequest().setCluster(cluster);
    return this;
}
Also used : ClouderaManagerRepositoryV1Request(com.sequenceiq.distrox.api.v1.distrox.model.cluster.cm.repository.ClouderaManagerRepositoryV1Request) DistroXClusterV1Request(com.sequenceiq.distrox.api.v1.distrox.model.cluster.DistroXClusterV1Request) ClouderaManagerV1Request(com.sequenceiq.distrox.api.v1.distrox.model.cluster.cm.ClouderaManagerV1Request)

Example 2 with ClouderaManagerRepositoryV1Request

use of com.sequenceiq.distrox.api.v1.distrox.model.cluster.cm.repository.ClouderaManagerRepositoryV1Request in project cloudbreak by hortonworks.

the class ClouderaManagerRepositoryV1ToClouderaManagerRepositoryV4Converter method convert.

public ClouderaManagerRepositoryV1Request convert(ClouderaManagerRepositoryV4Request source) {
    ClouderaManagerRepositoryV1Request response = new ClouderaManagerRepositoryV1Request();
    response.setBaseUrl(source.getBaseUrl());
    response.setVersion(source.getVersion());
    response.setGpgKeyUrl(source.getGpgKeyUrl());
    return response;
}
Also used : ClouderaManagerRepositoryV1Request(com.sequenceiq.distrox.api.v1.distrox.model.cluster.cm.repository.ClouderaManagerRepositoryV1Request)

Example 3 with ClouderaManagerRepositoryV1Request

use of com.sequenceiq.distrox.api.v1.distrox.model.cluster.cm.repository.ClouderaManagerRepositoryV1Request in project cloudbreak by hortonworks.

the class DistroXClusterToClusterConverterTest method createClouderaManagerRepositoryV1Request.

private ClouderaManagerRepositoryV1Request createClouderaManagerRepositoryV1Request() {
    ClouderaManagerRepositoryV1Request r = new ClouderaManagerRepositoryV1Request();
    r.setBaseUrl("someBaeUrl");
    r.setGpgKeyUrl("someGpgKeyUrl");
    r.setVersion("someVersion");
    return r;
}
Also used : ClouderaManagerRepositoryV1Request(com.sequenceiq.distrox.api.v1.distrox.model.cluster.cm.repository.ClouderaManagerRepositoryV1Request)

Aggregations

ClouderaManagerRepositoryV1Request (com.sequenceiq.distrox.api.v1.distrox.model.cluster.cm.repository.ClouderaManagerRepositoryV1Request)3 DistroXClusterV1Request (com.sequenceiq.distrox.api.v1.distrox.model.cluster.DistroXClusterV1Request)1 ClouderaManagerV1Request (com.sequenceiq.distrox.api.v1.distrox.model.cluster.cm.ClouderaManagerV1Request)1