time_clock

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for time clock API

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) TimesheetTimeClockGet

func (a *Client) TimesheetTimeClockGet(params *TimesheetTimeClockGetParams, authInfo runtime.ClientAuthInfoWriter) (*TimesheetTimeClockGetOK, error)

TimesheetTimeClockGet finds time clock entry by ID

func (*Client) TimesheetTimeClockPresentGetPresent

TimesheetTimeClockPresentGetPresent finds a user s present running time clock

func (*Client) TimesheetTimeClockPut

func (a *Client) TimesheetTimeClockPut(params *TimesheetTimeClockPutParams, authInfo runtime.ClientAuthInfoWriter) (*TimesheetTimeClockPutOK, error)

TimesheetTimeClockPut updates time clock by ID

func (*Client) TimesheetTimeClockSearch

func (a *Client) TimesheetTimeClockSearch(params *TimesheetTimeClockSearchParams, authInfo runtime.ClientAuthInfoWriter) (*TimesheetTimeClockSearchOK, error)

TimesheetTimeClockSearch finds time clock entries corresponding with sent data

func (*Client) TimesheetTimeClockStartStart

func (a *Client) TimesheetTimeClockStartStart(params *TimesheetTimeClockStartStartParams, authInfo runtime.ClientAuthInfoWriter) (*TimesheetTimeClockStartStartOK, error)

TimesheetTimeClockStartStart starts time clock

func (*Client) TimesheetTimeClockStopStop

func (a *Client) TimesheetTimeClockStopStop(params *TimesheetTimeClockStopStopParams, authInfo runtime.ClientAuthInfoWriter) error

TimesheetTimeClockStopStop stops time clock

type ClientService

