chore(json): update to latest version

This commit is contained in:
Sebastian Thiel
2015-10-18 19:29:28 +02:00
parent 0bd7f20048
commit 862842f621
105 changed files with 49330 additions and 3677 deletions

View File

@@ -1,11 +1,11 @@
{
"kind": "discovery#restDescription",
"etag": "\"ye6orv2F-1npMW3u9suM3a7C5Bo/q8uch3ImrfylJzc7hmtPqukUei0\"",
"etag": "\"ye6orv2F-1npMW3u9suM3a7C5Bo/j3Wwh3EWBgWZwRehTCtXuS9oPH4\"",
"discoveryVersion": "v1",
"id": "drive:v2",
"name": "drive",
"version": "v2",
"revision": "20150709",
"revision": "20151008",
"title": "Drive API",
"description": "The API to interact with Drive.",
"ownerDomain": "google.com",
@@ -87,6 +87,9 @@
"https://www.googleapis.com/auth/drive.metadata.readonly": {
"description": "View metadata for files in your Google Drive"
},
"https://www.googleapis.com/auth/drive.photos.readonly": {
"description": "View the photos, videos and albums in your Google Photos"
},
"https://www.googleapis.com/auth/drive.readonly": {
"description": "View the files in your Google Drive"
},
@@ -137,7 +140,7 @@
},
"domainSharingPolicy": {
"type": "string",
"description": "The domain sharing policy for the current user. Possible values are: \n- ALLOWED \n- ALLOWED_WITH_WARNING \n- INCOMING_ONLY \n- DISALLOWED"
"description": "The domain sharing policy for the current user. Possible values are: \n- allowed \n- allowedWithWarning \n- incomingOnly \n- disallowed"
},
"etag": {
"type": "string",
@@ -941,20 +944,24 @@
},
"fileExtension": {
"type": "string",
"description": "The file extension used when downloading this file. This field is read only. To set the extension, include it in the title when creating the file. This is only populated for files with content stored in Drive."
"description": "The final component of fullFileExtension with trailing text that does not appear to be part of the extension removed. This field is only populated for files with content stored in Drive; it is not populated for Google Docs or shortcut files."
},
"fileSize": {
"type": "string",
"description": "The size of the file in bytes. This is only populated for files with content stored in Drive.",
"description": "The size of the file in bytes. This field is only populated for files with content stored in Drive; it is not populated for Google Docs or shortcut files.",
"format": "int64"
},
"folderColorRgb": {
"type": "string",
"description": "Folder color as an RGB hex string if the file is a folder. The list of supported colors is available in the folderColorPalette field of the About resource. If an unsupported color is specified, it will be changed to the closest color in the palette."
},
"fullFileExtension": {
"type": "string",
"description": "The full file extension; extracted from the title. May contain multiple concatenated extensions, such as \"tar.gz\". Removing an extension from the title does not clear this field; however, changing the extension on the title does update this field. This field is only populated for files with content stored in Drive; it is not populated for Google Docs or shortcut files."
},
"headRevisionId": {
"type": "string",
"description": "The ID of the file's head revision. This will only be populated for files with content stored in Drive."
"description": "The ID of the file's head revision. This field is only populated for files with content stored in Drive; it is not populated for Google Docs or shortcut files."
},
"iconLink": {
"type": "string",
@@ -1106,7 +1113,7 @@
},
"restricted": {
"type": "boolean",
"description": "Whether viewers are prevented from downloading this file."
"description": "Whether viewers and commenters are prevented from downloading, printing, and copying this file."
},
"starred": {
"type": "boolean",
@@ -1137,12 +1144,12 @@
},
"markedViewedByMeDate": {
"type": "string",
"description": "Time this file was explicitly marked viewed by the user (formatted RFC 3339 timestamp).",
"description": "Deprecated.",
"format": "date-time"
},
"md5Checksum": {
"type": "string",
"description": "An MD5 checksum for the content of this file. This is populated only for files with content stored in Drive."
"description": "An MD5 checksum for the content of this file. This field is only populated for files with content stored in Drive; it is not populated for Google Docs or shortcut files."
},
"mimeType": {
"type": "string",
@@ -1167,7 +1174,7 @@
},
"originalFilename": {
"type": "string",
"description": "The original filename if the file was uploaded manually, or the original title if the file was inserted through the API. Note that renames of the title will not change the original filename. This will only be populated on files with content stored in Drive."
"description": "The original filename if the file was uploaded manually, or the original title if the file was inserted through the API. Note that renames of the title will not change the original filename. This field is only populated for files with content stored in Drive; it is not populated for Google Docs or shortcut files."
},
"ownedByMe": {
"type": "boolean",
@@ -1236,7 +1243,7 @@
},
"spaces": {
"type": "array",
"description": "The list of spaces which contain the file. Supported values are 'drive' and 'appDataFolder'.",
"description": "The list of spaces which contain the file. Supported values are 'drive', 'appDataFolder' and 'photos'.",
"items": {
"type": "string"
}
@@ -1343,6 +1350,29 @@
}
}
},
"GeneratedIds": {
"id": "GeneratedIds",
"type": "object",
"description": "A list of generated IDs which can be provided in insert requests",
"properties": {
"ids": {
"type": "array",
"description": "The IDs generated for the requesting user in the specified space.",
"items": {
"type": "string"
}
},
"kind": {
"type": "string",
"description": "This is always drive#generatedIds",
"default": "drive#generatedIds"
},
"space": {
"type": "string",
"description": "The type of file that can be created with these IDs."
}
}
},
"ParentList": {
"id": "ParentList",
"type": "object",
@@ -1772,6 +1802,7 @@
"https://www.googleapis.com/auth/drive.file",
"https://www.googleapis.com/auth/drive.metadata",
"https://www.googleapis.com/auth/drive.metadata.readonly",
"https://www.googleapis.com/auth/drive.photos.readonly",
"https://www.googleapis.com/auth/drive.readonly"
]
}
@@ -1869,6 +1900,7 @@
"https://www.googleapis.com/auth/drive.file",
"https://www.googleapis.com/auth/drive.metadata",
"https://www.googleapis.com/auth/drive.metadata.readonly",
"https://www.googleapis.com/auth/drive.photos.readonly",
"https://www.googleapis.com/auth/drive.readonly"
]
},
@@ -1905,7 +1937,7 @@
},
"spaces": {
"type": "string",
"description": "A comma-separated list of spaces to query. Supported values are 'drive' and 'appDataFolder'.",
"description": "A comma-separated list of spaces to query. Supported values are 'drive', 'appDataFolder' and 'photos'.",
"location": "query"
},
"startChangeId": {
@@ -1925,6 +1957,7 @@
"https://www.googleapis.com/auth/drive.file",
"https://www.googleapis.com/auth/drive.metadata",
"https://www.googleapis.com/auth/drive.metadata.readonly",
"https://www.googleapis.com/auth/drive.photos.readonly",
"https://www.googleapis.com/auth/drive.readonly"
],
"supportsSubscription": true
@@ -1962,7 +1995,7 @@
},
"spaces": {
"type": "string",
"description": "A comma-separated list of spaces to query. Supported values are 'drive' and 'appDataFolder'.",
"description": "A comma-separated list of spaces to query. Supported values are 'drive', 'appDataFolder' and 'photos'.",
"location": "query"
},
"startChangeId": {
@@ -1986,6 +2019,7 @@
"https://www.googleapis.com/auth/drive.file",
"https://www.googleapis.com/auth/drive.metadata",
"https://www.googleapis.com/auth/drive.metadata.readonly",
"https://www.googleapis.com/auth/drive.photos.readonly",
"https://www.googleapis.com/auth/drive.readonly"
],
"supportsSubscription": true
@@ -2010,6 +2044,7 @@
"https://www.googleapis.com/auth/drive.file",
"https://www.googleapis.com/auth/drive.metadata",
"https://www.googleapis.com/auth/drive.metadata.readonly",
"https://www.googleapis.com/auth/drive.photos.readonly",
"https://www.googleapis.com/auth/drive.readonly"
]
}
@@ -2077,6 +2112,7 @@
"https://www.googleapis.com/auth/drive.file",
"https://www.googleapis.com/auth/drive.metadata",
"https://www.googleapis.com/auth/drive.metadata.readonly",
"https://www.googleapis.com/auth/drive.photos.readonly",
"https://www.googleapis.com/auth/drive.readonly"
]
},
@@ -2128,6 +2164,11 @@
"minimum": "0",
"location": "query"
},
"orderBy": {
"type": "string",
"description": "A comma-separated list of sort keys. Valid keys are 'createdDate', 'folder', 'lastViewedByMeDate', 'modifiedByMeDate', 'modifiedDate', 'quotaBytesUsed', 'recency', 'sharedWithMeDate', 'starred', and 'title'. Each key sorts ascending by default, but may be reversed with the 'desc' modifier. Example usage: ?orderBy=folder,modifiedDate desc,title. Please note that there is a current limitation for users with approximately one million files in which the requested sort order is ignored.",
"location": "query"
},
"pageToken": {
"type": "string",
"description": "Page token for children.",
@@ -2151,6 +2192,7 @@
"https://www.googleapis.com/auth/drive.file",
"https://www.googleapis.com/auth/drive.metadata",
"https://www.googleapis.com/auth/drive.metadata.readonly",
"https://www.googleapis.com/auth/drive.photos.readonly",
"https://www.googleapis.com/auth/drive.readonly"
]
}
@@ -2446,7 +2488,8 @@
"https://www.googleapis.com/auth/drive",
"https://www.googleapis.com/auth/drive.appdata",
"https://www.googleapis.com/auth/drive.apps.readonly",
"https://www.googleapis.com/auth/drive.file"
"https://www.googleapis.com/auth/drive.file",
"https://www.googleapis.com/auth/drive.photos.readonly"
]
},
"delete": {
@@ -2480,6 +2523,37 @@
"https://www.googleapis.com/auth/drive"
]
},
"generateIds": {
"id": "drive.files.generateIds",
"path": "files/generateIds",
"httpMethod": "GET",
"description": "Generates a set of file IDs which can be provided in insert requests.",
"parameters": {
"maxResults": {
"type": "integer",
"description": "Maximum number of IDs to return.",
"default": "10",
"format": "int32",
"minimum": "1",
"maximum": "1000",
"location": "query"
},
"space": {
"type": "string",
"description": "The space in which the IDs can be used to create new files. Supported values are 'drive' and 'appDataFolder'.",
"default": "drive",
"location": "query"
}
},
"response": {
"$ref": "GeneratedIds"
},
"scopes": [
"https://www.googleapis.com/auth/drive",
"https://www.googleapis.com/auth/drive.appdata",
"https://www.googleapis.com/auth/drive.file"
]
},
"get": {
"id": "drive.files.get",
"path": "files/{fileId}",
@@ -2518,7 +2592,7 @@
},
"updateViewedDate": {
"type": "boolean",
"description": "Whether to update the view date after successfully retrieving the file.",
"description": "Deprecated: Use files.update with modifiedDateBehavior=noChange, updateViewedDate=true and an empty request body.",
"default": "false",
"location": "query"
}
@@ -2536,6 +2610,7 @@
"https://www.googleapis.com/auth/drive.file",
"https://www.googleapis.com/auth/drive.metadata",
"https://www.googleapis.com/auth/drive.metadata.readonly",
"https://www.googleapis.com/auth/drive.photos.readonly",
"https://www.googleapis.com/auth/drive.readonly"
],
"supportsMediaDownload": true,
@@ -2659,6 +2734,11 @@
"minimum": "0",
"location": "query"
},
"orderBy": {
"type": "string",
"description": "A comma-separated list of sort keys. Valid keys are 'createdDate', 'folder', 'lastViewedByMeDate', 'modifiedByMeDate', 'modifiedDate', 'quotaBytesUsed', 'recency', 'sharedWithMeDate', 'starred', and 'title'. Each key sorts ascending by default, but may be reversed with the 'desc' modifier. Example usage: ?orderBy=folder,modifiedDate desc,title. Please note that there is a current limitation for users with approximately one million files in which the requested sort order is ignored.",
"location": "query"
},
"pageToken": {
"type": "string",
"description": "Page token for files.",
@@ -2684,7 +2764,7 @@
},
"spaces": {
"type": "string",
"description": "A comma-separated list of spaces to query. Supported values are 'drive' and 'appDataFolder'.",
"description": "A comma-separated list of spaces to query. Supported values are 'drive', 'appDataFolder' and 'photos'.",
"location": "query"
}
},
@@ -2698,6 +2778,7 @@
"https://www.googleapis.com/auth/drive.file",
"https://www.googleapis.com/auth/drive.metadata",
"https://www.googleapis.com/auth/drive.metadata.readonly",
"https://www.googleapis.com/auth/drive.photos.readonly",
"https://www.googleapis.com/auth/drive.readonly"
]
},
@@ -2714,7 +2795,7 @@
},
"convert": {
"type": "boolean",
"description": "Whether to convert this file to the corresponding Google Docs format.",
"description": "This parameter is deprecated and has no function.",
"default": "false",
"location": "query"
},
@@ -2726,7 +2807,7 @@
},
"modifiedDateBehavior": {
"type": "string",
"description": "How the modifiedDate field should be updated. This overrides setModifiedDate.",
"description": "Determines the behavior in which modifiedDate is updated. This overrides setModifiedDate.",
"enum": [
"fromBody",
"fromBodyIfNeeded",
@@ -2747,7 +2828,7 @@
},
"newRevision": {
"type": "boolean",
"description": "Whether a blob upload should create a new revision. If false, the blob data in the current head revision is replaced. If true or not set, a new blob is created as head revision, and previous unpinned revisions are preserved for a short period of time. Pinned revisions are stored indefinitely, using additional storage quota, up to a maximum of 200 revisions.",
"description": "Whether a blob upload should create a new revision. If false, the blob data in the current head revision is replaced. If true or not set, a new blob is created as head revision, and previous unpinned revisions are preserved for a short period of time. Pinned revisions are stored indefinitely, using additional storage quota, up to a maximum of 200 revisions. For details on how revisions are retained, see the Drive Help Center.",
"default": "true",
"location": "query"
},
@@ -2851,7 +2932,7 @@
"id": "drive.files.trash",
"path": "files/{fileId}/trash",
"httpMethod": "POST",
"description": "Moves a file to the trash.",
"description": "Moves a file to the trash. The currently authenticated user must own the file.",
"parameters": {
"fileId": {
"type": "string",
@@ -2912,7 +2993,7 @@
},
"convert": {
"type": "boolean",
"description": "Whether to convert this file to the corresponding Google Docs format.",
"description": "This parameter is deprecated and has no function.",
"default": "false",
"location": "query"
},
@@ -2924,7 +3005,7 @@
},
"modifiedDateBehavior": {
"type": "string",
"description": "How the modifiedDate field should be updated. This overrides setModifiedDate.",
"description": "Determines the behavior in which modifiedDate is updated. This overrides setModifiedDate.",
"enum": [
"fromBody",
"fromBodyIfNeeded",
@@ -2945,7 +3026,7 @@
},
"newRevision": {
"type": "boolean",
"description": "Whether a blob upload should create a new revision. If false, the blob data in the current head revision is replaced. If true or not set, a new blob is created as head revision, and previous unpinned revisions are preserved for a short period of time. Pinned revisions are stored indefinitely, using additional storage quota, up to a maximum of 200 revisions.",
"description": "Whether a blob upload should create a new revision. If false, the blob data in the current head revision is replaced. If true or not set, a new blob is created as head revision, and previous unpinned revisions are preserved for a short period of time. Pinned revisions are stored indefinitely, using additional storage quota, up to a maximum of 200 revisions. For details on how revisions are retained, see the Drive Help Center.",
"default": "true",
"location": "query"
},
@@ -3073,7 +3154,7 @@
},
"updateViewedDate": {
"type": "boolean",
"description": "Whether to update the view date after successfully retrieving the file.",
"description": "Deprecated: Use files.update with modifiedDateBehavior=noChange, updateViewedDate=true and an empty request body.",
"default": "false",
"location": "query"
}
@@ -3095,6 +3176,7 @@
"https://www.googleapis.com/auth/drive.file",
"https://www.googleapis.com/auth/drive.metadata",
"https://www.googleapis.com/auth/drive.metadata.readonly",
"https://www.googleapis.com/auth/drive.photos.readonly",
"https://www.googleapis.com/auth/drive.readonly"
],
"supportsMediaDownload": true,
@@ -3164,6 +3246,7 @@
"https://www.googleapis.com/auth/drive.file",
"https://www.googleapis.com/auth/drive.metadata",
"https://www.googleapis.com/auth/drive.metadata.readonly",
"https://www.googleapis.com/auth/drive.photos.readonly",
"https://www.googleapis.com/auth/drive.readonly"
]
},
@@ -3220,6 +3303,7 @@
"https://www.googleapis.com/auth/drive.file",
"https://www.googleapis.com/auth/drive.metadata",
"https://www.googleapis.com/auth/drive.metadata.readonly",
"https://www.googleapis.com/auth/drive.photos.readonly",
"https://www.googleapis.com/auth/drive.readonly"
]
}
@@ -3286,6 +3370,7 @@
"https://www.googleapis.com/auth/drive.file",
"https://www.googleapis.com/auth/drive.metadata",
"https://www.googleapis.com/auth/drive.metadata.readonly",
"https://www.googleapis.com/auth/drive.photos.readonly",
"https://www.googleapis.com/auth/drive.readonly"
]
},
@@ -3315,6 +3400,7 @@
"https://www.googleapis.com/auth/drive.file",
"https://www.googleapis.com/auth/drive.metadata",
"https://www.googleapis.com/auth/drive.metadata.readonly",
"https://www.googleapis.com/auth/drive.photos.readonly",
"https://www.googleapis.com/auth/drive.readonly"
]
},
@@ -3380,6 +3466,7 @@
"https://www.googleapis.com/auth/drive.file",
"https://www.googleapis.com/auth/drive.metadata",
"https://www.googleapis.com/auth/drive.metadata.readonly",
"https://www.googleapis.com/auth/drive.photos.readonly",
"https://www.googleapis.com/auth/drive.readonly"
]
},
@@ -3387,7 +3474,7 @@
"id": "drive.permissions.patch",
"path": "files/{fileId}/permissions/{permissionId}",
"httpMethod": "PATCH",
"description": "Updates a permission. This method supports patch semantics.",
"description": "Updates a permission using patch semantics.",
"parameters": {
"fileId": {
"type": "string",
@@ -3541,6 +3628,7 @@
"https://www.googleapis.com/auth/drive.file",
"https://www.googleapis.com/auth/drive.metadata",
"https://www.googleapis.com/auth/drive.metadata.readonly",
"https://www.googleapis.com/auth/drive.photos.readonly",
"https://www.googleapis.com/auth/drive.readonly"
]
},
@@ -3598,6 +3686,7 @@
"https://www.googleapis.com/auth/drive.file",
"https://www.googleapis.com/auth/drive.metadata",
"https://www.googleapis.com/auth/drive.metadata.readonly",
"https://www.googleapis.com/auth/drive.photos.readonly",
"https://www.googleapis.com/auth/drive.readonly"
]
},
@@ -4079,6 +4168,7 @@
"https://www.googleapis.com/auth/drive.file",
"https://www.googleapis.com/auth/drive.metadata",
"https://www.googleapis.com/auth/drive.metadata.readonly",
"https://www.googleapis.com/auth/drive.photos.readonly",
"https://www.googleapis.com/auth/drive.readonly"
]
},
@@ -4107,6 +4197,7 @@
"https://www.googleapis.com/auth/drive.file",
"https://www.googleapis.com/auth/drive.metadata",
"https://www.googleapis.com/auth/drive.metadata.readonly",
"https://www.googleapis.com/auth/drive.photos.readonly",
"https://www.googleapis.com/auth/drive.readonly"
]
},