Class Channel (5.10.0)

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

[Object Change Notification]https://cloud.google.com/storage/docs/object-change-notification

Inheritance

ServiceObject > Channel

Package

@google-cloud/storage!

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<Metadata>;
Returns
TypeDescription
Promise<Metadata>

stop(callback)

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