Documentation ¶
Index ¶
- type Client
- func (a *Client) RestColServiceCreateDocument(params *RestColServiceCreateDocumentParams, ...) (*RestColServiceCreateDocumentOK, error)
- func (a *Client) RestColServiceCreateDocument2(params *RestColServiceCreateDocument2Params, ...) (*RestColServiceCreateDocument2OK, error)
- func (a *Client) RestColServiceDeleteDocument(params *RestColServiceDeleteDocumentParams, ...) (*RestColServiceDeleteDocumentOK, error)
- func (a *Client) RestColServiceGetDocument(params *RestColServiceGetDocumentParams, authInfo runtime.ClientAuthInfoWriter, ...) (*RestColServiceGetDocumentOK, error)
- func (a *Client) RestColServiceQueryDocument(params *RestColServiceQueryDocumentParams, ...) (*RestColServiceQueryDocumentOK, error)
- func (a *Client) RestColServiceQueryDocumentsStream(params *RestColServiceQueryDocumentsStreamParams, ...) (*RestColServiceQueryDocumentsStreamOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type RestColServiceCreateDocument2Default
- func (o *RestColServiceCreateDocument2Default) Code() int
- func (o *RestColServiceCreateDocument2Default) Error() string
- func (o *RestColServiceCreateDocument2Default) GetPayload() *models.RPCStatus
- func (o *RestColServiceCreateDocument2Default) IsClientError() bool
- func (o *RestColServiceCreateDocument2Default) IsCode(code int) bool
- func (o *RestColServiceCreateDocument2Default) IsRedirect() bool
- func (o *RestColServiceCreateDocument2Default) IsServerError() bool
- func (o *RestColServiceCreateDocument2Default) IsSuccess() bool
- func (o *RestColServiceCreateDocument2Default) String() string
- type RestColServiceCreateDocument2OK
- func (o *RestColServiceCreateDocument2OK) Code() int
- func (o *RestColServiceCreateDocument2OK) Error() string
- func (o *RestColServiceCreateDocument2OK) GetPayload() *models.APICreateDocumentResponse
- func (o *RestColServiceCreateDocument2OK) IsClientError() bool
- func (o *RestColServiceCreateDocument2OK) IsCode(code int) bool
- func (o *RestColServiceCreateDocument2OK) IsRedirect() bool
- func (o *RestColServiceCreateDocument2OK) IsServerError() bool
- func (o *RestColServiceCreateDocument2OK) IsSuccess() bool
- func (o *RestColServiceCreateDocument2OK) String() string
- type RestColServiceCreateDocument2Params
- func NewRestColServiceCreateDocument2Params() *RestColServiceCreateDocument2Params
- func NewRestColServiceCreateDocument2ParamsWithContext(ctx context.Context) *RestColServiceCreateDocument2Params
- func NewRestColServiceCreateDocument2ParamsWithHTTPClient(client *http.Client) *RestColServiceCreateDocument2Params
- func NewRestColServiceCreateDocument2ParamsWithTimeout(timeout time.Duration) *RestColServiceCreateDocument2Params
- func (o *RestColServiceCreateDocument2Params) SetBody(body *models.RestColServiceCreateDocumentBody)
- func (o *RestColServiceCreateDocument2Params) SetCollectionID(collectionID string)
- func (o *RestColServiceCreateDocument2Params) SetContext(ctx context.Context)
- func (o *RestColServiceCreateDocument2Params) SetDefaults()
- func (o *RestColServiceCreateDocument2Params) SetHTTPClient(client *http.Client)
- func (o *RestColServiceCreateDocument2Params) SetProjectID(projectID string)
- func (o *RestColServiceCreateDocument2Params) SetTimeout(timeout time.Duration)
- func (o *RestColServiceCreateDocument2Params) WithBody(body *models.RestColServiceCreateDocumentBody) *RestColServiceCreateDocument2Params
- func (o *RestColServiceCreateDocument2Params) WithCollectionID(collectionID string) *RestColServiceCreateDocument2Params
- func (o *RestColServiceCreateDocument2Params) WithContext(ctx context.Context) *RestColServiceCreateDocument2Params
- func (o *RestColServiceCreateDocument2Params) WithDefaults() *RestColServiceCreateDocument2Params
- func (o *RestColServiceCreateDocument2Params) WithHTTPClient(client *http.Client) *RestColServiceCreateDocument2Params
- func (o *RestColServiceCreateDocument2Params) WithProjectID(projectID string) *RestColServiceCreateDocument2Params
- func (o *RestColServiceCreateDocument2Params) WithTimeout(timeout time.Duration) *RestColServiceCreateDocument2Params
- func (o *RestColServiceCreateDocument2Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type RestColServiceCreateDocument2Reader
- type RestColServiceCreateDocumentDefault
- func (o *RestColServiceCreateDocumentDefault) Code() int
- func (o *RestColServiceCreateDocumentDefault) Error() string
- func (o *RestColServiceCreateDocumentDefault) GetPayload() *models.RPCStatus
- func (o *RestColServiceCreateDocumentDefault) IsClientError() bool
- func (o *RestColServiceCreateDocumentDefault) IsCode(code int) bool
- func (o *RestColServiceCreateDocumentDefault) IsRedirect() bool
- func (o *RestColServiceCreateDocumentDefault) IsServerError() bool
- func (o *RestColServiceCreateDocumentDefault) IsSuccess() bool
- func (o *RestColServiceCreateDocumentDefault) String() string
- type RestColServiceCreateDocumentOK
- func (o *RestColServiceCreateDocumentOK) Code() int
- func (o *RestColServiceCreateDocumentOK) Error() string
- func (o *RestColServiceCreateDocumentOK) GetPayload() *models.APICreateDocumentResponse
- func (o *RestColServiceCreateDocumentOK) IsClientError() bool
- func (o *RestColServiceCreateDocumentOK) IsCode(code int) bool
- func (o *RestColServiceCreateDocumentOK) IsRedirect() bool
- func (o *RestColServiceCreateDocumentOK) IsServerError() bool
- func (o *RestColServiceCreateDocumentOK) IsSuccess() bool
- func (o *RestColServiceCreateDocumentOK) String() string
- type RestColServiceCreateDocumentParams
- func NewRestColServiceCreateDocumentParams() *RestColServiceCreateDocumentParams
- func NewRestColServiceCreateDocumentParamsWithContext(ctx context.Context) *RestColServiceCreateDocumentParams
- func NewRestColServiceCreateDocumentParamsWithHTTPClient(client *http.Client) *RestColServiceCreateDocumentParams
- func NewRestColServiceCreateDocumentParamsWithTimeout(timeout time.Duration) *RestColServiceCreateDocumentParams
- func (o *RestColServiceCreateDocumentParams) SetBody(body *models.RestColServiceCreateDocumentBody)
- func (o *RestColServiceCreateDocumentParams) SetContext(ctx context.Context)
- func (o *RestColServiceCreateDocumentParams) SetDefaults()
- func (o *RestColServiceCreateDocumentParams) SetHTTPClient(client *http.Client)
- func (o *RestColServiceCreateDocumentParams) SetProjectID(projectID string)
- func (o *RestColServiceCreateDocumentParams) SetTimeout(timeout time.Duration)
- func (o *RestColServiceCreateDocumentParams) WithBody(body *models.RestColServiceCreateDocumentBody) *RestColServiceCreateDocumentParams
- func (o *RestColServiceCreateDocumentParams) WithContext(ctx context.Context) *RestColServiceCreateDocumentParams
- func (o *RestColServiceCreateDocumentParams) WithDefaults() *RestColServiceCreateDocumentParams
- func (o *RestColServiceCreateDocumentParams) WithHTTPClient(client *http.Client) *RestColServiceCreateDocumentParams
- func (o *RestColServiceCreateDocumentParams) WithProjectID(projectID string) *RestColServiceCreateDocumentParams
- func (o *RestColServiceCreateDocumentParams) WithTimeout(timeout time.Duration) *RestColServiceCreateDocumentParams
- func (o *RestColServiceCreateDocumentParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type RestColServiceCreateDocumentReader
- type RestColServiceDeleteDocumentDefault
- func (o *RestColServiceDeleteDocumentDefault) Code() int
- func (o *RestColServiceDeleteDocumentDefault) Error() string
- func (o *RestColServiceDeleteDocumentDefault) GetPayload() *models.RPCStatus
- func (o *RestColServiceDeleteDocumentDefault) IsClientError() bool
- func (o *RestColServiceDeleteDocumentDefault) IsCode(code int) bool
- func (o *RestColServiceDeleteDocumentDefault) IsRedirect() bool
- func (o *RestColServiceDeleteDocumentDefault) IsServerError() bool
- func (o *RestColServiceDeleteDocumentDefault) IsSuccess() bool
- func (o *RestColServiceDeleteDocumentDefault) String() string
- type RestColServiceDeleteDocumentOK
- func (o *RestColServiceDeleteDocumentOK) Code() int
- func (o *RestColServiceDeleteDocumentOK) Error() string
- func (o *RestColServiceDeleteDocumentOK) GetPayload() models.APIDeleteDocumentResponse
- func (o *RestColServiceDeleteDocumentOK) IsClientError() bool
- func (o *RestColServiceDeleteDocumentOK) IsCode(code int) bool
- func (o *RestColServiceDeleteDocumentOK) IsRedirect() bool
- func (o *RestColServiceDeleteDocumentOK) IsServerError() bool
- func (o *RestColServiceDeleteDocumentOK) IsSuccess() bool
- func (o *RestColServiceDeleteDocumentOK) String() string
- type RestColServiceDeleteDocumentParams
- func NewRestColServiceDeleteDocumentParams() *RestColServiceDeleteDocumentParams
- func NewRestColServiceDeleteDocumentParamsWithContext(ctx context.Context) *RestColServiceDeleteDocumentParams
- func NewRestColServiceDeleteDocumentParamsWithHTTPClient(client *http.Client) *RestColServiceDeleteDocumentParams
- func NewRestColServiceDeleteDocumentParamsWithTimeout(timeout time.Duration) *RestColServiceDeleteDocumentParams
- func (o *RestColServiceDeleteDocumentParams) SetCollectionID(collectionID string)
- func (o *RestColServiceDeleteDocumentParams) SetContext(ctx context.Context)
- func (o *RestColServiceDeleteDocumentParams) SetDefaults()
- func (o *RestColServiceDeleteDocumentParams) SetDocumentID(documentID string)
- func (o *RestColServiceDeleteDocumentParams) SetHTTPClient(client *http.Client)
- func (o *RestColServiceDeleteDocumentParams) SetProjectID(projectID string)
- func (o *RestColServiceDeleteDocumentParams) SetTimeout(timeout time.Duration)
- func (o *RestColServiceDeleteDocumentParams) WithCollectionID(collectionID string) *RestColServiceDeleteDocumentParams
- func (o *RestColServiceDeleteDocumentParams) WithContext(ctx context.Context) *RestColServiceDeleteDocumentParams
- func (o *RestColServiceDeleteDocumentParams) WithDefaults() *RestColServiceDeleteDocumentParams
- func (o *RestColServiceDeleteDocumentParams) WithDocumentID(documentID string) *RestColServiceDeleteDocumentParams
- func (o *RestColServiceDeleteDocumentParams) WithHTTPClient(client *http.Client) *RestColServiceDeleteDocumentParams
- func (o *RestColServiceDeleteDocumentParams) WithProjectID(projectID string) *RestColServiceDeleteDocumentParams
- func (o *RestColServiceDeleteDocumentParams) WithTimeout(timeout time.Duration) *RestColServiceDeleteDocumentParams
- func (o *RestColServiceDeleteDocumentParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type RestColServiceDeleteDocumentReader
- type RestColServiceGetDocumentDefault
- func (o *RestColServiceGetDocumentDefault) Code() int
- func (o *RestColServiceGetDocumentDefault) Error() string
- func (o *RestColServiceGetDocumentDefault) GetPayload() *models.RPCStatus
- func (o *RestColServiceGetDocumentDefault) IsClientError() bool
- func (o *RestColServiceGetDocumentDefault) IsCode(code int) bool
- func (o *RestColServiceGetDocumentDefault) IsRedirect() bool
- func (o *RestColServiceGetDocumentDefault) IsServerError() bool
- func (o *RestColServiceGetDocumentDefault) IsSuccess() bool
- func (o *RestColServiceGetDocumentDefault) String() string
- type RestColServiceGetDocumentOK
- func (o *RestColServiceGetDocumentOK) Code() int
- func (o *RestColServiceGetDocumentOK) Error() string
- func (o *RestColServiceGetDocumentOK) GetPayload() *models.APIGetDocumentResponse
- func (o *RestColServiceGetDocumentOK) IsClientError() bool
- func (o *RestColServiceGetDocumentOK) IsCode(code int) bool
- func (o *RestColServiceGetDocumentOK) IsRedirect() bool
- func (o *RestColServiceGetDocumentOK) IsServerError() bool
- func (o *RestColServiceGetDocumentOK) IsSuccess() bool
- func (o *RestColServiceGetDocumentOK) String() string
- type RestColServiceGetDocumentParams
- func NewRestColServiceGetDocumentParams() *RestColServiceGetDocumentParams
- func NewRestColServiceGetDocumentParamsWithContext(ctx context.Context) *RestColServiceGetDocumentParams
- func NewRestColServiceGetDocumentParamsWithHTTPClient(client *http.Client) *RestColServiceGetDocumentParams
- func NewRestColServiceGetDocumentParamsWithTimeout(timeout time.Duration) *RestColServiceGetDocumentParams
- func (o *RestColServiceGetDocumentParams) SetCollectionID(collectionID string)
- func (o *RestColServiceGetDocumentParams) SetContext(ctx context.Context)
- func (o *RestColServiceGetDocumentParams) SetDefaults()
- func (o *RestColServiceGetDocumentParams) SetDocumentID(documentID string)
- func (o *RestColServiceGetDocumentParams) SetFieldSelectors(fieldSelectors []string)
- func (o *RestColServiceGetDocumentParams) SetHTTPClient(client *http.Client)
- func (o *RestColServiceGetDocumentParams) SetProjectID(projectID string)
- func (o *RestColServiceGetDocumentParams) SetTimeout(timeout time.Duration)
- func (o *RestColServiceGetDocumentParams) WithCollectionID(collectionID string) *RestColServiceGetDocumentParams
- func (o *RestColServiceGetDocumentParams) WithContext(ctx context.Context) *RestColServiceGetDocumentParams
- func (o *RestColServiceGetDocumentParams) WithDefaults() *RestColServiceGetDocumentParams
- func (o *RestColServiceGetDocumentParams) WithDocumentID(documentID string) *RestColServiceGetDocumentParams
- func (o *RestColServiceGetDocumentParams) WithFieldSelectors(fieldSelectors []string) *RestColServiceGetDocumentParams
- func (o *RestColServiceGetDocumentParams) WithHTTPClient(client *http.Client) *RestColServiceGetDocumentParams
- func (o *RestColServiceGetDocumentParams) WithProjectID(projectID string) *RestColServiceGetDocumentParams
- func (o *RestColServiceGetDocumentParams) WithTimeout(timeout time.Duration) *RestColServiceGetDocumentParams
- func (o *RestColServiceGetDocumentParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type RestColServiceGetDocumentReader
- type RestColServiceQueryDocumentDefault
- func (o *RestColServiceQueryDocumentDefault) Code() int
- func (o *RestColServiceQueryDocumentDefault) Error() string
- func (o *RestColServiceQueryDocumentDefault) GetPayload() *models.RPCStatus
- func (o *RestColServiceQueryDocumentDefault) IsClientError() bool
- func (o *RestColServiceQueryDocumentDefault) IsCode(code int) bool
- func (o *RestColServiceQueryDocumentDefault) IsRedirect() bool
- func (o *RestColServiceQueryDocumentDefault) IsServerError() bool
- func (o *RestColServiceQueryDocumentDefault) IsSuccess() bool
- func (o *RestColServiceQueryDocumentDefault) String() string
- type RestColServiceQueryDocumentOK
- func (o *RestColServiceQueryDocumentOK) Code() int
- func (o *RestColServiceQueryDocumentOK) Error() string
- func (o *RestColServiceQueryDocumentOK) GetPayload() *models.APIQueryDocumentResponse
- func (o *RestColServiceQueryDocumentOK) IsClientError() bool
- func (o *RestColServiceQueryDocumentOK) IsCode(code int) bool
- func (o *RestColServiceQueryDocumentOK) IsRedirect() bool
- func (o *RestColServiceQueryDocumentOK) IsServerError() bool
- func (o *RestColServiceQueryDocumentOK) IsSuccess() bool
- func (o *RestColServiceQueryDocumentOK) String() string
- type RestColServiceQueryDocumentParams
- func NewRestColServiceQueryDocumentParams() *RestColServiceQueryDocumentParams
- func NewRestColServiceQueryDocumentParamsWithContext(ctx context.Context) *RestColServiceQueryDocumentParams
- func NewRestColServiceQueryDocumentParamsWithHTTPClient(client *http.Client) *RestColServiceQueryDocumentParams
- func NewRestColServiceQueryDocumentParamsWithTimeout(timeout time.Duration) *RestColServiceQueryDocumentParams
- func (o *RestColServiceQueryDocumentParams) SetCollectionID(collectionID string)
- func (o *RestColServiceQueryDocumentParams) SetContext(ctx context.Context)
- func (o *RestColServiceQueryDocumentParams) SetDefaults()
- func (o *RestColServiceQueryDocumentParams) SetEndedAt(endedAt *strfmt.DateTime)
- func (o *RestColServiceQueryDocumentParams) SetFieldSelectors(fieldSelectors []string)
- func (o *RestColServiceQueryDocumentParams) SetHTTPClient(client *http.Client)
- func (o *RestColServiceQueryDocumentParams) SetLimitCount(limitCount *int32)
- func (o *RestColServiceQueryDocumentParams) SetProjectID(projectID string)
- func (o *RestColServiceQueryDocumentParams) SetSinceTs(sinceTs *strfmt.DateTime)
- func (o *RestColServiceQueryDocumentParams) SetTimeout(timeout time.Duration)
- func (o *RestColServiceQueryDocumentParams) WithCollectionID(collectionID string) *RestColServiceQueryDocumentParams
- func (o *RestColServiceQueryDocumentParams) WithContext(ctx context.Context) *RestColServiceQueryDocumentParams
- func (o *RestColServiceQueryDocumentParams) WithDefaults() *RestColServiceQueryDocumentParams
- func (o *RestColServiceQueryDocumentParams) WithEndedAt(endedAt *strfmt.DateTime) *RestColServiceQueryDocumentParams
- func (o *RestColServiceQueryDocumentParams) WithFieldSelectors(fieldSelectors []string) *RestColServiceQueryDocumentParams
- func (o *RestColServiceQueryDocumentParams) WithHTTPClient(client *http.Client) *RestColServiceQueryDocumentParams
- func (o *RestColServiceQueryDocumentParams) WithLimitCount(limitCount *int32) *RestColServiceQueryDocumentParams
- func (o *RestColServiceQueryDocumentParams) WithProjectID(projectID string) *RestColServiceQueryDocumentParams
- func (o *RestColServiceQueryDocumentParams) WithSinceTs(sinceTs *strfmt.DateTime) *RestColServiceQueryDocumentParams
- func (o *RestColServiceQueryDocumentParams) WithTimeout(timeout time.Duration) *RestColServiceQueryDocumentParams
- func (o *RestColServiceQueryDocumentParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type RestColServiceQueryDocumentReader
- type RestColServiceQueryDocumentsStreamDefault
- func (o *RestColServiceQueryDocumentsStreamDefault) Code() int
- func (o *RestColServiceQueryDocumentsStreamDefault) Error() string
- func (o *RestColServiceQueryDocumentsStreamDefault) GetPayload() *models.RPCStatus
- func (o *RestColServiceQueryDocumentsStreamDefault) IsClientError() bool
- func (o *RestColServiceQueryDocumentsStreamDefault) IsCode(code int) bool
- func (o *RestColServiceQueryDocumentsStreamDefault) IsRedirect() bool
- func (o *RestColServiceQueryDocumentsStreamDefault) IsServerError() bool
- func (o *RestColServiceQueryDocumentsStreamDefault) IsSuccess() bool
- func (o *RestColServiceQueryDocumentsStreamDefault) String() string
- type RestColServiceQueryDocumentsStreamOK
- func (o *RestColServiceQueryDocumentsStreamOK) Code() int
- func (o *RestColServiceQueryDocumentsStreamOK) Error() string
- func (o *RestColServiceQueryDocumentsStreamOK) GetPayload() *RestColServiceQueryDocumentsStreamOKBody
- func (o *RestColServiceQueryDocumentsStreamOK) IsClientError() bool
- func (o *RestColServiceQueryDocumentsStreamOK) IsCode(code int) bool
- func (o *RestColServiceQueryDocumentsStreamOK) IsRedirect() bool
- func (o *RestColServiceQueryDocumentsStreamOK) IsServerError() bool
- func (o *RestColServiceQueryDocumentsStreamOK) IsSuccess() bool
- func (o *RestColServiceQueryDocumentsStreamOK) String() string
- type RestColServiceQueryDocumentsStreamOKBody
- func (o *RestColServiceQueryDocumentsStreamOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *RestColServiceQueryDocumentsStreamOKBody) MarshalBinary() ([]byte, error)
- func (o *RestColServiceQueryDocumentsStreamOKBody) UnmarshalBinary(b []byte) error
- func (o *RestColServiceQueryDocumentsStreamOKBody) Validate(formats strfmt.Registry) error
- type RestColServiceQueryDocumentsStreamParams
- func NewRestColServiceQueryDocumentsStreamParams() *RestColServiceQueryDocumentsStreamParams
- func NewRestColServiceQueryDocumentsStreamParamsWithContext(ctx context.Context) *RestColServiceQueryDocumentsStreamParams
- func NewRestColServiceQueryDocumentsStreamParamsWithHTTPClient(client *http.Client) *RestColServiceQueryDocumentsStreamParams
- func NewRestColServiceQueryDocumentsStreamParamsWithTimeout(timeout time.Duration) *RestColServiceQueryDocumentsStreamParams
- func (o *RestColServiceQueryDocumentsStreamParams) SetCollectionID(collectionID string)
- func (o *RestColServiceQueryDocumentsStreamParams) SetContext(ctx context.Context)
- func (o *RestColServiceQueryDocumentsStreamParams) SetDefaults()
- func (o *RestColServiceQueryDocumentsStreamParams) SetEndedAt(endedAt *strfmt.DateTime)
- func (o *RestColServiceQueryDocumentsStreamParams) SetFieldSelectors(fieldSelectors []string)
- func (o *RestColServiceQueryDocumentsStreamParams) SetFollowUpMode(followUpMode *bool)
- func (o *RestColServiceQueryDocumentsStreamParams) SetHTTPClient(client *http.Client)
- func (o *RestColServiceQueryDocumentsStreamParams) SetLimitCount(limitCount *int32)
- func (o *RestColServiceQueryDocumentsStreamParams) SetProjectID(projectID string)
- func (o *RestColServiceQueryDocumentsStreamParams) SetSinceTs(sinceTs *strfmt.DateTime)
- func (o *RestColServiceQueryDocumentsStreamParams) SetTimeout(timeout time.Duration)
- func (o *RestColServiceQueryDocumentsStreamParams) WithCollectionID(collectionID string) *RestColServiceQueryDocumentsStreamParams
- func (o *RestColServiceQueryDocumentsStreamParams) WithContext(ctx context.Context) *RestColServiceQueryDocumentsStreamParams
- func (o *RestColServiceQueryDocumentsStreamParams) WithDefaults() *RestColServiceQueryDocumentsStreamParams
- func (o *RestColServiceQueryDocumentsStreamParams) WithEndedAt(endedAt *strfmt.DateTime) *RestColServiceQueryDocumentsStreamParams
- func (o *RestColServiceQueryDocumentsStreamParams) WithFieldSelectors(fieldSelectors []string) *RestColServiceQueryDocumentsStreamParams
- func (o *RestColServiceQueryDocumentsStreamParams) WithFollowUpMode(followUpMode *bool) *RestColServiceQueryDocumentsStreamParams
- func (o *RestColServiceQueryDocumentsStreamParams) WithHTTPClient(client *http.Client) *RestColServiceQueryDocumentsStreamParams
- func (o *RestColServiceQueryDocumentsStreamParams) WithLimitCount(limitCount *int32) *RestColServiceQueryDocumentsStreamParams
- func (o *RestColServiceQueryDocumentsStreamParams) WithProjectID(projectID string) *RestColServiceQueryDocumentsStreamParams
- func (o *RestColServiceQueryDocumentsStreamParams) WithSinceTs(sinceTs *strfmt.DateTime) *RestColServiceQueryDocumentsStreamParams
- func (o *RestColServiceQueryDocumentsStreamParams) WithTimeout(timeout time.Duration) *RestColServiceQueryDocumentsStreamParams
- func (o *RestColServiceQueryDocumentsStreamParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type RestColServiceQueryDocumentsStreamReader
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 ¶
func (o *RestColServiceCreateDocument2Default) Code() int
Code gets the status code for the rest col service create document2 default response
func (*RestColServiceCreateDocument2Default) Error ¶
func (o *RestColServiceCreateDocument2Default) Error() string
func (*RestColServiceCreateDocument2Default) GetPayload ¶
func (o *RestColServiceCreateDocument2Default) GetPayload() *models.RPCStatus
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 ¶
func (o *RestColServiceCreateDocument2Default) IsCode(code int) bool
IsCode returns true when this rest col service create document2 default response a status code equal to that given
func (*RestColServiceCreateDocument2Default) IsRedirect ¶
func (o *RestColServiceCreateDocument2Default) IsRedirect() bool
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 ¶
func (o *RestColServiceCreateDocument2Default) IsSuccess() bool
IsSuccess returns true when this rest col service create document2 default response has a 2xx status code
func (*RestColServiceCreateDocument2Default) String ¶
func (o *RestColServiceCreateDocument2Default) String() 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 ¶
func (o *RestColServiceCreateDocument2OK) Code() int
Code gets the status code for the rest col service create document2 o k response
func (*RestColServiceCreateDocument2OK) Error ¶
func (o *RestColServiceCreateDocument2OK) Error() string
func (*RestColServiceCreateDocument2OK) GetPayload ¶
func (o *RestColServiceCreateDocument2OK) GetPayload() *models.APICreateDocumentResponse
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 ¶
func (o *RestColServiceCreateDocument2OK) String() 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 ¶
func (o *RestColServiceCreateDocument2Params) SetBody(body *models.RestColServiceCreateDocumentBody)
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 ¶
func (o *RestColServiceCreateDocument2Params) SetContext(ctx context.Context)
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 ¶
func (o *RestColServiceCreateDocument2Params) WithBody(body *models.RestColServiceCreateDocumentBody) *RestColServiceCreateDocument2Params
WithBody adds the body to the rest col service create document2 params
func (*RestColServiceCreateDocument2Params) WithCollectionID ¶
func (o *RestColServiceCreateDocument2Params) WithCollectionID(collectionID string) *RestColServiceCreateDocument2Params
WithCollectionID adds the collectionID to the rest col service create document2 params
func (*RestColServiceCreateDocument2Params) WithContext ¶
func (o *RestColServiceCreateDocument2Params) WithContext(ctx context.Context) *RestColServiceCreateDocument2Params
WithContext adds the context to the rest col service create document2 params
func (*RestColServiceCreateDocument2Params) WithDefaults ¶
func (o *RestColServiceCreateDocument2Params) WithDefaults() *RestColServiceCreateDocument2Params
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 ¶
func (o *RestColServiceCreateDocument2Params) WithHTTPClient(client *http.Client) *RestColServiceCreateDocument2Params
WithHTTPClient adds the HTTPClient to the rest col service create document2 params
func (*RestColServiceCreateDocument2Params) WithProjectID ¶
func (o *RestColServiceCreateDocument2Params) WithProjectID(projectID string) *RestColServiceCreateDocument2Params
WithProjectID adds the projectID to the rest col service create document2 params
func (*RestColServiceCreateDocument2Params) WithTimeout ¶
func (o *RestColServiceCreateDocument2Params) WithTimeout(timeout time.Duration) *RestColServiceCreateDocument2Params
WithTimeout adds the timeout to the rest col service create document2 params
func (*RestColServiceCreateDocument2Params) WriteToRequest ¶
func (o *RestColServiceCreateDocument2Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *RestColServiceCreateDocumentDefault) Code() int
Code gets the status code for the rest col service create document default response
func (*RestColServiceCreateDocumentDefault) Error ¶
func (o *RestColServiceCreateDocumentDefault) Error() string
func (*RestColServiceCreateDocumentDefault) GetPayload ¶
func (o *RestColServiceCreateDocumentDefault) GetPayload() *models.RPCStatus
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 ¶
func (o *RestColServiceCreateDocumentDefault) IsCode(code int) bool
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 ¶
func (o *RestColServiceCreateDocumentDefault) IsSuccess() bool
IsSuccess returns true when this rest col service create document default response has a 2xx status code
func (*RestColServiceCreateDocumentDefault) String ¶
func (o *RestColServiceCreateDocumentDefault) String() 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 ¶
func (o *RestColServiceCreateDocumentOK) Code() int
Code gets the status code for the rest col service create document o k response
func (*RestColServiceCreateDocumentOK) Error ¶
func (o *RestColServiceCreateDocumentOK) Error() string
func (*RestColServiceCreateDocumentOK) GetPayload ¶
func (o *RestColServiceCreateDocumentOK) GetPayload() *models.APICreateDocumentResponse
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 ¶
func (o *RestColServiceCreateDocumentOK) String() 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 ¶
func (o *RestColServiceCreateDocumentParams) SetBody(body *models.RestColServiceCreateDocumentBody)
SetBody adds the body to the rest col service create document params
func (*RestColServiceCreateDocumentParams) SetContext ¶
func (o *RestColServiceCreateDocumentParams) SetContext(ctx context.Context)
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 ¶
func (o *RestColServiceCreateDocumentParams) WithBody(body *models.RestColServiceCreateDocumentBody) *RestColServiceCreateDocumentParams
WithBody adds the body to the rest col service create document params
func (*RestColServiceCreateDocumentParams) WithContext ¶
func (o *RestColServiceCreateDocumentParams) WithContext(ctx context.Context) *RestColServiceCreateDocumentParams
WithContext adds the context to the rest col service create document params
func (*RestColServiceCreateDocumentParams) WithDefaults ¶
func (o *RestColServiceCreateDocumentParams) WithDefaults() *RestColServiceCreateDocumentParams
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 ¶
func (o *RestColServiceCreateDocumentParams) WithHTTPClient(client *http.Client) *RestColServiceCreateDocumentParams
WithHTTPClient adds the HTTPClient to the rest col service create document params
func (*RestColServiceCreateDocumentParams) WithProjectID ¶
func (o *RestColServiceCreateDocumentParams) WithProjectID(projectID string) *RestColServiceCreateDocumentParams
WithProjectID adds the projectID to the rest col service create document params
func (*RestColServiceCreateDocumentParams) WithTimeout ¶
func (o *RestColServiceCreateDocumentParams) WithTimeout(timeout time.Duration) *RestColServiceCreateDocumentParams
WithTimeout adds the timeout to the rest col service create document params
func (*RestColServiceCreateDocumentParams) WriteToRequest ¶
func (o *RestColServiceCreateDocumentParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *RestColServiceDeleteDocumentDefault) Code() int
Code gets the status code for the rest col service delete document default response
func (*RestColServiceDeleteDocumentDefault) Error ¶
func (o *RestColServiceDeleteDocumentDefault) Error() string
func (*RestColServiceDeleteDocumentDefault) GetPayload ¶
func (o *RestColServiceDeleteDocumentDefault) GetPayload() *models.RPCStatus
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 ¶
func (o *RestColServiceDeleteDocumentDefault) IsCode(code int) bool
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 ¶
func (o *RestColServiceDeleteDocumentDefault) IsSuccess() bool
IsSuccess returns true when this rest col service delete document default response has a 2xx status code
func (*RestColServiceDeleteDocumentDefault) String ¶
func (o *RestColServiceDeleteDocumentDefault) String() 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 ¶
func (o *RestColServiceDeleteDocumentOK) Code() int
Code gets the status code for the rest col service delete document o k response
func (*RestColServiceDeleteDocumentOK) Error ¶
func (o *RestColServiceDeleteDocumentOK) Error() string
func (*RestColServiceDeleteDocumentOK) GetPayload ¶
func (o *RestColServiceDeleteDocumentOK) GetPayload() models.APIDeleteDocumentResponse
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 ¶
func (o *RestColServiceDeleteDocumentOK) String() 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 ¶
func (o *RestColServiceDeleteDocumentParams) SetContext(ctx context.Context)
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 ¶
func (o *RestColServiceDeleteDocumentParams) WithCollectionID(collectionID string) *RestColServiceDeleteDocumentParams
WithCollectionID adds the collectionID to the rest col service delete document params
func (*RestColServiceDeleteDocumentParams) WithContext ¶
func (o *RestColServiceDeleteDocumentParams) WithContext(ctx context.Context) *RestColServiceDeleteDocumentParams
WithContext adds the context to the rest col service delete document params
func (*RestColServiceDeleteDocumentParams) WithDefaults ¶
func (o *RestColServiceDeleteDocumentParams) WithDefaults() *RestColServiceDeleteDocumentParams
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 ¶
func (o *RestColServiceDeleteDocumentParams) WithDocumentID(documentID string) *RestColServiceDeleteDocumentParams
WithDocumentID adds the documentID to the rest col service delete document params
func (*RestColServiceDeleteDocumentParams) WithHTTPClient ¶
func (o *RestColServiceDeleteDocumentParams) WithHTTPClient(client *http.Client) *RestColServiceDeleteDocumentParams
WithHTTPClient adds the HTTPClient to the rest col service delete document params
func (*RestColServiceDeleteDocumentParams) WithProjectID ¶
func (o *RestColServiceDeleteDocumentParams) WithProjectID(projectID string) *RestColServiceDeleteDocumentParams
WithProjectID adds the projectID to the rest col service delete document params
func (*RestColServiceDeleteDocumentParams) WithTimeout ¶
func (o *RestColServiceDeleteDocumentParams) WithTimeout(timeout time.Duration) *RestColServiceDeleteDocumentParams
WithTimeout adds the timeout to the rest col service delete document params
func (*RestColServiceDeleteDocumentParams) WriteToRequest ¶
func (o *RestColServiceDeleteDocumentParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *RestColServiceGetDocumentDefault) Code() int
Code gets the status code for the rest col service get document default response
func (*RestColServiceGetDocumentDefault) Error ¶
func (o *RestColServiceGetDocumentDefault) Error() string
func (*RestColServiceGetDocumentDefault) GetPayload ¶
func (o *RestColServiceGetDocumentDefault) GetPayload() *models.RPCStatus
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 ¶
func (o *RestColServiceGetDocumentDefault) String() 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 (o *RestColServiceGetDocumentOK) Error() string
func (*RestColServiceGetDocumentOK) GetPayload ¶
func (o *RestColServiceGetDocumentOK) GetPayload() *models.APIGetDocumentResponse
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 ¶
func (o *RestColServiceGetDocumentParams) WithContext(ctx context.Context) *RestColServiceGetDocumentParams
WithContext adds the context to the rest col service get document params
func (*RestColServiceGetDocumentParams) WithDefaults ¶
func (o *RestColServiceGetDocumentParams) WithDefaults() *RestColServiceGetDocumentParams
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 ¶
func (o *RestColServiceGetDocumentParams) WithDocumentID(documentID string) *RestColServiceGetDocumentParams
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 ¶
func (o *RestColServiceGetDocumentParams) WithHTTPClient(client *http.Client) *RestColServiceGetDocumentParams
WithHTTPClient adds the HTTPClient to the rest col service get document params
func (*RestColServiceGetDocumentParams) WithProjectID ¶
func (o *RestColServiceGetDocumentParams) WithProjectID(projectID string) *RestColServiceGetDocumentParams
WithProjectID adds the projectID to the rest col service get document params
func (*RestColServiceGetDocumentParams) WithTimeout ¶
func (o *RestColServiceGetDocumentParams) WithTimeout(timeout time.Duration) *RestColServiceGetDocumentParams
WithTimeout adds the timeout to the rest col service get document params
func (*RestColServiceGetDocumentParams) WriteToRequest ¶
func (o *RestColServiceGetDocumentParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *RestColServiceQueryDocumentDefault) Code() int
Code gets the status code for the rest col service query document default response
func (*RestColServiceQueryDocumentDefault) Error ¶
func (o *RestColServiceQueryDocumentDefault) Error() string
func (*RestColServiceQueryDocumentDefault) GetPayload ¶
func (o *RestColServiceQueryDocumentDefault) GetPayload() *models.RPCStatus
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 ¶
func (o *RestColServiceQueryDocumentDefault) IsCode(code int) bool
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 ¶
func (o *RestColServiceQueryDocumentDefault) IsSuccess() bool
IsSuccess returns true when this rest col service query document default response has a 2xx status code
func (*RestColServiceQueryDocumentDefault) String ¶
func (o *RestColServiceQueryDocumentDefault) String() 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 ¶
func (o *RestColServiceQueryDocumentOK) Code() int
Code gets the status code for the rest col service query document o k response
func (*RestColServiceQueryDocumentOK) Error ¶
func (o *RestColServiceQueryDocumentOK) Error() string
func (*RestColServiceQueryDocumentOK) GetPayload ¶
func (o *RestColServiceQueryDocumentOK) GetPayload() *models.APIQueryDocumentResponse
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 ¶
func (o *RestColServiceQueryDocumentOK) String() 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 ¶
func (o *RestColServiceQueryDocumentParams) SetContext(ctx context.Context)
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 ¶
func (o *RestColServiceQueryDocumentParams) WithCollectionID(collectionID string) *RestColServiceQueryDocumentParams
WithCollectionID adds the collectionID to the rest col service query document params
func (*RestColServiceQueryDocumentParams) WithContext ¶
func (o *RestColServiceQueryDocumentParams) WithContext(ctx context.Context) *RestColServiceQueryDocumentParams
WithContext adds the context to the rest col service query document params
func (*RestColServiceQueryDocumentParams) WithDefaults ¶
func (o *RestColServiceQueryDocumentParams) WithDefaults() *RestColServiceQueryDocumentParams
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 ¶
func (o *RestColServiceQueryDocumentParams) WithEndedAt(endedAt *strfmt.DateTime) *RestColServiceQueryDocumentParams
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 ¶
func (o *RestColServiceQueryDocumentParams) WithHTTPClient(client *http.Client) *RestColServiceQueryDocumentParams
WithHTTPClient adds the HTTPClient to the rest col service query document params
func (*RestColServiceQueryDocumentParams) WithLimitCount ¶
func (o *RestColServiceQueryDocumentParams) WithLimitCount(limitCount *int32) *RestColServiceQueryDocumentParams
WithLimitCount adds the limitCount to the rest col service query document params
func (*RestColServiceQueryDocumentParams) WithProjectID ¶
func (o *RestColServiceQueryDocumentParams) WithProjectID(projectID string) *RestColServiceQueryDocumentParams
WithProjectID adds the projectID to the rest col service query document params
func (*RestColServiceQueryDocumentParams) WithSinceTs ¶
func (o *RestColServiceQueryDocumentParams) WithSinceTs(sinceTs *strfmt.DateTime) *RestColServiceQueryDocumentParams
WithSinceTs adds the sinceTs to the rest col service query document params
func (*RestColServiceQueryDocumentParams) WithTimeout ¶
func (o *RestColServiceQueryDocumentParams) WithTimeout(timeout time.Duration) *RestColServiceQueryDocumentParams
WithTimeout adds the timeout to the rest col service query document params
func (*RestColServiceQueryDocumentParams) WriteToRequest ¶
func (o *RestColServiceQueryDocumentParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *RestColServiceQueryDocumentsStreamDefault) Code() int
Code gets the status code for the rest col service query documents stream default response
func (*RestColServiceQueryDocumentsStreamDefault) Error ¶
func (o *RestColServiceQueryDocumentsStreamDefault) Error() string
func (*RestColServiceQueryDocumentsStreamDefault) GetPayload ¶
func (o *RestColServiceQueryDocumentsStreamDefault) GetPayload() *models.RPCStatus
func (*RestColServiceQueryDocumentsStreamDefault) IsClientError ¶
func (o *RestColServiceQueryDocumentsStreamDefault) IsClientError() bool
IsClientError returns true when this rest col service query documents stream default response has a 4xx status code
func (*RestColServiceQueryDocumentsStreamDefault) IsCode ¶
func (o *RestColServiceQueryDocumentsStreamDefault) IsCode(code int) bool
IsCode returns true when this rest col service query documents stream default response a status code equal to that given
func (*RestColServiceQueryDocumentsStreamDefault) IsRedirect ¶
func (o *RestColServiceQueryDocumentsStreamDefault) IsRedirect() bool
IsRedirect returns true when this rest col service query documents stream default response has a 3xx status code
func (*RestColServiceQueryDocumentsStreamDefault) IsServerError ¶
func (o *RestColServiceQueryDocumentsStreamDefault) IsServerError() bool
IsServerError returns true when this rest col service query documents stream default response has a 5xx status code
func (*RestColServiceQueryDocumentsStreamDefault) IsSuccess ¶
func (o *RestColServiceQueryDocumentsStreamDefault) IsSuccess() bool
IsSuccess returns true when this rest col service query documents stream default response has a 2xx status code
func (*RestColServiceQueryDocumentsStreamDefault) String ¶
func (o *RestColServiceQueryDocumentsStreamDefault) String() 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 ¶
func (o *RestColServiceQueryDocumentsStreamOK) Code() int
Code gets the status code for the rest col service query documents stream o k response
func (*RestColServiceQueryDocumentsStreamOK) Error ¶
func (o *RestColServiceQueryDocumentsStreamOK) Error() string
func (*RestColServiceQueryDocumentsStreamOK) GetPayload ¶
func (o *RestColServiceQueryDocumentsStreamOK) GetPayload() *RestColServiceQueryDocumentsStreamOKBody
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 ¶
func (o *RestColServiceQueryDocumentsStreamOK) IsCode(code int) bool
IsCode returns true when this rest col service query documents stream o k response a status code equal to that given
func (*RestColServiceQueryDocumentsStreamOK) IsRedirect ¶
func (o *RestColServiceQueryDocumentsStreamOK) IsRedirect() bool
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 ¶
func (o *RestColServiceQueryDocumentsStreamOK) IsSuccess() bool
IsSuccess returns true when this rest col service query documents stream o k response has a 2xx status code
func (*RestColServiceQueryDocumentsStreamOK) String ¶
func (o *RestColServiceQueryDocumentsStreamOK) String() 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 ¶
func (o *RestColServiceQueryDocumentsStreamOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
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
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 ¶
func (o *RestColServiceQueryDocumentsStreamParams) SetContext(ctx context.Context)
SetContext adds the context to the rest col service query documents stream params
func (*RestColServiceQueryDocumentsStreamParams) SetDefaults ¶
func (o *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 ¶
func (o *RestColServiceQueryDocumentsStreamParams) SetEndedAt(endedAt *strfmt.DateTime)
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 ¶
func (o *RestColServiceQueryDocumentsStreamParams) SetSinceTs(sinceTs *strfmt.DateTime)
SetSinceTs adds the sinceTs to the rest col service query documents stream params
func (*RestColServiceQueryDocumentsStreamParams) SetTimeout ¶
func (o *RestColServiceQueryDocumentsStreamParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the rest col service query documents stream params
func (*RestColServiceQueryDocumentsStreamParams) WithCollectionID ¶
func (o *RestColServiceQueryDocumentsStreamParams) WithCollectionID(collectionID string) *RestColServiceQueryDocumentsStreamParams
WithCollectionID adds the collectionID to the rest col service query documents stream params
func (*RestColServiceQueryDocumentsStreamParams) WithContext ¶
func (o *RestColServiceQueryDocumentsStreamParams) WithContext(ctx context.Context) *RestColServiceQueryDocumentsStreamParams
WithContext adds the context to the rest col service query documents stream params
func (*RestColServiceQueryDocumentsStreamParams) WithDefaults ¶
func (o *RestColServiceQueryDocumentsStreamParams) WithDefaults() *RestColServiceQueryDocumentsStreamParams
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 ¶
func (o *RestColServiceQueryDocumentsStreamParams) WithEndedAt(endedAt *strfmt.DateTime) *RestColServiceQueryDocumentsStreamParams
WithEndedAt adds the endedAt to the rest col service query documents stream params
func (*RestColServiceQueryDocumentsStreamParams) WithFieldSelectors ¶
func (o *RestColServiceQueryDocumentsStreamParams) WithFieldSelectors(fieldSelectors []string) *RestColServiceQueryDocumentsStreamParams
WithFieldSelectors adds the fieldSelectors to the rest col service query documents stream params
func (*RestColServiceQueryDocumentsStreamParams) WithFollowUpMode ¶
func (o *RestColServiceQueryDocumentsStreamParams) WithFollowUpMode(followUpMode *bool) *RestColServiceQueryDocumentsStreamParams
WithFollowUpMode adds the followUpMode to the rest col service query documents stream params
func (*RestColServiceQueryDocumentsStreamParams) WithHTTPClient ¶
func (o *RestColServiceQueryDocumentsStreamParams) WithHTTPClient(client *http.Client) *RestColServiceQueryDocumentsStreamParams
WithHTTPClient adds the HTTPClient to the rest col service query documents stream params
func (*RestColServiceQueryDocumentsStreamParams) WithLimitCount ¶
func (o *RestColServiceQueryDocumentsStreamParams) WithLimitCount(limitCount *int32) *RestColServiceQueryDocumentsStreamParams
WithLimitCount adds the limitCount to the rest col service query documents stream params
func (*RestColServiceQueryDocumentsStreamParams) WithProjectID ¶
func (o *RestColServiceQueryDocumentsStreamParams) WithProjectID(projectID string) *RestColServiceQueryDocumentsStreamParams
WithProjectID adds the projectID to the rest col service query documents stream params
func (*RestColServiceQueryDocumentsStreamParams) WithSinceTs ¶
func (o *RestColServiceQueryDocumentsStreamParams) WithSinceTs(sinceTs *strfmt.DateTime) *RestColServiceQueryDocumentsStreamParams
WithSinceTs adds the sinceTs to the rest col service query documents stream params
func (*RestColServiceQueryDocumentsStreamParams) WithTimeout ¶
func (o *RestColServiceQueryDocumentsStreamParams) WithTimeout(timeout time.Duration) *RestColServiceQueryDocumentsStreamParams
WithTimeout adds the timeout to the rest col service query documents stream params
func (*RestColServiceQueryDocumentsStreamParams) WriteToRequest ¶
func (o *RestColServiceQueryDocumentsStreamParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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.
Source Files ¶
- document_client.go
- rest_col_service_create_document2_parameters.go
- rest_col_service_create_document2_responses.go
- rest_col_service_create_document_parameters.go
- rest_col_service_create_document_responses.go
- rest_col_service_delete_document_parameters.go
- rest_col_service_delete_document_responses.go
- rest_col_service_get_document_parameters.go
- rest_col_service_get_document_responses.go
- rest_col_service_query_document_parameters.go
- rest_col_service_query_document_responses.go
- rest_col_service_query_documents_stream_parameters.go
- rest_col_service_query_documents_stream_responses.go