Package io.fathom.cloud.openstack.client.dns.model

Examples of io.fathom.cloud.openstack.client.dns.model.ZoneList


    @Inject
    DnsService dnsService;

    @GET
    public ZoneList listZones() throws CloudException {
        ZoneList zones = new ZoneList();
        zones.zones = Lists.newArrayList();

        for (DnsService.Zone domain : dnsService.listZones(getProject())) {
            zones.zones.add(toModel((DnsZone) domain));
        }
View Full Code Here


        super(httpClient, uri, tokenProvider);
    }

    public List<Zone> listZones() throws RestClientException {
        HttpRequest request = buildGet("v2/zones");
        ZoneList zones = doRequest(request, ZoneList.class);
        return zones.zones;
    }
View Full Code Here

TOP

Related Classes of io.fathom.cloud.openstack.client.dns.model.ZoneList

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.