Documentation ¶
Index ¶
- type Client
- func (a *Client) CreateSubCategoryByCategory(params *CreateSubCategoryByCategoryParams) (*CreateSubCategoryByCategoryCreated, error)
- func (a *Client) DeleteSubCategories(params *DeleteSubCategoriesParams) (*DeleteSubCategoriesOK, error)
- func (a *Client) DeleteSubCategoriesByCategory(params *DeleteSubCategoriesByCategoryParams) (*DeleteSubCategoriesByCategoryOK, error)
- func (a *Client) DeleteSubCategory(params *DeleteSubCategoryParams) (*DeleteSubCategoryOK, error)
- func (a *Client) GetSubCategories(params *GetSubCategoriesParams) (*GetSubCategoriesOK, error)
- func (a *Client) GetSubCategoriesByCategory(params *GetSubCategoriesByCategoryParams) (*GetSubCategoriesByCategoryOK, error)
- func (a *Client) GetSubCategory(params *GetSubCategoryParams) (*GetSubCategoryOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) UpdateSubCategory(params *UpdateSubCategoryParams) (*UpdateSubCategoryCreated, error)
- type CreateSubCategoryBadRequest
- type CreateSubCategoryByCategoryBadRequest
- type CreateSubCategoryByCategoryCreated
- type CreateSubCategoryByCategoryParams
- func NewCreateSubCategoryByCategoryParams() *CreateSubCategoryByCategoryParams
- func NewCreateSubCategoryByCategoryParamsWithContext(ctx context.Context) *CreateSubCategoryByCategoryParams
- func NewCreateSubCategoryByCategoryParamsWithHTTPClient(client *http.Client) *CreateSubCategoryByCategoryParams
- func NewCreateSubCategoryByCategoryParamsWithTimeout(timeout time.Duration) *CreateSubCategoryByCategoryParams
- func (o *CreateSubCategoryByCategoryParams) SetBody(body *models.SubCategory)
- func (o *CreateSubCategoryByCategoryParams) SetContext(ctx context.Context)
- func (o *CreateSubCategoryByCategoryParams) SetHTTPClient(client *http.Client)
- func (o *CreateSubCategoryByCategoryParams) SetID(id int64)
- func (o *CreateSubCategoryByCategoryParams) SetTimeout(timeout time.Duration)
- func (o *CreateSubCategoryByCategoryParams) WithBody(body *models.SubCategory) *CreateSubCategoryByCategoryParams
- func (o *CreateSubCategoryByCategoryParams) WithContext(ctx context.Context) *CreateSubCategoryByCategoryParams
- func (o *CreateSubCategoryByCategoryParams) WithHTTPClient(client *http.Client) *CreateSubCategoryByCategoryParams
- func (o *CreateSubCategoryByCategoryParams) WithID(id int64) *CreateSubCategoryByCategoryParams
- func (o *CreateSubCategoryByCategoryParams) WithTimeout(timeout time.Duration) *CreateSubCategoryByCategoryParams
- func (o *CreateSubCategoryByCategoryParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateSubCategoryByCategoryReader
- type CreateSubCategoryCreated
- type CreateSubCategoryParams
- func NewCreateSubCategoryParams() *CreateSubCategoryParams
- func NewCreateSubCategoryParamsWithContext(ctx context.Context) *CreateSubCategoryParams
- func NewCreateSubCategoryParamsWithHTTPClient(client *http.Client) *CreateSubCategoryParams
- func NewCreateSubCategoryParamsWithTimeout(timeout time.Duration) *CreateSubCategoryParams
- func (o *CreateSubCategoryParams) SetBody(body *models.SubCategory)
- func (o *CreateSubCategoryParams) SetContext(ctx context.Context)
- func (o *CreateSubCategoryParams) SetHTTPClient(client *http.Client)
- func (o *CreateSubCategoryParams) SetTimeout(timeout time.Duration)
- func (o *CreateSubCategoryParams) WithBody(body *models.SubCategory) *CreateSubCategoryParams
- func (o *CreateSubCategoryParams) WithContext(ctx context.Context) *CreateSubCategoryParams
- func (o *CreateSubCategoryParams) WithHTTPClient(client *http.Client) *CreateSubCategoryParams
- func (o *CreateSubCategoryParams) WithTimeout(timeout time.Duration) *CreateSubCategoryParams
- func (o *CreateSubCategoryParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateSubCategoryReader
- type DeleteSubCategoriesByCategoryNotFound
- type DeleteSubCategoriesByCategoryOK
- type DeleteSubCategoriesByCategoryParams
- func NewDeleteSubCategoriesByCategoryParams() *DeleteSubCategoriesByCategoryParams
- func NewDeleteSubCategoriesByCategoryParamsWithContext(ctx context.Context) *DeleteSubCategoriesByCategoryParams
- func NewDeleteSubCategoriesByCategoryParamsWithHTTPClient(client *http.Client) *DeleteSubCategoriesByCategoryParams
- func NewDeleteSubCategoriesByCategoryParamsWithTimeout(timeout time.Duration) *DeleteSubCategoriesByCategoryParams
- func (o *DeleteSubCategoriesByCategoryParams) SetContext(ctx context.Context)
- func (o *DeleteSubCategoriesByCategoryParams) SetHTTPClient(client *http.Client)
- func (o *DeleteSubCategoriesByCategoryParams) SetID(id int64)
- func (o *DeleteSubCategoriesByCategoryParams) SetTimeout(timeout time.Duration)
- func (o *DeleteSubCategoriesByCategoryParams) WithContext(ctx context.Context) *DeleteSubCategoriesByCategoryParams
- func (o *DeleteSubCategoriesByCategoryParams) WithHTTPClient(client *http.Client) *DeleteSubCategoriesByCategoryParams
- func (o *DeleteSubCategoriesByCategoryParams) WithID(id int64) *DeleteSubCategoriesByCategoryParams
- func (o *DeleteSubCategoriesByCategoryParams) WithTimeout(timeout time.Duration) *DeleteSubCategoriesByCategoryParams
- func (o *DeleteSubCategoriesByCategoryParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteSubCategoriesByCategoryReader
- type DeleteSubCategoriesNotFound
- type DeleteSubCategoriesOK
- type DeleteSubCategoriesParams
- func NewDeleteSubCategoriesParams() *DeleteSubCategoriesParams
- func NewDeleteSubCategoriesParamsWithContext(ctx context.Context) *DeleteSubCategoriesParams
- func NewDeleteSubCategoriesParamsWithHTTPClient(client *http.Client) *DeleteSubCategoriesParams
- func NewDeleteSubCategoriesParamsWithTimeout(timeout time.Duration) *DeleteSubCategoriesParams
- func (o *DeleteSubCategoriesParams) SetContext(ctx context.Context)
- func (o *DeleteSubCategoriesParams) SetHTTPClient(client *http.Client)
- func (o *DeleteSubCategoriesParams) SetTimeout(timeout time.Duration)
- func (o *DeleteSubCategoriesParams) WithContext(ctx context.Context) *DeleteSubCategoriesParams
- func (o *DeleteSubCategoriesParams) WithHTTPClient(client *http.Client) *DeleteSubCategoriesParams
- func (o *DeleteSubCategoriesParams) WithTimeout(timeout time.Duration) *DeleteSubCategoriesParams
- func (o *DeleteSubCategoriesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteSubCategoriesReader
- type DeleteSubCategoryBadRequest
- type DeleteSubCategoryNotFound
- type DeleteSubCategoryOK
- type DeleteSubCategoryParams
- func NewDeleteSubCategoryParams() *DeleteSubCategoryParams
- func NewDeleteSubCategoryParamsWithContext(ctx context.Context) *DeleteSubCategoryParams
- func NewDeleteSubCategoryParamsWithHTTPClient(client *http.Client) *DeleteSubCategoryParams
- func NewDeleteSubCategoryParamsWithTimeout(timeout time.Duration) *DeleteSubCategoryParams
- func (o *DeleteSubCategoryParams) SetContext(ctx context.Context)
- func (o *DeleteSubCategoryParams) SetHTTPClient(client *http.Client)
- func (o *DeleteSubCategoryParams) SetID(id int64)
- func (o *DeleteSubCategoryParams) SetTimeout(timeout time.Duration)
- func (o *DeleteSubCategoryParams) WithContext(ctx context.Context) *DeleteSubCategoryParams
- func (o *DeleteSubCategoryParams) WithHTTPClient(client *http.Client) *DeleteSubCategoryParams
- func (o *DeleteSubCategoryParams) WithID(id int64) *DeleteSubCategoryParams
- func (o *DeleteSubCategoryParams) WithTimeout(timeout time.Duration) *DeleteSubCategoryParams
- func (o *DeleteSubCategoryParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteSubCategoryReader
- type GetSubCategoriesByCategoryNotFound
- type GetSubCategoriesByCategoryOK
- type GetSubCategoriesByCategoryParams
- func NewGetSubCategoriesByCategoryParams() *GetSubCategoriesByCategoryParams
- func NewGetSubCategoriesByCategoryParamsWithContext(ctx context.Context) *GetSubCategoriesByCategoryParams
- func NewGetSubCategoriesByCategoryParamsWithHTTPClient(client *http.Client) *GetSubCategoriesByCategoryParams
- func NewGetSubCategoriesByCategoryParamsWithTimeout(timeout time.Duration) *GetSubCategoriesByCategoryParams
- func (o *GetSubCategoriesByCategoryParams) SetContext(ctx context.Context)
- func (o *GetSubCategoriesByCategoryParams) SetHTTPClient(client *http.Client)
- func (o *GetSubCategoriesByCategoryParams) SetID(id int64)
- func (o *GetSubCategoriesByCategoryParams) SetTimeout(timeout time.Duration)
- func (o *GetSubCategoriesByCategoryParams) WithContext(ctx context.Context) *GetSubCategoriesByCategoryParams
- func (o *GetSubCategoriesByCategoryParams) WithHTTPClient(client *http.Client) *GetSubCategoriesByCategoryParams
- func (o *GetSubCategoriesByCategoryParams) WithID(id int64) *GetSubCategoriesByCategoryParams
- func (o *GetSubCategoriesByCategoryParams) WithTimeout(timeout time.Duration) *GetSubCategoriesByCategoryParams
- func (o *GetSubCategoriesByCategoryParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetSubCategoriesByCategoryReader
- type GetSubCategoriesNotFound
- type GetSubCategoriesOK
- type GetSubCategoriesParams
- func NewGetSubCategoriesParams() *GetSubCategoriesParams
- func NewGetSubCategoriesParamsWithContext(ctx context.Context) *GetSubCategoriesParams
- func NewGetSubCategoriesParamsWithHTTPClient(client *http.Client) *GetSubCategoriesParams
- func NewGetSubCategoriesParamsWithTimeout(timeout time.Duration) *GetSubCategoriesParams
- func (o *GetSubCategoriesParams) SetContext(ctx context.Context)
- func (o *GetSubCategoriesParams) SetHTTPClient(client *http.Client)
- func (o *GetSubCategoriesParams) SetTimeout(timeout time.Duration)
- func (o *GetSubCategoriesParams) WithContext(ctx context.Context) *GetSubCategoriesParams
- func (o *GetSubCategoriesParams) WithHTTPClient(client *http.Client) *GetSubCategoriesParams
- func (o *GetSubCategoriesParams) WithTimeout(timeout time.Duration) *GetSubCategoriesParams
- func (o *GetSubCategoriesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetSubCategoriesReader
- type GetSubCategoryBadRequest
- type GetSubCategoryNotFound
- type GetSubCategoryOK
- type GetSubCategoryParams
- func NewGetSubCategoryParams() *GetSubCategoryParams
- func NewGetSubCategoryParamsWithContext(ctx context.Context) *GetSubCategoryParams
- func NewGetSubCategoryParamsWithHTTPClient(client *http.Client) *GetSubCategoryParams
- func NewGetSubCategoryParamsWithTimeout(timeout time.Duration) *GetSubCategoryParams
- func (o *GetSubCategoryParams) SetContext(ctx context.Context)
- func (o *GetSubCategoryParams) SetHTTPClient(client *http.Client)
- func (o *GetSubCategoryParams) SetID(id int64)
- func (o *GetSubCategoryParams) SetTimeout(timeout time.Duration)
- func (o *GetSubCategoryParams) WithContext(ctx context.Context) *GetSubCategoryParams
- func (o *GetSubCategoryParams) WithHTTPClient(client *http.Client) *GetSubCategoryParams
- func (o *GetSubCategoryParams) WithID(id int64) *GetSubCategoryParams
- func (o *GetSubCategoryParams) WithTimeout(timeout time.Duration) *GetSubCategoryParams
- func (o *GetSubCategoryParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetSubCategoryReader
- type UpdateSubCategoryBadRequest
- type UpdateSubCategoryCreated
- type UpdateSubCategoryNotFound
- type UpdateSubCategoryParams
- func NewUpdateSubCategoryParams() *UpdateSubCategoryParams
- func NewUpdateSubCategoryParamsWithContext(ctx context.Context) *UpdateSubCategoryParams
- func NewUpdateSubCategoryParamsWithHTTPClient(client *http.Client) *UpdateSubCategoryParams
- func NewUpdateSubCategoryParamsWithTimeout(timeout time.Duration) *UpdateSubCategoryParams
- func (o *UpdateSubCategoryParams) SetBody(body *models.SubCategory)
- func (o *UpdateSubCategoryParams) SetContext(ctx context.Context)
- func (o *UpdateSubCategoryParams) SetHTTPClient(client *http.Client)
- func (o *UpdateSubCategoryParams) SetID(id int64)
- func (o *UpdateSubCategoryParams) SetTimeout(timeout time.Duration)
- func (o *UpdateSubCategoryParams) WithBody(body *models.SubCategory) *UpdateSubCategoryParams
- func (o *UpdateSubCategoryParams) WithContext(ctx context.Context) *UpdateSubCategoryParams
- func (o *UpdateSubCategoryParams) WithHTTPClient(client *http.Client) *UpdateSubCategoryParams
- func (o *UpdateSubCategoryParams) WithID(id int64) *UpdateSubCategoryParams
- func (o *UpdateSubCategoryParams) WithTimeout(timeout time.Duration) *UpdateSubCategoryParams
- func (o *UpdateSubCategoryParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdateSubCategoryReader
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 subcategories API
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client
New creates a new subcategories API client.
func (*Client) CreateSubCategoryByCategory ¶
func (a *Client) CreateSubCategoryByCategory(params *CreateSubCategoryByCategoryParams) (*CreateSubCategoryByCategoryCreated, error)
CreateSubCategoryByCategory creates a sub category by category
func (*Client) DeleteSubCategories ¶
func (a *Client) DeleteSubCategories(params *DeleteSubCategoriesParams) (*DeleteSubCategoriesOK, error)
DeleteSubCategories deletes all sub categories
removes all subcategories.
func (*Client) DeleteSubCategoriesByCategory ¶
func (a *Client) DeleteSubCategoriesByCategory(params *DeleteSubCategoriesByCategoryParams) (*DeleteSubCategoriesByCategoryOK, error)
DeleteSubCategoriesByCategory deletes all sub categories by category
removes all subcategories from a given category.
func (*Client) DeleteSubCategory ¶
func (a *Client) DeleteSubCategory(params *DeleteSubCategoryParams) (*DeleteSubCategoryOK, error)
DeleteSubCategory deletes a specific sub category
removes a specfic subcategory.
func (*Client) GetSubCategories ¶
func (a *Client) GetSubCategories(params *GetSubCategoriesParams) (*GetSubCategoriesOK, error)
GetSubCategories gets all sub categories
func (*Client) GetSubCategoriesByCategory ¶
func (a *Client) GetSubCategoriesByCategory(params *GetSubCategoriesByCategoryParams) (*GetSubCategoriesByCategoryOK, error)
GetSubCategoriesByCategory gets all sub categories by category
func (*Client) GetSubCategory ¶
func (a *Client) GetSubCategory(params *GetSubCategoryParams) (*GetSubCategoryOK, error)
GetSubCategory gets a specific sub category
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
func (*Client) UpdateSubCategory ¶
func (a *Client) UpdateSubCategory(params *UpdateSubCategoryParams) (*UpdateSubCategoryCreated, error)
UpdateSubCategory updates a specific sub category
type CreateSubCategoryBadRequest ¶
type CreateSubCategoryBadRequest struct { }
CreateSubCategoryBadRequest handles this case with default header values.
Invalid input
func NewCreateSubCategoryBadRequest ¶
func NewCreateSubCategoryBadRequest() *CreateSubCategoryBadRequest
NewCreateSubCategoryBadRequest creates a CreateSubCategoryBadRequest with default headers values
func (*CreateSubCategoryBadRequest) Error ¶
func (o *CreateSubCategoryBadRequest) Error() string
type CreateSubCategoryByCategoryBadRequest ¶
type CreateSubCategoryByCategoryBadRequest struct { }
CreateSubCategoryByCategoryBadRequest handles this case with default header values.
Invalid input
func NewCreateSubCategoryByCategoryBadRequest ¶
func NewCreateSubCategoryByCategoryBadRequest() *CreateSubCategoryByCategoryBadRequest
NewCreateSubCategoryByCategoryBadRequest creates a CreateSubCategoryByCategoryBadRequest with default headers values
func (*CreateSubCategoryByCategoryBadRequest) Error ¶
func (o *CreateSubCategoryByCategoryBadRequest) Error() string
type CreateSubCategoryByCategoryCreated ¶
type CreateSubCategoryByCategoryCreated struct {
Payload *models.SubCategory
}
CreateSubCategoryByCategoryCreated handles this case with default header values.
SubCategory Created
func NewCreateSubCategoryByCategoryCreated ¶
func NewCreateSubCategoryByCategoryCreated() *CreateSubCategoryByCategoryCreated
NewCreateSubCategoryByCategoryCreated creates a CreateSubCategoryByCategoryCreated with default headers values
func (*CreateSubCategoryByCategoryCreated) Error ¶
func (o *CreateSubCategoryByCategoryCreated) Error() string
type CreateSubCategoryByCategoryParams ¶
type CreateSubCategoryByCategoryParams struct { /*Body Category that needs to be added to the DB */ Body *models.SubCategory /*ID Category ID Associated to Subcategory(s) */ ID int64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
CreateSubCategoryByCategoryParams contains all the parameters to send to the API endpoint for the create sub category by category operation typically these are written to a http.Request
func NewCreateSubCategoryByCategoryParams ¶
func NewCreateSubCategoryByCategoryParams() *CreateSubCategoryByCategoryParams
NewCreateSubCategoryByCategoryParams creates a new CreateSubCategoryByCategoryParams object with the default values initialized.
func NewCreateSubCategoryByCategoryParamsWithContext ¶
func NewCreateSubCategoryByCategoryParamsWithContext(ctx context.Context) *CreateSubCategoryByCategoryParams
NewCreateSubCategoryByCategoryParamsWithContext creates a new CreateSubCategoryByCategoryParams object with the default values initialized, and the ability to set a context for a request
func NewCreateSubCategoryByCategoryParamsWithHTTPClient ¶
func NewCreateSubCategoryByCategoryParamsWithHTTPClient(client *http.Client) *CreateSubCategoryByCategoryParams
NewCreateSubCategoryByCategoryParamsWithHTTPClient creates a new CreateSubCategoryByCategoryParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewCreateSubCategoryByCategoryParamsWithTimeout ¶
func NewCreateSubCategoryByCategoryParamsWithTimeout(timeout time.Duration) *CreateSubCategoryByCategoryParams
NewCreateSubCategoryByCategoryParamsWithTimeout creates a new CreateSubCategoryByCategoryParams object with the default values initialized, and the ability to set a timeout on a request
func (*CreateSubCategoryByCategoryParams) SetBody ¶
func (o *CreateSubCategoryByCategoryParams) SetBody(body *models.SubCategory)
SetBody adds the body to the create sub category by category params
func (*CreateSubCategoryByCategoryParams) SetContext ¶
func (o *CreateSubCategoryByCategoryParams) SetContext(ctx context.Context)
SetContext adds the context to the create sub category by category params
func (*CreateSubCategoryByCategoryParams) SetHTTPClient ¶
func (o *CreateSubCategoryByCategoryParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the create sub category by category params
func (*CreateSubCategoryByCategoryParams) SetID ¶
func (o *CreateSubCategoryByCategoryParams) SetID(id int64)
SetID adds the id to the create sub category by category params
func (*CreateSubCategoryByCategoryParams) SetTimeout ¶
func (o *CreateSubCategoryByCategoryParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the create sub category by category params
func (*CreateSubCategoryByCategoryParams) WithBody ¶
func (o *CreateSubCategoryByCategoryParams) WithBody(body *models.SubCategory) *CreateSubCategoryByCategoryParams
WithBody adds the body to the create sub category by category params
func (*CreateSubCategoryByCategoryParams) WithContext ¶
func (o *CreateSubCategoryByCategoryParams) WithContext(ctx context.Context) *CreateSubCategoryByCategoryParams
WithContext adds the context to the create sub category by category params
func (*CreateSubCategoryByCategoryParams) WithHTTPClient ¶
func (o *CreateSubCategoryByCategoryParams) WithHTTPClient(client *http.Client) *CreateSubCategoryByCategoryParams
WithHTTPClient adds the HTTPClient to the create sub category by category params
func (*CreateSubCategoryByCategoryParams) WithID ¶
func (o *CreateSubCategoryByCategoryParams) WithID(id int64) *CreateSubCategoryByCategoryParams
WithID adds the id to the create sub category by category params
func (*CreateSubCategoryByCategoryParams) WithTimeout ¶
func (o *CreateSubCategoryByCategoryParams) WithTimeout(timeout time.Duration) *CreateSubCategoryByCategoryParams
WithTimeout adds the timeout to the create sub category by category params
func (*CreateSubCategoryByCategoryParams) WriteToRequest ¶
func (o *CreateSubCategoryByCategoryParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CreateSubCategoryByCategoryReader ¶
type CreateSubCategoryByCategoryReader struct {
// contains filtered or unexported fields
}
CreateSubCategoryByCategoryReader is a Reader for the CreateSubCategoryByCategory structure.
func (*CreateSubCategoryByCategoryReader) ReadResponse ¶
func (o *CreateSubCategoryByCategoryReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type CreateSubCategoryCreated ¶
type CreateSubCategoryCreated struct {
Payload *models.SubCategory
}
CreateSubCategoryCreated handles this case with default header values.
SubCategory Created
func NewCreateSubCategoryCreated ¶
func NewCreateSubCategoryCreated() *CreateSubCategoryCreated
NewCreateSubCategoryCreated creates a CreateSubCategoryCreated with default headers values
func (*CreateSubCategoryCreated) Error ¶
func (o *CreateSubCategoryCreated) Error() string
type CreateSubCategoryParams ¶
type CreateSubCategoryParams struct { /*Body Category that needs to be added to the DB */ Body *models.SubCategory Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
CreateSubCategoryParams contains all the parameters to send to the API endpoint for the create sub category operation typically these are written to a http.Request
func NewCreateSubCategoryParams ¶
func NewCreateSubCategoryParams() *CreateSubCategoryParams
NewCreateSubCategoryParams creates a new CreateSubCategoryParams object with the default values initialized.
func NewCreateSubCategoryParamsWithContext ¶
func NewCreateSubCategoryParamsWithContext(ctx context.Context) *CreateSubCategoryParams
NewCreateSubCategoryParamsWithContext creates a new CreateSubCategoryParams object with the default values initialized, and the ability to set a context for a request
func NewCreateSubCategoryParamsWithHTTPClient ¶
func NewCreateSubCategoryParamsWithHTTPClient(client *http.Client) *CreateSubCategoryParams
NewCreateSubCategoryParamsWithHTTPClient creates a new CreateSubCategoryParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewCreateSubCategoryParamsWithTimeout ¶
func NewCreateSubCategoryParamsWithTimeout(timeout time.Duration) *CreateSubCategoryParams
NewCreateSubCategoryParamsWithTimeout creates a new CreateSubCategoryParams object with the default values initialized, and the ability to set a timeout on a request
func (*CreateSubCategoryParams) SetBody ¶
func (o *CreateSubCategoryParams) SetBody(body *models.SubCategory)
SetBody adds the body to the create sub category params
func (*CreateSubCategoryParams) SetContext ¶
func (o *CreateSubCategoryParams) SetContext(ctx context.Context)
SetContext adds the context to the create sub category params
func (*CreateSubCategoryParams) SetHTTPClient ¶
func (o *CreateSubCategoryParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the create sub category params
func (*CreateSubCategoryParams) SetTimeout ¶
func (o *CreateSubCategoryParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the create sub category params
func (*CreateSubCategoryParams) WithBody ¶
func (o *CreateSubCategoryParams) WithBody(body *models.SubCategory) *CreateSubCategoryParams
WithBody adds the body to the create sub category params
func (*CreateSubCategoryParams) WithContext ¶
func (o *CreateSubCategoryParams) WithContext(ctx context.Context) *CreateSubCategoryParams
WithContext adds the context to the create sub category params
func (*CreateSubCategoryParams) WithHTTPClient ¶
func (o *CreateSubCategoryParams) WithHTTPClient(client *http.Client) *CreateSubCategoryParams
WithHTTPClient adds the HTTPClient to the create sub category params
func (*CreateSubCategoryParams) WithTimeout ¶
func (o *CreateSubCategoryParams) WithTimeout(timeout time.Duration) *CreateSubCategoryParams
WithTimeout adds the timeout to the create sub category params
func (*CreateSubCategoryParams) WriteToRequest ¶
func (o *CreateSubCategoryParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CreateSubCategoryReader ¶
type CreateSubCategoryReader struct {
// contains filtered or unexported fields
}
CreateSubCategoryReader is a Reader for the CreateSubCategory structure.
func (*CreateSubCategoryReader) ReadResponse ¶
func (o *CreateSubCategoryReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type DeleteSubCategoriesByCategoryNotFound ¶
type DeleteSubCategoriesByCategoryNotFound struct { }
DeleteSubCategoriesByCategoryNotFound handles this case with default header values.
No items found
func NewDeleteSubCategoriesByCategoryNotFound ¶
func NewDeleteSubCategoriesByCategoryNotFound() *DeleteSubCategoriesByCategoryNotFound
NewDeleteSubCategoriesByCategoryNotFound creates a DeleteSubCategoriesByCategoryNotFound with default headers values
func (*DeleteSubCategoriesByCategoryNotFound) Error ¶
func (o *DeleteSubCategoriesByCategoryNotFound) Error() string
type DeleteSubCategoriesByCategoryOK ¶
type DeleteSubCategoriesByCategoryOK struct { }
DeleteSubCategoriesByCategoryOK handles this case with default header values.
Status Ok
func NewDeleteSubCategoriesByCategoryOK ¶
func NewDeleteSubCategoriesByCategoryOK() *DeleteSubCategoriesByCategoryOK
NewDeleteSubCategoriesByCategoryOK creates a DeleteSubCategoriesByCategoryOK with default headers values
func (*DeleteSubCategoriesByCategoryOK) Error ¶
func (o *DeleteSubCategoriesByCategoryOK) Error() string
type DeleteSubCategoriesByCategoryParams ¶
type DeleteSubCategoriesByCategoryParams struct { /*ID Category ID Associated to Subcategory(s) */ ID int64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
DeleteSubCategoriesByCategoryParams contains all the parameters to send to the API endpoint for the delete sub categories by category operation typically these are written to a http.Request
func NewDeleteSubCategoriesByCategoryParams ¶
func NewDeleteSubCategoriesByCategoryParams() *DeleteSubCategoriesByCategoryParams
NewDeleteSubCategoriesByCategoryParams creates a new DeleteSubCategoriesByCategoryParams object with the default values initialized.
func NewDeleteSubCategoriesByCategoryParamsWithContext ¶
func NewDeleteSubCategoriesByCategoryParamsWithContext(ctx context.Context) *DeleteSubCategoriesByCategoryParams
NewDeleteSubCategoriesByCategoryParamsWithContext creates a new DeleteSubCategoriesByCategoryParams object with the default values initialized, and the ability to set a context for a request
func NewDeleteSubCategoriesByCategoryParamsWithHTTPClient ¶
func NewDeleteSubCategoriesByCategoryParamsWithHTTPClient(client *http.Client) *DeleteSubCategoriesByCategoryParams
NewDeleteSubCategoriesByCategoryParamsWithHTTPClient creates a new DeleteSubCategoriesByCategoryParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewDeleteSubCategoriesByCategoryParamsWithTimeout ¶
func NewDeleteSubCategoriesByCategoryParamsWithTimeout(timeout time.Duration) *DeleteSubCategoriesByCategoryParams
NewDeleteSubCategoriesByCategoryParamsWithTimeout creates a new DeleteSubCategoriesByCategoryParams object with the default values initialized, and the ability to set a timeout on a request
func (*DeleteSubCategoriesByCategoryParams) SetContext ¶
func (o *DeleteSubCategoriesByCategoryParams) SetContext(ctx context.Context)
SetContext adds the context to the delete sub categories by category params
func (*DeleteSubCategoriesByCategoryParams) SetHTTPClient ¶
func (o *DeleteSubCategoriesByCategoryParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the delete sub categories by category params
func (*DeleteSubCategoriesByCategoryParams) SetID ¶
func (o *DeleteSubCategoriesByCategoryParams) SetID(id int64)
SetID adds the id to the delete sub categories by category params
func (*DeleteSubCategoriesByCategoryParams) SetTimeout ¶
func (o *DeleteSubCategoriesByCategoryParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the delete sub categories by category params
func (*DeleteSubCategoriesByCategoryParams) WithContext ¶
func (o *DeleteSubCategoriesByCategoryParams) WithContext(ctx context.Context) *DeleteSubCategoriesByCategoryParams
WithContext adds the context to the delete sub categories by category params
func (*DeleteSubCategoriesByCategoryParams) WithHTTPClient ¶
func (o *DeleteSubCategoriesByCategoryParams) WithHTTPClient(client *http.Client) *DeleteSubCategoriesByCategoryParams
WithHTTPClient adds the HTTPClient to the delete sub categories by category params
func (*DeleteSubCategoriesByCategoryParams) WithID ¶
func (o *DeleteSubCategoriesByCategoryParams) WithID(id int64) *DeleteSubCategoriesByCategoryParams
WithID adds the id to the delete sub categories by category params
func (*DeleteSubCategoriesByCategoryParams) WithTimeout ¶
func (o *DeleteSubCategoriesByCategoryParams) WithTimeout(timeout time.Duration) *DeleteSubCategoriesByCategoryParams
WithTimeout adds the timeout to the delete sub categories by category params
func (*DeleteSubCategoriesByCategoryParams) WriteToRequest ¶
func (o *DeleteSubCategoriesByCategoryParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DeleteSubCategoriesByCategoryReader ¶
type DeleteSubCategoriesByCategoryReader struct {
// contains filtered or unexported fields
}
DeleteSubCategoriesByCategoryReader is a Reader for the DeleteSubCategoriesByCategory structure.
func (*DeleteSubCategoriesByCategoryReader) ReadResponse ¶
func (o *DeleteSubCategoriesByCategoryReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type DeleteSubCategoriesNotFound ¶
type DeleteSubCategoriesNotFound struct { }
DeleteSubCategoriesNotFound handles this case with default header values.
No items found
func NewDeleteSubCategoriesNotFound ¶
func NewDeleteSubCategoriesNotFound() *DeleteSubCategoriesNotFound
NewDeleteSubCategoriesNotFound creates a DeleteSubCategoriesNotFound with default headers values
func (*DeleteSubCategoriesNotFound) Error ¶
func (o *DeleteSubCategoriesNotFound) Error() string
type DeleteSubCategoriesOK ¶
type DeleteSubCategoriesOK struct { }
DeleteSubCategoriesOK handles this case with default header values.
Status Ok
func NewDeleteSubCategoriesOK ¶
func NewDeleteSubCategoriesOK() *DeleteSubCategoriesOK
NewDeleteSubCategoriesOK creates a DeleteSubCategoriesOK with default headers values
func (*DeleteSubCategoriesOK) Error ¶
func (o *DeleteSubCategoriesOK) Error() string
type DeleteSubCategoriesParams ¶
type DeleteSubCategoriesParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
DeleteSubCategoriesParams contains all the parameters to send to the API endpoint for the delete sub categories operation typically these are written to a http.Request
func NewDeleteSubCategoriesParams ¶
func NewDeleteSubCategoriesParams() *DeleteSubCategoriesParams
NewDeleteSubCategoriesParams creates a new DeleteSubCategoriesParams object with the default values initialized.
func NewDeleteSubCategoriesParamsWithContext ¶
func NewDeleteSubCategoriesParamsWithContext(ctx context.Context) *DeleteSubCategoriesParams
NewDeleteSubCategoriesParamsWithContext creates a new DeleteSubCategoriesParams object with the default values initialized, and the ability to set a context for a request
func NewDeleteSubCategoriesParamsWithHTTPClient ¶
func NewDeleteSubCategoriesParamsWithHTTPClient(client *http.Client) *DeleteSubCategoriesParams
NewDeleteSubCategoriesParamsWithHTTPClient creates a new DeleteSubCategoriesParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewDeleteSubCategoriesParamsWithTimeout ¶
func NewDeleteSubCategoriesParamsWithTimeout(timeout time.Duration) *DeleteSubCategoriesParams
NewDeleteSubCategoriesParamsWithTimeout creates a new DeleteSubCategoriesParams object with the default values initialized, and the ability to set a timeout on a request
func (*DeleteSubCategoriesParams) SetContext ¶
func (o *DeleteSubCategoriesParams) SetContext(ctx context.Context)
SetContext adds the context to the delete sub categories params
func (*DeleteSubCategoriesParams) SetHTTPClient ¶
func (o *DeleteSubCategoriesParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the delete sub categories params
func (*DeleteSubCategoriesParams) SetTimeout ¶
func (o *DeleteSubCategoriesParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the delete sub categories params
func (*DeleteSubCategoriesParams) WithContext ¶
func (o *DeleteSubCategoriesParams) WithContext(ctx context.Context) *DeleteSubCategoriesParams
WithContext adds the context to the delete sub categories params
func (*DeleteSubCategoriesParams) WithHTTPClient ¶
func (o *DeleteSubCategoriesParams) WithHTTPClient(client *http.Client) *DeleteSubCategoriesParams
WithHTTPClient adds the HTTPClient to the delete sub categories params
func (*DeleteSubCategoriesParams) WithTimeout ¶
func (o *DeleteSubCategoriesParams) WithTimeout(timeout time.Duration) *DeleteSubCategoriesParams
WithTimeout adds the timeout to the delete sub categories params
func (*DeleteSubCategoriesParams) WriteToRequest ¶
func (o *DeleteSubCategoriesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DeleteSubCategoriesReader ¶
type DeleteSubCategoriesReader struct {
// contains filtered or unexported fields
}
DeleteSubCategoriesReader is a Reader for the DeleteSubCategories structure.
func (*DeleteSubCategoriesReader) ReadResponse ¶
func (o *DeleteSubCategoriesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type DeleteSubCategoryBadRequest ¶
type DeleteSubCategoryBadRequest struct { }
DeleteSubCategoryBadRequest handles this case with default header values.
Invalid input
func NewDeleteSubCategoryBadRequest ¶
func NewDeleteSubCategoryBadRequest() *DeleteSubCategoryBadRequest
NewDeleteSubCategoryBadRequest creates a DeleteSubCategoryBadRequest with default headers values
func (*DeleteSubCategoryBadRequest) Error ¶
func (o *DeleteSubCategoryBadRequest) Error() string
type DeleteSubCategoryNotFound ¶
type DeleteSubCategoryNotFound struct { }
DeleteSubCategoryNotFound handles this case with default header values.
No items found
func NewDeleteSubCategoryNotFound ¶
func NewDeleteSubCategoryNotFound() *DeleteSubCategoryNotFound
NewDeleteSubCategoryNotFound creates a DeleteSubCategoryNotFound with default headers values
func (*DeleteSubCategoryNotFound) Error ¶
func (o *DeleteSubCategoryNotFound) Error() string
type DeleteSubCategoryOK ¶
type DeleteSubCategoryOK struct { }
DeleteSubCategoryOK handles this case with default header values.
Status Ok
func NewDeleteSubCategoryOK ¶
func NewDeleteSubCategoryOK() *DeleteSubCategoryOK
NewDeleteSubCategoryOK creates a DeleteSubCategoryOK with default headers values
func (*DeleteSubCategoryOK) Error ¶
func (o *DeleteSubCategoryOK) Error() string
type DeleteSubCategoryParams ¶
type DeleteSubCategoryParams struct { /*ID*/ ID int64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
DeleteSubCategoryParams contains all the parameters to send to the API endpoint for the delete sub category operation typically these are written to a http.Request
func NewDeleteSubCategoryParams ¶
func NewDeleteSubCategoryParams() *DeleteSubCategoryParams
NewDeleteSubCategoryParams creates a new DeleteSubCategoryParams object with the default values initialized.
func NewDeleteSubCategoryParamsWithContext ¶
func NewDeleteSubCategoryParamsWithContext(ctx context.Context) *DeleteSubCategoryParams
NewDeleteSubCategoryParamsWithContext creates a new DeleteSubCategoryParams object with the default values initialized, and the ability to set a context for a request
func NewDeleteSubCategoryParamsWithHTTPClient ¶
func NewDeleteSubCategoryParamsWithHTTPClient(client *http.Client) *DeleteSubCategoryParams
NewDeleteSubCategoryParamsWithHTTPClient creates a new DeleteSubCategoryParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewDeleteSubCategoryParamsWithTimeout ¶
func NewDeleteSubCategoryParamsWithTimeout(timeout time.Duration) *DeleteSubCategoryParams
NewDeleteSubCategoryParamsWithTimeout creates a new DeleteSubCategoryParams object with the default values initialized, and the ability to set a timeout on a request
func (*DeleteSubCategoryParams) SetContext ¶
func (o *DeleteSubCategoryParams) SetContext(ctx context.Context)
SetContext adds the context to the delete sub category params
func (*DeleteSubCategoryParams) SetHTTPClient ¶
func (o *DeleteSubCategoryParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the delete sub category params
func (*DeleteSubCategoryParams) SetID ¶
func (o *DeleteSubCategoryParams) SetID(id int64)
SetID adds the id to the delete sub category params
func (*DeleteSubCategoryParams) SetTimeout ¶
func (o *DeleteSubCategoryParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the delete sub category params
func (*DeleteSubCategoryParams) WithContext ¶
func (o *DeleteSubCategoryParams) WithContext(ctx context.Context) *DeleteSubCategoryParams
WithContext adds the context to the delete sub category params
func (*DeleteSubCategoryParams) WithHTTPClient ¶
func (o *DeleteSubCategoryParams) WithHTTPClient(client *http.Client) *DeleteSubCategoryParams
WithHTTPClient adds the HTTPClient to the delete sub category params
func (*DeleteSubCategoryParams) WithID ¶
func (o *DeleteSubCategoryParams) WithID(id int64) *DeleteSubCategoryParams
WithID adds the id to the delete sub category params
func (*DeleteSubCategoryParams) WithTimeout ¶
func (o *DeleteSubCategoryParams) WithTimeout(timeout time.Duration) *DeleteSubCategoryParams
WithTimeout adds the timeout to the delete sub category params
func (*DeleteSubCategoryParams) WriteToRequest ¶
func (o *DeleteSubCategoryParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DeleteSubCategoryReader ¶
type DeleteSubCategoryReader struct {
// contains filtered or unexported fields
}
DeleteSubCategoryReader is a Reader for the DeleteSubCategory structure.
func (*DeleteSubCategoryReader) ReadResponse ¶
func (o *DeleteSubCategoryReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetSubCategoriesByCategoryNotFound ¶
type GetSubCategoriesByCategoryNotFound struct { }
GetSubCategoriesByCategoryNotFound handles this case with default header values.
No items found
func NewGetSubCategoriesByCategoryNotFound ¶
func NewGetSubCategoriesByCategoryNotFound() *GetSubCategoriesByCategoryNotFound
NewGetSubCategoriesByCategoryNotFound creates a GetSubCategoriesByCategoryNotFound with default headers values
func (*GetSubCategoriesByCategoryNotFound) Error ¶
func (o *GetSubCategoriesByCategoryNotFound) Error() string
type GetSubCategoriesByCategoryOK ¶
type GetSubCategoriesByCategoryOK struct {
Payload models.SubCategories
}
GetSubCategoriesByCategoryOK handles this case with default header values.
Status Ok
func NewGetSubCategoriesByCategoryOK ¶
func NewGetSubCategoriesByCategoryOK() *GetSubCategoriesByCategoryOK
NewGetSubCategoriesByCategoryOK creates a GetSubCategoriesByCategoryOK with default headers values
func (*GetSubCategoriesByCategoryOK) Error ¶
func (o *GetSubCategoriesByCategoryOK) Error() string
type GetSubCategoriesByCategoryParams ¶
type GetSubCategoriesByCategoryParams struct { /*ID Category ID Associated to Subcategory(s) */ ID int64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetSubCategoriesByCategoryParams contains all the parameters to send to the API endpoint for the get sub categories by category operation typically these are written to a http.Request
func NewGetSubCategoriesByCategoryParams ¶
func NewGetSubCategoriesByCategoryParams() *GetSubCategoriesByCategoryParams
NewGetSubCategoriesByCategoryParams creates a new GetSubCategoriesByCategoryParams object with the default values initialized.
func NewGetSubCategoriesByCategoryParamsWithContext ¶
func NewGetSubCategoriesByCategoryParamsWithContext(ctx context.Context) *GetSubCategoriesByCategoryParams
NewGetSubCategoriesByCategoryParamsWithContext creates a new GetSubCategoriesByCategoryParams object with the default values initialized, and the ability to set a context for a request
func NewGetSubCategoriesByCategoryParamsWithHTTPClient ¶
func NewGetSubCategoriesByCategoryParamsWithHTTPClient(client *http.Client) *GetSubCategoriesByCategoryParams
NewGetSubCategoriesByCategoryParamsWithHTTPClient creates a new GetSubCategoriesByCategoryParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetSubCategoriesByCategoryParamsWithTimeout ¶
func NewGetSubCategoriesByCategoryParamsWithTimeout(timeout time.Duration) *GetSubCategoriesByCategoryParams
NewGetSubCategoriesByCategoryParamsWithTimeout creates a new GetSubCategoriesByCategoryParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetSubCategoriesByCategoryParams) SetContext ¶
func (o *GetSubCategoriesByCategoryParams) SetContext(ctx context.Context)
SetContext adds the context to the get sub categories by category params
func (*GetSubCategoriesByCategoryParams) SetHTTPClient ¶
func (o *GetSubCategoriesByCategoryParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get sub categories by category params
func (*GetSubCategoriesByCategoryParams) SetID ¶
func (o *GetSubCategoriesByCategoryParams) SetID(id int64)
SetID adds the id to the get sub categories by category params
func (*GetSubCategoriesByCategoryParams) SetTimeout ¶
func (o *GetSubCategoriesByCategoryParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get sub categories by category params
func (*GetSubCategoriesByCategoryParams) WithContext ¶
func (o *GetSubCategoriesByCategoryParams) WithContext(ctx context.Context) *GetSubCategoriesByCategoryParams
WithContext adds the context to the get sub categories by category params
func (*GetSubCategoriesByCategoryParams) WithHTTPClient ¶
func (o *GetSubCategoriesByCategoryParams) WithHTTPClient(client *http.Client) *GetSubCategoriesByCategoryParams
WithHTTPClient adds the HTTPClient to the get sub categories by category params
func (*GetSubCategoriesByCategoryParams) WithID ¶
func (o *GetSubCategoriesByCategoryParams) WithID(id int64) *GetSubCategoriesByCategoryParams
WithID adds the id to the get sub categories by category params
func (*GetSubCategoriesByCategoryParams) WithTimeout ¶
func (o *GetSubCategoriesByCategoryParams) WithTimeout(timeout time.Duration) *GetSubCategoriesByCategoryParams
WithTimeout adds the timeout to the get sub categories by category params
func (*GetSubCategoriesByCategoryParams) WriteToRequest ¶
func (o *GetSubCategoriesByCategoryParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetSubCategoriesByCategoryReader ¶
type GetSubCategoriesByCategoryReader struct {
// contains filtered or unexported fields
}
GetSubCategoriesByCategoryReader is a Reader for the GetSubCategoriesByCategory structure.
func (*GetSubCategoriesByCategoryReader) ReadResponse ¶
func (o *GetSubCategoriesByCategoryReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetSubCategoriesNotFound ¶
type GetSubCategoriesNotFound struct { }
GetSubCategoriesNotFound handles this case with default header values.
No items found
func NewGetSubCategoriesNotFound ¶
func NewGetSubCategoriesNotFound() *GetSubCategoriesNotFound
NewGetSubCategoriesNotFound creates a GetSubCategoriesNotFound with default headers values
func (*GetSubCategoriesNotFound) Error ¶
func (o *GetSubCategoriesNotFound) Error() string
type GetSubCategoriesOK ¶
type GetSubCategoriesOK struct {
Payload models.SubCategories
}
GetSubCategoriesOK handles this case with default header values.
Status Ok
func NewGetSubCategoriesOK ¶
func NewGetSubCategoriesOK() *GetSubCategoriesOK
NewGetSubCategoriesOK creates a GetSubCategoriesOK with default headers values
func (*GetSubCategoriesOK) Error ¶
func (o *GetSubCategoriesOK) Error() string
type GetSubCategoriesParams ¶
type GetSubCategoriesParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetSubCategoriesParams contains all the parameters to send to the API endpoint for the get sub categories operation typically these are written to a http.Request
func NewGetSubCategoriesParams ¶
func NewGetSubCategoriesParams() *GetSubCategoriesParams
NewGetSubCategoriesParams creates a new GetSubCategoriesParams object with the default values initialized.
func NewGetSubCategoriesParamsWithContext ¶
func NewGetSubCategoriesParamsWithContext(ctx context.Context) *GetSubCategoriesParams
NewGetSubCategoriesParamsWithContext creates a new GetSubCategoriesParams object with the default values initialized, and the ability to set a context for a request
func NewGetSubCategoriesParamsWithHTTPClient ¶
func NewGetSubCategoriesParamsWithHTTPClient(client *http.Client) *GetSubCategoriesParams
NewGetSubCategoriesParamsWithHTTPClient creates a new GetSubCategoriesParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetSubCategoriesParamsWithTimeout ¶
func NewGetSubCategoriesParamsWithTimeout(timeout time.Duration) *GetSubCategoriesParams
NewGetSubCategoriesParamsWithTimeout creates a new GetSubCategoriesParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetSubCategoriesParams) SetContext ¶
func (o *GetSubCategoriesParams) SetContext(ctx context.Context)
SetContext adds the context to the get sub categories params
func (*GetSubCategoriesParams) SetHTTPClient ¶
func (o *GetSubCategoriesParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get sub categories params
func (*GetSubCategoriesParams) SetTimeout ¶
func (o *GetSubCategoriesParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get sub categories params
func (*GetSubCategoriesParams) WithContext ¶
func (o *GetSubCategoriesParams) WithContext(ctx context.Context) *GetSubCategoriesParams
WithContext adds the context to the get sub categories params
func (*GetSubCategoriesParams) WithHTTPClient ¶
func (o *GetSubCategoriesParams) WithHTTPClient(client *http.Client) *GetSubCategoriesParams
WithHTTPClient adds the HTTPClient to the get sub categories params
func (*GetSubCategoriesParams) WithTimeout ¶
func (o *GetSubCategoriesParams) WithTimeout(timeout time.Duration) *GetSubCategoriesParams
WithTimeout adds the timeout to the get sub categories params
func (*GetSubCategoriesParams) WriteToRequest ¶
func (o *GetSubCategoriesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetSubCategoriesReader ¶
type GetSubCategoriesReader struct {
// contains filtered or unexported fields
}
GetSubCategoriesReader is a Reader for the GetSubCategories structure.
func (*GetSubCategoriesReader) ReadResponse ¶
func (o *GetSubCategoriesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetSubCategoryBadRequest ¶
type GetSubCategoryBadRequest struct { }
GetSubCategoryBadRequest handles this case with default header values.
Invalid input
func NewGetSubCategoryBadRequest ¶
func NewGetSubCategoryBadRequest() *GetSubCategoryBadRequest
NewGetSubCategoryBadRequest creates a GetSubCategoryBadRequest with default headers values
func (*GetSubCategoryBadRequest) Error ¶
func (o *GetSubCategoryBadRequest) Error() string
type GetSubCategoryNotFound ¶
type GetSubCategoryNotFound struct { }
GetSubCategoryNotFound handles this case with default header values.
No items found
func NewGetSubCategoryNotFound ¶
func NewGetSubCategoryNotFound() *GetSubCategoryNotFound
NewGetSubCategoryNotFound creates a GetSubCategoryNotFound with default headers values
func (*GetSubCategoryNotFound) Error ¶
func (o *GetSubCategoryNotFound) Error() string
type GetSubCategoryOK ¶
type GetSubCategoryOK struct {
Payload *models.SubCategory
}
GetSubCategoryOK handles this case with default header values.
Status Ok
func NewGetSubCategoryOK ¶
func NewGetSubCategoryOK() *GetSubCategoryOK
NewGetSubCategoryOK creates a GetSubCategoryOK with default headers values
func (*GetSubCategoryOK) Error ¶
func (o *GetSubCategoryOK) Error() string
type GetSubCategoryParams ¶
type GetSubCategoryParams struct { /*ID*/ ID int64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetSubCategoryParams contains all the parameters to send to the API endpoint for the get sub category operation typically these are written to a http.Request
func NewGetSubCategoryParams ¶
func NewGetSubCategoryParams() *GetSubCategoryParams
NewGetSubCategoryParams creates a new GetSubCategoryParams object with the default values initialized.
func NewGetSubCategoryParamsWithContext ¶
func NewGetSubCategoryParamsWithContext(ctx context.Context) *GetSubCategoryParams
NewGetSubCategoryParamsWithContext creates a new GetSubCategoryParams object with the default values initialized, and the ability to set a context for a request
func NewGetSubCategoryParamsWithHTTPClient ¶
func NewGetSubCategoryParamsWithHTTPClient(client *http.Client) *GetSubCategoryParams
NewGetSubCategoryParamsWithHTTPClient creates a new GetSubCategoryParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetSubCategoryParamsWithTimeout ¶
func NewGetSubCategoryParamsWithTimeout(timeout time.Duration) *GetSubCategoryParams
NewGetSubCategoryParamsWithTimeout creates a new GetSubCategoryParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetSubCategoryParams) SetContext ¶
func (o *GetSubCategoryParams) SetContext(ctx context.Context)
SetContext adds the context to the get sub category params
func (*GetSubCategoryParams) SetHTTPClient ¶
func (o *GetSubCategoryParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get sub category params
func (*GetSubCategoryParams) SetID ¶
func (o *GetSubCategoryParams) SetID(id int64)
SetID adds the id to the get sub category params
func (*GetSubCategoryParams) SetTimeout ¶
func (o *GetSubCategoryParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get sub category params
func (*GetSubCategoryParams) WithContext ¶
func (o *GetSubCategoryParams) WithContext(ctx context.Context) *GetSubCategoryParams
WithContext adds the context to the get sub category params
func (*GetSubCategoryParams) WithHTTPClient ¶
func (o *GetSubCategoryParams) WithHTTPClient(client *http.Client) *GetSubCategoryParams
WithHTTPClient adds the HTTPClient to the get sub category params
func (*GetSubCategoryParams) WithID ¶
func (o *GetSubCategoryParams) WithID(id int64) *GetSubCategoryParams
WithID adds the id to the get sub category params
func (*GetSubCategoryParams) WithTimeout ¶
func (o *GetSubCategoryParams) WithTimeout(timeout time.Duration) *GetSubCategoryParams
WithTimeout adds the timeout to the get sub category params
func (*GetSubCategoryParams) WriteToRequest ¶
func (o *GetSubCategoryParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetSubCategoryReader ¶
type GetSubCategoryReader struct {
// contains filtered or unexported fields
}
GetSubCategoryReader is a Reader for the GetSubCategory structure.
func (*GetSubCategoryReader) ReadResponse ¶
func (o *GetSubCategoryReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type UpdateSubCategoryBadRequest ¶
type UpdateSubCategoryBadRequest struct { }
UpdateSubCategoryBadRequest handles this case with default header values.
Invalid input
func NewUpdateSubCategoryBadRequest ¶
func NewUpdateSubCategoryBadRequest() *UpdateSubCategoryBadRequest
NewUpdateSubCategoryBadRequest creates a UpdateSubCategoryBadRequest with default headers values
func (*UpdateSubCategoryBadRequest) Error ¶
func (o *UpdateSubCategoryBadRequest) Error() string
type UpdateSubCategoryCreated ¶
type UpdateSubCategoryCreated struct {
Payload *models.SubCategory
}
UpdateSubCategoryCreated handles this case with default header values.
SubCategory Updated
func NewUpdateSubCategoryCreated ¶
func NewUpdateSubCategoryCreated() *UpdateSubCategoryCreated
NewUpdateSubCategoryCreated creates a UpdateSubCategoryCreated with default headers values
func (*UpdateSubCategoryCreated) Error ¶
func (o *UpdateSubCategoryCreated) Error() string
type UpdateSubCategoryNotFound ¶
type UpdateSubCategoryNotFound struct { }
UpdateSubCategoryNotFound handles this case with default header values.
No items found
func NewUpdateSubCategoryNotFound ¶
func NewUpdateSubCategoryNotFound() *UpdateSubCategoryNotFound
NewUpdateSubCategoryNotFound creates a UpdateSubCategoryNotFound with default headers values
func (*UpdateSubCategoryNotFound) Error ¶
func (o *UpdateSubCategoryNotFound) Error() string
type UpdateSubCategoryParams ¶
type UpdateSubCategoryParams struct { /*Body a subcategory that will be updated */ Body *models.SubCategory /*ID*/ ID int64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
UpdateSubCategoryParams contains all the parameters to send to the API endpoint for the update sub category operation typically these are written to a http.Request
func NewUpdateSubCategoryParams ¶
func NewUpdateSubCategoryParams() *UpdateSubCategoryParams
NewUpdateSubCategoryParams creates a new UpdateSubCategoryParams object with the default values initialized.
func NewUpdateSubCategoryParamsWithContext ¶
func NewUpdateSubCategoryParamsWithContext(ctx context.Context) *UpdateSubCategoryParams
NewUpdateSubCategoryParamsWithContext creates a new UpdateSubCategoryParams object with the default values initialized, and the ability to set a context for a request
func NewUpdateSubCategoryParamsWithHTTPClient ¶
func NewUpdateSubCategoryParamsWithHTTPClient(client *http.Client) *UpdateSubCategoryParams
NewUpdateSubCategoryParamsWithHTTPClient creates a new UpdateSubCategoryParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewUpdateSubCategoryParamsWithTimeout ¶
func NewUpdateSubCategoryParamsWithTimeout(timeout time.Duration) *UpdateSubCategoryParams
NewUpdateSubCategoryParamsWithTimeout creates a new UpdateSubCategoryParams object with the default values initialized, and the ability to set a timeout on a request
func (*UpdateSubCategoryParams) SetBody ¶
func (o *UpdateSubCategoryParams) SetBody(body *models.SubCategory)
SetBody adds the body to the update sub category params
func (*UpdateSubCategoryParams) SetContext ¶
func (o *UpdateSubCategoryParams) SetContext(ctx context.Context)
SetContext adds the context to the update sub category params
func (*UpdateSubCategoryParams) SetHTTPClient ¶
func (o *UpdateSubCategoryParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the update sub category params
func (*UpdateSubCategoryParams) SetID ¶
func (o *UpdateSubCategoryParams) SetID(id int64)
SetID adds the id to the update sub category params
func (*UpdateSubCategoryParams) SetTimeout ¶
func (o *UpdateSubCategoryParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the update sub category params
func (*UpdateSubCategoryParams) WithBody ¶
func (o *UpdateSubCategoryParams) WithBody(body *models.SubCategory) *UpdateSubCategoryParams
WithBody adds the body to the update sub category params
func (*UpdateSubCategoryParams) WithContext ¶
func (o *UpdateSubCategoryParams) WithContext(ctx context.Context) *UpdateSubCategoryParams
WithContext adds the context to the update sub category params
func (*UpdateSubCategoryParams) WithHTTPClient ¶
func (o *UpdateSubCategoryParams) WithHTTPClient(client *http.Client) *UpdateSubCategoryParams
WithHTTPClient adds the HTTPClient to the update sub category params
func (*UpdateSubCategoryParams) WithID ¶
func (o *UpdateSubCategoryParams) WithID(id int64) *UpdateSubCategoryParams
WithID adds the id to the update sub category params
func (*UpdateSubCategoryParams) WithTimeout ¶
func (o *UpdateSubCategoryParams) WithTimeout(timeout time.Duration) *UpdateSubCategoryParams
WithTimeout adds the timeout to the update sub category params
func (*UpdateSubCategoryParams) WriteToRequest ¶
func (o *UpdateSubCategoryParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type UpdateSubCategoryReader ¶
type UpdateSubCategoryReader struct {
// contains filtered or unexported fields
}
UpdateSubCategoryReader is a Reader for the UpdateSubCategory structure.
func (*UpdateSubCategoryReader) ReadResponse ¶
func (o *UpdateSubCategoryReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
Source Files ¶
- create_sub_category_by_category_parameters.go
- create_sub_category_by_category_responses.go
- create_sub_category_parameters.go
- create_sub_category_responses.go
- delete_sub_categories_by_category_parameters.go
- delete_sub_categories_by_category_responses.go
- delete_sub_categories_parameters.go
- delete_sub_categories_responses.go
- delete_sub_category_parameters.go
- delete_sub_category_responses.go
- get_sub_categories_by_category_parameters.go
- get_sub_categories_by_category_responses.go
- get_sub_categories_parameters.go
- get_sub_categories_responses.go
- get_sub_category_parameters.go
- get_sub_category_responses.go
- subcategories_client.go
- update_sub_category_parameters.go
- update_sub_category_responses.go