timesheet

package
v0.0.0-...-9e5aecc Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2023 License: GPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for timesheet API

func (*Client) DeleteAPITimesheetsID

func (a *Client) DeleteAPITimesheetsID(params *DeleteAPITimesheetsIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteAPITimesheetsIDNoContent, error)

DeleteAPITimesheetsID deletes an existing timesheet record

func (*Client) GetAPITimesheets

func (a *Client) GetAPITimesheets(params *GetAPITimesheetsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAPITimesheetsOK, error)

GetAPITimesheets returns a collection of timesheet records

func (*Client) GetAPITimesheetsActive

func (a *Client) GetAPITimesheetsActive(params *GetAPITimesheetsActiveParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAPITimesheetsActiveOK, error)

GetAPITimesheetsActive returns the collection of active timesheet records

func (*Client) GetAPITimesheetsID

func (a *Client) GetAPITimesheetsID(params *GetAPITimesheetsIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAPITimesheetsIDOK, error)

GetAPITimesheetsID returns one timesheet record

func (*Client) GetAPITimesheetsRecent

func (a *Client) GetAPITimesheetsRecent(params *GetAPITimesheetsRecentParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAPITimesheetsRecentOK, error)

GetAPITimesheetsRecent returns the collection of recent user activities

func (*Client) PatchAPITimesheetsID

func (a *Client) PatchAPITimesheetsID(params *PatchAPITimesheetsIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PatchAPITimesheetsIDOK, error)

PatchAPITimesheetsID updates an existing timesheet record

Update an existing timesheet record, you can pass all or just a subset of the attributes.

func (*Client) PatchAPITimesheetsIDDuplicate

func (a *Client) PatchAPITimesheetsIDDuplicate(params *PatchAPITimesheetsIDDuplicateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PatchAPITimesheetsIDDuplicateOK, error)

PatchAPITimesheetsIDDuplicate duplicates an existing timesheet record

func (*Client) PatchAPITimesheetsIDExport

func (a *Client) PatchAPITimesheetsIDExport(params *PatchAPITimesheetsIDExportParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PatchAPITimesheetsIDExportOK, error)

PatchAPITimesheetsIDExport switches the export state of a timesheet record to un lock it

func (*Client) PatchAPITimesheetsIDMeta

func (a *Client) PatchAPITimesheetsIDMeta(params *PatchAPITimesheetsIDMetaParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PatchAPITimesheetsIDMetaOK, error)

PatchAPITimesheetsIDMeta sets the value of a meta field for an existing timesheet

func (*Client) PatchAPITimesheetsIDRestart

func (a *Client) PatchAPITimesheetsIDRestart(params *PatchAPITimesheetsIDRestartParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PatchAPITimesheetsIDRestartOK, error)

PatchAPITimesheetsIDRestart restarts a previously stopped timesheet record for the current user

func (*Client) PatchAPITimesheetsIDStop

func (a *Client) PatchAPITimesheetsIDStop(params *PatchAPITimesheetsIDStopParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PatchAPITimesheetsIDStopOK, error)

PatchAPITimesheetsIDStop stops an active timesheet record

func (*Client) PostAPITimesheets

func (a *Client) PostAPITimesheets(params *PostAPITimesheetsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostAPITimesheetsOK, error)

PostAPITimesheets creates a new timesheet record

