編輯

共用方式為


bundle resource type

Namespace: microsoft.graph

A bundle is a logical grouping of files used to share multiple files at once. It is represented by a driveItem entity containing a bundle facet and can be shared in the same way as any other driveItem.

The bundle facet on a driveItem identifies an item as a bundle and groups bundle-specific information into a single structure. It is only included on driveItem resources returned from the bundles endpoint.

Note that the bundle resource type itself is not an entity of its own, and is only a facet on a driveItem. The bundles collection on a drive is of type driveItem, not bundle.

Methods

Method Return type Description
List bundles driveItem collection List all bundles in a drive
Get bundle driveItem Get bundle metadata
Create bundle driveItem Create a new bundle
Add item None Add a driveItem to an existing bundle
Remove item None Remove a driveItem from an existing bundle
Update bundle driveItem Update bundle metadata
Delete bundle None Delete bundle

Properties

Property name Type Description
album album If the bundle is an album, then the album property is included
childCount Int32 Number of children contained immediately within this container.

JSON representation

{
  "album": { "@odata.type": "microsoft.graph.album" },
  "childCount": 3
}