document

package
v0.0.0-...-a3884e5 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2024 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) RestColServiceCreateDocument

func (a *Client) RestColServiceCreateDocument(params *RestColServiceCreateDocumentParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RestColServiceCreateDocumentOK, error)

RestColServiceCreateDocument create a document to the collection

func (*Client) RestColServiceCreateDocument2

func (a *Client) RestColServiceCreateDocument2(params *RestColServiceCreateDocument2Params, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RestColServiceCreateDocument2OK, error)

RestColServiceCreateDocument2 create a document to the collection

func (*Client) RestColServiceDeleteDocument

func (a *Client) RestColServiceDeleteDocument(params *RestColServiceDeleteDocumentParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RestColServiceDeleteDocumentOK, error)

RestColServiceDeleteDocument deletes document endpoint is a generic endpoint for deleting a specific data

Remove the specific document from the collection

func (*Client) RestColServiceGetDocument

func (a *Client) RestColServiceGetDocument(params *RestColServiceGetDocumentParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RestColServiceGetDocumentOK, error)

RestColServiceGetDocument gets document endpoint is a generic endpoint for retrieving data across multiple collections

retrieve a document information from the collection.

func (*Client) RestColServiceQueryDocument

func (a *Client) RestColServiceQueryDocument(params *RestColServiceQueryDocumentParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RestColServiceQueryDocumentOK, error)

RestColServiceQueryDocument run query against a collection, return documents matched the query

func (*Client) RestColServiceQueryDocumentsStream

func (a *Client) RestColServiceQueryDocumentsStream(params *RestColServiceQueryDocumentsStreamParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RestColServiceQueryDocumentsStreamOK, error)

