client

package
v3.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 9, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

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

func (c *Client) Delete(
	ctx context.Context,

	id string,
	opts ...option.RequestOption,
) error

Delete a group by its ID.

Example:

client.Groups.Delete(
    context.TODO(),
    "id",
)

func (*Client) Get

Retrieve a group by its ID.

Example:

client.Groups.Get(
    context.TODO(),
    "id",
)

func (*Client) List

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) Delete

func (r *RawClient) Delete(
	ctx context.Context,

	id string,
	opts ...option.RequestOption,
) (*core.Response[any], error)

func (*RawClient) Get

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL