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

Add security tags capabilities to govcd #467

Merged
merged 40 commits into from
May 10, 2022

Conversation

mikeletux
Copy link
Contributor

@mikeletux mikeletux commented Apr 26, 2022

This PR does not have any issue associated.

Description

This PR brings the possibility of using Security Tags, which is a new feature of VCD 10.3.0+

Detailed description

With this PR, govcd users will be able to use new methods GetSecurityTaggedEntities, GetSecurityTagValues, GetVMSecurityTags to read information about security tags and UpdateSecurityTag and UpdateVMSecurityTags to modify them.

Also four new structs have been added: SecurityTag, SecurityTaggedEntity, SecurityTagValue and EntitySecurityTags.

Also a new test Test_SecurityTags have been added which checks all above mentioned methods.

@mikeletux mikeletux marked this pull request as ready for review April 26, 2022 14:34
@mikeletux mikeletux removed the request for review from dataclouder April 26, 2022 14:34
@mikeletux mikeletux self-assigned this Apr 26, 2022
@mikeletux mikeletux marked this pull request as draft April 29, 2022 10:26
Miguel Sama added 18 commits May 3, 2022 09:43
Signed-off-by: Miguel Sama <msama@vmware.com>
Signed-off-by: Miguel Sama <msama@vmware.com>
Signed-off-by: Miguel Sama <msama@vmware.com>
Signed-off-by: Miguel Sama <msama@vmware.com>
Signed-off-by: Miguel Sama <msama@vmware.com>
Signed-off-by: Miguel Sama <msama@vmware.com>
Signed-off-by: Miguel Sama <msama@vmware.com>
Signed-off-by: Miguel Sama <msama@vmware.com>
…case due to a bug

Signed-off-by: Miguel Sama <msama@vmware.com>
Signed-off-by: Miguel Sama <msama@vmware.com>
Signed-off-by: Miguel Sama <msama@vmware.com>
Signed-off-by: Miguel Sama <msama@vmware.com>
Signed-off-by: Miguel Sama <msama@vmware.com>
Signed-off-by: Miguel Sama <msama@vmware.com>
Signed-off-by: Miguel Sama <msama@vmware.com>
Signed-off-by: Miguel Sama <msama@vmware.com>
Signed-off-by: Miguel Sama <msama@vmware.com>
Signed-off-by: Miguel Sama <msama@vmware.com>
Miguel Sama added 4 commits May 3, 2022 09:43
Signed-off-by: Miguel Sama <msama@vmware.com>
Signed-off-by: Miguel Sama <msama@vmware.com>
Signed-off-by: Miguel Sama <msama@vmware.com>
Signed-off-by: Miguel Sama <msama@vmware.com>
@mikeletux mikeletux force-pushed the nsxt-security-tags branch from cb91fd9 to 8f90aac Compare May 3, 2022 07:44
Miguel Sama added 3 commits May 4, 2022 10:09
Signed-off-by: Miguel Sama <msama@vmware.com>
Signed-off-by: Miguel Sama <msama@vmware.com>
Signed-off-by: Miguel Sama <msama@vmware.com>
@mikeletux mikeletux requested review from lvirbalas and vbauzys May 4, 2022 10:02
@mikeletux mikeletux marked this pull request as ready for review May 4, 2022 10:02
Copy link
Contributor

@vbauzys vbauzys left a comment

Choose a reason for hiding this comment

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

Just a few simple things left.

Signed-off-by: Miguel Sama <msama@vmware.com>
Copy link
Collaborator

@Didainius Didainius left a comment

Choose a reason for hiding this comment

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

I have left some comments for how to make it more aligned with the approach this SDK has and to make it feel more uniform for consumers,

Copy link
Collaborator

@lvirbalas lvirbalas left a comment

Choose a reason for hiding this comment

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

LGTM (and +1 for @Didainius suggestions).

Miguel Sama added 6 commits May 5, 2022 15:37
Signed-off-by: Miguel Sama <msama@vmware.com>
Signed-off-by: Miguel Sama <msama@vmware.com>
Signed-off-by: Miguel Sama <msama@vmware.com>
Signed-off-by: Miguel Sama <msama@vmware.com>
Signed-off-by: Miguel Sama <msama@vmware.com>
Signed-off-by: Miguel Sama <msama@vmware.com>
Copy link
Collaborator

@Didainius Didainius left a comment

Choose a reason for hiding this comment

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

Just a few more comment fixes.

Miguel Sama added 2 commits May 6, 2022 11:29
Signed-off-by: Miguel Sama <msama@vmware.com>
Signed-off-by: Miguel Sama <msama@vmware.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants