Referensi ini menyediakan semua perbedaan sumber daya antara v2 dan v3. Sebagai perbedaan garis besar antara kedua versi tersebut, lihat Drive API v2 dan Panduan perbandingan v3.
Perbedaan metode antara v2 dan v3
Tabel ini menunjukkan metode v2 yang telah berubah di v3.
Metode v2 | Metode v3 |
---|---|
children.delete |
files.update pada turunan dengan ?removeParents=parent_id |
children.get |
files.list dengan ?q='parent_id'+in+parents |
children.insert |
files.update pada turunan dengan ?addParents=parent_id |
children.list |
files.list dengan ?q='parent_id'+in+parents |
comments.insert |
comments.create |
comments.patch |
comments.update |
files.insert |
files.create |
files.patch |
files.update |
files.touch |
files.update dengan {'modifiedTime':'timestamp'} |
files.trash |
files.update dengan {'trashed':true} |
files.untrash |
files.update dengan {'trashed':false} |
parents.delete |
files.update dengan ?removeParents=parent_id |
parents.get |
files.get dengan ?fields=parents |
parents.insert |
files.update dengan ?addParents=parent_id |
parents.list |
files.get dengan ?fields=parents |
permissions.getIdForEmail |
t/a |
permissions.insert |
permissions.create |
permissions.patch |
permissions.update |
properties.delete |
PRIBADI: files.update dengan {'appProperties':{'key':null}} PUBLIC: files.update dengan {'properties':{'key':null}} |
properties.get |
PRIBADI: files.get dengan fields='appProperties' PUBLIC: files.get dengan fields='properties' |
properties.insert |
PRIBADI: files.update dengan {'appProperties':{'key':'value'}} PUBLIK: files.update dengan {'properties':{'key':'value'}} |
properties.list |
PRIBADI: files.get dengan fields='appProperties' PUBLIC: files.get dengan fields='properties' |
properties.update |
PRIBADI: files.update dengan {'appProperties':{'key':'value'}} PUBLIC: files.update dengan {'properties':{'key':'value'}} |
replies.insert |
replies.create |
replies.patch |
replies.update |
revisions.patch |
revisions.update |
Perbedaan parameter antara v2 dan v3
Tabel berikut menunjukkan metode yang sama di v2 dan v3, tetapi mengambil parameter yang berbeda.
Metode | Parameter v2 | Parameter v3 |
---|---|---|
about.get |
includeSubscribed |
t/a |
about.get |
maxChangeIdCount |
t/a |
about.get |
startChangeId |
t/a |
changes.list |
includeDeleted |
includeRemoved |
changes.list |
includeSubscribed=true |
restrictToMyDrive=false |
changes.list |
includeSubscribed=false |
restrictToMyDrive=true |
changes.list |
maxResults |
pageSize |
changes.list |
startChangeId |
pageToken |
changes.list |
etag |
t/a |
changes.list |
items |
changes |
changes.list |
largestChangeId |
newStartPageToken |
changes.list |
nextLink |
nextPageToken |
changes.list |
selfLink |
t/a |
comments.list |
maxResults |
pageSize |
comments.list |
updatedMin |
startModifiedTime |
comments.list |
nextLink |
nextPageToken |
comments.list |
selfLink |
t/a |
comments.list |
items |
comments |
files.copy |
convert |
Menyediakan mimeType target dalam isi resource |
files.copy |
ocr |
OCR diaktifkan secara otomatis untuk impor gambar |
files.copy |
pinned |
keepRevisionForever |
files.copy |
timedTextLanguage |
t/a |
files.copy |
timedTextTrackName |
t/a |
files.copy |
visibility=DEFAULT |
ignoreDefaultVisibility=false |
files.copy |
visibility=PRIVATE |
ignoreDefaultVisibility=true |
files.insert |
convert |
Menyediakan mimeType target dalam isi resource |
files.insert |
ocr |
OCR diaktifkan secara otomatis untuk impor gambar |
files.insert |
pinned |
keepRevisionForever |
files.insert |
timedTextLanguage |
t/a |
files.insert |
timedTextTrackName |
t/a |
files.insert |
visibility=DEFAULT |
ignoreDefaultVisibility=false |
files.insert |
visibility=PRIVATE |
ignoreDefaultVisibility=true |
files.get |
projection |
t/a |
files.get |
revisionId |
revisions.get |
files.get |
updateViewedDate |
files.update dengan {'viewedByMeTime':'timestamp'} |
files.generateIds |
maxResults |
count |
files.list |
corpora=default |
corpus=user |
files.list |
corpora=domain |
corpus=domain |
files.list |
maxResults |
pageSize |
files.list |
etag |
t/a |
files.list |
items |
files |
files.list |
nextLink |
nextPageToken |
files.list |
selfLink |
t/a |
files.update |
modifiedDateBehavior |
Tanggal yang diubah akan ditetapkan secara otomatis jika tidak diberikan dalam isi resource. |
files.update |
newRevision |
t/a |
files.update |
ocr |
OCR diaktifkan secara otomatis untuk impor gambar |
files.update |
pinned |
keepRevisionForever |
files.update |
setModifiedDate |
t/a |
files.update |
timedTextLanguage |
t/a |
files.update |
timedTextTrackName |
t/a |
files.update |
updateViewedDate |
files.update dengan {'viewedByMeTime':'timestamp'} |
permissions.insert |
sendNotificationEmails |
sendNotificationEmail |
permissions.list |
etag |
t/a |
permissions.list |
items |
permissions |
permissions.list |
selfLink |
t/a |
replies.list |
maxResults |
pageSize |
replies.list |
items |
replies |
replies.list |
nextLink |
nextPageToken |
replies.list |
selfLink |
t/a |
revisions.list |
etag |
t/a |
revisions.list |
items |
revisions |
revisions.list |
selfLink |
t/a |
Perbedaan kolom resource antara v2 dan v3
Tabel ini menunjukkan kolom resource yang telah berubah dari v2 ke v3.
Resource | v2 Field |
v3 Field |
---|---|---|
About |
additionalRoleInfo |
t/a |
About |
domainSharingPolicy |
t/a |
About |
etag |
t/a |
About |
features |
t/a |
About |
languageCode |
t/a |
About |
largestChangeId |
changes.getStartPageToken |
About |
maxUploadSizes |
maxImportSizes dan maxUploadSize |
About |
name |
user.displayName |
About |
permissionId |
user.permissionId |
About |
quotaBytesByService |
t/a |
About |
quotaType |
Ditunjukkan dengan ada atau tidaknya storageQuota.limit |
About |
remainingChangeIds |
t/a |
About |
rootFolderId |
files.get dengan fileId=root dan ?fields=id |
About |
selfLink |
t/a |
About |
isCurrentAppInstalled |
appInstalled |
About |
quotaBytesTotal |
storageQuota.limit |
About |
quotaBytesUsed |
storageQuota.usageInDrive |
About |
quotaBytesUsedAggregate |
storageQuota.usage |
About |
quotaBytesUsedInTrash |
storageQuota.usageInDriveTrash |
Apps |
etag |
t/a |
Changes |
deleted |
removed |
Changes |
id |
t/a |
Changes |
selfLink |
t/a |
Changes |
modificationDate |
time |
Comments |
context.type |
quotedFileContent.mimeType |
Comments |
context.value |
quotedFileContent.value |
Comments |
createdDate |
createdTime |
Comments |
fileId |
t/a |
Comments |
fileTitle |
files.get dengan ?fields=name |
Comments |
modifiedDate |
modifiedTime |
Comments |
selfLink |
t/a |
Comments |
status |
resolved |
Files |
alternateLink |
webViewLink |
Files |
appDataContents |
spaces |
Files |
copyable |
capabilities.canCopy |
Files |
createdDate |
createdTime |
Files |
defaultOpenWithLink |
t/a |
Files |
downloadUrl |
files.get dengan ?alt=media |
Files |
editable |
capabilities.canEdit |
Files |
embedLink |
t/a |
Files |
etag |
t/a |
Files |
fileSize |
size |
Files |
imageMediaMetadata.date |
imageMediaMetadata.time |
Files |
indexableText.text |
contentHints.indexableText |
Files |
copyRequiresWriterPermission |
viewersCanCopyContent |
Files |
labels.starred |
starred |
Files |
labels.trashed |
trashed |
Files |
labels.viewed |
viewedByMe |
Files |
lastModifyingUserName |
lastModifyingUser.displayName |
Files |
lastViewedByMeDate |
viewedByMeTime |
Files |
modifiedByMeDate |
modifiedByMeTime |
Files |
modifiedDate |
modifiedTime |
Files |
openWithLinks |
t/a |
Files |
ownerNames |
owners.displayName |
Files |
selfLink |
t/a |
Files |
sharedWithMeDate |
sharedWithMeTime |
Files |
thumbnail.image |
contentHints.thumbnail.image |
Files |
thumbnail.mimeType |
contentHints.thumbnail.mimeType |
Files |
title |
name |
Files |
userPermission |
ownedByMe , capabilities.canEdit , capabilities.canComment |
Files |
webViewLink |
t/a |
Permissions |
additionalRoles |
role |
Permissions |
authKey |
t/a |
Permissions |
etag |
t/a |
Permissions |
name |
displayName |
Permissions |
selfLink |
t/a |
Permissions |
value |
emailAddress atau domain |
Permissions |
withLink=true |
allowFileDiscovery=false |
Permissions |
withLink=false |
allowFileDiscovery=true |
Replies |
createdDate |
createdTime |
Replies |
modifiedDate |
modifiedTime |
Replies |
replyId |
id |
Replies |
verb |
action |
Revisions |
downloadUrl |
revisions.get dengan ?alt=media |
Revisions |
etag |
t/a |
Revisions |
fileSize |
size |
Revisions |
lastModifyingUserName |
lastModifyingUser.displayName |
Revisions |
modifiedDate |
modifiedTime |
Revisions |
pinned |
keepForever |
Revisions |
publishedLink |
t/a |
Revisions |
selfLink |
t/a |
Revisions |
isAuthenticatedUser |
me |
Revisions |
lastModifyingUser.picture.url |
photoLink |