OneDriveResource Type
A OneDrive resource.
Remarks
This type represents a OneDrive resource.
Fields
ChildCount Integer |
How many children the resource has. This field reflects how many child resources the resource has. For file resources, this field will always be 0. | ||||
CreatedTime String |
The creation timestamp of the resource. This field holds the creation timestamp of the resource. Timestamps are formatted according to ISO 8601 and are always in UTC time. | ||||
Deleted Boolean |
Whether this resource has been deleted. This field reflects whether the resource has been deleted. Note that this field is only applicable when populated by a call to ListChanges; otherwise, it is always false. | ||||
Description String |
A description of the resource. This field 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 field holds the Id of the drive that contains the resource. | ||||
ETag String |
The ETag of the resource. This field holds the ETag of the resource. | ||||
Hash String |
A hash of the resource's content. The field holds a hash of the resource's content. Only applicable for file resources. The HashAlgorithm field determines which hash this field is populated with; this field will be empty if the server didn't return a hash for the currently selected HashAlgorithm. | ||||
HashAlgorithm Integer |
The hash's algorithm. This field specifies which hash the Hash field is populated with. Changing the value of this field will re-populate the Hash field accordingly. Possible values are:
Note: Hashes are generated by the server, not the component; 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 field holds the Id of the resource. Either this field or Path must be set before calling UpdateResource. | ||||
MIMEType String |
The MIME type of the resource. This field holds the MIME type of the resource. | ||||
ModifiedTime String |
The last modified timestamp of the resource. This field 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 field specifies the name of the resource. | ||||
ParentId String |
The Id of the resource's parent. This field holds the Id of the resource's parent. | ||||
ParentPath String |
The path of the resource's parent. This field holds the path of the resource's parent. | ||||
Path String |
The path of the resource. This field holds the path of the resource. Either this field or Id must be set before calling UpdateResource. | ||||
Size Long |
The size of the resource in bytes. For file resources, this field holds the size of the file in bytes. For folder resources, this field holds the total size (in bytes) of all of its children (recursively). | ||||
Type OneDriveResourceTypes |
The resource's type. This field indicates whether the resource is a folder or a file. Possible values are:
| ||||
WebURL String |
The resource's web URL. This field holds the resource's web URL, which can be used to view the resource online. |
Constructors
public OneDriveResource();
Public OneDriveResource()