Skip to content

Commit 9699255

Browse files
feat(drive): update the api
#### drive:v2 The following keys were added: - resources.permissions.methods.insert.parameters.enforceExpansiveAccess (Total Keys: 3) #### drive:v3 The following keys were added: - resources.permissions.methods.create.parameters.enforceExpansiveAccess (Total Keys: 3)
1 parent fefa879 commit 9699255

File tree

4 files changed

+20
-6
lines changed

4 files changed

+20
-6
lines changed

docs/dyn/drive_v2.permissions.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ <h2>Instance Methods</h2>
8787
<code><a href="#getIdForEmail">getIdForEmail(email, x__xgafv=None)</a></code></p>
8888
<p class="firstline">Returns the permission ID for an email address.</p>
8989
<p class="toc_element">
90-
<code><a href="#insert">insert(fileId, body=None, emailMessage=None, enforceSingleParent=None, moveToNewOwnersRoot=None, sendNotificationEmails=None, supportsAllDrives=None, supportsTeamDrives=None, useDomainAdminAccess=None, x__xgafv=None)</a></code></p>
90+
<code><a href="#insert">insert(fileId, body=None, emailMessage=None, enforceExpansiveAccess=None, enforceSingleParent=None, moveToNewOwnersRoot=None, sendNotificationEmails=None, supportsAllDrives=None, supportsTeamDrives=None, useDomainAdminAccess=None, x__xgafv=None)</a></code></p>
9191
<p class="firstline">Inserts a permission for a file or shared drive. **Warning:** Concurrent permissions operations on the same file are not supported; only the last update is applied.</p>
9292
<p class="toc_element">
9393
<code><a href="#list">list(fileId, includePermissionsForView=None, maxResults=None, pageToken=None, supportsAllDrives=None, supportsTeamDrives=None, useDomainAdminAccess=None, x__xgafv=None)</a></code></p>
@@ -211,7 +211,7 @@ <h3>Method Details</h3>
211211
</div>
212212

213213
<div class="method">
214-
<code class="details" id="insert">insert(fileId, body=None, emailMessage=None, enforceSingleParent=None, moveToNewOwnersRoot=None, sendNotificationEmails=None, supportsAllDrives=None, supportsTeamDrives=None, useDomainAdminAccess=None, x__xgafv=None)</code>
214+
<code class="details" id="insert">insert(fileId, body=None, emailMessage=None, enforceExpansiveAccess=None, enforceSingleParent=None, moveToNewOwnersRoot=None, sendNotificationEmails=None, supportsAllDrives=None, supportsTeamDrives=None, useDomainAdminAccess=None, x__xgafv=None)</code>
215215
<pre>Inserts a permission for a file or shared drive. **Warning:** Concurrent permissions operations on the same file are not supported; only the last update is applied.
216216

217217
Args:
@@ -266,6 +266,7 @@ <h3>Method Details</h3>
266266
}
267267

268268
emailMessage: string, A plain text custom message to include in notification emails.
269+
enforceExpansiveAccess: boolean, Whether the request should enforce expansive access rules.
269270
enforceSingleParent: boolean, Deprecated: See `moveToNewOwnersRoot` for details.
270271
moveToNewOwnersRoot: boolean, This parameter will only take effect if the item is not in a shared drive and the request is attempting to transfer the ownership of the item. If set to `true`, the item will be moved to the new owner&#x27;s My Drive root folder and all prior parents removed. If set to `false`, parents are not changed.
271272
sendNotificationEmails: boolean, Whether to send notification emails when sharing to users or groups. This parameter is ignored and an email is sent if the `role` is `owner`.

docs/dyn/drive_v3.permissions.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ <h2>Instance Methods</h2>
7878
<code><a href="#close">close()</a></code></p>
7979
<p class="firstline">Close httplib2 connections.</p>
8080
<p class="toc_element">
81-
<code><a href="#create">create(fileId, body=None, emailMessage=None, enforceSingleParent=None, moveToNewOwnersRoot=None, sendNotificationEmail=None, supportsAllDrives=None, supportsTeamDrives=None, transferOwnership=None, useDomainAdminAccess=None, x__xgafv=None)</a></code></p>
81+
<code><a href="#create">create(fileId, body=None, emailMessage=None, enforceExpansiveAccess=None, enforceSingleParent=None, moveToNewOwnersRoot=None, sendNotificationEmail=None, supportsAllDrives=None, supportsTeamDrives=None, transferOwnership=None, useDomainAdminAccess=None, x__xgafv=None)</a></code></p>
8282
<p class="firstline">Creates a permission for a file or shared drive. **Warning:** Concurrent permissions operations on the same file are not supported; only the last update is applied.</p>
8383
<p class="toc_element">
8484
<code><a href="#delete">delete(fileId, permissionId, enforceExpansiveAccess=None, supportsAllDrives=None, supportsTeamDrives=None, useDomainAdminAccess=None, x__xgafv=None)</a></code></p>
@@ -102,7 +102,7 @@ <h3>Method Details</h3>
102102
</div>
103103

104104
<div class="method">
105-
<code class="details" id="create">create(fileId, body=None, emailMessage=None, enforceSingleParent=None, moveToNewOwnersRoot=None, sendNotificationEmail=None, supportsAllDrives=None, supportsTeamDrives=None, transferOwnership=None, useDomainAdminAccess=None, x__xgafv=None)</code>
105+
<code class="details" id="create">create(fileId, body=None, emailMessage=None, enforceExpansiveAccess=None, enforceSingleParent=None, moveToNewOwnersRoot=None, sendNotificationEmail=None, supportsAllDrives=None, supportsTeamDrives=None, transferOwnership=None, useDomainAdminAccess=None, x__xgafv=None)</code>
106106
<pre>Creates a permission for a file or shared drive. **Warning:** Concurrent permissions operations on the same file are not supported; only the last update is applied.
107107

108108
Args:
@@ -144,6 +144,7 @@ <h3>Method Details</h3>
144144
}
145145

146146
emailMessage: string, A plain text custom message to include in the notification email.
147+
enforceExpansiveAccess: boolean, Whether the request should enforce expansive access rules.
147148
enforceSingleParent: boolean, Deprecated: See `moveToNewOwnersRoot` for details.
148149
moveToNewOwnersRoot: boolean, This parameter will only take effect if the item is not in a shared drive and the request is attempting to transfer the ownership of the item. If set to `true`, the item will be moved to the new owner&#x27;s My Drive root folder and all prior parents removed. If set to `false`, parents are not changed.
149150
sendNotificationEmail: boolean, Whether to send a notification email when sharing to users or groups. This defaults to true for users and groups, and is not allowed for other requests. It must not be disabled for ownership transfers.

googleapiclient/discovery_cache/documents/drive.v2.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2777,6 +2777,12 @@
27772777
"location": "query",
27782778
"type": "string"
27792779
},
2780+
"enforceExpansiveAccess": {
2781+
"default": "false",
2782+
"description": "Whether the request should enforce expansive access rules.",
2783+
"location": "query",
2784+
"type": "boolean"
2785+
},
27802786
"enforceSingleParent": {
27812787
"default": "false",
27822788
"deprecated": true,
@@ -3887,7 +3893,7 @@
38873893
}
38883894
}
38893895
},
3890-
"revision": "20250427",
3896+
"revision": "20250506",
38913897
"rootUrl": "https://www.googleapis.com/",
38923898
"schemas": {
38933899
"About": {

googleapiclient/discovery_cache/documents/drive.v3.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1949,6 +1949,12 @@
19491949
"location": "query",
19501950
"type": "string"
19511951
},
1952+
"enforceExpansiveAccess": {
1953+
"default": "false",
1954+
"description": "Whether the request should enforce expansive access rules.",
1955+
"location": "query",
1956+
"type": "boolean"
1957+
},
19521958
"enforceSingleParent": {
19531959
"default": "false",
19541960
"deprecated": true,
@@ -2800,7 +2806,7 @@
28002806
}
28012807
}
28022808
},
2803-
"revision": "20250427",
2809+
"revision": "20250506",
28042810
"rootUrl": "https://www.googleapis.com/",
28052811
"schemas": {
28062812
"About": {

0 commit comments

Comments
 (0)