events

package
v0.0.0-...-760f05f Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2022 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddEventBadRequest

type AddEventBadRequest struct {
	Payload *models.GenericError
}

AddEventBadRequest handles this case with default header values.

Error with JSON message returned in body when bad request was invoked

func NewAddEventBadRequest

func NewAddEventBadRequest() *AddEventBadRequest

NewAddEventBadRequest creates a AddEventBadRequest with default headers values

func (*AddEventBadRequest) Error

func (o *AddEventBadRequest) Error() string

func (*AddEventBadRequest) GetPayload

func (o *AddEventBadRequest) GetPayload() *models.GenericError

type AddEventInternalServerError

type AddEventInternalServerError struct {
	Payload *models.GenericError
}

AddEventInternalServerError handles this case with default header values.

Error with JSON message returned in body when internal server error occurs

func NewAddEventInternalServerError

func NewAddEventInternalServerError() *AddEventInternalServerError

NewAddEventInternalServerError creates a AddEventInternalServerError with default headers values

func (*AddEventInternalServerError) Error

func (*AddEventInternalServerError) GetPayload

type AddEventOK

type AddEventOK struct {
	Payload *models.Event
}

AddEventOK handles this case with default header values.

Response with currently created event which was added to DB

func NewAddEventOK

func NewAddEventOK() *AddEventOK

NewAddEventOK creates a AddEventOK with default headers values

func (*AddEventOK) Error

func (o *AddEventOK) Error() string

func (*AddEventOK) GetPayload

func (o *AddEventOK) GetPayload() *models.Event

type AddEventParams

