Documentation
¶
Index ¶
- type Client
- func (c *Client) Delete(ctx context.Context, id string, opts ...option.RequestOption) error
- func (c *Client) Get(ctx context.Context, id string, opts ...option.RequestOption) (*management.GetGroupResponseContent, error)
- func (c *Client) List(ctx context.Context, request *management.ListGroupsRequestParameters, ...) (...)
- type RawClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
WithRawResponse *RawClient
Members *members.Client
Roles *roles.Client
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(options *core.RequestOptions) *Client
func (*Client) Delete ¶
Delete a group by its ID.
Example:
client.Groups.Delete(
context.TODO(),
"id",
)
func (*Client) Get ¶
func (c *Client) Get( ctx context.Context, id string, opts ...option.RequestOption, ) (*management.GetGroupResponseContent, error)
Retrieve a group by its ID.
Example:
client.Groups.Get(
context.TODO(),
"id",
)
func (*Client) List ¶
func (c *Client) List( ctx context.Context, request *management.ListGroupsRequestParameters, opts ...option.RequestOption, ) (*core.Page[*string, *management.Group, *management.ListGroupsPaginatedResponseContent], error)
List all groups in your tenant.
Example:
request := &management.ListGroupsRequestParameters{
ConnectionID: management.String(
"connection_id",
),
Name: management.String(
"name",
),
ExternalID: management.String(
"external_id",
),
Search: management.String(
"search",
),
Fields: management.String(
"fields",
),
IncludeFields: management.Bool(
true,
),
IncludeTotals: management.Bool(
true,
),
From: management.String(
"from",
),
Take: management.Int(
1,
),
}
client.Groups.List(
context.TODO(),
request,
)
type RawClient ¶
type RawClient struct {
// contains filtered or unexported fields
}
func NewRawClient ¶
func NewRawClient(options *core.RequestOptions) *RawClient
func (*RawClient) Get ¶
func (r *RawClient) Get( ctx context.Context, id string, opts ...option.RequestOption, ) (*core.Response[*management.GetGroupResponseContent], error)
Click to show internal directories.
Click to hide internal directories.