operations

package
v0.0.0-...-8832f83 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2019 License: BSD-3-Clause Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
const WeaviateBatchingActionsCreateAcceptedCode int = 202

WeaviateBatchingActionsCreateAcceptedCode is the HTTP code returned for type WeaviateBatchingActionsCreateAccepted

View Source
const WeaviateBatchingActionsCreateForbiddenCode int = 403

WeaviateBatchingActionsCreateForbiddenCode is the HTTP code returned for type WeaviateBatchingActionsCreateForbidden

View Source
const WeaviateBatchingActionsCreateInternalServerErrorCode int = 500

WeaviateBatchingActionsCreateInternalServerErrorCode is the HTTP code returned for type WeaviateBatchingActionsCreateInternalServerError

View Source
const WeaviateBatchingActionsCreateOKCode int = 200

WeaviateBatchingActionsCreateOKCode is the HTTP code returned for type WeaviateBatchingActionsCreateOK

View Source
const WeaviateBatchingActionsCreateUnauthorizedCode int = 401

WeaviateBatchingActionsCreateUnauthorizedCode is the HTTP code returned for type WeaviateBatchingActionsCreateUnauthorized

View Source
const WeaviateBatchingActionsCreateUnprocessableEntityCode int = 422

WeaviateBatchingActionsCreateUnprocessableEntityCode is the HTTP code returned for type WeaviateBatchingActionsCreateUnprocessableEntity

View Source
const WeaviateBatchingThingsCreateAcceptedCode int = 202

WeaviateBatchingThingsCreateAcceptedCode is the HTTP code returned for type WeaviateBatchingThingsCreateAccepted

View Source
const WeaviateBatchingThingsCreateForbiddenCode int = 403

WeaviateBatchingThingsCreateForbiddenCode is the HTTP code returned for type WeaviateBatchingThingsCreateForbidden

View Source
const WeaviateBatchingThingsCreateInternalServerErrorCode int = 500

WeaviateBatchingThingsCreateInternalServerErrorCode is the HTTP code returned for type WeaviateBatchingThingsCreateInternalServerError

View Source
const WeaviateBatchingThingsCreateOKCode int = 200

WeaviateBatchingThingsCreateOKCode is the HTTP code returned for type WeaviateBatchingThingsCreateOK

View Source
const WeaviateBatchingThingsCreateUnauthorizedCode int = 401

WeaviateBatchingThingsCreateUnauthorizedCode is the HTTP code returned for type WeaviateBatchingThingsCreateUnauthorized

View Source
const WeaviateBatchingThingsCreateUnprocessableEntityCode int = 422

WeaviateBatchingThingsCreateUnprocessableEntityCode is the HTTP code returned for type WeaviateBatchingThingsCreateUnprocessableEntity

Variables

This section is empty.

Functions

This section is empty.

Types

type WeaviateAPI

