All Drive API operations now include supportsAllDrives=True
This commit is contained in:
@@ -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
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user