update all json files

This commit is contained in:
Sebastian Thiel
2020-04-12 18:55:37 +08:00
parent ea3b428364
commit aacc30f08d
260 changed files with 138411 additions and 26293 deletions

View File

@@ -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": "\"9eZ1uxVRThTDhLJCZHhqs3eQWz4/0iA8vxcUiheoF8DYYwsH9o3K3hg\"",
"etag": "\"u9GIe6H63LSGq-9_t39K2Zx_EAc/Gwpv0RWj7aub3RuREPPSzE4kDlg\"",
"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"
@@ -770,6 +770,12 @@
"fileId"
],
"parameters": {
"enforceSingleParent": {
"default": "false",
"description": "Set to true to opt in to API behavior that aims for all items to have exactly one parent. This parameter will only take effect if the item is not in a shared drive. Requests that specify more than one parent will fail.",
"location": "query",
"type": "boolean"
},
"fileId": {
"description": "The ID of the file.",
"location": "path",
@@ -784,7 +790,7 @@
},
"keepRevisionForever": {
"default": "false",
"description": "Whether to set the 'keepForever' field in the new head revision. This is only applicable to files with binary content in Google Drive.",
"description": "Whether to set the 'keepForever' field in the new head revision. This is only applicable to files with binary content in Google Drive. Only 200 revisions for the file can be kept forever. If the limit is reached, try deleting pinned revisions.",
"location": "query",
"type": "boolean"
},
@@ -841,6 +847,12 @@
}
},
"parameters": {
"enforceSingleParent": {
"default": "false",
"description": "Set to true to opt in to API behavior that aims for all items to have exactly one parent. This parameter will only take effect if the item is not in a shared drive. Requests that specify more than one parent will fail.",
"location": "query",
"type": "boolean"
},
"ignoreDefaultVisibility": {
"default": "false",
"description": "Whether to ignore the domain's default visibility settings for the created file. Domain administrators can choose to make all uploaded files visible to the domain by default; this parameter bypasses that behavior for the request. Permissions are still inherited from parent folders.",
@@ -849,7 +861,7 @@
},
"keepRevisionForever": {
"default": "false",
"description": "Whether to set the 'keepForever' field in the new head revision. This is only applicable to files with binary content in Google Drive.",
"description": "Whether to set the 'keepForever' field in the new head revision. This is only applicable to files with binary content in Google Drive. Only 200 revisions for the file can be kept forever. If the limit is reached, try deleting pinned revisions.",
"location": "query",
"type": "boolean"
},
@@ -1177,6 +1189,12 @@
"location": "query",
"type": "string"
},
"enforceSingleParent": {
"default": "false",
"description": "Set to true to opt in to API behavior that aims for all items to have exactly one parent. This parameter will only take effect if the item is not in a shared drive. If the item's owner makes a request to add a single parent, the item will be removed from all current folders and placed in the requested folder. Other requests that increase the number of parents will fail, except when the canAddMyDriveParent file capability is true and a single parent is being added.",
"location": "query",
"type": "boolean"
},
"fileId": {
"description": "The ID of the file.",
"location": "path",
@@ -1185,7 +1203,7 @@
},
"keepRevisionForever": {
"default": "false",
"description": "Whether to set the 'keepForever' field in the new head revision. This is only applicable to files with binary content in Google Drive.",
"description": "Whether to set the 'keepForever' field in the new head revision. This is only applicable to files with binary content in Google Drive. Only 200 revisions for the file can be kept forever. If the limit is reached, try deleting pinned revisions.",
"location": "query",
"type": "boolean"
},
@@ -1305,12 +1323,24 @@
"location": "query",
"type": "string"
},
"enforceSingleParent": {
"default": "false",
"description": "Set to true to opt in to API behavior that aims for all items to have exactly one parent. This parameter will only take effect if the item is not in a shared drive. See moveToNewOwnersRoot for details.",
"location": "query",
"type": "boolean"
},
"fileId": {
"description": "The ID of the file or shared drive.",
"location": "path",
"required": true,
"type": "string"
},
"moveToNewOwnersRoot": {
"default": "false",
"description": "This parameter will only take effect if the item is not in a shared drive and the request is attempting to transfer the ownership of the item. When set to true, the item will be moved to the new owner's My Drive root folder and all prior parents removed. If set to false, when enforceSingleParent=true, parents are not changed. If set to false, when enforceSingleParent=false, existing parents are not changed; however, the file will be added to the new owner's My Drive root folder, unless it is already in the new owner's My Drive.",
"location": "query",
"type": "boolean"
},
"sendNotificationEmail": {
"description": "Whether to send a notification email when sharing to users or groups. This defaults to true for users and groups, and is not allowed for other requests. It must not be disabled for ownership transfers.",
"location": "query",
@@ -2096,7 +2126,7 @@
}
}
},
"revision": "20190620",
"revision": "20200326",
"rootUrl": "https://www.googleapis.com/",
"schemas": {
"About": {
@@ -2378,7 +2408,7 @@
},
"author": {
"$ref": "User",
"description": "The user who created the comment."
"description": "The author of the comment. The author's email address and permission ID will not be populated."
},
"content": {
"annotations": {
@@ -2675,6 +2705,10 @@
"description": "Whether the current user can add children to this folder. This is always false when the item is not a folder.",
"type": "boolean"
},
"canAddMyDriveParent": {
"description": "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.",
"type": "boolean"
},
"canChangeCopyRequiresWriterPermission": {
"description": "Whether the current user can change the copyRequiresWriterPermission restriction of this file.",
"type": "boolean"
@@ -2704,13 +2738,17 @@
"type": "boolean"
},
"canEdit": {
"description": "Whether the current user can edit this file.",
"description": "Whether the current user can edit this file. Other factors may limit the type of changes a user can make to a file. For example, see canChangeCopyRequiresWriterPermission or canModifyContent.",
"type": "boolean"
},
"canListChildren": {
"description": "Whether the current user can list the children of this folder. This is always false when the item is not a folder.",
"type": "boolean"
},
"canModifyContent": {
"description": "Whether the current user can modify the 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"
@@ -2767,6 +2805,10 @@
"description": "Whether the current user can remove children from this folder. This is always false when the item is not a folder. For a folder in a shared drive, use canDeleteChildren or canTrashChildren instead.",
"type": "boolean"
},
"canRemoveMyDriveParent": {
"description": "Whether the current user can remove a parent from the item without adding another parent in the same request. Not populated for shared drive files.",
"type": "boolean"
},
"canRename": {
"description": "Whether the current user can rename this file.",
"type": "boolean"
@@ -2857,7 +2899,7 @@
"type": "string"
},
"hasAugmentedPermissions": {
"description": "Whether any users are granted file access directly on this file. This field is only populated for shared drive files.",
"description": "Whether there are permissions directly on this file. This field is only populated for items in shared drives.",
"type": "boolean"
},
"hasThumbnail": {
@@ -2964,7 +3006,7 @@
"type": "string"
},
"rotation": {
"description": "The rotation in clockwise degrees from the image's original orientation.",
"description": "The number of clockwise 90 degree rotations applied from the image's original orientation.",
"format": "int32",
"type": "integer"
},
@@ -3093,6 +3135,20 @@
"$ref": "User",
"description": "The user who shared the file with the requesting user, if applicable."
},
"shortcutDetails": {
"description": "Shortcut file details. Only populated for shortcut files, which have the mimeType field set to application/vnd.google-apps.shortcut.",
"properties": {
"targetId": {
"description": "The ID of the file that this shortcut points to.",
"type": "string"
},
"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"
}
},
"type": "object"
},
"size": {
"description": "The size of the file's content in bytes. This is only applicable to files with binary content in Google Drive.",
"format": "int64",
@@ -3252,7 +3308,7 @@
"type": "boolean"
},
"displayName": {
"description": "A displayable name for users, groups or domains.",
"description": "The \"pretty\" name of the value of the permission. The following is a list of examples for each type of permission: \n- user - User's full name, as defined for their Google account, such as \"Joe Smith.\" \n- group - Name of the Google Group, such as \"The Company Administrators.\" \n- domain - String domain name, such as \"thecompany.com.\" \n- anyone - No displayName is present.",
"type": "string"
},
"domain": {
@@ -3269,7 +3325,7 @@
"type": "string"
},
"id": {
"description": "The ID of this permission. This is a unique identifier for the grantee, and is published in User resources as permissionId.",
"description": "The ID of this permission. This is a unique identifier for the grantee, and is published in User resources as permissionId. IDs should be treated as opaque values.",
"type": "string"
},
"kind": {
@@ -3286,7 +3342,7 @@
"type": "boolean"
},
"inheritedFrom": {
"description": "The ID of the item from which this permission is inherited. This is an output-only field and is only populated for members of the shared drive.",
"description": "The ID of the item from which this permission is inherited. This is an output-only field.",
"type": "string"
},
"permissionType": {
@@ -3346,7 +3402,7 @@
"drive.permissions.create"
]
},
"description": "The type of the grantee. Valid values are: \n- user \n- group \n- domain \n- anyone",
"description": "The type of the grantee. Valid values are: \n- user \n- group \n- domain \n- anyone When creating a permission, if type is user or group, you must provide an emailAddress for the user or group. When type is domain, you must provide a domain. There isn't extra information required for a anyone type.",
"type": "string"
}
},
@@ -3385,7 +3441,7 @@
},
"author": {
"$ref": "User",
"description": "The user who created the reply."
"description": "The author of the reply. The author's email address and permission ID will not be populated."
},
"content": {
"annotations": {