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
Name Description
storage Storage
id string
resourceId string

Methods

stop()

  stop 
 () 
 : 
  
 Promise<Metadata> 
 ; 
 
Returns
Type Description
Promise < Metadata >

stop(callback)

  stop 
 ( 
 callback 
 : 
  
 StopCallback 
 ) 
 : 
  
 void 
 ; 
 
Parameter
Name Description
callback StopCallback
Returns
Type Description
void
Design a Mobile Site
View Site in Mobile | Classic
Share by: