p_cloud_tasks

package
v0.0.0-...-32f6bd3 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2023 License: Apache-2.0 Imports: 10 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 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

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

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

type PcloudTasksDeleteBadRequest struct {
	Payload *models.Error
}

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

func (o *PcloudTasksDeleteBadRequest) Code() int

Code gets the status code for the pcloud tasks delete bad request response

func (*PcloudTasksDeleteBadRequest) Error

func (*PcloudTasksDeleteBadRequest) GetPayload

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

func (*PcloudTasksDeleteBadRequest) IsClientError

func (o *PcloudTasksDeleteBadRequest) IsClientError() bool

IsClientError returns true when this pcloud tasks delete bad request response has a 4xx status code

func (*PcloudTasksDeleteBadRequest) IsCode

func (o *PcloudTasksDeleteBadRequest) IsCode(code int) bool

IsCode returns true when this pcloud tasks delete bad request response a status code equal to that given

func (*PcloudTasksDeleteBadRequest) IsRedirect

func (o *PcloudTasksDeleteBadRequest) IsRedirect() bool

IsRedirect returns true when this pcloud tasks delete bad request response has a 3xx status code

func (*PcloudTasksDeleteBadRequest) IsServerError

func (o *PcloudTasksDeleteBadRequest) IsServerError() bool

IsServerError returns true when this pcloud tasks delete bad request response has a 5xx status code

func (*PcloudTasksDeleteBadRequest) IsSuccess

func (o *PcloudTasksDeleteBadRequest) IsSuccess() bool

IsSuccess returns true when this pcloud tasks delete bad request response has a 2xx status code

func (*PcloudTasksDeleteBadRequest) String

func (o *PcloudTasksDeleteBadRequest) String() string

type PcloudTasksDeleteForbidden

type PcloudTasksDeleteForbidden struct {
	Payload *models.Error
}

PcloudTasksDeleteForbidden describes a response with status code 403, with default header values.

Forbidden

func NewPcloudTasksDeleteForbidden

func NewPcloudTasksDeleteForbidden() *PcloudTasksDeleteForbidden

NewPcloudTasksDeleteForbidden creates a PcloudTasksDeleteForbidden with default headers values

func (*PcloudTasksDeleteForbidden) Code

func (o *PcloudTasksDeleteForbidden) Code() int

Code gets the status code for the pcloud tasks delete forbidden response

func (*PcloudTasksDeleteForbidden) Error

func (*PcloudTasksDeleteForbidden) GetPayload

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

func (*PcloudTasksDeleteForbidden) IsClientError

func (o *PcloudTasksDeleteForbidden) IsClientError() bool

IsClientError returns true when this pcloud tasks delete forbidden response has a 4xx status code

func (*PcloudTasksDeleteForbidden) IsCode

func (o *PcloudTasksDeleteForbidden) IsCode(code int) bool

IsCode returns true when this pcloud tasks delete forbidden response a status code equal to that given

func (*PcloudTasksDeleteForbidden) IsRedirect

func (o *PcloudTasksDeleteForbidden) IsRedirect() bool

IsRedirect returns true when this pcloud tasks delete forbidden response has a 3xx status code

func (*PcloudTasksDeleteForbidden) IsServerError

func (o *PcloudTasksDeleteForbidden) IsServerError() bool

IsServerError returns true when this pcloud tasks delete forbidden response has a 5xx status code

func (*PcloudTasksDeleteForbidden) IsSuccess

func (o *PcloudTasksDeleteForbidden) IsSuccess() bool

IsSuccess returns true when this pcloud tasks delete forbidden response has a 2xx status code

func (*PcloudTasksDeleteForbidden) String

func (o *PcloudTasksDeleteForbidden) String() string

type PcloudTasksDeleteGone

type PcloudTasksDeleteGone struct {
	Payload *models.Error
}

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

func (o *PcloudTasksDeleteGone) Code() int

Code gets the status code for the pcloud tasks delete gone response

func (*PcloudTasksDeleteGone) Error

func (o *PcloudTasksDeleteGone) Error() string

func (*PcloudTasksDeleteGone) GetPayload

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

func (*PcloudTasksDeleteGone) IsClientError

func (o *PcloudTasksDeleteGone) IsClientError() bool

IsClientError returns true when this pcloud tasks delete gone response has a 4xx status code

func (*PcloudTasksDeleteGone) IsCode

func (o *PcloudTasksDeleteGone) IsCode(code int) bool

