Documentation ¶
Index ¶
- type Client
- func (a *Client) DepartmentDelete(params *DepartmentDeleteParams, authInfo runtime.ClientAuthInfoWriter) error
- func (a *Client) DepartmentGet(params *DepartmentGetParams, authInfo runtime.ClientAuthInfoWriter) (*DepartmentGetOK, error)
- func (a *Client) DepartmentListPostList(params *DepartmentListPostListParams, authInfo runtime.ClientAuthInfoWriter) (*DepartmentListPostListCreated, error)
- func (a *Client) DepartmentListPutList(params *DepartmentListPutListParams, authInfo runtime.ClientAuthInfoWriter) (*DepartmentListPutListOK, error)
- func (a *Client) DepartmentPost(params *DepartmentPostParams, authInfo runtime.ClientAuthInfoWriter) (*DepartmentPostCreated, error)
- func (a *Client) DepartmentPut(params *DepartmentPutParams, authInfo runtime.ClientAuthInfoWriter) (*DepartmentPutOK, error)
- func (a *Client) DepartmentSearch(params *DepartmentSearchParams, authInfo runtime.ClientAuthInfoWriter) (*DepartmentSearchOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientService
- type DepartmentDeleteDefault
- type DepartmentDeleteParams
- func NewDepartmentDeleteParams() *DepartmentDeleteParams
- func NewDepartmentDeleteParamsWithContext(ctx context.Context) *DepartmentDeleteParams
- func NewDepartmentDeleteParamsWithHTTPClient(client *http.Client) *DepartmentDeleteParams
- func NewDepartmentDeleteParamsWithTimeout(timeout time.Duration) *DepartmentDeleteParams
- func (o *DepartmentDeleteParams) SetContext(ctx context.Context)
- func (o *DepartmentDeleteParams) SetHTTPClient(client *http.Client)
- func (o *DepartmentDeleteParams) SetID(id int32)
- func (o *DepartmentDeleteParams) SetTimeout(timeout time.Duration)
- func (o *DepartmentDeleteParams) WithContext(ctx context.Context) *DepartmentDeleteParams
- func (o *DepartmentDeleteParams) WithHTTPClient(client *http.Client) *DepartmentDeleteParams
- func (o *DepartmentDeleteParams) WithID(id int32) *DepartmentDeleteParams
- func (o *DepartmentDeleteParams) WithTimeout(timeout time.Duration) *DepartmentDeleteParams
- func (o *DepartmentDeleteParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DepartmentDeleteReader
- type DepartmentGetOK
- type DepartmentGetParams
- func (o *DepartmentGetParams) SetContext(ctx context.Context)
- func (o *DepartmentGetParams) SetFields(fields *string)
- func (o *DepartmentGetParams) SetHTTPClient(client *http.Client)
- func (o *DepartmentGetParams) SetID(id int32)
- func (o *DepartmentGetParams) SetTimeout(timeout time.Duration)
- func (o *DepartmentGetParams) WithContext(ctx context.Context) *DepartmentGetParams
- func (o *DepartmentGetParams) WithFields(fields *string) *DepartmentGetParams
- func (o *DepartmentGetParams) WithHTTPClient(client *http.Client) *DepartmentGetParams
- func (o *DepartmentGetParams) WithID(id int32) *DepartmentGetParams
- func (o *DepartmentGetParams) WithTimeout(timeout time.Duration) *DepartmentGetParams
- func (o *DepartmentGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DepartmentGetReader
- type DepartmentListPostListCreated
- type DepartmentListPostListParams
- func NewDepartmentListPostListParams() *DepartmentListPostListParams
- func NewDepartmentListPostListParamsWithContext(ctx context.Context) *DepartmentListPostListParams
- func NewDepartmentListPostListParamsWithHTTPClient(client *http.Client) *DepartmentListPostListParams
- func NewDepartmentListPostListParamsWithTimeout(timeout time.Duration) *DepartmentListPostListParams
- func (o *DepartmentListPostListParams) SetBody(body []*models.Department)
- func (o *DepartmentListPostListParams) SetContext(ctx context.Context)
- func (o *DepartmentListPostListParams) SetHTTPClient(client *http.Client)
- func (o *DepartmentListPostListParams) SetTimeout(timeout time.Duration)
- func (o *DepartmentListPostListParams) WithBody(body []*models.Department) *DepartmentListPostListParams
- func (o *DepartmentListPostListParams) WithContext(ctx context.Context) *DepartmentListPostListParams
- func (o *DepartmentListPostListParams) WithHTTPClient(client *http.Client) *DepartmentListPostListParams
- func (o *DepartmentListPostListParams) WithTimeout(timeout time.Duration) *DepartmentListPostListParams
- func (o *DepartmentListPostListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DepartmentListPostListReader
- type DepartmentListPutListOK
- type DepartmentListPutListParams
- func NewDepartmentListPutListParams() *DepartmentListPutListParams
- func NewDepartmentListPutListParamsWithContext(ctx context.Context) *DepartmentListPutListParams
- func NewDepartmentListPutListParamsWithHTTPClient(client *http.Client) *DepartmentListPutListParams
- func NewDepartmentListPutListParamsWithTimeout(timeout time.Duration) *DepartmentListPutListParams
- func (o *DepartmentListPutListParams) SetBody(body []*models.Department)
- func (o *DepartmentListPutListParams) SetContext(ctx context.Context)
- func (o *DepartmentListPutListParams) SetHTTPClient(client *http.Client)
- func (o *DepartmentListPutListParams) SetTimeout(timeout time.Duration)
- func (o *DepartmentListPutListParams) WithBody(body []*models.Department) *DepartmentListPutListParams
- func (o *DepartmentListPutListParams) WithContext(ctx context.Context) *DepartmentListPutListParams
- func (o *DepartmentListPutListParams) WithHTTPClient(client *http.Client) *DepartmentListPutListParams
- func (o *DepartmentListPutListParams) WithTimeout(timeout time.Duration) *DepartmentListPutListParams
- func (o *DepartmentListPutListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DepartmentListPutListReader
- type DepartmentPostCreated
- type DepartmentPostParams
- func NewDepartmentPostParams() *DepartmentPostParams
- func NewDepartmentPostParamsWithContext(ctx context.Context) *DepartmentPostParams
- func NewDepartmentPostParamsWithHTTPClient(client *http.Client) *DepartmentPostParams
- func NewDepartmentPostParamsWithTimeout(timeout time.Duration) *DepartmentPostParams
- func (o *DepartmentPostParams) SetBody(body *models.Department)
- func (o *DepartmentPostParams) SetContext(ctx context.Context)
- func (o *DepartmentPostParams) SetHTTPClient(client *http.Client)
- func (o *DepartmentPostParams) SetTimeout(timeout time.Duration)
- func (o *DepartmentPostParams) WithBody(body *models.Department) *DepartmentPostParams
- func (o *DepartmentPostParams) WithContext(ctx context.Context) *DepartmentPostParams
- func (o *DepartmentPostParams) WithHTTPClient(client *http.Client) *DepartmentPostParams
- func (o *DepartmentPostParams) WithTimeout(timeout time.Duration) *DepartmentPostParams
- func (o *DepartmentPostParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DepartmentPostReader
- type DepartmentPutOK
- type DepartmentPutParams
- func (o *DepartmentPutParams) SetBody(body *models.Department)
- func (o *DepartmentPutParams) SetContext(ctx context.Context)
- func (o *DepartmentPutParams) SetHTTPClient(client *http.Client)
- func (o *DepartmentPutParams) SetID(id int32)
- func (o *DepartmentPutParams) SetTimeout(timeout time.Duration)
- func (o *DepartmentPutParams) WithBody(body *models.Department) *DepartmentPutParams
- func (o *DepartmentPutParams) WithContext(ctx context.Context) *DepartmentPutParams
- func (o *DepartmentPutParams) WithHTTPClient(client *http.Client) *DepartmentPutParams
- func (o *DepartmentPutParams) WithID(id int32) *DepartmentPutParams
- func (o *DepartmentPutParams) WithTimeout(timeout time.Duration) *DepartmentPutParams
- func (o *DepartmentPutParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DepartmentPutReader
- type DepartmentSearchOK
- type DepartmentSearchParams
- func NewDepartmentSearchParams() *DepartmentSearchParams
- func NewDepartmentSearchParamsWithContext(ctx context.Context) *DepartmentSearchParams
- func NewDepartmentSearchParamsWithHTTPClient(client *http.Client) *DepartmentSearchParams
- func NewDepartmentSearchParamsWithTimeout(timeout time.Duration) *DepartmentSearchParams
- func (o *DepartmentSearchParams) SetContext(ctx context.Context)
- func (o *DepartmentSearchParams) SetCount(count *int64)
- func (o *DepartmentSearchParams) SetDepartmentManagerID(departmentManagerID *string)
- func (o *DepartmentSearchParams) SetDepartmentNumber(departmentNumber *string)
- func (o *DepartmentSearchParams) SetFields(fields *string)
- func (o *DepartmentSearchParams) SetFrom(from *int64)
- func (o *DepartmentSearchParams) SetHTTPClient(client *http.Client)
- func (o *DepartmentSearchParams) SetID(id *string)
- func (o *DepartmentSearchParams) SetName(name *string)
- func (o *DepartmentSearchParams) SetSorting(sorting *string)
- func (o *DepartmentSearchParams) SetTimeout(timeout time.Duration)
- func (o *DepartmentSearchParams) WithContext(ctx context.Context) *DepartmentSearchParams
- func (o *DepartmentSearchParams) WithCount(count *int64) *DepartmentSearchParams
- func (o *DepartmentSearchParams) WithDepartmentManagerID(departmentManagerID *string) *DepartmentSearchParams
- func (o *DepartmentSearchParams) WithDepartmentNumber(departmentNumber *string) *DepartmentSearchParams
- func (o *DepartmentSearchParams) WithFields(fields *string) *DepartmentSearchParams
- func (o *DepartmentSearchParams) WithFrom(from *int64) *DepartmentSearchParams
- func (o *DepartmentSearchParams) WithHTTPClient(client *http.Client) *DepartmentSearchParams
- func (o *DepartmentSearchParams) WithID(id *string) *DepartmentSearchParams
- func (o *DepartmentSearchParams) WithName(name *string) *DepartmentSearchParams
- func (o *DepartmentSearchParams) WithSorting(sorting *string) *DepartmentSearchParams
- func (o *DepartmentSearchParams) WithTimeout(timeout time.Duration) *DepartmentSearchParams
- func (o *DepartmentSearchParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DepartmentSearchReader
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 ¶
func (a *Client) DepartmentListPostList(params *DepartmentListPostListParams, authInfo runtime.ClientAuthInfoWriter) (*DepartmentListPostListCreated, error)
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 ¶
func (o *DepartmentDeleteParams) WithContext(ctx context.Context) *DepartmentDeleteParams
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 ¶
func (o *DepartmentDeleteParams) WithID(id int32) *DepartmentDeleteParams
WithID adds the id to the department delete params
func (*DepartmentDeleteParams) WithTimeout ¶
func (o *DepartmentDeleteParams) WithTimeout(timeout time.Duration) *DepartmentDeleteParams
WithTimeout adds the timeout to the department delete params
func (*DepartmentDeleteParams) WriteToRequest ¶
func (o *DepartmentDeleteParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *DepartmentGetOK) GetPayload() *models.ResponseWrapperDepartment
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 ¶
func (o *DepartmentGetParams) WithContext(ctx context.Context) *DepartmentGetParams
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 ¶
func (o *DepartmentGetParams) WithID(id int32) *DepartmentGetParams
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 (o *DepartmentListPostListCreated) Error() string
func (*DepartmentListPostListCreated) GetPayload ¶
func (o *DepartmentListPostListCreated) GetPayload() *models.ListResponseDepartment
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 ¶
func (o *DepartmentListPostListParams) WithBody(body []*models.Department) *DepartmentListPostListParams
WithBody adds the body to the department list post list params
func (*DepartmentListPostListParams) WithContext ¶
func (o *DepartmentListPostListParams) WithContext(ctx context.Context) *DepartmentListPostListParams
WithContext adds the context to the department list post list params
func (*DepartmentListPostListParams) WithHTTPClient ¶
func (o *DepartmentListPostListParams) WithHTTPClient(client *http.Client) *DepartmentListPostListParams
WithHTTPClient adds the HTTPClient to the department list post list params
func (*DepartmentListPostListParams) WithTimeout ¶
func (o *DepartmentListPostListParams) WithTimeout(timeout time.Duration) *DepartmentListPostListParams
WithTimeout adds the timeout to the department list post list params
func (*DepartmentListPostListParams) WriteToRequest ¶
func (o *DepartmentListPostListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *DepartmentListPutListOK) GetPayload() *models.ListResponseDepartment
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 ¶
func (o *DepartmentListPutListParams) WithBody(body []*models.Department) *DepartmentListPutListParams
WithBody adds the body to the department list put list params
func (*DepartmentListPutListParams) WithContext ¶
func (o *DepartmentListPutListParams) WithContext(ctx context.Context) *DepartmentListPutListParams
WithContext adds the context to the department list put list params
func (*DepartmentListPutListParams) WithHTTPClient ¶
func (o *DepartmentListPutListParams) WithHTTPClient(client *http.Client) *DepartmentListPutListParams
WithHTTPClient adds the HTTPClient to the department list put list params
func (*DepartmentListPutListParams) WithTimeout ¶
func (o *DepartmentListPutListParams) WithTimeout(timeout time.Duration) *DepartmentListPutListParams
WithTimeout adds the timeout to the department list put list params
func (*DepartmentListPutListParams) WriteToRequest ¶
func (o *DepartmentListPutListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *DepartmentPostCreated) GetPayload() *models.ResponseWrapperDepartment
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 ¶
func (o *DepartmentPostParams) WithBody(body *models.Department) *DepartmentPostParams
WithBody adds the body to the department post params
func (*DepartmentPostParams) WithContext ¶
func (o *DepartmentPostParams) WithContext(ctx context.Context) *DepartmentPostParams
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 ¶
func (o *DepartmentPutOK) GetPayload() *models.ResponseWrapperDepartment
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 ¶
func (o *DepartmentPutParams) WithBody(body *models.Department) *DepartmentPutParams
WithBody adds the body to the department put params
func (*DepartmentPutParams) WithContext ¶
func (o *DepartmentPutParams) WithContext(ctx context.Context) *DepartmentPutParams
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 ¶
func (o *DepartmentPutParams) WithID(id int32) *DepartmentPutParams
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 ¶
func (o *DepartmentSearchOK) GetPayload() *models.ListResponseDepartment
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 ¶
func (o *DepartmentSearchParams) WithContext(ctx context.Context) *DepartmentSearchParams
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 ¶
func (o *DepartmentSearchParams) WithFrom(from *int64) *DepartmentSearchParams
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 ¶
func (o *DepartmentSearchParams) WithID(id *string) *DepartmentSearchParams
WithID adds the id to the department search params
func (*DepartmentSearchParams) WithName ¶
func (o *DepartmentSearchParams) WithName(name *string) *DepartmentSearchParams
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 ¶
func (o *DepartmentSearchParams) WithTimeout(timeout time.Duration) *DepartmentSearchParams
WithTimeout adds the timeout to the department search params
func (*DepartmentSearchParams) WriteToRequest ¶
func (o *DepartmentSearchParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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.
Source Files ¶
- department_client.go
- department_delete_parameters.go
- department_delete_responses.go
- department_get_parameters.go
- department_get_responses.go
- department_list_post_list_parameters.go
- department_list_post_list_responses.go
- department_list_put_list_parameters.go
- department_list_put_list_responses.go
- department_post_parameters.go
- department_post_responses.go
- department_put_parameters.go
- department_put_responses.go
- department_search_parameters.go
- department_search_responses.go