Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 0a0b759

Browse files
committedMar 4, 2025
feat(drive): update the api
#### drive:v3 The following keys were added: - schemas.DownloadRestriction (Total Keys: 4) - schemas.Drive.properties.restrictions.properties.downloadRestriction.$ref (Total Keys: 1) - schemas.TeamDrive.properties.restrictions.properties.downloadRestriction.$ref (Total Keys: 1)
1 parent 87a2feb commit 0a0b759

File tree

6 files changed

+104
-17
lines changed

6 files changed

+104
-17
lines changed
 

‎docs/dyn/drive_v3.changes.html

+9-1
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,10 @@ <h3>Method Details</h3>
190190
&quot;adminManagedRestrictions&quot;: True or False, # Whether administrative privileges on this shared drive are required to modify restrictions.
191191
&quot;copyRequiresWriterPermission&quot;: True or False, # Whether the options to copy, print, or download files inside this shared drive, should be disabled for readers and commenters. When this restriction is set to `true`, it will override the similarly named field to `true` for any file inside this shared drive.
192192
&quot;domainUsersOnly&quot;: True or False, # Whether access to this shared drive and items inside this shared drive is restricted to users of the domain to which this shared drive belongs. This restriction may be overridden by other sharing policies controlled outside of this shared drive.
193+
&quot;downloadRestriction&quot;: { # A restriction for copy and download of the file. # Download restrictions applied by shared drive managers.
194+
&quot;restrictedForReaders&quot;: True or False, # Whether download and copy is restricted for readers.
195+
&quot;restrictedForWriters&quot;: True or False, # Whether download and copy is restricted for writers. If true, download is also restricted for readers.
196+
},
193197
&quot;driveMembersOnly&quot;: True or False, # Whether access to items inside this shared drive is restricted to its members.
194198
&quot;sharingFoldersRequiresOrganizerPermission&quot;: True or False, # If true, only users with the organizer role can share folders. If false, users with either the organizer role or the file organizer role can share folders.
195199
},
@@ -408,7 +412,7 @@ <h3>Method Details</h3>
408412
&quot;inherited&quot;: True or False, # Output only. Whether this permission is inherited. This field is always populated. This is an output-only field.
409413
&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.
410414
&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`
411-
&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`
415+
&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: * `owner` * `organizer` * `fileOrganizer` * `writer` * `commenter` * `reader`
412416
},
413417
],
414418
&quot;photoLink&quot;: &quot;A String&quot;, # Output only. A link to the user&#x27;s profile photo, if available.
@@ -523,6 +527,10 @@ <h3>Method Details</h3>
523527
&quot;adminManagedRestrictions&quot;: True or False, # Whether administrative privileges on this Team Drive are required to modify restrictions.
524528
&quot;copyRequiresWriterPermission&quot;: True or False, # Whether the options to copy, print, or download files inside this Team Drive, should be disabled for readers and commenters. When this restriction is set to `true`, it will override the similarly named field to `true` for any file inside this Team Drive.
525529
&quot;domainUsersOnly&quot;: True or False, # Whether access to this Team Drive and items inside this Team Drive is restricted to users of the domain to which this Team Drive belongs. This restriction may be overridden by other sharing policies controlled outside of this Team Drive.
530+
&quot;downloadRestriction&quot;: { # A restriction for copy and download of the file. # Download restrictions applied by shared drive managers.
531+
&quot;restrictedForReaders&quot;: True or False, # Whether download and copy is restricted for readers.
532+
&quot;restrictedForWriters&quot;: True or False, # Whether download and copy is restricted for writers. If true, download is also restricted for readers.
533+
},
526534
&quot;sharingFoldersRequiresOrganizerPermission&quot;: True or False, # If true, only users with the organizer role can share folders. If false, users with either the organizer role or the file organizer role can share folders.
527535
&quot;teamMembersOnly&quot;: True or False, # Whether access to items inside this Team Drive is restricted to members of this Team Drive.
528536
},

‎docs/dyn/drive_v3.drives.html

