samples: add samples for subscription with filtering#1492
samples: add samples for subscription with filtering#1492feywind merged 5 commits intogoogleapis:mainfrom
Conversation
|
Here is the summary of changes. You are about to add 2 region tags.
This comment is generated by snippet-bot.
|
| */ | ||
| // const topicNameOrId = 'YOUR_TOPIC_NAME_OR_ID'; | ||
| // const subscriptionNameOrId = 'YOUR_SUBSCRIPTION_NAME_OR_ID'; | ||
| // const filterString = 'YOUR_FILTER_STRING'; |
There was a problem hiding this comment.
Should we give an example here like we do in the Java samples?
There was a problem hiding this comment.
Yeah, it's unclear to me since I don't want to give the impression, compared to the other default strings, that there's a "correct" filter to put there. I might add the sample filter as a comment after the rest of it...?
anguillanneuf
left a comment
There was a problem hiding this comment.
One nit but LGTM otherwise.
Just FYI, we are currently not tracking Typescript in SnippetTracker because they aren't published on c.g.c. so the region tags aren't being used.
| */ | ||
| // const topicNameOrId = 'YOUR_TOPIC_NAME_OR_ID'; | ||
| // const subscriptionNameOrId = 'YOUR_SUBSCRIPTION_NAME_OR_ID'; | ||
| // const filterString = 'YOUR_FILTER_STRING'; |
There was a problem hiding this comment.
Same comment as above.
There was a problem hiding this comment.
Thanks!
Yeah, I'm aware about the lack of TS tracking right now... it's something I would like to figure out, but for now I just want the samples to exist for users to find, and so we have them for later if we do that.
|
Warning: This pull request is touching the following templated files:
|
Adds TS and JS samples for creating a subscription with a filtering string.
Fixes #1029 🦕