RestColServiceQueryDocumentsStream run query against a collection, return documents in streaming which matched the query

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 {
	RestColServiceCreateDocument(params *RestColServiceCreateDocumentParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RestColServiceCreateDocumentOK, error)

	RestColServiceCreateDocument2(params *RestColServiceCreateDocument2Params, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RestColServiceCreateDocument2OK, error)

	RestColServiceDeleteDocument(params *RestColServiceDeleteDocumentParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RestColServiceDeleteDocumentOK, error)

	RestColServiceGetDocument(params *RestColServiceGetDocumentParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RestColServiceGetDocumentOK, error)

	RestColServiceQueryDocument(params *RestColServiceQueryDocumentParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RestColServiceQueryDocumentOK, error)

	RestColServiceQueryDocumentsStream(params *RestColServiceQueryDocumentsStreamParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RestColServiceQueryDocumentsStreamOK, 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 RestColServiceCreateDocument2Default

type RestColServiceCreateDocument2Default struct {
	Payload *models.RPCStatus
	// contains filtered or unexported fields
}

RestColServiceCreateDocument2Default describes a response with status code -1, with default header values.

An unexpected error response.

func NewRestColServiceCreateDocument2Default

func NewRestColServiceCreateDocument2Default(code int) *RestColServiceCreateDocument2Default

NewRestColServiceCreateDocument2Default creates a RestColServiceCreateDocument2Default with default headers values

func (*RestColServiceCreateDocument2Default) Code

Code gets the status code for the rest col service create document2 default response

func (*RestColServiceCreateDocument2Default) Error

func (*RestColServiceCreateDocument2Default) GetPayload

func (*RestColServiceCreateDocument2Default) IsClientError

func (o *RestColServiceCreateDocument2Default) IsClientError() bool

IsClientError returns true when this rest col service create document2 default response has a 4xx status code

func (*RestColServiceCreateDocument2Default) IsCode

IsCode returns true when this rest col service create document2 default response a status code equal to that given

func (*RestColServiceCreateDocument2Default) IsRedirect

IsRedirect returns true when this rest col service create document2 default response has a 3xx status code

func (*RestColServiceCreateDocument2Default) IsServerError

func (o *RestColServiceCreateDocument2Default) IsServerError() bool

IsServerError returns true when this rest col service create document2 default response has a 5xx status code

func (*RestColServiceCreateDocument2Default) IsSuccess

IsSuccess returns true when this rest col service create document2 default response has a 2xx status code

func (*RestColServiceCreateDocument2Default) String

type RestColServiceCreateDocument2OK

type RestColServiceCreateDocument2OK struct {
	Payload *models.APICreateDocumentResponse
}

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

A successful response.

func NewRestColServiceCreateDocument2OK

func NewRestColServiceCreateDocument2OK() *RestColServiceCreateDocument2OK

NewRestColServiceCreateDocument2OK creates a RestColServiceCreateDocument2OK with default headers values

func (*RestColServiceCreateDocument2OK) Code

Code gets the status code for the rest col service create document2 o k response

func (*RestColServiceCreateDocument2OK) Error

func (*RestColServiceCreateDocument2OK) GetPayload

func (*RestColServiceCreateDocument2OK) IsClientError

func (o *RestColServiceCreateDocument2OK) IsClientError() bool

IsClientError returns true when this rest col service create document2 o k response has a 4xx status code

func (*RestColServiceCreateDocument2OK) IsCode

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

IsCode returns true when this rest col service create document2 o k response a status code equal to that given

func (*RestColServiceCreateDocument2OK) IsRedirect

func (o *RestColServiceCreateDocument2OK) IsRedirect() bool

IsRedirect returns true when this rest col service create document2 o k response has a 3xx status code

func (*RestColServiceCreateDocument2OK) IsServerError

func (o *RestColServiceCreateDocument2OK) IsServerError() bool

IsServerError returns true when this rest col service create document2 o k response has a 5xx status code

func (*RestColServiceCreateDocument2OK) IsSuccess

func (o *RestColServiceCreateDocument2OK) IsSuccess() bool

IsSuccess returns true when this rest col service create document2 o k response has a 2xx status code

func (*RestColServiceCreateDocument2OK) String

type RestColServiceCreateDocument2Params

type RestColServiceCreateDocument2Params struct {

	// Body.
	Body *models.RestColServiceCreateDocumentBody

	// CollectionID.
	CollectionID string

	// ProjectID.
	ProjectID string

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

RestColServiceCreateDocument2Params contains all the parameters to send to the API endpoint

for the rest col service create document2 operation.

Typically these are written to a http.Request.

func NewRestColServiceCreateDocument2Params

func NewRestColServiceCreateDocument2Params() *RestColServiceCreateDocument2Params

NewRestColServiceCreateDocument2Params creates a new RestColServiceCreateDocument2Params 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 NewRestColServiceCreateDocument2ParamsWithContext

func NewRestColServiceCreateDocument2ParamsWithContext(ctx context.Context) *RestColServiceCreateDocument2Params

NewRestColServiceCreateDocument2ParamsWithContext creates a new RestColServiceCreateDocument2Params object with the ability to set a context for a request.

func NewRestColServiceCreateDocument2ParamsWithHTTPClient

func NewRestColServiceCreateDocument2ParamsWithHTTPClient(client *http.Client) *RestColServiceCreateDocument2Params

NewRestColServiceCreateDocument2ParamsWithHTTPClient creates a new RestColServiceCreateDocument2Params object with the ability to set a custom HTTPClient for a request.

func NewRestColServiceCreateDocument2ParamsWithTimeout

func NewRestColServiceCreateDocument2ParamsWithTimeout(timeout time.Duration) *RestColServiceCreateDocument2Params

NewRestColServiceCreateDocument2ParamsWithTimeout creates a new RestColServiceCreateDocument2Params object with the ability to set a timeout on a request.

func (*RestColServiceCreateDocument2Params) SetBody

SetBody adds the body to the rest col service create document2 params

func (*RestColServiceCreateDocument2Params) SetCollectionID

func (o *RestColServiceCreateDocument2Params) SetCollectionID(collectionID string)

SetCollectionID adds the collectionId to the rest col service create document2 params

func (*RestColServiceCreateDocument2Params) SetContext

SetContext adds the context to the rest col service create document2 params

func (*RestColServiceCreateDocument2Params) SetDefaults

func (o *RestColServiceCreateDocument2Params) SetDefaults()

SetDefaults hydrates default values in the rest col service create document2 params (not the query body).

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

func (*RestColServiceCreateDocument2Params) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the rest col service create document2 params

func (*RestColServiceCreateDocument2Params) SetProjectID

func (o *RestColServiceCreateDocument2Params) SetProjectID(projectID string)

SetProjectID adds the projectId to the rest col service create document2 params

func (*RestColServiceCreateDocument2Params) SetTimeout

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

SetTimeout adds the timeout to the rest col service create document2 params

func (*RestColServiceCreateDocument2Params) WithBody

WithBody adds the body to the rest col service create document2 params

func (*RestColServiceCreateDocument2Params) WithCollectionID

WithCollectionID adds the collectionID to the rest col service create document2 params

func (*RestColServiceCreateDocument2Params) WithContext

WithContext adds the context to the rest col service create document2 params

func (*RestColServiceCreateDocument2Params) WithDefaults

WithDefaults hydrates default values in the rest col service create document2 params (not the query body).

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

func (*RestColServiceCreateDocument2Params) WithHTTPClient

WithHTTPClient adds the HTTPClient to the rest col service create document2 params

func (*RestColServiceCreateDocument2Params) WithProjectID

WithProjectID adds the projectID to the rest col service create document2 params

func (*RestColServiceCreateDocument2Params) WithTimeout

WithTimeout adds the timeout to the rest col service create document2 params

func (*RestColServiceCreateDocument2Params) WriteToRequest

WriteToRequest writes these params to a swagger request

type RestColServiceCreateDocument2Reader

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

RestColServiceCreateDocument2Reader is a Reader for the RestColServiceCreateDocument2 structure.

func (*RestColServiceCreateDocument2Reader) ReadResponse

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

ReadResponse reads a server response into the received o.

type RestColServiceCreateDocumentDefault

type RestColServiceCreateDocumentDefault struct {
	Payload *models.RPCStatus
	// contains filtered or unexported fields
}

RestColServiceCreateDocumentDefault describes a response with status code -1, with default header values.

An unexpected error response.

func NewRestColServiceCreateDocumentDefault

func NewRestColServiceCreateDocumentDefault(code int) *RestColServiceCreateDocumentDefault

NewRestColServiceCreateDocumentDefault creates a RestColServiceCreateDocumentDefault with default headers values

func (*RestColServiceCreateDocumentDefault) Code

Code gets the status code for the rest col service create document default response

func (*RestColServiceCreateDocumentDefault) Error

func (*RestColServiceCreateDocumentDefault) GetPayload

func (*RestColServiceCreateDocumentDefault) IsClientError

func (o *RestColServiceCreateDocumentDefault) IsClientError() bool

IsClientError returns true when this rest col service create document default response has a 4xx status code

func (*RestColServiceCreateDocumentDefault) IsCode

IsCode returns true when this rest col service create document default response a status code equal to that given

func (*RestColServiceCreateDocumentDefault) IsRedirect

func (o *RestColServiceCreateDocumentDefault) IsRedirect() bool

IsRedirect returns true when this rest col service create document default response has a 3xx status code

func (*RestColServiceCreateDocumentDefault) IsServerError

func (o *RestColServiceCreateDocumentDefault) IsServerError() bool

IsServerError returns true when this rest col service create document default response has a 5xx status code

func (*RestColServiceCreateDocumentDefault) IsSuccess

IsSuccess returns true when this rest col service create document default response has a 2xx status code

func (*RestColServiceCreateDocumentDefault) String

type RestColServiceCreateDocumentOK

type RestColServiceCreateDocumentOK struct {
	Payload *models.APICreateDocumentResponse
}

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

A successful response.

func NewRestColServiceCreateDocumentOK

func NewRestColServiceCreateDocumentOK() *RestColServiceCreateDocumentOK

NewRestColServiceCreateDocumentOK creates a RestColServiceCreateDocumentOK with default headers values

func (*RestColServiceCreateDocumentOK) Code

Code gets the status code for the rest col service create document o k response

func (*RestColServiceCreateDocumentOK) Error

func (*RestColServiceCreateDocumentOK) GetPayload

func (*RestColServiceCreateDocumentOK) IsClientError

func (o *RestColServiceCreateDocumentOK) IsClientError() bool

IsClientError returns true when this rest col service create document o k response has a 4xx status code

func (*RestColServiceCreateDocumentOK) IsCode

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

IsCode returns true when this rest col service create document o k response a status code equal to that given

func (*RestColServiceCreateDocumentOK) IsRedirect

func (o *RestColServiceCreateDocumentOK) IsRedirect() bool

IsRedirect returns true when this rest col service create document o k response has a 3xx status code

func (*RestColServiceCreateDocumentOK) IsServerError

func (o *RestColServiceCreateDocumentOK) IsServerError() bool

IsServerError returns true when this rest col service create document o k response has a 5xx status code

func (*RestColServiceCreateDocumentOK) IsSuccess

func (o *RestColServiceCreateDocumentOK) IsSuccess() bool

IsSuccess returns true when this rest col service create document o k response has a 2xx status code

func (*RestColServiceCreateDocumentOK) String

type RestColServiceCreateDocumentParams

type RestColServiceCreateDocumentParams struct {

	// Body.
	Body *models.RestColServiceCreateDocumentBody

	// ProjectID.
	ProjectID string

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

RestColServiceCreateDocumentParams contains all the parameters to send to the API endpoint

for the rest col service create document operation.

Typically these are written to a http.Request.

func NewRestColServiceCreateDocumentParams

func NewRestColServiceCreateDocumentParams() *RestColServiceCreateDocumentParams

NewRestColServiceCreateDocumentParams creates a new RestColServiceCreateDocumentParams 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 NewRestColServiceCreateDocumentParamsWithContext

func NewRestColServiceCreateDocumentParamsWithContext(ctx context.Context) *RestColServiceCreateDocumentParams

NewRestColServiceCreateDocumentParamsWithContext creates a new RestColServiceCreateDocumentParams object with the ability to set a context for a request.

func NewRestColServiceCreateDocumentParamsWithHTTPClient

func NewRestColServiceCreateDocumentParamsWithHTTPClient(client *http.Client) *RestColServiceCreateDocumentParams

NewRestColServiceCreateDocumentParamsWithHTTPClient creates a new RestColServiceCreateDocumentParams object with the ability to set a custom HTTPClient for a request.

func NewRestColServiceCreateDocumentParamsWithTimeout

func NewRestColServiceCreateDocumentParamsWithTimeout(timeout time.Duration) *RestColServiceCreateDocumentParams

NewRestColServiceCreateDocumentParamsWithTimeout creates a new RestColServiceCreateDocumentParams object with the ability to set a timeout on a request.

func (*RestColServiceCreateDocumentParams) SetBody

SetBody adds the body to the rest col service create document params

func (*RestColServiceCreateDocumentParams) SetContext

SetContext adds the context to the rest col service create document params

func (*RestColServiceCreateDocumentParams) SetDefaults

func (o *RestColServiceCreateDocumentParams) SetDefaults()

SetDefaults hydrates default values in the rest col service create document params (not the query body).

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

func (*RestColServiceCreateDocumentParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the rest col service create document params

func (*RestColServiceCreateDocumentParams) SetProjectID

func (o *RestColServiceCreateDocumentParams) SetProjectID(projectID string)

SetProjectID adds the projectId to the rest col service create document params

func (*RestColServiceCreateDocumentParams) SetTimeout

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

SetTimeout adds the timeout to the rest col service create document params

func (*RestColServiceCreateDocumentParams) WithBody

WithBody adds the body to the rest col service create document params

func (*RestColServiceCreateDocumentParams) WithContext

WithContext adds the context to the rest col service create document params

func (*RestColServiceCreateDocumentParams) WithDefaults

WithDefaults hydrates default values in the rest col service create document params (not the query body).

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

func (*RestColServiceCreateDocumentParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the rest col service create document params

func (*RestColServiceCreateDocumentParams) WithProjectID

WithProjectID adds the projectID to the rest col service create document params

func (*RestColServiceCreateDocumentParams) WithTimeout

WithTimeout adds the timeout to the rest col service create document params

func (*RestColServiceCreateDocumentParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type RestColServiceCreateDocumentReader

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

RestColServiceCreateDocumentReader is a Reader for the RestColServiceCreateDocument structure.

func (*RestColServiceCreateDocumentReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type RestColServiceDeleteDocumentDefault

type RestColServiceDeleteDocumentDefault struct {
	Payload *models.RPCStatus
	// contains filtered or unexported fields
}

RestColServiceDeleteDocumentDefault describes a response with status code -1, with default header values.

An unexpected error response.

func NewRestColServiceDeleteDocumentDefault

func NewRestColServiceDeleteDocumentDefault(code int) *RestColServiceDeleteDocumentDefault

NewRestColServiceDeleteDocumentDefault creates a RestColServiceDeleteDocumentDefault with default headers values

func (*RestColServiceDeleteDocumentDefault) Code

Code gets the status code for the rest col service delete document default response

func (*RestColServiceDeleteDocumentDefault) Error

func (*RestColServiceDeleteDocumentDefault) GetPayload

func (*RestColServiceDeleteDocumentDefault) IsClientError

func (o *RestColServiceDeleteDocumentDefault) IsClientError() bool

IsClientError returns true when this rest col service delete document default response has a 4xx status code

func (*RestColServiceDeleteDocumentDefault) IsCode

IsCode returns true when this rest col service delete document default response a status code equal to that given

func (*RestColServiceDeleteDocumentDefault) IsRedirect

func (o *RestColServiceDeleteDocumentDefault) IsRedirect() bool

IsRedirect returns true when this rest col service delete document default response has a 3xx status code

func (*RestColServiceDeleteDocumentDefault) IsServerError

func (o *RestColServiceDeleteDocumentDefault) IsServerError() bool

IsServerError returns true when this rest col service delete document default response has a 5xx status code

func (*RestColServiceDeleteDocumentDefault) IsSuccess

IsSuccess returns true when this rest col service delete document default response has a 2xx status code

func (*RestColServiceDeleteDocumentDefault) String

type RestColServiceDeleteDocumentOK

type RestColServiceDeleteDocumentOK struct {
	Payload models.APIDeleteDocumentResponse
}

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

A successful response.

func NewRestColServiceDeleteDocumentOK

func NewRestColServiceDeleteDocumentOK() *RestColServiceDeleteDocumentOK

NewRestColServiceDeleteDocumentOK creates a RestColServiceDeleteDocumentOK with default headers values

func (*RestColServiceDeleteDocumentOK) Code

Code gets the status code for the rest col service delete document o k response

func (*RestColServiceDeleteDocumentOK) Error

func (*RestColServiceDeleteDocumentOK) GetPayload

func (*RestColServiceDeleteDocumentOK) IsClientError

func (o *RestColServiceDeleteDocumentOK) IsClientError() bool

IsClientError returns true when this rest col service delete document o k response has a 4xx status code

func (*RestColServiceDeleteDocumentOK) IsCode

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

IsCode returns true when this rest col service delete document o k response a status code equal to that given

func (*RestColServiceDeleteDocumentOK) IsRedirect

func (o *RestColServiceDeleteDocumentOK) IsRedirect() bool

IsRedirect returns true when this rest col service delete document o k response has a 3xx status code

func (*RestColServiceDeleteDocumentOK) IsServerError

func (o *RestColServiceDeleteDocumentOK) IsServerError() bool

IsServerError returns true when this rest col service delete document o k response has a 5xx status code

func (*RestColServiceDeleteDocumentOK) IsSuccess

func (o *RestColServiceDeleteDocumentOK) IsSuccess() bool

IsSuccess returns true when this rest col service delete document o k response has a 2xx status code

func (*RestColServiceDeleteDocumentOK) String

type RestColServiceDeleteDocumentParams

type RestColServiceDeleteDocumentParams struct {

	// CollectionID.
	CollectionID string

	// DocumentID.
	DocumentID string

	// ProjectID.
	ProjectID string

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

RestColServiceDeleteDocumentParams contains all the parameters to send to the API endpoint

for the rest col service delete document operation.

Typically these are written to a http.Request.

func NewRestColServiceDeleteDocumentParams

func NewRestColServiceDeleteDocumentParams() *RestColServiceDeleteDocumentParams

NewRestColServiceDeleteDocumentParams creates a new RestColServiceDeleteDocumentParams 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 NewRestColServiceDeleteDocumentParamsWithContext

func NewRestColServiceDeleteDocumentParamsWithContext(ctx context.Context) *RestColServiceDeleteDocumentParams

NewRestColServiceDeleteDocumentParamsWithContext creates a new RestColServiceDeleteDocumentParams object with the ability to set a context for a request.

func NewRestColServiceDeleteDocumentParamsWithHTTPClient

func NewRestColServiceDeleteDocumentParamsWithHTTPClient(client *http.Client) *RestColServiceDeleteDocumentParams

NewRestColServiceDeleteDocumentParamsWithHTTPClient creates a new RestColServiceDeleteDocumentParams object with the ability to set a custom HTTPClient for a request.

func NewRestColServiceDeleteDocumentParamsWithTimeout

func NewRestColServiceDeleteDocumentParamsWithTimeout(timeout time.Duration) *RestColServiceDeleteDocumentParams

NewRestColServiceDeleteDocumentParamsWithTimeout creates a new RestColServiceDeleteDocumentParams object with the ability to set a timeout on a request.

func (*RestColServiceDeleteDocumentParams) SetCollectionID

func (o *RestColServiceDeleteDocumentParams) SetCollectionID(collectionID string)

SetCollectionID adds the collectionId to the rest col service delete document params

func (*RestColServiceDeleteDocumentParams) SetContext

SetContext adds the context to the rest col service delete document params

func (*RestColServiceDeleteDocumentParams) SetDefaults

func (o *RestColServiceDeleteDocumentParams) SetDefaults()

SetDefaults hydrates default values in the rest col service delete document params (not the query body).

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

func (*RestColServiceDeleteDocumentParams) SetDocumentID

func (o *RestColServiceDeleteDocumentParams) SetDocumentID(documentID string)

SetDocumentID adds the documentId to the rest col service delete document params

func (*RestColServiceDeleteDocumentParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the rest col service delete document params

func (*RestColServiceDeleteDocumentParams) SetProjectID

func (o *RestColServiceDeleteDocumentParams) SetProjectID(projectID string)

SetProjectID adds the projectId to the rest col service delete document params

func (*RestColServiceDeleteDocumentParams) SetTimeout

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

SetTimeout adds the timeout to the rest col service delete document params

func (*RestColServiceDeleteDocumentParams) WithCollectionID

WithCollectionID adds the collectionID to the rest col service delete document params

func (*RestColServiceDeleteDocumentParams) WithContext

WithContext adds the context to the rest col service delete document params

func (*RestColServiceDeleteDocumentParams) WithDefaults

WithDefaults hydrates default values in the rest col service delete document params (not the query body).

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

func (*RestColServiceDeleteDocumentParams) WithDocumentID

WithDocumentID adds the documentID to the rest col service delete document params

func (*RestColServiceDeleteDocumentParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the rest col service delete document params

func (*RestColServiceDeleteDocumentParams) WithProjectID

WithProjectID adds the projectID to the rest col service delete document params

func (*RestColServiceDeleteDocumentParams) WithTimeout

WithTimeout adds the timeout to the rest col service delete document params

func (*RestColServiceDeleteDocumentParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type RestColServiceDeleteDocumentReader

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

RestColServiceDeleteDocumentReader is a Reader for the RestColServiceDeleteDocument structure.

func (*RestColServiceDeleteDocumentReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type RestColServiceGetDocumentDefault

type RestColServiceGetDocumentDefault struct {
	Payload *models.RPCStatus
	// contains filtered or unexported fields
}

RestColServiceGetDocumentDefault describes a response with status code -1, with default header values.

An unexpected error response.

func NewRestColServiceGetDocumentDefault

func NewRestColServiceGetDocumentDefault(code int) *RestColServiceGetDocumentDefault

NewRestColServiceGetDocumentDefault creates a RestColServiceGetDocumentDefault with default headers values

func (*RestColServiceGetDocumentDefault) Code

Code gets the status code for the rest col service get document default response

func (*RestColServiceGetDocumentDefault) Error

func (*RestColServiceGetDocumentDefault) GetPayload

func (*RestColServiceGetDocumentDefault) IsClientError

func (o *RestColServiceGetDocumentDefault) IsClientError() bool

IsClientError returns true when this rest col service get document default response has a 4xx status code

func (*RestColServiceGetDocumentDefault) IsCode

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

IsCode returns true when this rest col service get document default response a status code equal to that given

func (*RestColServiceGetDocumentDefault) IsRedirect

func (o *RestColServiceGetDocumentDefault) IsRedirect() bool

IsRedirect returns true when this rest col service get document default response has a 3xx status code

func (*RestColServiceGetDocumentDefault) IsServerError

func (o *RestColServiceGetDocumentDefault) IsServerError() bool

IsServerError returns true when this rest col service get document default response has a 5xx status code

func (*RestColServiceGetDocumentDefault) IsSuccess

func (o *RestColServiceGetDocumentDefault) IsSuccess() bool

IsSuccess returns true when this rest col service get document default response has a 2xx status code

func (*RestColServiceGetDocumentDefault) String

type RestColServiceGetDocumentOK

type RestColServiceGetDocumentOK struct {
	Payload *models.APIGetDocumentResponse
}

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

A successful response.

func NewRestColServiceGetDocumentOK

func NewRestColServiceGetDocumentOK() *RestColServiceGetDocumentOK

NewRestColServiceGetDocumentOK creates a RestColServiceGetDocumentOK with default headers values

func (*RestColServiceGetDocumentOK) Code

func (o *RestColServiceGetDocumentOK) Code() int

Code gets the status code for the rest col service get document o k response

func (*RestColServiceGetDocumentOK) Error

func (*RestColServiceGetDocumentOK) GetPayload

func (*RestColServiceGetDocumentOK) IsClientError

func (o *RestColServiceGetDocumentOK) IsClientError() bool

IsClientError returns true when this rest col service get document o k response has a 4xx status code

func (*RestColServiceGetDocumentOK) IsCode

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

IsCode returns true when this rest col service get document o k response a status code equal to that given

func (*RestColServiceGetDocumentOK) IsRedirect

func (o *RestColServiceGetDocumentOK) IsRedirect() bool

IsRedirect returns true when this rest col service get document o k response has a 3xx status code

func (*RestColServiceGetDocumentOK) IsServerError

func (o *RestColServiceGetDocumentOK) IsServerError() bool

IsServerError returns true when this rest col service get document o k response has a 5xx status code

func (*RestColServiceGetDocumentOK) IsSuccess

func (o *RestColServiceGetDocumentOK) IsSuccess() bool

IsSuccess returns true when this rest col service get document o k response has a 2xx status code

func (*RestColServiceGetDocumentOK) String

func (o *RestColServiceGetDocumentOK) String() string

type RestColServiceGetDocumentParams

type RestColServiceGetDocumentParams struct {

	// CollectionID.
	CollectionID string

	// DocumentID.
	DocumentID string

	/* FieldSelectors.

	   dot-concatenated fields, ex: fielda.fieldb.fieldc
	*/
	FieldSelectors []string

	// ProjectID.
	ProjectID string

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

RestColServiceGetDocumentParams contains all the parameters to send to the API endpoint

for the rest col service get document operation.

Typically these are written to a http.Request.

func NewRestColServiceGetDocumentParams

func NewRestColServiceGetDocumentParams() *RestColServiceGetDocumentParams

NewRestColServiceGetDocumentParams creates a new RestColServiceGetDocumentParams 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 NewRestColServiceGetDocumentParamsWithContext

func NewRestColServiceGetDocumentParamsWithContext(ctx context.Context) *RestColServiceGetDocumentParams

NewRestColServiceGetDocumentParamsWithContext creates a new RestColServiceGetDocumentParams object with the ability to set a context for a request.

func NewRestColServiceGetDocumentParamsWithHTTPClient

func NewRestColServiceGetDocumentParamsWithHTTPClient(client *http.Client) *RestColServiceGetDocumentParams

NewRestColServiceGetDocumentParamsWithHTTPClient creates a new RestColServiceGetDocumentParams object with the ability to set a custom HTTPClient for a request.

func NewRestColServiceGetDocumentParamsWithTimeout

func NewRestColServiceGetDocumentParamsWithTimeout(timeout time.Duration) *RestColServiceGetDocumentParams

NewRestColServiceGetDocumentParamsWithTimeout creates a new RestColServiceGetDocumentParams object with the ability to set a timeout on a request.

func (*RestColServiceGetDocumentParams) SetCollectionID

func (o *RestColServiceGetDocumentParams) SetCollectionID(collectionID string)

SetCollectionID adds the collectionId to the rest col service get document params

func (*RestColServiceGetDocumentParams) SetContext

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

SetContext adds the context to the rest col service get document params

func (*RestColServiceGetDocumentParams) SetDefaults

func (o *RestColServiceGetDocumentParams) SetDefaults()

SetDefaults hydrates default values in the rest col service get document params (not the query body).

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

func (*RestColServiceGetDocumentParams) SetDocumentID

func (o *RestColServiceGetDocumentParams) SetDocumentID(documentID string)

SetDocumentID adds the documentId to the rest col service get document params

func (*RestColServiceGetDocumentParams) SetFieldSelectors

func (o *RestColServiceGetDocumentParams) SetFieldSelectors(fieldSelectors []string)

SetFieldSelectors adds the fieldSelectors to the rest col service get document params

func (*RestColServiceGetDocumentParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the rest col service get document params

func (*RestColServiceGetDocumentParams) SetProjectID

func (o *RestColServiceGetDocumentParams) SetProjectID(projectID string)

SetProjectID adds the projectId to the rest col service get document params

func (*RestColServiceGetDocumentParams) SetTimeout

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

SetTimeout adds the timeout to the rest col service get document params

func (*RestColServiceGetDocumentParams) WithCollectionID

func (o *RestColServiceGetDocumentParams) WithCollectionID(collectionID string) *RestColServiceGetDocumentParams

WithCollectionID adds the collectionID to the rest col service get document params

func (*RestColServiceGetDocumentParams) WithContext

WithContext adds the context to the rest col service get document params

func (*RestColServiceGetDocumentParams) WithDefaults

WithDefaults hydrates default values in the rest col service get document params (not the query body).

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

func (*RestColServiceGetDocumentParams) WithDocumentID

WithDocumentID adds the documentID to the rest col service get document params

func (*RestColServiceGetDocumentParams) WithFieldSelectors

func (o *RestColServiceGetDocumentParams) WithFieldSelectors(fieldSelectors []string) *RestColServiceGetDocumentParams

WithFieldSelectors adds the fieldSelectors to the rest col service get document params

func (*RestColServiceGetDocumentParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the rest col service get document params

func (*RestColServiceGetDocumentParams) WithProjectID

WithProjectID adds the projectID to the rest col service get document params

func (*RestColServiceGetDocumentParams) WithTimeout

WithTimeout adds the timeout to the rest col service get document params

func (*RestColServiceGetDocumentParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type RestColServiceGetDocumentReader

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

RestColServiceGetDocumentReader is a Reader for the RestColServiceGetDocument structure.

func (*RestColServiceGetDocumentReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type RestColServiceQueryDocumentDefault

type RestColServiceQueryDocumentDefault struct {
	Payload *models.RPCStatus
	// contains filtered or unexported fields
}

RestColServiceQueryDocumentDefault describes a response with status code -1, with default header values.

An unexpected error response.

func NewRestColServiceQueryDocumentDefault

func NewRestColServiceQueryDocumentDefault(code int) *RestColServiceQueryDocumentDefault

NewRestColServiceQueryDocumentDefault creates a RestColServiceQueryDocumentDefault with default headers values

func (*RestColServiceQueryDocumentDefault) Code

Code gets the status code for the rest col service query document default response

func (*RestColServiceQueryDocumentDefault) Error

func (*RestColServiceQueryDocumentDefault) GetPayload

func (*RestColServiceQueryDocumentDefault) IsClientError

func (o *RestColServiceQueryDocumentDefault) IsClientError() bool

IsClientError returns true when this rest col service query document default response has a 4xx status code

func (*RestColServiceQueryDocumentDefault) IsCode

IsCode returns true when this rest col service query document default response a status code equal to that given

func (*RestColServiceQueryDocumentDefault) IsRedirect

func (o *RestColServiceQueryDocumentDefault) IsRedirect() bool

IsRedirect returns true when this rest col service query document default response has a 3xx status code

func (*RestColServiceQueryDocumentDefault) IsServerError

func (o *RestColServiceQueryDocumentDefault) IsServerError() bool

IsServerError returns true when this rest col service query document default response has a 5xx status code

func (*RestColServiceQueryDocumentDefault) IsSuccess

IsSuccess returns true when this rest col service query document default response has a 2xx status code

func (*RestColServiceQueryDocumentDefault) String

type RestColServiceQueryDocumentOK

type RestColServiceQueryDocumentOK struct {
	Payload *models.APIQueryDocumentResponse
}

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

A successful response.

func NewRestColServiceQueryDocumentOK

func NewRestColServiceQueryDocumentOK() *RestColServiceQueryDocumentOK

NewRestColServiceQueryDocumentOK creates a RestColServiceQueryDocumentOK with default headers values

func (*RestColServiceQueryDocumentOK) Code

Code gets the status code for the rest col service query document o k response

func (*RestColServiceQueryDocumentOK) Error

func (*RestColServiceQueryDocumentOK) GetPayload

func (*RestColServiceQueryDocumentOK) IsClientError

func (o *RestColServiceQueryDocumentOK) IsClientError() bool

IsClientError returns true when this rest col service query document o k response has a 4xx status code

func (*RestColServiceQueryDocumentOK) IsCode

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

IsCode returns true when this rest col service query document o k response a status code equal to that given

func (*RestColServiceQueryDocumentOK) IsRedirect

func (o *RestColServiceQueryDocumentOK) IsRedirect() bool

IsRedirect returns true when this rest col service query document o k response has a 3xx status code

func (*RestColServiceQueryDocumentOK) IsServerError

func (o *RestColServiceQueryDocumentOK) IsServerError() bool

IsServerError returns true when this rest col service query document o k response has a 5xx status code

func (*RestColServiceQueryDocumentOK) IsSuccess

func (o *RestColServiceQueryDocumentOK) IsSuccess() bool

IsSuccess returns true when this rest col service query document o k response has a 2xx status code

func (*RestColServiceQueryDocumentOK) String

type RestColServiceQueryDocumentParams

type RestColServiceQueryDocumentParams struct {

	// CollectionID.
	CollectionID string

	/* EndedAt.

	   endedAt specifies when is the ended timeframe of the query

	   Format: date-time
	*/
	EndedAt *strfmt.DateTime

	/* FieldSelectors.

	   dot-concatenated fields, ex: fielda.fieldb.fieldc
	*/
	FieldSelectors []string

	// LimitCount.
	//
	// Format: int32
	LimitCount *int32

	// ProjectID.
	ProjectID string

	// SinceTs.
	//
	// Format: date-time
	SinceTs *strfmt.DateTime

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

RestColServiceQueryDocumentParams contains all the parameters to send to the API endpoint

for the rest col service query document operation.

Typically these are written to a http.Request.

func NewRestColServiceQueryDocumentParams

func NewRestColServiceQueryDocumentParams() *RestColServiceQueryDocumentParams

NewRestColServiceQueryDocumentParams creates a new RestColServiceQueryDocumentParams 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 NewRestColServiceQueryDocumentParamsWithContext

func NewRestColServiceQueryDocumentParamsWithContext(ctx context.Context) *RestColServiceQueryDocumentParams

NewRestColServiceQueryDocumentParamsWithContext creates a new RestColServiceQueryDocumentParams object with the ability to set a context for a request.

func NewRestColServiceQueryDocumentParamsWithHTTPClient

func NewRestColServiceQueryDocumentParamsWithHTTPClient(client *http.Client) *RestColServiceQueryDocumentParams

NewRestColServiceQueryDocumentParamsWithHTTPClient creates a new RestColServiceQueryDocumentParams object with the ability to set a custom HTTPClient for a request.

func NewRestColServiceQueryDocumentParamsWithTimeout

func NewRestColServiceQueryDocumentParamsWithTimeout(timeout time.Duration) *RestColServiceQueryDocumentParams

NewRestColServiceQueryDocumentParamsWithTimeout creates a new RestColServiceQueryDocumentParams object with the ability to set a timeout on a request.

func (*RestColServiceQueryDocumentParams) SetCollectionID

func (o *RestColServiceQueryDocumentParams) SetCollectionID(collectionID string)

SetCollectionID adds the collectionId to the rest col service query document params

func (*RestColServiceQueryDocumentParams) SetContext

SetContext adds the context to the rest col service query document params

func (*RestColServiceQueryDocumentParams) SetDefaults

func (o *RestColServiceQueryDocumentParams) SetDefaults()

SetDefaults hydrates default values in the rest col service query document params (not the query body).

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

func (*RestColServiceQueryDocumentParams) SetEndedAt

func (o *RestColServiceQueryDocumentParams) SetEndedAt(endedAt *strfmt.DateTime)

SetEndedAt adds the endedAt to the rest col service query document params

func (*RestColServiceQueryDocumentParams) SetFieldSelectors

func (o *RestColServiceQueryDocumentParams) SetFieldSelectors(fieldSelectors []string)

SetFieldSelectors adds the fieldSelectors to the rest col service query document params

func (*RestColServiceQueryDocumentParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the rest col service query document params

func (*RestColServiceQueryDocumentParams) SetLimitCount

func (o *RestColServiceQueryDocumentParams) SetLimitCount(limitCount *int32)

SetLimitCount adds the limitCount to the rest col service query document params

func (*RestColServiceQueryDocumentParams) SetProjectID

func (o *RestColServiceQueryDocumentParams) SetProjectID(projectID string)

SetProjectID adds the projectId to the rest col service query document params

func (*RestColServiceQueryDocumentParams) SetSinceTs

func (o *RestColServiceQueryDocumentParams) SetSinceTs(sinceTs *strfmt.DateTime)

SetSinceTs adds the sinceTs to the rest col service query document params

func (*RestColServiceQueryDocumentParams) SetTimeout

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

SetTimeout adds the timeout to the rest col service query document params

func (*RestColServiceQueryDocumentParams) WithCollectionID

WithCollectionID adds the collectionID to the rest col service query document params

func (*RestColServiceQueryDocumentParams) WithContext

WithContext adds the context to the rest col service query document params

func (*RestColServiceQueryDocumentParams) WithDefaults

WithDefaults hydrates default values in the rest col service query document params (not the query body).

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

func (*RestColServiceQueryDocumentParams) WithEndedAt

WithEndedAt adds the endedAt to the rest col service query document params

func (*RestColServiceQueryDocumentParams) WithFieldSelectors

func (o *RestColServiceQueryDocumentParams) WithFieldSelectors(fieldSelectors []string) *RestColServiceQueryDocumentParams

WithFieldSelectors adds the fieldSelectors to the rest col service query document params

func (*RestColServiceQueryDocumentParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the rest col service query document params

func (*RestColServiceQueryDocumentParams) WithLimitCount

WithLimitCount adds the limitCount to the rest col service query document params

func (*RestColServiceQueryDocumentParams) WithProjectID

WithProjectID adds the projectID to the rest col service query document params

func (*RestColServiceQueryDocumentParams) WithSinceTs

WithSinceTs adds the sinceTs to the rest col service query document params

func (*RestColServiceQueryDocumentParams) WithTimeout

WithTimeout adds the timeout to the rest col service query document params

func (*RestColServiceQueryDocumentParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type RestColServiceQueryDocumentReader

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

RestColServiceQueryDocumentReader is a Reader for the RestColServiceQueryDocument structure.

func (*RestColServiceQueryDocumentReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type RestColServiceQueryDocumentsStreamDefault

type RestColServiceQueryDocumentsStreamDefault struct {
	Payload *models.RPCStatus
	// contains filtered or unexported fields
}

RestColServiceQueryDocumentsStreamDefault describes a response with status code -1, with default header values.

An unexpected error response.

func NewRestColServiceQueryDocumentsStreamDefault

func NewRestColServiceQueryDocumentsStreamDefault(code int) *RestColServiceQueryDocumentsStreamDefault

NewRestColServiceQueryDocumentsStreamDefault creates a RestColServiceQueryDocumentsStreamDefault with default headers values

func (*RestColServiceQueryDocumentsStreamDefault) Code

Code gets the status code for the rest col service query documents stream default response

func (*RestColServiceQueryDocumentsStreamDefault) Error

func (*RestColServiceQueryDocumentsStreamDefault) GetPayload

func (*RestColServiceQueryDocumentsStreamDefault) IsClientError

IsClientError returns true when this rest col service query documents stream default response has a 4xx status code

func (*RestColServiceQueryDocumentsStreamDefault) IsCode

IsCode returns true when this rest col service query documents stream default response a status code equal to that given

func (*RestColServiceQueryDocumentsStreamDefault) IsRedirect

IsRedirect returns true when this rest col service query documents stream default response has a 3xx status code

func (*RestColServiceQueryDocumentsStreamDefault) IsServerError

IsServerError returns true when this rest col service query documents stream default response has a 5xx status code

func (*RestColServiceQueryDocumentsStreamDefault) IsSuccess

IsSuccess returns true when this rest col service query documents stream default response has a 2xx status code

func (*RestColServiceQueryDocumentsStreamDefault) String

type RestColServiceQueryDocumentsStreamOK

type RestColServiceQueryDocumentsStreamOK struct {
	Payload *RestColServiceQueryDocumentsStreamOKBody
}

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

A successful response.(streaming responses)

func NewRestColServiceQueryDocumentsStreamOK

func NewRestColServiceQueryDocumentsStreamOK() *RestColServiceQueryDocumentsStreamOK

NewRestColServiceQueryDocumentsStreamOK creates a RestColServiceQueryDocumentsStreamOK with default headers values

func (*RestColServiceQueryDocumentsStreamOK) Code

Code gets the status code for the rest col service query documents stream o k response

func (*RestColServiceQueryDocumentsStreamOK) Error

func (*RestColServiceQueryDocumentsStreamOK) GetPayload

func (*RestColServiceQueryDocumentsStreamOK) IsClientError

func (o *RestColServiceQueryDocumentsStreamOK) IsClientError() bool

IsClientError returns true when this rest col service query documents stream o k response has a 4xx status code

func (*RestColServiceQueryDocumentsStreamOK) IsCode

IsCode returns true when this rest col service query documents stream o k response a status code equal to that given

func (*RestColServiceQueryDocumentsStreamOK) IsRedirect

IsRedirect returns true when this rest col service query documents stream o k response has a 3xx status code

func (*RestColServiceQueryDocumentsStreamOK) IsServerError

func (o *RestColServiceQueryDocumentsStreamOK) IsServerError() bool

IsServerError returns true when this rest col service query documents stream o k response has a 5xx status code

func (*RestColServiceQueryDocumentsStreamOK) IsSuccess

IsSuccess returns true when this rest col service query documents stream o k response has a 2xx status code

func (*RestColServiceQueryDocumentsStreamOK) String

type RestColServiceQueryDocumentsStreamOKBody

type RestColServiceQueryDocumentsStreamOKBody struct {

	// error
	Error *models.RPCStatus `json:"error,omitempty"`

	// result
	Result *models.APIGetDocumentResponse `json:"result,omitempty"`
}

RestColServiceQueryDocumentsStreamOKBody Stream result of apiGetDocumentResponse swagger:model RestColServiceQueryDocumentsStreamOKBody

func (*RestColServiceQueryDocumentsStreamOKBody) ContextValidate

ContextValidate validate this rest col service query documents stream o k body based on the context it is used

func (*RestColServiceQueryDocumentsStreamOKBody) MarshalBinary

func (o *RestColServiceQueryDocumentsStreamOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RestColServiceQueryDocumentsStreamOKBody) UnmarshalBinary

func (o *RestColServiceQueryDocumentsStreamOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RestColServiceQueryDocumentsStreamOKBody) Validate

Validate validates this rest col service query documents stream o k body

type RestColServiceQueryDocumentsStreamParams

type RestColServiceQueryDocumentsStreamParams struct {

	// CollectionID.
	CollectionID string

	/* EndedAt.

	   endedAt specifies when is the ended timeframe of the query

	   Format: date-time
	*/
	EndedAt *strfmt.DateTime

	/* FieldSelectors.

	   dot-concatenated fields, ex: fielda.fieldb.fieldc
	*/
	FieldSelectors []string

	/* FollowUpMode.

	   if on, the service would keep watch new coming docs
	*/
	FollowUpMode *bool

	// LimitCount.
	//
	// Format: int32
	LimitCount *int32

	// ProjectID.
	ProjectID string

	// SinceTs.
	//
	// Format: date-time
	SinceTs *strfmt.DateTime

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

RestColServiceQueryDocumentsStreamParams contains all the parameters to send to the API endpoint

for the rest col service query documents stream operation.

Typically these are written to a http.Request.

func NewRestColServiceQueryDocumentsStreamParams

func NewRestColServiceQueryDocumentsStreamParams() *RestColServiceQueryDocumentsStreamParams

NewRestColServiceQueryDocumentsStreamParams creates a new RestColServiceQueryDocumentsStreamParams 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 NewRestColServiceQueryDocumentsStreamParamsWithContext

func NewRestColServiceQueryDocumentsStreamParamsWithContext(ctx context.Context) *RestColServiceQueryDocumentsStreamParams

NewRestColServiceQueryDocumentsStreamParamsWithContext creates a new RestColServiceQueryDocumentsStreamParams object with the ability to set a context for a request.

func NewRestColServiceQueryDocumentsStreamParamsWithHTTPClient

func NewRestColServiceQueryDocumentsStreamParamsWithHTTPClient(client *http.Client) *RestColServiceQueryDocumentsStreamParams

NewRestColServiceQueryDocumentsStreamParamsWithHTTPClient creates a new RestColServiceQueryDocumentsStreamParams object with the ability to set a custom HTTPClient for a request.

func NewRestColServiceQueryDocumentsStreamParamsWithTimeout

func NewRestColServiceQueryDocumentsStreamParamsWithTimeout(timeout time.Duration) *RestColServiceQueryDocumentsStreamParams

NewRestColServiceQueryDocumentsStreamParamsWithTimeout creates a new RestColServiceQueryDocumentsStreamParams object with the ability to set a timeout on a request.

func (*RestColServiceQueryDocumentsStreamParams) SetCollectionID

func (o *RestColServiceQueryDocumentsStreamParams) SetCollectionID(collectionID string)

SetCollectionID adds the collectionId to the rest col service query documents stream params

func (*RestColServiceQueryDocumentsStreamParams) SetContext

SetContext adds the context to the rest col service query documents stream params

func (*RestColServiceQueryDocumentsStreamParams) SetDefaults

SetDefaults hydrates default values in the rest col service query documents stream params (not the query body).

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

func (*RestColServiceQueryDocumentsStreamParams) SetEndedAt

SetEndedAt adds the endedAt to the rest col service query documents stream params

func (*RestColServiceQueryDocumentsStreamParams) SetFieldSelectors

func (o *RestColServiceQueryDocumentsStreamParams) SetFieldSelectors(fieldSelectors []string)

SetFieldSelectors adds the fieldSelectors to the rest col service query documents stream params

func (*RestColServiceQueryDocumentsStreamParams) SetFollowUpMode

func (o *RestColServiceQueryDocumentsStreamParams) SetFollowUpMode(followUpMode *bool)

SetFollowUpMode adds the followUpMode to the rest col service query documents stream params

func (*RestColServiceQueryDocumentsStreamParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the rest col service query documents stream params

func (*RestColServiceQueryDocumentsStreamParams) SetLimitCount

func (o *RestColServiceQueryDocumentsStreamParams) SetLimitCount(limitCount *int32)

SetLimitCount adds the limitCount to the rest col service query documents stream params

func (*RestColServiceQueryDocumentsStreamParams) SetProjectID

func (o *RestColServiceQueryDocumentsStreamParams) SetProjectID(projectID string)

SetProjectID adds the projectId to the rest col service query documents stream params

func (*RestColServiceQueryDocumentsStreamParams) SetSinceTs

SetSinceTs adds the sinceTs to the rest col service query documents stream params

func (*RestColServiceQueryDocumentsStreamParams) SetTimeout

SetTimeout adds the timeout to the rest col service query documents stream params

func (*RestColServiceQueryDocumentsStreamParams) WithCollectionID

WithCollectionID adds the collectionID to the rest col service query documents stream params

func (*RestColServiceQueryDocumentsStreamParams) WithContext

WithContext adds the context to the rest col service query documents stream params

func (*RestColServiceQueryDocumentsStreamParams) WithDefaults

WithDefaults hydrates default values in the rest col service query documents stream params (not the query body).

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

func (*RestColServiceQueryDocumentsStreamParams) WithEndedAt

WithEndedAt adds the endedAt to the rest col service query documents stream params

func (*RestColServiceQueryDocumentsStreamParams) WithFieldSelectors

WithFieldSelectors adds the fieldSelectors to the rest col service query documents stream params

func (*RestColServiceQueryDocumentsStreamParams) WithFollowUpMode

WithFollowUpMode adds the followUpMode to the rest col service query documents stream params

func (*RestColServiceQueryDocumentsStreamParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the rest col service query documents stream params

func (*RestColServiceQueryDocumentsStreamParams) WithLimitCount

WithLimitCount adds the limitCount to the rest col service query documents stream params

func (*RestColServiceQueryDocumentsStreamParams) WithProjectID

WithProjectID adds the projectID to the rest col service query documents stream params

func (*RestColServiceQueryDocumentsStreamParams) WithSinceTs

WithSinceTs adds the sinceTs to the rest col service query documents stream params

func (*RestColServiceQueryDocumentsStreamParams) WithTimeout

WithTimeout adds the timeout to the rest col service query documents stream params

func (*RestColServiceQueryDocumentsStreamParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type RestColServiceQueryDocumentsStreamReader

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

RestColServiceQueryDocumentsStreamReader is a Reader for the RestColServiceQueryDocumentsStream structure.

func (*RestColServiceQueryDocumentsStreamReader) ReadResponse

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