universal-mcp-applications 0.1.17__py3-none-any.whl → 0.1.33__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of universal-mcp-applications might be problematic. Click here for more details.

Files changed (143) hide show
  1. universal_mcp/applications/BEST_PRACTICES.md +166 -0
  2. universal_mcp/applications/ahrefs/README.md +3 -3
  3. universal_mcp/applications/airtable/README.md +3 -3
  4. universal_mcp/applications/airtable/app.py +0 -1
  5. universal_mcp/applications/apollo/app.py +0 -1
  6. universal_mcp/applications/asana/README.md +3 -3
  7. universal_mcp/applications/aws_s3/README.md +29 -0
  8. universal_mcp/applications/aws_s3/app.py +40 -39
  9. universal_mcp/applications/bill/README.md +249 -0
  10. universal_mcp/applications/browser_use/README.md +1 -0
  11. universal_mcp/applications/browser_use/__init__.py +0 -0
  12. universal_mcp/applications/browser_use/app.py +71 -0
  13. universal_mcp/applications/calendly/README.md +45 -45
  14. universal_mcp/applications/calendly/app.py +125 -125
  15. universal_mcp/applications/canva/README.md +35 -35
  16. universal_mcp/applications/canva/app.py +95 -99
  17. universal_mcp/applications/clickup/README.md +4 -4
  18. universal_mcp/applications/confluence/app.py +0 -1
  19. universal_mcp/applications/contentful/README.md +1 -2
  20. universal_mcp/applications/contentful/app.py +4 -5
  21. universal_mcp/applications/crustdata/README.md +3 -3
  22. universal_mcp/applications/domain_checker/README.md +2 -2
  23. universal_mcp/applications/domain_checker/app.py +11 -15
  24. universal_mcp/applications/e2b/README.md +4 -4
  25. universal_mcp/applications/e2b/app.py +4 -4
  26. universal_mcp/applications/elevenlabs/README.md +3 -77
  27. universal_mcp/applications/elevenlabs/app.py +18 -15
  28. universal_mcp/applications/exa/README.md +7 -7
  29. universal_mcp/applications/exa/app.py +17 -17
  30. universal_mcp/applications/falai/README.md +13 -12
  31. universal_mcp/applications/falai/app.py +34 -35
  32. universal_mcp/applications/figma/README.md +3 -3
  33. universal_mcp/applications/file_system/README.md +13 -0
  34. universal_mcp/applications/file_system/app.py +9 -9
  35. universal_mcp/applications/firecrawl/README.md +9 -9
  36. universal_mcp/applications/firecrawl/app.py +46 -46
  37. universal_mcp/applications/fireflies/README.md +14 -14
  38. universal_mcp/applications/fireflies/app.py +164 -57
  39. universal_mcp/applications/fpl/README.md +12 -12
  40. universal_mcp/applications/fpl/app.py +54 -55
  41. universal_mcp/applications/ghost_content/app.py +0 -1
  42. universal_mcp/applications/github/README.md +10 -10
  43. universal_mcp/applications/github/app.py +50 -52
  44. universal_mcp/applications/google_calendar/README.md +10 -10
  45. universal_mcp/applications/google_calendar/app.py +50 -49
  46. universal_mcp/applications/google_docs/README.md +14 -14
  47. universal_mcp/applications/google_docs/app.py +307 -233
  48. universal_mcp/applications/google_drive/README.md +54 -57
  49. universal_mcp/applications/google_drive/app.py +270 -261
  50. universal_mcp/applications/google_gemini/README.md +3 -14
  51. universal_mcp/applications/google_gemini/app.py +15 -18
  52. universal_mcp/applications/google_mail/README.md +20 -20
  53. universal_mcp/applications/google_mail/app.py +110 -109
  54. universal_mcp/applications/google_searchconsole/README.md +10 -10
  55. universal_mcp/applications/google_searchconsole/app.py +37 -37
  56. universal_mcp/applications/google_sheet/README.md +25 -25
  57. universal_mcp/applications/google_sheet/app.py +270 -266
  58. universal_mcp/applications/hashnode/README.md +6 -3
  59. universal_mcp/applications/hashnode/app.py +174 -25
  60. universal_mcp/applications/http_tools/README.md +5 -5
  61. universal_mcp/applications/http_tools/app.py +10 -11
  62. universal_mcp/applications/hubspot/api_segments/__init__.py +0 -0
  63. universal_mcp/applications/hubspot/api_segments/api_segment_base.py +54 -0
  64. universal_mcp/applications/hubspot/api_segments/crm_api.py +7337 -0
  65. universal_mcp/applications/hubspot/api_segments/marketing_api.py +1467 -0
  66. universal_mcp/applications/hubspot/app.py +2 -15
  67. universal_mcp/applications/jira/app.py +0 -1
  68. universal_mcp/applications/klaviyo/README.md +0 -36
  69. universal_mcp/applications/linkedin/README.md +18 -4
  70. universal_mcp/applications/linkedin/app.py +763 -162
  71. universal_mcp/applications/mailchimp/README.md +3 -3
  72. universal_mcp/applications/markitdown/app.py +10 -5
  73. universal_mcp/applications/ms_teams/README.md +31 -31
  74. universal_mcp/applications/ms_teams/app.py +151 -151
  75. universal_mcp/applications/neon/README.md +3 -3
  76. universal_mcp/applications/onedrive/README.md +24 -0
  77. universal_mcp/applications/onedrive/__init__.py +1 -0
  78. universal_mcp/applications/onedrive/app.py +338 -0
  79. universal_mcp/applications/openai/README.md +18 -17
  80. universal_mcp/applications/openai/app.py +40 -39
  81. universal_mcp/applications/outlook/README.md +9 -9
  82. universal_mcp/applications/outlook/app.py +307 -225
  83. universal_mcp/applications/perplexity/README.md +4 -4
  84. universal_mcp/applications/perplexity/app.py +4 -4
  85. universal_mcp/applications/posthog/README.md +128 -127
  86. universal_mcp/applications/reddit/README.md +21 -124
  87. universal_mcp/applications/reddit/app.py +51 -68
  88. universal_mcp/applications/resend/README.md +29 -29
  89. universal_mcp/applications/resend/app.py +116 -117
  90. universal_mcp/applications/rocketlane/app.py +0 -1
  91. universal_mcp/applications/scraper/README.md +7 -4
  92. universal_mcp/applications/scraper/__init__.py +1 -1
  93. universal_mcp/applications/scraper/app.py +341 -103
  94. universal_mcp/applications/semrush/README.md +3 -0
  95. universal_mcp/applications/serpapi/README.md +3 -3
  96. universal_mcp/applications/serpapi/app.py +14 -14
  97. universal_mcp/applications/sharepoint/README.md +19 -0
  98. universal_mcp/applications/sharepoint/app.py +285 -173
  99. universal_mcp/applications/shopify/app.py +0 -1
  100. universal_mcp/applications/shortcut/README.md +3 -3
  101. universal_mcp/applications/slack/README.md +23 -0
  102. universal_mcp/applications/slack/app.py +79 -48
  103. universal_mcp/applications/spotify/README.md +3 -3
  104. universal_mcp/applications/supabase/README.md +3 -3
  105. universal_mcp/applications/tavily/README.md +4 -4
  106. universal_mcp/applications/tavily/app.py +4 -4
  107. universal_mcp/applications/twilio/README.md +15 -0
  108. universal_mcp/applications/twitter/README.md +92 -89
  109. universal_mcp/applications/twitter/api_segments/compliance_api.py +13 -15
  110. universal_mcp/applications/twitter/api_segments/dm_conversations_api.py +20 -20
  111. universal_mcp/applications/twitter/api_segments/dm_events_api.py +12 -12
  112. universal_mcp/applications/twitter/api_segments/likes_api.py +12 -12
  113. universal_mcp/applications/twitter/api_segments/lists_api.py +37 -39
  114. universal_mcp/applications/twitter/api_segments/spaces_api.py +24 -24
  115. universal_mcp/applications/twitter/api_segments/trends_api.py +4 -4
  116. universal_mcp/applications/twitter/api_segments/tweets_api.py +105 -105
  117. universal_mcp/applications/twitter/api_segments/usage_api.py +4 -4
  118. universal_mcp/applications/twitter/api_segments/users_api.py +136 -136
  119. universal_mcp/applications/twitter/app.py +15 -11
  120. universal_mcp/applications/whatsapp/README.md +12 -12
  121. universal_mcp/applications/whatsapp/app.py +66 -67
  122. universal_mcp/applications/whatsapp/audio.py +39 -35
  123. universal_mcp/applications/whatsapp/whatsapp.py +176 -154
  124. universal_mcp/applications/whatsapp_business/README.md +23 -23
  125. universal_mcp/applications/whatsapp_business/app.py +92 -92
  126. universal_mcp/applications/yahoo_finance/README.md +17 -0
  127. universal_mcp/applications/yahoo_finance/__init__.py +1 -0
  128. universal_mcp/applications/yahoo_finance/app.py +300 -0
  129. universal_mcp/applications/youtube/README.md +46 -46
  130. universal_mcp/applications/youtube/app.py +208 -195
  131. universal_mcp/applications/zenquotes/README.md +1 -1
  132. universal_mcp/applications/zenquotes/__init__.py +2 -0
  133. universal_mcp/applications/zenquotes/app.py +5 -5
  134. {universal_mcp_applications-0.1.17.dist-info → universal_mcp_applications-0.1.33.dist-info}/METADATA +5 -90
  135. {universal_mcp_applications-0.1.17.dist-info → universal_mcp_applications-0.1.33.dist-info}/RECORD +137 -128
  136. universal_mcp/applications/replicate/README.md +0 -18
  137. universal_mcp/applications/replicate/__init__.py +0 -1
  138. universal_mcp/applications/replicate/app.py +0 -493
  139. universal_mcp/applications/unipile/README.md +0 -28
  140. universal_mcp/applications/unipile/__init__.py +0 -1
  141. universal_mcp/applications/unipile/app.py +0 -827
  142. {universal_mcp_applications-0.1.17.dist-info → universal_mcp_applications-0.1.33.dist-info}/WHEEL +0 -0
  143. {universal_mcp_applications-0.1.17.dist-info → universal_mcp_applications-0.1.33.dist-info}/licenses/LICENSE +0 -0
@@ -2,7 +2,6 @@ from typing import Any
2
2
 
3
3
  import httpx
4
4
  from loguru import logger
5
-
6
5
  from universal_mcp.applications.application import APIApplication
7
6
  from universal_mcp.integrations import Integration
8
7
 
@@ -21,21 +20,21 @@ class GoogleDriveApp(APIApplication):
21
20
  self, file_id: str, add_parents: str, remove_parents: str
22
21
  ) -> dict[str, Any]:
23
22
  """
24
- Moves a specified file to a new folder in Google Drive by updating its parent references. It adds the file to a destination folder and removes it from the source, returning the updated file metadata.
25
-
23
+ Moves a file to a new folder by updating its parent references. This function adds the file to a destination folder (`add_parents`) and removes it from the source (`remove_parents`), offering a focused alternative to the more comprehensive `update_file_metadata` function.
24
+
26
25
  Args:
27
26
  file_id: The ID of the file to move
28
27
  add_parents: The ID of the destination folder (new parent)
29
28
  remove_parents: The ID of the source folder (old parent to remove)
30
-
29
+
31
30
  Returns:
32
31
  A dictionary containing the updated file information
33
-
32
+
34
33
  Raises:
35
34
  HTTPError: If the API request fails or returns an error status code
36
35
  ConnectionError: If there are network connectivity issues
37
36
  AuthenticationError: If the authentication credentials are invalid or expired
38
-
37
+
39
38
  Tags:
40
39
  move, file, folder, parent, patch, api, important
41
40
  """
@@ -48,16 +47,16 @@ class GoogleDriveApp(APIApplication):
48
47
 
49
48
  def get_drive_info(self) -> dict[str, Any]:
