Class Notification (7.16.0) Stay organized with collections Save and categorize content based on your preferences.
A Notification object is created from yourBucket object using . Use it to interact with Cloud Pub/Sub notifications.
Package
@google-cloud/storageExample
const{Storage}=require('@google-cloud/storage');conststorage=newStorage();constmyBucket=storage.bucket('my-bucket');constnotification=myBucket.notification('1');Constructors
(constructor)(bucket, id)
constructor(bucket:Bucket,id:string);Constructs a new instance of theNotification class
| Parameters | |
|---|---|
| Name | Description |
bucket | Bucket |
id | string |
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-10-30 UTC.