How to use the @google-cloud/common.GrpcServiceObject function in @google-cloud/common

To help you get started, we’ve selected a few @google-cloud/common examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github googleapis / google-cloud-node / packages / logging / src / sink.js View on Github external
/*!
 * @module logging/sink
 */

'use strict';

var common = require('@google-cloud/common');
var extend = require('extend');
var nodeutil = require('util');

/**
 * @type {module:common/grpc-service-object}
 * @private
 */
var GrpcServiceObject = common.GrpcServiceObject;

/**
 * @type {module:common/util}
 * @private
 */
var util = common.util;

/*! Developer Documentation
 *
 * @param {module:logging} logging - The Logging instance.
 */
/**
 * A sink is an object that lets you to specify a set of log entries to export
 * to a particular destination. Cloud Logging lets you export log entries to
 * destinations including Google Cloud Storage buckets (for long term log
 * storage), Google BigQuery datasets (for log analysis), Google Pub/Sub (for
github googleapis / google-cloud-node / packages / bigtable / src / table.js View on Github external
* @type {module:bigtable/filter}
 * @private
 */
var Filter = require('./filter.js');

/**
 * @type {module:bigtable/mutation}
 * @private
 */
var Mutation = require('./mutation.js');

/**
 * @type {module:common/grpcServiceObject}
 * @private
 */
var GrpcServiceObject = common.GrpcServiceObject;

/**
 * Create a Table object to interact with a Google Cloud Bigtable table.
 *
 * @constructor
 * @alias module:bigtable/table
 *
 * @param {string} name - Name of the table.
 *
 * @example
 * var gcloud = require('google-cloud');
 *
 * var bigtable = gcloud.bigtable({
 *   keyFilename: '/path/to/keyfile.json',
 *   projectId: 'grape-spaceship-123',
 *   cluster: 'gcloud-node',
github googleapis / google-cloud-node / packages / bigtable / src / family.js View on Github external
var nodeutil = require('util');
var is = require('is');

/**
 * @private
 */
var FamilyError = createErrorClass('FamilyError', function(name) {
  this.message = 'Column family not found: ' + name + '.';
  this.code = 404;
});

/**
 * @type {module:common/grpcServiceObject}
 * @private
 */
var GrpcServiceObject = common.GrpcServiceObject;

/**
 * Create a Family object to interact with your table column families.
 *
 * @constructor
 * @alias module:bigtable/family
 *
 * @example
 * var gcloud = require('google-cloud');
 *
 * var bigtable = gcloud.bigtable({
 *   keyFilename: '/path/to/keyfile.json',
 *   projectId: 'grape-spaceship-123',
 *   cluster: 'gcloud-node',
 *   zone: 'us-central1-b'
 * });
github googleapis / google-cloud-node / packages / logging / src / log.js View on Github external
var common = require('@google-cloud/common');
var extend = require('extend');
var is = require('is');
var nodeutil = require('util');

/**
 * @type {module:logging/entry}
 * @private
 */
var Entry = require('./entry.js');

/**
 * @type {module:common/grpc-service-object}
 * @private
 */
var GrpcServiceObject = common.GrpcServiceObject;

/**
 * A log is a named collection of entries, each entry representing a timestamped
 * event. Logs can be produced by Google Cloud Platform services, by third-party
 * services, or by your applications. For example, the log `apache-access` is
 * produced by the Apache Web Server, but the log
 * `compute.googleapis.com/activity_log` is produced by Google Compute Engine.
 *
 * @resource [Introduction to Logs]{@link https://cloud.google.com/logging/docs/api/#logs}
 *
 * @alias module:logging/log
 * @constructor
 *
 * @param {object} options - [Configuration object](#/docs).
 *
 * @example
github googleapis / google-cloud-node / packages / bigtable / src / row.js View on Github external
* @type {module:bigtable/mutation}
 * @private
 */
var Mutation = require('./mutation.js');

/**
 * @type {module:bigtable/filter}
 * @private
 */
var Filter = require('./filter.js');

/**
 * @type {module:common/grpcServiceObject}
 * @private
 */
var GrpcServiceObject = common.GrpcServiceObject;

/**
 * @private
 */
var RowError = createErrorClass('RowError', function(row) {
  this.message = 'Unknown row: ' + row + '.';
});

/**
 * Create a Row object to interact with your table rows.
 *
 * @constructor
 * @alias module:bigtable/row
 *
 * @example
 * var gcloud = require('google-cloud');