task

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2023 License: Apache-2.0 Imports: 8 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) TaskDelete

func (a *Client) TaskDelete(params TaskDeleteParams) (*TaskDeleteNoContent, error)

TaskDelete task delete API

func (*Client) TaskGet

func (a *Client) TaskGet(params TaskGetParams) (*TaskGetOK, error)

TaskGet task get API

func (*Client) TaskGetByStatus

func (a *Client) TaskGetByStatus(params TaskGetByStatusParams) (*TaskGetByStatusOK, error)

TaskGetByStatus task get by status API

func (*Client) TaskPost

func (a *Client) TaskPost(params TaskPostParams) (*TaskPostCreated, error)

TaskPost task post API

type ClientService

type ClientService interface {
	TaskDelete(params TaskDeleteParams) (*TaskDeleteNoContent, error)

	TaskGet(params TaskGetParams) (*TaskGetOK, error)

	TaskGetByStatus(params TaskGetByStatusParams) (*TaskGetByStatusOK, error)

	TaskPost(params TaskPostParams) (*TaskPostCreated, error)
}

ClientService is the interface for Client methods

func New

func New(c ecclient.APIClient, baseAPIURL string) ClientService

New creates a new task API client.

type RequestParameters

type RequestParameters struct {
	QueryParams map[string]string
	PathParams  map[string]string
	Body        interface{}
}

func NewRequestParameters

func NewRequestParameters() *RequestParameters

func WriteToRequestTaskDeleteParams

func WriteToRequestTaskDeleteParams(o TaskDeleteParams) (RequestParameters, error)

WriteToRequest extracts parameters and sets for the request to be consumed

func WriteToRequestTaskGetByStatusParams

func WriteToRequestTaskGetByStatusParams(o TaskGetByStatusParams) (RequestParameters, error)

WriteToRequest extracts parameters and sets for the request to be consumed

func WriteToRequestTaskGetParams

func WriteToRequestTaskGetParams(o TaskGetParams) (RequestParameters, error)

WriteToRequest extracts parameters and sets for the request to be consumed

func WriteToRequestTaskPostParams

func WriteToRequestTaskPostParams(o TaskPostParams) (RequestParameters, error)

WriteToRequest extracts parameters and sets for the request to be consumed

type TaskDeleteBadRequest

type TaskDeleteBadRequest struct {
	models.HyperionErrorReponse
}
TaskDeleteBadRequest describes a response with status code 400, with default header values.

Bad Request

func NewTaskDeleteBadRequest

func NewTaskDeleteBadRequest() *TaskDeleteBadRequest

NewTaskDeleteBadRequest creates a TaskDeleteBadRequest with default headers values

type TaskDeleteNoContent

type TaskDeleteNoContent struct {
}
TaskDeleteNoContent describes a response with status code 204, with default header values.

Success

func NewTaskDeleteNoContent

func NewTaskDeleteNoContent() *TaskDeleteNoContent

NewTaskDeleteNoContent creates a TaskDeleteNoContent with default headers values

type TaskDeleteParams

