Skip to content

Commit

Permalink
docs: [storagetransfer] add default values to quickstart (#4037)
Browse files Browse the repository at this point in the history
* add samples to quickstart

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* fix copyright

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
  • Loading branch information
JesseLovelace and gcf-owl-bot[bot] authored Mar 1, 2023
1 parent bd2b775 commit eeff90b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"clientLibrary": {
"name": "nodejs-storagetransfer",
"version": "2.3.0",
"version": "2.3.1",
"language": "TYPESCRIPT",
"apis": [
{
Expand Down
8 changes: 7 additions & 1 deletion packages/google-storagetransfer/samples/quickstart.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright 2023 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
Expand All @@ -13,7 +15,11 @@

'use strict';

async function main(projectId = 'my-project', gcsSourceBucket, gcsSinkBucket) {
async function main(
projectId = 'my-project',
gcsSourceBucket = 'my-source-bucket',
gcsSinkBucket = 'my-sink-bucket'
) {
// [START storagetransfer_quickstart]

// Imports the Google Cloud client library
Expand Down

0 comments on commit eeff90b

Please sign in to comment.