50
49
  """
51
- Fetches key user and storage quota information for the authenticated Google Drive account. This streamlined function provides a focused alternative to `information_about_user_and_drive`, which queries the same endpoint but exposes all available API parameters.
52
-
50
+ Fetches key user and storage quota information for the authenticated Google Drive account. This streamlined function offers a focused alternative to `get_about_info`, which queries the same endpoint but exposes all available API parameters, providing a simpler way to get essential account details.
51
+
53
52
  Returns:
54
53
  A dictionary containing Drive information including storage quota (usage, limit) and user details (name, email, etc.).
55
-
54
+
56
55
  Raises:
57
56
  HTTPError: If the API request fails or returns an error status code
58
57
  ConnectionError: If there are network connectivity issues
59
58
  AuthenticationError: If the authentication credentials are invalid or expired
60
-
59
+
61
60
  Tags:
62
61
  get, info, storage, drive, quota, user, api, important
63
62
  """
@@ -67,23 +66,35 @@ class GoogleDriveApp(APIApplication):
67
66
  return response.json()
68
67
 
69
68
  def search_files(
70
- self, page_size: int = 10, query: str | None = None, order_by: str | None = None
69
+ self, page_size: int = 10, q: str | None = None, order_by: str | None = None
71
70
  ) -> dict[str, Any]:
72
71
  """
73
- Searches for files in Google Drive, allowing for powerful filtering, sorting, and pagination. This curated function offers a more user-friendly alternative to the comprehensive `list_user_sfiles` method, making it ideal for targeted queries like finding files by name or type.
74
-
72
+ Searches for files in Google Drive, allowing for powerful filtering, sorting, and pagination.
73
+ This streamlined function offers a more user-friendly alternative to the comprehensive search_files_advanced method, making it ideal for targeted queries like finding files by name, type, or parent folder.
74
+
75
75
  Args:
76
76
  page_size: Maximum number of files to return per page (default: 10)
77
- query: Optional search query string using Google Drive query syntax (e.g., "mimeType='image/jpeg'")
78
- order_by: Optional field name to sort results by, with optional direction (e.g., "modifiedTime desc")
79
-
77
+ q: Optional search query string using **Google Drive query syntax**.
78
+ - You must specify a field (e.g., `name`, `fullText`, `mimeType`, `modifiedTime`, `parents`)
79
+ - Supported operators: `=`, `!=`, `<`, `<=`, `>`, `>=`, `contains`, `in`
80
+ - Combine conditions with `and` / `or`
81
+ - String values must be in single quotes `'...'`
82
+
83
+ Examples:
84
+ - "mimeType='application/pdf'"
85
+ - "name contains 'contract' or name contains 'agreement'"
86
+ - "fullText contains 'service' and mimeType!='application/vnd.google-apps.folder'"
87
+
88
+ order_by: Optional field name to sort results by, with optional direction
89
+ - e.g., "modifiedTime desc", "name asc"
90
+
80
91
  Returns:
81
92
  Dictionary containing a list of files and metadata, including 'files' array and optional 'nextPageToken' for pagination
82
-
93
+
83
94
  Raises:
84
95
  HTTPError: Raised when the API request fails or returns an error status code
85
96
  RequestException: Raised when network connectivity issues occur during the API request
86
-
97
+
87
98
  Tags:
88
99
  list, files, search, google-drive, pagination, important
89
100
  """
@@ -91,8 +102,8 @@ class GoogleDriveApp(APIApplication):
91
102
  params = {
92
103
  "pageSize": page_size,
93
104
  }
94
- if query:
95
- params["q"] = query
105
+ if q:
106
+ params["q"] = q
96
107
  if order_by:
97
108
  params["orderBy"] = order_by
98
109
  response = self._get(url, params=params)
@@ -101,18 +112,18 @@ class GoogleDriveApp(APIApplication):
101
112
 
102
113
  def get_file_details(self, file_id: str) -> dict[str, Any]:
103
114
  """
104
- Retrieves all default metadata for a specific file from Google Drive using its ID. This is a simplified alternative to `get_file_metadata`, fetching complete file attributes without optional query parameters for customizing the response.
105
-
115
+ Fetches all default metadata for a specific file by its unique ID. This function provides a simple, direct retrieval of a single file's complete attributes, differing from `search_files` which performs broad queries for multiple files based on various criteria.
116
+
106
117
  Args:
107
118
  file_id: String identifier of the file whose metadata should be retrieved
108
-
119
+
109
120
  Returns:
110
121
  Dictionary containing the file's metadata including properties such as name, size, type, and other attributes
111
-
122
+
112
123
  Raises:
113
124
  HTTPError: When the API request fails due to invalid file_id or network issues
114
125
  JSONDecodeError: When the API response cannot be parsed as JSON
115
-
126
+
116
127
  Tags:
117
128
  retrieve, file, metadata, get, api, important
118
129
  """
@@ -122,17 +133,17 @@ class GoogleDriveApp(APIApplication):
122
133
 
123
134
  def trash_file(self, file_id: str) -> dict[str, Any]:
124
135
  """
125
- Moves a specified file to the trash using its ID. It provides simplified error handling by catching exceptions and returning a dictionary with a success or error message, unlike `delete_file_by_id` which raises exceptions on failure.
126
-
136
+ Moves a specified file to the trash using its ID. It provides simplified error handling by returning a dictionary with a success or error message, unlike the `permanently_delete_file` function which raises an exception on failure.
137
+
127
138
  Args:
128
139
  file_id: The unique identifier string of the file to be deleted from Google Drive
129
-
140
+
130
141
  Returns:
131
142
  A dictionary containing either a success message {'message': 'File deleted successfully'} or an error message {'error': 'error description'}
132
-
143
+
133
144
  Raises:
134
145
  Exception: When the DELETE request fails due to network issues, invalid file_id, insufficient permissions, or other API errors
135
-
146
+
136
147
  Tags:
137
148
  delete, file-management, google-drive, api, important
138
149
  """
@@ -151,21 +162,21 @@ class GoogleDriveApp(APIApplication):
151
162
  mime_type: str = "text/plain",
152
163
  ) -> dict[str, Any]:
153
164
  """
154
- Creates a new file in Google Drive from a given text string. The function first creates the file's metadata (name, parent folder), then uploads the provided string as its content, returning the new file's full metadata upon completion.
155
-
165
+ Creates a file in Google Drive using an in-memory text string. Unlike `upload_file_from_path`, which reads from a local file, this function first creates the file's metadata (name, parent) and then uploads the provided string content, returning the new file's complete metadata upon completion.
166
+
156
167
  Args:
157
168
  file_name: Name of the file to create on Google Drive
158
169
  text_content: Plain text content to be written to the file
159
170
  parent_id: Optional ID of the parent folder where the file will be created
160
171
  mime_type: MIME type of the file (defaults to 'text/plain')
161
-
172
+
162
173
  Returns:
163
174
  Dictionary containing metadata of the created file including ID, name, and other Google Drive file properties
164
-
175
+
165
176
  Raises:
166
177
  HTTPStatusError: Raised when the API request fails during file creation or content upload
167
178
  UnicodeEncodeError: Raised when the text_content cannot be encoded in UTF-8
168
-
179
+
169
180
  Tags:
170
181
  create, file, upload, drive, text, important, storage, document
171
182
  """
@@ -188,17 +199,17 @@ class GoogleDriveApp(APIApplication):
188
199
 
189
200
  def find_folder_id_by_name(self, folder_name: str) -> str | None:
190
201
  """
191
- Searches for a non-trashed folder by its exact name and returns the ID of the first match. This utility, used by `create_folder` to resolve parent names, logs errors and returns None if the folder is not found or the API request fails.
192
-
202
+ Searches for a non-trashed folder by its exact name, returning the ID of the first match. As a utility for `create_folder`, it resolves parent names to IDs and returns None if the folder isn't found or an API error occurs, logging the failure internally.
203
+
193
204
  Args:
194
205
  folder_name: The name of the folder to search for in Google Drive
195
-
206
+
196
207
  Returns:
197
208
  str | None: The folder's ID if a matching folder is found, None if no folder is found or if an error occurs
198
-
209
+
199
210
  Raises:
200
211
  Exception: Caught internally and logged when API requests fail or response parsing errors occur
201
-
212
+
202
213
  Tags:
203
214
  search, find, google-drive, folder, query, api, utility
204
215
  """
@@ -216,18 +227,18 @@ class GoogleDriveApp(APIApplication):
216
227
 
217
228
  def create_folder(self, folder_name: str, parent_id: str = None) -> dict[str, Any]:
218
229
  """
219
- Creates a new folder in Google Drive, optionally within a parent folder specified by its name or ID. If a name is provided for the parent, the function automatically resolves it to an ID. Returns the metadata for the newly created folder.
220
-
230
+ Creates a new folder in Google Drive, optionally within a parent specified by name or ID. If a parent name is given, it internally resolves it to an ID using the `find_folder_id_by_name` function. Returns the metadata for the newly created folder upon successful creation.
231
+
221
232
  Args:
222
233
  folder_name: Name of the folder to create
223
234
  parent_id: ID or name of the parent folder. Can be either a folder ID string or a folder name that will be automatically looked up
224
-
235
+
225
236
  Returns:
226
237
  Dictionary containing the created folder's metadata including its ID, name, and other Drive-specific information
227
-
238
+
228
239
  Raises:
229
240
  ValueError: Raised when a parent folder name is provided but cannot be found in Google Drive
230
-
241
+
231
242
  Tags:
232
243
  create, folder, drive, storage, important, management
233
244
  """
@@ -261,22 +272,22 @@ class GoogleDriveApp(APIApplication):
261
272
  mime_type: str = None,
262
273
  ) -> dict[str, Any]:
263
274
  """
264
- Uploads a local file to Google Drive by reading its binary content from a path. It first creates the file's metadata entry, then uploads the content, returning the new file's metadata. This differs from `create_file_from_text` which uses in-memory string content instead of a local file.
265
-
275
+ Uploads a local file to Google Drive by reading its binary content from a path. It creates the file's metadata, uploads the content, and returns the new file's metadata. This differs from `create_text_file` which uses in-memory string content instead of a local file path.
276
+
266
277
  Args:
267
278
  file_name: Name to give the file on Google Drive
268
279
  file_path: Path to the local file to upload
269
280
  parent_id: Optional ID of the parent folder to create the file in
270
281
  mime_type: MIME type of the file (e.g., 'image/jpeg', 'image/png', 'application/pdf')
271
-
282
+
272
283
  Returns:
273
284
  Dictionary containing the uploaded file's metadata from Google Drive
274
-
285
+
275
286
  Raises:
276
287
  FileNotFoundError: When the specified file_path does not exist or is not accessible
277
288
  HTTPError: When the API request fails or returns an error status code
278
289
  IOError: When there are issues reading the file content
279
-
290
+
280
291
  Tags:
281
292
  upload, file-handling, google-drive, api, important, binary, storage
282
293
  """
@@ -320,7 +331,7 @@ class GoogleDriveApp(APIApplication):
320
331
  ) -> dict[str, Any]:
321
332
  """
322
333
  Retrieves a list of the user's installed Google Drive applications. Allows optional filtering by file extensions or MIME types to find apps capable of opening specific file formats, returning a detailed list of matching applications.
323
-
334
+
324
335
  Args:
325
336
  appFilterExtensions (string): A query parameter to filter applications based on extensions, allowing string values to be specified in the URL. Example: '<string>'.
326
337
  appFilterMimeTypes (string): Filters the results to include only apps that can open any of the provided comma-separated list of MIME types[4][1]. Example: '<string>'.
@@ -336,14 +347,14 @@ class GoogleDriveApp(APIApplication):
336
347
  upload_protocol (string): Upload protocol for media (e.g. "raw", "multipart"). Example: '<string>'.
337
348
  uploadType (string): Legacy upload protocol for media (e.g. "media", "multipart"). Example: '<string>'.
338
349
  xgafv (string): V1 error format. Example: '<string>'.
339
-
350
+
340
351
  Returns:
341
352
  dict[str, Any]: Successful response
342
-
353
+
343
354
  Raises:
344
355
  HTTPError: Raised when the API request fails (e.g., non-2XX status code).
345
356
  JSONDecodeError: Raised if the response body cannot be parsed as JSON.
346
-
357
+
347
358
  Tags:
348
359
  Apps
349
360
  """
