package gapi-ocaml

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
module VideoMediaMetadata : sig ... end
module ImageMediaMetadata : sig ... end
module ContentHints : sig ... end
module Capabilities : sig ... end
type t = {
  1. appProperties : (string * string) list;
    (*

    A collection of arbitrary key-value pairs which are private to the requesting app. Entries with null values are cleared in update and copy requests.

    *)
  2. capabilities : Capabilities.t;
    (*

    Capabilities the current user has on this file. Each capability corresponds to a fine-grained action that a user may take.

    *)
  3. contentHints : ContentHints.t;
    (*

    Additional information about the content of the file. These fields are never populated in responses.

    *)
  4. createdTime : GapiDate.t;
    (*

    The time at which the file was created (RFC 3339 date-time).

    *)
  5. description : string;
    (*

    A short description of the file.

    *)
  6. explicitlyTrashed : bool;
    (*

    Whether the file has been explicitly trashed, as opposed to recursively trashed from a parent folder.

    *)
  7. fileExtension : string;
    (*

    The final component of fullFileExtension. This is only available for files with binary content in Drive.

    *)
  8. folderColorRgb : string;
    (*

    The color for a folder as an RGB hex string. The supported colors are published in the folderColorPalette field of the About resource. If an unsupported color is specified, the closest color in the palette will be used instead.

    *)
  9. fullFileExtension : string;
    (*

    The full file extension extracted from the name field. May contain multiple concatenated extensions, such as "tar.gz". This is only available for files with binary content in Drive. This is automatically updated when the name field changes, however it is not cleared if the new name does not contain a valid extension.

    *)
  10. hasAugmentedPermissions : bool;
    (*

    Whether any users are granted file access directly on this file. This field is only populated for Team Drive files.

    *)
  11. hasThumbnail : bool;
    (*

    Whether this file has a thumbnail. This does not indicate whether the requesting app has access to the thumbnail. To check access, look for the presence of the thumbnailLink field.

    *)
  12. headRevisionId : string;
    (*

    The ID of the file's head revision. This is currently only available for files with binary content in Drive.

    *)
  13. id : string;
    (*

    The ID of the file.

    *)
  14. imageMediaMetadata : ImageMediaMetadata.t;
    (*

    Additional metadata about image media, if available.

    *)
  15. isAppAuthorized : bool;
    (*

    Whether the file was created or opened by the requesting app.

    *)
  16. kind : string;
    (*

    Identifies what kind of resource this is. Value: the fixed string "drive#file".

    *)
  17. lastModifyingUser : User.t;
    (*

    The last user to modify the file.

    *)
  18. md5Checksum : string;
    (*

    The MD5 checksum for the content of the file. This is only applicable to files with binary content in Drive.

    *)
  19. mimeType : string;
    (*

    The MIME type of the file. Drive will attempt to automatically detect an appropriate value from uploaded content if no value is provided. The value cannot be changed unless a new revision is uploaded. If a file is created with a Google Doc MIME type, the uploaded content will be imported if possible. The supported import formats are published in the About resource.

    *)
  20. modifiedByMe : bool;
    (*

    Whether the file has been modified by this user.

    *)
  21. modifiedByMeTime : GapiDate.t;
    (*

    The last time the file was modified by the user (RFC 3339 date-time).

    *)
  22. modifiedTime : GapiDate.t;
    (*

    The last time the file was modified by anyone (RFC 3339 date-time). Note that setting modifiedTime will also update modifiedByMeTime for the user.

    *)
  23. name : string;
    (*

    The name of the file. This is not necessarily unique within a folder. Note that for immutable items such as the top level folders of Team Drives, My Drive root folder, and Application Data folder the name is constant.

    *)
  24. originalFilename : string;
    (*

    The original filename of the uploaded content if available, or else the original value of the name field. This is only available for files with binary content in Drive.

    *)
  25. ownedByMe : bool;
    (*

    Whether the user owns the file. Not populated for Team Drive files.

    *)
  26. owners : User.t list;
    (*

    The owners of the file. Currently, only certain legacy files may have more than one owner. Not populated for Team Drive files.

    *)
  27. parents : string list;
    (*

    The IDs of the parent folders which contain the file. If not specified as part of a create request, the file will be placed directly in the My Drive folder. Update requests must use the addParents and removeParents parameters to modify the values.

    *)
  28. permissionIds : string list;
    (*

    List of permission IDs for users with access to this file.

    *)
  29. permissions : Permission.t list;
    (*

    The full list of permissions for the file. This is only available if the requesting user can share the file. Not populated for Team Drive files.

    *)
  30. properties : (string * string) list;
    (*

    A collection of arbitrary key-value pairs which are visible to all apps. Entries with null values are cleared in update and copy requests.

    *)
  31. quotaBytesUsed : int64;
    (*

    The number of storage quota bytes used by the file. This includes the head revision as well as previous revisions with keepForever enabled.

    *)
  32. shared : bool;
    (*

    Whether the file has been shared. Not populated for Team Drive files.

    *)
  33. sharedWithMeTime : GapiDate.t;
    (*

    The time at which the file was shared with the user, if applicable (RFC 3339 date-time).

    *)
  34. sharingUser : User.t;
    (*

    The user who shared the file with the requesting user, if applicable.

    *)
  35. size : int64;
    (*

    The size of the file's content in bytes. This is only applicable to files with binary content in Drive.

    *)
  36. spaces : string list;
    (*

    The list of spaces which contain the file. The currently supported values are 'drive', 'appDataFolder' and 'photos'.

    *)
  37. starred : bool;
    (*

    Whether the user has starred the file.

    *)
  38. teamDriveId : string;
    (*

    ID of the Team Drive the file resides in.

    *)
  39. thumbnailVersion : int64;
    (*

    The thumbnail version for use in thumbnail cache invalidation.

    *)
  40. trashed : bool;
    (*

    Whether the file has been trashed, either explicitly or from a trashed parent folder. Only the owner may trash a file, and other users cannot see files in the owner's trash.

    *)
  41. trashedTime : GapiDate.t;
    (*

    The time that the item was trashed (RFC 3339 date-time). Only populated for Team Drive files.

    *)
  42. trashingUser : User.t;
    (*

    If the file has been explicitly trashed, the user who trashed it. Only populated for Team Drive files.

    *)
  43. version : int64;
    (*

    A monotonically increasing version number for the file. This reflects every change made to the file on the server, even those not visible to the user.

    *)
  44. videoMediaMetadata : VideoMediaMetadata.t;
    (*

    Additional metadata about video media. This may not be available immediately upon upload.

    *)
  45. viewedByMe : bool;
    (*

    Whether the file has been viewed by this user.

    *)
  46. viewedByMeTime : GapiDate.t;
    (*

    The last time the file was viewed by the user (RFC 3339 date-time).

    *)
  47. viewersCanCopyContent : bool;
    (*

    Whether users with only reader or commenter permission can copy the file's content. This affects copy, download, and print operations.

    *)
  48. writersCanShare : bool;
    (*

    Whether users with only writer permission can modify the file's permissions. Not populated for Team Drive files.

    *)
}
val appProperties : (t, (string * string) list) GapiLens.t
val capabilities : (t, Capabilities.t) GapiLens.t
val contentHints : (t, ContentHints.t) GapiLens.t
val createdTime : (t, GapiDate.t) GapiLens.t
val description : (t, string) GapiLens.t
val explicitlyTrashed : (t, bool) GapiLens.t
val fileExtension : (t, string) GapiLens.t
val folderColorRgb : (t, string) GapiLens.t
val fullFileExtension : (t, string) GapiLens.t
val hasAugmentedPermissions : (t, bool) GapiLens.t
val hasThumbnail : (t, bool) GapiLens.t
val headRevisionId : (t, string) GapiLens.t
val id : (t, string) GapiLens.t
val imageMediaMetadata : (t, ImageMediaMetadata.t) GapiLens.t
val isAppAuthorized : (t, bool) GapiLens.t
val kind : (t, string) GapiLens.t
val lastModifyingUser : (t, User.t) GapiLens.t
val md5Checksum : (t, string) GapiLens.t
val mimeType : (t, string) GapiLens.t
val modifiedByMe : (t, bool) GapiLens.t
val modifiedByMeTime : (t, GapiDate.t) GapiLens.t
val modifiedTime : (t, GapiDate.t) GapiLens.t
val name : (t, string) GapiLens.t
val originalFilename : (t, string) GapiLens.t
val ownedByMe : (t, bool) GapiLens.t
val owners : (t, User.t list) GapiLens.t
val parents : (t, string list) GapiLens.t
val permissionIds : (t, string list) GapiLens.t
val permissions : (t, Permission.t list) GapiLens.t
val properties : (t, (string * string) list) GapiLens.t
val quotaBytesUsed : (t, int64) GapiLens.t
val shared : (t, bool) GapiLens.t
val sharedWithMeTime : (t, GapiDate.t) GapiLens.t
val sharingUser : (t, User.t) GapiLens.t
val size : (t, int64) GapiLens.t
val spaces : (t, string list) GapiLens.t
val starred : (t, bool) GapiLens.t
val teamDriveId : (t, string) GapiLens.t
val thumbnailVersion : (t, int64) GapiLens.t
val trashed : (t, bool) GapiLens.t
val trashedTime : (t, GapiDate.t) GapiLens.t
val trashingUser : (t, User.t) GapiLens.t
val version : (t, int64) GapiLens.t
val videoMediaMetadata : (t, VideoMediaMetadata.t) GapiLens.t
val viewedByMe : (t, bool) GapiLens.t
val viewedByMeTime : (t, GapiDate.t) GapiLens.t
val viewersCanCopyContent : (t, bool) GapiLens.t
val writersCanShare : (t, bool) GapiLens.t
val empty : t
val render : t -> GapiJson.json_data_model list
val parse : t -> GapiJson.json_data_model -> t
val to_data_model : t -> GapiJson.json_data_model
val of_data_model : GapiJson.json_data_model -> t
OCaml

Innovation. Community. Security.