REST Resource: tasks.pushNotificationConfigs

资源:TaskPushNotificationConfig

将推送通知配置与特定任务相关联的容器。

JSON 表示法
{
  "tenant": string,
  "id": string,
  "taskId": string,
  "url": string,
  "token": string,
  "authentication": {
    object (AuthenticationInfo)
  }
}
字段
tenant

string

可选。租户 ID。

id

string

推送通知配置详细信息。此推送通知配置的唯一标识符(例如 UUID)。

taskId

string

与此配置关联的任务的 ID。

url

string

必需。应将通知发送到的网址。

token

string

此任务或会话的唯一令牌。

authentication

object (AuthenticationInfo)

发送通知所需的身份验证信息。

AuthenticationInfo

定义用于推送通知的身份验证详细信息。

JSON 表示法
{
  "scheme": string,
  "credentials": string
}
字段
scheme

string

必需。来自 IANA 注册表 的 HTTP 身份验证方案。示例:BearerBasicDigest。根据 RFC 9110 第 11.1 节,方案名称不区分大小写。

credentials

string

推送通知凭据。格式取决于方案(例如,Bearer 的令牌)。

方法

create

为任务创建推送通知配置。

delete

为任务删除推送通知配置。

get

获取任务的推送通知配置。

list

获取为任务配置的推送通知列表。