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 Recordset
create(String zoneId, String name, String type, List<String> records)
create a new recordsetRecordset
create(String zoneId, Recordset recordset)
create a new recordsetActionResponse
delete(String zoneId, String recordsetId)
delete a recordset within a zoneRecordset
get(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 zoneRecordset
update(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:RecordsetService
gets detailed information about a specified recordset in a zone by id- Specified by:
get
in 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:RecordsetService
delete a recordset within a zone- Specified by:
delete
in 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:RecordsetService
updates an existing recordset- Specified by:
update
in 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:RecordsetService
create a new recordset- Specified by:
create
in 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:RecordsetService
create a new recordset- Specified by:
create
in 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:RecordsetService
list recordsets in a zone- Specified by:
list
in 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:RecordsetService
list all recordsets owned by project- Specified by:
list
in interfaceRecordsetService
- Returns:
- list of recordsets
-
-