@@ -397,8 +408,8 @@ class GoogleDriveApp(APIApplication):
397
408
  xgafv: str | None = None,
398
409
  ) -> dict[str, Any]:
399
410
  """
400
- Retrieves detailed information for a single installed Google Drive application using its unique ID. This function fetches one app, unlike `list_user_sinstalled_apps` which returns a complete list, allowing for targeted data retrieval about a specific application.
401
-
411
+ Retrieves detailed information for a single installed Google Drive application using its unique ID. This provides a targeted alternative to `list_installed_apps`, which returns a complete list, allowing for focused data retrieval about a specific application.
412
+
402
413
  Args:
403
414
  appId (string): appId
404
415
  access_token (string): OAuth access token. Example: '{{accessToken}}'.
@@ -412,14 +423,14 @@ class GoogleDriveApp(APIApplication):
412
423
  upload_protocol (string): Upload protocol for media (e.g. "raw", "multipart"). Example: '<string>'.
413
424
  uploadType (string): Legacy upload protocol for media (e.g. "media", "multipart"). Example: '<string>'.
414
425
  xgafv (string): V1 error format. Example: '<string>'.
415
-
426
+
416
427
  Returns:
417
428
  dict[str, Any]: Successful response
418
-
429
+
419
430
  Raises:
420
431
  HTTPError: Raised when the API request fails (e.g., non-2XX status code).
421
432
  JSONDecodeError: Raised if the response body cannot be parsed as JSON.
422
-
433
+
423
434
  Tags:
424
435
  Apps
425
436
  """
@@ -467,8 +478,8 @@ class GoogleDriveApp(APIApplication):
467
478
  userIp: str | None = None,
468
479
  ) -> dict[str, Any]:
469
480
  """
470
- Retrieves information about the user's account and Google Drive settings from the API's `/about` endpoint. This generic function provides full parameter control, offering a more flexible alternative to the `get_drive_info` method, which requests specific predefined fields like storage quota and user details.
471
-
481
+ Retrieves user account and Drive settings from the `/about` endpoint. This generic function provides full parameter control, offering a flexible alternative to the `get_drive_info` method, which requests specific, predefined fields like storage quota and user details.
482
+
472
483
  Args:
473
484
  alt (string): Data format for the response. Example: 'json'.
474
485
  fields (string): Selector specifying which fields to include in a partial response. Example: '<string>'.
@@ -477,14 +488,14 @@ class GoogleDriveApp(APIApplication):
477
488
  prettyPrint (string): Returns response with indentations and line breaks. Example: '<boolean>'.
478
489
  quotaUser (string): An opaque string that represents a user for quota purposes. Must not exceed 40 characters. Example: '<string>'.
479
490
  userIp (string): Deprecated. Please use quotaUser instead. Example: '<string>'.
480
-
491
+
481
492
  Returns:
482
493
  dict[str, Any]: Successful response
483
-
494
+
484
495
  Raises:
485
496
  HTTPError: Raised when the API request fails (e.g., non-2XX status code).
486
497
  JSONDecodeError: Raised if the response body cannot be parsed as JSON.
487
-
498
+
488
499
  Tags:
489
500
  Information
490
501
  """
@@ -541,7 +552,7 @@ class GoogleDriveApp(APIApplication):
541
552
  ) -> dict[str, Any]:
542
553
  """
543
554
  Fetches a paginated list of file changes for a user's account or a specific shared drive, using a required page token. Supports various filters to customize the change log, enabling tracking of file activity for synchronization or auditing.
544
-
555
+
545
556
  Args:
546
557
  pageToken (string): (Required) The token for continuing a previous list request on the next page. This should be set to the value of 'nextPageToken' from the previous response or to the response from the getStartPageToken method. Example: '{{pageToken}}'.
547
558
  driveId (string): The shared drive from which changes are returned. If specified the change IDs will be reflective of the shared drive; use the combined drive ID and change ID as an identifier. Example: '{{driveId}}'.
@@ -564,14 +575,14 @@ class GoogleDriveApp(APIApplication):
564
575
  prettyPrint (string): Returns response with indentations and line breaks. Example: '<boolean>'.
565
576
  quotaUser (string): An opaque string that represents a user for quota purposes. Must not exceed 40 characters. Example: '<string>'.
566
577
  userIp (string): Deprecated. Please use quotaUser instead. Example: '<string>'.
567
-
578
+
568
579
  Returns:
569
580
  dict[str, Any]: Successful response
570
-
581
+
571
582
  Raises:
572
583
  HTTPError: Raised when the API request fails (e.g., non-2XX status code).
573
584
  JSONDecodeError: Raised if the response body cannot be parsed as JSON.
574
-
585
+
575
586
  Tags:
576
587
  Changes
577
588
  """
@@ -632,7 +643,7 @@ class GoogleDriveApp(APIApplication):
632
643
  ) -> dict[str, Any]:
633
644
  """
634
645
  Retrieves a starting page token representing the current state of a user's Drive or a shared drive. This token serves as a baseline for subsequent calls to list future file and folder changes, enabling efficient, incremental change tracking.
635
-
646
+
636
647
  Args:
637
648
  driveId (string): The ID of the shared drive for which the starting pageToken for listing future changes from that shared drive is returned. Example: '{{driveId}}'.
638
649
  supportsAllDrives (string): Whether the requesting application supports both My Drives and shared drives. Example: '<boolean>'.
@@ -645,14 +656,14 @@ class GoogleDriveApp(APIApplication):
645
656
  prettyPrint (string): Returns response with indentations and line breaks. Example: '<boolean>'.
646
657
  quotaUser (string): An opaque string that represents a user for quota purposes. Must not exceed 40 characters. Example: '<string>'.
647
658
  userIp (string): Deprecated. Please use quotaUser instead. Example: '<string>'.
648
-
659
+
649
660
  Returns:
650
661
  dict[str, Any]: Successful response
651
-
662
+
652
663
  Raises:
653
664
  HTTPError: Raised when the API request fails (e.g., non-2XX status code).
654
665
  JSONDecodeError: Raised if the response body cannot be parsed as JSON.
655
-
666
+
656
667
  Tags:
657
668
  Changes
658
669
  """
@@ -723,7 +734,7 @@ class GoogleDriveApp(APIApplication):
723
734
  ) -> dict[str, Any]:
724
735
  """
725
736
  Sets up a push notification channel to monitor changes across a user's Google Drive or a specific shared drive. This allows an external service to receive updates when files are modified, added, or deleted, based on specified filters.
726
-
737
+
727
738
  Args:
728
739
  pageToken (string): (Required) The token for continuing a previous list request on the next page. This should be set to the value of 'nextPageToken' from the previous response or to the response from the getStartPageToken method. Example: '{{pageToken}}'.
729
740
  driveId (string): The shared drive from which changes are returned. If specified the change IDs will be reflective of the shared drive; use the combined drive ID and change ID as an identifier. Example: '{{driveId}}'.
@@ -756,14 +767,14 @@ class GoogleDriveApp(APIApplication):
756
767
  resourceUri (string): resourceUri Example: '<string>'.
757
768
  token (string): token Example: '<string>'.
758
769
  type (string): type Example: '<string>'.
759
-
770
+
760
771
  Returns:
761
772
  dict[str, Any]: Successful response
762
-
773
+
763
774
  Raises:
764
775
  HTTPError: Raised when the API request fails (e.g., non-2XX status code).
765
776
  JSONDecodeError: Raised if the response body cannot be parsed as JSON.
766
-
777
+
767
778
  Tags:
768
779
  Changes
769
780
  """
@@ -851,7 +862,7 @@ class GoogleDriveApp(APIApplication):
851
862
  ) -> Any:
852
863
  """
853
864
  Terminates an active push notification channel, ceasing the delivery of updates for a watched Google Drive resource. This requires the channel's ID and resource ID to identify and close the specific notification stream, effectively unsubscribing from real-time changes.
854
-
865
+
855
866
  Args:
856
867
  alt (string): Data format for the response. Example: 'json'.
857
868
  fields (string): Selector specifying which fields to include in a partial response. Example: '<string>'.
@@ -870,14 +881,14 @@ class GoogleDriveApp(APIApplication):
870
881
  resourceUri (string): resourceUri Example: '<string>'.
871
882
  token (string): token Example: '<string>'.
872
883
  type (string): type Example: '<string>'.
873
-
884
+
874
885
  Returns:
875
886
  Any: Successful response
876
-
887
+
877
888
  Raises:
878
889
  HTTPError: Raised when the API request fails (e.g., non-2XX status code).
879
890
  JSONDecodeError: Raised if the response body cannot be parsed as JSON.
880
-
891
+
881
892
  Tags:
882
893
  Channels
883
894
  """
@@ -945,8 +956,8 @@ class GoogleDriveApp(APIApplication):
945
956
  userIp: str | None = None,
946
957
  ) -> dict[str, Any]:
947
958
  """
948
- Retrieves a list of comments for a specified file in Google Drive. Supports pagination and filtering options, such as including deleted comments or specifying a start time for modifications, to customize the results.
949
-
959
+ Retrieves a paginated list of all top-level comments for a specified Google Drive file. It supports filtering by modification time and including deleted comments, fetching parent comments rather than replies, unlike `list_comment_replies`.
960
+
950
961
  Args:
951
962
  fileId (string): fileId
952
963
  includeDeleted (string): Whether to include deleted comments. Deleted comments will not include their original content. Example: '<boolean>'.
@@ -960,14 +971,14 @@ class GoogleDriveApp(APIApplication):
960
971
  prettyPrint (string): Returns response with indentations and line breaks. Example: '<boolean>'.
961
972
  quotaUser (string): An opaque string that represents a user for quota purposes. Must not exceed 40 characters. Example: '<string>'.
962
973
  userIp (string): Deprecated. Please use quotaUser instead. Example: '<string>'.
963
-
974
+
964
975
  Returns:
965
976
  dict[str, Any]: Successful response
966
-
977
+
967
978
  Raises:
968
979
  HTTPError: Raised when the API request fails (e.g., non-2XX status code).
969
980
  JSONDecodeError: Raised if the response body cannot be parsed as JSON.
970
-
981
+
971
982
  Tags:
972
983
  Comments
973
984
  """
@@ -1028,8 +1039,8 @@ class GoogleDriveApp(APIApplication):
1028
1039
  resolved: str | None = None,
1029
1040
  ) -> dict[str, Any]:
1030
1041
  """
1031
- Creates a new comment on a specified Google Drive file. It requires a file ID and the comment's content, returning the new comment's metadata. This adds top-level comments, distinct from `create_areply_to_acomment` which replies to existing comments.
1032
-
1042
+ Creates a new comment on a specified Google Drive file. It requires a file ID and the comment's content, returning the new comment's metadata. This adds top-level comments, distinct from `create_comment_reply` which replies to existing comments.
1043
+
1033
1044
  Args:
1034
1045
  fileId (string): fileId
1035
1046
  alt (string): Data format for the response. Example: 'json'.
@@ -1051,14 +1062,14 @@ class GoogleDriveApp(APIApplication):
1051
1062
  quotedFileContent (object): quotedFileContent Example: {'mimeType': '<string>', 'value': '<string>'}.
1052
1063
  replies (array): replies Example: "[{'action': '<string>', 'author': {'displayName': '<string>', 'emailAddress': '<string>', 'kind': 'drive#user', 'me': '<boolean>', 'permissionId': '<string>', 'photoLink': '<string>'}, 'content': '<string>', 'createdTime': '<dateTime>', 'deleted': '<boolean>', 'htmlContent': '<string>', 'id': '<string>', 'kind': 'drive#reply', 'modifiedTime': '<dateTime>'}, {'action': '<string>', 'author': {'displayName': '<string>', 'emailAddress': '<string>', 'kind': 'drive#user', 'me': '<boolean>', 'permissionId': '<string>', 'photoLink': '<string>'}, 'content': '<string>', 'createdTime': '<dateTime>', 'deleted': '<boolean>', 'htmlContent': '<string>', 'id': '<string>', 'kind': 'drive#reply', 'modifiedTime': '<dateTime>'}]".
1053
1064
  resolved (string): resolved Example: '<boolean>'.
1054
-
1065
+
1055
1066
  Returns:
1056
1067
  dict[str, Any]: Successful response
1057
-
1068
+
1058
1069
  Raises:
1059
1070
  HTTPError: Raised when the API request fails (e.g., non-2XX status code).
1060
1071
  JSONDecodeError: Raised if the response body cannot be parsed as JSON.
1061
-
1072
+
1062
1073
  Tags:
1063
1074
  Comments
1064
1075
  """