type WeaviateAPI struct {
	Middleware func(middleware.Builder) http.Handler

	// BasicAuthenticator generates a runtime.Authenticator from the supplied basic auth function.
	// It has a default implemention in the security package, however you can replace it for your particular usage.
	BasicAuthenticator func(security.UserPassAuthentication) runtime.Authenticator
	// APIKeyAuthenticator generates a runtime.Authenticator from the supplied token auth function.
	// It has a default implemention in the security package, however you can replace it for your particular usage.
	APIKeyAuthenticator func(string, string, security.TokenAuthentication) runtime.Authenticator
	// BearerAuthenticator generates a runtime.Authenticator from the supplied bearer token auth function.
	// It has a default implemention in the security package, however you can replace it for your particular usage.
	BearerAuthenticator func(string, security.ScopedTokenAuthentication) runtime.Authenticator

	// JSONConsumer registers a consumer for a "application/json" mime type
	JSONConsumer runtime.Consumer

	// JSONProducer registers a producer for a "application/json" mime type
	JSONProducer runtime.Producer

	// ActionsWeaviateActionHistoryGetHandler sets the operation handler for the weaviate action history get operation
	ActionsWeaviateActionHistoryGetHandler actions.WeaviateActionHistoryGetHandler
	// ActionsWeaviateActionUpdateHandler sets the operation handler for the weaviate action update operation
	ActionsWeaviateActionUpdateHandler actions.WeaviateActionUpdateHandler
	// ActionsWeaviateActionsCreateHandler sets the operation handler for the weaviate actions create operation
	ActionsWeaviateActionsCreateHandler actions.WeaviateActionsCreateHandler
	// ActionsWeaviateActionsDeleteHandler sets the operation handler for the weaviate actions delete operation
	ActionsWeaviateActionsDeleteHandler actions.WeaviateActionsDeleteHandler
	// ActionsWeaviateActionsGetHandler sets the operation handler for the weaviate actions get operation
	ActionsWeaviateActionsGetHandler actions.WeaviateActionsGetHandler
	// ActionsWeaviateActionsListHandler sets the operation handler for the weaviate actions list operation
	ActionsWeaviateActionsListHandler actions.WeaviateActionsListHandler
	// ActionsWeaviateActionsPatchHandler sets the operation handler for the weaviate actions patch operation
	ActionsWeaviateActionsPatchHandler actions.WeaviateActionsPatchHandler
	// ActionsWeaviateActionsPropertiesCreateHandler sets the operation handler for the weaviate actions properties create operation
	ActionsWeaviateActionsPropertiesCreateHandler actions.WeaviateActionsPropertiesCreateHandler
	// ActionsWeaviateActionsPropertiesDeleteHandler sets the operation handler for the weaviate actions properties delete operation
	ActionsWeaviateActionsPropertiesDeleteHandler actions.WeaviateActionsPropertiesDeleteHandler
	// ActionsWeaviateActionsPropertiesUpdateHandler sets the operation handler for the weaviate actions properties update operation
	ActionsWeaviateActionsPropertiesUpdateHandler actions.WeaviateActionsPropertiesUpdateHandler
	// ActionsWeaviateActionsValidateHandler sets the operation handler for the weaviate actions validate operation
	ActionsWeaviateActionsValidateHandler actions.WeaviateActionsValidateHandler
	// WeaviateBatchingActionsCreateHandler sets the operation handler for the weaviate batching actions create operation
	WeaviateBatchingActionsCreateHandler WeaviateBatchingActionsCreateHandler
	// WeaviateBatchingThingsCreateHandler sets the operation handler for the weaviate batching things create operation
	WeaviateBatchingThingsCreateHandler WeaviateBatchingThingsCreateHandler
	// GraphqlWeaviateGraphqlBatchHandler sets the operation handler for the weaviate graphql batch operation
	GraphqlWeaviateGraphqlBatchHandler graphql.WeaviateGraphqlBatchHandler
	// GraphqlWeaviateGraphqlPostHandler sets the operation handler for the weaviate graphql post operation
	GraphqlWeaviateGraphqlPostHandler graphql.WeaviateGraphqlPostHandler
	// MetaWeaviateMetaGetHandler sets the operation handler for the weaviate meta get operation
	MetaWeaviateMetaGetHandler meta.WeaviateMetaGetHandler
	// P2PWeaviateP2pGenesisUpdateHandler sets the operation handler for the weaviate p2p genesis update operation
	P2PWeaviateP2pGenesisUpdateHandler p2_p.WeaviateP2pGenesisUpdateHandler
	// P2PWeaviateP2pHealthHandler sets the operation handler for the weaviate p2p health operation
	P2PWeaviateP2pHealthHandler p2_p.WeaviateP2pHealthHandler
	// SchemaWeaviateSchemaActionsCreateHandler sets the operation handler for the weaviate schema actions create operation
	SchemaWeaviateSchemaActionsCreateHandler schema.WeaviateSchemaActionsCreateHandler
	// SchemaWeaviateSchemaActionsDeleteHandler sets the operation handler for the weaviate schema actions delete operation
	SchemaWeaviateSchemaActionsDeleteHandler schema.WeaviateSchemaActionsDeleteHandler
	// SchemaWeaviateSchemaActionsPropertiesAddHandler sets the operation handler for the weaviate schema actions properties add operation
	SchemaWeaviateSchemaActionsPropertiesAddHandler schema.WeaviateSchemaActionsPropertiesAddHandler
	// SchemaWeaviateSchemaActionsPropertiesDeleteHandler sets the operation handler for the weaviate schema actions properties delete operation
	SchemaWeaviateSchemaActionsPropertiesDeleteHandler schema.WeaviateSchemaActionsPropertiesDeleteHandler
	// SchemaWeaviateSchemaActionsPropertiesUpdateHandler sets the operation handler for the weaviate schema actions properties update operation
	SchemaWeaviateSchemaActionsPropertiesUpdateHandler schema.WeaviateSchemaActionsPropertiesUpdateHandler
	// SchemaWeaviateSchemaActionsUpdateHandler sets the operation handler for the weaviate schema actions update operation
	SchemaWeaviateSchemaActionsUpdateHandler schema.WeaviateSchemaActionsUpdateHandler
	// SchemaWeaviateSchemaDumpHandler sets the operation handler for the weaviate schema dump operation
	SchemaWeaviateSchemaDumpHandler schema.WeaviateSchemaDumpHandler
	// SchemaWeaviateSchemaThingsCreateHandler sets the operation handler for the weaviate schema things create operation
	SchemaWeaviateSchemaThingsCreateHandler schema.WeaviateSchemaThingsCreateHandler
	// SchemaWeaviateSchemaThingsDeleteHandler sets the operation handler for the weaviate schema things delete operation
	SchemaWeaviateSchemaThingsDeleteHandler schema.WeaviateSchemaThingsDeleteHandler
	// SchemaWeaviateSchemaThingsPropertiesAddHandler sets the operation handler for the weaviate schema things properties add operation
	SchemaWeaviateSchemaThingsPropertiesAddHandler schema.WeaviateSchemaThingsPropertiesAddHandler
	// SchemaWeaviateSchemaThingsPropertiesDeleteHandler sets the operation handler for the weaviate schema things properties delete operation
	SchemaWeaviateSchemaThingsPropertiesDeleteHandler schema.WeaviateSchemaThingsPropertiesDeleteHandler
	// SchemaWeaviateSchemaThingsPropertiesUpdateHandler sets the operation handler for the weaviate schema things properties update operation
	SchemaWeaviateSchemaThingsPropertiesUpdateHandler schema.WeaviateSchemaThingsPropertiesUpdateHandler
	// SchemaWeaviateSchemaThingsUpdateHandler sets the operation handler for the weaviate schema things update operation
	SchemaWeaviateSchemaThingsUpdateHandler schema.WeaviateSchemaThingsUpdateHandler
	// ThingsWeaviateThingHistoryGetHandler sets the operation handler for the weaviate thing history get operation
	ThingsWeaviateThingHistoryGetHandler things.WeaviateThingHistoryGetHandler
	// ThingsWeaviateThingsCreateHandler sets the operation handler for the weaviate things create operation
	ThingsWeaviateThingsCreateHandler things.WeaviateThingsCreateHandler
	// ThingsWeaviateThingsDeleteHandler sets the operation handler for the weaviate things delete operation
	ThingsWeaviateThingsDeleteHandler things.WeaviateThingsDeleteHandler
	// ThingsWeaviateThingsGetHandler sets the operation handler for the weaviate things get operation
	ThingsWeaviateThingsGetHandler things.WeaviateThingsGetHandler
	// ThingsWeaviateThingsListHandler sets the operation handler for the weaviate things list operation
	ThingsWeaviateThingsListHandler things.WeaviateThingsListHandler
	// ThingsWeaviateThingsPatchHandler sets the operation handler for the weaviate things patch operation
	ThingsWeaviateThingsPatchHandler things.WeaviateThingsPatchHandler
	// ThingsWeaviateThingsPropertiesCreateHandler sets the operation handler for the weaviate things properties create operation
	ThingsWeaviateThingsPropertiesCreateHandler things.WeaviateThingsPropertiesCreateHandler
	// ThingsWeaviateThingsPropertiesDeleteHandler sets the operation handler for the weaviate things properties delete operation
	ThingsWeaviateThingsPropertiesDeleteHandler things.WeaviateThingsPropertiesDeleteHandler
	// ThingsWeaviateThingsPropertiesUpdateHandler sets the operation handler for the weaviate things properties update operation
	ThingsWeaviateThingsPropertiesUpdateHandler things.WeaviateThingsPropertiesUpdateHandler
	// ThingsWeaviateThingsUpdateHandler sets the operation handler for the weaviate things update operation
	ThingsWeaviateThingsUpdateHandler things.WeaviateThingsUpdateHandler
	// ThingsWeaviateThingsValidateHandler sets the operation handler for the weaviate things validate operation
	ThingsWeaviateThingsValidateHandler things.WeaviateThingsValidateHandler
	// KnowledgeToolsWeaviateToolsMapHandler sets the operation handler for the weaviate tools map operation
	KnowledgeToolsWeaviateToolsMapHandler knowledge_tools.WeaviateToolsMapHandler

	// ServeError is called when an error is received, there is a default handler
	// but you can set your own with this
	ServeError func(http.ResponseWriter, *http.Request, error)

	// ServerShutdown is called when the HTTP(S) server is shut down and done
	// handling all active connections and does not accept connections any more
	ServerShutdown func()

	// Custom command line argument groups with their descriptions
	CommandLineOptionsGroups []swag.CommandLineOptionsGroup

	// User defined logger function.
	Logger func(string, ...interface{})
	// contains filtered or unexported fields
}

