Documentation
¶
Index ¶
- type Client
- func (c *Client) Create(ctx context.Context, request *management.CreateAgentRequestContent, ...) (*management.AgentResponseContent, error)
- func (c *Client) Delete(ctx context.Context, id string, opts ...option.RequestOption) error
- func (c *Client) List(ctx context.Context, request *management.ListAgentsRequestParameters, ...) (...)
- func (c *Client) Read(ctx context.Context, id string, opts ...option.RequestOption) (*management.AgentResponseContent, error)
- func (c *Client) Update(ctx context.Context, id string, ...) (*management.AgentResponseContent, error)
- type RawClient
- func (r *RawClient) Create(ctx context.Context, request *management.CreateAgentRequestContent, ...) (*core.Response[*management.AgentResponseContent], error)
- func (r *RawClient) Delete(ctx context.Context, id string, opts ...option.RequestOption) (*core.Response[any], error)
- func (r *RawClient) Read(ctx context.Context, id string, opts ...option.RequestOption) (*core.Response[*management.AgentResponseContent], error)
- func (r *RawClient) Update(ctx context.Context, id string, ...) (*core.Response[*management.AgentResponseContent], 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.CreateAgentRequestContent, opts ...option.RequestOption, ) (*management.AgentResponseContent, error)
Create an agent
func (*Client) List ¶
func (c *Client) List( ctx context.Context, request *management.ListAgentsRequestParameters, opts ...option.RequestOption, ) (*core.Page[*string, *management.AgentResponseContent, *management.ListAgentsResponseContent], error)
Get agents
func (*Client) Read ¶
func (c *Client) Read( ctx context.Context, id string, opts ...option.RequestOption, ) (*management.AgentResponseContent, error)
Get an agent
func (*Client) Update ¶
func (c *Client) Update( ctx context.Context, id string, request *management.PatchAgentRequestParameters, opts ...option.RequestOption, ) (*management.AgentResponseContent, error)
Update an agent
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.CreateAgentRequestContent, opts ...option.RequestOption, ) (*core.Response[*management.AgentResponseContent], error)
func (*RawClient) Read ¶
func (r *RawClient) Read( ctx context.Context, id string, opts ...option.RequestOption, ) (*core.Response[*management.AgentResponseContent], error)
func (*RawClient) Update ¶
func (r *RawClient) Update( ctx context.Context, id string, request *management.PatchAgentRequestParameters, opts ...option.RequestOption, ) (*core.Response[*management.AgentResponseContent], error)
Click to show internal directories.
Click to hide internal directories.