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 Invitations service and User creation methods #346

Merged
merged 3 commits into from
Sep 28, 2022
Merged

Conversation

displague
Copy link
Member

Adds Invitations and User create methods used for inviting new users to an organization or project.

Signed-off-by: Marques Johansson <mjohansson@equinix.com>
invitations.go Outdated
// InvitationID and Nonce in which case the VerificationStage will be Verified.
func (s *InvitationServiceOp) Create(organizationID string, createRequest *InvitationCreateRequest, opts *GetOptions) (*Invitation, *Response, error) {
endpointPath := path.Join(organizationBasePath, organizationID, invitationsBasePath)
apiPathQuery := opts.Including("invited_by", "invitable", "projects").WithQuery(endpointPath)
Copy link
Member Author

Choose a reason for hiding this comment

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

The includes are not strictly necessary - the portal includes them today.

invitations.go Outdated Show resolved Hide resolved
invitations.go Outdated Show resolved Hide resolved
Copy link
Contributor

@ocobles ocobles left a comment

Choose a reason for hiding this comment

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

lgtm

@displague displague merged commit 3db8aff into master Sep 28, 2022
@displague displague deleted the user-create branch September 28, 2022 18:19
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.

None yet

2 participants