WeaviateAPI Decentralised Knowledge Graph

func NewWeaviateAPI

func NewWeaviateAPI(spec *loads.Document) *WeaviateAPI

NewWeaviateAPI creates a new Weaviate instance

func (*WeaviateAPI) AuthenticatorsFor

func (o *WeaviateAPI) AuthenticatorsFor(schemes map[string]spec.SecurityScheme) map[string]runtime.Authenticator

AuthenticatorsFor gets the authenticators for the specified security schemes

func (*WeaviateAPI) Authorizer

func (o *WeaviateAPI) Authorizer() runtime.Authorizer

Authorizer returns the registered authorizer

func (*WeaviateAPI) ConsumersFor

func (o *WeaviateAPI) ConsumersFor(mediaTypes []string) map[string]runtime.Consumer

ConsumersFor gets the consumers for the specified media types

func (*WeaviateAPI) Context

func (o *WeaviateAPI) Context() *middleware.Context

Context returns the middleware context for the weaviate API

func (*WeaviateAPI) DefaultConsumes

func (o *WeaviateAPI) DefaultConsumes() string

DefaultConsumes returns the default consumes media type

func (*WeaviateAPI) DefaultProduces

func (o *WeaviateAPI) DefaultProduces() string

DefaultProduces returns the default produces media type

