資源:TaskPushNotificationConfig
| JSON 表示法 |
|---|
{
"name": string,
"pushNotificationConfig": {
object ( |
| 欄位 | |
|---|---|
name |
設定的資源名稱。格式:tasks/{taskId}/pushNotificationConfigs/{configId} |
pushNotificationConfig |
推播通知設定詳細資料。 |
PushNotificationConfig
設定工作更新推播通知。
| JSON 表示法 |
|---|
{
"id": string,
"url": string,
"token": string,
"authentication": {
object ( |
| 欄位 | |
|---|---|
id |
這則推播通知的專屬 ID (例如 UUID)。 |
url |
要傳送通知的網址 |
token |
這項工作/工作階段的專屬權杖 |
authentication |
要隨通知傳送的驗證資訊 |
AuthenticationInfo
定義用於推播通知的驗證詳細資料。
| JSON 表示法 |
|---|
{ "schemes": [ string ], "credentials": string } |
| 欄位 | |
|---|---|
schemes[] |
支援的驗證機制,例如 Basic、Bearer 等 |
credentials |
選用憑證 |
方法 |
|
|---|---|
|
為工作設定推播通知。 |
|
刪除工作推播通知設定。 |
|
取得工作的推播通知設定。 |
|
取得為工作設定的推播通知清單。 |