Skip to content
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

Docs and examples added for Object Lock #800

Merged
merged 1 commit into from
Oct 8, 2019

Conversation

sinhaashish
Copy link
Contributor

Docs updated with below api:
public void makeBucket(String bucketName, String region, boolean objectLock)
public void enableVersioning(String bucketName)
public void disableVersioning(String bucketName)
public void setDefaultRetention(String bucketName, ObjectLockConfiguration config)
public ObjectLockConfiguration getDefaultRetention(String bucketName)

Examples added for make bucket with lock and set/get object lock configuration.

kanagarajkm
kanagarajkm previously approved these changes Sep 30, 2019
docs/API.md Outdated
|:--- |:--- |
| ``None`` | Listed Exceptions: |
| | ``InvalidBucketNameException`` : upon invalid bucket name. |
| | ``RegionConflictException`` : upon passed region conflicts with the one previously specified. |
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of RegionConflictException you should talk about InvalidArgumentException as that is what is being thrown in the code.

docs/API.md Outdated
|:--- |:--- |
| ``None`` | Listed Exceptions: |
| | ``InvalidBucketNameException`` : upon invalid bucket name. |
| | ``RegionConflictException`` : upon passed region conflicts with the one previously specified. |
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of RegionConflictException you should talk about InvalidArgumentException as that is what is being thrown in the code.

Copy link
Contributor

@kannappanr kannappanr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please incorporate the changes requested in the comments.

@sinhaashish
Copy link
Contributor Author

sinhaashish commented Oct 2, 2019

Please incorporate the changes requested in the comments.

Thanks for pointing this out . Removed InvalidArgumentException as it was never thrown from the method .

Copy link
Contributor

@kannappanr kannappanr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@kannappanr kannappanr merged commit 5c28a02 into minio:master Oct 8, 2019
@sinhaashish sinhaashish deleted the docs-update-object-lock branch April 1, 2020 13:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants