piece

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2023 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 Client

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

Client for piece API

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

func (a *Client) GetPreparationIDPiece(params *GetPreparationIDPieceParams, opts ...ClientOption) (*GetPreparationIDPieceOK, error)

GetPreparationIDPiece lists all prepared pieces for a preparation

func (*Client) PostPreparationIDPiece

func (a *Client) PostPreparationIDPiece(params *PostPreparationIDPieceParams, opts ...ClientOption) (*PostPreparationIDPieceOK, error)

PostPreparationIDPiece adds a piece to 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 {
	GetPieceIDMetadata(params *GetPieceIDMetadataParams, opts ...ClientOption) (*GetPieceIDMetadataOK, error)

	GetPreparationIDPiece(params *GetPreparationIDPieceParams, opts ...ClientOption) (*GetPreparationIDPieceOK, error)

	PostPreparationIDPiece(params *PostPreparationIDPieceParams, opts ...ClientOption) (*PostPreparationIDPieceOK, 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 GetPreparationIDPieceBadRequest

type GetPreparationIDPieceBadRequest struct {
	Payload *models.APIHTTPError
}

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

Bad Request

func NewGetPreparationIDPieceBadRequest

func NewGetPreparationIDPieceBadRequest() *GetPreparationIDPieceBadRequest

NewGetPreparationIDPieceBadRequest creates a GetPreparationIDPieceBadRequest with default headers values

func (*GetPreparationIDPieceBadRequest) Code

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

func (*GetPreparationIDPieceBadRequest) Error

func (*GetPreparationIDPieceBadRequest) GetPayload

func (*GetPreparationIDPieceBadRequest) IsClientError

func (o *GetPreparationIDPieceBadRequest) IsClientError() bool

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

func (*GetPreparationIDPieceBadRequest) IsCode

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

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

func (*GetPreparationIDPieceBadRequest) IsRedirect

func (o *GetPreparationIDPieceBadRequest) IsRedirect() bool

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

func (*GetPreparationIDPieceBadRequest) IsServerError

func (o *GetPreparationIDPieceBadRequest) IsServerError() bool

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

func (*GetPreparationIDPieceBadRequest) IsSuccess

func (o *GetPreparationIDPieceBadRequest) IsSuccess() bool

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

func (*GetPreparationIDPieceBadRequest) String

type GetPreparationIDPieceInternalServerError

type GetPreparationIDPieceInternalServerError struct {
	Payload *models.APIHTTPError
}

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

Internal Server Error

func NewGetPreparationIDPieceInternalServerError

func NewGetPreparationIDPieceInternalServerError() *GetPreparationIDPieceInternalServerError

NewGetPreparationIDPieceInternalServerError creates a GetPreparationIDPieceInternalServerError with default headers values

func (*GetPreparationIDPieceInternalServerError) Code

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

func (*GetPreparationIDPieceInternalServerError) Error

func (*GetPreparationIDPieceInternalServerError) GetPayload

func (*GetPreparationIDPieceInternalServerError) IsClientError

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

func (*GetPreparationIDPieceInternalServerError) IsCode

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

func (*GetPreparationIDPieceInternalServerError) IsRedirect

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

func (*GetPreparationIDPieceInternalServerError) IsServerError

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

func (*GetPreparationIDPieceInternalServerError) IsSuccess

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

func (*GetPreparationIDPieceInternalServerError) String

type GetPreparationIDPieceOK

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

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

OK

func NewGetPreparationIDPieceOK

func NewGetPreparationIDPieceOK() *GetPreparationIDPieceOK

NewGetPreparationIDPieceOK creates a GetPreparationIDPieceOK with default headers values

func (*GetPreparationIDPieceOK) Code

func (o *GetPreparationIDPieceOK) Code() int

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

func (*GetPreparationIDPieceOK) Error

func (o *GetPreparationIDPieceOK) Error() string

func (*GetPreparationIDPieceOK) GetPayload

func (*GetPreparationIDPieceOK) IsClientError

func (o *GetPreparationIDPieceOK) IsClientError() bool

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

func (*GetPreparationIDPieceOK) IsCode

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

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

func (*GetPreparationIDPieceOK) IsRedirect

func (o *GetPreparationIDPieceOK) IsRedirect() bool

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

func (*GetPreparationIDPieceOK) IsServerError

func (o *GetPreparationIDPieceOK) IsServerError() bool

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

func (*GetPreparationIDPieceOK) IsSuccess

func (o *GetPreparationIDPieceOK) IsSuccess() bool

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

func (*GetPreparationIDPieceOK) String

func (o *GetPreparationIDPieceOK) String() string

type GetPreparationIDPieceParams

type GetPreparationIDPieceParams struct {

	/* ID.

	   Preparation ID or name
	*/
	ID string

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

GetPreparationIDPieceParams contains all the parameters to send to the API endpoint

for the get preparation ID piece operation.

Typically these are written to a http.Request.

func NewGetPreparationIDPieceParams

func NewGetPreparationIDPieceParams() *GetPreparationIDPieceParams

NewGetPreparationIDPieceParams creates a new GetPreparationIDPieceParams 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 NewGetPreparationIDPieceParamsWithContext

func NewGetPreparationIDPieceParamsWithContext(ctx context.Context) *GetPreparationIDPieceParams

NewGetPreparationIDPieceParamsWithContext creates a new GetPreparationIDPieceParams object with the ability to set a context for a request.

func NewGetPreparationIDPieceParamsWithHTTPClient

func NewGetPreparationIDPieceParamsWithHTTPClient(client *http.Client) *GetPreparationIDPieceParams

NewGetPreparationIDPieceParamsWithHTTPClient creates a new GetPreparationIDPieceParams object with the ability to set a custom HTTPClient for a request.

func NewGetPreparationIDPieceParamsWithTimeout

func NewGetPreparationIDPieceParamsWithTimeout(timeout time.Duration) *GetPreparationIDPieceParams

NewGetPreparationIDPieceParamsWithTimeout creates a new GetPreparationIDPieceParams object with the ability to set a timeout on a request.

func (*GetPreparationIDPieceParams) SetContext

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

SetContext adds the context to the get preparation ID piece params

func (*GetPreparationIDPieceParams) SetDefaults

func (o *GetPreparationIDPieceParams) SetDefaults()

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

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

func (*GetPreparationIDPieceParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get preparation ID piece params

func (*GetPreparationIDPieceParams) SetID

func (o *GetPreparationIDPieceParams) SetID(id string)

SetID adds the id to the get preparation ID piece params

func (*GetPreparationIDPieceParams) SetTimeout

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

SetTimeout adds the timeout to the get preparation ID piece params

func (*GetPreparationIDPieceParams) WithContext

WithContext adds the context to the get preparation ID piece params

func (*GetPreparationIDPieceParams) WithDefaults

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

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

func (*GetPreparationIDPieceParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get preparation ID piece params

func (*GetPreparationIDPieceParams) WithID

WithID adds the id to the get preparation ID piece params

func (*GetPreparationIDPieceParams) WithTimeout

WithTimeout adds the timeout to the get preparation ID piece params

func (*GetPreparationIDPieceParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetPreparationIDPieceReader

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

GetPreparationIDPieceReader is a Reader for the GetPreparationIDPiece structure.

func (*GetPreparationIDPieceReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PostPreparationIDPieceBadRequest

type PostPreparationIDPieceBadRequest struct {
	Payload *models.APIHTTPError
}

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

Bad Request

func NewPostPreparationIDPieceBadRequest

func NewPostPreparationIDPieceBadRequest() *PostPreparationIDPieceBadRequest

NewPostPreparationIDPieceBadRequest creates a PostPreparationIDPieceBadRequest with default headers values

func (*PostPreparationIDPieceBadRequest) Code

Code gets the status code for the post preparation Id piece bad request response

func (*PostPreparationIDPieceBadRequest) Error

func (*PostPreparationIDPieceBadRequest) GetPayload

func (*PostPreparationIDPieceBadRequest) IsClientError

func (o *PostPreparationIDPieceBadRequest) IsClientError() bool

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

func (*PostPreparationIDPieceBadRequest) IsCode

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

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

func (*PostPreparationIDPieceBadRequest) IsRedirect

func (o *PostPreparationIDPieceBadRequest) IsRedirect() bool

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

func (*PostPreparationIDPieceBadRequest) IsServerError

func (o *PostPreparationIDPieceBadRequest) IsServerError() bool

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

func (*PostPreparationIDPieceBadRequest) IsSuccess

func (o *PostPreparationIDPieceBadRequest) IsSuccess() bool

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

func (*PostPreparationIDPieceBadRequest) String

type PostPreparationIDPieceInternalServerError

type PostPreparationIDPieceInternalServerError struct {
	Payload *models.APIHTTPError
}

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

Internal Server Error

func NewPostPreparationIDPieceInternalServerError

func NewPostPreparationIDPieceInternalServerError() *PostPreparationIDPieceInternalServerError

NewPostPreparationIDPieceInternalServerError creates a PostPreparationIDPieceInternalServerError with default headers values

func (*PostPreparationIDPieceInternalServerError) Code

Code gets the status code for the post preparation Id piece internal server error response

func (*PostPreparationIDPieceInternalServerError) Error

func (*PostPreparationIDPieceInternalServerError) GetPayload

func (*PostPreparationIDPieceInternalServerError) IsClientError

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

func (*PostPreparationIDPieceInternalServerError) IsCode

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

func (*PostPreparationIDPieceInternalServerError) IsRedirect

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

func (*PostPreparationIDPieceInternalServerError) IsServerError

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

func (*PostPreparationIDPieceInternalServerError) IsSuccess

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

func (*PostPreparationIDPieceInternalServerError) String

type PostPreparationIDPieceOK

type PostPreparationIDPieceOK struct {
	Payload *models.ModelCar
}

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

OK

func NewPostPreparationIDPieceOK

func NewPostPreparationIDPieceOK() *PostPreparationIDPieceOK

NewPostPreparationIDPieceOK creates a PostPreparationIDPieceOK with default headers values

func (*PostPreparationIDPieceOK) Code

func (o *PostPreparationIDPieceOK) Code() int

Code gets the status code for the post preparation Id piece o k response

func (*PostPreparationIDPieceOK) Error

func (o *PostPreparationIDPieceOK) Error() string

func (*PostPreparationIDPieceOK) GetPayload

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

func (*PostPreparationIDPieceOK) IsClientError

func (o *PostPreparationIDPieceOK) IsClientError() bool

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

func (*PostPreparationIDPieceOK) IsCode

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

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

func (*PostPreparationIDPieceOK) IsRedirect

func (o *PostPreparationIDPieceOK) IsRedirect() bool

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

func (*PostPreparationIDPieceOK) IsServerError

func (o *PostPreparationIDPieceOK) IsServerError() bool

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

func (*PostPreparationIDPieceOK) IsSuccess

func (o *PostPreparationIDPieceOK) IsSuccess() bool

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

func (*PostPreparationIDPieceOK) String

func (o *PostPreparationIDPieceOK) String() string

type PostPreparationIDPieceParams

type PostPreparationIDPieceParams 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
}

PostPreparationIDPieceParams contains all the parameters to send to the API endpoint

for the post preparation ID piece operation.

Typically these are written to a http.Request.

func NewPostPreparationIDPieceParams

func NewPostPreparationIDPieceParams() *PostPreparationIDPieceParams

NewPostPreparationIDPieceParams creates a new PostPreparationIDPieceParams 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 NewPostPreparationIDPieceParamsWithContext

func NewPostPreparationIDPieceParamsWithContext(ctx context.Context) *PostPreparationIDPieceParams

NewPostPreparationIDPieceParamsWithContext creates a new PostPreparationIDPieceParams object with the ability to set a context for a request.

func NewPostPreparationIDPieceParamsWithHTTPClient

func NewPostPreparationIDPieceParamsWithHTTPClient(client *http.Client) *PostPreparationIDPieceParams

NewPostPreparationIDPieceParamsWithHTTPClient creates a new PostPreparationIDPieceParams object with the ability to set a custom HTTPClient for a request.

func NewPostPreparationIDPieceParamsWithTimeout

func NewPostPreparationIDPieceParamsWithTimeout(timeout time.Duration) *PostPreparationIDPieceParams

NewPostPreparationIDPieceParamsWithTimeout creates a new PostPreparationIDPieceParams object with the ability to set a timeout on a request.

func (*PostPreparationIDPieceParams) SetContext

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

SetContext adds the context to the post preparation ID piece params

func (*PostPreparationIDPieceParams) SetDefaults

func (o *PostPreparationIDPieceParams) SetDefaults()

SetDefaults hydrates default values in the post preparation ID piece params (not the query body).

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

func (*PostPreparationIDPieceParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the post preparation ID piece params

func (*PostPreparationIDPieceParams) SetID

func (o *PostPreparationIDPieceParams) SetID(id string)

SetID adds the id to the post preparation ID piece params

func (*PostPreparationIDPieceParams) SetRequest

SetRequest adds the request to the post preparation ID piece params

func (*PostPreparationIDPieceParams) SetTimeout

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

SetTimeout adds the timeout to the post preparation ID piece params

func (*PostPreparationIDPieceParams) WithContext

WithContext adds the context to the post preparation ID piece params

func (*PostPreparationIDPieceParams) WithDefaults

WithDefaults hydrates default values in the post preparation ID piece params (not the query body).

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

func (*PostPreparationIDPieceParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the post preparation ID piece params

func (*PostPreparationIDPieceParams) WithID

WithID adds the id to the post preparation ID piece params

func (*PostPreparationIDPieceParams) WithRequest

WithRequest adds the request to the post preparation ID piece params

func (*PostPreparationIDPieceParams) WithTimeout

WithTimeout adds the timeout to the post preparation ID piece params

func (*PostPreparationIDPieceParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PostPreparationIDPieceReader

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

PostPreparationIDPieceReader is a Reader for the PostPreparationIDPiece structure.

func (*PostPreparationIDPieceReader) ReadResponse

func (o *PostPreparationIDPieceReader) 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