Documentation
¶
Index ¶
- type Client
- func (c *Client) DeleteUser(ctx context.Context, id string, opts ...option.RequestOption) (*sdk.UserResponse, error)
- func (c *Client) GetUserById(ctx context.Context, id string, opts ...option.RequestOption) (*sdk.UserResponse, error)
- func (c *Client) GetUsers(ctx context.Context, opts ...option.RequestOption) (sdk.UsersResponse, error)
- func (c *Client) UpdatePassword(ctx context.Context, id string, opts ...option.RequestOption) (*sdk.UserResponse, error)
- func (c *Client) UpdateRole(ctx context.Context, id string, request *sdk.UpdateRoleRequest, ...) (*sdk.UserResponse, error)
- func (c *Client) UpdateUser(ctx context.Context, id string, request *sdk.UpdateUserRequest, ...) (*sdk.UserResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(opts ...option.RequestOption) *Client
func (*Client) DeleteUser ¶
func (c *Client) DeleteUser( ctx context.Context, id string, opts ...option.RequestOption, ) (*sdk.UserResponse, error)
Delete a user from the organization (Admin only)
func (*Client) GetUserById ¶
func (c *Client) GetUserById( ctx context.Context, id string, opts ...option.RequestOption, ) (*sdk.UserResponse, error)
Retrieve a specific user by their ID
func (*Client) GetUsers ¶
func (c *Client) GetUsers( ctx context.Context, opts ...option.RequestOption, ) (sdk.UsersResponse, error)
Retrieve all users in the organization
func (*Client) UpdatePassword ¶
func (c *Client) UpdatePassword( ctx context.Context, id string, opts ...option.RequestOption, ) (*sdk.UserResponse, error)
Update a user's password (Admin only)
func (*Client) UpdateRole ¶
func (c *Client) UpdateRole( ctx context.Context, id string, request *sdk.UpdateRoleRequest, opts ...option.RequestOption, ) (*sdk.UserResponse, error)
Update a user's role (Admin only)
func (*Client) UpdateUser ¶
func (c *Client) UpdateUser( ctx context.Context, id string, request *sdk.UpdateUserRequest, opts ...option.RequestOption, ) (*sdk.UserResponse, error)
Update a user's profile information
Click to show internal directories.
Click to hide internal directories.