module:common/service

module:common/service

new module:common/service(config, optionsopt)

Service is a base class, meant to be inherited from by a "service," like BigQuery or Storage.

This handles making authenticated requests by exposing a makeReq_ function.

Parameters:
Name Type Attributes Description
config object

Configuration object.

Properties
Name Type Description
baseUrl string

The base URL to make API requests to.

scopes Array.<string>

The scopes required for the request.

options object <optional>

Configuration object.