Documentation
¶
Index ¶
- type Client
- func (c *Client) Create(ctx context.Context, request *management.CreateHookRequestContent, ...) (*management.CreateHookResponseContent, error)
- func (c *Client) Delete(ctx context.Context, id string, opts ...option.RequestOption) error
- func (c *Client) Get(ctx context.Context, id string, request *management.GetHookRequestParameters, ...) (*management.GetHookResponseContent, error)
- func (c *Client) List(ctx context.Context, request *management.ListHooksRequestParameters, ...) (*core.Page[*management.Hook], error)
- func (c *Client) Update(ctx context.Context, id string, request *management.UpdateHookRequestContent, ...) (*management.UpdateHookResponseContent, error)
- type RawClient
- func (r *RawClient) Create(ctx context.Context, request *management.CreateHookRequestContent, ...) (*core.Response[*management.CreateHookResponseContent], 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, request *management.GetHookRequestParameters, ...) (*core.Response[*management.GetHookResponseContent], error)
- func (r *RawClient) Update(ctx context.Context, id string, request *management.UpdateHookRequestContent, ...) (*core.Response[*management.UpdateHookResponseContent], error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
WithRawResponse *RawClient
Secrets *secrets.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.CreateHookRequestContent, opts ...option.RequestOption, ) (*management.CreateHookResponseContent, error)
Create a new hook.
func (*Client) Get ¶
func (c *Client) Get( ctx context.Context, id string, request *management.GetHookRequestParameters, opts ...option.RequestOption, ) (*management.GetHookResponseContent, error)
Retrieve <a href="https://auth0.com/docs/hooks">a hook</a> by its ID. Accepts a list of fields to include in the result.
func (*Client) List ¶
func (c *Client) List( ctx context.Context, request *management.ListHooksRequestParameters, opts ...option.RequestOption, ) (*core.Page[*management.Hook], error)
Retrieve all <a href="https://auth0.com/docs/hooks">hooks</a>. Accepts a list of fields to include or exclude in the result.
func (*Client) Update ¶
func (c *Client) Update( ctx context.Context, id string, request *management.UpdateHookRequestContent, opts ...option.RequestOption, ) (*management.UpdateHookResponseContent, error)
Update an existing hook.
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.CreateHookRequestContent, opts ...option.RequestOption, ) (*core.Response[*management.CreateHookResponseContent], error)
func (*RawClient) Get ¶
func (r *RawClient) Get( ctx context.Context, id string, request *management.GetHookRequestParameters, opts ...option.RequestOption, ) (*core.Response[*management.GetHookResponseContent], error)
func (*RawClient) Update ¶
func (r *RawClient) Update( ctx context.Context, id string, request *management.UpdateHookRequestContent, opts ...option.RequestOption, ) (*core.Response[*management.UpdateHookResponseContent], error)
Click to show internal directories.
Click to hide internal directories.