Documentation
¶
Index ¶
- type Client
- func (a *Client) DeleteAPITimesheetsID(params *DeleteAPITimesheetsIDParams, authInfo runtime.ClientAuthInfoWriter, ...) (*DeleteAPITimesheetsIDNoContent, error)
- func (a *Client) GetAPITimesheets(params *GetAPITimesheetsParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetAPITimesheetsOK, error)
- func (a *Client) GetAPITimesheetsActive(params *GetAPITimesheetsActiveParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetAPITimesheetsActiveOK, error)
- func (a *Client) GetAPITimesheetsID(params *GetAPITimesheetsIDParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetAPITimesheetsIDOK, error)
- func (a *Client) GetAPITimesheetsRecent(params *GetAPITimesheetsRecentParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetAPITimesheetsRecentOK, error)
- func (a *Client) PatchAPITimesheetsID(params *PatchAPITimesheetsIDParams, authInfo runtime.ClientAuthInfoWriter, ...) (*PatchAPITimesheetsIDOK, error)
- func (a *Client) PatchAPITimesheetsIDDuplicate(params *PatchAPITimesheetsIDDuplicateParams, ...) (*PatchAPITimesheetsIDDuplicateOK, error)
- func (a *Client) PatchAPITimesheetsIDExport(params *PatchAPITimesheetsIDExportParams, ...) (*PatchAPITimesheetsIDExportOK, error)
- func (a *Client) PatchAPITimesheetsIDMeta(params *PatchAPITimesheetsIDMetaParams, authInfo runtime.ClientAuthInfoWriter, ...) (*PatchAPITimesheetsIDMetaOK, error)
- func (a *Client) PatchAPITimesheetsIDRestart(params *PatchAPITimesheetsIDRestartParams, ...) (*PatchAPITimesheetsIDRestartOK, error)
- func (a *Client) PatchAPITimesheetsIDStop(params *PatchAPITimesheetsIDStopParams, authInfo runtime.ClientAuthInfoWriter, ...) (*PatchAPITimesheetsIDStopOK, error)
- func (a *Client) PostAPITimesheets(params *PostAPITimesheetsParams, authInfo runtime.ClientAuthInfoWriter, ...) (*PostAPITimesheetsOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type DeleteAPITimesheetsIDNoContent
- func (o *DeleteAPITimesheetsIDNoContent) Error() string
- func (o *DeleteAPITimesheetsIDNoContent) IsClientError() bool
- func (o *DeleteAPITimesheetsIDNoContent) IsCode(code int) bool
- func (o *DeleteAPITimesheetsIDNoContent) IsRedirect() bool
- func (o *DeleteAPITimesheetsIDNoContent) IsServerError() bool
- func (o *DeleteAPITimesheetsIDNoContent) IsSuccess() bool
- func (o *DeleteAPITimesheetsIDNoContent) String() string
- type DeleteAPITimesheetsIDParams
- func NewDeleteAPITimesheetsIDParams() *DeleteAPITimesheetsIDParams
- func NewDeleteAPITimesheetsIDParamsWithContext(ctx context.Context) *DeleteAPITimesheetsIDParams
- func NewDeleteAPITimesheetsIDParamsWithHTTPClient(client *http.Client) *DeleteAPITimesheetsIDParams
- func NewDeleteAPITimesheetsIDParamsWithTimeout(timeout time.Duration) *DeleteAPITimesheetsIDParams
- func (o *DeleteAPITimesheetsIDParams) SetContext(ctx context.Context)
- func (o *DeleteAPITimesheetsIDParams) SetDefaults()
- func (o *DeleteAPITimesheetsIDParams) SetHTTPClient(client *http.Client)
- func (o *DeleteAPITimesheetsIDParams) SetID(id int64)
- func (o *DeleteAPITimesheetsIDParams) SetTimeout(timeout time.Duration)
- func (o *DeleteAPITimesheetsIDParams) WithContext(ctx context.Context) *DeleteAPITimesheetsIDParams
- func (o *DeleteAPITimesheetsIDParams) WithDefaults() *DeleteAPITimesheetsIDParams
- func (o *DeleteAPITimesheetsIDParams) WithHTTPClient(client *http.Client) *DeleteAPITimesheetsIDParams
- func (o *DeleteAPITimesheetsIDParams) WithID(id int64) *DeleteAPITimesheetsIDParams
- func (o *DeleteAPITimesheetsIDParams) WithTimeout(timeout time.Duration) *DeleteAPITimesheetsIDParams
- func (o *DeleteAPITimesheetsIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteAPITimesheetsIDReader
- type GetAPITimesheetsActiveOK
- func (o *GetAPITimesheetsActiveOK) Error() string
- func (o *GetAPITimesheetsActiveOK) GetPayload() []*models.TimesheetCollectionExpanded
- func (o *GetAPITimesheetsActiveOK) IsClientError() bool
- func (o *GetAPITimesheetsActiveOK) IsCode(code int) bool
- func (o *GetAPITimesheetsActiveOK) IsRedirect() bool
- func (o *GetAPITimesheetsActiveOK) IsServerError() bool
- func (o *GetAPITimesheetsActiveOK) IsSuccess() bool
- func (o *GetAPITimesheetsActiveOK) String() string
- type GetAPITimesheetsActiveParams
- func NewGetAPITimesheetsActiveParams() *GetAPITimesheetsActiveParams
- func NewGetAPITimesheetsActiveParamsWithContext(ctx context.Context) *GetAPITimesheetsActiveParams
- func NewGetAPITimesheetsActiveParamsWithHTTPClient(client *http.Client) *GetAPITimesheetsActiveParams
- func NewGetAPITimesheetsActiveParamsWithTimeout(timeout time.Duration) *GetAPITimesheetsActiveParams
- func (o *GetAPITimesheetsActiveParams) SetContext(ctx context.Context)
- func (o *GetAPITimesheetsActiveParams) SetDefaults()
- func (o *GetAPITimesheetsActiveParams) SetHTTPClient(client *http.Client)
- func (o *GetAPITimesheetsActiveParams) SetTimeout(timeout time.Duration)
- func (o *GetAPITimesheetsActiveParams) WithContext(ctx context.Context) *GetAPITimesheetsActiveParams
- func (o *GetAPITimesheetsActiveParams) WithDefaults() *GetAPITimesheetsActiveParams
- func (o *GetAPITimesheetsActiveParams) WithHTTPClient(client *http.Client) *GetAPITimesheetsActiveParams
- func (o *GetAPITimesheetsActiveParams) WithTimeout(timeout time.Duration) *GetAPITimesheetsActiveParams
- func (o *GetAPITimesheetsActiveParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetAPITimesheetsActiveReader
- type GetAPITimesheetsIDOK
- func (o *GetAPITimesheetsIDOK) Error() string
- func (o *GetAPITimesheetsIDOK) GetPayload() *models.TimesheetEntity
- func (o *GetAPITimesheetsIDOK) IsClientError() bool
- func (o *GetAPITimesheetsIDOK) IsCode(code int) bool
- func (o *GetAPITimesheetsIDOK) IsRedirect() bool
- func (o *GetAPITimesheetsIDOK) IsServerError() bool
- func (o *GetAPITimesheetsIDOK) IsSuccess() bool
- func (o *GetAPITimesheetsIDOK) String() string
- type GetAPITimesheetsIDParams
- func NewGetAPITimesheetsIDParams() *GetAPITimesheetsIDParams
- func NewGetAPITimesheetsIDParamsWithContext(ctx context.Context) *GetAPITimesheetsIDParams
- func NewGetAPITimesheetsIDParamsWithHTTPClient(client *http.Client) *GetAPITimesheetsIDParams
- func NewGetAPITimesheetsIDParamsWithTimeout(timeout time.Duration) *GetAPITimesheetsIDParams
- func (o *GetAPITimesheetsIDParams) SetContext(ctx context.Context)
- func (o *GetAPITimesheetsIDParams) SetDefaults()
- func (o *GetAPITimesheetsIDParams) SetHTTPClient(client *http.Client)
- func (o *GetAPITimesheetsIDParams) SetID(id int64)
- func (o *GetAPITimesheetsIDParams) SetTimeout(timeout time.Duration)
- func (o *GetAPITimesheetsIDParams) WithContext(ctx context.Context) *GetAPITimesheetsIDParams
- func (o *GetAPITimesheetsIDParams) WithDefaults() *GetAPITimesheetsIDParams
- func (o *GetAPITimesheetsIDParams) WithHTTPClient(client *http.Client) *GetAPITimesheetsIDParams
- func (o *GetAPITimesheetsIDParams) WithID(id int64) *GetAPITimesheetsIDParams
- func (o *GetAPITimesheetsIDParams) WithTimeout(timeout time.Duration) *GetAPITimesheetsIDParams
- func (o *GetAPITimesheetsIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetAPITimesheetsIDReader
- type GetAPITimesheetsOK
- func (o *GetAPITimesheetsOK) Error() string
- func (o *GetAPITimesheetsOK) GetPayload() []*models.TimesheetCollection
- func (o *GetAPITimesheetsOK) IsClientError() bool
- func (o *GetAPITimesheetsOK) IsCode(code int) bool
- func (o *GetAPITimesheetsOK) IsRedirect() bool
- func (o *GetAPITimesheetsOK) IsServerError() bool
- func (o *GetAPITimesheetsOK) IsSuccess() bool
- func (o *GetAPITimesheetsOK) String() string
- type GetAPITimesheetsParams
- func NewGetAPITimesheetsParams() *GetAPITimesheetsParams
- func NewGetAPITimesheetsParamsWithContext(ctx context.Context) *GetAPITimesheetsParams
- func NewGetAPITimesheetsParamsWithHTTPClient(client *http.Client) *GetAPITimesheetsParams
- func NewGetAPITimesheetsParamsWithTimeout(timeout time.Duration) *GetAPITimesheetsParams
- func (o *GetAPITimesheetsParams) SetActive(active *string)
- func (o *GetAPITimesheetsParams) SetActivities(activities *string)
- func (o *GetAPITimesheetsParams) SetActivity(activity *string)
- func (o *GetAPITimesheetsParams) SetBegin(begin *string)
- func (o *GetAPITimesheetsParams) SetBillable(billable *string)
- func (o *GetAPITimesheetsParams) SetContext(ctx context.Context)
- func (o *GetAPITimesheetsParams) SetCustomer(customer *string)
- func (o *GetAPITimesheetsParams) SetCustomers(customers *string)
- func (o *GetAPITimesheetsParams) SetDefaults()
- func (o *GetAPITimesheetsParams) SetEnd(end *string)
- func (o *GetAPITimesheetsParams) SetExported(exported *string)
- func (o *GetAPITimesheetsParams) SetFull(full *string)
- func (o *GetAPITimesheetsParams) SetHTTPClient(client *http.Client)
- func (o *GetAPITimesheetsParams) SetModifiedAfter(modifiedAfter *string)
- func (o *GetAPITimesheetsParams) SetOrder(order *string)
- func (o *GetAPITimesheetsParams) SetOrderBy(orderBy *string)
- func (o *GetAPITimesheetsParams) SetPage(page *string)
- func (o *GetAPITimesheetsParams) SetProject(project *string)
- func (o *GetAPITimesheetsParams) SetProjects(projects *string)
- func (o *GetAPITimesheetsParams) SetSize(size *string)
- func (o *GetAPITimesheetsParams) SetTags(tags *string)
- func (o *GetAPITimesheetsParams) SetTerm(term *string)
- func (o *GetAPITimesheetsParams) SetTimeout(timeout time.Duration)
- func (o *GetAPITimesheetsParams) SetUser(user *string)
- func (o *GetAPITimesheetsParams) WithActive(active *string) *GetAPITimesheetsParams
- func (o *GetAPITimesheetsParams) WithActivities(activities *string) *GetAPITimesheetsParams
- func (o *GetAPITimesheetsParams) WithActivity(activity *string) *GetAPITimesheetsParams
- func (o *GetAPITimesheetsParams) WithBegin(begin *string) *GetAPITimesheetsParams
- func (o *GetAPITimesheetsParams) WithBillable(billable *string) *GetAPITimesheetsParams
- func (o *GetAPITimesheetsParams) WithContext(ctx context.Context) *GetAPITimesheetsParams
- func (o *GetAPITimesheetsParams) WithCustomer(customer *string) *GetAPITimesheetsParams
- func (o *GetAPITimesheetsParams) WithCustomers(customers *string) *GetAPITimesheetsParams
- func (o *GetAPITimesheetsParams) WithDefaults() *GetAPITimesheetsParams
- func (o *GetAPITimesheetsParams) WithEnd(end *string) *GetAPITimesheetsParams
- func (o *GetAPITimesheetsParams) WithExported(exported *string) *GetAPITimesheetsParams
- func (o *GetAPITimesheetsParams) WithFull(full *string) *GetAPITimesheetsParams
- func (o *GetAPITimesheetsParams) WithHTTPClient(client *http.Client) *GetAPITimesheetsParams
- func (o *GetAPITimesheetsParams) WithModifiedAfter(modifiedAfter *string) *GetAPITimesheetsParams
- func (o *GetAPITimesheetsParams) WithOrder(order *string) *GetAPITimesheetsParams
- func (o *GetAPITimesheetsParams) WithOrderBy(orderBy *string) *GetAPITimesheetsParams
- func (o *GetAPITimesheetsParams) WithPage(page *string) *GetAPITimesheetsParams
- func (o *GetAPITimesheetsParams) WithProject(project *string) *GetAPITimesheetsParams
- func (o *GetAPITimesheetsParams) WithProjects(projects *string) *GetAPITimesheetsParams
- func (o *GetAPITimesheetsParams) WithSize(size *string) *GetAPITimesheetsParams
- func (o *GetAPITimesheetsParams) WithTags(tags *string) *GetAPITimesheetsParams
- func (o *GetAPITimesheetsParams) WithTerm(term *string) *GetAPITimesheetsParams
- func (o *GetAPITimesheetsParams) WithTimeout(timeout time.Duration) *GetAPITimesheetsParams
- func (o *GetAPITimesheetsParams) WithUser(user *string) *GetAPITimesheetsParams
- func (o *GetAPITimesheetsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetAPITimesheetsReader
- type GetAPITimesheetsRecentOK
- func (o *GetAPITimesheetsRecentOK) Error() string
- func (o *GetAPITimesheetsRecentOK) GetPayload() []*models.TimesheetCollectionExpanded
- func (o *GetAPITimesheetsRecentOK) IsClientError() bool
- func (o *GetAPITimesheetsRecentOK) IsCode(code int) bool
- func (o *GetAPITimesheetsRecentOK) IsRedirect() bool
- func (o *GetAPITimesheetsRecentOK) IsServerError() bool
- func (o *GetAPITimesheetsRecentOK) IsSuccess() bool
- func (o *GetAPITimesheetsRecentOK) String() string
- type GetAPITimesheetsRecentParams
- func NewGetAPITimesheetsRecentParams() *GetAPITimesheetsRecentParams
- func NewGetAPITimesheetsRecentParamsWithContext(ctx context.Context) *GetAPITimesheetsRecentParams
- func NewGetAPITimesheetsRecentParamsWithHTTPClient(client *http.Client) *GetAPITimesheetsRecentParams
- func NewGetAPITimesheetsRecentParamsWithTimeout(timeout time.Duration) *GetAPITimesheetsRecentParams
- func (o *GetAPITimesheetsRecentParams) SetBegin(begin string)
- func (o *GetAPITimesheetsRecentParams) SetContext(ctx context.Context)
- func (o *GetAPITimesheetsRecentParams) SetDefaults()
- func (o *GetAPITimesheetsRecentParams) SetHTTPClient(client *http.Client)
- func (o *GetAPITimesheetsRecentParams) SetSize(size string)
- func (o *GetAPITimesheetsRecentParams) SetTimeout(timeout time.Duration)
- func (o *GetAPITimesheetsRecentParams) SetUser(user string)
- func (o *GetAPITimesheetsRecentParams) WithBegin(begin string) *GetAPITimesheetsRecentParams
- func (o *GetAPITimesheetsRecentParams) WithContext(ctx context.Context) *GetAPITimesheetsRecentParams
- func (o *GetAPITimesheetsRecentParams) WithDefaults() *GetAPITimesheetsRecentParams
- func (o *GetAPITimesheetsRecentParams) WithHTTPClient(client *http.Client) *GetAPITimesheetsRecentParams
- func (o *GetAPITimesheetsRecentParams) WithSize(size string) *GetAPITimesheetsRecentParams
- func (o *GetAPITimesheetsRecentParams) WithTimeout(timeout time.Duration) *GetAPITimesheetsRecentParams
- func (o *GetAPITimesheetsRecentParams) WithUser(user string) *GetAPITimesheetsRecentParams
- func (o *GetAPITimesheetsRecentParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetAPITimesheetsRecentReader
- type PatchAPITimesheetsIDDuplicateOK
- func (o *PatchAPITimesheetsIDDuplicateOK) Error() string
- func (o *PatchAPITimesheetsIDDuplicateOK) GetPayload() *models.TimesheetEntity
- func (o *PatchAPITimesheetsIDDuplicateOK) IsClientError() bool
- func (o *PatchAPITimesheetsIDDuplicateOK) IsCode(code int) bool
- func (o *PatchAPITimesheetsIDDuplicateOK) IsRedirect() bool
- func (o *PatchAPITimesheetsIDDuplicateOK) IsServerError() bool
- func (o *PatchAPITimesheetsIDDuplicateOK) IsSuccess() bool
- func (o *PatchAPITimesheetsIDDuplicateOK) String() string
- type PatchAPITimesheetsIDDuplicateParams
- func NewPatchAPITimesheetsIDDuplicateParams() *PatchAPITimesheetsIDDuplicateParams
- func NewPatchAPITimesheetsIDDuplicateParamsWithContext(ctx context.Context) *PatchAPITimesheetsIDDuplicateParams
- func NewPatchAPITimesheetsIDDuplicateParamsWithHTTPClient(client *http.Client) *PatchAPITimesheetsIDDuplicateParams
- func NewPatchAPITimesheetsIDDuplicateParamsWithTimeout(timeout time.Duration) *PatchAPITimesheetsIDDuplicateParams
- func (o *PatchAPITimesheetsIDDuplicateParams) SetContext(ctx context.Context)
- func (o *PatchAPITimesheetsIDDuplicateParams) SetDefaults()
- func (o *PatchAPITimesheetsIDDuplicateParams) SetHTTPClient(client *http.Client)
- func (o *PatchAPITimesheetsIDDuplicateParams) SetID(id int64)
- func (o *PatchAPITimesheetsIDDuplicateParams) SetTimeout(timeout time.Duration)
- func (o *PatchAPITimesheetsIDDuplicateParams) WithContext(ctx context.Context) *PatchAPITimesheetsIDDuplicateParams
- func (o *PatchAPITimesheetsIDDuplicateParams) WithDefaults() *PatchAPITimesheetsIDDuplicateParams
- func (o *PatchAPITimesheetsIDDuplicateParams) WithHTTPClient(client *http.Client) *PatchAPITimesheetsIDDuplicateParams
- func (o *PatchAPITimesheetsIDDuplicateParams) WithID(id int64) *PatchAPITimesheetsIDDuplicateParams
- func (o *PatchAPITimesheetsIDDuplicateParams) WithTimeout(timeout time.Duration) *PatchAPITimesheetsIDDuplicateParams
- func (o *PatchAPITimesheetsIDDuplicateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PatchAPITimesheetsIDDuplicateReader
- type PatchAPITimesheetsIDExportOK
- func (o *PatchAPITimesheetsIDExportOK) Error() string
- func (o *PatchAPITimesheetsIDExportOK) GetPayload() *models.TimesheetEntity
- func (o *PatchAPITimesheetsIDExportOK) IsClientError() bool
- func (o *PatchAPITimesheetsIDExportOK) IsCode(code int) bool
- func (o *PatchAPITimesheetsIDExportOK) IsRedirect() bool
- func (o *PatchAPITimesheetsIDExportOK) IsServerError() bool
- func (o *PatchAPITimesheetsIDExportOK) IsSuccess() bool
- func (o *PatchAPITimesheetsIDExportOK) String() string
- type PatchAPITimesheetsIDExportParams
- func NewPatchAPITimesheetsIDExportParams() *PatchAPITimesheetsIDExportParams
- func NewPatchAPITimesheetsIDExportParamsWithContext(ctx context.Context) *PatchAPITimesheetsIDExportParams
- func NewPatchAPITimesheetsIDExportParamsWithHTTPClient(client *http.Client) *PatchAPITimesheetsIDExportParams
- func NewPatchAPITimesheetsIDExportParamsWithTimeout(timeout time.Duration) *PatchAPITimesheetsIDExportParams
- func (o *PatchAPITimesheetsIDExportParams) SetContext(ctx context.Context)
- func (o *PatchAPITimesheetsIDExportParams) SetDefaults()
- func (o *PatchAPITimesheetsIDExportParams) SetHTTPClient(client *http.Client)
- func (o *PatchAPITimesheetsIDExportParams) SetID(id int64)
- func (o *PatchAPITimesheetsIDExportParams) SetTimeout(timeout time.Duration)
- func (o *PatchAPITimesheetsIDExportParams) WithContext(ctx context.Context) *PatchAPITimesheetsIDExportParams
- func (o *PatchAPITimesheetsIDExportParams) WithDefaults() *PatchAPITimesheetsIDExportParams
- func (o *PatchAPITimesheetsIDExportParams) WithHTTPClient(client *http.Client) *PatchAPITimesheetsIDExportParams
- func (o *PatchAPITimesheetsIDExportParams) WithID(id int64) *PatchAPITimesheetsIDExportParams
- func (o *PatchAPITimesheetsIDExportParams) WithTimeout(timeout time.Duration) *PatchAPITimesheetsIDExportParams
- func (o *PatchAPITimesheetsIDExportParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PatchAPITimesheetsIDExportReader
- type PatchAPITimesheetsIDMetaBody
- func (o *PatchAPITimesheetsIDMetaBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *PatchAPITimesheetsIDMetaBody) MarshalBinary() ([]byte, error)
- func (o *PatchAPITimesheetsIDMetaBody) UnmarshalBinary(b []byte) error
- func (o *PatchAPITimesheetsIDMetaBody) Validate(formats strfmt.Registry) error
- type PatchAPITimesheetsIDMetaOK
- func (o *PatchAPITimesheetsIDMetaOK) Error() string
- func (o *PatchAPITimesheetsIDMetaOK) GetPayload() *models.TimesheetEntity
- func (o *PatchAPITimesheetsIDMetaOK) IsClientError() bool
- func (o *PatchAPITimesheetsIDMetaOK) IsCode(code int) bool
- func (o *PatchAPITimesheetsIDMetaOK) IsRedirect() bool
- func (o *PatchAPITimesheetsIDMetaOK) IsServerError() bool
- func (o *PatchAPITimesheetsIDMetaOK) IsSuccess() bool
- func (o *PatchAPITimesheetsIDMetaOK) String() string
- type PatchAPITimesheetsIDMetaParams
- func NewPatchAPITimesheetsIDMetaParams() *PatchAPITimesheetsIDMetaParams
- func NewPatchAPITimesheetsIDMetaParamsWithContext(ctx context.Context) *PatchAPITimesheetsIDMetaParams
- func NewPatchAPITimesheetsIDMetaParamsWithHTTPClient(client *http.Client) *PatchAPITimesheetsIDMetaParams
- func NewPatchAPITimesheetsIDMetaParamsWithTimeout(timeout time.Duration) *PatchAPITimesheetsIDMetaParams
- func (o *PatchAPITimesheetsIDMetaParams) SetBody(body PatchAPITimesheetsIDMetaBody)
- func (o *PatchAPITimesheetsIDMetaParams) SetContext(ctx context.Context)
- func (o *PatchAPITimesheetsIDMetaParams) SetDefaults()
- func (o *PatchAPITimesheetsIDMetaParams) SetHTTPClient(client *http.Client)
- func (o *PatchAPITimesheetsIDMetaParams) SetID(id int64)
- func (o *PatchAPITimesheetsIDMetaParams) SetTimeout(timeout time.Duration)
- func (o *PatchAPITimesheetsIDMetaParams) WithBody(body PatchAPITimesheetsIDMetaBody) *PatchAPITimesheetsIDMetaParams
- func (o *PatchAPITimesheetsIDMetaParams) WithContext(ctx context.Context) *PatchAPITimesheetsIDMetaParams
- func (o *PatchAPITimesheetsIDMetaParams) WithDefaults() *PatchAPITimesheetsIDMetaParams
- func (o *PatchAPITimesheetsIDMetaParams) WithHTTPClient(client *http.Client) *PatchAPITimesheetsIDMetaParams
- func (o *PatchAPITimesheetsIDMetaParams) WithID(id int64) *PatchAPITimesheetsIDMetaParams
- func (o *PatchAPITimesheetsIDMetaParams) WithTimeout(timeout time.Duration) *PatchAPITimesheetsIDMetaParams
- func (o *PatchAPITimesheetsIDMetaParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PatchAPITimesheetsIDMetaReader
- type PatchAPITimesheetsIDOK
- func (o *PatchAPITimesheetsIDOK) Error() string
- func (o *PatchAPITimesheetsIDOK) GetPayload() *models.TimesheetEntity
- func (o *PatchAPITimesheetsIDOK) IsClientError() bool
- func (o *PatchAPITimesheetsIDOK) IsCode(code int) bool
- func (o *PatchAPITimesheetsIDOK) IsRedirect() bool
- func (o *PatchAPITimesheetsIDOK) IsServerError() bool
- func (o *PatchAPITimesheetsIDOK) IsSuccess() bool
- func (o *PatchAPITimesheetsIDOK) String() string
- type PatchAPITimesheetsIDParams
- func NewPatchAPITimesheetsIDParams() *PatchAPITimesheetsIDParams
- func NewPatchAPITimesheetsIDParamsWithContext(ctx context.Context) *PatchAPITimesheetsIDParams
- func NewPatchAPITimesheetsIDParamsWithHTTPClient(client *http.Client) *PatchAPITimesheetsIDParams
- func NewPatchAPITimesheetsIDParamsWithTimeout(timeout time.Duration) *PatchAPITimesheetsIDParams
- func (o *PatchAPITimesheetsIDParams) SetBody(body *models.TimesheetEditForm)
- func (o *PatchAPITimesheetsIDParams) SetContext(ctx context.Context)
- func (o *PatchAPITimesheetsIDParams) SetDefaults()
- func (o *PatchAPITimesheetsIDParams) SetHTTPClient(client *http.Client)
- func (o *PatchAPITimesheetsIDParams) SetID(id int64)
- func (o *PatchAPITimesheetsIDParams) SetTimeout(timeout time.Duration)
- func (o *PatchAPITimesheetsIDParams) WithBody(body *models.TimesheetEditForm) *PatchAPITimesheetsIDParams
- func (o *PatchAPITimesheetsIDParams) WithContext(ctx context.Context) *PatchAPITimesheetsIDParams
- func (o *PatchAPITimesheetsIDParams) WithDefaults() *PatchAPITimesheetsIDParams
- func (o *PatchAPITimesheetsIDParams) WithHTTPClient(client *http.Client) *PatchAPITimesheetsIDParams
- func (o *PatchAPITimesheetsIDParams) WithID(id int64) *PatchAPITimesheetsIDParams
- func (o *PatchAPITimesheetsIDParams) WithTimeout(timeout time.Duration) *PatchAPITimesheetsIDParams
- func (o *PatchAPITimesheetsIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PatchAPITimesheetsIDReader
- type PatchAPITimesheetsIDRestartBody
- func (o *PatchAPITimesheetsIDRestartBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *PatchAPITimesheetsIDRestartBody) MarshalBinary() ([]byte, error)
- func (o *PatchAPITimesheetsIDRestartBody) UnmarshalBinary(b []byte) error
- func (o *PatchAPITimesheetsIDRestartBody) Validate(formats strfmt.Registry) error
- type PatchAPITimesheetsIDRestartOK
- func (o *PatchAPITimesheetsIDRestartOK) Error() string
- func (o *PatchAPITimesheetsIDRestartOK) GetPayload() *models.TimesheetEntity
- func (o *PatchAPITimesheetsIDRestartOK) IsClientError() bool
- func (o *PatchAPITimesheetsIDRestartOK) IsCode(code int) bool
- func (o *PatchAPITimesheetsIDRestartOK) IsRedirect() bool
- func (o *PatchAPITimesheetsIDRestartOK) IsServerError() bool
- func (o *PatchAPITimesheetsIDRestartOK) IsSuccess() bool
- func (o *PatchAPITimesheetsIDRestartOK) String() string
- type PatchAPITimesheetsIDRestartParams
- func NewPatchAPITimesheetsIDRestartParams() *PatchAPITimesheetsIDRestartParams
- func NewPatchAPITimesheetsIDRestartParamsWithContext(ctx context.Context) *PatchAPITimesheetsIDRestartParams
- func NewPatchAPITimesheetsIDRestartParamsWithHTTPClient(client *http.Client) *PatchAPITimesheetsIDRestartParams
- func NewPatchAPITimesheetsIDRestartParamsWithTimeout(timeout time.Duration) *PatchAPITimesheetsIDRestartParams
- func (o *PatchAPITimesheetsIDRestartParams) SetBody(body PatchAPITimesheetsIDRestartBody)
- func (o *PatchAPITimesheetsIDRestartParams) SetContext(ctx context.Context)
- func (o *PatchAPITimesheetsIDRestartParams) SetDefaults()
- func (o *PatchAPITimesheetsIDRestartParams) SetHTTPClient(client *http.Client)
- func (o *PatchAPITimesheetsIDRestartParams) SetID(id int64)
- func (o *PatchAPITimesheetsIDRestartParams) SetTimeout(timeout time.Duration)
- func (o *PatchAPITimesheetsIDRestartParams) WithBody(body PatchAPITimesheetsIDRestartBody) *PatchAPITimesheetsIDRestartParams
- func (o *PatchAPITimesheetsIDRestartParams) WithContext(ctx context.Context) *PatchAPITimesheetsIDRestartParams
- func (o *PatchAPITimesheetsIDRestartParams) WithDefaults() *PatchAPITimesheetsIDRestartParams
- func (o *PatchAPITimesheetsIDRestartParams) WithHTTPClient(client *http.Client) *PatchAPITimesheetsIDRestartParams
- func (o *PatchAPITimesheetsIDRestartParams) WithID(id int64) *PatchAPITimesheetsIDRestartParams
- func (o *PatchAPITimesheetsIDRestartParams) WithTimeout(timeout time.Duration) *PatchAPITimesheetsIDRestartParams
- func (o *PatchAPITimesheetsIDRestartParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PatchAPITimesheetsIDRestartReader
- type PatchAPITimesheetsIDStopOK
- func (o *PatchAPITimesheetsIDStopOK) Error() string
- func (o *PatchAPITimesheetsIDStopOK) GetPayload() *models.TimesheetEntity
- func (o *PatchAPITimesheetsIDStopOK) IsClientError() bool
- func (o *PatchAPITimesheetsIDStopOK) IsCode(code int) bool
- func (o *PatchAPITimesheetsIDStopOK) IsRedirect() bool
- func (o *PatchAPITimesheetsIDStopOK) IsServerError() bool
- func (o *PatchAPITimesheetsIDStopOK) IsSuccess() bool
- func (o *PatchAPITimesheetsIDStopOK) String() string
- type PatchAPITimesheetsIDStopParams
- func NewPatchAPITimesheetsIDStopParams() *PatchAPITimesheetsIDStopParams
- func NewPatchAPITimesheetsIDStopParamsWithContext(ctx context.Context) *PatchAPITimesheetsIDStopParams
- func NewPatchAPITimesheetsIDStopParamsWithHTTPClient(client *http.Client) *PatchAPITimesheetsIDStopParams
- func NewPatchAPITimesheetsIDStopParamsWithTimeout(timeout time.Duration) *PatchAPITimesheetsIDStopParams
- func (o *PatchAPITimesheetsIDStopParams) SetContext(ctx context.Context)
- func (o *PatchAPITimesheetsIDStopParams) SetDefaults()
- func (o *PatchAPITimesheetsIDStopParams) SetHTTPClient(client *http.Client)
- func (o *PatchAPITimesheetsIDStopParams) SetID(id int64)
- func (o *PatchAPITimesheetsIDStopParams) SetTimeout(timeout time.Duration)
- func (o *PatchAPITimesheetsIDStopParams) WithContext(ctx context.Context) *PatchAPITimesheetsIDStopParams
- func (o *PatchAPITimesheetsIDStopParams) WithDefaults() *PatchAPITimesheetsIDStopParams
- func (o *PatchAPITimesheetsIDStopParams) WithHTTPClient(client *http.Client) *PatchAPITimesheetsIDStopParams
- func (o *PatchAPITimesheetsIDStopParams) WithID(id int64) *PatchAPITimesheetsIDStopParams
- func (o *PatchAPITimesheetsIDStopParams) WithTimeout(timeout time.Duration) *PatchAPITimesheetsIDStopParams
- func (o *PatchAPITimesheetsIDStopParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PatchAPITimesheetsIDStopReader
- type PostAPITimesheetsOK
- func (o *PostAPITimesheetsOK) Error() string
- func (o *PostAPITimesheetsOK) GetPayload() *models.TimesheetEntity
- func (o *PostAPITimesheetsOK) IsClientError() bool
- func (o *PostAPITimesheetsOK) IsCode(code int) bool
- func (o *PostAPITimesheetsOK) IsRedirect() bool
- func (o *PostAPITimesheetsOK) IsServerError() bool
- func (o *PostAPITimesheetsOK) IsSuccess() bool
- func (o *PostAPITimesheetsOK) String() string
- type PostAPITimesheetsParams
- func NewPostAPITimesheetsParams() *PostAPITimesheetsParams
- func NewPostAPITimesheetsParamsWithContext(ctx context.Context) *PostAPITimesheetsParams
- func NewPostAPITimesheetsParamsWithHTTPClient(client *http.Client) *PostAPITimesheetsParams
- func NewPostAPITimesheetsParamsWithTimeout(timeout time.Duration) *PostAPITimesheetsParams
- func (o *PostAPITimesheetsParams) SetBody(body *models.TimesheetEditForm)
- func (o *PostAPITimesheetsParams) SetContext(ctx context.Context)
- func (o *PostAPITimesheetsParams) SetDefaults()
- func (o *PostAPITimesheetsParams) SetFull(full string)
- func (o *PostAPITimesheetsParams) SetHTTPClient(client *http.Client)
- func (o *PostAPITimesheetsParams) SetTimeout(timeout time.Duration)
- func (o *PostAPITimesheetsParams) WithBody(body *models.TimesheetEditForm) *PostAPITimesheetsParams
- func (o *PostAPITimesheetsParams) WithContext(ctx context.Context) *PostAPITimesheetsParams
- func (o *PostAPITimesheetsParams) WithDefaults() *PostAPITimesheetsParams
- func (o *PostAPITimesheetsParams) WithFull(full string) *PostAPITimesheetsParams
- func (o *PostAPITimesheetsParams) WithHTTPClient(client *http.Client) *PostAPITimesheetsParams
- func (o *PostAPITimesheetsParams) WithTimeout(timeout time.Duration) *PostAPITimesheetsParams
- func (o *PostAPITimesheetsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PostAPITimesheetsReader
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 (o *DeleteAPITimesheetsIDNoContent) Error() string
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 ¶
func (o *DeleteAPITimesheetsIDNoContent) String() 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 ¶
func (o *DeleteAPITimesheetsIDParams) WithContext(ctx context.Context) *DeleteAPITimesheetsIDParams
WithContext adds the context to the delete API timesheets ID params
func (*DeleteAPITimesheetsIDParams) WithDefaults ¶
func (o *DeleteAPITimesheetsIDParams) WithDefaults() *DeleteAPITimesheetsIDParams
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 ¶
func (o *DeleteAPITimesheetsIDParams) WithHTTPClient(client *http.Client) *DeleteAPITimesheetsIDParams
WithHTTPClient adds the HTTPClient to the delete API timesheets ID params
func (*DeleteAPITimesheetsIDParams) WithID ¶
func (o *DeleteAPITimesheetsIDParams) WithID(id int64) *DeleteAPITimesheetsIDParams
WithID adds the id to the delete API timesheets ID params
func (*DeleteAPITimesheetsIDParams) WithTimeout ¶
func (o *DeleteAPITimesheetsIDParams) WithTimeout(timeout time.Duration) *DeleteAPITimesheetsIDParams
WithTimeout adds the timeout to the delete API timesheets ID params
func (*DeleteAPITimesheetsIDParams) WriteToRequest ¶
func (o *DeleteAPITimesheetsIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 (o *GetAPITimesheetsActiveOK) GetPayload() []*models.TimesheetCollectionExpanded
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 ¶
func (o *GetAPITimesheetsActiveParams) WithContext(ctx context.Context) *GetAPITimesheetsActiveParams
WithContext adds the context to the get API timesheets active params
func (*GetAPITimesheetsActiveParams) WithDefaults ¶
func (o *GetAPITimesheetsActiveParams) WithDefaults() *GetAPITimesheetsActiveParams
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 ¶
func (o *GetAPITimesheetsActiveParams) WithHTTPClient(client *http.Client) *GetAPITimesheetsActiveParams
WithHTTPClient adds the HTTPClient to the get API timesheets active params
func (*GetAPITimesheetsActiveParams) WithTimeout ¶
func (o *GetAPITimesheetsActiveParams) WithTimeout(timeout time.Duration) *GetAPITimesheetsActiveParams
WithTimeout adds the timeout to the get API timesheets active params
func (*GetAPITimesheetsActiveParams) WriteToRequest ¶
func (o *GetAPITimesheetsActiveParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *GetAPITimesheetsIDParams) WithContext(ctx context.Context) *GetAPITimesheetsIDParams
WithContext adds the context to the get API timesheets ID params
func (*GetAPITimesheetsIDParams) WithDefaults ¶
func (o *GetAPITimesheetsIDParams) WithDefaults() *GetAPITimesheetsIDParams
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 ¶
func (o *GetAPITimesheetsIDParams) WithID(id int64) *GetAPITimesheetsIDParams
WithID adds the id to the get API timesheets ID params
func (*GetAPITimesheetsIDParams) WithTimeout ¶
func (o *GetAPITimesheetsIDParams) WithTimeout(timeout time.Duration) *GetAPITimesheetsIDParams
WithTimeout adds the timeout to the get API timesheets ID params
func (*GetAPITimesheetsIDParams) WriteToRequest ¶
func (o *GetAPITimesheetsIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *GetAPITimesheetsParams) WithBegin(begin *string) *GetAPITimesheetsParams
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 ¶
func (o *GetAPITimesheetsParams) WithContext(ctx context.Context) *GetAPITimesheetsParams
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 ¶
func (o *GetAPITimesheetsParams) WithDefaults() *GetAPITimesheetsParams
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 ¶
func (o *GetAPITimesheetsParams) WithEnd(end *string) *GetAPITimesheetsParams
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 ¶
func (o *GetAPITimesheetsParams) WithFull(full *string) *GetAPITimesheetsParams
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 ¶
func (o *GetAPITimesheetsParams) WithOrder(order *string) *GetAPITimesheetsParams
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 ¶
func (o *GetAPITimesheetsParams) WithPage(page *string) *GetAPITimesheetsParams
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 ¶
func (o *GetAPITimesheetsParams) WithSize(size *string) *GetAPITimesheetsParams
WithSize adds the size to the get API timesheets params
func (*GetAPITimesheetsParams) WithTags ¶
func (o *GetAPITimesheetsParams) WithTags(tags *string) *GetAPITimesheetsParams
WithTags adds the tags to the get API timesheets params
func (*GetAPITimesheetsParams) WithTerm ¶
func (o *GetAPITimesheetsParams) WithTerm(term *string) *GetAPITimesheetsParams
WithTerm adds the term to the get API timesheets params
func (*GetAPITimesheetsParams) WithTimeout ¶
func (o *GetAPITimesheetsParams) WithTimeout(timeout time.Duration) *GetAPITimesheetsParams
WithTimeout adds the timeout to the get API timesheets params
func (*GetAPITimesheetsParams) WithUser ¶
func (o *GetAPITimesheetsParams) WithUser(user *string) *GetAPITimesheetsParams
WithUser adds the user to the get API timesheets params
func (*GetAPITimesheetsParams) WriteToRequest ¶
func (o *GetAPITimesheetsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 (o *GetAPITimesheetsRecentOK) GetPayload() []*models.TimesheetCollectionExpanded
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 ¶
func (o *GetAPITimesheetsRecentParams) WithBegin(begin string) *GetAPITimesheetsRecentParams
WithBegin adds the begin to the get API timesheets recent params
func (*GetAPITimesheetsRecentParams) WithContext ¶
func (o *GetAPITimesheetsRecentParams) WithContext(ctx context.Context) *GetAPITimesheetsRecentParams
WithContext adds the context to the get API timesheets recent params
func (*GetAPITimesheetsRecentParams) WithDefaults ¶
func (o *GetAPITimesheetsRecentParams) WithDefaults() *GetAPITimesheetsRecentParams
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 ¶
func (o *GetAPITimesheetsRecentParams) WithHTTPClient(client *http.Client) *GetAPITimesheetsRecentParams
WithHTTPClient adds the HTTPClient to the get API timesheets recent params
func (*GetAPITimesheetsRecentParams) WithSize ¶
func (o *GetAPITimesheetsRecentParams) WithSize(size string) *GetAPITimesheetsRecentParams
WithSize adds the size to the get API timesheets recent params
func (*GetAPITimesheetsRecentParams) WithTimeout ¶
func (o *GetAPITimesheetsRecentParams) WithTimeout(timeout time.Duration) *GetAPITimesheetsRecentParams
WithTimeout adds the timeout to the get API timesheets recent params
func (*GetAPITimesheetsRecentParams) WithUser ¶
func (o *GetAPITimesheetsRecentParams) WithUser(user string) *GetAPITimesheetsRecentParams
WithUser adds the user to the get API timesheets recent params
func (*GetAPITimesheetsRecentParams) WriteToRequest ¶
func (o *GetAPITimesheetsRecentParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 (o *PatchAPITimesheetsIDDuplicateOK) Error() string
func (*PatchAPITimesheetsIDDuplicateOK) GetPayload ¶
func (o *PatchAPITimesheetsIDDuplicateOK) GetPayload() *models.TimesheetEntity
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 ¶
func (o *PatchAPITimesheetsIDDuplicateOK) String() 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 ¶
func (o *PatchAPITimesheetsIDDuplicateParams) SetContext(ctx context.Context)
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 ¶
func (o *PatchAPITimesheetsIDDuplicateParams) SetID(id int64)
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 ¶
func (o *PatchAPITimesheetsIDDuplicateParams) WithContext(ctx context.Context) *PatchAPITimesheetsIDDuplicateParams
WithContext adds the context to the patch API timesheets ID duplicate params
func (*PatchAPITimesheetsIDDuplicateParams) WithDefaults ¶
func (o *PatchAPITimesheetsIDDuplicateParams) WithDefaults() *PatchAPITimesheetsIDDuplicateParams
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 ¶
func (o *PatchAPITimesheetsIDDuplicateParams) WithHTTPClient(client *http.Client) *PatchAPITimesheetsIDDuplicateParams
WithHTTPClient adds the HTTPClient to the patch API timesheets ID duplicate params
func (*PatchAPITimesheetsIDDuplicateParams) WithID ¶
func (o *PatchAPITimesheetsIDDuplicateParams) WithID(id int64) *PatchAPITimesheetsIDDuplicateParams
WithID adds the id to the patch API timesheets ID duplicate params
func (*PatchAPITimesheetsIDDuplicateParams) WithTimeout ¶
func (o *PatchAPITimesheetsIDDuplicateParams) WithTimeout(timeout time.Duration) *PatchAPITimesheetsIDDuplicateParams
WithTimeout adds the timeout to the patch API timesheets ID duplicate params
func (*PatchAPITimesheetsIDDuplicateParams) WriteToRequest ¶
func (o *PatchAPITimesheetsIDDuplicateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 (o *PatchAPITimesheetsIDExportOK) Error() string
func (*PatchAPITimesheetsIDExportOK) GetPayload ¶
func (o *PatchAPITimesheetsIDExportOK) GetPayload() *models.TimesheetEntity
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 ¶
func (o *PatchAPITimesheetsIDExportOK) String() 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 ¶
func (o *PatchAPITimesheetsIDExportParams) SetContext(ctx context.Context)
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 ¶
func (o *PatchAPITimesheetsIDExportParams) SetID(id int64)
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 ¶
func (o *PatchAPITimesheetsIDExportParams) WithContext(ctx context.Context) *PatchAPITimesheetsIDExportParams
WithContext adds the context to the patch API timesheets ID export params
func (*PatchAPITimesheetsIDExportParams) WithDefaults ¶
func (o *PatchAPITimesheetsIDExportParams) WithDefaults() *PatchAPITimesheetsIDExportParams
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 ¶
func (o *PatchAPITimesheetsIDExportParams) WithHTTPClient(client *http.Client) *PatchAPITimesheetsIDExportParams
WithHTTPClient adds the HTTPClient to the patch API timesheets ID export params
func (*PatchAPITimesheetsIDExportParams) WithID ¶
func (o *PatchAPITimesheetsIDExportParams) WithID(id int64) *PatchAPITimesheetsIDExportParams
WithID adds the id to the patch API timesheets ID export params
func (*PatchAPITimesheetsIDExportParams) WithTimeout ¶
func (o *PatchAPITimesheetsIDExportParams) WithTimeout(timeout time.Duration) *PatchAPITimesheetsIDExportParams
WithTimeout adds the timeout to the patch API timesheets ID export params
func (*PatchAPITimesheetsIDExportParams) WriteToRequest ¶
func (o *PatchAPITimesheetsIDExportParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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
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 (o *PatchAPITimesheetsIDMetaOK) Error() string
func (*PatchAPITimesheetsIDMetaOK) GetPayload ¶
func (o *PatchAPITimesheetsIDMetaOK) GetPayload() *models.TimesheetEntity
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 ¶
func (o *PatchAPITimesheetsIDMetaParams) SetBody(body PatchAPITimesheetsIDMetaBody)
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 ¶
func (o *PatchAPITimesheetsIDMetaParams) SetID(id int64)
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 ¶
func (o *PatchAPITimesheetsIDMetaParams) WithBody(body PatchAPITimesheetsIDMetaBody) *PatchAPITimesheetsIDMetaParams
WithBody adds the body to the patch API timesheets ID meta params
func (*PatchAPITimesheetsIDMetaParams) WithContext ¶
func (o *PatchAPITimesheetsIDMetaParams) WithContext(ctx context.Context) *PatchAPITimesheetsIDMetaParams
WithContext adds the context to the patch API timesheets ID meta params
func (*PatchAPITimesheetsIDMetaParams) WithDefaults ¶
func (o *PatchAPITimesheetsIDMetaParams) WithDefaults() *PatchAPITimesheetsIDMetaParams
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 ¶
func (o *PatchAPITimesheetsIDMetaParams) WithHTTPClient(client *http.Client) *PatchAPITimesheetsIDMetaParams
WithHTTPClient adds the HTTPClient to the patch API timesheets ID meta params
func (*PatchAPITimesheetsIDMetaParams) WithID ¶
func (o *PatchAPITimesheetsIDMetaParams) WithID(id int64) *PatchAPITimesheetsIDMetaParams
WithID adds the id to the patch API timesheets ID meta params
func (*PatchAPITimesheetsIDMetaParams) WithTimeout ¶
func (o *PatchAPITimesheetsIDMetaParams) WithTimeout(timeout time.Duration) *PatchAPITimesheetsIDMetaParams
WithTimeout adds the timeout to the patch API timesheets ID meta params
func (*PatchAPITimesheetsIDMetaParams) WriteToRequest ¶
func (o *PatchAPITimesheetsIDMetaParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 (o *PatchAPITimesheetsIDOK) GetPayload() *models.TimesheetEntity
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 ¶
func (o *PatchAPITimesheetsIDParams) SetBody(body *models.TimesheetEditForm)
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 ¶
func (o *PatchAPITimesheetsIDParams) WithBody(body *models.TimesheetEditForm) *PatchAPITimesheetsIDParams
WithBody adds the body to the patch API timesheets ID params
func (*PatchAPITimesheetsIDParams) WithContext ¶
func (o *PatchAPITimesheetsIDParams) WithContext(ctx context.Context) *PatchAPITimesheetsIDParams
WithContext adds the context to the patch API timesheets ID params
func (*PatchAPITimesheetsIDParams) WithDefaults ¶
func (o *PatchAPITimesheetsIDParams) WithDefaults() *PatchAPITimesheetsIDParams
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 ¶
func (o *PatchAPITimesheetsIDParams) WithHTTPClient(client *http.Client) *PatchAPITimesheetsIDParams
WithHTTPClient adds the HTTPClient to the patch API timesheets ID params
func (*PatchAPITimesheetsIDParams) WithID ¶
func (o *PatchAPITimesheetsIDParams) WithID(id int64) *PatchAPITimesheetsIDParams
WithID adds the id to the patch API timesheets ID params
func (*PatchAPITimesheetsIDParams) WithTimeout ¶
func (o *PatchAPITimesheetsIDParams) WithTimeout(timeout time.Duration) *PatchAPITimesheetsIDParams
WithTimeout adds the timeout to the patch API timesheets ID params
func (*PatchAPITimesheetsIDParams) WriteToRequest ¶
func (o *PatchAPITimesheetsIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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
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 (o *PatchAPITimesheetsIDRestartOK) Error() string
func (*PatchAPITimesheetsIDRestartOK) GetPayload ¶
func (o *PatchAPITimesheetsIDRestartOK) GetPayload() *models.TimesheetEntity
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 ¶
func (o *PatchAPITimesheetsIDRestartOK) String() 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 ¶
func (o *PatchAPITimesheetsIDRestartParams) SetBody(body PatchAPITimesheetsIDRestartBody)
SetBody adds the body to the patch API timesheets ID restart params
func (*PatchAPITimesheetsIDRestartParams) SetContext ¶
func (o *PatchAPITimesheetsIDRestartParams) SetContext(ctx context.Context)
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 ¶
func (o *PatchAPITimesheetsIDRestartParams) SetID(id int64)
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 ¶
func (o *PatchAPITimesheetsIDRestartParams) WithBody(body PatchAPITimesheetsIDRestartBody) *PatchAPITimesheetsIDRestartParams
WithBody adds the body to the patch API timesheets ID restart params
func (*PatchAPITimesheetsIDRestartParams) WithContext ¶
func (o *PatchAPITimesheetsIDRestartParams) WithContext(ctx context.Context) *PatchAPITimesheetsIDRestartParams
WithContext adds the context to the patch API timesheets ID restart params
func (*PatchAPITimesheetsIDRestartParams) WithDefaults ¶
func (o *PatchAPITimesheetsIDRestartParams) WithDefaults() *PatchAPITimesheetsIDRestartParams
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 ¶
func (o *PatchAPITimesheetsIDRestartParams) WithHTTPClient(client *http.Client) *PatchAPITimesheetsIDRestartParams
WithHTTPClient adds the HTTPClient to the patch API timesheets ID restart params
func (*PatchAPITimesheetsIDRestartParams) WithID ¶
func (o *PatchAPITimesheetsIDRestartParams) WithID(id int64) *PatchAPITimesheetsIDRestartParams
WithID adds the id to the patch API timesheets ID restart params
func (*PatchAPITimesheetsIDRestartParams) WithTimeout ¶
func (o *PatchAPITimesheetsIDRestartParams) WithTimeout(timeout time.Duration) *PatchAPITimesheetsIDRestartParams
WithTimeout adds the timeout to the patch API timesheets ID restart params
func (*PatchAPITimesheetsIDRestartParams) WriteToRequest ¶
func (o *PatchAPITimesheetsIDRestartParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 (o *PatchAPITimesheetsIDStopOK) Error() string
func (*PatchAPITimesheetsIDStopOK) GetPayload ¶
func (o *PatchAPITimesheetsIDStopOK) GetPayload() *models.TimesheetEntity
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 ¶
func (o *PatchAPITimesheetsIDStopParams) SetID(id int64)
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 ¶
func (o *PatchAPITimesheetsIDStopParams) WithContext(ctx context.Context) *PatchAPITimesheetsIDStopParams
WithContext adds the context to the patch API timesheets ID stop params
func (*PatchAPITimesheetsIDStopParams) WithDefaults ¶
func (o *PatchAPITimesheetsIDStopParams) WithDefaults() *PatchAPITimesheetsIDStopParams
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 ¶
func (o *PatchAPITimesheetsIDStopParams) WithHTTPClient(client *http.Client) *PatchAPITimesheetsIDStopParams
WithHTTPClient adds the HTTPClient to the patch API timesheets ID stop params
func (*PatchAPITimesheetsIDStopParams) WithID ¶
func (o *PatchAPITimesheetsIDStopParams) WithID(id int64) *PatchAPITimesheetsIDStopParams
WithID adds the id to the patch API timesheets ID stop params
func (*PatchAPITimesheetsIDStopParams) WithTimeout ¶
func (o *PatchAPITimesheetsIDStopParams) WithTimeout(timeout time.Duration) *PatchAPITimesheetsIDStopParams
WithTimeout adds the timeout to the patch API timesheets ID stop params
func (*PatchAPITimesheetsIDStopParams) WriteToRequest ¶
func (o *PatchAPITimesheetsIDStopParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *PostAPITimesheetsParams) SetBody(body *models.TimesheetEditForm)
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 ¶
func (o *PostAPITimesheetsParams) WithBody(body *models.TimesheetEditForm) *PostAPITimesheetsParams
WithBody adds the body to the post API timesheets params
func (*PostAPITimesheetsParams) WithContext ¶
func (o *PostAPITimesheetsParams) WithContext(ctx context.Context) *PostAPITimesheetsParams
WithContext adds the context to the post API timesheets params
func (*PostAPITimesheetsParams) WithDefaults ¶
func (o *PostAPITimesheetsParams) WithDefaults() *PostAPITimesheetsParams
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 ¶
func (o *PostAPITimesheetsParams) WithFull(full string) *PostAPITimesheetsParams
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 ¶
func (o *PostAPITimesheetsParams) WithTimeout(timeout time.Duration) *PostAPITimesheetsParams
WithTimeout adds the timeout to the post API timesheets params
func (*PostAPITimesheetsParams) WriteToRequest ¶
func (o *PostAPITimesheetsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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.
Source Files
¶
- delete_api_timesheets_id_parameters.go
- delete_api_timesheets_id_responses.go
- get_api_timesheets_active_parameters.go
- get_api_timesheets_active_responses.go
- get_api_timesheets_id_parameters.go
- get_api_timesheets_id_responses.go
- get_api_timesheets_parameters.go
- get_api_timesheets_recent_parameters.go
- get_api_timesheets_recent_responses.go
- get_api_timesheets_responses.go
- patch_api_timesheets_id_duplicate_parameters.go
- patch_api_timesheets_id_duplicate_responses.go
- patch_api_timesheets_id_export_parameters.go
- patch_api_timesheets_id_export_responses.go
- patch_api_timesheets_id_meta_parameters.go
- patch_api_timesheets_id_meta_responses.go
- patch_api_timesheets_id_parameters.go
- patch_api_timesheets_id_responses.go
- patch_api_timesheets_id_restart_parameters.go
- patch_api_timesheets_id_restart_responses.go
- patch_api_timesheets_id_stop_parameters.go
- patch_api_timesheets_id_stop_responses.go
- post_api_timesheets_parameters.go
- post_api_timesheets_responses.go
- timesheet_client.go