- 2.71.0 (latest)
- 2.70.0
- 2.68.0
- 2.66.0
- 2.65.0
- 2.62.0
- 2.61.0
- 2.60.0
- 2.58.0
- 2.57.0
- 2.56.0
- 2.55.0
- 2.54.0
- 2.53.0
- 2.52.0
- 2.51.0
- 2.50.0
- 2.49.0
- 2.47.0
- 2.46.0
- 2.45.0
- 2.44.0
- 2.43.0
- 2.42.0
- 2.41.0
- 2.40.0
- 2.39.0
- 2.38.0
- 2.37.0
- 2.35.0
- 2.34.0
- 2.33.0
- 2.32.0
- 2.31.0
- 2.30.0
- 2.29.0
- 2.28.0
- 2.27.0
- 2.26.0
- 2.25.0
- 2.22.0
- 2.21.0
- 2.20.0
- 2.19.0
- 2.18.0
- 2.17.0
- 2.16.0
- 2.15.0
- 2.14.0
- 2.13.0
- 2.12.0
- 2.11.0
- 2.10.0
- 2.9.0
- 2.7.0
- 2.6.0
- 2.5.0
- 2.4.0
- 2.3.0
- 2.2.0
- 2.1.8
- 2.0.9
public
class
DnsBatch
A batch of operations to be submitted to Google Cloud DNS using a single RPC request.
Methods
applyChangeRequest(String zoneName, ChangeRequestInfo changeRequest, Dns.ChangeRequestOption[] options)
public
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. The options
can be used to restrict the fields returned
in the same way as for Dns#applyChangeRequest(String, ChangeRequestInfo,
Dns.ChangeRequestOption...)
. Calling DnsBatchResult#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.
zoneName
changeRequest
options
createZone(ZoneInfo zone, Dns.ZoneOption[] options)
public
DnsBatchResult<Zone>
createZone
(
ZoneInfo
zone
,
Dns
.
ZoneOption
[]
options
)
Adds a request representing the "create zone" operation to this batch. The options
can
be used to restrict the fields returned in the same way as for Dns#create(ZoneInfo,
Dns.ZoneOption...)
. Calling DnsBatchResult#get()
on the return value yields the
created Zone
if successful and throws a DnsException
otherwise.
deleteZone(String zoneName)
public
DnsBatchResult<Boolean>
deleteZone
(
String
zoneName
)
Adds a request representing the "delete zone" operation to this batch. Calling DnsBatchResult#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.
getChangeRequest(String zoneName, String changeRequestId, Dns.ChangeRequestOption[] options)
public
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. The options
can be used to restrict the fields returned in the
same way as for Dns#getChangeRequest(String, String, Dns.ChangeRequestOption...)
.
Calling DnsBatchResult#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.
getProject(Dns.ProjectOption[] options)
public
DnsBatchResult<ProjectInfo>
getProject
(
Dns
.
ProjectOption
[]
options
)
Adds a request representing the "get project" operation to this batch. The options
can
be used to restrict the fields returned in the same way as for Dns#getProject(Dns.ProjectOption...)
. Calling DnsBatchResult#get()
on the return value
yields the created ProjectInfo
if successful and throws a DnsException
if the
operation failed.
getZone(String zoneName, Dns.ZoneOption[] options)
public
DnsBatchResult<Zone>
getZone
(
String
zoneName
,
Dns
.
ZoneOption
[]
options
)
Adds a request representing the "get zone" operation to this batch. The options
can be
used to restrict the fields returned in the same way as for Dns#getZone(String,
Dns.ZoneOption...)
. Calling DnsBatchResult#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.
listChangeRequests(String zoneName, Dns.ChangeRequestListOption[] options)
public
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. 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 DnsBatchResult#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.
listRecordSets(String zoneName, Dns.RecordSetListOption[] options)
public
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. 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 DnsBatchResult#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.
listZones(Dns.ZoneListOption[] options)
public
DnsBatchResult<Page<Zone>
>
listZones
(
Dns
.
ZoneListOption
[]
options
)
Adds a request representing the "list zones" operation 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#listZones(Dns.ZoneListOption...)
. Calling DnsBatchResult#get()
on the
return value yields a page of zones if successful and throws a DnsException
otherwise.
submit()
public
void
submit
()
Submits this batch for processing using a single RPC request.