Skip to content
This repository has been archived by the owner on Jun 21, 2024. It is now read-only.

add Invitations service and User creation methods #346

Merged
merged 3 commits into from
Sep 28, 2022
Merged

Conversation

displague
Copy link
Contributor

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
Contributor 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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants