department

package
v2.0.2 Latest Latest
Warning

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

Go to latest
Published: May 1, 2023 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 department API

func (*Client) DepartmentDelete

func (a *Client) DepartmentDelete(params *DepartmentDeleteParams, authInfo runtime.ClientAuthInfoWriter) error

DepartmentDelete deletes department by ID

func (*Client) DepartmentGet

func (a *Client) DepartmentGet(params *DepartmentGetParams, authInfo runtime.ClientAuthInfoWriter) (*DepartmentGetOK, error)

DepartmentGet gets department by ID

func (*Client) DepartmentListPostList

DepartmentListPostList bs e t a register new departments

func (*Client) DepartmentListPutList

func (a *Client) DepartmentListPutList(params *DepartmentListPutListParams, authInfo runtime.ClientAuthInfoWriter) (*DepartmentListPutListOK, error)

DepartmentListPutList bs e t a update multiple departments

func (*Client) DepartmentPost

func (a *Client) DepartmentPost(params *DepartmentPostParams, authInfo runtime.ClientAuthInfoWriter) (*DepartmentPostCreated, error)

DepartmentPost bs e t a add new department

func (*Client) DepartmentPut

func (a *Client) DepartmentPut(params *DepartmentPutParams, authInfo runtime.ClientAuthInfoWriter) (*DepartmentPutOK, error)

DepartmentPut bs e t a update department

func (*Client) DepartmentSearch

func (a *Client) DepartmentSearch(params *DepartmentSearchParams, authInfo runtime.ClientAuthInfoWriter) (*DepartmentSearchOK, error)

DepartmentSearch finds department corresponding with sent data

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientService

