Documentation ¶
Index ¶
- type Client
- func (a *Client) CreateCategory(params *CreateCategoryParams, authInfo runtime.ClientAuthInfoWriter) (*CreateCategoryOK, error)
- func (a *Client) DeleteCategories(params *DeleteCategoriesParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteCategoriesOK, error)
- func (a *Client) DescribeCategories(params *DescribeCategoriesParams, authInfo runtime.ClientAuthInfoWriter) (*DescribeCategoriesOK, error)
- func (a *Client) ModifyCategory(params *ModifyCategoryParams, authInfo runtime.ClientAuthInfoWriter) (*ModifyCategoryOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type CreateCategoryOK
- type CreateCategoryParams
- func NewCreateCategoryParams() *CreateCategoryParams
- func NewCreateCategoryParamsWithContext(ctx context.Context) *CreateCategoryParams
- func NewCreateCategoryParamsWithHTTPClient(client *http.Client) *CreateCategoryParams
- func NewCreateCategoryParamsWithTimeout(timeout time.Duration) *CreateCategoryParams
- func (o *CreateCategoryParams) SetBody(body *models.OpenpitrixCreateCategoryRequest)
- func (o *CreateCategoryParams) SetContext(ctx context.Context)
- func (o *CreateCategoryParams) SetHTTPClient(client *http.Client)
- func (o *CreateCategoryParams) SetTimeout(timeout time.Duration)
- func (o *CreateCategoryParams) WithBody(body *models.OpenpitrixCreateCategoryRequest) *CreateCategoryParams
- func (o *CreateCategoryParams) WithContext(ctx context.Context) *CreateCategoryParams
- func (o *CreateCategoryParams) WithHTTPClient(client *http.Client) *CreateCategoryParams
- func (o *CreateCategoryParams) WithTimeout(timeout time.Duration) *CreateCategoryParams
- func (o *CreateCategoryParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateCategoryReader
- type DeleteCategoriesOK
- type DeleteCategoriesParams
- func NewDeleteCategoriesParams() *DeleteCategoriesParams
- func NewDeleteCategoriesParamsWithContext(ctx context.Context) *DeleteCategoriesParams
- func NewDeleteCategoriesParamsWithHTTPClient(client *http.Client) *DeleteCategoriesParams
- func NewDeleteCategoriesParamsWithTimeout(timeout time.Duration) *DeleteCategoriesParams
- func (o *DeleteCategoriesParams) SetBody(body *models.OpenpitrixDeleteCategoriesRequest)
- func (o *DeleteCategoriesParams) SetContext(ctx context.Context)
- func (o *DeleteCategoriesParams) SetHTTPClient(client *http.Client)
- func (o *DeleteCategoriesParams) SetTimeout(timeout time.Duration)
- func (o *DeleteCategoriesParams) WithBody(body *models.OpenpitrixDeleteCategoriesRequest) *DeleteCategoriesParams
- func (o *DeleteCategoriesParams) WithContext(ctx context.Context) *DeleteCategoriesParams
- func (o *DeleteCategoriesParams) WithHTTPClient(client *http.Client) *DeleteCategoriesParams
- func (o *DeleteCategoriesParams) WithTimeout(timeout time.Duration) *DeleteCategoriesParams
- func (o *DeleteCategoriesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteCategoriesReader
- type DescribeCategoriesOK
- type DescribeCategoriesParams
- func NewDescribeCategoriesParams() *DescribeCategoriesParams
- func NewDescribeCategoriesParamsWithContext(ctx context.Context) *DescribeCategoriesParams
- func NewDescribeCategoriesParamsWithHTTPClient(client *http.Client) *DescribeCategoriesParams
- func NewDescribeCategoriesParamsWithTimeout(timeout time.Duration) *DescribeCategoriesParams
- func (o *DescribeCategoriesParams) SetCategoryID(categoryID []string)
- func (o *DescribeCategoriesParams) SetContext(ctx context.Context)
- func (o *DescribeCategoriesParams) SetHTTPClient(client *http.Client)
- func (o *DescribeCategoriesParams) SetLimit(limit *int64)
- func (o *DescribeCategoriesParams) SetName(name []string)
- func (o *DescribeCategoriesParams) SetOffset(offset *int64)
- func (o *DescribeCategoriesParams) SetOwner(owner []string)
- func (o *DescribeCategoriesParams) SetReverse(reverse *bool)
- func (o *DescribeCategoriesParams) SetSearchWord(searchWord *string)
- func (o *DescribeCategoriesParams) SetSortKey(sortKey *string)
- func (o *DescribeCategoriesParams) SetTimeout(timeout time.Duration)
- func (o *DescribeCategoriesParams) WithCategoryID(categoryID []string) *DescribeCategoriesParams
- func (o *DescribeCategoriesParams) WithContext(ctx context.Context) *DescribeCategoriesParams
- func (o *DescribeCategoriesParams) WithHTTPClient(client *http.Client) *DescribeCategoriesParams
- func (o *DescribeCategoriesParams) WithLimit(limit *int64) *DescribeCategoriesParams
- func (o *DescribeCategoriesParams) WithName(name []string) *DescribeCategoriesParams
- func (o *DescribeCategoriesParams) WithOffset(offset *int64) *DescribeCategoriesParams
- func (o *DescribeCategoriesParams) WithOwner(owner []string) *DescribeCategoriesParams
- func (o *DescribeCategoriesParams) WithReverse(reverse *bool) *DescribeCategoriesParams
- func (o *DescribeCategoriesParams) WithSearchWord(searchWord *string) *DescribeCategoriesParams
- func (o *DescribeCategoriesParams) WithSortKey(sortKey *string) *DescribeCategoriesParams
- func (o *DescribeCategoriesParams) WithTimeout(timeout time.Duration) *DescribeCategoriesParams
- func (o *DescribeCategoriesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DescribeCategoriesReader
- type ModifyCategoryOK
- type ModifyCategoryParams
- func NewModifyCategoryParams() *ModifyCategoryParams
- func NewModifyCategoryParamsWithContext(ctx context.Context) *ModifyCategoryParams
- func NewModifyCategoryParamsWithHTTPClient(client *http.Client) *ModifyCategoryParams
- func NewModifyCategoryParamsWithTimeout(timeout time.Duration) *ModifyCategoryParams
- func (o *ModifyCategoryParams) SetBody(body *models.OpenpitrixModifyCategoryRequest)
- func (o *ModifyCategoryParams) SetContext(ctx context.Context)
- func (o *ModifyCategoryParams) SetHTTPClient(client *http.Client)
- func (o *ModifyCategoryParams) SetTimeout(timeout time.Duration)
- func (o *ModifyCategoryParams) WithBody(body *models.OpenpitrixModifyCategoryRequest) *ModifyCategoryParams
- func (o *ModifyCategoryParams) WithContext(ctx context.Context) *ModifyCategoryParams
- func (o *ModifyCategoryParams) WithHTTPClient(client *http.Client) *ModifyCategoryParams
- func (o *ModifyCategoryParams) WithTimeout(timeout time.Duration) *ModifyCategoryParams
- func (o *ModifyCategoryParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ModifyCategoryReader
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 category manager API
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client
New creates a new category manager API client.
func (*Client) CreateCategory ¶
func (a *Client) CreateCategory(params *CreateCategoryParams, authInfo runtime.ClientAuthInfoWriter) (*CreateCategoryOK, error)
CreateCategory creates category
func (*Client) DeleteCategories ¶
func (a *Client) DeleteCategories(params *DeleteCategoriesParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteCategoriesOK, error)
DeleteCategories deletes categories
func (*Client) DescribeCategories ¶
func (a *Client) DescribeCategories(params *DescribeCategoriesParams, authInfo runtime.ClientAuthInfoWriter) (*DescribeCategoriesOK, error)
DescribeCategories describes categories with filter
func (*Client) ModifyCategory ¶
func (a *Client) ModifyCategory(params *ModifyCategoryParams, authInfo runtime.ClientAuthInfoWriter) (*ModifyCategoryOK, error)
ModifyCategory modifies category
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type CreateCategoryOK ¶
type CreateCategoryOK struct {
Payload *models.OpenpitrixCreateCategoryResponse
}
CreateCategoryOK handles this case with default header values.
A successful response.
func NewCreateCategoryOK ¶
func NewCreateCategoryOK() *CreateCategoryOK
NewCreateCategoryOK creates a CreateCategoryOK with default headers values
func (*CreateCategoryOK) Error ¶
func (o *CreateCategoryOK) Error() string
type CreateCategoryParams ¶
type CreateCategoryParams struct { /*Body*/ Body *models.OpenpitrixCreateCategoryRequest Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
CreateCategoryParams contains all the parameters to send to the API endpoint for the create category operation typically these are written to a http.Request
func NewCreateCategoryParams ¶
func NewCreateCategoryParams() *CreateCategoryParams
NewCreateCategoryParams creates a new CreateCategoryParams object with the default values initialized.
func NewCreateCategoryParamsWithContext ¶
func NewCreateCategoryParamsWithContext(ctx context.Context) *CreateCategoryParams
NewCreateCategoryParamsWithContext creates a new CreateCategoryParams object with the default values initialized, and the ability to set a context for a request
func NewCreateCategoryParamsWithHTTPClient ¶
func NewCreateCategoryParamsWithHTTPClient(client *http.Client) *CreateCategoryParams
NewCreateCategoryParamsWithHTTPClient creates a new CreateCategoryParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewCreateCategoryParamsWithTimeout ¶
func NewCreateCategoryParamsWithTimeout(timeout time.Duration) *CreateCategoryParams
NewCreateCategoryParamsWithTimeout creates a new CreateCategoryParams object with the default values initialized, and the ability to set a timeout on a request
func (*CreateCategoryParams) SetBody ¶
func (o *CreateCategoryParams) SetBody(body *models.OpenpitrixCreateCategoryRequest)
SetBody adds the body to the create category params
func (*CreateCategoryParams) SetContext ¶
func (o *CreateCategoryParams) SetContext(ctx context.Context)
SetContext adds the context to the create category params
func (*CreateCategoryParams) SetHTTPClient ¶
func (o *CreateCategoryParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the create category params
func (*CreateCategoryParams) SetTimeout ¶
func (o *CreateCategoryParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the create category params
func (*CreateCategoryParams) WithBody ¶
func (o *CreateCategoryParams) WithBody(body *models.OpenpitrixCreateCategoryRequest) *CreateCategoryParams
WithBody adds the body to the create category params
func (*CreateCategoryParams) WithContext ¶
func (o *CreateCategoryParams) WithContext(ctx context.Context) *CreateCategoryParams
WithContext adds the context to the create category params
func (*CreateCategoryParams) WithHTTPClient ¶
func (o *CreateCategoryParams) WithHTTPClient(client *http.Client) *CreateCategoryParams
WithHTTPClient adds the HTTPClient to the create category params
func (*CreateCategoryParams) WithTimeout ¶
func (o *CreateCategoryParams) WithTimeout(timeout time.Duration) *CreateCategoryParams
WithTimeout adds the timeout to the create category params
func (*CreateCategoryParams) WriteToRequest ¶
func (o *CreateCategoryParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CreateCategoryReader ¶
type CreateCategoryReader struct {
// contains filtered or unexported fields
}
CreateCategoryReader is a Reader for the CreateCategory structure.
func (*CreateCategoryReader) ReadResponse ¶
func (o *CreateCategoryReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type DeleteCategoriesOK ¶
type DeleteCategoriesOK struct {
Payload *models.OpenpitrixDeleteCategoriesResponse
}
DeleteCategoriesOK handles this case with default header values.
A successful response.
func NewDeleteCategoriesOK ¶
func NewDeleteCategoriesOK() *DeleteCategoriesOK
NewDeleteCategoriesOK creates a DeleteCategoriesOK with default headers values
func (*DeleteCategoriesOK) Error ¶
func (o *DeleteCategoriesOK) Error() string
type DeleteCategoriesParams ¶
type DeleteCategoriesParams struct { /*Body*/ Body *models.OpenpitrixDeleteCategoriesRequest Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
DeleteCategoriesParams contains all the parameters to send to the API endpoint for the delete categories operation typically these are written to a http.Request
func NewDeleteCategoriesParams ¶
func NewDeleteCategoriesParams() *DeleteCategoriesParams
NewDeleteCategoriesParams creates a new DeleteCategoriesParams object with the default values initialized.
func NewDeleteCategoriesParamsWithContext ¶
func NewDeleteCategoriesParamsWithContext(ctx context.Context) *DeleteCategoriesParams
NewDeleteCategoriesParamsWithContext creates a new DeleteCategoriesParams object with the default values initialized, and the ability to set a context for a request
func NewDeleteCategoriesParamsWithHTTPClient ¶
func NewDeleteCategoriesParamsWithHTTPClient(client *http.Client) *DeleteCategoriesParams
NewDeleteCategoriesParamsWithHTTPClient creates a new DeleteCategoriesParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewDeleteCategoriesParamsWithTimeout ¶
func NewDeleteCategoriesParamsWithTimeout(timeout time.Duration) *DeleteCategoriesParams
NewDeleteCategoriesParamsWithTimeout creates a new DeleteCategoriesParams object with the default values initialized, and the ability to set a timeout on a request
func (*DeleteCategoriesParams) SetBody ¶
func (o *DeleteCategoriesParams) SetBody(body *models.OpenpitrixDeleteCategoriesRequest)
SetBody adds the body to the delete categories params
func (*DeleteCategoriesParams) SetContext ¶
func (o *DeleteCategoriesParams) SetContext(ctx context.Context)
SetContext adds the context to the delete categories params
func (*DeleteCategoriesParams) SetHTTPClient ¶
func (o *DeleteCategoriesParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the delete categories params
func (*DeleteCategoriesParams) SetTimeout ¶
func (o *DeleteCategoriesParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the delete categories params
func (*DeleteCategoriesParams) WithBody ¶
func (o *DeleteCategoriesParams) WithBody(body *models.OpenpitrixDeleteCategoriesRequest) *DeleteCategoriesParams
WithBody adds the body to the delete categories params
func (*DeleteCategoriesParams) WithContext ¶
func (o *DeleteCategoriesParams) WithContext(ctx context.Context) *DeleteCategoriesParams
WithContext adds the context to the delete categories params
func (*DeleteCategoriesParams) WithHTTPClient ¶
func (o *DeleteCategoriesParams) WithHTTPClient(client *http.Client) *DeleteCategoriesParams
WithHTTPClient adds the HTTPClient to the delete categories params
func (*DeleteCategoriesParams) WithTimeout ¶
func (o *DeleteCategoriesParams) WithTimeout(timeout time.Duration) *DeleteCategoriesParams
WithTimeout adds the timeout to the delete categories params
func (*DeleteCategoriesParams) WriteToRequest ¶
func (o *DeleteCategoriesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DeleteCategoriesReader ¶
type DeleteCategoriesReader struct {
// contains filtered or unexported fields
}
DeleteCategoriesReader is a Reader for the DeleteCategories structure.
func (*DeleteCategoriesReader) ReadResponse ¶
func (o *DeleteCategoriesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type DescribeCategoriesOK ¶
type DescribeCategoriesOK struct {
Payload *models.OpenpitrixDescribeCategoriesResponse
}
DescribeCategoriesOK handles this case with default header values.
A successful response.
func NewDescribeCategoriesOK ¶
func NewDescribeCategoriesOK() *DescribeCategoriesOK
NewDescribeCategoriesOK creates a DescribeCategoriesOK with default headers values
func (*DescribeCategoriesOK) Error ¶
func (o *DescribeCategoriesOK) Error() string
type DescribeCategoriesParams ¶
type DescribeCategoriesParams struct { /*CategoryID*/ CategoryID []string /*Limit*/ Limit *int64 /*Name*/ Name []string /*Offset*/ Offset *int64 /*Owner*/ Owner []string /*Reverse*/ Reverse *bool /*SearchWord*/ SearchWord *string /*SortKey*/ SortKey *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
DescribeCategoriesParams contains all the parameters to send to the API endpoint for the describe categories operation typically these are written to a http.Request
func NewDescribeCategoriesParams ¶
func NewDescribeCategoriesParams() *DescribeCategoriesParams
NewDescribeCategoriesParams creates a new DescribeCategoriesParams object with the default values initialized.
func NewDescribeCategoriesParamsWithContext ¶
func NewDescribeCategoriesParamsWithContext(ctx context.Context) *DescribeCategoriesParams
NewDescribeCategoriesParamsWithContext creates a new DescribeCategoriesParams object with the default values initialized, and the ability to set a context for a request
func NewDescribeCategoriesParamsWithHTTPClient ¶
func NewDescribeCategoriesParamsWithHTTPClient(client *http.Client) *DescribeCategoriesParams
NewDescribeCategoriesParamsWithHTTPClient creates a new DescribeCategoriesParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewDescribeCategoriesParamsWithTimeout ¶
func NewDescribeCategoriesParamsWithTimeout(timeout time.Duration) *DescribeCategoriesParams
NewDescribeCategoriesParamsWithTimeout creates a new DescribeCategoriesParams object with the default values initialized, and the ability to set a timeout on a request
func (*DescribeCategoriesParams) SetCategoryID ¶
func (o *DescribeCategoriesParams) SetCategoryID(categoryID []string)
SetCategoryID adds the categoryId to the describe categories params
func (*DescribeCategoriesParams) SetContext ¶
func (o *DescribeCategoriesParams) SetContext(ctx context.Context)
SetContext adds the context to the describe categories params
func (*DescribeCategoriesParams) SetHTTPClient ¶
func (o *DescribeCategoriesParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the describe categories params
func (*DescribeCategoriesParams) SetLimit ¶
func (o *DescribeCategoriesParams) SetLimit(limit *int64)
SetLimit adds the limit to the describe categories params
func (*DescribeCategoriesParams) SetName ¶
func (o *DescribeCategoriesParams) SetName(name []string)
SetName adds the name to the describe categories params
func (*DescribeCategoriesParams) SetOffset ¶
func (o *DescribeCategoriesParams) SetOffset(offset *int64)
SetOffset adds the offset to the describe categories params
func (*DescribeCategoriesParams) SetOwner ¶
func (o *DescribeCategoriesParams) SetOwner(owner []string)
SetOwner adds the owner to the describe categories params
func (*DescribeCategoriesParams) SetReverse ¶ added in v0.1.5
func (o *DescribeCategoriesParams) SetReverse(reverse *bool)
SetReverse adds the reverse to the describe categories params
func (*DescribeCategoriesParams) SetSearchWord ¶
func (o *DescribeCategoriesParams) SetSearchWord(searchWord *string)
SetSearchWord adds the searchWord to the describe categories params
func (*DescribeCategoriesParams) SetSortKey ¶ added in v0.1.5
func (o *DescribeCategoriesParams) SetSortKey(sortKey *string)
SetSortKey adds the sortKey to the describe categories params
func (*DescribeCategoriesParams) SetTimeout ¶
func (o *DescribeCategoriesParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the describe categories params
func (*DescribeCategoriesParams) WithCategoryID ¶
func (o *DescribeCategoriesParams) WithCategoryID(categoryID []string) *DescribeCategoriesParams
WithCategoryID adds the categoryID to the describe categories params
func (*DescribeCategoriesParams) WithContext ¶
func (o *DescribeCategoriesParams) WithContext(ctx context.Context) *DescribeCategoriesParams
WithContext adds the context to the describe categories params
func (*DescribeCategoriesParams) WithHTTPClient ¶
func (o *DescribeCategoriesParams) WithHTTPClient(client *http.Client) *DescribeCategoriesParams
WithHTTPClient adds the HTTPClient to the describe categories params
func (*DescribeCategoriesParams) WithLimit ¶
func (o *DescribeCategoriesParams) WithLimit(limit *int64) *DescribeCategoriesParams
WithLimit adds the limit to the describe categories params
func (*DescribeCategoriesParams) WithName ¶
func (o *DescribeCategoriesParams) WithName(name []string) *DescribeCategoriesParams
WithName adds the name to the describe categories params
func (*DescribeCategoriesParams) WithOffset ¶
func (o *DescribeCategoriesParams) WithOffset(offset *int64) *DescribeCategoriesParams
WithOffset adds the offset to the describe categories params
func (*DescribeCategoriesParams) WithOwner ¶
func (o *DescribeCategoriesParams) WithOwner(owner []string) *DescribeCategoriesParams
WithOwner adds the owner to the describe categories params
func (*DescribeCategoriesParams) WithReverse ¶ added in v0.1.5
func (o *DescribeCategoriesParams) WithReverse(reverse *bool) *DescribeCategoriesParams
WithReverse adds the reverse to the describe categories params
func (*DescribeCategoriesParams) WithSearchWord ¶
func (o *DescribeCategoriesParams) WithSearchWord(searchWord *string) *DescribeCategoriesParams
WithSearchWord adds the searchWord to the describe categories params
func (*DescribeCategoriesParams) WithSortKey ¶ added in v0.1.5
func (o *DescribeCategoriesParams) WithSortKey(sortKey *string) *DescribeCategoriesParams
WithSortKey adds the sortKey to the describe categories params
func (*DescribeCategoriesParams) WithTimeout ¶
func (o *DescribeCategoriesParams) WithTimeout(timeout time.Duration) *DescribeCategoriesParams
WithTimeout adds the timeout to the describe categories params
func (*DescribeCategoriesParams) WriteToRequest ¶
func (o *DescribeCategoriesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DescribeCategoriesReader ¶
type DescribeCategoriesReader struct {
// contains filtered or unexported fields
}
DescribeCategoriesReader is a Reader for the DescribeCategories structure.
func (*DescribeCategoriesReader) ReadResponse ¶
func (o *DescribeCategoriesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ModifyCategoryOK ¶
type ModifyCategoryOK struct {
Payload *models.OpenpitrixModifyCategoryResponse
}
ModifyCategoryOK handles this case with default header values.
A successful response.
func NewModifyCategoryOK ¶
func NewModifyCategoryOK() *ModifyCategoryOK
NewModifyCategoryOK creates a ModifyCategoryOK with default headers values
func (*ModifyCategoryOK) Error ¶
func (o *ModifyCategoryOK) Error() string
type ModifyCategoryParams ¶
type ModifyCategoryParams struct { /*Body*/ Body *models.OpenpitrixModifyCategoryRequest Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ModifyCategoryParams contains all the parameters to send to the API endpoint for the modify category operation typically these are written to a http.Request
func NewModifyCategoryParams ¶
func NewModifyCategoryParams() *ModifyCategoryParams
NewModifyCategoryParams creates a new ModifyCategoryParams object with the default values initialized.
func NewModifyCategoryParamsWithContext ¶
func NewModifyCategoryParamsWithContext(ctx context.Context) *ModifyCategoryParams
NewModifyCategoryParamsWithContext creates a new ModifyCategoryParams object with the default values initialized, and the ability to set a context for a request
func NewModifyCategoryParamsWithHTTPClient ¶
func NewModifyCategoryParamsWithHTTPClient(client *http.Client) *ModifyCategoryParams
NewModifyCategoryParamsWithHTTPClient creates a new ModifyCategoryParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewModifyCategoryParamsWithTimeout ¶
func NewModifyCategoryParamsWithTimeout(timeout time.Duration) *ModifyCategoryParams
NewModifyCategoryParamsWithTimeout creates a new ModifyCategoryParams object with the default values initialized, and the ability to set a timeout on a request
func (*ModifyCategoryParams) SetBody ¶
func (o *ModifyCategoryParams) SetBody(body *models.OpenpitrixModifyCategoryRequest)
SetBody adds the body to the modify category params
func (*ModifyCategoryParams) SetContext ¶
func (o *ModifyCategoryParams) SetContext(ctx context.Context)
SetContext adds the context to the modify category params
func (*ModifyCategoryParams) SetHTTPClient ¶
func (o *ModifyCategoryParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the modify category params
func (*ModifyCategoryParams) SetTimeout ¶
func (o *ModifyCategoryParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the modify category params
func (*ModifyCategoryParams) WithBody ¶
func (o *ModifyCategoryParams) WithBody(body *models.OpenpitrixModifyCategoryRequest) *ModifyCategoryParams
WithBody adds the body to the modify category params
func (*ModifyCategoryParams) WithContext ¶
func (o *ModifyCategoryParams) WithContext(ctx context.Context) *ModifyCategoryParams
WithContext adds the context to the modify category params
func (*ModifyCategoryParams) WithHTTPClient ¶
func (o *ModifyCategoryParams) WithHTTPClient(client *http.Client) *ModifyCategoryParams
WithHTTPClient adds the HTTPClient to the modify category params
func (*ModifyCategoryParams) WithTimeout ¶
func (o *ModifyCategoryParams) WithTimeout(timeout time.Duration) *ModifyCategoryParams
WithTimeout adds the timeout to the modify category params
func (*ModifyCategoryParams) WriteToRequest ¶
func (o *ModifyCategoryParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ModifyCategoryReader ¶
type ModifyCategoryReader struct {
// contains filtered or unexported fields
}
ModifyCategoryReader is a Reader for the ModifyCategory structure.
func (*ModifyCategoryReader) ReadResponse ¶
func (o *ModifyCategoryReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.