task

package
v1.10.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 13, 2022 License: ISC Imports: 10 Imported by: 0

Documentation

Index

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

type GetTasksBadRequest struct {
	Payload *models.ErrorBody
}
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

type GetTasksConnectionBadRequest struct {
	Payload *models.ErrorBody
}
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 (*GetTasksConnectionBadRequest) GetPayload

type GetTasksConnectionInternalServerError added in v1.10.0

type GetTasksConnectionInternalServerError struct {
	Payload *models.ErrorBody
}
GetTasksConnectionInternalServerError describes a response with status code 500, with default header values.

Server error

func NewGetTasksConnectionInternalServerError added in v1.10.0

func NewGetTasksConnectionInternalServerError() *GetTasksConnectionInternalServerError

NewGetTasksConnectionInternalServerError creates a GetTasksConnectionInternalServerError with default headers values

func (*GetTasksConnectionInternalServerError) Error added in v1.10.0

func (*GetTasksConnectionInternalServerError) GetPayload added in v1.10.0

type GetTasksConnectionNotFound added in v1.10.0

type GetTasksConnectionNotFound struct {
	Payload *models.ErrorBody
}
GetTasksConnectionNotFound describes a response with status code 404, with default header values.

Not found

func NewGetTasksConnectionNotFound added in v1.10.0

func NewGetTasksConnectionNotFound() *GetTasksConnectionNotFound

NewGetTasksConnectionNotFound creates a GetTasksConnectionNotFound with default headers values

func (*GetTasksConnectionNotFound) Error added in v1.10.0

func (*GetTasksConnectionNotFound) GetPayload added in v1.10.0

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

WithContext adds the context to the get tasks connection params

func (*GetTasksConnectionParams) WithDefaults

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

WithRequestBody adds the requestBody to the get tasks connection params

func (*GetTasksConnectionParams) WithTimeout

WithTimeout adds the timeout to the get tasks connection params

func (*GetTasksConnectionParams) WriteToRequest

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 added in v1.10.0

type GetTasksInternalServerError struct {
	Payload *models.ErrorBody
}
GetTasksInternalServerError describes a response with status code 500, with default header values.

Server error

func NewGetTasksInternalServerError added in v1.10.0

func NewGetTasksInternalServerError() *GetTasksInternalServerError

NewGetTasksInternalServerError creates a GetTasksInternalServerError with default headers values

func (*GetTasksInternalServerError) Error added in v1.10.0

func (*GetTasksInternalServerError) GetPayload added in v1.10.0

func (o *GetTasksInternalServerError) GetPayload() *models.ErrorBody

type GetTasksNotFound added in v1.10.0

type GetTasksNotFound struct {
	Payload *models.ErrorBody
}
GetTasksNotFound describes a response with status code 404, with default header values.

Not found

func NewGetTasksNotFound added in v1.10.0

func NewGetTasksNotFound() *GetTasksNotFound

NewGetTasksNotFound creates a GetTasksNotFound with default headers values

func (*GetTasksNotFound) Error added in v1.10.0

func (o *GetTasksNotFound) Error() string

func (*GetTasksNotFound) GetPayload added in v1.10.0

func (o *GetTasksNotFound) GetPayload() *models.ErrorBody

type GetTasksOK

type GetTasksOK struct {
	Payload []*models.Task
}
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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL