@@ -162,6 +162,7 @@ export interface GetFilesOptions {
162162 autoPaginate ?: boolean ;
163163 delimiter ?: string ;
164164 endOffset ?: string ;
165+ includeFoldersAsPrefixes ?: boolean ;
165166 includeTrailingDelimiter ?: boolean ;
166167 prefix ?: string ;
167168 matchGlob ?: string ;
@@ -2608,6 +2609,10 @@ class Bucket extends ServiceObject<Bucket, BucketMetadata> {
26082609 * @property {string } [endOffset] Filter results to objects whose names are
26092610 * lexicographically before endOffset. If startOffset is also set, the objects
26102611 * listed have names between startOffset (inclusive) and endOffset (exclusive).
2612+ * @property {boolean } [includeFoldersAsPrefixes] If true, includes folders and
2613+ * managed folders in the set of prefixes returned by the query. Only applicable if
2614+ * delimiter is set to / and autoPaginate is set to false.
2615+ * See: https://cloud.google.com/storage/docs/managed-folders
26112616 * @property {boolean } [includeTrailingDelimiter] If true, objects that end in
26122617 * exactly one instance of delimiter have their metadata included in items[]
26132618 * in addition to the relevant part of the object name appearing in prefixes[].
@@ -2648,6 +2653,10 @@ class Bucket extends ServiceObject<Bucket, BucketMetadata> {
26482653 * @param {string } [query.endOffset] Filter results to objects whose names are
26492654 * lexicographically before endOffset. If startOffset is also set, the objects
26502655 * listed have names between startOffset (inclusive) and endOffset (exclusive).
2656+ * @param {boolean } [query.includeFoldersAsPrefixes] If true, includes folders and
2657+ * managed folders in the set of prefixes returned by the query. Only applicable if
2658+ * delimiter is set to / and autoPaginate is set to false.
2659+ * See: https://cloud.google.com/storage/docs/managed-folders
26512660 * @param {boolean } [query.includeTrailingDelimiter] If true, objects that end in
26522661 * exactly one instance of delimiter have their metadata included in items[]
26532662 * in addition to the relevant part of the object name appearing in prefixes[].
0 commit comments