Skip to content

Commit

Permalink
feat(drive): update the API
Browse files Browse the repository at this point in the history
#### drive:v2
The following keys were added:
- resources.changes.methods.list.parameters.includePermissionsForView.description
- resources.changes.methods.list.parameters.includePermissionsForView.location
- resources.changes.methods.list.parameters.includePermissionsForView.type
- resources.changes.methods.watch.parameters.includePermissionsForView.description
- resources.changes.methods.watch.parameters.includePermissionsForView.location
- resources.changes.methods.watch.parameters.includePermissionsForView.type
- resources.files.methods.copy.parameters.includePermissionsForView.description
- resources.files.methods.copy.parameters.includePermissionsForView.location
- resources.files.methods.copy.parameters.includePermissionsForView.type
- resources.files.methods.get.parameters.includePermissionsForView.description
- resources.files.methods.get.parameters.includePermissionsForView.location
- resources.files.methods.get.parameters.includePermissionsForView.type
- resources.files.methods.insert.parameters.includePermissionsForView.description
- resources.files.methods.insert.parameters.includePermissionsForView.location
- resources.files.methods.insert.parameters.includePermissionsForView.type
- resources.files.methods.list.parameters.includePermissionsForView.description
- resources.files.methods.list.parameters.includePermissionsForView.location
- resources.files.methods.list.parameters.includePermissionsForView.type
- resources.files.methods.patch.parameters.includePermissionsForView.description
- resources.files.methods.patch.parameters.includePermissionsForView.location
- resources.files.methods.patch.parameters.includePermissionsForView.type
- resources.files.methods.touch.parameters.includePermissionsForView.description
- resources.files.methods.touch.parameters.includePermissionsForView.location
- resources.files.methods.touch.parameters.includePermissionsForView.type
- resources.files.methods.trash.parameters.includePermissionsForView.description
- resources.files.methods.trash.parameters.includePermissionsForView.location
- resources.files.methods.trash.parameters.includePermissionsForView.type
- resources.files.methods.untrash.parameters.includePermissionsForView.description
- resources.files.methods.untrash.parameters.includePermissionsForView.location
- resources.files.methods.untrash.parameters.includePermissionsForView.type
- resources.files.methods.update.parameters.includePermissionsForView.description
- resources.files.methods.update.parameters.includePermissionsForView.location
- resources.files.methods.update.parameters.includePermissionsForView.type
- resources.files.methods.watch.parameters.includePermissionsForView.description
- resources.files.methods.watch.parameters.includePermissionsForView.location
- resources.files.methods.watch.parameters.includePermissionsForView.type
- resources.permissions.methods.list.parameters.includePermissionsForView.description
- resources.permissions.methods.list.parameters.includePermissionsForView.location
- resources.permissions.methods.list.parameters.includePermissionsForView.type
- schemas.Permission.properties.view.description
- schemas.Permission.properties.view.type

#### drive:v3
The following keys were added:
- resources.changes.methods.list.parameters.includePermissionsForView.description
- resources.changes.methods.list.parameters.includePermissionsForView.location
- resources.changes.methods.list.parameters.includePermissionsForView.type
- resources.changes.methods.watch.parameters.includePermissionsForView.description
- resources.changes.methods.watch.parameters.includePermissionsForView.location
- resources.changes.methods.watch.parameters.includePermissionsForView.type
- resources.files.methods.copy.parameters.includePermissionsForView.description
- resources.files.methods.copy.parameters.includePermissionsForView.location
- resources.files.methods.copy.parameters.includePermissionsForView.type
- resources.files.methods.create.parameters.includePermissionsForView.description
- resources.files.methods.create.parameters.includePermissionsForView.location
- resources.files.methods.create.parameters.includePermissionsForView.type
- resources.files.methods.get.parameters.includePermissionsForView.description
- resources.files.methods.get.parameters.includePermissionsForView.location
- resources.files.methods.get.parameters.includePermissionsForView.type
- resources.files.methods.list.parameters.includePermissionsForView.description
- resources.files.methods.list.parameters.includePermissionsForView.location
- resources.files.methods.list.parameters.includePermissionsForView.type
- resources.files.methods.update.parameters.includePermissionsForView.description
- resources.files.methods.update.parameters.includePermissionsForView.location
- resources.files.methods.update.parameters.includePermissionsForView.type
- resources.files.methods.watch.parameters.includePermissionsForView.description
- resources.files.methods.watch.parameters.includePermissionsForView.location
- resources.files.methods.watch.parameters.includePermissionsForView.type
- resources.permissions.methods.list.parameters.includePermissionsForView.description
- resources.permissions.methods.list.parameters.includePermissionsForView.location
- resources.permissions.methods.list.parameters.includePermissionsForView.type
- schemas.Permission.properties.view.description
- schemas.Permission.properties.view.type
  • Loading branch information
