Skip to content

Commit

Permalink
docs(functions): update metadata.Resource docs (#6660)
Browse files Browse the repository at this point in the history
closes: #6612
  • Loading branch information
quartzmo authored Sep 15, 2022
1 parent bb9ae62 commit ad01de9
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions functions/metadata/metadata.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,13 @@ type Resource struct {
Name string `json:"name"`
// Type is the type of event.
Type string `json:"type"`
// Path is the path to the resource type (deprecated).
// This is the case for some deprecated GCS
// notifications, which populate the resource field as a string containing the topic
// RawPath is the path to the resource type (deprecated).
// It is used by the GCS notifications shown in
// https://cloud.google.com/storage/docs/pubsub-notifications,
// which populate the resource field as a string containing the topic
// rather than as the expected dictionary.
// See the Attributes section of https://cloud.google.com/storage/docs/pubsub-notifications
// for more details.
// It is also used when triggering Cloud Functions by [Firebase Realtime Database
// Triggers](https://cloud.google.com/functions/docs/calling/realtime-data).
RawPath string `json:"-"`
}

Expand Down

0 comments on commit ad01de9

Please sign in to comment.