type ClientService interface {
	TimesheetTimeClockGet(params *TimesheetTimeClockGetParams, authInfo runtime.ClientAuthInfoWriter) (*TimesheetTimeClockGetOK, error)

	TimesheetTimeClockPresentGetPresent(params *TimesheetTimeClockPresentGetPresentParams, authInfo runtime.ClientAuthInfoWriter) (*TimesheetTimeClockPresentGetPresentOK, error)

	TimesheetTimeClockPut(params *TimesheetTimeClockPutParams, authInfo runtime.ClientAuthInfoWriter) (*TimesheetTimeClockPutOK, error)

	TimesheetTimeClockSearch(params *TimesheetTimeClockSearchParams, authInfo runtime.ClientAuthInfoWriter) (*TimesheetTimeClockSearchOK, error)

	TimesheetTimeClockStartStart(params *TimesheetTimeClockStartStartParams, authInfo runtime.ClientAuthInfoWriter) (*TimesheetTimeClockStartStartOK, error)

	TimesheetTimeClockStopStop(params *TimesheetTimeClockStopStopParams, authInfo runtime.ClientAuthInfoWriter) 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 time clock API client.

type TimesheetTimeClockGetOK

type TimesheetTimeClockGetOK struct {
	Payload *models.ResponseWrapperTimeClock
}

TimesheetTimeClockGetOK handles this case with default header values.

successful operation

func NewTimesheetTimeClockGetOK

func NewTimesheetTimeClockGetOK() *TimesheetTimeClockGetOK

NewTimesheetTimeClockGetOK creates a TimesheetTimeClockGetOK with default headers values

func (*TimesheetTimeClockGetOK) Error

func (o *TimesheetTimeClockGetOK) Error() string

func (*TimesheetTimeClockGetOK) GetPayload

type TimesheetTimeClockGetParams

type TimesheetTimeClockGetParams struct {

	/*Fields
	  Fields filter pattern

	*/
	Fields *string
	/*ID
	  Element ID

	*/
	ID int32

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

TimesheetTimeClockGetParams contains all the parameters to send to the API endpoint for the timesheet time clock get operation typically these are written to a http.Request

func NewTimesheetTimeClockGetParams

func NewTimesheetTimeClockGetParams() *TimesheetTimeClockGetParams

NewTimesheetTimeClockGetParams creates a new TimesheetTimeClockGetParams object with the default values initialized.

func NewTimesheetTimeClockGetParamsWithContext

func NewTimesheetTimeClockGetParamsWithContext(ctx context.Context) *TimesheetTimeClockGetParams

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

func NewTimesheetTimeClockGetParamsWithHTTPClient

func NewTimesheetTimeClockGetParamsWithHTTPClient(client *http.Client) *TimesheetTimeClockGetParams

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

func NewTimesheetTimeClockGetParamsWithTimeout

func NewTimesheetTimeClockGetParamsWithTimeout(timeout time.Duration) *TimesheetTimeClockGetParams

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

func (*TimesheetTimeClockGetParams) SetContext

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

SetContext adds the context to the timesheet time clock get params

func (*TimesheetTimeClockGetParams) SetFields

func (o *TimesheetTimeClockGetParams) SetFields(fields *string)

SetFields adds the fields to the timesheet time clock get params

func (*TimesheetTimeClockGetParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the timesheet time clock get params

func (*TimesheetTimeClockGetParams) SetID

func (o *TimesheetTimeClockGetParams) SetID(id int32)

SetID adds the id to the timesheet time clock get params

func (*TimesheetTimeClockGetParams) SetTimeout

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

SetTimeout adds the timeout to the timesheet time clock get params

func (*TimesheetTimeClockGetParams) WithContext

WithContext adds the context to the timesheet time clock get params

func (*TimesheetTimeClockGetParams) WithFields

WithFields adds the fields to the timesheet time clock get params

func (*TimesheetTimeClockGetParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the timesheet time clock get params

func (*TimesheetTimeClockGetParams) WithID

WithID adds the id to the timesheet time clock get params

func (*TimesheetTimeClockGetParams) WithTimeout

WithTimeout adds the timeout to the timesheet time clock get params

func (*TimesheetTimeClockGetParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type TimesheetTimeClockGetReader

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

TimesheetTimeClockGetReader is a Reader for the TimesheetTimeClockGet structure.

func (*TimesheetTimeClockGetReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type TimesheetTimeClockPresentGetPresentOK

type TimesheetTimeClockPresentGetPresentOK struct {
	Payload *models.ResponseWrapperTimeClock
}

TimesheetTimeClockPresentGetPresentOK handles this case with default header values.

successful operation

func NewTimesheetTimeClockPresentGetPresentOK

func NewTimesheetTimeClockPresentGetPresentOK() *TimesheetTimeClockPresentGetPresentOK

NewTimesheetTimeClockPresentGetPresentOK creates a TimesheetTimeClockPresentGetPresentOK with default headers values

func (*TimesheetTimeClockPresentGetPresentOK) Error

func (*TimesheetTimeClockPresentGetPresentOK) GetPayload

type TimesheetTimeClockPresentGetPresentParams

type TimesheetTimeClockPresentGetPresentParams struct {

	/*EmployeeID
	  Employee ID. Defaults to ID of token owner.

	*/
	EmployeeID *int32
	/*Fields
	  Fields filter pattern

	*/
	Fields *string

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

TimesheetTimeClockPresentGetPresentParams contains all the parameters to send to the API endpoint for the timesheet time clock present get present operation typically these are written to a http.Request

func NewTimesheetTimeClockPresentGetPresentParams

func NewTimesheetTimeClockPresentGetPresentParams() *TimesheetTimeClockPresentGetPresentParams

NewTimesheetTimeClockPresentGetPresentParams creates a new TimesheetTimeClockPresentGetPresentParams object with the default values initialized.

func NewTimesheetTimeClockPresentGetPresentParamsWithContext

func NewTimesheetTimeClockPresentGetPresentParamsWithContext(ctx context.Context) *TimesheetTimeClockPresentGetPresentParams

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

func NewTimesheetTimeClockPresentGetPresentParamsWithHTTPClient

func NewTimesheetTimeClockPresentGetPresentParamsWithHTTPClient(client *http.Client) *TimesheetTimeClockPresentGetPresentParams

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

func NewTimesheetTimeClockPresentGetPresentParamsWithTimeout

func NewTimesheetTimeClockPresentGetPresentParamsWithTimeout(timeout time.Duration) *TimesheetTimeClockPresentGetPresentParams

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

func (*TimesheetTimeClockPresentGetPresentParams) SetContext

SetContext adds the context to the timesheet time clock present get present params

func (*TimesheetTimeClockPresentGetPresentParams) SetEmployeeID

func (o *TimesheetTimeClockPresentGetPresentParams) SetEmployeeID(employeeID *int32)

SetEmployeeID adds the employeeId to the timesheet time clock present get present params

func (*TimesheetTimeClockPresentGetPresentParams) SetFields

func (o *TimesheetTimeClockPresentGetPresentParams) SetFields(fields *string)

SetFields adds the fields to the timesheet time clock present get present params

func (*TimesheetTimeClockPresentGetPresentParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the timesheet time clock present get present params

func (*TimesheetTimeClockPresentGetPresentParams) SetTimeout

SetTimeout adds the timeout to the timesheet time clock present get present params

func (*TimesheetTimeClockPresentGetPresentParams) WithContext

WithContext adds the context to the timesheet time clock present get present params

func (*TimesheetTimeClockPresentGetPresentParams) WithEmployeeID

WithEmployeeID adds the employeeID to the timesheet time clock present get present params

func (*TimesheetTimeClockPresentGetPresentParams) WithFields

WithFields adds the fields to the timesheet time clock present get present params

func (*TimesheetTimeClockPresentGetPresentParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the timesheet time clock present get present params

func (*TimesheetTimeClockPresentGetPresentParams) WithTimeout

WithTimeout adds the timeout to the timesheet time clock present get present params

func (*TimesheetTimeClockPresentGetPresentParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type TimesheetTimeClockPresentGetPresentReader

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

TimesheetTimeClockPresentGetPresentReader is a Reader for the TimesheetTimeClockPresentGetPresent structure.

func (*TimesheetTimeClockPresentGetPresentReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type TimesheetTimeClockPutOK

type TimesheetTimeClockPutOK struct {
	Payload *models.ResponseWrapperTimeClock
}

TimesheetTimeClockPutOK handles this case with default header values.

successful operation

func NewTimesheetTimeClockPutOK

func NewTimesheetTimeClockPutOK() *TimesheetTimeClockPutOK

NewTimesheetTimeClockPutOK creates a TimesheetTimeClockPutOK with default headers values

func (*TimesheetTimeClockPutOK) Error

func (o *TimesheetTimeClockPutOK) Error() string

func (*TimesheetTimeClockPutOK) GetPayload

type TimesheetTimeClockPutParams

type TimesheetTimeClockPutParams struct {

	/*Body
	  Partial object describing what should be updated

	*/
	Body *models.TimeClock
	/*ID
	  Element ID

	*/
	ID int32

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

TimesheetTimeClockPutParams contains all the parameters to send to the API endpoint for the timesheet time clock put operation typically these are written to a http.Request

func NewTimesheetTimeClockPutParams

func NewTimesheetTimeClockPutParams() *TimesheetTimeClockPutParams

NewTimesheetTimeClockPutParams creates a new TimesheetTimeClockPutParams object with the default values initialized.

func NewTimesheetTimeClockPutParamsWithContext

func NewTimesheetTimeClockPutParamsWithContext(ctx context.Context) *TimesheetTimeClockPutParams

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

func NewTimesheetTimeClockPutParamsWithHTTPClient

func NewTimesheetTimeClockPutParamsWithHTTPClient(client *http.Client) *TimesheetTimeClockPutParams

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

func NewTimesheetTimeClockPutParamsWithTimeout

func NewTimesheetTimeClockPutParamsWithTimeout(timeout time.Duration) *TimesheetTimeClockPutParams

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

func (*TimesheetTimeClockPutParams) SetBody

func (o *TimesheetTimeClockPutParams) SetBody(body *models.TimeClock)

SetBody adds the body to the timesheet time clock put params

func (*TimesheetTimeClockPutParams) SetContext

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

SetContext adds the context to the timesheet time clock put params

func (*TimesheetTimeClockPutParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the timesheet time clock put params

func (*TimesheetTimeClockPutParams) SetID

func (o *TimesheetTimeClockPutParams) SetID(id int32)

SetID adds the id to the timesheet time clock put params

func (*TimesheetTimeClockPutParams) SetTimeout

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

SetTimeout adds the timeout to the timesheet time clock put params

func (*TimesheetTimeClockPutParams) WithBody

WithBody adds the body to the timesheet time clock put params

func (*TimesheetTimeClockPutParams) WithContext

WithContext adds the context to the timesheet time clock put params

func (*TimesheetTimeClockPutParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the timesheet time clock put params

func (*TimesheetTimeClockPutParams) WithID

WithID adds the id to the timesheet time clock put params

func (*TimesheetTimeClockPutParams) WithTimeout

WithTimeout adds the timeout to the timesheet time clock put params

func (*TimesheetTimeClockPutParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type TimesheetTimeClockPutReader

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

TimesheetTimeClockPutReader is a Reader for the TimesheetTimeClockPut structure.

func (*TimesheetTimeClockPutReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type TimesheetTimeClockSearchOK

type TimesheetTimeClockSearchOK struct {
	Payload *models.ListResponseTimeClock
}

TimesheetTimeClockSearchOK handles this case with default header values.

successful operation

func NewTimesheetTimeClockSearchOK

func NewTimesheetTimeClockSearchOK() *TimesheetTimeClockSearchOK

NewTimesheetTimeClockSearchOK creates a TimesheetTimeClockSearchOK with default headers values

func (*TimesheetTimeClockSearchOK) Error

func (*TimesheetTimeClockSearchOK) GetPayload

type TimesheetTimeClockSearchParams

type TimesheetTimeClockSearchParams struct {

	/*ActivityID
	  List of IDs

	*/
	ActivityID *string
	/*Count
	  Number of elements to return

	*/
	Count *int64
	/*DateFrom
	  From and including

	*/
	DateFrom *string
	/*DateTo
	  To and excluding

	*/
	DateTo *string
	/*EmployeeID
	  List of IDs

	*/
	EmployeeID *string
	/*Fields
	  Fields filter pattern

	*/
	Fields *string
	/*From
	  From index

	*/
	From *int64
	/*HourID
	  List of IDs

	*/
	HourID *string
	/*ID
	  List of IDs

	*/
	ID *string
	/*IsRunning
	  Equals

	*/
	IsRunning *bool
	/*ProjectID
	  List of IDs

	*/
	ProjectID *string
	/*Sorting
	  Sorting pattern

	*/
	Sorting *string

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

TimesheetTimeClockSearchParams contains all the parameters to send to the API endpoint for the timesheet time clock search operation typically these are written to a http.Request

func NewTimesheetTimeClockSearchParams

func NewTimesheetTimeClockSearchParams() *TimesheetTimeClockSearchParams

NewTimesheetTimeClockSearchParams creates a new TimesheetTimeClockSearchParams object with the default values initialized.

func NewTimesheetTimeClockSearchParamsWithContext

func NewTimesheetTimeClockSearchParamsWithContext(ctx context.Context) *TimesheetTimeClockSearchParams

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

func NewTimesheetTimeClockSearchParamsWithHTTPClient

func NewTimesheetTimeClockSearchParamsWithHTTPClient(client *http.Client) *TimesheetTimeClockSearchParams

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

func NewTimesheetTimeClockSearchParamsWithTimeout

func NewTimesheetTimeClockSearchParamsWithTimeout(timeout time.Duration) *TimesheetTimeClockSearchParams

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

func (*TimesheetTimeClockSearchParams) SetActivityID

func (o *TimesheetTimeClockSearchParams) SetActivityID(activityID *string)

SetActivityID adds the activityId to the timesheet time clock search params

func (*TimesheetTimeClockSearchParams) SetContext

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

SetContext adds the context to the timesheet time clock search params

func (*TimesheetTimeClockSearchParams) SetCount

func (o *TimesheetTimeClockSearchParams) SetCount(count *int64)

SetCount adds the count to the timesheet time clock search params

func (*TimesheetTimeClockSearchParams) SetDateFrom

func (o *TimesheetTimeClockSearchParams) SetDateFrom(dateFrom *string)

SetDateFrom adds the dateFrom to the timesheet time clock search params

func (*TimesheetTimeClockSearchParams) SetDateTo

func (o *TimesheetTimeClockSearchParams) SetDateTo(dateTo *string)

SetDateTo adds the dateTo to the timesheet time clock search params

func (*TimesheetTimeClockSearchParams) SetEmployeeID

func (o *TimesheetTimeClockSearchParams) SetEmployeeID(employeeID *string)

SetEmployeeID adds the employeeId to the timesheet time clock search params

func (*TimesheetTimeClockSearchParams) SetFields

func (o *TimesheetTimeClockSearchParams) SetFields(fields *string)

SetFields adds the fields to the timesheet time clock search params

func (*TimesheetTimeClockSearchParams) SetFrom

func (o *TimesheetTimeClockSearchParams) SetFrom(from *int64)

SetFrom adds the from to the timesheet time clock search params

func (*TimesheetTimeClockSearchParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the timesheet time clock search params

func (*TimesheetTimeClockSearchParams) SetHourID

func (o *TimesheetTimeClockSearchParams) SetHourID(hourID *string)

SetHourID adds the hourId to the timesheet time clock search params

func (*TimesheetTimeClockSearchParams) SetID

func (o *TimesheetTimeClockSearchParams) SetID(id *string)

SetID adds the id to the timesheet time clock search params

func (*TimesheetTimeClockSearchParams) SetIsRunning

func (o *TimesheetTimeClockSearchParams) SetIsRunning(isRunning *bool)

SetIsRunning adds the isRunning to the timesheet time clock search params

func (*TimesheetTimeClockSearchParams) SetProjectID

func (o *TimesheetTimeClockSearchParams) SetProjectID(projectID *string)

SetProjectID adds the projectId to the timesheet time clock search params

func (*TimesheetTimeClockSearchParams) SetSorting

func (o *TimesheetTimeClockSearchParams) SetSorting(sorting *string)

SetSorting adds the sorting to the timesheet time clock search params

func (*TimesheetTimeClockSearchParams) SetTimeout

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

SetTimeout adds the timeout to the timesheet time clock search params

func (*TimesheetTimeClockSearchParams) WithActivityID

WithActivityID adds the activityID to the timesheet time clock search params

func (*TimesheetTimeClockSearchParams) WithContext

WithContext adds the context to the timesheet time clock search params

func (*TimesheetTimeClockSearchParams) WithCount

WithCount adds the count to the timesheet time clock search params

func (*TimesheetTimeClockSearchParams) WithDateFrom

WithDateFrom adds the dateFrom to the timesheet time clock search params

func (*TimesheetTimeClockSearchParams) WithDateTo

WithDateTo adds the dateTo to the timesheet time clock search params

func (*TimesheetTimeClockSearchParams) WithEmployeeID

WithEmployeeID adds the employeeID to the timesheet time clock search params

func (*TimesheetTimeClockSearchParams) WithFields

WithFields adds the fields to the timesheet time clock search params

func (*TimesheetTimeClockSearchParams) WithFrom

WithFrom adds the from to the timesheet time clock search params

func (*TimesheetTimeClockSearchParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the timesheet time clock search params

func (*TimesheetTimeClockSearchParams) WithHourID

WithHourID adds the hourID to the timesheet time clock search params

func (*TimesheetTimeClockSearchParams) WithID

WithID adds the id to the timesheet time clock search params

func (*TimesheetTimeClockSearchParams) WithIsRunning

WithIsRunning adds the isRunning to the timesheet time clock search params

func (*TimesheetTimeClockSearchParams) WithProjectID

WithProjectID adds the projectID to the timesheet time clock search params

func (*TimesheetTimeClockSearchParams) WithSorting

WithSorting adds the sorting to the timesheet time clock search params

func (*TimesheetTimeClockSearchParams) WithTimeout

WithTimeout adds the timeout to the timesheet time clock search params

func (*TimesheetTimeClockSearchParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type TimesheetTimeClockSearchReader

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

TimesheetTimeClockSearchReader is a Reader for the TimesheetTimeClockSearch structure.

func (*TimesheetTimeClockSearchReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type TimesheetTimeClockStartStartOK

type TimesheetTimeClockStartStartOK struct {
	Payload *models.ResponseWrapperTimeClock
}

TimesheetTimeClockStartStartOK handles this case with default header values.

successful operation

func NewTimesheetTimeClockStartStartOK

func NewTimesheetTimeClockStartStartOK() *TimesheetTimeClockStartStartOK

NewTimesheetTimeClockStartStartOK creates a TimesheetTimeClockStartStartOK with default headers values

func (*TimesheetTimeClockStartStartOK) Error

func (*TimesheetTimeClockStartStartOK) GetPayload

type TimesheetTimeClockStartStartParams

type TimesheetTimeClockStartStartParams struct {

	/*ActivityID
	  Activity ID

	*/
	ActivityID int32
	/*Date
	  Optional. Default is today’s date

	*/
	Date *string
	/*EmployeeID
	  Employee ID. Defaults to ID of token owner.

	*/
	EmployeeID *int32
	/*ProjectID
	  Project ID

	*/
	ProjectID *int32

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

TimesheetTimeClockStartStartParams contains all the parameters to send to the API endpoint for the timesheet time clock start start operation typically these are written to a http.Request

func NewTimesheetTimeClockStartStartParams

func NewTimesheetTimeClockStartStartParams() *TimesheetTimeClockStartStartParams

NewTimesheetTimeClockStartStartParams creates a new TimesheetTimeClockStartStartParams object with the default values initialized.

func NewTimesheetTimeClockStartStartParamsWithContext

func NewTimesheetTimeClockStartStartParamsWithContext(ctx context.Context) *TimesheetTimeClockStartStartParams

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

func NewTimesheetTimeClockStartStartParamsWithHTTPClient

func NewTimesheetTimeClockStartStartParamsWithHTTPClient(client *http.Client) *TimesheetTimeClockStartStartParams

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

func NewTimesheetTimeClockStartStartParamsWithTimeout

func NewTimesheetTimeClockStartStartParamsWithTimeout(timeout time.Duration) *TimesheetTimeClockStartStartParams

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

func (*TimesheetTimeClockStartStartParams) SetActivityID

func (o *TimesheetTimeClockStartStartParams) SetActivityID(activityID int32)

SetActivityID adds the activityId to the timesheet time clock start start params

func (*TimesheetTimeClockStartStartParams) SetContext

SetContext adds the context to the timesheet time clock start start params

func (*TimesheetTimeClockStartStartParams) SetDate

func (o *TimesheetTimeClockStartStartParams) SetDate(date *string)

SetDate adds the date to the timesheet time clock start start params

func (*TimesheetTimeClockStartStartParams) SetEmployeeID

func (o *TimesheetTimeClockStartStartParams) SetEmployeeID(employeeID *int32)

SetEmployeeID adds the employeeId to the timesheet time clock start start params

func (*TimesheetTimeClockStartStartParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the timesheet time clock start start params

func (*TimesheetTimeClockStartStartParams) SetProjectID

func (o *TimesheetTimeClockStartStartParams) SetProjectID(projectID *int32)

SetProjectID adds the projectId to the timesheet time clock start start params

func (*TimesheetTimeClockStartStartParams) SetTimeout

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

SetTimeout adds the timeout to the timesheet time clock start start params

func (*TimesheetTimeClockStartStartParams) WithActivityID

WithActivityID adds the activityID to the timesheet time clock start start params

func (*TimesheetTimeClockStartStartParams) WithContext

WithContext adds the context to the timesheet time clock start start params

func (*TimesheetTimeClockStartStartParams) WithDate

WithDate adds the date to the timesheet time clock start start params

func (*TimesheetTimeClockStartStartParams) WithEmployeeID

WithEmployeeID adds the employeeID to the timesheet time clock start start params

func (*TimesheetTimeClockStartStartParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the timesheet time clock start start params

func (*TimesheetTimeClockStartStartParams) WithProjectID

WithProjectID adds the projectID to the timesheet time clock start start params

func (*TimesheetTimeClockStartStartParams) WithTimeout

WithTimeout adds the timeout to the timesheet time clock start start params

func (*TimesheetTimeClockStartStartParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type TimesheetTimeClockStartStartReader

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

TimesheetTimeClockStartStartReader is a Reader for the TimesheetTimeClockStartStart structure.

func (*TimesheetTimeClockStartStartReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type TimesheetTimeClockStopStopDefault

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

TimesheetTimeClockStopStopDefault handles this case with default header values.

successful operation

func NewTimesheetTimeClockStopStopDefault

func NewTimesheetTimeClockStopStopDefault(code int) *TimesheetTimeClockStopStopDefault

NewTimesheetTimeClockStopStopDefault creates a TimesheetTimeClockStopStopDefault with default headers values

func (*TimesheetTimeClockStopStopDefault) Code

Code gets the status code for the timesheet time clock stop stop default response

func (*TimesheetTimeClockStopStopDefault) Error

type TimesheetTimeClockStopStopParams

type TimesheetTimeClockStopStopParams struct {

	/*ID
	  Element ID

	*/
	ID int32
	/*Version
	  Number of current version

	*/
	Version *int32

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

TimesheetTimeClockStopStopParams contains all the parameters to send to the API endpoint for the timesheet time clock stop stop operation typically these are written to a http.Request

func NewTimesheetTimeClockStopStopParams

func NewTimesheetTimeClockStopStopParams() *TimesheetTimeClockStopStopParams

NewTimesheetTimeClockStopStopParams creates a new TimesheetTimeClockStopStopParams object with the default values initialized.

func NewTimesheetTimeClockStopStopParamsWithContext

func NewTimesheetTimeClockStopStopParamsWithContext(ctx context.Context) *TimesheetTimeClockStopStopParams

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

func NewTimesheetTimeClockStopStopParamsWithHTTPClient

func NewTimesheetTimeClockStopStopParamsWithHTTPClient(client *http.Client) *TimesheetTimeClockStopStopParams

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

func NewTimesheetTimeClockStopStopParamsWithTimeout

func NewTimesheetTimeClockStopStopParamsWithTimeout(timeout time.Duration) *TimesheetTimeClockStopStopParams

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

func (*TimesheetTimeClockStopStopParams) SetContext

SetContext adds the context to the timesheet time clock stop stop params

func (*TimesheetTimeClockStopStopParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the timesheet time clock stop stop params

func (*TimesheetTimeClockStopStopParams) SetID

SetID adds the id to the timesheet time clock stop stop params

func (*TimesheetTimeClockStopStopParams) SetTimeout

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

SetTimeout adds the timeout to the timesheet time clock stop stop params

func (*TimesheetTimeClockStopStopParams) SetVersion

func (o *TimesheetTimeClockStopStopParams) SetVersion(version *int32)

SetVersion adds the version to the timesheet time clock stop stop params

func (*TimesheetTimeClockStopStopParams) WithContext

WithContext adds the context to the timesheet time clock stop stop params

func (*TimesheetTimeClockStopStopParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the timesheet time clock stop stop params

func (*TimesheetTimeClockStopStopParams) WithID

WithID adds the id to the timesheet time clock stop stop params

func (*TimesheetTimeClockStopStopParams) WithTimeout

WithTimeout adds the timeout to the timesheet time clock stop stop params

func (*TimesheetTimeClockStopStopParams) WithVersion

WithVersion adds the version to the timesheet time clock stop stop params

func (*TimesheetTimeClockStopStopParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type TimesheetTimeClockStopStopReader

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

TimesheetTimeClockStopStopReader is a Reader for the TimesheetTimeClockStopStop structure.

func (*TimesheetTimeClockStopStopReader) ReadResponse

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

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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