- 2.53.0 (latest)
- 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 Zone extends ZoneInfo
A Google Cloud DNS Zone object.
A zone is the container for all of your record sets that share the same DNS name prefix, for example, example.com. Zones are automatically assigned a set of name servers when they are created to handle responding to DNS queries for that zone. A zone has quotas for the number of record sets that it can include. See Also: Google Cloud DNS managed zone documentation
Methods
applyChangeRequest(ChangeRequestInfo changeRequest, Dns.ChangeRequestOption[] options)
public ChangeRequest applyChangeRequest(ChangeRequestInfo changeRequest, Dns.ChangeRequestOption[] options)
Submits ChangeRequestInfo to the service for it to applied to this zone. The method searches for zone by name.
Name | Description |
changeRequest | ChangeRequestInfo |
options | ChangeRequestOption[] optional restriction on what fields of ChangeRequest should be returned |
Type | Description |
ChangeRequest | ChangeRequest with server-assigned ID |
delete()
public boolean delete()
Deletes the zone. The method deletes the zone by name.
Type | Description |
boolean |
|
equals(Object obj)
public final boolean equals(Object obj)
Name | Description |
obj | Object |
Type | Description |
boolean |
getChangeRequest(String changeRequestId, Dns.ChangeRequestOption[] options)
public ChangeRequest getChangeRequest(String changeRequestId, Dns.ChangeRequestOption[] options)
Retrieves an updated information about a change request previously submitted to be applied to
this zone. Returns a ChangeRequest or null
if the change request was not found.
Throws DnsException if the zone is not found.
Name | Description |
changeRequestId | String |
options | ChangeRequestOption[] optional restriction on what fields of ChangeRequest should be returned |
Type | Description |
ChangeRequest | updated ChangeRequest |
getDns()
public Dns getDns()
Returns the Dns service object associated with this zone.
Type | Description |
Dns |
hashCode()
public final int hashCode()
Type | Description |
int |
listChangeRequests(Dns.ChangeRequestListOption[] options)
public Page<ChangeRequest> listChangeRequests(Dns.ChangeRequestListOption[] options)
Retrieves all change requests for this zone. The method searches for zone by name. Returns a page of ChangeRequests.
Name | Description |
options | ChangeRequestListOption[] optional restriction on listing and fields to be returned |
Type | Description |
Page<ChangeRequest> | a page of change requests |
listRecordSets(Dns.RecordSetListOption[] options)
public Page<RecordSet> listRecordSets(Dns.RecordSetListOption[] options)
Lists all RecordSets associated with this zone. The method searches for zone by name.
Name | Description |
options | RecordSetListOption[] optional restriction on listing and fields of RecordSets returned |
Type | Description |
Page<RecordSet> | a page of record sets |
reload(Dns.ZoneOption[] options)
public Zone reload(Dns.ZoneOption[] options)
Retrieves the latest information about the zone. The method retrieves the zone by name.
Name | Description |
options | ZoneOption[] optional restriction on what fields should be fetched |
Type | Description |
Zone | zone object containing updated information or |
toBuilder()
public Zone.Builder toBuilder()
Returns a builder for ZoneInfo
prepopulated with the metadata of this zone.
Type | Description |
Zone.Builder |