mirror of
https://github.com/OMGeeky/google-apis-rs.git
synced 2026-02-23 15:49:49 +01:00
Update all json files; make some fixes to make it work at all
This commit is contained in:
@@ -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/Nyk9QooT1-WBB03Ilrr_sA6IsJk\"",
|
||||
"etag": "\"uWj2hSb4GVjzdDlAnRd2gbM1ZQ8/-mhqfu_gCvSknSoZ4b0_9VmlIiM\"",
|
||||
"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"
|
||||
@@ -680,7 +680,7 @@
|
||||
"parameters": {
|
||||
"pageSize": {
|
||||
"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",
|
||||
@@ -982,7 +982,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": [
|
||||
@@ -1027,7 +1027,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"
|
||||
}
|
||||
@@ -1168,7 +1174,7 @@
|
||||
},
|
||||
"spaces": {
|
||||
"default": "drive",
|
||||
"description": "A comma-separated list of spaces to query within the corpus. Supported values are 'drive', 'appDataFolder' and 'photos'.",
|
||||
"description": "A comma-separated list of spaces to query within the corpus. Supported values are 'drive' and 'appDataFolder'.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
@@ -1205,7 +1211,7 @@
|
||||
]
|
||||
},
|
||||
"update": {
|
||||
"description": "Updates a file's 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.update",
|
||||
"mediaUpload": {
|
||||
@@ -1302,7 +1308,7 @@
|
||||
"supportsMediaUpload": true
|
||||
},
|
||||
"watch": {
|
||||
"description": "Subscribes to changes to a file",
|
||||
"description": "Subscribes to changes to a file. While you can establish a channel forchanges to a file on a shared drive, a change to a shared drive file won't create a notification.",
|
||||
"httpMethod": "POST",
|
||||
"id": "drive.files.watch",
|
||||
"parameterOrder": [
|
||||
@@ -1414,7 +1420,7 @@
|
||||
},
|
||||
"transferOwnership": {
|
||||
"default": "false",
|
||||
"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.",
|
||||
"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"
|
||||
},
|
||||
@@ -1641,7 +1647,7 @@
|
||||
},
|
||||
"transferOwnership": {
|
||||
"default": "false",
|
||||
"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.",
|
||||
"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"
|
||||
},
|
||||
@@ -2185,7 +2191,7 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"revision": "20210322",
|
||||
"revision": "20220225",
|
||||
"rootUrl": "https://www.googleapis.com/",
|
||||
"schemas": {
|
||||
"About": {
|
||||
@@ -2462,7 +2468,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": {
|
||||
@@ -2719,9 +2725,18 @@
|
||||
"type": "string"
|
||||
},
|
||||
"name": {
|
||||
"annotations": {
|
||||
"required": [
|
||||
"drive.drives.create"
|
||||
]
|
||||
},
|
||||
"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": {
|
||||
@@ -2788,6 +2803,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"
|
||||
@@ -2804,6 +2823,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"
|
||||
@@ -2986,6 +3009,7 @@
|
||||
"type": "string"
|
||||
},
|
||||
"description": "Links for exporting Docs Editors files to specific formats.",
|
||||
"readOnly": true,
|
||||
"type": "object"
|
||||
},
|
||||
"fileExtension": {
|
||||
@@ -2993,7 +3017,7 @@
|
||||
"type": "string"
|
||||
},
|
||||
"folderColorRgb": {
|
||||
"description": "The color for a folder as an RGB hex string. The supported colors are published in the folderColorPalette field of the About resource.\nIf an unsupported color is specified, the closest color in the palette will be used instead.",
|
||||
"description": "The color for a folder or shortcut to a folder as an RGB hex string. The supported colors are published in the folderColorPalette field of the About resource.\nIf an unsupported color is specified, the closest color in the palette will be used instead.",
|
||||
"type": "string"
|
||||
},
|
||||
"fullFileExtension": {
|
||||
@@ -3150,6 +3174,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"
|
||||
@@ -3185,7 +3223,7 @@
|
||||
"type": "boolean"
|
||||
},
|
||||
"owners": {
|
||||
"description": "The owners of the file. Currently, only certain legacy files may have more than one owner. 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"
|
||||
},
|
||||
@@ -3224,6 +3262,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"
|
||||
@@ -3247,6 +3289,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"
|
||||
@@ -3435,6 +3481,10 @@
|
||||
"description": "Identifies what kind of resource this is. Value: the fixed string \"drive#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": {
|
||||
@@ -3458,6 +3508,7 @@
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"readOnly": true,
|
||||
"type": "array"
|
||||
},
|
||||
"photoLink": {
|
||||
@@ -3496,6 +3547,7 @@
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"readOnly": true,
|
||||
"type": "array"
|
||||
},
|
||||
"type": {
|
||||
@@ -3853,9 +3905,18 @@
|
||||
"type": "string"
|
||||
},
|
||||
"name": {
|
||||
"annotations": {
|
||||
"required": [
|
||||
"drive.teamdrives.create"
|
||||
]
|
||||
},
|
||||
"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": {
|
||||
|
||||
Reference in New Issue
Block a user