category_manager

package
v0.4.8 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2020 License: Apache-2.0 Imports: 11 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for 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 batches delete categories

func (*Client) DescribeCategories

func (a *Client) DescribeCategories(params *DescribeCategoriesParams, authInfo runtime.ClientAuthInfoWriter) (*DescribeCategoriesOK, error)

DescribeCategories gets categories support filter with these fields category id status locale owner name default return all categories

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

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

WithBody adds the body to the create category params

func (*CreateCategoryParams) WithContext

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

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

WithBody adds the body to the delete categories params

func (*DeleteCategoriesParams) WithContext

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

WithTimeout adds the timeout to the delete categories params

func (*DeleteCategoriesParams) WriteToRequest

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
	  category ids.

	*/
	CategoryID []string
	/*DisplayColumns
	  select column to display.

	*/
	DisplayColumns []string
	/*Limit
	  data limit per page, default value 20, max value 200.

	*/
	Limit *int64
	/*Name
	  category name.

	*/
	Name []string
	/*Offset
	  data offset, default 0.

	*/
	Offset *int64
	/*Owner
	  owner.

	*/
	Owner []string
	/*Reverse
	  value = 0 sort ASC, value = 1 sort DESC.

	*/
	Reverse *bool
	/*SearchWord
	  query key, can fields with these fields(category_id, status, locale, owner, name), default return all categories.

	*/
	SearchWord *string
	/*SortKey
	  sort key, order by sort_key, default create_time.

	*/
	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) SetDisplayColumns added in v0.4.0

func (o *DescribeCategoriesParams) SetDisplayColumns(displayColumns []string)

SetDisplayColumns adds the displayColumns 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

WithContext adds the context to the describe categories params

func (*DescribeCategoriesParams) WithDisplayColumns added in v0.4.0

func (o *DescribeCategoriesParams) WithDisplayColumns(displayColumns []string) *DescribeCategoriesParams

WithDisplayColumns adds the displayColumns 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

WithLimit adds the limit to the describe categories params

func (*DescribeCategoriesParams) WithName

WithName adds the name to the describe categories params

func (*DescribeCategoriesParams) WithOffset

WithOffset adds the offset to the describe categories params

func (*DescribeCategoriesParams) WithOwner

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

WithTimeout adds the timeout to the describe categories params

func (*DescribeCategoriesParams) WriteToRequest

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

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

WithBody adds the body to the modify category params

func (*ModifyCategoryParams) WithContext

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL