| Constructor and Description |
|---|
TemplatesEndpoint(HttpEndpointClient client) |
| Modifier and Type | Method and Description |
|---|---|
ApplyTemplateResponse |
applyTemplate(String accountId,
String templateId,
String domainId)
Apply a template from the account to the domain
|
CreateTemplateResponse |
createTemplate(String accountId,
Map<String,Object> attributes)
Create a template in the account.
|
CreateTemplateRecordResponse |
createTemplateRecord(String accountId,
String templateId,
Map<String,Object> attributes)
Create a record in the template.
|
DeleteTemplateResponse |
deleteTemplate(String accountId,
String templateId)
Delete a template from the account.
|
DeleteTemplateRecordResponse |
deleteTemplateRecord(String accountId,
String templateId,
String recordId)
Delete a record from the template.
|
GetTemplateResponse |
getTemplate(String accountId,
String templateId)
Get a specific template associated to an account using the templates's ID.
|
GetTemplateRecordResponse |
getTemplateRecord(String accountId,
String templateId,
String recordId)
Get a specific record associated to a template using the record's ID.
|
ListTemplateRecordsResponse |
listTemplateRecords(String accountId,
String templateId)
Lists the records in the template.
|
ListTemplateRecordsResponse |
listTemplateRecords(String accountId,
String templateId,
Map<String,Object> options)
Lists the records in the template.
|
ListTemplatesResponse |
listTemplates(String accountId)
Lists the templates in the account.
|
ListTemplatesResponse |
listTemplates(String accountId,
Map<String,Object> options)
Lists the templates in the account.
|
UpdateTemplateResponse |
updateTemplate(String accountId,
String templateId,
Map<String,Object> attributes)
Update a template in the account.
|
public TemplatesEndpoint(HttpEndpointClient client)
public ListTemplatesResponse listTemplates(String accountId) throws DnsimpleException, IOException
TemplateslistTemplates in interface TemplatesaccountId - The account IDDnsimpleException - Any API errorsIOException - Any IO errorspublic ListTemplatesResponse listTemplates(String accountId, Map<String,Object> options) throws DnsimpleException, IOException
TemplateslistTemplates in interface TemplatesaccountId - The account IDoptions - A Map of options to pass to the templates APIDnsimpleException - Any API errorsIOException - Any IO errorspublic GetTemplateResponse getTemplate(String accountId, String templateId) throws DnsimpleException, IOException
TemplatesgetTemplate in interface TemplatesaccountId - The account IDtemplateId - The template IDDnsimpleException - Any API errorsIOException - Any IO errorspublic CreateTemplateResponse createTemplate(String accountId, Map<String,Object> attributes) throws DnsimpleException, IOException
TemplatescreateTemplate in interface TemplatesaccountId - The account IDattributes - A map of attributes to contruct the templateDnsimpleException - Any API errorsIOException - Any IO errorspublic UpdateTemplateResponse updateTemplate(String accountId, String templateId, Map<String,Object> attributes) throws DnsimpleException, IOException
TemplatesupdateTemplate in interface TemplatesaccountId - The account IDtemplateId - The template IDattributes - A map of attributes to update the templateDnsimpleException - Any API errorsIOException - Any IO errorspublic DeleteTemplateResponse deleteTemplate(String accountId, String templateId) throws DnsimpleException, IOException
TemplatesdeleteTemplate in interface TemplatesaccountId - The account IDtemplateId - The template IDDnsimpleException - Any API errorsIOException - Any IO errorspublic ApplyTemplateResponse applyTemplate(String accountId, String templateId, String domainId) throws DnsimpleException, IOException
TemplatesapplyTemplate in interface TemplatesaccountId - The account IDtemplateId - The template IDdomainId - The domain IDDnsimpleException - Any API errorsIOException - Any IO errorspublic ListTemplateRecordsResponse listTemplateRecords(String accountId, String templateId) throws DnsimpleException, IOException
TemplateslistTemplateRecords in interface TemplatesaccountId - The account IDtemplateId - The template IDDnsimpleException - Any API errorsIOException - Any IO errorspublic ListTemplateRecordsResponse listTemplateRecords(String accountId, String templateId, Map<String,Object> options) throws DnsimpleException, IOException
TemplateslistTemplateRecords in interface TemplatesaccountId - The account IDtemplateId - The template IDoptions - A Map of options to pass to the templates APIDnsimpleException - Any API errorsIOException - Any IO errorspublic GetTemplateRecordResponse getTemplateRecord(String accountId, String templateId, String recordId) throws DnsimpleException, IOException
TemplatesgetTemplateRecord in interface TemplatesaccountId - The account IDtemplateId - The template IDrecordId - The record IDDnsimpleException - Any API errorsIOException - Any IO errorspublic CreateTemplateRecordResponse createTemplateRecord(String accountId, String templateId, Map<String,Object> attributes) throws DnsimpleException, IOException
TemplatescreateTemplateRecord in interface TemplatesaccountId - The account IDtemplateId - The template IDattributes - A map of attributes to contruct the template recordDnsimpleException - Any API errorsIOException - Any IO errorspublic DeleteTemplateRecordResponse deleteTemplateRecord(String accountId, String templateId, String recordId) throws DnsimpleException, IOException
TemplatesdeleteTemplateRecord in interface TemplatesaccountId - The account IDtemplateId - The template IDrecordId - The record IDDnsimpleException - Any API errorsIOException - Any IO errorsCopyright © 2017 DNSimple. All rights reserved.