Documentation
¶
Overview ¶
Users & Role
Index ¶
- type Client
- func (c *Client) AddUser(ctx context.Context, org string, request *sgsdkgo.AddUserToOrganization, ...) (*sgsdkgo.AddUserToOrganizationResponse, error)
- func (c *Client) CreateRole(ctx context.Context, org string, request *sgsdkgo.Role, ...) (*sgsdkgo.RoleCreateUpdateResponse, error)
- func (c *Client) DeleteRole(ctx context.Context, org string, role string, opts ...option.RequestOption) error
- func (c *Client) GetUser(ctx context.Context, org string, ...) (*sgsdkgo.RemoveUserFromOrganizationResponse, error)
- func (c *Client) ListAllRoles(ctx context.Context, org string, opts ...option.RequestOption) error
- func (c *Client) ReadRole(ctx context.Context, org string, role string, opts ...option.RequestOption) (*sgsdkgo.RoleGetResponse, error)
- func (c *Client) RemoveUser(ctx context.Context, org string, ...) (*sgsdkgo.RemoveUserFromOrganizationResponse, error)
- func (c *Client) UpdateRole(ctx context.Context, org string, role string, request *sgsdkgo.PatchedRole, ...) (*sgsdkgo.RoleCreateUpdateResponse, error)
- func (c *Client) UpdateUser(ctx context.Context, org string, request *sgsdkgo.AddUserToOrganization, ...) (*sgsdkgo.AddUserToOrganizationResponse, 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) AddUser ¶
func (c *Client) AddUser( ctx context.Context, org string, request *sgsdkgo.AddUserToOrganization, opts ...option.RequestOption, ) (*sgsdkgo.AddUserToOrganizationResponse, error)
Invite users or SSO groups to an Organization
func (*Client) CreateRole ¶
func (c *Client) CreateRole( ctx context.Context, org string, request *sgsdkgo.Role, opts ...option.RequestOption, ) (*sgsdkgo.RoleCreateUpdateResponse, error)
Create Role inside an Organization
func (*Client) DeleteRole ¶
func (c *Client) DeleteRole( ctx context.Context, org string, role string, opts ...option.RequestOption, ) error
Delete Role
func (*Client) GetUser ¶
func (c *Client) GetUser( ctx context.Context, org string, request *sgsdkgo.GetorRemoveUserFromOrganization, opts ...option.RequestOption, ) (*sgsdkgo.RemoveUserFromOrganizationResponse, error)
Get users or SSO group of an Organization
func (*Client) ListAllRoles ¶
func (c *Client) ListAllRoles( ctx context.Context, org string, opts ...option.RequestOption, ) error
List all Roles
func (*Client) ReadRole ¶
func (c *Client) ReadRole( ctx context.Context, org string, role string, opts ...option.RequestOption, ) (*sgsdkgo.RoleGetResponse, error)
Read Role
func (*Client) RemoveUser ¶
func (c *Client) RemoveUser( ctx context.Context, org string, request *sgsdkgo.GetorRemoveUserFromOrganization, opts ...option.RequestOption, ) (*sgsdkgo.RemoveUserFromOrganizationResponse, error)
Remove users or SSO groups from an Organization
func (*Client) UpdateRole ¶
func (c *Client) UpdateRole( ctx context.Context, org string, role string, request *sgsdkgo.PatchedRole, opts ...option.RequestOption, ) (*sgsdkgo.RoleCreateUpdateResponse, error)
Update Role
func (*Client) UpdateUser ¶
func (c *Client) UpdateUser( ctx context.Context, org string, request *sgsdkgo.AddUserToOrganization, opts ...option.RequestOption, ) (*sgsdkgo.AddUserToOrganizationResponse, error)
Update users or SSO group of an Organization
Click to show internal directories.
Click to hide internal directories.