type TaskDeleteParams struct {

	// ID.
	//
	// Format: int64
	ID int64

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

TaskDeleteParams contains all the parameters to send to the API endpoint for the task delete operation. Typically these are written to a http.Request.

func NewTaskDeleteParams

func NewTaskDeleteParams() TaskDeleteParams

NewTaskDeleteParams creates a new TaskDeleteParams 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 (*TaskDeleteParams) SetDefaults

func (o *TaskDeleteParams) SetDefaults()

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

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

func (*TaskDeleteParams) WithDefaults

func (o *TaskDeleteParams) WithDefaults() *TaskDeleteParams

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

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

type TaskGetBadRequest

type TaskGetBadRequest struct {
	models.HyperionErrorReponse
}
TaskGetBadRequest describes a response with status code 400, with default header values.

Bad Request

func NewTaskGetBadRequest

func NewTaskGetBadRequest() *TaskGetBadRequest

NewTaskGetBadRequest creates a TaskGetBadRequest with default headers values

type TaskGetByStatusBadRequest

type TaskGetByStatusBadRequest struct {
	models.HyperionErrorReponse
}
TaskGetByStatusBadRequest describes a response with status code 400, with default header values.

Bad Request

func NewTaskGetByStatusBadRequest

func NewTaskGetByStatusBadRequest() *TaskGetByStatusBadRequest

NewTaskGetByStatusBadRequest creates a TaskGetByStatusBadRequest with default headers values

type TaskGetByStatusNotFound

type TaskGetByStatusNotFound struct {
	models.HyperionErrorReponse
}
TaskGetByStatusNotFound describes a response with status code 404, with default header values.

Not Found

func NewTaskGetByStatusNotFound

func NewTaskGetByStatusNotFound() *TaskGetByStatusNotFound

NewTaskGetByStatusNotFound creates a TaskGetByStatusNotFound with default headers values

type TaskGetByStatusOK

type TaskGetByStatusOK struct {
	models.HyperionCollectionTaskItem
}
TaskGetByStatusOK describes a response with status code 200, with default header values.

Success

func NewTaskGetByStatusOK

func NewTaskGetByStatusOK() *TaskGetByStatusOK

NewTaskGetByStatusOK creates a TaskGetByStatusOK with default headers values

type TaskGetByStatusParams

type TaskGetByStatusParams struct {

	// Status.
	Status *string

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

TaskGetByStatusParams contains all the parameters to send to the API endpoint for the task get by status operation. Typically these are written to a http.Request.

func NewTaskGetByStatusParams

func NewTaskGetByStatusParams() TaskGetByStatusParams

NewTaskGetByStatusParams creates a new TaskGetByStatusParams 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 (*TaskGetByStatusParams) SetDefaults

func (o *TaskGetByStatusParams) SetDefaults()

SetDefaults hydrates default values in the task get by status params (not the query body).

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

func (*TaskGetByStatusParams) WithDefaults

func (o *TaskGetByStatusParams) WithDefaults() *TaskGetByStatusParams

WithDefaults hydrates default values in the task get by status params (not the query body).

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

type TaskGetNotFound

type TaskGetNotFound struct {
	models.HyperionErrorReponse
}
TaskGetNotFound describes a response with status code 404, with default header values.

Not Found

func NewTaskGetNotFound

func NewTaskGetNotFound() *TaskGetNotFound

NewTaskGetNotFound creates a TaskGetNotFound with default headers values

type TaskGetOK

type TaskGetOK struct {
	models.TaskItem
}
TaskGetOK describes a response with status code 200, with default header values.

Success

func NewTaskGetOK

func NewTaskGetOK() *TaskGetOK

NewTaskGetOK creates a TaskGetOK with default headers values

type TaskGetParams

type TaskGetParams struct {

	// ID.
	//
	// Format: int64
	ID int64

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

TaskGetParams contains all the parameters to send to the API endpoint for the task get operation. Typically these are written to a http.Request.

func NewTaskGetParams

func NewTaskGetParams() TaskGetParams

NewTaskGetParams creates a new TaskGetParams 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 (*TaskGetParams) SetDefaults

func (o *TaskGetParams) SetDefaults()

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

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

func (*TaskGetParams) WithDefaults

func (o *TaskGetParams) WithDefaults() *TaskGetParams

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

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

type TaskPostBadRequest

type TaskPostBadRequest struct {
	models.HyperionErrorReponse
}
TaskPostBadRequest describes a response with status code 400, with default header values.

Bad Request

func NewTaskPostBadRequest

func NewTaskPostBadRequest() *TaskPostBadRequest

NewTaskPostBadRequest creates a TaskPostBadRequest with default headers values

type TaskPostCreated

type TaskPostCreated struct {
	models.TaskItem
}
TaskPostCreated describes a response with status code 201, with default header values.

Success

func NewTaskPostCreated

func NewTaskPostCreated() *TaskPostCreated

NewTaskPostCreated creates a TaskPostCreated with default headers values

type TaskPostParams

type TaskPostParams struct {

	// Task.
	Task *models.TaskCreate

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

TaskPostParams contains all the parameters to send to the API endpoint for the task post operation. Typically these are written to a http.Request.

func NewTaskPostParams

func NewTaskPostParams() TaskPostParams

NewTaskPostParams creates a new TaskPostParams 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 (*TaskPostParams) SetDefaults

func (o *TaskPostParams) SetDefaults()

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

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

func (*TaskPostParams) WithDefaults

func (o *TaskPostParams) WithDefaults() *TaskPostParams

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

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

Jump to

Keyboard shortcuts

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