+32
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,10 @@ <h3>Method Details</h3>
157157
&quot;adminManagedRestrictions&quot;: True or False, # Whether administrative privileges on this shared drive are required to modify restrictions.
158158
&quot;copyRequiresWriterPermission&quot;: True or False, # Whether the options to copy, print, or download files inside this shared drive, should be disabled for readers and commenters. When this restriction is set to `true`, it will override the similarly named field to `true` for any file inside this shared drive.
159159
&quot;domainUsersOnly&quot;: True or False, # Whether access to this shared drive and items inside this shared drive is restricted to users of the domain to which this shared drive belongs. This restriction may be overridden by other sharing policies controlled outside of this shared drive.
160+
&quot;downloadRestriction&quot;: { # A restriction for copy and download of the file. # Download restrictions applied by shared drive managers.
161+
&quot;restrictedForReaders&quot;: True or False, # Whether download and copy is restricted for readers.
162+
&quot;restrictedForWriters&quot;: True or False, # Whether download and copy is restricted for writers. If true, download is also restricted for readers.
163+
},
160164
&quot;driveMembersOnly&quot;: True or False, # Whether access to items inside this shared drive is restricted to its members.
161165
&quot;sharingFoldersRequiresOrganizerPermission&quot;: True or False, # If true, only users with the organizer role can share folders. If false, users with either the organizer role or the file organizer role can share folders.
162166
},
@@ -212,6 +216,10 @@ <h3>Method Details</h3>
212216
&quot;adminManagedRestrictions&quot;: True or False, # Whether administrative privileges on this shared drive are required to modify restrictions.
213217
&quot;copyRequiresWriterPermission&quot;: True or False, # Whether the options to copy, print, or download files inside this shared drive, should be disabled for readers and commenters. When this restriction is set to `true`, it will override the similarly named field to `true` for any file inside this shared drive.
214218
&quot;domainUsersOnly&quot;: True or False, # Whether access to this shared drive and items inside this shared drive is restricted to users of the domain to which this shared drive belongs. This restriction may be overridden by other sharing policies controlled outside of this shared drive.
219+
&quot;downloadRestriction&quot;: { # A restriction for copy and download of the file. # Download restrictions applied by shared drive managers.
220+
&quot;restrictedForReaders&quot;: True or False, # Whether download and copy is restricted for readers.
221+
&quot;restrictedForWriters&quot;: True or False, # Whether download and copy is restricted for writers. If true, download is also restricted for readers.
222+
},
215223
&quot;driveMembersOnly&quot;: True or False, # Whether access to items inside this shared drive is restricted to its members.
216224
&quot;sharingFoldersRequiresOrganizerPermission&quot;: True or False, # If true, only users with the organizer role can share folders. If false, users with either the organizer role or the file organizer role can share folders.
217225
},
@@ -290,6 +298,10 @@ <h3>Method Details</h3>
290298
&quot;adminManagedRestrictions&quot;: True or False, # Whether administrative privileges on this shared drive are required to modify restrictions.
291299
&quot;copyRequiresWriterPermission&quot;: True or False, # Whether the options to copy, print, or download files inside this shared drive, should be disabled for readers and commenters. When this restriction is set to `true`, it will override the similarly named field to `true` for any file inside this shared drive.
292300
&quot;domainUsersOnly&quot;: True or False, # Whether access to this shared drive and items inside this shared drive is restricted to users of the domain to which this shared drive belongs. This restriction may be overridden by other sharing policies controlled outside of this shared drive.
301+
&quot;downloadRestriction&quot;: { # A restriction for copy and download of the file. # Download restrictions applied by shared drive managers.
302+
&quot;restrictedForReaders&quot;: True or False, # Whether download and copy is restricted for readers.
303+
&quot;restrictedForWriters&quot;: True or False, # Whether download and copy is restricted for writers. If true, download is also restricted for readers.
304+
},
293305
&quot;driveMembersOnly&quot;: True or False, # Whether access to items inside this shared drive is restricted to its members.
294306
&quot;sharingFoldersRequiresOrganizerPermission&quot;: True or False, # If true, only users with the organizer role can share folders. If false, users with either the organizer role or the file organizer role can share folders.
295307
},
@@ -352,6 +364,10 @@ <h3>Method Details</h3>
352364
&quot;adminManagedRestrictions&quot;: True or False, # Whether administrative privileges on this shared drive are required to modify restrictions.
353365
&quot;copyRequiresWriterPermission&quot;: True or False, # Whether the options to copy, print, or download files inside this shared drive, should be disabled for readers and commenters. When this restriction is set to `true`, it will override the similarly named field to `true` for any file inside this shared drive.
354366
&quot;domainUsersOnly&quot;: True or False, # Whether access to this shared drive and items inside this shared drive is restricted to users of the domain to which this shared drive belongs. This restriction may be overridden by other sharing policies controlled outside of this shared drive.
367+
&quot;downloadRestriction&quot;: { # A restriction for copy and download of the file. # Download restrictions applied by shared drive managers.
368+
&quot;restrictedForReaders&quot;: True or False, # Whether download and copy is restricted for readers.
369+
&quot;restrictedForWriters&quot;: True or False, # Whether download and copy is restricted for writers. If true, download is also restricted for readers.
370+
},
355371
&quot;driveMembersOnly&quot;: True or False, # Whether access to items inside this shared drive is restricted to its members.
356372
&quot;sharingFoldersRequiresOrganizerPermission&quot;: True or False, # If true, only users with the organizer role can share folders. If false, users with either the organizer role or the file organizer role can share folders.
357373
},
@@ -419,6 +435,10 @@ <h3>Method Details</h3>
419435
&quot;adminManagedRestrictions&quot;: True or False, # Whether administrative privileges on this shared drive are required to modify restrictions.
420436
&quot;copyRequiresWriterPermission&quot;: True or False, # Whether the options to copy, print, or download files inside this shared drive, should be disabled for readers and commenters. When this restriction is set to `true`, it will override the similarly named field to `true` for any file inside this shared drive.
421437
&quot;domainUsersOnly&quot;: True or False, # Whether access to this shared drive and items inside this shared drive is restricted to users of the domain to which this shared drive belongs. This restriction may be overridden by other sharing policies controlled outside of this shared drive.
438+
&quot;downloadRestriction&quot;: { # A restriction for copy and download of the file. # Download restrictions applied by shared drive managers.
439+
&quot;restrictedForReaders&quot;: True or False, # Whether download and copy is restricted for readers.
440+
&quot;restrictedForWriters&quot;: True or False, # Whether download and copy is restricted for writers. If true, download is also restricted for readers.
441+
},
422442
&quot;driveMembersOnly&quot;: True or False, # Whether access to items inside this shared drive is restricted to its members.
423443
&quot;sharingFoldersRequiresOrganizerPermission&quot;: True or False, # If true, only users with the organizer role can share folders. If false, users with either the organizer role or the file organizer role can share folders.
424444
},
@@ -499,6 +519,10 @@ <h3>Method Details</h3>
499519
&quot;adminManagedRestrictions&quot;: True or False, # Whether administrative privileges on this shared drive are required to modify restrictions.
500520
&quot;copyRequiresWriterPermission&quot;: True or False, # Whether the options to copy, print, or download files inside this shared drive, should be disabled for readers and commenters. When this restriction is set to `true`, it will override the similarly named field to `true` for any file inside this shared drive.
501521
&quot;domainUsersOnly&quot;: True or False, # Whether access to this shared drive and items inside this shared drive is restricted to users of the domain to which this shared drive belongs. This restriction may be overridden by other sharing policies controlled outside of this shared drive.
522+
&quot;downloadRestriction&quot;: { # A restriction for copy and download of the file. # Download restrictions applied by shared drive managers.
523+
&quot;restrictedForReaders&quot;: True or False, # Whether download and copy is restricted for readers.
524+
&quot;restrictedForWriters&quot;: True or False, # Whether download and copy is restricted for writers. If true, download is also restricted for readers.
525+
},
502526
&quot;driveMembersOnly&quot;: True or False, # Whether access to items inside this shared drive is restricted to its members.
503527
&quot;sharingFoldersRequiresOrganizerPermission&quot;: True or False, # If true, only users with the organizer role can share folders. If false, users with either the organizer role or the file organizer role can share folders.
504528
},
@@ -556,6 +580,10 @@ <h3>Method Details</h3>
556580
&quot;adminManagedRestrictions&quot;: True or False, # Whether administrative privileges on this shared drive are required to modify restrictions.
557581
&quot;copyRequiresWriterPermission&quot;: True or False, # Whether the options to copy, print, or download files inside this shared drive, should be disabled for readers and commenters. When this restriction is set to `true`, it will override the similarly named field to `true` for any file inside this shared drive.
558582
&quot;domainUsersOnly&quot;: True or False, # Whether access to this shared drive and items inside this shared drive is restricted to users of the domain to which this shared drive belongs. This restriction may be overridden by other sharing policies controlled outside of this shared drive.
583+
&quot;downloadRestriction&quot;: { # A restriction for copy and download of the file. # Download restrictions applied by shared drive managers.
584+
&quot;restrictedForReaders&quot;: True or False, # Whether download and copy is restricted for readers.
585+
&quot;restrictedForWriters&quot;: True or False, # Whether download and copy is restricted for writers. If true, download is also restricted for readers.
586+
},
559587
&quot;driveMembersOnly&quot;: True or False, # Whether access to items inside this shared drive is restricted to its members.
560588
&quot;sharingFoldersRequiresOrganizerPermission&quot;: True or False, # If true, only users with the organizer role can share folders. If false, users with either the organizer role or the file organizer role can share folders.
561589
},
@@ -612,6 +640,10 @@ <h3>Method Details</h3>
612640
&quot;adminManagedRestrictions&quot;: True or False, # Whether administrative privileges on this shared drive are required to modify restrictions.
613641
&quot;copyRequiresWriterPermission&quot;: True or False, # Whether the options to copy, print, or download files inside this shared drive, should be disabled for readers and commenters. When this restriction is set to `true`, it will override the similarly named field to `true` for any file inside this shared drive.
614642
&quot;domainUsersOnly&quot;: True or False, # Whether access to this shared drive and items inside this shared drive is restricted to users of the domain to which this shared drive belongs. This restriction may be overridden by other sharing policies controlled outside of this shared drive.
643+
&quot;downloadRestriction&quot;: { # A restriction for copy and download of the file. # Download restrictions applied by shared drive managers.
644+
&quot;restrictedForReaders&quot;: True or False, # Whether download and copy is restricted for readers.
645+
&quot;restrictedForWriters&quot;: True or False, # Whether download and copy is restricted for writers. If true, download is also restricted for readers.
646+
},
615647
&quot;driveMembersOnly&quot;: True or False, # Whether access to items inside this shared drive is restricted to its members.
616648
&quot;sharingFoldersRequiresOrganizerPermission&quot;: True or False, # If true, only users with the organizer role can share folders. If false, users with either the organizer role or the file organizer role can share folders.
617649
},

