You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: docs/dyn/drive_v3.changes.html
+7-3
Original file line number
Diff line number
Diff line change
@@ -213,8 +213,10 @@ <h3>Method Details</h3>
213
213
"canCopy": 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.
214
214
"canDelete": True or False, # Output only. Whether the current user can delete this file.
215
215
"canDeleteChildren": 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
+
"canDisableInheritedPermissions": True or False, # Whether a user can disable inherited permissions.
216
217
"canDownload": True or False, # Output only. Whether the current user can download this file.
217
218
"canEdit": 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
+
"canEnableInheritedPermissions": True or False, # Whether a user can re-enable inherited permissions.
218
220
"canListChildren": 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.
219
221
"canModifyContent": True or False, # Output only. Whether the current user can modify the content of this file.
220
222
"canModifyContentRestriction": True or False, # Deprecated: Output only. Use one of `canModifyEditorContentRestriction`, `canModifyOwnerContentRestriction` or `canRemoveContentRestriction`.
@@ -312,6 +314,7 @@ <h3>Method Details</h3>
312
314
"whiteBalance": "A String", # Output only. The white balance mode used to create the photo.
313
315
"width": 42, # Output only. The width of the image in pixels.
314
316
},
317
+
"inheritedPermissionsDisabled": True or False, # Whether this file has inherited permissions disabled. Inherited permissions are enabled by default.
315
318
"isAppAuthorized": True or False, # Output only. Whether the file was created or opened by the requesting app.
316
319
"kind": "drive#file", # Output only. Identifies what kind of resource this is. Value: the fixed string `"drive#file"`.
317
320
"labelInfo": { # Output only. An overview of the labels on the file.
@@ -397,12 +400,13 @@ <h3>Method Details</h3>
397
400
"emailAddress": "A String", # The email address of the user or group to which this permission refers.
398
401
"expirationTime": "A String", # 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
399
402
"id": "A String", # 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
+
"inheritedPermissionsDisabled": True or False, # When true, only organizers, owners, and users with permissions added directly on the item can access it.
400
404
"kind": "drive#permission", # Output only. Identifies what kind of resource this is. Value: the fixed string `"drive#permission"`.
401
405
"pendingOwner": 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
-
"permissionDetails": [ # 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
+
"permissionDetails": [ # Output only. Details of whether the permissions on this item are inherited or directly on this item.
403
407
{
404
408
"inherited": True or False, # Output only. Whether this permission is inherited. This field is always populated. This is an output-only field.
405
-
"inheritedFrom": "A String", # Output only. The ID of the item from which this permission is inherited. This is an output-only field.
409
+
"inheritedFrom": "A String", # Output only. The ID of the item from which this permission is inherited. This is only populated for items in shared drives.
406
410
"permissionType": "A String", # Output only. The permission type for this user. While new values may be added in future, the following are currently possible: * `file` * `member`
407
411
"role": "A String", # 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`
408
412
},
@@ -418,7 +422,7 @@ <h3>Method Details</h3>
418
422
},
419
423
],
420
424
"type": "A String", # 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't extra information required for an `anyone` type.
421
-
"view": "A String", # Indicates the view for this permission. Only populated for permissions that belong to a view. 'published'is the only supported value.
425
+
"view": "A String", # 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'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.
422
426
},
423
427
],
424
428
"properties": { # A collection of arbitrary key-value pairs which are visible to all apps.
Copy file name to clipboardexpand all lines: googleapiclient/discovery_cache/documents/drive.v2.json
+41-5
Original file line number
Diff line number
Diff line change
@@ -2632,6 +2632,12 @@
2632
2632
"permissionId"
2633
2633
],
2634
2634
"parameters": {
2635
+
"enforceExpansiveAccess": {
2636
+
"default": "false",
2637
+
"description": "Whether the request should enforce expansive access rules.",
2638
+
"location": "query",
2639
+
"type": "boolean"
2640
+
},
2635
2641
"fileId": {
2636
2642
"description": "The ID for the file or shared drive.",
2637
2643
"location": "path",
@@ -2905,6 +2911,12 @@
2905
2911
"permissionId"
2906
2912
],
2907
2913
"parameters": {
2914
+
"enforceExpansiveAccess": {
2915
+
"default": "false",
2916
+
"description": "Whether the request should enforce expansive access rules.",
2917
+
"location": "query",
2918
+
"type": "boolean"
2919
+
},
2908
2920
"fileId": {
2909
2921
"description": "The ID for the file or shared drive.",
2910
2922
"location": "path",
@@ -2971,6 +2983,12 @@
2971
2983
"permissionId"
2972
2984
],
2973
2985
"parameters": {
2986
+
"enforceExpansiveAccess": {
2987
+
"default": "false",
2988
+
"description": "Whether the request should enforce expansive access rules.",
2989
+
"location": "query",
2990
+
"type": "boolean"
2991
+
},
2974
2992
"fileId": {
2975
2993
"description": "The ID for the file or shared drive.",
2976
2994
"location": "path",
@@ -3869,7 +3887,7 @@
3869
3887
}
3870
3888
}
3871
3889
},
3872
-
"revision": "20250122",
3890
+
"revision": "20250216",
3873
3891
"rootUrl": "https://www.googleapis.com/",
3874
3892
"schemas": {
3875
3893
"About": {
@@ -5056,6 +5074,11 @@
5056
5074
"description": "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.",
5057
5075
"type": "boolean"
5058
5076
},
5077
+
"canDisableInheritedPermissions": {
5078
+
"description": "Output only. Whether a user can disable inherited permissions.",
5079
+
"readOnly": true,
5080
+
"type": "boolean"
5081
+
},
5059
5082
"canDownload": {
5060
5083
"description": "Output only. Whether the current user can download this file.",
5061
5084
"type": "boolean"
@@ -5064,6 +5087,11 @@
5064
5087
"description": "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`.",
5065
5088
"type": "boolean"
5066
5089
},
5090
+
"canEnableInheritedPermissions": {
5091
+
"description": "Output only. Whether a user can re-enable inherited permissions.",
5092
+
"readOnly": true,
5093
+
"type": "boolean"
5094
+
},
5067
5095
"canListChildren": {
5068
5096
"description": "Output only. Whether the current user can list the children of this folder. This is always false when the item is not a folder.",
5069
5097
"type": "boolean"
@@ -5413,6 +5441,10 @@
5413
5441
},
5414
5442
"type": "object"
5415
5443
},
5444
+
"inheritedPermissionsDisabled": {
5445
+
"description": "Whether this file has inherited permissions disabled. Inherited permissions are enabled by default.",
5446
+
"type": "boolean"
5447
+
},
5416
5448
"isAppAuthorized": {
5417
5449
"description": "Output only. Whether the file was created or opened by the requesting app.",
5418
5450
"type": "boolean"
@@ -6122,6 +6154,10 @@
6122
6154
"description": "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.",
6123
6155
"type": "string"
6124
6156
},
6157
+
"inheritedPermissionsDisabled": {
6158
+
"description": "When true, only organizers, owners, and users with permissions added directly on the item can access it.",
6159
+
"type": "boolean"
6160
+
},
6125
6161
"kind": {
6126
6162
"default": "drive#permission",
6127
6163
"description": "Output only. This is always `drive#permission`.",
@@ -6136,7 +6172,7 @@
6136
6172
"type": "boolean"
6137
6173
},
6138
6174
"permissionDetails": {
6139
-
"description": "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.",
6175
+
"description": "Output only. Details of whether the permissions on this item are inherited or directly on this item.",
6140
6176
"items": {
6141
6177
"properties": {
6142
6178
"additionalRoles": {
@@ -6147,11 +6183,11 @@
6147
6183
"type": "array"
6148
6184
},
6149
6185
"inherited": {
6150
-
"description": "Output only. Whether this permission is inherited. This field is always populated. This is an output-only field.",
6186
+
"description": "Output only. Whether this permission is inherited. This field is always populated.",
6151
6187
"type": "boolean"
6152
6188
},
6153
6189
"inheritedFrom": {
6154
-
"description": "Output only. The ID of the item from which this permission is inherited. This is an output-only field.",
6190
+
"description": "Output only. The ID of the item from which this permission is inherited. This is only populated for items in shared drives.",
6155
6191
"type": "string"
6156
6192
},
6157
6193
"permissionType": {
@@ -6238,7 +6274,7 @@
6238
6274
"type": "string"
6239
6275
},
6240
6276
"view": {
6241
-
"description": "Indicates the view for this permission. Only populated for permissions that belong to a view. `published` is the only supported value.",
6277
+
"description": "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'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. ",
Copy file name to clipboardexpand all lines: googleapiclient/discovery_cache/documents/drive.v3.json
+32-4
Original file line number
Diff line number
Diff line change
@@ -2021,6 +2021,12 @@
2021
2021
"permissionId"
2022
2022
],
2023
2023
"parameters": {
2024
+
"enforceExpansiveAccess": {
2025
+
"default": "false",
2026
+
"description": "Whether the request should enforce expansive access rules.",
2027
+
"location": "query",
2028
+
"type": "boolean"
2029
+
},
2024
2030
"fileId": {
2025
2031
"description": "The ID of the file or shared drive.",
2026
2032
"location": "path",
@@ -2192,6 +2198,12 @@
2192
2198
"permissionId"
2193
2199
],
2194
2200
"parameters": {
2201
+
"enforceExpansiveAccess": {
2202
+
"default": "false",
2203
+
"description": "Whether the request should enforce expansive access rules.",
2204
+
"location": "query",
2205
+
"type": "boolean"
2206
+
},
2195
2207
"fileId": {
2196
2208
"description": "The ID of the file or shared drive.",
2197
2209
"location": "path",
@@ -2788,7 +2800,7 @@
2788
2800
}
2789
2801
}
2790
2802
},
2791
-
"revision": "20250210",
2803
+
"revision": "20250216",
2792
2804
"rootUrl": "https://www.googleapis.com/",
2793
2805
"schemas": {
2794
2806
"About": {
@@ -3689,6 +3701,10 @@
3689
3701
"description": "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.",
3690
3702
"type": "boolean"
3691
3703
},
3704
+
"canDisableInheritedPermissions": {
3705
+
"description": "Whether a user can disable inherited permissions.",
3706
+
"type": "boolean"
3707
+
},
3692
3708
"canDownload": {
3693
3709
"description": "Output only. Whether the current user can download this file.",
3694
3710
"type": "boolean"
@@ -3697,6 +3713,10 @@
3697
3713
"description": "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`.",
3698
3714
"type": "boolean"
3699
3715
},
3716
+
"canEnableInheritedPermissions": {
3717
+
"description": "Whether a user can re-enable inherited permissions.",
3718
+
"type": "boolean"
3719
+
},
3700
3720
"canListChildren": {
3701
3721
"description": "Output only. Whether the current user can list the children of this folder. This is always false when the item is not a folder.",
3702
3722
"type": "boolean"
@@ -4030,6 +4050,10 @@
4030
4050
},
4031
4051
"type": "object"
4032
4052
},
4053
+
"inheritedPermissionsDisabled": {
4054
+
"description": "Whether this file has inherited permissions disabled. Inherited permissions are enabled by default.",
4055
+
"type": "boolean"
4056
+
},
4033
4057
"isAppAuthorized": {
4034
4058
"description": "Output only. Whether the file was created or opened by the requesting app.",
4035
4059
"type": "boolean"
@@ -4666,6 +4690,10 @@
4666
4690
"description": "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.",
4667
4691
"type": "string"
4668
4692
},
4693
+
"inheritedPermissionsDisabled": {
4694
+
"description": "When true, only organizers, owners, and users with permissions added directly on the item can access it.",
4695
+
"type": "boolean"
4696
+
},
4669
4697
"kind": {
4670
4698
"default": "drive#permission",
4671
4699
"description": "Output only. Identifies what kind of resource this is. Value: the fixed string `\"drive#permission\"`.",
@@ -4676,15 +4704,15 @@
4676
4704
"type": "boolean"
4677
4705
},
4678
4706
"permissionDetails": {
4679
-
"description": "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.",
4707
+
"description": "Output only. Details of whether the permissions on this item are inherited or directly on this item.",
4680
4708
"items": {
4681
4709
"properties": {
4682
4710
"inherited": {
4683
4711
"description": "Output only. Whether this permission is inherited. This field is always populated. This is an output-only field.",
4684
4712
"type": "boolean"
4685
4713
},
4686
4714
"inheritedFrom": {
4687
-
"description": "Output only. The ID of the item from which this permission is inherited. This is an output-only field.",
4715
+
"description": "Output only. The ID of the item from which this permission is inherited. This is only populated for items in shared drives.",
4688
4716
"type": "string"
4689
4717
},
4690
4718
"permissionType": {
@@ -4755,7 +4783,7 @@
4755
4783
"type": "string"
4756
4784
},
4757
4785
"view": {
4758
-
"description": "Indicates the view for this permission. Only populated for permissions that belong to a view. 'published' is the only supported value.",
4786
+
"description": "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'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. ",
0 commit comments