All Drive API operations now include supportsAllDrives=True

This commit is contained in:
Taylor Wilsdon
2025-11-04 10:19:37 -05:00
parent 7ac9087939
commit 24d79ab470
5 changed files with 27 additions and 13 deletions

View File

@@ -137,7 +137,8 @@ async def _read_comments_impl(service, app_name: str, file_id: str) -> str:
response = await asyncio.to_thread(
service.comments().list(
fileId=file_id,
fields="comments(id,content,author,createdTime,modifiedTime,resolved,replies(content,author,id,createdTime,modifiedTime))"
fields="comments(id,content,author,createdTime,modifiedTime,resolved,replies(content,author,id,createdTime,modifiedTime))",
supportsAllDrives=True
).execute
)
@@ -190,7 +191,8 @@ async def _create_comment_impl(service, app_name: str, file_id: str, comment_con
service.comments().create(
fileId=file_id,
body=body,
fields="id,content,author,createdTime,modifiedTime"
fields="id,content,author,createdTime,modifiedTime",
supportsAllDrives=True
).execute
)
@@ -212,7 +214,8 @@ async def _reply_to_comment_impl(service, app_name: str, file_id: str, comment_i
fileId=file_id,
commentId=comment_id,
body=body,
fields="id,content,author,createdTime,modifiedTime"
fields="id,content,author,createdTime,modifiedTime",
supportsAllDrives=True
).execute
)
@@ -237,7 +240,8 @@ async def _resolve_comment_impl(service, app_name: str, file_id: str, comment_id
fileId=file_id,
commentId=comment_id,
body=body,
fields="id,content,author,createdTime,modifiedTime"
fields="id,content,author,createdTime,modifiedTime",
supportsAllDrives=True
).execute
)