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 changed:
- schemas.ContentRestriction.properties.readOnly.description

#### drive:v3
The following keys were added:
- schemas.Revision.properties.publishedLink.description
- schemas.Revision.properties.publishedLink.type

The following keys were changed:
- schemas.ContentRestriction.properties.readOnly.description
  • Loading branch information
yoshi-automation authored and JustinBeckwith committed Jul 30, 2020
1 parent f8977f3 commit b6a446a
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 8 deletions.
6 changes: 3 additions & 3 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/k81JIsvIDw2LTJ3j42QtbITrIiM\"",
"etag": "\"-2NioU2H8y8siEzrBOV_qzRI6kQ/Y8vbFl0i1r1N0KsawuiIYIt6icM\"",
"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 @@ -3442,7 +3442,7 @@
}
}
},
"revision": "20200706",
"revision": "20200719",
"rootUrl": "https://www.googleapis.com/",
"schemas": {
"About": {
Expand Down Expand Up @@ -4311,7 +4311,7 @@
"id": "ContentRestriction",
"properties": {
"readOnly": {
"description": "Whether the content of the file is read-only.",
"description": "Whether the content of the file is read-only. If a file is read-only, a new revision of the file may not be added, comments may not be added or modified, and the title of the file may not be modified.",
"type": "boolean"
},
"reason": {
Expand Down
10 changes: 7 additions & 3 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/9EfNrGrWjA9UfyKATju_Xd_tlwU\"",
"etag": "\"-2NioU2H8y8siEzrBOV_qzRI6kQ/5xWpo5tIrmAJSGI9aUUKlxei4EI\"",
"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 @@ -2126,7 +2126,7 @@
}
}
},
"revision": "20200706",
"revision": "20200719",
"rootUrl": "https://www.googleapis.com/",
"schemas": {
"About": {
Expand Down Expand Up @@ -2503,7 +2503,7 @@
"id": "ContentRestriction",
"properties": {
"readOnly": {
"description": "Whether the content of the file is read-only.",
"description": "Whether the content of the file is read-only. If a file is read-only, a new revision of the file may not be added, comments may not be added or modified, and the title of the file may not be modified.",
"type": "boolean"
},
"reason": {
Expand Down Expand Up @@ -3602,6 +3602,10 @@
"description": "Whether this revision is published. This is only applicable to Google Docs.",
"type": "boolean"
},
"publishedLink": {
"description": "A link to the published revision.",
"type": "string"
},
"publishedOutsideDomain": {
"description": "Whether this revision is published outside the domain. This is only applicable to Google Docs.",
"type": "boolean"
Expand Down
2 changes: 1 addition & 1 deletion src/apis/drive/v2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -744,7 +744,7 @@ export namespace drive_v2 {
*/
export interface Schema$ContentRestriction {
/**
* Whether the content of the file is read-only.
* Whether the content of the file is read-only. If a file is read-only, a new revision of the file may not be added, comments may not be added or modified, and the title of the file may not be modified.
*/
readOnly?: boolean | null;
/**
Expand Down
9 changes: 8 additions & 1 deletion src/apis/drive/v3.ts
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ export namespace drive_v3 {
*/
export interface Schema$ContentRestriction {
/**
* Whether the content of the file is read-only.
* Whether the content of the file is read-only. If a file is read-only, a new revision of the file may not be added, comments may not be added or modified, and the title of the file may not be modified.
*/
readOnly?: boolean | null;
/**
Expand Down Expand Up @@ -1029,6 +1029,10 @@ export namespace drive_v3 {
* Whether this revision is published. This is only applicable to Google Docs.
*/
published?: boolean | null;
/**
* A link to the published revision.
*/
publishedLink?: string | null;
/**
* Whether this revision is published outside the domain. This is only applicable to Google Docs.
*/
Expand Down Expand Up @@ -8305,6 +8309,7 @@ export namespace drive_v3 {
* // "originalFilename": "my_originalFilename",
* // "publishAuto": false,
* // "published": false,
* // "publishedLink": "my_publishedLink",
* // "publishedOutsideDomain": false,
* // "size": "my_size"
* // }
Expand Down Expand Up @@ -8600,6 +8605,7 @@ export namespace drive_v3 {
* // "originalFilename": "my_originalFilename",
* // "publishAuto": false,
* // "published": false,
* // "publishedLink": "my_publishedLink",
* // "publishedOutsideDomain": false,
* // "size": "my_size"
* // }
Expand All @@ -8620,6 +8626,7 @@ export namespace drive_v3 {
* // "originalFilename": "my_originalFilename",
* // "publishAuto": false,
* // "published": false,
* // "publishedLink": "my_publishedLink",
* // "publishedOutsideDomain": false,
* // "size": "my_size"
* // }
Expand Down

0 comments on commit b6a446a

Please sign in to comment.