REST Resource: documents

資源:Document

Document 代表開發人員知識庫中的一段內容。

JSON 表示法
{
  "name": string,
  "uri": string,
  "content": string,
  "description": string,
  "title": string
}
欄位
name

string

ID。包含文件的資源名稱。格式:documents/{uri_without_scheme} 範例:documents/docs.cloud.google.com/storage/docs/creating-buckets

uri

string

僅供輸出。提供內容的 URI,例如 docs.cloud.google.com/storage/docs/creating-buckets

content

string

僅供輸出。包含 Markdown 格式的文件完整內容。

description

string

僅供輸出。提供文件說明。

title

string

僅供輸出。提供文件標題。

方法

batchGet

擷取多份文件,每份文件都包含完整的 Markdown 內容。

get

擷取單一文件及其完整 Markdown 內容。

searchDocumentChunks

在 Google 的開發人員說明文件中搜尋開發人員知識。