mirror of
https://github.com/OMGeeky/google-apis-rs.git
synced 2026-02-23 15:49:49 +01:00
Update to latest versions of API declarations
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
{
|
||||
"kind": "discovery#restDescription",
|
||||
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/dokL7JnoHyUOqrzu7Ur837tSd0s\"",
|
||||
"etag": "\"J3WqvAcMk4eQjJXvfSI4Yr8VouA/jcb0-MLN_pBue1FrS8xKoAlTq7w\"",
|
||||
"discoveryVersion": "v1",
|
||||
"id": "drive:v3",
|
||||
"name": "drive",
|
||||
"version": "v3",
|
||||
"revision": "20171201",
|
||||
"revision": "20181004",
|
||||
"title": "Drive API",
|
||||
"description": "Manages files in Drive including uploading, downloading, searching, detecting changes, and updating sharing permissions.",
|
||||
"ownerDomain": "google.com",
|
||||
@@ -57,12 +57,12 @@
|
||||
},
|
||||
"quotaUser": {
|
||||
"type": "string",
|
||||
"description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.",
|
||||
"description": "An opaque string that represents a user for quota purposes. Must not exceed 40 characters.",
|
||||
"location": "query"
|
||||
},
|
||||
"userIp": {
|
||||
"type": "string",
|
||||
"description": "IP address of the site where the request originates. Use this if you want to enforce per-user limits.",
|
||||
"description": "Deprecated. Please use quotaUser instead.",
|
||||
"location": "query"
|
||||
}
|
||||
},
|
||||
@@ -106,6 +106,10 @@
|
||||
"type": "boolean",
|
||||
"description": "Whether the user has installed the requesting app."
|
||||
},
|
||||
"canCreateTeamDrives": {
|
||||
"type": "boolean",
|
||||
"description": "Whether the user can create Team Drives."
|
||||
},
|
||||
"exportFormats": {
|
||||
"type": "object",
|
||||
"description": "A map of source MIME type to possible targets for all supported exports.",
|
||||
@@ -445,9 +449,13 @@
|
||||
"type": "boolean",
|
||||
"description": "Whether the current user can add children to this folder. This is always false when the item is not a folder."
|
||||
},
|
||||
"canChangeCopyRequiresWriterPermission": {
|
||||
"type": "boolean",
|
||||
"description": "Whether the current user can change the copyRequiresWriterPermission restriction of this file."
|
||||
},
|
||||
"canChangeViewersCanCopyContent": {
|
||||
"type": "boolean",
|
||||
"description": "Whether the current user can change whether viewers can copy the contents of this file."
|
||||
"description": "Deprecated"
|
||||
},
|
||||
"canComment": {
|
||||
"type": "boolean",
|
||||
@@ -461,6 +469,10 @@
|
||||
"type": "boolean",
|
||||
"description": "Whether the current user can delete this file."
|
||||
},
|
||||
"canDeleteChildren": {
|
||||
"type": "boolean",
|
||||
"description": "Whether the current user can delete children of this folder. This is false when the item is not a folder. Only populated for Team Drive items."
|
||||
},
|
||||
"canDownload": {
|
||||
"type": "boolean",
|
||||
"description": "Whether the current user can download this file."
|
||||
@@ -473,13 +485,29 @@
|
||||
"type": "boolean",
|
||||
"description": "Whether the current user can list the children of this folder. This is always false when the item is not a folder."
|
||||
},
|
||||
"canMoveChildrenOutOfTeamDrive": {
|
||||
"type": "boolean",
|
||||
"description": "Whether the current user can move children of this folder outside of the Team Drive. This is false when the item is not a folder. Only populated for Team Drive items."
|
||||
},
|
||||
"canMoveChildrenWithinTeamDrive": {
|
||||
"type": "boolean",
|
||||
"description": "Whether the current user can move children of this folder within the Team Drive. This is false when the item is not a folder. Only populated for Team Drive items."
|
||||
},
|
||||
"canMoveItemIntoTeamDrive": {
|
||||
"type": "boolean",
|
||||
"description": "Whether the current user can move this item into a Team Drive. If the item is in a Team Drive, this field is equivalent to canMoveTeamDriveItem."
|
||||
},
|
||||
"canMoveItemOutOfTeamDrive": {
|
||||
"type": "boolean",
|
||||
"description": "Whether the current user can move this Team Drive item outside of this Team Drive by changing its parent. Note that a request to change the parent of the item may still fail depending on the new parent that is being added. Only populated for Team Drive items."
|
||||
},
|
||||
"canMoveItemWithinTeamDrive": {
|
||||
"type": "boolean",
|
||||
"description": "Whether the current user can move this Team Drive item within this Team Drive. Note that a request to change the parent of the item may still fail depending on the new parent that is being added. Only populated for Team Drive items."
|
||||
},
|
||||
"canMoveTeamDriveItem": {
|
||||
"type": "boolean",
|
||||
"description": "Whether the current user can move this Team Drive item by changing its parent. Note that a request to change the parent for this item may still fail depending on the new parent that is being added. Only populated for Team Drive files."
|
||||
"description": "Deprecated - use canMoveItemWithinTeamDrive or canMoveItemOutOfTeamDrive instead."
|
||||
},
|
||||
"canReadRevisions": {
|
||||
"type": "boolean",
|
||||
@@ -491,7 +519,7 @@
|
||||
},
|
||||
"canRemoveChildren": {
|
||||
"type": "boolean",
|
||||
"description": "Whether the current user can remove children from this folder. This is always false when the item is not a folder."
|
||||
"description": "Whether the current user can remove children from this folder. This is always false when the item is not a folder. For Team Drive items, use canDeleteChildren or canTrashChildren instead."
|
||||
},
|
||||
"canRename": {
|
||||
"type": "boolean",
|
||||
@@ -505,6 +533,10 @@
|
||||
"type": "boolean",
|
||||
"description": "Whether the current user can move this file to trash."
|
||||
},
|
||||
"canTrashChildren": {
|
||||
"type": "boolean",
|
||||
"description": "Whether the current user can trash children of this folder. This is false when the item is not a folder. Only populated for Team Drive items."
|
||||
},
|
||||
"canUntrash": {
|
||||
"type": "boolean",
|
||||
"description": "Whether the current user can restore this file from trash."
|
||||
@@ -536,6 +568,10 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"copyRequiresWriterPermission": {
|
||||
"type": "boolean",
|
||||
"description": "Whether the options to copy, print, or download this file, should be disabled for readers and commenters."
|
||||
},
|
||||
"createdTime": {
|
||||
"type": "string",
|
||||
"description": "The time at which the file was created (RFC 3339 date-time).",
|
||||
@@ -754,7 +790,7 @@
|
||||
},
|
||||
"parents": {
|
||||
"type": "array",
|
||||
"description": "The IDs of the parent folders which contain the file.\nIf not specified as part of a create request, the file will be placed directly in the My Drive folder. Update requests must use the addParents and removeParents parameters to modify the values.",
|
||||
"description": "The IDs of the parent folders which contain the file.\nIf not specified as part of a create request, the file will be placed directly in the user's My Drive folder. If not specified as part of a copy request, the file will inherit any discoverable parents of the source file. Update requests must use the addParents and removeParents parameters to modify the parents list.",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
@@ -877,7 +913,7 @@
|
||||
},
|
||||
"viewersCanCopyContent": {
|
||||
"type": "boolean",
|
||||
"description": "Whether users with only reader or commenter permission can copy the file's content. This affects copy, download, and print operations."
|
||||
"description": "Deprecated - use copyRequiresWriterPermission instead."
|
||||
},
|
||||
"webContentLink": {
|
||||
"type": "string",
|
||||
@@ -988,7 +1024,7 @@
|
||||
},
|
||||
"role": {
|
||||
"type": "string",
|
||||
"description": "The role granted by this permission. While new values may be supported in the future, the following are currently allowed: \n- organizer \n- owner \n- writer \n- commenter \n- reader",
|
||||
"description": "The role granted by this permission. While new values may be supported in the future, the following are currently allowed: \n- owner \n- organizer \n- fileOrganizer \n- writer \n- commenter \n- reader",
|
||||
"annotations": {
|
||||
"required": [
|
||||
"drive.permissions.create"
|
||||
@@ -1011,7 +1047,7 @@
|
||||
},
|
||||
"role": {
|
||||
"type": "string",
|
||||
"description": "The primary role for this user. While new values may be added in the future, the following are currently possible: \n- organizer \n- writer \n- commenter \n- reader"
|
||||
"description": "The primary role for this user. While new values may be added in the future, the following are currently possible: \n- organizer \n- fileOrganizer \n- writer \n- commenter \n- reader"
|
||||
},
|
||||
"teamDrivePermissionType": {
|
||||
"type": "string",
|
||||
@@ -1266,10 +1302,22 @@
|
||||
"type": "boolean",
|
||||
"description": "Whether the current user can add children to folders in this Team Drive."
|
||||
},
|
||||
"canChangeCopyRequiresWriterPermissionRestriction": {
|
||||
"type": "boolean",
|
||||
"description": "Whether the current user can change the copyRequiresWriterPermission restriction of this Team Drive."
|
||||
},
|
||||
"canChangeDomainUsersOnlyRestriction": {
|
||||
"type": "boolean",
|
||||
"description": "Whether the current user can change the domainUsersOnly restriction of this Team Drive."
|
||||
},
|
||||
"canChangeTeamDriveBackground": {
|
||||
"type": "boolean",
|
||||
"description": "Whether the current user can change the background of this Team Drive."
|
||||
},
|
||||
"canChangeTeamMembersOnlyRestriction": {
|
||||
"type": "boolean",
|
||||
"description": "Whether the current user can change the teamMembersOnly restriction of this Team Drive."
|
||||
},
|
||||
"canComment": {
|
||||
"type": "boolean",
|
||||
"description": "Whether the current user can comment on files in this Team Drive."
|
||||
@@ -1278,6 +1326,10 @@
|
||||
"type": "boolean",
|
||||
"description": "Whether the current user can copy files in this Team Drive."
|
||||
},
|
||||
"canDeleteChildren": {
|
||||
"type": "boolean",
|
||||
"description": "Whether the current user can delete children from folders in this Team Drive."
|
||||
},
|
||||
"canDeleteTeamDrive": {
|
||||
"type": "boolean",
|
||||
"description": "Whether the current user can delete this Team Drive. Attempting to delete the Team Drive may still fail if there are untrashed items inside the Team Drive."
|
||||
@@ -1304,7 +1356,7 @@
|
||||
},
|
||||
"canRemoveChildren": {
|
||||
"type": "boolean",
|
||||
"description": "Whether the current user can remove children from folders in this Team Drive."
|
||||
"description": "Deprecated - use canDeleteChildren or canTrashChildren instead."
|
||||
},
|
||||
"canRename": {
|
||||
"type": "boolean",
|
||||
@@ -1317,6 +1369,10 @@
|
||||
"canShare": {
|
||||
"type": "boolean",
|
||||
"description": "Whether the current user can share files or folders in this Team Drive."
|
||||
},
|
||||
"canTrashChildren": {
|
||||
"type": "boolean",
|
||||
"description": "Whether the current user can trash children from folders in this Team Drive."
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -1331,7 +1387,7 @@
|
||||
},
|
||||
"id": {
|
||||
"type": "string",
|
||||
"description": "The ID of this Team Drive which is also the ID of the top level folder for this Team Drive."
|
||||
"description": "The ID of this Team Drive which is also the ID of the top level folder of this Team Drive."
|
||||
},
|
||||
"kind": {
|
||||
"type": "string",
|
||||
@@ -1342,6 +1398,28 @@
|
||||
"type": "string",
|
||||
"description": "The name of this Team Drive."
|
||||
},
|
||||
"restrictions": {
|
||||
"type": "object",
|
||||
"description": "A set of restrictions that apply to this Team Drive or items inside this Team Drive.",
|
||||
"properties": {
|
||||
"adminManagedRestrictions": {
|
||||
"type": "boolean",
|
||||
"description": "Whether administrative privileges on this Team Drive are required to modify restrictions."
|
||||
},
|
||||
"copyRequiresWriterPermission": {
|
||||
"type": "boolean",
|
||||
"description": "Whether the options to copy, print, or download files inside this Team Drive, should be disabled for readers and commenters. When this restriction is set to true, it will override the similarly named field to true for any file inside this Team Drive."
|
||||
},
|
||||
"domainUsersOnly": {
|
||||
"type": "boolean",
|
||||
"description": "Whether access to this Team Drive and items inside this Team Drive is restricted to users of the domain to which this Team Drive belongs. This restriction may be overridden by other sharing policies controlled outside of this Team Drive."
|
||||
},
|
||||
"teamMembersOnly": {
|
||||
"type": "boolean",
|
||||
"description": "Whether access to items inside this Team Drive is restricted to members of this Team Drive."
|
||||
}
|
||||
}
|
||||
},
|
||||
"themeId": {
|
||||
"type": "string",
|
||||
"description": "The ID of the theme from which the background image and color will be set. The set of possible teamDriveThemes can be retrieved from a drive.about.get response. When not specified on a drive.teamdrives.create request, a random theme is chosen from which the background image and color are set. This is a write-only field; it can only be set on requests that don't set colorRgb or backgroundImageFile."
|
||||
@@ -2317,7 +2395,7 @@
|
||||
"parameters": {
|
||||
"emailMessage": {
|
||||
"type": "string",
|
||||
"description": "A custom message to include in the notification email.",
|
||||
"description": "A plain text custom message to include in the notification email.",
|
||||
"location": "query"
|
||||
},
|
||||
"fileId": {
|
||||
@@ -2345,7 +2423,7 @@
|
||||
},
|
||||
"useDomainAdminAccess": {
|
||||
"type": "boolean",
|
||||
"description": "Whether the request should be treated as if it was issued by a domain administrator; if set to true, then the requester will be granted access if they are an administrator of the domain to which the item belongs.",
|
||||
"description": "Issue the request as a domain administrator; if set to true, then the requester will be granted access if they are an administrator of the domain to which the item belongs.",
|
||||
"default": "false",
|
||||
"location": "query"
|
||||
}
|
||||
@@ -2390,7 +2468,7 @@
|
||||
},
|
||||
"useDomainAdminAccess": {
|
||||
"type": "boolean",
|
||||
"description": "Whether the request should be treated as if it was issued by a domain administrator; if set to true, then the requester will be granted access if they are an administrator of the domain to which the item belongs.",
|
||||
"description": "Issue the request as a domain administrator; if set to true, then the requester will be granted access if they are an administrator of the domain to which the item belongs.",
|
||||
"default": "false",
|
||||
"location": "query"
|
||||
}
|
||||
@@ -2430,7 +2508,7 @@
|
||||
},
|
||||
"useDomainAdminAccess": {
|
||||
"type": "boolean",
|
||||
"description": "Whether the request should be treated as if it was issued by a domain administrator; if set to true, then the requester will be granted access if they are an administrator of the domain to which the item belongs.",
|
||||
"description": "Issue the request as a domain administrator; if set to true, then the requester will be granted access if they are an administrator of the domain to which the item belongs.",
|
||||
"default": "false",
|
||||
"location": "query"
|
||||
}
|
||||
@@ -2484,7 +2562,7 @@
|
||||
},
|
||||
"useDomainAdminAccess": {
|
||||
"type": "boolean",
|
||||
"description": "Whether the request should be treated as if it was issued by a domain administrator; if set to true, then the requester will be granted access if they are an administrator of the domain to which the item belongs.",
|
||||
"description": "Issue the request as a domain administrator; if set to true, then the requester will be granted access if they are an administrator of the domain to which the item belongs.",
|
||||
"default": "false",
|
||||
"location": "query"
|
||||
}
|
||||
@@ -2542,7 +2620,7 @@
|
||||
},
|
||||
"useDomainAdminAccess": {
|
||||
"type": "boolean",
|
||||
"description": "Whether the request should be treated as if it was issued by a domain administrator; if set to true, then the requester will be granted access if they are an administrator of the domain to which the item belongs.",
|
||||
"description": "Issue the request as a domain administrator; if set to true, then the requester will be granted access if they are an administrator of the domain to which the item belongs.",
|
||||
"default": "false",
|
||||
"location": "query"
|
||||
}
|
||||
@@ -2992,7 +3070,7 @@
|
||||
},
|
||||
"useDomainAdminAccess": {
|
||||
"type": "boolean",
|
||||
"description": "Whether the request should be treated as if it was issued by a domain administrator; if set to true, then the requester will be granted access if they are an administrator of the domain to which the Team Drive belongs.",
|
||||
"description": "Issue the request as a domain administrator; if set to true, then the requester will be granted access if they are an administrator of the domain to which the Team Drive belongs.",
|
||||
"default": "false",
|
||||
"location": "query"
|
||||
}
|
||||
@@ -3035,7 +3113,7 @@
|
||||
},
|
||||
"useDomainAdminAccess": {
|
||||
"type": "boolean",
|
||||
"description": "Whether the request should be treated as if it was issued by a domain administrator; if set to true, then all Team Drives of the domain in which the requester is an administrator are returned.",
|
||||
"description": "Issue the request as a domain administrator; if set to true, then all Team Drives of the domain in which the requester is an administrator are returned.",
|
||||
"default": "false",
|
||||
"location": "query"
|
||||
}
|
||||
@@ -3059,6 +3137,12 @@
|
||||
"description": "The ID of the Team Drive",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
},
|
||||
"useDomainAdminAccess": {
|
||||
"type": "boolean",
|
||||
"description": "Issue the request as a domain administrator; if set to true, then the requester will be granted access if they are an administrator of the domain to which the Team Drive belongs.",
|
||||
"default": "false",
|
||||
"location": "query"
|
||||
}
|
||||
},
|
||||
"parameterOrder": [
|
||||
|
||||
Reference in New Issue
Block a user