Documentation
¶
Index ¶
- type Client
- func (c *Client) Create(ctx context.Context, request *management.CreateClientGrantRequestContent, ...) (*management.CreateClientGrantResponseContent, error)
- 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.GetClientGrantResponseContent, error)
- func (c *Client) List(ctx context.Context, request *management.ListClientGrantsRequestParameters, ...) (...)
- func (c *Client) Update(ctx context.Context, id string, ...) (*management.UpdateClientGrantResponseContent, error)
- type RawClient
- func (r *RawClient) Create(ctx context.Context, request *management.CreateClientGrantRequestContent, ...) (*core.Response[*management.CreateClientGrantResponseContent], error)
- func (r *RawClient) Delete(ctx context.Context, id string, opts ...option.RequestOption) (*core.Response[any], error)
- func (r *RawClient) Get(ctx context.Context, id string, opts ...option.RequestOption) (*core.Response[*management.GetClientGrantResponseContent], error)
- func (r *RawClient) Update(ctx context.Context, id string, ...) (*core.Response[*management.UpdateClientGrantResponseContent], error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
WithRawResponse *RawClient
Organizations *organizations.Client
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(options *core.RequestOptions) *Client
func (*Client) Create ¶
func (c *Client) Create( ctx context.Context, request *management.CreateClientGrantRequestContent, opts ...option.RequestOption, ) (*management.CreateClientGrantResponseContent, error)
Create a client grant for a machine-to-machine login flow. To learn more, read [Client Credential Flow](https://www.auth0.com/docs/get-started/authentication-and-authorization-flow/client-credentials-flow).
func (*Client) Delete ¶
Delete the [Client Credential Flow](https://www.auth0.com/docs/get-started/authentication-and-authorization-flow/client-credentials-flow) from your machine-to-machine application.
func (*Client) Get ¶ added in v2.4.0
func (c *Client) Get( ctx context.Context, id string, opts ...option.RequestOption, ) (*management.GetClientGrantResponseContent, error)
Retrieve a single [client grant](https://auth0.com/docs/get-started/applications/application-access-to-apis-client-grants), including the scopes associated with the application/API pair.
func (*Client) List ¶
func (c *Client) List( ctx context.Context, request *management.ListClientGrantsRequestParameters, opts ...option.RequestOption, ) (*core.Page[*string, *management.ClientGrantResponseContent, *management.ListClientGrantPaginatedResponseContent], error)
Retrieve a list of [client grants](https://auth0.com/docs/get-started/applications/application-access-to-apis-client-grants), including the scopes associated with the application/API pair.
func (*Client) Update ¶
func (c *Client) Update( ctx context.Context, id string, request *management.UpdateClientGrantRequestContent, opts ...option.RequestOption, ) (*management.UpdateClientGrantResponseContent, error)
Update a client grant.
type RawClient ¶
type RawClient struct {
// contains filtered or unexported fields
}
func NewRawClient ¶
func NewRawClient(options *core.RequestOptions) *RawClient
func (*RawClient) Create ¶
func (r *RawClient) Create( ctx context.Context, request *management.CreateClientGrantRequestContent, opts ...option.RequestOption, ) (*core.Response[*management.CreateClientGrantResponseContent], error)
func (*RawClient) Get ¶ added in v2.4.0
func (r *RawClient) Get( ctx context.Context, id string, opts ...option.RequestOption, ) (*core.Response[*management.GetClientGrantResponseContent], error)
func (*RawClient) Update ¶
func (r *RawClient) Update( ctx context.Context, id string, request *management.UpdateClientGrantRequestContent, opts ...option.RequestOption, ) (*core.Response[*management.UpdateClientGrantResponseContent], error)