Skip to content

Commit

Permalink
fix(docs samples): update missing argv in sample metadata for push su…
Browse files Browse the repository at this point in the history
…bscription (#1946)

Co-authored-by: Megan Potter <[email protected]>
  • Loading branch information
telosma and feywind authored Jun 27, 2024
1 parent 0bffecc commit 34b8c03
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions samples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ View the [source code](https://github.com/googleapis/nodejs-pubsub/blob/main/sam
__Usage:__


`node createPushSubscription.js <topic-name-or-id> <subscription-name-or-id>`
`node createPushSubscription.js <endpoint-url> <topic-name-or-id> <subscription-name-or-id>`


-----
Expand All @@ -226,7 +226,7 @@ View the [source code](https://github.com/googleapis/nodejs-pubsub/blob/main/sam
__Usage:__


`node createPushSubscriptionNoWrapper.js <topic-name-or-id> <subscription-name-or-id>`
`node createPushSubscriptionNoWrapper.js <endpoint-url> <topic-name-or-id> <subscription-name-or-id>`


-----
Expand Down
2 changes: 1 addition & 1 deletion samples/createPushSubscription.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
// sample-metadata:
// title: Create Push Subscription
// description: Creates a new push subscription.
// usage: node createPushSubscription.js <topic-name-or-id> <subscription-name-or-id>
// usage: node createPushSubscription.js <endpoint-url> <topic-name-or-id> <subscription-name-or-id>

// [START pubsub_create_push_subscription]
/**
Expand Down
2 changes: 1 addition & 1 deletion samples/createPushSubscriptionNoWrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
// sample-metadata:
// title: Create Push Subscription With No Wrapper
// description: Creates a new push subscription, but disables wrapping for payloads.
// usage: node createPushSubscriptionNoWrapper.js <topic-name-or-id> <subscription-name-or-id>
// usage: node createPushSubscriptionNoWrapper.js <endpoint-url> <topic-name-or-id> <subscription-name-or-id>

// [START pubsub_create_unwrapped_push_subscription]
/**
Expand Down
2 changes: 1 addition & 1 deletion samples/typescript/createPushSubscription.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
// sample-metadata:
// title: Create Push Subscription
// description: Creates a new push subscription.
// usage: node createPushSubscription.js <topic-name-or-id> <subscription-name-or-id>
// usage: node createPushSubscription.js <endpoint-url> <topic-name-or-id> <subscription-name-or-id>

// [START pubsub_create_push_subscription]
/**
Expand Down
2 changes: 1 addition & 1 deletion samples/typescript/createPushSubscriptionNoWrapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
// sample-metadata:
// title: Create Push Subscription With No Wrapper
// description: Creates a new push subscription, but disables wrapping for payloads.
// usage: node createPushSubscriptionNoWrapper.js <topic-name-or-id> <subscription-name-or-id>
// usage: node createPushSubscriptionNoWrapper.js <endpoint-url> <topic-name-or-id> <subscription-name-or-id>

// [START pubsub_create_unwrapped_push_subscription]
/**
Expand Down

0 comments on commit 34b8c03

Please sign in to comment.