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.files.methods.generateIds.parameters.type.default
- resources.files.methods.generateIds.parameters.type.description
- resources.files.methods.generateIds.parameters.type.location
- resources.files.methods.generateIds.parameters.type.type
- schemas.File.properties.exportLinks.readOnly

The following keys were changed:
- resources.files.methods.generateIds.parameters.space.description
- schemas.Revision.properties.pinned.description

#### drive:v3

The following keys were added:
- resources.files.methods.generateIds.parameters.type.default
- resources.files.methods.generateIds.parameters.type.description
- resources.files.methods.generateIds.parameters.type.location
- resources.files.methods.generateIds.parameters.type.type
- schemas.File.properties.exportLinks.readOnly

The following keys were changed:
- resources.files.methods.generateIds.parameters.space.description
  • Loading branch information
yoshi-automation authored and sofisl committed May 21, 2021
1 parent 5706d4d commit ad8d08e
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 12 deletions.
15 changes: 11 additions & 4 deletions discovery/drive-v2.json
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": "\"uWj2hSb4GVjzdDlAnRd2gbM1ZQ8/eQF4I95O1DZouFXGqPCiKaiuYnM\"",
"etag": "\"uWj2hSb4GVjzdDlAnRd2gbM1ZQ8/zennBzBE1meCOvZxW4ZeXv3FLco\"",
"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 @@ -1325,7 +1325,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"
}
Expand Down Expand Up @@ -3521,7 +3527,7 @@
}
}
},
"revision": "20210419",
"revision": "20210516",
"rootUrl": "https://www.googleapis.com/",
"schemas": {
"About": {
Expand Down Expand Up @@ -4827,6 +4833,7 @@
"type": "string"
},
"description": "Links for exporting Docs Editors files to specific formats.",
"readOnly": true,
"type": "object"
},
"fileExtension": {
Expand Down Expand Up @@ -5704,7 +5711,7 @@
"type": "string"
},
"pinned": {
"description": "Whether this revision is pinned to prevent automatic purging. This will only be populated and can only be modified on files with content stored in Drive, excluding Docs Editors files. Revisions can also be pinned when they are created through the drive.files.insert/update/copy by using the pinned query parameter. Pinned revisions are stored indefinitely using additional storage quota, up to a maximum of 200 revisions.",
"description": "Whether this revision is pinned to prevent automatic purging. If not set, the revision is automatically purged 30 days after newer content is uploaded. This field can only be modified on files with content stored in Drive, excluding Docs Editors files. Revisions can also be pinned when they are created through the drive.files.insert/update/copy by using the pinned query parameter. Pinned revisions are stored indefinitely using additional storage quota, up to a maximum of 200 revisions.",
"type": "boolean"
},
"publishAuto": {
Expand Down
13 changes: 10 additions & 3 deletions discovery/drive-v3.json
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": "\"uWj2hSb4GVjzdDlAnRd2gbM1ZQ8/Ksil8aMte9Wb7BMjA_3uaIrQVnc\"",
"etag": "\"uWj2hSb4GVjzdDlAnRd2gbM1ZQ8/flD37epa4K_hC-bv7s4sOJoeJlI\"",
"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 @@ -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"
}
Expand Down Expand Up @@ -2185,7 +2191,7 @@
}
}
},
"revision": "20210419",
"revision": "20210516",
"rootUrl": "https://www.googleapis.com/",
"schemas": {
"About": {
Expand Down Expand Up @@ -2986,6 +2992,7 @@
"type": "string"
},
"description": "Links for exporting Docs Editors files to specific formats.",
"readOnly": true,
"type": "object"
},
"fileExtension": {
Expand Down
12 changes: 9 additions & 3 deletions src/apis/drive/v2.ts
Expand Up @@ -1567,7 +1567,7 @@ export namespace drive_v2 {
*/
originalFilename?: string | null;
/**
* Whether this revision is pinned to prevent automatic purging. This will only be populated and can only be modified on files with content stored in Drive, excluding Docs Editors files. Revisions can also be pinned when they are created through the drive.files.insert/update/copy by using the pinned query parameter. Pinned revisions are stored indefinitely using additional storage quota, up to a maximum of 200 revisions.
* Whether this revision is pinned to prevent automatic purging. If not set, the revision is automatically purged 30 days after newer content is uploaded. This field can only be modified on files with content stored in Drive, excluding Docs Editors files. Revisions can also be pinned when they are created through the drive.files.insert/update/copy by using the pinned query parameter. Pinned revisions are stored indefinitely using additional storage quota, up to a maximum of 200 revisions.
*/
pinned?: boolean | null;
/**
Expand Down Expand Up @@ -6690,8 +6690,10 @@ export namespace drive_v2 {
* const res = await drive.files.generateIds({
* // Maximum number of IDs to return.
* maxResults: 'placeholder-value',
* // The space in which the IDs can be used to create new files. Supported values are 'drive' and 'appDataFolder'.
* // The space in which the IDs can be used to create new files. Supported values are 'drive' and 'appDataFolder'. (Default: 'drive')
* space: 'placeholder-value',
* // 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')
* type: 'placeholder-value',
* });
* console.log(res.data);
*
Expand Down Expand Up @@ -9023,9 +9025,13 @@ export namespace drive_v2 {
*/
maxResults?: number;
/**
* The space in which the IDs can be used to create new files. Supported values are 'drive' and 'appDataFolder'.
* The space in which the IDs can be used to create new files. Supported values are 'drive' and 'appDataFolder'. (Default: 'drive')
*/
space?: string;
/**
* 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')
*/
type?: string;
}
export interface Params$Resource$Files$Get extends StandardParameters {
/**
Expand Down
10 changes: 8 additions & 2 deletions src/apis/drive/v3.ts
Expand Up @@ -5000,8 +5000,10 @@ export namespace drive_v3 {
* const res = await drive.files.generateIds({
* // The number of IDs to return.
* count: 'placeholder-value',
* // The space in which the IDs can be used to create new files. Supported values are 'drive' and 'appDataFolder'.
* // The space in which the IDs can be used to create new files. Supported values are 'drive' and 'appDataFolder'. (Default: 'drive')
* space: 'placeholder-value',
* // 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')
* type: 'placeholder-value',
* });
* console.log(res.data);
*
Expand Down Expand Up @@ -6051,9 +6053,13 @@ export namespace drive_v3 {
*/
count?: number;
/**
* The space in which the IDs can be used to create new files. Supported values are 'drive' and 'appDataFolder'.
* The space in which the IDs can be used to create new files. Supported values are 'drive' and 'appDataFolder'. (Default: 'drive')
*/
space?: string;
/**
* 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')
*/
type?: string;
}
export interface Params$Resource$Files$Get extends StandardParameters {
/**
Expand Down

0 comments on commit ad8d08e

Please sign in to comment.