Spaces:
Sleeping
Sleeping
Download node_modules/@google-cloud/storage/build/src/channel.d.ts from carpool-team/Carpool: direct link, hf CLI and curl.
- Browser
- Download file 990 Bytes
-
https://huggingface.co/spaces/carpool-team/Carpool/resolve/main/node_modules/%40google-cloud/storage/build/src/channel.d.ts
- Command line
-
hf download hf://spaces/carpool-team/Carpool/node_modules/@google-cloud/storage/build/src/channel.d.ts
-
curl -L -o channel.d.ts https://huggingface.co/spaces/carpool-team/Carpool/resolve/main/node_modules/%40google-cloud/storage/build/src/channel.d.ts
990 Bytes
| import { Metadata, ServiceObject } from './nodejs-common'; | |
| import { Storage } from './storage'; | |
| export interface StopCallback { | |
| (err: Error | null, apiResponse?: Metadata): void; | |
| } | |
| /** | |
| * Create a channel object to interact with a Cloud Storage channel. | |
| * | |
| * See {@link https://cloud.google.com/storage/docs/object-change-notification| Object Change Notification} | |
| * | |
| * @class | |
| * | |
| * @param {string} id The ID of the channel. | |
| * @param {string} resourceId The resource ID of the channel. | |
| * | |
| * @example | |
| * ``` | |
| * const {Storage} = require('@google-cloud/storage'); | |
| * const storage = new Storage(); | |
| * const channel = storage.channel('id', 'resource-id'); | |
| * ``` | |
| */ | |
| declare class Channel extends ServiceObject { | |
| constructor(storage: Storage, id: string, resourceId: string); | |
| stop(): Promise<Metadata>; | |
| stop(callback: StopCallback): void; | |
| } | |
| /** | |
| * Reference to the {@link Channel} class. | |
| * @name module:@google-cloud/storage.Channel | |
| * @see Channel | |
| */ | |
| export { Channel }; | |