use of com.sequenceiq.freeipa.api.v1.dns.model.AddDnsZoneNetwork in project cloudbreak by hortonworks.
the class FreeIpaCreationHandler method addDnsZoneForSubnetIdsRequest.
private AddDnsZoneForSubnetIdsRequest addDnsZoneForSubnetIdsRequest(EnvironmentDto environmentDto) {
AddDnsZoneForSubnetIdsRequest addDnsZoneForSubnetIdsRequest = new AddDnsZoneForSubnetIdsRequest();
addDnsZoneForSubnetIdsRequest.setEnvironmentCrn(environmentDto.getResourceCrn());
AddDnsZoneNetwork addDnsZoneNetwork = new AddDnsZoneNetwork();
addDnsZoneNetwork.setNetworkId(environmentDto.getNetwork().getNetworkId());
addDnsZoneNetwork.setSubnetIds(environmentDto.getNetwork().getSubnetIds());
addDnsZoneForSubnetIdsRequest.setAddDnsZoneNetwork(addDnsZoneNetwork);
return addDnsZoneForSubnetIdsRequest;
}
Aggregations