Resource: TaskPushNotificationConfig
| JSON representation |
|---|
{
"name": string,
"pushNotificationConfig": {
object ( |
| Fields | |
|---|---|
name |
The resource name of the config. Format: tasks/{taskId}/pushNotificationConfigs/{configId} |
pushNotificationConfig |
The push notification configuration details. |
PushNotificationConfig
Configuration for setting up push notifications for task updates.
| JSON representation |
|---|
{
"id": string,
"url": string,
"token": string,
"authentication": {
object ( |
| Fields | |
|---|---|
id |
A unique identifier (e.g. UUID) for this push notification. |
url |
url to send the notification too |
token |
Token unique for this task/session |
authentication |
Information about the authentication to sent with the notification |
AuthenticationInfo
Defines authentication details, used for push notifications.
| JSON representation |
|---|
{ "schemes": [ string ], "credentials": string } |
| Fields | |
|---|---|
schemes[] |
Supported authentication schemes - e.g. Basic, Bearer, etc |
credentials |
Optional credentials |
Methods |
|
|---|---|
|
Set a push notification config for a task. |
|
Delete a push notification config for a task. |
|
Get a push notification config for a task. |
|
Get a list of push notifications configured for a task. |