Documentation ¶
Index ¶
- type Client
- type ClientOption
- type ClientService
- type GetTasksBadRequest
- type GetTasksConnectionBadRequest
- type GetTasksConnectionInternalServerError
- type GetTasksConnectionNotFound
- type GetTasksConnectionOK
- type GetTasksConnectionParams
- func NewGetTasksConnectionParams() *GetTasksConnectionParams
- func NewGetTasksConnectionParamsWithContext(ctx context.Context) *GetTasksConnectionParams
- func NewGetTasksConnectionParamsWithHTTPClient(client *http.Client) *GetTasksConnectionParams
- func NewGetTasksConnectionParamsWithTimeout(timeout time.Duration) *GetTasksConnectionParams
- func (o *GetTasksConnectionParams) SetContentLanguage(contentLanguage *string)
- func (o *GetTasksConnectionParams) SetContext(ctx context.Context)
- func (o *GetTasksConnectionParams) SetDefaults()
- func (o *GetTasksConnectionParams) SetHTTPClient(client *http.Client)
- func (o *GetTasksConnectionParams) SetRequestBody(requestBody *models.GetTasksConnectionRequestBody)
- func (o *GetTasksConnectionParams) SetTimeout(timeout time.Duration)
- func (o *GetTasksConnectionParams) WithContentLanguage(contentLanguage *string) *GetTasksConnectionParams
- func (o *GetTasksConnectionParams) WithContext(ctx context.Context) *GetTasksConnectionParams
- func (o *GetTasksConnectionParams) WithDefaults() *GetTasksConnectionParams
- func (o *GetTasksConnectionParams) WithHTTPClient(client *http.Client) *GetTasksConnectionParams
- func (o *GetTasksConnectionParams) WithRequestBody(requestBody *models.GetTasksConnectionRequestBody) *GetTasksConnectionParams
- func (o *GetTasksConnectionParams) WithTimeout(timeout time.Duration) *GetTasksConnectionParams
- func (o *GetTasksConnectionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetTasksConnectionReader
- type GetTasksInternalServerError
- type GetTasksNotFound
- type GetTasksOK
- type GetTasksParams
- func (o *GetTasksParams) SetContentLanguage(contentLanguage *string)
- func (o *GetTasksParams) SetContext(ctx context.Context)
- func (o *GetTasksParams) SetDefaults()
- func (o *GetTasksParams) SetHTTPClient(client *http.Client)
- func (o *GetTasksParams) SetRequestBody(requestBody *models.GetTasksRequestBody)
- func (o *GetTasksParams) SetTimeout(timeout time.Duration)
- func (o *GetTasksParams) WithContentLanguage(contentLanguage *string) *GetTasksParams
- func (o *GetTasksParams) WithContext(ctx context.Context) *GetTasksParams
- func (o *GetTasksParams) WithDefaults() *GetTasksParams
- func (o *GetTasksParams) WithHTTPClient(client *http.Client) *GetTasksParams
- func (o *GetTasksParams) WithRequestBody(requestBody *models.GetTasksRequestBody) *GetTasksParams
- func (o *GetTasksParams) WithTimeout(timeout time.Duration) *GetTasksParams
- func (o *GetTasksParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetTasksReader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for task API
func (*Client) GetTasks ¶
func (a *Client) GetTasks(params *GetTasksParams, opts ...ClientOption) (*GetTasksOK, error)
GetTasks get tasks API
func (*Client) GetTasksConnection ¶
func (a *Client) GetTasksConnection(params *GetTasksConnectionParams, opts ...ClientOption) (*GetTasksConnectionOK, error)
GetTasksConnection get tasks connection API
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶
type ClientService interface { GetTasks(params *GetTasksParams, opts ...ClientOption) (*GetTasksOK, error) GetTasksConnection(params *GetTasksConnectionParams, opts ...ClientOption) (*GetTasksConnectionOK, error) SetTransport(transport runtime.ClientTransport) }
ClientService is the interface for Client methods
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService
New creates a new task API client.
type GetTasksBadRequest ¶
GetTasksBadRequest describes a response with status code 400, with default header values.
Bad request
func NewGetTasksBadRequest ¶
func NewGetTasksBadRequest() *GetTasksBadRequest
NewGetTasksBadRequest creates a GetTasksBadRequest with default headers values
func (*GetTasksBadRequest) Error ¶
func (o *GetTasksBadRequest) Error() string
func (*GetTasksBadRequest) GetPayload ¶
func (o *GetTasksBadRequest) GetPayload() *models.ErrorBody
type GetTasksConnectionBadRequest ¶
GetTasksConnectionBadRequest describes a response with status code 400, with default header values.
Bad request
func NewGetTasksConnectionBadRequest ¶
func NewGetTasksConnectionBadRequest() *GetTasksConnectionBadRequest
NewGetTasksConnectionBadRequest creates a GetTasksConnectionBadRequest with default headers values
func (*GetTasksConnectionBadRequest) Error ¶
func (o *GetTasksConnectionBadRequest) Error() string
func (*GetTasksConnectionBadRequest) GetPayload ¶
func (o *GetTasksConnectionBadRequest) GetPayload() *models.ErrorBody
type GetTasksConnectionInternalServerError ¶
GetTasksConnectionInternalServerError describes a response with status code 500, with default header values.
Server error
func NewGetTasksConnectionInternalServerError ¶
func NewGetTasksConnectionInternalServerError() *GetTasksConnectionInternalServerError
NewGetTasksConnectionInternalServerError creates a GetTasksConnectionInternalServerError with default headers values
func (*GetTasksConnectionInternalServerError) Error ¶
func (o *GetTasksConnectionInternalServerError) Error() string
func (*GetTasksConnectionInternalServerError) GetPayload ¶
func (o *GetTasksConnectionInternalServerError) GetPayload() *models.ErrorBody
type GetTasksConnectionNotFound ¶
GetTasksConnectionNotFound describes a response with status code 404, with default header values.
Not found
func NewGetTasksConnectionNotFound ¶
func NewGetTasksConnectionNotFound() *GetTasksConnectionNotFound
NewGetTasksConnectionNotFound creates a GetTasksConnectionNotFound with default headers values
func (*GetTasksConnectionNotFound) Error ¶
func (o *GetTasksConnectionNotFound) Error() string
func (*GetTasksConnectionNotFound) GetPayload ¶
func (o *GetTasksConnectionNotFound) GetPayload() *models.ErrorBody
type GetTasksConnectionOK ¶
type GetTasksConnectionOK struct {
Payload *models.TaskConnection
}
GetTasksConnectionOK describes a response with status code 200, with default header values.
Ok
func NewGetTasksConnectionOK ¶
func NewGetTasksConnectionOK() *GetTasksConnectionOK
NewGetTasksConnectionOK creates a GetTasksConnectionOK with default headers values
func (*GetTasksConnectionOK) Error ¶
func (o *GetTasksConnectionOK) Error() string
func (*GetTasksConnectionOK) GetPayload ¶
func (o *GetTasksConnectionOK) GetPayload() *models.TaskConnection
type GetTasksConnectionParams ¶
type GetTasksConnectionParams struct { // ContentLanguage. // // Default: "en-US" ContentLanguage *string // RequestBody. RequestBody *models.GetTasksConnectionRequestBody Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetTasksConnectionParams contains all the parameters to send to the API endpoint
for the get tasks connection operation. Typically these are written to a http.Request.
func NewGetTasksConnectionParams ¶
func NewGetTasksConnectionParams() *GetTasksConnectionParams
NewGetTasksConnectionParams creates a new GetTasksConnectionParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewGetTasksConnectionParamsWithContext ¶
func NewGetTasksConnectionParamsWithContext(ctx context.Context) *GetTasksConnectionParams
NewGetTasksConnectionParamsWithContext creates a new GetTasksConnectionParams object with the ability to set a context for a request.
func NewGetTasksConnectionParamsWithHTTPClient ¶
func NewGetTasksConnectionParamsWithHTTPClient(client *http.Client) *GetTasksConnectionParams
NewGetTasksConnectionParamsWithHTTPClient creates a new GetTasksConnectionParams object with the ability to set a custom HTTPClient for a request.
func NewGetTasksConnectionParamsWithTimeout ¶
func NewGetTasksConnectionParamsWithTimeout(timeout time.Duration) *GetTasksConnectionParams
NewGetTasksConnectionParamsWithTimeout creates a new GetTasksConnectionParams object with the ability to set a timeout on a request.
func (*GetTasksConnectionParams) SetContentLanguage ¶
func (o *GetTasksConnectionParams) SetContentLanguage(contentLanguage *string)
SetContentLanguage adds the contentLanguage to the get tasks connection params
func (*GetTasksConnectionParams) SetContext ¶
func (o *GetTasksConnectionParams) SetContext(ctx context.Context)
SetContext adds the context to the get tasks connection params
func (*GetTasksConnectionParams) SetDefaults ¶
func (o *GetTasksConnectionParams) SetDefaults()
SetDefaults hydrates default values in the get tasks connection params (not the query body).
All values with no default are reset to their zero value.
func (*GetTasksConnectionParams) SetHTTPClient ¶
func (o *GetTasksConnectionParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get tasks connection params
func (*GetTasksConnectionParams) SetRequestBody ¶
func (o *GetTasksConnectionParams) SetRequestBody(requestBody *models.GetTasksConnectionRequestBody)
SetRequestBody adds the requestBody to the get tasks connection params
func (*GetTasksConnectionParams) SetTimeout ¶
func (o *GetTasksConnectionParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get tasks connection params
func (*GetTasksConnectionParams) WithContentLanguage ¶
func (o *GetTasksConnectionParams) WithContentLanguage(contentLanguage *string) *GetTasksConnectionParams
WithContentLanguage adds the contentLanguage to the get tasks connection params
func (*GetTasksConnectionParams) WithContext ¶
func (o *GetTasksConnectionParams) WithContext(ctx context.Context) *GetTasksConnectionParams
WithContext adds the context to the get tasks connection params
func (*GetTasksConnectionParams) WithDefaults ¶
func (o *GetTasksConnectionParams) WithDefaults() *GetTasksConnectionParams
WithDefaults hydrates default values in the get tasks connection params (not the query body).
All values with no default are reset to their zero value.
func (*GetTasksConnectionParams) WithHTTPClient ¶
func (o *GetTasksConnectionParams) WithHTTPClient(client *http.Client) *GetTasksConnectionParams
WithHTTPClient adds the HTTPClient to the get tasks connection params
func (*GetTasksConnectionParams) WithRequestBody ¶
func (o *GetTasksConnectionParams) WithRequestBody(requestBody *models.GetTasksConnectionRequestBody) *GetTasksConnectionParams
WithRequestBody adds the requestBody to the get tasks connection params
func (*GetTasksConnectionParams) WithTimeout ¶
func (o *GetTasksConnectionParams) WithTimeout(timeout time.Duration) *GetTasksConnectionParams
WithTimeout adds the timeout to the get tasks connection params
func (*GetTasksConnectionParams) WriteToRequest ¶
func (o *GetTasksConnectionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetTasksConnectionReader ¶
type GetTasksConnectionReader struct {
// contains filtered or unexported fields
}
GetTasksConnectionReader is a Reader for the GetTasksConnection structure.
func (*GetTasksConnectionReader) ReadResponse ¶
func (o *GetTasksConnectionReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetTasksInternalServerError ¶
GetTasksInternalServerError describes a response with status code 500, with default header values.
Server error
func NewGetTasksInternalServerError ¶
func NewGetTasksInternalServerError() *GetTasksInternalServerError
NewGetTasksInternalServerError creates a GetTasksInternalServerError with default headers values
func (*GetTasksInternalServerError) Error ¶
func (o *GetTasksInternalServerError) Error() string
func (*GetTasksInternalServerError) GetPayload ¶
func (o *GetTasksInternalServerError) GetPayload() *models.ErrorBody
type GetTasksNotFound ¶
GetTasksNotFound describes a response with status code 404, with default header values.
Not found
func NewGetTasksNotFound ¶
func NewGetTasksNotFound() *GetTasksNotFound
NewGetTasksNotFound creates a GetTasksNotFound with default headers values
func (*GetTasksNotFound) Error ¶
func (o *GetTasksNotFound) Error() string
func (*GetTasksNotFound) GetPayload ¶
func (o *GetTasksNotFound) GetPayload() *models.ErrorBody
type GetTasksOK ¶
GetTasksOK describes a response with status code 200, with default header values.
Ok
func NewGetTasksOK ¶
func NewGetTasksOK() *GetTasksOK
NewGetTasksOK creates a GetTasksOK with default headers values
func (*GetTasksOK) Error ¶
func (o *GetTasksOK) Error() string
func (*GetTasksOK) GetPayload ¶
func (o *GetTasksOK) GetPayload() []*models.Task
type GetTasksParams ¶
type GetTasksParams struct { // ContentLanguage. // // Default: "en-US" ContentLanguage *string // RequestBody. RequestBody *models.GetTasksRequestBody Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetTasksParams contains all the parameters to send to the API endpoint
for the get tasks operation. Typically these are written to a http.Request.
func NewGetTasksParams ¶
func NewGetTasksParams() *GetTasksParams
NewGetTasksParams creates a new GetTasksParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewGetTasksParamsWithContext ¶
func NewGetTasksParamsWithContext(ctx context.Context) *GetTasksParams
NewGetTasksParamsWithContext creates a new GetTasksParams object with the ability to set a context for a request.
func NewGetTasksParamsWithHTTPClient ¶
func NewGetTasksParamsWithHTTPClient(client *http.Client) *GetTasksParams
NewGetTasksParamsWithHTTPClient creates a new GetTasksParams object with the ability to set a custom HTTPClient for a request.
func NewGetTasksParamsWithTimeout ¶
func NewGetTasksParamsWithTimeout(timeout time.Duration) *GetTasksParams
NewGetTasksParamsWithTimeout creates a new GetTasksParams object with the ability to set a timeout on a request.
func (*GetTasksParams) SetContentLanguage ¶
func (o *GetTasksParams) SetContentLanguage(contentLanguage *string)
SetContentLanguage adds the contentLanguage to the get tasks params
func (*GetTasksParams) SetContext ¶
func (o *GetTasksParams) SetContext(ctx context.Context)
SetContext adds the context to the get tasks params
func (*GetTasksParams) SetDefaults ¶
func (o *GetTasksParams) SetDefaults()
SetDefaults hydrates default values in the get tasks params (not the query body).
All values with no default are reset to their zero value.
func (*GetTasksParams) SetHTTPClient ¶
func (o *GetTasksParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get tasks params
func (*GetTasksParams) SetRequestBody ¶
func (o *GetTasksParams) SetRequestBody(requestBody *models.GetTasksRequestBody)
SetRequestBody adds the requestBody to the get tasks params
func (*GetTasksParams) SetTimeout ¶
func (o *GetTasksParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get tasks params
func (*GetTasksParams) WithContentLanguage ¶
func (o *GetTasksParams) WithContentLanguage(contentLanguage *string) *GetTasksParams
WithContentLanguage adds the contentLanguage to the get tasks params
func (*GetTasksParams) WithContext ¶
func (o *GetTasksParams) WithContext(ctx context.Context) *GetTasksParams
WithContext adds the context to the get tasks params
func (*GetTasksParams) WithDefaults ¶
func (o *GetTasksParams) WithDefaults() *GetTasksParams
WithDefaults hydrates default values in the get tasks params (not the query body).
All values with no default are reset to their zero value.
func (*GetTasksParams) WithHTTPClient ¶
func (o *GetTasksParams) WithHTTPClient(client *http.Client) *GetTasksParams
WithHTTPClient adds the HTTPClient to the get tasks params
func (*GetTasksParams) WithRequestBody ¶
func (o *GetTasksParams) WithRequestBody(requestBody *models.GetTasksRequestBody) *GetTasksParams
WithRequestBody adds the requestBody to the get tasks params
func (*GetTasksParams) WithTimeout ¶
func (o *GetTasksParams) WithTimeout(timeout time.Duration) *GetTasksParams
WithTimeout adds the timeout to the get tasks params
func (*GetTasksParams) WriteToRequest ¶
func (o *GetTasksParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetTasksReader ¶
type GetTasksReader struct {
// contains filtered or unexported fields
}
GetTasksReader is a Reader for the GetTasks structure.
func (*GetTasksReader) ReadResponse ¶
func (o *GetTasksReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.