@@ -1128,8 +1139,8 @@ class GoogleDriveApp(APIApplication):
1128
1139
  userIp: str | None = None,
1129
1140
  ) -> dict[str, Any]:
1130
1141
  """
1131
- Retrieves the metadata for a specific comment on a file, identified by both the file ID and the comment ID. This function can optionally include deleted comments in the result, returning the comment's details.
1132
-
1142
+ Retrieves a single comment's metadata using its unique comment and file IDs. This provides targeted access to one comment, unlike `list_file_comments` which lists all comments for a file. It can optionally include deleted comments in the returned data.
1143
+
1133
1144
  Args:
1134
1145
  fileId (string): fileId
1135
1146
  commentId (string): commentId
@@ -1141,14 +1152,14 @@ class GoogleDriveApp(APIApplication):
1141
1152
  prettyPrint (string): Returns response with indentations and line breaks. Example: '<boolean>'.
1142
1153
  quotaUser (string): An opaque string that represents a user for quota purposes. Must not exceed 40 characters. Example: '<string>'.
1143
1154
  userIp (string): Deprecated. Please use quotaUser instead. Example: '<string>'.
1144
-
1155
+
1145
1156
  Returns:
1146
1157
  dict[str, Any]: Successful response
1147
-
1158
+
1148
1159
  Raises:
1149
1160
  HTTPError: Raised when the API request fails (e.g., non-2XX status code).
1150
1161
  JSONDecodeError: Raised if the response body cannot be parsed as JSON.
1151
-
1162
+
1152
1163
  Tags:
1153
1164
  Comments
1154
1165
  """
@@ -1197,8 +1208,8 @@ class GoogleDriveApp(APIApplication):
1197
1208
  userIp: str | None = None,
1198
1209
  ) -> Any:
1199
1210
  """
1200
- Permanently deletes a specific comment from a Google Drive file, identified by both the file ID and the comment ID. This action is irreversible and removes the comment from the associated file's history, distinct from deleting a reply.
1201
-
1211
+ Permanently deletes a specific comment from a Google Drive file, identified by both the file and comment IDs. This irreversible action removes the top-level comment and its replies, distinguishing it from the `delete_reply` function which targets only individual replies within a comment thread.
1212
+
1202
1213
  Args:
1203
1214
  fileId (string): fileId
1204
1215
  commentId (string): commentId
@@ -1209,14 +1220,14 @@ class GoogleDriveApp(APIApplication):
1209
1220
  prettyPrint (string): Returns response with indentations and line breaks. Example: '<boolean>'.
1210
1221
  quotaUser (string): An opaque string that represents a user for quota purposes. Must not exceed 40 characters. Example: '<string>'.
1211
1222
  userIp (string): Deprecated. Please use quotaUser instead. Example: '<string>'.
1212
-
1223
+
1213
1224
  Returns:
1214
1225
  Any: Successful response
1215
-
1226
+
1216
1227
  Raises:
1217
1228
  HTTPError: Raised when the API request fails (e.g., non-2XX status code).
1218
1229
  JSONDecodeError: Raised if the response body cannot be parsed as JSON.
1219
-
1230
+
1220
1231
  Tags:
1221
1232
  Comments
1222
1233
  """
@@ -1277,7 +1288,7 @@ class GoogleDriveApp(APIApplication):
1277
1288
  ) -> dict[str, Any]:
1278
1289
  """
1279
1290
  Updates an existing comment on a specified file using its unique ID. This function allows for partial modification of the comment's properties, such as its content or resolved status, and returns the updated comment's metadata.
1280
-
1291
+
1281
1292
  Args:
1282
1293
  fileId (string): fileId
1283
1294
  commentId (string): commentId
@@ -1300,14 +1311,14 @@ class GoogleDriveApp(APIApplication):
1300
1311
  quotedFileContent (object): quotedFileContent Example: {'mimeType': '<string>', 'value': '<string>'}.
1301
1312
  replies (array): replies Example: "[{'action': '<string>', 'author': {'displayName': '<string>', 'emailAddress': '<string>', 'kind': 'drive#user', 'me': '<boolean>', 'permissionId': '<string>', 'photoLink': '<string>'}, 'content': '<string>', 'createdTime': '<dateTime>', 'deleted': '<boolean>', 'htmlContent': '<string>', 'id': '<string>', 'kind': 'drive#reply', 'modifiedTime': '<dateTime>'}, {'action': '<string>', 'author': {'displayName': '<string>', 'emailAddress': '<string>', 'kind': 'drive#user', 'me': '<boolean>', 'permissionId': '<string>', 'photoLink': '<string>'}, 'content': '<string>', 'createdTime': '<dateTime>', 'deleted': '<boolean>', 'htmlContent': '<string>', 'id': '<string>', 'kind': 'drive#reply', 'modifiedTime': '<dateTime>'}]".
1302
1313
  resolved (string): resolved Example: '<boolean>'.
1303
-
1314
+
1304
1315
  Returns:
1305
1316
  dict[str, Any]: Successful response
1306
-
1317
+
1307
1318
  Raises:
1308
1319
  HTTPError: Raised when the API request fails (e.g., non-2XX status code).
1309
1320
  JSONDecodeError: Raised if the response body cannot be parsed as JSON.
1310
-
1321
+
1311
1322
  Tags:
1312
1323
  Comments
1313
1324
  """
@@ -1375,8 +1386,8 @@ class GoogleDriveApp(APIApplication):
1375
1386
  userIp: str | None = None,
1376
1387
  ) -> dict[str, Any]:
1377
1388
  """
1378
- Retrieves a paginated list of shared drives accessible to the user. Supports optional query-based filtering and can be executed with domain administrator privileges to list all shared drives within the domain. Returns a dictionary containing the list of drives and pagination details.
1379
-
1389
+ Retrieves a paginated list of shared drives accessible to the user. Supports optional query-based filtering and can be executed with domain administrator privileges to list all shared drives within the domain, returning a dictionary containing the list of drives and pagination details.
1390
+
1380
1391
  Args:
1381
1392
  pageSize (string): Maximum number of shared drives to return per page. Example: '<integer>'.
1382
1393
  pageToken (string): Page token for shared drives. Example: '{{pageToken}}'.
@@ -1389,14 +1400,14 @@ class GoogleDriveApp(APIApplication):
1389
1400
  prettyPrint (string): Returns response with indentations and line breaks. Example: '<boolean>'.
1390
1401
  quotaUser (string): An opaque string that represents a user for quota purposes. Must not exceed 40 characters. Example: '<string>'.
1391
1402
  userIp (string): Deprecated. Please use quotaUser instead. Example: '<string>'.
1392
-
1403
+
1393
1404
  Returns:
1394
1405
  dict[str, Any]: Successful response
1395
-
1406
+
1396
1407
  Raises:
1397
1408
  HTTPError: Raised when the API request fails (e.g., non-2XX status code).
1398
1409
  JSONDecodeError: Raised if the response body cannot be parsed as JSON.
1399
-
1410
+
1400
1411
  Tags:
1401
1412
  Shared Drive
1402
1413
  """
@@ -1456,7 +1467,7 @@ class GoogleDriveApp(APIApplication):
1456
1467
  ) -> dict[str, Any]:
1457
1468
  """
1458
1469
  Creates a new shared drive using a unique `requestId` for idempotency. This function allows specifying initial properties such as its name, background image, and access restrictions, returning the created drive's metadata on success.
1459
-
1470
+
1460
1471
  Args:
1461
1472
  requestId (string): (Required) An ID, such as a random UUID, which uniquely identifies this user's request for idempotent creation of a shared drive. A repeated request by the same user and with the same request ID will avoid creating duplicates by attempting to create the same shared drive. If the shared drive already exists a 409 error will be returned. Example: 'requestId'.
1462
1473
  alt (string): Data format for the response. Example: 'json'.
@@ -1478,14 +1489,14 @@ class GoogleDriveApp(APIApplication):
1478
1489
  orgUnitId (string): orgUnitId Example: '<string>'.
1479
1490
  restrictions (object): restrictions Example: {'adminManagedRestrictions': '<boolean>', 'copyRequiresWriterPermission': '<boolean>', 'domainUsersOnly': '<boolean>', 'driveMembersOnly': '<boolean>', 'sharingFoldersRequiresOrganizerPermission': '<boolean>'}.
1480
1491
  themeId (string): themeId Example: '<string>'.
1481
-
1492
+
1482
1493
  Returns:
1483
1494
  dict[str, Any]: Successful response
1484
-
1495
+
1485
1496
  Raises:
1486
1497
  HTTPError: Raised when the API request fails (e.g., non-2XX status code).
1487
1498
  JSONDecodeError: Raised if the response body cannot be parsed as JSON.
1488
-
1499
+
1489
1500
  Tags:
1490
1501
  Shared Drive
1491
1502
  """
@@ -1553,8 +1564,8 @@ class GoogleDriveApp(APIApplication):
1553
1564
  userIp: str | None = None,
1554
1565
  ) -> dict[str, Any]:
1555
1566
  """
1556
- Retrieves metadata for a specific shared drive using its ID. Supports domain administrator access and allows specifying fields for partial responses. Unlike `get_drive_info` which gets user account data, this function targets the properties of a single shared drive.
1557
-
1567
+ Retrieves metadata for a specific shared drive using its ID. Unlike `get_drive_info`, which gets user account data, this function targets a single drive's properties. It supports domain administrator access and allows specifying fields to customize the response, returning the drive's detailed information.
1568
+
1558
1569
  Args:
1559
1570
  driveId (string): driveId
1560
1571
  useDomainAdminAccess (string): Issue the request as a domain administrator; if set to true, then the requester will be granted access if they are an administrator of the domain to which the shared drive belongs. Example: '<boolean>'.
@@ -1565,14 +1576,14 @@ class GoogleDriveApp(APIApplication):
1565
1576
  prettyPrint (string): Returns response with indentations and line breaks. Example: '<boolean>'.
1566
1577
  quotaUser (string): An opaque string that represents a user for quota purposes. Must not exceed 40 characters. Example: '<string>'.
1567
1578
  userIp (string): Deprecated. Please use quotaUser instead. Example: '<string>'.
1568
-
1579
+
1569
1580
  Returns:
1570
1581
  dict[str, Any]: Successful response
1571
-
1582
+
1572
1583
  Raises:
1573
1584
  HTTPError: Raised when the API request fails (e.g., non-2XX status code).
1574
1585
  JSONDecodeError: Raised if the response body cannot be parsed as JSON.
1575
-
1586
+
1576
1587
  Tags:
1577
1588
  Shared Drive
1578
1589
  """
@@ -1620,8 +1631,8 @@ class GoogleDriveApp(APIApplication):
1620
1631
  userIp: str | None = None,
1621
1632
  ) -> Any:
1622
1633
  """
1623
- Permanently deletes a shared drive using its unique ID. This action is irreversible. An option is available for domain administrators to simultaneously delete all items contained within the specified drive, making it distinct from file deletion functions like `delete_file`.
1624
-
1634
+ Permanently deletes a shared drive by its ID. This irreversible action removes the entire drive and, unlike `trash_file`, can optionally delete all its contents for domain administrators, providing a complete removal solution for a shared workspace.
1635
+
1625
1636
  Args:
1626
1637
  driveId (string): driveId
1627
1638
  allowItemDeletion (string): Whether any items inside the shared drive should also be deleted. This option is only supported when useDomainAdminAccess is also set to true. Example: '<boolean>'.
@@ -1633,14 +1644,14 @@ class GoogleDriveApp(APIApplication):
1633
1644
  prettyPrint (string): Returns response with indentations and line breaks. Example: '<boolean>'.
1634
1645
  quotaUser (string): An opaque string that represents a user for quota purposes. Must not exceed 40 characters. Example: '<string>'.
1635
1646
  userIp (string): Deprecated. Please use quotaUser instead. Example: '<string>'.
1636
-
1647
+
1637
1648
  Returns:
1638
1649
  Any: Successful response
1639
-
1650
+
1640
1651
  Raises:
1641
1652
  HTTPError: Raised when the API request fails (e.g., non-2XX status code).
1642
1653
  JSONDecodeError: Raised if the response body cannot be parsed as JSON.
1643
-
1654
+
1644
1655
  Tags:
1645
1656
  Shared Drive
1646
1657
  """
