package gapi-ocaml

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
val delete : ?base_url:string -> ?std_params:GapiService.StandardParameters.t -> fileId:string -> revisionId:string -> GapiConversation.Session.t -> unit * GapiConversation.Session.t

Permanently deletes a file version. You can only delete revisions for files with binary content in Google Drive, like images or videos. Revisions for other files, like Google Docs or Sheets, and the last remaining file version can't be deleted.

  • parameter base_url

    Service endpoint base URL (defaults to "https://www.googleapis.com/drive/v3/").

  • parameter std_params

    Optional standard parameters.

  • parameter fileId

    The ID of the file.

  • parameter revisionId

    The ID of the revision.

val get : ?base_url:string -> ?etag:string -> ?std_params:GapiService.StandardParameters.t -> ?media_download:GapiMediaResource.download -> ?acknowledgeAbuse:bool -> fileId:string -> revisionId:string -> GapiConversation.Session.t -> GapiDriveV3Model.Revision.t * GapiConversation.Session.t

Gets a revision's metadata or content by ID.

  • parameter base_url

    Service endpoint base URL (defaults to "https://www.googleapis.com/drive/v3/").

  • parameter etag

    Optional ETag.

  • parameter std_params

    Optional standard parameters.

  • parameter acknowledgeAbuse

    Whether the user is acknowledging the risk of downloading known malware or other abusive files. This is only applicable when alt=media.

  • parameter fileId

    The ID of the file.

  • parameter revisionId

    The ID of the revision.

val list : ?base_url:string -> ?std_params:GapiService.StandardParameters.t -> ?pageSize:int -> ?pageToken:string -> fileId:string -> GapiConversation.Session.t -> GapiDriveV3Model.RevisionList.t * GapiConversation.Session.t

Lists a file's revisions.

  • parameter base_url

    Service endpoint base URL (defaults to "https://www.googleapis.com/drive/v3/").

  • parameter std_params

    Optional standard parameters.

  • parameter pageSize

    The maximum number of revisions to return per page.

  • parameter pageToken

    The token for continuing a previous list request on the next page. This should be set to the value of 'nextPageToken' from the previous response.

  • parameter fileId

    The ID of the file.

val update : ?base_url:string -> ?std_params:GapiService.StandardParameters.t -> fileId:string -> revisionId:string -> GapiDriveV3Model.Revision.t -> GapiConversation.Session.t -> GapiDriveV3Model.Revision.t * GapiConversation.Session.t

Updates a revision with patch semantics.

  • parameter base_url

    Service endpoint base URL (defaults to "https://www.googleapis.com/drive/v3/").

  • parameter std_params

    Optional standard parameters.

  • parameter fileId

    The ID of the file.

  • parameter revisionId

    The ID of the revision.

OCaml

Innovation. Community. Security.