OneDriveResource Type
A OneDrive resource.
Remarks
This type represents a OneDrive resource.
Fields
childCount Int32 |
How many children the resource has. This property reflects how many child resources the resource has. For file resources, this property will always be 0. | ||||
createdTime String |
The creation timestamp of the resource. This property holds the creation timestamp of the resource. Timestamps are formatted according to ISO 8601 and are always in UTC time. | ||||
deleted Bool |
Whether this resource has been deleted. This property reflects whether the resource has been deleted. Note that this property is only applicable when populated by a call to ListChanges; otherwise, it is always . | ||||
description_ String |
A description of the resource. This property specifies a description of the resource. Only applicable to resources in OneDrive Personal drives. | ||||
driveId String |
The Id of the drive that contains the resource. This property holds the Id of the drive that contains the resource. | ||||
eTag String |
The ETag of the resource. This property holds the ETag of the resource. | ||||
hashData String |
A hash of the resource's content. The property holds a hash of the resource's content. Only applicable for file resources. The HashAlgorithm property determines which hash this property is populated with; this property will be empty if the server didn't return a hash for the currently selected HashAlgorithm. | ||||
hashAlgorithm Int32 |
The hash's algorithm. This property specifies which hash the Hash property is populated with. Changing the value of this property will re-populate the Hash property accordingly. Possible values are:
Note: Hashes are generated by the server, not the class; and it makes no guarantees as to when hashes are generated (it may not do so immediately). | ||||
id String |
The Id of the resource. This property holds the Id of the resource. Either this property or Path must be set before calling UpdateResource. | ||||
mimeType String |
The MIME type of the resource. This property holds the MIME type of the resource. | ||||
modifiedTime String |
The last modified timestamp of the resource. This property holds the last modified timestamp of the resource. Timestamps are formatted according to ISO 8601 and are always in UTC time. | ||||
name String |
The name of the resource. This property specifies the name of the resource. | ||||
parentId String |
The Id of the resource's parent. This property holds the Id of the resource's parent. | ||||
parentPath String |
The path of the resource's parent. This property holds the path of the resource's parent. | ||||
path String |
The path of the resource. This property holds the path of the resource. Either this property or Id must be set before calling UpdateResource. | ||||
size Int64 |
The size of the resource in bytes. For file resources, this property holds the size of the file in bytes. For folder resources, this property holds the total size (in bytes) of all of its children (recursively). | ||||
type OneDriveResourceTypes |
The resource's type. This property indicates whether the resource is a folder or a file. Possible values are:
| ||||
webURL String |
The resource's web URL. This property holds the resource's web URL, which can be used to view the resource online. |
Constructors
public init()