Package io.fathom.cloud.compute.api.os.model

Examples of io.fathom.cloud.compute.api.os.model.RecordList


                isIp = false;
            }
        }

        if (isIp) {
            RecordList response = listRecordsByIp(domainName, nameOrIp);
            return Response.ok().entity(response).build();
        } else {
            WrappedRecord response = findRecordByFqdn(domainName, nameOrIp);
            return Response.ok().entity(response).build();
        }
View Full Code Here


        Project project = getProject();

        DnsService.Zone domain = dnsService.findZoneByName(project, domainName);
        notFoundIfNull(domain);

        RecordList response = new RecordList();
        response.dns_entries = Lists.newArrayList();
        for (DnsService.Recordset recordset : dnsService.listRecordsets(project, domain)) {
            for (DnsService.Record record : recordset.getRecords()) {
                if (ip.equals(record.getTarget())) {
                    response.dns_entries.add(toModel(recordset, record));
View Full Code Here

TOP

Related Classes of io.fathom.cloud.compute.api.os.model.RecordList

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.