public interface Dns extends Service<DnsOptions>
Modifier and Type | Interface and Description |
---|---|
static class |
Dns.ChangeRequestField
The fields of a change request.
|
static class |
Dns.ChangeRequestListOption
Class for specifying change request listing options.
|
static class |
Dns.ChangeRequestOption
Class for specifying change request field options.
|
static class |
Dns.ProjectField
The fields of a project.
|
static class |
Dns.ProjectOption
Class for specifying project options.
|
static class |
Dns.RecordSetField
The fields of a record set.
|
static class |
Dns.RecordSetListOption
Class for specifying record set listing options.
|
static class |
Dns.SortingOrder
The sorting order for listing.
|
static class |
Dns.ZoneField
The fields of a zone.
|
static class |
Dns.ZoneListOption
Class for specifying zone listing options.
|
static class |
Dns.ZoneOption
Class for specifying zone field options.
|
Modifier and Type | Method and Description |
---|---|
ChangeRequest |
applyChangeRequest(String zoneName,
ChangeRequestInfo changeRequest,
Dns.ChangeRequestOption... options)
Submits a change request for the specified zone.
|
DnsBatch |
batch()
Creates a new empty batch for grouping multiple service calls in one underlying RPC call.
|
Zone |
create(ZoneInfo zoneInfo,
Dns.ZoneOption... options)
Creates a new zone.
|
boolean |
delete(String zoneName)
Deletes an existing zone identified by name.
|
ChangeRequest |
getChangeRequest(String zoneName,
String changeRequestId,
Dns.ChangeRequestOption... options)
Retrieves updated information about a change request previously submitted for a zone identified
by ID.
|
ProjectInfo |
getProject(Dns.ProjectOption... fields)
Retrieves the information about the current project.
|
Zone |
getZone(String zoneName,
Dns.ZoneOption... options)
Returns the zone by the specified zone name.
|
Page<ChangeRequest> |
listChangeRequests(String zoneName,
Dns.ChangeRequestListOption... options)
Lists the change requests for the zone identified by name that were submitted to the service.
|
Page<RecordSet> |
listRecordSets(String zoneName,
Dns.RecordSetListOption... options)
Lists the record sets in the zone identified by name.
|
Page<Zone> |
listZones(Dns.ZoneListOption... options)
Lists the zones inside the project.
|
getOptions
Zone create(ZoneInfo zoneInfo, Dns.ZoneOption... options)
Returns Zone
object representing the new zone's information. In addition to the
name, dns name and description (supplied by the user within the zoneInfo
parameter),
the returned object can include the following read-only fields supplied by the server: creation
time, id, and list of name servers. The returned fields can be optionally restricted by
specifying Dns.ZoneOption
s.
DnsException
- upon failureZone getZone(String zoneName, Dns.ZoneOption... options)
null
if the zone is not found. The
returned fields can be optionally restricted by specifying Dns.ZoneOption
s.DnsException
- upon failurePage<Zone> listZones(Dns.ZoneListOption... options)
This method returns zones in an unspecified order. New zones do not necessarily appear at
the end of the list. Use Dns.ZoneListOption
to restrict the listing to a domain name, set
page size, and set page token.
DnsException
- upon failureboolean delete(String zoneName)
true
if the zone was successfully
deleted and false
otherwise.true
if zone was found and deleted and false
otherwiseDnsException
- upon failurePage<RecordSet> listRecordSets(String zoneName, Dns.RecordSetListOption... options)
The fields to be returned, page size and page tokens can be specified using Dns.RecordSetListOption
s.
DnsException
- upon failure or if the zone cannot be foundProjectInfo getProject(Dns.ProjectOption... fields)
Dns.ProjectOption
s.DnsException
- upon failureChangeRequest applyChangeRequest(String zoneName, ChangeRequestInfo changeRequest, Dns.ChangeRequestOption... options)
Dns.ChangeRequestOption
s.ChangeRequest
DnsException
- upon failure or if zone is not foundChangeRequest getChangeRequest(String zoneName, String changeRequestId, Dns.ChangeRequestOption... options)
null
if the request cannot be found and throws an exception if the zone
does not exist. The fields to be returned using can be specified using Dns.ChangeRequestOption
s.DnsException
- upon failure or if the zone cannot be foundPage<ChangeRequest> listChangeRequests(String zoneName, Dns.ChangeRequestListOption... options)
The sorting order for changes (based on when they were received by the server), fields to be
returned, page size and page token can be specified using Dns.ChangeRequestListOption
s.
DnsException
- upon failure or if the zone cannot be foundDnsBatch batch()
Copyright © 2019 Google LLC. All rights reserved.