batch

package
v1.24.10 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: BSD-3-Clause Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const BatchObjectsCreateBadRequestCode int = 400

BatchObjectsCreateBadRequestCode is the HTTP code returned for type BatchObjectsCreateBadRequest

View Source
const BatchObjectsCreateForbiddenCode int = 403

BatchObjectsCreateForbiddenCode is the HTTP code returned for type BatchObjectsCreateForbidden

View Source
const BatchObjectsCreateInternalServerErrorCode int = 500

BatchObjectsCreateInternalServerErrorCode is the HTTP code returned for type BatchObjectsCreateInternalServerError

View Source
const BatchObjectsCreateOKCode int = 200

BatchObjectsCreateOKCode is the HTTP code returned for type BatchObjectsCreateOK

View Source
const BatchObjectsCreateUnauthorizedCode int = 401

BatchObjectsCreateUnauthorizedCode is the HTTP code returned for type BatchObjectsCreateUnauthorized

View Source
const BatchObjectsCreateUnprocessableEntityCode int = 422

BatchObjectsCreateUnprocessableEntityCode is the HTTP code returned for type BatchObjectsCreateUnprocessableEntity

View Source
const BatchObjectsDeleteBadRequestCode int = 400

BatchObjectsDeleteBadRequestCode is the HTTP code returned for type BatchObjectsDeleteBadRequest

View Source
const BatchObjectsDeleteForbiddenCode int = 403

BatchObjectsDeleteForbiddenCode is the HTTP code returned for type BatchObjectsDeleteForbidden

View Source
const BatchObjectsDeleteInternalServerErrorCode int = 500

BatchObjectsDeleteInternalServerErrorCode is the HTTP code returned for type BatchObjectsDeleteInternalServerError

View Source
const BatchObjectsDeleteOKCode int = 200

BatchObjectsDeleteOKCode is the HTTP code returned for type BatchObjectsDeleteOK

View Source
const BatchObjectsDeleteUnauthorizedCode int = 401

BatchObjectsDeleteUnauthorizedCode is the HTTP code returned for type BatchObjectsDeleteUnauthorized

View Source
const BatchObjectsDeleteUnprocessableEntityCode int = 422

BatchObjectsDeleteUnprocessableEntityCode is the HTTP code returned for type BatchObjectsDeleteUnprocessableEntity

View Source
const BatchReferencesCreateBadRequestCode int = 400

BatchReferencesCreateBadRequestCode is the HTTP code returned for type BatchReferencesCreateBadRequest

View Source
const BatchReferencesCreateForbiddenCode int = 403

BatchReferencesCreateForbiddenCode is the HTTP code returned for type BatchReferencesCreateForbidden

View Source
const BatchReferencesCreateInternalServerErrorCode int = 500

BatchReferencesCreateInternalServerErrorCode is the HTTP code returned for type BatchReferencesCreateInternalServerError

View Source
const BatchReferencesCreateOKCode int = 200

BatchReferencesCreateOKCode is the HTTP code returned for type BatchReferencesCreateOK

View Source
const BatchReferencesCreateUnauthorizedCode int = 401

BatchReferencesCreateUnauthorizedCode is the HTTP code returned for type BatchReferencesCreateUnauthorized

View Source
const BatchReferencesCreateUnprocessableEntityCode int = 422

BatchReferencesCreateUnprocessableEntityCode is the HTTP code returned for type BatchReferencesCreateUnprocessableEntity

Variables

This section is empty.

Functions

This section is empty.

Types

type BatchObjectsCreate

type BatchObjectsCreate struct {
	Context *middleware.Context
	Handler BatchObjectsCreateHandler
}
BatchObjectsCreate swagger:route POST /batch/objects batch objects batchObjectsCreate

Creates new Objects based on a Object template as a batch.

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

func NewBatchObjectsCreate

func NewBatchObjectsCreate(ctx *middleware.Context, handler BatchObjectsCreateHandler) *BatchObjectsCreate

