b.setTld(true);
return store.create(b);
}
public DnsSuffixData createShared(Zone zone) throws CloudException, DuplicateValueException {
DnsZoneData data = ((DnsZone) zone).getData();
NamedItemCollection<DnsSuffixData> store = repository.getDnsSuffixes();
String key = zone.getName();
key = key.toLowerCase();
DnsSuffixData.Builder b = DnsSuffixData.newBuilder();
b.setKey(key);
b.setSharedDomain(true);
b.setOwnerProject(zone.getProjectId());
if (data.hasBackend()) {
b.setBackend(data.getBackend());
}
return store.create(b);
}