module FilesResource: sig .. end
module Corpus: sig .. end
val copy : ?base_url:string ->
?std_params:GapiService.StandardParameters.t ->
?ignoreDefaultVisibility:bool ->
?keepRevisionForever:bool ->
?ocrLanguage:string ->
fileId:string ->
GapiDriveV3Model.File.t ->
GapiConversation.Session.t ->
GapiDriveV3Model.File.t * GapiConversation.Session.t
Creates a copy of a file and applies any requested updates with patch semantics.
base_url : Service endpoint base URL (defaults to "https://www.googleapis.com/drive/v3/").
std_params : Optional standard parameters.
ignoreDefaultVisibility : Whether to ignore the domain's default visibility settings for the created file. Domain administrators can choose to make all uploaded files visible to the domain by default; this parameter bypasses that behavior for the request. Permissions are still inherited from parent folders.
keepRevisionForever : Whether to set the 'keepForever' field in the new head revision. This is only applicable to files with binary content in Drive.
ocrLanguage : A language hint for OCR processing during image import (ISO 639-1 code).
fileId : The ID of the file.
val create : ?base_url:string ->
?std_params:GapiService.StandardParameters.t ->
?media_source:GapiMediaResource.t ->
?ignoreDefaultVisibility:bool ->
?keepRevisionForever:bool ->
?useContentAsIndexableText:bool ->
?ocrLanguage:string ->
GapiDriveV3Model.File.t ->
GapiConversation.Session.t ->
GapiDriveV3Model.File.t * GapiConversation.Session.t
Creates a new file.
base_url : Service endpoint base URL (defaults to "https://www.googleapis.com/drive/v3/").
std_params : Optional standard parameters.
ignoreDefaultVisibility : Whether to ignore the domain's default visibility settings for the created file. Domain administrators can choose to make all uploaded files visible to the domain by default; this parameter bypasses that behavior for the request. Permissions are still inherited from parent folders.
keepRevisionForever : Whether to set the 'keepForever' field in the new head revision. This is only applicable to files with binary content in Drive.
useContentAsIndexableText : Whether to use the uploaded content as indexable text.
ocrLanguage : A language hint for OCR processing during image import (ISO 639-1 code).
val delete : ?base_url:string ->
?std_params:GapiService.StandardParameters.t ->
fileId:string ->
GapiConversation.Session.t -> unit * GapiConversation.Session.t
Permanently deletes a file owned by the user without moving it to the trash. If the target is a folder, all descendants owned by the user are also deleted.
base_url : Service endpoint base URL (defaults to "https://www.googleapis.com/drive/v3/").
std_params : Optional standard parameters.
fileId : The ID of the file.
val emptyTrash : ?base_url:string ->
?std_params:GapiService.StandardParameters.t ->
GapiConversation.Session.t -> unit * GapiConversation.Session.t
Permanently deletes all of the user's trashed files.
base_url : Service endpoint base URL (defaults to "https://www.googleapis.com/drive/v3/").
std_params : Optional standard parameters.
val export : ?base_url:string ->
?std_params:GapiService.StandardParameters.t ->
?media_download:GapiMediaResource.download ->
fileId:string ->
mimeType:string ->
GapiConversation.Session.t -> unit * GapiConversation.Session.t
Exports a Google Doc to the requested MIME type and returns the exported content.
base_url : Service endpoint base URL (defaults to "https://www.googleapis.com/drive/v3/").
std_params : Optional standard parameters.
fileId : The ID of the file.
mimeType : The MIME type of the format requested for this export.
val generateIds : ?base_url:string ->
?std_params:GapiService.StandardParameters.t ->
?count:int ->
?space:string ->
GapiConversation.Session.t ->
GapiDriveV3Model.GeneratedIds.t * GapiConversation.Session.t
Generates a set of file IDs which can be provided in create requests.
base_url : Service endpoint base URL (defaults to "https://www.googleapis.com/drive/v3/").
std_params : Optional standard parameters.
count : The number of IDs to return.
space : The space in which the IDs can be used to create new files. Supported values are 'drive' and 'appDataFolder'.
val get : ?base_url:string ->
?etag:string ->
?std_params:GapiService.StandardParameters.t ->
?media_download:GapiMediaResource.download ->
?acknowledgeAbuse:bool ->
fileId:string ->
GapiConversation.Session.t ->
GapiDriveV3Model.File.t * GapiConversation.Session.t
Gets a file's metadata or content by ID.
base_url : Service endpoint base URL (defaults to "https://www.googleapis.com/drive/v3/").
etag : Optional ETag.
std_params : Optional standard parameters.
acknowledgeAbuse : Whether the user is acknowledging the risk of downloading known malware or other abusive files. This is only applicable when alt=media.
fileId : The ID of the file.
val list : ?base_url:string ->
?std_params:GapiService.StandardParameters.t ->
?corpus:Corpus.t ->
?pageSize:int ->
?spaces:string ->
?orderBy:string ->
?pageToken:string ->
?q:string ->
GapiConversation.Session.t ->
GapiDriveV3Model.FileList.t * GapiConversation.Session.t
Lists or searches files.
base_url : Service endpoint base URL (defaults to "https://www.googleapis.com/drive/v3/").
std_params : Optional standard parameters.
corpus : The source of files to list.
pageSize : The maximum number of files to return per page.
spaces : A comma-separated list of spaces to query within the corpus. Supported values are 'drive', 'appDataFolder' and 'photos'.
orderBy : A comma-separated list of sort keys. Valid keys are 'createdTime', 'folder', 'modifiedByMeTime', 'modifiedTime', 'name', 'quotaBytesUsed', 'recency', 'sharedWithMeTime', 'starred', and 'viewedByMeTime'. Each key sorts ascending by default, but may be reversed with the 'desc' modifier. Example usage: ?orderBy=folder,modifiedTime desc,name. Please note that there is a current limitation for users with approximately one million files in which the requested sort order is ignored.
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.
q : A query for filtering the file results. See the "Search for Files" guide for supported syntax.
val update : ?base_url:string ->
?std_params:GapiService.StandardParameters.t ->
?media_source:GapiMediaResource.t ->
?keepRevisionForever:bool ->
?useContentAsIndexableText:bool ->
?addParents:string ->
?ocrLanguage:string ->
?removeParents:string ->
fileId:string ->
GapiDriveV3Model.File.t ->
GapiConversation.Session.t ->
GapiDriveV3Model.File.t * GapiConversation.Session.t
Updates a file's metadata and/or content with patch semantics.
base_url : Service endpoint base URL (defaults to "https://www.googleapis.com/drive/v3/").
std_params : Optional standard parameters.
keepRevisionForever : Whether to set the 'keepForever' field in the new head revision. This is only applicable to files with binary content in Drive.
useContentAsIndexableText : Whether to use the uploaded content as indexable text.
addParents : A comma-separated list of parent IDs to add.
ocrLanguage : A language hint for OCR processing during image import (ISO 639-1 code).
removeParents : A comma-separated list of parent IDs to remove.
fileId : The ID of the file.
val watch : ?base_url:string ->
?std_params:GapiService.StandardParameters.t ->
?media_download:GapiMediaResource.download ->
?acknowledgeAbuse:bool ->
fileId:string ->
GapiDriveV3Model.Channel.t ->
GapiConversation.Session.t ->
GapiDriveV3Model.Channel.t * GapiConversation.Session.t
Subscribes to changes to a file
base_url : Service endpoint base URL (defaults to "https://www.googleapis.com/drive/v3/").
std_params : Optional standard parameters.
acknowledgeAbuse : Whether the user is acknowledging the risk of downloading known malware or other abusive files. This is only applicable when alt=media.
fileId : The ID of the file.