Class RecordsetServiceImpl
- java.lang.Object
-
- org.openstack4j.openstack.internal.BaseOpenStackService
-
- org.openstack4j.openstack.dns.v2.internal.BaseDNSServices
-
- org.openstack4j.openstack.dns.v2.internal.RecordsetServiceImpl
-
- All Implemented Interfaces:
RecordsetService,RestService
public class RecordsetServiceImpl extends BaseDNSServices implements RecordsetService
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.openstack4j.openstack.internal.BaseOpenStackService
BaseOpenStackService.Invocation<R>
-
-
Constructor Summary
Constructors Constructor Description RecordsetServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Recordsetcreate(String zoneId, String name, String type, List<String> records)create a new recordsetRecordsetcreate(String zoneId, Recordset recordset)create a new recordsetActionResponsedelete(String zoneId, String recordsetId)delete a recordset within a zoneRecordsetget(String zoneId, String recordsetId)gets detailed information about a specified recordset in a zone by idList<? extends Recordset>list()list all recordsets owned by projectList<? extends Recordset>list(String zoneId)list recordsets in a zoneRecordsetupdate(String zoneId, Recordset recordset)updates an existing recordset-
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 Recordset get(String zoneId, String recordsetId)
Description copied from interface:RecordsetServicegets detailed information about a specified recordset in a zone by id- Specified by:
getin interfaceRecordsetService- Parameters:
zoneId- the uui of the zonerecordsetId- the uuid of the recordset- Returns:
- the recordset
-
delete
public ActionResponse delete(String zoneId, String recordsetId)
Description copied from interface:RecordsetServicedelete a recordset within a zone- Specified by:
deletein interfaceRecordsetService- Parameters:
zoneId- the uuid of the zonerecordsetId- the uuid of the recordset- Returns:
- the action response
-
update
public Recordset update(String zoneId, Recordset recordset)
Description copied from interface:RecordsetServiceupdates an existing recordset- Specified by:
updatein interfaceRecordsetService- Parameters:
zoneId- the identifier of the zonerecordset- the recordset set to update- Returns:
- the updated recordset
-
create
public Recordset create(String zoneId, Recordset recordset)
Description copied from interface:RecordsetServicecreate a new recordset- Specified by:
createin interfaceRecordsetService- Parameters:
zoneId- the identifier of the zonerecordset- the Recordset- Returns:
- the newly created Recordset
-
create
public Recordset create(String zoneId, String name, String type, List<String> records)
Description copied from interface:RecordsetServicecreate a new recordset- Specified by:
createin interfaceRecordsetService- Parameters:
zoneId- the identifier for the zonename- the DNS name for the recordsettype- the RRTYPE of the recordsetrecords- a list of data for this recordset. Each item will be a separate record in Designate These items should conform to the DNS spec for the record type - e.g. A records must be IPv4 addresses, CNAME records must be a hostname.- Returns:
- the newly created Recordset
-
list
public List<? extends Recordset> list(String zoneId)
Description copied from interface:RecordsetServicelist recordsets in a zone- Specified by:
listin interfaceRecordsetService- Parameters:
zoneId- the identifier of the zone- Returns:
- list of recordsets in a zone
-
list
public List<? extends Recordset> list()
Description copied from interface:RecordsetServicelist all recordsets owned by project- Specified by:
listin interfaceRecordsetService- Returns:
- list of recordsets
-
-