Method: projects.locations.collections.dataStores.suggestionDenyListEntries.import

导入 DataStore 的所有 SuggestionDenyListEntry

HTTP 请求

POST https://discoveryengine.googleapis.com/v1beta/{parent=projects/*/locations/*/collections/*/dataStores/*}/suggestionDenyListEntries:import

网址采用 gRPC 转码语法。

路径参数

参数
parent

string

必需。要为其导入禁止名单条目的父数据存储区资源名称。遵循“projects/*/locations/*/collections/*/dataStores/*”模式。

请求正文

请求正文中包含结构如下的数据:

JSON 表示法
{

  // Union field source can be only one of the following:
  "inlineSource": {
    object (InlineSource)
  },
  "gcsSource": {
    object (GcsSource)
  }
  // End of list of possible types for union field source.
}
字段
联合字段 source。更新后的 SuggestionDenyList 的来源。source 只能是下列其中一项:
inlineSource

object (InlineSource)

建议拒绝名单条目的输入内容的内嵌来源。

gcsSource

object (GcsSource)

输入内容所在的 Cloud Storage 位置。

只能指定 1 个包含要导入的所有条目的文件。对于自动填充建议拒绝列表条目导入,支持的值 gcsSource.schema 为:

  • suggestion_deny_list(默认):每行一个 JSON [SuggestionDenyListEntry]。

响应正文

如果成功,则响应正文包含一个 Operation 实例。

授权范围

需要以下 OAuth 范围之一:

  • https://www.googleapis.com/auth/cloud-platform
  • https://www.googleapis.com/auth/discoveryengine.readwrite
  • https://www.googleapis.com/auth/discoveryengine.assist.readwrite

如需了解详情,请参阅 Authentication Overview

IAM 权限

需要拥有 parent 资源的以下 IAM 权限:

  • discoveryengine.suggestionDenyListEntries.import

如需了解详情,请参阅 IAM 文档