Package @google-cloud/common (5.0.0)

Classes

ApiError

Custom error type for API errors.

Operation

Service

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.

Interfaces

Abortable

BodyResponseCallback

DecorateRequestOptions

DeleteCallback

ExistsCallback

GetConfig

InstanceResponseCallback

Interceptor

Methods

ResponseCallback

ServiceConfig

ServiceObjectConfig

ServiceObjectParent

ServiceOptions

StreamRequestOptions

Variables

util

util: Util

Type Aliases

AbortableDuplex

export declare type AbortableDuplex = Duplexify & Abortable;

Metadata

export declare type Metadata = any;

MetadataCallback

export declare type MetadataCallback = (err: Error | null, metadata?: Metadata, apiResponse?: r.Response) => void;

MetadataResponse

export declare type MetadataResponse = [Metadata, r.Response];

ResponseBody

export declare type ResponseBody = any;

SetMetadataResponse

export declare type SetMetadataResponse = [Metadata];