diff --git a/drive/snippets/drive_v3/appdata_snippets/upload_appdata.js b/drive/snippets/drive_v3/appdata_snippets/upload_appdata.js index 270684a5..42661f9f 100644 --- a/drive/snippets/drive_v3/appdata_snippets/upload_appdata.js +++ b/drive/snippets/drive_v3/appdata_snippets/upload_appdata.js @@ -40,7 +40,7 @@ async function uploadAppdata() { }; try { const file = await service.files.create({ - resource: fileMetadata, + requestBody: fileMetadata, media: media, fields: 'id', }); diff --git a/drive/snippets/drive_v3/file_snippets/create_folder.js b/drive/snippets/drive_v3/file_snippets/create_folder.js index 5b062ede..73d73557 100644 --- a/drive/snippets/drive_v3/file_snippets/create_folder.js +++ b/drive/snippets/drive_v3/file_snippets/create_folder.js @@ -36,7 +36,7 @@ async function createFolder() { }; try { const file = await service.files.create({ - resource: fileMetadata, + requestBody: fileMetadata, fields: 'id', }); console.log('Folder Id:', file.data.id); diff --git a/drive/snippets/drive_v3/file_snippets/create_shortcut.js b/drive/snippets/drive_v3/file_snippets/create_shortcut.js index f17e11c0..70a3a867 100644 --- a/drive/snippets/drive_v3/file_snippets/create_shortcut.js +++ b/drive/snippets/drive_v3/file_snippets/create_shortcut.js @@ -37,7 +37,7 @@ async function createShortcut() { try { const file = await service.files.create({ - resource: fileMetadata, + requestBody: fileMetadata, fields: 'id', }); console.log('File Id:', file.data.id); diff --git a/drive/snippets/drive_v3/file_snippets/touch_file.js b/drive/snippets/drive_v3/file_snippets/touch_file.js index f61c7b19..636198c7 100644 --- a/drive/snippets/drive_v3/file_snippets/touch_file.js +++ b/drive/snippets/drive_v3/file_snippets/touch_file.js @@ -38,7 +38,7 @@ async function touchFile(fileId, Timestamp) { try { const file = await service.files.update({ fileId: fileId, - resource: fileMetadata, + requestBody: fileMetadata, fields: 'id, modifiedTime', }); console.log('Modified time:', file.data.modifiedTime); diff --git a/drive/snippets/drive_v3/file_snippets/upload_to_folder.js b/drive/snippets/drive_v3/file_snippets/upload_to_folder.js index ca643d52..952dad63 100644 --- a/drive/snippets/drive_v3/file_snippets/upload_to_folder.js +++ b/drive/snippets/drive_v3/file_snippets/upload_to_folder.js @@ -44,7 +44,7 @@ async function uploadToFolder(folderId) { try { const file = await service.files.create({ - resource: fileMetadata, + requestBody: fileMetadata, media: media, fields: 'id', }); diff --git a/drive/snippets/drive_v3/file_snippets/upload_with_conversion.js b/drive/snippets/drive_v3/file_snippets/upload_with_conversion.js index 05ce2dc5..f8d35de6 100644 --- a/drive/snippets/drive_v3/file_snippets/upload_with_conversion.js +++ b/drive/snippets/drive_v3/file_snippets/upload_with_conversion.js @@ -40,7 +40,7 @@ async function uploadWithConversion() { try { const file = await service.files.create({ - resource: fileMetadata, + requestBody: fileMetadata, media: media, fields: 'id', });