employee

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 employee API

func (*Client) EmployeeGet

func (a *Client) EmployeeGet(params *EmployeeGetParams, authInfo runtime.ClientAuthInfoWriter) (*EmployeeGetOK, error)

EmployeeGet gets employee by ID

func (*Client) EmployeeListPostList

func (a *Client) EmployeeListPostList(params *EmployeeListPostListParams, authInfo runtime.ClientAuthInfoWriter) (*EmployeeListPostListCreated, error)

EmployeeListPostList bs e t a create several employees

func (*Client) EmployeePost

func (a *Client) EmployeePost(params *EmployeePostParams, authInfo runtime.ClientAuthInfoWriter) (*EmployeePostCreated, error)

EmployeePost bs e t a create one employee

func (*Client) EmployeePut

func (a *Client) EmployeePut(params *EmployeePutParams, authInfo runtime.ClientAuthInfoWriter) (*EmployeePutOK, error)

EmployeePut updates employee

func (*Client) EmployeeSearch

func (a *Client) EmployeeSearch(params *EmployeeSearchParams, authInfo runtime.ClientAuthInfoWriter) (*EmployeeSearchOK, error)

EmployeeSearch finds employees corresponding with sent data

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) TokenEmployeeCreateCreate

func (a *Client) TokenEmployeeCreateCreate(params *TokenEmployeeCreateCreateParams, authInfo runtime.ClientAuthInfoWriter) (*TokenEmployeeCreateCreateOK, error)

TokenEmployeeCreateCreate creates an employee token only selected consumers are allowed

type ClientService

