-
Notifications
You must be signed in to change notification settings - Fork 13
/
api.go
35 lines (28 loc) · 1.02 KB
/
api.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// Code generated by "gen"; DO NOT EDIT.
// This file is meant to be re-generated in place and/or deleted at any time.
package organizationmembership
import (
"context"
"github.com/clerk/clerk-sdk-go/v2"
)
// Create adds a new member to the organization.
func Create(ctx context.Context, params *CreateParams) (*clerk.OrganizationMembership, error) {
return getClient().Create(ctx, params)
}
// Update updates an organization membership.
func Update(ctx context.Context, params *UpdateParams) (*clerk.OrganizationMembership, error) {
return getClient().Update(ctx, params)
}
// Delete removes a member from an organization.
func Delete(ctx context.Context, params *DeleteParams) (*clerk.OrganizationMembership, error) {
return getClient().Delete(ctx, params)
}
// List returns a list of organization memberships.
func List(ctx context.Context, params *ListParams) (*clerk.OrganizationMembershipList, error) {
return getClient().List(ctx, params)
}
func getClient() *Client {
return &Client{
Backend: clerk.GetBackend(),
}
}