Update all json files; make some fixes to make it work at all

This commit is contained in:
Sebastian Thiel
2022-03-08 07:59:31 +08:00
parent d12cd3238e
commit 743a56f4b7
372 changed files with 256017 additions and 32197 deletions

View File

@@ -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/caoLcrPNlqW4zj9323ON2YLaWnI\"",
"etag": "\"uWj2hSb4GVjzdDlAnRd2gbM1ZQ8/PaSrKCCNSmaLx57wbfYZy_-0zZ0\"",
"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"
@@ -1030,7 +1030,7 @@
"parameters": {
"maxResults": {
"default": "10",
"description": "Maximum number of shared drives to return.",
"description": "Maximum number of shared drives to return per page.",
"format": "int32",
"location": "query",
"maximum": "100",
@@ -1280,7 +1280,7 @@
]
},
"export": {
"description": "Exports a Google Doc to the requested MIME type and returns the exported content. Please note that the exported content is limited to 10MB.",
"description": "Exports a Google Workspace document to the requested MIME type and returns exported byte content. Note that the exported content is limited to 10MB.",
"httpMethod": "GET",
"id": "drive.files.export",
"parameterOrder": [
@@ -1325,7 +1325,13 @@
},
"space": {
"default": "drive",
"description": "The space in which the IDs can be used to create new files. Supported values are 'drive' and 'appDataFolder'.",
"description": "The space in which the IDs can be used to create new files. Supported values are 'drive' and 'appDataFolder'. (Default: 'drive')",
"location": "query",
"type": "string"
},
"type": {
"default": "files",
"description": "The type of items which the IDs can be used for. Supported values are 'files' and 'shortcuts'. Note that 'shortcuts' are only supported in the drive 'space'. (Default: 'files')",
"location": "query",
"type": "string"
}
@@ -1341,7 +1347,7 @@
]
},
"get": {
"description": "Gets a file's metadata by ID.",
"description": "Gets a file's metadata or content by ID.",
"httpMethod": "GET",
"id": "drive.files.get",
"parameterOrder": [
@@ -1615,7 +1621,7 @@
"type": "string"
},
"spaces": {
"description": "A comma-separated list of spaces to query. Supported values are 'drive', 'appDataFolder' and 'photos'.",
"description": "A comma-separated list of spaces to query. Supported values are 'drive' and 'appDataFolder'.",
"location": "query",
"type": "string"
},
@@ -1653,7 +1659,7 @@
]
},
"patch": {
"description": "Updates file metadata and/or content. This method supports patch semantics.",
"description": "Updates a file's metadata and/or content. When calling this method, only populate fields in the request that you want to modify. When updating fields, some fields might change automatically, such as modifiedDate. This method supports patch semantics.",
"httpMethod": "PATCH",
"id": "drive.files.patch",
"parameterOrder": [
@@ -1925,7 +1931,7 @@
]
},
"update": {
"description": "Updates file metadata and/or content.",
"description": "Updates a file's metadata and/or content. When calling this method, only populate fields in the request that you want to modify. When updating fields, some fields might be changed automatically, such as modifiedDate. This method supports patch semantics.",
"httpMethod": "PUT",
"id": "drive.files.update",
"mediaUpload": {
@@ -2685,7 +2691,7 @@
},
"transferOwnership": {
"default": "false",
"description": "Whether changing a role to 'owner' downgrades the current owners to writers. Does nothing if the specified role is not 'owner'.",
"description": "Whether to transfer ownership to the specified user and downgrade the current owner to a writer. This parameter is required as an acknowledgement of the side effect. File owners can only transfer ownership of files existing on My Drive. Files existing in a shared drive are owned by the organization that owns that shared drive. Ownership transfers are not supported for files and folders in shared drives. Organizers of a shared drive can move items from that shared drive into their My Drive which transfers the ownership to them.",
"location": "query",
"type": "boolean"
},
@@ -3521,7 +3527,7 @@
}
}
},
"revision": "20210322",
"revision": "20220225",
"rootUrl": "https://www.googleapis.com/",
"schemas": {
"About": {
@@ -4186,7 +4192,7 @@
"id": "Comment",
"properties": {
"anchor": {
"description": "A region of the document represented as a JSON string. See anchor documentation for details on how to define and interpret anchor properties.",
"description": "A region of the document represented as a JSON string. For details on defining anchor properties, refer to Add comments and replies.",
"type": "string"
},
"author": {
@@ -4555,6 +4561,10 @@
"description": "The name of this shared drive.",
"type": "string"
},
"orgUnitId": {
"description": "The organizational unit of this shared drive. This field is only populated on drives.list responses when the useDomainAdminAccess parameter is set to true.",
"type": "string"
},
"restrictions": {
"description": "A set of restrictions that apply to this shared drive or items inside this shared drive.",
"properties": {
@@ -4630,6 +4640,10 @@
"capabilities": {
"description": "Capabilities the current user has on this file. Each capability corresponds to a fine-grained action that a user may take.",
"properties": {
"canAcceptOwnership": {
"description": "Whether the current user is the pending owner of the file. Not populated for shared drive files.",
"type": "boolean"
},
"canAddChildren": {
"description": "Whether the current user can add children to this folder. This is always false when the item is not a folder.",
"type": "boolean"
@@ -4650,6 +4664,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"
@@ -4827,6 +4845,7 @@
"type": "string"
},
"description": "Links for exporting Docs Editors files to specific formats.",
"readOnly": true,
"type": "object"
},
"fileExtension": {
@@ -4839,7 +4858,7 @@
"type": "string"
},
"folderColorRgb": {
"description": "Folder color as an RGB hex string if the file is a folder. The list of supported colors is available in the folderColorPalette field of the About resource. If an unsupported color is specified, it will be changed to the closest color in the palette. Not populated for items in shared drives.",
"description": "Folder color as an RGB hex string if the file is a folder or a shortcut to a folder. The list of supported colors is available in the folderColorPalette field of the About resource. If an unsupported color is specified, it will be changed to the closest color in the palette.",
"type": "string"
},
"fullFileExtension": {
@@ -5045,6 +5064,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",
@@ -5091,7 +5124,7 @@
"type": "array"
},
"owners": {
"description": "The owner(s) of this file. Not populated for items in shared drives.",
"description": "The owner of this file. Only certain legacy files may have more than one owner. This field isn't populated for items in shared drives.",
"items": {
"$ref": "User"
},
@@ -5130,6 +5163,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"
@@ -5161,6 +5198,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"
@@ -5429,6 +5470,10 @@
"description": "The name for this permission.",
"type": "string"
},
"pendingOwner": {
"description": "Whether the account associated with this permission is a pending owner. Only populated for user type permissions for files that are not in a shared drive.",
"type": "boolean"
},
"permissionDetails": {
"description": "Details of whether the permissions on this shared drive item are inherited or directly on this item. This is an output-only field which is present only for shared drive items.",
"items": {
@@ -5459,6 +5504,7 @@
},
"type": "object"
},
"readOnly": true,
"type": "array"
},
"photoLink": {
@@ -5508,6 +5554,7 @@
},
"type": "object"
},
"readOnly": true,
"type": "array"
},
"type": {
@@ -5704,7 +5751,7 @@
"type": "string"
},
"pinned": {
"description": "Whether this revision is pinned to prevent automatic purging. This will only be populated and can only be modified on files with content stored in Drive, excluding Docs Editors files. Revisions can also be pinned when they are created through the drive.files.insert/update/copy by using the pinned query parameter. Pinned revisions are stored indefinitely using additional storage quota, up to a maximum of 200 revisions.",
"description": "Whether this revision is pinned to prevent automatic purging. If not set, the revision is automatically purged 30 days after newer content is uploaded. This field can only be modified on files with content stored in Drive, excluding Docs Editors files. Revisions can also be pinned when they are created through the drive.files.insert/update/copy by using the pinned query parameter. Pinned revisions are stored indefinitely using additional storage quota, up to a maximum of 200 revisions.",
"type": "boolean"
},
"publishAuto": {
@@ -5918,6 +5965,10 @@
"description": "The name of this Team Drive.",
"type": "string"
},
"orgUnitId": {
"description": "The organizational unit of this shared drive. This field is only populated on drives.list responses when the useDomainAdminAccess parameter is set to true.",
"type": "string"
},
"restrictions": {
"description": "A set of restrictions that apply to this Team Drive or items inside this Team Drive.",
"properties": {