@@ -179,6 +179,7 @@ export type PredefinedAcl =
179179 | 'publicRead' ;
180180
181181export interface CreateResumableUploadOptions {
182+ configPath ?: string ;
182183 metadata ?: Metadata ;
183184 origin ?: string ;
184185 offset ?: number ;
@@ -1426,6 +1427,10 @@ class File extends ServiceObject<File> {
14261427 */
14271428 /**
14281429 * @typedef {object } CreateResumableUploadOptions
1430+ * @property {string } [configPath] Where the `gcs-resumable-upload`
1431+ * configuration file should be stored on your system. This maps to the
1432+ * [configstore option by the same
1433+ * name](https://github.com/yeoman/configstore/tree/0df1ec950d952b1f0dfb39ce22af8e505dffc71a#configpath).
14291434 * @property {object } [metadata] Metadata to set on the file.
14301435 * @property {string } [origin] Origin header to set for the upload.
14311436 * @property {string } [predefinedAcl] Apply a predefined set of access
@@ -1509,6 +1514,7 @@ class File extends ServiceObject<File> {
15091514 {
15101515 authClient : this . storage . authClient ,
15111516 bucket : this . bucket . name ,
1517+ configPath : options . configPath ,
15121518 file : this . name ,
15131519 generation : this . generation ,
15141520 key : this . encryptionKey ,
@@ -1527,6 +1533,10 @@ class File extends ServiceObject<File> {
15271533
15281534 /**
15291535 * @typedef {object } CreateWriteStreamOptions Configuration options for File#createWriteStream().
1536+ * @property {string } [configPath] **This only applies to resumable
1537+ * uploads.** Where the `gcs-resumable-upload` configuration file should
1538+ * be stored on your system. This maps to the [configstore option by the same
1539+ * name](https://github.com/yeoman/configstore/tree/0df1ec950d952b1f0dfb39ce22af8e505dffc71a#configpath).
15301540 * @property {string } [contentType] Alias for
15311541 * `options.metadata.contentType`. If set to `auto`, the file name is used
15321542 * to determine the contentType.
@@ -3257,6 +3267,7 @@ class File extends ServiceObject<File> {
32573267 const uploadStream = resumableUpload . upload ( {
32583268 authClient : this . storage . authClient ,
32593269 bucket : this . bucket . name ,
3270+ configPath : options . configPath ,
32603271 file : this . name ,
32613272 generation : this . generation ,
32623273 key : this . encryptionKey ,
0 commit comments