How to use the google-proto-files.bigtable function in google-proto-files

To help you get started, we’ve selected a few google-proto-files 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 / test / bigtable / index.js View on Github external
it('should inherit from GrpcService', function() {
      assert(bigtable instanceof GrpcService);

      var calledWith = bigtable.calledWith_[0];

      assert.strictEqual(calledWith.baseUrl, 'bigtable.googleapis.com');
      assert.strictEqual(calledWith.service, 'bigtable');
      assert.strictEqual(calledWith.apiVersion, 'v1');

      assert.deepEqual(calledWith.protoServices, {
        BigtableService: googleProtoFiles.bigtable.v1,
        BigtableTableService: {
          path: googleProtoFiles.bigtable.admin,
          service: 'bigtable.admin.table'
        }
      });

      assert.deepEqual(calledWith.scopes, [
        'https://www.googleapis.com/auth/bigtable.admin',
        'https://www.googleapis.com/auth/bigtable.data'
      ]);
    });
  });
github googleapis / google-cloud-node / test / bigtable / index.js View on Github external
it('should inherit from GrpcService', function() {
      assert(bigtable instanceof GrpcService);

      var calledWith = bigtable.calledWith_[0];

      assert.strictEqual(calledWith.baseUrl, 'bigtable.googleapis.com');
      assert.strictEqual(calledWith.service, 'bigtable');
      assert.strictEqual(calledWith.apiVersion, 'v1');

      assert.deepEqual(calledWith.protoServices, {
        BigtableService: googleProtoFiles.bigtable.v1,
        BigtableTableService: {
          path: googleProtoFiles.bigtable.admin,
          service: 'bigtable.admin.table'
        }
      });

      assert.deepEqual(calledWith.scopes, [
        'https://www.googleapis.com/auth/bigtable.admin',
        'https://www.googleapis.com/auth/bigtable.data'
      ]);
    });
  });
github googleapis / google-cloud-node / packages / bigtable / src / index.js View on Github external
options = extend({}, options, {
    zone: options.zone.name || options.zone
  });

  this.clusterName = format(
    'projects/{projectId}/zones/{zone}/clusters/{cluster}',
    options
  );

  var config = {
    baseUrl: 'bigtable.googleapis.com',
    service: 'bigtable',
    apiVersion: 'v1',
    protoServices: {
      BigtableService: googleProtoFiles.bigtable.v1,
      BigtableTableService: {
        path: googleProtoFiles.bigtable.admin,
        service: 'bigtable.admin.table'
      }
    },
    scopes: [
      'https://www.googleapis.com/auth/bigtable.admin',
      'https://www.googleapis.com/auth/bigtable.data'
    ],
    userAgent: PKG.name + '/' + PKG.version
  };

  GrpcService.call(this, config, options);
}
github googleapis / google-cloud-node / packages / bigtable / src / index.js View on Github external
zone: options.zone.name || options.zone
  });

  this.clusterName = format(
    'projects/{projectId}/zones/{zone}/clusters/{cluster}',
    options
  );

  var config = {
    baseUrl: 'bigtable.googleapis.com',
    service: 'bigtable',
    apiVersion: 'v1',
    protoServices: {
      BigtableService: googleProtoFiles.bigtable.v1,
      BigtableTableService: {
        path: googleProtoFiles.bigtable.admin,
        service: 'bigtable.admin.table'
      }
    },
    scopes: [
      'https://www.googleapis.com/auth/bigtable.admin',
      'https://www.googleapis.com/auth/bigtable.data'
    ],
    userAgent: PKG.name + '/' + PKG.version
  };

  GrpcService.call(this, config, options);
}