IsCode returns true when this pcloud tasks delete gone response a status code equal to that given

func (*PcloudTasksDeleteGone) IsRedirect

func (o *PcloudTasksDeleteGone) IsRedirect() bool

IsRedirect returns true when this pcloud tasks delete gone response has a 3xx status code

func (*PcloudTasksDeleteGone) IsServerError

func (o *PcloudTasksDeleteGone) IsServerError() bool

IsServerError returns true when this pcloud tasks delete gone response has a 5xx status code

func (*PcloudTasksDeleteGone) IsSuccess

func (o *PcloudTasksDeleteGone) IsSuccess() bool

IsSuccess returns true when this pcloud tasks delete gone response has a 2xx status code

func (*PcloudTasksDeleteGone) String

func (o *PcloudTasksDeleteGone) String() string

type PcloudTasksDeleteInternalServerError

type PcloudTasksDeleteInternalServerError struct {
	Payload *models.Error
}

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

Code gets the status code for the pcloud tasks delete internal server error response

func (*PcloudTasksDeleteInternalServerError) Error

func (*PcloudTasksDeleteInternalServerError) GetPayload

func (*PcloudTasksDeleteInternalServerError) IsClientError

func (o *PcloudTasksDeleteInternalServerError) IsClientError() bool

IsClientError returns true when this pcloud tasks delete internal server error response has a 4xx status code

func (*PcloudTasksDeleteInternalServerError) IsCode

IsCode returns true when this pcloud tasks delete internal server error response a status code equal to that given

func (*PcloudTasksDeleteInternalServerError) IsRedirect

IsRedirect returns true when this pcloud tasks delete internal server error response has a 3xx status code

func (*PcloudTasksDeleteInternalServerError) IsServerError

func (o *PcloudTasksDeleteInternalServerError) IsServerError() bool

IsServerError returns true when this pcloud tasks delete internal server error response has a 5xx status code

func (*PcloudTasksDeleteInternalServerError) IsSuccess

IsSuccess returns true when this pcloud tasks delete internal server error response has a 2xx status code

func (*PcloudTasksDeleteInternalServerError) String

type PcloudTasksDeleteNotFound

type PcloudTasksDeleteNotFound struct {
	Payload *models.Error
}

PcloudTasksDeleteNotFound describes a response with status code 404, with default header values.

Not Found

func NewPcloudTasksDeleteNotFound

func NewPcloudTasksDeleteNotFound() *PcloudTasksDeleteNotFound

NewPcloudTasksDeleteNotFound creates a PcloudTasksDeleteNotFound with default headers values

func (*PcloudTasksDeleteNotFound) Code

func (o *PcloudTasksDeleteNotFound) Code() int

Code gets the status code for the pcloud tasks delete not found response

func (*PcloudTasksDeleteNotFound) Error

func (o *PcloudTasksDeleteNotFound) Error() string

func (*PcloudTasksDeleteNotFound) GetPayload

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

func (*PcloudTasksDeleteNotFound) IsClientError

func (o *PcloudTasksDeleteNotFound) IsClientError() bool

IsClientError returns true when this pcloud tasks delete not found response has a 4xx status code

func (*PcloudTasksDeleteNotFound) IsCode

func (o *PcloudTasksDeleteNotFound) IsCode(code int) bool

IsCode returns true when this pcloud tasks delete not found response a status code equal to that given

func (*PcloudTasksDeleteNotFound) IsRedirect

func (o *PcloudTasksDeleteNotFound) IsRedirect() bool

IsRedirect returns true when this pcloud tasks delete not found response has a 3xx status code

func (*PcloudTasksDeleteNotFound) IsServerError

func (o *PcloudTasksDeleteNotFound) IsServerError() bool

IsServerError returns true when this pcloud tasks delete not found response has a 5xx status code

func (*PcloudTasksDeleteNotFound) IsSuccess

func (o *PcloudTasksDeleteNotFound) IsSuccess() bool

IsSuccess returns true when this pcloud tasks delete not found response has a 2xx status code

func (*PcloudTasksDeleteNotFound) String

func (o *PcloudTasksDeleteNotFound) String() string

type PcloudTasksDeleteOK

type PcloudTasksDeleteOK struct {
	Payload models.Object
}

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

func (o *PcloudTasksDeleteOK) Code() int

Code gets the status code for the pcloud tasks delete o k response

func (*PcloudTasksDeleteOK) Error

func (o *PcloudTasksDeleteOK) Error() string

func (*PcloudTasksDeleteOK) GetPayload

