Class RecordsetServiceImpl

    • Constructor Detail

      • RecordsetServiceImpl

        public RecordsetServiceImpl()
    • 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 interface RecordsetService
        Parameters:
        zoneId - the uui of the zone
        recordsetId - 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 interface RecordsetService
        Parameters:
        zoneId - the uuid of the zone
        recordsetId - 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 interface RecordsetService
        Parameters:
        zoneId - the identifier of the zone
        recordset - 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 interface RecordsetService
        Parameters:
        zoneId - the identifier of the zone
        recordset - 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 interface RecordsetService
        Parameters:
        zoneId - the identifier for the zone
        name - the DNS name for the recordset
        type - the RRTYPE of the recordset
        records - 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 interface RecordsetService
        Parameters:
        zoneId - the identifier of the zone
        Returns:
        list of recordsets in a zone