type AddEventParams struct {

	/*Body
	  Event data structure to update or create.
	Note: the id field is ignored by update and create operations

	*/
	Body *models.Event

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

AddEventParams contains all the parameters to send to the API endpoint for the add event operation typically these are written to a http.Request

func NewAddEventParams

func NewAddEventParams() *AddEventParams

NewAddEventParams creates a new AddEventParams object with the default values initialized.

func NewAddEventParamsWithContext

func NewAddEventParamsWithContext(ctx context.Context) *AddEventParams

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

func NewAddEventParamsWithHTTPClient

func NewAddEventParamsWithHTTPClient(client *http.Client) *AddEventParams

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

func NewAddEventParamsWithTimeout

func NewAddEventParamsWithTimeout(timeout time.Duration) *AddEventParams

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

func (*AddEventParams) SetBody

func (o *AddEventParams) SetBody(body *models.Event)

SetBody adds the body to the add event params

func (*AddEventParams) SetContext

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

SetContext adds the context to the add event params

func (*AddEventParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the add event params

func (*AddEventParams) SetTimeout

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

SetTimeout adds the timeout to the add event params

func (*AddEventParams) WithBody

func (o *AddEventParams) WithBody(body *models.Event) *AddEventParams

WithBody adds the body to the add event params

func (*AddEventParams) WithContext

func (o *AddEventParams) WithContext(ctx context.Context) *AddEventParams

WithContext adds the context to the add event params

func (*AddEventParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the add event params

func (*AddEventParams) WithTimeout

func (o *AddEventParams) WithTimeout(timeout time.Duration) *AddEventParams

WithTimeout adds the timeout to the add event params

func (*AddEventParams) WriteToRequest

func (o *AddEventParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type AddEventReader

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

AddEventReader is a Reader for the AddEvent structure.

func (*AddEventReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type AddEventUnprocessableEntity

type AddEventUnprocessableEntity struct {
	Payload *models.ValidationError
}

AddEventUnprocessableEntity handles this case with default header values.

Error with JSON messages returned in body when validation error occurs

func NewAddEventUnprocessableEntity

func NewAddEventUnprocessableEntity() *AddEventUnprocessableEntity

NewAddEventUnprocessableEntity creates a AddEventUnprocessableEntity with default headers values

func (*AddEventUnprocessableEntity) Error

func (*AddEventUnprocessableEntity) GetPayload

type Client

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

Client for events API

func (*Client) AddEvent

func (a *Client) AddEvent(params *AddEventParams) (*AddEventOK, error)

AddEvent Creates a new event and adds it to DB

func (*Client) DeleteEvent

func (a *Client) DeleteEvent(params *DeleteEventParams) (*DeleteEventNoContent, error)

DeleteEvent Deletes an event from DB by specified ID parameter

func (*Client) GetEvent

func (a *Client) GetEvent(params *GetEventParams) (*GetEventOK, error)

GetEvent Returns a event with provided id

func (*Client) GetEvents

func (a *Client) GetEvents(params *GetEventsParams) (*GetEventsOK, error)

GetEvents Returns a list of currently stored events (all if no query params is used or filtered otherwise)

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpdateEvent

func (a *Client) UpdateEvent(params *UpdateEventParams) (*UpdateEventOK, error)

UpdateEvent Updates an event in DB by specified ID parameter

type ClientService

type ClientService interface {
	AddEvent(params *AddEventParams) (*AddEventOK, error)

	DeleteEvent(params *DeleteEventParams) (*DeleteEventNoContent, error)

	GetEvent(params *GetEventParams) (*GetEventOK, error)

	GetEvents(params *GetEventsParams) (*GetEventsOK, error)

	UpdateEvent(params *UpdateEventParams) (*UpdateEventOK, 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 events API client.

type DeleteEventBadRequest

type DeleteEventBadRequest struct {
	Payload *models.GenericError
}

DeleteEventBadRequest handles this case with default header values.

Error with JSON message returned in body when bad request was invoked

func NewDeleteEventBadRequest

func NewDeleteEventBadRequest() *DeleteEventBadRequest

NewDeleteEventBadRequest creates a DeleteEventBadRequest with default headers values

func (*DeleteEventBadRequest) Error

func (o *DeleteEventBadRequest) Error() string

func (*DeleteEventBadRequest) GetPayload

func (o *DeleteEventBadRequest) GetPayload() *models.GenericError

type DeleteEventNoContent

type DeleteEventNoContent struct {
}

DeleteEventNoContent handles this case with default header values.

Response with no specific content in body (status indicates success)

func NewDeleteEventNoContent

func NewDeleteEventNoContent() *DeleteEventNoContent

NewDeleteEventNoContent creates a DeleteEventNoContent with default headers values

func (*DeleteEventNoContent) Error

func (o *DeleteEventNoContent) Error() string

type DeleteEventParams

type DeleteEventParams struct {

	/*ID
	  The id of the event for which the operation relates<br>
	NOTE: The type is primitive.ObjectID which is the BSON ObjectID type

	*/
	ID []int64

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

DeleteEventParams contains all the parameters to send to the API endpoint for the delete event operation typically these are written to a http.Request

func NewDeleteEventParams

func NewDeleteEventParams() *DeleteEventParams

NewDeleteEventParams creates a new DeleteEventParams object with the default values initialized.

func NewDeleteEventParamsWithContext

func NewDeleteEventParamsWithContext(ctx context.Context) *DeleteEventParams

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

func NewDeleteEventParamsWithHTTPClient

func NewDeleteEventParamsWithHTTPClient(client *http.Client) *DeleteEventParams

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

func NewDeleteEventParamsWithTimeout

func NewDeleteEventParamsWithTimeout(timeout time.Duration) *DeleteEventParams

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

func (*DeleteEventParams) SetContext

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

SetContext adds the context to the delete event params

func (*DeleteEventParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete event params

func (*DeleteEventParams) SetID

func (o *DeleteEventParams) SetID(id []int64)

SetID adds the id to the delete event params

func (*DeleteEventParams) SetTimeout

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

SetTimeout adds the timeout to the delete event params

func (*DeleteEventParams) WithContext

func (o *DeleteEventParams) WithContext(ctx context.Context) *DeleteEventParams

WithContext adds the context to the delete event params

func (*DeleteEventParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete event params

func (*DeleteEventParams) WithID

func (o *DeleteEventParams) WithID(id []int64) *DeleteEventParams

WithID adds the id to the delete event params

func (*DeleteEventParams) WithTimeout

func (o *DeleteEventParams) WithTimeout(timeout time.Duration) *DeleteEventParams

WithTimeout adds the timeout to the delete event params

func (*DeleteEventParams) WriteToRequest

func (o *DeleteEventParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type DeleteEventReader

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

DeleteEventReader is a Reader for the DeleteEvent structure.

func (*DeleteEventReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetEventInternalServerError

type GetEventInternalServerError struct {
	Payload *models.GenericError
}

GetEventInternalServerError handles this case with default header values.

Error with JSON message returned in body when internal server error occurs

func NewGetEventInternalServerError

func NewGetEventInternalServerError() *GetEventInternalServerError

NewGetEventInternalServerError creates a GetEventInternalServerError with default headers values

func (*GetEventInternalServerError) Error

func (*GetEventInternalServerError) GetPayload

type GetEventNotFound

type GetEventNotFound struct {
	Payload *models.GenericError
}

GetEventNotFound handles this case with default header values.

Error with JSON message returned in body when desired item is not found

func NewGetEventNotFound

func NewGetEventNotFound() *GetEventNotFound

NewGetEventNotFound creates a GetEventNotFound with default headers values

func (*GetEventNotFound) Error

func (o *GetEventNotFound) Error() string

func (*GetEventNotFound) GetPayload

func (o *GetEventNotFound) GetPayload() *models.GenericError

type GetEventOK

type GetEventOK struct {
	Payload *models.Event
}

GetEventOK handles this case with default header values.

Response with single event from DB (selected by ID parameter in path param)

func NewGetEventOK

func NewGetEventOK() *GetEventOK

NewGetEventOK creates a GetEventOK with default headers values

func (*GetEventOK) Error

func (o *GetEventOK) Error() string

func (*GetEventOK) GetPayload

func (o *GetEventOK) GetPayload() *models.Event

type GetEventParams

type GetEventParams struct {

	/*ID
	  The id of the event for which the operation relates<br>
	NOTE: The type is primitive.ObjectID which is the BSON ObjectID type

	*/
	ID []int64

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

GetEventParams contains all the parameters to send to the API endpoint for the get event operation typically these are written to a http.Request

func NewGetEventParams

func NewGetEventParams() *GetEventParams

NewGetEventParams creates a new GetEventParams object with the default values initialized.

func NewGetEventParamsWithContext

func NewGetEventParamsWithContext(ctx context.Context) *GetEventParams

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

func NewGetEventParamsWithHTTPClient

func NewGetEventParamsWithHTTPClient(client *http.Client) *GetEventParams

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

func NewGetEventParamsWithTimeout

func NewGetEventParamsWithTimeout(timeout time.Duration) *GetEventParams

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

func (*GetEventParams) SetContext

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

SetContext adds the context to the get event params

func (*GetEventParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get event params

func (*GetEventParams) SetID

func (o *GetEventParams) SetID(id []int64)

SetID adds the id to the get event params

func (*GetEventParams) SetTimeout

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

SetTimeout adds the timeout to the get event params

func (*GetEventParams) WithContext

func (o *GetEventParams) WithContext(ctx context.Context) *GetEventParams

WithContext adds the context to the get event params

func (*GetEventParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get event params

func (*GetEventParams) WithID

func (o *GetEventParams) WithID(id []int64) *GetEventParams

WithID adds the id to the get event params

func (*GetEventParams) WithTimeout

func (o *GetEventParams) WithTimeout(timeout time.Duration) *GetEventParams

WithTimeout adds the timeout to the get event params

func (*GetEventParams) WriteToRequest

func (o *GetEventParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetEventReader

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

GetEventReader is a Reader for the GetEvent structure.

func (*GetEventReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetEventsBadRequest

type GetEventsBadRequest struct {
	Payload *models.GenericError
}

GetEventsBadRequest handles this case with default header values.

Error with JSON message returned in body when bad request was invoked

func NewGetEventsBadRequest

func NewGetEventsBadRequest() *GetEventsBadRequest

NewGetEventsBadRequest creates a GetEventsBadRequest with default headers values

func (*GetEventsBadRequest) Error

func (o *GetEventsBadRequest) Error() string

func (*GetEventsBadRequest) GetPayload

func (o *GetEventsBadRequest) GetPayload() *models.GenericError

type GetEventsInternalServerError

type GetEventsInternalServerError struct {
	Payload *models.GenericError
}

GetEventsInternalServerError handles this case with default header values.

Error with JSON message returned in body when internal server error occurs

func NewGetEventsInternalServerError

func NewGetEventsInternalServerError() *GetEventsInternalServerError

NewGetEventsInternalServerError creates a GetEventsInternalServerError with default headers values

func (*GetEventsInternalServerError) Error

func (*GetEventsInternalServerError) GetPayload

type GetEventsOK

type GetEventsOK struct {
	Payload models.Events
}

GetEventsOK handles this case with default header values.

Response with all or filtered events from DB (filter depends on query params)

func NewGetEventsOK

func NewGetEventsOK() *GetEventsOK

NewGetEventsOK creates a GetEventsOK with default headers values

func (*GetEventsOK) Error

func (o *GetEventsOK) Error() string

func (*GetEventsOK) GetPayload

func (o *GetEventsOK) GetPayload() models.Events

type GetEventsParams

type GetEventsParams struct {

	/*Category
	  The string which has to match exact searched event category

	*/
	Category *string
	/*Content
	  The string which has to be included (not exact match) in searched event content

	*/
	Content *string
	/*DayStart
	  The start date of seached event in format YYYY-MM-DD

	*/
	DayStart *strfmt.DateTime
	/*DayStop
	  The end date of seached event in format YYYY-MM-DD

	*/
	DayStop *strfmt.DateTime
	/*Limit
	  The number of items to return.

	*/
	Limit *int64
	/*Offset
	  The number of items to skip before starting to collect the result set.

	*/
	Offset *int64
	/*Owner
	  The string which has to match exact searched event owner

	*/
	Owner *string
	/*Title
	  The string which has to be included (not exact match) in searched event title

	*/
	Title *string

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

GetEventsParams contains all the parameters to send to the API endpoint for the get events operation typically these are written to a http.Request

func NewGetEventsParams

func NewGetEventsParams() *GetEventsParams

NewGetEventsParams creates a new GetEventsParams object with the default values initialized.

func NewGetEventsParamsWithContext

func NewGetEventsParamsWithContext(ctx context.Context) *GetEventsParams

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

func NewGetEventsParamsWithHTTPClient

func NewGetEventsParamsWithHTTPClient(client *http.Client) *GetEventsParams

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

func NewGetEventsParamsWithTimeout

func NewGetEventsParamsWithTimeout(timeout time.Duration) *GetEventsParams

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

func (*GetEventsParams) SetCategory

func (o *GetEventsParams) SetCategory(category *string)

SetCategory adds the category to the get events params

func (*GetEventsParams) SetContent

func (o *GetEventsParams) SetContent(content *string)

SetContent adds the content to the get events params

func (*GetEventsParams) SetContext

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

SetContext adds the context to the get events params

func (*GetEventsParams) SetDayStart

func (o *GetEventsParams) SetDayStart(dayStart *strfmt.DateTime)

SetDayStart adds the dayStart to the get events params

func (*GetEventsParams) SetDayStop

func (o *GetEventsParams) SetDayStop(dayStop *strfmt.DateTime)

SetDayStop adds the dayStop to the get events params

func (*GetEventsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get events params

func (*GetEventsParams) SetLimit

func (o *GetEventsParams) SetLimit(limit *int64)

SetLimit adds the limit to the get events params

func (*GetEventsParams) SetOffset

func (o *GetEventsParams) SetOffset(offset *int64)

SetOffset adds the offset to the get events params

func (*GetEventsParams) SetOwner

func (o *GetEventsParams) SetOwner(owner *string)

SetOwner adds the owner to the get events params

func (*GetEventsParams) SetTimeout

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

SetTimeout adds the timeout to the get events params

func (*GetEventsParams) SetTitle

func (o *GetEventsParams) SetTitle(title *string)

SetTitle adds the title to the get events params

func (*GetEventsParams) WithCategory

func (o *GetEventsParams) WithCategory(category *string) *GetEventsParams

WithCategory adds the category to the get events params

func (*GetEventsParams) WithContent

func (o *GetEventsParams) WithContent(content *string) *GetEventsParams

WithContent adds the content to the get events params

func (*GetEventsParams) WithContext

func (o *GetEventsParams) WithContext(ctx context.Context) *GetEventsParams

WithContext adds the context to the get events params

func (*GetEventsParams) WithDayStart

func (o *GetEventsParams) WithDayStart(dayStart *strfmt.DateTime) *GetEventsParams

WithDayStart adds the dayStart to the get events params

func (*GetEventsParams) WithDayStop

func (o *GetEventsParams) WithDayStop(dayStop *strfmt.DateTime) *GetEventsParams

WithDayStop adds the dayStop to the get events params

func (*GetEventsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get events params

func (*GetEventsParams) WithLimit

func (o *GetEventsParams) WithLimit(limit *int64) *GetEventsParams

WithLimit adds the limit to the get events params

func (*GetEventsParams) WithOffset

func (o *GetEventsParams) WithOffset(offset *int64) *GetEventsParams

WithOffset adds the offset to the get events params

func (*GetEventsParams) WithOwner

func (o *GetEventsParams) WithOwner(owner *string) *GetEventsParams

WithOwner adds the owner to the get events params

func (*GetEventsParams) WithTimeout

func (o *GetEventsParams) WithTimeout(timeout time.Duration) *GetEventsParams

WithTimeout adds the timeout to the get events params

func (*GetEventsParams) WithTitle

func (o *GetEventsParams) WithTitle(title *string) *GetEventsParams

WithTitle adds the title to the get events params

func (*GetEventsParams) WriteToRequest

func (o *GetEventsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetEventsReader

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

GetEventsReader is a Reader for the GetEvents structure.

func (*GetEventsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateEventBadRequest

type UpdateEventBadRequest struct {
	Payload *models.GenericError
}

UpdateEventBadRequest handles this case with default header values.

Error with JSON message returned in body when bad request was invoked

func NewUpdateEventBadRequest

func NewUpdateEventBadRequest() *UpdateEventBadRequest

NewUpdateEventBadRequest creates a UpdateEventBadRequest with default headers values

func (*UpdateEventBadRequest) Error

func (o *UpdateEventBadRequest) Error() string

func (*UpdateEventBadRequest) GetPayload

func (o *UpdateEventBadRequest) GetPayload() *models.GenericError

type UpdateEventInternalServerError

type UpdateEventInternalServerError struct {
	Payload *models.GenericError
}

UpdateEventInternalServerError handles this case with default header values.

Error with JSON message returned in body when internal server error occurs

func NewUpdateEventInternalServerError

func NewUpdateEventInternalServerError() *UpdateEventInternalServerError

NewUpdateEventInternalServerError creates a UpdateEventInternalServerError with default headers values

func (*UpdateEventInternalServerError) Error

func (*UpdateEventInternalServerError) GetPayload

type UpdateEventOK

type UpdateEventOK struct {
	Payload *models.Event
}

UpdateEventOK handles this case with default header values.

Response with currently updated event stored in DB (selected by ID parameter in path param)

func NewUpdateEventOK

func NewUpdateEventOK() *UpdateEventOK

NewUpdateEventOK creates a UpdateEventOK with default headers values

func (*UpdateEventOK) Error

func (o *UpdateEventOK) Error() string

func (*UpdateEventOK) GetPayload

func (o *UpdateEventOK) GetPayload() *models.Event

type UpdateEventParams

type UpdateEventParams struct {

	/*Body
	  Event data structure to update or create.
	Note: the id field is ignored by update and create operations

	*/
	Body *models.Event
	/*ID
	  The id of the event for which the operation relates<br>
	NOTE: The type is primitive.ObjectID which is the BSON ObjectID type

	*/
	ID []int64

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

UpdateEventParams contains all the parameters to send to the API endpoint for the update event operation typically these are written to a http.Request

func NewUpdateEventParams

func NewUpdateEventParams() *UpdateEventParams

NewUpdateEventParams creates a new UpdateEventParams object with the default values initialized.

func NewUpdateEventParamsWithContext

func NewUpdateEventParamsWithContext(ctx context.Context) *UpdateEventParams

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

func NewUpdateEventParamsWithHTTPClient

func NewUpdateEventParamsWithHTTPClient(client *http.Client) *UpdateEventParams

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

func NewUpdateEventParamsWithTimeout

func NewUpdateEventParamsWithTimeout(timeout time.Duration) *UpdateEventParams

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

func (*UpdateEventParams) SetBody

func (o *UpdateEventParams) SetBody(body *models.Event)

SetBody adds the body to the update event params

func (*UpdateEventParams) SetContext

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

SetContext adds the context to the update event params

func (*UpdateEventParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update event params

func (*UpdateEventParams) SetID

func (o *UpdateEventParams) SetID(id []int64)

SetID adds the id to the update event params

func (*UpdateEventParams) SetTimeout

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

SetTimeout adds the timeout to the update event params

func (*UpdateEventParams) WithBody

func (o *UpdateEventParams) WithBody(body *models.Event) *UpdateEventParams

WithBody adds the body to the update event params

func (*UpdateEventParams) WithContext

func (o *UpdateEventParams) WithContext(ctx context.Context) *UpdateEventParams

WithContext adds the context to the update event params

func (*UpdateEventParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the update event params

func (*UpdateEventParams) WithID

func (o *UpdateEventParams) WithID(id []int64) *UpdateEventParams

WithID adds the id to the update event params

func (*UpdateEventParams) WithTimeout

func (o *UpdateEventParams) WithTimeout(timeout time.Duration) *UpdateEventParams

WithTimeout adds the timeout to the update event params

func (*UpdateEventParams) WriteToRequest

func (o *UpdateEventParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type UpdateEventReader

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

UpdateEventReader is a Reader for the UpdateEvent structure.

func (*UpdateEventReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateEventUnprocessableEntity

type UpdateEventUnprocessableEntity struct {
	Payload *models.ValidationError
}

UpdateEventUnprocessableEntity handles this case with default header values.

Error with JSON messages returned in body when validation error occurs

func NewUpdateEventUnprocessableEntity

func NewUpdateEventUnprocessableEntity() *UpdateEventUnprocessableEntity

NewUpdateEventUnprocessableEntity creates a UpdateEventUnprocessableEntity with default headers values

func (*UpdateEventUnprocessableEntity) Error

func (*UpdateEventUnprocessableEntity) GetPayload

Jump to

Keyboard shortcuts

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