This class allows you interact with <%= title %>.
First, install <%= pkgJson.name %>
with npm:
$ npm install --save <%= pkgJson.name %>
If you are running your app on Google Compute Engine, you won't need to worry about supplying connection configuration options to <%= pkgJson.name %>
— we figure that out for you.
However, if you're running your app elsewhere, you will need to provide project details to authenticate API requests.
Compute Engine
<% if (!umbrellaView) { %>
var <%= instanceName || className %> = require('<%= pkgJson.name %>')();<% } else { %>
var gcloud = require('google-cloud');
var <%= instanceName || className %> = gcloud.<%= className %>();<% } %>
Elsewhere
<% if (!umbrellaView) { %>
var <%= instanceName || className %> = require('<%= pkgJson.name %>')({
projectId: 'grape-spaceship-123',
keyFilename: '/path/to/keyfile.json'
});<% } else { %>
var gcloud = require('google-cloud');
var <%= instanceName || className %> = gcloud.<%= className %>({
projectId: 'grape-spaceship-123',
keyFilename: '/path/to/keyfile.json'
});<% } %>
The full set of options which can be passed to <%= pkgJson.name %>
are outlined in our Authentication guide.