‎docs/dyn/drive_v3.files.html

+8-8
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ <h3>Method Details</h3>
355355
&quot;inherited&quot;: True or False, # Output only. Whether this permission is inherited. This field is always populated. This is an output-only field.
356356
&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.
357357
&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`
358-
&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`
358+
&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: * `owner` * `organizer` * `fileOrganizer` * `writer` * `commenter` * `reader`
359359
},
360360
],
361361
&quot;photoLink&quot;: &quot;A String&quot;, # Output only. A link to the user&#x27;s profile photo, if available.
@@ -655,7 +655,7 @@ <h3>Method Details</h3>
655655
&quot;inherited&quot;: True or False, # Output only. Whether this permission is inherited. This field is always populated. This is an output-only field.
656656
&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.
657657
&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`
658-
&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`
658+
&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: * `owner` * `organizer` * `fileOrganizer` * `writer` * `commenter` * `reader`
659659
},
660660
],
661661
&quot;photoLink&quot;: &quot;A String&quot;, # Output only. A link to the user&#x27;s profile photo, if available.
@@ -948,7 +948,7 @@ <h3>Method Details</h3>
948948
&quot;inherited&quot;: True or False, # Output only. Whether this permission is inherited. This field is always populated. This is an output-only field.
949949
&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.
950950
&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`
951-
&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`
951+
&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: * `owner` * `organizer` * `fileOrganizer` * `writer` * `commenter` * `reader`
952952
},
953953
],
954954
&quot;photoLink&quot;: &quot;A String&quot;, # Output only. A link to the user&#x27;s profile photo, if available.
@@ -1251,7 +1251,7 @@ <h3>Method Details</h3>
12511251
&quot;inherited&quot;: True or False, # Output only. Whether this permission is inherited. This field is always populated. This is an output-only field.
12521252
&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.
12531253
&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`
1254-
&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`
1254+
&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: * `owner` * `organizer` * `fileOrganizer` * `writer` * `commenter` * `reader`
12551255
},
12561256
],
12571257
&quot;photoLink&quot;: &quot;A String&quot;, # Output only. A link to the user&#x27;s profile photo, if available.
@@ -1675,7 +1675,7 @@ <h3>Method Details</h3>
16751675
&quot;inherited&quot;: True or False, # Output only. Whether this permission is inherited. This field is always populated. This is an output-only field.
16761676
&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.
16771677
&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`
1678-
&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`
1678+
&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: * `owner` * `organizer` * `fileOrganizer` * `writer` * `commenter` * `reader`
16791679
},
16801680
],
16811681
&quot;photoLink&quot;: &quot;A String&quot;, # Output only. A link to the user&#x27;s profile photo, if available.
@@ -2015,7 +2015,7 @@ <h3>Method Details</h3>
20152015
&quot;inherited&quot;: True or False, # Output only. Whether this permission is inherited. This field is always populated. This is an output-only field.
20162016
&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.
20172017
&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`
2018-
&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`
2018+
&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: * `owner` * `organizer` * `fileOrganizer` * `writer` * `commenter` * `reader`
20192019
},
20202020
],
20212021
&quot;photoLink&quot;: &quot;A String&quot;, # Output only. A link to the user&#x27;s profile photo, if available.
@@ -2491,7 +2491,7 @@ <h3>Method Details</h3>
24912491
&quot;inherited&quot;: True or False, # Output only. Whether this permission is inherited. This field is always populated. This is an output-only field.
24922492
&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.
24932493
&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`
2494-
&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`
2494+
&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: * `owner` * `organizer` * `fileOrganizer` * `writer` * `commenter` * `reader`
24952495
},
24962496
],
24972497
&quot;photoLink&quot;: &quot;A String&quot;, # Output only. A link to the user&#x27;s profile photo, if available.
@@ -2795,7 +2795,7 @@ <h3>Method Details</h3>
27952795
&quot;inherited&quot;: True or False, # Output only. Whether this permission is inherited. This field is always populated. This is an output-only field.
27962796
&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.
27972797
&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`
2798-
&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`
2798+
&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: * `owner` * `organizer` * `fileOrganizer` * `writer` * `commenter` * `reader`
27992799
},
28002800
],
28012801
&quot;photoLink&quot;: &quot;A String&quot;, # Output only. A link to the user&#x27;s profile photo, if available.