func (o *PcloudTasksDeleteOK) GetPayload() models.Object

func (*PcloudTasksDeleteOK) IsClientError

func (o *PcloudTasksDeleteOK) IsClientError() bool

IsClientError returns true when this pcloud tasks delete o k response has a 4xx status code

func (*PcloudTasksDeleteOK) IsCode

func (o *PcloudTasksDeleteOK) IsCode(code int) bool

IsCode returns true when this pcloud tasks delete o k response a status code equal to that given

func (*PcloudTasksDeleteOK) IsRedirect

func (o *PcloudTasksDeleteOK) IsRedirect() bool

IsRedirect returns true when this pcloud tasks delete o k response has a 3xx status code

func (*PcloudTasksDeleteOK) IsServerError

func (o *PcloudTasksDeleteOK) IsServerError() bool

IsServerError returns true when this pcloud tasks delete o k response has a 5xx status code

func (*PcloudTasksDeleteOK) IsSuccess

func (o *PcloudTasksDeleteOK) IsSuccess() bool

IsSuccess returns true when this pcloud tasks delete o k response has a 2xx status code

func (*PcloudTasksDeleteOK) String

func (o *PcloudTasksDeleteOK) String() string

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

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

WithContext adds the context to the pcloud tasks delete params

func (*PcloudTasksDeleteParams) WithDefaults

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

WithTaskID adds the taskID to the pcloud tasks delete params

func (*PcloudTasksDeleteParams) WithTimeout

WithTimeout adds the timeout to the pcloud tasks delete params

func (*PcloudTasksDeleteParams) WriteToRequest

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

type PcloudTasksDeleteUnauthorized struct {
	Payload *models.Error
}

PcloudTasksDeleteUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewPcloudTasksDeleteUnauthorized

func NewPcloudTasksDeleteUnauthorized() *PcloudTasksDeleteUnauthorized

NewPcloudTasksDeleteUnauthorized creates a PcloudTasksDeleteUnauthorized with default headers values

func (*PcloudTasksDeleteUnauthorized) Code

Code gets the status code for the pcloud tasks delete unauthorized response

func (*PcloudTasksDeleteUnauthorized) Error

func (*PcloudTasksDeleteUnauthorized) GetPayload

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

func (*PcloudTasksDeleteUnauthorized) IsClientError

func (o *PcloudTasksDeleteUnauthorized) IsClientError() bool

IsClientError returns true when this pcloud tasks delete unauthorized response has a 4xx status code

func (*PcloudTasksDeleteUnauthorized) IsCode

func (o *PcloudTasksDeleteUnauthorized) IsCode(code int) bool

IsCode returns true when this pcloud tasks delete unauthorized response a status code equal to that given

func (*PcloudTasksDeleteUnauthorized) IsRedirect

func (o *PcloudTasksDeleteUnauthorized) IsRedirect() bool

IsRedirect returns true when this pcloud tasks delete unauthorized response has a 3xx status code

func (*PcloudTasksDeleteUnauthorized) IsServerError

func (o *PcloudTasksDeleteUnauthorized) IsServerError() bool

IsServerError returns true when this pcloud tasks delete unauthorized response has a 5xx status code

func (*PcloudTasksDeleteUnauthorized) IsSuccess

func (o *PcloudTasksDeleteUnauthorized) IsSuccess() bool

IsSuccess returns true when this pcloud tasks delete unauthorized response has a 2xx status code

func (*PcloudTasksDeleteUnauthorized) String

type PcloudTasksGetBadRequest

type PcloudTasksGetBadRequest struct {
	Payload *models.Error
}

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

func (o *PcloudTasksGetBadRequest) Code() int

Code gets the status code for the pcloud tasks get bad request response

func (*PcloudTasksGetBadRequest) Error

func (o *PcloudTasksGetBadRequest) Error() string

func (*PcloudTasksGetBadRequest) GetPayload

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

func (*PcloudTasksGetBadRequest) IsClientError

func (o *PcloudTasksGetBadRequest) IsClientError() bool

IsClientError returns true when this pcloud tasks get bad request response has a 4xx status code

func (*PcloudTasksGetBadRequest) IsCode

func (o *PcloudTasksGetBadRequest) IsCode(code int) bool

IsCode returns true when this pcloud tasks get bad request response a status code equal to that given

func (*PcloudTasksGetBadRequest) IsRedirect

func (o *PcloudTasksGetBadRequest) IsRedirect() bool

