public class DnsBatch extends Object
Modifier and Type | Method and Description |
---|---|
DnsBatchResult<ChangeRequest> |
applyChangeRequest(String zoneName,
ChangeRequestInfo changeRequest,
Dns.ChangeRequestOption... options)
Adds a request representing the "apply change request" operation to the zone specified by
zoneName to this batch. |
DnsBatchResult<Zone> |
createZone(ZoneInfo zone,
Dns.ZoneOption... options)
Adds a request representing the "create zone" operation to this batch.
|
DnsBatchResult<Boolean> |
deleteZone(String zoneName)
Adds a request representing the "delete zone" operation to this batch.
|
DnsBatchResult<ChangeRequest> |
getChangeRequest(String zoneName,
String changeRequestId,
Dns.ChangeRequestOption... options)
Adds a request representing the "get change request" operation for the zone specified by
zoneName to this batch. |
DnsBatchResult<ProjectInfo> |
getProject(Dns.ProjectOption... options)
Adds a request representing the "get project" operation to this batch.
|
DnsBatchResult<Zone> |
getZone(String zoneName,
Dns.ZoneOption... options)
Adds a request representing the "get zone" operation to this batch.
|
DnsBatchResult<Page<ChangeRequest>> |
listChangeRequests(String zoneName,
Dns.ChangeRequestListOption... options)
Adds a request representing the "list change requests" operation in the zone specified by
zoneName to this batch. |
DnsBatchResult<Page<RecordSet>> |
listRecordSets(String zoneName,
Dns.RecordSetListOption... options)
Adds a request representing the "list record sets" operation in the zone specified by
zoneName to this batch. |
DnsBatchResult<Page<Zone>> |
listZones(Dns.ZoneListOption... options)
Adds a request representing the "list zones" operation to this batch.
|
void |
submit()
Submits this batch for processing using a single RPC request.
|
public DnsBatchResult<Page<Zone>> listZones(Dns.ZoneListOption... options)
options
can
be used to restrict the fields returned or provide page size limits in the same way as for
Dns.listZones(Dns.ZoneListOption...)
. Calling BatchResult.get()
on the
return value yields a page of zones if successful and throws a DnsException
otherwise.public DnsBatchResult<Zone> createZone(ZoneInfo zone, Dns.ZoneOption... options)
options
can
be used to restrict the fields returned in the same way as for Dns.create(ZoneInfo,
Dns.ZoneOption...)
. Calling BatchResult.get()
on the return value yields the
created Zone
if successful and throws a DnsException
otherwise.public DnsBatchResult<Boolean> deleteZone(String zoneName)
BatchResult.get()
on the return value yields true
upon successful deletion, false
if the zone was not found, or throws a DnsException
if the operation failed.public DnsBatchResult<Zone> getZone(String zoneName, Dns.ZoneOption... options)
options
can be
used to restrict the fields returned in the same way as for Dns.getZone(String,
Dns.ZoneOption...)
. Calling BatchResult.get()
on the return value yields the
requested Zone
if successful, null
if no such zone exists, or throws a DnsException
if the operation failed.public DnsBatchResult<ProjectInfo> getProject(Dns.ProjectOption... options)
options
can
be used to restrict the fields returned in the same way as for Dns.getProject(Dns.ProjectOption...)
. Calling BatchResult.get()
on the return value
yields the created ProjectInfo
if successful and throws a DnsException
if the
operation failed.public DnsBatchResult<Page<RecordSet>> listRecordSets(String zoneName, Dns.RecordSetListOption... options)
zoneName
to this batch. The options
can be used to restrict the fields returned or
provide page size limits in the same way as for Dns.listRecordSets(String,
Dns.RecordSetListOption...)
. Calling BatchResult.get()
on the return value yields a
page of record sets if successful and throws a DnsException
if the operation failed or
the zone does not exist.public DnsBatchResult<Page<ChangeRequest>> listChangeRequests(String zoneName, Dns.ChangeRequestListOption... options)
zoneName
to this batch. The options
can be used to restrict the fields returned
or provide page size limits in the same way as for Dns.listChangeRequests(String,
Dns.ChangeRequestListOption...)
. Calling BatchResult.get()
on the return value
yields a page of change requests if successful and throws a DnsException
if the
operation failed or the zone does not exist.public DnsBatchResult<ChangeRequest> getChangeRequest(String zoneName, String changeRequestId, Dns.ChangeRequestOption... options)
zoneName
to this batch. The options
can be used to restrict the fields returned in the
same way as for Dns.getChangeRequest(String, String, Dns.ChangeRequestOption...)
.
Calling BatchResult.get()
on the return value yields the requested ChangeRequest
if successful, null
if the change request does not exist, or throws a
DnsException
if the operation failed or the zone does not exist.public DnsBatchResult<ChangeRequest> applyChangeRequest(String zoneName, ChangeRequestInfo changeRequest, Dns.ChangeRequestOption... options)
zoneName
to this batch. The options
can be used to restrict the fields returned
in the same way as for Dns.applyChangeRequest(String, ChangeRequestInfo,
Dns.ChangeRequestOption...)
. Calling BatchResult.get()
on the return value yields
the created ChangeRequest
if successful or throws a DnsException
if the
operation failed or the zone does not exist.public void submit()
Copyright © 2019 Google LLC. All rights reserved.