CINXE.COM
Home - Documentation
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title> Home - Documentation </title> <script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.7.0/highlight.min.js"></script> <script>hljs.initHighlightingOnLoad();</script> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js"></script> <link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css"> <link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css"> </head> <body> <svg style="display: none;"> <defs> <symbol id="linkIcon" fill="#706d77" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"> <path d="M0 0h24v24H0z" fill="none"/> <path d="M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z"/> </symbol> </defs> </svg> <input type="checkbox" id="nav-trigger" class="nav-trigger" /> <label for="nav-trigger" class="navicon-button x"> <div class="navicon"></div> </label> <label for="nav-trigger" class="overlay"></label> <div class="top-nav-wrapper"> <ul> <li class="active" > <a href="index.html"> <svg fill="#0095dd" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"> <path d="M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"/> <path d="M0 0h24v24H0z" fill="none"/> </svg> </a> </li> </ul> </div> <nav> <h3 class="reference-title"> SDK Client Reference </h3> <h3>Classes</h3><ul><li id="ApiError-nav"><a href="ApiError.html">ApiError</a></li><li id="Bucket-nav"><a href="Bucket.html">Bucket</a><ul class='methods'><li data-type="method" id="Bucket-addLifecycleRule-nav"><a href="Bucket.html#addLifecycleRule">addLifecycleRule</a></li><li data-type="method" id="Bucket-combine-nav"><a href="Bucket.html#combine">combine</a></li><li data-type="method" id="Bucket-create-nav"><a href="Bucket.html#create">create</a></li><li data-type="method" id="Bucket-createChannel-nav"><a href="Bucket.html#createChannel">createChannel</a></li><li data-type="method" id="Bucket-createNotification-nav"><a href="Bucket.html#createNotification">createNotification</a></li><li data-type="method" id="Bucket-delete-nav"><a href="Bucket.html#delete">delete</a></li><li data-type="method" id="Bucket-deleteFiles-nav"><a href="Bucket.html#deleteFiles">deleteFiles</a></li><li data-type="method" id="Bucket-deleteLabels-nav"><a href="Bucket.html#deleteLabels">deleteLabels</a></li><li data-type="method" id="Bucket-disableRequesterPays-nav"><a href="Bucket.html#disableRequesterPays">disableRequesterPays</a></li><li data-type="method" id="Bucket-enableLogging-nav"><a href="Bucket.html#enableLogging">enableLogging</a></li><li data-type="method" id="Bucket-enableRequesterPays-nav"><a href="Bucket.html#enableRequesterPays">enableRequesterPays</a></li><li data-type="method" id="Bucket-exists-nav"><a href="Bucket.html#exists">exists</a></li><li data-type="method" id="Bucket-file-nav"><a href="Bucket.html#file">file</a></li><li data-type="method" id="Bucket-get-nav"><a href="Bucket.html#get">get</a></li><li data-type="method" id="Bucket-getFiles-nav"><a href="Bucket.html#getFiles">getFiles</a></li><li data-type="method" id="Bucket-getFilesStream-nav"><a href="Bucket.html#getFilesStream">getFilesStream</a></li><li data-type="method" id="Bucket-getLabels-nav"><a href="Bucket.html#getLabels">getLabels</a></li><li data-type="method" id="Bucket-getMetadata-nav"><a href="Bucket.html#getMetadata">getMetadata</a></li><li data-type="method" id="Bucket-getNotifications-nav"><a href="Bucket.html#getNotifications">getNotifications</a></li><li data-type="method" id="Bucket-getSignedUrl-nav"><a href="Bucket.html#getSignedUrl">getSignedUrl</a></li><li data-type="method" id="Bucket-lock-nav"><a href="Bucket.html#lock">lock</a></li><li data-type="method" id="Bucket-makePrivate-nav"><a href="Bucket.html#makePrivate">makePrivate</a></li><li data-type="method" id="Bucket-makePublic-nav"><a href="Bucket.html#makePublic">makePublic</a></li><li data-type="method" id="Bucket-notification-nav"><a href="Bucket.html#notification">notification</a></li><li data-type="method" id="Bucket-removeRetentionPeriod-nav"><a href="Bucket.html#removeRetentionPeriod">removeRetentionPeriod</a></li><li data-type="method" id="Bucket-setCorsConfiguration-nav"><a href="Bucket.html#setCorsConfiguration">setCorsConfiguration</a></li><li data-type="method" id="Bucket-setLabels-nav"><a href="Bucket.html#setLabels">setLabels</a></li><li data-type="method" id="Bucket-setMetadata-nav"><a href="Bucket.html#setMetadata">setMetadata</a></li><li data-type="method" id="Bucket-setRetentionPeriod-nav"><a href="Bucket.html#setRetentionPeriod">setRetentionPeriod</a></li><li data-type="method" id="Bucket-setStorageClass-nav"><a href="Bucket.html#setStorageClass">setStorageClass</a></li><li data-type="method" id="Bucket-setUserProject-nav"><a href="Bucket.html#setUserProject">setUserProject</a></li><li data-type="method" id="Bucket-upload-nav"><a href="Bucket.html#upload">upload</a></li></ul></li><li id="CRC32C-nav"><a href="CRC32C.html">CRC32C</a><ul class='methods'><li data-type="method" id="CRC32C-toBuffer-nav"><a href="CRC32C.html#toBuffer">toBuffer</a></li><li data-type="method" id="CRC32C-toJSON-nav"><a href="CRC32C.html#toJSON">toJSON</a></li><li data-type="method" id="CRC32C-toString-nav"><a href="CRC32C.html#toString">toString</a></li><li data-type="method" id="CRC32C-update-nav"><a href="CRC32C.html#update">update</a></li><li data-type="method" id="CRC32C-validate-nav"><a href="CRC32C.html#validate">validate</a></li><li data-type="method" id="CRC32C-valueOf-nav"><a href="CRC32C.html#valueOf">valueOf</a></li><li data-type="method" id="CRC32C-from-nav"><a href="CRC32C.html#.from">from</a></li><li data-type="method" id="CRC32C-fromBuffer-nav"><a href="CRC32C.html#.fromBuffer">fromBuffer</a></li><li data-type="method" id="CRC32C-fromNumber-nav"><a href="CRC32C.html#.fromNumber">fromNumber</a></li><li data-type="method" id="CRC32C-fromString-nav"><a href="CRC32C.html#.fromString">fromString</a></li></ul></li><li id="Channel-nav"><a href="Channel.html">Channel</a><ul class='methods'><li data-type="method" id="Channel-stop-nav"><a href="Channel.html#stop">stop</a></li></ul></li><li id="File-nav"><a href="File.html">File</a><ul class='methods'><li data-type="method" id="File-copy-nav"><a href="File.html#copy">copy</a></li><li data-type="method" id="File-createReadStream-nav"><a href="File.html#createReadStream">createReadStream</a></li><li data-type="method" id="File-createResumableUpload-nav"><a href="File.html#createResumableUpload">createResumableUpload</a></li><li data-type="method" id="File-createWriteStream-nav"><a href="File.html#createWriteStream">createWriteStream</a></li><li data-type="method" id="File-delete-nav"><a href="File.html#delete">delete</a></li><li data-type="method" id="File-download-nav"><a href="File.html#download">download</a></li><li data-type="method" id="File-exists-nav"><a href="File.html#exists">exists</a></li><li data-type="method" id="File-generateSignedPostPolicyV2-nav"><a href="File.html#generateSignedPostPolicyV2">generateSignedPostPolicyV2</a></li><li data-type="method" id="File-generateSignedPostPolicyV4-nav"><a href="File.html#generateSignedPostPolicyV4">generateSignedPostPolicyV4</a></li><li data-type="method" id="File-get-nav"><a href="File.html#get">get</a></li><li data-type="method" id="File-getExpirationDate-nav"><a href="File.html#getExpirationDate">getExpirationDate</a></li><li data-type="method" id="File-getMetadata-nav"><a href="File.html#getMetadata">getMetadata</a></li><li data-type="method" id="File-getSignedUrl-nav"><a href="File.html#getSignedUrl">getSignedUrl</a></li><li data-type="method" id="File-isPublic-nav"><a href="File.html#isPublic">isPublic</a></li><li data-type="method" id="File-makePrivate-nav"><a href="File.html#makePrivate">makePrivate</a></li><li data-type="method" id="File-makePublic-nav"><a href="File.html#makePublic">makePublic</a></li><li data-type="method" id="File-move-nav"><a href="File.html#move">move</a></li><li data-type="method" id="File-publicUrl-nav"><a href="File.html#publicUrl">publicUrl</a></li><li data-type="method" id="File-rename-nav"><a href="File.html#rename">rename</a></li><li data-type="method" id="File-restore-nav"><a href="File.html#restore">restore</a></li><li data-type="method" id="File-rotateEncryptionKey-nav"><a href="File.html#rotateEncryptionKey">rotateEncryptionKey</a></li><li data-type="method" id="File-save-nav"><a href="File.html#save">save</a></li><li data-type="method" id="File-setEncryptionKey-nav"><a href="File.html#setEncryptionKey">setEncryptionKey</a></li><li data-type="method" id="File-setMetadata-nav"><a href="File.html#setMetadata">setMetadata</a></li><li data-type="method" id="File-setStorageClass-nav"><a href="File.html#setStorageClass">setStorageClass</a></li><li data-type="method" id="File-setUserProject-nav"><a href="File.html#setUserProject">setUserProject</a></li><li data-type="method" id="File-from-nav"><a href="File.html#.from">from</a></li></ul></li><li id="HmacKey-nav"><a href="HmacKey.html">HmacKey</a><ul class='methods'><li data-type="method" id="HmacKey-delete-nav"><a href="HmacKey.html#delete">delete</a></li><li data-type="method" id="HmacKey-get-nav"><a href="HmacKey.html#get">get</a></li><li data-type="method" id="HmacKey-getMetadata-nav"><a href="HmacKey.html#getMetadata">getMetadata</a></li><li data-type="method" id="HmacKey-setMetadata-nav"><a href="HmacKey.html#setMetadata">setMetadata</a></li></ul></li><li id="Iam-nav"><a href="Iam.html">Iam</a><ul class='methods'><li data-type="method" id="Iam-getPolicy-nav"><a href="Iam.html#getPolicy">getPolicy</a></li><li data-type="method" id="Iam-setPolicy-nav"><a href="Iam.html#setPolicy">setPolicy</a></li><li data-type="method" id="Iam-testPermissions-nav"><a href="Iam.html#testPermissions">testPermissions</a></li></ul></li><li id="Notification-nav"><a href="Notification.html">Notification</a><ul class='methods'><li data-type="method" id="Notification-create-nav"><a href="Notification.html#create">create</a></li><li data-type="method" id="Notification-exists-nav"><a href="Notification.html#exists">exists</a></li></ul></li><li id="PartialFailureError-nav"><a href="PartialFailureError.html">PartialFailureError</a></li><li id="ProgressStream-nav"><a href="ProgressStream.html">ProgressStream</a></li><li id="ServiceObject-nav"><a href="ServiceObject.html">ServiceObject</a><ul class='methods'><li data-type="method" id="ServiceObject-getRequestInterceptors-nav"><a href="ServiceObject.html#getRequestInterceptors">getRequestInterceptors</a></li><li data-type="method" id="ServiceObject-requestStream-nav"><a href="ServiceObject.html#requestStream">requestStream</a></li></ul></li><li id="Storage-nav"><a href="Storage.html">Storage</a><ul class='methods'><li data-type="method" id="Storage-bucket-nav"><a href="Storage.html#bucket">bucket</a></li><li data-type="method" id="Storage-channel-nav"><a href="Storage.html#channel">channel</a></li><li data-type="method" id="Storage-createBucket-nav"><a href="Storage.html#createBucket">createBucket</a></li><li data-type="method" id="Storage-createHmacKey-nav"><a href="Storage.html#createHmacKey">createHmacKey</a></li><li data-type="method" id="Storage-getBuckets-nav"><a href="Storage.html#getBuckets">getBuckets</a></li><li data-type="method" id="Storage-getBucketsStream-nav"><a href="Storage.html#getBucketsStream">getBucketsStream</a></li><li data-type="method" id="Storage-getHmacKeysStream-nav"><a href="Storage.html#getHmacKeysStream">getHmacKeysStream</a></li><li data-type="method" id="Storage-getServiceAccount-nav"><a href="Storage.html#getServiceAccount">getServiceAccount</a></li><li data-type="method" id="Storage-hmacKey-nav"><a href="Storage.html#hmacKey">hmacKey</a></li></ul></li><li id="TransferManager-nav"><a href="TransferManager.html">TransferManager</a><ul class='methods'><li data-type="method" id="TransferManager-downloadFileInChunks-nav"><a href="TransferManager.html#downloadFileInChunks">downloadFileInChunks</a></li><li data-type="method" id="TransferManager-downloadManyFiles-nav"><a href="TransferManager.html#downloadManyFiles">downloadManyFiles</a></li><li data-type="method" id="TransferManager-uploadFileInChunks-nav"><a href="TransferManager.html#uploadFileInChunks">uploadFileInChunks</a></li><li data-type="method" id="TransferManager-uploadManyFiles-nav"><a href="TransferManager.html#uploadManyFiles">uploadManyFiles</a></li></ul></li><li id="module:common_service-nav"><a href="module-common_service.html">common/service</a></li></ul><h3>Modules</h3><ul><li id="@google-cloud_storage-nav"><a href="module-@google-cloud_storage.html">@google-cloud/storage</a></li></ul><h3 id="global-nav">Global</h3><ul><li><a href="global.html#AUTO_RETRY_DEFAULT">AUTO_RETRY_DEFAULT</a></li><li><a href="global.html#CRC32C_EXTENSIONS">CRC32C_EXTENSIONS</a></li><li><a href="global.html#DEFAULT_PARALLEL_CHUNKED_DOWNLOAD_LIMIT">DEFAULT_PARALLEL_CHUNKED_DOWNLOAD_LIMIT</a></li><li><a href="global.html#DEFAULT_PARALLEL_CHUNKED_UPLOAD_LIMIT">DEFAULT_PARALLEL_CHUNKED_UPLOAD_LIMIT</a></li><li><a href="global.html#DEFAULT_PARALLEL_DOWNLOAD_LIMIT">DEFAULT_PARALLEL_DOWNLOAD_LIMIT</a></li><li><a href="global.html#DEFAULT_PARALLEL_UPLOAD_LIMIT">DEFAULT_PARALLEL_UPLOAD_LIMIT</a></li><li><a href="global.html#DOWNLOAD_IN_CHUNKS_DEFAULT_CHUNK_SIZE">DOWNLOAD_IN_CHUNKS_DEFAULT_CHUNK_SIZE</a></li><li><a href="global.html#DOWNLOAD_IN_CHUNKS_FILE_SIZE_THRESHOLD">DOWNLOAD_IN_CHUNKS_FILE_SIZE_THRESHOLD</a></li><li><a href="global.html#GCCL_GCS_CMD_FEATURE">GCCL_GCS_CMD_FEATURE</a></li><li><a href="global.html#GCCL_GCS_CMD_KEY">GCCL_GCS_CMD_KEY</a></li><li><a href="global.html#MAX_RETRY_DEFAULT">MAX_RETRY_DEFAULT</a></li><li><a href="global.html#MAX_RETRY_DELAY_DEFAULT">MAX_RETRY_DELAY_DEFAULT</a></li><li><a href="global.html#PATH_STYLED_HOST">PATH_STYLED_HOST</a></li><li><a href="global.html#RETRYABLE_ERR_FN_DEFAULT">RETRYABLE_ERR_FN_DEFAULT</a></li><li><a href="global.html#RETRY_DELAY_MULTIPLIER_DEFAULT">RETRY_DELAY_MULTIPLIER_DEFAULT</a></li><li><a href="global.html#STORAGE_POST_POLICY_BASE_URL">STORAGE_POST_POLICY_BASE_URL</a></li><li><a href="global.html#TOTAL_TIMEOUT_DEFAULT">TOTAL_TIMEOUT_DEFAULT</a></li><li><a href="global.html#UPLOAD_IN_CHUNKS_DEFAULT_CHUNK_SIZE">UPLOAD_IN_CHUNKS_DEFAULT_CHUNK_SIZE</a></li><li><a href="global.html#checkUploadStatus">checkUploadStatus</a></li><li><a href="global.html#convertObjKeysToSnakeCase">convertObjKeysToSnakeCase</a></li><li><a href="global.html#encodeURI">encodeURI</a></li><li><a href="global.html#fixedEncodeURIComponent">fixedEncodeURIComponent</a></li><li><a href="global.html#formatAsUTCISO">formatAsUTCISO</a></li><li><a href="global.html#getRuntimeTrackingString">getRuntimeTrackingString</a></li><li><a href="global.html#getUserAgentString">getUserAgentString</a></li><li><a href="global.html#objectEntries">objectEntries</a></li><li><a href="global.html#qsStringify">qsStringify</a></li><li><a href="global.html#unicodeJSONStringify">unicodeJSONStringify</a></li></ul> </nav> <div id="main"> <section class="readme"> <article> <img src="https://avatars2.githubusercontent.com/u/2810941?v=3&s=96" alt="Google Cloud Platform logo" title="Google Cloud Platform" align="right" height="96" width="96"/> <h1 id="google-cloud-storage%3A-node.js-client"><a href="https://github.com/googleapis/nodejs-storage">Google Cloud Storage: Node.js Client</a></h1> <p><a href="https://cloud.google.com/terms/launch-stages"><img src="https://img.shields.io/badge/release%20level-stable-brightgreen.svg?style=flat" alt="release level"></a> <a href="https://www.npmjs.org/package/@google-cloud/storage"><img src="https://img.shields.io/npm/v/@google-cloud/storage.svg" alt="npm version"></a></p> <blockquote> <p>Node.js idiomatic client for <a href="https://cloud.google.com/storage">Cloud Storage</a>.</p> </blockquote> <p><a href="https://cloud.google.com/storage/docs">Cloud Storage</a> allows world-wide storage and retrieval of any amount of data at any time. You can use Google Cloud Storage for a range of scenarios including serving website content, storing data for archival and disaster recovery, or distributing large data objects to users via direct download.</p> <p>A comprehensive list of changes in each version may be found in <a href="https://github.com/googleapis/nodejs-storage/blob/main/CHANGELOG.md">the CHANGELOG</a>.</p> <ul> <li><a href="https://googleapis.dev/nodejs/storage/latest">Google Cloud Storage Node.js Client API Reference</a></li> <li><a href="https://cloud.google.com/storage">Google Cloud Storage Documentation</a></li> <li><a href="https://github.com/googleapis/nodejs-storage">github.com/googleapis/nodejs-storage</a></li> </ul> <p>Read more about the client libraries for Cloud APIs, including the older Google APIs Client Libraries, in <a href="https://cloud.google.com/apis/docs/client-libraries-explained">Client Libraries Explained</a>.</p> <p><strong>Table of contents:</strong></p> <ul> <li><a href="#quickstart">Quickstart</a> <ul> <li><a href="#before-you-begin">Before you begin</a></li> <li><a href="#installing-the-client-library">Installing the client library</a></li> <li><a href="#using-the-client-library">Using the client library</a></li> </ul> </li> <li><a href="#samples">Samples</a></li> <li><a href="#versioning">Versioning</a></li> <li><a href="#contributing">Contributing</a></li> <li><a href="#license">License</a></li> </ul> <h2 id="quickstart">Quickstart</h2> <h3 id="before-you-begin">Before you begin</h3> <ol> <li><a href="https://console.cloud.google.com/project">Select or create a Cloud Platform project</a>.</li> <li><a href="https://support.google.com/cloud/answer/6293499#enable-billing">Enable billing for your project</a>.</li> <li><a href="https://console.cloud.google.com/flows/enableapi?apiid=storage-api.googleapis.com">Enable the Google Cloud Storage API</a>.</li> <li><a href="https://cloud.google.com/docs/authentication/getting-started">Set up authentication with a service account</a> so you can access the API from your local workstation.</li> </ol> <h3 id="installing-the-client-library">Installing the client library</h3> <pre class="prettyprint source lang-bash"><code>npm install @google-cloud/storage </code></pre> <h3 id="using-the-client-library">Using the client library</h3> <pre class="prettyprint source lang-javascript"><code>// Imports the Google Cloud client library const {Storage} = require('@google-cloud/storage'); // For more information on ways to initialize Storage, please see // https://googleapis.dev/nodejs/storage/latest/Storage.html // Creates a client using Application Default Credentials const storage = new Storage(); // Creates a client from a Google service account key // const storage = new Storage({keyFilename: 'key.json'}); /** * TODO(developer): Uncomment these variables before running the sample. */ // The ID of your GCS bucket // const bucketName = 'your-unique-bucket-name'; async function createBucket() { // Creates the new bucket await storage.createBucket(bucketName); console.log(`Bucket ${bucketName} created.`); } createBucket().catch(console.error); </code></pre> <h2 id="samples">Samples</h2> <p>Samples are in the <a href="https://github.com/googleapis/nodejs-storage/tree/main/samples"><code>samples/</code></a> directory. Each sample's <code>README.md</code> has instructions for running its sample.</p> <table> <thead> <tr> <th>Sample</th> <th>Source Code</th> <th>Try it</th> </tr> </thead> <tbody> <tr> <td>Add Bucket Conditional Binding</td> <td><a href="https://github.com/googleapis/nodejs-storage/blob/main/samples/addBucketConditionalBinding.js">source code</a></td> <td><a href="https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/addBucketConditionalBinding.js,samples/README.md"><img src="https://gstatic.com/cloudssh/images/open-btn.png" alt="Open in Cloud Shell"></a></td> </tr> <tr> <td>Add Bucket Default Owner Acl</td> <td><a href="https://github.com/googleapis/nodejs-storage/blob/main/samples/addBucketDefaultOwnerAcl.js">source code</a></td> <td><a href="https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/addBucketDefaultOwnerAcl.js,samples/README.md"><img src="https://gstatic.com/cloudssh/images/open-btn.png" alt="Open in Cloud Shell"></a></td> </tr> <tr> <td>Add Bucket Iam Member</td> <td><a href="https://github.com/googleapis/nodejs-storage/blob/main/samples/addBucketIamMember.js">source code</a></td> <td><a href="https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/addBucketIamMember.js,samples/README.md"><img src="https://gstatic.com/cloudssh/images/open-btn.png" alt="Open in Cloud Shell"></a></td> </tr> <tr> <td>Storage Add Bucket Label.</td> <td><a href="https://github.com/googleapis/nodejs-storage/blob/main/samples/addBucketLabel.js">source code</a></td> <td><a href="https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/addBucketLabel.js,samples/README.md"><img src="https://gstatic.com/cloudssh/images/open-btn.png" alt="Open in Cloud Shell"></a></td> </tr> <tr> <td>Add Bucket Owner Acl</td> <td><a href="https://github.com/googleapis/nodejs-storage/blob/main/samples/addBucketOwnerAcl.js">source code</a></td> <td><a href="https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/addBucketOwnerAcl.js,samples/README.md"><img src="https://gstatic.com/cloudssh/images/open-btn.png" alt="Open in Cloud Shell"></a></td> </tr> <tr> <td>Bucket Website Configuration.</td> <td><a href="https://github.com/googleapis/nodejs-storage/blob/main/samples/addBucketWebsiteConfiguration.js">source code</a></td> <td><a href="https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/addBucketWebsiteConfiguration.js,samples/README.md"><img src="https://gstatic.com/cloudssh/images/open-btn.png" alt="Open in Cloud Shell"></a></td> </tr> <tr> <td>Add File Owner Acl</td> <td><a href="https://github.com/googleapis/nodejs-storage/blob/main/samples/addFileOwnerAcl.js">source code</a></td> <td><a href="https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/addFileOwnerAcl.js,samples/README.md"><img src="https://gstatic.com/cloudssh/images/open-btn.png" alt="Open in Cloud Shell"></a></td> </tr> <tr> <td>Storage Get Bucket Metadata.</td> <td><a href="https://github.com/googleapis/nodejs-storage/blob/main/samples/bucketMetadata.js">source code</a></td> <td><a href="https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/bucketMetadata.js,samples/README.md"><img src="https://gstatic.com/cloudssh/images/open-btn.png" alt="Open in Cloud Shell"></a></td> </tr> <tr> <td>Change Bucket's Default Storage Class.</td> <td><a href="https://github.com/googleapis/nodejs-storage/blob/main/samples/changeDefaultStorageClass.js">source code</a></td> <td><a href="https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/changeDefaultStorageClass.js,samples/README.md"><img src="https://gstatic.com/cloudssh/images/open-btn.png" alt="Open in Cloud Shell"></a></td> </tr> <tr> <td>Storage File Convert CSEK to CMEK.</td> <td><a href="https://github.com/googleapis/nodejs-storage/blob/main/samples/changeFileCSEKToCMEK.js">source code</a></td> <td><a href="https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/changeFileCSEKToCMEK.js,samples/README.md"><img src="https://gstatic.com/cloudssh/images/open-btn.png" alt="Open in Cloud Shell"></a></td> </tr> <tr> <td>Storage Combine files.</td> <td><a href="https://github.com/googleapis/nodejs-storage/blob/main/samples/composeFile.js">source code</a></td> <td><a href="https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/composeFile.js,samples/README.md"><img src="https://gstatic.com/cloudssh/images/open-btn.png" alt="Open in Cloud Shell"></a></td> </tr> <tr> <td>Storage Configure Bucket Cors.</td> <td><a href="https://github.com/googleapis/nodejs-storage/blob/main/samples/configureBucketCors.js">source code</a></td> <td><a href="https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/configureBucketCors.js,samples/README.md"><img src="https://gstatic.com/cloudssh/images/open-btn.png" alt="Open in Cloud Shell"></a></td> </tr> <tr> <td>Configure Retries</td> <td><a href="https://github.com/googleapis/nodejs-storage/blob/main/samples/configureRetries.js">source code</a></td> <td><a href="https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/configureRetries.js,samples/README.md"><img src="https://gstatic.com/cloudssh/images/open-btn.png" alt="Open in Cloud Shell"></a></td> </tr> <tr> <td>Copy File</td> <td><a href="https://github.com/googleapis/nodejs-storage/blob/main/samples/copyFile.js">source code</a></td> <td><a href="https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/copyFile.js,samples/README.md"><img src="https://gstatic.com/cloudssh/images/open-btn.png" alt="Open in Cloud Shell"></a></td> </tr> <tr> <td>Copy Old Version Of File.</td> <td><a href="https://github.com/googleapis/nodejs-storage/blob/main/samples/copyOldVersionOfFile.js">source code</a></td> <td><a href="https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/copyOldVersionOfFile.js,samples/README.md"><img src="https://gstatic.com/cloudssh/images/open-btn.png" alt="Open in Cloud Shell"></a></td> </tr> <tr> <td>Create a Dual-Region Bucket</td> <td><a href="https://github.com/googleapis/nodejs-storage/blob/main/samples/createBucketWithDualRegion.js">source code</a></td> <td><a href="https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/createBucketWithDualRegion.js,samples/README.md"><img src="https://gstatic.com/cloudssh/images/open-btn.png" alt="Open in Cloud Shell"></a></td> </tr> <tr> <td>Create a hierarchical namespace enabled bucket</td> <td><a href="https://github.com/googleapis/nodejs-storage/blob/main/samples/createBucketWithHierarchicalNamespace.js">source code</a></td> <td><a href="https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/createBucketWithHierarchicalNamespace.js,samples/README.md"><img src="https://gstatic.com/cloudssh/images/open-btn.png" alt="Open in Cloud Shell"></a></td> </tr> <tr> <td>Create a Bucket with object retention enabled.</td> <td><a href="https://github.com/googleapis/nodejs-storage/blob/main/samples/createBucketWithObjectRetention.js">source code</a></td> <td><a href="https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/createBucketWithObjectRetention.js,samples/README.md"><img src="https://gstatic.com/cloudssh/images/open-btn.png" alt="Open in Cloud Shell"></a></td> </tr> <tr> <td>Create Bucket With Storage Class and Location.</td> <td><a href="https://github.com/googleapis/nodejs-storage/blob/main/samples/createBucketWithStorageClassAndLocation.js">source code</a></td> <td><a href="https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/createBucketWithStorageClassAndLocation.js,samples/README.md"><img src="https://gstatic.com/cloudssh/images/open-btn.png" alt="Open in Cloud Shell"></a></td> </tr> <tr> <td>Create Bucket With Turbo Replication</td> <td><a href="https://github.com/googleapis/nodejs-storage/blob/main/samples/createBucketWithTurboReplication.js">source code</a></td> <td><a href="https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/createBucketWithTurboReplication.js,samples/README.md"><img src="https://gstatic.com/cloudssh/images/open-btn.png" alt="Open in Cloud Shell"></a></td> </tr> <tr> <td>Create New Bucket</td> <td><a href="https://github.com/googleapis/nodejs-storage/blob/main/samples/createNewBucket.js">source code</a></td> <td><a href="https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/createNewBucket.js,samples/README.md"><img src="https://gstatic.com/cloudssh/images/open-btn.png" alt="Open in Cloud Shell"></a></td> </tr> <tr> <td>Create Notification</td> <td><a href="https://github.com/googleapis/nodejs-storage/blob/main/samples/createNotification.js">source code</a></td> <td><a href="https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/createNotification.js,samples/README.md"><img src="https://gstatic.com/cloudssh/images/open-btn.png" alt="Open in Cloud Shell"></a></td> </tr> <tr> <td>Delete Bucket</td> <td><a href="https://github.com/googleapis/nodejs-storage/blob/main/samples/deleteBucket.js">source code</a></td> <td><a href="https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/deleteBucket.js,samples/README.md"><img src="https://gstatic.com/cloudssh/images/open-btn.png" alt="Open in Cloud Shell"></a></td> </tr> <tr> <td>Delete File</td> <td><a href="https://github.com/googleapis/nodejs-storage/blob/main/samples/deleteFile.js">source code</a></td> <td><a href="https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/deleteFile.js,samples/README.md"><img src="https://gstatic.com/cloudssh/images/open-btn.png" alt="Open in Cloud Shell"></a></td> </tr> <tr> <td>Delete Notification</td> <td><a href="https://github.com/googleapis/nodejs-storage/blob/main/samples/deleteNotification.js">source code</a></td> <td><a href="https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/deleteNotification.js,samples/README.md"><img src="https://gstatic.com/cloudssh/images/open-btn.png" alt="Open in Cloud Shell"></a></td> </tr> <tr> <td>Delete Old Version Of File.</td> <td><a href="https://github.com/googleapis/nodejs-storage/blob/main/samples/deleteOldVersionOfFile.js">source code</a></td> <td><a href="https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/deleteOldVersionOfFile.js,samples/README.md"><img src="https://gstatic.com/cloudssh/images/open-btn.png" alt="Open in Cloud Shell"></a></td> </tr> <tr> <td>Disable Bucket Lifecycle Management</td> <td><a href="https://github.com/googleapis/nodejs-storage/blob/main/samples/disableBucketLifecycleManagement.js">source code</a></td> <td><a href="https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/disableBucketLifecycleManagement.js,samples/README.md"><img src="https://gstatic.com/cloudssh/images/open-btn.png" alt="Open in Cloud Shell"></a></td> </tr> <tr> <td>Storage Disable Bucket Versioning.</td> <td><a href="https://github.com/googleapis/nodejs-storage/blob/main/samples/disableBucketVersioning.js">source code</a></td> <td><a href="https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/disableBucketVersioning.js,samples/README.md"><img src="https://gstatic.com/cloudssh/images/open-btn.png" alt="Open in Cloud Shell"></a></td> </tr> <tr> <td>Disable Default Event Based Hold</td> <td><a href="https://github.com/googleapis/nodejs-storage/blob/main/samples/disableDefaultEventBasedHold.js">source code</a></td> <td><a href="https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/disableDefaultEventBasedHold.js,samples/README.md"><img src="https://gstatic.com/cloudssh/images/open-btn.png" alt="Open in Cloud Shell"></a></td> </tr> <tr> <td>Disable Requester Pays</td> <td><a href="https://github.com/googleapis/nodejs-storage/blob/main/samples/disableRequesterPays.js">source code</a></td> <td><a href="https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/disableRequesterPays.js,samples/README.md"><img src="https://gstatic.com/cloudssh/images/open-btn.png" alt="Open in Cloud Shell"></a></td> </tr> <tr> <td>Disable Uniform Bucket Level Access</td> <td><a href="https://github.com/googleapis/nodejs-storage/blob/main/samples/disableUniformBucketLevelAccess.js">source code</a></td> <td><a href="https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/disableUniformBucketLevelAccess.js,samples/README.md"><img src="https://gstatic.com/cloudssh/images/open-btn.png" alt="Open in Cloud Shell"></a></td> </tr> <tr> <td>Download Byte Range</td> <td><a href="https://github.com/googleapis/nodejs-storage/blob/main/samples/downloadByteRange.js">source code</a></td> <td><a href="https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/downloadByteRange.js,samples/README.md"><img src="https://gstatic.com/cloudssh/images/open-btn.png" alt="Open in Cloud Shell"></a></td> </tr> <tr> <td>Download Encrypted File</td> <td><a href="https://github.com/googleapis/nodejs-storage/blob/main/samples/downloadEncryptedFile.js">source code</a></td> <td><a href="https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/downloadEncryptedFile.js,samples/README.md"><img src="https://gstatic.com/cloudssh/images/open-btn.png" alt="Open in Cloud Shell"></a></td> </tr> <tr> <td>Download File</td> <td><a href="https://github.com/googleapis/nodejs-storage/blob/main/samples/downloadFile.js">source code</a></td> <td><a href="https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/downloadFile.js,samples/README.md"><img src="https://gstatic.com/cloudssh/images/open-btn.png" alt="Open in Cloud Shell"></a></td> </tr> <tr> <td>Download a File in Chunks With Transfer Manager</td> <td><a href="https://github.com/googleapis/nodejs-storage/blob/main/samples/downloadFileInChunksWithTransferManager.js">source code</a></td> <td><a href="https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/downloadFileInChunksWithTransferManager.js,samples/README.md"><img src="https://gstatic.com/cloudssh/images/open-btn.png" alt="Open in Cloud Shell"></a></td> </tr> <tr> <td>Download File Using Requester Pays</td> <td><a href="https://github.com/googleapis/nodejs-storage/blob/main/samples/downloadFileUsingRequesterPays.js">source code</a></td> <td><a href="https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/downloadFileUsingRequesterPays.js,samples/README.md"><img src="https://gstatic.com/cloudssh/images/open-btn.png" alt="Open in Cloud Shell"></a></td> </tr> <tr> <td>Download Folder With Transfer Manager</td> <td><a href="https://github.com/googleapis/nodejs-storage/blob/main/samples/downloadFolderWithTransferManager.js">source code</a></td> <td><a href="https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/downloadFolderWithTransferManager.js,samples/README.md"><img src="https://gstatic.com/cloudssh/images/open-btn.png" alt="Open in Cloud Shell"></a></td> </tr> <tr> <td>Download Into Memory</td> <td><a href="https://github.com/googleapis/nodejs-storage/blob/main/samples/downloadIntoMemory.js">source code</a></td> <td><a href="https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/downloadIntoMemory.js,samples/README.md"><img src="https://gstatic.com/cloudssh/images/open-btn.png" alt="Open in Cloud Shell"></a></td> </tr> <tr> <td>Download Many Files With Transfer Manager</td> <td><a href="https://github.com/googleapis/nodejs-storage/blob/main/samples/downloadManyFilesWithTransferManager.js">source code</a></td> <td><a href="https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/downloadManyFilesWithTransferManager.js,samples/README.md"><img src="https://gstatic.com/cloudssh/images/open-btn.png" alt="Open in Cloud Shell"></a></td> </tr> <tr> <td>Storage Download Public File.</td> <td><a href="https://github.com/googleapis/nodejs-storage/blob/main/samples/downloadPublicFile.js">source code</a></td> <td><a href="https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/downloadPublicFile.js,samples/README.md"><img src="https://gstatic.com/cloudssh/images/open-btn.png" alt="Open in Cloud Shell"></a></td> </tr> <tr> <td>Enable Bucket Lifecycle Management</td> <td><a href="https://github.com/googleapis/nodejs-storage/blob/main/samples/enableBucketLifecycleManagement.js">source code</a></td> <td><a href="https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/enableBucketLifecycleManagement.js,samples/README.md"><img src="https://gstatic.com/cloudssh/images/open-btn.png" alt="Open in Cloud Shell"></a></td> </tr> <tr> <td>Storage Enable Bucket Versioning.</td> <td><a href="https://github.com/googleapis/nodejs-storage/blob/main/samples/enableBucketVersioning.js">source code</a></td> <td><a href="https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/enableBucketVersioning.js,samples/README.md"><img src="https://gstatic.com/cloudssh/images/open-btn.png" alt="Open in Cloud Shell"></a></td> </tr> <tr> <td>Enable Default Event Based Hold</td> <td><a href="https://github.com/googleapis/nodejs-storage/blob/main/samples/enableDefaultEventBasedHold.js">source code</a></td> <td><a href="https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/enableDefaultEventBasedHold.js,samples/README.md"><img src="https://gstatic.com/cloudssh/images/open-btn.png" alt="Open in Cloud Shell"></a></td> </tr> <tr> <td>Enable Default KMS Key</td> <td><a href="https://github.com/googleapis/nodejs-storage/blob/main/samples/enableDefaultKMSKey.js">source code</a></td> <td><a href="https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/enableDefaultKMSKey.js,samples/README.md"><img src="https://gstatic.com/cloudssh/images/open-btn.png" alt="Open in Cloud Shell"></a></td> </tr> <tr> <td>Enable Requester Pays</td> <td><a href="https://github.com/googleapis/nodejs-storage/blob/main/samples/enableRequesterPays.js">source code</a></td> <td><a href="https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/enableRequesterPays.js,samples/README.md"><img src="https://gstatic.com/cloudssh/images/open-btn.png" alt="Open in Cloud Shell"></a></td> </tr> <tr> <td>Enable Uniform Bucket Level Access</td> <td><a href="https://github.com/googleapis/nodejs-storage/blob/main/samples/enableUniformBucketLevelAccess.js">source code</a></td> <td><a href="https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/enableUniformBucketLevelAccess.js,samples/README.md"><img src="https://gstatic.com/cloudssh/images/open-btn.png" alt="Open in Cloud Shell"></a></td> </tr> <tr> <td>Change File's Storage Class.</td> <td><a href="https://github.com/googleapis/nodejs-storage/blob/main/samples/fileChangeStorageClass.js">source code</a></td> <td><a href="https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/fileChangeStorageClass.js,samples/README.md"><img src="https://gstatic.com/cloudssh/images/open-btn.png" alt="Open in Cloud Shell"></a></td> </tr> <tr> <td>Storage Set File Metadata.</td> <td><a href="https://github.com/googleapis/nodejs-storage/blob/main/samples/fileSetMetadata.js">source code</a></td> <td><a href="https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/fileSetMetadata.js,samples/README.md"><img src="https://gstatic.com/cloudssh/images/open-btn.png" alt="Open in Cloud Shell"></a></td> </tr> <tr> <td>Generate Encryption Key</td> <td><a href="https://github.com/googleapis/nodejs-storage/blob/main/samples/generateEncryptionKey.js">source code</a></td> <td><a href="https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/generateEncryptionKey.js,samples/README.md"><img src="https://gstatic.com/cloudssh/images/open-btn.png" alt="Open in Cloud Shell"></a></td> </tr> <tr> <td>Generate Signed Url</td> <td><a href="https://github.com/googleapis/nodejs-storage/blob/main/samples/generateSignedUrl.js">source code</a></td> <td><a href="https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/generateSignedUrl.js,samples/README.md"><img src="https://gstatic.com/cloudssh/images/open-btn.png" alt="Open in Cloud Shell"></a></td> </tr> <tr> <td>Generate V4 Read Signed Url</td> <td><a href="https://github.com/googleapis/nodejs-storage/blob/main/samples/generateV4ReadSignedUrl.js">source code</a></td> <td><a href="https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/generateV4ReadSignedUrl.js,samples/README.md"><img src="https://gstatic.com/cloudssh/images/open-btn.png" alt="Open in Cloud Shell"></a></td> </tr> <tr> <td>Generate V4 Signed Policy</td> <td><a href="https://github.com/googleapis/nodejs-storage/blob/main/samples/generateV4SignedPolicy.js">source code</a></td> <td><a href="https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/generateV4SignedPolicy.js,samples/README.md"><img src="https://gstatic.com/cloudssh/images/open-btn.png" alt="Open in Cloud Shell"></a></td> </tr> <tr> <td>Generate V4 Upload Signed Url</td> <td><a href="https://github.com/googleapis/nodejs-storage/blob/main/samples/generateV4UploadSignedUrl.js">source code</a></td> <td><a href="https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/generateV4UploadSignedUrl.js,samples/README.md"><img src="https://gstatic.com/cloudssh/images/open-btn.png" alt="Open in Cloud Shell"></a></td> </tr> <tr> <td>Get Autoclass</td> <td><a href="https://github.com/googleapis/nodejs-storage/blob/main/samples/getAutoclass.js">source code</a></td> <td><a href="https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/getAutoclass.js,samples/README.md"><img src="https://gstatic.com/cloudssh/images/open-btn.png" alt="Open in Cloud Shell"></a></td> </tr> <tr> <td>Get Default Event Based Hold</td> <td><a href="https://github.com/googleapis/nodejs-storage/blob/main/samples/getDefaultEventBasedHold.js">source code</a></td> <td><a href="https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/getDefaultEventBasedHold.js,samples/README.md"><img src="https://gstatic.com/cloudssh/images/open-btn.png" alt="Open in Cloud Shell"></a></td> </tr> <tr> <td>Get Metadata</td> <td><a href="https://github.com/googleapis/nodejs-storage/blob/main/samples/getMetadata.js">source code</a></td> <td><a href="https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/getMetadata.js,samples/README.md"><img src="https://gstatic.com/cloudssh/images/open-btn.png" alt="Open in Cloud Shell"></a></td> </tr> <tr> <td>Get Metadata Notifications</td> <td><a href="https://github.com/googleapis/nodejs-storage/blob/main/samples/getMetadataNotifications.js">source code</a></td> <td><a href="https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/getMetadataNotifications.js,samples/README.md"><img src="https://gstatic.com/cloudssh/images/open-btn.png" alt="Open in Cloud Shell"></a></td> </tr> <tr> <td>Get Public Access Prevention</td> <td><a href="https://github.com/googleapis/nodejs-storage/blob/main/samples/getPublicAccessPrevention.js">source code</a></td> <td><a href="https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/getPublicAccessPrevention.js,samples/README.md"><img src="https://gstatic.com/cloudssh/images/open-btn.png" alt="Open in Cloud Shell"></a></td> </tr> <tr> <td>Get RPO</td> <td><a href="https://github.com/googleapis/nodejs-storage/blob/main/samples/getRPO.js">source code</a></td> <td><a href="https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/getRPO.js,samples/README.md"><img src="https://gstatic.com/cloudssh/images/open-btn.png" alt="Open in Cloud Shell"></a></td> </tr> <tr> <td>Get Requester Pays Status</td> <td><a href="https://github.com/googleapis/nodejs-storage/blob/main/samples/getRequesterPaysStatus.js">source code</a></td> <td><a href="https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/getRequesterPaysStatus.js,samples/README.md"><img src="https://gstatic.com/cloudssh/images/open-btn.png" alt="Open in Cloud Shell"></a></td> </tr> <tr> <td>Get Retention Policy</td> <td><a href="https://github.com/googleapis/nodejs-storage/blob/main/samples/getRetentionPolicy.js">source code</a></td> <td><a href="https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/getRetentionPolicy.js,samples/README.md"><img src="https://gstatic.com/cloudssh/images/open-btn.png" alt="Open in Cloud Shell"></a></td> </tr> <tr> <td>Storage Get Service Account.</td> <td><a href="https://github.com/googleapis/nodejs-storage/blob/main/samples/getServiceAccount.js">source code</a></td> <td><a href="https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/getServiceAccount.js,samples/README.md"><img src="https://gstatic.com/cloudssh/images/open-btn.png" alt="Open in Cloud Shell"></a></td> </tr> <tr> <td>Get Uniform Bucket Level Access</td> <td><a href="https://github.com/googleapis/nodejs-storage/blob/main/samples/getUniformBucketLevelAccess.js">source code</a></td> <td><a href="https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/getUniformBucketLevelAccess.js,samples/README.md"><img src="https://gstatic.com/cloudssh/images/open-btn.png" alt="Open in Cloud Shell"></a></td> </tr> <tr> <td>Activate HMAC SA Key.</td> <td><a href="https://github.com/googleapis/nodejs-storage/blob/main/samples/hmacKeyActivate.js">source code</a></td> <td><a href="https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/hmacKeyActivate.js,samples/README.md"><img src="https://gstatic.com/cloudssh/images/open-btn.png" alt="Open in Cloud Shell"></a></td> </tr> <tr> <td>Create HMAC SA Key.</td> <td><a href="https://github.com/googleapis/nodejs-storage/blob/main/samples/hmacKeyCreate.js">source code</a></td> <td><a href="https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/hmacKeyCreate.js,samples/README.md"><img src="https://gstatic.com/cloudssh/images/open-btn.png" alt="Open in Cloud Shell"></a></td> </tr> <tr> <td>Deactivate HMAC SA Key.</td> <td><a href="https://github.com/googleapis/nodejs-storage/blob/main/samples/hmacKeyDeactivate.js">source code</a></td> <td><a href="https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/hmacKeyDeactivate.js,samples/README.md"><img src="https://gstatic.com/cloudssh/images/open-btn.png" alt="Open in Cloud Shell"></a></td> </tr> <tr> <td>Delete HMAC SA Key.</td> <td><a href="https://github.com/googleapis/nodejs-storage/blob/main/samples/hmacKeyDelete.js">source code</a></td> <td><a href="https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/hmacKeyDelete.js,samples/README.md"><img src="https://gstatic.com/cloudssh/images/open-btn.png" alt="Open in Cloud Shell"></a></td> </tr> <tr> <td>Get HMAC SA Key Metadata.</td> <td><a href="https://github.com/googleapis/nodejs-storage/blob/main/samples/hmacKeyGet.js">source code</a></td> <td><a href="https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/hmacKeyGet.js,samples/README.md"><img src="https://gstatic.com/cloudssh/images/open-btn.png" alt="Open in Cloud Shell"></a></td> </tr> <tr> <td>List HMAC SA Keys Metadata.</td> <td><a href="https://github.com/googleapis/nodejs-storage/blob/main/samples/hmacKeysList.js">source code</a></td> <td><a href="https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/hmacKeysList.js,samples/README.md"><img src="https://gstatic.com/cloudssh/images/open-btn.png" alt="Open in Cloud Shell"></a></td> </tr> <tr> <td>List Buckets</td> <td><a href="https://github.com/googleapis/nodejs-storage/blob/main/samples/listBuckets.js">source code</a></td> <td><a href="https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/listBuckets.js,samples/README.md"><img src="https://gstatic.com/cloudssh/images/open-btn.png" alt="Open in Cloud Shell"></a></td> </tr> <tr> <td>List Files</td> <td><a href="https://github.com/googleapis/nodejs-storage/blob/main/samples/listFiles.js">source code</a></td> <td><a href="https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/listFiles.js,samples/README.md"><img src="https://gstatic.com/cloudssh/images/open-btn.png" alt="Open in Cloud Shell"></a></td> </tr> <tr> <td>List Files By Prefix</td> <td><a href="https://github.com/googleapis/nodejs-storage/blob/main/samples/listFilesByPrefix.js">source code</a></td> <td><a href="https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/listFilesByPrefix.js,samples/README.md"><img src="https://gstatic.com/cloudssh/images/open-btn.png" alt="Open in Cloud Shell"></a></td> </tr> <tr> <td>List Files Paginate</td> <td><a href="https://github.com/googleapis/nodejs-storage/blob/main/samples/listFilesPaginate.js">source code</a></td> <td><a href="https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/listFilesPaginate.js,samples/README.md"><img src="https://gstatic.com/cloudssh/images/open-btn.png" alt="Open in Cloud Shell"></a></td> </tr> <tr> <td>List Files with Old Versions.</td> <td><a href="https://github.com/googleapis/nodejs-storage/blob/main/samples/listFilesWithOldVersions.js">source code</a></td> <td><a href="https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/listFilesWithOldVersions.js,samples/README.md"><img src="https://gstatic.com/cloudssh/images/open-btn.png" alt="Open in Cloud Shell"></a></td> </tr> <tr> <td>List Notifications</td> <td><a href="https://github.com/googleapis/nodejs-storage/blob/main/samples/listNotifications.js">source code</a></td> <td><a href="https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/listNotifications.js,samples/README.md"><img src="https://gstatic.com/cloudssh/images/open-btn.png" alt="Open in Cloud Shell"></a></td> </tr> <tr> <td>Lock Retention Policy</td> <td><a href="https://github.com/googleapis/nodejs-storage/blob/main/samples/lockRetentionPolicy.js">source code</a></td> <td><a href="https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/lockRetentionPolicy.js,samples/README.md"><img src="https://gstatic.com/cloudssh/images/open-btn.png" alt="Open in Cloud Shell"></a></td> </tr> <tr> <td>Storage Make Bucket Public.</td> <td><a href="https://github.com/googleapis/nodejs-storage/blob/main/samples/makeBucketPublic.js">source code</a></td> <td><a href="https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/makeBucketPublic.js,samples/README.md"><img src="https://gstatic.com/cloudssh/images/open-btn.png" alt="Open in Cloud Shell"></a></td> </tr> <tr> <td>Make Public</td> <td><a href="https://github.com/googleapis/nodejs-storage/blob/main/samples/makePublic.js">source code</a></td> <td><a href="https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/makePublic.js,samples/README.md"><img src="https://gstatic.com/cloudssh/images/open-btn.png" alt="Open in Cloud Shell"></a></td> </tr> <tr> <td>Move File</td> <td><a href="https://github.com/googleapis/nodejs-storage/blob/main/samples/moveFile.js">source code</a></td> <td><a href="https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/moveFile.js,samples/README.md"><img src="https://gstatic.com/cloudssh/images/open-btn.png" alt="Open in Cloud Shell"></a></td> </tr> <tr> <td>Print Bucket Acl</td> <td><a href="https://github.com/googleapis/nodejs-storage/blob/main/samples/printBucketAcl.js">source code</a></td> <td><a href="https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/printBucketAcl.js,samples/README.md"><img src="https://gstatic.com/cloudssh/images/open-btn.png" alt="Open in Cloud Shell"></a></td> </tr> <tr> <td>Print Bucket Acl For User</td> <td><a href="https://github.com/googleapis/nodejs-storage/blob/main/samples/printBucketAclForUser.js">source code</a></td> <td><a href="https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/printBucketAclForUser.js,samples/README.md"><img src="https://gstatic.com/cloudssh/images/open-btn.png" alt="Open in Cloud Shell"></a></td> </tr> <tr> <td>Print File Acl</td> <td><a href="https://github.com/googleapis/nodejs-storage/blob/main/samples/printFileAcl.js">source code</a></td> <td><a href="https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/printFileAcl.js,samples/README.md"><img src="https://gstatic.com/cloudssh/images/open-btn.png" alt="Open in Cloud Shell"></a></td> </tr> <tr> <td>Print File Acl For User</td> <td><a href="https://github.com/googleapis/nodejs-storage/blob/main/samples/printFileAclForUser.js">source code</a></td> <td><a href="https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/printFileAclForUser.js,samples/README.md"><img src="https://gstatic.com/cloudssh/images/open-btn.png" alt="Open in Cloud Shell"></a></td> </tr> <tr> <td>Quickstart</td> <td><a href="https://github.com/googleapis/nodejs-storage/blob/main/samples/quickstart.js">source code</a></td> <td><a href="https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/quickstart.js,samples/README.md"><img src="https://gstatic.com/cloudssh/images/open-btn.png" alt="Open in Cloud Shell"></a></td> </tr> <tr> <td>Release Event Based Hold</td> <td><a href="https://github.com/googleapis/nodejs-storage/blob/main/samples/releaseEventBasedHold.js">source code</a></td> <td><a href="https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/releaseEventBasedHold.js,samples/README.md"><img src="https://gstatic.com/cloudssh/images/open-btn.png" alt="Open in Cloud Shell"></a></td> </tr> <tr> <td>Release Temporary Hold</td> <td><a href="https://github.com/googleapis/nodejs-storage/blob/main/samples/releaseTemporaryHold.js">source code</a></td> <td><a href="https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/releaseTemporaryHold.js,samples/README.md"><img src="https://gstatic.com/cloudssh/images/open-btn.png" alt="Open in Cloud Shell"></a></td> </tr> <tr> <td>Remove Bucket Conditional Binding</td> <td><a href="https://github.com/googleapis/nodejs-storage/blob/main/samples/removeBucketConditionalBinding.js">source code</a></td> <td><a href="https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/removeBucketConditionalBinding.js,samples/README.md"><img src="https://gstatic.com/cloudssh/images/open-btn.png" alt="Open in Cloud Shell"></a></td> </tr> <tr> <td>Storage Remove Bucket Cors Configuration.</td> <td><a href="https://github.com/googleapis/nodejs-storage/blob/main/samples/removeBucketCors.js">source code</a></td> <td><a href="https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/removeBucketCors.js,samples/README.md"><img src="https://gstatic.com/cloudssh/images/open-btn.png" alt="Open in Cloud Shell"></a></td> </tr> <tr> <td>Remove Bucket Default Owner</td> <td><a href="https://github.com/googleapis/nodejs-storage/blob/main/samples/removeBucketDefaultOwner.js">source code</a></td> <td><a href="https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/removeBucketDefaultOwner.js,samples/README.md"><img src="https://gstatic.com/cloudssh/images/open-btn.png" alt="Open in Cloud Shell"></a></td> </tr> <tr> <td>Remove Bucket Iam Member</td> <td><a href="https://github.com/googleapis/nodejs-storage/blob/main/samples/removeBucketIamMember.js">source code</a></td> <td><a href="https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/removeBucketIamMember.js,samples/README.md"><img src="https://gstatic.com/cloudssh/images/open-btn.png" alt="Open in Cloud Shell"></a></td> </tr> <tr> <td>Storage Remove Bucket Label.</td> <td><a href="https://github.com/googleapis/nodejs-storage/blob/main/samples/removeBucketLabel.js">source code</a></td> <td><a href="https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/removeBucketLabel.js,samples/README.md"><img src="https://gstatic.com/cloudssh/images/open-btn.png" alt="Open in Cloud Shell"></a></td> </tr> <tr> <td>Remove Bucket Owner Acl</td> <td><a href="https://github.com/googleapis/nodejs-storage/blob/main/samples/removeBucketOwnerAcl.js">source code</a></td> <td><a href="https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/removeBucketOwnerAcl.js,samples/README.md"><img src="https://gstatic.com/cloudssh/images/open-btn.png" alt="Open in Cloud Shell"></a></td> </tr> <tr> <td>Remove Default KMS Key.</td> <td><a href="https://github.com/googleapis/nodejs-storage/blob/main/samples/removeDefaultKMSKey.js">source code</a></td> <td><a href="https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/removeDefaultKMSKey.js,samples/README.md"><img src="https://gstatic.com/cloudssh/images/open-btn.png" alt="Open in Cloud Shell"></a></td> </tr> <tr> <td>Remove File Owner Acl</td> <td><a href="https://github.com/googleapis/nodejs-storage/blob/main/samples/removeFileOwnerAcl.js">source code</a></td> <td><a href="https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/removeFileOwnerAcl.js,samples/README.md"><img src="https://gstatic.com/cloudssh/images/open-btn.png" alt="Open in Cloud Shell"></a></td> </tr> <tr> <td>Remove Retention Policy</td> <td><a href="https://github.com/googleapis/nodejs-storage/blob/main/samples/removeRetentionPolicy.js">source code</a></td> <td><a href="https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/removeRetentionPolicy.js,samples/README.md"><img src="https://gstatic.com/cloudssh/images/open-btn.png" alt="Open in Cloud Shell"></a></td> </tr> <tr> <td>Rename File</td> <td><a href="https://github.com/googleapis/nodejs-storage/blob/main/samples/renameFile.js">source code</a></td> <td><a href="https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/renameFile.js,samples/README.md"><img src="https://gstatic.com/cloudssh/images/open-btn.png" alt="Open in Cloud Shell"></a></td> </tr> <tr> <td>Rotate Encryption Key</td> <td><a href="https://github.com/googleapis/nodejs-storage/blob/main/samples/rotateEncryptionKey.js">source code</a></td> <td><a href="https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/rotateEncryptionKey.js,samples/README.md"><img src="https://gstatic.com/cloudssh/images/open-btn.png" alt="Open in Cloud Shell"></a></td> </tr> <tr> <td>Set Autoclass</td> <td><a href="https://github.com/googleapis/nodejs-storage/blob/main/samples/setAutoclass.js">source code</a></td> <td><a href="https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/setAutoclass.js,samples/README.md"><img src="https://gstatic.com/cloudssh/images/open-btn.png" alt="Open in Cloud Shell"></a></td> </tr> <tr> <td>Set Client Endpoint</td> <td><a href="https://github.com/googleapis/nodejs-storage/blob/main/samples/setClientEndpoint.js">source code</a></td> <td><a href="https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/setClientEndpoint.js,samples/README.md"><img src="https://gstatic.com/cloudssh/images/open-btn.png" alt="Open in Cloud Shell"></a></td> </tr> <tr> <td>Set Event Based Hold</td> <td><a href="https://github.com/googleapis/nodejs-storage/blob/main/samples/setEventBasedHold.js">source code</a></td> <td><a href="https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/setEventBasedHold.js,samples/README.md"><img src="https://gstatic.com/cloudssh/images/open-btn.png" alt="Open in Cloud Shell"></a></td> </tr> <tr> <td>Set the object retention policy of a File.</td> <td><a href="https://github.com/googleapis/nodejs-storage/blob/main/samples/setObjectRetentionPolicy.js">source code</a></td> <td><a href="https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/setObjectRetentionPolicy.js,samples/README.md"><img src="https://gstatic.com/cloudssh/images/open-btn.png" alt="Open in Cloud Shell"></a></td> </tr> <tr> <td>Set Public Access Prevention Enforced</td> <td><a href="https://github.com/googleapis/nodejs-storage/blob/main/samples/setPublicAccessPreventionEnforced.js">source code</a></td> <td><a href="https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/setPublicAccessPreventionEnforced.js,samples/README.md"><img src="https://gstatic.com/cloudssh/images/open-btn.png" alt="Open in Cloud Shell"></a></td> </tr> <tr> <td>Set Public Access Prevention Inherited</td> <td><a href="https://github.com/googleapis/nodejs-storage/blob/main/samples/setPublicAccessPreventionInherited.js">source code</a></td> <td><a href="https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/setPublicAccessPreventionInherited.js,samples/README.md"><img src="https://gstatic.com/cloudssh/images/open-btn.png" alt="Open in Cloud Shell"></a></td> </tr> <tr> <td>Set RPO Async Turbo</td> <td><a href="https://github.com/googleapis/nodejs-storage/blob/main/samples/setRPOAsyncTurbo.js">source code</a></td> <td><a href="https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/setRPOAsyncTurbo.js,samples/README.md"><img src="https://gstatic.com/cloudssh/images/open-btn.png" alt="Open in Cloud Shell"></a></td> </tr> <tr> <td>Set RPO Default</td> <td><a href="https://github.com/googleapis/nodejs-storage/blob/main/samples/setRPODefault.js">source code</a></td> <td><a href="https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/setRPODefault.js,samples/README.md"><img src="https://gstatic.com/cloudssh/images/open-btn.png" alt="Open in Cloud Shell"></a></td> </tr> <tr> <td>Set Retention Policy</td> <td><a href="https://github.com/googleapis/nodejs-storage/blob/main/samples/setRetentionPolicy.js">source code</a></td> <td><a href="https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/setRetentionPolicy.js,samples/README.md"><img src="https://gstatic.com/cloudssh/images/open-btn.png" alt="Open in Cloud Shell"></a></td> </tr> <tr> <td>Set Temporary Hold</td> <td><a href="https://github.com/googleapis/nodejs-storage/blob/main/samples/setTemporaryHold.js">source code</a></td> <td><a href="https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/setTemporaryHold.js,samples/README.md"><img src="https://gstatic.com/cloudssh/images/open-btn.png" alt="Open in Cloud Shell"></a></td> </tr> <tr> <td>Stream File Download</td> <td><a href="https://github.com/googleapis/nodejs-storage/blob/main/samples/streamFileDownload.js">source code</a></td> <td><a href="https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/streamFileDownload.js,samples/README.md"><img src="https://gstatic.com/cloudssh/images/open-btn.png" alt="Open in Cloud Shell"></a></td> </tr> <tr> <td>Stream File Upload</td> <td><a href="https://github.com/googleapis/nodejs-storage/blob/main/samples/streamFileUpload.js">source code</a></td> <td><a href="https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/streamFileUpload.js,samples/README.md"><img src="https://gstatic.com/cloudssh/images/open-btn.png" alt="Open in Cloud Shell"></a></td> </tr> <tr> <td>Upload a directory to a bucket.</td> <td><a href="https://github.com/googleapis/nodejs-storage/blob/main/samples/uploadDirectory.js">source code</a></td> <td><a href="https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/uploadDirectory.js,samples/README.md"><img src="https://gstatic.com/cloudssh/images/open-btn.png" alt="Open in Cloud Shell"></a></td> </tr> <tr> <td>Upload Directory With Transfer Manager</td> <td><a href="https://github.com/googleapis/nodejs-storage/blob/main/samples/uploadDirectoryWithTransferManager.js">source code</a></td> <td><a href="https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/uploadDirectoryWithTransferManager.js,samples/README.md"><img src="https://gstatic.com/cloudssh/images/open-btn.png" alt="Open in Cloud Shell"></a></td> </tr> <tr> <td>Upload Encrypted File</td> <td><a href="https://github.com/googleapis/nodejs-storage/blob/main/samples/uploadEncryptedFile.js">source code</a></td> <td><a href="https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/uploadEncryptedFile.js,samples/README.md"><img src="https://gstatic.com/cloudssh/images/open-btn.png" alt="Open in Cloud Shell"></a></td> </tr> <tr> <td>Upload File</td> <td><a href="https://github.com/googleapis/nodejs-storage/blob/main/samples/uploadFile.js">source code</a></td> <td><a href="https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/uploadFile.js,samples/README.md"><img src="https://gstatic.com/cloudssh/images/open-btn.png" alt="Open in Cloud Shell"></a></td> </tr> <tr> <td>Upload a File in Chunks With Transfer Manager</td> <td><a href="https://github.com/googleapis/nodejs-storage/blob/main/samples/uploadFileInChunksWithTransferManager.js">source code</a></td> <td><a href="https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/uploadFileInChunksWithTransferManager.js,samples/README.md"><img src="https://gstatic.com/cloudssh/images/open-btn.png" alt="Open in Cloud Shell"></a></td> </tr> <tr> <td>Upload File With Kms Key</td> <td><a href="https://github.com/googleapis/nodejs-storage/blob/main/samples/uploadFileWithKmsKey.js">source code</a></td> <td><a href="https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/uploadFileWithKmsKey.js,samples/README.md"><img src="https://gstatic.com/cloudssh/images/open-btn.png" alt="Open in Cloud Shell"></a></td> </tr> <tr> <td>Upload From Memory</td> <td><a href="https://github.com/googleapis/nodejs-storage/blob/main/samples/uploadFromMemory.js">source code</a></td> <td><a href="https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/uploadFromMemory.js,samples/README.md"><img src="https://gstatic.com/cloudssh/images/open-btn.png" alt="Open in Cloud Shell"></a></td> </tr> <tr> <td>Upload Many Files With Transfer Manager</td> <td><a href="https://github.com/googleapis/nodejs-storage/blob/main/samples/uploadManyFilesWithTransferManager.js">source code</a></td> <td><a href="https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/uploadManyFilesWithTransferManager.js,samples/README.md"><img src="https://gstatic.com/cloudssh/images/open-btn.png" alt="Open in Cloud Shell"></a></td> </tr> <tr> <td>Upload Without Authentication</td> <td><a href="https://github.com/googleapis/nodejs-storage/blob/main/samples/uploadWithoutAuthentication.js">source code</a></td> <td><a href="https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/uploadWithoutAuthentication.js,samples/README.md"><img src="https://gstatic.com/cloudssh/images/open-btn.png" alt="Open in Cloud Shell"></a></td> </tr> <tr> <td>Upload Without Authentication Signed Url</td> <td><a href="https://github.com/googleapis/nodejs-storage/blob/main/samples/uploadWithoutAuthenticationSignedUrl.js">source code</a></td> <td><a href="https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/uploadWithoutAuthenticationSignedUrl.js,samples/README.md"><img src="https://gstatic.com/cloudssh/images/open-btn.png" alt="Open in Cloud Shell"></a></td> </tr> <tr> <td>View Bucket Iam Members</td> <td><a href="https://github.com/googleapis/nodejs-storage/blob/main/samples/viewBucketIamMembers.js">source code</a></td> <td><a href="https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/viewBucketIamMembers.js,samples/README.md"><img src="https://gstatic.com/cloudssh/images/open-btn.png" alt="Open in Cloud Shell"></a></td> </tr> </tbody> </table> <p>The <a href="https://googleapis.dev/nodejs/storage/latest">Google Cloud Storage Node.js Client API Reference</a> documentation also contains samples.</p> <h2 id="supported-node.js-versions">Supported Node.js Versions</h2> <p>Our client libraries follow the <a href="https://github.com/nodejs/release#release-schedule">Node.js release schedule</a>. Libraries are compatible with all current <em>active</em> and <em>maintenance</em> versions of Node.js. If you are using an end-of-life version of Node.js, we recommend that you update as soon as possible to an actively supported LTS version.</p> <p>Google's client libraries support legacy versions of Node.js runtimes on a best-efforts basis with the following warnings:</p> <ul> <li>Legacy versions are not tested in continuous integration.</li> <li>Some security patches and features cannot be backported.</li> <li>Dependencies cannot be kept up-to-date.</li> </ul> <p>Client libraries targeting some end-of-life versions of Node.js are available, and can be installed through npm <a href="https://docs.npmjs.com/cli/dist-tag">dist-tags</a>. The dist-tags follow the naming convention <code>legacy-(version)</code>. For example, <code>npm install @google-cloud/storage@legacy-8</code> installs client libraries for versions compatible with Node.js 8.</p> <h2 id="versioning">Versioning</h2> <p>This library follows <a href="http://semver.org/">Semantic Versioning</a>.</p> <p>This library is considered to be <strong>stable</strong>. The code surface will not change in backwards-incompatible ways unless absolutely necessary (e.g. because of critical security issues) or with an extensive deprecation period. Issues and requests against <strong>stable</strong> libraries are addressed with the highest priority.</p> <p>More Information: <a href="https://cloud.google.com/terms/launch-stages">Google Cloud Platform Launch Stages</a></p> <h2 id="contributing">Contributing</h2> <p>Contributions welcome! See the <a href="https://github.com/googleapis/nodejs-storage/blob/main/CONTRIBUTING.md">Contributing Guide</a>.</p> <p>Please note that this <code>README.md</code>, the <code>samples/README.md</code>, and a variety of configuration files in this repository (including <code>.nycrc</code> and <code>tsconfig.json</code>) are generated from a central template. To edit one of these files, make an edit to its templates in <a href="https://github.com/googleapis/synthtool">directory</a>.</p> <h2 id="license">License</h2> <p>Apache Version 2.0</p> <p>See <a href="https://github.com/googleapis/nodejs-storage/blob/main/LICENSE">LICENSE</a></p> </article> </section> </div> <br class="clear"> <footer> Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.3</a> </footer> <script src="scripts/linenumber.js"></script> <script src="scripts/pagelocation.js"></script> <script src="/yoshi.js"></script> </body> </html>