IsRedirect returns true when this pcloud tasks get bad request response has a 3xx status code

func (*PcloudTasksGetBadRequest) IsServerError

func (o *PcloudTasksGetBadRequest) IsServerError() bool

IsServerError returns true when this pcloud tasks get bad request response has a 5xx status code

func (*PcloudTasksGetBadRequest) IsSuccess

func (o *PcloudTasksGetBadRequest) IsSuccess() bool

IsSuccess returns true when this pcloud tasks get bad request response has a 2xx status code

func (*PcloudTasksGetBadRequest) String

func (o *PcloudTasksGetBadRequest) String() string

type PcloudTasksGetForbidden

type PcloudTasksGetForbidden struct {
	Payload *models.Error
}

PcloudTasksGetForbidden describes a response with status code 403, with default header values.

Forbidden

func NewPcloudTasksGetForbidden

func NewPcloudTasksGetForbidden() *PcloudTasksGetForbidden

NewPcloudTasksGetForbidden creates a PcloudTasksGetForbidden with default headers values

func (*PcloudTasksGetForbidden) Code

func (o *PcloudTasksGetForbidden) Code() int

Code gets the status code for the pcloud tasks get forbidden response

func (*PcloudTasksGetForbidden) Error

func (o *PcloudTasksGetForbidden) Error() string

func (*PcloudTasksGetForbidden) GetPayload

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

func (*PcloudTasksGetForbidden) IsClientError

func (o *PcloudTasksGetForbidden) IsClientError() bool

IsClientError returns true when this pcloud tasks get forbidden response has a 4xx status code

func (*PcloudTasksGetForbidden) IsCode

func (o *PcloudTasksGetForbidden) IsCode(code int) bool

IsCode returns true when this pcloud tasks get forbidden response a status code equal to that given

func (*PcloudTasksGetForbidden) IsRedirect

func (o *PcloudTasksGetForbidden) IsRedirect() bool

IsRedirect returns true when this pcloud tasks get forbidden response has a 3xx status code

func (*PcloudTasksGetForbidden) IsServerError

func (o *PcloudTasksGetForbidden) IsServerError() bool

IsServerError returns true when this pcloud tasks get forbidden response has a 5xx status code

func (*PcloudTasksGetForbidden) IsSuccess

func (o *PcloudTasksGetForbidden) IsSuccess() bool

IsSuccess returns true when this pcloud tasks get forbidden response has a 2xx status code

func (*PcloudTasksGetForbidden) String

func (o *PcloudTasksGetForbidden) String() string

type PcloudTasksGetInternalServerError

type PcloudTasksGetInternalServerError struct {
	Payload *models.Error
}

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

Code gets the status code for the pcloud tasks get internal server error response

func (*PcloudTasksGetInternalServerError) Error

func (*PcloudTasksGetInternalServerError) GetPayload

func (*PcloudTasksGetInternalServerError) IsClientError

func (o *PcloudTasksGetInternalServerError) IsClientError() bool

IsClientError returns true when this pcloud tasks get internal server error response has a 4xx status code

func (*PcloudTasksGetInternalServerError) IsCode

func (o *PcloudTasksGetInternalServerError) IsCode(code int) bool

IsCode returns true when this pcloud tasks get internal server error response a status code equal to that given

func (*PcloudTasksGetInternalServerError) IsRedirect

func (o *PcloudTasksGetInternalServerError) IsRedirect() bool

IsRedirect returns true when this pcloud tasks get internal server error response has a 3xx status code

func (*PcloudTasksGetInternalServerError) IsServerError

func (o *PcloudTasksGetInternalServerError) IsServerError() bool

IsServerError returns true when this pcloud tasks get internal server error response has a 5xx status code

func (*PcloudTasksGetInternalServerError) IsSuccess

func (o *PcloudTasksGetInternalServerError) IsSuccess() bool

IsSuccess returns true when this pcloud tasks get internal server error response has a 2xx status code

func (*PcloudTasksGetInternalServerError) String

type PcloudTasksGetNotFound

type PcloudTasksGetNotFound struct {
	Payload *models.Error
}

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

func (o *PcloudTasksGetNotFound) Code() int

Code gets the status code for the pcloud tasks get not found response

func (*PcloudTasksGetNotFound) Error

func (o *PcloudTasksGetNotFound) Error() string

func (*PcloudTasksGetNotFound) GetPayload

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

func (*PcloudTasksGetNotFound) IsClientError

func (o *PcloudTasksGetNotFound) IsClientError() bool

