Package com.dnsimple.endpoints
Class Templates
java.lang.Object
com.dnsimple.endpoints.Templates
Provides access to the DNSimple Templates API.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapplyTemplate(Number account, String template, String domain) Apply a template from the account to the domaincreateTemplate(Number account, TemplateOptions options) Create a template in the account.createTemplateRecord(Number account, String template, TemplateRecordOptions options) Create a record in the template.deleteTemplate(Number account, String template) Delete a template from the account.deleteTemplateRecord(Number account, String template, Number record) Delete a record from the template.getTemplate(Number account, String template) Get a specific template associated to an account using the templates's ID.getTemplateRecord(Number account, String template, Number record) Get a specific record associated to a template using the record's ID.listTemplateRecords(Number account, String template) Lists the records in the template.listTemplateRecords(Number account, String template, ListOptions options) Lists the records in the template.listTemplates(Number account) Lists the templates in the account.listTemplates(Number account, ListOptions options) Lists the templates in the account.updateTemplate(Number account, String template, TemplateOptions options) Update a template in the account.
-
Constructor Details
-
Templates
-
-
Method Details
-
listTemplates
Lists the templates in the account.- Parameters:
account- The account ID- Returns:
- The list templates response
- See Also:
-
listTemplates
Lists the templates in the account.- Parameters:
account- The account IDoptions- The options for the list request- Returns:
- The list templates response
- See Also:
-
createTemplate
Create a template in the account.- Parameters:
account- The account IDoptions- The template options- Returns:
- The create template response
- See Also:
-
getTemplate
Get a specific template associated to an account using the templates's ID.- Parameters:
account- The account IDtemplate- The template short name or ID- Returns:
- The get template response
- See Also:
-
updateTemplate
public SimpleResponse<Template> updateTemplate(Number account, String template, TemplateOptions options) Update a template in the account.- Parameters:
account- The account IDtemplate- The template short name or IDoptions- The template options- Returns:
- The update template response
- See Also:
-
deleteTemplate
Delete a template from the account.- Parameters:
account- The account IDtemplate- The template short name or ID- Returns:
- The delete template response
- See Also:
-
applyTemplate
Apply a template from the account to the domain- Parameters:
account- The account IDtemplate- The template short name or IDdomain- The domain ID or name- Returns:
- The apply template response
- See Also:
-
listTemplateRecords
Lists the records in the template.- Parameters:
account- The account IDtemplate- The template short name or ID- Returns:
- The list template records response
- See Also:
-
listTemplateRecords
public PaginatedResponse<TemplateRecord> listTemplateRecords(Number account, String template, ListOptions options) Lists the records in the template.- Parameters:
account- The account IDtemplate- The template short name or IDoptions- The options for the list request- Returns:
- The list template records response
- See Also:
-
createTemplateRecord
public SimpleResponse<TemplateRecord> createTemplateRecord(Number account, String template, TemplateRecordOptions options) Create a record in the template.- Parameters:
account- The account IDtemplate- The template short name or IDoptions- The template record options- Returns:
- The create template record response
- See Also:
-
getTemplateRecord
public SimpleResponse<TemplateRecord> getTemplateRecord(Number account, String template, Number record) Get a specific record associated to a template using the record's ID.- Parameters:
account- The account IDtemplate- The template short name or IDrecord- The record ID- Returns:
- The get template record response
- See Also:
-
deleteTemplateRecord
Delete a record from the template.- Parameters:
account- The account IDtemplate- The template short name or IDrecord- The record ID- Returns:
- The delete template record response
- See Also:
-