NewBatchObjectsCreate creates a new http.Handler for the batch objects create operation

func (*BatchObjectsCreate) ServeHTTP

func (o *BatchObjectsCreate) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type BatchObjectsCreateBadRequest added in v1.18.0

type BatchObjectsCreateBadRequest struct {

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

BatchObjectsCreateBadRequest Malformed request.

swagger:response batchObjectsCreateBadRequest

func NewBatchObjectsCreateBadRequest added in v1.18.0

func NewBatchObjectsCreateBadRequest() *BatchObjectsCreateBadRequest

NewBatchObjectsCreateBadRequest creates BatchObjectsCreateBadRequest with default headers values

func (*BatchObjectsCreateBadRequest) SetPayload added in v1.18.0

func (o *BatchObjectsCreateBadRequest) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the batch objects create bad request response

func (*BatchObjectsCreateBadRequest) WithPayload added in v1.18.0

WithPayload adds the payload to the batch objects create bad request response

func (*BatchObjectsCreateBadRequest) WriteResponse added in v1.18.0

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

WriteResponse to the client

type BatchObjectsCreateBody

type BatchObjectsCreateBody struct {

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

	// objects
	Objects []*models.Object `json:"objects" yaml:"objects"`
}

BatchObjectsCreateBody batch objects create body

swagger:model BatchObjectsCreateBody

func (*BatchObjectsCreateBody) ContextValidate added in v1.18.0

func (o *BatchObjectsCreateBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this batch objects create body based on the context it is used

func (*BatchObjectsCreateBody) MarshalBinary

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

MarshalBinary interface implementation

func (*BatchObjectsCreateBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*BatchObjectsCreateBody) Validate

func (o *BatchObjectsCreateBody) Validate(formats strfmt.Registry) error

Validate validates this batch objects create body

type BatchObjectsCreateForbidden

type BatchObjectsCreateForbidden struct {

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

BatchObjectsCreateForbidden Forbidden

swagger:response batchObjectsCreateForbidden

func NewBatchObjectsCreateForbidden

func NewBatchObjectsCreateForbidden() *BatchObjectsCreateForbidden

NewBatchObjectsCreateForbidden creates BatchObjectsCreateForbidden with default headers values

func (*BatchObjectsCreateForbidden) SetPayload

func (o *BatchObjectsCreateForbidden) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the batch objects create forbidden response

func (*BatchObjectsCreateForbidden) WithPayload

WithPayload adds the payload to the batch objects create forbidden response

func (*BatchObjectsCreateForbidden) WriteResponse

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

WriteResponse to the client

type BatchObjectsCreateHandler

type BatchObjectsCreateHandler interface {
	Handle(BatchObjectsCreateParams, *models.Principal) middleware.Responder
}

BatchObjectsCreateHandler interface for that can handle valid batch objects create params

type BatchObjectsCreateHandlerFunc

type BatchObjectsCreateHandlerFunc func(BatchObjectsCreateParams, *models.Principal) middleware.Responder

BatchObjectsCreateHandlerFunc turns a function with the right signature into a batch objects create handler

func (BatchObjectsCreateHandlerFunc) Handle

Handle executing the request and returning a response

type BatchObjectsCreateInternalServerError

type BatchObjectsCreateInternalServerError struct {

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

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

swagger:response batchObjectsCreateInternalServerError

func NewBatchObjectsCreateInternalServerError

func NewBatchObjectsCreateInternalServerError() *BatchObjectsCreateInternalServerError

NewBatchObjectsCreateInternalServerError creates BatchObjectsCreateInternalServerError with default headers values

func (*BatchObjectsCreateInternalServerError) SetPayload

SetPayload sets the payload to the batch objects create internal server error response

func (*BatchObjectsCreateInternalServerError) WithPayload

WithPayload adds the payload to the batch objects create internal server error response

func (*BatchObjectsCreateInternalServerError) WriteResponse

WriteResponse to the client

type BatchObjectsCreateOK

type BatchObjectsCreateOK struct {

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

BatchObjectsCreateOK Request succeeded, see response body to get detailed information about each batched item.

swagger:response batchObjectsCreateOK

func NewBatchObjectsCreateOK

func NewBatchObjectsCreateOK() *BatchObjectsCreateOK

NewBatchObjectsCreateOK creates BatchObjectsCreateOK with default headers values

func (*BatchObjectsCreateOK) SetPayload

func (o *BatchObjectsCreateOK) SetPayload(payload []*models.ObjectsGetResponse)

SetPayload sets the payload to the batch objects create o k response

func (*BatchObjectsCreateOK) WithPayload

WithPayload adds the payload to the batch objects create o k response

func (*BatchObjectsCreateOK) WriteResponse

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

WriteResponse to the client

type BatchObjectsCreateParams

type BatchObjectsCreateParams struct {

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

	/*
	  Required: true
	  In: body
	*/
	Body BatchObjectsCreateBody
	/*Determines how many replicas must acknowledge a request before it is considered successful
	  In: query
	*/
	ConsistencyLevel *string
}

BatchObjectsCreateParams contains all the bound params for the batch objects create operation typically these are obtained from a http.Request

swagger:parameters batch.objects.create

func NewBatchObjectsCreateParams

func NewBatchObjectsCreateParams() BatchObjectsCreateParams

NewBatchObjectsCreateParams creates a new BatchObjectsCreateParams object

There are no default values defined in the spec.

func (*BatchObjectsCreateParams) 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 NewBatchObjectsCreateParams() beforehand.

type BatchObjectsCreateURL

type BatchObjectsCreateURL struct {
	ConsistencyLevel *string
	// contains filtered or unexported fields
}

BatchObjectsCreateURL generates an URL for the batch objects create operation

func (*BatchObjectsCreateURL) Build

func (o *BatchObjectsCreateURL) Build() (*url.URL, error)

Build a url path and query string

func (*BatchObjectsCreateURL) BuildFull

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

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

func (*BatchObjectsCreateURL) Must

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

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

func (*BatchObjectsCreateURL) SetBasePath

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

func (o *BatchObjectsCreateURL) String() string

String returns the string representation of the path with query string

func (*BatchObjectsCreateURL) StringFull

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

StringFull returns the string representation of a complete url

func (*BatchObjectsCreateURL) WithBasePath

func (o *BatchObjectsCreateURL) WithBasePath(bp string) *BatchObjectsCreateURL

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 BatchObjectsCreateUnauthorized

type BatchObjectsCreateUnauthorized struct {
}

BatchObjectsCreateUnauthorized Unauthorized or invalid credentials.

swagger:response batchObjectsCreateUnauthorized

func NewBatchObjectsCreateUnauthorized

func NewBatchObjectsCreateUnauthorized() *BatchObjectsCreateUnauthorized

NewBatchObjectsCreateUnauthorized creates BatchObjectsCreateUnauthorized with default headers values

func (*BatchObjectsCreateUnauthorized) WriteResponse

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

WriteResponse to the client

type BatchObjectsCreateUnprocessableEntity

type BatchObjectsCreateUnprocessableEntity struct {

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

BatchObjectsCreateUnprocessableEntity 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 batchObjectsCreateUnprocessableEntity

func NewBatchObjectsCreateUnprocessableEntity

func NewBatchObjectsCreateUnprocessableEntity() *BatchObjectsCreateUnprocessableEntity

NewBatchObjectsCreateUnprocessableEntity creates BatchObjectsCreateUnprocessableEntity with default headers values

func (*BatchObjectsCreateUnprocessableEntity) SetPayload

SetPayload sets the payload to the batch objects create unprocessable entity response

func (*BatchObjectsCreateUnprocessableEntity) WithPayload

WithPayload adds the payload to the batch objects create unprocessable entity response

func (*BatchObjectsCreateUnprocessableEntity) WriteResponse

WriteResponse to the client

type BatchObjectsDelete

type BatchObjectsDelete struct {
	Context *middleware.Context
	Handler BatchObjectsDeleteHandler
}
BatchObjectsDelete swagger:route DELETE /batch/objects batch objects batchObjectsDelete

Deletes Objects based on a match filter as a batch.

Delete Objects in bulk that match a certain filter.

func NewBatchObjectsDelete

func NewBatchObjectsDelete(ctx *middleware.Context, handler BatchObjectsDeleteHandler) *BatchObjectsDelete

NewBatchObjectsDelete creates a new http.Handler for the batch objects delete operation

func (*BatchObjectsDelete) ServeHTTP

func (o *BatchObjectsDelete) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type BatchObjectsDeleteBadRequest added in v1.18.0

type BatchObjectsDeleteBadRequest struct {

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

BatchObjectsDeleteBadRequest Malformed request.

swagger:response batchObjectsDeleteBadRequest

func NewBatchObjectsDeleteBadRequest added in v1.18.0

func NewBatchObjectsDeleteBadRequest() *BatchObjectsDeleteBadRequest

NewBatchObjectsDeleteBadRequest creates BatchObjectsDeleteBadRequest with default headers values

func (*BatchObjectsDeleteBadRequest) SetPayload added in v1.18.0

func (o *BatchObjectsDeleteBadRequest) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the batch objects delete bad request response

func (*BatchObjectsDeleteBadRequest) WithPayload added in v1.18.0

WithPayload adds the payload to the batch objects delete bad request response

func (*BatchObjectsDeleteBadRequest) WriteResponse added in v1.18.0

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

WriteResponse to the client

type BatchObjectsDeleteForbidden

type BatchObjectsDeleteForbidden struct {

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

BatchObjectsDeleteForbidden Forbidden

swagger:response batchObjectsDeleteForbidden

func NewBatchObjectsDeleteForbidden

func NewBatchObjectsDeleteForbidden() *BatchObjectsDeleteForbidden

NewBatchObjectsDeleteForbidden creates BatchObjectsDeleteForbidden with default headers values

func (*BatchObjectsDeleteForbidden) SetPayload

func (o *BatchObjectsDeleteForbidden) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the batch objects delete forbidden response

func (*BatchObjectsDeleteForbidden) WithPayload

WithPayload adds the payload to the batch objects delete forbidden response

func (*BatchObjectsDeleteForbidden) WriteResponse

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

WriteResponse to the client

type BatchObjectsDeleteHandler

type BatchObjectsDeleteHandler interface {
	Handle(BatchObjectsDeleteParams, *models.Principal) middleware.Responder
}

BatchObjectsDeleteHandler interface for that can handle valid batch objects delete params

type BatchObjectsDeleteHandlerFunc

type BatchObjectsDeleteHandlerFunc func(BatchObjectsDeleteParams, *models.Principal) middleware.Responder

BatchObjectsDeleteHandlerFunc turns a function with the right signature into a batch objects delete handler

func (BatchObjectsDeleteHandlerFunc) Handle

Handle executing the request and returning a response

type BatchObjectsDeleteInternalServerError

type BatchObjectsDeleteInternalServerError struct {

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

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

swagger:response batchObjectsDeleteInternalServerError

func NewBatchObjectsDeleteInternalServerError

func NewBatchObjectsDeleteInternalServerError() *BatchObjectsDeleteInternalServerError

NewBatchObjectsDeleteInternalServerError creates BatchObjectsDeleteInternalServerError with default headers values

func (*BatchObjectsDeleteInternalServerError) SetPayload

SetPayload sets the payload to the batch objects delete internal server error response

func (*BatchObjectsDeleteInternalServerError) WithPayload

WithPayload adds the payload to the batch objects delete internal server error response

func (*BatchObjectsDeleteInternalServerError) WriteResponse

WriteResponse to the client

type BatchObjectsDeleteOK

type BatchObjectsDeleteOK struct {

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

BatchObjectsDeleteOK Request succeeded, see response body to get detailed information about each batched item.

swagger:response batchObjectsDeleteOK

func NewBatchObjectsDeleteOK

func NewBatchObjectsDeleteOK() *BatchObjectsDeleteOK

NewBatchObjectsDeleteOK creates BatchObjectsDeleteOK with default headers values

func (*BatchObjectsDeleteOK) SetPayload

func (o *BatchObjectsDeleteOK) SetPayload(payload *models.BatchDeleteResponse)

SetPayload sets the payload to the batch objects delete o k response

func (*BatchObjectsDeleteOK) WithPayload

WithPayload adds the payload to the batch objects delete o k response

func (*BatchObjectsDeleteOK) WriteResponse

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

WriteResponse to the client

type BatchObjectsDeleteParams

type BatchObjectsDeleteParams struct {

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

	/*
	  Required: true
	  In: body
	*/
	Body *models.BatchDelete
	/*Determines how many replicas must acknowledge a request before it is considered successful
	  In: query
	*/
	ConsistencyLevel *string
	/*Specifies the tenant in a request targeting a multi-tenant class
	  In: query
	*/
	Tenant *string
}

BatchObjectsDeleteParams contains all the bound params for the batch objects delete operation typically these are obtained from a http.Request

swagger:parameters batch.objects.delete

func NewBatchObjectsDeleteParams

func NewBatchObjectsDeleteParams() BatchObjectsDeleteParams

NewBatchObjectsDeleteParams creates a new BatchObjectsDeleteParams object

There are no default values defined in the spec.

func (*BatchObjectsDeleteParams) 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 NewBatchObjectsDeleteParams() beforehand.

type BatchObjectsDeleteURL

type BatchObjectsDeleteURL struct {
	ConsistencyLevel *string
	Tenant           *string
	// contains filtered or unexported fields
}

BatchObjectsDeleteURL generates an URL for the batch objects delete operation

func (*BatchObjectsDeleteURL) Build

func (o *BatchObjectsDeleteURL) Build() (*url.URL, error)

Build a url path and query string

func (*BatchObjectsDeleteURL) BuildFull

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

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

func (*BatchObjectsDeleteURL) Must

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

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

func (*BatchObjectsDeleteURL) SetBasePath

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

func (o *BatchObjectsDeleteURL) String() string

String returns the string representation of the path with query string

func (*BatchObjectsDeleteURL) StringFull

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

StringFull returns the string representation of a complete url

func (*BatchObjectsDeleteURL) WithBasePath

func (o *BatchObjectsDeleteURL) WithBasePath(bp string) *BatchObjectsDeleteURL

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 BatchObjectsDeleteUnauthorized

type BatchObjectsDeleteUnauthorized struct {
}

BatchObjectsDeleteUnauthorized Unauthorized or invalid credentials.

swagger:response batchObjectsDeleteUnauthorized

func NewBatchObjectsDeleteUnauthorized

func NewBatchObjectsDeleteUnauthorized() *BatchObjectsDeleteUnauthorized

NewBatchObjectsDeleteUnauthorized creates BatchObjectsDeleteUnauthorized with default headers values

func (*BatchObjectsDeleteUnauthorized) WriteResponse

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

WriteResponse to the client

type BatchObjectsDeleteUnprocessableEntity

type BatchObjectsDeleteUnprocessableEntity struct {

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

BatchObjectsDeleteUnprocessableEntity 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 batchObjectsDeleteUnprocessableEntity

func NewBatchObjectsDeleteUnprocessableEntity

func NewBatchObjectsDeleteUnprocessableEntity() *BatchObjectsDeleteUnprocessableEntity

NewBatchObjectsDeleteUnprocessableEntity creates BatchObjectsDeleteUnprocessableEntity with default headers values

func (*BatchObjectsDeleteUnprocessableEntity) SetPayload

SetPayload sets the payload to the batch objects delete unprocessable entity response

func (*BatchObjectsDeleteUnprocessableEntity) WithPayload

WithPayload adds the payload to the batch objects delete unprocessable entity response

func (*BatchObjectsDeleteUnprocessableEntity) WriteResponse

WriteResponse to the client

type BatchReferencesCreate

type BatchReferencesCreate struct {
	Context *middleware.Context
	Handler BatchReferencesCreateHandler
}
BatchReferencesCreate swagger:route POST /batch/references batch references batchReferencesCreate

Creates new Cross-References between arbitrary classes in bulk.

Register cross-references between any class items (objects or objects) in bulk.

func NewBatchReferencesCreate

func NewBatchReferencesCreate(ctx *middleware.Context, handler BatchReferencesCreateHandler) *BatchReferencesCreate

NewBatchReferencesCreate creates a new http.Handler for the batch references create operation

func (*BatchReferencesCreate) ServeHTTP

func (o *BatchReferencesCreate) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type BatchReferencesCreateBadRequest added in v1.18.0

type BatchReferencesCreateBadRequest struct {

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

BatchReferencesCreateBadRequest Malformed request.

swagger:response batchReferencesCreateBadRequest

func NewBatchReferencesCreateBadRequest added in v1.18.0

func NewBatchReferencesCreateBadRequest() *BatchReferencesCreateBadRequest

NewBatchReferencesCreateBadRequest creates BatchReferencesCreateBadRequest with default headers values

func (*BatchReferencesCreateBadRequest) SetPayload added in v1.18.0

func (o *BatchReferencesCreateBadRequest) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the batch references create bad request response

func (*BatchReferencesCreateBadRequest) WithPayload added in v1.18.0

WithPayload adds the payload to the batch references create bad request response

func (*BatchReferencesCreateBadRequest) WriteResponse added in v1.18.0

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

WriteResponse to the client

type BatchReferencesCreateForbidden

type BatchReferencesCreateForbidden struct {

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

BatchReferencesCreateForbidden Forbidden

swagger:response batchReferencesCreateForbidden

func NewBatchReferencesCreateForbidden

func NewBatchReferencesCreateForbidden() *BatchReferencesCreateForbidden

NewBatchReferencesCreateForbidden creates BatchReferencesCreateForbidden with default headers values

func (*BatchReferencesCreateForbidden) SetPayload

func (o *BatchReferencesCreateForbidden) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the batch references create forbidden response

func (*BatchReferencesCreateForbidden) WithPayload

WithPayload adds the payload to the batch references create forbidden response

func (*BatchReferencesCreateForbidden) WriteResponse

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

WriteResponse to the client

type BatchReferencesCreateHandler

type BatchReferencesCreateHandler interface {
	Handle(BatchReferencesCreateParams, *models.Principal) middleware.Responder
}

BatchReferencesCreateHandler interface for that can handle valid batch references create params

type BatchReferencesCreateHandlerFunc

type BatchReferencesCreateHandlerFunc func(BatchReferencesCreateParams, *models.Principal) middleware.Responder

BatchReferencesCreateHandlerFunc turns a function with the right signature into a batch references create handler

func (BatchReferencesCreateHandlerFunc) Handle

Handle executing the request and returning a response

type BatchReferencesCreateInternalServerError

type BatchReferencesCreateInternalServerError struct {

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

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

swagger:response batchReferencesCreateInternalServerError

func NewBatchReferencesCreateInternalServerError

func NewBatchReferencesCreateInternalServerError() *BatchReferencesCreateInternalServerError

NewBatchReferencesCreateInternalServerError creates BatchReferencesCreateInternalServerError with default headers values

func (*BatchReferencesCreateInternalServerError) SetPayload

SetPayload sets the payload to the batch references create internal server error response

func (*BatchReferencesCreateInternalServerError) WithPayload

WithPayload adds the payload to the batch references create internal server error response

func (*BatchReferencesCreateInternalServerError) WriteResponse

WriteResponse to the client

type BatchReferencesCreateOK

type BatchReferencesCreateOK struct {

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

BatchReferencesCreateOK Request Successful. Warning: A successful request does not guarantee that every batched reference was successfully created. Inspect the response body to see which references succeeded and which failed.

swagger:response batchReferencesCreateOK

func NewBatchReferencesCreateOK

func NewBatchReferencesCreateOK() *BatchReferencesCreateOK

NewBatchReferencesCreateOK creates BatchReferencesCreateOK with default headers values

func (*BatchReferencesCreateOK) SetPayload

func (o *BatchReferencesCreateOK) SetPayload(payload []*models.BatchReferenceResponse)

SetPayload sets the payload to the batch references create o k response

func (*BatchReferencesCreateOK) WithPayload

WithPayload adds the payload to the batch references create o k response

func (*BatchReferencesCreateOK) WriteResponse

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

WriteResponse to the client

type BatchReferencesCreateParams

type BatchReferencesCreateParams struct {

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

	/*A list of references to be batched. The ideal size depends on the used database connector. Please see the documentation of the used connector for help
	  Required: true
	  In: body
	*/
	Body []*models.BatchReference
	/*Determines how many replicas must acknowledge a request before it is considered successful
	  In: query
	*/
	ConsistencyLevel *string
}

BatchReferencesCreateParams contains all the bound params for the batch references create operation typically these are obtained from a http.Request

swagger:parameters batch.references.create

func NewBatchReferencesCreateParams

func NewBatchReferencesCreateParams() BatchReferencesCreateParams

NewBatchReferencesCreateParams creates a new BatchReferencesCreateParams object

There are no default values defined in the spec.

func (*BatchReferencesCreateParams) 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 NewBatchReferencesCreateParams() beforehand.

type BatchReferencesCreateURL

type BatchReferencesCreateURL struct {
	ConsistencyLevel *string
	// contains filtered or unexported fields
}

BatchReferencesCreateURL generates an URL for the batch references create operation

func (*BatchReferencesCreateURL) Build

func (o *BatchReferencesCreateURL) Build() (*url.URL, error)

Build a url path and query string

func (*BatchReferencesCreateURL) BuildFull

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

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

func (*BatchReferencesCreateURL) Must

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

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

func (*BatchReferencesCreateURL) SetBasePath

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

func (o *BatchReferencesCreateURL) String() string

String returns the string representation of the path with query string

func (*BatchReferencesCreateURL) StringFull

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

StringFull returns the string representation of a complete url

func (*BatchReferencesCreateURL) 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 BatchReferencesCreateUnauthorized

type BatchReferencesCreateUnauthorized struct {
}

BatchReferencesCreateUnauthorized Unauthorized or invalid credentials.

swagger:response batchReferencesCreateUnauthorized

func NewBatchReferencesCreateUnauthorized

func NewBatchReferencesCreateUnauthorized() *BatchReferencesCreateUnauthorized

NewBatchReferencesCreateUnauthorized creates BatchReferencesCreateUnauthorized with default headers values

func (*BatchReferencesCreateUnauthorized) WriteResponse

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

WriteResponse to the client

type BatchReferencesCreateUnprocessableEntity

type BatchReferencesCreateUnprocessableEntity struct {

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

BatchReferencesCreateUnprocessableEntity 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 batchReferencesCreateUnprocessableEntity

func NewBatchReferencesCreateUnprocessableEntity

func NewBatchReferencesCreateUnprocessableEntity() *BatchReferencesCreateUnprocessableEntity

NewBatchReferencesCreateUnprocessableEntity creates BatchReferencesCreateUnprocessableEntity with default headers values

func (*BatchReferencesCreateUnprocessableEntity) SetPayload

SetPayload sets the payload to the batch references create unprocessable entity response

func (*BatchReferencesCreateUnprocessableEntity) WithPayload

WithPayload adds the payload to the batch references create unprocessable entity response

func (*BatchReferencesCreateUnprocessableEntity) WriteResponse

WriteResponse to the client

Jump to

Keyboard shortcuts

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