IsClientError returns true when this pcloud tasks get not found response has a 4xx status code

func (*PcloudTasksGetNotFound) IsCode

func (o *PcloudTasksGetNotFound) IsCode(code int) bool

IsCode returns true when this pcloud tasks get not found response a status code equal to that given

func (*PcloudTasksGetNotFound) IsRedirect

func (o *PcloudTasksGetNotFound) IsRedirect() bool

IsRedirect returns true when this pcloud tasks get not found response has a 3xx status code

func (*PcloudTasksGetNotFound) IsServerError

func (o *PcloudTasksGetNotFound) IsServerError() bool

IsServerError returns true when this pcloud tasks get not found response has a 5xx status code

func (*PcloudTasksGetNotFound) IsSuccess

func (o *PcloudTasksGetNotFound) IsSuccess() bool

IsSuccess returns true when this pcloud tasks get not found response has a 2xx status code

func (*PcloudTasksGetNotFound) String

func (o *PcloudTasksGetNotFound) String() string

type PcloudTasksGetOK

type PcloudTasksGetOK struct {
	Payload *models.Task
}

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

func (o *PcloudTasksGetOK) Code() int

Code gets the status code for the pcloud tasks get o k response

func (*PcloudTasksGetOK) Error

func (o *PcloudTasksGetOK) Error() string

func (*PcloudTasksGetOK) GetPayload

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

func (*PcloudTasksGetOK) IsClientError

func (o *PcloudTasksGetOK) IsClientError() bool

IsClientError returns true when this pcloud tasks get o k response has a 4xx status code

func (*PcloudTasksGetOK) IsCode

func (o *PcloudTasksGetOK) IsCode(code int) bool

IsCode returns true when this pcloud tasks get o k response a status code equal to that given

func (*PcloudTasksGetOK) IsRedirect

func (o *PcloudTasksGetOK) IsRedirect() bool

IsRedirect returns true when this pcloud tasks get o k response has a 3xx status code

func (*PcloudTasksGetOK) IsServerError

func (o *PcloudTasksGetOK) IsServerError() bool

IsServerError returns true when this pcloud tasks get o k response has a 5xx status code

func (*PcloudTasksGetOK) IsSuccess

func (o *PcloudTasksGetOK) IsSuccess() bool

IsSuccess returns true when this pcloud tasks get o k response has a 2xx status code

func (*PcloudTasksGetOK) String

func (o *PcloudTasksGetOK) String() string

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

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

WithContext adds the context to the pcloud tasks get params

func (*PcloudTasksGetParams) WithDefaults

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

type PcloudTasksGetUnauthorized struct {
	Payload *models.Error
}

PcloudTasksGetUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewPcloudTasksGetUnauthorized

func NewPcloudTasksGetUnauthorized() *PcloudTasksGetUnauthorized

NewPcloudTasksGetUnauthorized creates a PcloudTasksGetUnauthorized with default headers values

func (*PcloudTasksGetUnauthorized) Code

func (o *PcloudTasksGetUnauthorized) Code() int

Code gets the status code for the pcloud tasks get unauthorized response

func (*PcloudTasksGetUnauthorized) Error

func (*PcloudTasksGetUnauthorized) GetPayload

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

func (*PcloudTasksGetUnauthorized) IsClientError

func (o *PcloudTasksGetUnauthorized) IsClientError() bool

IsClientError returns true when this pcloud tasks get unauthorized response has a 4xx status code

func (*PcloudTasksGetUnauthorized) IsCode

func (o *PcloudTasksGetUnauthorized) IsCode(code int) bool

IsCode returns true when this pcloud tasks get unauthorized response a status code equal to that given

func (*PcloudTasksGetUnauthorized) IsRedirect

func (o *PcloudTasksGetUnauthorized) IsRedirect() bool

IsRedirect returns true when this pcloud tasks get unauthorized response has a 3xx status code

func (*PcloudTasksGetUnauthorized) IsServerError

func (o *PcloudTasksGetUnauthorized) IsServerError() bool

IsServerError returns true when this pcloud tasks get unauthorized response has a 5xx status code

func (*PcloudTasksGetUnauthorized) IsSuccess

func (o *PcloudTasksGetUnauthorized) IsSuccess() bool

IsSuccess returns true when this pcloud tasks get unauthorized response has a 2xx status code

func (*PcloudTasksGetUnauthorized) String

func (o *PcloudTasksGetUnauthorized) String() string

Jump to

Keyboard shortcuts

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