Package com.google.cloud.dns.spi.v1
Interface RpcBatch
-
public interface RpcBatch
An interface for the collection of batch operations.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
RpcBatch.Callback<T>
An interface for batch callbacks.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addApplyChangeRequest(String zoneName, com.google.api.services.dns.model.Change change, RpcBatch.Callback<com.google.api.services.dns.model.Change> callback, Map<DnsRpc.Option,?> options)
Adds a call to "apply change request" to the batch with the providedcallback
andoptions
.void
addCreateZone(com.google.api.services.dns.model.ManagedZone zone, RpcBatch.Callback<com.google.api.services.dns.model.ManagedZone> callback, Map<DnsRpc.Option,?> options)
Adds a call to "create zone" to the batch with the providedcallback
andoptions
.void
addDeleteZone(String zoneName, RpcBatch.Callback<Void> callback)
Adds a call to "delete zone" to the batch with the providedcallback
.void
addGetChangeRequest(String zoneName, String changeRequestId, RpcBatch.Callback<com.google.api.services.dns.model.Change> callback, Map<DnsRpc.Option,?> options)
Adds a call to "get change request" to the batch with the providedcallback
andoptions
.void
addGetProject(RpcBatch.Callback<com.google.api.services.dns.model.Project> callback, Map<DnsRpc.Option,?> options)
Adds a call to "get project" to the batch with the providedcallback
andoptions
.void
addGetZone(String zoneName, RpcBatch.Callback<com.google.api.services.dns.model.ManagedZone> callback, Map<DnsRpc.Option,?> options)
Adds a call to "get zone" to the batch with the providedcallback
andoptions
.void
addListChangeRequests(String zoneName, RpcBatch.Callback<com.google.api.services.dns.model.ChangesListResponse> callback, Map<DnsRpc.Option,?> options)
Adds a call to "list change requests" to the batch with the providedcallback
andoptions
.void
addListRecordSets(String zoneName, RpcBatch.Callback<com.google.api.services.dns.model.ResourceRecordSetsListResponse> callback, Map<DnsRpc.Option,?> options)
Adds a call to "list record sets" to the batch with the providedcallback
andoptions
.void
addListZones(RpcBatch.Callback<com.google.api.services.dns.model.ManagedZonesListResponse> callback, Map<DnsRpc.Option,?> options)
Adds a call to "list zones" to the batch with the providedcallback
andoptions
.void
submit()
Submits a batch of requests for processing using a single RPC request to Cloud DNS.
-
-
-
Method Detail
-
addListZones
void addListZones(RpcBatch.Callback<com.google.api.services.dns.model.ManagedZonesListResponse> callback, Map<DnsRpc.Option,?> options)
Adds a call to "list zones" to the batch with the providedcallback
andoptions
.
-
addCreateZone
void addCreateZone(com.google.api.services.dns.model.ManagedZone zone, RpcBatch.Callback<com.google.api.services.dns.model.ManagedZone> callback, Map<DnsRpc.Option,?> options)
Adds a call to "create zone" to the batch with the providedcallback
andoptions
.
-
addGetZone
void addGetZone(String zoneName, RpcBatch.Callback<com.google.api.services.dns.model.ManagedZone> callback, Map<DnsRpc.Option,?> options)
Adds a call to "get zone" to the batch with the providedcallback
andoptions
. The zone to be retrieved is identified byzoneName
.
-
addGetProject
void addGetProject(RpcBatch.Callback<com.google.api.services.dns.model.Project> callback, Map<DnsRpc.Option,?> options)
Adds a call to "get project" to the batch with the providedcallback
andoptions
.
-
addDeleteZone
void addDeleteZone(String zoneName, RpcBatch.Callback<Void> callback)
Adds a call to "delete zone" to the batch with the providedcallback
. The zone to be deleted is identified byzoneName
.
-
addListRecordSets
void addListRecordSets(String zoneName, RpcBatch.Callback<com.google.api.services.dns.model.ResourceRecordSetsListResponse> callback, Map<DnsRpc.Option,?> options)
Adds a call to "list record sets" to the batch with the providedcallback
andoptions
. The zone whose record sets are to be listed is identified byzoneName
.
-
addListChangeRequests
void addListChangeRequests(String zoneName, RpcBatch.Callback<com.google.api.services.dns.model.ChangesListResponse> callback, Map<DnsRpc.Option,?> options)
Adds a call to "list change requests" to the batch with the providedcallback
andoptions
. The zone whose change requests are to be listed is identified byzoneName
.
-
addGetChangeRequest
void addGetChangeRequest(String zoneName, String changeRequestId, RpcBatch.Callback<com.google.api.services.dns.model.Change> callback, Map<DnsRpc.Option,?> options)
Adds a call to "get change request" to the batch with the providedcallback
andoptions
. The change request to be retrieved is identified bychangeRequestId
. The zone to which the change request was applied is identified byzoneName
.
-
addApplyChangeRequest
void addApplyChangeRequest(String zoneName, com.google.api.services.dns.model.Change change, RpcBatch.Callback<com.google.api.services.dns.model.Change> callback, Map<DnsRpc.Option,?> options)
Adds a call to "apply change request" to the batch with the providedcallback
andoptions
. The parameterchange
is the change request to be applied. The zone to which the change request should be applied is identified byzoneName
.
-
submit
void submit()
Submits a batch of requests for processing using a single RPC request to Cloud DNS.
-
-