@@ -47,11 +47,13 @@ export interface GetInstancesCallback {
4747 (
4848 err : ServiceError | null ,
4949 result ?: Instance [ ] ,
50+ failedLocations ?: string [ ] ,
5051 response ?: google . bigtable . admin . v2 . IListInstancesResponse
5152 ) : void ;
5253}
5354export type GetInstancesResponse = [
5455 Instance [ ] ,
56+ string [ ] ,
5557 google . bigtable . admin . v2 . IListInstancesResponse
5658] ;
5759
@@ -607,7 +609,8 @@ export class Bigtable {
607609 /**
608610 * @typedef {array } GetInstancesResponse
609611 * @property {Instance[] } 0 Array of {@link Instance} instances.
610- * @property {object } 1 The full API response.
612+ * @property {string[] } 1 locations from which Instance information could not be retrieved
613+ * @property {object } 2 The full API response.
611614 * Note: 'failedLocations' property may contain locations from which
612615 * Instance information could not be retrieved.
613616 * Values are of the form `projects/<project>/locations/<zone_id>`
@@ -616,6 +619,7 @@ export class Bigtable {
616619 * @callback GetInstancesCallback
617620 * @param {?Error } err Request error, if any.
618621 * @param {Instance[] } instances Array of {@link Instance} instances.
622+ * @param {string[] } locations from which Instance information could not be retrieved
619623 * @param {object } apiResponse The full API response.
620624 * Note: 'failedLocations' property may contain locations from which
621625 * Instance information could not be retrieved.
@@ -646,7 +650,7 @@ export class Bigtable {
646650 * </caption>
647651 * bigtable.getInstances().then(function(data) {
648652 * const instances = data[0];
649- * const fullResponse = data[1 ];
653+ * const fullResponse = data[2 ];
650654 *
651655 * if (fullResponse.failedLocations.length > 0) {
652656 * // These locations contain instances which could not be retrieved.
@@ -686,7 +690,7 @@ export class Bigtable {
686690 instance . metadata = instanceData ;
687691 return instance ;
688692 } ) ;
689- callback ! ( null , instances , resp ) ;
693+ callback ! ( null , instances , resp . failedLocations , resp ) ;
690694 }
691695 ) ;
692696 }
0 commit comments