func (*WeaviateAPI) Formats

func (o *WeaviateAPI) Formats() strfmt.Registry

Formats returns the registered string formats

func (*WeaviateAPI) HandlerFor

func (o *WeaviateAPI) HandlerFor(method, path string) (http.Handler, bool)

HandlerFor gets a http.Handler for the provided operation method and path

func (*WeaviateAPI) Init

func (o *WeaviateAPI) Init()

Init allows you to just initialize the handler cache, you can then recompose the middleware as you see fit

func (*WeaviateAPI) ProducersFor

func (o *WeaviateAPI) ProducersFor(mediaTypes []string) map[string]runtime.Producer

ProducersFor gets the producers for the specified media types

func (*WeaviateAPI) RegisterConsumer

func (o *WeaviateAPI) RegisterConsumer(mediaType string, consumer runtime.Consumer)

RegisterConsumer allows you to add (or override) a consumer for a media type.

func (*WeaviateAPI) RegisterFormat

func (o *WeaviateAPI) RegisterFormat(name string, format strfmt.Format, validator strfmt.Validator)

RegisterFormat registers a custom format validator

func (*WeaviateAPI) RegisterProducer

func (o *WeaviateAPI) RegisterProducer(mediaType string, producer runtime.Producer)

RegisterProducer allows you to add (or override) a producer for a media type.

func (*WeaviateAPI) Serve

func (o *WeaviateAPI) Serve(builder middleware.Builder) http.Handler

Serve creates a http handler to serve the API over HTTP can be used directly in http.ListenAndServe(":8000", api.Serve(nil))

func (*WeaviateAPI) ServeErrorFor

func (o *WeaviateAPI) ServeErrorFor(operationID string) func(http.ResponseWriter, *http.Request, error)

ServeErrorFor gets a error handler for a given operation id

func (*WeaviateAPI) SetDefaultConsumes

func (o *WeaviateAPI) SetDefaultConsumes(mediaType string)

SetDefaultConsumes returns the default consumes media type

func (*WeaviateAPI) SetDefaultProduces

func (o *WeaviateAPI) SetDefaultProduces(mediaType string)

SetDefaultProduces sets the default produces media type

func (*WeaviateAPI) SetSpec

func (o *WeaviateAPI) SetSpec(spec *loads.Document)

SetSpec sets a spec that will be served for the clients.

func (*WeaviateAPI) Validate

func (o *WeaviateAPI) Validate() error

Validate validates the registrations in the WeaviateAPI

type WeaviateBatchingActionsCreate

type WeaviateBatchingActionsCreate struct {
	Context *middleware.Context
	Handler WeaviateBatchingActionsCreateHandler
}

WeaviateBatchingActionsCreate swagger:route POST /batching/actions batching actions weaviateBatchingActionsCreate

Creates new Actions based on an Action template related to this key as a batch.

Register new Actions in bulk. Given meta-data and schema values are validated.

func NewWeaviateBatchingActionsCreate

func NewWeaviateBatchingActionsCreate(ctx *middleware.Context, handler WeaviateBatchingActionsCreateHandler) *WeaviateBatchingActionsCreate

NewWeaviateBatchingActionsCreate creates a new http.Handler for the weaviate batching actions create operation

func (*WeaviateBatchingActionsCreate) ServeHTTP

type WeaviateBatchingActionsCreateAccepted

type WeaviateBatchingActionsCreateAccepted struct {

	/*
	  In: Body
	*/
	Payload []*models.ActionsGetResponse `json:"body,omitempty"`
}

