New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: deprecated directory. prefix should be used instead #1370
Changes from 1 commit
6ac93b8
3bbca23
4c2f47d
c668f47
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -113,7 +113,7 @@ export interface EnableLoggingOptions { | |
export interface GetFilesOptions { | ||
autoPaginate?: boolean; | ||
delimiter?: string; | ||
directory?: string; | ||
directory?: string; //deprecated | ||
endOffset?: string; | ||
includeTrailingDelimiter?: boolean; | ||
prefix?: string; | ||
|
@@ -2195,8 +2195,8 @@ class Bucket extends ServiceObject { | |
* names, aside from the prefix, contain delimiter will have their name | ||
* truncated after the delimiter, returned in `apiResponse.prefixes`. | ||
* Duplicate prefixes are omitted. | ||
* @property {string} [directory] Filter results based on a directory name, or | ||
* more technically, a "prefix". | ||
* @deprecated @property {string} [directory] Filter results based on a directory name, or | ||
* more technically, a "prefix". Deprecated. Use prefix instead. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please add a note that directory uses delimiter='/' in case folks get confused. Recommend including an example of using prefix and delimiter below to reference. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hi Frank, this example includes prefix and delimiter. Are you looking for something different? |
||
* @property {string} [endOffset] Filter results to objects whose names are | ||
* lexicographically before endOffset. If startOffset is also set, the objects | ||
* listed have names between startOffset (inclusive) and endOffset (exclusive). | ||
|
@@ -2235,8 +2235,8 @@ class Bucket extends ServiceObject { | |
* names, aside from the prefix, contain delimiter will have their name | ||
* truncated after the delimiter, returned in `apiResponse.prefixes`. | ||
* Duplicate prefixes are omitted. | ||
* @param {string} [query.directory] Filter results based on a directory name, or | ||
* more technically, a "prefix". | ||
* @deprecated @param {string} [query.directory] Filter results based on a directory name, or | ||
* more technically, a "prefix". Deprecated. Use query.prefix instead. | ||
* @param {string} [query.endOffset] Filter results to objects whose names are | ||
* lexicographically before endOffset. If startOffset is also set, the objects | ||
* listed have names between startOffset (inclusive) and endOffset (exclusive). | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this the recommended approach to declare deprecation in an interface? I don't see another example in the project that deprecates this way, and want to confirm.