‎docs/dyn/drive_v3.permissions.html

+6-6
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ <h3>Method Details</h3>
126126
&quot;inherited&quot;: True or False, # Output only. Whether this permission is inherited. This field is always populated. This is an output-only field.
127127
&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.
128128
&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`
129-
&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`
129+
&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: * `owner` * `organizer` * `fileOrganizer` * `writer` * `commenter` * `reader`
130130
},
131131
],
132132
&quot;photoLink&quot;: &quot;A String&quot;, # Output only. A link to the user&#x27;s profile photo, if available.
@@ -175,7 +175,7 @@ <h3>Method Details</h3>
175175
&quot;inherited&quot;: True or False, # Output only. Whether this permission is inherited. This field is always populated. This is an output-only field.
176176
&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.
177177
&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`
178-
&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`
178+
&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: * `owner` * `organizer` * `fileOrganizer` * `writer` * `commenter` * `reader`
179179
},
180180
],
181181
&quot;photoLink&quot;: &quot;A String&quot;, # Output only. A link to the user&#x27;s profile photo, if available.
@@ -245,7 +245,7 @@ <h3>Method Details</h3>
245245
&quot;inherited&quot;: True or False, # Output only. Whether this permission is inherited. This field is always populated. This is an output-only field.
246246
&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.
247247
&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`
248-
&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`
248+
&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: * `owner` * `organizer` * `fileOrganizer` * `writer` * `commenter` * `reader`
249249
},
250250
],
251251
&quot;photoLink&quot;: &quot;A String&quot;, # Output only. A link to the user&#x27;s profile photo, if available.
@@ -303,7 +303,7 @@ <h3>Method Details</h3>
303303
&quot;inherited&quot;: True or False, # Output only. Whether this permission is inherited. This field is always populated. This is an output-only field.
304304
&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.
305305
&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`
306-
&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`
306+
&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: * `owner` * `organizer` * `fileOrganizer` * `writer` * `commenter` * `reader`
307307
},
308308
],
309309
&quot;photoLink&quot;: &quot;A String&quot;, # Output only. A link to the user&#x27;s profile photo, if available.
@@ -363,7 +363,7 @@ <h3>Method Details</h3>
363363
&quot;inherited&quot;: True or False, # Output only. Whether this permission is inherited. This field is always populated. This is an output-only field.
364364
&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.
365365
&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`
366-
&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`
366+
&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: * `owner` * `organizer` * `fileOrganizer` * `writer` * `commenter` * `reader`
367367
},
368368
],
369369
&quot;photoLink&quot;: &quot;A String&quot;, # Output only. A link to the user&#x27;s profile photo, if available.
@@ -410,7 +410,7 @@ <h3>Method Details</h3>
410410
&quot;inherited&quot;: True or False, # Output only. Whether this permission is inherited. This field is always populated. This is an output-only field.
411411
&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.
412412
&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`
413-
&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`
413+
&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: * `owner` * `organizer` * `fileOrganizer` * `writer` * `commenter` * `reader`
414414
},
415415
],
416416
&quot;photoLink&quot;: &quot;A String&quot;, # Output only. A link to the user&#x27;s profile photo, if available.

