Creates a reference to the Eventarc channel using the provided channel resource name. The channel resource name can be either:- A fully qualified channel resource name: projects/{project}/locations/{location}/channels/{channel-id}- A partial resource name with location and channel ID, in which case the runtime project ID of the function is used: locations/{location}/channels/{channel-id}- A partial channel ID, in which case the runtime project ID of the function and us-central1 as location is used: {channel-id}
Create a reference to the default Firebase channel: locations/us-central1/channels/firebase
Eventarc.app
The App associated with the current Eventarc service instance.
Signature:
getapp():App;
Example
varapp=eventarc.app;
Eventarc.channel()
Creates a reference to the Eventarc channel using the provided channel resource name. The channel resource name can be either:
A fully qualified channel resource name: projects/{project}/locations/{location}/channels/{channel-id}
A partial resource name with location and channel ID, in which case the runtime project ID of the function is used: locations/{location}/channels/{channel-id}
A partial channel ID, in which case the runtime project ID of the function and us-central1 as location is used: {channel-id}
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2022-07-29 UTC."],[],[],null,["Eventarc service bound to the provided app.\n\n**Signature:** \n\n export declare class Eventarc \n\nProperties\n\nMethods\n\nEventarc.app\n\nThe [App](./firebase-admin.app.app.md#app_interface) associated with the current Eventarc service instance.\n\n**Signature:** \n\n get app(): App;\n\nExample \n\n var app = eventarc.app;\n\nEventarc.channel()\n\nCreates a reference to the Eventarc channel using the provided channel resource name. The channel resource name can be either:\n\n- A fully qualified channel resource name: `projects/{project}/locations/{location}/channels/{channel-id}`\n\n- A partial resource name with location and channel ID, in which case the runtime project ID of the function is used: `locations/{location}/channels/{channel-id}`\n\n- A partial channel ID, in which case the runtime project ID of the function and `us-central1` as location is used: `{channel-id}`\n\n**Signature:** \n\n channel(name: string, options?: ChannelOptions): Channel;\n\nParameters\n\n**Returns:**\n\n[Channel](./firebase-admin.eventarc.channel.md#channel_class)\n\nAn Eventarc channel reference for publishing events.\n\nEventarc.channel()\n\nCreate a reference to the default Firebase channel: `locations/us-central1/channels/firebase`\n\n**Signature:** \n\n channel(options?: ChannelOptions): Channel;\n\nParameters\n\n**Returns:**\n\n[Channel](./firebase-admin.eventarc.channel.md#channel_class)\n\nEventarc channel reference for publishing events."]]