Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update transfer manager sample region tags #2287

Merged
merged 1 commit into from
Sep 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions samples/downloadFileInChunksWithTransferManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ function main(
destFileName = path.join(cwd, fileName),
chunkSize = 1024
) {
// [START storage_download_many_files_transfer_manager]
// [START storage_transfer_manager_download_chunks_concurrently]
/**
* TODO(developer): Uncomment the following lines before running the sample.
*/
Expand Down Expand Up @@ -67,7 +67,7 @@ function main(
}

downloadFileInChunksWithTransferManager().catch(console.error);
// [END storage_download_many_files_transfer_manager]
// [END storage_transfer_manager_download_chunks_concurrently]
}

process.on('unhandledRejection', err => {
Expand Down
4 changes: 2 additions & 2 deletions samples/downloadFolderWithTransferManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
// usage: node downloadFolderWithTransferManager.js <BUCKET_NAME> <FOLDER_NAME>

function main(bucketName = 'my-bucket', folderName = 'my-folder') {
// [START storage_download_folder_transfer_manager]
// [START storage_transfer_manager_download_folder]
/**
* TODO(developer): Uncomment the following lines before running the sample.
*/
Expand Down Expand Up @@ -50,7 +50,7 @@ function main(bucketName = 'my-bucket', folderName = 'my-folder') {
}

downloadFolderWithTransferManager().catch(console.error);
// [END storage_download_folder_transfer_manager]
// [END storage_transfer_manager_download_folder]
}

process.on('unhandledRejection', err => {
Expand Down
4 changes: 2 additions & 2 deletions samples/downloadManyFilesWithTransferManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ function main(
firstFileName = 'file1.txt',
secondFileName = 'file2.txt'
) {
// [START storage_download_many_files_transfer_manager]
// [START storage_transfer_manager_download_many]
/**
* TODO(developer): Uncomment the following lines before running the sample.
*/
Expand Down Expand Up @@ -57,7 +57,7 @@ function main(
}

downloadManyFilesWithTransferManager().catch(console.error);
// [END storage_download_many_files_transfer_manager]
// [END storage_transfer_manager_download_many]
}

process.on('unhandledRejection', err => {
Expand Down
4 changes: 2 additions & 2 deletions samples/uploadDirectoryWithTransferManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
// usage: node uploadFolderWithTransferManager.js <BUCKET_NAME> <DIRECTORY_NAME>

function main(bucketName = 'my-bucket', directoryName = 'my-directory') {
// [START storage_upload_directory_transfer_manager]
// [START storage_transfer_manager_upload_directory]
/**
* TODO(developer): Uncomment the following lines before running the sample.
*/
Expand All @@ -48,7 +48,7 @@ function main(bucketName = 'my-bucket', directoryName = 'my-directory') {
}

uploadDirectoryWithTransferManager().catch(console.error);
// [END storage_upload_directory_transfer_manager]
// [END storage_transfer_manager_upload_directory]
}

process.on('unhandledRejection', err => {
Expand Down
4 changes: 2 additions & 2 deletions samples/uploadManyFilesWithTransferManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ function main(
firstFilePath = './local/path/to/file1.txt',
secondFilePath = './local/path/to/file2.txt'
) {
// [START storage_upload_many_files_transfer_manager]
// [START storage_transfer_manager_upload_many]
/**
* TODO(developer): Uncomment the following lines before running the sample.
*/
Expand Down Expand Up @@ -57,7 +57,7 @@ function main(
}

uploadManyFilesWithTransferManager().catch(console.error);
// [END storage_upload_many_files_transfer_manager]
// [END storage_transfer_manager_upload_many]
}

process.on('unhandledRejection', err => {
Expand Down