@@ -1700,8 +1711,8 @@ class GoogleDriveApp(APIApplication):
1700
1711
  themeId: str | None = None,
1701
1712
  ) -> dict[str, Any]:
1702
1713
  """
1703
- Updates metadata properties for a specific shared drive using its ID. Modifiable attributes include name, theme, background, and color. This function sends a PATCH request to the Google Drive API and returns a dictionary containing the updated shared drive's full metadata.
1704
-
1714
+ Updates a shared drive's metadata properties, such as its name, theme, or color, using its ID. This function sends a PATCH request to modify the drive and returns a dictionary containing the complete, updated metadata for the shared drive upon success.
1715
+
1705
1716
  Args:
1706
1717
  driveId (string): driveId
1707
1718
  useDomainAdminAccess (string): Issue the request as a domain administrator. If set to true, then the requester is granted access if they're an administrator of the domain to which the shared drive belongs. Example: '<boolean>'.
@@ -1724,14 +1735,14 @@ class GoogleDriveApp(APIApplication):
1724
1735
  orgUnitId (string): orgUnitId Example: '<string>'.
1725
1736
  restrictions (object): restrictions Example: {'adminManagedRestrictions': '<boolean>', 'copyRequiresWriterPermission': '<boolean>', 'domainUsersOnly': '<boolean>', 'driveMembersOnly': '<boolean>', 'sharingFoldersRequiresOrganizerPermission': '<boolean>'}.
1726
1737
  themeId (string): themeId Example: '<string>'.
1727
-
1738
+
1728
1739
  Returns:
1729
1740
  dict[str, Any]: Successful response
1730
-
1741
+
1731
1742
  Raises:
1732
1743
  HTTPError: Raised when the API request fails (e.g., non-2XX status code).
1733
1744
  JSONDecodeError: Raised if the response body cannot be parsed as JSON.
1734
-
1745
+
1735
1746
  Tags:
1736
1747
  Shared Drive
1737
1748
  """
@@ -1796,7 +1807,7 @@ class GoogleDriveApp(APIApplication):
1796
1807
  ) -> dict[str, Any]:
1797
1808
  """
1798
1809
  Hides a specified shared drive from the user's default view using its ID. This function sends a POST request to the API's hide endpoint, returning updated drive metadata. It is the direct counterpart to the `unhide_drive` function, which restores visibility.
1799
-
1810
+
1800
1811
  Args:
1801
1812
  driveId (string): driveId
1802
1813
  alt (string): Data format for the response. Example: 'json'.
@@ -1806,14 +1817,14 @@ class GoogleDriveApp(APIApplication):
1806
1817
  prettyPrint (string): Returns response with indentations and line breaks. Example: '<boolean>'.
1807
1818
  quotaUser (string): An opaque string that represents a user for quota purposes. Must not exceed 40 characters. Example: '<string>'.
1808
1819
  userIp (string): Deprecated. Please use quotaUser instead. Example: '<string>'.
1809
-
1820
+
1810
1821
  Returns:
1811
1822
  dict[str, Any]: Successful response
1812
-
1823
+
1813
1824
  Raises:
1814
1825
  HTTPError: Raised when the API request fails (e.g., non-2XX status code).
1815
1826
  JSONDecodeError: Raised if the response body cannot be parsed as JSON.
1816
-
1827
+
1817
1828
  Tags:
1818
1829
  Shared Drive
1819
1830
  """
@@ -1864,8 +1875,8 @@ class GoogleDriveApp(APIApplication):
1864
1875
  userIp: str | None = None,
1865
1876
  ) -> dict[str, Any]:
1866
1877
  """
1867
- Makes a hidden shared drive visible again in the user's default view by its ID. This function sends a POST request to the Google Drive API's `/unhide` endpoint, effectively reversing the action of the `hide_drive_by_id_post` function.
1868
-
1878
+ Makes a hidden shared drive visible again in the user's default view by its ID. This function sends a POST request to the Google Drive API's `/unhide` endpoint, effectively reversing the action of the `hide_drive` function, and returns the updated drive metadata.
1879
+
1869
1880
  Args:
1870
1881
  driveId (string): driveId
1871
1882
  alt (string): Data format for the response. Example: 'json'.
@@ -1875,14 +1886,14 @@ class GoogleDriveApp(APIApplication):
1875
1886
  prettyPrint (string): Returns response with indentations and line breaks. Example: '<boolean>'.
1876
1887
  quotaUser (string): An opaque string that represents a user for quota purposes. Must not exceed 40 characters. Example: '<string>'.
1877
1888
  userIp (string): Deprecated. Please use quotaUser instead. Example: '<string>'.
1878
-
1889
+
1879
1890
  Returns:
1880
1891
  dict[str, Any]: Successful response
1881
-
1892
+
1882
1893
  Raises:
1883
1894
  HTTPError: Raised when the API request fails (e.g., non-2XX status code).
1884
1895
  JSONDecodeError: Raised if the response body cannot be parsed as JSON.
1885
-
1896
+
1886
1897
  Tags:
1887
1898
  Shared Drive
1888
1899
  """
@@ -1946,8 +1957,8 @@ class GoogleDriveApp(APIApplication):
1946
1957
  userIp: str | None = None,
1947
1958
  ) -> dict[str, Any]:
1948
1959
  """
1949
- Exhaustively lists or searches for files, exposing numerous API parameters for advanced filtering, sorting, and pagination. This low-level function offers more granular control than the simplified `list_files` method by directly mapping to the Google Drive API's full capabilities for file retrieval.
1950
-
1960
+ Exhaustively lists or searches files using advanced parameters for filtering, sorting, and pagination. As a low-level alternative to the simplified `search_files` function, it provides granular control by exposing the full range of Google Drive API query options for complex retrieval.
1961
+
1951
1962
  Args:
1952
1963
  corpora (string): Groupings of files to which the query applies. Supported groupings are: 'user' (files created by, opened by, or shared directly with the user), 'drive' (files in the specified shared drive as indicated by the 'driveId'), 'domain' (files shared to the user's domain), and 'allDrives' (A combination of 'user' and 'drive' for all drives where the user is a member). When able, use 'user' or 'drive', instead of 'allDrives', for efficiency. Example: '<string>'.
1953
1964
  driveId (string): ID of the shared drive to search. Example: '{{driveId}}'.
@@ -1970,14 +1981,14 @@ class GoogleDriveApp(APIApplication):
1970
1981
  prettyPrint (string): Returns response with indentations and line breaks. Example: '<boolean>'.
1971
1982
  quotaUser (string): An opaque string that represents a user for quota purposes. Must not exceed 40 characters. Example: '<string>'.
1972
1983
  userIp (string): Deprecated. Please use quotaUser instead. Example: '<string>'.
1973
-
1984
+
1974
1985
  Returns:
1975
1986
  dict[str, Any]: Successful response
1976
-
1987
+
1977
1988
  Raises:
1978
1989
  HTTPError: Raised when the API request fails (e.g., non-2XX status code).
1979
1990
  JSONDecodeError: Raised if the response body cannot be parsed as JSON.
1980
-
1991
+
1981
1992
  Tags:
1982
1993
  Files
1983
1994
  """
@@ -2104,8 +2115,8 @@ class GoogleDriveApp(APIApplication):
2104
2115
  writersCanShare: str | None = None,
2105
2116
  ) -> dict[str, Any]:
2106
2117
  """
2107
- Creates a new file's metadata resource in Google Drive, allowing for detailed configuration of properties like name, MIME type, and parent folders. Unlike `upload_a_file` or `create_file_from_text`, this function only creates the metadata entry without uploading any actual file content.
2108
-
2118
+ Creates a new file's metadata resource in Google Drive, allowing detailed configuration of properties like name, MIME type, and parent folders. Unlike `upload_file_from_path` or `create_text_file`, this function only creates the metadata entry without uploading any file content.
2119
+
2109
2120
  Args:
2110
2121
  enforceSingleParent (string): Deprecated. Creating files in multiple folders is no longer supported. Example: '<boolean>'.
2111
2122
  ignoreDefaultVisibility (string): Whether to ignore the domain's default visibility settings for the created file. Domain administrators can choose to make all uploaded files visible to the domain by default; this parameter bypasses that behavior for the request. Permissions are still inherited from parent folders. Example: '<boolean>'.
@@ -2185,14 +2196,14 @@ class GoogleDriveApp(APIApplication):
2185
2196
  webContentLink (string): webContentLink Example: '<string>'.
2186
2197
  webViewLink (string): webViewLink Example: '<string>'.
2187
2198
  writersCanShare (string): writersCanShare Example: '<boolean>'.
2188
-
2199
+
2189
2200
  Returns:
2190
2201
  dict[str, Any]: Successful response
2191
-
2202
+
2192
2203
  Raises:
2193
2204
  HTTPError: Raised when the API request fails (e.g., non-2XX status code).
2194
2205
  JSONDecodeError: Raised if the response body cannot be parsed as JSON.
2195
-
2206
+
2196
2207
  Tags:
2197
2208
  Files
2198
2209
  """
@@ -2319,8 +2330,8 @@ class GoogleDriveApp(APIApplication):
2319
2330
  userIp: str | None = None,
2320
2331
  ) -> dict[str, Any]:
2321
2332
  """
2322
- Pre-generates a specified number of unique IDs for future files or shortcuts from the Google Drive API. Allows specifying the quantity, storage space ('drive' or 'appDataFolder'), and item type, optimizing creation workflows by providing identifiers in advance.
2323
-
2333
+ Generates a batch of unique IDs for future Google Drive files or shortcuts. This utility optimizes creation workflows by allowing identifiers to be fetched in advance, specifying quantity, storage space (e.g., 'drive'), and item type (e.g., 'files').
2334
+
2324
2335
  Args:
2325
2336
  count (string): The number of IDs to return. Example: '<integer>'.
2326
2337
  space (string): The space in which the IDs can be used to create new files. Supported values are 'drive' and 'appDataFolder'. (Default: 'drive') Example: '<string>'.
@@ -2332,14 +2343,14 @@ class GoogleDriveApp(APIApplication):
2332
2343
  prettyPrint (string): Returns response with indentations and line breaks. Example: '<boolean>'.
2333
2344
  quotaUser (string): An opaque string that represents a user for quota purposes. Must not exceed 40 characters. Example: '<string>'.
2334
2345
  userIp (string): Deprecated. Please use quotaUser instead. Example: '<string>'.
2335
-
2346
+
2336
2347
  Returns:
2337
2348
  dict[str, Any]: Successful response
2338
-
2349
+
2339
2350
  Raises:
2340
2351
  HTTPError: Raised when the API request fails (e.g., non-2XX status code).
2341
2352
  JSONDecodeError: Raised if the response body cannot be parsed as JSON.
2342
-
2353
+
2343
2354
  Tags:
2344
2355
  Files
2345
2356
  """
@@ -2386,8 +2397,8 @@ class GoogleDriveApp(APIApplication):
2386
2397
  userIp: str | None = None,
2387
2398
  ) -> Any:
