| Constructor and Description |
|---|
ServicesEndpoint(HttpEndpointClient client) |
| Modifier and Type | Method and Description |
|---|---|
AppliedServicesResponse |
appliedServices(String accountId,
String domainId)
Lists the one-click services applied to the domain.
|
AppliedServicesResponse |
appliedServices(String accountId,
String domainId,
Map<String,Object> options)
Lists the one-click services applied to the domain.
|
ApplyServiceResponse |
applyService(String accountId,
String domainId,
String serviceId,
Map<String,Object> settings)
Apply the given one-click service to the given domain.
|
GetServiceResponse |
getService(String serviceId)
Get a specific service by ID.
|
ListServicesResponse |
listServices()
Lists the available one-click services.
|
ListServicesResponse |
listServices(Map<String,Object> options)
Lists the available one-click services.
|
UnapplyServiceResponse |
unapplyService(String accountId,
String domainId,
String serviceId)
Unapply the given one-click service the given domain.
|
public ServicesEndpoint(HttpEndpointClient client)
public ListServicesResponse listServices() throws DnsimpleException, IOException
ServiceslistServices in interface ServicesDnsimpleException - Any API errorsIOException - Any IO errorspublic ListServicesResponse listServices(Map<String,Object> options) throws DnsimpleException, IOException
ServiceslistServices in interface Servicesoptions - Options to pass to the DNSimple APIDnsimpleException - Any API errorsIOException - Any IO errorspublic GetServiceResponse getService(String serviceId) throws DnsimpleException, IOException
ServicesgetService in interface ServicesserviceId - The service IDDnsimpleException - Any API errorsIOException - Any IO errorspublic AppliedServicesResponse appliedServices(String accountId, String domainId) throws DnsimpleException, IOException
ServicesappliedServices in interface ServicesaccountId - The account IDdomainId - The domain name or IDDnsimpleException - Any API errorsIOException - Any IO errorspublic AppliedServicesResponse appliedServices(String accountId, String domainId, Map<String,Object> options) throws DnsimpleException, IOException
ServicesappliedServices in interface ServicesaccountId - The account IDdomainId - The domain name or IDoptions - Options passed to the DNSimple APIDnsimpleException - Any API errorsIOException - Any IO errorspublic ApplyServiceResponse applyService(String accountId, String domainId, String serviceId, Map<String,Object> settings) throws DnsimpleException, IOException
ServicesapplyService in interface ServicesaccountId - The account IDdomainId - The domain name or IDserviceId - The service ID to applysettings - A Map of settings for the serviceDnsimpleException - Any API errorsIOException - Any IO errorspublic UnapplyServiceResponse unapplyService(String accountId, String domainId, String serviceId) throws DnsimpleException, IOException
ServicesunapplyService in interface ServicesaccountId - The account IDdomainId - The domain name or IDserviceId - The service ID to unapplyDnsimpleException - Any API errorsIOException - Any IO errorsCopyright © 2017 DNSimple. All rights reserved.