type ClientService interface {
	DepartmentListPostList(params *DepartmentListPostListParams, authInfo runtime.ClientAuthInfoWriter) (*DepartmentListPostListCreated, error)

	DepartmentListPutList(params *DepartmentListPutListParams, authInfo runtime.ClientAuthInfoWriter) (*DepartmentListPutListOK, error)

	DepartmentDelete(params *DepartmentDeleteParams, authInfo runtime.ClientAuthInfoWriter) error

	DepartmentGet(params *DepartmentGetParams, authInfo runtime.ClientAuthInfoWriter) (*DepartmentGetOK, error)

	DepartmentPost(params *DepartmentPostParams, authInfo runtime.ClientAuthInfoWriter) (*DepartmentPostCreated, error)

	DepartmentPut(params *DepartmentPutParams, authInfo runtime.ClientAuthInfoWriter) (*DepartmentPutOK, error)

	DepartmentSearch(params *DepartmentSearchParams, authInfo runtime.ClientAuthInfoWriter) (*DepartmentSearchOK, 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 department API client.

type DepartmentDeleteDefault

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

DepartmentDeleteDefault handles this case with default header values.

successful operation

func NewDepartmentDeleteDefault

func NewDepartmentDeleteDefault(code int) *DepartmentDeleteDefault

NewDepartmentDeleteDefault creates a DepartmentDeleteDefault with default headers values

func (*DepartmentDeleteDefault) Code

func (o *DepartmentDeleteDefault) Code() int

Code gets the status code for the department delete default response

func (*DepartmentDeleteDefault) Error

func (o *DepartmentDeleteDefault) Error() string

type DepartmentDeleteParams

type DepartmentDeleteParams struct {

	/*ID
	  Element ID

	*/
	ID int32

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

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

func NewDepartmentDeleteParams

func NewDepartmentDeleteParams() *DepartmentDeleteParams

NewDepartmentDeleteParams creates a new DepartmentDeleteParams object with the default values initialized.

func NewDepartmentDeleteParamsWithContext

func NewDepartmentDeleteParamsWithContext(ctx context.Context) *DepartmentDeleteParams

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

func NewDepartmentDeleteParamsWithHTTPClient

func NewDepartmentDeleteParamsWithHTTPClient(client *http.Client) *DepartmentDeleteParams

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

func NewDepartmentDeleteParamsWithTimeout

func NewDepartmentDeleteParamsWithTimeout(timeout time.Duration) *DepartmentDeleteParams

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

func (*DepartmentDeleteParams) SetContext

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

SetContext adds the context to the department delete params

func (*DepartmentDeleteParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the department delete params

func (*DepartmentDeleteParams) SetID

func (o *DepartmentDeleteParams) SetID(id int32)

SetID adds the id to the department delete params

func (*DepartmentDeleteParams) SetTimeout

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

SetTimeout adds the timeout to the department delete params

func (*DepartmentDeleteParams) WithContext

WithContext adds the context to the department delete params

func (*DepartmentDeleteParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the department delete params

func (*DepartmentDeleteParams) WithID

WithID adds the id to the department delete params

func (*DepartmentDeleteParams) WithTimeout

WithTimeout adds the timeout to the department delete params

func (*DepartmentDeleteParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DepartmentDeleteReader

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

DepartmentDeleteReader is a Reader for the DepartmentDelete structure.

func (*DepartmentDeleteReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DepartmentGetOK

type DepartmentGetOK struct {
	Payload *models.ResponseWrapperDepartment
}

DepartmentGetOK handles this case with default header values.

successful operation

func NewDepartmentGetOK

func NewDepartmentGetOK() *DepartmentGetOK

NewDepartmentGetOK creates a DepartmentGetOK with default headers values

func (*DepartmentGetOK) Error

func (o *DepartmentGetOK) Error() string

func (*DepartmentGetOK) GetPayload

type DepartmentGetParams

type DepartmentGetParams struct {

	/*Fields
	  Fields filter pattern

	*/
	Fields *string
	/*ID
	  Element ID

	*/
	ID int32

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

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

func NewDepartmentGetParams

func NewDepartmentGetParams() *DepartmentGetParams

NewDepartmentGetParams creates a new DepartmentGetParams object with the default values initialized.

func NewDepartmentGetParamsWithContext

func NewDepartmentGetParamsWithContext(ctx context.Context) *DepartmentGetParams

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

func NewDepartmentGetParamsWithHTTPClient

func NewDepartmentGetParamsWithHTTPClient(client *http.Client) *DepartmentGetParams

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

func NewDepartmentGetParamsWithTimeout

func NewDepartmentGetParamsWithTimeout(timeout time.Duration) *DepartmentGetParams

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

func (*DepartmentGetParams) SetContext

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

SetContext adds the context to the department get params

func (*DepartmentGetParams) SetFields

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

SetFields adds the fields to the department get params

func (*DepartmentGetParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the department get params

func (*DepartmentGetParams) SetID

func (o *DepartmentGetParams) SetID(id int32)

SetID adds the id to the department get params

func (*DepartmentGetParams) SetTimeout

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

SetTimeout adds the timeout to the department get params

func (*DepartmentGetParams) WithContext

WithContext adds the context to the department get params

func (*DepartmentGetParams) WithFields

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

WithFields adds the fields to the department get params

func (*DepartmentGetParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the department get params

func (*DepartmentGetParams) WithID

WithID adds the id to the department get params

func (*DepartmentGetParams) WithTimeout

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

WithTimeout adds the timeout to the department get params

func (*DepartmentGetParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DepartmentGetReader

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

DepartmentGetReader is a Reader for the DepartmentGet structure.

func (*DepartmentGetReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DepartmentListPostListCreated

type DepartmentListPostListCreated struct {
	Payload *models.ListResponseDepartment
}

DepartmentListPostListCreated handles this case with default header values.

successfully created

func NewDepartmentListPostListCreated

func NewDepartmentListPostListCreated() *DepartmentListPostListCreated

NewDepartmentListPostListCreated creates a DepartmentListPostListCreated with default headers values

func (*DepartmentListPostListCreated) Error

func (*DepartmentListPostListCreated) GetPayload

type DepartmentListPostListParams

type DepartmentListPostListParams struct {

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

	*/
	Body []*models.Department

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

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

func NewDepartmentListPostListParams

func NewDepartmentListPostListParams() *DepartmentListPostListParams

NewDepartmentListPostListParams creates a new DepartmentListPostListParams object with the default values initialized.

func NewDepartmentListPostListParamsWithContext

func NewDepartmentListPostListParamsWithContext(ctx context.Context) *DepartmentListPostListParams

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

func NewDepartmentListPostListParamsWithHTTPClient

func NewDepartmentListPostListParamsWithHTTPClient(client *http.Client) *DepartmentListPostListParams

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

func NewDepartmentListPostListParamsWithTimeout

func NewDepartmentListPostListParamsWithTimeout(timeout time.Duration) *DepartmentListPostListParams

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

func (*DepartmentListPostListParams) SetBody

func (o *DepartmentListPostListParams) SetBody(body []*models.Department)

SetBody adds the body to the department list post list params

func (*DepartmentListPostListParams) SetContext

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

SetContext adds the context to the department list post list params

func (*DepartmentListPostListParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the department list post list params

func (*DepartmentListPostListParams) SetTimeout

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

SetTimeout adds the timeout to the department list post list params

func (*DepartmentListPostListParams) WithBody

WithBody adds the body to the department list post list params

func (*DepartmentListPostListParams) WithContext

WithContext adds the context to the department list post list params

func (*DepartmentListPostListParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the department list post list params

func (*DepartmentListPostListParams) WithTimeout

WithTimeout adds the timeout to the department list post list params

func (*DepartmentListPostListParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DepartmentListPostListReader

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

DepartmentListPostListReader is a Reader for the DepartmentListPostList structure.

func (*DepartmentListPostListReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DepartmentListPutListOK

type DepartmentListPutListOK struct {
	Payload *models.ListResponseDepartment
}

DepartmentListPutListOK handles this case with default header values.

successful operation

func NewDepartmentListPutListOK

func NewDepartmentListPutListOK() *DepartmentListPutListOK

NewDepartmentListPutListOK creates a DepartmentListPutListOK with default headers values

func (*DepartmentListPutListOK) Error

func (o *DepartmentListPutListOK) Error() string

func (*DepartmentListPutListOK) GetPayload

type DepartmentListPutListParams

type DepartmentListPutListParams struct {

	/*Body
	  JSON representing updates to object. Should have ID and version set.

	*/
	Body []*models.Department

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

DepartmentListPutListParams contains all the parameters to send to the API endpoint for the department list put list operation typically these are written to a http.Request

func NewDepartmentListPutListParams

func NewDepartmentListPutListParams() *DepartmentListPutListParams

NewDepartmentListPutListParams creates a new DepartmentListPutListParams object with the default values initialized.

func NewDepartmentListPutListParamsWithContext

func NewDepartmentListPutListParamsWithContext(ctx context.Context) *DepartmentListPutListParams

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

func NewDepartmentListPutListParamsWithHTTPClient

func NewDepartmentListPutListParamsWithHTTPClient(client *http.Client) *DepartmentListPutListParams

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

func NewDepartmentListPutListParamsWithTimeout

func NewDepartmentListPutListParamsWithTimeout(timeout time.Duration) *DepartmentListPutListParams

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

func (*DepartmentListPutListParams) SetBody

func (o *DepartmentListPutListParams) SetBody(body []*models.Department)

SetBody adds the body to the department list put list params

func (*DepartmentListPutListParams) SetContext

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

SetContext adds the context to the department list put list params

func (*DepartmentListPutListParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the department list put list params

func (*DepartmentListPutListParams) SetTimeout

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

SetTimeout adds the timeout to the department list put list params

func (*DepartmentListPutListParams) WithBody

WithBody adds the body to the department list put list params

func (*DepartmentListPutListParams) WithContext

WithContext adds the context to the department list put list params

func (*DepartmentListPutListParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the department list put list params

func (*DepartmentListPutListParams) WithTimeout

WithTimeout adds the timeout to the department list put list params

func (*DepartmentListPutListParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DepartmentListPutListReader

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

DepartmentListPutListReader is a Reader for the DepartmentListPutList structure.

func (*DepartmentListPutListReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DepartmentPostCreated

type DepartmentPostCreated struct {
	Payload *models.ResponseWrapperDepartment
}

DepartmentPostCreated handles this case with default header values.

successfully created

func NewDepartmentPostCreated

func NewDepartmentPostCreated() *DepartmentPostCreated

NewDepartmentPostCreated creates a DepartmentPostCreated with default headers values

func (*DepartmentPostCreated) Error

func (o *DepartmentPostCreated) Error() string

func (*DepartmentPostCreated) GetPayload

type DepartmentPostParams

type DepartmentPostParams struct {

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

	*/
	Body *models.Department

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

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

func NewDepartmentPostParams

func NewDepartmentPostParams() *DepartmentPostParams

NewDepartmentPostParams creates a new DepartmentPostParams object with the default values initialized.

func NewDepartmentPostParamsWithContext

func NewDepartmentPostParamsWithContext(ctx context.Context) *DepartmentPostParams

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

func NewDepartmentPostParamsWithHTTPClient

func NewDepartmentPostParamsWithHTTPClient(client *http.Client) *DepartmentPostParams

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

func NewDepartmentPostParamsWithTimeout

func NewDepartmentPostParamsWithTimeout(timeout time.Duration) *DepartmentPostParams

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

func (*DepartmentPostParams) SetBody

func (o *DepartmentPostParams) SetBody(body *models.Department)

SetBody adds the body to the department post params

func (*DepartmentPostParams) SetContext

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

SetContext adds the context to the department post params

func (*DepartmentPostParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the department post params

func (*DepartmentPostParams) SetTimeout

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

SetTimeout adds the timeout to the department post params

func (*DepartmentPostParams) WithBody

WithBody adds the body to the department post params

func (*DepartmentPostParams) WithContext

WithContext adds the context to the department post params

func (*DepartmentPostParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the department post params

func (*DepartmentPostParams) WithTimeout

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

WithTimeout adds the timeout to the department post params

func (*DepartmentPostParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DepartmentPostReader

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

DepartmentPostReader is a Reader for the DepartmentPost structure.

func (*DepartmentPostReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DepartmentPutOK

type DepartmentPutOK struct {
	Payload *models.ResponseWrapperDepartment
}

DepartmentPutOK handles this case with default header values.

successful operation

func NewDepartmentPutOK

func NewDepartmentPutOK() *DepartmentPutOK

NewDepartmentPutOK creates a DepartmentPutOK with default headers values

func (*DepartmentPutOK) Error

func (o *DepartmentPutOK) Error() string

func (*DepartmentPutOK) GetPayload

type DepartmentPutParams

type DepartmentPutParams struct {

	/*Body
	  Partial object describing what should be updated

	*/
	Body *models.Department
	/*ID
	  Element ID

	*/
	ID int32

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

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

func NewDepartmentPutParams

func NewDepartmentPutParams() *DepartmentPutParams

NewDepartmentPutParams creates a new DepartmentPutParams object with the default values initialized.

func NewDepartmentPutParamsWithContext

func NewDepartmentPutParamsWithContext(ctx context.Context) *DepartmentPutParams

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

func NewDepartmentPutParamsWithHTTPClient

func NewDepartmentPutParamsWithHTTPClient(client *http.Client) *DepartmentPutParams

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

func NewDepartmentPutParamsWithTimeout

func NewDepartmentPutParamsWithTimeout(timeout time.Duration) *DepartmentPutParams

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

func (*DepartmentPutParams) SetBody

func (o *DepartmentPutParams) SetBody(body *models.Department)

SetBody adds the body to the department put params

func (*DepartmentPutParams) SetContext

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

SetContext adds the context to the department put params

func (*DepartmentPutParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the department put params

func (*DepartmentPutParams) SetID

func (o *DepartmentPutParams) SetID(id int32)

SetID adds the id to the department put params

func (*DepartmentPutParams) SetTimeout

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

SetTimeout adds the timeout to the department put params

func (*DepartmentPutParams) WithBody

WithBody adds the body to the department put params

func (*DepartmentPutParams) WithContext

WithContext adds the context to the department put params

func (*DepartmentPutParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the department put params

func (*DepartmentPutParams) WithID

WithID adds the id to the department put params

func (*DepartmentPutParams) WithTimeout

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

WithTimeout adds the timeout to the department put params

func (*DepartmentPutParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DepartmentPutReader

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

DepartmentPutReader is a Reader for the DepartmentPut structure.

func (*DepartmentPutReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DepartmentSearchOK

type DepartmentSearchOK struct {
	Payload *models.ListResponseDepartment
}

DepartmentSearchOK handles this case with default header values.

successful operation

func NewDepartmentSearchOK

func NewDepartmentSearchOK() *DepartmentSearchOK

NewDepartmentSearchOK creates a DepartmentSearchOK with default headers values

func (*DepartmentSearchOK) Error

func (o *DepartmentSearchOK) Error() string

func (*DepartmentSearchOK) GetPayload

type DepartmentSearchParams

type DepartmentSearchParams struct {

	/*Count
	  Number of elements to return

	*/
	Count *int64
	/*DepartmentManagerID
	  List of IDs

	*/
	DepartmentManagerID *string
	/*DepartmentNumber
	  Containing

	*/
	DepartmentNumber *string
	/*Fields
	  Fields filter pattern

	*/
	Fields *string
	/*From
	  From index

	*/
	From *int64
	/*ID
	  List of IDs

	*/
	ID *string
	/*Name
	  Containing

	*/
	Name *string
	/*Sorting
	  Sorting pattern

	*/
	Sorting *string

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

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

func NewDepartmentSearchParams

func NewDepartmentSearchParams() *DepartmentSearchParams

NewDepartmentSearchParams creates a new DepartmentSearchParams object with the default values initialized.

func NewDepartmentSearchParamsWithContext

func NewDepartmentSearchParamsWithContext(ctx context.Context) *DepartmentSearchParams

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

func NewDepartmentSearchParamsWithHTTPClient

func NewDepartmentSearchParamsWithHTTPClient(client *http.Client) *DepartmentSearchParams

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

func NewDepartmentSearchParamsWithTimeout

func NewDepartmentSearchParamsWithTimeout(timeout time.Duration) *DepartmentSearchParams

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

func (*DepartmentSearchParams) SetContext

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

SetContext adds the context to the department search params

func (*DepartmentSearchParams) SetCount

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

SetCount adds the count to the department search params

func (*DepartmentSearchParams) SetDepartmentManagerID

func (o *DepartmentSearchParams) SetDepartmentManagerID(departmentManagerID *string)

SetDepartmentManagerID adds the departmentManagerId to the department search params

func (*DepartmentSearchParams) SetDepartmentNumber

func (o *DepartmentSearchParams) SetDepartmentNumber(departmentNumber *string)

SetDepartmentNumber adds the departmentNumber to the department search params

func (*DepartmentSearchParams) SetFields

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

SetFields adds the fields to the department search params

func (*DepartmentSearchParams) SetFrom

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

SetFrom adds the from to the department search params

func (*DepartmentSearchParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the department search params

func (*DepartmentSearchParams) SetID

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

SetID adds the id to the department search params

func (*DepartmentSearchParams) SetName

func (o *DepartmentSearchParams) SetName(name *string)

SetName adds the name to the department search params

func (*DepartmentSearchParams) SetSorting

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

SetSorting adds the sorting to the department search params

func (*DepartmentSearchParams) SetTimeout

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

SetTimeout adds the timeout to the department search params

func (*DepartmentSearchParams) WithContext

WithContext adds the context to the department search params

func (*DepartmentSearchParams) WithCount

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

WithCount adds the count to the department search params

func (*DepartmentSearchParams) WithDepartmentManagerID

func (o *DepartmentSearchParams) WithDepartmentManagerID(departmentManagerID *string) *DepartmentSearchParams

WithDepartmentManagerID adds the departmentManagerID to the department search params

func (*DepartmentSearchParams) WithDepartmentNumber

func (o *DepartmentSearchParams) WithDepartmentNumber(departmentNumber *string) *DepartmentSearchParams

WithDepartmentNumber adds the departmentNumber to the department search params

func (*DepartmentSearchParams) WithFields

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

WithFields adds the fields to the department search params

func (*DepartmentSearchParams) WithFrom

WithFrom adds the from to the department search params

func (*DepartmentSearchParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the department search params

func (*DepartmentSearchParams) WithID

WithID adds the id to the department search params

func (*DepartmentSearchParams) WithName

WithName adds the name to the department search params

func (*DepartmentSearchParams) WithSorting

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

WithSorting adds the sorting to the department search params

func (*DepartmentSearchParams) WithTimeout

WithTimeout adds the timeout to the department search params

func (*DepartmentSearchParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DepartmentSearchReader

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

DepartmentSearchReader is a Reader for the DepartmentSearch structure.

func (*DepartmentSearchReader) ReadResponse

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