diff --git a/samples/manifest-request.js b/samples/manifest-request.js index 3817bfd..a76909c 100644 --- a/samples/manifest-request.js +++ b/samples/manifest-request.js @@ -40,12 +40,12 @@ async function main( // const sourceAgentPoolName = 'projects/my-project/agentPools/transfer_service_default' // The root directory path on the source filesystem - // const rootDirectory = '/directory/to/transfer/source', + // const rootDirectory = '/directory/to/transfer/source' // The ID of the GCS bucket to transfer data to // const gcsSinkBucket = 'my-sink-bucket' - // Transfer manifest location. Must be a + // Transfer manifest location. Must be a `gs:` URL // const manifestLocation = 'gs://my-bucket/sample_manifest.csv' // Creates a client @@ -54,7 +54,7 @@ async function main( /** * Creates a request to transfer from the local file system to the sink bucket */ - async function transferDirectory() { + async function transferViaManifest() { const createRequest = { transferJob: { projectId, @@ -87,7 +87,7 @@ async function main( ); } - transferDirectory(); + transferViaManifest(); // [END storagetransfer_manifest_request] } diff --git a/samples/posix-download.js b/samples/posix-download.js index 818de46..3314992 100644 --- a/samples/posix-download.js +++ b/samples/posix-download.js @@ -45,8 +45,8 @@ async function main( // An optional path on the Google Cloud Storage bucket to download from // const gcsSourcePath = 'foo/bar/' - // The root directory path on the source filesystem - // const rootDirectory = '/directory/to/transfer/source', + // The root directory path on the destination filesystem + // const rootDirectory = '/directory/to/transfer/sink' // Creates a client const client = new StorageTransferServiceClient(); @@ -54,7 +54,7 @@ async function main( /** * Creates a request to transfer from the local file system to the sink bucket */ - async function transferDirectory() { + async function downloadFromGCS() { const createRequest = { transferJob: { projectId, @@ -87,7 +87,7 @@ async function main( ); } - transferDirectory(); + downloadFromGCS(); // [END storagetransfer_download_to_posix] } diff --git a/samples/posix-request.js b/samples/posix-request.js index 8ff8ee6..e405c6f 100644 --- a/samples/posix-request.js +++ b/samples/posix-request.js @@ -39,7 +39,7 @@ async function main( // const sourceAgentPoolName = 'projects/my-project/agentPools/transfer_service_default' // The root directory path on the source filesystem - // const rootDirectory = '/directory/to/transfer/source', + // const rootDirectory = '/directory/to/transfer/source' // The ID of the GCS bucket to transfer data to // const gcsSinkBucket = 'my-sink-bucket' diff --git a/samples/posix-to-posix-request.js b/samples/posix-to-posix-request.js index 50f3097..8228f20 100644 --- a/samples/posix-to-posix-request.js +++ b/samples/posix-to-posix-request.js @@ -44,7 +44,7 @@ async function main( // const sinkAgentPoolName = 'projects/my-project/agentPools/transfer_service_default' // The root directory path on the source filesystem - // const rootDirectory = '/directory/to/transfer/source', + // const rootDirectory = '/directory/to/transfer/source' // The root directory path on the sink filesystem // const destinationDirectory = '/directory/to/transfer/sink' diff --git a/samples/test/manifest-request.test.js b/samples/test/manifest-request.test.js index b0db4a4..8f147fa 100644 --- a/samples/test/manifest-request.test.js +++ b/samples/test/manifest-request.test.js @@ -72,7 +72,7 @@ describe('manifest-request', () => { await fs.rmdir(rootDirectory); }); - it('should create a transfer job with a manifest from POSIX to GCS', async () => { + it('should create a transfer job using a manifest from POSIX to GCS', async () => { const output = await runSample('manifest-request', [ projectId, sourceAgentPoolName,