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 ->
?includeLabels:string ->
?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 ->
?includeLabels:string ->
?includePermissionsForView:string ->
?ocrLanguage:string ->
GapiDriveV3Model.File.t ->
GapiConversation.Session.t ->
GapiDriveV3Model.File.t * GapiConversation.Session.t
Creates a 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 Workspace document to the requested MIME type and returns exported byte content. 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 ->
?includeLabels:string ->
?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 ->
?includeLabels: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 listLabels :
?base_url:string ->
?std_params:GapiService.StandardParameters.t ->
?custom_headers:GapiCore.Header.t list ->
?maxResults:int ->
?pageToken:string ->
fileId:string ->
GapiConversation.Session.t ->
GapiDriveV3Model.LabelList.t * GapiConversation.Session.t
Lists the labels on a file.
val modifyLabels :
?base_url:string ->
?std_params:GapiService.StandardParameters.t ->
?custom_headers:GapiCore.Header.t list ->
fileId:string ->
GapiDriveV3Model.ModifyLabelsRequest.t ->
GapiConversation.Session.t ->
GapiDriveV3Model.ModifyLabelsResponse.t * GapiConversation.Session.t
Modifies the set of labels on a file.
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 ->
?includeLabels: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. When calling this method, only populate fields in the request that you want to modify. When updating fields, some fields might change automatically, such as modifiedDate. 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 ->
?includeLabels:string ->
?includePermissionsForView:string ->
fileId:string ->
GapiDriveV3Model.Channel.t ->
GapiConversation.Session.t ->
GapiDriveV3Model.Channel.t * GapiConversation.Session.t
Subscribes to changes to a file. While you can establish a channel for changes to a file on a shared drive, a change to a shared drive file won't create a notification.
If std_params
includes setting alt="media"
, the file content is downloaded as per media_download
.