diff --git a/discovery/drive-v2.json b/discovery/drive-v2.json index 4459ca64d4..719c35c04e 100644 --- a/discovery/drive-v2.json +++ b/discovery/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": "\"-2NioU2H8y8siEzrBOV_qzRI6kQ/erXdng4sqc4RDzlXNStInU_1gYs\"", + "etag": "\"-2NioU2H8y8siEzrBOV_qzRI6kQ/k81JIsvIDw2LTJ3j42QtbITrIiM\"", "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" @@ -1113,7 +1113,7 @@ "files": { "methods": { "copy": { - "description": "Creates a copy of the specified file.", + "description": "Creates a copy of the specified file. Folders cannot be copied.", "httpMethod": "POST", "id": "drive.files.copy", "parameterOrder": [ @@ -1500,7 +1500,7 @@ "id": "drive.files.list", "parameters": { "corpora": { - "description": "Bodies of items (files/documents) to which the query applies. Supported bodies are 'default', 'domain', 'drive' and 'allDrives'. Prefer 'default' or 'drive' to 'allDrives' for efficiency.", + "description": "Groupings of files to which the query applies. Supported groupings are: 'user' (files created by, opened by, or shared directly with the user), 'drive' (files in the specified shared drive as indicated by the 'driveId'), 'domain' (files shared to the user's domain), and 'allDrives' (A combination of 'user' and 'drive' for all drives where the user is a member). When able, use 'user' or 'drive', instead of 'allDrives', for efficiency.", "location": "query", "type": "string" }, @@ -1785,7 +1785,7 @@ ] }, "trash": { - "description": "Moves a file to the trash. The currently authenticated user must own the file or be at least a fileOrganizer on the parent for shared drive files.", + "description": "Moves a file to the trash. The currently authenticated user must own the file or be at least a fileOrganizer on the parent for shared drive files. Only the owner may trash a file. The trashed item is excluded from all files.list responses returned for any user who does not own the file. However, all users with access to the file can see the trashed item metadata in an API response. All users with access can copy, download, export, and share the file.", "httpMethod": "POST", "id": "drive.files.trash", "parameterOrder": [ @@ -1823,7 +1823,7 @@ ] }, "untrash": { - "description": "Restores a file from the trash.", + "description": "Restores a file from the trash. The currently authenticated user must own the file or be at least a fileOrganizer on the parent for shared drive files. Only the owner may untrash a file.", "httpMethod": "POST", "id": "drive.files.untrash", "parameterOrder": [ @@ -3442,7 +3442,7 @@ } } }, - "revision": "20200701", + "revision": "20200706", "rootUrl": "https://www.googleapis.com/", "schemas": { "About": { @@ -4306,6 +4306,34 @@ }, "type": "object" }, + "ContentRestriction": { + "description": "A restriction for accessing the content of the file.", + "id": "ContentRestriction", + "properties": { + "readOnly": { + "description": "Whether the content of the file is read-only.", + "type": "boolean" + }, + "reason": { + "description": "Reason for why the content of the file is restricted. This is only mutable on requests that also set readOnly=true.", + "type": "string" + }, + "restrictingUser": { + "$ref": "User", + "description": "The user who set the content restriction. Only populated if readOnly is true." + }, + "restrictionDate": { + "description": "The time at which the content restriction was set (formatted RFC 3339 timestamp). Only populated if readOnly is true.", + "format": "date-time", + "type": "string" + }, + "type": { + "description": "The type of the content restriction. Currently the only possible value is globalContentRestriction.", + "type": "string" + } + }, + "type": "object" + }, "Drive": { "description": "Representation of a shared drive.", "id": "Drive", @@ -4575,6 +4603,10 @@ "description": "Whether the current user can modify the content of this file.", "type": "boolean" }, + "canModifyContentRestriction": { + "description": "Whether the current user can modify restrictions on content of this file.", + "type": "boolean" + }, "canMoveChildrenOutOfDrive": { "description": "Whether the current user can move children of this folder outside of the shared drive. This is false when the item is not a folder. Only populated for items in shared drives.", "type": "boolean" @@ -4658,6 +4690,13 @@ }, "type": "object" }, + "contentRestrictions": { + "description": "Restrictions for accessing the content of the file. Only populated if such a restriction exists.", + "items": { + "$ref": "ContentRestriction" + }, + "type": "array" + }, "copyRequiresWriterPermission": { "description": "Whether the options to copy, print, or download this file, should be disabled for readers and commenters.", "type": "boolean" @@ -4904,7 +4943,7 @@ "type": "boolean" }, "trashed": { - "description": "Whether this file has been trashed. This label applies to all users accessing the file; however, only owners are allowed to see and untrash files.", + "description": "Whether the file has been trashed, either explicitly or from a trashed parent folder. Only the owner may trash a file. The trashed item is excluded from all files.list responses returned for any user who does not own the file. However, all users with access to the file can see the trashed item metadata in an API response. All users with access can copy, download, export, and share the file.", "type": "boolean" }, "viewed": { diff --git a/discovery/drive-v3.json b/discovery/drive-v3.json index 43f6e92cae..403dbc32b4 100644 --- a/discovery/drive-v3.json +++ b/discovery/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": "\"-2NioU2H8y8siEzrBOV_qzRI6kQ/kQu8Vg9hIDq0iLeHAOTEY97OKEg\"", + "etag": "\"-2NioU2H8y8siEzrBOV_qzRI6kQ/9EfNrGrWjA9UfyKATju_Xd_tlwU\"", "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" @@ -763,7 +763,7 @@ "files": { "methods": { "copy": { - "description": "Creates a copy of a file and applies any requested updates with patch semantics.", + "description": "Creates a copy of a file and applies any requested updates with patch semantics. Folders cannot be copied.", "httpMethod": "POST", "id": "drive.files.copy", "parameterOrder": [ @@ -1064,7 +1064,7 @@ "id": "drive.files.list", "parameters": { "corpora": { - "description": "Bodies of items (files/documents) to which the query applies. Supported bodies are 'user', 'domain', 'drive' and 'allDrives'. Prefer 'user' or 'drive' to 'allDrives' for efficiency.", + "description": "Groupings of files to which the query applies. Supported groupings are: 'user' (files created by, opened by, or shared directly with the user), 'drive' (files in the specified shared drive as indicated by the 'driveId'), 'domain' (files shared to the user's domain), and 'allDrives' (A combination of 'user' and 'drive' for all drives where the user is a member). When able, use 'user' or 'drive', instead of 'allDrives', for efficiency.", "location": "query", "type": "string" }, @@ -1076,7 +1076,7 @@ ], "enumDescriptions": [ "Files shared to the user's domain.", - "Files owned by or shared to the user." + "Files owned by or shared to the user. If a user has permissions on a Shared Drive, the files inside it won't be retrieved unless the user has created, opened, or shared the file." ], "location": "query", "type": "string" @@ -1161,7 +1161,7 @@ ] }, "update": { - "description": "Updates a file's metadata and/or content with patch semantics.", + "description": "Updates a file's metadata and/or content. This method supports patch semantics.", "httpMethod": "PATCH", "id": "drive.files.update", "mediaUpload": { @@ -2126,7 +2126,7 @@ } } }, - "revision": "20200618", + "revision": "20200706", "rootUrl": "https://www.googleapis.com/", "schemas": { "About": { @@ -2498,6 +2498,34 @@ }, "type": "object" }, + "ContentRestriction": { + "description": "A restriction for accessing the content of the file.", + "id": "ContentRestriction", + "properties": { + "readOnly": { + "description": "Whether the content of the file is read-only.", + "type": "boolean" + }, + "reason": { + "description": "Reason for why the content of the file is restricted. This is only mutable on requests that also set readOnly=true.", + "type": "string" + }, + "restrictingUser": { + "$ref": "User", + "description": "The user who set the content restriction. Only populated if readOnly is true." + }, + "restrictionTime": { + "description": "The time at which the content restriction was set (formatted RFC 3339 timestamp). Only populated if readOnly is true.", + "format": "date-time", + "type": "string" + }, + "type": { + "description": "The type of the content restriction. Currently the only possible value is globalContentRestriction.", + "type": "string" + } + }, + "type": "object" + }, "Drive": { "description": "Representation of a shared drive.", "id": "Drive", @@ -2753,6 +2781,10 @@ "description": "Whether the current user can modify the content of this file.", "type": "boolean" }, + "canModifyContentRestriction": { + "description": "Whether the current user can modify restrictions on content of this file.", + "type": "boolean" + }, "canMoveChildrenOutOfDrive": { "description": "Whether the current user can move children of this folder outside of the shared drive. This is false when the item is not a folder. Only populated for items in shared drives.", "type": "boolean" @@ -2861,6 +2893,13 @@ }, "type": "object" }, + "contentRestrictions": { + "description": "Restrictions for accessing the content of the file. Only populated if such a restriction exists.", + "items": { + "$ref": "ContentRestriction" + }, + "type": "array" + }, "copyRequiresWriterPermission": { "description": "Whether the options to copy, print, or download this file, should be disabled for readers and commenters.", "type": "boolean" @@ -3183,7 +3222,7 @@ "type": "string" }, "trashed": { - "description": "Whether the file has been trashed, either explicitly or from a trashed parent folder. Only the owner may trash a file, and other users cannot see files in the owner's trash.", + "description": "Whether the file has been trashed, either explicitly or from a trashed parent folder. Only the owner may trash a file. The trashed item is excluded from all files.list responses returned for any user who does not own the file. However, all users with access to the file can see the trashed item metadata in an API response. All users with access can copy, download, export, and share the file.", "type": "boolean" }, "trashedTime": { diff --git a/src/apis/drive/v2.ts b/src/apis/drive/v2.ts index e61551cc74..909d49e7e2 100644 --- a/src/apis/drive/v2.ts +++ b/src/apis/drive/v2.ts @@ -739,6 +739,31 @@ export namespace drive_v2 { */ selfLink?: string | null; } + /** + * A restriction for accessing the content of the file. + */ + export interface Schema$ContentRestriction { + /** + * Whether the content of the file is read-only. + */ + readOnly?: boolean | null; + /** + * Reason for why the content of the file is restricted. This is only mutable on requests that also set readOnly=true. + */ + reason?: string | null; + /** + * The user who set the content restriction. Only populated if readOnly is true. + */ + restrictingUser?: Schema$User; + /** + * The time at which the content restriction was set (formatted RFC 3339 timestamp). Only populated if readOnly is true. + */ + restrictionDate?: string | null; + /** + * The type of the content restriction. Currently the only possible value is globalContentRestriction. + */ + type?: string | null; + } /** * Representation of a shared drive. */ @@ -871,6 +896,7 @@ export namespace drive_v2 { canEdit?: boolean; canListChildren?: boolean; canModifyContent?: boolean; + canModifyContentRestriction?: boolean; canMoveChildrenOutOfDrive?: boolean; canMoveChildrenOutOfTeamDrive?: boolean; canMoveChildrenWithinDrive?: boolean; @@ -892,6 +918,10 @@ export namespace drive_v2 { canTrashChildren?: boolean; canUntrash?: boolean; } | null; + /** + * Restrictions for accessing the content of the file. Only populated if such a restriction exists. + */ + contentRestrictions?: Schema$ContentRestriction[]; /** * Deprecated: use capabilities/canCopy. */ @@ -6020,7 +6050,7 @@ export namespace drive_v2 { /** * drive.files.copy - * @desc Creates a copy of the specified file. + * @desc Creates a copy of the specified file. Folders cannot be copied. * @example * // Before running the sample: * // - Enable the API at: @@ -6083,6 +6113,7 @@ export namespace drive_v2 { * // "canComment": false, * // "canReadRevisions": false, * // "capabilities": {}, + * // "contentRestrictions": [], * // "copyRequiresWriterPermission": false, * // "copyable": false, * // "createdDate": "my_createdDate", @@ -6159,6 +6190,7 @@ export namespace drive_v2 { * // "canComment": false, * // "canReadRevisions": false, * // "capabilities": {}, + * // "contentRestrictions": [], * // "copyRequiresWriterPermission": false, * // "copyable": false, * // "createdDate": "my_createdDate", @@ -6910,6 +6942,7 @@ export namespace drive_v2 { * // "canComment": false, * // "canReadRevisions": false, * // "capabilities": {}, + * // "contentRestrictions": [], * // "copyRequiresWriterPermission": false, * // "copyable": false, * // "createdDate": "my_createdDate", @@ -7139,6 +7172,7 @@ export namespace drive_v2 { * // "canComment": false, * // "canReadRevisions": false, * // "capabilities": {}, + * // "contentRestrictions": [], * // "copyRequiresWriterPermission": false, * // "copyable": false, * // "createdDate": "my_createdDate", @@ -7219,6 +7253,7 @@ export namespace drive_v2 { * // "canComment": false, * // "canReadRevisions": false, * // "capabilities": {}, + * // "contentRestrictions": [], * // "copyRequiresWriterPermission": false, * // "copyable": false, * // "createdDate": "my_createdDate", @@ -7429,7 +7464,7 @@ export namespace drive_v2 { * * // Do the magic * const res = await drive.files.list({ - * // Bodies of items (files/documents) to which the query applies. Supported bodies are 'default', 'domain', 'drive' and 'allDrives'. Prefer 'default' or 'drive' to 'allDrives' for efficiency. + * // Groupings of files to which the query applies. Supported groupings are: 'user' (files created by, opened by, or shared directly with the user), 'drive' (files in the specified shared drive as indicated by the 'driveId'), 'domain' (files shared to the user's domain), and 'allDrives' (A combination of 'user' and 'drive' for all drives where the user is a member). When able, use 'user' or 'drive', instead of 'allDrives', for efficiency. * corpora: 'placeholder-value', * // The body of items (files/documents) to which the query applies. Deprecated: use 'corpora' instead. * corpus: 'placeholder-value', @@ -7481,7 +7516,7 @@ export namespace drive_v2 { * @memberOf! () * * @param {object=} params Parameters for request - * @param {string=} params.corpora Bodies of items (files/documents) to which the query applies. Supported bodies are 'default', 'domain', 'drive' and 'allDrives'. Prefer 'default' or 'drive' to 'allDrives' for efficiency. + * @param {string=} params.corpora Groupings of files to which the query applies. Supported groupings are: 'user' (files created by, opened by, or shared directly with the user), 'drive' (files in the specified shared drive as indicated by the 'driveId'), 'domain' (files shared to the user's domain), and 'allDrives' (A combination of 'user' and 'drive' for all drives where the user is a member). When able, use 'user' or 'drive', instead of 'allDrives', for efficiency. * @param {string=} params.corpus The body of items (files/documents) to which the query applies. Deprecated: use 'corpora' instead. * @param {string=} params.driveId ID of the shared drive to search. * @param {boolean=} params.includeItemsFromAllDrives Whether both My Drive and shared drive items should be included in results. @@ -7652,6 +7687,7 @@ export namespace drive_v2 { * // "canComment": false, * // "canReadRevisions": false, * // "capabilities": {}, + * // "contentRestrictions": [], * // "copyRequiresWriterPermission": false, * // "copyable": false, * // "createdDate": "my_createdDate", @@ -7728,6 +7764,7 @@ export namespace drive_v2 { * // "canComment": false, * // "canReadRevisions": false, * // "capabilities": {}, + * // "contentRestrictions": [], * // "copyRequiresWriterPermission": false, * // "copyable": false, * // "createdDate": "my_createdDate", @@ -7953,6 +7990,7 @@ export namespace drive_v2 { * // "canComment": false, * // "canReadRevisions": false, * // "capabilities": {}, + * // "contentRestrictions": [], * // "copyRequiresWriterPermission": false, * // "copyable": false, * // "createdDate": "my_createdDate", @@ -8116,7 +8154,7 @@ export namespace drive_v2 { /** * drive.files.trash - * @desc Moves a file to the trash. The currently authenticated user must own the file or be at least a fileOrganizer on the parent for shared drive files. + * @desc Moves a file to the trash. The currently authenticated user must own the file or be at least a fileOrganizer on the parent for shared drive files. Only the owner may trash a file. The trashed item is excluded from all files.list responses returned for any user who does not own the file. However, all users with access to the file can see the trashed item metadata in an API response. All users with access can copy, download, export, and share the file. * @example * // Before running the sample: * // - Enable the API at: @@ -8162,6 +8200,7 @@ export namespace drive_v2 { * // "canComment": false, * // "canReadRevisions": false, * // "capabilities": {}, + * // "contentRestrictions": [], * // "copyRequiresWriterPermission": false, * // "copyable": false, * // "createdDate": "my_createdDate", @@ -8325,7 +8364,7 @@ export namespace drive_v2 { /** * drive.files.untrash - * @desc Restores a file from the trash. + * @desc Restores a file from the trash. The currently authenticated user must own the file or be at least a fileOrganizer on the parent for shared drive files. Only the owner may untrash a file. * @example * // Before running the sample: * // - Enable the API at: @@ -8371,6 +8410,7 @@ export namespace drive_v2 { * // "canComment": false, * // "canReadRevisions": false, * // "capabilities": {}, + * // "contentRestrictions": [], * // "copyRequiresWriterPermission": false, * // "copyable": false, * // "createdDate": "my_createdDate", @@ -8610,6 +8650,7 @@ export namespace drive_v2 { * // "canComment": false, * // "canReadRevisions": false, * // "capabilities": {}, + * // "contentRestrictions": [], * // "copyRequiresWriterPermission": false, * // "copyable": false, * // "createdDate": "my_createdDate", @@ -8690,6 +8731,7 @@ export namespace drive_v2 { * // "canComment": false, * // "canReadRevisions": false, * // "capabilities": {}, + * // "contentRestrictions": [], * // "copyRequiresWriterPermission": false, * // "copyable": false, * // "createdDate": "my_createdDate", @@ -9243,7 +9285,7 @@ export namespace drive_v2 { } export interface Params$Resource$Files$List extends StandardParameters { /** - * Bodies of items (files/documents) to which the query applies. Supported bodies are 'default', 'domain', 'drive' and 'allDrives'. Prefer 'default' or 'drive' to 'allDrives' for efficiency. + * Groupings of files to which the query applies. Supported groupings are: 'user' (files created by, opened by, or shared directly with the user), 'drive' (files in the specified shared drive as indicated by the 'driveId'), 'domain' (files shared to the user's domain), and 'allDrives' (A combination of 'user' and 'drive' for all drives where the user is a member). When able, use 'user' or 'drive', instead of 'allDrives', for efficiency. */ corpora?: string; /** diff --git a/src/apis/drive/v3.ts b/src/apis/drive/v3.ts index 494d6cdb03..340d1e222f 100644 --- a/src/apis/drive/v3.ts +++ b/src/apis/drive/v3.ts @@ -384,6 +384,31 @@ export namespace drive_v3 { */ nextPageToken?: string | null; } + /** + * A restriction for accessing the content of the file. + */ + export interface Schema$ContentRestriction { + /** + * Whether the content of the file is read-only. + */ + readOnly?: boolean | null; + /** + * Reason for why the content of the file is restricted. This is only mutable on requests that also set readOnly=true. + */ + reason?: string | null; + /** + * The user who set the content restriction. Only populated if readOnly is true. + */ + restrictingUser?: Schema$User; + /** + * The time at which the content restriction was set (formatted RFC 3339 timestamp). Only populated if readOnly is true. + */ + restrictionTime?: string | null; + /** + * The type of the content restriction. Currently the only possible value is globalContentRestriction. + */ + type?: string | null; + } /** * Representation of a shared drive. */ @@ -504,6 +529,7 @@ export namespace drive_v3 { canEdit?: boolean; canListChildren?: boolean; canModifyContent?: boolean; + canModifyContentRestriction?: boolean; canMoveChildrenOutOfDrive?: boolean; canMoveChildrenOutOfTeamDrive?: boolean; canMoveChildrenWithinDrive?: boolean; @@ -532,6 +558,10 @@ export namespace drive_v3 { indexableText?: string; thumbnail?: {image?: string; mimeType?: string}; } | null; + /** + * Restrictions for accessing the content of the file. Only populated if such a restriction exists. + */ + contentRestrictions?: Schema$ContentRestriction[]; /** * Whether the options to copy, print, or download this file, should be disabled for readers and commenters. */ @@ -723,7 +753,7 @@ export namespace drive_v3 { */ thumbnailVersion?: string | null; /** - * Whether the file has been trashed, either explicitly or from a trashed parent folder. Only the owner may trash a file, and other users cannot see files in the owner's trash. + * Whether the file has been trashed, either explicitly or from a trashed parent folder. Only the owner may trash a file. The trashed item is excluded from all files.list responses returned for any user who does not own the file. However, all users with access to the file can see the trashed item metadata in an API response. All users with access can copy, download, export, and share the file. */ trashed?: boolean | null; /** @@ -4052,7 +4082,7 @@ export namespace drive_v3 { /** * drive.files.copy - * @desc Creates a copy of a file and applies any requested updates with patch semantics. + * @desc Creates a copy of a file and applies any requested updates with patch semantics. Folders cannot be copied. * @example * // Before running the sample: * // - Enable the API at: @@ -4104,6 +4134,7 @@ export namespace drive_v3 { * // "appProperties": {}, * // "capabilities": {}, * // "contentHints": {}, + * // "contentRestrictions": [], * // "copyRequiresWriterPermission": false, * // "createdTime": "my_createdTime", * // "description": "my_description", @@ -4167,6 +4198,7 @@ export namespace drive_v3 { * // "appProperties": {}, * // "capabilities": {}, * // "contentHints": {}, + * // "contentRestrictions": [], * // "copyRequiresWriterPermission": false, * // "createdTime": "my_createdTime", * // "description": "my_description", @@ -4375,6 +4407,7 @@ export namespace drive_v3 { * // "appProperties": {}, * // "capabilities": {}, * // "contentHints": {}, + * // "contentRestrictions": [], * // "copyRequiresWriterPermission": false, * // "createdTime": "my_createdTime", * // "description": "my_description", @@ -4442,6 +4475,7 @@ export namespace drive_v3 { * // "appProperties": {}, * // "capabilities": {}, * // "contentHints": {}, + * // "contentRestrictions": [], * // "copyRequiresWriterPermission": false, * // "createdTime": "my_createdTime", * // "description": "my_description", @@ -5174,6 +5208,7 @@ export namespace drive_v3 { * // "appProperties": {}, * // "capabilities": {}, * // "contentHints": {}, + * // "contentRestrictions": [], * // "copyRequiresWriterPermission": false, * // "createdTime": "my_createdTime", * // "description": "my_description", @@ -5360,7 +5395,7 @@ export namespace drive_v3 { * * // Do the magic * const res = await drive.files.list({ - * // Bodies of items (files/documents) to which the query applies. Supported bodies are 'user', 'domain', 'drive' and 'allDrives'. Prefer 'user' or 'drive' to 'allDrives' for efficiency. + * // Groupings of files to which the query applies. Supported groupings are: 'user' (files created by, opened by, or shared directly with the user), 'drive' (files in the specified shared drive as indicated by the 'driveId'), 'domain' (files shared to the user's domain), and 'allDrives' (A combination of 'user' and 'drive' for all drives where the user is a member). When able, use 'user' or 'drive', instead of 'allDrives', for efficiency. * corpora: 'placeholder-value', * // The source of files to list. Deprecated: use 'corpora' instead. * corpus: 'placeholder-value', @@ -5407,7 +5442,7 @@ export namespace drive_v3 { * @memberOf! () * * @param {object=} params Parameters for request - * @param {string=} params.corpora Bodies of items (files/documents) to which the query applies. Supported bodies are 'user', 'domain', 'drive' and 'allDrives'. Prefer 'user' or 'drive' to 'allDrives' for efficiency. + * @param {string=} params.corpora Groupings of files to which the query applies. Supported groupings are: 'user' (files created by, opened by, or shared directly with the user), 'drive' (files in the specified shared drive as indicated by the 'driveId'), 'domain' (files shared to the user's domain), and 'allDrives' (A combination of 'user' and 'drive' for all drives where the user is a member). When able, use 'user' or 'drive', instead of 'allDrives', for efficiency. * @param {string=} params.corpus The source of files to list. Deprecated: use 'corpora' instead. * @param {string=} params.driveId ID of the shared drive to search. * @param {boolean=} params.includeItemsFromAllDrives Whether both My Drive and shared drive items should be included in results. @@ -5501,7 +5536,7 @@ export namespace drive_v3 { /** * drive.files.update - * @desc Updates a file's metadata and/or content with patch semantics. + * @desc Updates a file's metadata and/or content. This method supports patch semantics. * @example * // Before running the sample: * // - Enable the API at: @@ -5558,6 +5593,7 @@ export namespace drive_v3 { * // "appProperties": {}, * // "capabilities": {}, * // "contentHints": {}, + * // "contentRestrictions": [], * // "copyRequiresWriterPermission": false, * // "createdTime": "my_createdTime", * // "description": "my_description", @@ -5625,6 +5661,7 @@ export namespace drive_v3 { * // "appProperties": {}, * // "capabilities": {}, * // "contentHints": {}, + * // "contentRestrictions": [], * // "copyRequiresWriterPermission": false, * // "createdTime": "my_createdTime", * // "description": "my_description", @@ -6106,7 +6143,7 @@ export namespace drive_v3 { } export interface Params$Resource$Files$List extends StandardParameters { /** - * Bodies of items (files/documents) to which the query applies. Supported bodies are 'user', 'domain', 'drive' and 'allDrives'. Prefer 'user' or 'drive' to 'allDrives' for efficiency. + * Groupings of files to which the query applies. Supported groupings are: 'user' (files created by, opened by, or shared directly with the user), 'drive' (files in the specified shared drive as indicated by the 'driveId'), 'domain' (files shared to the user's domain), and 'allDrives' (A combination of 'user' and 'drive' for all drives where the user is a member). When able, use 'user' or 'drive', instead of 'allDrives', for efficiency. */ corpora?: string; /**