2388
2399
  """
2389
- Permanently deletes all files and folders from the trash. It can target the user's main trash or a specific shared drive's trash if a `driveId` is provided. This action is irreversible, differing from `delete_file` which only moves items to the trash.
2390
-
2400
+ Permanently deletes all files and folders from the trash. This irreversible action can target the user's main trash or a specific shared drive's trash via its `driveId`, distinguishing it from `trash_file` which only moves a single item to the trash.
2401
+
2391
2402
  Args:
2392
2403
  driveId (string): If set, empties the trash of the provided shared drive. Example: '{{driveId}}'.
2393
2404
  enforceSingleParent (string): Deprecated. If an item is not in a shared drive and its last parent is deleted but the item itself is not, the item will be placed under its owner's root. Example: '<boolean>'.
@@ -2398,14 +2409,14 @@ class GoogleDriveApp(APIApplication):
2398
2409
  prettyPrint (string): Returns response with indentations and line breaks. Example: '<boolean>'.
2399
2410
  quotaUser (string): An opaque string that represents a user for quota purposes. Must not exceed 40 characters. Example: '<string>'.
2400
2411
  userIp (string): Deprecated. Please use quotaUser instead. Example: '<string>'.
2401
-
2412
+
2402
2413
  Returns:
2403
2414
  Any: Successful response
2404
-
2415
+
2405
2416
  Raises:
2406
2417
  HTTPError: Raised when the API request fails (e.g., non-2XX status code).
2407
2418
  JSONDecodeError: Raised if the response body cannot be parsed as JSON.
2408
-
2419
+
2409
2420
  Tags:
2410
2421
  Files
2411
2422
  """
@@ -2453,8 +2464,8 @@ class GoogleDriveApp(APIApplication):
2453
2464
  userIp: str | None = None,
2454
2465
  ) -> Any:
2455
2466
  """
2456
- Permanently deletes a specific file by its ID, bypassing the trash. Unlike the simpler `delete_file` wrapper, this function exposes numerous optional API parameters for advanced control over the deletion process, such as handling files in shared drives.
2457
-
2467
+ Permanently deletes a file by its ID, bypassing the trash for irreversible removal. Unlike the simpler `trash_file` function, this method offers advanced control through numerous optional API parameters, such as handling files located in shared drives.
2468
+
2458
2469
  Args:
2459
2470
  fileId (string): fileId
2460
2471
  enforceSingleParent (string): Deprecated. If an item is not in a shared drive and its last parent is deleted but the item itself is not, the item will be placed under its owner's root. Example: '<boolean>'.
@@ -2467,14 +2478,14 @@ class GoogleDriveApp(APIApplication):
2467
2478
  prettyPrint (string): Returns response with indentations and line breaks. Example: '<boolean>'.
2468
2479
  quotaUser (string): An opaque string that represents a user for quota purposes. Must not exceed 40 characters. Example: '<string>'.
2469
2480
  userIp (string): Deprecated. Please use quotaUser instead. Example: '<string>'.
2470
-
2481
+
2471
2482
  Returns:
2472
2483
  Any: Successful response
2473
-
2484
+
2474
2485
  Raises:
2475
2486
  HTTPError: Raised when the API request fails (e.g., non-2XX status code).
2476
2487
  JSONDecodeError: Raised if the response body cannot be parsed as JSON.
2477
-
2488
+
2478
2489
  Tags:
2479
2490
  Files
2480
2491
  """
@@ -2594,8 +2605,8 @@ class GoogleDriveApp(APIApplication):
2594
2605
  writersCanShare: str | None = None,
2595
2606
  ) -> dict[str, Any]:
2596
2607
  """
2597
- Modifies a file's metadata properties, such as name, description, or trashed status, using its unique ID. It supports a wide range of updatable fields and can also move files between folders by changing parent attributes, acting as a comprehensive alternative to the `move_files` function.
2598
-
2608
+ Modifies a file's metadata properties, such as name, description, or trashed status, using its unique ID. It also moves files by changing parent attributes, acting as a comprehensive alternative to the more specialized `move_file` function.
2609
+
2599
2610
  Args:
2600
2611
  fileId (string): fileId
2601
2612
  addParents (string): A comma-separated list of parent IDs to add. Example: '<string>'.
@@ -2677,14 +2688,14 @@ class GoogleDriveApp(APIApplication):
2677
2688
  webContentLink (string): webContentLink Example: '<string>'.
2678
2689
  webViewLink (string): webViewLink Example: '<string>'.
2679
2690
  writersCanShare (string): writersCanShare Example: '<boolean>'.
2680
-
2691
+
2681
2692
  Returns:
2682
2693
  dict[str, Any]: Successful response
2683
-
2694
+
2684
2695
  Raises:
2685
2696
  HTTPError: Raised when the API request fails (e.g., non-2XX status code).
2686
2697
  JSONDecodeError: Raised if the response body cannot be parsed as JSON.
2687
-
2698
+
2688
2699
  Tags:
2689
2700
  Files
2690
2701
  """
@@ -2878,7 +2889,7 @@ class GoogleDriveApp(APIApplication):
2878
2889
  ) -> dict[str, Any]:
2879
2890
  """
2880
2891
  Creates a copy of a file using its ID. This function can simultaneously apply metadata updates, such as a new name or parent folder, to the duplicate upon creation and returns the new file's metadata.
2881
-
2892
+
2882
2893
  Args:
2883
2894
  fileId (string): fileId
2884
2895
  enforceSingleParent (string): Deprecated. Copying files into multiple folders is no longer supported. Use shortcuts instead. Example: '<boolean>'.
@@ -2958,14 +2969,14 @@ class GoogleDriveApp(APIApplication):
2958
2969
  webContentLink (string): webContentLink Example: '<string>'.
2959
2970
  webViewLink (string): webViewLink Example: '<string>'.
2960
2971
  writersCanShare (string): writersCanShare Example: '<boolean>'.
2961
-
2972
+
2962
2973
  Returns:
2963
2974
  dict[str, Any]: Successful response
2964
-
2975
+
2965
2976
  Raises:
2966
2977
  HTTPError: Raised when the API request fails (e.g., non-2XX status code).
2967
2978
  JSONDecodeError: Raised if the response body cannot be parsed as JSON.
2968
-
2979
+
2969
2980
  Tags:
2970
2981
  Files
2971
2982
  """
@@ -3092,8 +3103,8 @@ class GoogleDriveApp(APIApplication):
3092
3103
  userIp: str | None = None,
3093
3104
  ) -> Any:
3094
3105
  """
3095
- Exports a Google Workspace document (e.g., Google Doc) by its ID, converting it into a specified format like PDF or XLSX. The target format is determined by the `mimeType` argument. The function returns the raw content of the exported file, not JSON metadata.
3096
-
3106
+ Exports a Google Workspace document (e.g., Google Doc) by its ID, converting it to a specified format like PDF using the `mimeType` argument. This function returns the raw, converted file content for download, differentiating it from methods that retrieve metadata.
3107
+
3097
3108
  Args:
3098
3109
  fileId (string): fileId
3099
3110
  mimeType (string): (Required) The MIME type of the format requested for this export. Example: 'mimeType'.
@@ -3104,14 +3115,14 @@ class GoogleDriveApp(APIApplication):
3104
3115
  prettyPrint (string): Returns response with indentations and line breaks. Example: '<boolean>'.
3105
3116
  quotaUser (string): An opaque string that represents a user for quota purposes. Must not exceed 40 characters. Example: '<string>'.
3106
3117
  userIp (string): Deprecated. Please use quotaUser instead. Example: '<string>'.
3107
-
3118
+
3108
3119
  Returns:
3109
3120
  Any: Successful response
3110
-
3121
+
3111
3122
  Raises:
3112
3123
  HTTPError: Raised when the API request fails (e.g., non-2XX status code).
3113
3124
  JSONDecodeError: Raised if the response body cannot be parsed as JSON.
3114
-
3125
+
3115
3126
  Tags:
3116
3127
  Files
3117
3128
  """
@@ -3159,8 +3170,8 @@ class GoogleDriveApp(APIApplication):
3159
3170
  userIp: str | None = None,
3160
3171
  ) -> dict[str, Any]:
3161
3172
  """
3162
- Retrieves a paginated list of all labels applied to a specific file in Google Drive, identified by its unique ID. It allows controlling the number of results per page and navigating through pages of labels.
3163
-
3173
+ Retrieves a paginated list of all labels applied to a specific file in Google Drive, identified by its unique ID. It allows controlling the number of results per page and navigating through pages of labels, differing from `modify_file_labels` which alters them.
3174
+
3164
3175
  Args:
3165
3176
  fileId (string): fileId
3166
3177
  maxResults (string): The maximum number of labels to return per page. When not set, this defaults to 100. Example: '<integer>'.
@@ -3172,14 +3183,14 @@ class GoogleDriveApp(APIApplication):
3172
3183
  prettyPrint (string): Returns response with indentations and line breaks. Example: '<boolean>'.
3173
3184
  quotaUser (string): An opaque string that represents a user for quota purposes. Must not exceed 40 characters. Example: '<string>'.
3174
3185
  userIp (string): Deprecated. Please use quotaUser instead. Example: '<string>'.
3175
-
3186
+
3176
3187
  Returns:
3177
3188
  dict[str, Any]: Successful response
3178
-
3189
+
3179
3190
  Raises:
3180
3191
  HTTPError: Raised when the API request fails (e.g., non-2XX status code).
3181
3192
  JSONDecodeError: Raised if the response body cannot be parsed as JSON.
3182
-
3193
+
3183
3194
  Tags:
3184
3195
  Files
3185
3196
  """
@@ -3229,7 +3240,7 @@ class GoogleDriveApp(APIApplication):
3229
3240
  ) -> dict[str, Any]:
3230
3241
  """
3231
3242
  Atomically modifies the set of labels on a specified file in Google Drive. It can add, update, or remove labels based on the provided list of modifications, returning the updated label metadata for the file.
3232
-
3243
+
3233
3244
  Args:
3234
3245
  fileId (string): fileId
3235
3246
  alt (string): Data format for the response. Example: 'json'.
@@ -3241,14 +3252,14 @@ class GoogleDriveApp(APIApplication):
3241
3252
  userIp (string): Deprecated. Please use quotaUser instead. Example: '<string>'.
3242
3253
  kind (string): kind Example: 'drive#modifyLabelsRequest'.
3243
3254
  labelModifications (array): labelModifications Example: "[{'fieldModifications': [{'fieldId': '<string>', 'kind': 'drive#labelFieldModification', 'setDateValues': ['<date>', '<date>'], 'setIntegerValues': ['<int64>', '<int64>'], 'setSelectionValues': ['<string>', '<string>'], 'setTextValues': ['<string>', '<string>'], 'setUserValues': ['<string>', '<string>'], 'unsetValues': '<boolean>'}, {'fieldId': '<string>', 'kind': 'drive#labelFieldModification', 'setDateValues': ['<date>', '<date>'], 'setIntegerValues': ['<int64>', '<int64>'], 'setSelectionValues': ['<string>', '<string>'], 'setTextValues': ['<string>', '<string>'], 'setUserValues': ['<string>', '<string>'], 'unsetValues': '<boolean>'}], 'kind': 'drive#labelModification', 'labelId': '<string>', 'removeLabel': '<boolean>'}, {'fieldModifications': [{'fieldId': '<string>', 'kind': 'drive#labelFieldModification', 'setDateValues': ['<date>', '<date>'], 'setIntegerValues': ['<int64>', '<int64>'], 'setSelectionValues': ['<string>', '<string>'], 'setTextValues': ['<string>', '<string>'], 'setUserValues': ['<string>', '<string>'], 'unsetValues': '<boolean>'}, {'fieldId': '<string>', 'kind': 'drive#labelFieldModification', 'setDateValues': ['<date>', '<date>'], 'setIntegerValues': ['<int64>', '<int64>'], 'setSelectionValues': ['<string>', '<string>'], 'setTextValues': ['<string>', '<string>'], 'setUserValues': ['<string>', '<string>'], 'unsetValues': '<boolean>'}], 'kind': 'drive#labelModification', 'labelId': '<string>', 'removeLabel': '<boolean>'}]".
3244
-
3255
+
3245
3256
  Returns:
3246
3257
  dict[str, Any]: Successful response
3247
-
3258
+
3248
3259
  Raises:
3249
3260
  HTTPError: Raised when the API request fails (e.g., non-2XX status code).
3250
3261
  JSONDecodeError: Raised if the response body cannot be parsed as JSON.
3251
-
3262
+
3252
3263
  Tags:
3253
3264
  Files
3254
3265
  """
@@ -3321,8 +3332,8 @@ class GoogleDriveApp(APIApplication):
3321
3332
  type: str | None = None,
3322
3333
  ) -> dict[str, Any]:
