tasks

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2022 License: Apache-2.0 Imports: 11 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 tasks API

func (*Client) GetTasks

func (a *Client) GetTasks(params *GetTasksParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetTasksOK, error)

GetTasks lists all tasks

func (*Client) GetTasksBatchid

func (a *Client) GetTasksBatchid(params *GetTasksBatchidParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetTasksBatchidOK, error)

GetTasksBatchid returns a mass upgrade task inner task items

func (*Client) GetTasksInprogress

func (a *Client) GetTasksInprogress(params *GetTasksInprogressParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetTasksInprogressOK, error)

GetTasksInprogress returns number of tasks in progress state

func (*Client) PostTasks

func (a *Client) PostTasks(params *PostTasksParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostTasksOK, error)

PostTasks starts f w upgrade task for a group of devices

func (*Client) PostTasksBatchidCancel

func (a *Client) PostTasksBatchidCancel(params *PostTasksBatchidCancelParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostTasksBatchidCancelOK, error)

PostTasksBatchidCancel cancels a task

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, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetTasksOK, error)

	GetTasksBatchid(params *GetTasksBatchidParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetTasksBatchidOK, error)

	GetTasksInprogress(params *GetTasksInprogressParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetTasksInprogressOK, error)

	PostTasks(params *PostTasksParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostTasksOK, error)

	PostTasksBatchidCancel(params *PostTasksBatchidCancelParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostTasksBatchidCancelOK, 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 tasks API client.

type GetTasksBatchidBadRequest

type GetTasksBatchidBadRequest struct {
	Payload *models.Error
}
GetTasksBatchidBadRequest describes a response with status code 400, with default header values.

Bad Request

func NewGetTasksBatchidBadRequest

func NewGetTasksBatchidBadRequest() *GetTasksBatchidBadRequest

NewGetTasksBatchidBadRequest creates a GetTasksBatchidBadRequest with default headers values

func (*GetTasksBatchidBadRequest) Error

func (o *GetTasksBatchidBadRequest) Error() string

func (*GetTasksBatchidBadRequest) GetPayload

func (o *GetTasksBatchidBadRequest) GetPayload() *models.Error

type GetTasksBatchidForbidden

type GetTasksBatchidForbidden struct {
	Payload *models.Error
}
GetTasksBatchidForbidden describes a response with status code 403, with default header values.

Forbidden

func NewGetTasksBatchidForbidden

func NewGetTasksBatchidForbidden() *GetTasksBatchidForbidden

NewGetTasksBatchidForbidden creates a GetTasksBatchidForbidden with default headers values

func (*GetTasksBatchidForbidden) Error

func (o *GetTasksBatchidForbidden) Error() string

func (*GetTasksBatchidForbidden) GetPayload

func (o *GetTasksBatchidForbidden) GetPayload() *models.Error

type GetTasksBatchidInternalServerError

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

Internal Server Error

func NewGetTasksBatchidInternalServerError

func NewGetTasksBatchidInternalServerError() *GetTasksBatchidInternalServerError

NewGetTasksBatchidInternalServerError creates a GetTasksBatchidInternalServerError with default headers values

func (*GetTasksBatchidInternalServerError) Error

func (*GetTasksBatchidInternalServerError) GetPayload

type GetTasksBatchidNotFound

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

Not Found

func NewGetTasksBatchidNotFound

func NewGetTasksBatchidNotFound() *GetTasksBatchidNotFound

NewGetTasksBatchidNotFound creates a GetTasksBatchidNotFound with default headers values

func (*GetTasksBatchidNotFound) Error

func (o *GetTasksBatchidNotFound) Error() string

func (*GetTasksBatchidNotFound) GetPayload

func (o *GetTasksBatchidNotFound) GetPayload() *models.Error

type GetTasksBatchidOK

type GetTasksBatchidOK struct {
	Payload *models.Task
}
GetTasksBatchidOK describes a response with status code 200, with default header values.

Successful

func NewGetTasksBatchidOK

func NewGetTasksBatchidOK() *GetTasksBatchidOK

NewGetTasksBatchidOK creates a GetTasksBatchidOK with default headers values

func (*GetTasksBatchidOK) Error

func (o *GetTasksBatchidOK) Error() string

func (*GetTasksBatchidOK) GetPayload

func (o *GetTasksBatchidOK) GetPayload() *models.Task

type GetTasksBatchidParams

type GetTasksBatchidParams struct {

	// BatchID.
	BatchID string

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

GetTasksBatchidParams contains all the parameters to send to the API endpoint

for the get tasks batchid operation.

Typically these are written to a http.Request.

func NewGetTasksBatchidParams

func NewGetTasksBatchidParams() *GetTasksBatchidParams

NewGetTasksBatchidParams creates a new GetTasksBatchidParams 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 NewGetTasksBatchidParamsWithContext

func NewGetTasksBatchidParamsWithContext(ctx context.Context) *GetTasksBatchidParams

NewGetTasksBatchidParamsWithContext creates a new GetTasksBatchidParams object with the ability to set a context for a request.

func NewGetTasksBatchidParamsWithHTTPClient

func NewGetTasksBatchidParamsWithHTTPClient(client *http.Client) *GetTasksBatchidParams

NewGetTasksBatchidParamsWithHTTPClient creates a new GetTasksBatchidParams object with the ability to set a custom HTTPClient for a request.

func NewGetTasksBatchidParamsWithTimeout

func NewGetTasksBatchidParamsWithTimeout(timeout time.Duration) *GetTasksBatchidParams

NewGetTasksBatchidParamsWithTimeout creates a new GetTasksBatchidParams object with the ability to set a timeout on a request.

func (*GetTasksBatchidParams) SetBatchID

func (o *GetTasksBatchidParams) SetBatchID(batchID string)

SetBatchID adds the batchId to the get tasks batchid params

func (*GetTasksBatchidParams) SetContext

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

SetContext adds the context to the get tasks batchid params

func (*GetTasksBatchidParams) SetDefaults

func (o *GetTasksBatchidParams) SetDefaults()

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

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

func (*GetTasksBatchidParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get tasks batchid params

func (*GetTasksBatchidParams) SetTimeout

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

SetTimeout adds the timeout to the get tasks batchid params

func (*GetTasksBatchidParams) WithBatchID

func (o *GetTasksBatchidParams) WithBatchID(batchID string) *GetTasksBatchidParams

WithBatchID adds the batchID to the get tasks batchid params

func (*GetTasksBatchidParams) WithContext

WithContext adds the context to the get tasks batchid params

func (*GetTasksBatchidParams) WithDefaults

func (o *GetTasksBatchidParams) WithDefaults() *GetTasksBatchidParams

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

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

func (*GetTasksBatchidParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get tasks batchid params

func (*GetTasksBatchidParams) WithTimeout

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

WithTimeout adds the timeout to the get tasks batchid params

func (*GetTasksBatchidParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetTasksBatchidReader

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

GetTasksBatchidReader is a Reader for the GetTasksBatchid structure.

func (*GetTasksBatchidReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetTasksBatchidUnauthorized

type GetTasksBatchidUnauthorized struct {
	Payload *models.Error
}
GetTasksBatchidUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewGetTasksBatchidUnauthorized

func NewGetTasksBatchidUnauthorized() *GetTasksBatchidUnauthorized

NewGetTasksBatchidUnauthorized creates a GetTasksBatchidUnauthorized with default headers values

func (*GetTasksBatchidUnauthorized) Error

func (*GetTasksBatchidUnauthorized) GetPayload

func (o *GetTasksBatchidUnauthorized) GetPayload() *models.Error

type GetTasksForbidden

type GetTasksForbidden struct {
	Payload *models.Error
}
GetTasksForbidden describes a response with status code 403, with default header values.

Forbidden

func NewGetTasksForbidden

func NewGetTasksForbidden() *GetTasksForbidden

NewGetTasksForbidden creates a GetTasksForbidden with default headers values

func (*GetTasksForbidden) Error

func (o *GetTasksForbidden) Error() string

func (*GetTasksForbidden) GetPayload

func (o *GetTasksForbidden) GetPayload() *models.Error

type GetTasksInprogressForbidden

type GetTasksInprogressForbidden struct {
	Payload *models.Error
}
GetTasksInprogressForbidden describes a response with status code 403, with default header values.

Forbidden

func NewGetTasksInprogressForbidden

func NewGetTasksInprogressForbidden() *GetTasksInprogressForbidden

NewGetTasksInprogressForbidden creates a GetTasksInprogressForbidden with default headers values

func (*GetTasksInprogressForbidden) Error

func (*GetTasksInprogressForbidden) GetPayload

func (o *GetTasksInprogressForbidden) GetPayload() *models.Error

type GetTasksInprogressInternalServerError

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

Internal Server Error

func NewGetTasksInprogressInternalServerError

func NewGetTasksInprogressInternalServerError() *GetTasksInprogressInternalServerError

NewGetTasksInprogressInternalServerError creates a GetTasksInprogressInternalServerError with default headers values

func (*GetTasksInprogressInternalServerError) Error

func (*GetTasksInprogressInternalServerError) GetPayload

type GetTasksInprogressOK

type GetTasksInprogressOK struct {
	Payload *models.InProgress
}
GetTasksInprogressOK describes a response with status code 200, with default header values.

Successful

func NewGetTasksInprogressOK

func NewGetTasksInprogressOK() *GetTasksInprogressOK

NewGetTasksInprogressOK creates a GetTasksInprogressOK with default headers values

func (*GetTasksInprogressOK) Error

func (o *GetTasksInprogressOK) Error() string

func (*GetTasksInprogressOK) GetPayload

func (o *GetTasksInprogressOK) GetPayload() *models.InProgress

type GetTasksInprogressParams

type GetTasksInprogressParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetTasksInprogressParams contains all the parameters to send to the API endpoint

for the get tasks inprogress operation.

Typically these are written to a http.Request.

func NewGetTasksInprogressParams

func NewGetTasksInprogressParams() *GetTasksInprogressParams

NewGetTasksInprogressParams creates a new GetTasksInprogressParams 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 NewGetTasksInprogressParamsWithContext

func NewGetTasksInprogressParamsWithContext(ctx context.Context) *GetTasksInprogressParams

NewGetTasksInprogressParamsWithContext creates a new GetTasksInprogressParams object with the ability to set a context for a request.

func NewGetTasksInprogressParamsWithHTTPClient

func NewGetTasksInprogressParamsWithHTTPClient(client *http.Client) *GetTasksInprogressParams

NewGetTasksInprogressParamsWithHTTPClient creates a new GetTasksInprogressParams object with the ability to set a custom HTTPClient for a request.

func NewGetTasksInprogressParamsWithTimeout

func NewGetTasksInprogressParamsWithTimeout(timeout time.Duration) *GetTasksInprogressParams

NewGetTasksInprogressParamsWithTimeout creates a new GetTasksInprogressParams object with the ability to set a timeout on a request.

func (*GetTasksInprogressParams) SetContext

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

SetContext adds the context to the get tasks inprogress params

func (*GetTasksInprogressParams) SetDefaults

func (o *GetTasksInprogressParams) SetDefaults()

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

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

func (*GetTasksInprogressParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get tasks inprogress params

func (*GetTasksInprogressParams) SetTimeout

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

SetTimeout adds the timeout to the get tasks inprogress params

func (*GetTasksInprogressParams) WithContext

WithContext adds the context to the get tasks inprogress params

func (*GetTasksInprogressParams) WithDefaults

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

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

func (*GetTasksInprogressParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get tasks inprogress params

func (*GetTasksInprogressParams) WithTimeout

WithTimeout adds the timeout to the get tasks inprogress params

func (*GetTasksInprogressParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetTasksInprogressReader

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

GetTasksInprogressReader is a Reader for the GetTasksInprogress structure.

func (*GetTasksInprogressReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetTasksInprogressUnauthorized

type GetTasksInprogressUnauthorized struct {
	Payload *models.Error
}
GetTasksInprogressUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewGetTasksInprogressUnauthorized

func NewGetTasksInprogressUnauthorized() *GetTasksInprogressUnauthorized

NewGetTasksInprogressUnauthorized creates a GetTasksInprogressUnauthorized with default headers values

func (*GetTasksInprogressUnauthorized) Error

func (*GetTasksInprogressUnauthorized) GetPayload

func (o *GetTasksInprogressUnauthorized) GetPayload() *models.Error

type GetTasksInternalServerError

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

Internal 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.Error

type GetTasksOK

type GetTasksOK struct {
	Payload *models.Task
}
GetTasksOK describes a response with status code 200, with default header values.

Successful

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 {

	// Count.
	Count float64

	// Page.
	Page float64

	// Period.
	Period *float64

	// Status.
	Status *string

	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) SetContext

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

SetContext adds the context to the get tasks params

func (*GetTasksParams) SetCount

func (o *GetTasksParams) SetCount(count float64)

SetCount adds the count 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) SetPage

func (o *GetTasksParams) SetPage(page float64)

SetPage adds the page to the get tasks params

func (*GetTasksParams) SetPeriod

func (o *GetTasksParams) SetPeriod(period *float64)

SetPeriod adds the period to the get tasks params

func (*GetTasksParams) SetStatus

func (o *GetTasksParams) SetStatus(status *string)

SetStatus adds the status 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) WithContext

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

WithContext adds the context to the get tasks params

func (*GetTasksParams) WithCount

func (o *GetTasksParams) WithCount(count float64) *GetTasksParams

WithCount adds the count 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) WithPage

func (o *GetTasksParams) WithPage(page float64) *GetTasksParams

WithPage adds the page to the get tasks params

func (*GetTasksParams) WithPeriod

func (o *GetTasksParams) WithPeriod(period *float64) *GetTasksParams

WithPeriod adds the period to the get tasks params

func (*GetTasksParams) WithStatus

func (o *GetTasksParams) WithStatus(status *string) *GetTasksParams

WithStatus adds the status 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 GetTasksUnauthorized

type GetTasksUnauthorized struct {
	Payload *models.Error
}
GetTasksUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewGetTasksUnauthorized

func NewGetTasksUnauthorized() *GetTasksUnauthorized

NewGetTasksUnauthorized creates a GetTasksUnauthorized with default headers values

func (*GetTasksUnauthorized) Error

func (o *GetTasksUnauthorized) Error() string

func (*GetTasksUnauthorized) GetPayload

func (o *GetTasksUnauthorized) GetPayload() *models.Error

type PostTasksBadRequest

type PostTasksBadRequest struct {
	Payload *models.Error
}
PostTasksBadRequest describes a response with status code 400, with default header values.

Bad Request

func NewPostTasksBadRequest

func NewPostTasksBadRequest() *PostTasksBadRequest

NewPostTasksBadRequest creates a PostTasksBadRequest with default headers values

func (*PostTasksBadRequest) Error

func (o *PostTasksBadRequest) Error() string

func (*PostTasksBadRequest) GetPayload

func (o *PostTasksBadRequest) GetPayload() *models.Error

type PostTasksBatchidCancelBadRequest

type PostTasksBatchidCancelBadRequest struct {
	Payload *models.Error
}
PostTasksBatchidCancelBadRequest describes a response with status code 400, with default header values.

Bad Request

func NewPostTasksBatchidCancelBadRequest

func NewPostTasksBatchidCancelBadRequest() *PostTasksBatchidCancelBadRequest

NewPostTasksBatchidCancelBadRequest creates a PostTasksBatchidCancelBadRequest with default headers values

func (*PostTasksBatchidCancelBadRequest) Error

func (*PostTasksBatchidCancelBadRequest) GetPayload

type PostTasksBatchidCancelForbidden

type PostTasksBatchidCancelForbidden struct {
	Payload *models.Error
}
PostTasksBatchidCancelForbidden describes a response with status code 403, with default header values.

Forbidden

func NewPostTasksBatchidCancelForbidden

func NewPostTasksBatchidCancelForbidden() *PostTasksBatchidCancelForbidden

NewPostTasksBatchidCancelForbidden creates a PostTasksBatchidCancelForbidden with default headers values

func (*PostTasksBatchidCancelForbidden) Error

func (*PostTasksBatchidCancelForbidden) GetPayload

func (o *PostTasksBatchidCancelForbidden) GetPayload() *models.Error

type PostTasksBatchidCancelInternalServerError

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

Internal Server Error

func NewPostTasksBatchidCancelInternalServerError

func NewPostTasksBatchidCancelInternalServerError() *PostTasksBatchidCancelInternalServerError

NewPostTasksBatchidCancelInternalServerError creates a PostTasksBatchidCancelInternalServerError with default headers values

func (*PostTasksBatchidCancelInternalServerError) Error

func (*PostTasksBatchidCancelInternalServerError) GetPayload

type PostTasksBatchidCancelNotFound

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

Not Found

func NewPostTasksBatchidCancelNotFound

func NewPostTasksBatchidCancelNotFound() *PostTasksBatchidCancelNotFound

NewPostTasksBatchidCancelNotFound creates a PostTasksBatchidCancelNotFound with default headers values

func (*PostTasksBatchidCancelNotFound) Error

func (*PostTasksBatchidCancelNotFound) GetPayload

func (o *PostTasksBatchidCancelNotFound) GetPayload() *models.Error

type PostTasksBatchidCancelOK

type PostTasksBatchidCancelOK struct {
	Payload *models.Status
}
PostTasksBatchidCancelOK describes a response with status code 200, with default header values.

Successful

func NewPostTasksBatchidCancelOK

func NewPostTasksBatchidCancelOK() *PostTasksBatchidCancelOK

NewPostTasksBatchidCancelOK creates a PostTasksBatchidCancelOK with default headers values

func (*PostTasksBatchidCancelOK) Error

func (o *PostTasksBatchidCancelOK) Error() string

func (*PostTasksBatchidCancelOK) GetPayload

func (o *PostTasksBatchidCancelOK) GetPayload() *models.Status

type PostTasksBatchidCancelParams

type PostTasksBatchidCancelParams struct {

	// BatchID.
	BatchID string

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

PostTasksBatchidCancelParams contains all the parameters to send to the API endpoint

for the post tasks batchid cancel operation.

Typically these are written to a http.Request.

func NewPostTasksBatchidCancelParams

func NewPostTasksBatchidCancelParams() *PostTasksBatchidCancelParams

NewPostTasksBatchidCancelParams creates a new PostTasksBatchidCancelParams 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 NewPostTasksBatchidCancelParamsWithContext

func NewPostTasksBatchidCancelParamsWithContext(ctx context.Context) *PostTasksBatchidCancelParams

NewPostTasksBatchidCancelParamsWithContext creates a new PostTasksBatchidCancelParams object with the ability to set a context for a request.

func NewPostTasksBatchidCancelParamsWithHTTPClient

func NewPostTasksBatchidCancelParamsWithHTTPClient(client *http.Client) *PostTasksBatchidCancelParams

NewPostTasksBatchidCancelParamsWithHTTPClient creates a new PostTasksBatchidCancelParams object with the ability to set a custom HTTPClient for a request.

func NewPostTasksBatchidCancelParamsWithTimeout

func NewPostTasksBatchidCancelParamsWithTimeout(timeout time.Duration) *PostTasksBatchidCancelParams

NewPostTasksBatchidCancelParamsWithTimeout creates a new PostTasksBatchidCancelParams object with the ability to set a timeout on a request.

func (*PostTasksBatchidCancelParams) SetBatchID

func (o *PostTasksBatchidCancelParams) SetBatchID(batchID string)

SetBatchID adds the batchId to the post tasks batchid cancel params

func (*PostTasksBatchidCancelParams) SetContext

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

SetContext adds the context to the post tasks batchid cancel params

func (*PostTasksBatchidCancelParams) SetDefaults

func (o *PostTasksBatchidCancelParams) SetDefaults()

SetDefaults hydrates default values in the post tasks batchid cancel params (not the query body).

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

func (*PostTasksBatchidCancelParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the post tasks batchid cancel params

func (*PostTasksBatchidCancelParams) SetTimeout

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

SetTimeout adds the timeout to the post tasks batchid cancel params

func (*PostTasksBatchidCancelParams) WithBatchID

WithBatchID adds the batchID to the post tasks batchid cancel params

func (*PostTasksBatchidCancelParams) WithContext

WithContext adds the context to the post tasks batchid cancel params

func (*PostTasksBatchidCancelParams) WithDefaults

WithDefaults hydrates default values in the post tasks batchid cancel params (not the query body).

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

func (*PostTasksBatchidCancelParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the post tasks batchid cancel params

func (*PostTasksBatchidCancelParams) WithTimeout

WithTimeout adds the timeout to the post tasks batchid cancel params

func (*PostTasksBatchidCancelParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PostTasksBatchidCancelReader

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

PostTasksBatchidCancelReader is a Reader for the PostTasksBatchidCancel structure.

func (*PostTasksBatchidCancelReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PostTasksBatchidCancelUnauthorized

type PostTasksBatchidCancelUnauthorized struct {
	Payload *models.Error
}
PostTasksBatchidCancelUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewPostTasksBatchidCancelUnauthorized

func NewPostTasksBatchidCancelUnauthorized() *PostTasksBatchidCancelUnauthorized

NewPostTasksBatchidCancelUnauthorized creates a PostTasksBatchidCancelUnauthorized with default headers values

func (*PostTasksBatchidCancelUnauthorized) Error

func (*PostTasksBatchidCancelUnauthorized) GetPayload

type PostTasksForbidden

type PostTasksForbidden struct {
	Payload *models.Error
}
PostTasksForbidden describes a response with status code 403, with default header values.

Forbidden

func NewPostTasksForbidden

func NewPostTasksForbidden() *PostTasksForbidden

NewPostTasksForbidden creates a PostTasksForbidden with default headers values

func (*PostTasksForbidden) Error

func (o *PostTasksForbidden) Error() string

func (*PostTasksForbidden) GetPayload

func (o *PostTasksForbidden) GetPayload() *models.Error

type PostTasksInternalServerError

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

Internal Server Error

func NewPostTasksInternalServerError

func NewPostTasksInternalServerError() *PostTasksInternalServerError

NewPostTasksInternalServerError creates a PostTasksInternalServerError with default headers values

func (*PostTasksInternalServerError) Error

func (*PostTasksInternalServerError) GetPayload

func (o *PostTasksInternalServerError) GetPayload() *models.Error

type PostTasksNotFound

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

Not Found

func NewPostTasksNotFound

func NewPostTasksNotFound() *PostTasksNotFound

NewPostTasksNotFound creates a PostTasksNotFound with default headers values

func (*PostTasksNotFound) Error

func (o *PostTasksNotFound) Error() string

func (*PostTasksNotFound) GetPayload

func (o *PostTasksNotFound) GetPayload() *models.Error

type PostTasksOK

type PostTasksOK struct {
	Payload *models.Status
}
PostTasksOK describes a response with status code 200, with default header values.

Successful

func NewPostTasksOK

func NewPostTasksOK() *PostTasksOK

NewPostTasksOK creates a PostTasksOK with default headers values

func (*PostTasksOK) Error

func (o *PostTasksOK) Error() string

func (*PostTasksOK) GetPayload

func (o *PostTasksOK) GetPayload() *models.Status

type PostTasksParams

type PostTasksParams struct {

	// Body.
	Body *models.Model70

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

PostTasksParams contains all the parameters to send to the API endpoint

for the post tasks operation.

Typically these are written to a http.Request.

func NewPostTasksParams

func NewPostTasksParams() *PostTasksParams

NewPostTasksParams creates a new PostTasksParams 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 NewPostTasksParamsWithContext

func NewPostTasksParamsWithContext(ctx context.Context) *PostTasksParams

NewPostTasksParamsWithContext creates a new PostTasksParams object with the ability to set a context for a request.

func NewPostTasksParamsWithHTTPClient

func NewPostTasksParamsWithHTTPClient(client *http.Client) *PostTasksParams

NewPostTasksParamsWithHTTPClient creates a new PostTasksParams object with the ability to set a custom HTTPClient for a request.

func NewPostTasksParamsWithTimeout

func NewPostTasksParamsWithTimeout(timeout time.Duration) *PostTasksParams

NewPostTasksParamsWithTimeout creates a new PostTasksParams object with the ability to set a timeout on a request.

func (*PostTasksParams) SetBody

func (o *PostTasksParams) SetBody(body *models.Model70)

SetBody adds the body to the post tasks params

func (*PostTasksParams) SetContext

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

SetContext adds the context to the post tasks params

func (*PostTasksParams) SetDefaults

func (o *PostTasksParams) SetDefaults()

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

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

func (*PostTasksParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the post tasks params

func (*PostTasksParams) SetTimeout

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

SetTimeout adds the timeout to the post tasks params

func (*PostTasksParams) WithBody

func (o *PostTasksParams) WithBody(body *models.Model70) *PostTasksParams

WithBody adds the body to the post tasks params

func (*PostTasksParams) WithContext

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

WithContext adds the context to the post tasks params

func (*PostTasksParams) WithDefaults

func (o *PostTasksParams) WithDefaults() *PostTasksParams

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

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

func (*PostTasksParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the post tasks params

func (*PostTasksParams) WithTimeout

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

WithTimeout adds the timeout to the post tasks params

func (*PostTasksParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type PostTasksReader

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

PostTasksReader is a Reader for the PostTasks structure.

func (*PostTasksReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PostTasksUnauthorized

type PostTasksUnauthorized struct {
	Payload *models.Error
}
PostTasksUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewPostTasksUnauthorized

func NewPostTasksUnauthorized() *PostTasksUnauthorized

NewPostTasksUnauthorized creates a PostTasksUnauthorized with default headers values

func (*PostTasksUnauthorized) Error

func (o *PostTasksUnauthorized) Error() string

func (*PostTasksUnauthorized) GetPayload

func (o *PostTasksUnauthorized) GetPayload() *models.Error

Jump to

Keyboard shortcuts

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