Method: projects.locations.notebooks.listRecentlyViewed

列出按上次查看时间排序的笔记本。

HTTP 请求

GET https://discoveryengine.googleapis.com/v1alpha/{parent=projects/*/locations/*}/notebooks:listRecentlyViewed

网址采用 gRPC 转码语法。

路径参数

参数
parent

string

必需。父分支资源名称,例如 projects/{project}/locations/{location}

查询参数

参数
pageSize

integer

可选。要返回的 Notebook 数量上限。如果未指定,则默认为“500”。允许的最大值为“500”。如果此字段为负值,则使用默认值。

pageToken

string

可选。页面令牌,提供此令牌可检索后续页面。

请求正文

请求正文必须为空。

响应正文

NotebookService.ListRecentlyViewedNotebooks 方法的响应。

如果成功,响应正文将包含结构如下的数据:

JSON 表示法
{
  "notebooks": [
    {
      object (Notebook)
    }
  ],
  "nextPageToken": string
}
字段
notebooks[]

object (Notebook)

最近查看过的笔记本的列表。

nextPageToken

string

页面令牌,提供此令牌可检索后续页面。

授权范围

需要以下 OAuth 范围之一:

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

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

IAM 权限

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

  • discoveryengine.notebooks.list

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