Skip to content

Commit 47ed071

Browse files
committed
---
yaml --- r: 4093 b: refs/heads/gcs-nio c: 3183f4a h: refs/heads/master i: 4091: baf3d77
1 parent fc493b7 commit 47ed071

4 files changed

Lines changed: 12 additions & 7 deletions

File tree

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ refs/tags/v0.0.12: 2fd8066e891fb3dfea69b65f6bf6461db79342b9
1111
refs/heads/compute-alpha: 969cba2627f1d53d352cc4a5ffe0879dacf65e6c
1212
refs/heads/dns-alpha: 2f90e7e338349287ace33375896907af0f032ca1
1313
refs/heads/dns-alpha-batch: 17442b07867021b85d0452f5f3eda29a3413288f
14-
refs/heads/gcs-nio: 71f5ae22187569bf20461bcb6021761bc9864856
14+
refs/heads/gcs-nio: 3183f4a7445dcb5e8992132ec5463bbced65c07b
1515
refs/heads/logging-alpha: db5312bffa7fccac194f6a7feb8cc3066de16aff
1616
refs/tags/v0.1.0: a615317f7424ed58621b1f65d5c4d8cbbe8a6ed8
1717
refs/tags/v0.1.1: 7a7f6985fe465e9dd6a075af55493f42b4933be0

branches/gcs-nio/gcloud-java-dns/src/main/java/com/google/gcloud/dns/Dns.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -421,14 +421,15 @@ public static ChangeRequestListOption sortOrder(SortingOrder order) {
421421
*
422422
* <p>Returns {@link ZoneInfo} object representing the new zone's information. In addition to the
423423
* name, dns name and description (supplied by the user within the {@code zoneInfo} parameter),
424-
* the returned object will include the following read-only fields supplied by the server:
425-
* creation time, id, and list of name servers.
424+
* the returned object can include the following read-only fields supplied by the server: creation
425+
* time, id, and list of name servers. The returned fields can be optionally restricted by
426+
* specifying {@link ZoneOption}s.
426427
*
427428
* @throws DnsException upon failure
428429
* @see <a href="https://cloud.google.com/dns/api/v1/managedZones/create">Cloud DNS Managed Zones:
429430
* create</a>
430431
*/
431-
ZoneInfo create(ZoneInfo zoneInfo);
432+
ZoneInfo create(ZoneInfo zoneInfo, ZoneOption... options);
432433

433434
/**
434435
* Returns the zone by the specified zone name. Returns {@code null} if the zone is not found. The

branches/gcs-nio/gcloud-java-dns/src/main/java/com/google/gcloud/spi/DefaultDnsRpc.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,12 @@ public DefaultDnsRpc(DnsOptions options) {
5454
}
5555

5656
@Override
57-
public ManagedZone create(ManagedZone zone) throws DnsException {
57+
public ManagedZone create(ManagedZone zone, Map<Option, ?> options) throws DnsException {
5858
try {
59-
return dns.managedZones().create(this.options.projectId(), zone).execute();
59+
return dns.managedZones()
60+
.create(this.options.projectId(), zone)
61+
.setFields(FIELDS.getString(options))
62+
.execute();
6063
} catch (IOException ex) {
6164
throw translate(ex);
6265
}

branches/gcs-nio/gcloud-java-dns/src/main/java/com/google/gcloud/spi/DnsRpc.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,11 @@ public String pageToken() {
8787
* Creates a new zone.
8888
*
8989
* @param zone a zone to be created
90+
* @param options a map of options for the service call
9091
* @return Updated {@code ManagedZone} object
9192
* @throws DnsException upon failure
9293
*/
93-
ManagedZone create(ManagedZone zone) throws DnsException;
94+
ManagedZone create(ManagedZone zone, Map<Option, ?> options) throws DnsException;
9495

9596
/**
9697
* Retrieves and returns an existing zone.

0 commit comments

Comments
 (0)