Package com.google.cloud.dns.spi.v1
Interface DnsRpc
-
- All Superinterfaces:
com.google.cloud.ServiceRpc
- All Known Implementing Classes:
HttpDnsRpc
public interface DnsRpc extends com.google.cloud.ServiceRpc
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classDnsRpc.ListResult<T>static classDnsRpc.Option
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description com.google.api.services.dns.model.ChangeapplyChangeRequest(String zoneName, com.google.api.services.dns.model.Change changeRequest, Map<DnsRpc.Option,?> options)Applies change request to a zone.com.google.api.services.dns.model.ManagedZonecreate(com.google.api.services.dns.model.ManagedZone zone, Map<DnsRpc.Option,?> options)Creates a new zone.RpcBatchcreateBatch()Creates an empty batch.booleandeleteZone(String zoneName)Deletes the zone identified by the name.com.google.api.services.dns.model.ChangegetChangeRequest(String zoneName, String changeRequestId, Map<DnsRpc.Option,?> options)Returns an existing change request.com.google.api.services.dns.model.ProjectgetProject(Map<DnsRpc.Option,?> options)Returns information about the current project.com.google.api.services.dns.model.ManagedZonegetZone(String zoneName, Map<DnsRpc.Option,?> options)Retrieves and returns an existing zone.DnsRpc.ListResult<com.google.api.services.dns.model.Change>listChangeRequests(String zoneName, Map<DnsRpc.Option,?> options)List existing change requests for a zone.DnsRpc.ListResult<com.google.api.services.dns.model.ResourceRecordSet>listRecordSets(String zoneName, Map<DnsRpc.Option,?> options)Lists record sets for a given zone.DnsRpc.ListResult<com.google.api.services.dns.model.ManagedZone>listZones(Map<DnsRpc.Option,?> options)Lists the zones that exist within the project.
-
-
-
Method Detail
-
create
com.google.api.services.dns.model.ManagedZone create(com.google.api.services.dns.model.ManagedZone zone, Map<DnsRpc.Option,?> options) throws DnsExceptionCreates a new zone.- Parameters:
zone- a zone to be createdoptions- a map of options for the service call- Returns:
- Updated
ManagedZoneobject - Throws:
DnsException- upon failure
-
getZone
com.google.api.services.dns.model.ManagedZone getZone(String zoneName, Map<DnsRpc.Option,?> options) throws DnsException
Retrieves and returns an existing zone.- Parameters:
zoneName- name of the zone to be returnedoptions- a map of options for the service call- Returns:
- a zone or
nullif not found - Throws:
DnsException- upon failure
-
listZones
DnsRpc.ListResult<com.google.api.services.dns.model.ManagedZone> listZones(Map<DnsRpc.Option,?> options) throws DnsException
Lists the zones that exist within the project.- Parameters:
options- a map of options for the service call- Throws:
DnsException- upon failure
-
deleteZone
boolean deleteZone(String zoneName) throws DnsException
Deletes the zone identified by the name.- Returns:
trueif the zone was deleted andfalseotherwise- Throws:
DnsException- upon failure
-
listRecordSets
DnsRpc.ListResult<com.google.api.services.dns.model.ResourceRecordSet> listRecordSets(String zoneName, Map<DnsRpc.Option,?> options) throws DnsException
Lists record sets for a given zone.- Parameters:
zoneName- name of the zone to be listedoptions- a map of options for the service call- Throws:
DnsException- upon failure or if zone was not found
-
getProject
com.google.api.services.dns.model.Project getProject(Map<DnsRpc.Option,?> options) throws DnsException
Returns information about the current project.- Parameters:
options- a map of options for the service call- Returns:
- up-to-date project information
- Throws:
DnsException- upon failure or if the project is not found
-
applyChangeRequest
com.google.api.services.dns.model.Change applyChangeRequest(String zoneName, com.google.api.services.dns.model.Change changeRequest, Map<DnsRpc.Option,?> options) throws DnsException
Applies change request to a zone.- Parameters:
zoneName- the name of a zone to which theChangeshould be appliedchangeRequest- change to be appliedoptions- a map of options for the service call- Returns:
- updated change object with server-assigned ID
- Throws:
DnsException- upon failure or if zone was not found
-
getChangeRequest
com.google.api.services.dns.model.Change getChangeRequest(String zoneName, String changeRequestId, Map<DnsRpc.Option,?> options) throws DnsException
Returns an existing change request.- Parameters:
zoneName- the name of a zone to which theChangewas be appliedchangeRequestId- the unique id assigned to the change by the serveroptions- a map of options for the service call- Returns:
- up-to-date change object or
nullif change was not found - Throws:
DnsException- upon failure or if zone was not found
-
listChangeRequests
DnsRpc.ListResult<com.google.api.services.dns.model.Change> listChangeRequests(String zoneName, Map<DnsRpc.Option,?> options) throws DnsException
List existing change requests for a zone.- Parameters:
zoneName- the name of a zone to which theChanges were be appliedoptions- a map of options for the service call- Throws:
DnsException- upon failure or if zone was not found
-
createBatch
RpcBatch createBatch()
Creates an empty batch.
-
-