Class Channel (7.2.0)

Create a channel object to interact with a Cloud Storage channel.

See Object Change Notification

Inheritance

ServiceObject<Channel, BaseMetadata> > Channel

Package

@google-cloud/storage

Example


const {Storage} = require('@google-cloud/storage');
const storage = new Storage();
const channel = storage.channel('id', 'resource-id');

Constructors

(constructor)(storage, id, resourceId)

constructor(storage: Storage, id: string, resourceId: string);

Constructs a new instance of the Channel class

Parameters
NameDescription
storage Storage
id string
resourceId string

Methods

stop()

stop(): Promise<unknown>;
Returns
TypeDescription
Promise<unknown>

stop(callback)

stop(callback: StopCallback): void;
Parameter
NameDescription
callback StopCallback
Returns
TypeDescription
void