ChenSammi commented on code in PR #8557: URL: https://github.com/apache/ozone/pull/8557#discussion_r2165698934
########## hadoop-ozone/client/src/main/java/org/apache/hadoop/ozone/client/OzoneBucket.java: ########## @@ -1091,6 +1092,36 @@ public void deleteObjectTagging(String keyName) throws IOException { proxy.deleteObjectTagging(volumeName, name, keyName); } + /** + * Gets the lifecycle configuration information. + * @return OmLifecycleConfiguration or exception is thrown. + * @throws IOException + */ + @JsonIgnore + public OzoneLifecycleConfiguration getLifecycleConfiguration() + throws IOException { + return proxy.getLifecycleConfiguration(volumeName, name); + } + + /** + * Creates a new lifecycle configuration. Review Comment: Can we add a comment here about "It will overwrite an existing lifecycle configuration? And I will prefer use setLifecycleConfiguration instead of createLifecycleConfiguration. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@ozone.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@ozone.apache.org For additional commands, e-mail: issues-h...@ozone.apache.org