Skip to content

Commit b1840b0

Browse files
feat(drive): update the api
#### drive:v2 The following keys were added: - schemas.File.properties.capabilities.properties.canAcceptOwnership.type (Total Keys: 1) - schemas.Permission.properties.pendingOwner.type (Total Keys: 1) #### drive:v3 The following keys were added: - schemas.File.properties.capabilities.properties.canAcceptOwnership.type (Total Keys: 1) - schemas.Permission.properties.pendingOwner.type (Total Keys: 1)
1 parent 0d46ba3 commit b1840b0

File tree

8 files changed

+97
-4
lines changed

8 files changed

+97
-4
lines changed

docs/dyn/drive_v2.changes.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@ <h3>Method Details</h3>
164164
&quot;canComment&quot;: True or False, # Deprecated: use capabilities/canComment.
165165
&quot;canReadRevisions&quot;: True or False, # Deprecated: use capabilities/canReadRevisions.
166166
&quot;capabilities&quot;: { # Capabilities the current user has on this file. Each capability corresponds to a fine-grained action that a user may take.
167+
&quot;canAcceptOwnership&quot;: True or False, # Whether the current user is the pending owner of the file. Not populated for shared drive files.
167168
&quot;canAddChildren&quot;: True or False, # Whether the current user can add children to this folder. This is always false when the item is not a folder.
168169
&quot;canAddFolderFromAnotherDrive&quot;: True or False, # Whether the current user can add a folder from another drive (different shared drive or My Drive) to this folder. This is false when the item is not a folder. Only populated for items in shared drives.
169170
&quot;canAddMyDriveParent&quot;: True or False, # Whether the current user can add a parent for the item without removing an existing parent in the same request. Not populated for shared drive files.
@@ -354,6 +355,7 @@ <h3>Method Details</h3>
354355
&quot;id&quot;: &quot;A String&quot;, # The ID of the user this permission refers to, and identical to the permissionId in the About and Files resources. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified unless the permission type is anyone, in which case both id and value are ignored.
355356
&quot;kind&quot;: &quot;drive#permission&quot;, # This is always drive#permission.
356357
&quot;name&quot;: &quot;A String&quot;, # The name for this permission.
358+
&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.
357359
&quot;permissionDetails&quot;: [ # 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.
358360
{
359361
&quot;additionalRoles&quot;: [ # Additional roles for this user. Only commenter is currently possible, though more may be supported in the future.
@@ -476,6 +478,7 @@ <h3>Method Details</h3>
476478
&quot;id&quot;: &quot;A String&quot;, # The ID of the user this permission refers to, and identical to the permissionId in the About and Files resources. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified unless the permission type is anyone, in which case both id and value are ignored.
477479
&quot;kind&quot;: &quot;drive#permission&quot;, # This is always drive#permission.
478480
&quot;name&quot;: &quot;A String&quot;, # The name for this permission.
481+
&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.
479482
&quot;permissionDetails&quot;: [ # 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.
480483
{
481484
&quot;additionalRoles&quot;: [ # Additional roles for this user. Only commenter is currently possible, though more may be supported in the future.
@@ -680,6 +683,7 @@ <h3>Method Details</h3>
680683
&quot;canComment&quot;: True or False, # Deprecated: use capabilities/canComment.
681684
&quot;canReadRevisions&quot;: True or False, # Deprecated: use capabilities/canReadRevisions.
682685
&quot;capabilities&quot;: { # Capabilities the current user has on this file. Each capability corresponds to a fine-grained action that a user may take.
686+
&quot;canAcceptOwnership&quot;: True or False, # Whether the current user is the pending owner of the file. Not populated for shared drive files.
683687
&quot;canAddChildren&quot;: True or False, # Whether the current user can add children to this folder. This is always false when the item is not a folder.
684688
&quot;canAddFolderFromAnotherDrive&quot;: True or False, # Whether the current user can add a folder from another drive (different shared drive or My Drive) to this folder. This is false when the item is not a folder. Only populated for items in shared drives.
685689
&quot;canAddMyDriveParent&quot;: True or False, # Whether the current user can add a parent for the item without removing an existing parent in the same request. Not populated for shared drive files.
@@ -870,6 +874,7 @@ <h3>Method Details</h3>
870874
&quot;id&quot;: &quot;A String&quot;, # The ID of the user this permission refers to, and identical to the permissionId in the About and Files resources. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified unless the permission type is anyone, in which case both id and value are ignored.
871875
&quot;kind&quot;: &quot;drive#permission&quot;, # This is always drive#permission.
872876
&quot;name&quot;: &quot;A String&quot;, # The name for this permission.
877+
&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.
873878
&quot;permissionDetails&quot;: [ # 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.
874879
{
875880
&quot;additionalRoles&quot;: [ # Additional roles for this user. Only commenter is currently possible, though more may be supported in the future.
@@ -992,6 +997,7 @@ <h3>Method Details</h3>
992997
&quot;id&quot;: &quot;A String&quot;, # The ID of the user this permission refers to, and identical to the permissionId in the About and Files resources. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified unless the permission type is anyone, in which case both id and value are ignored.
993998
&quot;kind&quot;: &quot;drive#permission&quot;, # This is always drive#permission.
994999
&quot;name&quot;: &quot;A String&quot;, # The name for this permission.
1000+
&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.
9951001
&quot;permissionDetails&quot;: [ # 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.
9961002
{
9971003
&quot;additionalRoles&quot;: [ # Additional roles for this user. Only commenter is currently possible, though more may be supported in the future.

0 commit comments

Comments
 (0)