Documentation
¶
Index ¶
- type Client
- func (a *Client) GetTasks(params *GetTasksParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetTasksOK, error)
- func (a *Client) GetTasksBatchid(params *GetTasksBatchidParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetTasksBatchidOK, error)
- func (a *Client) GetTasksInprogress(params *GetTasksInprogressParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetTasksInprogressOK, error)
- func (a *Client) PostTasks(params *PostTasksParams, authInfo runtime.ClientAuthInfoWriter, ...) (*PostTasksOK, error)
- func (a *Client) PostTasksBatchidCancel(params *PostTasksBatchidCancelParams, authInfo runtime.ClientAuthInfoWriter, ...) (*PostTasksBatchidCancelOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type GetTasksBatchidBadRequest
- type GetTasksBatchidForbidden
- type GetTasksBatchidInternalServerError
- type GetTasksBatchidNotFound
- type GetTasksBatchidOK
- type GetTasksBatchidParams
- func NewGetTasksBatchidParams() *GetTasksBatchidParams
- func NewGetTasksBatchidParamsWithContext(ctx context.Context) *GetTasksBatchidParams
- func NewGetTasksBatchidParamsWithHTTPClient(client *http.Client) *GetTasksBatchidParams
- func NewGetTasksBatchidParamsWithTimeout(timeout time.Duration) *GetTasksBatchidParams
- func (o *GetTasksBatchidParams) SetBatchID(batchID string)
- func (o *GetTasksBatchidParams) SetContext(ctx context.Context)
- func (o *GetTasksBatchidParams) SetDefaults()
- func (o *GetTasksBatchidParams) SetHTTPClient(client *http.Client)
- func (o *GetTasksBatchidParams) SetTimeout(timeout time.Duration)
- func (o *GetTasksBatchidParams) WithBatchID(batchID string) *GetTasksBatchidParams
- func (o *GetTasksBatchidParams) WithContext(ctx context.Context) *GetTasksBatchidParams
- func (o *GetTasksBatchidParams) WithDefaults() *GetTasksBatchidParams
- func (o *GetTasksBatchidParams) WithHTTPClient(client *http.Client) *GetTasksBatchidParams
- func (o *GetTasksBatchidParams) WithTimeout(timeout time.Duration) *GetTasksBatchidParams
- func (o *GetTasksBatchidParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetTasksBatchidReader
- type GetTasksBatchidUnauthorized
- type GetTasksForbidden
- type GetTasksInprogressForbidden
- type GetTasksInprogressInternalServerError
- type GetTasksInprogressOK
- type GetTasksInprogressParams
- func NewGetTasksInprogressParams() *GetTasksInprogressParams
- func NewGetTasksInprogressParamsWithContext(ctx context.Context) *GetTasksInprogressParams
- func NewGetTasksInprogressParamsWithHTTPClient(client *http.Client) *GetTasksInprogressParams
- func NewGetTasksInprogressParamsWithTimeout(timeout time.Duration) *GetTasksInprogressParams
- func (o *GetTasksInprogressParams) SetContext(ctx context.Context)
- func (o *GetTasksInprogressParams) SetDefaults()
- func (o *GetTasksInprogressParams) SetHTTPClient(client *http.Client)
- func (o *GetTasksInprogressParams) SetTimeout(timeout time.Duration)
- func (o *GetTasksInprogressParams) WithContext(ctx context.Context) *GetTasksInprogressParams
- func (o *GetTasksInprogressParams) WithDefaults() *GetTasksInprogressParams
- func (o *GetTasksInprogressParams) WithHTTPClient(client *http.Client) *GetTasksInprogressParams
- func (o *GetTasksInprogressParams) WithTimeout(timeout time.Duration) *GetTasksInprogressParams
- func (o *GetTasksInprogressParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetTasksInprogressReader
- type GetTasksInprogressUnauthorized
- type GetTasksInternalServerError
- type GetTasksOK
- type GetTasksParams
- func (o *GetTasksParams) SetContext(ctx context.Context)
- func (o *GetTasksParams) SetCount(count float64)
- func (o *GetTasksParams) SetDefaults()
- func (o *GetTasksParams) SetHTTPClient(client *http.Client)
- func (o *GetTasksParams) SetPage(page float64)
- func (o *GetTasksParams) SetPeriod(period *float64)
- func (o *GetTasksParams) SetStatus(status *string)
- func (o *GetTasksParams) SetTimeout(timeout time.Duration)
- func (o *GetTasksParams) WithContext(ctx context.Context) *GetTasksParams
- func (o *GetTasksParams) WithCount(count float64) *GetTasksParams
- func (o *GetTasksParams) WithDefaults() *GetTasksParams
- func (o *GetTasksParams) WithHTTPClient(client *http.Client) *GetTasksParams
- func (o *GetTasksParams) WithPage(page float64) *GetTasksParams
- func (o *GetTasksParams) WithPeriod(period *float64) *GetTasksParams
- func (o *GetTasksParams) WithStatus(status *string) *GetTasksParams
- func (o *GetTasksParams) WithTimeout(timeout time.Duration) *GetTasksParams
- func (o *GetTasksParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetTasksReader
- type GetTasksUnauthorized
- type PostTasksBadRequest
- type PostTasksBatchidCancelBadRequest
- type PostTasksBatchidCancelForbidden
- type PostTasksBatchidCancelInternalServerError
- type PostTasksBatchidCancelNotFound
- type PostTasksBatchidCancelOK
- type PostTasksBatchidCancelParams
- func NewPostTasksBatchidCancelParams() *PostTasksBatchidCancelParams
- func NewPostTasksBatchidCancelParamsWithContext(ctx context.Context) *PostTasksBatchidCancelParams
- func NewPostTasksBatchidCancelParamsWithHTTPClient(client *http.Client) *PostTasksBatchidCancelParams
- func NewPostTasksBatchidCancelParamsWithTimeout(timeout time.Duration) *PostTasksBatchidCancelParams
- func (o *PostTasksBatchidCancelParams) SetBatchID(batchID string)
- func (o *PostTasksBatchidCancelParams) SetContext(ctx context.Context)
- func (o *PostTasksBatchidCancelParams) SetDefaults()
- func (o *PostTasksBatchidCancelParams) SetHTTPClient(client *http.Client)
- func (o *PostTasksBatchidCancelParams) SetTimeout(timeout time.Duration)
- func (o *PostTasksBatchidCancelParams) WithBatchID(batchID string) *PostTasksBatchidCancelParams
- func (o *PostTasksBatchidCancelParams) WithContext(ctx context.Context) *PostTasksBatchidCancelParams
- func (o *PostTasksBatchidCancelParams) WithDefaults() *PostTasksBatchidCancelParams
- func (o *PostTasksBatchidCancelParams) WithHTTPClient(client *http.Client) *PostTasksBatchidCancelParams
- func (o *PostTasksBatchidCancelParams) WithTimeout(timeout time.Duration) *PostTasksBatchidCancelParams
- func (o *PostTasksBatchidCancelParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PostTasksBatchidCancelReader
- type PostTasksBatchidCancelUnauthorized
- type PostTasksForbidden
- type PostTasksInternalServerError
- type PostTasksNotFound
- type PostTasksOK
- type PostTasksParams
- func (o *PostTasksParams) SetBody(body *models.Model70)
- func (o *PostTasksParams) SetContext(ctx context.Context)
- func (o *PostTasksParams) SetDefaults()
- func (o *PostTasksParams) SetHTTPClient(client *http.Client)
- func (o *PostTasksParams) SetTimeout(timeout time.Duration)
- func (o *PostTasksParams) WithBody(body *models.Model70) *PostTasksParams
- func (o *PostTasksParams) WithContext(ctx context.Context) *PostTasksParams
- func (o *PostTasksParams) WithDefaults() *PostTasksParams
- func (o *PostTasksParams) WithHTTPClient(client *http.Client) *PostTasksParams
- func (o *PostTasksParams) WithTimeout(timeout time.Duration) *PostTasksParams
- func (o *PostTasksParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PostTasksReader
- type PostTasksUnauthorized
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 ¶
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 ¶
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 ¶
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 (o *GetTasksBatchidInternalServerError) Error() string
func (*GetTasksBatchidInternalServerError) GetPayload ¶
func (o *GetTasksBatchidInternalServerError) GetPayload() *models.Error
type GetTasksBatchidNotFound ¶
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 ¶
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 ¶
func (o *GetTasksBatchidParams) WithContext(ctx context.Context) *GetTasksBatchidParams
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 {
}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 (o *GetTasksBatchidUnauthorized) Error() string
func (*GetTasksBatchidUnauthorized) GetPayload ¶
func (o *GetTasksBatchidUnauthorized) GetPayload() *models.Error
type GetTasksForbidden ¶
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 ¶
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 (o *GetTasksInprogressForbidden) Error() string
func (*GetTasksInprogressForbidden) GetPayload ¶
func (o *GetTasksInprogressForbidden) GetPayload() *models.Error
type GetTasksInprogressInternalServerError ¶
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 (o *GetTasksInprogressInternalServerError) Error() string
func (*GetTasksInprogressInternalServerError) GetPayload ¶
func (o *GetTasksInprogressInternalServerError) GetPayload() *models.Error
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 ¶
func (o *GetTasksInprogressParams) WithContext(ctx context.Context) *GetTasksInprogressParams
WithContext adds the context to the get tasks inprogress params
func (*GetTasksInprogressParams) WithDefaults ¶
func (o *GetTasksInprogressParams) WithDefaults() *GetTasksInprogressParams
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 ¶
func (o *GetTasksInprogressParams) WithTimeout(timeout time.Duration) *GetTasksInprogressParams
WithTimeout adds the timeout to the get tasks inprogress params
func (*GetTasksInprogressParams) WriteToRequest ¶
func (o *GetTasksInprogressParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 {
}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 (o *GetTasksInprogressUnauthorized) Error() string
func (*GetTasksInprogressUnauthorized) GetPayload ¶
func (o *GetTasksInprogressUnauthorized) GetPayload() *models.Error
type GetTasksInternalServerError ¶
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 (o *GetTasksInternalServerError) Error() string
func (*GetTasksInternalServerError) GetPayload ¶
func (o *GetTasksInternalServerError) GetPayload() *models.Error
type GetTasksOK ¶
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 {
}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 ¶
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 ¶
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 (o *PostTasksBatchidCancelBadRequest) Error() string
func (*PostTasksBatchidCancelBadRequest) GetPayload ¶
func (o *PostTasksBatchidCancelBadRequest) GetPayload() *models.Error
type PostTasksBatchidCancelForbidden ¶
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 (o *PostTasksBatchidCancelForbidden) Error() string
func (*PostTasksBatchidCancelForbidden) GetPayload ¶
func (o *PostTasksBatchidCancelForbidden) GetPayload() *models.Error
type PostTasksBatchidCancelInternalServerError ¶
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 (o *PostTasksBatchidCancelInternalServerError) Error() string
func (*PostTasksBatchidCancelInternalServerError) GetPayload ¶
func (o *PostTasksBatchidCancelInternalServerError) GetPayload() *models.Error
type PostTasksBatchidCancelNotFound ¶
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 (o *PostTasksBatchidCancelNotFound) Error() string
func (*PostTasksBatchidCancelNotFound) GetPayload ¶
func (o *PostTasksBatchidCancelNotFound) GetPayload() *models.Error
type PostTasksBatchidCancelOK ¶
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 ¶
func (o *PostTasksBatchidCancelParams) WithBatchID(batchID string) *PostTasksBatchidCancelParams
WithBatchID adds the batchID to the post tasks batchid cancel params
func (*PostTasksBatchidCancelParams) WithContext ¶
func (o *PostTasksBatchidCancelParams) WithContext(ctx context.Context) *PostTasksBatchidCancelParams
WithContext adds the context to the post tasks batchid cancel params
func (*PostTasksBatchidCancelParams) WithDefaults ¶
func (o *PostTasksBatchidCancelParams) WithDefaults() *PostTasksBatchidCancelParams
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 ¶
func (o *PostTasksBatchidCancelParams) WithHTTPClient(client *http.Client) *PostTasksBatchidCancelParams
WithHTTPClient adds the HTTPClient to the post tasks batchid cancel params
func (*PostTasksBatchidCancelParams) WithTimeout ¶
func (o *PostTasksBatchidCancelParams) WithTimeout(timeout time.Duration) *PostTasksBatchidCancelParams
WithTimeout adds the timeout to the post tasks batchid cancel params
func (*PostTasksBatchidCancelParams) WriteToRequest ¶
func (o *PostTasksBatchidCancelParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 {
}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 (o *PostTasksBatchidCancelUnauthorized) Error() string
func (*PostTasksBatchidCancelUnauthorized) GetPayload ¶
func (o *PostTasksBatchidCancelUnauthorized) GetPayload() *models.Error
type PostTasksForbidden ¶
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 ¶
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 (o *PostTasksInternalServerError) Error() string
func (*PostTasksInternalServerError) GetPayload ¶
func (o *PostTasksInternalServerError) GetPayload() *models.Error
type PostTasksNotFound ¶
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 ¶
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 {
}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
Source Files
¶
- get_tasks_batchid_parameters.go
- get_tasks_batchid_responses.go
- get_tasks_inprogress_parameters.go
- get_tasks_inprogress_responses.go
- get_tasks_parameters.go
- get_tasks_responses.go
- post_tasks_batchid_cancel_parameters.go
- post_tasks_batchid_cancel_responses.go
- post_tasks_parameters.go
- post_tasks_responses.go
- tasks_client.go