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 說明文件