Documentation ¶
Index ¶
- type Client
- func (a *Client) PcloudTasksDelete(params *PcloudTasksDeleteParams, authInfo runtime.ClientAuthInfoWriter, ...) (*PcloudTasksDeleteOK, error)
- func (a *Client) PcloudTasksGet(params *PcloudTasksGetParams, authInfo runtime.ClientAuthInfoWriter, ...) (*PcloudTasksGetOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type PcloudTasksDeleteBadRequest
- type PcloudTasksDeleteGone
- type PcloudTasksDeleteInternalServerError
- type PcloudTasksDeleteNotFound
- type PcloudTasksDeleteOK
- type PcloudTasksDeleteParams
- func NewPcloudTasksDeleteParams() *PcloudTasksDeleteParams
- func NewPcloudTasksDeleteParamsWithContext(ctx context.Context) *PcloudTasksDeleteParams
- func NewPcloudTasksDeleteParamsWithHTTPClient(client *http.Client) *PcloudTasksDeleteParams
- func NewPcloudTasksDeleteParamsWithTimeout(timeout time.Duration) *PcloudTasksDeleteParams
- func (o *PcloudTasksDeleteParams) SetContext(ctx context.Context)
- func (o *PcloudTasksDeleteParams) SetDefaults()
- func (o *PcloudTasksDeleteParams) SetHTTPClient(client *http.Client)
- func (o *PcloudTasksDeleteParams) SetTaskID(taskID string)
- func (o *PcloudTasksDeleteParams) SetTimeout(timeout time.Duration)
- func (o *PcloudTasksDeleteParams) WithContext(ctx context.Context) *PcloudTasksDeleteParams
- func (o *PcloudTasksDeleteParams) WithDefaults() *PcloudTasksDeleteParams
- func (o *PcloudTasksDeleteParams) WithHTTPClient(client *http.Client) *PcloudTasksDeleteParams
- func (o *PcloudTasksDeleteParams) WithTaskID(taskID string) *PcloudTasksDeleteParams
- func (o *PcloudTasksDeleteParams) WithTimeout(timeout time.Duration) *PcloudTasksDeleteParams
- func (o *PcloudTasksDeleteParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PcloudTasksDeleteReader
- type PcloudTasksDeleteUnauthorized
- type PcloudTasksGetBadRequest
- type PcloudTasksGetInternalServerError
- type PcloudTasksGetNotFound
- type PcloudTasksGetOK
- type PcloudTasksGetParams
- func NewPcloudTasksGetParams() *PcloudTasksGetParams
- func NewPcloudTasksGetParamsWithContext(ctx context.Context) *PcloudTasksGetParams
- func NewPcloudTasksGetParamsWithHTTPClient(client *http.Client) *PcloudTasksGetParams
- func NewPcloudTasksGetParamsWithTimeout(timeout time.Duration) *PcloudTasksGetParams
- func (o *PcloudTasksGetParams) SetContext(ctx context.Context)
- func (o *PcloudTasksGetParams) SetDefaults()
- func (o *PcloudTasksGetParams) SetHTTPClient(client *http.Client)
- func (o *PcloudTasksGetParams) SetTaskID(taskID string)
- func (o *PcloudTasksGetParams) SetTimeout(timeout time.Duration)
- func (o *PcloudTasksGetParams) WithContext(ctx context.Context) *PcloudTasksGetParams
- func (o *PcloudTasksGetParams) WithDefaults() *PcloudTasksGetParams
- func (o *PcloudTasksGetParams) WithHTTPClient(client *http.Client) *PcloudTasksGetParams
- func (o *PcloudTasksGetParams) WithTaskID(taskID string) *PcloudTasksGetParams
- func (o *PcloudTasksGetParams) WithTimeout(timeout time.Duration) *PcloudTasksGetParams
- func (o *PcloudTasksGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PcloudTasksGetReader
- type PcloudTasksGetUnauthorized
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 p cloud tasks API
func (*Client) PcloudTasksDelete ¶
func (a *Client) PcloudTasksDelete(params *PcloudTasksDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PcloudTasksDeleteOK, error)
PcloudTasksDelete deletes a task
func (*Client) PcloudTasksGet ¶
func (a *Client) PcloudTasksGet(params *PcloudTasksGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PcloudTasksGetOK, error)
PcloudTasksGet gets a task
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientOption ¶ added in v1.1.0
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶ added in v1.1.0
type ClientService interface { PcloudTasksDelete(params *PcloudTasksDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PcloudTasksDeleteOK, error) PcloudTasksGet(params *PcloudTasksGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PcloudTasksGetOK, 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 p cloud tasks API client.
type PcloudTasksDeleteBadRequest ¶
PcloudTasksDeleteBadRequest describes a response with status code 400, with default header values.
Bad Request
func NewPcloudTasksDeleteBadRequest ¶
func NewPcloudTasksDeleteBadRequest() *PcloudTasksDeleteBadRequest
NewPcloudTasksDeleteBadRequest creates a PcloudTasksDeleteBadRequest with default headers values
func (*PcloudTasksDeleteBadRequest) Error ¶
func (o *PcloudTasksDeleteBadRequest) Error() string
func (*PcloudTasksDeleteBadRequest) GetPayload ¶ added in v1.1.0
func (o *PcloudTasksDeleteBadRequest) GetPayload() *models.Error
type PcloudTasksDeleteGone ¶
PcloudTasksDeleteGone describes a response with status code 410, with default header values.
Gone
func NewPcloudTasksDeleteGone ¶
func NewPcloudTasksDeleteGone() *PcloudTasksDeleteGone
NewPcloudTasksDeleteGone creates a PcloudTasksDeleteGone with default headers values
func (*PcloudTasksDeleteGone) Error ¶
func (o *PcloudTasksDeleteGone) Error() string
func (*PcloudTasksDeleteGone) GetPayload ¶ added in v1.1.0
func (o *PcloudTasksDeleteGone) GetPayload() *models.Error
type PcloudTasksDeleteInternalServerError ¶
PcloudTasksDeleteInternalServerError describes a response with status code 500, with default header values.
Internal Server Error
func NewPcloudTasksDeleteInternalServerError ¶
func NewPcloudTasksDeleteInternalServerError() *PcloudTasksDeleteInternalServerError
NewPcloudTasksDeleteInternalServerError creates a PcloudTasksDeleteInternalServerError with default headers values
func (*PcloudTasksDeleteInternalServerError) Error ¶
func (o *PcloudTasksDeleteInternalServerError) Error() string
func (*PcloudTasksDeleteInternalServerError) GetPayload ¶ added in v1.1.0
func (o *PcloudTasksDeleteInternalServerError) GetPayload() *models.Error
type PcloudTasksDeleteNotFound ¶ added in v1.0.59
PcloudTasksDeleteNotFound describes a response with status code 404, with default header values.
Not Found
func NewPcloudTasksDeleteNotFound ¶ added in v1.0.59
func NewPcloudTasksDeleteNotFound() *PcloudTasksDeleteNotFound
NewPcloudTasksDeleteNotFound creates a PcloudTasksDeleteNotFound with default headers values
func (*PcloudTasksDeleteNotFound) Error ¶ added in v1.0.59
func (o *PcloudTasksDeleteNotFound) Error() string
func (*PcloudTasksDeleteNotFound) GetPayload ¶ added in v1.1.0
func (o *PcloudTasksDeleteNotFound) GetPayload() *models.Error
type PcloudTasksDeleteOK ¶
PcloudTasksDeleteOK describes a response with status code 200, with default header values.
OK
func NewPcloudTasksDeleteOK ¶
func NewPcloudTasksDeleteOK() *PcloudTasksDeleteOK
NewPcloudTasksDeleteOK creates a PcloudTasksDeleteOK with default headers values
func (*PcloudTasksDeleteOK) Error ¶
func (o *PcloudTasksDeleteOK) Error() string
func (*PcloudTasksDeleteOK) GetPayload ¶ added in v1.1.0
func (o *PcloudTasksDeleteOK) GetPayload() models.Object
type PcloudTasksDeleteParams ¶
type PcloudTasksDeleteParams struct { /* TaskID. PCloud Task ID */ TaskID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
PcloudTasksDeleteParams contains all the parameters to send to the API endpoint
for the pcloud tasks delete operation. Typically these are written to a http.Request.
func NewPcloudTasksDeleteParams ¶
func NewPcloudTasksDeleteParams() *PcloudTasksDeleteParams
NewPcloudTasksDeleteParams creates a new PcloudTasksDeleteParams 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 NewPcloudTasksDeleteParamsWithContext ¶
func NewPcloudTasksDeleteParamsWithContext(ctx context.Context) *PcloudTasksDeleteParams
NewPcloudTasksDeleteParamsWithContext creates a new PcloudTasksDeleteParams object with the ability to set a context for a request.
func NewPcloudTasksDeleteParamsWithHTTPClient ¶
func NewPcloudTasksDeleteParamsWithHTTPClient(client *http.Client) *PcloudTasksDeleteParams
NewPcloudTasksDeleteParamsWithHTTPClient creates a new PcloudTasksDeleteParams object with the ability to set a custom HTTPClient for a request.
func NewPcloudTasksDeleteParamsWithTimeout ¶
func NewPcloudTasksDeleteParamsWithTimeout(timeout time.Duration) *PcloudTasksDeleteParams
NewPcloudTasksDeleteParamsWithTimeout creates a new PcloudTasksDeleteParams object with the ability to set a timeout on a request.
func (*PcloudTasksDeleteParams) SetContext ¶
func (o *PcloudTasksDeleteParams) SetContext(ctx context.Context)
SetContext adds the context to the pcloud tasks delete params
func (*PcloudTasksDeleteParams) SetDefaults ¶ added in v1.1.0
func (o *PcloudTasksDeleteParams) SetDefaults()
SetDefaults hydrates default values in the pcloud tasks delete params (not the query body).
All values with no default are reset to their zero value.
func (*PcloudTasksDeleteParams) SetHTTPClient ¶
func (o *PcloudTasksDeleteParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the pcloud tasks delete params
func (*PcloudTasksDeleteParams) SetTaskID ¶
func (o *PcloudTasksDeleteParams) SetTaskID(taskID string)
SetTaskID adds the taskId to the pcloud tasks delete params
func (*PcloudTasksDeleteParams) SetTimeout ¶
func (o *PcloudTasksDeleteParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the pcloud tasks delete params
func (*PcloudTasksDeleteParams) WithContext ¶
func (o *PcloudTasksDeleteParams) WithContext(ctx context.Context) *PcloudTasksDeleteParams
WithContext adds the context to the pcloud tasks delete params
func (*PcloudTasksDeleteParams) WithDefaults ¶ added in v1.1.0
func (o *PcloudTasksDeleteParams) WithDefaults() *PcloudTasksDeleteParams
WithDefaults hydrates default values in the pcloud tasks delete params (not the query body).
All values with no default are reset to their zero value.
func (*PcloudTasksDeleteParams) WithHTTPClient ¶
func (o *PcloudTasksDeleteParams) WithHTTPClient(client *http.Client) *PcloudTasksDeleteParams
WithHTTPClient adds the HTTPClient to the pcloud tasks delete params
func (*PcloudTasksDeleteParams) WithTaskID ¶
func (o *PcloudTasksDeleteParams) WithTaskID(taskID string) *PcloudTasksDeleteParams
WithTaskID adds the taskID to the pcloud tasks delete params
func (*PcloudTasksDeleteParams) WithTimeout ¶
func (o *PcloudTasksDeleteParams) WithTimeout(timeout time.Duration) *PcloudTasksDeleteParams
WithTimeout adds the timeout to the pcloud tasks delete params
func (*PcloudTasksDeleteParams) WriteToRequest ¶
func (o *PcloudTasksDeleteParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type PcloudTasksDeleteReader ¶
type PcloudTasksDeleteReader struct {
// contains filtered or unexported fields
}
PcloudTasksDeleteReader is a Reader for the PcloudTasksDelete structure.
func (*PcloudTasksDeleteReader) ReadResponse ¶
func (o *PcloudTasksDeleteReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type PcloudTasksDeleteUnauthorized ¶ added in v1.0.59
type PcloudTasksDeleteUnauthorized struct {
}PcloudTasksDeleteUnauthorized describes a response with status code 401, with default header values.
Unauthorized
func NewPcloudTasksDeleteUnauthorized ¶ added in v1.0.59
func NewPcloudTasksDeleteUnauthorized() *PcloudTasksDeleteUnauthorized
NewPcloudTasksDeleteUnauthorized creates a PcloudTasksDeleteUnauthorized with default headers values
func (*PcloudTasksDeleteUnauthorized) Error ¶ added in v1.0.59
func (o *PcloudTasksDeleteUnauthorized) Error() string
func (*PcloudTasksDeleteUnauthorized) GetPayload ¶ added in v1.1.0
func (o *PcloudTasksDeleteUnauthorized) GetPayload() *models.Error
type PcloudTasksGetBadRequest ¶
PcloudTasksGetBadRequest describes a response with status code 400, with default header values.
Bad Request
func NewPcloudTasksGetBadRequest ¶
func NewPcloudTasksGetBadRequest() *PcloudTasksGetBadRequest
NewPcloudTasksGetBadRequest creates a PcloudTasksGetBadRequest with default headers values
func (*PcloudTasksGetBadRequest) Error ¶
func (o *PcloudTasksGetBadRequest) Error() string
func (*PcloudTasksGetBadRequest) GetPayload ¶ added in v1.1.0
func (o *PcloudTasksGetBadRequest) GetPayload() *models.Error
type PcloudTasksGetInternalServerError ¶
PcloudTasksGetInternalServerError describes a response with status code 500, with default header values.
Internal Server Error
func NewPcloudTasksGetInternalServerError ¶
func NewPcloudTasksGetInternalServerError() *PcloudTasksGetInternalServerError
NewPcloudTasksGetInternalServerError creates a PcloudTasksGetInternalServerError with default headers values
func (*PcloudTasksGetInternalServerError) Error ¶
func (o *PcloudTasksGetInternalServerError) Error() string
func (*PcloudTasksGetInternalServerError) GetPayload ¶ added in v1.1.0
func (o *PcloudTasksGetInternalServerError) GetPayload() *models.Error
type PcloudTasksGetNotFound ¶
PcloudTasksGetNotFound describes a response with status code 404, with default header values.
Not Found
func NewPcloudTasksGetNotFound ¶
func NewPcloudTasksGetNotFound() *PcloudTasksGetNotFound
NewPcloudTasksGetNotFound creates a PcloudTasksGetNotFound with default headers values
func (*PcloudTasksGetNotFound) Error ¶
func (o *PcloudTasksGetNotFound) Error() string
func (*PcloudTasksGetNotFound) GetPayload ¶ added in v1.1.0
func (o *PcloudTasksGetNotFound) GetPayload() *models.Error
type PcloudTasksGetOK ¶
PcloudTasksGetOK describes a response with status code 200, with default header values.
OK
func NewPcloudTasksGetOK ¶
func NewPcloudTasksGetOK() *PcloudTasksGetOK
NewPcloudTasksGetOK creates a PcloudTasksGetOK with default headers values
func (*PcloudTasksGetOK) Error ¶
func (o *PcloudTasksGetOK) Error() string
func (*PcloudTasksGetOK) GetPayload ¶ added in v1.1.0
func (o *PcloudTasksGetOK) GetPayload() *models.Task
type PcloudTasksGetParams ¶
type PcloudTasksGetParams struct { /* TaskID. PCloud Task ID */ TaskID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
PcloudTasksGetParams contains all the parameters to send to the API endpoint
for the pcloud tasks get operation. Typically these are written to a http.Request.
func NewPcloudTasksGetParams ¶
func NewPcloudTasksGetParams() *PcloudTasksGetParams
NewPcloudTasksGetParams creates a new PcloudTasksGetParams 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 NewPcloudTasksGetParamsWithContext ¶
func NewPcloudTasksGetParamsWithContext(ctx context.Context) *PcloudTasksGetParams
NewPcloudTasksGetParamsWithContext creates a new PcloudTasksGetParams object with the ability to set a context for a request.
func NewPcloudTasksGetParamsWithHTTPClient ¶
func NewPcloudTasksGetParamsWithHTTPClient(client *http.Client) *PcloudTasksGetParams
NewPcloudTasksGetParamsWithHTTPClient creates a new PcloudTasksGetParams object with the ability to set a custom HTTPClient for a request.
func NewPcloudTasksGetParamsWithTimeout ¶
func NewPcloudTasksGetParamsWithTimeout(timeout time.Duration) *PcloudTasksGetParams
NewPcloudTasksGetParamsWithTimeout creates a new PcloudTasksGetParams object with the ability to set a timeout on a request.
func (*PcloudTasksGetParams) SetContext ¶
func (o *PcloudTasksGetParams) SetContext(ctx context.Context)
SetContext adds the context to the pcloud tasks get params
func (*PcloudTasksGetParams) SetDefaults ¶ added in v1.1.0
func (o *PcloudTasksGetParams) SetDefaults()
SetDefaults hydrates default values in the pcloud tasks get params (not the query body).
All values with no default are reset to their zero value.
func (*PcloudTasksGetParams) SetHTTPClient ¶
func (o *PcloudTasksGetParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the pcloud tasks get params
func (*PcloudTasksGetParams) SetTaskID ¶
func (o *PcloudTasksGetParams) SetTaskID(taskID string)
SetTaskID adds the taskId to the pcloud tasks get params
func (*PcloudTasksGetParams) SetTimeout ¶
func (o *PcloudTasksGetParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the pcloud tasks get params
func (*PcloudTasksGetParams) WithContext ¶
func (o *PcloudTasksGetParams) WithContext(ctx context.Context) *PcloudTasksGetParams
WithContext adds the context to the pcloud tasks get params
func (*PcloudTasksGetParams) WithDefaults ¶ added in v1.1.0
func (o *PcloudTasksGetParams) WithDefaults() *PcloudTasksGetParams
WithDefaults hydrates default values in the pcloud tasks get params (not the query body).
All values with no default are reset to their zero value.
func (*PcloudTasksGetParams) WithHTTPClient ¶
func (o *PcloudTasksGetParams) WithHTTPClient(client *http.Client) *PcloudTasksGetParams
WithHTTPClient adds the HTTPClient to the pcloud tasks get params
func (*PcloudTasksGetParams) WithTaskID ¶
func (o *PcloudTasksGetParams) WithTaskID(taskID string) *PcloudTasksGetParams
WithTaskID adds the taskID to the pcloud tasks get params
func (*PcloudTasksGetParams) WithTimeout ¶
func (o *PcloudTasksGetParams) WithTimeout(timeout time.Duration) *PcloudTasksGetParams
WithTimeout adds the timeout to the pcloud tasks get params
func (*PcloudTasksGetParams) WriteToRequest ¶
func (o *PcloudTasksGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type PcloudTasksGetReader ¶
type PcloudTasksGetReader struct {
// contains filtered or unexported fields
}
PcloudTasksGetReader is a Reader for the PcloudTasksGet structure.
func (*PcloudTasksGetReader) ReadResponse ¶
func (o *PcloudTasksGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type PcloudTasksGetUnauthorized ¶ added in v1.0.59
type PcloudTasksGetUnauthorized struct {
}PcloudTasksGetUnauthorized describes a response with status code 401, with default header values.
Unauthorized
func NewPcloudTasksGetUnauthorized ¶ added in v1.0.59
func NewPcloudTasksGetUnauthorized() *PcloudTasksGetUnauthorized
NewPcloudTasksGetUnauthorized creates a PcloudTasksGetUnauthorized with default headers values
func (*PcloudTasksGetUnauthorized) Error ¶ added in v1.0.59
func (o *PcloudTasksGetUnauthorized) Error() string
func (*PcloudTasksGetUnauthorized) GetPayload ¶ added in v1.1.0
func (o *PcloudTasksGetUnauthorized) GetPayload() *models.Error