Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/Drive/Resource/Drives.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,8 @@ public function hide($driveId, $optParams = [])
/**
* Lists the user's shared drives. This method accepts the `q` parameter, which
* is a search query combining one or more search terms. For more information,
* see the [Search for shared drives](/workspace/drive/api/guides/search-
* see the [Search for shared
* drives](https://developers.google.com/workspace/drive/api/guides/search-
* shareddrives) guide. (drives.listDrives)
*
* @param array $optParams Optional parameters.
Expand Down
52 changes: 29 additions & 23 deletions src/Drive/Resource/Files.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,14 +78,16 @@ public function copy($fileId, DriveFile $postBody, $optParams = [])
}
/**
* Creates a file. For more information, see [Create and manage
* files](/workspace/drive/api/guides/create-file). This method supports an
* upload* URI and accepts uploaded media with the following characteristics: -
* *Maximum file size:* 5,120 GB - *Accepted Media MIME types:* `*` (Specify a
* valid MIME type, rather than the literal `*` value. The literal `*` is only
* used to indicate that any valid MIME type can be uploaded. For more
* information, see [Google Workspace and Google Drive supported MIME
* types](/workspace/drive/api/guides/mime-types).) For more information on
* uploading files, see [Upload file data](/workspace/drive/api/guides/manage-
* files](https://developers.google.com/workspace/drive/api/guides/create-file).
* This method supports an upload* URI and accepts uploaded media with the
* following characteristics: - *Maximum file size:* 5,120 GB - *Accepted Media
* MIME types:* `*` (Specify a valid MIME type, rather than the literal `*`
* value. The literal `*` is only used to indicate that any valid MIME type can
* be uploaded. For more information, see [Google Workspace and Google Drive
* supported MIME
* types](https://developers.google.com/workspace/drive/api/guides/mime-types).)
* For more information on uploading files, see [Upload file
* data](https://developers.google.com/workspace/drive/api/guides/manage-
* uploads). Apps creating shortcuts with the `create` method must specify the
* MIME type `application/vnd.google-apps.shortcut`. Apps should specify a file
* extension in the `name` property when inserting files with the API. For
Expand Down Expand Up @@ -260,14 +262,16 @@ public function generateIds($optParams = [])
}
/**
* Gets a file's metadata or content by ID. For more information, see [Search
* for files and folders](/workspace/drive/api/guides/search-files). If you
* provide the URL parameter `alt=media`, then the response includes the file
* contents in the response body. Downloading content with `alt=media` only
* works if the file is stored in Drive. To download Google Docs, Sheets, and
* Slides use
* [`files.export`](/workspace/drive/api/reference/rest/v3/files/export)
* instead. For more information, see [Download and export
* files](/workspace/drive/api/guides/manage-downloads). (files.get)
* for files and
* folders](https://developers.google.com/workspace/drive/api/guides/search-
* files). If you provide the URL parameter `alt=media`, then the response
* includes the file contents in the response body. Downloading content with
* `alt=media` only works if the file is stored in Drive. To download Google
* Docs, Sheets, and Slides use [`files.export`](https://developers.google.com/w
* orkspace/drive/api/reference/rest/v3/files/export) instead. For more
* information, see [Download and export
* files](https://developers.google.com/workspace/drive/api/guides/manage-
* downloads). (files.get)
*
* @param string $fileId The ID of the file.
* @param array $optParams Optional parameters.
Expand Down Expand Up @@ -295,11 +299,12 @@ public function get($fileId, $optParams = [])
}
/**
* Lists the user's files. For more information, see [Search for files and
* folders](/workspace/drive/api/guides/search-files). This method accepts the
* `q` parameter, which is a search query combining one or more search terms.
* This method returns *all* files by default, including trashed files. If you
* don't want trashed files to appear in the list, use the `trashed=false` query
* parameter to remove trashed files from the results. (files.listFiles)
* folders](https://developers.google.com/workspace/drive/api/guides/search-
* files). This method accepts the `q` parameter, which is a search query
* combining one or more search terms. This method returns *all* files by
* default, including trashed files. If you don't want trashed files to appear
* in the list, use the `trashed=false` query parameter to remove trashed files
* from the results. (files.listFiles)
*
* @param array $optParams Optional parameters.
*
Expand Down Expand Up @@ -418,8 +423,9 @@ public function modifyLabels($fileId, ModifyLabelsRequest $postBody, $optParams
* type, rather than the literal `*` value. The literal `*` is only used to
* indicate that any valid MIME type can be uploaded. For more information, see
* [Google Workspace and Google Drive supported MIME
* types](/workspace/drive/api/guides/mime-types).) For more information on
* uploading files, see [Upload file data](/workspace/drive/api/guides/manage-
* types](https://developers.google.com/workspace/drive/api/guides/mime-types).)
* For more information on uploading files, see [Upload file
* data](https://developers.google.com/workspace/drive/api/guides/manage-
* uploads). (files.update)
*
* @param string $fileId The ID of the file.
Expand Down
Loading