Creates a new timesheet record for the current user and returns it afterwards.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	DeleteAPITimesheetsID(params *DeleteAPITimesheetsIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteAPITimesheetsIDNoContent, error)

	GetAPITimesheets(params *GetAPITimesheetsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAPITimesheetsOK, error)

	GetAPITimesheetsActive(params *GetAPITimesheetsActiveParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAPITimesheetsActiveOK, error)

	GetAPITimesheetsID(params *GetAPITimesheetsIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAPITimesheetsIDOK, error)

	GetAPITimesheetsRecent(params *GetAPITimesheetsRecentParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAPITimesheetsRecentOK, error)

	PatchAPITimesheetsID(params *PatchAPITimesheetsIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PatchAPITimesheetsIDOK, error)

	PatchAPITimesheetsIDDuplicate(params *PatchAPITimesheetsIDDuplicateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PatchAPITimesheetsIDDuplicateOK, error)

	PatchAPITimesheetsIDExport(params *PatchAPITimesheetsIDExportParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PatchAPITimesheetsIDExportOK, error)

	PatchAPITimesheetsIDMeta(params *PatchAPITimesheetsIDMetaParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PatchAPITimesheetsIDMetaOK, error)

	PatchAPITimesheetsIDRestart(params *PatchAPITimesheetsIDRestartParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PatchAPITimesheetsIDRestartOK, error)

	PatchAPITimesheetsIDStop(params *PatchAPITimesheetsIDStopParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PatchAPITimesheetsIDStopOK, error)

	PostAPITimesheets(params *PostAPITimesheetsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostAPITimesheetsOK, 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 timesheet API client.

type DeleteAPITimesheetsIDNoContent

type DeleteAPITimesheetsIDNoContent struct {
}

DeleteAPITimesheetsIDNoContent describes a response with status code 204, with default header values.

Delete one timesheet record

func NewDeleteAPITimesheetsIDNoContent

func NewDeleteAPITimesheetsIDNoContent() *DeleteAPITimesheetsIDNoContent

NewDeleteAPITimesheetsIDNoContent creates a DeleteAPITimesheetsIDNoContent with default headers values

func (*DeleteAPITimesheetsIDNoContent) Error

func (*DeleteAPITimesheetsIDNoContent) IsClientError

func (o *DeleteAPITimesheetsIDNoContent) IsClientError() bool

IsClientError returns true when this delete Api timesheets Id no content response has a 4xx status code

func (*DeleteAPITimesheetsIDNoContent) IsCode

func (o *DeleteAPITimesheetsIDNoContent) IsCode(code int) bool

IsCode returns true when this delete Api timesheets Id no content response a status code equal to that given

func (*DeleteAPITimesheetsIDNoContent) IsRedirect

func (o *DeleteAPITimesheetsIDNoContent) IsRedirect() bool

IsRedirect returns true when this delete Api timesheets Id no content response has a 3xx status code

func (*DeleteAPITimesheetsIDNoContent) IsServerError

func (o *DeleteAPITimesheetsIDNoContent) IsServerError() bool

IsServerError returns true when this delete Api timesheets Id no content response has a 5xx status code

func (*DeleteAPITimesheetsIDNoContent) IsSuccess

func (o *DeleteAPITimesheetsIDNoContent) IsSuccess() bool

IsSuccess returns true when this delete Api timesheets Id no content response has a 2xx status code

func (*DeleteAPITimesheetsIDNoContent) String

type DeleteAPITimesheetsIDParams

type DeleteAPITimesheetsIDParams struct {

	/* ID.

	   Timesheet record ID to delete
	*/
	ID int64

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

DeleteAPITimesheetsIDParams contains all the parameters to send to the API endpoint

for the delete API timesheets ID operation.

Typically these are written to a http.Request.

func NewDeleteAPITimesheetsIDParams

func NewDeleteAPITimesheetsIDParams() *DeleteAPITimesheetsIDParams

NewDeleteAPITimesheetsIDParams creates a new DeleteAPITimesheetsIDParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewDeleteAPITimesheetsIDParamsWithContext

func NewDeleteAPITimesheetsIDParamsWithContext(ctx context.Context) *DeleteAPITimesheetsIDParams

NewDeleteAPITimesheetsIDParamsWithContext creates a new DeleteAPITimesheetsIDParams object with the ability to set a context for a request.

func NewDeleteAPITimesheetsIDParamsWithHTTPClient

func NewDeleteAPITimesheetsIDParamsWithHTTPClient(client *http.Client) *DeleteAPITimesheetsIDParams

NewDeleteAPITimesheetsIDParamsWithHTTPClient creates a new DeleteAPITimesheetsIDParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteAPITimesheetsIDParamsWithTimeout

func NewDeleteAPITimesheetsIDParamsWithTimeout(timeout time.Duration) *DeleteAPITimesheetsIDParams

NewDeleteAPITimesheetsIDParamsWithTimeout creates a new DeleteAPITimesheetsIDParams object with the ability to set a timeout on a request.

func (*DeleteAPITimesheetsIDParams) SetContext

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

SetContext adds the context to the delete API timesheets ID params

func (*DeleteAPITimesheetsIDParams) SetDefaults

func (o *DeleteAPITimesheetsIDParams) SetDefaults()

SetDefaults hydrates default values in the delete API timesheets ID params (not the query body).

All values with no default are reset to their zero value.

func (*DeleteAPITimesheetsIDParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete API timesheets ID params

func (*DeleteAPITimesheetsIDParams) SetID

func (o *DeleteAPITimesheetsIDParams) SetID(id int64)

SetID adds the id to the delete API timesheets ID params

func (*DeleteAPITimesheetsIDParams) SetTimeout

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

SetTimeout adds the timeout to the delete API timesheets ID params

func (*DeleteAPITimesheetsIDParams) WithContext

WithContext adds the context to the delete API timesheets ID params

func (*DeleteAPITimesheetsIDParams) WithDefaults

WithDefaults hydrates default values in the delete API timesheets ID params (not the query body).

All values with no default are reset to their zero value.

func (*DeleteAPITimesheetsIDParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the delete API timesheets ID params

func (*DeleteAPITimesheetsIDParams) WithID

WithID adds the id to the delete API timesheets ID params

func (*DeleteAPITimesheetsIDParams) WithTimeout

WithTimeout adds the timeout to the delete API timesheets ID params

func (*DeleteAPITimesheetsIDParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteAPITimesheetsIDReader

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

DeleteAPITimesheetsIDReader is a Reader for the DeleteAPITimesheetsID structure.

func (*DeleteAPITimesheetsIDReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetAPITimesheetsActiveOK

type GetAPITimesheetsActiveOK struct {
	Payload []*models.TimesheetCollectionExpanded
}

GetAPITimesheetsActiveOK describes a response with status code 200, with default header values.

Returns the collection of active timesheet records for the current user

func NewGetAPITimesheetsActiveOK

func NewGetAPITimesheetsActiveOK() *GetAPITimesheetsActiveOK

NewGetAPITimesheetsActiveOK creates a GetAPITimesheetsActiveOK with default headers values

func (*GetAPITimesheetsActiveOK) Error

func (o *GetAPITimesheetsActiveOK) Error() string

func (*GetAPITimesheetsActiveOK) GetPayload

func (*GetAPITimesheetsActiveOK) IsClientError

func (o *GetAPITimesheetsActiveOK) IsClientError() bool

IsClientError returns true when this get Api timesheets active o k response has a 4xx status code

func (*GetAPITimesheetsActiveOK) IsCode

func (o *GetAPITimesheetsActiveOK) IsCode(code int) bool

IsCode returns true when this get Api timesheets active o k response a status code equal to that given

func (*GetAPITimesheetsActiveOK) IsRedirect

func (o *GetAPITimesheetsActiveOK) IsRedirect() bool

IsRedirect returns true when this get Api timesheets active o k response has a 3xx status code

func (*GetAPITimesheetsActiveOK) IsServerError

func (o *GetAPITimesheetsActiveOK) IsServerError() bool

IsServerError returns true when this get Api timesheets active o k response has a 5xx status code

func (*GetAPITimesheetsActiveOK) IsSuccess

func (o *GetAPITimesheetsActiveOK) IsSuccess() bool

IsSuccess returns true when this get Api timesheets active o k response has a 2xx status code

func (*GetAPITimesheetsActiveOK) String

func (o *GetAPITimesheetsActiveOK) String() string

type GetAPITimesheetsActiveParams

type GetAPITimesheetsActiveParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetAPITimesheetsActiveParams contains all the parameters to send to the API endpoint

for the get API timesheets active operation.

Typically these are written to a http.Request.

func NewGetAPITimesheetsActiveParams

func NewGetAPITimesheetsActiveParams() *GetAPITimesheetsActiveParams

NewGetAPITimesheetsActiveParams creates a new GetAPITimesheetsActiveParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewGetAPITimesheetsActiveParamsWithContext

func NewGetAPITimesheetsActiveParamsWithContext(ctx context.Context) *GetAPITimesheetsActiveParams

NewGetAPITimesheetsActiveParamsWithContext creates a new GetAPITimesheetsActiveParams object with the ability to set a context for a request.

func NewGetAPITimesheetsActiveParamsWithHTTPClient

func NewGetAPITimesheetsActiveParamsWithHTTPClient(client *http.Client) *GetAPITimesheetsActiveParams

NewGetAPITimesheetsActiveParamsWithHTTPClient creates a new GetAPITimesheetsActiveParams object with the ability to set a custom HTTPClient for a request.

func NewGetAPITimesheetsActiveParamsWithTimeout

func NewGetAPITimesheetsActiveParamsWithTimeout(timeout time.Duration) *GetAPITimesheetsActiveParams

NewGetAPITimesheetsActiveParamsWithTimeout creates a new GetAPITimesheetsActiveParams object with the ability to set a timeout on a request.

func (*GetAPITimesheetsActiveParams) SetContext

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

SetContext adds the context to the get API timesheets active params

func (*GetAPITimesheetsActiveParams) SetDefaults

func (o *GetAPITimesheetsActiveParams) SetDefaults()

SetDefaults hydrates default values in the get API timesheets active params (not the query body).

All values with no default are reset to their zero value.

func (*GetAPITimesheetsActiveParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get API timesheets active params

func (*GetAPITimesheetsActiveParams) SetTimeout

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

SetTimeout adds the timeout to the get API timesheets active params

func (*GetAPITimesheetsActiveParams) WithContext

WithContext adds the context to the get API timesheets active params

func (*GetAPITimesheetsActiveParams) WithDefaults

WithDefaults hydrates default values in the get API timesheets active params (not the query body).

All values with no default are reset to their zero value.

func (*GetAPITimesheetsActiveParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get API timesheets active params

func (*GetAPITimesheetsActiveParams) WithTimeout

WithTimeout adds the timeout to the get API timesheets active params

func (*GetAPITimesheetsActiveParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetAPITimesheetsActiveReader

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

GetAPITimesheetsActiveReader is a Reader for the GetAPITimesheetsActive structure.

func (*GetAPITimesheetsActiveReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetAPITimesheetsIDOK

type GetAPITimesheetsIDOK struct {
	Payload *models.TimesheetEntity
}

GetAPITimesheetsIDOK describes a response with status code 200, with default header values.

Returns one timesheet record. Be aware that the datetime fields are given in the users local time including the timezone offset via ISO 8601.

func NewGetAPITimesheetsIDOK

func NewGetAPITimesheetsIDOK() *GetAPITimesheetsIDOK

NewGetAPITimesheetsIDOK creates a GetAPITimesheetsIDOK with default headers values

func (*GetAPITimesheetsIDOK) Error

func (o *GetAPITimesheetsIDOK) Error() string

func (*GetAPITimesheetsIDOK) GetPayload

func (o *GetAPITimesheetsIDOK) GetPayload() *models.TimesheetEntity

func (*GetAPITimesheetsIDOK) IsClientError

func (o *GetAPITimesheetsIDOK) IsClientError() bool

IsClientError returns true when this get Api timesheets Id o k response has a 4xx status code

func (*GetAPITimesheetsIDOK) IsCode

func (o *GetAPITimesheetsIDOK) IsCode(code int) bool

IsCode returns true when this get Api timesheets Id o k response a status code equal to that given

func (*GetAPITimesheetsIDOK) IsRedirect

func (o *GetAPITimesheetsIDOK) IsRedirect() bool

IsRedirect returns true when this get Api timesheets Id o k response has a 3xx status code

func (*GetAPITimesheetsIDOK) IsServerError

func (o *GetAPITimesheetsIDOK) IsServerError() bool

IsServerError returns true when this get Api timesheets Id o k response has a 5xx status code

func (*GetAPITimesheetsIDOK) IsSuccess

func (o *GetAPITimesheetsIDOK) IsSuccess() bool

IsSuccess returns true when this get Api timesheets Id o k response has a 2xx status code

func (*GetAPITimesheetsIDOK) String

func (o *GetAPITimesheetsIDOK) String() string

type GetAPITimesheetsIDParams

type GetAPITimesheetsIDParams struct {

	/* ID.

	   Timesheet record ID to fetch
	*/
	ID int64

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

GetAPITimesheetsIDParams contains all the parameters to send to the API endpoint

for the get API timesheets ID operation.

Typically these are written to a http.Request.

func NewGetAPITimesheetsIDParams

func NewGetAPITimesheetsIDParams() *GetAPITimesheetsIDParams

NewGetAPITimesheetsIDParams creates a new GetAPITimesheetsIDParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewGetAPITimesheetsIDParamsWithContext

func NewGetAPITimesheetsIDParamsWithContext(ctx context.Context) *GetAPITimesheetsIDParams

NewGetAPITimesheetsIDParamsWithContext creates a new GetAPITimesheetsIDParams object with the ability to set a context for a request.

func NewGetAPITimesheetsIDParamsWithHTTPClient

func NewGetAPITimesheetsIDParamsWithHTTPClient(client *http.Client) *GetAPITimesheetsIDParams

NewGetAPITimesheetsIDParamsWithHTTPClient creates a new GetAPITimesheetsIDParams object with the ability to set a custom HTTPClient for a request.

func NewGetAPITimesheetsIDParamsWithTimeout

func NewGetAPITimesheetsIDParamsWithTimeout(timeout time.Duration) *GetAPITimesheetsIDParams

NewGetAPITimesheetsIDParamsWithTimeout creates a new GetAPITimesheetsIDParams object with the ability to set a timeout on a request.

func (*GetAPITimesheetsIDParams) SetContext

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

SetContext adds the context to the get API timesheets ID params

func (*GetAPITimesheetsIDParams) SetDefaults

func (o *GetAPITimesheetsIDParams) SetDefaults()

SetDefaults hydrates default values in the get API timesheets ID params (not the query body).

All values with no default are reset to their zero value.

func (*GetAPITimesheetsIDParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get API timesheets ID params

func (*GetAPITimesheetsIDParams) SetID

func (o *GetAPITimesheetsIDParams) SetID(id int64)

SetID adds the id to the get API timesheets ID params

func (*GetAPITimesheetsIDParams) SetTimeout

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

SetTimeout adds the timeout to the get API timesheets ID params

func (*GetAPITimesheetsIDParams) WithContext

WithContext adds the context to the get API timesheets ID params

func (*GetAPITimesheetsIDParams) WithDefaults

WithDefaults hydrates default values in the get API timesheets ID params (not the query body).

All values with no default are reset to their zero value.

func (*GetAPITimesheetsIDParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get API timesheets ID params

func (*GetAPITimesheetsIDParams) WithID

WithID adds the id to the get API timesheets ID params

func (*GetAPITimesheetsIDParams) WithTimeout

WithTimeout adds the timeout to the get API timesheets ID params

func (*GetAPITimesheetsIDParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetAPITimesheetsIDReader

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

GetAPITimesheetsIDReader is a Reader for the GetAPITimesheetsID structure.

func (*GetAPITimesheetsIDReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetAPITimesheetsOK

type GetAPITimesheetsOK struct {
	Payload []*models.TimesheetCollection
}

GetAPITimesheetsOK describes a response with status code 200, with default header values.

Returns a collection of timesheets records. Be aware that the datetime fields are given in the users local time including the timezone offset via ISO 8601.

func NewGetAPITimesheetsOK

func NewGetAPITimesheetsOK() *GetAPITimesheetsOK

NewGetAPITimesheetsOK creates a GetAPITimesheetsOK with default headers values

func (*GetAPITimesheetsOK) Error

func (o *GetAPITimesheetsOK) Error() string

func (*GetAPITimesheetsOK) GetPayload

func (o *GetAPITimesheetsOK) GetPayload() []*models.TimesheetCollection

func (*GetAPITimesheetsOK) IsClientError

func (o *GetAPITimesheetsOK) IsClientError() bool

IsClientError returns true when this get Api timesheets o k response has a 4xx status code

func (*GetAPITimesheetsOK) IsCode

func (o *GetAPITimesheetsOK) IsCode(code int) bool

IsCode returns true when this get Api timesheets o k response a status code equal to that given

func (*GetAPITimesheetsOK) IsRedirect

func (o *GetAPITimesheetsOK) IsRedirect() bool

IsRedirect returns true when this get Api timesheets o k response has a 3xx status code

func (*GetAPITimesheetsOK) IsServerError

func (o *GetAPITimesheetsOK) IsServerError() bool

IsServerError returns true when this get Api timesheets o k response has a 5xx status code

func (*GetAPITimesheetsOK) IsSuccess

func (o *GetAPITimesheetsOK) IsSuccess() bool

IsSuccess returns true when this get Api timesheets o k response has a 2xx status code

func (*GetAPITimesheetsOK) String

func (o *GetAPITimesheetsOK) String() string

type GetAPITimesheetsParams

type GetAPITimesheetsParams struct {

	/* Active.

	   Filter for running/active records. Allowed values: 0=stopped, 1=active (default: all)
	*/
	Active *string

	/* Activities.

	   Comma separated list of activity IDs to filter timesheets
	*/
	Activities *string

	/* Activity.

	   DEPRECATED: Activity ID to filter timesheets (will be removed with 2.0)
	*/
	Activity *string

	/* Begin.

	   Only records after this date will be included (format: HTML5)

	   Format: DateTime
	*/
	Begin *string

	/* Billable.

	   Filter for non-/billable records. Allowed values: 0=non-billable, 1=billable (default: all)
	*/
	Billable *string

	/* Customer.

	   DEPRECATED: Customer ID to filter timesheets (will be removed with 2.0)
	*/
	Customer *string

	/* Customers.

	   Comma separated list of customer IDs to filter timesheets
	*/
	Customers *string

	/* End.

	   Only records before this date will be included (format: HTML5)

	   Format: DateTime
	*/
	End *string

	/* Exported.

	   Use this flag if you want to filter for export state. Allowed values: 0=not exported, 1=exported (default: all)
	*/
	Exported *string

	/* Full.

	   Allows to fetch fully serialized objects including subresources. Allowed values: true (default: false)
	*/
	Full *string

	/* ModifiedAfter.

	   Only records changed after this date will be included (format: HTML5). Available since Kimai 1.10 and works only for records that were created/updated since then.

	   Format: DateTime
	*/
	ModifiedAfter *string

	/* Order.

	   The result order. Allowed values: ASC, DESC (default: DESC)
	*/
	Order *string

	/* OrderBy.

	   The field by which results will be ordered. Allowed values: id, begin, end, rate (default: begin)
	*/
	OrderBy *string

	/* Page.

	   The page to display, renders a 404 if not found (default: 1)
	*/
	Page *string

	/* Project.

	   DEPRECATED: Project ID to filter timesheets (will be removed with 2.0)
	*/
	Project *string

	/* Projects.

	   Comma separated list of project IDs to filter timesheets
	*/
	Projects *string

	/* Size.

	   The amount of entries for each page (default: 50)
	*/
	Size *string

	/* Tags.

	   Comma separated list of tag names
	*/
	Tags *string

	/* Term.

	   Free search term
	*/
	Term *string

	/* User.

	   User ID to filter timesheets. Needs permission 'view_other_timesheet', pass 'all' to fetch data for all user (default: current user)
	*/
	User *string

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

GetAPITimesheetsParams contains all the parameters to send to the API endpoint

for the get API timesheets operation.

Typically these are written to a http.Request.

func NewGetAPITimesheetsParams

func NewGetAPITimesheetsParams() *GetAPITimesheetsParams

NewGetAPITimesheetsParams creates a new GetAPITimesheetsParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewGetAPITimesheetsParamsWithContext

func NewGetAPITimesheetsParamsWithContext(ctx context.Context) *GetAPITimesheetsParams

NewGetAPITimesheetsParamsWithContext creates a new GetAPITimesheetsParams object with the ability to set a context for a request.

func NewGetAPITimesheetsParamsWithHTTPClient

func NewGetAPITimesheetsParamsWithHTTPClient(client *http.Client) *GetAPITimesheetsParams

NewGetAPITimesheetsParamsWithHTTPClient creates a new GetAPITimesheetsParams object with the ability to set a custom HTTPClient for a request.

func NewGetAPITimesheetsParamsWithTimeout

func NewGetAPITimesheetsParamsWithTimeout(timeout time.Duration) *GetAPITimesheetsParams

NewGetAPITimesheetsParamsWithTimeout creates a new GetAPITimesheetsParams object with the ability to set a timeout on a request.

func (*GetAPITimesheetsParams) SetActive

func (o *GetAPITimesheetsParams) SetActive(active *string)

SetActive adds the active to the get API timesheets params

func (*GetAPITimesheetsParams) SetActivities

func (o *GetAPITimesheetsParams) SetActivities(activities *string)

SetActivities adds the activities to the get API timesheets params

func (*GetAPITimesheetsParams) SetActivity

func (o *GetAPITimesheetsParams) SetActivity(activity *string)

SetActivity adds the activity to the get API timesheets params

func (*GetAPITimesheetsParams) SetBegin

func (o *GetAPITimesheetsParams) SetBegin(begin *string)

SetBegin adds the begin to the get API timesheets params

func (*GetAPITimesheetsParams) SetBillable

func (o *GetAPITimesheetsParams) SetBillable(billable *string)

SetBillable adds the billable to the get API timesheets params

func (*GetAPITimesheetsParams) SetContext

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

SetContext adds the context to the get API timesheets params

func (*GetAPITimesheetsParams) SetCustomer

func (o *GetAPITimesheetsParams) SetCustomer(customer *string)

SetCustomer adds the customer to the get API timesheets params

func (*GetAPITimesheetsParams) SetCustomers

func (o *GetAPITimesheetsParams) SetCustomers(customers *string)

SetCustomers adds the customers to the get API timesheets params

func (*GetAPITimesheetsParams) SetDefaults

func (o *GetAPITimesheetsParams) SetDefaults()

SetDefaults hydrates default values in the get API timesheets params (not the query body).

All values with no default are reset to their zero value.

func (*GetAPITimesheetsParams) SetEnd

func (o *GetAPITimesheetsParams) SetEnd(end *string)

SetEnd adds the end to the get API timesheets params

func (*GetAPITimesheetsParams) SetExported

func (o *GetAPITimesheetsParams) SetExported(exported *string)

SetExported adds the exported to the get API timesheets params

func (*GetAPITimesheetsParams) SetFull

func (o *GetAPITimesheetsParams) SetFull(full *string)

SetFull adds the full to the get API timesheets params

func (*GetAPITimesheetsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get API timesheets params

func (*GetAPITimesheetsParams) SetModifiedAfter

func (o *GetAPITimesheetsParams) SetModifiedAfter(modifiedAfter *string)

SetModifiedAfter adds the modifiedAfter to the get API timesheets params

func (*GetAPITimesheetsParams) SetOrder

func (o *GetAPITimesheetsParams) SetOrder(order *string)

SetOrder adds the order to the get API timesheets params

func (*GetAPITimesheetsParams) SetOrderBy

func (o *GetAPITimesheetsParams) SetOrderBy(orderBy *string)

SetOrderBy adds the orderBy to the get API timesheets params

func (*GetAPITimesheetsParams) SetPage

func (o *GetAPITimesheetsParams) SetPage(page *string)

SetPage adds the page to the get API timesheets params

func (*GetAPITimesheetsParams) SetProject

func (o *GetAPITimesheetsParams) SetProject(project *string)

SetProject adds the project to the get API timesheets params

func (*GetAPITimesheetsParams) SetProjects

func (o *GetAPITimesheetsParams) SetProjects(projects *string)

SetProjects adds the projects to the get API timesheets params

func (*GetAPITimesheetsParams) SetSize

func (o *GetAPITimesheetsParams) SetSize(size *string)

SetSize adds the size to the get API timesheets params

func (*GetAPITimesheetsParams) SetTags

func (o *GetAPITimesheetsParams) SetTags(tags *string)

SetTags adds the tags to the get API timesheets params

func (*GetAPITimesheetsParams) SetTerm

func (o *GetAPITimesheetsParams) SetTerm(term *string)

SetTerm adds the term to the get API timesheets params

func (*GetAPITimesheetsParams) SetTimeout

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

SetTimeout adds the timeout to the get API timesheets params

func (*GetAPITimesheetsParams) SetUser

func (o *GetAPITimesheetsParams) SetUser(user *string)

SetUser adds the user to the get API timesheets params

func (*GetAPITimesheetsParams) WithActive

func (o *GetAPITimesheetsParams) WithActive(active *string) *GetAPITimesheetsParams

WithActive adds the active to the get API timesheets params

func (*GetAPITimesheetsParams) WithActivities

func (o *GetAPITimesheetsParams) WithActivities(activities *string) *GetAPITimesheetsParams

WithActivities adds the activities to the get API timesheets params

func (*GetAPITimesheetsParams) WithActivity

func (o *GetAPITimesheetsParams) WithActivity(activity *string) *GetAPITimesheetsParams

WithActivity adds the activity to the get API timesheets params

func (*GetAPITimesheetsParams) WithBegin

WithBegin adds the begin to the get API timesheets params

func (*GetAPITimesheetsParams) WithBillable

func (o *GetAPITimesheetsParams) WithBillable(billable *string) *GetAPITimesheetsParams

WithBillable adds the billable to the get API timesheets params

func (*GetAPITimesheetsParams) WithContext

WithContext adds the context to the get API timesheets params

func (*GetAPITimesheetsParams) WithCustomer

func (o *GetAPITimesheetsParams) WithCustomer(customer *string) *GetAPITimesheetsParams

WithCustomer adds the customer to the get API timesheets params

func (*GetAPITimesheetsParams) WithCustomers

func (o *GetAPITimesheetsParams) WithCustomers(customers *string) *GetAPITimesheetsParams

WithCustomers adds the customers to the get API timesheets params

func (*GetAPITimesheetsParams) WithDefaults

WithDefaults hydrates default values in the get API timesheets params (not the query body).

All values with no default are reset to their zero value.

func (*GetAPITimesheetsParams) WithEnd

WithEnd adds the end to the get API timesheets params

func (*GetAPITimesheetsParams) WithExported

func (o *GetAPITimesheetsParams) WithExported(exported *string) *GetAPITimesheetsParams

WithExported adds the exported to the get API timesheets params

func (*GetAPITimesheetsParams) WithFull

WithFull adds the full to the get API timesheets params

func (*GetAPITimesheetsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get API timesheets params

func (*GetAPITimesheetsParams) WithModifiedAfter

func (o *GetAPITimesheetsParams) WithModifiedAfter(modifiedAfter *string) *GetAPITimesheetsParams

WithModifiedAfter adds the modifiedAfter to the get API timesheets params

func (*GetAPITimesheetsParams) WithOrder

WithOrder adds the order to the get API timesheets params

func (*GetAPITimesheetsParams) WithOrderBy

func (o *GetAPITimesheetsParams) WithOrderBy(orderBy *string) *GetAPITimesheetsParams

WithOrderBy adds the orderBy to the get API timesheets params

func (*GetAPITimesheetsParams) WithPage

WithPage adds the page to the get API timesheets params

func (*GetAPITimesheetsParams) WithProject

func (o *GetAPITimesheetsParams) WithProject(project *string) *GetAPITimesheetsParams

WithProject adds the project to the get API timesheets params

func (*GetAPITimesheetsParams) WithProjects

func (o *GetAPITimesheetsParams) WithProjects(projects *string) *GetAPITimesheetsParams

WithProjects adds the projects to the get API timesheets params

func (*GetAPITimesheetsParams) WithSize

WithSize adds the size to the get API timesheets params

func (*GetAPITimesheetsParams) WithTags

WithTags adds the tags to the get API timesheets params

func (*GetAPITimesheetsParams) WithTerm

WithTerm adds the term to the get API timesheets params

func (*GetAPITimesheetsParams) WithTimeout

WithTimeout adds the timeout to the get API timesheets params

func (*GetAPITimesheetsParams) WithUser

WithUser adds the user to the get API timesheets params

func (*GetAPITimesheetsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetAPITimesheetsReader

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

GetAPITimesheetsReader is a Reader for the GetAPITimesheets structure.

func (*GetAPITimesheetsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetAPITimesheetsRecentOK

type GetAPITimesheetsRecentOK struct {
	Payload []*models.TimesheetCollectionExpanded
}

GetAPITimesheetsRecentOK describes a response with status code 200, with default header values.

Returns the collection of recent user activities (always the latest entry of a unique working set grouped by customer, project and activity)

func NewGetAPITimesheetsRecentOK

func NewGetAPITimesheetsRecentOK() *GetAPITimesheetsRecentOK

NewGetAPITimesheetsRecentOK creates a GetAPITimesheetsRecentOK with default headers values

func (*GetAPITimesheetsRecentOK) Error

func (o *GetAPITimesheetsRecentOK) Error() string

func (*GetAPITimesheetsRecentOK) GetPayload

func (*GetAPITimesheetsRecentOK) IsClientError

func (o *GetAPITimesheetsRecentOK) IsClientError() bool

IsClientError returns true when this get Api timesheets recent o k response has a 4xx status code

func (*GetAPITimesheetsRecentOK) IsCode

func (o *GetAPITimesheetsRecentOK) IsCode(code int) bool

IsCode returns true when this get Api timesheets recent o k response a status code equal to that given

func (*GetAPITimesheetsRecentOK) IsRedirect

func (o *GetAPITimesheetsRecentOK) IsRedirect() bool

IsRedirect returns true when this get Api timesheets recent o k response has a 3xx status code

func (*GetAPITimesheetsRecentOK) IsServerError

func (o *GetAPITimesheetsRecentOK) IsServerError() bool

IsServerError returns true when this get Api timesheets recent o k response has a 5xx status code

func (*GetAPITimesheetsRecentOK) IsSuccess

func (o *GetAPITimesheetsRecentOK) IsSuccess() bool

IsSuccess returns true when this get Api timesheets recent o k response has a 2xx status code

func (*GetAPITimesheetsRecentOK) String

func (o *GetAPITimesheetsRecentOK) String() string

type GetAPITimesheetsRecentParams

type GetAPITimesheetsRecentParams struct {

	/* Begin.

	   Only records after this date will be included. Default: today - 1 year (format: HTML5)

	   Format: DateTime
	*/
	Begin string

	/* Size.

	   The amount of entries (default: 10)
	*/
	Size string

	/* User.

	   User ID to filter timesheets. Needs permission 'view_other_timesheet', pass 'all' to fetch data for all user (default: current user)
	*/
	User string

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

GetAPITimesheetsRecentParams contains all the parameters to send to the API endpoint

for the get API timesheets recent operation.

Typically these are written to a http.Request.

func NewGetAPITimesheetsRecentParams

func NewGetAPITimesheetsRecentParams() *GetAPITimesheetsRecentParams

NewGetAPITimesheetsRecentParams creates a new GetAPITimesheetsRecentParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewGetAPITimesheetsRecentParamsWithContext

func NewGetAPITimesheetsRecentParamsWithContext(ctx context.Context) *GetAPITimesheetsRecentParams

NewGetAPITimesheetsRecentParamsWithContext creates a new GetAPITimesheetsRecentParams object with the ability to set a context for a request.

func NewGetAPITimesheetsRecentParamsWithHTTPClient

func NewGetAPITimesheetsRecentParamsWithHTTPClient(client *http.Client) *GetAPITimesheetsRecentParams

NewGetAPITimesheetsRecentParamsWithHTTPClient creates a new GetAPITimesheetsRecentParams object with the ability to set a custom HTTPClient for a request.

func NewGetAPITimesheetsRecentParamsWithTimeout

func NewGetAPITimesheetsRecentParamsWithTimeout(timeout time.Duration) *GetAPITimesheetsRecentParams

NewGetAPITimesheetsRecentParamsWithTimeout creates a new GetAPITimesheetsRecentParams object with the ability to set a timeout on a request.

func (*GetAPITimesheetsRecentParams) SetBegin

func (o *GetAPITimesheetsRecentParams) SetBegin(begin string)

SetBegin adds the begin to the get API timesheets recent params

func (*GetAPITimesheetsRecentParams) SetContext

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

SetContext adds the context to the get API timesheets recent params

func (*GetAPITimesheetsRecentParams) SetDefaults

func (o *GetAPITimesheetsRecentParams) SetDefaults()

SetDefaults hydrates default values in the get API timesheets recent params (not the query body).

All values with no default are reset to their zero value.

func (*GetAPITimesheetsRecentParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get API timesheets recent params

func (*GetAPITimesheetsRecentParams) SetSize

func (o *GetAPITimesheetsRecentParams) SetSize(size string)

SetSize adds the size to the get API timesheets recent params

func (*GetAPITimesheetsRecentParams) SetTimeout

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

SetTimeout adds the timeout to the get API timesheets recent params

func (*GetAPITimesheetsRecentParams) SetUser

func (o *GetAPITimesheetsRecentParams) SetUser(user string)

SetUser adds the user to the get API timesheets recent params

func (*GetAPITimesheetsRecentParams) WithBegin

WithBegin adds the begin to the get API timesheets recent params

func (*GetAPITimesheetsRecentParams) WithContext

WithContext adds the context to the get API timesheets recent params

func (*GetAPITimesheetsRecentParams) WithDefaults

WithDefaults hydrates default values in the get API timesheets recent params (not the query body).

All values with no default are reset to their zero value.

func (*GetAPITimesheetsRecentParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get API timesheets recent params

func (*GetAPITimesheetsRecentParams) WithSize

WithSize adds the size to the get API timesheets recent params

func (*GetAPITimesheetsRecentParams) WithTimeout

WithTimeout adds the timeout to the get API timesheets recent params

func (*GetAPITimesheetsRecentParams) WithUser

WithUser adds the user to the get API timesheets recent params

func (*GetAPITimesheetsRecentParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetAPITimesheetsRecentReader

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

GetAPITimesheetsRecentReader is a Reader for the GetAPITimesheetsRecent structure.

func (*GetAPITimesheetsRecentReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PatchAPITimesheetsIDDuplicateOK

type PatchAPITimesheetsIDDuplicateOK struct {
	Payload *models.TimesheetEntity
}

PatchAPITimesheetsIDDuplicateOK describes a response with status code 200, with default header values.

Duplicates a timesheet record, resetting the export state only.

func NewPatchAPITimesheetsIDDuplicateOK

func NewPatchAPITimesheetsIDDuplicateOK() *PatchAPITimesheetsIDDuplicateOK

NewPatchAPITimesheetsIDDuplicateOK creates a PatchAPITimesheetsIDDuplicateOK with default headers values

func (*PatchAPITimesheetsIDDuplicateOK) Error

func (*PatchAPITimesheetsIDDuplicateOK) GetPayload

func (*PatchAPITimesheetsIDDuplicateOK) IsClientError

func (o *PatchAPITimesheetsIDDuplicateOK) IsClientError() bool

IsClientError returns true when this patch Api timesheets Id duplicate o k response has a 4xx status code

func (*PatchAPITimesheetsIDDuplicateOK) IsCode

func (o *PatchAPITimesheetsIDDuplicateOK) IsCode(code int) bool

IsCode returns true when this patch Api timesheets Id duplicate o k response a status code equal to that given

func (*PatchAPITimesheetsIDDuplicateOK) IsRedirect

func (o *PatchAPITimesheetsIDDuplicateOK) IsRedirect() bool

IsRedirect returns true when this patch Api timesheets Id duplicate o k response has a 3xx status code

func (*PatchAPITimesheetsIDDuplicateOK) IsServerError

func (o *PatchAPITimesheetsIDDuplicateOK) IsServerError() bool

IsServerError returns true when this patch Api timesheets Id duplicate o k response has a 5xx status code

func (*PatchAPITimesheetsIDDuplicateOK) IsSuccess

func (o *PatchAPITimesheetsIDDuplicateOK) IsSuccess() bool

IsSuccess returns true when this patch Api timesheets Id duplicate o k response has a 2xx status code

func (*PatchAPITimesheetsIDDuplicateOK) String

type PatchAPITimesheetsIDDuplicateParams

type PatchAPITimesheetsIDDuplicateParams struct {

	/* ID.

	   Timesheet record ID to duplicate
	*/
	ID int64

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

PatchAPITimesheetsIDDuplicateParams contains all the parameters to send to the API endpoint

for the patch API timesheets ID duplicate operation.

Typically these are written to a http.Request.

func NewPatchAPITimesheetsIDDuplicateParams

func NewPatchAPITimesheetsIDDuplicateParams() *PatchAPITimesheetsIDDuplicateParams

NewPatchAPITimesheetsIDDuplicateParams creates a new PatchAPITimesheetsIDDuplicateParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewPatchAPITimesheetsIDDuplicateParamsWithContext

func NewPatchAPITimesheetsIDDuplicateParamsWithContext(ctx context.Context) *PatchAPITimesheetsIDDuplicateParams

NewPatchAPITimesheetsIDDuplicateParamsWithContext creates a new PatchAPITimesheetsIDDuplicateParams object with the ability to set a context for a request.

func NewPatchAPITimesheetsIDDuplicateParamsWithHTTPClient

func NewPatchAPITimesheetsIDDuplicateParamsWithHTTPClient(client *http.Client) *PatchAPITimesheetsIDDuplicateParams

NewPatchAPITimesheetsIDDuplicateParamsWithHTTPClient creates a new PatchAPITimesheetsIDDuplicateParams object with the ability to set a custom HTTPClient for a request.

func NewPatchAPITimesheetsIDDuplicateParamsWithTimeout

func NewPatchAPITimesheetsIDDuplicateParamsWithTimeout(timeout time.Duration) *PatchAPITimesheetsIDDuplicateParams

NewPatchAPITimesheetsIDDuplicateParamsWithTimeout creates a new PatchAPITimesheetsIDDuplicateParams object with the ability to set a timeout on a request.

func (*PatchAPITimesheetsIDDuplicateParams) SetContext

SetContext adds the context to the patch API timesheets ID duplicate params

func (*PatchAPITimesheetsIDDuplicateParams) SetDefaults

func (o *PatchAPITimesheetsIDDuplicateParams) SetDefaults()

SetDefaults hydrates default values in the patch API timesheets ID duplicate params (not the query body).

All values with no default are reset to their zero value.

func (*PatchAPITimesheetsIDDuplicateParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the patch API timesheets ID duplicate params

func (*PatchAPITimesheetsIDDuplicateParams) SetID

SetID adds the id to the patch API timesheets ID duplicate params

func (*PatchAPITimesheetsIDDuplicateParams) SetTimeout

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

SetTimeout adds the timeout to the patch API timesheets ID duplicate params

func (*PatchAPITimesheetsIDDuplicateParams) WithContext

WithContext adds the context to the patch API timesheets ID duplicate params

func (*PatchAPITimesheetsIDDuplicateParams) WithDefaults

WithDefaults hydrates default values in the patch API timesheets ID duplicate params (not the query body).

All values with no default are reset to their zero value.

func (*PatchAPITimesheetsIDDuplicateParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the patch API timesheets ID duplicate params

func (*PatchAPITimesheetsIDDuplicateParams) WithID

WithID adds the id to the patch API timesheets ID duplicate params

func (*PatchAPITimesheetsIDDuplicateParams) WithTimeout

WithTimeout adds the timeout to the patch API timesheets ID duplicate params

func (*PatchAPITimesheetsIDDuplicateParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PatchAPITimesheetsIDDuplicateReader

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

PatchAPITimesheetsIDDuplicateReader is a Reader for the PatchAPITimesheetsIDDuplicate structure.

func (*PatchAPITimesheetsIDDuplicateReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PatchAPITimesheetsIDExportOK

type PatchAPITimesheetsIDExportOK struct {
	Payload *models.TimesheetEntity
}

PatchAPITimesheetsIDExportOK describes a response with status code 200, with default header values.

Switches the exported state on the record and therefor locks / unlocks it for further updates. Needs edit_export_*_timesheet permission.

func NewPatchAPITimesheetsIDExportOK

func NewPatchAPITimesheetsIDExportOK() *PatchAPITimesheetsIDExportOK

NewPatchAPITimesheetsIDExportOK creates a PatchAPITimesheetsIDExportOK with default headers values

func (*PatchAPITimesheetsIDExportOK) Error

func (*PatchAPITimesheetsIDExportOK) GetPayload

func (*PatchAPITimesheetsIDExportOK) IsClientError

func (o *PatchAPITimesheetsIDExportOK) IsClientError() bool

IsClientError returns true when this patch Api timesheets Id export o k response has a 4xx status code

func (*PatchAPITimesheetsIDExportOK) IsCode

func (o *PatchAPITimesheetsIDExportOK) IsCode(code int) bool

IsCode returns true when this patch Api timesheets Id export o k response a status code equal to that given

func (*PatchAPITimesheetsIDExportOK) IsRedirect

func (o *PatchAPITimesheetsIDExportOK) IsRedirect() bool

IsRedirect returns true when this patch Api timesheets Id export o k response has a 3xx status code

func (*PatchAPITimesheetsIDExportOK) IsServerError

func (o *PatchAPITimesheetsIDExportOK) IsServerError() bool

IsServerError returns true when this patch Api timesheets Id export o k response has a 5xx status code

func (*PatchAPITimesheetsIDExportOK) IsSuccess

func (o *PatchAPITimesheetsIDExportOK) IsSuccess() bool

IsSuccess returns true when this patch Api timesheets Id export o k response has a 2xx status code

func (*PatchAPITimesheetsIDExportOK) String

type PatchAPITimesheetsIDExportParams

type PatchAPITimesheetsIDExportParams struct {

	/* ID.

	   Timesheet record ID to switch export state
	*/
	ID int64

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

PatchAPITimesheetsIDExportParams contains all the parameters to send to the API endpoint

for the patch API timesheets ID export operation.

Typically these are written to a http.Request.

func NewPatchAPITimesheetsIDExportParams

func NewPatchAPITimesheetsIDExportParams() *PatchAPITimesheetsIDExportParams

NewPatchAPITimesheetsIDExportParams creates a new PatchAPITimesheetsIDExportParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewPatchAPITimesheetsIDExportParamsWithContext

func NewPatchAPITimesheetsIDExportParamsWithContext(ctx context.Context) *PatchAPITimesheetsIDExportParams

NewPatchAPITimesheetsIDExportParamsWithContext creates a new PatchAPITimesheetsIDExportParams object with the ability to set a context for a request.

func NewPatchAPITimesheetsIDExportParamsWithHTTPClient

func NewPatchAPITimesheetsIDExportParamsWithHTTPClient(client *http.Client) *PatchAPITimesheetsIDExportParams

NewPatchAPITimesheetsIDExportParamsWithHTTPClient creates a new PatchAPITimesheetsIDExportParams object with the ability to set a custom HTTPClient for a request.

func NewPatchAPITimesheetsIDExportParamsWithTimeout

func NewPatchAPITimesheetsIDExportParamsWithTimeout(timeout time.Duration) *PatchAPITimesheetsIDExportParams

NewPatchAPITimesheetsIDExportParamsWithTimeout creates a new PatchAPITimesheetsIDExportParams object with the ability to set a timeout on a request.

func (*PatchAPITimesheetsIDExportParams) SetContext

SetContext adds the context to the patch API timesheets ID export params

func (*PatchAPITimesheetsIDExportParams) SetDefaults

func (o *PatchAPITimesheetsIDExportParams) SetDefaults()

SetDefaults hydrates default values in the patch API timesheets ID export params (not the query body).

All values with no default are reset to their zero value.

func (*PatchAPITimesheetsIDExportParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the patch API timesheets ID export params

func (*PatchAPITimesheetsIDExportParams) SetID

SetID adds the id to the patch API timesheets ID export params

func (*PatchAPITimesheetsIDExportParams) SetTimeout

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

SetTimeout adds the timeout to the patch API timesheets ID export params

func (*PatchAPITimesheetsIDExportParams) WithContext

WithContext adds the context to the patch API timesheets ID export params

func (*PatchAPITimesheetsIDExportParams) WithDefaults

WithDefaults hydrates default values in the patch API timesheets ID export params (not the query body).

All values with no default are reset to their zero value.

func (*PatchAPITimesheetsIDExportParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the patch API timesheets ID export params

func (*PatchAPITimesheetsIDExportParams) WithID

WithID adds the id to the patch API timesheets ID export params

func (*PatchAPITimesheetsIDExportParams) WithTimeout

WithTimeout adds the timeout to the patch API timesheets ID export params

func (*PatchAPITimesheetsIDExportParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PatchAPITimesheetsIDExportReader

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

PatchAPITimesheetsIDExportReader is a Reader for the PatchAPITimesheetsIDExport structure.

func (*PatchAPITimesheetsIDExportReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PatchAPITimesheetsIDMetaBody

type PatchAPITimesheetsIDMetaBody struct {

	// The meta-field name
	// Required: true
	Name *string `json:"name"`

	// The meta-field value
	// Required: true
	Value *string `json:"value"`
}

PatchAPITimesheetsIDMetaBody patch API timesheets ID meta body swagger:model PatchAPITimesheetsIDMetaBody

func (*PatchAPITimesheetsIDMetaBody) ContextValidate

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

ContextValidate validates this patch API timesheets ID meta body based on context it is used

func (*PatchAPITimesheetsIDMetaBody) MarshalBinary

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

MarshalBinary interface implementation

func (*PatchAPITimesheetsIDMetaBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*PatchAPITimesheetsIDMetaBody) Validate

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

Validate validates this patch API timesheets ID meta body

type PatchAPITimesheetsIDMetaOK

type PatchAPITimesheetsIDMetaOK struct {
	Payload *models.TimesheetEntity
}

PatchAPITimesheetsIDMetaOK describes a response with status code 200, with default header values.

Sets the value of an existing/configured meta-field. You cannot create unknown meta-fields, if the given name is not a configured meta-field, this will return an exception.

func NewPatchAPITimesheetsIDMetaOK

func NewPatchAPITimesheetsIDMetaOK() *PatchAPITimesheetsIDMetaOK

NewPatchAPITimesheetsIDMetaOK creates a PatchAPITimesheetsIDMetaOK with default headers values

func (*PatchAPITimesheetsIDMetaOK) Error

func (*PatchAPITimesheetsIDMetaOK) GetPayload

func (*PatchAPITimesheetsIDMetaOK) IsClientError

func (o *PatchAPITimesheetsIDMetaOK) IsClientError() bool

IsClientError returns true when this patch Api timesheets Id meta o k response has a 4xx status code

func (*PatchAPITimesheetsIDMetaOK) IsCode

func (o *PatchAPITimesheetsIDMetaOK) IsCode(code int) bool

IsCode returns true when this patch Api timesheets Id meta o k response a status code equal to that given

func (*PatchAPITimesheetsIDMetaOK) IsRedirect

func (o *PatchAPITimesheetsIDMetaOK) IsRedirect() bool

IsRedirect returns true when this patch Api timesheets Id meta o k response has a 3xx status code

func (*PatchAPITimesheetsIDMetaOK) IsServerError

func (o *PatchAPITimesheetsIDMetaOK) IsServerError() bool

IsServerError returns true when this patch Api timesheets Id meta o k response has a 5xx status code

func (*PatchAPITimesheetsIDMetaOK) IsSuccess

func (o *PatchAPITimesheetsIDMetaOK) IsSuccess() bool

IsSuccess returns true when this patch Api timesheets Id meta o k response has a 2xx status code

func (*PatchAPITimesheetsIDMetaOK) String

func (o *PatchAPITimesheetsIDMetaOK) String() string

type PatchAPITimesheetsIDMetaParams

type PatchAPITimesheetsIDMetaParams struct {

	// Body.
	Body PatchAPITimesheetsIDMetaBody

	/* ID.

	   Timesheet record ID to set the meta-field value for
	*/
	ID int64

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

PatchAPITimesheetsIDMetaParams contains all the parameters to send to the API endpoint

for the patch API timesheets ID meta operation.

Typically these are written to a http.Request.

func NewPatchAPITimesheetsIDMetaParams

func NewPatchAPITimesheetsIDMetaParams() *PatchAPITimesheetsIDMetaParams

NewPatchAPITimesheetsIDMetaParams creates a new PatchAPITimesheetsIDMetaParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewPatchAPITimesheetsIDMetaParamsWithContext

func NewPatchAPITimesheetsIDMetaParamsWithContext(ctx context.Context) *PatchAPITimesheetsIDMetaParams

NewPatchAPITimesheetsIDMetaParamsWithContext creates a new PatchAPITimesheetsIDMetaParams object with the ability to set a context for a request.

func NewPatchAPITimesheetsIDMetaParamsWithHTTPClient

func NewPatchAPITimesheetsIDMetaParamsWithHTTPClient(client *http.Client) *PatchAPITimesheetsIDMetaParams

NewPatchAPITimesheetsIDMetaParamsWithHTTPClient creates a new PatchAPITimesheetsIDMetaParams object with the ability to set a custom HTTPClient for a request.

func NewPatchAPITimesheetsIDMetaParamsWithTimeout

func NewPatchAPITimesheetsIDMetaParamsWithTimeout(timeout time.Duration) *PatchAPITimesheetsIDMetaParams

NewPatchAPITimesheetsIDMetaParamsWithTimeout creates a new PatchAPITimesheetsIDMetaParams object with the ability to set a timeout on a request.

func (*PatchAPITimesheetsIDMetaParams) SetBody

SetBody adds the body to the patch API timesheets ID meta params

func (*PatchAPITimesheetsIDMetaParams) SetContext

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

SetContext adds the context to the patch API timesheets ID meta params

func (*PatchAPITimesheetsIDMetaParams) SetDefaults

func (o *PatchAPITimesheetsIDMetaParams) SetDefaults()

SetDefaults hydrates default values in the patch API timesheets ID meta params (not the query body).

All values with no default are reset to their zero value.

func (*PatchAPITimesheetsIDMetaParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the patch API timesheets ID meta params

func (*PatchAPITimesheetsIDMetaParams) SetID

SetID adds the id to the patch API timesheets ID meta params

func (*PatchAPITimesheetsIDMetaParams) SetTimeout

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

SetTimeout adds the timeout to the patch API timesheets ID meta params

func (*PatchAPITimesheetsIDMetaParams) WithBody

WithBody adds the body to the patch API timesheets ID meta params

func (*PatchAPITimesheetsIDMetaParams) WithContext

WithContext adds the context to the patch API timesheets ID meta params

func (*PatchAPITimesheetsIDMetaParams) WithDefaults

WithDefaults hydrates default values in the patch API timesheets ID meta params (not the query body).

All values with no default are reset to their zero value.

func (*PatchAPITimesheetsIDMetaParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the patch API timesheets ID meta params

func (*PatchAPITimesheetsIDMetaParams) WithID

WithID adds the id to the patch API timesheets ID meta params

func (*PatchAPITimesheetsIDMetaParams) WithTimeout

WithTimeout adds the timeout to the patch API timesheets ID meta params

func (*PatchAPITimesheetsIDMetaParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PatchAPITimesheetsIDMetaReader

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

PatchAPITimesheetsIDMetaReader is a Reader for the PatchAPITimesheetsIDMeta structure.

func (*PatchAPITimesheetsIDMetaReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PatchAPITimesheetsIDOK

type PatchAPITimesheetsIDOK struct {
	Payload *models.TimesheetEntity
}

PatchAPITimesheetsIDOK describes a response with status code 200, with default header values.

Returns the updated timesheet

func NewPatchAPITimesheetsIDOK

func NewPatchAPITimesheetsIDOK() *PatchAPITimesheetsIDOK

NewPatchAPITimesheetsIDOK creates a PatchAPITimesheetsIDOK with default headers values

func (*PatchAPITimesheetsIDOK) Error

func (o *PatchAPITimesheetsIDOK) Error() string

func (*PatchAPITimesheetsIDOK) GetPayload

func (*PatchAPITimesheetsIDOK) IsClientError

func (o *PatchAPITimesheetsIDOK) IsClientError() bool

IsClientError returns true when this patch Api timesheets Id o k response has a 4xx status code

func (*PatchAPITimesheetsIDOK) IsCode

func (o *PatchAPITimesheetsIDOK) IsCode(code int) bool

IsCode returns true when this patch Api timesheets Id o k response a status code equal to that given

func (*PatchAPITimesheetsIDOK) IsRedirect

func (o *PatchAPITimesheetsIDOK) IsRedirect() bool

IsRedirect returns true when this patch Api timesheets Id o k response has a 3xx status code

func (*PatchAPITimesheetsIDOK) IsServerError

func (o *PatchAPITimesheetsIDOK) IsServerError() bool

IsServerError returns true when this patch Api timesheets Id o k response has a 5xx status code

func (*PatchAPITimesheetsIDOK) IsSuccess

func (o *PatchAPITimesheetsIDOK) IsSuccess() bool

IsSuccess returns true when this patch Api timesheets Id o k response has a 2xx status code

func (*PatchAPITimesheetsIDOK) String

func (o *PatchAPITimesheetsIDOK) String() string

type PatchAPITimesheetsIDParams

type PatchAPITimesheetsIDParams struct {

	// Body.
	Body *models.TimesheetEditForm

	/* ID.

	   Timesheet record ID to update
	*/
	ID int64

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

PatchAPITimesheetsIDParams contains all the parameters to send to the API endpoint

for the patch API timesheets ID operation.

Typically these are written to a http.Request.

func NewPatchAPITimesheetsIDParams

func NewPatchAPITimesheetsIDParams() *PatchAPITimesheetsIDParams

NewPatchAPITimesheetsIDParams creates a new PatchAPITimesheetsIDParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewPatchAPITimesheetsIDParamsWithContext

func NewPatchAPITimesheetsIDParamsWithContext(ctx context.Context) *PatchAPITimesheetsIDParams

NewPatchAPITimesheetsIDParamsWithContext creates a new PatchAPITimesheetsIDParams object with the ability to set a context for a request.

func NewPatchAPITimesheetsIDParamsWithHTTPClient

func NewPatchAPITimesheetsIDParamsWithHTTPClient(client *http.Client) *PatchAPITimesheetsIDParams

NewPatchAPITimesheetsIDParamsWithHTTPClient creates a new PatchAPITimesheetsIDParams object with the ability to set a custom HTTPClient for a request.

func NewPatchAPITimesheetsIDParamsWithTimeout

func NewPatchAPITimesheetsIDParamsWithTimeout(timeout time.Duration) *PatchAPITimesheetsIDParams

NewPatchAPITimesheetsIDParamsWithTimeout creates a new PatchAPITimesheetsIDParams object with the ability to set a timeout on a request.

func (*PatchAPITimesheetsIDParams) SetBody

SetBody adds the body to the patch API timesheets ID params

func (*PatchAPITimesheetsIDParams) SetContext

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

SetContext adds the context to the patch API timesheets ID params

func (*PatchAPITimesheetsIDParams) SetDefaults

func (o *PatchAPITimesheetsIDParams) SetDefaults()

SetDefaults hydrates default values in the patch API timesheets ID params (not the query body).

All values with no default are reset to their zero value.

func (*PatchAPITimesheetsIDParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the patch API timesheets ID params

func (*PatchAPITimesheetsIDParams) SetID

func (o *PatchAPITimesheetsIDParams) SetID(id int64)

SetID adds the id to the patch API timesheets ID params

func (*PatchAPITimesheetsIDParams) SetTimeout

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

SetTimeout adds the timeout to the patch API timesheets ID params

func (*PatchAPITimesheetsIDParams) WithBody

WithBody adds the body to the patch API timesheets ID params

func (*PatchAPITimesheetsIDParams) WithContext

WithContext adds the context to the patch API timesheets ID params

func (*PatchAPITimesheetsIDParams) WithDefaults

WithDefaults hydrates default values in the patch API timesheets ID params (not the query body).

All values with no default are reset to their zero value.

func (*PatchAPITimesheetsIDParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the patch API timesheets ID params

func (*PatchAPITimesheetsIDParams) WithID

WithID adds the id to the patch API timesheets ID params

func (*PatchAPITimesheetsIDParams) WithTimeout

WithTimeout adds the timeout to the patch API timesheets ID params

func (*PatchAPITimesheetsIDParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PatchAPITimesheetsIDReader

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

PatchAPITimesheetsIDReader is a Reader for the PatchAPITimesheetsID structure.

func (*PatchAPITimesheetsIDReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PatchAPITimesheetsIDRestartBody

type PatchAPITimesheetsIDRestartBody struct {

	// Changes the restart date to the given one (default: now)
	Begin string `json:"begin,omitempty"`

	// Whether data should be copied to the new entry. Allowed values: all, tags (deprecated), rates (deprecated), description (deprecated), meta (deprecated) (default: nothing is copied)
	// Pattern: all|tags|rates|meta|description
	Copy string `json:"copy,omitempty"`
}

PatchAPITimesheetsIDRestartBody patch API timesheets ID restart body swagger:model PatchAPITimesheetsIDRestartBody

func (*PatchAPITimesheetsIDRestartBody) ContextValidate

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

ContextValidate validates this patch API timesheets ID restart body based on context it is used

func (*PatchAPITimesheetsIDRestartBody) MarshalBinary

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

MarshalBinary interface implementation

func (*PatchAPITimesheetsIDRestartBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*PatchAPITimesheetsIDRestartBody) Validate

Validate validates this patch API timesheets ID restart body

type PatchAPITimesheetsIDRestartOK

type PatchAPITimesheetsIDRestartOK struct {
	Payload *models.TimesheetEntity
}

PatchAPITimesheetsIDRestartOK describes a response with status code 200, with default header values.

Restarts a timesheet record for the same customer, project, activity combination. The current user will be the owner of the new record. Kimai tries to stop running records, which is expected to fail depending on the configured rules. Data will be copied from the original record if requested.

func NewPatchAPITimesheetsIDRestartOK

func NewPatchAPITimesheetsIDRestartOK() *PatchAPITimesheetsIDRestartOK

NewPatchAPITimesheetsIDRestartOK creates a PatchAPITimesheetsIDRestartOK with default headers values

func (*PatchAPITimesheetsIDRestartOK) Error

func (*PatchAPITimesheetsIDRestartOK) GetPayload

func (*PatchAPITimesheetsIDRestartOK) IsClientError

func (o *PatchAPITimesheetsIDRestartOK) IsClientError() bool

IsClientError returns true when this patch Api timesheets Id restart o k response has a 4xx status code

func (*PatchAPITimesheetsIDRestartOK) IsCode

func (o *PatchAPITimesheetsIDRestartOK) IsCode(code int) bool

IsCode returns true when this patch Api timesheets Id restart o k response a status code equal to that given

func (*PatchAPITimesheetsIDRestartOK) IsRedirect

func (o *PatchAPITimesheetsIDRestartOK) IsRedirect() bool

IsRedirect returns true when this patch Api timesheets Id restart o k response has a 3xx status code

func (*PatchAPITimesheetsIDRestartOK) IsServerError

func (o *PatchAPITimesheetsIDRestartOK) IsServerError() bool

IsServerError returns true when this patch Api timesheets Id restart o k response has a 5xx status code

func (*PatchAPITimesheetsIDRestartOK) IsSuccess

func (o *PatchAPITimesheetsIDRestartOK) IsSuccess() bool

IsSuccess returns true when this patch Api timesheets Id restart o k response has a 2xx status code

func (*PatchAPITimesheetsIDRestartOK) String

type PatchAPITimesheetsIDRestartParams

type PatchAPITimesheetsIDRestartParams struct {

	// Body.
	Body PatchAPITimesheetsIDRestartBody

	/* ID.

	   Timesheet record ID to restart
	*/
	ID int64

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

PatchAPITimesheetsIDRestartParams contains all the parameters to send to the API endpoint

for the patch API timesheets ID restart operation.

Typically these are written to a http.Request.

func NewPatchAPITimesheetsIDRestartParams

func NewPatchAPITimesheetsIDRestartParams() *PatchAPITimesheetsIDRestartParams

NewPatchAPITimesheetsIDRestartParams creates a new PatchAPITimesheetsIDRestartParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewPatchAPITimesheetsIDRestartParamsWithContext

func NewPatchAPITimesheetsIDRestartParamsWithContext(ctx context.Context) *PatchAPITimesheetsIDRestartParams

NewPatchAPITimesheetsIDRestartParamsWithContext creates a new PatchAPITimesheetsIDRestartParams object with the ability to set a context for a request.

func NewPatchAPITimesheetsIDRestartParamsWithHTTPClient

func NewPatchAPITimesheetsIDRestartParamsWithHTTPClient(client *http.Client) *PatchAPITimesheetsIDRestartParams

NewPatchAPITimesheetsIDRestartParamsWithHTTPClient creates a new PatchAPITimesheetsIDRestartParams object with the ability to set a custom HTTPClient for a request.

func NewPatchAPITimesheetsIDRestartParamsWithTimeout

func NewPatchAPITimesheetsIDRestartParamsWithTimeout(timeout time.Duration) *PatchAPITimesheetsIDRestartParams

NewPatchAPITimesheetsIDRestartParamsWithTimeout creates a new PatchAPITimesheetsIDRestartParams object with the ability to set a timeout on a request.

func (*PatchAPITimesheetsIDRestartParams) SetBody

SetBody adds the body to the patch API timesheets ID restart params

func (*PatchAPITimesheetsIDRestartParams) SetContext

SetContext adds the context to the patch API timesheets ID restart params

func (*PatchAPITimesheetsIDRestartParams) SetDefaults

func (o *PatchAPITimesheetsIDRestartParams) SetDefaults()

SetDefaults hydrates default values in the patch API timesheets ID restart params (not the query body).

All values with no default are reset to their zero value.

func (*PatchAPITimesheetsIDRestartParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the patch API timesheets ID restart params

func (*PatchAPITimesheetsIDRestartParams) SetID

SetID adds the id to the patch API timesheets ID restart params

func (*PatchAPITimesheetsIDRestartParams) SetTimeout

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

SetTimeout adds the timeout to the patch API timesheets ID restart params

func (*PatchAPITimesheetsIDRestartParams) WithBody

WithBody adds the body to the patch API timesheets ID restart params

func (*PatchAPITimesheetsIDRestartParams) WithContext

WithContext adds the context to the patch API timesheets ID restart params

func (*PatchAPITimesheetsIDRestartParams) WithDefaults

WithDefaults hydrates default values in the patch API timesheets ID restart params (not the query body).

All values with no default are reset to their zero value.

func (*PatchAPITimesheetsIDRestartParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the patch API timesheets ID restart params

func (*PatchAPITimesheetsIDRestartParams) WithID

WithID adds the id to the patch API timesheets ID restart params

func (*PatchAPITimesheetsIDRestartParams) WithTimeout

WithTimeout adds the timeout to the patch API timesheets ID restart params

func (*PatchAPITimesheetsIDRestartParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PatchAPITimesheetsIDRestartReader

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

PatchAPITimesheetsIDRestartReader is a Reader for the PatchAPITimesheetsIDRestart structure.

func (*PatchAPITimesheetsIDRestartReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PatchAPITimesheetsIDStopOK

type PatchAPITimesheetsIDStopOK struct {
	Payload *models.TimesheetEntity
}

PatchAPITimesheetsIDStopOK describes a response with status code 200, with default header values.

Stops an active timesheet record and returns it afterwards.

func NewPatchAPITimesheetsIDStopOK

func NewPatchAPITimesheetsIDStopOK() *PatchAPITimesheetsIDStopOK

NewPatchAPITimesheetsIDStopOK creates a PatchAPITimesheetsIDStopOK with default headers values

func (*PatchAPITimesheetsIDStopOK) Error

func (*PatchAPITimesheetsIDStopOK) GetPayload

func (*PatchAPITimesheetsIDStopOK) IsClientError

func (o *PatchAPITimesheetsIDStopOK) IsClientError() bool

IsClientError returns true when this patch Api timesheets Id stop o k response has a 4xx status code

func (*PatchAPITimesheetsIDStopOK) IsCode

func (o *PatchAPITimesheetsIDStopOK) IsCode(code int) bool

IsCode returns true when this patch Api timesheets Id stop o k response a status code equal to that given

func (*PatchAPITimesheetsIDStopOK) IsRedirect

func (o *PatchAPITimesheetsIDStopOK) IsRedirect() bool

IsRedirect returns true when this patch Api timesheets Id stop o k response has a 3xx status code

func (*PatchAPITimesheetsIDStopOK) IsServerError

func (o *PatchAPITimesheetsIDStopOK) IsServerError() bool

IsServerError returns true when this patch Api timesheets Id stop o k response has a 5xx status code

func (*PatchAPITimesheetsIDStopOK) IsSuccess

func (o *PatchAPITimesheetsIDStopOK) IsSuccess() bool

IsSuccess returns true when this patch Api timesheets Id stop o k response has a 2xx status code

func (*PatchAPITimesheetsIDStopOK) String

func (o *PatchAPITimesheetsIDStopOK) String() string

type PatchAPITimesheetsIDStopParams

type PatchAPITimesheetsIDStopParams struct {

	/* ID.

	   Timesheet record ID to stop
	*/
	ID int64

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

PatchAPITimesheetsIDStopParams contains all the parameters to send to the API endpoint

for the patch API timesheets ID stop operation.

Typically these are written to a http.Request.

func NewPatchAPITimesheetsIDStopParams

func NewPatchAPITimesheetsIDStopParams() *PatchAPITimesheetsIDStopParams

NewPatchAPITimesheetsIDStopParams creates a new PatchAPITimesheetsIDStopParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewPatchAPITimesheetsIDStopParamsWithContext

func NewPatchAPITimesheetsIDStopParamsWithContext(ctx context.Context) *PatchAPITimesheetsIDStopParams

NewPatchAPITimesheetsIDStopParamsWithContext creates a new PatchAPITimesheetsIDStopParams object with the ability to set a context for a request.

func NewPatchAPITimesheetsIDStopParamsWithHTTPClient

func NewPatchAPITimesheetsIDStopParamsWithHTTPClient(client *http.Client) *PatchAPITimesheetsIDStopParams

NewPatchAPITimesheetsIDStopParamsWithHTTPClient creates a new PatchAPITimesheetsIDStopParams object with the ability to set a custom HTTPClient for a request.

func NewPatchAPITimesheetsIDStopParamsWithTimeout

func NewPatchAPITimesheetsIDStopParamsWithTimeout(timeout time.Duration) *PatchAPITimesheetsIDStopParams

NewPatchAPITimesheetsIDStopParamsWithTimeout creates a new PatchAPITimesheetsIDStopParams object with the ability to set a timeout on a request.

func (*PatchAPITimesheetsIDStopParams) SetContext

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

SetContext adds the context to the patch API timesheets ID stop params

func (*PatchAPITimesheetsIDStopParams) SetDefaults

func (o *PatchAPITimesheetsIDStopParams) SetDefaults()

SetDefaults hydrates default values in the patch API timesheets ID stop params (not the query body).

All values with no default are reset to their zero value.

func (*PatchAPITimesheetsIDStopParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the patch API timesheets ID stop params

func (*PatchAPITimesheetsIDStopParams) SetID

SetID adds the id to the patch API timesheets ID stop params

func (*PatchAPITimesheetsIDStopParams) SetTimeout

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

SetTimeout adds the timeout to the patch API timesheets ID stop params

func (*PatchAPITimesheetsIDStopParams) WithContext

WithContext adds the context to the patch API timesheets ID stop params

func (*PatchAPITimesheetsIDStopParams) WithDefaults

WithDefaults hydrates default values in the patch API timesheets ID stop params (not the query body).

All values with no default are reset to their zero value.

func (*PatchAPITimesheetsIDStopParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the patch API timesheets ID stop params

func (*PatchAPITimesheetsIDStopParams) WithID

WithID adds the id to the patch API timesheets ID stop params

func (*PatchAPITimesheetsIDStopParams) WithTimeout

WithTimeout adds the timeout to the patch API timesheets ID stop params

func (*PatchAPITimesheetsIDStopParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PatchAPITimesheetsIDStopReader

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

PatchAPITimesheetsIDStopReader is a Reader for the PatchAPITimesheetsIDStop structure.

func (*PatchAPITimesheetsIDStopReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PostAPITimesheetsOK

type PostAPITimesheetsOK struct {
	Payload *models.TimesheetEntity
}

PostAPITimesheetsOK describes a response with status code 200, with default header values.

Returns the new created timesheet

func NewPostAPITimesheetsOK

func NewPostAPITimesheetsOK() *PostAPITimesheetsOK

NewPostAPITimesheetsOK creates a PostAPITimesheetsOK with default headers values

func (*PostAPITimesheetsOK) Error

func (o *PostAPITimesheetsOK) Error() string

func (*PostAPITimesheetsOK) GetPayload

func (o *PostAPITimesheetsOK) GetPayload() *models.TimesheetEntity

func (*PostAPITimesheetsOK) IsClientError

func (o *PostAPITimesheetsOK) IsClientError() bool

IsClientError returns true when this post Api timesheets o k response has a 4xx status code

func (*PostAPITimesheetsOK) IsCode

func (o *PostAPITimesheetsOK) IsCode(code int) bool

IsCode returns true when this post Api timesheets o k response a status code equal to that given

func (*PostAPITimesheetsOK) IsRedirect

func (o *PostAPITimesheetsOK) IsRedirect() bool

IsRedirect returns true when this post Api timesheets o k response has a 3xx status code

func (*PostAPITimesheetsOK) IsServerError

func (o *PostAPITimesheetsOK) IsServerError() bool

IsServerError returns true when this post Api timesheets o k response has a 5xx status code

func (*PostAPITimesheetsOK) IsSuccess

func (o *PostAPITimesheetsOK) IsSuccess() bool

IsSuccess returns true when this post Api timesheets o k response has a 2xx status code

func (*PostAPITimesheetsOK) String

func (o *PostAPITimesheetsOK) String() string

type PostAPITimesheetsParams

type PostAPITimesheetsParams struct {

	// Body.
	Body *models.TimesheetEditForm

	/* Full.

	   Allows to fetch fully serialized objects including subresources (TimesheetEntityExpanded). Allowed values: true (default: false)
	*/
	Full string

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

PostAPITimesheetsParams contains all the parameters to send to the API endpoint

for the post API timesheets operation.

Typically these are written to a http.Request.

func NewPostAPITimesheetsParams

func NewPostAPITimesheetsParams() *PostAPITimesheetsParams

NewPostAPITimesheetsParams creates a new PostAPITimesheetsParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewPostAPITimesheetsParamsWithContext

func NewPostAPITimesheetsParamsWithContext(ctx context.Context) *PostAPITimesheetsParams

NewPostAPITimesheetsParamsWithContext creates a new PostAPITimesheetsParams object with the ability to set a context for a request.

func NewPostAPITimesheetsParamsWithHTTPClient

func NewPostAPITimesheetsParamsWithHTTPClient(client *http.Client) *PostAPITimesheetsParams

NewPostAPITimesheetsParamsWithHTTPClient creates a new PostAPITimesheetsParams object with the ability to set a custom HTTPClient for a request.

func NewPostAPITimesheetsParamsWithTimeout

func NewPostAPITimesheetsParamsWithTimeout(timeout time.Duration) *PostAPITimesheetsParams

NewPostAPITimesheetsParamsWithTimeout creates a new PostAPITimesheetsParams object with the ability to set a timeout on a request.

func (*PostAPITimesheetsParams) SetBody

SetBody adds the body to the post API timesheets params

func (*PostAPITimesheetsParams) SetContext

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

SetContext adds the context to the post API timesheets params

func (*PostAPITimesheetsParams) SetDefaults

func (o *PostAPITimesheetsParams) SetDefaults()

SetDefaults hydrates default values in the post API timesheets params (not the query body).

All values with no default are reset to their zero value.

func (*PostAPITimesheetsParams) SetFull

func (o *PostAPITimesheetsParams) SetFull(full string)

SetFull adds the full to the post API timesheets params

func (*PostAPITimesheetsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the post API timesheets params

func (*PostAPITimesheetsParams) SetTimeout

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

SetTimeout adds the timeout to the post API timesheets params

func (*PostAPITimesheetsParams) WithBody

WithBody adds the body to the post API timesheets params

func (*PostAPITimesheetsParams) WithContext

WithContext adds the context to the post API timesheets params

func (*PostAPITimesheetsParams) WithDefaults

WithDefaults hydrates default values in the post API timesheets params (not the query body).

All values with no default are reset to their zero value.

func (*PostAPITimesheetsParams) WithFull

WithFull adds the full to the post API timesheets params

func (*PostAPITimesheetsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the post API timesheets params

func (*PostAPITimesheetsParams) WithTimeout

WithTimeout adds the timeout to the post API timesheets params

func (*PostAPITimesheetsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PostAPITimesheetsReader

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

PostAPITimesheetsReader is a Reader for the PostAPITimesheets structure.

func (*PostAPITimesheetsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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