notebook 资源类型notebook resource type

OneNote 笔记本。A OneNote notebook.

JSON 表示形式JSON representation

下面是资源的 JSON 表示形式。Here is a JSON representation of the resource

{
  "createdBy": {"@odata.type": "microsoft.graph.identitySet"},
  "createdDateTime": "String (timestamp)",
  "id": "string (identifier)",
  "isDefault": true,
  "isShared": true,
  "lastModifiedBy": {"@odata.type": "microsoft.graph.identitySet"},
  "lastModifiedDateTime": "String (timestamp)",
  "links": {"@odata.type": "microsoft.graph.notebookLinks"},
  "displayName": "string",
  "sectionGroupsUrl": "string",
  "sectionsUrl": "string",
  "self": "string",
  "userRole": "String"
}

属性Properties

属性Property 类型Type 说明Description
createdBycreatedBy identitySetidentitySet 识别创建项目的用户、设备和应用程序。只读。Identity of the user, device, and application which created the item. Read-only.
createdDateTimecreatedDateTime DateTimeOffsetDateTimeOffset 笔记本的创建日期和时间。时间戳表示使用 ISO 8601 格式的日期和时间信息,并且始终处于 UTC 时间。例如,2014 年 1 月 1 日午夜 UTC 如下所示:'2014-01-01T00:00:00Z'。只读。The date and time when the notebook was created. The timestamp represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'. Read-only.
idid 字符串String 笔记本的唯一标识符。只读。The unique identifier of the notebook. Read-only.
isDefaultisDefault BooleanBoolean 指示其是否是用户的默认笔记本。只读。Indicates whether this is the user's default notebook. Read-only.
isSharedisShared BooleanBoolean 指示是否共享笔记本。如果为 true,则笔记本的内容可供除所有者之外的人员查看。只读。Indicates whether the notebook is shared. If true, the contents of the notebook can be seen by people other than the owner. Read-only.
lastModifiedBylastModifiedBy identitySetidentitySet 识别创建项目的用户、设备和应用程序。只读。Identity of the user, device, and application which created the item. Read-only.
lastModifiedDateTimelastModifiedDateTime DateTimeOffsetDateTimeOffset 上次修改笔记本的日期和时间。时间戳表示使用 ISO 8601 格式的日期和时间信息,并且始终处于 UTC 时间。例如,2014 年 1 月 1 日午夜 UTC 如下所示:'2014-01-01T00:00:00Z'。只读。The date and time when the notebook was last modified. The timestamp represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'. Read-only.
linkslinks NotebookLinksNotebookLinks 用于打开笔记本的链接。如果安装了 OneNote 本机客户端,则 oneNoteClientURL 链接将在其中打开笔记本。oneNoteWebURL 链接将在 OneNote Online 中打开笔记本。Links for opening the notebook. The oneNoteClientURL link opens the notebook in the OneNote native client if it's installed. The oneNoteWebURL link opens the notebook in OneNote Online.
displayNamedisplayName 字符串String 笔记本的名称。The name of the notebook.
sectionGroupsUrlsectionGroupsUrl StringString sectionGroups 导航属性的 URL,其将返回笔记本中的所有分区组。只读。The URL for the sectionGroups navigation property, which returns all the section groups in the notebook. Read-only.
sectionsUrlsectionsUrl StringString sections 导航属性的 URL,其将返回笔记本中的所有分区。只读。The URL for the sections navigation property, which returns all the sections in the notebook. Read-only.
selfself 字符串String 可以在其中获取关于笔记本的详细信息的终结点。只读。The endpoint where you can get details about the notebook. Read-only.
userRoleuserRole onenoteUserRoleonenoteUserRole 可能的值是:OwnerContributorReaderNone。“所有者”表示对笔记本的所有者级别访问权限。“参与者”表示对笔记本的读写访问权限。“读者”表示对笔记本的只读访问权限。只读。Possible values are: Owner, Contributor, Reader, None. Owner represents owner-level access to the notebook. Contributor represents read/write access to the notebook. Reader represents read-only access to the notebook. Read-only.

RelationshipsRelationships

关系Relationship 类型Type 说明Description
sectionGroupssectionGroups SectionGroup collectionSectionGroup collection 笔记本中的分区组。只读。可为 NULL。The section groups in the notebook. Read-only. Nullable.
sectionssections OnenoteSection集合OnenoteSection collection 笔记本中的分区。只读。可为 Null。The sections in the notebook. Read-only. Nullable.

方法Methods

方法Method 返回类型Return Type 说明Description
Get notebookGet notebook NotebookNotebook 读取笔记本的属性和关系。Read the properties and relationships of the notebook.
getRecentNotebooksgetRecentNotebooks recentNotebook 集合recentNotebook collection 获取用户最近访问过的笔记本的集合。Get a collection of the most recently accessed notebooks for the user.
创建分区组Create section group SectionGroupSectionGroup 通过发布到指定笔记本中的 sectionGroups 集合创建分区组。Create a section group by posting to the sectionGroups collection in the specified notebook.
List section groupsList section groups SectionGroup collectionSectionGroup collection 获取指定笔记本中的分区组集合。Get a collection of section groups in the specified notebook.
Create sectionCreate section OnenoteSectionOnenoteSection 通过发布到指定笔记本中的分区集合创建分区。Create a section by posting to the sections collection in the specified notebook.
List sectionsList sections OnenoteSection集合OnenoteSection collection 获取指定笔记本中的分区集合。Get a collection of sections in the specified notebook.
copyNotebookcopyNotebook None 复制笔记本。Copies a notebook.