public class HttpDnsRpc extends Object implements DnsRpc
DnsRpc.ListResult<T>, DnsRpc.Option
Constructor and Description |
---|
HttpDnsRpc(DnsOptions options)
Constructs an instance of this rpc client with provided
DnsOptions . |
Modifier and Type | Method and Description |
---|---|
com.google.api.services.dns.model.Change |
applyChangeRequest(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.ManagedZone |
create(com.google.api.services.dns.model.ManagedZone zone,
Map<DnsRpc.Option,?> options)
Creates a new zone.
|
RpcBatch |
createBatch()
Creates an empty batch.
|
boolean |
deleteZone(String zoneName)
Deletes the zone identified by the name.
|
com.google.api.services.dns.model.Change |
getChangeRequest(String zoneName,
String changeRequestId,
Map<DnsRpc.Option,?> options)
Returns an existing change request.
|
com.google.api.services.dns.model.Project |
getProject(Map<DnsRpc.Option,?> options)
Returns information about the current project.
|
com.google.api.services.dns.model.ManagedZone |
getZone(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.
|
public HttpDnsRpc(DnsOptions options)
DnsOptions
.public com.google.api.services.dns.model.ManagedZone create(com.google.api.services.dns.model.ManagedZone zone, Map<DnsRpc.Option,?> options) throws DnsException
DnsRpc
create
in interface DnsRpc
zone
- a zone to be createdoptions
- a map of options for the service callManagedZone
objectDnsException
- upon failurepublic com.google.api.services.dns.model.ManagedZone getZone(String zoneName, Map<DnsRpc.Option,?> options) throws DnsException
DnsRpc
getZone
in interface DnsRpc
zoneName
- name of the zone to be returnedoptions
- a map of options for the service callnull
if not foundDnsException
- upon failurepublic DnsRpc.ListResult<com.google.api.services.dns.model.ManagedZone> listZones(Map<DnsRpc.Option,?> options) throws DnsException
DnsRpc
listZones
in interface DnsRpc
options
- a map of options for the service callDnsException
- upon failurepublic boolean deleteZone(String zoneName) throws DnsException
DnsRpc
deleteZone
in interface DnsRpc
true
if the zone was deleted and false
otherwiseDnsException
- upon failurepublic DnsRpc.ListResult<com.google.api.services.dns.model.ResourceRecordSet> listRecordSets(String zoneName, Map<DnsRpc.Option,?> options) throws DnsException
DnsRpc
listRecordSets
in interface DnsRpc
zoneName
- name of the zone to be listedoptions
- a map of options for the service callDnsException
- upon failure or if zone was not foundpublic com.google.api.services.dns.model.Project getProject(Map<DnsRpc.Option,?> options) throws DnsException
DnsRpc
getProject
in interface DnsRpc
options
- a map of options for the service callDnsException
- upon failure or if the project is not foundpublic com.google.api.services.dns.model.Change applyChangeRequest(String zoneName, com.google.api.services.dns.model.Change changeRequest, Map<DnsRpc.Option,?> options) throws DnsException
DnsRpc
applyChangeRequest
in interface DnsRpc
zoneName
- the name of a zone to which the Change
should be appliedchangeRequest
- change to be appliedoptions
- a map of options for the service callDnsException
- upon failure or if zone was not foundpublic com.google.api.services.dns.model.Change getChangeRequest(String zoneName, String changeRequestId, Map<DnsRpc.Option,?> options) throws DnsException
DnsRpc
getChangeRequest
in interface DnsRpc
zoneName
- the name of a zone to which the Change
was be appliedchangeRequestId
- the unique id assigned to the change by the serveroptions
- a map of options for the service callnull
if change was not foundDnsException
- upon failure or if zone was not foundpublic DnsRpc.ListResult<com.google.api.services.dns.model.Change> listChangeRequests(String zoneName, Map<DnsRpc.Option,?> options) throws DnsException
DnsRpc
listChangeRequests
in interface DnsRpc
zoneName
- the name of a zone to which the Change
s were be appliedoptions
- a map of options for the service callDnsException
- upon failure or if zone was not foundpublic RpcBatch createBatch()
DnsRpc
createBatch
in interface DnsRpc
Copyright © 2019 Google LLC. All rights reserved.