WeaviateBatchingActionsCreateAccepted Successfully received.

swagger:response weaviateBatchingActionsCreateAccepted

func NewWeaviateBatchingActionsCreateAccepted

func NewWeaviateBatchingActionsCreateAccepted() *WeaviateBatchingActionsCreateAccepted

NewWeaviateBatchingActionsCreateAccepted creates WeaviateBatchingActionsCreateAccepted with default headers values

func (*WeaviateBatchingActionsCreateAccepted) SetPayload

SetPayload sets the payload to the weaviate batching actions create accepted response

func (*WeaviateBatchingActionsCreateAccepted) WithPayload

WithPayload adds the payload to the weaviate batching actions create accepted response

func (*WeaviateBatchingActionsCreateAccepted) WriteResponse

WriteResponse to the client

type WeaviateBatchingActionsCreateBody

type WeaviateBatchingActionsCreateBody struct {

	// actions
	Actions []*models.ActionCreate `json:"actions"`

	// If `async` is true, return a 202 with the new ID of the Action. You will receive this response before the persistence of the data is confirmed. If `async` is false, you will receive confirmation after the persistence of the data is confirmed. The value of `async` defaults to false.
	Async bool `json:"async,omitempty"`

	// Define which fields need to be returned. Default value is ALL
	Fields []*string `json:"fields"`
}

WeaviateBatchingActionsCreateBody weaviate batching actions create body swagger:model WeaviateBatchingActionsCreateBody

func (*WeaviateBatchingActionsCreateBody) MarshalBinary

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

MarshalBinary interface implementation

func (*WeaviateBatchingActionsCreateBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*WeaviateBatchingActionsCreateBody) Validate

Validate validates this weaviate batching actions create body

type WeaviateBatchingActionsCreateForbidden

type WeaviateBatchingActionsCreateForbidden struct {
}

WeaviateBatchingActionsCreateForbidden The used API-key has insufficient permissions.

swagger:response weaviateBatchingActionsCreateForbidden

func NewWeaviateBatchingActionsCreateForbidden

func NewWeaviateBatchingActionsCreateForbidden() *WeaviateBatchingActionsCreateForbidden

NewWeaviateBatchingActionsCreateForbidden creates WeaviateBatchingActionsCreateForbidden with default headers values

func (*WeaviateBatchingActionsCreateForbidden) WriteResponse

WriteResponse to the client

type WeaviateBatchingActionsCreateHandler

type WeaviateBatchingActionsCreateHandler interface {
	Handle(WeaviateBatchingActionsCreateParams) middleware.Responder
}

WeaviateBatchingActionsCreateHandler interface for that can handle valid weaviate batching actions create params

type WeaviateBatchingActionsCreateHandlerFunc

type WeaviateBatchingActionsCreateHandlerFunc func(WeaviateBatchingActionsCreateParams) middleware.Responder

WeaviateBatchingActionsCreateHandlerFunc turns a function with the right signature into a weaviate batching actions create handler

func (WeaviateBatchingActionsCreateHandlerFunc) Handle

Handle executing the request and returning a response

type WeaviateBatchingActionsCreateInternalServerError

type WeaviateBatchingActionsCreateInternalServerError struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

WeaviateBatchingActionsCreateInternalServerError An error has occurred while trying to fulfill the request. Most likely the ErrorResponse will contain more information about the error.

swagger:response weaviateBatchingActionsCreateInternalServerError

func NewWeaviateBatchingActionsCreateInternalServerError

func NewWeaviateBatchingActionsCreateInternalServerError() *WeaviateBatchingActionsCreateInternalServerError

NewWeaviateBatchingActionsCreateInternalServerError creates WeaviateBatchingActionsCreateInternalServerError with default headers values

func (*WeaviateBatchingActionsCreateInternalServerError) SetPayload

SetPayload sets the payload to the weaviate batching actions create internal server error response

func (*WeaviateBatchingActionsCreateInternalServerError) WithPayload

WithPayload adds the payload to the weaviate batching actions create internal server error response

func (*WeaviateBatchingActionsCreateInternalServerError) WriteResponse

WriteResponse to the client

type WeaviateBatchingActionsCreateOK

type WeaviateBatchingActionsCreateOK struct {

	/*
	  In: Body
	*/
	Payload []*models.ActionsGetResponse `json:"body,omitempty"`
}

WeaviateBatchingActionsCreateOK Actions created.

swagger:response weaviateBatchingActionsCreateOK

func NewWeaviateBatchingActionsCreateOK

func NewWeaviateBatchingActionsCreateOK() *WeaviateBatchingActionsCreateOK

