Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
var nodeutil = require('util');
var format = require('string-format-obj');
var extend = require('extend');
var PKG = require('../package.json');
/**
* @type {module:bigtable/table}
* @private
*/
var Table = require('./table.js');
/**
* @type {module:common/grpcService}
* @private
*/
var GrpcService = common.GrpcService;
/**
* @type {module:common/util}
* @private
*/
var util = common.util;
/**
* Interact with
* [Google Cloud Bigtable](https://cloud.google.com/bigtable/).
*
* @constructor
* @alias module:bigtable
*
* @classdesc
* The `gcloud.bigtable` object allows you interact with Google Cloud Bigtable.
* @type {module:bigquery/dataset}
* @private
*/
var Dataset = require('@google-cloud/bigquery').Dataset;
/**
* @type {module:logging/entry}
* @private
*/
var Entry = require('./entry.js');
/**
* @type {module:common/grpc-service}
* @private
*/
var GrpcService = common.GrpcService;
/**
* @type {module:logging/log}
* @private
*/
var Log = require('./log.js');
/**
* @type {module:logging/sink}
* @private
*/
var Sink = require('./sink.js');
/**
* @type {module:common/stream-router}
* @private
/*!
* @module pubsub/iam
*/
'use strict';
var arrify = require('arrify');
var common = require('@google-cloud/common');
var is = require('is');
var nodeutil = require('util');
/**
* @type {module:common/grpc-service}
* @private
*/
var GrpcService = common.GrpcService;
/*! Developer Documentation
*
* @param {module:pubsub} pubsub - PubSub Object.
* @param {object} config - Configuration object.
* @param {string} config.baseUrl - The base URL to apply to API requests.
* @param {string} config.id - The name of the topic or subscription.
*/
/**
* [IAM (Identity and Access Management)](https://cloud.google.com/pubsub/access_control)
* allows you to set permissions on invidual resources and offers a wider range
* of roles: editor, owner, publisher, subscriber, and viewer. This gives you
* greater flexibility and allows you to set more fine-grained access control.
*
* For example:
* * Grant access on a per-topic or per-subscription basis, rather than for
var nodeutil = require('util');
var prop = require('propprop');
var request = require('request');
var PKG = require('../package.json');
/**
* @type {module:storage/file}
* @private
*/
var File = require('@google-cloud/storage').File;
/**
* @type {module:common/grpc-service}
* @private
*/
var GrpcService = common.GrpcService;
/**
* @type {module:common/service}
* @private
*/
var Service = common.Service;
/**
* @type {module:common/util}
* @private
*/
var util = common.util;
var VERY_UNLIKELY = 0;
var UNLIKELY = 1;
var POSSIBLE = 2;
/*!
* @module logging/entry
*/
'use strict';
var common = require('@google-cloud/common');
var extend = require('extend');
var is = require('is');
/**
* @type {module:common/grpc-service}
* @private
*/
var GrpcService = common.GrpcService;
/**
* Create an entry object to define new data to insert into a log.
*
* @resource [LogEntry JSON representation]{@link https://cloud.google.com/logging/docs/api/ref_v2beta1/rest/v2beta1/LogEntry}
*
* @alias module:logging/entry
* @constructor
*
* @param {object=|string=} resource - See a
* [Monitored Resource](https://cloud.google.com/logging/docs/api/ref_v2beta1/rest/v2beta1/MonitoredResource).
* @param {object|string} data - The data to use as the value for this log
* entry.
*
* If providing an object, these value types are supported:
* - `String`