@@ -24,6 +24,7 @@ var googleProtoFiles = require('google-proto-files');
2424var is = require ( 'is' ) ;
2525var nodeutil = require ( 'util' ) ;
2626var format = require ( 'string-format-obj' ) ;
27+ var extend = require ( 'extend' ) ;
2728
2829/**
2930 * @type {module:bigtable/table }
@@ -56,7 +57,7 @@ var util = require('../common/util.js');
5657 * To learn more about Bigtable, read the
5758 * [Google Cloud Bigtable Concepts Overview](https://cloud.google.com/bigtable/docs/concepts)
5859 *
59- * @resource [Creating a Cloud Bigtable Cluster]{@link https://cloud.google.com/bigtable/docs/creating-cluster }
60+ * @resource [Creating a Cloud Bigtable Cluster]{@link https://cloud.google.com/bigtable/docs/creating-compute-instance }
6061 *
6162 * @param {object= } options - [Configuration object](#/docs).
6263 * @param {string } options.cluster - The cluster name that hosts your tables.
@@ -80,7 +81,7 @@ var util = require('../common/util.js');
8081 * // Before you create your table, you first need to create a Bigtable Cluster
8182 * // for the table to be served from. This can be done from either the
8283 * // Google Cloud Platform Console or the `gcloud` cli tool. Please refer to
83- * // the <a href="https://cloud.google.com/bigtable/docs/creating-cluster ">
84+ * // the <a href="https://cloud.google.com/bigtable/docs/creating-compute-instance ">
8485 * // official Bigtable documentation</a> for more information.
8586 * //-
8687 *
@@ -280,11 +281,9 @@ function Bigtable(options) {
280281 return new Bigtable ( options ) ;
281282 }
282283
283- options = {
284- projectId : options . projectId ,
285- zone : options . zone . name || options . zone ,
286- cluster : options . cluster
287- } ;
284+ options = extend ( { } , options , {
285+ zone : options . zone . name || options . zone
286+ } ) ;
288287
289288 this . clusterName = format (
290289 'projects/{projectId}/zones/{zone}/clusters/{cluster}' ,
0 commit comments