Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
callback(err, null, resp);
return;
}
const operation = compute.operation(resp.name);
operation.metadata = resp;
callback(null, operation, resp);
});
}
}
/*! Developer Documentation
*
* All async methods (except for streams) will return a Promise in the event
* that a callback is omitted.
*/
promisifyAll(Snapshot);
/**
* Reference to the {@link Snapshot} class.
* @name module:@google-cloud/compute.Snapshot
* @see Snapshot
*/
module.exports = Snapshot;
if (arguments[1]) {
self.metadata = arguments[1];
}
callback.apply(null, arguments);
}
);
});
}
}
/*! Developer Documentation
*
* All async methods (except for streams) will return a Promise in the event
* that a callback is omitted.
*/
promisifyAll(Sink);
/**
* Reference to the {@link Sink} class.
* @name module:@google-cloud/logging.Sink
* @see Sink
*/
module.exports.Sink = Sink;
{
client: 'BigtableInstanceAdminClient',
method: 'updateCluster',
reqOpts,
gaxOpts: gaxOptions,
},
callback);
}
}
/*! Developer Documentation
*
* All async methods (except for streams) will return a Promise in the event
* that a callback is omitted.
*/
promisifyAll(Cluster);
/**
* Reference to the {@link Cluster} class.
* @name module:@google-cloud/bigtable.Cluster
* @see Cluster
*/
const permissionsHash = permissions.reduce((acc, permission) => {
acc[permission] = availablePermissions.indexOf(permission) > -1;
return acc;
}, {});
callback(null, permissionsHash, resp);
});
}
}
/*! Developer Documentation
*
* All async methods (except for streams) will return a Promise in the event
* that a callback is omitted.
*/
promisifyAll(Iam);
export {Iam};
entity: {
key: ent.key,
},
method: 'save',
args: [ent],
});
});
}
}
/*! Developer Documentation
*
* All async methods (except for streams) will return a Promise in the event
* that a callback is omitted.
*/
promisifyAll(Transaction, {
exclude: ['createQuery', 'delete', 'save'],
});
/**
* Reference to the {@link Transaction} class.
* @name module:@google-cloud/datastore.Transaction
* @see Transaction
*/
export {Transaction};
return;
}
this.projectId = projectId;
callback(null, this.projectId);
});
}
}
/*! Developer Documentation
*
* All async methods (except for streams) will return a Promise in the event
* that a callback is omitted.
*/
promisifyAll(Bigtable, {
exclude: ['instance', 'operation', 'request'],
});
/**
* {@link AppProfile} class.
*
* @name Bigtable.AppProfile
* @see AppProfile
* @type {Constructor}
*/
/**
* {@link Cluster} class.
*
* @name Bigtable.Cluster
* @see Cluster
* });
*/
Zone.prototype.getRecordsStream = paginator.streamify('getRecords');
/*! Developer Documentation
*
* These methods can be auto-paginated.
*/
paginator.extend(Zone, ['getChanges', 'getRecords']);
/*! Developer Documentation
*
* All async methods (except for streams) will return a Promise in the event
* that a callback is omitted.
*/
promisifyAll(Zone, {
exclude: ['change', 'record'],
});
/**
* Reference to the {@link Zone} class.
* @name module:@google-cloud/dns.Zone
* @see Zone
*/
export {Zone};
* });
*/
InstanceGroup.prototype.getVMsStream = paginator.streamify('getVMs');
/*! Developer Documentation
*
* These methods can be auto-paginated.
*/
paginator.extend(InstanceGroup, ['getVMs']);
/*! Developer Documentation
*
* All async methods (except for streams) will return a Promise in the event
* that a callback is omitted.
*/
promisifyAll(InstanceGroup);
module.exports = InstanceGroup;
const gaxOpts = extend(true, {}, config.gaxOpts, {
headers: {
'google-cloud-resource-prefix': `projects/${projectId}`,
},
});
gaxClient[method](reqOpts, gaxOpts, callback);
});
}
}
/*! Developer Documentation
*
* All async methods (except for streams) will return a Promise in the event
* that a callback is omitted.
*/
promisifyAll(DatastoreRequest);
/**
* Reference to the {@link DatastoreRequest} class.
* @name module:@google-cloud/datastore.DatastoreRequest
* @see DatastoreRequest
*/
export {DatastoreRequest};
BigQuery.prototype.queryAsStream_ = function(query, callback) {
this.query(query, {autoPaginate: false}, callback);
};
/*! Developer Documentation
*
* These methods can be auto-paginated.
*/
paginator.extend(BigQuery, ['getDatasets', 'getJobs']);
/*! Developer Documentation
*
* All async methods (except for streams) will return a Promise in the event
* that a callback is omitted.
*/
promisifyAll(BigQuery, {
exclude: ['dataset', 'date', 'datetime', 'job', 'time', 'timestamp'],
});
/**
* {@link Dataset} class.
*
* @name BigQuery.Dataset
* @see Dataset
* @type {constructor}
*/
(BigQuery as any).Dataset = Dataset;
/**
* {@link Job} class.
*
* @name BigQuery.Job