GDriveResource Type
A file or folder resource.
Remarks
This type represents a file or folder resource.
Fields
ContentAccessible boolean |
Whether the resource's content is accessible to less-privileged users. This field indicates whether the resource's content is accessible. If the resource is not accessible, it cannot be copied, downloaded, or printed by a users unless they have at least "writer" permissions. | ||||||||||||||||||||||||||||||
CreatedTime String |
The creation date of the resource. This field holds a DateTime string representing the creation date of the resource. This is a combined date-time value (formatted according to RFC 3339). Note that while this field is writable, the class only uses it as input when UploadFile is called; it is ignored when calling UpdateResource. | ||||||||||||||||||||||||||||||
Description String |
A short description of the resource. This field specifies a short description of the resource. | ||||||||||||||||||||||||||||||
Extension String |
The file extension of the resource. This field indicates the file extension of the resource. It cannot be set, and is empty for folder resources. To specify the extension when creating a new file resource include it when calling UploadFile. | ||||||||||||||||||||||||||||||
Id String |
The Id of the resource. This field holds the Id of the resource. This field must be set before calling UpdateResource. | ||||||||||||||||||||||||||||||
MD5Checksum String |
The MD5 checksum of the file resource. This field holds the MD5 checksum of the resource, if it is a file resource. | ||||||||||||||||||||||||||||||
MIMEType String |
The MIME type of the resource. This field specifies the MIME type of the resource. When calling UploadFile, this field is ignored in favor of the MimeType parameter of UploadFile. When calling UpdateResource, this field is only submitted if new file data is being uploaded. Some Google Drive MIME types:
| ||||||||||||||||||||||||||||||
ModifiedTime String |
The last modified date of the resource. This field holds a DateTime string representing the last modified date of the resource. This is a combined date-time value (formatted according to RFC 3339). | ||||||||||||||||||||||||||||||
Name String |
The name of the resource. This field specifies the name of the resource. | ||||||||||||||||||||||||||||||
OriginalName String |
The original name of the file resource. This field specifies the original name of a file resource if the file was uploaded manually, or if the name was set programmatically through the API. Updating Name will not change this value. | ||||||||||||||||||||||||||||||
Owner String |
The name of the resource's owner. This field holds the name of resource's owner. | ||||||||||||||||||||||||||||||
OwnerEmail String |
The email address of the resource's owner. This field holds the email address of the resource's owner. | ||||||||||||||||||||||||||||||
ParentIds String |
The Ids of the resource's parent folders. This field holds a comma-separated list of Ids for the resource's parent folders. Note that while this field is writable, the class only uses it as input when UploadFile is called. To modify a resource's parents in any other case, use the AddParents, RemoveParents, and MoveResource methods. | ||||||||||||||||||||||||||||||
SharedDriveId String |
The Id of the shared drive the resource is in. This field holds the Id of the shared drive that the resource is in, if applicable. | ||||||||||||||||||||||||||||||
Size long |
The size of the file resource in bytes. This field holds the size of a file resource in bytes. This is only applicable to files. | ||||||||||||||||||||||||||||||
Starred boolean |
Whether the resource is starred. This field indicates whether the resource is starred by the current user. | ||||||||||||||||||||||||||||||
Trashed boolean |
Whether the resource is in the trash. This field indicates whether the resource has been moved to trash. Note that while this field is writable, the class only uses it as input when UpdateResource is called; it is ignored when calling UploadFile. | ||||||||||||||||||||||||||||||
Type int |
The resource's type. This field indicates whether the resource is a folder or a file. Possible values are:
Google treats files and folders in the same way, and folders are included when listing resources. The GDriveResource.Type field can be used to determine if a resource is a folder or a file. To list, delete, and update folders use the ListResources, DeleteResource, and UpdateResource methods. | ||||||||||||||||||||||||||||||
Viewed boolean |
Whether the resource has been viewed. This field indicates whether the resource has been viewed by the current user. | ||||||||||||||||||||||||||||||
ViewLink String |
A link for opening the resource in a relevant Google editor or viewer in a browser. This field holds the link to the resource. The link may be used to view the resource in a browser or relevant editor. |
Constructors
public GDriveResource();