piece

package
v0.5.14 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: Apache-2.0, MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddPieceBadRequest added in v0.4.1

type AddPieceBadRequest struct {
	Payload *models.APIHTTPError
}

AddPieceBadRequest describes a response with status code 400, with default header values.

Bad Request

func NewAddPieceBadRequest added in v0.4.1

func NewAddPieceBadRequest() *AddPieceBadRequest

NewAddPieceBadRequest creates a AddPieceBadRequest with default headers values

func (*AddPieceBadRequest) Code added in v0.4.1

func (o *AddPieceBadRequest) Code() int

Code gets the status code for the add piece bad request response

func (*AddPieceBadRequest) Error added in v0.4.1

func (o *AddPieceBadRequest) Error() string

func (*AddPieceBadRequest) GetPayload added in v0.4.1

func (o *AddPieceBadRequest) GetPayload() *models.APIHTTPError

func (*AddPieceBadRequest) IsClientError added in v0.4.1

func (o *AddPieceBadRequest) IsClientError() bool

IsClientError returns true when this add piece bad request response has a 4xx status code

func (*AddPieceBadRequest) IsCode added in v0.4.1

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

IsCode returns true when this add piece bad request response a status code equal to that given

func (*AddPieceBadRequest) IsRedirect added in v0.4.1

func (o *AddPieceBadRequest) IsRedirect() bool

IsRedirect returns true when this add piece bad request response has a 3xx status code

func (*AddPieceBadRequest) IsServerError added in v0.4.1

func (o *AddPieceBadRequest) IsServerError() bool

IsServerError returns true when this add piece bad request response has a 5xx status code

func (*AddPieceBadRequest) IsSuccess added in v0.4.1

func (o *AddPieceBadRequest) IsSuccess() bool

IsSuccess returns true when this add piece bad request response has a 2xx status code

func (*AddPieceBadRequest) String added in v0.4.1

func (o *AddPieceBadRequest) String() string

type AddPieceInternalServerError added in v0.4.1

type AddPieceInternalServerError struct {
	Payload *models.APIHTTPError
}

AddPieceInternalServerError describes a response with status code 500, with default header values.

Internal Server Error

func NewAddPieceInternalServerError added in v0.4.1

func NewAddPieceInternalServerError() *AddPieceInternalServerError

NewAddPieceInternalServerError creates a AddPieceInternalServerError with default headers values

func (*AddPieceInternalServerError) Code added in v0.4.1

func (o *AddPieceInternalServerError) Code() int

Code gets the status code for the add piece internal server error response

func (*AddPieceInternalServerError) Error added in v0.4.1

func (*AddPieceInternalServerError) GetPayload added in v0.4.1

func (*AddPieceInternalServerError) IsClientError added in v0.4.1

func (o *AddPieceInternalServerError) IsClientError() bool

IsClientError returns true when this add piece internal server error response has a 4xx status code

func (*AddPieceInternalServerError) IsCode added in v0.4.1

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

IsCode returns true when this add piece internal server error response a status code equal to that given

func (*AddPieceInternalServerError) IsRedirect added in v0.4.1

func (o *AddPieceInternalServerError) IsRedirect() bool

IsRedirect returns true when this add piece internal server error response has a 3xx status code

func (*AddPieceInternalServerError) IsServerError added in v0.4.1

func (o *AddPieceInternalServerError) IsServerError() bool

IsServerError returns true when this add piece internal server error response has a 5xx status code

func (*AddPieceInternalServerError) IsSuccess added in v0.4.1

func (o *AddPieceInternalServerError) IsSuccess() bool

IsSuccess returns true when this add piece internal server error response has a 2xx status code

func (*AddPieceInternalServerError) String added in v0.4.1

func (o *AddPieceInternalServerError) String() string

type AddPieceOK added in v0.4.1

type AddPieceOK struct {
	Payload *models.ModelCar
}

AddPieceOK describes a response with status code 200, with default header values.

OK

func NewAddPieceOK added in v0.4.1

func NewAddPieceOK() *AddPieceOK

NewAddPieceOK creates a AddPieceOK with default headers values

