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 functions for Create/Modify/Delete User, Associate/Disassociate Group, and User to url.Values #30

Merged
merged 3 commits into from
Oct 27, 2021

Conversation

bensallen
Copy link
Contributor

@bensallen bensallen commented Mar 3, 2021

Largely based on the work done in #12 with the requested changes to match the existing pattern to pass params into CreateUser and ModifyUser.

Added a reflect based parsing function of User to url.Value based params. This removes the "github.com/google/go-querystring/query" dependency that #12 added, and provides more or less the same convenience functionality for the developer.

Note, I removed the omitempty tag options on User, as between CreateUser and ModifyUser all params are optional. Thus all fields are omitted if they are empty (eg. have zero values). Only fields that are used as params have been tagged with url.

Austin Lin and others added 3 commits March 2, 2021 22:30
…ateGroupWithUser, and DisassociateGroupFromUser
…nto params using the url struct tag. Update CreateUser, ModifyUser to use params as input to match existing patterns. Based on work in duosecurity#12
@mbish mbish merged commit 72da735 into duosecurity:master Oct 27, 2021
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.

2 participants