public interface DnsRpc
extends com.google.cloud.ServiceRpc
Modifier and Type | Interface and Description |
---|---|
static class |
DnsRpc.ListResult<T> |
static class |
DnsRpc.Option |
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.
|
com.google.api.services.dns.model.ManagedZone create(com.google.api.services.dns.model.ManagedZone zone, Map<DnsRpc.Option,?> options) throws DnsException
zone
- a zone to be createdoptions
- a map of options for the service callManagedZone
objectDnsException
- upon failurecom.google.api.services.dns.model.ManagedZone getZone(String zoneName, Map<DnsRpc.Option,?> options) throws DnsException
zoneName
- name of the zone to be returnedoptions
- a map of options for the service callnull
if not foundDnsException
- upon failureDnsRpc.ListResult<com.google.api.services.dns.model.ManagedZone> listZones(Map<DnsRpc.Option,?> options) throws DnsException
options
- a map of options for the service callDnsException
- upon failureboolean deleteZone(String zoneName) throws DnsException
true
if the zone was deleted and false
otherwiseDnsException
- upon failureDnsRpc.ListResult<com.google.api.services.dns.model.ResourceRecordSet> listRecordSets(String zoneName, Map<DnsRpc.Option,?> options) throws DnsException
zoneName
- name of the zone to be listedoptions
- a map of options for the service callDnsException
- upon failure or if zone was not foundcom.google.api.services.dns.model.Project getProject(Map<DnsRpc.Option,?> options) throws DnsException
options
- a map of options for the service callDnsException
- upon failure or if the project is not foundcom.google.api.services.dns.model.Change applyChangeRequest(String zoneName, com.google.api.services.dns.model.Change changeRequest, Map<DnsRpc.Option,?> options) throws DnsException
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 foundcom.google.api.services.dns.model.Change getChangeRequest(String zoneName, String changeRequestId, Map<DnsRpc.Option,?> options) throws DnsException
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 foundDnsRpc.ListResult<com.google.api.services.dns.model.Change> listChangeRequests(String zoneName, Map<DnsRpc.Option,?> options) throws DnsException
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 foundRpcBatch createBatch()
Copyright © 2019 Google LLC. All rights reserved.