yoshi-automation authored and JustinBeckwith committed Aug 5, 2020
1 parent 1ec8d2b commit ee489cc
Show file tree
Hide file tree
Showing 4 changed files with 301 additions and 9 deletions.
73 changes: 71 additions & 2 deletions discovery/drive-v2.json
Original file line number Diff line number Diff line change
Expand Up @@ -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/Y8vbFl0i1r1N0KsawuiIYIt6icM\"",
"etag": "\"-2NioU2H8y8siEzrBOV_qzRI6kQ/a4Ez9tiFRSeZTVCssBYotIRGffk\"",
"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"
Expand Down Expand Up @@ -327,6 +327,11 @@
"location": "query",
"type": "boolean"
},
"includePermissionsForView": {
"description": "Specifies which additional view's permissions to include in the response. Only 'published' is supported.",
"location": "query",
"type": "string"
},
"includeSubscribed": {
"default": "true",
"description": "Whether to include changes outside the My Drive hierarchy in the result. When set to false, changes to files such as those in the Application Data folder or shared files which have not been added to My Drive are omitted from the result.",
Expand Down Expand Up @@ -425,6 +430,11 @@
"location": "query",
"type": "boolean"
},
"includePermissionsForView": {
"description": "Specifies which additional view's permissions to include in the response. Only 'published' is supported.",
"location": "query",
"type": "string"
},
"includeSubscribed": {
"default": "true",
"description": "Whether to include changes outside the My Drive hierarchy in the result. When set to false, changes to files such as those in the Application Data folder or shared files which have not been added to My Drive are omitted from the result.",
Expand Down Expand Up @@ -1138,6 +1148,11 @@
"required": true,
"type": "string"
},
"includePermissionsForView": {
"description": "Specifies which additional view's permissions to include in the response. Only 'published' is supported.",
"location": "query",
"type": "string"
},
"ocr": {
"default": "false",
"description": "Whether to attempt OCR on .jpg, .png, .gif, or .pdf uploads.",
Expand Down Expand Up @@ -1331,6 +1346,11 @@
"required": true,
"type": "string"
},
"includePermissionsForView": {
"description": "Specifies which additional view's permissions to include in the response. Only 'published' is supported.",
"location": "query",
"type": "string"
},
"projection": {
"description": "This parameter is deprecated and has no function.",
"enum": [
Expand Down Expand Up @@ -1418,6 +1438,11 @@
"location": "query",
"type": "boolean"
},
"includePermissionsForView": {
"description": "Specifies which additional view's permissions to include in the response. Only 'published' is supported.",
"location": "query",
"type": "string"
},
"ocr": {
"default": "false",
"description": "Whether to attempt OCR on .jpg, .png, .gif, or .pdf uploads.",
Expand Down Expand Up @@ -1528,6 +1553,11 @@
"location": "query",
"type": "boolean"
},
"includePermissionsForView": {
"description": "Specifies which additional view's permissions to include in the response. Only 'published' is supported.",
"location": "query",
"type": "string"
},
"includeTeamDriveItems": {
"default": "false",
"description": "Deprecated use includeItemsFromAllDrives instead.",
Expand Down Expand Up @@ -1639,6 +1669,11 @@
"required": true,
"type": "string"
},
"includePermissionsForView": {
"description": "Specifies which additional view's permissions to include in the response. Only 'published' is supported.",
"location": "query",
"type": "string"
},
"modifiedDateBehavior": {
"description": "Determines the behavior in which modifiedDate is updated. This overrides setModifiedDate.",
"enum": [
Expand Down Expand Up @@ -1759,6 +1794,11 @@
"required": true,
"type": "string"
},
"includePermissionsForView": {
"description": "Specifies which additional view's permissions to include in the response. Only 'published' is supported.",
"location": "query",
"type": "string"
},
"supportsAllDrives": {
"default": "false",
"description": "Whether the requesting application supports both My Drives and shared drives.",
Expand Down Expand Up @@ -1798,6 +1838,11 @@
"required": true,
"type": "string"
},
"includePermissionsForView": {
"description": "Specifies which additional view's permissions to include in the response. Only 'published' is supported.",
"location": "query",
"type": "string"
},
"supportsAllDrives": {
"default": "false",
"description": "Whether the requesting application supports both My Drives and shared drives.",
Expand Down Expand Up @@ -1836,6 +1881,11 @@
"required": true,
"type": "string"
},
"includePermissionsForView": {
"description": "Specifies which additional view's permissions to include in the response. Only 'published' is supported.",
"location": "query",
"type": "string"
},
"supportsAllDrives": {
"default": "false",
"description": "Whether the requesting application supports both My Drives and shared drives.",
Expand Down Expand Up @@ -1907,6 +1957,11 @@
"required": true,
"type": "string"
},
"includePermissionsForView": {
"description": "Specifies which additional view's permissions to include in the response. Only 'published' is supported.",
"location": "query",
"type": "string"
},
"modifiedDateBehavior": {
"description": "Determines the behavior in which modifiedDate is updated. This overrides setModifiedDate.",
"enum": [
Expand Down Expand Up @@ -2034,6 +2089,11 @@
"required": true,
"type": "string"
},
"includePermissionsForView": {
"description": "Specifies which additional view's permissions to include in the response. Only 'published' is supported.",
"location": "query",
"type": "string"
},
"projection": {
"description": "This parameter is deprecated and has no function.",
"enum": [
Expand Down Expand Up @@ -2456,6 +2516,11 @@
"required": true,
"type": "string"
},
"includePermissionsForView": {
"description": "Specifies which additional view's permissions to include in the response. Only 'published' is supported.",
"location": "query",
"type": "string"
},
"maxResults": {
"description": "The maximum number of permissions to return per page. When not set for files in a shared drive, at most 100 results will be returned. When not set for files that are not in a shared drive, the entire list will be returned.",
"format": "int32",
Expand Down Expand Up @@ -3442,7 +3507,7 @@
}
}
},
"revision": "20200719",
"revision": "20200723",
"rootUrl": "https://www.googleapis.com/",
"schemas": {
"About": {
Expand Down Expand Up @@ -5444,6 +5509,10 @@
"description": "The email address or domain name for the entity. This is used during inserts and is not populated in responses. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified unless the permission type is anyone, in which case both id and value are ignored.",
"type": "string"
},
"view": {
"description": "Indicates the view for this permission. Only populated for permissions that belong to a view. published is the only supported value.",
"type": "string"
},
"withLink": {
"description": "Whether the link is required for this permission.",
"type": "boolean"
Expand Down
53 changes: 51 additions & 2 deletions discovery/drive-v3.json
Original file line number Diff line number Diff line change
Expand Up @@ -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/5xWpo5tIrmAJSGI9aUUKlxei4EI\"",
"etag": "\"-2NioU2H8y8siEzrBOV_qzRI6kQ/NTo0tX-aprtnuYL-8aTRdweYwcQ\"",
"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"
Expand Down Expand Up @@ -183,6 +183,11 @@
"location": "query",
"type": "boolean"
},
"includePermissionsForView": {
"description": "Specifies which additional view's permissions to include in the response. Only 'published' is supported.",
"location": "query",
"type": "string"
},
"includeRemoved": {
"default": "true",
"description": "Whether to include changes indicating that items have been removed from the list of changes, for example by deletion or loss of access.",
Expand Down Expand Up @@ -280,6 +285,11 @@
"location": "query",
"type": "boolean"
},
"includePermissionsForView": {
"description": "Specifies which additional view's permissions to include in the response. Only 'published' is supported.",
"location": "query",
"type": "string"
},
"includeRemoved": {
"default": "true",
"description": "Whether to include changes indicating that items have been removed from the list of changes, for example by deletion or loss of access.",
Expand Down Expand Up @@ -788,6 +798,11 @@
"location": "query",
"type": "boolean"
},
"includePermissionsForView": {
"description": "Specifies which additional view's permissions to include in the response. Only 'published' is supported.",
"location": "query",
"type": "string"
},
"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. Only 200 revisions for the file can be kept forever. If the limit is reached, try deleting pinned revisions.",
Expand Down Expand Up @@ -859,6 +874,11 @@
"location": "query",
"type": "boolean"
},
"includePermissionsForView": {
"description": "Specifies which additional view's permissions to include in the response. Only 'published' is supported.",
"location": "query",
"type": "string"
},
"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. Only 200 revisions for the file can be kept forever. If the limit is reached, try deleting pinned revisions.",
Expand Down Expand Up @@ -1028,6 +1048,11 @@
"required": true,
"type": "string"
},
"includePermissionsForView": {
"description": "Specifies which additional view's permissions to include in the response. Only 'published' is supported.",
"location": "query",
"type": "string"
},
"supportsAllDrives": {
"default": "false",
"description": "Whether the requesting application supports both My Drives and shared drives.",
Expand Down Expand Up @@ -1092,6 +1117,11 @@
"location": "query",
"type": "boolean"
},
"includePermissionsForView": {
"description": "Specifies which additional view's permissions to include in the response. Only 'published' is supported.",
"location": "query",
"type": "string"
},
"includeTeamDriveItems": {
"default": "false",
"description": "Deprecated use includeItemsFromAllDrives instead.",
Expand Down Expand Up @@ -1201,6 +1231,11 @@
"required": true,
"type": "string"
},
"includePermissionsForView": {
"description": "Specifies which additional view's permissions to include in the response. Only 'published' is supported.",
"location": "query",
"type": "string"
},
"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. Only 200 revisions for the file can be kept forever. If the limit is reached, try deleting pinned revisions.",
Expand Down Expand Up @@ -1272,6 +1307,11 @@
"required": true,
"type": "string"
},
"includePermissionsForView": {
"description": "Specifies which additional view's permissions to include in the response. Only 'published' is supported.",
"location": "query",
"type": "string"
},
"supportsAllDrives": {
"default": "false",
"description": "Whether the requesting application supports both My Drives and shared drives.",
Expand Down Expand Up @@ -1496,6 +1536,11 @@
"required": true,
"type": "string"
},
"includePermissionsForView": {
"description": "Specifies which additional view's permissions to include in the response. Only 'published' is supported.",
"location": "query",
"type": "string"
},
"pageSize": {
"description": "The maximum number of permissions to return per page. When not set for files in a shared drive, at most 100 results will be returned. When not set for files that are not in a shared drive, the entire list will be returned.",
"format": "int32",
Expand Down Expand Up @@ -2126,7 +2171,7 @@
}
}
},
"revision": "20200719",
"revision": "20200723",
"rootUrl": "https://www.googleapis.com/",
"schemas": {
"About": {
Expand Down Expand Up @@ -3447,6 +3492,10 @@
},
"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"
},
"view": {
"description": "Indicates the view for this permission. Only populated for permissions that belong to a view. published is the only supported value.",
"type": "string"
}
},
"type": "object"
Expand Down
Loading

0 comments on commit ee489cc

Please sign in to comment.