Method: projects.locations.estimateDataSize

預估客戶使用的資料大小。

HTTP 要求

POST https://discoveryengine.googleapis.com/v1alpha/{location=projects/*/locations/*}:estimateDataSize

這個網址使用 gRPC 轉碼語法。

路徑參數

參數
location

string

這是必要旗標,位置的完整資源名稱,例如 projects/{project}/locations/{location}

要求主體

要求主體包含下列結構的資料:

JSON 表示法
{

  // Union field data_source can be only one of the following:
  "websiteDataSource": {
    object (WebsiteDataSource)
  },
  "fileDataSource": {
    object (FileDataSource)
  }
  // End of list of possible types for union field data_source.
}
欄位
聯集欄位 data_source。要估算大小的資料來源。data_source 只能是下列其中一項:
websiteDataSource

object (WebsiteDataSource)

網站資料。

fileDataSource

object (FileDataSource)

結構化或非結構化資料。

回應主體

如果成功,回應主體會包含 Operation 的執行個體。

授權範圍

需要下列其中一種 OAuth 範圍:

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

詳情請參閱Authentication Overview

IAM 權限

需要 location 資源的下列 IAM 權限:

  • discoveryengine.locations.estimateDataSize

詳情請參閱 IAM 說明文件

WebsiteDataSource

資料來源是一組網站模式,我們會檢索這些模式來取得網站總數。

JSON 表示法
{
  "estimatorUriPatterns": [
    {
      object (EstimatorUriPattern)
    }
  ]
}
欄位
estimatorUriPatterns[]

object (EstimatorUriPattern)

這是必要旗標,用於估算資料大小的 URI 模式。最多可使用 10 個模式,否則會擲回 INVALID_ARGUMENT 錯誤。

EstimatorUriPattern

用於檢索的 URI 模式。

JSON 表示法
{
  "providedUriPattern": string,
  "exactMatch": boolean,
  "exclusive": boolean
}
欄位
providedUriPattern

string

使用者提供的 URI 模式。例如 foo.com/bar/*

exactMatch

boolean

我們是否會推斷產生的 URI,或使用提供的確切 URI。

exclusive

boolean

模式是否為專屬模式。如果設為 true,則視為專屬模式。如果不設定或設為 False,系統預設會將模式視為包含模式。

FileDataSource

資料來源包含 Cloud Storage 或 BigQuery 中的檔案。

JSON 表示法
{

  // Union field source can be only one of the following:
  "gcsSource": {
    object (GcsSource)
  },
  "bigquerySource": {
    object (BigQuerySource)
  }
  // End of list of possible types for union field source.
}
欄位
聯集欄位 source。包含要使用檔案的來源。source 只能是下列其中一項:
gcsSource

object (GcsSource)

輸入內容的 Cloud Storage 位置。

bigquerySource

object (BigQuerySource)

BigQuery 輸入來源。