GDriveResource Type
A file or folder resource.
Remarks
This type represents a file or folder resource.
Fields
contentAccessible Bool |
Whether the resource's content is accessible to less-privileged users. This property 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 property 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 property 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 property specifies a short description of the resource. | ||||||||||||||||||||||||||||||
extension_ String |
The file extension of the resource. This property 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 property holds the Id of the resource. This property must be set before calling UpdateResource. | ||||||||||||||||||||||||||||||
md5Checksum String |
The MD5 checksum of the file resource. This property holds the MD5 checksum of the resource, if it is a file resource. | ||||||||||||||||||||||||||||||
mimeType String |
The MIME type of the resource. This property specifies the MIME type of the resource. When calling UploadFile, this property is ignored in favor of the MimeType parameter of UploadFile. When calling UpdateResource, this property 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 property 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 property specifies the name of the resource. | ||||||||||||||||||||||||||||||
originalName String |
The original name of the file resource. This property 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 property holds the name of resource's owner. | ||||||||||||||||||||||||||||||
ownerEmail String |
The email address of the resource's owner. This property holds the email address of the resource's owner. | ||||||||||||||||||||||||||||||
parentIds String |
The Ids of the resource's parent folders. This property holds a comma-separated list of Ids for the resource's parent folders. Note that while this property 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 property holds the Id of the shared drive that the resource is in, if applicable. | ||||||||||||||||||||||||||||||
size Int64 |
The size of the file resource in bytes. This property holds the size of a file resource in bytes. This is only applicable to files. | ||||||||||||||||||||||||||||||
starred Bool |
Whether the resource is starred. This property indicates whether the resource is starred by the current user. | ||||||||||||||||||||||||||||||
trashed Bool |
Whether the resource is in the trash. This property indicates whether the resource has been moved to trash. Note that while this property is writable, the class only uses it as input when UpdateResource is called; it is ignored when calling UploadFile. | ||||||||||||||||||||||||||||||
type GDriveResourceTypes |
The resource's type. This property 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 Type property 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 Bool |
Whether the resource has been viewed. This property 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 property holds the link to the resource. The link may be used to view the resource in a browser or relevant editor. |
Constructors
public init()