Documentation
¶
Index ¶
- type Client
- func (c *Client) Create(ctx context.Context, request *management.CreateResourceServerRequestContent, ...) (*management.CreateResourceServerResponseContent, error)
- func (c *Client) Delete(ctx context.Context, id string, opts ...option.RequestOption) error
- func (c *Client) Get(ctx context.Context, id string, ...) (*management.GetResourceServerResponseContent, error)
- func (c *Client) List(ctx context.Context, request *management.ListResourceServerRequestParameters, ...) (*core.Page[*management.ResourceServer], error)
- func (c *Client) Update(ctx context.Context, id string, ...) (*management.UpdateResourceServerResponseContent, error)
- type RawClient
- func (r *RawClient) Create(ctx context.Context, request *management.CreateResourceServerRequestContent, ...) (*core.Response[*management.CreateResourceServerResponseContent], 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, ...) (*core.Response[*management.GetResourceServerResponseContent], error)
- func (r *RawClient) Update(ctx context.Context, id string, ...) (*core.Response[*management.UpdateResourceServerResponseContent], error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
WithRawResponse *RawClient
// 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.CreateResourceServerRequestContent, opts ...option.RequestOption, ) (*management.CreateResourceServerResponseContent, error)
Create a new API associated with your tenant. Note that all new APIs must be registered with Auth0. For more information, read <a href="https://www.auth0.com/docs/get-started/apis"> APIs</a>.
func (*Client) Delete ¶
Delete an existing API by ID. For more information, read <a href="https://www.auth0.com/docs/get-started/apis/api-settings">API Settings</a>.
func (*Client) Get ¶
func (c *Client) Get( ctx context.Context, id string, request *management.GetResourceServerRequestParameters, opts ...option.RequestOption, ) (*management.GetResourceServerResponseContent, error)
Retrieve <a href="https://auth0.com/docs/apis">API</a> details with the given ID.
func (*Client) List ¶
func (c *Client) List( ctx context.Context, request *management.ListResourceServerRequestParameters, opts ...option.RequestOption, ) (*core.Page[*management.ResourceServer], error)
Retrieve details of all APIs associated with your tenant.
func (*Client) Update ¶
func (c *Client) Update( ctx context.Context, id string, request *management.UpdateResourceServerRequestContent, opts ...option.RequestOption, ) (*management.UpdateResourceServerResponseContent, error)
Change an existing API setting by resource server ID. For more information, read <a href="https://www.auth0.com/docs/get-started/apis/api-settings">API Settings</a>.
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.CreateResourceServerRequestContent, opts ...option.RequestOption, ) (*core.Response[*management.CreateResourceServerResponseContent], error)
func (*RawClient) Get ¶
func (r *RawClient) Get( ctx context.Context, id string, request *management.GetResourceServerRequestParameters, opts ...option.RequestOption, ) (*core.Response[*management.GetResourceServerResponseContent], error)
func (*RawClient) Update ¶
func (r *RawClient) Update( ctx context.Context, id string, request *management.UpdateResourceServerRequestContent, opts ...option.RequestOption, ) (*core.Response[*management.UpdateResourceServerResponseContent], error)