3323
3334
  """
3324
- Establishes a push notification channel to monitor a specific file in Google Drive. This function configures a webhook by sending a POST request to the file's 'watch' endpoint, enabling real-time notifications for any changes, such as content or metadata updates, to the specified file.
3325
-
3335
+ Establishes a push notification channel for a specific file, enabling real-time updates via webhook. Unlike `watch_drive_changes`, which monitors an entire drive, this function provides targeted notifications for content or metadata updates to a single file identified by its ID.
3336
+
3326
3337
  Args:
3327
3338
  fileId (string): fileId
3328
3339
  acknowledgeAbuse (string): Whether the user is acknowledging the risk of downloading known malware or other abusive files. This is only applicable when alt=media. Example: '<boolean>'.
@@ -3347,14 +3358,14 @@ class GoogleDriveApp(APIApplication):
3347
3358
  resourceUri (string): resourceUri Example: '<string>'.
3348
3359
  token (string): token Example: '<string>'.
3349
3360
  type (string): type Example: '<string>'.
3350
-
3361
+
3351
3362
  Returns:
3352
3363
  dict[str, Any]: Successful response
3353
-
3364
+
3354
3365
  Raises:
3355
3366
  HTTPError: Raised when the API request fails (e.g., non-2XX status code).
3356
3367
  JSONDecodeError: Raised if the response body cannot be parsed as JSON.
3357
-
3368
+
3358
3369
  Tags:
3359
3370
  Files
3360
3371
  """
@@ -3431,8 +3442,8 @@ class GoogleDriveApp(APIApplication):
3431
3442
  userIp: str | None = None,
3432
3443
  ) -> dict[str, Any]:
3433
3444
  """
3434
- Retrieves the list of permissions for a specified file or shared drive in Google Drive. This function supports pagination and various query parameters to customize the results for different access levels, such as domain administration.
3435
-
3445
+ Retrieves the list of permissions for a specified file or shared drive. This function supports pagination and various query parameters to customize results for different access levels, such as domain administration, unlike `get_permission_by_id` which fetches a single permission.
3446
+
3436
3447
  Args:
3437
3448
  fileId (string): fileId
3438
3449
  includePermissionsForView (string): Specifies which additional view's permissions to include in the response. Only 'published' is supported. Example: '<string>'.
@@ -3448,14 +3459,14 @@ class GoogleDriveApp(APIApplication):
3448
3459
  prettyPrint (string): Returns response with indentations and line breaks. Example: '<boolean>'.
3449
3460
  quotaUser (string): An opaque string that represents a user for quota purposes. Must not exceed 40 characters. Example: '<string>'.
3450
3461
  userIp (string): Deprecated. Please use quotaUser instead. Example: '<string>'.
3451
-
3462
+
3452
3463
  Returns:
3453
3464
  dict[str, Any]: Successful response
3454
-
3465
+
3455
3466
  Raises:
3456
3467
  HTTPError: Raised when the API request fails (e.g., non-2XX status code).
3457
3468
  JSONDecodeError: Raised if the response body cannot be parsed as JSON.
3458
-
3469
+
3459
3470
  Tags:
3460
3471
  Permissions
3461
3472
  """
@@ -3529,8 +3540,8 @@ class GoogleDriveApp(APIApplication):
3529
3540
  view: str | None = None,
3530
3541
  ) -> dict[str, Any]:
3531
3542
  """
3532
- Creates a new permission for a file or shared drive, assigning roles like 'reader' to a user, group, or domain. This comprehensive method supports options like notification emails and ownership transfer, distinguishing it from the simplified `grant_google_drive_access` function.
3533
-
3543
+ Creates a permission for a file or shared drive, assigning roles like 'reader' to a user, group, or domain. This comprehensive method supports advanced options like notification emails and ownership transfer, distinguishing it from the simplified `create_permission` function which offers fewer parameters.
3544
+
3534
3545
  Args:
3535
3546
  fileId (string): fileId
3536
3547
  emailMessage (string): A plain text custom message to include in the notification email. Example: '<string>'.
@@ -3563,14 +3574,14 @@ class GoogleDriveApp(APIApplication):
3563
3574
  teamDrivePermissionDetails (array): teamDrivePermissionDetails Example: "[{'inherited': '<boolean>', 'inheritedFrom': '<string>', 'role': '<string>', 'teamDrivePermissionType': '<string>'}, {'inherited': '<boolean>', 'inheritedFrom': '<string>', 'role': '<string>', 'teamDrivePermissionType': '<string>'}]".
3564
3575
  type (string): type Example: '<string>'.
3565
3576
  view (string): view Example: '<string>'.
3566
-
3577
+
3567
3578
  Returns:
3568
3579
  dict[str, Any]: Successful response
3569
-
3580
+
3570
3581
  Raises:
3571
3582
  HTTPError: Raised when the API request fails (e.g., non-2XX status code).
3572
3583
  JSONDecodeError: Raised if the response body cannot be parsed as JSON.
3573
-
3584
+
3574
3585
  Tags:
3575
3586
  Permissions
3576
3587
  """
@@ -3653,8 +3664,8 @@ class GoogleDriveApp(APIApplication):
3653
3664
  userIp: str | None = None,
3654
3665
  ) -> dict[str, Any]:
3655
3666
  """
3656
- Retrieves the metadata for a specific permission on a file or shared drive, identified by its unique permission ID. This provides targeted access information, unlike `list_file_permissions`, which fetches all permissions for a file or drive.
3657
-
3667
+ Retrieves metadata for a specific permission on a file or shared drive, identified by its unique ID. This provides targeted access information, unlike `list_file_permissions` which fetches all permissions for a file.
3668
+
3658
3669
  Args:
3659
3670
  fileId (string): fileId
3660
3671
  permissionId (string): permissionId
@@ -3668,14 +3679,14 @@ class GoogleDriveApp(APIApplication):
3668
3679
  prettyPrint (string): Returns response with indentations and line breaks. Example: '<boolean>'.
3669
3680
  quotaUser (string): An opaque string that represents a user for quota purposes. Must not exceed 40 characters. Example: '<string>'.
3670
3681
  userIp (string): Deprecated. Please use quotaUser instead. Example: '<string>'.
3671
-
3682
+
3672
3683
  Returns:
3673
3684
  dict[str, Any]: Successful response
3674
-
3685
+
3675
3686
  Raises:
3676
3687
  HTTPError: Raised when the API request fails (e.g., non-2XX status code).
3677
3688
  JSONDecodeError: Raised if the response body cannot be parsed as JSON.
3678
-
3689
+
3679
3690
  Tags:
3680
3691
  Permissions
3681
3692
  """
@@ -3730,7 +3741,7 @@ class GoogleDriveApp(APIApplication):
3730
3741
  ) -> Any:
3731
3742
  """
3732
3743
  Deletes a specific permission from a Google Drive file or shared drive, identified by their respective IDs. This action permanently revokes the access associated with that permission, with optional parameters for shared drives and domain administrator access.
3733
-
3744
+
3734
3745
  Args:
3735
3746
  fileId (string): fileId
3736
3747
  permissionId (string): permissionId
@@ -3744,14 +3755,14 @@ class GoogleDriveApp(APIApplication):
3744
3755
  prettyPrint (string): Returns response with indentations and line breaks. Example: '<boolean>'.
3745
3756
  quotaUser (string): An opaque string that represents a user for quota purposes. Must not exceed 40 characters. Example: '<string>'.
3746
3757
  userIp (string): Deprecated. Please use quotaUser instead. Example: '<string>'.
3747
-
3758
+
3748
3759
  Returns:
3749
3760
  Any: Successful response
3750
-
3761
+
3751
3762
  Raises:
3752
3763
  HTTPError: Raised when the API request fails (e.g., non-2XX status code).
3753
3764
  JSONDecodeError: Raised if the response body cannot be parsed as JSON.
3754
-
3765
+
3755
3766
  Tags:
3756
3767
  Permissions
3757
3768
  """
@@ -3823,7 +3834,7 @@ class GoogleDriveApp(APIApplication):
3823
3834
  ) -> dict[str, Any]:
3824
3835
  """
3825
3836
  Updates an existing permission for a file or shared drive using its permission ID. This function can modify a user's role (e.g., from reader to writer), transfer ownership, or change expiration settings, returning the updated permission object upon success.
3826
-
3837
+
3827
3838
  Args:
3828
3839
  fileId (string): fileId
3829
3840
  permissionId (string): permissionId
@@ -3854,14 +3865,14 @@ class GoogleDriveApp(APIApplication):
3854
3865
  teamDrivePermissionDetails (array): teamDrivePermissionDetails Example: "[{'inherited': '<boolean>', 'inheritedFrom': '<string>', 'role': '<string>', 'teamDrivePermissionType': '<string>'}, {'inherited': '<boolean>', 'inheritedFrom': '<string>', 'role': '<string>', 'teamDrivePermissionType': '<string>'}]".
3855
3866
  type (string): type Example: '<string>'.
3856
3867
  view (string): view Example: '<string>'.
3857
-
3868
+
3858
3869
  Returns:
3859
3870
  dict[str, Any]: Successful response
3860
-
3871
+
3861
3872
  Raises:
3862
3873
  HTTPError: Raised when the API request fails (e.g., non-2XX status code).
3863
3874
  JSONDecodeError: Raised if the response body cannot be parsed as JSON.
3864
-
3875
+
3865
3876
  Tags:
3866
3877
  Permissions
3867
3878
  """
@@ -3938,8 +3949,8 @@ class GoogleDriveApp(APIApplication):
3938
3949
  userIp: str | None = None,
3939
3950
  ) -> dict[str, Any]:
3940
3951
  """
3941
- Retrieves a paginated list of replies for a specific comment on a Google Drive file, requiring both file and comment IDs. It can optionally include deleted replies. This function targets replies to a single comment, distinguishing it from functions listing all top-level comments on a file.
3942
-
3952
+ Fetches a paginated list of replies for a specific comment, requiring both file and comment IDs. It can optionally include deleted replies. Unlike `list_file_comments`, which retrieves all top-level comments, this function targets replies within a single comment's thread.
3953
+
3943
3954
  Args:
3944
3955
  fileId (string): fileId
3945
3956
  commentId (string): commentId
@@ -3953,14 +3964,14 @@ class GoogleDriveApp(APIApplication):
3953
3964
  prettyPrint (string): Returns response with indentations and line breaks. Example: '<boolean>'.
3954
3965
  quotaUser (string): An opaque string that represents a user for quota purposes. Must not exceed 40 characters. Example: '<string>'.
3955
3966
  userIp (string): Deprecated. Please use quotaUser instead. Example: '<string>'.
3956
-
3967
+
3957
3968
  Returns:
3958
3969
  dict[str, Any]: Successful response
3959
-
3970
+
3960
3971
  Raises:
3961
3972
  HTTPError: Raised when the API request fails (e.g., non-2XX status code).
3962
3973
  JSONDecodeError: Raised if the response body cannot be parsed as JSON.
3963
-
3974
+
3964
3975
  Tags:
3965
3976
  Replies
3966
3977
  """
@@ -4021,7 +4032,7 @@ class GoogleDriveApp(APIApplication):
4021
4032
  ) -> dict[str, Any]:
4022
4033
  """
4023
4034
  Creates a reply to a specific comment on a Google Drive file. It requires the file ID and the parent comment ID, posting the new reply's content to the correct comment thread.
4024
-
4035
+
4025
4036
  Args:
4026
4037
  fileId (string): fileId
4027
4038
  commentId (string): commentId
@@ -4041,14 +4052,14 @@ class GoogleDriveApp(APIApplication):
4041
4052
  id (string): id Example: '<string>'.
4042
4053
  kind (string): kind Example: 'drive#reply'.
4043
4054
  modifiedTime (string): modifiedTime Example: '<dateTime>'.
4044
-
4055
+
4045
4056
  Returns:
4046
4057
  dict[str, Any]: Successful response
4047
-
4058
+
4048
4059
  Raises:
4049
4060
  HTTPError: Raised when the API request fails (e.g., non-2XX status code).
4050
4061
  JSONDecodeError: Raised if the response body cannot be parsed as JSON.
4051
-
4062
+
4052
4063
  Tags:
4053
4064
  Replies
4054
4065
  """
