ServiceObject

ServiceObject

ServiceObject is a base class, meant to be inherited from by a "service object," like a BigQuery dataset or Storage bucket.

Most of the time, these objects share common functionality; they can be created or deleted, and you can get or set their metadata.

By inheriting from this class, a service object will be extended with these shared behaviors. Note that any method can be overridden when the service object requires specific behavior.

Constructor

new ServiceObject()

Methods

getRequestInterceptors()

Return the user's custom request interceptors.

requestStream(reqOpts)

Make an authenticated API request.

Parameters:
Name Type Description
reqOpts object

Request options that are passed to request.

Properties
Name Type Description
uri string

A URI relative to the baseUrl.