public class RecordAPI extends AbstractAPI<Record>
| Modifier and Type | Method and Description |
|---|---|
Record |
createRecord(Long domainId,
String name,
String content,
String type) |
Record |
getById(Long recordId) |
protected Type |
getListType() |
protected Type |
getType() |
List<Record> |
listAll(Long domainId) |
List<Record> |
listByQuery(Long domainId,
String query) |
void |
removeRecord(Long recordId) |
void |
updateRecord(Long recordId,
Long domainId,
String name,
String content) |
buildHttpRequestFactory, buildRequest, buildUrl, delete, get, getGloboDns, handleExceptionIfNeeded, insertAuthenticationHeaders, interceptRequest, interceptResponse, parse, parse, performRequest, post, putpublic RecordAPI(GloboDns transport)
protected Type getType()
getType in class AbstractAPI<Record>protected Type getListType()
getListType in class AbstractAPI<Record>public Record createRecord(Long domainId, String name, String content, String type) throws GloboDnsException
GloboDnsExceptionpublic List<Record> listAll(Long domainId) throws GloboDnsException
GloboDnsExceptionpublic List<Record> listByQuery(Long domainId, String query) throws GloboDnsException
GloboDnsExceptionpublic Record getById(Long recordId) throws GloboDnsException
GloboDnsExceptionpublic void updateRecord(Long recordId, Long domainId, String name, String content) throws GloboDnsException
GloboDnsExceptionpublic void removeRecord(Long recordId) throws GloboDnsException
GloboDnsExceptionCopyright © 2018. All rights reserved.