file

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: 11 Imported by: 1

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 file API

func (*Client) GetFileID

func (a *Client) GetFileID(params *GetFileIDParams, opts ...ClientOption) (*GetFileIDOK, error)

GetFileID gets details about a file

func (*Client) GetFileIDDeals

func (a *Client) GetFileIDDeals(params *GetFileIDDealsParams, opts ...ClientOption) (*GetFileIDDealsOK, error)

GetFileIDDeals gets all deals that have been made for a file

func (*Client) PostFileIDPrepareToPack

func (a *Client) PostFileIDPrepareToPack(params *PostFileIDPrepareToPackParams, opts ...ClientOption) (*PostFileIDPrepareToPackOK, error)

PostFileIDPrepareToPack prepares job for a given item

func (*Client) PostPreparationIDSourceNameFile

func (a *Client) PostPreparationIDSourceNameFile(params *PostPreparationIDSourceNameFileParams, opts ...ClientOption) (*PostPreparationIDSourceNameFileOK, error)

PostPreparationIDSourceNameFile pushes a file to be queued

Tells Singularity that something is ready to be grabbed for data 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 {
	GetFileID(params *GetFileIDParams, opts ...ClientOption) (*GetFileIDOK, error)

	GetFileIDDeals(params *GetFileIDDealsParams, opts ...ClientOption) (*GetFileIDDealsOK, error)

	PostFileIDPrepareToPack(params *PostFileIDPrepareToPackParams, opts ...ClientOption) (*PostFileIDPrepareToPackOK, error)

	PostPreparationIDSourceNameFile(params *PostPreparationIDSourceNameFileParams, opts ...ClientOption) (*PostPreparationIDSourceNameFileOK, 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 file API client.

type GetFileIDDealsInternalServerError

type GetFileIDDealsInternalServerError struct {
	Payload *models.APIHTTPError
}

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

Internal Server Error

func NewGetFileIDDealsInternalServerError

func NewGetFileIDDealsInternalServerError() *GetFileIDDealsInternalServerError

NewGetFileIDDealsInternalServerError creates a GetFileIDDealsInternalServerError with default headers values

func (*GetFileIDDealsInternalServerError) Code

Code gets the status code for the get file Id deals internal server error response

func (*GetFileIDDealsInternalServerError) Error

func (*GetFileIDDealsInternalServerError) GetPayload

func (*GetFileIDDealsInternalServerError) IsClientError

func (o *GetFileIDDealsInternalServerError) IsClientError() bool

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

func (*GetFileIDDealsInternalServerError) IsCode

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

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

func (*GetFileIDDealsInternalServerError) IsRedirect

func (o *GetFileIDDealsInternalServerError) IsRedirect() bool

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

func (*GetFileIDDealsInternalServerError) IsServerError

func (o *GetFileIDDealsInternalServerError) IsServerError() bool

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

func (*GetFileIDDealsInternalServerError) IsSuccess

func (o *GetFileIDDealsInternalServerError) IsSuccess() bool

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

func (*GetFileIDDealsInternalServerError) String

type GetFileIDDealsOK

type GetFileIDDealsOK struct {
	Payload []*models.ModelDeal
}

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

OK

func NewGetFileIDDealsOK

func NewGetFileIDDealsOK() *GetFileIDDealsOK

NewGetFileIDDealsOK creates a GetFileIDDealsOK with default headers values

func (*GetFileIDDealsOK) Code

func (o *GetFileIDDealsOK) Code() int

Code gets the status code for the get file Id deals o k response

func (*GetFileIDDealsOK) Error

func (o *GetFileIDDealsOK) Error() string

func (*GetFileIDDealsOK) GetPayload

func (o *GetFileIDDealsOK) GetPayload() []*models.ModelDeal

func (*GetFileIDDealsOK) IsClientError

func (o *GetFileIDDealsOK) IsClientError() bool

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

func (*GetFileIDDealsOK) IsCode

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

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

func (*GetFileIDDealsOK) IsRedirect

func (o *GetFileIDDealsOK) IsRedirect() bool

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

func (*GetFileIDDealsOK) IsServerError

func (o *GetFileIDDealsOK) IsServerError() bool

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

func (*GetFileIDDealsOK) IsSuccess

func (o *GetFileIDDealsOK) IsSuccess() bool

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

func (*GetFileIDDealsOK) String

func (o *GetFileIDDealsOK) String() string

type GetFileIDDealsParams

type GetFileIDDealsParams struct {

	/* ID.

	   File ID
	*/
	ID int64

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

GetFileIDDealsParams contains all the parameters to send to the API endpoint

for the get file ID deals operation.

Typically these are written to a http.Request.

func NewGetFileIDDealsParams

func NewGetFileIDDealsParams() *GetFileIDDealsParams

NewGetFileIDDealsParams creates a new GetFileIDDealsParams 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 NewGetFileIDDealsParamsWithContext

func NewGetFileIDDealsParamsWithContext(ctx context.Context) *GetFileIDDealsParams

NewGetFileIDDealsParamsWithContext creates a new GetFileIDDealsParams object with the ability to set a context for a request.

func NewGetFileIDDealsParamsWithHTTPClient

func NewGetFileIDDealsParamsWithHTTPClient(client *http.Client) *GetFileIDDealsParams

NewGetFileIDDealsParamsWithHTTPClient creates a new GetFileIDDealsParams object with the ability to set a custom HTTPClient for a request.

func NewGetFileIDDealsParamsWithTimeout

func NewGetFileIDDealsParamsWithTimeout(timeout time.Duration) *GetFileIDDealsParams

NewGetFileIDDealsParamsWithTimeout creates a new GetFileIDDealsParams object with the ability to set a timeout on a request.

func (*GetFileIDDealsParams) SetContext

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

SetContext adds the context to the get file ID deals params

func (*GetFileIDDealsParams) SetDefaults

func (o *GetFileIDDealsParams) SetDefaults()

SetDefaults hydrates default values in the get file ID deals params (not the query body).

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

func (*GetFileIDDealsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get file ID deals params

func (*GetFileIDDealsParams) SetID

func (o *GetFileIDDealsParams) SetID(id int64)

SetID adds the id to the get file ID deals params

func (*GetFileIDDealsParams) SetTimeout

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

SetTimeout adds the timeout to the get file ID deals params

func (*GetFileIDDealsParams) WithContext

WithContext adds the context to the get file ID deals params

func (*GetFileIDDealsParams) WithDefaults

func (o *GetFileIDDealsParams) WithDefaults() *GetFileIDDealsParams

WithDefaults hydrates default values in the get file ID deals params (not the query body).

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

func (*GetFileIDDealsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get file ID deals params

func (*GetFileIDDealsParams) WithID

WithID adds the id to the get file ID deals params

func (*GetFileIDDealsParams) WithTimeout

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

WithTimeout adds the timeout to the get file ID deals params

func (*GetFileIDDealsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetFileIDDealsReader

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

GetFileIDDealsReader is a Reader for the GetFileIDDeals structure.

func (*GetFileIDDealsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetFileIDInternalServerError

type GetFileIDInternalServerError struct {
	Payload *models.APIHTTPError
}

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

Internal Server Error

func NewGetFileIDInternalServerError

func NewGetFileIDInternalServerError() *GetFileIDInternalServerError

NewGetFileIDInternalServerError creates a GetFileIDInternalServerError with default headers values

func (*GetFileIDInternalServerError) Code

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

func (*GetFileIDInternalServerError) Error

func (*GetFileIDInternalServerError) GetPayload

func (*GetFileIDInternalServerError) IsClientError

func (o *GetFileIDInternalServerError) IsClientError() bool

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

func (*GetFileIDInternalServerError) IsCode

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

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

func (*GetFileIDInternalServerError) IsRedirect

func (o *GetFileIDInternalServerError) IsRedirect() bool

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

func (*GetFileIDInternalServerError) IsServerError

func (o *GetFileIDInternalServerError) IsServerError() bool

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

func (*GetFileIDInternalServerError) IsSuccess

func (o *GetFileIDInternalServerError) IsSuccess() bool

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

func (*GetFileIDInternalServerError) String

type GetFileIDOK

type GetFileIDOK struct {
	Payload *models.ModelFile
}

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

OK

func NewGetFileIDOK

func NewGetFileIDOK() *GetFileIDOK

NewGetFileIDOK creates a GetFileIDOK with default headers values

func (*GetFileIDOK) Code

func (o *GetFileIDOK) Code() int

Code gets the status code for the get file Id o k response

func (*GetFileIDOK) Error

func (o *GetFileIDOK) Error() string

func (*GetFileIDOK) GetPayload

func (o *GetFileIDOK) GetPayload() *models.ModelFile

func (*GetFileIDOK) IsClientError

func (o *GetFileIDOK) IsClientError() bool

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

func (*GetFileIDOK) IsCode

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

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

func (*GetFileIDOK) IsRedirect

func (o *GetFileIDOK) IsRedirect() bool

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

func (*GetFileIDOK) IsServerError

func (o *GetFileIDOK) IsServerError() bool

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

func (*GetFileIDOK) IsSuccess

func (o *GetFileIDOK) IsSuccess() bool

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

func (*GetFileIDOK) String

func (o *GetFileIDOK) String() string

type GetFileIDParams

type GetFileIDParams struct {

	/* ID.

	   File ID
	*/
	ID int64

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

GetFileIDParams contains all the parameters to send to the API endpoint

for the get file ID operation.

Typically these are written to a http.Request.

func NewGetFileIDParams

func NewGetFileIDParams() *GetFileIDParams

NewGetFileIDParams creates a new GetFileIDParams 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 NewGetFileIDParamsWithContext

func NewGetFileIDParamsWithContext(ctx context.Context) *GetFileIDParams

NewGetFileIDParamsWithContext creates a new GetFileIDParams object with the ability to set a context for a request.

func NewGetFileIDParamsWithHTTPClient

func NewGetFileIDParamsWithHTTPClient(client *http.Client) *GetFileIDParams

NewGetFileIDParamsWithHTTPClient creates a new GetFileIDParams object with the ability to set a custom HTTPClient for a request.

func NewGetFileIDParamsWithTimeout

func NewGetFileIDParamsWithTimeout(timeout time.Duration) *GetFileIDParams

NewGetFileIDParamsWithTimeout creates a new GetFileIDParams object with the ability to set a timeout on a request.

func (*GetFileIDParams) SetContext

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

SetContext adds the context to the get file ID params

func (*GetFileIDParams) SetDefaults

func (o *GetFileIDParams) SetDefaults()

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

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

func (*GetFileIDParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get file ID params

func (*GetFileIDParams) SetID

func (o *GetFileIDParams) SetID(id int64)

SetID adds the id to the get file ID params

func (*GetFileIDParams) SetTimeout

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

SetTimeout adds the timeout to the get file ID params

func (*GetFileIDParams) WithContext

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

WithContext adds the context to the get file ID params

func (*GetFileIDParams) WithDefaults

func (o *GetFileIDParams) WithDefaults() *GetFileIDParams

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

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

func (*GetFileIDParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get file ID params

func (*GetFileIDParams) WithID

func (o *GetFileIDParams) WithID(id int64) *GetFileIDParams

WithID adds the id to the get file ID params

func (*GetFileIDParams) WithTimeout

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

WithTimeout adds the timeout to the get file ID params

func (*GetFileIDParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetFileIDReader

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

GetFileIDReader is a Reader for the GetFileID structure.

func (*GetFileIDReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PostFileIDPrepareToPackBadRequest

type PostFileIDPrepareToPackBadRequest struct {
	Payload string
}

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

Bad Request

func NewPostFileIDPrepareToPackBadRequest

func NewPostFileIDPrepareToPackBadRequest() *PostFileIDPrepareToPackBadRequest

NewPostFileIDPrepareToPackBadRequest creates a PostFileIDPrepareToPackBadRequest with default headers values

func (*PostFileIDPrepareToPackBadRequest) Code

Code gets the status code for the post file Id prepare to pack bad request response

func (*PostFileIDPrepareToPackBadRequest) Error

func (*PostFileIDPrepareToPackBadRequest) GetPayload

func (o *PostFileIDPrepareToPackBadRequest) GetPayload() string

func (*PostFileIDPrepareToPackBadRequest) IsClientError

func (o *PostFileIDPrepareToPackBadRequest) IsClientError() bool

IsClientError returns true when this post file Id prepare to pack bad request response has a 4xx status code

func (*PostFileIDPrepareToPackBadRequest) IsCode

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

IsCode returns true when this post file Id prepare to pack bad request response a status code equal to that given

func (*PostFileIDPrepareToPackBadRequest) IsRedirect

func (o *PostFileIDPrepareToPackBadRequest) IsRedirect() bool

IsRedirect returns true when this post file Id prepare to pack bad request response has a 3xx status code

func (*PostFileIDPrepareToPackBadRequest) IsServerError

func (o *PostFileIDPrepareToPackBadRequest) IsServerError() bool

IsServerError returns true when this post file Id prepare to pack bad request response has a 5xx status code

func (*PostFileIDPrepareToPackBadRequest) IsSuccess

func (o *PostFileIDPrepareToPackBadRequest) IsSuccess() bool

IsSuccess returns true when this post file Id prepare to pack bad request response has a 2xx status code

func (*PostFileIDPrepareToPackBadRequest) String

type PostFileIDPrepareToPackInternalServerError

type PostFileIDPrepareToPackInternalServerError struct {
	Payload string
}

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

Internal Server Error

func NewPostFileIDPrepareToPackInternalServerError

func NewPostFileIDPrepareToPackInternalServerError() *PostFileIDPrepareToPackInternalServerError

NewPostFileIDPrepareToPackInternalServerError creates a PostFileIDPrepareToPackInternalServerError with default headers values

func (*PostFileIDPrepareToPackInternalServerError) Code

Code gets the status code for the post file Id prepare to pack internal server error response

func (*PostFileIDPrepareToPackInternalServerError) Error

func (*PostFileIDPrepareToPackInternalServerError) GetPayload

func (*PostFileIDPrepareToPackInternalServerError) IsClientError

IsClientError returns true when this post file Id prepare to pack internal server error response has a 4xx status code

func (*PostFileIDPrepareToPackInternalServerError) IsCode

IsCode returns true when this post file Id prepare to pack internal server error response a status code equal to that given

func (*PostFileIDPrepareToPackInternalServerError) IsRedirect

IsRedirect returns true when this post file Id prepare to pack internal server error response has a 3xx status code

func (*PostFileIDPrepareToPackInternalServerError) IsServerError

IsServerError returns true when this post file Id prepare to pack internal server error response has a 5xx status code

func (*PostFileIDPrepareToPackInternalServerError) IsSuccess

IsSuccess returns true when this post file Id prepare to pack internal server error response has a 2xx status code

func (*PostFileIDPrepareToPackInternalServerError) String

type PostFileIDPrepareToPackOK

type PostFileIDPrepareToPackOK struct {
	Payload int64
}

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

OK

func NewPostFileIDPrepareToPackOK

func NewPostFileIDPrepareToPackOK() *PostFileIDPrepareToPackOK

NewPostFileIDPrepareToPackOK creates a PostFileIDPrepareToPackOK with default headers values

func (*PostFileIDPrepareToPackOK) Code

func (o *PostFileIDPrepareToPackOK) Code() int

Code gets the status code for the post file Id prepare to pack o k response

func (*PostFileIDPrepareToPackOK) Error

func (o *PostFileIDPrepareToPackOK) Error() string

func (*PostFileIDPrepareToPackOK) GetPayload

func (o *PostFileIDPrepareToPackOK) GetPayload() int64

func (*PostFileIDPrepareToPackOK) IsClientError

func (o *PostFileIDPrepareToPackOK) IsClientError() bool

IsClientError returns true when this post file Id prepare to pack o k response has a 4xx status code

func (*PostFileIDPrepareToPackOK) IsCode

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

IsCode returns true when this post file Id prepare to pack o k response a status code equal to that given

func (*PostFileIDPrepareToPackOK) IsRedirect

func (o *PostFileIDPrepareToPackOK) IsRedirect() bool

IsRedirect returns true when this post file Id prepare to pack o k response has a 3xx status code

func (*PostFileIDPrepareToPackOK) IsServerError

func (o *PostFileIDPrepareToPackOK) IsServerError() bool

IsServerError returns true when this post file Id prepare to pack o k response has a 5xx status code

func (*PostFileIDPrepareToPackOK) IsSuccess

func (o *PostFileIDPrepareToPackOK) IsSuccess() bool

IsSuccess returns true when this post file Id prepare to pack o k response has a 2xx status code

func (*PostFileIDPrepareToPackOK) String

func (o *PostFileIDPrepareToPackOK) String() string

type PostFileIDPrepareToPackParams

type PostFileIDPrepareToPackParams struct {

	/* ID.

	   File ID
	*/
	ID int64

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

PostFileIDPrepareToPackParams contains all the parameters to send to the API endpoint

for the post file ID prepare to pack operation.

Typically these are written to a http.Request.

func NewPostFileIDPrepareToPackParams

func NewPostFileIDPrepareToPackParams() *PostFileIDPrepareToPackParams

NewPostFileIDPrepareToPackParams creates a new PostFileIDPrepareToPackParams 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 NewPostFileIDPrepareToPackParamsWithContext

func NewPostFileIDPrepareToPackParamsWithContext(ctx context.Context) *PostFileIDPrepareToPackParams

NewPostFileIDPrepareToPackParamsWithContext creates a new PostFileIDPrepareToPackParams object with the ability to set a context for a request.

func NewPostFileIDPrepareToPackParamsWithHTTPClient

func NewPostFileIDPrepareToPackParamsWithHTTPClient(client *http.Client) *PostFileIDPrepareToPackParams

NewPostFileIDPrepareToPackParamsWithHTTPClient creates a new PostFileIDPrepareToPackParams object with the ability to set a custom HTTPClient for a request.

func NewPostFileIDPrepareToPackParamsWithTimeout

func NewPostFileIDPrepareToPackParamsWithTimeout(timeout time.Duration) *PostFileIDPrepareToPackParams

NewPostFileIDPrepareToPackParamsWithTimeout creates a new PostFileIDPrepareToPackParams object with the ability to set a timeout on a request.

func (*PostFileIDPrepareToPackParams) SetContext

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

SetContext adds the context to the post file ID prepare to pack params

func (*PostFileIDPrepareToPackParams) SetDefaults

func (o *PostFileIDPrepareToPackParams) SetDefaults()

SetDefaults hydrates default values in the post file ID prepare to pack params (not the query body).

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

func (*PostFileIDPrepareToPackParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the post file ID prepare to pack params

func (*PostFileIDPrepareToPackParams) SetID

func (o *PostFileIDPrepareToPackParams) SetID(id int64)

SetID adds the id to the post file ID prepare to pack params

func (*PostFileIDPrepareToPackParams) SetTimeout

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

SetTimeout adds the timeout to the post file ID prepare to pack params

func (*PostFileIDPrepareToPackParams) WithContext

WithContext adds the context to the post file ID prepare to pack params

func (*PostFileIDPrepareToPackParams) WithDefaults

WithDefaults hydrates default values in the post file ID prepare to pack params (not the query body).

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

func (*PostFileIDPrepareToPackParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the post file ID prepare to pack params

func (*PostFileIDPrepareToPackParams) WithID

WithID adds the id to the post file ID prepare to pack params

func (*PostFileIDPrepareToPackParams) WithTimeout

WithTimeout adds the timeout to the post file ID prepare to pack params

func (*PostFileIDPrepareToPackParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PostFileIDPrepareToPackReader

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

PostFileIDPrepareToPackReader is a Reader for the PostFileIDPrepareToPack structure.

func (*PostFileIDPrepareToPackReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PostPreparationIDSourceNameFileBadRequest

type PostPreparationIDSourceNameFileBadRequest struct {
	Payload *models.APIHTTPError
}

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

Bad Request

func NewPostPreparationIDSourceNameFileBadRequest

func NewPostPreparationIDSourceNameFileBadRequest() *PostPreparationIDSourceNameFileBadRequest

NewPostPreparationIDSourceNameFileBadRequest creates a PostPreparationIDSourceNameFileBadRequest with default headers values

func (*PostPreparationIDSourceNameFileBadRequest) Code

Code gets the status code for the post preparation Id source name file bad request response

func (*PostPreparationIDSourceNameFileBadRequest) Error

func (*PostPreparationIDSourceNameFileBadRequest) GetPayload

func (*PostPreparationIDSourceNameFileBadRequest) IsClientError

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

func (*PostPreparationIDSourceNameFileBadRequest) IsCode

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

func (*PostPreparationIDSourceNameFileBadRequest) IsRedirect

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

func (*PostPreparationIDSourceNameFileBadRequest) IsServerError

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

func (*PostPreparationIDSourceNameFileBadRequest) IsSuccess

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

func (*PostPreparationIDSourceNameFileBadRequest) String

type PostPreparationIDSourceNameFileInternalServerError

type PostPreparationIDSourceNameFileInternalServerError struct {
	Payload *models.APIHTTPError
}

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

Internal Server Error

func NewPostPreparationIDSourceNameFileInternalServerError

func NewPostPreparationIDSourceNameFileInternalServerError() *PostPreparationIDSourceNameFileInternalServerError

NewPostPreparationIDSourceNameFileInternalServerError creates a PostPreparationIDSourceNameFileInternalServerError with default headers values

func (*PostPreparationIDSourceNameFileInternalServerError) Code

Code gets the status code for the post preparation Id source name file internal server error response

func (*PostPreparationIDSourceNameFileInternalServerError) Error

func (*PostPreparationIDSourceNameFileInternalServerError) GetPayload

func (*PostPreparationIDSourceNameFileInternalServerError) IsClientError

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

func (*PostPreparationIDSourceNameFileInternalServerError) IsCode

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

func (*PostPreparationIDSourceNameFileInternalServerError) IsRedirect

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

func (*PostPreparationIDSourceNameFileInternalServerError) IsServerError

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

func (*PostPreparationIDSourceNameFileInternalServerError) IsSuccess

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

func (*PostPreparationIDSourceNameFileInternalServerError) String

type PostPreparationIDSourceNameFileOK

type PostPreparationIDSourceNameFileOK struct {
	Payload *models.ModelFile
}

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

OK

func NewPostPreparationIDSourceNameFileOK

func NewPostPreparationIDSourceNameFileOK() *PostPreparationIDSourceNameFileOK

NewPostPreparationIDSourceNameFileOK creates a PostPreparationIDSourceNameFileOK with default headers values

func (*PostPreparationIDSourceNameFileOK) Code

Code gets the status code for the post preparation Id source name file o k response

func (*PostPreparationIDSourceNameFileOK) Error

func (*PostPreparationIDSourceNameFileOK) GetPayload

func (*PostPreparationIDSourceNameFileOK) IsClientError

func (o *PostPreparationIDSourceNameFileOK) IsClientError() bool

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

func (*PostPreparationIDSourceNameFileOK) IsCode

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

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

func (*PostPreparationIDSourceNameFileOK) IsRedirect

func (o *PostPreparationIDSourceNameFileOK) IsRedirect() bool

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

func (*PostPreparationIDSourceNameFileOK) IsServerError

func (o *PostPreparationIDSourceNameFileOK) IsServerError() bool

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

func (*PostPreparationIDSourceNameFileOK) IsSuccess

func (o *PostPreparationIDSourceNameFileOK) IsSuccess() bool

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

func (*PostPreparationIDSourceNameFileOK) String

type PostPreparationIDSourceNameFileParams

type PostPreparationIDSourceNameFileParams struct {

	/* File.

	   File Info
	*/
	File *models.FileInfo

	/* ID.

	   Preparation ID or name
	*/
	ID string

	/* Name.

	   Source storage ID or name
	*/
	Name string

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

PostPreparationIDSourceNameFileParams contains all the parameters to send to the API endpoint

for the post preparation ID source name file operation.

Typically these are written to a http.Request.

func NewPostPreparationIDSourceNameFileParams

func NewPostPreparationIDSourceNameFileParams() *PostPreparationIDSourceNameFileParams

NewPostPreparationIDSourceNameFileParams creates a new PostPreparationIDSourceNameFileParams 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 NewPostPreparationIDSourceNameFileParamsWithContext

func NewPostPreparationIDSourceNameFileParamsWithContext(ctx context.Context) *PostPreparationIDSourceNameFileParams

NewPostPreparationIDSourceNameFileParamsWithContext creates a new PostPreparationIDSourceNameFileParams object with the ability to set a context for a request.

func NewPostPreparationIDSourceNameFileParamsWithHTTPClient

func NewPostPreparationIDSourceNameFileParamsWithHTTPClient(client *http.Client) *PostPreparationIDSourceNameFileParams

NewPostPreparationIDSourceNameFileParamsWithHTTPClient creates a new PostPreparationIDSourceNameFileParams object with the ability to set a custom HTTPClient for a request.

func NewPostPreparationIDSourceNameFileParamsWithTimeout

func NewPostPreparationIDSourceNameFileParamsWithTimeout(timeout time.Duration) *PostPreparationIDSourceNameFileParams

NewPostPreparationIDSourceNameFileParamsWithTimeout creates a new PostPreparationIDSourceNameFileParams object with the ability to set a timeout on a request.

func (*PostPreparationIDSourceNameFileParams) SetContext

SetContext adds the context to the post preparation ID source name file params

func (*PostPreparationIDSourceNameFileParams) SetDefaults

func (o *PostPreparationIDSourceNameFileParams) SetDefaults()

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

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

func (*PostPreparationIDSourceNameFileParams) SetFile

SetFile adds the file to the post preparation ID source name file params

func (*PostPreparationIDSourceNameFileParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the post preparation ID source name file params

func (*PostPreparationIDSourceNameFileParams) SetID

SetID adds the id to the post preparation ID source name file params

func (*PostPreparationIDSourceNameFileParams) SetName

SetName adds the name to the post preparation ID source name file params

func (*PostPreparationIDSourceNameFileParams) SetTimeout

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

SetTimeout adds the timeout to the post preparation ID source name file params

func (*PostPreparationIDSourceNameFileParams) WithContext

WithContext adds the context to the post preparation ID source name file params

func (*PostPreparationIDSourceNameFileParams) WithDefaults

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

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

func (*PostPreparationIDSourceNameFileParams) WithFile

WithFile adds the file to the post preparation ID source name file params

func (*PostPreparationIDSourceNameFileParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the post preparation ID source name file params

func (*PostPreparationIDSourceNameFileParams) WithID

WithID adds the id to the post preparation ID source name file params

func (*PostPreparationIDSourceNameFileParams) WithName

WithName adds the name to the post preparation ID source name file params

func (*PostPreparationIDSourceNameFileParams) WithTimeout

WithTimeout adds the timeout to the post preparation ID source name file params

func (*PostPreparationIDSourceNameFileParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PostPreparationIDSourceNameFileReader

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

PostPreparationIDSourceNameFileReader is a Reader for the PostPreparationIDSourceNameFile structure.

func (*PostPreparationIDSourceNameFileReader) ReadResponse

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