func (*AddPieceOK) Code added in v0.4.1

func (o *AddPieceOK) Code() int

Code gets the status code for the add piece o k response

func (*AddPieceOK) Error added in v0.4.1

func (o *AddPieceOK) Error() string

func (*AddPieceOK) GetPayload added in v0.4.1

func (o *AddPieceOK) GetPayload() *models.ModelCar

func (*AddPieceOK) IsClientError added in v0.4.1

func (o *AddPieceOK) IsClientError() bool

IsClientError returns true when this add piece o k response has a 4xx status code

func (*AddPieceOK) IsCode added in v0.4.1

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

IsCode returns true when this add piece o k response a status code equal to that given

func (*AddPieceOK) IsRedirect added in v0.4.1

func (o *AddPieceOK) IsRedirect() bool

IsRedirect returns true when this add piece o k response has a 3xx status code

func (*AddPieceOK) IsServerError added in v0.4.1

func (o *AddPieceOK) IsServerError() bool

IsServerError returns true when this add piece o k response has a 5xx status code

func (*AddPieceOK) IsSuccess added in v0.4.1

func (o *AddPieceOK) IsSuccess() bool

IsSuccess returns true when this add piece o k response has a 2xx status code

func (*AddPieceOK) String added in v0.4.1

func (o *AddPieceOK) String() string

type AddPieceParams added in v0.4.1