NewWeaviateBatchingActionsCreateOK creates WeaviateBatchingActionsCreateOK with default headers values

func (*WeaviateBatchingActionsCreateOK) SetPayload

func (o *WeaviateBatchingActionsCreateOK) SetPayload(payload []*models.ActionsGetResponse)

SetPayload sets the payload to the weaviate batching actions create o k response

func (*WeaviateBatchingActionsCreateOK) WithPayload

WithPayload adds the payload to the weaviate batching actions create o k response

func (*WeaviateBatchingActionsCreateOK) WriteResponse

func (o *WeaviateBatchingActionsCreateOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type WeaviateBatchingActionsCreateParams

type WeaviateBatchingActionsCreateParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*
	  Required: true
	  In: body
	*/
	Body WeaviateBatchingActionsCreateBody
}

WeaviateBatchingActionsCreateParams contains all the bound params for the weaviate batching actions create operation typically these are obtained from a http.Request

swagger:parameters weaviate.batching.actions.create

func NewWeaviateBatchingActionsCreateParams

func NewWeaviateBatchingActionsCreateParams() WeaviateBatchingActionsCreateParams

NewWeaviateBatchingActionsCreateParams creates a new WeaviateBatchingActionsCreateParams object no default values defined in spec.

func (*WeaviateBatchingActionsCreateParams) BindRequest

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewWeaviateBatchingActionsCreateParams() beforehand.

type WeaviateBatchingActionsCreateURL

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

WeaviateBatchingActionsCreateURL generates an URL for the weaviate batching actions create operation

func (*WeaviateBatchingActionsCreateURL) Build

Build a url path and query string

func (*WeaviateBatchingActionsCreateURL) BuildFull

func (o *WeaviateBatchingActionsCreateURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*WeaviateBatchingActionsCreateURL) Must

Must is a helper function to panic when the url builder returns an error

func (*WeaviateBatchingActionsCreateURL) SetBasePath

func (o *WeaviateBatchingActionsCreateURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*WeaviateBatchingActionsCreateURL) String

String returns the string representation of the path with query string

func (*WeaviateBatchingActionsCreateURL) StringFull

func (o *WeaviateBatchingActionsCreateURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*WeaviateBatchingActionsCreateURL) WithBasePath

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type WeaviateBatchingActionsCreateUnauthorized

type WeaviateBatchingActionsCreateUnauthorized struct {
}

WeaviateBatchingActionsCreateUnauthorized Unauthorized or invalid credentials.

swagger:response weaviateBatchingActionsCreateUnauthorized

func NewWeaviateBatchingActionsCreateUnauthorized

func NewWeaviateBatchingActionsCreateUnauthorized() *WeaviateBatchingActionsCreateUnauthorized

NewWeaviateBatchingActionsCreateUnauthorized creates WeaviateBatchingActionsCreateUnauthorized with default headers values

func (*WeaviateBatchingActionsCreateUnauthorized) WriteResponse

WriteResponse to the client

type WeaviateBatchingActionsCreateUnprocessableEntity

type WeaviateBatchingActionsCreateUnprocessableEntity struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

WeaviateBatchingActionsCreateUnprocessableEntity Request body is well-formed (i.e., syntactically correct), but semantically erroneous. Are you sure the class is defined in the configuration file?

swagger:response weaviateBatchingActionsCreateUnprocessableEntity

func NewWeaviateBatchingActionsCreateUnprocessableEntity

func NewWeaviateBatchingActionsCreateUnprocessableEntity() *WeaviateBatchingActionsCreateUnprocessableEntity

NewWeaviateBatchingActionsCreateUnprocessableEntity creates WeaviateBatchingActionsCreateUnprocessableEntity with default headers values

func (*WeaviateBatchingActionsCreateUnprocessableEntity) SetPayload

SetPayload sets the payload to the weaviate batching actions create unprocessable entity response

func (*WeaviateBatchingActionsCreateUnprocessableEntity) WithPayload

WithPayload adds the payload to the weaviate batching actions create unprocessable entity response

func (*WeaviateBatchingActionsCreateUnprocessableEntity) WriteResponse

WriteResponse to the client

type WeaviateBatchingThingsCreate

type WeaviateBatchingThingsCreate struct {
	Context *middleware.Context
	Handler WeaviateBatchingThingsCreateHandler
}

WeaviateBatchingThingsCreate swagger:route POST /batching/things batching things weaviateBatchingThingsCreate

Creates new Things based on a Thing template related to this key as a batch.

Register new Things in bulk. Provided meta-data and schema values are validated.

func NewWeaviateBatchingThingsCreate