type ClientService interface {
	EmployeeGet(params *EmployeeGetParams, authInfo runtime.ClientAuthInfoWriter) (*EmployeeGetOK, error)

	EmployeeListPostList(params *EmployeeListPostListParams, authInfo runtime.ClientAuthInfoWriter) (*EmployeeListPostListCreated, error)

	EmployeePost(params *EmployeePostParams, authInfo runtime.ClientAuthInfoWriter) (*EmployeePostCreated, error)

	EmployeePut(params *EmployeePutParams, authInfo runtime.ClientAuthInfoWriter) (*EmployeePutOK, error)

	EmployeeSearch(params *EmployeeSearchParams, authInfo runtime.ClientAuthInfoWriter) (*EmployeeSearchOK, error)

	TokenEmployeeCreateCreate(params *TokenEmployeeCreateCreateParams, authInfo runtime.ClientAuthInfoWriter) (*TokenEmployeeCreateCreateOK, 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 employee API client.

type EmployeeGetOK

type EmployeeGetOK struct {
	Payload *models.ResponseWrapperEmployee
}

EmployeeGetOK handles this case with default header values.

successful operation

func NewEmployeeGetOK

func NewEmployeeGetOK() *EmployeeGetOK

NewEmployeeGetOK creates a EmployeeGetOK with default headers values

func (*EmployeeGetOK) Error

func (o *EmployeeGetOK) Error() string

func (*EmployeeGetOK) GetPayload

func (o *EmployeeGetOK) GetPayload() *models.ResponseWrapperEmployee

type EmployeeGetParams

type EmployeeGetParams struct {

	/*Fields
	  Fields filter pattern

	*/
	Fields *string
	/*ID
	  Element ID

	*/
	ID int32

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

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

func NewEmployeeGetParams

func NewEmployeeGetParams() *EmployeeGetParams

NewEmployeeGetParams creates a new EmployeeGetParams object with the default values initialized.

func NewEmployeeGetParamsWithContext

func NewEmployeeGetParamsWithContext(ctx context.Context) *EmployeeGetParams

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

func NewEmployeeGetParamsWithHTTPClient

func NewEmployeeGetParamsWithHTTPClient(client *http.Client) *EmployeeGetParams

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

func NewEmployeeGetParamsWithTimeout

func NewEmployeeGetParamsWithTimeout(timeout time.Duration) *EmployeeGetParams

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

func (*EmployeeGetParams) SetContext

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

SetContext adds the context to the employee get params

func (*EmployeeGetParams) SetFields

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

SetFields adds the fields to the employee get params

func (*EmployeeGetParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the employee get params

func (*EmployeeGetParams) SetID

func (o *EmployeeGetParams) SetID(id int32)

SetID adds the id to the employee get params

func (*EmployeeGetParams) SetTimeout

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

SetTimeout adds the timeout to the employee get params

func (*EmployeeGetParams) WithContext

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

WithContext adds the context to the employee get params

func (*EmployeeGetParams) WithFields

func (o *EmployeeGetParams) WithFields(fields *string) *EmployeeGetParams

WithFields adds the fields to the employee get params

func (*EmployeeGetParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the employee get params

func (*EmployeeGetParams) WithID

func (o *EmployeeGetParams) WithID(id int32) *EmployeeGetParams

WithID adds the id to the employee get params

func (*EmployeeGetParams) WithTimeout

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

WithTimeout adds the timeout to the employee get params

func (*EmployeeGetParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type EmployeeGetReader

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

EmployeeGetReader is a Reader for the EmployeeGet structure.

func (*EmployeeGetReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type EmployeeListPostListCreated

type EmployeeListPostListCreated struct {
	Payload *models.ListResponseEmployee
}

EmployeeListPostListCreated handles this case with default header values.

successfully created

func NewEmployeeListPostListCreated

func NewEmployeeListPostListCreated() *EmployeeListPostListCreated

NewEmployeeListPostListCreated creates a EmployeeListPostListCreated with default headers values

func (*EmployeeListPostListCreated) Error

func (*EmployeeListPostListCreated) GetPayload

type EmployeeListPostListParams

type EmployeeListPostListParams struct {

	/*Body
	  JSON representing a list of new object to be created. Should not have ID and version set.

	*/
	Body []*models.Employee

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

EmployeeListPostListParams contains all the parameters to send to the API endpoint for the employee list post list operation typically these are written to a http.Request

func NewEmployeeListPostListParams

func NewEmployeeListPostListParams() *EmployeeListPostListParams

NewEmployeeListPostListParams creates a new EmployeeListPostListParams object with the default values initialized.

func NewEmployeeListPostListParamsWithContext

func NewEmployeeListPostListParamsWithContext(ctx context.Context) *EmployeeListPostListParams

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

func NewEmployeeListPostListParamsWithHTTPClient

func NewEmployeeListPostListParamsWithHTTPClient(client *http.Client) *EmployeeListPostListParams

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

func NewEmployeeListPostListParamsWithTimeout

func NewEmployeeListPostListParamsWithTimeout(timeout time.Duration) *EmployeeListPostListParams

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

func (*EmployeeListPostListParams) SetBody

func (o *EmployeeListPostListParams) SetBody(body []*models.Employee)

SetBody adds the body to the employee list post list params

func (*EmployeeListPostListParams) SetContext

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

SetContext adds the context to the employee list post list params

func (*EmployeeListPostListParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the employee list post list params

func (*EmployeeListPostListParams) SetTimeout

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

SetTimeout adds the timeout to the employee list post list params

func (*EmployeeListPostListParams) WithBody

WithBody adds the body to the employee list post list params

func (*EmployeeListPostListParams) WithContext

WithContext adds the context to the employee list post list params

func (*EmployeeListPostListParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the employee list post list params

func (*EmployeeListPostListParams) WithTimeout

WithTimeout adds the timeout to the employee list post list params

func (*EmployeeListPostListParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type EmployeeListPostListReader

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

EmployeeListPostListReader is a Reader for the EmployeeListPostList structure.

func (*EmployeeListPostListReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type EmployeePostCreated

type EmployeePostCreated struct {
	Payload *models.ResponseWrapperEmployee
}

EmployeePostCreated handles this case with default header values.

successfully created

func NewEmployeePostCreated

func NewEmployeePostCreated() *EmployeePostCreated

NewEmployeePostCreated creates a EmployeePostCreated with default headers values

func (*EmployeePostCreated) Error

func (o *EmployeePostCreated) Error() string

func (*EmployeePostCreated) GetPayload

type EmployeePostParams

type EmployeePostParams struct {

	/*Body
	  JSON representing the new object to be created. Should not have ID and version set.

	*/
	Body *models.Employee

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

EmployeePostParams contains all the parameters to send to the API endpoint for the employee post operation typically these are written to a http.Request

func NewEmployeePostParams

func NewEmployeePostParams() *EmployeePostParams

NewEmployeePostParams creates a new EmployeePostParams object with the default values initialized.

func NewEmployeePostParamsWithContext

func NewEmployeePostParamsWithContext(ctx context.Context) *EmployeePostParams

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

func NewEmployeePostParamsWithHTTPClient

func NewEmployeePostParamsWithHTTPClient(client *http.Client) *EmployeePostParams

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

func NewEmployeePostParamsWithTimeout

func NewEmployeePostParamsWithTimeout(timeout time.Duration) *EmployeePostParams

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

func (*EmployeePostParams) SetBody

func (o *EmployeePostParams) SetBody(body *models.Employee)

SetBody adds the body to the employee post params

func (*EmployeePostParams) SetContext

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

SetContext adds the context to the employee post params

func (*EmployeePostParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the employee post params

func (*EmployeePostParams) SetTimeout

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

SetTimeout adds the timeout to the employee post params

func (*EmployeePostParams) WithBody

WithBody adds the body to the employee post params

func (*EmployeePostParams) WithContext

WithContext adds the context to the employee post params

func (*EmployeePostParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the employee post params

func (*EmployeePostParams) WithTimeout

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

WithTimeout adds the timeout to the employee post params

func (*EmployeePostParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type EmployeePostReader

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

EmployeePostReader is a Reader for the EmployeePost structure.

func (*EmployeePostReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type EmployeePutOK

type EmployeePutOK struct {
	Payload *models.ResponseWrapperEmployee
}

EmployeePutOK handles this case with default header values.

successful operation

func NewEmployeePutOK

func NewEmployeePutOK() *EmployeePutOK

NewEmployeePutOK creates a EmployeePutOK with default headers values

func (*EmployeePutOK) Error

func (o *EmployeePutOK) Error() string

func (*EmployeePutOK) GetPayload

func (o *EmployeePutOK) GetPayload() *models.ResponseWrapperEmployee

type EmployeePutParams

type EmployeePutParams struct {

	/*Body
	  Partial object describing what should be updated

	*/
	Body *models.Employee
	/*ID
	  Element ID

	*/
	ID int32

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

EmployeePutParams contains all the parameters to send to the API endpoint for the employee put operation typically these are written to a http.Request

func NewEmployeePutParams

func NewEmployeePutParams() *EmployeePutParams

NewEmployeePutParams creates a new EmployeePutParams object with the default values initialized.

func NewEmployeePutParamsWithContext

func NewEmployeePutParamsWithContext(ctx context.Context) *EmployeePutParams

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

func NewEmployeePutParamsWithHTTPClient

func NewEmployeePutParamsWithHTTPClient(client *http.Client) *EmployeePutParams

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

func NewEmployeePutParamsWithTimeout

func NewEmployeePutParamsWithTimeout(timeout time.Duration) *EmployeePutParams

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

func (*EmployeePutParams) SetBody

func (o *EmployeePutParams) SetBody(body *models.Employee)

SetBody adds the body to the employee put params

func (*EmployeePutParams) SetContext

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

SetContext adds the context to the employee put params

func (*EmployeePutParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the employee put params

func (*EmployeePutParams) SetID

func (o *EmployeePutParams) SetID(id int32)

SetID adds the id to the employee put params

func (*EmployeePutParams) SetTimeout

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

SetTimeout adds the timeout to the employee put params

func (*EmployeePutParams) WithBody

func (o *EmployeePutParams) WithBody(body *models.Employee) *EmployeePutParams

WithBody adds the body to the employee put params

func (*EmployeePutParams) WithContext

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

WithContext adds the context to the employee put params

func (*EmployeePutParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the employee put params

func (*EmployeePutParams) WithID

func (o *EmployeePutParams) WithID(id int32) *EmployeePutParams

WithID adds the id to the employee put params

func (*EmployeePutParams) WithTimeout

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

WithTimeout adds the timeout to the employee put params

func (*EmployeePutParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type EmployeePutReader

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

EmployeePutReader is a Reader for the EmployeePut structure.

func (*EmployeePutReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type EmployeeSearchOK

type EmployeeSearchOK struct {
	Payload *models.ListResponseEmployee
}

EmployeeSearchOK handles this case with default header values.

successful operation

func NewEmployeeSearchOK

func NewEmployeeSearchOK() *EmployeeSearchOK

NewEmployeeSearchOK creates a EmployeeSearchOK with default headers values

func (*EmployeeSearchOK) Error

func (o *EmployeeSearchOK) Error() string

func (*EmployeeSearchOK) GetPayload

func (o *EmployeeSearchOK) GetPayload() *models.ListResponseEmployee

type EmployeeSearchParams

type EmployeeSearchParams struct {

	/*AllowInformationRegistration
	  Equals

	*/
	AllowInformationRegistration *bool
	/*Count
	  Number of elements to return

	*/
	Count *int64
	/*DepartmentID
	  List of IDs

	*/
	DepartmentID *string
	/*EmployeeNumber
	  Containing

	*/
	EmployeeNumber *string
	/*Fields
	  Fields filter pattern

	*/
	Fields *string
	/*FirstName
	  Containing

	*/
	FirstName *string
	/*From
	  From index

	*/
	From *int64
	/*ID
	  List of IDs

	*/
	ID *string
	/*IncludeContacts
	  Equals

	*/
	IncludeContacts *bool
	/*LastName
	  Containing

	*/
	LastName *string
	/*OnlyProjectManagers
	  Equals

	*/
	OnlyProjectManagers *bool
	/*PeriodEnd
	  Equals

	*/
	PeriodEnd *string
	/*PeriodStart
	  Equals

	*/
	PeriodStart *string
	/*Sorting
	  Sorting pattern

	*/
	Sorting *string

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

EmployeeSearchParams contains all the parameters to send to the API endpoint for the employee search operation typically these are written to a http.Request

func NewEmployeeSearchParams

func NewEmployeeSearchParams() *EmployeeSearchParams

NewEmployeeSearchParams creates a new EmployeeSearchParams object with the default values initialized.

func NewEmployeeSearchParamsWithContext

func NewEmployeeSearchParamsWithContext(ctx context.Context) *EmployeeSearchParams

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

func NewEmployeeSearchParamsWithHTTPClient

func NewEmployeeSearchParamsWithHTTPClient(client *http.Client) *EmployeeSearchParams

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

func NewEmployeeSearchParamsWithTimeout

func NewEmployeeSearchParamsWithTimeout(timeout time.Duration) *EmployeeSearchParams

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

func (*EmployeeSearchParams) SetAllowInformationRegistration

func (o *EmployeeSearchParams) SetAllowInformationRegistration(allowInformationRegistration *bool)

SetAllowInformationRegistration adds the allowInformationRegistration to the employee search params

func (*EmployeeSearchParams) SetContext

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

SetContext adds the context to the employee search params

func (*EmployeeSearchParams) SetCount

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

SetCount adds the count to the employee search params

func (*EmployeeSearchParams) SetDepartmentID

func (o *EmployeeSearchParams) SetDepartmentID(departmentID *string)

SetDepartmentID adds the departmentId to the employee search params

func (*EmployeeSearchParams) SetEmployeeNumber

func (o *EmployeeSearchParams) SetEmployeeNumber(employeeNumber *string)

SetEmployeeNumber adds the employeeNumber to the employee search params

func (*EmployeeSearchParams) SetFields

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

SetFields adds the fields to the employee search params

func (*EmployeeSearchParams) SetFirstName

func (o *EmployeeSearchParams) SetFirstName(firstName *string)

SetFirstName adds the firstName to the employee search params

func (*EmployeeSearchParams) SetFrom

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

SetFrom adds the from to the employee search params

func (*EmployeeSearchParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the employee search params

func (*EmployeeSearchParams) SetID

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

SetID adds the id to the employee search params

func (*EmployeeSearchParams) SetIncludeContacts

func (o *EmployeeSearchParams) SetIncludeContacts(includeContacts *bool)

SetIncludeContacts adds the includeContacts to the employee search params

func (*EmployeeSearchParams) SetLastName

func (o *EmployeeSearchParams) SetLastName(lastName *string)

SetLastName adds the lastName to the employee search params

func (*EmployeeSearchParams) SetOnlyProjectManagers

func (o *EmployeeSearchParams) SetOnlyProjectManagers(onlyProjectManagers *bool)

SetOnlyProjectManagers adds the onlyProjectManagers to the employee search params

func (*EmployeeSearchParams) SetPeriodEnd

func (o *EmployeeSearchParams) SetPeriodEnd(periodEnd *string)

SetPeriodEnd adds the periodEnd to the employee search params

func (*EmployeeSearchParams) SetPeriodStart

func (o *EmployeeSearchParams) SetPeriodStart(periodStart *string)

SetPeriodStart adds the periodStart to the employee search params

func (*EmployeeSearchParams) SetSorting

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

SetSorting adds the sorting to the employee search params

func (*EmployeeSearchParams) SetTimeout

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

SetTimeout adds the timeout to the employee search params

func (*EmployeeSearchParams) WithAllowInformationRegistration

func (o *EmployeeSearchParams) WithAllowInformationRegistration(allowInformationRegistration *bool) *EmployeeSearchParams

WithAllowInformationRegistration adds the allowInformationRegistration to the employee search params

func (*EmployeeSearchParams) WithContext

WithContext adds the context to the employee search params

func (*EmployeeSearchParams) WithCount

func (o *EmployeeSearchParams) WithCount(count *int64) *EmployeeSearchParams

WithCount adds the count to the employee search params

func (*EmployeeSearchParams) WithDepartmentID

func (o *EmployeeSearchParams) WithDepartmentID(departmentID *string) *EmployeeSearchParams

WithDepartmentID adds the departmentID to the employee search params

func (*EmployeeSearchParams) WithEmployeeNumber

func (o *EmployeeSearchParams) WithEmployeeNumber(employeeNumber *string) *EmployeeSearchParams

WithEmployeeNumber adds the employeeNumber to the employee search params

func (*EmployeeSearchParams) WithFields

func (o *EmployeeSearchParams) WithFields(fields *string) *EmployeeSearchParams

WithFields adds the fields to the employee search params

func (*EmployeeSearchParams) WithFirstName

func (o *EmployeeSearchParams) WithFirstName(firstName *string) *EmployeeSearchParams

WithFirstName adds the firstName to the employee search params

func (*EmployeeSearchParams) WithFrom

func (o *EmployeeSearchParams) WithFrom(from *int64) *EmployeeSearchParams

WithFrom adds the from to the employee search params

func (*EmployeeSearchParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the employee search params

func (*EmployeeSearchParams) WithID

WithID adds the id to the employee search params

func (*EmployeeSearchParams) WithIncludeContacts

func (o *EmployeeSearchParams) WithIncludeContacts(includeContacts *bool) *EmployeeSearchParams

WithIncludeContacts adds the includeContacts to the employee search params

func (*EmployeeSearchParams) WithLastName

func (o *EmployeeSearchParams) WithLastName(lastName *string) *EmployeeSearchParams

WithLastName adds the lastName to the employee search params

func (*EmployeeSearchParams) WithOnlyProjectManagers

func (o *EmployeeSearchParams) WithOnlyProjectManagers(onlyProjectManagers *bool) *EmployeeSearchParams

WithOnlyProjectManagers adds the onlyProjectManagers to the employee search params

func (*EmployeeSearchParams) WithPeriodEnd

func (o *EmployeeSearchParams) WithPeriodEnd(periodEnd *string) *EmployeeSearchParams

WithPeriodEnd adds the periodEnd to the employee search params

func (*EmployeeSearchParams) WithPeriodStart

func (o *EmployeeSearchParams) WithPeriodStart(periodStart *string) *EmployeeSearchParams

WithPeriodStart adds the periodStart to the employee search params

func (*EmployeeSearchParams) WithSorting

func (o *EmployeeSearchParams) WithSorting(sorting *string) *EmployeeSearchParams

WithSorting adds the sorting to the employee search params

func (*EmployeeSearchParams) WithTimeout

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

WithTimeout adds the timeout to the employee search params

func (*EmployeeSearchParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type EmployeeSearchReader

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

EmployeeSearchReader is a Reader for the EmployeeSearch structure.

func (*EmployeeSearchReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type TokenEmployeeCreateCreateOK

type TokenEmployeeCreateCreateOK struct {
	Payload *models.ResponseWrapperEmployeeToken
}

TokenEmployeeCreateCreateOK handles this case with default header values.

successful operation

func NewTokenEmployeeCreateCreateOK

func NewTokenEmployeeCreateCreateOK() *TokenEmployeeCreateCreateOK

NewTokenEmployeeCreateCreateOK creates a TokenEmployeeCreateCreateOK with default headers values

func (*TokenEmployeeCreateCreateOK) Error

func (*TokenEmployeeCreateCreateOK) GetPayload

type TokenEmployeeCreateCreateParams

type TokenEmployeeCreateCreateParams struct {

	/*CompanyOwned
	  Is the key company owned

	*/
	CompanyOwned bool
	/*ConsumerName
	  The name of the consumer

	*/
	ConsumerName string
	/*EmployeeID
	  The id of the employee

	*/
	EmployeeID int32
	/*ExpirationDate
	  Expiration date for the employeeToken

	*/
	ExpirationDate string
	/*TokenName
	  A user defined name for the new token

	*/
	TokenName string

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

TokenEmployeeCreateCreateParams contains all the parameters to send to the API endpoint for the token employee create create operation typically these are written to a http.Request

func NewTokenEmployeeCreateCreateParams

func NewTokenEmployeeCreateCreateParams() *TokenEmployeeCreateCreateParams

NewTokenEmployeeCreateCreateParams creates a new TokenEmployeeCreateCreateParams object with the default values initialized.

func NewTokenEmployeeCreateCreateParamsWithContext

func NewTokenEmployeeCreateCreateParamsWithContext(ctx context.Context) *TokenEmployeeCreateCreateParams

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

func NewTokenEmployeeCreateCreateParamsWithHTTPClient

func NewTokenEmployeeCreateCreateParamsWithHTTPClient(client *http.Client) *TokenEmployeeCreateCreateParams

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

func NewTokenEmployeeCreateCreateParamsWithTimeout

func NewTokenEmployeeCreateCreateParamsWithTimeout(timeout time.Duration) *TokenEmployeeCreateCreateParams

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

func (*TokenEmployeeCreateCreateParams) SetCompanyOwned

func (o *TokenEmployeeCreateCreateParams) SetCompanyOwned(companyOwned bool)

SetCompanyOwned adds the companyOwned to the token employee create create params

func (*TokenEmployeeCreateCreateParams) SetConsumerName

func (o *TokenEmployeeCreateCreateParams) SetConsumerName(consumerName string)

SetConsumerName adds the consumerName to the token employee create create params

func (*TokenEmployeeCreateCreateParams) SetContext

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

SetContext adds the context to the token employee create create params

func (*TokenEmployeeCreateCreateParams) SetEmployeeID

func (o *TokenEmployeeCreateCreateParams) SetEmployeeID(employeeID int32)

SetEmployeeID adds the employeeId to the token employee create create params

func (*TokenEmployeeCreateCreateParams) SetExpirationDate

func (o *TokenEmployeeCreateCreateParams) SetExpirationDate(expirationDate string)

SetExpirationDate adds the expirationDate to the token employee create create params

func (*TokenEmployeeCreateCreateParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the token employee create create params

func (*TokenEmployeeCreateCreateParams) SetTimeout

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

SetTimeout adds the timeout to the token employee create create params

func (*TokenEmployeeCreateCreateParams) SetTokenName

func (o *TokenEmployeeCreateCreateParams) SetTokenName(tokenName string)

SetTokenName adds the tokenName to the token employee create create params

func (*TokenEmployeeCreateCreateParams) WithCompanyOwned

func (o *TokenEmployeeCreateCreateParams) WithCompanyOwned(companyOwned bool) *TokenEmployeeCreateCreateParams

WithCompanyOwned adds the companyOwned to the token employee create create params

func (*TokenEmployeeCreateCreateParams) WithConsumerName

func (o *TokenEmployeeCreateCreateParams) WithConsumerName(consumerName string) *TokenEmployeeCreateCreateParams

WithConsumerName adds the consumerName to the token employee create create params

func (*TokenEmployeeCreateCreateParams) WithContext

WithContext adds the context to the token employee create create params

func (*TokenEmployeeCreateCreateParams) WithEmployeeID

WithEmployeeID adds the employeeID to the token employee create create params

func (*TokenEmployeeCreateCreateParams) WithExpirationDate

func (o *TokenEmployeeCreateCreateParams) WithExpirationDate(expirationDate string) *TokenEmployeeCreateCreateParams

WithExpirationDate adds the expirationDate to the token employee create create params

func (*TokenEmployeeCreateCreateParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the token employee create create params

func (*TokenEmployeeCreateCreateParams) WithTimeout

WithTimeout adds the timeout to the token employee create create params

func (*TokenEmployeeCreateCreateParams) WithTokenName

WithTokenName adds the tokenName to the token employee create create params

func (*TokenEmployeeCreateCreateParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type TokenEmployeeCreateCreateReader

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

TokenEmployeeCreateCreateReader is a Reader for the TokenEmployeeCreateCreate structure.

func (*TokenEmployeeCreateCreateReader) ReadResponse

func (o *TokenEmployeeCreateCreateReader) 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