File tree Expand file tree Collapse file tree
branches/tswast-patch-1/gcloud-java-dns/src/main/java/com/google/gcloud Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -57,5 +57,5 @@ refs/tags/v0.18.0: 9d193c4c4b9d1c6f21515dd8e50836b9194ec9bb
5757refs/tags/v0.19.0: e67b56e4d8dad5f9a7b38c9b2107c23c828f2ed5
5858refs/tags/v0.20.0: 839f7fb7156535146aa1cb2c5aadd8d375d854e8
5959refs/tags/v0.20.1: 370471f437f1f4f68a11e068df5cd6bf39edb1fa
60- refs/heads/tswast-patch-1: 71f5ae22187569bf20461bcb6021761bc9864856
60+ refs/heads/tswast-patch-1: 3183f4a7445dcb5e8992132ec5463bbced65c07b
6161refs/heads/pubsub-streaming-pull: 19262b752ee874eb2ca3b950eb2aef44d5a5267b
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff 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.
You can’t perform that action at this time.
0 commit comments