Skip to content

Commit fc8f001

Browse files
committed
---
yaml --- r: 3555 b: refs/heads/pubsub-alpha c: 3183f4a h: refs/heads/master i: 3553: d97e2f3 3551: 29af0f8
1 parent 24f4417 commit fc8f001

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
@@ -2,7 +2,7 @@
22
refs/heads/master: 36a62ef856d199f8efd09501b5ba65c422c01f23
33
refs/heads/travis: e21ee7b88a5edc3f3d8c71f90c3fc32abf7e8dd6
44
refs/heads/gh-pages: 7406918e071dd2c5677a638ae2a06e7592b6542c
5-
refs/heads/pubsub-alpha: 71f5ae22187569bf20461bcb6021761bc9864856
5+
refs/heads/pubsub-alpha: 3183f4a7445dcb5e8992132ec5463bbced65c07b
66
refs/heads/update-datastore: 47aae517c2cb33f1dccd909adaced73ec9d0f4df
77
refs/tags/0.0.9: 22f1839238f66c39e67ed4dfdcd273b1ae2e8444
88
refs/tags/v0.0.10: 207ebd2a3472fddee69fe1298eb90429e3306efd

branches/pubsub-alpha/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/pubsub-alpha/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/pubsub-alpha/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)