‎docs/dyn/drive_v3.teamdrives.html

+24
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,10 @@ <h3>Method Details</h3>
151151
&quot;adminManagedRestrictions&quot;: True or False, # Whether administrative privileges on this Team Drive are required to modify restrictions.
152152
&quot;copyRequiresWriterPermission&quot;: True or False, # Whether the options to copy, print, or download files inside this Team Drive, should be disabled for readers and commenters. When this restriction is set to `true`, it will override the similarly named field to `true` for any file inside this Team Drive.
153153
&quot;domainUsersOnly&quot;: True or False, # Whether access to this Team Drive and items inside this Team Drive is restricted to users of the domain to which this Team Drive belongs. This restriction may be overridden by other sharing policies controlled outside of this Team Drive.
154+
&quot;downloadRestriction&quot;: { # A restriction for copy and download of the file. # Download restrictions applied by shared drive managers.
155+
&quot;restrictedForReaders&quot;: True or False, # Whether download and copy is restricted for readers.
156+
&quot;restrictedForWriters&quot;: True or False, # Whether download and copy is restricted for writers. If true, download is also restricted for readers.
157+
},
154158
&quot;sharingFoldersRequiresOrganizerPermission&quot;: True or False, # If true, only users with the organizer role can share folders. If false, users with either the organizer role or the file organizer role can share folders.
155159
&quot;teamMembersOnly&quot;: True or False, # Whether access to items inside this Team Drive is restricted to members of this Team Drive.
156160
},
@@ -206,6 +210,10 @@ <h3>Method Details</h3>
206210
&quot;adminManagedRestrictions&quot;: True or False, # Whether administrative privileges on this Team Drive are required to modify restrictions.
207211
&quot;copyRequiresWriterPermission&quot;: True or False, # Whether the options to copy, print, or download files inside this Team Drive, should be disabled for readers and commenters. When this restriction is set to `true`, it will override the similarly named field to `true` for any file inside this Team Drive.
208212
&quot;domainUsersOnly&quot;: True or False, # Whether access to this Team Drive and items inside this Team Drive is restricted to users of the domain to which this Team Drive belongs. This restriction may be overridden by other sharing policies controlled outside of this Team Drive.
213+
&quot;downloadRestriction&quot;: { # A restriction for copy and download of the file. # Download restrictions applied by shared drive managers.
214+
&quot;restrictedForReaders&quot;: True or False, # Whether download and copy is restricted for readers.
215+
&quot;restrictedForWriters&quot;: True or False, # Whether download and copy is restricted for writers. If true, download is also restricted for readers.
216+
},
209217
&quot;sharingFoldersRequiresOrganizerPermission&quot;: True or False, # If true, only users with the organizer role can share folders. If false, users with either the organizer role or the file organizer role can share folders.
210218
&quot;teamMembersOnly&quot;: True or False, # Whether access to items inside this Team Drive is restricted to members of this Team Drive.
211219
},
@@ -282,6 +290,10 @@ <h3>Method Details</h3>
282290
&quot;adminManagedRestrictions&quot;: True or False, # Whether administrative privileges on this Team Drive are required to modify restrictions.
283291
&quot;copyRequiresWriterPermission&quot;: True or False, # Whether the options to copy, print, or download files inside this Team Drive, should be disabled for readers and commenters. When this restriction is set to `true`, it will override the similarly named field to `true` for any file inside this Team Drive.
284292
&quot;domainUsersOnly&quot;: True or False, # Whether access to this Team Drive and items inside this Team Drive is restricted to users of the domain to which this Team Drive belongs. This restriction may be overridden by other sharing policies controlled outside of this Team Drive.
293+
&quot;downloadRestriction&quot;: { # A restriction for copy and download of the file. # Download restrictions applied by shared drive managers.
294+
&quot;restrictedForReaders&quot;: True or False, # Whether download and copy is restricted for readers.
295+
&quot;restrictedForWriters&quot;: True or False, # Whether download and copy is restricted for writers. If true, download is also restricted for readers.
296+
},
285297
&quot;sharingFoldersRequiresOrganizerPermission&quot;: True or False, # If true, only users with the organizer role can share folders. If false, users with either the organizer role or the file organizer role can share folders.
286298
&quot;teamMembersOnly&quot;: True or False, # Whether access to items inside this Team Drive is restricted to members of this Team Drive.
287299
},
@@ -351,6 +363,10 @@ <h3>Method Details</h3>
351363
&quot;adminManagedRestrictions&quot;: True or False, # Whether administrative privileges on this Team Drive are required to modify restrictions.
352364
&quot;copyRequiresWriterPermission&quot;: True or False, # Whether the options to copy, print, or download files inside this Team Drive, should be disabled for readers and commenters. When this restriction is set to `true`, it will override the similarly named field to `true` for any file inside this Team Drive.
353365
&quot;domainUsersOnly&quot;: True or False, # Whether access to this Team Drive and items inside this Team Drive is restricted to users of the domain to which this Team Drive belongs. This restriction may be overridden by other sharing policies controlled outside of this Team Drive.
366+
&quot;downloadRestriction&quot;: { # A restriction for copy and download of the file. # Download restrictions applied by shared drive managers.
367+
&quot;restrictedForReaders&quot;: True or False, # Whether download and copy is restricted for readers.
368+
&quot;restrictedForWriters&quot;: True or False, # Whether download and copy is restricted for writers. If true, download is also restricted for readers.
369+
},
354370
&quot;sharingFoldersRequiresOrganizerPermission&quot;: True or False, # If true, only users with the organizer role can share folders. If false, users with either the organizer role or the file organizer role can share folders.
355371
&quot;teamMembersOnly&quot;: True or False, # Whether access to items inside this Team Drive is restricted to members of this Team Drive.
356372
},
@@ -424,6 +440,10 @@ <h3>Method Details</h3>
424440
&quot;adminManagedRestrictions&quot;: True or False, # Whether administrative privileges on this Team Drive are required to modify restrictions.
425441
&quot;copyRequiresWriterPermission&quot;: True or False, # Whether the options to copy, print, or download files inside this Team Drive, should be disabled for readers and commenters. When this restriction is set to `true`, it will override the similarly named field to `true` for any file inside this Team Drive.
426442
&quot;domainUsersOnly&quot;: True or False, # Whether access to this Team Drive and items inside this Team Drive is restricted to users of the domain to which this Team Drive belongs. This restriction may be overridden by other sharing policies controlled outside of this Team Drive.
443+
&quot;downloadRestriction&quot;: { # A restriction for copy and download of the file. # Download restrictions applied by shared drive managers.
444+
&quot;restrictedForReaders&quot;: True or False, # Whether download and copy is restricted for readers.
445+
&quot;restrictedForWriters&quot;: True or False, # Whether download and copy is restricted for writers. If true, download is also restricted for readers.
446+
},
427447
&quot;sharingFoldersRequiresOrganizerPermission&quot;: True or False, # If true, only users with the organizer role can share folders. If false, users with either the organizer role or the file organizer role can share folders.
428448
&quot;teamMembersOnly&quot;: True or False, # Whether access to items inside this Team Drive is restricted to members of this Team Drive.
429449
},
@@ -480,6 +500,10 @@ <h3>Method Details</h3>
480500
&quot;adminManagedRestrictions&quot;: True or False, # Whether administrative privileges on this Team Drive are required to modify restrictions.
481501
&quot;copyRequiresWriterPermission&quot;: True or False, # Whether the options to copy, print, or download files inside this Team Drive, should be disabled for readers and commenters. When this restriction is set to `true`, it will override the similarly named field to `true` for any file inside this Team Drive.
482502
&quot;domainUsersOnly&quot;: True or False, # Whether access to this Team Drive and items inside this Team Drive is restricted to users of the domain to which this Team Drive belongs. This restriction may be overridden by other sharing policies controlled outside of this Team Drive.
503+
&quot;downloadRestriction&quot;: { # A restriction for copy and download of the file. # Download restrictions applied by shared drive managers.
504+
&quot;restrictedForReaders&quot;: True or False, # Whether download and copy is restricted for readers.
505+
&quot;restrictedForWriters&quot;: True or False, # Whether download and copy is restricted for writers. If true, download is also restricted for readers.
506+
},
483507
&quot;sharingFoldersRequiresOrganizerPermission&quot;: True or False, # If true, only users with the organizer role can share folders. If false, users with either the organizer role or the file organizer role can share folders.
484508
&quot;teamMembersOnly&quot;: True or False, # Whether access to items inside this Team Drive is restricted to members of this Team Drive.
485509
},

‎googleapiclient/discovery_cache/documents/drive.v3.json

+25-2
Original file line numberDiff line numberDiff line change
@@ -2800,7 +2800,7 @@
28002800
}
28012801
}
28022802
},
2803-
"revision": "20250216",
2803+
"revision": "20250220",
28042804
"rootUrl": "https://www.googleapis.com/",
28052805
"schemas": {
28062806
"About": {
@@ -3437,6 +3437,21 @@
34373437
},
34383438
"type": "object"
34393439
},
3440+
"DownloadRestriction": {
3441+
"description": "A restriction for copy and download of the file.",
3442+
"id": "DownloadRestriction",
3443+
"properties": {
3444+
"restrictedForReaders": {
3445+
"description": "Whether download and copy is restricted for readers.",
3446+
"type": "boolean"
3447+
},
3448+
"restrictedForWriters": {
3449+
"description": "Whether download and copy is restricted for writers. If true, download is also restricted for readers.",
3450+
"type": "boolean"
3451+
}
3452+
},
3453+
"type": "object"
3454+
},
34403455
"Drive": {
34413456
"description": "Representation of a shared drive. Some resource methods (such as `drives.update`) require a `driveId`. Use the `drives.list` method to retrieve the ID for a shared drive.",
34423457
"id": "Drive",
@@ -3601,6 +3616,10 @@
36013616
"description": "Whether access to this shared drive and items inside this shared drive is restricted to users of the domain to which this shared drive belongs. This restriction may be overridden by other sharing policies controlled outside of this shared drive.",
36023617
"type": "boolean"
36033618
},
3619+
"downloadRestriction": {
3620+
"$ref": "DownloadRestriction",
3621+
"description": "Download restrictions applied by shared drive managers."
3622+
},
36043623
"driveMembersOnly": {
36053624
"description": "Whether access to items inside this shared drive is restricted to its members.",
36063625
"type": "boolean"
@@ -4720,7 +4739,7 @@
47204739
"type": "string"
47214740
},
47224741
"role": {
4723-
"description": "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`",
4742+
"description": "Output only. The primary role for this user. While new values may be added in the future, the following are currently possible: * `owner` * `organizer` * `fileOrganizer` * `writer` * `commenter` * `reader`",
47244743
"type": "string"
47254744
}
47264745
},
@@ -5221,6 +5240,10 @@
52215240
"description": "Whether access to this Team Drive and items inside this Team Drive is restricted to users of the domain to which this Team Drive belongs. This restriction may be overridden by other sharing policies controlled outside of this Team Drive.",
52225241
"type": "boolean"
52235242
},
5243+
"downloadRestriction": {
5244+
"$ref": "DownloadRestriction",
5245+
"description": "Download restrictions applied by shared drive managers."
5246+
},
52245247
"sharingFoldersRequiresOrganizerPermission": {
52255248
"description": "If true, only users with the organizer role can share folders. If false, users with either the organizer role or the file organizer role can share folders.",
52265249
"type": "boolean"

0 commit comments

Comments
 (0)
Please sign in to comment.