type AddPieceParams struct {

	/* ID.

	   Preparation ID or name
	*/
	ID string

	/* Request.

	   Piece information
	*/
	Request *models.DataprepAddPieceRequest

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

AddPieceParams contains all the parameters to send to the API endpoint

for the add piece operation.

Typically these are written to a http.Request.

func NewAddPieceParams added in v0.4.1

func NewAddPieceParams() *AddPieceParams

NewAddPieceParams creates a new AddPieceParams 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 NewAddPieceParamsWithContext added in v0.4.1

func NewAddPieceParamsWithContext(ctx context.Context) *AddPieceParams

NewAddPieceParamsWithContext creates a new AddPieceParams object with the ability to set a context for a request.

func NewAddPieceParamsWithHTTPClient added in v0.4.1

func NewAddPieceParamsWithHTTPClient(client *http.Client) *AddPieceParams

NewAddPieceParamsWithHTTPClient creates a new AddPieceParams object with the ability to set a custom HTTPClient for a request.

func NewAddPieceParamsWithTimeout added in v0.4.1

func NewAddPieceParamsWithTimeout(timeout time.Duration) *AddPieceParams

NewAddPieceParamsWithTimeout creates a new AddPieceParams object with the ability to set a timeout on a request.

func (*AddPieceParams) SetContext added in v0.4.1

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

SetContext adds the context to the add piece params

func (*AddPieceParams) SetDefaults added in v0.4.1

func (o *AddPieceParams) SetDefaults()

SetDefaults hydrates default values in the add piece params (not the query body).

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

func (*AddPieceParams) SetHTTPClient added in v0.4.1

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

SetHTTPClient adds the HTTPClient to the add piece params

func (*AddPieceParams) SetID added in v0.4.1

func (o *AddPieceParams) SetID(id string)

SetID adds the id to the add piece params

func (*AddPieceParams) SetRequest added in v0.4.1

func (o *AddPieceParams) SetRequest(request *models.DataprepAddPieceRequest)

SetRequest adds the request to the add piece params

func (*AddPieceParams) SetTimeout added in v0.4.1

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

SetTimeout adds the timeout to the add piece params

func (*AddPieceParams) WithContext added in v0.4.1

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

WithContext adds the context to the add piece params

func (*AddPieceParams) WithDefaults added in v0.4.1

func (o *AddPieceParams) WithDefaults() *AddPieceParams

WithDefaults hydrates default values in the add piece params (not the query body).

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

func (*AddPieceParams) WithHTTPClient added in v0.4.1

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

WithHTTPClient adds the HTTPClient to the add piece params

func (*AddPieceParams) WithID added in v0.4.1

func (o *AddPieceParams) WithID(id string) *AddPieceParams

WithID adds the id to the add piece params

func (*AddPieceParams) WithRequest added in v0.4.1

func (o *AddPieceParams) WithRequest(request *models.DataprepAddPieceRequest) *AddPieceParams

WithRequest adds the request to the add piece params

func (*AddPieceParams) WithTimeout added in v0.4.1

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

WithTimeout adds the timeout to the add piece params

func (*AddPieceParams) WriteToRequest added in v0.4.1

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

WriteToRequest writes these params to a swagger request

type AddPieceReader added in v0.4.1

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

AddPieceReader is a Reader for the AddPiece structure.

func (*AddPieceReader) ReadResponse added in v0.4.1

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

ReadResponse reads a server response into the received o.

type Client

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

Client for piece API

func (*Client) AddPiece added in v0.4.1

func (a *Client) AddPiece(params *AddPieceParams, opts ...ClientOption) (*AddPieceOK, error)

AddPiece adds a piece to a preparation

func (*Client) GetPieceIDMetadata

func (a *Client) GetPieceIDMetadata(params *GetPieceIDMetadataParams, opts ...ClientOption) (*GetPieceIDMetadataOK, error)

GetPieceIDMetadata gets metadata for a piece

Get metadata for a piece for how it may be reassembled from the data source

func (*Client) ListPieces added in v0.4.1

func (a *Client) ListPieces(params *ListPiecesParams, opts ...ClientOption) (*ListPiecesOK, error)

ListPieces lists all prepared pieces for a preparation

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 {
	AddPiece(params *AddPieceParams, opts ...ClientOption) (*AddPieceOK, error)

	GetPieceIDMetadata(params *GetPieceIDMetadataParams, opts ...ClientOption) (*GetPieceIDMetadataOK, error)

	ListPieces(params *ListPiecesParams, opts ...ClientOption) (*ListPiecesOK, 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 piece API client.

type GetPieceIDMetadataBadRequest

type GetPieceIDMetadataBadRequest struct {
	Payload string
}

GetPieceIDMetadataBadRequest describes a response with status code 400, with default header values.

Bad Request

func NewGetPieceIDMetadataBadRequest

func NewGetPieceIDMetadataBadRequest() *GetPieceIDMetadataBadRequest

NewGetPieceIDMetadataBadRequest creates a GetPieceIDMetadataBadRequest with default headers values

func (*GetPieceIDMetadataBadRequest) Code

Code gets the status code for the get piece Id metadata bad request response

func (*GetPieceIDMetadataBadRequest) Error

func (*GetPieceIDMetadataBadRequest) GetPayload

func (o *GetPieceIDMetadataBadRequest) GetPayload() string

func (*GetPieceIDMetadataBadRequest) IsClientError

func (o *GetPieceIDMetadataBadRequest) IsClientError() bool

IsClientError returns true when this get piece Id metadata bad request response has a 4xx status code

func (*GetPieceIDMetadataBadRequest) IsCode

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

IsCode returns true when this get piece Id metadata bad request response a status code equal to that given

func (*GetPieceIDMetadataBadRequest) IsRedirect

func (o *GetPieceIDMetadataBadRequest) IsRedirect() bool

IsRedirect returns true when this get piece Id metadata bad request response has a 3xx status code

func (*GetPieceIDMetadataBadRequest) IsServerError

func (o *GetPieceIDMetadataBadRequest) IsServerError() bool

IsServerError returns true when this get piece Id metadata bad request response has a 5xx status code

func (*GetPieceIDMetadataBadRequest) IsSuccess

func (o *GetPieceIDMetadataBadRequest) IsSuccess() bool

IsSuccess returns true when this get piece Id metadata bad request response has a 2xx status code

func (*GetPieceIDMetadataBadRequest) String

type GetPieceIDMetadataInternalServerError

type GetPieceIDMetadataInternalServerError struct {
	Payload string
}

GetPieceIDMetadataInternalServerError describes a response with status code 500, with default header values.

Internal Server Error

func NewGetPieceIDMetadataInternalServerError

func NewGetPieceIDMetadataInternalServerError() *GetPieceIDMetadataInternalServerError

NewGetPieceIDMetadataInternalServerError creates a GetPieceIDMetadataInternalServerError with default headers values

func (*GetPieceIDMetadataInternalServerError) Code

Code gets the status code for the get piece Id metadata internal server error response

func (*GetPieceIDMetadataInternalServerError) Error

func (*GetPieceIDMetadataInternalServerError) GetPayload

func (*GetPieceIDMetadataInternalServerError) IsClientError

func (o *GetPieceIDMetadataInternalServerError) IsClientError() bool

IsClientError returns true when this get piece Id metadata internal server error response has a 4xx status code

func (*GetPieceIDMetadataInternalServerError) IsCode

IsCode returns true when this get piece Id metadata internal server error response a status code equal to that given

func (*GetPieceIDMetadataInternalServerError) IsRedirect

IsRedirect returns true when this get piece Id metadata internal server error response has a 3xx status code

func (*GetPieceIDMetadataInternalServerError) IsServerError

func (o *GetPieceIDMetadataInternalServerError) IsServerError() bool

IsServerError returns true when this get piece Id metadata internal server error response has a 5xx status code

func (*GetPieceIDMetadataInternalServerError) IsSuccess

IsSuccess returns true when this get piece Id metadata internal server error response has a 2xx status code

func (*GetPieceIDMetadataInternalServerError) String

type GetPieceIDMetadataNotFound

type GetPieceIDMetadataNotFound struct {
	Payload string
}

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

Not Found

func NewGetPieceIDMetadataNotFound

func NewGetPieceIDMetadataNotFound() *GetPieceIDMetadataNotFound

NewGetPieceIDMetadataNotFound creates a GetPieceIDMetadataNotFound with default headers values

func (*GetPieceIDMetadataNotFound) Code

func (o *GetPieceIDMetadataNotFound) Code() int

Code gets the status code for the get piece Id metadata not found response

func (*GetPieceIDMetadataNotFound) Error

func (*GetPieceIDMetadataNotFound) GetPayload

func (o *GetPieceIDMetadataNotFound) GetPayload() string

func (*GetPieceIDMetadataNotFound) IsClientError

func (o *GetPieceIDMetadataNotFound) IsClientError() bool

IsClientError returns true when this get piece Id metadata not found response has a 4xx status code

func (*GetPieceIDMetadataNotFound) IsCode

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

IsCode returns true when this get piece Id metadata not found response a status code equal to that given

func (*GetPieceIDMetadataNotFound) IsRedirect

func (o *GetPieceIDMetadataNotFound) IsRedirect() bool

IsRedirect returns true when this get piece Id metadata not found response has a 3xx status code

func (*GetPieceIDMetadataNotFound) IsServerError

func (o *GetPieceIDMetadataNotFound) IsServerError() bool

IsServerError returns true when this get piece Id metadata not found response has a 5xx status code

func (*GetPieceIDMetadataNotFound) IsSuccess

func (o *GetPieceIDMetadataNotFound) IsSuccess() bool

IsSuccess returns true when this get piece Id metadata not found response has a 2xx status code

func (*GetPieceIDMetadataNotFound) String

func (o *GetPieceIDMetadataNotFound) String() string

type GetPieceIDMetadataOK

type GetPieceIDMetadataOK struct {
	Payload models.StorePieceReader
}

GetPieceIDMetadataOK describes a response with status code 200, with default header values.

OK

func NewGetPieceIDMetadataOK

func NewGetPieceIDMetadataOK() *GetPieceIDMetadataOK

NewGetPieceIDMetadataOK creates a GetPieceIDMetadataOK with default headers values

func (*GetPieceIDMetadataOK) Code

func (o *GetPieceIDMetadataOK) Code() int

Code gets the status code for the get piece Id metadata o k response

func (*GetPieceIDMetadataOK) Error

func (o *GetPieceIDMetadataOK) Error() string

func (*GetPieceIDMetadataOK) GetPayload

func (*GetPieceIDMetadataOK) IsClientError

func (o *GetPieceIDMetadataOK) IsClientError() bool

IsClientError returns true when this get piece Id metadata o k response has a 4xx status code

func (*GetPieceIDMetadataOK) IsCode

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

IsCode returns true when this get piece Id metadata o k response a status code equal to that given

func (*GetPieceIDMetadataOK) IsRedirect

func (o *GetPieceIDMetadataOK) IsRedirect() bool

IsRedirect returns true when this get piece Id metadata o k response has a 3xx status code

func (*GetPieceIDMetadataOK) IsServerError

func (o *GetPieceIDMetadataOK) IsServerError() bool

IsServerError returns true when this get piece Id metadata o k response has a 5xx status code

func (*GetPieceIDMetadataOK) IsSuccess

func (o *GetPieceIDMetadataOK) IsSuccess() bool

IsSuccess returns true when this get piece Id metadata o k response has a 2xx status code

func (*GetPieceIDMetadataOK) String

func (o *GetPieceIDMetadataOK) String() string

type GetPieceIDMetadataParams

type GetPieceIDMetadataParams struct {

	/* ID.

	   Piece CID
	*/
	ID string

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

GetPieceIDMetadataParams contains all the parameters to send to the API endpoint

for the get piece ID metadata operation.

Typically these are written to a http.Request.

func NewGetPieceIDMetadataParams

func NewGetPieceIDMetadataParams() *GetPieceIDMetadataParams

NewGetPieceIDMetadataParams creates a new GetPieceIDMetadataParams 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 NewGetPieceIDMetadataParamsWithContext

func NewGetPieceIDMetadataParamsWithContext(ctx context.Context) *GetPieceIDMetadataParams

NewGetPieceIDMetadataParamsWithContext creates a new GetPieceIDMetadataParams object with the ability to set a context for a request.

func NewGetPieceIDMetadataParamsWithHTTPClient

func NewGetPieceIDMetadataParamsWithHTTPClient(client *http.Client) *GetPieceIDMetadataParams

NewGetPieceIDMetadataParamsWithHTTPClient creates a new GetPieceIDMetadataParams object with the ability to set a custom HTTPClient for a request.

func NewGetPieceIDMetadataParamsWithTimeout

func NewGetPieceIDMetadataParamsWithTimeout(timeout time.Duration) *GetPieceIDMetadataParams

NewGetPieceIDMetadataParamsWithTimeout creates a new GetPieceIDMetadataParams object with the ability to set a timeout on a request.

func (*GetPieceIDMetadataParams) SetContext

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

SetContext adds the context to the get piece ID metadata params

func (*GetPieceIDMetadataParams) SetDefaults

func (o *GetPieceIDMetadataParams) SetDefaults()

SetDefaults hydrates default values in the get piece ID metadata params (not the query body).

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

func (*GetPieceIDMetadataParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get piece ID metadata params

func (*GetPieceIDMetadataParams) SetID

func (o *GetPieceIDMetadataParams) SetID(id string)

SetID adds the id to the get piece ID metadata params

func (*GetPieceIDMetadataParams) SetTimeout

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

SetTimeout adds the timeout to the get piece ID metadata params

func (*GetPieceIDMetadataParams) WithContext

WithContext adds the context to the get piece ID metadata params

func (*GetPieceIDMetadataParams) WithDefaults

WithDefaults hydrates default values in the get piece ID metadata params (not the query body).

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

func (*GetPieceIDMetadataParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get piece ID metadata params

func (*GetPieceIDMetadataParams) WithID

WithID adds the id to the get piece ID metadata params

func (*GetPieceIDMetadataParams) WithTimeout

WithTimeout adds the timeout to the get piece ID metadata params

func (*GetPieceIDMetadataParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetPieceIDMetadataReader

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

GetPieceIDMetadataReader is a Reader for the GetPieceIDMetadata structure.

func (*GetPieceIDMetadataReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListPiecesBadRequest added in v0.4.1

type ListPiecesBadRequest struct {
	Payload *models.APIHTTPError
}

ListPiecesBadRequest describes a response with status code 400, with default header values.

Bad Request

func NewListPiecesBadRequest added in v0.4.1

func NewListPiecesBadRequest() *ListPiecesBadRequest

NewListPiecesBadRequest creates a ListPiecesBadRequest with default headers values

func (*ListPiecesBadRequest) Code added in v0.4.1

func (o *ListPiecesBadRequest) Code() int

Code gets the status code for the list pieces bad request response

func (*ListPiecesBadRequest) Error added in v0.4.1

func (o *ListPiecesBadRequest) Error() string

func (*ListPiecesBadRequest) GetPayload added in v0.4.1

func (o *ListPiecesBadRequest) GetPayload() *models.APIHTTPError

func (*ListPiecesBadRequest) IsClientError added in v0.4.1

func (o *ListPiecesBadRequest) IsClientError() bool

IsClientError returns true when this list pieces bad request response has a 4xx status code

func (*ListPiecesBadRequest) IsCode added in v0.4.1

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

IsCode returns true when this list pieces bad request response a status code equal to that given

func (*ListPiecesBadRequest) IsRedirect added in v0.4.1

func (o *ListPiecesBadRequest) IsRedirect() bool

IsRedirect returns true when this list pieces bad request response has a 3xx status code

func (*ListPiecesBadRequest) IsServerError added in v0.4.1

func (o *ListPiecesBadRequest) IsServerError() bool

IsServerError returns true when this list pieces bad request response has a 5xx status code

func (*ListPiecesBadRequest) IsSuccess added in v0.4.1

func (o *ListPiecesBadRequest) IsSuccess() bool

IsSuccess returns true when this list pieces bad request response has a 2xx status code

func (*ListPiecesBadRequest) String added in v0.4.1

func (o *ListPiecesBadRequest) String() string

type ListPiecesInternalServerError added in v0.4.1

type ListPiecesInternalServerError struct {
	Payload *models.APIHTTPError
}

ListPiecesInternalServerError describes a response with status code 500, with default header values.

Internal Server Error

func NewListPiecesInternalServerError added in v0.4.1

func NewListPiecesInternalServerError() *ListPiecesInternalServerError

NewListPiecesInternalServerError creates a ListPiecesInternalServerError with default headers values

func (*ListPiecesInternalServerError) Code added in v0.4.1

Code gets the status code for the list pieces internal server error response

func (*ListPiecesInternalServerError) Error added in v0.4.1

func (*ListPiecesInternalServerError) GetPayload added in v0.4.1

func (*ListPiecesInternalServerError) IsClientError added in v0.4.1

func (o *ListPiecesInternalServerError) IsClientError() bool

IsClientError returns true when this list pieces internal server error response has a 4xx status code

func (*ListPiecesInternalServerError) IsCode added in v0.4.1

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

IsCode returns true when this list pieces internal server error response a status code equal to that given

func (*ListPiecesInternalServerError) IsRedirect added in v0.4.1

func (o *ListPiecesInternalServerError) IsRedirect() bool

IsRedirect returns true when this list pieces internal server error response has a 3xx status code

func (*ListPiecesInternalServerError) IsServerError added in v0.4.1

func (o *ListPiecesInternalServerError) IsServerError() bool

IsServerError returns true when this list pieces internal server error response has a 5xx status code

func (*ListPiecesInternalServerError) IsSuccess added in v0.4.1

func (o *ListPiecesInternalServerError) IsSuccess() bool

IsSuccess returns true when this list pieces internal server error response has a 2xx status code

func (*ListPiecesInternalServerError) String added in v0.4.1

type ListPiecesOK added in v0.4.1

type ListPiecesOK struct {
	Payload []*models.DataprepPieceList
}

ListPiecesOK describes a response with status code 200, with default header values.

OK

func NewListPiecesOK added in v0.4.1

func NewListPiecesOK() *ListPiecesOK

NewListPiecesOK creates a ListPiecesOK with default headers values

func (*ListPiecesOK) Code added in v0.4.1

func (o *ListPiecesOK) Code() int

Code gets the status code for the list pieces o k response

func (*ListPiecesOK) Error added in v0.4.1

func (o *ListPiecesOK) Error() string

func (*ListPiecesOK) GetPayload added in v0.4.1

func (o *ListPiecesOK) GetPayload() []*models.DataprepPieceList

func (*ListPiecesOK) IsClientError added in v0.4.1

func (o *ListPiecesOK) IsClientError() bool

IsClientError returns true when this list pieces o k response has a 4xx status code

func (*ListPiecesOK) IsCode added in v0.4.1

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

IsCode returns true when this list pieces o k response a status code equal to that given

func (*ListPiecesOK) IsRedirect added in v0.4.1

func (o *ListPiecesOK) IsRedirect() bool

IsRedirect returns true when this list pieces o k response has a 3xx status code

func (*ListPiecesOK) IsServerError added in v0.4.1

func (o *ListPiecesOK) IsServerError() bool

IsServerError returns true when this list pieces o k response has a 5xx status code

func (*ListPiecesOK) IsSuccess added in v0.4.1

func (o *ListPiecesOK) IsSuccess() bool

IsSuccess returns true when this list pieces o k response has a 2xx status code

func (*ListPiecesOK) String added in v0.4.1

func (o *ListPiecesOK) String() string

type ListPiecesParams added in v0.4.1

type ListPiecesParams struct {

	/* ID.

	   Preparation ID or name
	*/
	ID string

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

ListPiecesParams contains all the parameters to send to the API endpoint

for the list pieces operation.

Typically these are written to a http.Request.

func NewListPiecesParams added in v0.4.1

func NewListPiecesParams() *ListPiecesParams

NewListPiecesParams creates a new ListPiecesParams 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 NewListPiecesParamsWithContext added in v0.4.1

func NewListPiecesParamsWithContext(ctx context.Context) *ListPiecesParams

NewListPiecesParamsWithContext creates a new ListPiecesParams object with the ability to set a context for a request.

func NewListPiecesParamsWithHTTPClient added in v0.4.1

func NewListPiecesParamsWithHTTPClient(client *http.Client) *ListPiecesParams

NewListPiecesParamsWithHTTPClient creates a new ListPiecesParams object with the ability to set a custom HTTPClient for a request.

func NewListPiecesParamsWithTimeout added in v0.4.1

func NewListPiecesParamsWithTimeout(timeout time.Duration) *ListPiecesParams

NewListPiecesParamsWithTimeout creates a new ListPiecesParams object with the ability to set a timeout on a request.

func (*ListPiecesParams) SetContext added in v0.4.1

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

SetContext adds the context to the list pieces params

func (*ListPiecesParams) SetDefaults added in v0.4.1

func (o *ListPiecesParams) SetDefaults()

SetDefaults hydrates default values in the list pieces params (not the query body).

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

func (*ListPiecesParams) SetHTTPClient added in v0.4.1

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

SetHTTPClient adds the HTTPClient to the list pieces params

func (*ListPiecesParams) SetID added in v0.4.1

func (o *ListPiecesParams) SetID(id string)

SetID adds the id to the list pieces params

func (*ListPiecesParams) SetTimeout added in v0.4.1

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

SetTimeout adds the timeout to the list pieces params

func (*ListPiecesParams) WithContext added in v0.4.1

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

WithContext adds the context to the list pieces params

func (*ListPiecesParams) WithDefaults added in v0.4.1

func (o *ListPiecesParams) WithDefaults() *ListPiecesParams

WithDefaults hydrates default values in the list pieces params (not the query body).

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

func (*ListPiecesParams) WithHTTPClient added in v0.4.1

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

WithHTTPClient adds the HTTPClient to the list pieces params

func (*ListPiecesParams) WithID added in v0.4.1

func (o *ListPiecesParams) WithID(id string) *ListPiecesParams

WithID adds the id to the list pieces params

func (*ListPiecesParams) WithTimeout added in v0.4.1

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

WithTimeout adds the timeout to the list pieces params

func (*ListPiecesParams) WriteToRequest added in v0.4.1

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

WriteToRequest writes these params to a swagger request

type ListPiecesReader added in v0.4.1

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

ListPiecesReader is a Reader for the ListPieces structure.

func (*ListPiecesReader) ReadResponse added in v0.4.1

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

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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