Interface RpcBatch (2.31.0)

public interface RpcBatch

An interface for the collection of batch operations.

Methods

addApplyChangeRequest(String zoneName, Change change, RpcBatch.Callback<Change> callback, Map<DnsRpc.Option,?> options)

public abstract void addApplyChangeRequest(String zoneName, Change change, RpcBatch.Callback<Change> callback, Map<DnsRpc.Option,?> options)

Adds a call to "apply change request" to the batch with the provided callback and options. The parameter change is the change request to be applied. The zone to which the change request should be applied is identified by zoneName.

Parameters
NameDescription
zoneNameString
changecom.google.api.services.dns.model.Change
callbackCallback<com.google.api.services.dns.model.Change>
optionsMap<Option,?>

addCreateZone(ManagedZone zone, RpcBatch.Callback<ManagedZone> callback, Map<DnsRpc.Option,?> options)

public abstract void addCreateZone(ManagedZone zone, RpcBatch.Callback<ManagedZone> callback, Map<DnsRpc.Option,?> options)

Adds a call to "create zone" to the batch with the provided callback and options.

Parameters
NameDescription
zonecom.google.api.services.dns.model.ManagedZone
callbackCallback<com.google.api.services.dns.model.ManagedZone>
optionsMap<Option,?>

addDeleteZone(String zoneName, RpcBatch.Callback<Void> callback)

public abstract void addDeleteZone(String zoneName, RpcBatch.Callback<Void> callback)

Adds a call to "delete zone" to the batch with the provided callback. The zone to be deleted is identified by zoneName.

Parameters
NameDescription
zoneNameString
callbackCallback<Void>

addGetChangeRequest(String zoneName, String changeRequestId, RpcBatch.Callback<Change> callback, Map<DnsRpc.Option,?> options)

public abstract void addGetChangeRequest(String zoneName, String changeRequestId, RpcBatch.Callback<Change> callback, Map<DnsRpc.Option,?> options)

Adds a call to "get change request" to the batch with the provided callback and options. The change request to be retrieved is identified by changeRequestId. The zone to which the change request was applied is identified by zoneName.

Parameters
NameDescription
zoneNameString
changeRequestIdString
callbackCallback<com.google.api.services.dns.model.Change>
optionsMap<Option,?>

addGetProject(RpcBatch.Callback<Project> callback, Map<DnsRpc.Option,?> options)

public abstract void addGetProject(RpcBatch.Callback<Project> callback, Map<DnsRpc.Option,?> options)

Adds a call to "get project" to the batch with the provided callback and options.

Parameters
NameDescription
callbackCallback<com.google.api.services.dns.model.Project>
optionsMap<Option,?>

addGetZone(String zoneName, RpcBatch.Callback<ManagedZone> callback, Map<DnsRpc.Option,?> options)

public abstract void addGetZone(String zoneName, RpcBatch.Callback<ManagedZone> callback, Map<DnsRpc.Option,?> options)

Adds a call to "get zone" to the batch with the provided callback and options. The zone to be retrieved is identified by zoneName.

Parameters
NameDescription
zoneNameString
callbackCallback<com.google.api.services.dns.model.ManagedZone>
optionsMap<Option,?>

addListChangeRequests(String zoneName, RpcBatch.Callback<ChangesListResponse> callback, Map<DnsRpc.Option,?> options)

public abstract void addListChangeRequests(String zoneName, RpcBatch.Callback<ChangesListResponse> callback, Map<DnsRpc.Option,?> options)

Adds a call to "list change requests" to the batch with the provided callback and options. The zone whose change requests are to be listed is identified by zoneName.

Parameters
NameDescription
zoneNameString
callbackCallback<com.google.api.services.dns.model.ChangesListResponse>
optionsMap<Option,?>

addListRecordSets(String zoneName, RpcBatch.Callback<ResourceRecordSetsListResponse> callback, Map<DnsRpc.Option,?> options)

public abstract void addListRecordSets(String zoneName, RpcBatch.Callback<ResourceRecordSetsListResponse> callback, Map<DnsRpc.Option,?> options)

Adds a call to "list record sets" to the batch with the provided callback and options. The zone whose record sets are to be listed is identified by zoneName.

Parameters
NameDescription
zoneNameString
callbackCallback<com.google.api.services.dns.model.ResourceRecordSetsListResponse>
optionsMap<Option,?>

addListZones(RpcBatch.Callback<ManagedZonesListResponse> callback, Map<DnsRpc.Option,?> options)

public abstract void addListZones(RpcBatch.Callback<ManagedZonesListResponse> callback, Map<DnsRpc.Option,?> options)

Adds a call to "list zones" to the batch with the provided callback and options.

Parameters
NameDescription
callbackCallback<com.google.api.services.dns.model.ManagedZonesListResponse>
optionsMap<Option,?>

submit()

public abstract void submit()

Submits a batch of requests for processing using a single RPC request to Cloud DNS.