Class ZoneServiceImpl
- java.lang.Object
-
- org.openstack4j.openstack.internal.BaseOpenStackService
-
- org.openstack4j.openstack.dns.v2.internal.BaseDNSServices
-
- org.openstack4j.openstack.dns.v2.internal.ZoneServiceImpl
-
- All Implemented Interfaces:
ZoneService,RestService
public class ZoneServiceImpl extends BaseDNSServices implements ZoneService
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.openstack4j.openstack.internal.BaseOpenStackService
BaseOpenStackService.Invocation<R>
-
-
Constructor Summary
Constructors Constructor Description ZoneServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Zonecreate(String name, String email)creates a new zoneZonecreate(Zone zone)create a new zoneActionResponsedelete(String zoneId)delete a zone by idZoneget(String zoneId)gets detailed information about a specified zone by idList<? extends Zone>list()lists zones.List<? extends Nameserver>listNameservers(String zoneId)list nameservers for a zoneZoneupdate(Zone zone)updates an existing zone-
Methods inherited from class org.openstack4j.openstack.internal.BaseOpenStackService
delete, deleteWithResponse, get, getProvider, getServiceVersion, getWithResponse, getXOpenstackRequestId, head, patch, patchWithResponse, post, postWithResponse, put, putWithResponse, request, toList, uri
-
-
-
-
Method Detail
-
get
public Zone get(String zoneId)
Description copied from interface:ZoneServicegets detailed information about a specified zone by id- Specified by:
getin interfaceZoneService- Parameters:
zoneId- the zone identifier- Returns:
- the zone
-
delete
public ActionResponse delete(String zoneId)
Description copied from interface:ZoneServicedelete a zone by id- Specified by:
deletein interfaceZoneService- Parameters:
zoneId- the zone id- Returns:
- the action response
-
listNameservers
public List<? extends Nameserver> listNameservers(String zoneId)
Description copied from interface:ZoneServicelist nameservers for a zone- Specified by:
listNameserversin interfaceZoneService- Parameters:
zoneId- the zone identifier- Returns:
- list of nameservers for a zone
-
update
public Zone update(Zone zone)
Description copied from interface:ZoneServiceupdates an existing zone- Specified by:
updatein interfaceZoneService- Parameters:
zone- the zone set to update- Returns:
- the updated zone
-
create
public Zone create(Zone zone)
Description copied from interface:ZoneServicecreate a new zone- Specified by:
createin interfaceZoneService- Parameters:
zone- the zone- Returns:
- the newly created zone
-
create
public Zone create(String name, String email)
Description copied from interface:ZoneServicecreates a new zone- Specified by:
createin interfaceZoneService- Parameters:
name- the zone nameemail- the e-mail for the zone- Returns:
- the newly created group
-
list
public List<? extends Zone> list()
Description copied from interface:ZoneServicelists zones.- Specified by:
listin interfaceZoneService- Returns:
- list of zones
-
-