IPWorks Cloud 2020 Android Edition

Questions / Feedback?

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 component 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:

application/vnd.google-apps.audio
application/vnd.google-apps.document Google Docs
application/vnd.google-apps.drawing Google Drawing
application/vnd.google-apps.file Google Drive file
application/vnd.google-apps.folder Google Drive folder
application/vnd.google-apps.form Google Forms
application/vnd.google-apps.fusiontable Google Fusion Tables
application/vnd.google-apps.kix Google Docs
application/vnd.google-apps.photo
application/vnd.google-apps.presentation Google Slides
application/vnd.google-apps.script Google Apps Scripts
application/vnd.google-apps.sites Google Sites
application/vnd.google-apps.spreadsheet Google Sheets
application/vnd.google-apps.unknown
application/vnd.google-apps.video

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 component 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 component 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:

0 (gdrtFile) A file.
1 (gdrtFolder) A folder.

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();



Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks Cloud 2020 Android Edition - Version 20.0 [Build 8265]