document

package
v2.0.2 Latest Latest
Warning

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

Go to latest
Published: May 1, 2023 License: Apache-2.0 Imports: 11 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 document API

func (*Client) DocumentContentDownloadContent

func (a *Client) DocumentContentDownloadContent(params *DocumentContentDownloadContentParams, authInfo runtime.ClientAuthInfoWriter) (*DocumentContentDownloadContentOK, error)

DocumentContentDownloadContent bs e t a get content of document given by ID

func (*Client) DocumentGet

func (a *Client) DocumentGet(params *DocumentGetParams, authInfo runtime.ClientAuthInfoWriter) (*DocumentGetOK, error)

DocumentGet bs e t a get document by ID

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

type ClientService

type ClientService interface {
	DocumentContentDownloadContent(params *DocumentContentDownloadContentParams, authInfo runtime.ClientAuthInfoWriter) (*DocumentContentDownloadContentOK, error)

	DocumentGet(params *DocumentGetParams, authInfo runtime.ClientAuthInfoWriter) (*DocumentGetOK, 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 document API client.

type DocumentContentDownloadContentOK

type DocumentContentDownloadContentOK struct {
	Payload strfmt.Base64
}

DocumentContentDownloadContentOK handles this case with default header values.

successful operation

func NewDocumentContentDownloadContentOK

func NewDocumentContentDownloadContentOK() *DocumentContentDownloadContentOK

NewDocumentContentDownloadContentOK creates a DocumentContentDownloadContentOK with default headers values

func (*DocumentContentDownloadContentOK) Error

func (*DocumentContentDownloadContentOK) GetPayload

type DocumentContentDownloadContentParams

type DocumentContentDownloadContentParams struct {

	/*ID
	  ID of document to download content from.

	*/
	ID int32

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

DocumentContentDownloadContentParams contains all the parameters to send to the API endpoint for the document content download content operation typically these are written to a http.Request

func NewDocumentContentDownloadContentParams

func NewDocumentContentDownloadContentParams() *DocumentContentDownloadContentParams

NewDocumentContentDownloadContentParams creates a new DocumentContentDownloadContentParams object with the default values initialized.

func NewDocumentContentDownloadContentParamsWithContext

func NewDocumentContentDownloadContentParamsWithContext(ctx context.Context) *DocumentContentDownloadContentParams

NewDocumentContentDownloadContentParamsWithContext creates a new DocumentContentDownloadContentParams object with the default values initialized, and the ability to set a context for a request

func NewDocumentContentDownloadContentParamsWithHTTPClient

func NewDocumentContentDownloadContentParamsWithHTTPClient(client *http.Client) *DocumentContentDownloadContentParams

NewDocumentContentDownloadContentParamsWithHTTPClient creates a new DocumentContentDownloadContentParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewDocumentContentDownloadContentParamsWithTimeout

func NewDocumentContentDownloadContentParamsWithTimeout(timeout time.Duration) *DocumentContentDownloadContentParams

NewDocumentContentDownloadContentParamsWithTimeout creates a new DocumentContentDownloadContentParams object with the default values initialized, and the ability to set a timeout on a request

func (*DocumentContentDownloadContentParams) SetContext

SetContext adds the context to the document content download content params

func (*DocumentContentDownloadContentParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the document content download content params

func (*DocumentContentDownloadContentParams) SetID

SetID adds the id to the document content download content params

func (*DocumentContentDownloadContentParams) SetTimeout

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

SetTimeout adds the timeout to the document content download content params

func (*DocumentContentDownloadContentParams) WithContext

WithContext adds the context to the document content download content params

func (*DocumentContentDownloadContentParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the document content download content params

func (*DocumentContentDownloadContentParams) WithID

WithID adds the id to the document content download content params

func (*DocumentContentDownloadContentParams) WithTimeout

WithTimeout adds the timeout to the document content download content params

func (*DocumentContentDownloadContentParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DocumentContentDownloadContentReader

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

DocumentContentDownloadContentReader is a Reader for the DocumentContentDownloadContent structure.

func (*DocumentContentDownloadContentReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DocumentGetOK

type DocumentGetOK struct {
	Payload *models.ResponseWrapperDocument
}

DocumentGetOK handles this case with default header values.

successful operation

func NewDocumentGetOK

func NewDocumentGetOK() *DocumentGetOK

NewDocumentGetOK creates a DocumentGetOK with default headers values

func (*DocumentGetOK) Error

func (o *DocumentGetOK) Error() string

func (*DocumentGetOK) GetPayload

func (o *DocumentGetOK) GetPayload() *models.ResponseWrapperDocument

type DocumentGetParams

type DocumentGetParams struct {

	/*Fields
	  Fields filter pattern

	*/
	Fields *string
	/*ID
	  Element ID

	*/
	ID int32

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

DocumentGetParams contains all the parameters to send to the API endpoint for the document get operation typically these are written to a http.Request

func NewDocumentGetParams

func NewDocumentGetParams() *DocumentGetParams

NewDocumentGetParams creates a new DocumentGetParams object with the default values initialized.

func NewDocumentGetParamsWithContext

func NewDocumentGetParamsWithContext(ctx context.Context) *DocumentGetParams

NewDocumentGetParamsWithContext creates a new DocumentGetParams object with the default values initialized, and the ability to set a context for a request

func NewDocumentGetParamsWithHTTPClient

func NewDocumentGetParamsWithHTTPClient(client *http.Client) *DocumentGetParams

NewDocumentGetParamsWithHTTPClient creates a new DocumentGetParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewDocumentGetParamsWithTimeout

func NewDocumentGetParamsWithTimeout(timeout time.Duration) *DocumentGetParams

NewDocumentGetParamsWithTimeout creates a new DocumentGetParams object with the default values initialized, and the ability to set a timeout on a request

func (*DocumentGetParams) SetContext

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

SetContext adds the context to the document get params

func (*DocumentGetParams) SetFields

func (o *DocumentGetParams) SetFields(fields *string)

SetFields adds the fields to the document get params

func (*DocumentGetParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the document get params

func (*DocumentGetParams) SetID

func (o *DocumentGetParams) SetID(id int32)

SetID adds the id to the document get params

func (*DocumentGetParams) SetTimeout

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

SetTimeout adds the timeout to the document get params

func (*DocumentGetParams) WithContext

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

WithContext adds the context to the document get params

func (*DocumentGetParams) WithFields

func (o *DocumentGetParams) WithFields(fields *string) *DocumentGetParams

WithFields adds the fields to the document get params

func (*DocumentGetParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the document get params

func (*DocumentGetParams) WithID

func (o *DocumentGetParams) WithID(id int32) *DocumentGetParams

WithID adds the id to the document get params

func (*DocumentGetParams) WithTimeout

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

WithTimeout adds the timeout to the document get params

func (*DocumentGetParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DocumentGetReader

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

DocumentGetReader is a Reader for the DocumentGet structure.

func (*DocumentGetReader) ReadResponse

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