GapiDriveV3Service.FilesResource
module Corpus : sig ... end
val copy :
?base_url:string ->
?std_params:GapiService.StandardParameters.t ->
?custom_headers:GapiCore.Header.t list ->
?enforceSingleParent:bool ->
?ignoreDefaultVisibility:bool ->
?keepRevisionForever:bool ->
?supportsAllDrives:bool ->
?supportsTeamDrives:bool ->
?includePermissionsForView:string ->
?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. Folders cannot be copied.
val create :
?base_url:string ->
?std_params:GapiService.StandardParameters.t ->
?media_source:GapiMediaResource.t ->
?custom_headers:GapiCore.Header.t list ->
?enforceSingleParent:bool ->
?ignoreDefaultVisibility:bool ->
?keepRevisionForever:bool ->
?supportsAllDrives:bool ->
?supportsTeamDrives:bool ->
?useContentAsIndexableText:bool ->
?includePermissionsForView:string ->
?ocrLanguage:string ->
GapiDriveV3Model.File.t ->
GapiConversation.Session.t ->
GapiDriveV3Model.File.t * GapiConversation.Session.t
Creates a new file.
val delete :
?base_url:string ->
?std_params:GapiService.StandardParameters.t ->
?custom_headers:GapiCore.Header.t list ->
?enforceSingleParent:bool ->
?supportsAllDrives:bool ->
?supportsTeamDrives:bool ->
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 file belongs to a shared drive the user must be an organizer on the parent. If the target is a folder, all descendants owned by the user are also deleted.
val emptyTrash :
?base_url:string ->
?std_params:GapiService.StandardParameters.t ->
?custom_headers:GapiCore.Header.t list ->
?enforceSingleParent:bool ->
GapiConversation.Session.t ->
unit * GapiConversation.Session.t
Permanently deletes all of the user's trashed files.
val export :
?base_url:string ->
?std_params:GapiService.StandardParameters.t ->
?media_download:GapiMediaResource.download ->
?custom_headers:GapiCore.Header.t list ->
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. Please note that the exported content is limited to 10MB.
If std_params
includes setting alt="media"
, the file content is downloaded as per media_download
.
val generateIds :
?base_url:string ->
?std_params:GapiService.StandardParameters.t ->
?custom_headers:GapiCore.Header.t list ->
?count:int ->
?space:string ->
?_type:string ->
GapiConversation.Session.t ->
GapiDriveV3Model.GeneratedIds.t * GapiConversation.Session.t
Generates a set of file IDs which can be provided in create or copy requests.
val get :
?base_url:string ->
?etag:string ->
?std_params:GapiService.StandardParameters.t ->
?media_download:GapiMediaResource.download ->
?custom_headers:GapiCore.Header.t list ->
?acknowledgeAbuse:bool ->
?supportsAllDrives:bool ->
?supportsTeamDrives:bool ->
?includePermissionsForView:string ->
fileId:string ->
GapiConversation.Session.t ->
GapiDriveV3Model.File.t * GapiConversation.Session.t
Gets a file's metadata or content by ID.
If std_params
includes setting alt="media"
, the file content is downloaded as per media_download
.
val list :
?base_url:string ->
?std_params:GapiService.StandardParameters.t ->
?custom_headers:GapiCore.Header.t list ->
?includeItemsFromAllDrives:bool ->
?includeTeamDriveItems:bool ->
?pageSize:int ->
?spaces:string ->
?supportsAllDrives:bool ->
?supportsTeamDrives:bool ->
?corpora:string ->
?corpus:Corpus.t ->
?driveId:string ->
?includePermissionsForView:string ->
?orderBy:string ->
?pageToken:string ->
?q:string ->
?teamDriveId:string ->
GapiConversation.Session.t ->
GapiDriveV3Model.FileList.t * GapiConversation.Session.t
Lists or searches files.
val update :
?base_url:string ->
?std_params:GapiService.StandardParameters.t ->
?media_source:GapiMediaResource.t ->
?custom_headers:GapiCore.Header.t list ->
?enforceSingleParent:bool ->
?keepRevisionForever:bool ->
?supportsAllDrives:bool ->
?supportsTeamDrives:bool ->
?useContentAsIndexableText:bool ->
?addParents:string ->
?includePermissionsForView: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. This method supports patch semantics.
val watch :
?base_url:string ->
?std_params:GapiService.StandardParameters.t ->
?media_download:GapiMediaResource.download ->
?custom_headers:GapiCore.Header.t list ->
?acknowledgeAbuse:bool ->
?supportsAllDrives:bool ->
?supportsTeamDrives:bool ->
?includePermissionsForView:string ->
fileId:string ->
GapiDriveV3Model.Channel.t ->
GapiConversation.Session.t ->
GapiDriveV3Model.Channel.t * GapiConversation.Session.t
Subscribes to changes to a file
If std_params
includes setting alt="media"
, the file content is downloaded as per media_download
.