batch

package
v1.17.6-rc.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BatchObjectsCreateBody

type BatchObjectsCreateBody struct {

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

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

BatchObjectsCreateBody batch objects create body swagger:model BatchObjectsCreateBody

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 {
	Payload *models.ErrorResponse
}

BatchObjectsCreateForbidden handles this case with default header values.

Forbidden

func NewBatchObjectsCreateForbidden

func NewBatchObjectsCreateForbidden() *BatchObjectsCreateForbidden

NewBatchObjectsCreateForbidden creates a BatchObjectsCreateForbidden with default headers values

func (*BatchObjectsCreateForbidden) Error

func (*BatchObjectsCreateForbidden) GetPayload

type BatchObjectsCreateInternalServerError

type BatchObjectsCreateInternalServerError struct {
	Payload *models.ErrorResponse
}

BatchObjectsCreateInternalServerError handles this case with default header values.

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

func NewBatchObjectsCreateInternalServerError

func NewBatchObjectsCreateInternalServerError() *BatchObjectsCreateInternalServerError

NewBatchObjectsCreateInternalServerError creates a BatchObjectsCreateInternalServerError with default headers values

func (*BatchObjectsCreateInternalServerError) Error

func (*BatchObjectsCreateInternalServerError) GetPayload

type BatchObjectsCreateOK

type BatchObjectsCreateOK struct {
	Payload []*models.ObjectsGetResponse
}

BatchObjectsCreateOK handles this case with default header values.

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

func NewBatchObjectsCreateOK

func NewBatchObjectsCreateOK() *BatchObjectsCreateOK

NewBatchObjectsCreateOK creates a BatchObjectsCreateOK with default headers values

func (*BatchObjectsCreateOK) Error

func (o *BatchObjectsCreateOK) Error() string

func (*BatchObjectsCreateOK) GetPayload

func (o *BatchObjectsCreateOK) GetPayload() []*models.ObjectsGetResponse

type BatchObjectsCreateParams

type BatchObjectsCreateParams struct {

	/*Body*/
	Body BatchObjectsCreateBody

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

BatchObjectsCreateParams contains all the parameters to send to the API endpoint for the batch objects create operation typically these are written to a http.Request

func NewBatchObjectsCreateParams

func NewBatchObjectsCreateParams() *BatchObjectsCreateParams

NewBatchObjectsCreateParams creates a new BatchObjectsCreateParams object with the default values initialized.

func NewBatchObjectsCreateParamsWithContext

func NewBatchObjectsCreateParamsWithContext(ctx context.Context) *BatchObjectsCreateParams

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

func NewBatchObjectsCreateParamsWithHTTPClient

func NewBatchObjectsCreateParamsWithHTTPClient(client *http.Client) *BatchObjectsCreateParams

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

func NewBatchObjectsCreateParamsWithTimeout

func NewBatchObjectsCreateParamsWithTimeout(timeout time.Duration) *BatchObjectsCreateParams

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

func (*BatchObjectsCreateParams) SetBody

SetBody adds the body to the batch objects create params

func (*BatchObjectsCreateParams) SetContext

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

SetContext adds the context to the batch objects create params

func (*BatchObjectsCreateParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the batch objects create params

func (*BatchObjectsCreateParams) SetTimeout

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

SetTimeout adds the timeout to the batch objects create params

func (*BatchObjectsCreateParams) WithBody

WithBody adds the body to the batch objects create params

func (*BatchObjectsCreateParams) WithContext

WithContext adds the context to the batch objects create params

func (*BatchObjectsCreateParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the batch objects create params

func (*BatchObjectsCreateParams) WithTimeout

WithTimeout adds the timeout to the batch objects create params

func (*BatchObjectsCreateParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type BatchObjectsCreateReader

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

BatchObjectsCreateReader is a Reader for the BatchObjectsCreate structure.

func (*BatchObjectsCreateReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type BatchObjectsCreateUnauthorized

type BatchObjectsCreateUnauthorized struct {
}

BatchObjectsCreateUnauthorized handles this case with default header values.

Unauthorized or invalid credentials.

func NewBatchObjectsCreateUnauthorized

func NewBatchObjectsCreateUnauthorized() *BatchObjectsCreateUnauthorized

NewBatchObjectsCreateUnauthorized creates a BatchObjectsCreateUnauthorized with default headers values

func (*BatchObjectsCreateUnauthorized) Error

type BatchObjectsCreateUnprocessableEntity

type BatchObjectsCreateUnprocessableEntity struct {
	Payload *models.ErrorResponse
}

BatchObjectsCreateUnprocessableEntity handles this case with default header values.

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

func NewBatchObjectsCreateUnprocessableEntity

func NewBatchObjectsCreateUnprocessableEntity() *BatchObjectsCreateUnprocessableEntity

NewBatchObjectsCreateUnprocessableEntity creates a BatchObjectsCreateUnprocessableEntity with default headers values

func (*BatchObjectsCreateUnprocessableEntity) Error

func (*BatchObjectsCreateUnprocessableEntity) GetPayload

type BatchObjectsDeleteForbidden

type BatchObjectsDeleteForbidden struct {
	Payload *models.ErrorResponse
}

BatchObjectsDeleteForbidden handles this case with default header values.

Forbidden

func NewBatchObjectsDeleteForbidden

func NewBatchObjectsDeleteForbidden() *BatchObjectsDeleteForbidden

NewBatchObjectsDeleteForbidden creates a BatchObjectsDeleteForbidden with default headers values

func (*BatchObjectsDeleteForbidden) Error

func (*BatchObjectsDeleteForbidden) GetPayload

type BatchObjectsDeleteInternalServerError

type BatchObjectsDeleteInternalServerError struct {
	Payload *models.ErrorResponse
}

BatchObjectsDeleteInternalServerError handles this case with default header values.

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

func NewBatchObjectsDeleteInternalServerError

func NewBatchObjectsDeleteInternalServerError() *BatchObjectsDeleteInternalServerError

NewBatchObjectsDeleteInternalServerError creates a BatchObjectsDeleteInternalServerError with default headers values

func (*BatchObjectsDeleteInternalServerError) Error

func (*BatchObjectsDeleteInternalServerError) GetPayload

type BatchObjectsDeleteOK

type BatchObjectsDeleteOK struct {
	Payload *models.BatchDeleteResponse
}

BatchObjectsDeleteOK handles this case with default header values.

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

func NewBatchObjectsDeleteOK

func NewBatchObjectsDeleteOK() *BatchObjectsDeleteOK

NewBatchObjectsDeleteOK creates a BatchObjectsDeleteOK with default headers values

func (*BatchObjectsDeleteOK) Error

func (o *BatchObjectsDeleteOK) Error() string

func (*BatchObjectsDeleteOK) GetPayload

type BatchObjectsDeleteParams

type BatchObjectsDeleteParams struct {

	/*Body*/
	Body *models.BatchDelete

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

BatchObjectsDeleteParams contains all the parameters to send to the API endpoint for the batch objects delete operation typically these are written to a http.Request

func NewBatchObjectsDeleteParams

func NewBatchObjectsDeleteParams() *BatchObjectsDeleteParams

NewBatchObjectsDeleteParams creates a new BatchObjectsDeleteParams object with the default values initialized.

func NewBatchObjectsDeleteParamsWithContext

func NewBatchObjectsDeleteParamsWithContext(ctx context.Context) *BatchObjectsDeleteParams

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

func NewBatchObjectsDeleteParamsWithHTTPClient

func NewBatchObjectsDeleteParamsWithHTTPClient(client *http.Client) *BatchObjectsDeleteParams

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

func NewBatchObjectsDeleteParamsWithTimeout

func NewBatchObjectsDeleteParamsWithTimeout(timeout time.Duration) *BatchObjectsDeleteParams

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

func (*BatchObjectsDeleteParams) SetBody

func (o *BatchObjectsDeleteParams) SetBody(body *models.BatchDelete)

SetBody adds the body to the batch objects delete params

func (*BatchObjectsDeleteParams) SetContext

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

SetContext adds the context to the batch objects delete params

func (*BatchObjectsDeleteParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the batch objects delete params

func (*BatchObjectsDeleteParams) SetTimeout

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

SetTimeout adds the timeout to the batch objects delete params

func (*BatchObjectsDeleteParams) WithBody

WithBody adds the body to the batch objects delete params

func (*BatchObjectsDeleteParams) WithContext

WithContext adds the context to the batch objects delete params

func (*BatchObjectsDeleteParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the batch objects delete params

func (*BatchObjectsDeleteParams) WithTimeout

WithTimeout adds the timeout to the batch objects delete params

func (*BatchObjectsDeleteParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type BatchObjectsDeleteReader

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

BatchObjectsDeleteReader is a Reader for the BatchObjectsDelete structure.

func (*BatchObjectsDeleteReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type BatchObjectsDeleteUnauthorized

type BatchObjectsDeleteUnauthorized struct {
}

BatchObjectsDeleteUnauthorized handles this case with default header values.

Unauthorized or invalid credentials.

func NewBatchObjectsDeleteUnauthorized

func NewBatchObjectsDeleteUnauthorized() *BatchObjectsDeleteUnauthorized

NewBatchObjectsDeleteUnauthorized creates a BatchObjectsDeleteUnauthorized with default headers values

func (*BatchObjectsDeleteUnauthorized) Error

type BatchObjectsDeleteUnprocessableEntity

type BatchObjectsDeleteUnprocessableEntity struct {
	Payload *models.ErrorResponse
}

BatchObjectsDeleteUnprocessableEntity handles this case with default header values.

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

func NewBatchObjectsDeleteUnprocessableEntity

func NewBatchObjectsDeleteUnprocessableEntity() *BatchObjectsDeleteUnprocessableEntity

NewBatchObjectsDeleteUnprocessableEntity creates a BatchObjectsDeleteUnprocessableEntity with default headers values

func (*BatchObjectsDeleteUnprocessableEntity) Error

func (*BatchObjectsDeleteUnprocessableEntity) GetPayload

type BatchReferencesCreateForbidden

type BatchReferencesCreateForbidden struct {
	Payload *models.ErrorResponse
}

BatchReferencesCreateForbidden handles this case with default header values.

Forbidden

func NewBatchReferencesCreateForbidden

func NewBatchReferencesCreateForbidden() *BatchReferencesCreateForbidden

NewBatchReferencesCreateForbidden creates a BatchReferencesCreateForbidden with default headers values

func (*BatchReferencesCreateForbidden) Error

func (*BatchReferencesCreateForbidden) GetPayload

type BatchReferencesCreateInternalServerError

type BatchReferencesCreateInternalServerError struct {
	Payload *models.ErrorResponse
}

BatchReferencesCreateInternalServerError handles this case with default header values.

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

func NewBatchReferencesCreateInternalServerError

func NewBatchReferencesCreateInternalServerError() *BatchReferencesCreateInternalServerError

NewBatchReferencesCreateInternalServerError creates a BatchReferencesCreateInternalServerError with default headers values

func (*BatchReferencesCreateInternalServerError) Error

func (*BatchReferencesCreateInternalServerError) GetPayload

type BatchReferencesCreateOK

type BatchReferencesCreateOK struct {
	Payload []*models.BatchReferenceResponse
}

BatchReferencesCreateOK handles this case with default header values.

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.

func NewBatchReferencesCreateOK

func NewBatchReferencesCreateOK() *BatchReferencesCreateOK

NewBatchReferencesCreateOK creates a BatchReferencesCreateOK with default headers values

func (*BatchReferencesCreateOK) Error

func (o *BatchReferencesCreateOK) Error() string

func (*BatchReferencesCreateOK) GetPayload

type BatchReferencesCreateParams

type BatchReferencesCreateParams struct {

	/*Body
	  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

	*/
	Body []*models.BatchReference

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

BatchReferencesCreateParams contains all the parameters to send to the API endpoint for the batch references create operation typically these are written to a http.Request

func NewBatchReferencesCreateParams

func NewBatchReferencesCreateParams() *BatchReferencesCreateParams

NewBatchReferencesCreateParams creates a new BatchReferencesCreateParams object with the default values initialized.

func NewBatchReferencesCreateParamsWithContext

func NewBatchReferencesCreateParamsWithContext(ctx context.Context) *BatchReferencesCreateParams

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

func NewBatchReferencesCreateParamsWithHTTPClient

func NewBatchReferencesCreateParamsWithHTTPClient(client *http.Client) *BatchReferencesCreateParams

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

func NewBatchReferencesCreateParamsWithTimeout

func NewBatchReferencesCreateParamsWithTimeout(timeout time.Duration) *BatchReferencesCreateParams

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

func (*BatchReferencesCreateParams) SetBody

SetBody adds the body to the batch references create params

func (*BatchReferencesCreateParams) SetContext

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

SetContext adds the context to the batch references create params

func (*BatchReferencesCreateParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the batch references create params

func (*BatchReferencesCreateParams) SetTimeout

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

SetTimeout adds the timeout to the batch references create params

func (*BatchReferencesCreateParams) WithBody

WithBody adds the body to the batch references create params

func (*BatchReferencesCreateParams) WithContext

WithContext adds the context to the batch references create params

func (*BatchReferencesCreateParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the batch references create params

func (*BatchReferencesCreateParams) WithTimeout

WithTimeout adds the timeout to the batch references create params

func (*BatchReferencesCreateParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type BatchReferencesCreateReader

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

BatchReferencesCreateReader is a Reader for the BatchReferencesCreate structure.

func (*BatchReferencesCreateReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type BatchReferencesCreateUnauthorized

type BatchReferencesCreateUnauthorized struct {
}

BatchReferencesCreateUnauthorized handles this case with default header values.

Unauthorized or invalid credentials.

func NewBatchReferencesCreateUnauthorized

func NewBatchReferencesCreateUnauthorized() *BatchReferencesCreateUnauthorized

NewBatchReferencesCreateUnauthorized creates a BatchReferencesCreateUnauthorized with default headers values

func (*BatchReferencesCreateUnauthorized) Error

type BatchReferencesCreateUnprocessableEntity

type BatchReferencesCreateUnprocessableEntity struct {
	Payload *models.ErrorResponse
}

BatchReferencesCreateUnprocessableEntity handles this case with default header values.

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

func NewBatchReferencesCreateUnprocessableEntity

func NewBatchReferencesCreateUnprocessableEntity() *BatchReferencesCreateUnprocessableEntity

NewBatchReferencesCreateUnprocessableEntity creates a BatchReferencesCreateUnprocessableEntity with default headers values

func (*BatchReferencesCreateUnprocessableEntity) Error

func (*BatchReferencesCreateUnprocessableEntity) GetPayload

type Client

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

Client for batch API

func (*Client) BatchObjectsCreate

func (a *Client) BatchObjectsCreate(params *BatchObjectsCreateParams, authInfo runtime.ClientAuthInfoWriter) (*BatchObjectsCreateOK, error)

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 (*Client) BatchObjectsDelete

func (a *Client) BatchObjectsDelete(params *BatchObjectsDeleteParams, authInfo runtime.ClientAuthInfoWriter) (*BatchObjectsDeleteOK, error)

BatchObjectsDelete deletes objects based on a match filter as a batch

Delete Objects in bulk that match a certain filter.

func (*Client) BatchReferencesCreate

func (a *Client) BatchReferencesCreate(params *BatchReferencesCreateParams, authInfo runtime.ClientAuthInfoWriter) (*BatchReferencesCreateOK, error)

BatchReferencesCreate creates new cross references between arbitrary classes in bulk

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

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientService

type ClientService interface {
	BatchObjectsCreate(params *BatchObjectsCreateParams, authInfo runtime.ClientAuthInfoWriter) (*BatchObjectsCreateOK, error)

	BatchObjectsDelete(params *BatchObjectsDeleteParams, authInfo runtime.ClientAuthInfoWriter) (*BatchObjectsDeleteOK, error)

	BatchReferencesCreate(params *BatchReferencesCreateParams, authInfo runtime.ClientAuthInfoWriter) (*BatchReferencesCreateOK, 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 batch API client.

Jump to

Keyboard shortcuts

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