task

package
v2.14.0 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2024 License: ISC Imports: 10 Imported by: 1

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) CreateTask added in v2.14.0

func (a *Client) CreateTask(params *CreateTaskParams, opts ...ClientOption) (*CreateTaskOK, error)

CreateTask create 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

func (*Client) UpdateTask added in v2.14.0

func (a *Client) UpdateTask(params *UpdateTaskParams, opts ...ClientOption) (*UpdateTaskOK, error)

UpdateTask update task API

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	CreateTask(params *CreateTaskParams, opts ...ClientOption) (*CreateTaskOK, error)

	GetTasks(params *GetTasksParams, opts ...ClientOption) (*GetTasksOK, error)

	GetTasksConnection(params *GetTasksConnectionParams, opts ...ClientOption) (*GetTasksConnectionOK, error)

	UpdateTask(params *UpdateTaskParams, opts ...ClientOption) (*UpdateTaskOK, 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 CreateTaskBadRequest added in v2.14.0

type CreateTaskBadRequest struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
CreateTaskBadRequest describes a response with status code 400, with default header values.

Bad request

func NewCreateTaskBadRequest added in v2.14.0

func NewCreateTaskBadRequest() *CreateTaskBadRequest

NewCreateTaskBadRequest creates a CreateTaskBadRequest with default headers values

func (*CreateTaskBadRequest) Error added in v2.14.0

func (o *CreateTaskBadRequest) Error() string

func (*CreateTaskBadRequest) GetPayload added in v2.14.0

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

type CreateTaskInternalServerError added in v2.14.0

type CreateTaskInternalServerError struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
CreateTaskInternalServerError describes a response with status code 500, with default header values.

Server error

func NewCreateTaskInternalServerError added in v2.14.0

func NewCreateTaskInternalServerError() *CreateTaskInternalServerError

NewCreateTaskInternalServerError creates a CreateTaskInternalServerError with default headers values

func (*CreateTaskInternalServerError) Error added in v2.14.0

func (*CreateTaskInternalServerError) GetPayload added in v2.14.0

type CreateTaskNotFound added in v2.14.0

type CreateTaskNotFound struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
CreateTaskNotFound describes a response with status code 404, with default header values.

Not found

func NewCreateTaskNotFound added in v2.14.0

func NewCreateTaskNotFound() *CreateTaskNotFound

NewCreateTaskNotFound creates a CreateTaskNotFound with default headers values

func (*CreateTaskNotFound) Error added in v2.14.0

func (o *CreateTaskNotFound) Error() string

func (*CreateTaskNotFound) GetPayload added in v2.14.0

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

type CreateTaskOK added in v2.14.0

type CreateTaskOK struct {
	XTowerRequestID string

	Payload []*models.WithTaskTask
}
CreateTaskOK describes a response with status code 200, with default header values.

CreateTaskOK create task o k

func NewCreateTaskOK added in v2.14.0

func NewCreateTaskOK() *CreateTaskOK

NewCreateTaskOK creates a CreateTaskOK with default headers values

func (*CreateTaskOK) Error added in v2.14.0

func (o *CreateTaskOK) Error() string

func (*CreateTaskOK) GetPayload added in v2.14.0

func (o *CreateTaskOK) GetPayload() []*models.WithTaskTask

type CreateTaskParams added in v2.14.0

type CreateTaskParams struct {

	// ContentLanguage.
	//
	// Default: "en-US"
	ContentLanguage *string

	// RequestBody.
	RequestBody []*models.TaskCreationParams

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

CreateTaskParams contains all the parameters to send to the API endpoint

for the create task operation.

Typically these are written to a http.Request.

func NewCreateTaskParams added in v2.14.0

func NewCreateTaskParams() *CreateTaskParams

NewCreateTaskParams creates a new CreateTaskParams 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 NewCreateTaskParamsWithContext added in v2.14.0

func NewCreateTaskParamsWithContext(ctx context.Context) *CreateTaskParams

NewCreateTaskParamsWithContext creates a new CreateTaskParams object with the ability to set a context for a request.

func NewCreateTaskParamsWithHTTPClient added in v2.14.0

func NewCreateTaskParamsWithHTTPClient(client *http.Client) *CreateTaskParams

NewCreateTaskParamsWithHTTPClient creates a new CreateTaskParams object with the ability to set a custom HTTPClient for a request.

func NewCreateTaskParamsWithTimeout added in v2.14.0

func NewCreateTaskParamsWithTimeout(timeout time.Duration) *CreateTaskParams

NewCreateTaskParamsWithTimeout creates a new CreateTaskParams object with the ability to set a timeout on a request.

func (*CreateTaskParams) SetContentLanguage added in v2.14.0

func (o *CreateTaskParams) SetContentLanguage(contentLanguage *string)

SetContentLanguage adds the contentLanguage to the create task params

func (*CreateTaskParams) SetContext added in v2.14.0

func (o *CreateTaskParams) SetContext(ctx context.Context)

SetContext adds the context to the create task params

func (*CreateTaskParams) SetDefaults added in v2.14.0

func (o *CreateTaskParams) SetDefaults()

SetDefaults hydrates default values in the create task params (not the query body).

All values with no default are reset to their zero value.

func (*CreateTaskParams) SetHTTPClient added in v2.14.0

func (o *CreateTaskParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the create task params

func (*CreateTaskParams) SetRequestBody added in v2.14.0

func (o *CreateTaskParams) SetRequestBody(requestBody []*models.TaskCreationParams)

SetRequestBody adds the requestBody to the create task params

func (*CreateTaskParams) SetTimeout added in v2.14.0

func (o *CreateTaskParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the create task params

func (*CreateTaskParams) WithContentLanguage added in v2.14.0

func (o *CreateTaskParams) WithContentLanguage(contentLanguage *string) *CreateTaskParams

WithContentLanguage adds the contentLanguage to the create task params

func (*CreateTaskParams) WithContext added in v2.14.0

func (o *CreateTaskParams) WithContext(ctx context.Context) *CreateTaskParams

WithContext adds the context to the create task params

func (*CreateTaskParams) WithDefaults added in v2.14.0

func (o *CreateTaskParams) WithDefaults() *CreateTaskParams

WithDefaults hydrates default values in the create task params (not the query body).

All values with no default are reset to their zero value.

func (*CreateTaskParams) WithHTTPClient added in v2.14.0

func (o *CreateTaskParams) WithHTTPClient(client *http.Client) *CreateTaskParams

WithHTTPClient adds the HTTPClient to the create task params

func (*CreateTaskParams) WithRequestBody added in v2.14.0

func (o *CreateTaskParams) WithRequestBody(requestBody []*models.TaskCreationParams) *CreateTaskParams

WithRequestBody adds the requestBody to the create task params

func (*CreateTaskParams) WithTimeout added in v2.14.0

func (o *CreateTaskParams) WithTimeout(timeout time.Duration) *CreateTaskParams

WithTimeout adds the timeout to the create task params

func (*CreateTaskParams) WriteToRequest added in v2.14.0

func (o *CreateTaskParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type CreateTaskReader added in v2.14.0

type CreateTaskReader struct {
	// contains filtered or unexported fields
}

CreateTaskReader is a Reader for the CreateTask structure.

func (*CreateTaskReader) ReadResponse added in v2.14.0

func (o *CreateTaskReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetTasksBadRequest

type GetTasksBadRequest struct {
	XTowerRequestID string

	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 {
	XTowerRequestID string

	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

type GetTasksConnectionInternalServerError struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
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 (*GetTasksConnectionInternalServerError) GetPayload

type GetTasksConnectionNotFound

type GetTasksConnectionNotFound struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
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 (*GetTasksConnectionNotFound) GetPayload

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

type GetTasksConnectionOK

type GetTasksConnectionOK struct {
	XTowerRequestID string

	Payload *models.TaskConnection
}
GetTasksConnectionOK describes a response with status code 200, with default header values.

GetTasksConnectionOK get tasks connection o k

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

type GetTasksInternalServerError struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
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 (*GetTasksInternalServerError) GetPayload

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

type GetTasksNotFound

type GetTasksNotFound struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
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

type GetTasksOK struct {
	XTowerRequestID string

	Payload []*models.Task
}
GetTasksOK describes a response with status code 200, with default header values.

GetTasksOK get tasks o k

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.

type UpdateTaskBadRequest added in v2.14.0

type UpdateTaskBadRequest struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
UpdateTaskBadRequest describes a response with status code 400, with default header values.

Bad request

func NewUpdateTaskBadRequest added in v2.14.0

func NewUpdateTaskBadRequest() *UpdateTaskBadRequest

NewUpdateTaskBadRequest creates a UpdateTaskBadRequest with default headers values

func (*UpdateTaskBadRequest) Error added in v2.14.0

func (o *UpdateTaskBadRequest) Error() string

func (*UpdateTaskBadRequest) GetPayload added in v2.14.0

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

type UpdateTaskInternalServerError added in v2.14.0

type UpdateTaskInternalServerError struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
UpdateTaskInternalServerError describes a response with status code 500, with default header values.

Server error

func NewUpdateTaskInternalServerError added in v2.14.0

func NewUpdateTaskInternalServerError() *UpdateTaskInternalServerError

NewUpdateTaskInternalServerError creates a UpdateTaskInternalServerError with default headers values

func (*UpdateTaskInternalServerError) Error added in v2.14.0

func (*UpdateTaskInternalServerError) GetPayload added in v2.14.0

type UpdateTaskNotFound added in v2.14.0

type UpdateTaskNotFound struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
UpdateTaskNotFound describes a response with status code 404, with default header values.

Not found

func NewUpdateTaskNotFound added in v2.14.0

func NewUpdateTaskNotFound() *UpdateTaskNotFound

NewUpdateTaskNotFound creates a UpdateTaskNotFound with default headers values

func (*UpdateTaskNotFound) Error added in v2.14.0

func (o *UpdateTaskNotFound) Error() string

func (*UpdateTaskNotFound) GetPayload added in v2.14.0

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

type UpdateTaskOK added in v2.14.0

type UpdateTaskOK struct {
	XTowerRequestID string

	Payload []*models.WithTaskTask
}
UpdateTaskOK describes a response with status code 200, with default header values.

UpdateTaskOK update task o k

func NewUpdateTaskOK added in v2.14.0

func NewUpdateTaskOK() *UpdateTaskOK

NewUpdateTaskOK creates a UpdateTaskOK with default headers values

func (*UpdateTaskOK) Error added in v2.14.0

func (o *UpdateTaskOK) Error() string

func (*UpdateTaskOK) GetPayload added in v2.14.0

func (o *UpdateTaskOK) GetPayload() []*models.WithTaskTask

type UpdateTaskParams added in v2.14.0

type UpdateTaskParams struct {

	// ContentLanguage.
	//
	// Default: "en-US"
	ContentLanguage *string

	// RequestBody.
	RequestBody *models.TaskUpdateParams

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

UpdateTaskParams contains all the parameters to send to the API endpoint

for the update task operation.

Typically these are written to a http.Request.

func NewUpdateTaskParams added in v2.14.0

func NewUpdateTaskParams() *UpdateTaskParams

NewUpdateTaskParams creates a new UpdateTaskParams 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 NewUpdateTaskParamsWithContext added in v2.14.0

func NewUpdateTaskParamsWithContext(ctx context.Context) *UpdateTaskParams

NewUpdateTaskParamsWithContext creates a new UpdateTaskParams object with the ability to set a context for a request.

func NewUpdateTaskParamsWithHTTPClient added in v2.14.0

func NewUpdateTaskParamsWithHTTPClient(client *http.Client) *UpdateTaskParams

NewUpdateTaskParamsWithHTTPClient creates a new UpdateTaskParams object with the ability to set a custom HTTPClient for a request.

func NewUpdateTaskParamsWithTimeout added in v2.14.0

func NewUpdateTaskParamsWithTimeout(timeout time.Duration) *UpdateTaskParams

NewUpdateTaskParamsWithTimeout creates a new UpdateTaskParams object with the ability to set a timeout on a request.

func (*UpdateTaskParams) SetContentLanguage added in v2.14.0

func (o *UpdateTaskParams) SetContentLanguage(contentLanguage *string)

SetContentLanguage adds the contentLanguage to the update task params

func (*UpdateTaskParams) SetContext added in v2.14.0

func (o *UpdateTaskParams) SetContext(ctx context.Context)

SetContext adds the context to the update task params

func (*UpdateTaskParams) SetDefaults added in v2.14.0

func (o *UpdateTaskParams) SetDefaults()

SetDefaults hydrates default values in the update task params (not the query body).

All values with no default are reset to their zero value.

func (*UpdateTaskParams) SetHTTPClient added in v2.14.0

func (o *UpdateTaskParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the update task params

func (*UpdateTaskParams) SetRequestBody added in v2.14.0

func (o *UpdateTaskParams) SetRequestBody(requestBody *models.TaskUpdateParams)

SetRequestBody adds the requestBody to the update task params

func (*UpdateTaskParams) SetTimeout added in v2.14.0

func (o *UpdateTaskParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the update task params

func (*UpdateTaskParams) WithContentLanguage added in v2.14.0

func (o *UpdateTaskParams) WithContentLanguage(contentLanguage *string) *UpdateTaskParams

WithContentLanguage adds the contentLanguage to the update task params

func (*UpdateTaskParams) WithContext added in v2.14.0

func (o *UpdateTaskParams) WithContext(ctx context.Context) *UpdateTaskParams

WithContext adds the context to the update task params

func (*UpdateTaskParams) WithDefaults added in v2.14.0

func (o *UpdateTaskParams) WithDefaults() *UpdateTaskParams

WithDefaults hydrates default values in the update task params (not the query body).

All values with no default are reset to their zero value.

func (*UpdateTaskParams) WithHTTPClient added in v2.14.0

func (o *UpdateTaskParams) WithHTTPClient(client *http.Client) *UpdateTaskParams

WithHTTPClient adds the HTTPClient to the update task params

func (*UpdateTaskParams) WithRequestBody added in v2.14.0

func (o *UpdateTaskParams) WithRequestBody(requestBody *models.TaskUpdateParams) *UpdateTaskParams

WithRequestBody adds the requestBody to the update task params

func (*UpdateTaskParams) WithTimeout added in v2.14.0

func (o *UpdateTaskParams) WithTimeout(timeout time.Duration) *UpdateTaskParams

WithTimeout adds the timeout to the update task params

func (*UpdateTaskParams) WriteToRequest added in v2.14.0

func (o *UpdateTaskParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type UpdateTaskReader added in v2.14.0

type UpdateTaskReader struct {
	// contains filtered or unexported fields
}

UpdateTaskReader is a Reader for the UpdateTask structure.

func (*UpdateTaskReader) ReadResponse added in v2.14.0

func (o *UpdateTaskReader) 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