Skip to content

Commit 3b427c6

Browse files
feat(drive): update the api
#### drive:v2 The following keys were added: - resources.permissions.methods.delete.parameters.enforceExpansiveAccess (Total Keys: 3) - resources.permissions.methods.patch.parameters.enforceExpansiveAccess (Total Keys: 3) - resources.permissions.methods.update.parameters.enforceExpansiveAccess (Total Keys: 3) - schemas.File.properties.capabilities.properties.canDisableInheritedPermissions (Total Keys: 2) - schemas.File.properties.capabilities.properties.canEnableInheritedPermissions (Total Keys: 2) - schemas.File.properties.inheritedPermissionsDisabled.type (Total Keys: 1) - schemas.Permission.properties.inheritedPermissionsDisabled.type (Total Keys: 1) #### drive:v3 The following keys were added: - resources.permissions.methods.delete.parameters.enforceExpansiveAccess (Total Keys: 3) - resources.permissions.methods.update.parameters.enforceExpansiveAccess (Total Keys: 3) - schemas.File.properties.capabilities.properties.canDisableInheritedPermissions.type (Total Keys: 1) - schemas.File.properties.capabilities.properties.canEnableInheritedPermissions.type (Total Keys: 1) - schemas.File.properties.inheritedPermissionsDisabled.type (Total Keys: 1) - schemas.Permission.properties.inheritedPermissionsDisabled.type (Total Keys: 1)
1 parent a6c51e7 commit 3b427c6

File tree

8 files changed

+410
-216
lines changed

8 files changed

+410
-216
lines changed

docs/dyn/drive_v2.changes.html

Lines changed: 26 additions & 16 deletions
Large diffs are not rendered by default.

docs/dyn/drive_v2.files.html

Lines changed: 169 additions & 104 deletions
Large diffs are not rendered by default.

docs/dyn/drive_v2.permissions.html

Lines changed: 49 additions & 38 deletions
Large diffs are not rendered by default.

docs/dyn/drive_v3.changes.html

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -213,8 +213,10 @@ <h3>Method Details</h3>
213213
&quot;canCopy&quot;: True or False, # Output only. Whether the current user can copy this file. For an item in a shared drive, whether the current user can copy non-folder descendants of this item, or this item itself if it is not a folder.
214214
&quot;canDelete&quot;: True or False, # Output only. Whether the current user can delete this file.
215215
&quot;canDeleteChildren&quot;: True or False, # Output only. Whether the current user can delete children of this folder. This is false when the item is not a folder. Only populated for items in shared drives.
216+
&quot;canDisableInheritedPermissions&quot;: True or False, # Whether a user can disable inherited permissions.
216217
&quot;canDownload&quot;: True or False, # Output only. Whether the current user can download this file.
217218
&quot;canEdit&quot;: True or False, # Output only. Whether the current user can edit this file. Other factors may limit the type of changes a user can make to a file. For example, see `canChangeCopyRequiresWriterPermission` or `canModifyContent`.
219+
&quot;canEnableInheritedPermissions&quot;: True or False, # Whether a user can re-enable inherited permissions.
218220
&quot;canListChildren&quot;: True or False, # Output only. Whether the current user can list the children of this folder. This is always false when the item is not a folder.
219221
&quot;canModifyContent&quot;: True or False, # Output only. Whether the current user can modify the content of this file.
220222
&quot;canModifyContentRestriction&quot;: True or False, # Deprecated: Output only. Use one of `canModifyEditorContentRestriction`, `canModifyOwnerContentRestriction` or `canRemoveContentRestriction`.
@@ -312,6 +314,7 @@ <h3>Method Details</h3>
312314
&quot;whiteBalance&quot;: &quot;A String&quot;, # Output only. The white balance mode used to create the photo.
313315
&quot;width&quot;: 42, # Output only. The width of the image in pixels.
314316
},
317+
&quot;inheritedPermissionsDisabled&quot;: True or False, # Whether this file has inherited permissions disabled. Inherited permissions are enabled by default.
315318
&quot;isAppAuthorized&quot;: True or False, # Output only. Whether the file was created or opened by the requesting app.
316319
&quot;kind&quot;: &quot;drive#file&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `&quot;drive#file&quot;`.
317320
&quot;labelInfo&quot;: { # Output only. An overview of the labels on the file.
@@ -397,12 +400,13 @@ <h3>Method Details</h3>
397400
&quot;emailAddress&quot;: &quot;A String&quot;, # The email address of the user or group to which this permission refers.
398401
&quot;expirationTime&quot;: &quot;A String&quot;, # The time at which this permission will expire (RFC 3339 date-time). Expiration times have the following restrictions: - They can only be set on user and group permissions - The time must be in the future - The time cannot be more than a year in the future
399402
&quot;id&quot;: &quot;A String&quot;, # Output only. The ID of this permission. This is a unique identifier for the grantee, and is published in User resources as `permissionId`. IDs should be treated as opaque values.
403+
&quot;inheritedPermissionsDisabled&quot;: True or False, # When true, only organizers, owners, and users with permissions added directly on the item can access it.
400404
&quot;kind&quot;: &quot;drive#permission&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `&quot;drive#permission&quot;`.
401405
&quot;pendingOwner&quot;: True or False, # Whether the account associated with this permission is a pending owner. Only populated for `user` type permissions for files that are not in a shared drive.
402-
&quot;permissionDetails&quot;: [ # Output only. Details of whether the permissions on this shared drive item are inherited or directly on this item. This is an output-only field which is present only for shared drive items.
406+
&quot;permissionDetails&quot;: [ # Output only. Details of whether the permissions on this item are inherited or directly on this item.
403407
{
404408
&quot;inherited&quot;: True or False, # Output only. Whether this permission is inherited. This field is always populated. This is an output-only field.
405-
&quot;inheritedFrom&quot;: &quot;A String&quot;, # Output only. The ID of the item from which this permission is inherited. This is an output-only field.
409+
&quot;inheritedFrom&quot;: &quot;A String&quot;, # Output only. The ID of the item from which this permission is inherited. This is only populated for items in shared drives.
406410
&quot;permissionType&quot;: &quot;A String&quot;, # Output only. The permission type for this user. While new values may be added in future, the following are currently possible: * `file` * `member`
407411
&quot;role&quot;: &quot;A String&quot;, # Output only. The primary role for this user. While new values may be added in the future, the following are currently possible: * `organizer` * `fileOrganizer` * `writer` * `commenter` * `reader`
408412
},
@@ -418,7 +422,7 @@ <h3>Method Details</h3>
418422
},
419423
],
420424
&quot;type&quot;: &quot;A String&quot;, # The type of the grantee. Valid values are: * `user` * `group` * `domain` * `anyone` When creating a permission, if `type` is `user` or `group`, you must provide an `emailAddress` for the user or group. When `type` is `domain`, you must provide a `domain`. There isn&#x27;t extra information required for an `anyone` type.
421-
&quot;view&quot;: &quot;A String&quot;, # Indicates the view for this permission. Only populated for permissions that belong to a view. &#x27;published&#x27; is the only supported value.
425+
&quot;view&quot;: &quot;A String&quot;, # Indicates the view for this permission. Only populated for permissions that belong to a view. published and metadata are the only supported values. - published: The permission&#x27;s role is published_reader. - metadata: The item is only visible to the metadata view because the item has limited access and the scope has at least read access to the parent. Note: The metadata view is currently only supported on folders.
422426
},
423427
],
424428
&quot;properties&quot;: { # A collection of arbitrary key-value pairs which are visible to all apps.

0 commit comments

Comments
 (0)