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 the file.

    *)
  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. headRevisionId : string;
    (*

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

    *)
  11. id : string;
    (*

    The ID of the file.

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

    Additional metadata about image media, if available.

    *)
  13. isAppAuthorized : bool;
    (*

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

    *)
  14. kind : string;
    (*

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

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

    The last user to modify the file.

    *)
  16. md5Checksum : string;
    (*

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

    *)
  17. 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.

    *)
  18. modifiedByMe : bool;
    (*

    Whether the file has been modified by this user.

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

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

    *)
  20. 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.

    *)
  21. name : string;
    (*

    The name of the file. This is not necessarily unique within a folder.

    *)
  22. 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.

    *)
  23. ownedByMe : bool;
    (*

    Whether the user owns the file.

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

    The owners of the file. Currently, only certain legacy files may have more than one owner.

    *)
  25. 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.

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

    The full list of permissions for the file. This is only available if the requesting user can share the file.

    *)
  27. 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.

    *)
  28. 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.

    *)
  29. shared : bool;
    (*

    Whether the file has been shared.

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

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

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

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

    *)
  32. size : int64;
    (*

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

    *)
  33. spaces : string list;
    (*

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

    *)
  34. starred : bool;
    (*

    Whether the user has starred the file.

    *)
  35. 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.

    *)
  36. 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.

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

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

    *)
  38. viewedByMe : bool;
    (*

    Whether the file has been viewed by this user.

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

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

    *)
  40. viewersCanCopyContent : bool;
    (*

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

    *)
  41. writersCanShare : bool;
    (*

    Whether users with only writer permission can modify the file's permissions.

    *)
}
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 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 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 trashed : (t, bool) 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.