Commit 084aca1
committed
Add util method to extract Task ID and Push Notification Config ID from request
Both `GetTaskPushNotificationConfigRequest` and `DeleteTaskPushNotificationConfigRequest` have a `name` field that has the same format: `tasks/{task_id}/pushNotificationConfigs/{config_id}`. Adding here a utility to extract the Task ID and Config ID. Can't output a `types.TaskPushNotificationConfig` as the `PushNotificationConfig` requires a url.1 parent aa159f3 commit 084aca1
1 file changed
+20
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
366 | 366 | | |
367 | 367 | | |
368 | 368 | | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
369 | 389 | | |
370 | 390 | | |
371 | 391 | | |
| |||
0 commit comments