X Tutup
Skip to content

Add encryption for volume type#49

Merged
olivergondza merged 4 commits intoopenstack4j:masterfrom
jsaroja66:encryption_volume
Apr 2, 2020
Merged

Add encryption for volume type#49
olivergondza merged 4 commits intoopenstack4j:masterfrom
jsaroja66:encryption_volume

Conversation

@jsaroja66
Copy link
Copy Markdown

No description provided.

Copy link
Copy Markdown
Member

@olivergondza olivergondza left a comment

Choose a reason for hiding this comment

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

Thanks for you contribution! I have made some review comments, mostly on the side of style.

/**
* @return the key size of the encryption type
*/
int getKeySize();
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The docs says: "Size of encryption key, in bits. This is usually 256. The default value is None.". I believe this should be Integer with None mapped to null

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Done as suggested

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

I checked how size field is implemented in CinderVolume class and modified here accordingly.
It uses both Integer (json) and int (getter), I did the same.

@olivergondza
Copy link
Copy Markdown
Member

@jsaroja66, thanks I have resolved all the conversations except for the keySize one that needs to be clarified before this gets merged.

@olivergondza olivergondza merged commit 8f80038 into openstack4j:master Apr 2, 2020
@olivergondza
Copy link
Copy Markdown
Member

Thank you for your contribution! Merging towards the next release.

@jsaroja66 jsaroja66 deleted the encryption_volume branch April 2, 2020 08:52
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

X Tutup