@@ -24,6 +24,7 @@ var googleProtoFiles = require('google-proto-files'); |
24 | 24 | var is = require('is'); |
25 | 25 | var nodeutil = require('util'); |
26 | 26 | var format = require('string-format-obj'); |
| 27 | +var extend = require('extend'); |
27 | 28 |
|
28 | 29 | /** |
29 | 30 | * @type {module:bigtable/table} |
@@ -56,7 +57,7 @@ var util = require('../common/util.js'); |
56 | 57 | * To learn more about Bigtable, read the |
57 | 58 | * [Google Cloud Bigtable Concepts Overview](https://cloud.google.com/bigtable/docs/concepts) |
58 | 59 | * |
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} |
60 | 61 | * |
61 | 62 | * @param {object=} options - [Configuration object](#/docs). |
62 | 63 | * @param {string} options.cluster - The cluster name that hosts your tables. |
@@ -80,7 +81,7 @@ var util = require('../common/util.js'); |
80 | 81 | * // Before you create your table, you first need to create a Bigtable Cluster |
81 | 82 | * // for the table to be served from. This can be done from either the |
82 | 83 | * // 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"> |
84 | 85 | * // official Bigtable documentation</a> for more information. |
85 | 86 | * //- |
86 | 87 | * |
@@ -280,11 +281,9 @@ function Bigtable(options) { |
280 | 281 | return new Bigtable(options); |
281 | 282 | } |
282 | 283 |
|
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 | + }); |
288 | 287 |
|
289 | 288 | this.clusterName = format( |
290 | 289 | 'projects/{projectId}/zones/{zone}/clusters/{cluster}', |
|