Documentation ¶
Overview ¶
Package client provides primitives to interact with the openapi HTTP API.
Code generated by github.com/deepmap/oapi-codegen/v2 version v2.1.0 DO NOT EDIT.
Index ¶
- func NewGetOpenapiJsonRequest(server string) (*http.Request, error)
- func NewGetProjectIdRequest(server string, id int64) (*http.Request, error)
- func NewGetProjectProjectIdClassificationTaskIdRequest(server string, projectId int64, id int64) (*http.Request, error)
- func NewGetProjectProjectIdClassificationTaskLabelIdRequest(server string, projectId int64, id int64) (*http.Request, error)
- func NewGetProjectProjectIdClassificationTasksRequest(server string, projectId int64, ...) (*http.Request, error)
- func NewGetProjectProjectIdPendingClassificationTasksRequest(server string, projectId int64, ...) (*http.Request, error)
- func NewGetProjectsRequest(server string) (*http.Request, error)
- func NewPostProjectProjectIdClassificationTaskIdLabelRequestWithBody(server string, projectId int64, id int64, contentType string, body io.Reader) (*http.Request, error)
- func NewPostProjectProjectIdClassificationTaskIdLabelRequestWithFormdataBody(server string, projectId int64, id int64, ...) (*http.Request, error)
- func NewPostProjectProjectIdClassificationTaskLabelRequestWithBody(server string, projectId int64, contentType string, body io.Reader) (*http.Request, error)
- func NewPostProjectProjectIdClassificationTaskLabelRequestWithFormdataBody(server string, projectId int64, ...) (*http.Request, error)
- func NewPostProjectProjectIdClassificationTaskRequest(server string, projectId int64, ...) (*http.Request, error)
- func NewPostProjectProjectIdClassificationTaskRequestWithBody(server string, projectId int64, contentType string, body io.Reader) (*http.Request, error)
- func NewPostProjectProjectIdClassificationTaskRequestWithFormdataBody(server string, projectId int64, ...) (*http.Request, error)
- func NewPostProjectRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewPostProjectRequestWithFormdataBody(server string, body PostProjectFormdataRequestBody) (*http.Request, error)
- type ClassificationTask
- type ClassificationTaskLabel
- type ClassificationTaskList
- type ClassificationTaskOrPendingClassificationTask
- func (t ClassificationTaskOrPendingClassificationTask) AsClassificationTask() (ClassificationTask, error)
- func (t ClassificationTaskOrPendingClassificationTask) AsPendingClassificationTask() (PendingClassificationTask, error)
- func (t *ClassificationTaskOrPendingClassificationTask) FromClassificationTask(v ClassificationTask) error
- func (t *ClassificationTaskOrPendingClassificationTask) FromPendingClassificationTask(v PendingClassificationTask) error
- func (t ClassificationTaskOrPendingClassificationTask) MarshalJSON() ([]byte, error)
- func (t *ClassificationTaskOrPendingClassificationTask) MergeClassificationTask(v ClassificationTask) error
- func (t *ClassificationTaskOrPendingClassificationTask) MergePendingClassificationTask(v PendingClassificationTask) error
- func (t *ClassificationTaskOrPendingClassificationTask) UnmarshalJSON(b []byte) error
- type Client
- func (c *Client) GetOpenapiJson(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetProjectId(ctx context.Context, id int64, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetProjectProjectIdClassificationTaskId(ctx context.Context, projectId int64, id int64, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetProjectProjectIdClassificationTaskLabelId(ctx context.Context, projectId int64, id int64, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetProjectProjectIdClassificationTasks(ctx context.Context, projectId int64, ...) (*http.Response, error)
- func (c *Client) GetProjectProjectIdPendingClassificationTasks(ctx context.Context, projectId int64, ...) (*http.Response, error)
- func (c *Client) GetProjects(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) PostProjectProjectIdClassificationTask(ctx context.Context, projectId int64, ...) (*http.Response, error)
- func (c *Client) PostProjectProjectIdClassificationTaskIdLabelWithBody(ctx context.Context, projectId int64, id int64, contentType string, ...) (*http.Response, error)
- func (c *Client) PostProjectProjectIdClassificationTaskIdLabelWithFormdataBody(ctx context.Context, projectId int64, id int64, ...) (*http.Response, error)
- func (c *Client) PostProjectProjectIdClassificationTaskLabelWithBody(ctx context.Context, projectId int64, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) PostProjectProjectIdClassificationTaskLabelWithFormdataBody(ctx context.Context, projectId int64, ...) (*http.Response, error)
- func (c *Client) PostProjectProjectIdClassificationTaskWithBody(ctx context.Context, projectId int64, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) PostProjectProjectIdClassificationTaskWithFormdataBody(ctx context.Context, projectId int64, ...) (*http.Response, error)
- func (c *Client) PostProjectWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) PostProjectWithFormdataBody(ctx context.Context, body PostProjectFormdataRequestBody, ...) (*http.Response, error)
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) GetOpenapiJsonWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetOpenapiJsonResponse, error)
- func (c *ClientWithResponses) GetProjectIdWithResponse(ctx context.Context, id int64, reqEditors ...RequestEditorFn) (*GetProjectIdResponse, error)
- func (c *ClientWithResponses) GetProjectProjectIdClassificationTaskIdWithResponse(ctx context.Context, projectId int64, id int64, reqEditors ...RequestEditorFn) (*GetProjectProjectIdClassificationTaskIdResponse, error)
- func (c *ClientWithResponses) GetProjectProjectIdClassificationTaskLabelIdWithResponse(ctx context.Context, projectId int64, id int64, reqEditors ...RequestEditorFn) (*GetProjectProjectIdClassificationTaskLabelIdResponse, error)
- func (c *ClientWithResponses) GetProjectProjectIdClassificationTasksWithResponse(ctx context.Context, projectId int64, ...) (*GetProjectProjectIdClassificationTasksResponse, error)
- func (c *ClientWithResponses) GetProjectProjectIdPendingClassificationTasksWithResponse(ctx context.Context, projectId int64, ...) (*GetProjectProjectIdPendingClassificationTasksResponse, error)
- func (c *ClientWithResponses) GetProjectsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetProjectsResponse, error)
- func (c *ClientWithResponses) PostProjectProjectIdClassificationTaskIdLabelWithBodyWithResponse(ctx context.Context, projectId int64, id int64, contentType string, ...) (*PostProjectProjectIdClassificationTaskIdLabelResponse, error)
- func (c *ClientWithResponses) PostProjectProjectIdClassificationTaskIdLabelWithFormdataBodyWithResponse(ctx context.Context, projectId int64, id int64, ...) (*PostProjectProjectIdClassificationTaskIdLabelResponse, error)
- func (c *ClientWithResponses) PostProjectProjectIdClassificationTaskLabelWithBodyWithResponse(ctx context.Context, projectId int64, contentType string, body io.Reader, ...) (*PostProjectProjectIdClassificationTaskLabelResponse, error)
- func (c *ClientWithResponses) PostProjectProjectIdClassificationTaskLabelWithFormdataBodyWithResponse(ctx context.Context, projectId int64, ...) (*PostProjectProjectIdClassificationTaskLabelResponse, error)
- func (c *ClientWithResponses) PostProjectProjectIdClassificationTaskWithBodyWithResponse(ctx context.Context, projectId int64, contentType string, body io.Reader, ...) (*PostProjectProjectIdClassificationTaskResponse, error)
- func (c *ClientWithResponses) PostProjectProjectIdClassificationTaskWithFormdataBodyWithResponse(ctx context.Context, projectId int64, ...) (*PostProjectProjectIdClassificationTaskResponse, error)
- func (c *ClientWithResponses) PostProjectProjectIdClassificationTaskWithResponse(ctx context.Context, projectId int64, ...) (*PostProjectProjectIdClassificationTaskResponse, error)
- func (c *ClientWithResponses) PostProjectWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*PostProjectResponse, error)
- func (c *ClientWithResponses) PostProjectWithFormdataBodyWithResponse(ctx context.Context, body PostProjectFormdataRequestBody, ...) (*PostProjectResponse, error)
- type ClientWithResponsesInterface
- type ConflictResponse
- type ConflictResponseHeaders
- type CreateClassificationTask
- type CreateClassificationTaskLabel
- type CreateProject
- type Embedding
- type GetOpenapiJsonResponse
- type GetProjectIdResponse
- type GetProjectProjectIdClassificationTaskIdResponse
- type GetProjectProjectIdClassificationTaskLabelIdResponse
- type GetProjectProjectIdClassificationTasksParams
- type GetProjectProjectIdClassificationTasksResponse
- type GetProjectProjectIdPendingClassificationTasksParams
- type GetProjectProjectIdPendingClassificationTasksResponse
- type GetProjectsResponse
- type HttpRequestDoer
- type LabelTask
- type Location
- type Page
- type PageSize
- type PendingClassificationTask
- type PendingClassificationTaskList
- type PostProjectFormdataRequestBody
- type PostProjectProjectIdClassificationTaskFormdataRequestBody
- type PostProjectProjectIdClassificationTaskIdLabelFormdataRequestBody
- type PostProjectProjectIdClassificationTaskIdLabelResponse
- type PostProjectProjectIdClassificationTaskJSONRequestBody
- type PostProjectProjectIdClassificationTaskLabelFormdataRequestBody
- type PostProjectProjectIdClassificationTaskLabelResponse
- type PostProjectProjectIdClassificationTaskResponse
- type PostProjectResponse
- type Project
- type Projects
- type RedirectResponse
- type RedirectResponseHeaders
- type RequestEditorFn
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewGetOpenapiJsonRequest ¶
NewGetOpenapiJsonRequest generates requests for GetOpenapiJson
func NewGetProjectIdRequest ¶
NewGetProjectIdRequest generates requests for GetProjectId
func NewGetProjectProjectIdClassificationTaskIdRequest ¶
func NewGetProjectProjectIdClassificationTaskIdRequest(server string, projectId int64, id int64) (*http.Request, error)
NewGetProjectProjectIdClassificationTaskIdRequest generates requests for GetProjectProjectIdClassificationTaskId
func NewGetProjectProjectIdClassificationTaskLabelIdRequest ¶
func NewGetProjectProjectIdClassificationTaskLabelIdRequest(server string, projectId int64, id int64) (*http.Request, error)
NewGetProjectProjectIdClassificationTaskLabelIdRequest generates requests for GetProjectProjectIdClassificationTaskLabelId
func NewGetProjectProjectIdClassificationTasksRequest ¶
func NewGetProjectProjectIdClassificationTasksRequest(server string, projectId int64, params *GetProjectProjectIdClassificationTasksParams) (*http.Request, error)
NewGetProjectProjectIdClassificationTasksRequest generates requests for GetProjectProjectIdClassificationTasks
func NewGetProjectProjectIdPendingClassificationTasksRequest ¶
func NewGetProjectProjectIdPendingClassificationTasksRequest(server string, projectId int64, params *GetProjectProjectIdPendingClassificationTasksParams) (*http.Request, error)
NewGetProjectProjectIdPendingClassificationTasksRequest generates requests for GetProjectProjectIdPendingClassificationTasks
func NewGetProjectsRequest ¶
NewGetProjectsRequest generates requests for GetProjects
func NewPostProjectProjectIdClassificationTaskIdLabelRequestWithBody ¶
func NewPostProjectProjectIdClassificationTaskIdLabelRequestWithBody(server string, projectId int64, id int64, contentType string, body io.Reader) (*http.Request, error)
NewPostProjectProjectIdClassificationTaskIdLabelRequestWithBody generates requests for PostProjectProjectIdClassificationTaskIdLabel with any type of body
func NewPostProjectProjectIdClassificationTaskIdLabelRequestWithFormdataBody ¶
func NewPostProjectProjectIdClassificationTaskIdLabelRequestWithFormdataBody(server string, projectId int64, id int64, body PostProjectProjectIdClassificationTaskIdLabelFormdataRequestBody) (*http.Request, error)
NewPostProjectProjectIdClassificationTaskIdLabelRequestWithFormdataBody calls the generic PostProjectProjectIdClassificationTaskIdLabel builder with application/x-www-form-urlencoded body
func NewPostProjectProjectIdClassificationTaskLabelRequestWithBody ¶
func NewPostProjectProjectIdClassificationTaskLabelRequestWithBody(server string, projectId int64, contentType string, body io.Reader) (*http.Request, error)
NewPostProjectProjectIdClassificationTaskLabelRequestWithBody generates requests for PostProjectProjectIdClassificationTaskLabel with any type of body
func NewPostProjectProjectIdClassificationTaskLabelRequestWithFormdataBody ¶
func NewPostProjectProjectIdClassificationTaskLabelRequestWithFormdataBody(server string, projectId int64, body PostProjectProjectIdClassificationTaskLabelFormdataRequestBody) (*http.Request, error)
NewPostProjectProjectIdClassificationTaskLabelRequestWithFormdataBody calls the generic PostProjectProjectIdClassificationTaskLabel builder with application/x-www-form-urlencoded body
func NewPostProjectProjectIdClassificationTaskRequest ¶
func NewPostProjectProjectIdClassificationTaskRequest(server string, projectId int64, body PostProjectProjectIdClassificationTaskJSONRequestBody) (*http.Request, error)
NewPostProjectProjectIdClassificationTaskRequest calls the generic PostProjectProjectIdClassificationTask builder with application/json body
func NewPostProjectProjectIdClassificationTaskRequestWithBody ¶
func NewPostProjectProjectIdClassificationTaskRequestWithBody(server string, projectId int64, contentType string, body io.Reader) (*http.Request, error)
NewPostProjectProjectIdClassificationTaskRequestWithBody generates requests for PostProjectProjectIdClassificationTask with any type of body
func NewPostProjectProjectIdClassificationTaskRequestWithFormdataBody ¶
func NewPostProjectProjectIdClassificationTaskRequestWithFormdataBody(server string, projectId int64, body PostProjectProjectIdClassificationTaskFormdataRequestBody) (*http.Request, error)
NewPostProjectProjectIdClassificationTaskRequestWithFormdataBody calls the generic PostProjectProjectIdClassificationTask builder with application/x-www-form-urlencoded body
func NewPostProjectRequestWithBody ¶
func NewPostProjectRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewPostProjectRequestWithBody generates requests for PostProject with any type of body
func NewPostProjectRequestWithFormdataBody ¶
func NewPostProjectRequestWithFormdataBody(server string, body PostProjectFormdataRequestBody) (*http.Request, error)
NewPostProjectRequestWithFormdataBody calls the generic PostProject builder with application/x-www-form-urlencoded body
Types ¶
type ClassificationTask ¶
type ClassificationTask struct { CreatedAt time.Time `json:"created_at"` Embeddings map[string]Embedding `json:"embeddings"` Id int64 `json:"id"` LabelId int64 `json:"label_id"` LlmInput string `json:"llm_input"` LlmOutput string `json:"llm_output"` ProjectId int64 `json:"project_id"` }
ClassificationTask defines model for ClassificationTask.
type ClassificationTaskLabel ¶
type ClassificationTaskLabel struct { CreatedAt time.Time `json:"created_at"` Id int64 `json:"id"` Label string `json:"label"` ProjectId int64 `json:"project_id"` }
ClassificationTaskLabel defines model for ClassificationTaskLabel.
type ClassificationTaskList ¶
type ClassificationTaskList struct { Data []ClassificationTask `json:"data"` Total uint64 `json:"total"` }
ClassificationTaskList defines model for ClassificationTaskList.
type ClassificationTaskOrPendingClassificationTask ¶
type ClassificationTaskOrPendingClassificationTask struct {
// contains filtered or unexported fields
}
ClassificationTaskOrPendingClassificationTask defines model for ClassificationTaskOrPendingClassificationTask.
func (ClassificationTaskOrPendingClassificationTask) AsClassificationTask ¶
func (t ClassificationTaskOrPendingClassificationTask) AsClassificationTask() (ClassificationTask, error)
AsClassificationTask returns the union data inside the ClassificationTaskOrPendingClassificationTask as a ClassificationTask
func (ClassificationTaskOrPendingClassificationTask) AsPendingClassificationTask ¶
func (t ClassificationTaskOrPendingClassificationTask) AsPendingClassificationTask() (PendingClassificationTask, error)
AsPendingClassificationTask returns the union data inside the ClassificationTaskOrPendingClassificationTask as a PendingClassificationTask
func (*ClassificationTaskOrPendingClassificationTask) FromClassificationTask ¶
func (t *ClassificationTaskOrPendingClassificationTask) FromClassificationTask(v ClassificationTask) error
FromClassificationTask overwrites any union data inside the ClassificationTaskOrPendingClassificationTask as the provided ClassificationTask
func (*ClassificationTaskOrPendingClassificationTask) FromPendingClassificationTask ¶
func (t *ClassificationTaskOrPendingClassificationTask) FromPendingClassificationTask(v PendingClassificationTask) error
FromPendingClassificationTask overwrites any union data inside the ClassificationTaskOrPendingClassificationTask as the provided PendingClassificationTask
func (ClassificationTaskOrPendingClassificationTask) MarshalJSON ¶
func (t ClassificationTaskOrPendingClassificationTask) MarshalJSON() ([]byte, error)
func (*ClassificationTaskOrPendingClassificationTask) MergeClassificationTask ¶
func (t *ClassificationTaskOrPendingClassificationTask) MergeClassificationTask(v ClassificationTask) error
MergeClassificationTask performs a merge with any union data inside the ClassificationTaskOrPendingClassificationTask, using the provided ClassificationTask
func (*ClassificationTaskOrPendingClassificationTask) MergePendingClassificationTask ¶
func (t *ClassificationTaskOrPendingClassificationTask) MergePendingClassificationTask(v PendingClassificationTask) error
MergePendingClassificationTask performs a merge with any union data inside the ClassificationTaskOrPendingClassificationTask, using the provided PendingClassificationTask
func (*ClassificationTaskOrPendingClassificationTask) UnmarshalJSON ¶
func (t *ClassificationTaskOrPendingClassificationTask) UnmarshalJSON(b []byte) error
type Client ¶
type Client struct { // The endpoint of the server conforming to this interface, with scheme, // https://api.deepmap.com for example. This can contain a path relative // to the server, such as https://api.deepmap.com/dev-test, and all the // paths in the swagger spec will be appended to the server. Server string // Doer for performing requests, typically a *http.Client with any // customized settings, such as certificate chains. Client HttpRequestDoer // A list of callbacks for modifying requests which are generated before sending over // the network. RequestEditors []RequestEditorFn }
Client which conforms to the OpenAPI3 specification for this service.
func NewClient ¶
func NewClient(server string, opts ...ClientOption) (*Client, error)
Creates a new Client, with reasonable defaults
func (*Client) GetOpenapiJson ¶
func (*Client) GetProjectId ¶
func (*Client) GetProjectProjectIdClassificationTaskId ¶
func (*Client) GetProjectProjectIdClassificationTaskLabelId ¶
func (*Client) GetProjectProjectIdClassificationTasks ¶
func (c *Client) GetProjectProjectIdClassificationTasks(ctx context.Context, projectId int64, params *GetProjectProjectIdClassificationTasksParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetProjectProjectIdPendingClassificationTasks ¶
func (c *Client) GetProjectProjectIdPendingClassificationTasks(ctx context.Context, projectId int64, params *GetProjectProjectIdPendingClassificationTasksParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetProjects ¶
func (*Client) PostProjectProjectIdClassificationTask ¶
func (c *Client) PostProjectProjectIdClassificationTask(ctx context.Context, projectId int64, body PostProjectProjectIdClassificationTaskJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PostProjectProjectIdClassificationTaskIdLabelWithBody ¶
func (*Client) PostProjectProjectIdClassificationTaskIdLabelWithFormdataBody ¶
func (c *Client) PostProjectProjectIdClassificationTaskIdLabelWithFormdataBody(ctx context.Context, projectId int64, id int64, body PostProjectProjectIdClassificationTaskIdLabelFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PostProjectProjectIdClassificationTaskLabelWithBody ¶
func (*Client) PostProjectProjectIdClassificationTaskLabelWithFormdataBody ¶
func (c *Client) PostProjectProjectIdClassificationTaskLabelWithFormdataBody(ctx context.Context, projectId int64, body PostProjectProjectIdClassificationTaskLabelFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PostProjectProjectIdClassificationTaskWithBody ¶
func (*Client) PostProjectProjectIdClassificationTaskWithFormdataBody ¶
func (c *Client) PostProjectProjectIdClassificationTaskWithFormdataBody(ctx context.Context, projectId int64, body PostProjectProjectIdClassificationTaskFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PostProjectWithBody ¶
func (*Client) PostProjectWithFormdataBody ¶
func (c *Client) PostProjectWithFormdataBody(ctx context.Context, body PostProjectFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
type ClientInterface ¶
type ClientInterface interface { // GetOpenapiJson request GetOpenapiJson(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) // PostProjectWithBody request with any body PostProjectWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) PostProjectWithFormdataBody(ctx context.Context, body PostProjectFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // GetProjectId request GetProjectId(ctx context.Context, id int64, reqEditors ...RequestEditorFn) (*http.Response, error) // PostProjectProjectIdClassificationTaskWithBody request with any body PostProjectProjectIdClassificationTaskWithBody(ctx context.Context, projectId int64, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) PostProjectProjectIdClassificationTask(ctx context.Context, projectId int64, body PostProjectProjectIdClassificationTaskJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) PostProjectProjectIdClassificationTaskWithFormdataBody(ctx context.Context, projectId int64, body PostProjectProjectIdClassificationTaskFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // GetProjectProjectIdClassificationTaskId request GetProjectProjectIdClassificationTaskId(ctx context.Context, projectId int64, id int64, reqEditors ...RequestEditorFn) (*http.Response, error) // PostProjectProjectIdClassificationTaskIdLabelWithBody request with any body PostProjectProjectIdClassificationTaskIdLabelWithBody(ctx context.Context, projectId int64, id int64, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) PostProjectProjectIdClassificationTaskIdLabelWithFormdataBody(ctx context.Context, projectId int64, id int64, body PostProjectProjectIdClassificationTaskIdLabelFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // PostProjectProjectIdClassificationTaskLabelWithBody request with any body PostProjectProjectIdClassificationTaskLabelWithBody(ctx context.Context, projectId int64, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) PostProjectProjectIdClassificationTaskLabelWithFormdataBody(ctx context.Context, projectId int64, body PostProjectProjectIdClassificationTaskLabelFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // GetProjectProjectIdClassificationTaskLabelId request GetProjectProjectIdClassificationTaskLabelId(ctx context.Context, projectId int64, id int64, reqEditors ...RequestEditorFn) (*http.Response, error) // GetProjectProjectIdClassificationTasks request GetProjectProjectIdClassificationTasks(ctx context.Context, projectId int64, params *GetProjectProjectIdClassificationTasksParams, reqEditors ...RequestEditorFn) (*http.Response, error) // GetProjectProjectIdPendingClassificationTasks request GetProjectProjectIdPendingClassificationTasks(ctx context.Context, projectId int64, params *GetProjectProjectIdPendingClassificationTasksParams, reqEditors ...RequestEditorFn) (*http.Response, error) // GetProjects request GetProjects(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) }
The interface specification for the client above.
type ClientOption ¶
ClientOption allows setting custom parameters during construction
func WithHTTPClient ¶
func WithHTTPClient(doer HttpRequestDoer) ClientOption
WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.
func WithRequestEditorFn ¶
func WithRequestEditorFn(fn RequestEditorFn) ClientOption
WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.
type ClientWithResponses ¶
type ClientWithResponses struct {
ClientInterface
}
ClientWithResponses builds on ClientInterface to offer response payloads
func NewClientWithResponses ¶
func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)
NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling
func (*ClientWithResponses) GetOpenapiJsonWithResponse ¶
func (c *ClientWithResponses) GetOpenapiJsonWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetOpenapiJsonResponse, error)
GetOpenapiJsonWithResponse request returning *GetOpenapiJsonResponse
func (*ClientWithResponses) GetProjectIdWithResponse ¶
func (c *ClientWithResponses) GetProjectIdWithResponse(ctx context.Context, id int64, reqEditors ...RequestEditorFn) (*GetProjectIdResponse, error)
GetProjectIdWithResponse request returning *GetProjectIdResponse
func (*ClientWithResponses) GetProjectProjectIdClassificationTaskIdWithResponse ¶
func (c *ClientWithResponses) GetProjectProjectIdClassificationTaskIdWithResponse(ctx context.Context, projectId int64, id int64, reqEditors ...RequestEditorFn) (*GetProjectProjectIdClassificationTaskIdResponse, error)
GetProjectProjectIdClassificationTaskIdWithResponse request returning *GetProjectProjectIdClassificationTaskIdResponse
func (*ClientWithResponses) GetProjectProjectIdClassificationTaskLabelIdWithResponse ¶
func (c *ClientWithResponses) GetProjectProjectIdClassificationTaskLabelIdWithResponse(ctx context.Context, projectId int64, id int64, reqEditors ...RequestEditorFn) (*GetProjectProjectIdClassificationTaskLabelIdResponse, error)
GetProjectProjectIdClassificationTaskLabelIdWithResponse request returning *GetProjectProjectIdClassificationTaskLabelIdResponse
func (*ClientWithResponses) GetProjectProjectIdClassificationTasksWithResponse ¶
func (c *ClientWithResponses) GetProjectProjectIdClassificationTasksWithResponse(ctx context.Context, projectId int64, params *GetProjectProjectIdClassificationTasksParams, reqEditors ...RequestEditorFn) (*GetProjectProjectIdClassificationTasksResponse, error)
GetProjectProjectIdClassificationTasksWithResponse request returning *GetProjectProjectIdClassificationTasksResponse
func (*ClientWithResponses) GetProjectProjectIdPendingClassificationTasksWithResponse ¶
func (c *ClientWithResponses) GetProjectProjectIdPendingClassificationTasksWithResponse(ctx context.Context, projectId int64, params *GetProjectProjectIdPendingClassificationTasksParams, reqEditors ...RequestEditorFn) (*GetProjectProjectIdPendingClassificationTasksResponse, error)
GetProjectProjectIdPendingClassificationTasksWithResponse request returning *GetProjectProjectIdPendingClassificationTasksResponse
func (*ClientWithResponses) GetProjectsWithResponse ¶
func (c *ClientWithResponses) GetProjectsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetProjectsResponse, error)
GetProjectsWithResponse request returning *GetProjectsResponse
func (*ClientWithResponses) PostProjectProjectIdClassificationTaskIdLabelWithBodyWithResponse ¶
func (c *ClientWithResponses) PostProjectProjectIdClassificationTaskIdLabelWithBodyWithResponse(ctx context.Context, projectId int64, id int64, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostProjectProjectIdClassificationTaskIdLabelResponse, error)
PostProjectProjectIdClassificationTaskIdLabelWithBodyWithResponse request with arbitrary body returning *PostProjectProjectIdClassificationTaskIdLabelResponse
func (*ClientWithResponses) PostProjectProjectIdClassificationTaskIdLabelWithFormdataBodyWithResponse ¶
func (c *ClientWithResponses) PostProjectProjectIdClassificationTaskIdLabelWithFormdataBodyWithResponse(ctx context.Context, projectId int64, id int64, body PostProjectProjectIdClassificationTaskIdLabelFormdataRequestBody, reqEditors ...RequestEditorFn) (*PostProjectProjectIdClassificationTaskIdLabelResponse, error)
func (*ClientWithResponses) PostProjectProjectIdClassificationTaskLabelWithBodyWithResponse ¶
func (c *ClientWithResponses) PostProjectProjectIdClassificationTaskLabelWithBodyWithResponse(ctx context.Context, projectId int64, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostProjectProjectIdClassificationTaskLabelResponse, error)
PostProjectProjectIdClassificationTaskLabelWithBodyWithResponse request with arbitrary body returning *PostProjectProjectIdClassificationTaskLabelResponse
func (*ClientWithResponses) PostProjectProjectIdClassificationTaskLabelWithFormdataBodyWithResponse ¶
func (c *ClientWithResponses) PostProjectProjectIdClassificationTaskLabelWithFormdataBodyWithResponse(ctx context.Context, projectId int64, body PostProjectProjectIdClassificationTaskLabelFormdataRequestBody, reqEditors ...RequestEditorFn) (*PostProjectProjectIdClassificationTaskLabelResponse, error)
func (*ClientWithResponses) PostProjectProjectIdClassificationTaskWithBodyWithResponse ¶
func (c *ClientWithResponses) PostProjectProjectIdClassificationTaskWithBodyWithResponse(ctx context.Context, projectId int64, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostProjectProjectIdClassificationTaskResponse, error)
PostProjectProjectIdClassificationTaskWithBodyWithResponse request with arbitrary body returning *PostProjectProjectIdClassificationTaskResponse
func (*ClientWithResponses) PostProjectProjectIdClassificationTaskWithFormdataBodyWithResponse ¶
func (c *ClientWithResponses) PostProjectProjectIdClassificationTaskWithFormdataBodyWithResponse(ctx context.Context, projectId int64, body PostProjectProjectIdClassificationTaskFormdataRequestBody, reqEditors ...RequestEditorFn) (*PostProjectProjectIdClassificationTaskResponse, error)
func (*ClientWithResponses) PostProjectProjectIdClassificationTaskWithResponse ¶
func (c *ClientWithResponses) PostProjectProjectIdClassificationTaskWithResponse(ctx context.Context, projectId int64, body PostProjectProjectIdClassificationTaskJSONRequestBody, reqEditors ...RequestEditorFn) (*PostProjectProjectIdClassificationTaskResponse, error)
func (*ClientWithResponses) PostProjectWithBodyWithResponse ¶
func (c *ClientWithResponses) PostProjectWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostProjectResponse, error)
PostProjectWithBodyWithResponse request with arbitrary body returning *PostProjectResponse
func (*ClientWithResponses) PostProjectWithFormdataBodyWithResponse ¶
func (c *ClientWithResponses) PostProjectWithFormdataBodyWithResponse(ctx context.Context, body PostProjectFormdataRequestBody, reqEditors ...RequestEditorFn) (*PostProjectResponse, error)
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface { // GetOpenapiJsonWithResponse request GetOpenapiJsonWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetOpenapiJsonResponse, error) // PostProjectWithBodyWithResponse request with any body PostProjectWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostProjectResponse, error) PostProjectWithFormdataBodyWithResponse(ctx context.Context, body PostProjectFormdataRequestBody, reqEditors ...RequestEditorFn) (*PostProjectResponse, error) // GetProjectIdWithResponse request GetProjectIdWithResponse(ctx context.Context, id int64, reqEditors ...RequestEditorFn) (*GetProjectIdResponse, error) // PostProjectProjectIdClassificationTaskWithBodyWithResponse request with any body PostProjectProjectIdClassificationTaskWithBodyWithResponse(ctx context.Context, projectId int64, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostProjectProjectIdClassificationTaskResponse, error) PostProjectProjectIdClassificationTaskWithResponse(ctx context.Context, projectId int64, body PostProjectProjectIdClassificationTaskJSONRequestBody, reqEditors ...RequestEditorFn) (*PostProjectProjectIdClassificationTaskResponse, error) PostProjectProjectIdClassificationTaskWithFormdataBodyWithResponse(ctx context.Context, projectId int64, body PostProjectProjectIdClassificationTaskFormdataRequestBody, reqEditors ...RequestEditorFn) (*PostProjectProjectIdClassificationTaskResponse, error) // GetProjectProjectIdClassificationTaskIdWithResponse request GetProjectProjectIdClassificationTaskIdWithResponse(ctx context.Context, projectId int64, id int64, reqEditors ...RequestEditorFn) (*GetProjectProjectIdClassificationTaskIdResponse, error) // PostProjectProjectIdClassificationTaskIdLabelWithBodyWithResponse request with any body PostProjectProjectIdClassificationTaskIdLabelWithBodyWithResponse(ctx context.Context, projectId int64, id int64, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostProjectProjectIdClassificationTaskIdLabelResponse, error) PostProjectProjectIdClassificationTaskIdLabelWithFormdataBodyWithResponse(ctx context.Context, projectId int64, id int64, body PostProjectProjectIdClassificationTaskIdLabelFormdataRequestBody, reqEditors ...RequestEditorFn) (*PostProjectProjectIdClassificationTaskIdLabelResponse, error) // PostProjectProjectIdClassificationTaskLabelWithBodyWithResponse request with any body PostProjectProjectIdClassificationTaskLabelWithBodyWithResponse(ctx context.Context, projectId int64, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostProjectProjectIdClassificationTaskLabelResponse, error) PostProjectProjectIdClassificationTaskLabelWithFormdataBodyWithResponse(ctx context.Context, projectId int64, body PostProjectProjectIdClassificationTaskLabelFormdataRequestBody, reqEditors ...RequestEditorFn) (*PostProjectProjectIdClassificationTaskLabelResponse, error) // GetProjectProjectIdClassificationTaskLabelIdWithResponse request GetProjectProjectIdClassificationTaskLabelIdWithResponse(ctx context.Context, projectId int64, id int64, reqEditors ...RequestEditorFn) (*GetProjectProjectIdClassificationTaskLabelIdResponse, error) // GetProjectProjectIdClassificationTasksWithResponse request GetProjectProjectIdClassificationTasksWithResponse(ctx context.Context, projectId int64, params *GetProjectProjectIdClassificationTasksParams, reqEditors ...RequestEditorFn) (*GetProjectProjectIdClassificationTasksResponse, error) // GetProjectProjectIdPendingClassificationTasksWithResponse request GetProjectProjectIdPendingClassificationTasksWithResponse(ctx context.Context, projectId int64, params *GetProjectProjectIdPendingClassificationTasksParams, reqEditors ...RequestEditorFn) (*GetProjectProjectIdPendingClassificationTasksResponse, error) // GetProjectsWithResponse request GetProjectsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetProjectsResponse, error) }
ClientWithResponsesInterface is the interface specification for the client with responses above.
type ConflictResponse ¶
type ConflictResponse struct {
Headers ConflictResponseHeaders
}
type ConflictResponseHeaders ¶
type ConflictResponseHeaders struct {
Location Location
}
type CreateClassificationTask ¶
type CreateClassificationTask struct { Embeddings map[string]Embedding `json:"embeddings"` LlmInput string `json:"llm_input"` LlmOutput string `json:"llm_output"` }
CreateClassificationTask defines model for CreateClassificationTask.
type CreateClassificationTaskLabel ¶
type CreateClassificationTaskLabel struct {
Label string `json:"label"`
}
CreateClassificationTaskLabel defines model for CreateClassificationTaskLabel.
type CreateProject ¶
CreateProject defines model for CreateProject.
type GetOpenapiJsonResponse ¶
func ParseGetOpenapiJsonResponse ¶
func ParseGetOpenapiJsonResponse(rsp *http.Response) (*GetOpenapiJsonResponse, error)
ParseGetOpenapiJsonResponse parses an HTTP response from a GetOpenapiJsonWithResponse call
func (GetOpenapiJsonResponse) Status ¶
func (r GetOpenapiJsonResponse) Status() string
Status returns HTTPResponse.Status
func (GetOpenapiJsonResponse) StatusCode ¶
func (r GetOpenapiJsonResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetProjectIdResponse ¶
func ParseGetProjectIdResponse ¶
func ParseGetProjectIdResponse(rsp *http.Response) (*GetProjectIdResponse, error)
ParseGetProjectIdResponse parses an HTTP response from a GetProjectIdWithResponse call
func (GetProjectIdResponse) Status ¶
func (r GetProjectIdResponse) Status() string
Status returns HTTPResponse.Status
func (GetProjectIdResponse) StatusCode ¶
func (r GetProjectIdResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetProjectProjectIdClassificationTaskIdResponse ¶
type GetProjectProjectIdClassificationTaskIdResponse struct { Body []byte HTTPResponse *http.Response JSON200 *ClassificationTaskOrPendingClassificationTask }
func ParseGetProjectProjectIdClassificationTaskIdResponse ¶
func ParseGetProjectProjectIdClassificationTaskIdResponse(rsp *http.Response) (*GetProjectProjectIdClassificationTaskIdResponse, error)
ParseGetProjectProjectIdClassificationTaskIdResponse parses an HTTP response from a GetProjectProjectIdClassificationTaskIdWithResponse call
func (GetProjectProjectIdClassificationTaskIdResponse) Status ¶
func (r GetProjectProjectIdClassificationTaskIdResponse) Status() string
Status returns HTTPResponse.Status
func (GetProjectProjectIdClassificationTaskIdResponse) StatusCode ¶
func (r GetProjectProjectIdClassificationTaskIdResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetProjectProjectIdClassificationTaskLabelIdResponse ¶
type GetProjectProjectIdClassificationTaskLabelIdResponse struct { Body []byte HTTPResponse *http.Response JSON200 *ClassificationTaskLabel }
func ParseGetProjectProjectIdClassificationTaskLabelIdResponse ¶
func ParseGetProjectProjectIdClassificationTaskLabelIdResponse(rsp *http.Response) (*GetProjectProjectIdClassificationTaskLabelIdResponse, error)
ParseGetProjectProjectIdClassificationTaskLabelIdResponse parses an HTTP response from a GetProjectProjectIdClassificationTaskLabelIdWithResponse call
func (GetProjectProjectIdClassificationTaskLabelIdResponse) Status ¶
func (r GetProjectProjectIdClassificationTaskLabelIdResponse) Status() string
Status returns HTTPResponse.Status
func (GetProjectProjectIdClassificationTaskLabelIdResponse) StatusCode ¶
func (r GetProjectProjectIdClassificationTaskLabelIdResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetProjectProjectIdClassificationTasksParams ¶
type GetProjectProjectIdClassificationTasksParams struct { // Page The page number Page *Page `form:"page,omitempty" json:"page,omitempty"` // PageSize The number of results per page PageSize *PageSize `form:"page_size,omitempty" json:"page_size,omitempty"` }
GetProjectProjectIdClassificationTasksParams defines parameters for GetProjectProjectIdClassificationTasks.
type GetProjectProjectIdClassificationTasksResponse ¶
type GetProjectProjectIdClassificationTasksResponse struct { Body []byte HTTPResponse *http.Response JSON200 *ClassificationTaskList }
func ParseGetProjectProjectIdClassificationTasksResponse ¶
func ParseGetProjectProjectIdClassificationTasksResponse(rsp *http.Response) (*GetProjectProjectIdClassificationTasksResponse, error)
ParseGetProjectProjectIdClassificationTasksResponse parses an HTTP response from a GetProjectProjectIdClassificationTasksWithResponse call
func (GetProjectProjectIdClassificationTasksResponse) Status ¶
func (r GetProjectProjectIdClassificationTasksResponse) Status() string
Status returns HTTPResponse.Status
func (GetProjectProjectIdClassificationTasksResponse) StatusCode ¶
func (r GetProjectProjectIdClassificationTasksResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetProjectProjectIdPendingClassificationTasksParams ¶
type GetProjectProjectIdPendingClassificationTasksParams struct { // Page The page number Page *Page `form:"page,omitempty" json:"page,omitempty"` // PageSize The number of results per page PageSize *PageSize `form:"page_size,omitempty" json:"page_size,omitempty"` }
GetProjectProjectIdPendingClassificationTasksParams defines parameters for GetProjectProjectIdPendingClassificationTasks.
type GetProjectProjectIdPendingClassificationTasksResponse ¶
type GetProjectProjectIdPendingClassificationTasksResponse struct { Body []byte HTTPResponse *http.Response JSON200 *PendingClassificationTaskList }
func ParseGetProjectProjectIdPendingClassificationTasksResponse ¶
func ParseGetProjectProjectIdPendingClassificationTasksResponse(rsp *http.Response) (*GetProjectProjectIdPendingClassificationTasksResponse, error)
ParseGetProjectProjectIdPendingClassificationTasksResponse parses an HTTP response from a GetProjectProjectIdPendingClassificationTasksWithResponse call
func (GetProjectProjectIdPendingClassificationTasksResponse) Status ¶
func (r GetProjectProjectIdPendingClassificationTasksResponse) Status() string
Status returns HTTPResponse.Status
func (GetProjectProjectIdPendingClassificationTasksResponse) StatusCode ¶
func (r GetProjectProjectIdPendingClassificationTasksResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetProjectsResponse ¶
func ParseGetProjectsResponse ¶
func ParseGetProjectsResponse(rsp *http.Response) (*GetProjectsResponse, error)
ParseGetProjectsResponse parses an HTTP response from a GetProjectsWithResponse call
func (GetProjectsResponse) Status ¶
func (r GetProjectsResponse) Status() string
Status returns HTTPResponse.Status
func (GetProjectsResponse) StatusCode ¶
func (r GetProjectsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type HttpRequestDoer ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.
type LabelTask ¶
type LabelTask struct {
Label int64 `json:"label"`
}
LabelTask defines model for LabelTask.
type PendingClassificationTask ¶
type PendingClassificationTask struct { CreatedAt time.Time `json:"created_at"` Embeddings map[string]Embedding `json:"embeddings"` Id int64 `json:"id"` LlmInput string `json:"llm_input"` LlmOutput string `json:"llm_output"` ProjectId int64 `json:"project_id"` }
PendingClassificationTask defines model for PendingClassificationTask.
type PendingClassificationTaskList ¶
type PendingClassificationTaskList struct { Data []PendingClassificationTask `json:"data"` Total uint64 `json:"total"` }
PendingClassificationTaskList defines model for PendingClassificationTaskList.
type PostProjectFormdataRequestBody ¶
type PostProjectFormdataRequestBody = CreateProject
PostProjectFormdataRequestBody defines body for PostProject for application/x-www-form-urlencoded ContentType.
type PostProjectProjectIdClassificationTaskFormdataRequestBody ¶
type PostProjectProjectIdClassificationTaskFormdataRequestBody = CreateClassificationTask
PostProjectProjectIdClassificationTaskFormdataRequestBody defines body for PostProjectProjectIdClassificationTask for application/x-www-form-urlencoded ContentType.
type PostProjectProjectIdClassificationTaskIdLabelFormdataRequestBody ¶
type PostProjectProjectIdClassificationTaskIdLabelFormdataRequestBody = LabelTask
PostProjectProjectIdClassificationTaskIdLabelFormdataRequestBody defines body for PostProjectProjectIdClassificationTaskIdLabel for application/x-www-form-urlencoded ContentType.
type PostProjectProjectIdClassificationTaskIdLabelResponse ¶
type PostProjectProjectIdClassificationTaskIdLabelResponse struct { Body []byte HTTPResponse *http.Response JSON200 *ClassificationTask }
func ParsePostProjectProjectIdClassificationTaskIdLabelResponse ¶
func ParsePostProjectProjectIdClassificationTaskIdLabelResponse(rsp *http.Response) (*PostProjectProjectIdClassificationTaskIdLabelResponse, error)
ParsePostProjectProjectIdClassificationTaskIdLabelResponse parses an HTTP response from a PostProjectProjectIdClassificationTaskIdLabelWithResponse call
func (PostProjectProjectIdClassificationTaskIdLabelResponse) Status ¶
func (r PostProjectProjectIdClassificationTaskIdLabelResponse) Status() string
Status returns HTTPResponse.Status
func (PostProjectProjectIdClassificationTaskIdLabelResponse) StatusCode ¶
func (r PostProjectProjectIdClassificationTaskIdLabelResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostProjectProjectIdClassificationTaskJSONRequestBody ¶
type PostProjectProjectIdClassificationTaskJSONRequestBody = CreateClassificationTask
PostProjectProjectIdClassificationTaskJSONRequestBody defines body for PostProjectProjectIdClassificationTask for application/json ContentType.
type PostProjectProjectIdClassificationTaskLabelFormdataRequestBody ¶
type PostProjectProjectIdClassificationTaskLabelFormdataRequestBody = CreateClassificationTaskLabel
PostProjectProjectIdClassificationTaskLabelFormdataRequestBody defines body for PostProjectProjectIdClassificationTaskLabel for application/x-www-form-urlencoded ContentType.
type PostProjectProjectIdClassificationTaskLabelResponse ¶
type PostProjectProjectIdClassificationTaskLabelResponse struct { Body []byte HTTPResponse *http.Response JSON201 *ClassificationTaskLabel }
func ParsePostProjectProjectIdClassificationTaskLabelResponse ¶
func ParsePostProjectProjectIdClassificationTaskLabelResponse(rsp *http.Response) (*PostProjectProjectIdClassificationTaskLabelResponse, error)
ParsePostProjectProjectIdClassificationTaskLabelResponse parses an HTTP response from a PostProjectProjectIdClassificationTaskLabelWithResponse call
func (PostProjectProjectIdClassificationTaskLabelResponse) Status ¶
func (r PostProjectProjectIdClassificationTaskLabelResponse) Status() string
Status returns HTTPResponse.Status
func (PostProjectProjectIdClassificationTaskLabelResponse) StatusCode ¶
func (r PostProjectProjectIdClassificationTaskLabelResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostProjectProjectIdClassificationTaskResponse ¶
type PostProjectProjectIdClassificationTaskResponse struct { Body []byte HTTPResponse *http.Response JSON201 *PendingClassificationTask }
func ParsePostProjectProjectIdClassificationTaskResponse ¶
func ParsePostProjectProjectIdClassificationTaskResponse(rsp *http.Response) (*PostProjectProjectIdClassificationTaskResponse, error)
ParsePostProjectProjectIdClassificationTaskResponse parses an HTTP response from a PostProjectProjectIdClassificationTaskWithResponse call
func (PostProjectProjectIdClassificationTaskResponse) Status ¶
func (r PostProjectProjectIdClassificationTaskResponse) Status() string
Status returns HTTPResponse.Status
func (PostProjectProjectIdClassificationTaskResponse) StatusCode ¶
func (r PostProjectProjectIdClassificationTaskResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostProjectResponse ¶
func ParsePostProjectResponse ¶
func ParsePostProjectResponse(rsp *http.Response) (*PostProjectResponse, error)
ParsePostProjectResponse parses an HTTP response from a PostProjectWithResponse call
func (PostProjectResponse) Status ¶
func (r PostProjectResponse) Status() string
Status returns HTTPResponse.Status
func (PostProjectResponse) StatusCode ¶
func (r PostProjectResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type Project ¶
type Project struct { CreatedAt time.Time `json:"created_at"` Description string `json:"description"` Id int64 `json:"id"` Labels *[]ClassificationTaskLabel `json:"labels,omitempty"` Name string `json:"name"` }
Project defines model for Project.
type Projects ¶
type Projects struct {
Projects *[]Project `json:"projects,omitempty"`
}
Projects defines model for Projects.
type RedirectResponse ¶
type RedirectResponse struct {
Headers RedirectResponseHeaders
}
type RedirectResponseHeaders ¶
type RedirectResponseHeaders struct {
Location Location
}