func NewWeaviateBatchingThingsCreate(ctx *middleware.Context, handler WeaviateBatchingThingsCreateHandler) *WeaviateBatchingThingsCreate

NewWeaviateBatchingThingsCreate creates a new http.Handler for the weaviate batching things create operation

func (*WeaviateBatchingThingsCreate) ServeHTTP

type WeaviateBatchingThingsCreateAccepted

type WeaviateBatchingThingsCreateAccepted struct {

	/*
	  In: Body
	*/
	Payload []*models.ThingsGetResponse `json:"body,omitempty"`
}

WeaviateBatchingThingsCreateAccepted Successfully received.

swagger:response weaviateBatchingThingsCreateAccepted

func NewWeaviateBatchingThingsCreateAccepted

func NewWeaviateBatchingThingsCreateAccepted() *WeaviateBatchingThingsCreateAccepted

NewWeaviateBatchingThingsCreateAccepted creates WeaviateBatchingThingsCreateAccepted with default headers values

func (*WeaviateBatchingThingsCreateAccepted) SetPayload

SetPayload sets the payload to the weaviate batching things create accepted response

func (*WeaviateBatchingThingsCreateAccepted) WithPayload

WithPayload adds the payload to the weaviate batching things create accepted response

func (*WeaviateBatchingThingsCreateAccepted) WriteResponse

WriteResponse to the client

type WeaviateBatchingThingsCreateBody

type WeaviateBatchingThingsCreateBody struct {

	// If `async` is true, return a 202 with the new ID of the Thing. You will receive this response before the persistence of the data is confirmed. If `async` is false, you will receive confirmation after the persistence of the data is confirmed. The value of `async` defaults to false.
	Async bool `json:"async,omitempty"`

	// Define which fields need to be returned. Default value is ALL
	Fields []*string `json:"fields"`

	// things
	Things []*models.ThingCreate `json:"things"`
}

WeaviateBatchingThingsCreateBody weaviate batching things create body swagger:model WeaviateBatchingThingsCreateBody

func (*WeaviateBatchingThingsCreateBody) MarshalBinary

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

MarshalBinary interface implementation

func (*WeaviateBatchingThingsCreateBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*WeaviateBatchingThingsCreateBody) Validate

Validate validates this weaviate batching things create body

type WeaviateBatchingThingsCreateForbidden

type WeaviateBatchingThingsCreateForbidden struct {
}

WeaviateBatchingThingsCreateForbidden The used API-key has insufficient permissions.

swagger:response weaviateBatchingThingsCreateForbidden

func NewWeaviateBatchingThingsCreateForbidden

func NewWeaviateBatchingThingsCreateForbidden() *WeaviateBatchingThingsCreateForbidden

NewWeaviateBatchingThingsCreateForbidden creates WeaviateBatchingThingsCreateForbidden with default headers values

func (*WeaviateBatchingThingsCreateForbidden) WriteResponse

WriteResponse to the client

type WeaviateBatchingThingsCreateHandler

type WeaviateBatchingThingsCreateHandler interface {
	Handle(WeaviateBatchingThingsCreateParams) middleware.Responder
}

WeaviateBatchingThingsCreateHandler interface for that can handle valid weaviate batching things create params

type WeaviateBatchingThingsCreateHandlerFunc

type WeaviateBatchingThingsCreateHandlerFunc func(WeaviateBatchingThingsCreateParams) middleware.Responder

WeaviateBatchingThingsCreateHandlerFunc turns a function with the right signature into a weaviate batching things create handler

func (WeaviateBatchingThingsCreateHandlerFunc) Handle

Handle executing the request and returning a response

type WeaviateBatchingThingsCreateInternalServerError

type WeaviateBatchingThingsCreateInternalServerError struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

WeaviateBatchingThingsCreateInternalServerError An error has occurred while trying to fulfill the request. Most likely the ErrorResponse will contain more information about the error.

swagger:response weaviateBatchingThingsCreateInternalServerError

func NewWeaviateBatchingThingsCreateInternalServerError

func NewWeaviateBatchingThingsCreateInternalServerError() *WeaviateBatchingThingsCreateInternalServerError

NewWeaviateBatchingThingsCreateInternalServerError creates WeaviateBatchingThingsCreateInternalServerError with default headers values

func (*WeaviateBatchingThingsCreateInternalServerError) SetPayload

SetPayload sets the payload to the weaviate batching things create internal server error response

func (*WeaviateBatchingThingsCreateInternalServerError) WithPayload

WithPayload adds the payload to the weaviate batching things create internal server error response

func (*WeaviateBatchingThingsCreateInternalServerError) WriteResponse

