diff --git a/docs/dyn/drive_v2.changes.html b/docs/dyn/drive_v2.changes.html
index 905e453584f..918ab52fa67 100644
--- a/docs/dyn/drive_v2.changes.html
+++ b/docs/dyn/drive_v2.changes.html
@@ -169,6 +169,7 @@
Method Details
"canAddMyDriveParent": 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.
"canChangeCopyRequiresWriterPermission": True or False, # Whether the current user can change the copyRequiresWriterPermission restriction of this file.
"canChangeRestrictedDownload": True or False, # Deprecated
+ "canChangeSecurityUpdateEnabled": True or False, # Whether the current user can change the securityUpdateEnabled field on link share metadata.
"canComment": True or False, # Whether the current user can comment on this file.
"canCopy": True or False, # 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.
"canDelete": True or False, # Whether the current user can delete this file.
@@ -292,6 +293,10 @@ Method Details
},
"lastModifyingUserName": "A String", # Name of the last user to modify this file.
"lastViewedByMeDate": "A String", # Last time this file was viewed by the user (formatted RFC 3339 timestamp).
+ "linkShareMetadata": { # Contains details about the link URLs that clients are using to refer to this item.
+ "securityUpdateEligible": True or False, # Whether the file is eligible for security update.
+ "securityUpdateEnabled": True or False, # Whether the security update is enabled for this file.
+ },
"markedViewedByMeDate": "A String", # Deprecated.
"md5Checksum": "A String", # An MD5 checksum for the content of this file. This field is only populated for files with content stored in Google Drive; it is not populated for Docs Editors or shortcut files.
"mimeType": "A String", # The MIME type of the file. This is only mutable on update when uploading new content. This field can be left blank, and the mimetype will be determined from the uploaded content's MIME type.
@@ -411,6 +416,7 @@ Method Details
},
],
"quotaBytesUsed": "A String", # The number of quota bytes used by this file.
+ "resourceKey": "A String", # A key needed to access the item via a shared link.
"selfLink": "A String", # A link back to this file.
"shareable": True or False, # Deprecated: use capabilities/canShare.
"shared": True or False, # Whether the file has been shared. Not populated for items in shared drives.
@@ -428,6 +434,7 @@ Method Details
"shortcutDetails": { # Shortcut file details. Only populated for shortcut files, which have the mimeType field set to application/vnd.google-apps.shortcut.
"targetId": "A String", # The ID of the file that this shortcut points to.
"targetMimeType": "A String", # The MIME type of the file that this shortcut points to. The value of this field is a snapshot of the target's MIME type, captured when the shortcut is created.
+ "targetResourceKey": "A String", # The ResourceKey for the target file.
},
"spaces": [ # The list of spaces which contain the file. Supported values are 'drive', 'appDataFolder' and 'photos'.
"A String",
@@ -678,6 +685,7 @@ Method Details
"canAddMyDriveParent": 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.
"canChangeCopyRequiresWriterPermission": True or False, # Whether the current user can change the copyRequiresWriterPermission restriction of this file.
"canChangeRestrictedDownload": True or False, # Deprecated
+ "canChangeSecurityUpdateEnabled": True or False, # Whether the current user can change the securityUpdateEnabled field on link share metadata.
"canComment": True or False, # Whether the current user can comment on this file.
"canCopy": True or False, # 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.
"canDelete": True or False, # Whether the current user can delete this file.
@@ -801,6 +809,10 @@ Method Details
},
"lastModifyingUserName": "A String", # Name of the last user to modify this file.
"lastViewedByMeDate": "A String", # Last time this file was viewed by the user (formatted RFC 3339 timestamp).
+ "linkShareMetadata": { # Contains details about the link URLs that clients are using to refer to this item.
+ "securityUpdateEligible": True or False, # Whether the file is eligible for security update.
+ "securityUpdateEnabled": True or False, # Whether the security update is enabled for this file.
+ },
"markedViewedByMeDate": "A String", # Deprecated.
"md5Checksum": "A String", # An MD5 checksum for the content of this file. This field is only populated for files with content stored in Google Drive; it is not populated for Docs Editors or shortcut files.
"mimeType": "A String", # The MIME type of the file. This is only mutable on update when uploading new content. This field can be left blank, and the mimetype will be determined from the uploaded content's MIME type.
@@ -920,6 +932,7 @@ Method Details
},
],
"quotaBytesUsed": "A String", # The number of quota bytes used by this file.
+ "resourceKey": "A String", # A key needed to access the item via a shared link.
"selfLink": "A String", # A link back to this file.
"shareable": True or False, # Deprecated: use capabilities/canShare.
"shared": True or False, # Whether the file has been shared. Not populated for items in shared drives.
@@ -937,6 +950,7 @@ Method Details
"shortcutDetails": { # Shortcut file details. Only populated for shortcut files, which have the mimeType field set to application/vnd.google-apps.shortcut.
"targetId": "A String", # The ID of the file that this shortcut points to.
"targetMimeType": "A String", # The MIME type of the file that this shortcut points to. The value of this field is a snapshot of the target's MIME type, captured when the shortcut is created.
+ "targetResourceKey": "A String", # The ResourceKey for the target file.
},
"spaces": [ # The list of spaces which contain the file. Supported values are 'drive', 'appDataFolder' and 'photos'.
"A String",
diff --git a/docs/dyn/drive_v2.files.html b/docs/dyn/drive_v2.files.html
index cbc3565af4d..07e32b7278c 100644
--- a/docs/dyn/drive_v2.files.html
+++ b/docs/dyn/drive_v2.files.html
@@ -157,6 +157,7 @@ Method Details
"canAddMyDriveParent": 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.
"canChangeCopyRequiresWriterPermission": True or False, # Whether the current user can change the copyRequiresWriterPermission restriction of this file.
"canChangeRestrictedDownload": True or False, # Deprecated
+ "canChangeSecurityUpdateEnabled": True or False, # Whether the current user can change the securityUpdateEnabled field on link share metadata.
"canComment": True or False, # Whether the current user can comment on this file.
"canCopy": True or False, # 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.
"canDelete": True or False, # Whether the current user can delete this file.
@@ -280,6 +281,10 @@ Method Details
},
"lastModifyingUserName": "A String", # Name of the last user to modify this file.
"lastViewedByMeDate": "A String", # Last time this file was viewed by the user (formatted RFC 3339 timestamp).
+ "linkShareMetadata": { # Contains details about the link URLs that clients are using to refer to this item.
+ "securityUpdateEligible": True or False, # Whether the file is eligible for security update.
+ "securityUpdateEnabled": True or False, # Whether the security update is enabled for this file.
+ },
"markedViewedByMeDate": "A String", # Deprecated.
"md5Checksum": "A String", # An MD5 checksum for the content of this file. This field is only populated for files with content stored in Google Drive; it is not populated for Docs Editors or shortcut files.
"mimeType": "A String", # The MIME type of the file. This is only mutable on update when uploading new content. This field can be left blank, and the mimetype will be determined from the uploaded content's MIME type.
@@ -399,6 +404,7 @@ Method Details
},
],
"quotaBytesUsed": "A String", # The number of quota bytes used by this file.
+ "resourceKey": "A String", # A key needed to access the item via a shared link.
"selfLink": "A String", # A link back to this file.
"shareable": True or False, # Deprecated: use capabilities/canShare.
"shared": True or False, # Whether the file has been shared. Not populated for items in shared drives.
@@ -416,6 +422,7 @@ Method Details
"shortcutDetails": { # Shortcut file details. Only populated for shortcut files, which have the mimeType field set to application/vnd.google-apps.shortcut.
"targetId": "A String", # The ID of the file that this shortcut points to.
"targetMimeType": "A String", # The MIME type of the file that this shortcut points to. The value of this field is a snapshot of the target's MIME type, captured when the shortcut is created.
+ "targetResourceKey": "A String", # The ResourceKey for the target file.
},
"spaces": [ # The list of spaces which contain the file. Supported values are 'drive', 'appDataFolder' and 'photos'.
"A String",
@@ -542,6 +549,7 @@ Method Details
"canAddMyDriveParent": 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.
"canChangeCopyRequiresWriterPermission": True or False, # Whether the current user can change the copyRequiresWriterPermission restriction of this file.
"canChangeRestrictedDownload": True or False, # Deprecated
+ "canChangeSecurityUpdateEnabled": True or False, # Whether the current user can change the securityUpdateEnabled field on link share metadata.
"canComment": True or False, # Whether the current user can comment on this file.
"canCopy": True or False, # 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.
"canDelete": True or False, # Whether the current user can delete this file.
@@ -665,6 +673,10 @@ Method Details
},
"lastModifyingUserName": "A String", # Name of the last user to modify this file.
"lastViewedByMeDate": "A String", # Last time this file was viewed by the user (formatted RFC 3339 timestamp).
+ "linkShareMetadata": { # Contains details about the link URLs that clients are using to refer to this item.
+ "securityUpdateEligible": True or False, # Whether the file is eligible for security update.
+ "securityUpdateEnabled": True or False, # Whether the security update is enabled for this file.
+ },
"markedViewedByMeDate": "A String", # Deprecated.
"md5Checksum": "A String", # An MD5 checksum for the content of this file. This field is only populated for files with content stored in Google Drive; it is not populated for Docs Editors or shortcut files.
"mimeType": "A String", # The MIME type of the file. This is only mutable on update when uploading new content. This field can be left blank, and the mimetype will be determined from the uploaded content's MIME type.
@@ -784,6 +796,7 @@ Method Details
},
],
"quotaBytesUsed": "A String", # The number of quota bytes used by this file.
+ "resourceKey": "A String", # A key needed to access the item via a shared link.
"selfLink": "A String", # A link back to this file.
"shareable": True or False, # Deprecated: use capabilities/canShare.
"shared": True or False, # Whether the file has been shared. Not populated for items in shared drives.
@@ -801,6 +814,7 @@ Method Details
"shortcutDetails": { # Shortcut file details. Only populated for shortcut files, which have the mimeType field set to application/vnd.google-apps.shortcut.
"targetId": "A String", # The ID of the file that this shortcut points to.
"targetMimeType": "A String", # The MIME type of the file that this shortcut points to. The value of this field is a snapshot of the target's MIME type, captured when the shortcut is created.
+ "targetResourceKey": "A String", # The ResourceKey for the target file.
},
"spaces": [ # The list of spaces which contain the file. Supported values are 'drive', 'appDataFolder' and 'photos'.
"A String",
@@ -992,6 +1006,7 @@ Method Details
"canAddMyDriveParent": 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.
"canChangeCopyRequiresWriterPermission": True or False, # Whether the current user can change the copyRequiresWriterPermission restriction of this file.
"canChangeRestrictedDownload": True or False, # Deprecated
+ "canChangeSecurityUpdateEnabled": True or False, # Whether the current user can change the securityUpdateEnabled field on link share metadata.
"canComment": True or False, # Whether the current user can comment on this file.
"canCopy": True or False, # 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.
"canDelete": True or False, # Whether the current user can delete this file.
@@ -1115,6 +1130,10 @@ Method Details
},
"lastModifyingUserName": "A String", # Name of the last user to modify this file.
"lastViewedByMeDate": "A String", # Last time this file was viewed by the user (formatted RFC 3339 timestamp).
+ "linkShareMetadata": { # Contains details about the link URLs that clients are using to refer to this item.
+ "securityUpdateEligible": True or False, # Whether the file is eligible for security update.
+ "securityUpdateEnabled": True or False, # Whether the security update is enabled for this file.
+ },
"markedViewedByMeDate": "A String", # Deprecated.
"md5Checksum": "A String", # An MD5 checksum for the content of this file. This field is only populated for files with content stored in Google Drive; it is not populated for Docs Editors or shortcut files.
"mimeType": "A String", # The MIME type of the file. This is only mutable on update when uploading new content. This field can be left blank, and the mimetype will be determined from the uploaded content's MIME type.
@@ -1234,6 +1253,7 @@ Method Details
},
],
"quotaBytesUsed": "A String", # The number of quota bytes used by this file.
+ "resourceKey": "A String", # A key needed to access the item via a shared link.
"selfLink": "A String", # A link back to this file.
"shareable": True or False, # Deprecated: use capabilities/canShare.
"shared": True or False, # Whether the file has been shared. Not populated for items in shared drives.
@@ -1251,6 +1271,7 @@ Method Details
"shortcutDetails": { # Shortcut file details. Only populated for shortcut files, which have the mimeType field set to application/vnd.google-apps.shortcut.
"targetId": "A String", # The ID of the file that this shortcut points to.
"targetMimeType": "A String", # The MIME type of the file that this shortcut points to. The value of this field is a snapshot of the target's MIME type, captured when the shortcut is created.
+ "targetResourceKey": "A String", # The ResourceKey for the target file.
},
"spaces": [ # The list of spaces which contain the file. Supported values are 'drive', 'appDataFolder' and 'photos'.
"A String",
@@ -1391,6 +1412,7 @@ Method Details
"canAddMyDriveParent": 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.
"canChangeCopyRequiresWriterPermission": True or False, # Whether the current user can change the copyRequiresWriterPermission restriction of this file.
"canChangeRestrictedDownload": True or False, # Deprecated
+ "canChangeSecurityUpdateEnabled": True or False, # Whether the current user can change the securityUpdateEnabled field on link share metadata.
"canComment": True or False, # Whether the current user can comment on this file.
"canCopy": True or False, # 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.
"canDelete": True or False, # Whether the current user can delete this file.
@@ -1514,6 +1536,10 @@ Method Details
},
"lastModifyingUserName": "A String", # Name of the last user to modify this file.
"lastViewedByMeDate": "A String", # Last time this file was viewed by the user (formatted RFC 3339 timestamp).
+ "linkShareMetadata": { # Contains details about the link URLs that clients are using to refer to this item.
+ "securityUpdateEligible": True or False, # Whether the file is eligible for security update.
+ "securityUpdateEnabled": True or False, # Whether the security update is enabled for this file.
+ },
"markedViewedByMeDate": "A String", # Deprecated.
"md5Checksum": "A String", # An MD5 checksum for the content of this file. This field is only populated for files with content stored in Google Drive; it is not populated for Docs Editors or shortcut files.
"mimeType": "A String", # The MIME type of the file. This is only mutable on update when uploading new content. This field can be left blank, and the mimetype will be determined from the uploaded content's MIME type.
@@ -1633,6 +1659,7 @@ Method Details
},
],
"quotaBytesUsed": "A String", # The number of quota bytes used by this file.
+ "resourceKey": "A String", # A key needed to access the item via a shared link.
"selfLink": "A String", # A link back to this file.
"shareable": True or False, # Deprecated: use capabilities/canShare.
"shared": True or False, # Whether the file has been shared. Not populated for items in shared drives.
@@ -1650,6 +1677,7 @@ Method Details
"shortcutDetails": { # Shortcut file details. Only populated for shortcut files, which have the mimeType field set to application/vnd.google-apps.shortcut.
"targetId": "A String", # The ID of the file that this shortcut points to.
"targetMimeType": "A String", # The MIME type of the file that this shortcut points to. The value of this field is a snapshot of the target's MIME type, captured when the shortcut is created.
+ "targetResourceKey": "A String", # The ResourceKey for the target file.
},
"spaces": [ # The list of spaces which contain the file. Supported values are 'drive', 'appDataFolder' and 'photos'.
"A String",
@@ -1779,6 +1807,7 @@ Method Details
"canAddMyDriveParent": 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.
"canChangeCopyRequiresWriterPermission": True or False, # Whether the current user can change the copyRequiresWriterPermission restriction of this file.
"canChangeRestrictedDownload": True or False, # Deprecated
+ "canChangeSecurityUpdateEnabled": True or False, # Whether the current user can change the securityUpdateEnabled field on link share metadata.
"canComment": True or False, # Whether the current user can comment on this file.
"canCopy": True or False, # 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.
"canDelete": True or False, # Whether the current user can delete this file.
@@ -1902,6 +1931,10 @@ Method Details
},
"lastModifyingUserName": "A String", # Name of the last user to modify this file.
"lastViewedByMeDate": "A String", # Last time this file was viewed by the user (formatted RFC 3339 timestamp).
+ "linkShareMetadata": { # Contains details about the link URLs that clients are using to refer to this item.
+ "securityUpdateEligible": True or False, # Whether the file is eligible for security update.
+ "securityUpdateEnabled": True or False, # Whether the security update is enabled for this file.
+ },
"markedViewedByMeDate": "A String", # Deprecated.
"md5Checksum": "A String", # An MD5 checksum for the content of this file. This field is only populated for files with content stored in Google Drive; it is not populated for Docs Editors or shortcut files.
"mimeType": "A String", # The MIME type of the file. This is only mutable on update when uploading new content. This field can be left blank, and the mimetype will be determined from the uploaded content's MIME type.
@@ -2021,6 +2054,7 @@ Method Details
},
],
"quotaBytesUsed": "A String", # The number of quota bytes used by this file.
+ "resourceKey": "A String", # A key needed to access the item via a shared link.
"selfLink": "A String", # A link back to this file.
"shareable": True or False, # Deprecated: use capabilities/canShare.
"shared": True or False, # Whether the file has been shared. Not populated for items in shared drives.
@@ -2038,6 +2072,7 @@ Method Details
"shortcutDetails": { # Shortcut file details. Only populated for shortcut files, which have the mimeType field set to application/vnd.google-apps.shortcut.
"targetId": "A String", # The ID of the file that this shortcut points to.
"targetMimeType": "A String", # The MIME type of the file that this shortcut points to. The value of this field is a snapshot of the target's MIME type, captured when the shortcut is created.
+ "targetResourceKey": "A String", # The ResourceKey for the target file.
},
"spaces": [ # The list of spaces which contain the file. Supported values are 'drive', 'appDataFolder' and 'photos'.
"A String",
@@ -2181,6 +2216,7 @@ Method Details
"canAddMyDriveParent": 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.
"canChangeCopyRequiresWriterPermission": True or False, # Whether the current user can change the copyRequiresWriterPermission restriction of this file.
"canChangeRestrictedDownload": True or False, # Deprecated
+ "canChangeSecurityUpdateEnabled": True or False, # Whether the current user can change the securityUpdateEnabled field on link share metadata.
"canComment": True or False, # Whether the current user can comment on this file.
"canCopy": True or False, # 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.
"canDelete": True or False, # Whether the current user can delete this file.
@@ -2304,6 +2340,10 @@ Method Details
},
"lastModifyingUserName": "A String", # Name of the last user to modify this file.
"lastViewedByMeDate": "A String", # Last time this file was viewed by the user (formatted RFC 3339 timestamp).
+ "linkShareMetadata": { # Contains details about the link URLs that clients are using to refer to this item.
+ "securityUpdateEligible": True or False, # Whether the file is eligible for security update.
+ "securityUpdateEnabled": True or False, # Whether the security update is enabled for this file.
+ },
"markedViewedByMeDate": "A String", # Deprecated.
"md5Checksum": "A String", # An MD5 checksum for the content of this file. This field is only populated for files with content stored in Google Drive; it is not populated for Docs Editors or shortcut files.
"mimeType": "A String", # The MIME type of the file. This is only mutable on update when uploading new content. This field can be left blank, and the mimetype will be determined from the uploaded content's MIME type.
@@ -2423,6 +2463,7 @@ Method Details
},
],
"quotaBytesUsed": "A String", # The number of quota bytes used by this file.
+ "resourceKey": "A String", # A key needed to access the item via a shared link.
"selfLink": "A String", # A link back to this file.
"shareable": True or False, # Deprecated: use capabilities/canShare.
"shared": True or False, # Whether the file has been shared. Not populated for items in shared drives.
@@ -2440,6 +2481,7 @@ Method Details
"shortcutDetails": { # Shortcut file details. Only populated for shortcut files, which have the mimeType field set to application/vnd.google-apps.shortcut.
"targetId": "A String", # The ID of the file that this shortcut points to.
"targetMimeType": "A String", # The MIME type of the file that this shortcut points to. The value of this field is a snapshot of the target's MIME type, captured when the shortcut is created.
+ "targetResourceKey": "A String", # The ResourceKey for the target file.
},
"spaces": [ # The list of spaces which contain the file. Supported values are 'drive', 'appDataFolder' and 'photos'.
"A String",
@@ -2578,6 +2620,7 @@ Method Details
"canAddMyDriveParent": 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.
"canChangeCopyRequiresWriterPermission": True or False, # Whether the current user can change the copyRequiresWriterPermission restriction of this file.
"canChangeRestrictedDownload": True or False, # Deprecated
+ "canChangeSecurityUpdateEnabled": True or False, # Whether the current user can change the securityUpdateEnabled field on link share metadata.
"canComment": True or False, # Whether the current user can comment on this file.
"canCopy": True or False, # 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.
"canDelete": True or False, # Whether the current user can delete this file.
@@ -2701,6 +2744,10 @@ Method Details
},
"lastModifyingUserName": "A String", # Name of the last user to modify this file.
"lastViewedByMeDate": "A String", # Last time this file was viewed by the user (formatted RFC 3339 timestamp).
+ "linkShareMetadata": { # Contains details about the link URLs that clients are using to refer to this item.
+ "securityUpdateEligible": True or False, # Whether the file is eligible for security update.
+ "securityUpdateEnabled": True or False, # Whether the security update is enabled for this file.
+ },
"markedViewedByMeDate": "A String", # Deprecated.
"md5Checksum": "A String", # An MD5 checksum for the content of this file. This field is only populated for files with content stored in Google Drive; it is not populated for Docs Editors or shortcut files.
"mimeType": "A String", # The MIME type of the file. This is only mutable on update when uploading new content. This field can be left blank, and the mimetype will be determined from the uploaded content's MIME type.
@@ -2820,6 +2867,7 @@ Method Details
},
],
"quotaBytesUsed": "A String", # The number of quota bytes used by this file.
+ "resourceKey": "A String", # A key needed to access the item via a shared link.
"selfLink": "A String", # A link back to this file.
"shareable": True or False, # Deprecated: use capabilities/canShare.
"shared": True or False, # Whether the file has been shared. Not populated for items in shared drives.
@@ -2837,6 +2885,7 @@ Method Details
"shortcutDetails": { # Shortcut file details. Only populated for shortcut files, which have the mimeType field set to application/vnd.google-apps.shortcut.
"targetId": "A String", # The ID of the file that this shortcut points to.
"targetMimeType": "A String", # The MIME type of the file that this shortcut points to. The value of this field is a snapshot of the target's MIME type, captured when the shortcut is created.
+ "targetResourceKey": "A String", # The ResourceKey for the target file.
},
"spaces": [ # The list of spaces which contain the file. Supported values are 'drive', 'appDataFolder' and 'photos'.
"A String",
@@ -2973,6 +3022,7 @@ Method Details
"canAddMyDriveParent": 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.
"canChangeCopyRequiresWriterPermission": True or False, # Whether the current user can change the copyRequiresWriterPermission restriction of this file.
"canChangeRestrictedDownload": True or False, # Deprecated
+ "canChangeSecurityUpdateEnabled": True or False, # Whether the current user can change the securityUpdateEnabled field on link share metadata.
"canComment": True or False, # Whether the current user can comment on this file.
"canCopy": True or False, # 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.
"canDelete": True or False, # Whether the current user can delete this file.
@@ -3096,6 +3146,10 @@ Method Details
},
"lastModifyingUserName": "A String", # Name of the last user to modify this file.
"lastViewedByMeDate": "A String", # Last time this file was viewed by the user (formatted RFC 3339 timestamp).
+ "linkShareMetadata": { # Contains details about the link URLs that clients are using to refer to this item.
+ "securityUpdateEligible": True or False, # Whether the file is eligible for security update.
+ "securityUpdateEnabled": True or False, # Whether the security update is enabled for this file.
+ },
"markedViewedByMeDate": "A String", # Deprecated.
"md5Checksum": "A String", # An MD5 checksum for the content of this file. This field is only populated for files with content stored in Google Drive; it is not populated for Docs Editors or shortcut files.
"mimeType": "A String", # The MIME type of the file. This is only mutable on update when uploading new content. This field can be left blank, and the mimetype will be determined from the uploaded content's MIME type.
@@ -3215,6 +3269,7 @@ Method Details
},
],
"quotaBytesUsed": "A String", # The number of quota bytes used by this file.
+ "resourceKey": "A String", # A key needed to access the item via a shared link.
"selfLink": "A String", # A link back to this file.
"shareable": True or False, # Deprecated: use capabilities/canShare.
"shared": True or False, # Whether the file has been shared. Not populated for items in shared drives.
@@ -3232,6 +3287,7 @@ Method Details
"shortcutDetails": { # Shortcut file details. Only populated for shortcut files, which have the mimeType field set to application/vnd.google-apps.shortcut.
"targetId": "A String", # The ID of the file that this shortcut points to.
"targetMimeType": "A String", # The MIME type of the file that this shortcut points to. The value of this field is a snapshot of the target's MIME type, captured when the shortcut is created.
+ "targetResourceKey": "A String", # The ResourceKey for the target file.
},
"spaces": [ # The list of spaces which contain the file. Supported values are 'drive', 'appDataFolder' and 'photos'.
"A String",
@@ -3354,6 +3410,7 @@ Method Details
"canAddMyDriveParent": 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.
"canChangeCopyRequiresWriterPermission": True or False, # Whether the current user can change the copyRequiresWriterPermission restriction of this file.
"canChangeRestrictedDownload": True or False, # Deprecated
+ "canChangeSecurityUpdateEnabled": True or False, # Whether the current user can change the securityUpdateEnabled field on link share metadata.
"canComment": True or False, # Whether the current user can comment on this file.
"canCopy": True or False, # 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.
"canDelete": True or False, # Whether the current user can delete this file.
@@ -3477,6 +3534,10 @@ Method Details
},
"lastModifyingUserName": "A String", # Name of the last user to modify this file.
"lastViewedByMeDate": "A String", # Last time this file was viewed by the user (formatted RFC 3339 timestamp).
+ "linkShareMetadata": { # Contains details about the link URLs that clients are using to refer to this item.
+ "securityUpdateEligible": True or False, # Whether the file is eligible for security update.
+ "securityUpdateEnabled": True or False, # Whether the security update is enabled for this file.
+ },
"markedViewedByMeDate": "A String", # Deprecated.
"md5Checksum": "A String", # An MD5 checksum for the content of this file. This field is only populated for files with content stored in Google Drive; it is not populated for Docs Editors or shortcut files.
"mimeType": "A String", # The MIME type of the file. This is only mutable on update when uploading new content. This field can be left blank, and the mimetype will be determined from the uploaded content's MIME type.
@@ -3596,6 +3657,7 @@ Method Details
},
],
"quotaBytesUsed": "A String", # The number of quota bytes used by this file.
+ "resourceKey": "A String", # A key needed to access the item via a shared link.
"selfLink": "A String", # A link back to this file.
"shareable": True or False, # Deprecated: use capabilities/canShare.
"shared": True or False, # Whether the file has been shared. Not populated for items in shared drives.
@@ -3613,6 +3675,7 @@ Method Details
"shortcutDetails": { # Shortcut file details. Only populated for shortcut files, which have the mimeType field set to application/vnd.google-apps.shortcut.
"targetId": "A String", # The ID of the file that this shortcut points to.
"targetMimeType": "A String", # The MIME type of the file that this shortcut points to. The value of this field is a snapshot of the target's MIME type, captured when the shortcut is created.
+ "targetResourceKey": "A String", # The ResourceKey for the target file.
},
"spaces": [ # The list of spaces which contain the file. Supported values are 'drive', 'appDataFolder' and 'photos'.
"A String",
@@ -3735,6 +3798,7 @@ Method Details
"canAddMyDriveParent": 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.
"canChangeCopyRequiresWriterPermission": True or False, # Whether the current user can change the copyRequiresWriterPermission restriction of this file.
"canChangeRestrictedDownload": True or False, # Deprecated
+ "canChangeSecurityUpdateEnabled": True or False, # Whether the current user can change the securityUpdateEnabled field on link share metadata.
"canComment": True or False, # Whether the current user can comment on this file.
"canCopy": True or False, # 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.
"canDelete": True or False, # Whether the current user can delete this file.
@@ -3858,6 +3922,10 @@ Method Details
},
"lastModifyingUserName": "A String", # Name of the last user to modify this file.
"lastViewedByMeDate": "A String", # Last time this file was viewed by the user (formatted RFC 3339 timestamp).
+ "linkShareMetadata": { # Contains details about the link URLs that clients are using to refer to this item.
+ "securityUpdateEligible": True or False, # Whether the file is eligible for security update.
+ "securityUpdateEnabled": True or False, # Whether the security update is enabled for this file.
+ },
"markedViewedByMeDate": "A String", # Deprecated.
"md5Checksum": "A String", # An MD5 checksum for the content of this file. This field is only populated for files with content stored in Google Drive; it is not populated for Docs Editors or shortcut files.
"mimeType": "A String", # The MIME type of the file. This is only mutable on update when uploading new content. This field can be left blank, and the mimetype will be determined from the uploaded content's MIME type.
@@ -3977,6 +4045,7 @@ Method Details
},
],
"quotaBytesUsed": "A String", # The number of quota bytes used by this file.
+ "resourceKey": "A String", # A key needed to access the item via a shared link.
"selfLink": "A String", # A link back to this file.
"shareable": True or False, # Deprecated: use capabilities/canShare.
"shared": True or False, # Whether the file has been shared. Not populated for items in shared drives.
@@ -3994,6 +4063,7 @@ Method Details
"shortcutDetails": { # Shortcut file details. Only populated for shortcut files, which have the mimeType field set to application/vnd.google-apps.shortcut.
"targetId": "A String", # The ID of the file that this shortcut points to.
"targetMimeType": "A String", # The MIME type of the file that this shortcut points to. The value of this field is a snapshot of the target's MIME type, captured when the shortcut is created.
+ "targetResourceKey": "A String", # The ResourceKey for the target file.
},
"spaces": [ # The list of spaces which contain the file. Supported values are 'drive', 'appDataFolder' and 'photos'.
"A String",
@@ -4116,6 +4186,7 @@ Method Details
"canAddMyDriveParent": 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.
"canChangeCopyRequiresWriterPermission": True or False, # Whether the current user can change the copyRequiresWriterPermission restriction of this file.
"canChangeRestrictedDownload": True or False, # Deprecated
+ "canChangeSecurityUpdateEnabled": True or False, # Whether the current user can change the securityUpdateEnabled field on link share metadata.
"canComment": True or False, # Whether the current user can comment on this file.
"canCopy": True or False, # 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.
"canDelete": True or False, # Whether the current user can delete this file.
@@ -4239,6 +4310,10 @@ Method Details
},
"lastModifyingUserName": "A String", # Name of the last user to modify this file.
"lastViewedByMeDate": "A String", # Last time this file was viewed by the user (formatted RFC 3339 timestamp).
+ "linkShareMetadata": { # Contains details about the link URLs that clients are using to refer to this item.
+ "securityUpdateEligible": True or False, # Whether the file is eligible for security update.
+ "securityUpdateEnabled": True or False, # Whether the security update is enabled for this file.
+ },
"markedViewedByMeDate": "A String", # Deprecated.
"md5Checksum": "A String", # An MD5 checksum for the content of this file. This field is only populated for files with content stored in Google Drive; it is not populated for Docs Editors or shortcut files.
"mimeType": "A String", # The MIME type of the file. This is only mutable on update when uploading new content. This field can be left blank, and the mimetype will be determined from the uploaded content's MIME type.
@@ -4358,6 +4433,7 @@ Method Details
},
],
"quotaBytesUsed": "A String", # The number of quota bytes used by this file.
+ "resourceKey": "A String", # A key needed to access the item via a shared link.
"selfLink": "A String", # A link back to this file.
"shareable": True or False, # Deprecated: use capabilities/canShare.
"shared": True or False, # Whether the file has been shared. Not populated for items in shared drives.
@@ -4375,6 +4451,7 @@ Method Details
"shortcutDetails": { # Shortcut file details. Only populated for shortcut files, which have the mimeType field set to application/vnd.google-apps.shortcut.
"targetId": "A String", # The ID of the file that this shortcut points to.
"targetMimeType": "A String", # The MIME type of the file that this shortcut points to. The value of this field is a snapshot of the target's MIME type, captured when the shortcut is created.
+ "targetResourceKey": "A String", # The ResourceKey for the target file.
},
"spaces": [ # The list of spaces which contain the file. Supported values are 'drive', 'appDataFolder' and 'photos'.
"A String",
@@ -4493,6 +4570,7 @@ Method Details
"canAddMyDriveParent": 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.
"canChangeCopyRequiresWriterPermission": True or False, # Whether the current user can change the copyRequiresWriterPermission restriction of this file.
"canChangeRestrictedDownload": True or False, # Deprecated
+ "canChangeSecurityUpdateEnabled": True or False, # Whether the current user can change the securityUpdateEnabled field on link share metadata.
"canComment": True or False, # Whether the current user can comment on this file.
"canCopy": True or False, # 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.
"canDelete": True or False, # Whether the current user can delete this file.
@@ -4616,6 +4694,10 @@ Method Details
},
"lastModifyingUserName": "A String", # Name of the last user to modify this file.
"lastViewedByMeDate": "A String", # Last time this file was viewed by the user (formatted RFC 3339 timestamp).
+ "linkShareMetadata": { # Contains details about the link URLs that clients are using to refer to this item.
+ "securityUpdateEligible": True or False, # Whether the file is eligible for security update.
+ "securityUpdateEnabled": True or False, # Whether the security update is enabled for this file.
+ },
"markedViewedByMeDate": "A String", # Deprecated.
"md5Checksum": "A String", # An MD5 checksum for the content of this file. This field is only populated for files with content stored in Google Drive; it is not populated for Docs Editors or shortcut files.
"mimeType": "A String", # The MIME type of the file. This is only mutable on update when uploading new content. This field can be left blank, and the mimetype will be determined from the uploaded content's MIME type.
@@ -4735,6 +4817,7 @@ Method Details
},
],
"quotaBytesUsed": "A String", # The number of quota bytes used by this file.
+ "resourceKey": "A String", # A key needed to access the item via a shared link.
"selfLink": "A String", # A link back to this file.
"shareable": True or False, # Deprecated: use capabilities/canShare.
"shared": True or False, # Whether the file has been shared. Not populated for items in shared drives.
@@ -4752,6 +4835,7 @@ Method Details
"shortcutDetails": { # Shortcut file details. Only populated for shortcut files, which have the mimeType field set to application/vnd.google-apps.shortcut.
"targetId": "A String", # The ID of the file that this shortcut points to.
"targetMimeType": "A String", # The MIME type of the file that this shortcut points to. The value of this field is a snapshot of the target's MIME type, captured when the shortcut is created.
+ "targetResourceKey": "A String", # The ResourceKey for the target file.
},
"spaces": [ # The list of spaces which contain the file. Supported values are 'drive', 'appDataFolder' and 'photos'.
"A String",
@@ -4890,6 +4974,7 @@ Method Details
"canAddMyDriveParent": 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.
"canChangeCopyRequiresWriterPermission": True or False, # Whether the current user can change the copyRequiresWriterPermission restriction of this file.
"canChangeRestrictedDownload": True or False, # Deprecated
+ "canChangeSecurityUpdateEnabled": True or False, # Whether the current user can change the securityUpdateEnabled field on link share metadata.
"canComment": True or False, # Whether the current user can comment on this file.
"canCopy": True or False, # 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.
"canDelete": True or False, # Whether the current user can delete this file.
@@ -5013,6 +5098,10 @@ Method Details
},
"lastModifyingUserName": "A String", # Name of the last user to modify this file.
"lastViewedByMeDate": "A String", # Last time this file was viewed by the user (formatted RFC 3339 timestamp).
+ "linkShareMetadata": { # Contains details about the link URLs that clients are using to refer to this item.
+ "securityUpdateEligible": True or False, # Whether the file is eligible for security update.
+ "securityUpdateEnabled": True or False, # Whether the security update is enabled for this file.
+ },
"markedViewedByMeDate": "A String", # Deprecated.
"md5Checksum": "A String", # An MD5 checksum for the content of this file. This field is only populated for files with content stored in Google Drive; it is not populated for Docs Editors or shortcut files.
"mimeType": "A String", # The MIME type of the file. This is only mutable on update when uploading new content. This field can be left blank, and the mimetype will be determined from the uploaded content's MIME type.
@@ -5132,6 +5221,7 @@ Method Details
},
],
"quotaBytesUsed": "A String", # The number of quota bytes used by this file.
+ "resourceKey": "A String", # A key needed to access the item via a shared link.
"selfLink": "A String", # A link back to this file.
"shareable": True or False, # Deprecated: use capabilities/canShare.
"shared": True or False, # Whether the file has been shared. Not populated for items in shared drives.
@@ -5149,6 +5239,7 @@ Method Details
"shortcutDetails": { # Shortcut file details. Only populated for shortcut files, which have the mimeType field set to application/vnd.google-apps.shortcut.
"targetId": "A String", # The ID of the file that this shortcut points to.
"targetMimeType": "A String", # The MIME type of the file that this shortcut points to. The value of this field is a snapshot of the target's MIME type, captured when the shortcut is created.
+ "targetResourceKey": "A String", # The ResourceKey for the target file.
},
"spaces": [ # The list of spaces which contain the file. Supported values are 'drive', 'appDataFolder' and 'photos'.
"A String",
diff --git a/docs/dyn/drive_v3.changes.html b/docs/dyn/drive_v3.changes.html
index ac0f358b77c..7b823341672 100644
--- a/docs/dyn/drive_v3.changes.html
+++ b/docs/dyn/drive_v3.changes.html
@@ -193,6 +193,7 @@ Method Details
"canAddFolderFromAnotherDrive": 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.
"canAddMyDriveParent": 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.
"canChangeCopyRequiresWriterPermission": True or False, # Whether the current user can change the copyRequiresWriterPermission restriction of this file.
+ "canChangeSecurityUpdateEnabled": True or False, # Whether the current user can change the securityUpdateEnabled field on link share metadata.
"canChangeViewersCanCopyContent": True or False, # Deprecated
"canComment": True or False, # Whether the current user can comment on this file.
"canCopy": True or False, # 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.
@@ -302,6 +303,10 @@ Method Details
"permissionId": "A String", # The user's ID as visible in Permission resources.
"photoLink": "A String", # A link to the user's profile photo, if available.
},
+ "linkShareMetadata": { # Contains details about the link URLs that clients are using to refer to this item.
+ "securityUpdateEligible": True or False, # Whether the file is eligible for security update.
+ "securityUpdateEnabled": True or False, # Whether the security update is enabled for this file.
+ },
"md5Checksum": "A String", # The MD5 checksum for the content of the file. This is only applicable to files with binary content in Google Drive.
"mimeType": "A String", # The MIME type of the file.
# Google Drive will attempt to automatically detect an appropriate value from uploaded content if no value is provided. The value cannot be changed unless a new revision is uploaded.
@@ -391,6 +396,7 @@ Method Details
"a_key": "A String",
},
"quotaBytesUsed": "A String", # The number of storage quota bytes used by the file. This includes the head revision as well as previous revisions with keepForever enabled.
+ "resourceKey": "A String", # A key needed to access the item via a shared link.
"shared": True or False, # Whether the file has been shared. Not populated for items in shared drives.
"sharedWithMeTime": "A String", # The time at which the file was shared with the user, if applicable (RFC 3339 date-time).
"sharingUser": { # Information about a Drive user. # The user who shared the file with the requesting user, if applicable.
@@ -404,6 +410,7 @@ Method Details
"shortcutDetails": { # Shortcut file details. Only populated for shortcut files, which have the mimeType field set to application/vnd.google-apps.shortcut.
"targetId": "A String", # The ID of the file that this shortcut points to.
"targetMimeType": "A String", # The MIME type of the file that this shortcut points to. The value of this field is a snapshot of the target's MIME type, captured when the shortcut is created.
+ "targetResourceKey": "A String", # The ResourceKey for the target file.
},
"size": "A String", # The size of the file's content in bytes. This is applicable to binary files in Google Drive and Google Docs files.
"spaces": [ # The list of spaces which contain the file. The currently supported values are 'drive', 'appDataFolder' and 'photos'.
diff --git a/docs/dyn/drive_v3.files.html b/docs/dyn/drive_v3.files.html
index 5b6156ca5bb..f01d687390a 100644
--- a/docs/dyn/drive_v3.files.html
+++ b/docs/dyn/drive_v3.files.html
@@ -144,6 +144,7 @@ Method Details
"canAddFolderFromAnotherDrive": 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.
"canAddMyDriveParent": 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.
"canChangeCopyRequiresWriterPermission": True or False, # Whether the current user can change the copyRequiresWriterPermission restriction of this file.
+ "canChangeSecurityUpdateEnabled": True or False, # Whether the current user can change the securityUpdateEnabled field on link share metadata.
"canChangeViewersCanCopyContent": True or False, # Deprecated
"canComment": True or False, # Whether the current user can comment on this file.
"canCopy": True or False, # 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.
@@ -253,6 +254,10 @@ Method Details
"permissionId": "A String", # The user's ID as visible in Permission resources.
"photoLink": "A String", # A link to the user's profile photo, if available.
},
+ "linkShareMetadata": { # Contains details about the link URLs that clients are using to refer to this item.
+ "securityUpdateEligible": True or False, # Whether the file is eligible for security update.
+ "securityUpdateEnabled": True or False, # Whether the security update is enabled for this file.
+ },
"md5Checksum": "A String", # The MD5 checksum for the content of the file. This is only applicable to files with binary content in Google Drive.
"mimeType": "A String", # The MIME type of the file.
# Google Drive will attempt to automatically detect an appropriate value from uploaded content if no value is provided. The value cannot be changed unless a new revision is uploaded.
@@ -342,6 +347,7 @@ Method Details
"a_key": "A String",
},
"quotaBytesUsed": "A String", # The number of storage quota bytes used by the file. This includes the head revision as well as previous revisions with keepForever enabled.
+ "resourceKey": "A String", # A key needed to access the item via a shared link.
"shared": True or False, # Whether the file has been shared. Not populated for items in shared drives.
"sharedWithMeTime": "A String", # The time at which the file was shared with the user, if applicable (RFC 3339 date-time).
"sharingUser": { # Information about a Drive user. # The user who shared the file with the requesting user, if applicable.
@@ -355,6 +361,7 @@ Method Details
"shortcutDetails": { # Shortcut file details. Only populated for shortcut files, which have the mimeType field set to application/vnd.google-apps.shortcut.
"targetId": "A String", # The ID of the file that this shortcut points to.
"targetMimeType": "A String", # The MIME type of the file that this shortcut points to. The value of this field is a snapshot of the target's MIME type, captured when the shortcut is created.
+ "targetResourceKey": "A String", # The ResourceKey for the target file.
},
"size": "A String", # The size of the file's content in bytes. This is applicable to binary files in Google Drive and Google Docs files.
"spaces": [ # The list of spaces which contain the file. The currently supported values are 'drive', 'appDataFolder' and 'photos'.
@@ -409,6 +416,7 @@ Method Details
"canAddFolderFromAnotherDrive": 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.
"canAddMyDriveParent": 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.
"canChangeCopyRequiresWriterPermission": True or False, # Whether the current user can change the copyRequiresWriterPermission restriction of this file.
+ "canChangeSecurityUpdateEnabled": True or False, # Whether the current user can change the securityUpdateEnabled field on link share metadata.
"canChangeViewersCanCopyContent": True or False, # Deprecated
"canComment": True or False, # Whether the current user can comment on this file.
"canCopy": True or False, # 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.
@@ -518,6 +526,10 @@ Method Details
"permissionId": "A String", # The user's ID as visible in Permission resources.
"photoLink": "A String", # A link to the user's profile photo, if available.
},
+ "linkShareMetadata": { # Contains details about the link URLs that clients are using to refer to this item.
+ "securityUpdateEligible": True or False, # Whether the file is eligible for security update.
+ "securityUpdateEnabled": True or False, # Whether the security update is enabled for this file.
+ },
"md5Checksum": "A String", # The MD5 checksum for the content of the file. This is only applicable to files with binary content in Google Drive.
"mimeType": "A String", # The MIME type of the file.
# Google Drive will attempt to automatically detect an appropriate value from uploaded content if no value is provided. The value cannot be changed unless a new revision is uploaded.
@@ -607,6 +619,7 @@ Method Details
"a_key": "A String",
},
"quotaBytesUsed": "A String", # The number of storage quota bytes used by the file. This includes the head revision as well as previous revisions with keepForever enabled.
+ "resourceKey": "A String", # A key needed to access the item via a shared link.
"shared": True or False, # Whether the file has been shared. Not populated for items in shared drives.
"sharedWithMeTime": "A String", # The time at which the file was shared with the user, if applicable (RFC 3339 date-time).
"sharingUser": { # Information about a Drive user. # The user who shared the file with the requesting user, if applicable.
@@ -620,6 +633,7 @@ Method Details
"shortcutDetails": { # Shortcut file details. Only populated for shortcut files, which have the mimeType field set to application/vnd.google-apps.shortcut.
"targetId": "A String", # The ID of the file that this shortcut points to.
"targetMimeType": "A String", # The MIME type of the file that this shortcut points to. The value of this field is a snapshot of the target's MIME type, captured when the shortcut is created.
+ "targetResourceKey": "A String", # The ResourceKey for the target file.
},
"size": "A String", # The size of the file's content in bytes. This is applicable to binary files in Google Drive and Google Docs files.
"spaces": [ # The list of spaces which contain the file. The currently supported values are 'drive', 'appDataFolder' and 'photos'.
@@ -672,6 +686,7 @@ Method Details
"canAddFolderFromAnotherDrive": 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.
"canAddMyDriveParent": 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.
"canChangeCopyRequiresWriterPermission": True or False, # Whether the current user can change the copyRequiresWriterPermission restriction of this file.
+ "canChangeSecurityUpdateEnabled": True or False, # Whether the current user can change the securityUpdateEnabled field on link share metadata.
"canChangeViewersCanCopyContent": True or False, # Deprecated
"canComment": True or False, # Whether the current user can comment on this file.
"canCopy": True or False, # 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.
@@ -781,6 +796,10 @@ Method Details
"permissionId": "A String", # The user's ID as visible in Permission resources.
"photoLink": "A String", # A link to the user's profile photo, if available.
},
+ "linkShareMetadata": { # Contains details about the link URLs that clients are using to refer to this item.
+ "securityUpdateEligible": True or False, # Whether the file is eligible for security update.
+ "securityUpdateEnabled": True or False, # Whether the security update is enabled for this file.
+ },
"md5Checksum": "A String", # The MD5 checksum for the content of the file. This is only applicable to files with binary content in Google Drive.
"mimeType": "A String", # The MIME type of the file.
# Google Drive will attempt to automatically detect an appropriate value from uploaded content if no value is provided. The value cannot be changed unless a new revision is uploaded.
@@ -870,6 +889,7 @@ Method Details
"a_key": "A String",
},
"quotaBytesUsed": "A String", # The number of storage quota bytes used by the file. This includes the head revision as well as previous revisions with keepForever enabled.
+ "resourceKey": "A String", # A key needed to access the item via a shared link.
"shared": True or False, # Whether the file has been shared. Not populated for items in shared drives.
"sharedWithMeTime": "A String", # The time at which the file was shared with the user, if applicable (RFC 3339 date-time).
"sharingUser": { # Information about a Drive user. # The user who shared the file with the requesting user, if applicable.
@@ -883,6 +903,7 @@ Method Details
"shortcutDetails": { # Shortcut file details. Only populated for shortcut files, which have the mimeType field set to application/vnd.google-apps.shortcut.
"targetId": "A String", # The ID of the file that this shortcut points to.
"targetMimeType": "A String", # The MIME type of the file that this shortcut points to. The value of this field is a snapshot of the target's MIME type, captured when the shortcut is created.
+ "targetResourceKey": "A String", # The ResourceKey for the target file.
},
"size": "A String", # The size of the file's content in bytes. This is applicable to binary files in Google Drive and Google Docs files.
"spaces": [ # The list of spaces which contain the file. The currently supported values are 'drive', 'appDataFolder' and 'photos'.
@@ -940,6 +961,7 @@ Method Details
"canAddFolderFromAnotherDrive": 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.
"canAddMyDriveParent": 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.
"canChangeCopyRequiresWriterPermission": True or False, # Whether the current user can change the copyRequiresWriterPermission restriction of this file.
+ "canChangeSecurityUpdateEnabled": True or False, # Whether the current user can change the securityUpdateEnabled field on link share metadata.
"canChangeViewersCanCopyContent": True or False, # Deprecated
"canComment": True or False, # Whether the current user can comment on this file.
"canCopy": True or False, # 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.
@@ -1049,6 +1071,10 @@ Method Details
"permissionId": "A String", # The user's ID as visible in Permission resources.
"photoLink": "A String", # A link to the user's profile photo, if available.
},
+ "linkShareMetadata": { # Contains details about the link URLs that clients are using to refer to this item.
+ "securityUpdateEligible": True or False, # Whether the file is eligible for security update.
+ "securityUpdateEnabled": True or False, # Whether the security update is enabled for this file.
+ },
"md5Checksum": "A String", # The MD5 checksum for the content of the file. This is only applicable to files with binary content in Google Drive.
"mimeType": "A String", # The MIME type of the file.
# Google Drive will attempt to automatically detect an appropriate value from uploaded content if no value is provided. The value cannot be changed unless a new revision is uploaded.
@@ -1138,6 +1164,7 @@ Method Details
"a_key": "A String",
},
"quotaBytesUsed": "A String", # The number of storage quota bytes used by the file. This includes the head revision as well as previous revisions with keepForever enabled.
+ "resourceKey": "A String", # A key needed to access the item via a shared link.
"shared": True or False, # Whether the file has been shared. Not populated for items in shared drives.
"sharedWithMeTime": "A String", # The time at which the file was shared with the user, if applicable (RFC 3339 date-time).
"sharingUser": { # Information about a Drive user. # The user who shared the file with the requesting user, if applicable.
@@ -1151,6 +1178,7 @@ Method Details
"shortcutDetails": { # Shortcut file details. Only populated for shortcut files, which have the mimeType field set to application/vnd.google-apps.shortcut.
"targetId": "A String", # The ID of the file that this shortcut points to.
"targetMimeType": "A String", # The MIME type of the file that this shortcut points to. The value of this field is a snapshot of the target's MIME type, captured when the shortcut is created.
+ "targetResourceKey": "A String", # The ResourceKey for the target file.
},
"size": "A String", # The size of the file's content in bytes. This is applicable to binary files in Google Drive and Google Docs files.
"spaces": [ # The list of spaces which contain the file. The currently supported values are 'drive', 'appDataFolder' and 'photos'.
@@ -1271,6 +1299,7 @@ Method Details
"canAddFolderFromAnotherDrive": 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.
"canAddMyDriveParent": 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.
"canChangeCopyRequiresWriterPermission": True or False, # Whether the current user can change the copyRequiresWriterPermission restriction of this file.
+ "canChangeSecurityUpdateEnabled": True or False, # Whether the current user can change the securityUpdateEnabled field on link share metadata.
"canChangeViewersCanCopyContent": True or False, # Deprecated
"canComment": True or False, # Whether the current user can comment on this file.
"canCopy": True or False, # 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.
@@ -1380,6 +1409,10 @@ Method Details
"permissionId": "A String", # The user's ID as visible in Permission resources.
"photoLink": "A String", # A link to the user's profile photo, if available.
},
+ "linkShareMetadata": { # Contains details about the link URLs that clients are using to refer to this item.
+ "securityUpdateEligible": True or False, # Whether the file is eligible for security update.
+ "securityUpdateEnabled": True or False, # Whether the security update is enabled for this file.
+ },
"md5Checksum": "A String", # The MD5 checksum for the content of the file. This is only applicable to files with binary content in Google Drive.
"mimeType": "A String", # The MIME type of the file.
# Google Drive will attempt to automatically detect an appropriate value from uploaded content if no value is provided. The value cannot be changed unless a new revision is uploaded.
@@ -1469,6 +1502,7 @@ Method Details
"a_key": "A String",
},
"quotaBytesUsed": "A String", # The number of storage quota bytes used by the file. This includes the head revision as well as previous revisions with keepForever enabled.
+ "resourceKey": "A String", # A key needed to access the item via a shared link.
"shared": True or False, # Whether the file has been shared. Not populated for items in shared drives.
"sharedWithMeTime": "A String", # The time at which the file was shared with the user, if applicable (RFC 3339 date-time).
"sharingUser": { # Information about a Drive user. # The user who shared the file with the requesting user, if applicable.
@@ -1482,6 +1516,7 @@ Method Details
"shortcutDetails": { # Shortcut file details. Only populated for shortcut files, which have the mimeType field set to application/vnd.google-apps.shortcut.
"targetId": "A String", # The ID of the file that this shortcut points to.
"targetMimeType": "A String", # The MIME type of the file that this shortcut points to. The value of this field is a snapshot of the target's MIME type, captured when the shortcut is created.
+ "targetResourceKey": "A String", # The ResourceKey for the target file.
},
"size": "A String", # The size of the file's content in bytes. This is applicable to binary files in Google Drive and Google Docs files.
"spaces": [ # The list of spaces which contain the file. The currently supported values are 'drive', 'appDataFolder' and 'photos'.
@@ -1571,6 +1606,7 @@ Method Details
"canAddFolderFromAnotherDrive": 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.
"canAddMyDriveParent": 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.
"canChangeCopyRequiresWriterPermission": True or False, # Whether the current user can change the copyRequiresWriterPermission restriction of this file.
+ "canChangeSecurityUpdateEnabled": True or False, # Whether the current user can change the securityUpdateEnabled field on link share metadata.
"canChangeViewersCanCopyContent": True or False, # Deprecated
"canComment": True or False, # Whether the current user can comment on this file.
"canCopy": True or False, # 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.
@@ -1680,6 +1716,10 @@ Method Details
"permissionId": "A String", # The user's ID as visible in Permission resources.
"photoLink": "A String", # A link to the user's profile photo, if available.
},
+ "linkShareMetadata": { # Contains details about the link URLs that clients are using to refer to this item.
+ "securityUpdateEligible": True or False, # Whether the file is eligible for security update.
+ "securityUpdateEnabled": True or False, # Whether the security update is enabled for this file.
+ },
"md5Checksum": "A String", # The MD5 checksum for the content of the file. This is only applicable to files with binary content in Google Drive.
"mimeType": "A String", # The MIME type of the file.
# Google Drive will attempt to automatically detect an appropriate value from uploaded content if no value is provided. The value cannot be changed unless a new revision is uploaded.
@@ -1769,6 +1809,7 @@ Method Details
"a_key": "A String",
},
"quotaBytesUsed": "A String", # The number of storage quota bytes used by the file. This includes the head revision as well as previous revisions with keepForever enabled.
+ "resourceKey": "A String", # A key needed to access the item via a shared link.
"shared": True or False, # Whether the file has been shared. Not populated for items in shared drives.
"sharedWithMeTime": "A String", # The time at which the file was shared with the user, if applicable (RFC 3339 date-time).
"sharingUser": { # Information about a Drive user. # The user who shared the file with the requesting user, if applicable.
@@ -1782,6 +1823,7 @@ Method Details
"shortcutDetails": { # Shortcut file details. Only populated for shortcut files, which have the mimeType field set to application/vnd.google-apps.shortcut.
"targetId": "A String", # The ID of the file that this shortcut points to.
"targetMimeType": "A String", # The MIME type of the file that this shortcut points to. The value of this field is a snapshot of the target's MIME type, captured when the shortcut is created.
+ "targetResourceKey": "A String", # The ResourceKey for the target file.
},
"size": "A String", # The size of the file's content in bytes. This is applicable to binary files in Google Drive and Google Docs files.
"spaces": [ # The list of spaces which contain the file. The currently supported values are 'drive', 'appDataFolder' and 'photos'.
@@ -1854,6 +1896,7 @@ Method Details
"canAddFolderFromAnotherDrive": 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.
"canAddMyDriveParent": 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.
"canChangeCopyRequiresWriterPermission": True or False, # Whether the current user can change the copyRequiresWriterPermission restriction of this file.
+ "canChangeSecurityUpdateEnabled": True or False, # Whether the current user can change the securityUpdateEnabled field on link share metadata.
"canChangeViewersCanCopyContent": True or False, # Deprecated
"canComment": True or False, # Whether the current user can comment on this file.
"canCopy": True or False, # 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.
@@ -1963,6 +2006,10 @@ Method Details
"permissionId": "A String", # The user's ID as visible in Permission resources.
"photoLink": "A String", # A link to the user's profile photo, if available.
},
+ "linkShareMetadata": { # Contains details about the link URLs that clients are using to refer to this item.
+ "securityUpdateEligible": True or False, # Whether the file is eligible for security update.
+ "securityUpdateEnabled": True or False, # Whether the security update is enabled for this file.
+ },
"md5Checksum": "A String", # The MD5 checksum for the content of the file. This is only applicable to files with binary content in Google Drive.
"mimeType": "A String", # The MIME type of the file.
# Google Drive will attempt to automatically detect an appropriate value from uploaded content if no value is provided. The value cannot be changed unless a new revision is uploaded.
@@ -2052,6 +2099,7 @@ Method Details
"a_key": "A String",
},
"quotaBytesUsed": "A String", # The number of storage quota bytes used by the file. This includes the head revision as well as previous revisions with keepForever enabled.
+ "resourceKey": "A String", # A key needed to access the item via a shared link.
"shared": True or False, # Whether the file has been shared. Not populated for items in shared drives.
"sharedWithMeTime": "A String", # The time at which the file was shared with the user, if applicable (RFC 3339 date-time).
"sharingUser": { # Information about a Drive user. # The user who shared the file with the requesting user, if applicable.
@@ -2065,6 +2113,7 @@ Method Details
"shortcutDetails": { # Shortcut file details. Only populated for shortcut files, which have the mimeType field set to application/vnd.google-apps.shortcut.
"targetId": "A String", # The ID of the file that this shortcut points to.
"targetMimeType": "A String", # The MIME type of the file that this shortcut points to. The value of this field is a snapshot of the target's MIME type, captured when the shortcut is created.
+ "targetResourceKey": "A String", # The ResourceKey for the target file.
},
"size": "A String", # The size of the file's content in bytes. This is applicable to binary files in Google Drive and Google Docs files.
"spaces": [ # The list of spaces which contain the file. The currently supported values are 'drive', 'appDataFolder' and 'photos'.
@@ -2123,6 +2172,7 @@ Method Details
"canAddFolderFromAnotherDrive": 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.
"canAddMyDriveParent": 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.
"canChangeCopyRequiresWriterPermission": True or False, # Whether the current user can change the copyRequiresWriterPermission restriction of this file.
+ "canChangeSecurityUpdateEnabled": True or False, # Whether the current user can change the securityUpdateEnabled field on link share metadata.
"canChangeViewersCanCopyContent": True or False, # Deprecated
"canComment": True or False, # Whether the current user can comment on this file.
"canCopy": True or False, # 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.
@@ -2232,6 +2282,10 @@ Method Details
"permissionId": "A String", # The user's ID as visible in Permission resources.
"photoLink": "A String", # A link to the user's profile photo, if available.
},
+ "linkShareMetadata": { # Contains details about the link URLs that clients are using to refer to this item.
+ "securityUpdateEligible": True or False, # Whether the file is eligible for security update.
+ "securityUpdateEnabled": True or False, # Whether the security update is enabled for this file.
+ },
"md5Checksum": "A String", # The MD5 checksum for the content of the file. This is only applicable to files with binary content in Google Drive.
"mimeType": "A String", # The MIME type of the file.
# Google Drive will attempt to automatically detect an appropriate value from uploaded content if no value is provided. The value cannot be changed unless a new revision is uploaded.
@@ -2321,6 +2375,7 @@ Method Details
"a_key": "A String",
},
"quotaBytesUsed": "A String", # The number of storage quota bytes used by the file. This includes the head revision as well as previous revisions with keepForever enabled.
+ "resourceKey": "A String", # A key needed to access the item via a shared link.
"shared": True or False, # Whether the file has been shared. Not populated for items in shared drives.
"sharedWithMeTime": "A String", # The time at which the file was shared with the user, if applicable (RFC 3339 date-time).
"sharingUser": { # Information about a Drive user. # The user who shared the file with the requesting user, if applicable.
@@ -2334,6 +2389,7 @@ Method Details
"shortcutDetails": { # Shortcut file details. Only populated for shortcut files, which have the mimeType field set to application/vnd.google-apps.shortcut.
"targetId": "A String", # The ID of the file that this shortcut points to.
"targetMimeType": "A String", # The MIME type of the file that this shortcut points to. The value of this field is a snapshot of the target's MIME type, captured when the shortcut is created.
+ "targetResourceKey": "A String", # The ResourceKey for the target file.
},
"size": "A String", # The size of the file's content in bytes. This is applicable to binary files in Google Drive and Google Docs files.
"spaces": [ # The list of spaces which contain the file. The currently supported values are 'drive', 'appDataFolder' and 'photos'.
diff --git a/googleapiclient/discovery_cache/documents/drive.v2.json b/googleapiclient/discovery_cache/documents/drive.v2.json
index 36c71f6bf2f..ceea2c352e7 100644
--- a/googleapiclient/discovery_cache/documents/drive.v2.json
+++ b/googleapiclient/discovery_cache/documents/drive.v2.json
@@ -38,7 +38,7 @@
"description": "Manages files in Drive including uploading, downloading, searching, detecting changes, and updating sharing permissions.",
"discoveryVersion": "v1",
"documentationLink": "https://developers.google.com/drive/",
- "etag": "\"uWj2hSb4GVjzdDlAnRd2gbM1ZQ8/k-Jb6ACjU_BtVOjtdDxwWpX84Vc\"",
+ "etag": "\"uWj2hSb4GVjzdDlAnRd2gbM1ZQ8/nNoyhOtI184Q7f0384VnTm4hV3w\"",
"icons": {
"x16": "https://ssl.gstatic.com/docs/doclist/images/drive_icon_16.png",
"x32": "https://ssl.gstatic.com/docs/doclist/images/drive_icon_32.png"
@@ -3527,7 +3527,7 @@
}
}
},
- "revision": "20210606",
+ "revision": "20210621",
"rootUrl": "https://www.googleapis.com/",
"schemas": {
"About": {
@@ -4656,6 +4656,10 @@
"description": "Deprecated",
"type": "boolean"
},
+ "canChangeSecurityUpdateEnabled": {
+ "description": "Whether the current user can change the securityUpdateEnabled field on link share metadata.",
+ "type": "boolean"
+ },
"canComment": {
"description": "Whether the current user can comment on this file.",
"type": "boolean"
@@ -5052,6 +5056,20 @@
"format": "date-time",
"type": "string"
},
+ "linkShareMetadata": {
+ "description": "Contains details about the link URLs that clients are using to refer to this item.",
+ "properties": {
+ "securityUpdateEligible": {
+ "description": "Whether the file is eligible for security update.",
+ "type": "boolean"
+ },
+ "securityUpdateEnabled": {
+ "description": "Whether the security update is enabled for this file.",
+ "type": "boolean"
+ }
+ },
+ "type": "object"
+ },
"markedViewedByMeDate": {
"description": "Deprecated.",
"format": "date-time",
@@ -5137,6 +5155,10 @@
"format": "int64",
"type": "string"
},
+ "resourceKey": {
+ "description": "A key needed to access the item via a shared link.",
+ "type": "string"
+ },
"selfLink": {
"description": "A link back to this file.",
"type": "string"
@@ -5168,6 +5190,10 @@
"targetMimeType": {
"description": "The MIME type of the file that this shortcut points to. The value of this field is a snapshot of the target's MIME type, captured when the shortcut is created.",
"type": "string"
+ },
+ "targetResourceKey": {
+ "description": "The ResourceKey for the target file.",
+ "type": "string"
}
},
"type": "object"
diff --git a/googleapiclient/discovery_cache/documents/drive.v3.json b/googleapiclient/discovery_cache/documents/drive.v3.json
index 925983117bf..1a0103986c6 100644
--- a/googleapiclient/discovery_cache/documents/drive.v3.json
+++ b/googleapiclient/discovery_cache/documents/drive.v3.json
@@ -35,7 +35,7 @@
"description": "Manages files in Drive including uploading, downloading, searching, detecting changes, and updating sharing permissions.",
"discoveryVersion": "v1",
"documentationLink": "https://developers.google.com/drive/",
- "etag": "\"uWj2hSb4GVjzdDlAnRd2gbM1ZQ8/SyjBUZsd7-BeUq6cmstd3qVqbuA\"",
+ "etag": "\"uWj2hSb4GVjzdDlAnRd2gbM1ZQ8/RDW9kL-wYxpc9TU9SMLoLWEfo9w\"",
"icons": {
"x16": "https://ssl.gstatic.com/docs/doclist/images/drive_icon_16.png",
"x32": "https://ssl.gstatic.com/docs/doclist/images/drive_icon_32.png"
@@ -2191,7 +2191,7 @@
}
}
},
- "revision": "20210606",
+ "revision": "20210621",
"rootUrl": "https://www.googleapis.com/",
"schemas": {
"About": {
@@ -2810,6 +2810,10 @@
"description": "Whether the current user can change the copyRequiresWriterPermission restriction of this file.",
"type": "boolean"
},
+ "canChangeSecurityUpdateEnabled": {
+ "description": "Whether the current user can change the securityUpdateEnabled field on link share metadata.",
+ "type": "boolean"
+ },
"canChangeViewersCanCopyContent": {
"description": "Deprecated",
"type": "boolean"
@@ -3157,6 +3161,20 @@
"$ref": "User",
"description": "The last user to modify the file."
},
+ "linkShareMetadata": {
+ "description": "Contains details about the link URLs that clients are using to refer to this item.",
+ "properties": {
+ "securityUpdateEligible": {
+ "description": "Whether the file is eligible for security update.",
+ "type": "boolean"
+ },
+ "securityUpdateEnabled": {
+ "description": "Whether the security update is enabled for this file.",
+ "type": "boolean"
+ }
+ },
+ "type": "object"
+ },
"md5Checksum": {
"description": "The MD5 checksum for the content of the file. This is only applicable to files with binary content in Google Drive.",
"type": "string"
@@ -3231,6 +3249,10 @@
"format": "int64",
"type": "string"
},
+ "resourceKey": {
+ "description": "A key needed to access the item via a shared link.",
+ "type": "string"
+ },
"shared": {
"description": "Whether the file has been shared. Not populated for items in shared drives.",
"type": "boolean"
@@ -3254,6 +3276,10 @@
"targetMimeType": {
"description": "The MIME type of the file that this shortcut points to. The value of this field is a snapshot of the target's MIME type, captured when the shortcut is created.",
"type": "string"
+ },
+ "targetResourceKey": {
+ "description": "The ResourceKey for the target file.",
+ "type": "string"
}
},
"type": "object"