GoogleApi.Drive.V3.Api.Files.drive_files_update_iodata

You're seeing just the function drive_files_update_iodata, go back to GoogleApi.Drive.V3.Api.Files module for more information.
Link to this function

drive_files_update_iodata(connection, file_id, upload_type, metadata, data, optional_params \\ [], opts \\ [])

View Source

Specs

drive_files_update_iodata(
  Tesla.Env.client(),
  String.t(),
  String.t(),
  GoogleApi.Drive.V3.Model.File.t(),
  iodata(),
  keyword(),
  keyword()
) ::
  {:ok, GoogleApi.Drive.V3.Model.File.t()}
  | {:ok, Tesla.Env.t()}
  | {:ok, list()}
  | {:error, any()}

Updates a file's metadata and/or content. This method supports patch semantics.

Parameters

  • connection (type: GoogleApi.Drive.V3.Connection.t) - Connection to server
  • file_id (type: String.t) - The ID of the file.
  • upload_type (type: String.t) - Upload type. Must be "multipart".
  • metadata (type: GoogleApi.Drive.V3.Model.File.t) - object metadata
  • data (type: iodata) - Content to upload, as a string or iolist
  • optional_params (type: keyword()) - Optional parameters
    • :alt (type: String.t) - Data format for the response.
    • :fields (type: String.t) - Selector specifying which fields to include in a partial response.
    • :key (type: String.t) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
    • :oauth_token (type: String.t) - OAuth 2.0 token for the current user.
    • :prettyPrint (type: boolean()) - Returns response with indentations and line breaks.
    • :quotaUser (type: String.t) - An opaque string that represents a user for quota purposes. Must not exceed 40 characters.
    • :userIp (type: String.t) - Deprecated. Please use quotaUser instead.
    • :addParents (type: String.t) - A comma-separated list of parent IDs to add.
    • :enforceSingleParent (type: boolean()) - Deprecated. Adding files to multiple folders is no longer supported. Use shortcuts instead.
    • :includePermissionsForView (type: String.t) - Specifies which additional view's permissions to include in the response. Only 'published' is supported.
    • :keepRevisionForever (type: boolean()) - Whether to set the 'keepForever' field in the new head revision. This is only applicable to files with binary content in Google Drive. Only 200 revisions for the file can be kept forever. If the limit is reached, try deleting pinned revisions.
    • :ocrLanguage (type: String.t) - A language hint for OCR processing during image import (ISO 639-1 code).
    • :removeParents (type: String.t) - A comma-separated list of parent IDs to remove.
    • :supportsAllDrives (type: boolean()) - Whether the requesting application supports both My Drives and shared drives.
    • :supportsTeamDrives (type: boolean()) - Deprecated use supportsAllDrives instead.
    • :useContentAsIndexableText (type: boolean()) - Whether to use the uploaded content as indexable text.
  • opts (type: keyword()) - Call options

Returns

  • {:ok, %GoogleApi.Drive.V3.Model.File{}} on success
  • {:error, info} on failure