@@ -4118,8 +4129,8 @@ class GoogleDriveApp(APIApplication):
4118
4129
  userIp: str | None = None,
4119
4130
  ) -> dict[str, Any]:
4120
4131
  """
4121
- Retrieves a specific reply to a comment on a file, identified by the file, comment, and reply IDs. Unlike `list_acomment_sreplies`, this fetches a single reply's data. It can optionally include deleted replies in the response, returning a dictionary with the reply's metadata.
4122
-
4132
+ Retrieves a specific reply's metadata from a comment thread using file, comment, and reply IDs. Unlike `list_comment_replies`, which fetches all replies for a comment, this function targets a single one and can optionally include deleted replies in the result.
4133
+
4123
4134
  Args:
4124
4135
  fileId (string): fileId
4125
4136
  commentId (string): commentId
@@ -4132,14 +4143,14 @@ class GoogleDriveApp(APIApplication):
4132
4143
  prettyPrint (string): Returns response with indentations and line breaks. Example: '<boolean>'.
4133
4144
  quotaUser (string): An opaque string that represents a user for quota purposes. Must not exceed 40 characters. Example: '<string>'.
4134
4145
  userIp (string): Deprecated. Please use quotaUser instead. Example: '<string>'.
4135
-
4146
+
4136
4147
  Returns:
4137
4148
  dict[str, Any]: Successful response
4138
-
4149
+
4139
4150
  Raises:
4140
4151
  HTTPError: Raised when the API request fails (e.g., non-2XX status code).
4141
4152
  JSONDecodeError: Raised if the response body cannot be parsed as JSON.
4142
-
4153
+
4143
4154
  Tags:
4144
4155
  Replies
4145
4156
  """
@@ -4191,8 +4202,8 @@ class GoogleDriveApp(APIApplication):
4191
4202
  userIp: str | None = None,
4192
4203
  ) -> Any:
4193
4204
  """
4194
- Permanently deletes a specific reply associated with a comment on a Google Drive file. This operation requires the file ID, parent comment ID, and the specific reply ID to make a targeted DELETE request to the Google Drive API.
4195
-
4205
+ Permanently deletes a specific reply from a comment on a Google Drive file. This targeted operation requires file, comment, and reply IDs to remove a single nested reply, distinguishing it from `delete_comment` which removes an entire top-level comment.
4206
+
4196
4207
  Args:
4197
4208
  fileId (string): fileId
4198
4209
  commentId (string): commentId
@@ -4204,14 +4215,14 @@ class GoogleDriveApp(APIApplication):
4204
4215
  prettyPrint (string): Returns response with indentations and line breaks. Example: '<boolean>'.
4205
4216
  quotaUser (string): An opaque string that represents a user for quota purposes. Must not exceed 40 characters. Example: '<string>'.
4206
4217
  userIp (string): Deprecated. Please use quotaUser instead. Example: '<string>'.
4207
-
4218
+
4208
4219
  Returns:
4209
4220
  Any: Successful response
4210
-
4221
+
4211
4222
  Raises:
4212
4223
  HTTPError: Raised when the API request fails (e.g., non-2XX status code).
4213
4224
  JSONDecodeError: Raised if the response body cannot be parsed as JSON.
4214
-
4225
+
4215
4226
  Tags:
4216
4227
  Replies
4217
4228
  """
@@ -4272,7 +4283,7 @@ class GoogleDriveApp(APIApplication):
4272
4283
  ) -> dict[str, Any]:
4273
4284
  """
4274
4285
  Updates a specific reply to a comment on a file in Google Drive. It uses file, comment, and reply IDs to locate the reply, allowing modification of its properties like content. The function then returns the updated reply's metadata.
4275
-
4286
+
4276
4287
  Args:
4277
4288
  fileId (string): fileId
4278
4289
  commentId (string): commentId
@@ -4293,14 +4304,14 @@ class GoogleDriveApp(APIApplication):
4293
4304
  id (string): id Example: '<string>'.
4294
4305
  kind (string): kind Example: 'drive#reply'.
4295
4306
  modifiedTime (string): modifiedTime Example: '<dateTime>'.
4296
-
4307
+
4297
4308
  Returns:
4298
4309
  dict[str, Any]: Successful response
4299
-
4310
+
4300
4311
  Raises:
4301
4312
  HTTPError: Raised when the API request fails (e.g., non-2XX status code).
4302
4313
  JSONDecodeError: Raised if the response body cannot be parsed as JSON.
4303
-
4314
+
4304
4315
  Tags:
4305
4316
  Replies
4306
4317
  """
@@ -4367,7 +4378,7 @@ class GoogleDriveApp(APIApplication):
4367
4378
  ) -> dict[str, Any]:
4368
4379
  """
4369
4380
  Retrieves a paginated list of all historical versions (revisions) for a specific file in Google Drive. Supports page size and token parameters to navigate a file's change history, differentiating it from functions that get, update, or delete a single revision.
4370
-
4381
+
4371
4382
  Args:
4372
4383
  fileId (string): fileId
4373
4384
  pageSize (string): The maximum number of revisions to return per page. Example: '<integer>'.
@@ -4379,14 +4390,14 @@ class GoogleDriveApp(APIApplication):
4379
4390
  prettyPrint (string): Returns response with indentations and line breaks. Example: '<boolean>'.
4380
4391
  quotaUser (string): An opaque string that represents a user for quota purposes. Must not exceed 40 characters. Example: '<string>'.
4381
4392
  userIp (string): Deprecated. Please use quotaUser instead. Example: '<string>'.
4382
-
4393
+
4383
4394
  Returns:
4384
4395
  dict[str, Any]: Successful response
4385
-
4396
+
4386
4397
  Raises:
4387
4398
  HTTPError: Raised when the API request fails (e.g., non-2XX status code).
4388
4399
  JSONDecodeError: Raised if the response body cannot be parsed as JSON.
4389
-
4400
+
4390
4401
  Tags:
4391
4402
  Revisions
4392
4403
  """
@@ -4435,8 +4446,8 @@ class GoogleDriveApp(APIApplication):
4435
4446
  userIp: str | None = None,
4436
4447
  ) -> dict[str, Any]:
4437
4448
  """
4438
- Retrieves the metadata for a single, specific revision of a file using its file ID and revision ID. This function is distinct from `list_afile_srevisions`, which returns a list of all revisions for a file, by targeting one historical version.
4439
-
4449
+ Fetches metadata for a single, specific file revision using its file and revision IDs. Unlike `list_file_revisions` which lists a file's complete version history, this function targets one historical version to retrieve its unique metadata.
4450
+
4440
4451
  Args:
4441
4452
  fileId (string): fileId
4442
4453
  revisionId (string): revisionId
@@ -4448,14 +4459,14 @@ class GoogleDriveApp(APIApplication):
4448
4459
  prettyPrint (string): Returns response with indentations and line breaks. Example: '<boolean>'.
4449
4460
  quotaUser (string): An opaque string that represents a user for quota purposes. Must not exceed 40 characters. Example: '<string>'.
4450
4461
  userIp (string): Deprecated. Please use quotaUser instead. Example: '<string>'.
4451
-
4462
+
4452
4463
  Returns:
4453
4464
  dict[str, Any]: Successful response
4454
-
4465
+
4455
4466
  Raises:
4456
4467
  HTTPError: Raised when the API request fails (e.g., non-2XX status code).
4457
4468
  JSONDecodeError: Raised if the response body cannot be parsed as JSON.
4458
-
4469
+
4459
4470
  Tags:
4460
4471
  Revisions
4461
4472
  """
@@ -4504,8 +4515,8 @@ class GoogleDriveApp(APIApplication):
4504
4515
  userIp: str | None = None,
4505
4516
  ) -> Any:
4506
4517
  """
4507
- Permanently deletes a specific revision of a file, identified by its file and revision IDs. This action is irreversible and removes a single historical version, which is distinct from other functions in this class that delete the entire file or move it to the trash.
4508
-
4518
+ Permanently deletes a specific revision of a file, identified by its file and revision IDs. This irreversible action removes a single historical version, distinguishing it from functions like `permanently_delete_file`, which deletes the entire file, or `trash_file`, which moves it to the trash.
4519
+
4509
4520
  Args:
4510
4521
  fileId (string): fileId
4511
4522
  revisionId (string): revisionId
@@ -4516,14 +4527,14 @@ class GoogleDriveApp(APIApplication):
4516
4527
  prettyPrint (string): Returns response with indentations and line breaks. Example: '<boolean>'.
4517
4528
  quotaUser (string): An opaque string that represents a user for quota purposes. Must not exceed 40 characters. Example: '<string>'.
4518
4529
  userIp (string): Deprecated. Please use quotaUser instead. Example: '<string>'.
4519
-
4530
+
4520
4531
  Returns:
4521
4532
  Any: Successful response
4522
-
4533
+
4523
4534
  Raises:
4524
4535
  HTTPError: Raised when the API request fails (e.g., non-2XX status code).
4525
4536
  JSONDecodeError: Raised if the response body cannot be parsed as JSON.
4526
-
4537
+
4527
4538
  Tags:
4528
4539
  Revisions
4529
4540
  """
@@ -4586,7 +4597,7 @@ class GoogleDriveApp(APIApplication):
4586
4597
  ) -> dict[str, Any]:
4587
4598
  """
4588
4599
  Updates the metadata for a specific file revision using its file and revision IDs. It modifies properties such as pinning the revision (`keepForever`) or its publication status, and returns the updated revision metadata upon success.
4589
-
4600
+
4590
4601
  Args:
4591
4602
  fileId (string): fileId
4592
4603
  revisionId (string): revisionId
@@ -4611,14 +4622,14 @@ class GoogleDriveApp(APIApplication):
4611
4622
  publishedLink (string): publishedLink Example: '<string>'.
4612
4623
  publishedOutsideDomain (string): publishedOutsideDomain Example: '<boolean>'.
4613
4624
  size (string): size Example: '<int64>'.
4614
-
4625
+
4615
4626
  Returns:
4616
4627
  dict[str, Any]: Successful response
4617
-
4628
+
4618
4629
  Raises:
4619
4630
  HTTPError: Raised when the API request fails (e.g., non-2XX status code).
4620
4631
  JSONDecodeError: Raised if the response body cannot be parsed as JSON.
4621
-
4632
+
4622
4633
  Tags:
4623
4634
  Revisions
4624
4635
  """
@@ -4673,8 +4684,6 @@ class GoogleDriveApp(APIApplication):
4673
4684
  except ValueError:
4674
4685
  return None
4675
4686
 
4676
-
4677
-
4678
4687
  def create_permission(
4679
4688
  self,
4680
4689
  fileId: str,
@@ -4683,21 +4692,21 @@ class GoogleDriveApp(APIApplication):
4683
4692
  type: str | None = None,
4684
4693
  ) -> dict[str, Any]:
4685
4694
  """
4686
- Creates a new permission for a file, granting a specified role (e.g., 'reader') to a user, group, or domain. This is a simplified alternative to the more comprehensive `post_file_permission` function, focusing on core sharing functionality.
4687
-
4695
+ Grants a specified role (e.g., 'reader') to a user or group for a file. This is a simplified alternative to the comprehensive `create_file_permission` function, focusing only on the core arguments required for basic sharing operations and omitting advanced options like notification settings or ownership transfer.
4696
+
4688
4697
  Args:
4689
4698
  fileId (string): fileId
4690
4699
  emailAddress (string): emailAddress Example: '{{currentEmailId}}'.
4691
4700
  role (string): role Example: 'reader'.
4692
4701
  type (string): type Example: 'user'.
4693
-
4702
+
4694
4703
  Returns:
4695
4704
  dict[str, Any]: Grant Google Drive Access
4696
-
4705
+
4697
4706
  Raises:
4698
4707
  HTTPError: Raised when the API request fails (e.g., non-2XX status code).
4699
4708
  JSONDecodeError: Raised if the response body cannot be parsed as JSON.
4700
-
4709
+
4701
4710
  Tags:
4702
4711
  Google Drive API Use Cases, Share file access to a slack channel
4703
4712
  """