WriteResponse to the client

type WeaviateBatchingThingsCreateOK

type WeaviateBatchingThingsCreateOK struct {

	/*
	  In: Body
	*/
	Payload []*models.ThingsGetResponse `json:"body,omitempty"`
}

WeaviateBatchingThingsCreateOK Things created.

swagger:response weaviateBatchingThingsCreateOK

func NewWeaviateBatchingThingsCreateOK

func NewWeaviateBatchingThingsCreateOK() *WeaviateBatchingThingsCreateOK

NewWeaviateBatchingThingsCreateOK creates WeaviateBatchingThingsCreateOK with default headers values

func (*WeaviateBatchingThingsCreateOK) SetPayload

func (o *WeaviateBatchingThingsCreateOK) SetPayload(payload []*models.ThingsGetResponse)

SetPayload sets the payload to the weaviate batching things create o k response

func (*WeaviateBatchingThingsCreateOK) WithPayload

WithPayload adds the payload to the weaviate batching things create o k response

func (*WeaviateBatchingThingsCreateOK) WriteResponse

func (o *WeaviateBatchingThingsCreateOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type WeaviateBatchingThingsCreateParams

type WeaviateBatchingThingsCreateParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*
	  Required: true
	  In: body
	*/
	Body WeaviateBatchingThingsCreateBody
}

WeaviateBatchingThingsCreateParams contains all the bound params for the weaviate batching things create operation typically these are obtained from a http.Request

swagger:parameters weaviate.batching.things.create

func NewWeaviateBatchingThingsCreateParams

func NewWeaviateBatchingThingsCreateParams() WeaviateBatchingThingsCreateParams

NewWeaviateBatchingThingsCreateParams creates a new WeaviateBatchingThingsCreateParams object no default values defined in spec.

func (*WeaviateBatchingThingsCreateParams) BindRequest

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewWeaviateBatchingThingsCreateParams() beforehand.

type WeaviateBatchingThingsCreateURL

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

WeaviateBatchingThingsCreateURL generates an URL for the weaviate batching things create operation

func (*WeaviateBatchingThingsCreateURL) Build

Build a url path and query string

func (*WeaviateBatchingThingsCreateURL) BuildFull

func (o *WeaviateBatchingThingsCreateURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*WeaviateBatchingThingsCreateURL) Must

func (o *WeaviateBatchingThingsCreateURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*WeaviateBatchingThingsCreateURL) SetBasePath

func (o *WeaviateBatchingThingsCreateURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*WeaviateBatchingThingsCreateURL) String

String returns the string representation of the path with query string

func (*WeaviateBatchingThingsCreateURL) StringFull

func (o *WeaviateBatchingThingsCreateURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*WeaviateBatchingThingsCreateURL) WithBasePath

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type WeaviateBatchingThingsCreateUnauthorized

type WeaviateBatchingThingsCreateUnauthorized struct {
}

WeaviateBatchingThingsCreateUnauthorized Unauthorized or invalid credentials.

swagger:response weaviateBatchingThingsCreateUnauthorized

func NewWeaviateBatchingThingsCreateUnauthorized

func NewWeaviateBatchingThingsCreateUnauthorized() *WeaviateBatchingThingsCreateUnauthorized

NewWeaviateBatchingThingsCreateUnauthorized creates WeaviateBatchingThingsCreateUnauthorized with default headers values

func (*WeaviateBatchingThingsCreateUnauthorized) WriteResponse

WriteResponse to the client

type WeaviateBatchingThingsCreateUnprocessableEntity

type WeaviateBatchingThingsCreateUnprocessableEntity struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

WeaviateBatchingThingsCreateUnprocessableEntity Request body is well-formed (i.e., syntactically correct), but semantically erroneous. Are you sure the class is defined in the configuration file?

swagger:response weaviateBatchingThingsCreateUnprocessableEntity

func NewWeaviateBatchingThingsCreateUnprocessableEntity

func NewWeaviateBatchingThingsCreateUnprocessableEntity() *WeaviateBatchingThingsCreateUnprocessableEntity

NewWeaviateBatchingThingsCreateUnprocessableEntity creates WeaviateBatchingThingsCreateUnprocessableEntity with default headers values

func (*WeaviateBatchingThingsCreateUnprocessableEntity) SetPayload

SetPayload sets the payload to the weaviate batching things create unprocessable entity response

func (*WeaviateBatchingThingsCreateUnprocessableEntity) WithPayload

WithPayload adds the payload to the weaviate batching things create unprocessable entity response

func (*WeaviateBatchingThingsCreateUnprocessableEntity) WriteResponse

WriteResponse to the client

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL