-
Notifications
You must be signed in to change notification settings - Fork 505
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
refactor(core): Deprecate OpList::version and add versions instead #5481
Changes from 2 commits
d67cead
6be969c
08deaf4
eb451db
b6a8ef0
cd886b5
76794d5
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 |
---|---|---|
|
@@ -190,9 +190,15 @@ impl OpList { | |
} | ||
|
||
/// Get the version of this list operation | ||
#[deprecated = "use versioned instead"] | ||
pub fn version(&self) -> bool { | ||
self.version | ||
} | ||
|
||
/// Get the version of this list operation | ||
pub fn versioned(&self) -> bool { | ||
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.
|
||
self.version | ||
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. Should be changed by |
||
} | ||
} | ||
|
||
/// Args for `presign` operation. | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -486,9 +486,21 @@ impl<F: Future<Output = Result<Vec<Entry>>>> FutureList<F> { | |
/// by the underlying service | ||
/// | ||
/// Default to `false` | ||
#[deprecated = "use versioned 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 also add a version field: |
||
pub fn version(self, v: bool) -> Self { | ||
self.map(|args| args.with_version(v)) | ||
} | ||
|
||
/// The version is used to control whether the object versions should be returned. | ||
/// | ||
/// - If `false`, list operation will not return with object versions | ||
/// - If `true`, list operation will return with object versions if object versioning is supported | ||
/// by the underlying service | ||
/// | ||
/// Default to `false` | ||
pub fn versioned(self, v: bool) -> Self { | ||
self.map(|args| args.with_version(v)) | ||
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 also deprecate all use of |
||
} | ||
} | ||
|
||
/// Future that generated by [`Operator::list_with`] or [`Operator::lister_with`]. | ||
|
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.
list_with_version
should also be depreated bylist_with_versioned
.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.
No problem I'll add that all also.