Skip to content
Open
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
6 changes: 3 additions & 3 deletions docs/filelist.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Get all files which matches the query

Create `GoogleDriveFileList`_ instance with `parameters of Files.list()`_ as ``dict``.
Call `GetList()`_ and you will get all files that matches your query as a list of `GoogleDriveFile`_.
The syntax and possible option of the query ``q`` parameter can be found in `search for files` Google documentation.
The syntax and possible option of the query ``q`` parameter can be found in `search for files`_ Google documentation.

.. code-block:: python

Expand Down Expand Up @@ -43,6 +43,6 @@ Sample code continues from above:

.. _`GoogleDriveFile`: /PyDrive2/pydrive2/#pydrive2.files.GoogleDriveFile
.. _`GoogleDriveFileList`: /PyDrive2/pydrive2/#pydrive2.files.GoogleDriveFileList
.. _`parameters of Files.list()`: https://developers.google.com/drive/v2/reference/files/list#request
.. _`parameters of Files.list()`: https://developers.google.com/workspace/drive/api/reference/rest/v2/files/list#request
.. _`GetList()`: /PyDrive2/pydrive2/#pydrive2.apiattr.ApiResourceList.GetList
.. _`search for files`: https://developers.google.com/drive/api/v2/search-files
.. _`search for files`: https://developers.google.com/workspace/drive/api/guides/search-files
14 changes: 7 additions & 7 deletions docs/filemanagement.rst
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ Note: ``InsertPermission()`` calls ``GetPermissions()`` after successfully
inserting the permission.

You can find more information on the permitted fields of a permission
`here <https://developers.google.com/drive/v2/reference/permissions/insert#request-body>`_.
`here <https://developers.google.com/workspace/drive/api/reference/rest/v2/permissions/insert#request-body>`_.
This file is now shared and anyone with the link can view it. But what if you
want to check whether a file is already shared?

Expand Down Expand Up @@ -178,8 +178,9 @@ Get files by complex queries
We can get a file by name and by other constraints, usually a filename will be
unique but we can have two equal names with different extensions, e.g.,
*123.jpeg and 123.mp3*. So if you expect only one file add more constraints to
the query, see `Query string examples <query_parameters>`_, as a result we get
a list of `GoogleDriveFile`_ instances.
the query, see
`Query string examples <https://developers.google.com/workspace/drive/api/guides/search-files#examples>`_,
as a result we get a list of `GoogleDriveFile`_ instances.

.. code-block:: python

Expand Down Expand Up @@ -338,12 +339,11 @@ it you indicate that you acknowledge the risks of downloading potential malware.
.. _`Upload()`: /PyDrive2/pydrive2/#pydrive2.files.GoogleDriveFile.Upload
.. _`GoogleAuth`: /PyDrive2/pydrive2/#pydrive2.auth.GoogleAuth
.. _`CreateFile()`: /PyDrive2/pydrive2/#pydrive2.drive.GoogleDrive.CreateFile
.. _`Files resource`: https://developers.google.com/drive/v2/reference/files#resource-representations
.. _`Files resource`: https://developers.google.com/workspace/drive/api/reference/rest/v2/files#resource-representations
.. _`SetContentFile(filename)`: /PyDrive2/pydrive2/#pydrive2.files.GoogleDriveFile.SetContentFile
.. _`SetContentString(content)`: /PyDrive2/pydrive2/#pydrive2.files.GoogleDriveFile.SetContentString
.. _`GetContentFile(filename)`: /PyDrive2/pydrive2/#pydrive2.files.GoogleDriveFile.GetContentFile
.. _`GetContentString()`: /PyDrive2/pydrive2/#pydrive2.files.GoogleDriveFile.GetContentString
.. _`official documentation`: https://developers.google.com/drive/v2/reference/files#resource-representations
.. _`known`: https://productforums.google.com/forum/#!topic/docs/BJLimQDGtjQ
.. _`official documentation`: https://developers.google.com/workspace/drive/api/reference/rest/v2/files#resource-representations
.. _`known`: https://github.com/googleapis/google-api-nodejs-client/issues/2404
.. _`abusive`: https://support.google.com/docs/answer/148505
.. _`query_parameters`: https://developers.google.com/drive/api/guides/search-files#examples
2 changes: 1 addition & 1 deletion docs/fsspec.rst
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,6 @@ about and manipulating files, refer to fsspec docs on

.. _`fsspec`: https://filesystem-spec.readthedocs.io/en/latest/
.. _`GDriveFileSystem`: /PyDrive2/pydrive2/#pydrive2.fs.GDriveFileSystem
.. _`delegation of authority`: https://developers.google.com/admin-sdk/directory/v1/guides/delegation
.. _`delegation of authority`: https://developers.google.com/workspace/guides/create-credentials
.. _`Abusive files`: /PyDrive2/filemanagement/index.html#abusive-files
.. _`how to use a filesystem`: https://filesystem-spec.readthedocs.io/en/latest/usage.html#use-a-file-system
2 changes: 1 addition & 1 deletion docs/oauth.rst
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ Fields explained:
:get_refresh_token (bool): True if you want to retrieve refresh token along with access token. **Default**: False. **Required**: No.
:oauth_scope (list of str): OAuth scope to authenticate. **Default**: ['https://www.googleapis.com/auth/drive']. **Required**: No.

.. _delegated: https://developers.google.com/admin-sdk/directory/v1/guides/delegation
.. _delegated: https://developers.google.com/workspace/guides/create-credentials

Sample *settings.yaml*
______________________
Expand Down