user_statistic_cycle

package
v0.41.0 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for user statistic cycle API

func (*Client) GetUserStatCycleItems deprecated

Deprecated: Use GetUserStatCycleItemsShort instead.

GetUserStatCycleItems lists user s stat cycle items by stat cycle

List user's statCycleItems by statCycle.<br>Other detail info:<ul><li><i>Required permission</i>: resource="ADMIN:NAMESPACE:{namespace}:USER:{userId}:STATITEM", action=2 (READ)</li><li><i>Returns</i>: stat cycle items</li></ul>

func (*Client) GetUserStatCycleItems1 deprecated

Deprecated: Use GetUserStatCycleItems1Short instead.

GetUserStatCycleItems1 lists user s stat cycle items by stat cycle

List user's statCycleItems by statCycle.<br>Other detail info:<ul><li><i>Required permission</i>: resource="NAMESPACE:{namespace}:USER:{userId}:STATITEM", action=2 (READ)</li><li><i>Returns</i>: stat cycle items</li></ul>

func (*Client) GetUserStatCycleItems1Short

func (a *Client) GetUserStatCycleItems1Short(params *GetUserStatCycleItems1Params, authInfo runtime.ClientAuthInfoWriter) (*GetUserStatCycleItems1OK, error)

GetUserStatCycleItems1Short lists user s stat cycle items by stat cycle

List user's statCycleItems by statCycle.<br>Other detail info:<ul><li><i>Required permission</i>: resource="NAMESPACE:{namespace}:USER:{userId}:STATITEM", action=2 (READ)</li><li><i>Returns</i>: stat cycle items</li></ul>

func (*Client) GetUserStatCycleItemsShort

func (a *Client) GetUserStatCycleItemsShort(params *GetUserStatCycleItemsParams, authInfo runtime.ClientAuthInfoWriter) (*GetUserStatCycleItemsOK, error)

GetUserStatCycleItemsShort lists user s stat cycle items by stat cycle

List user's statCycleItems by statCycle.<br>Other detail info:<ul><li><i>Required permission</i>: resource="ADMIN:NAMESPACE:{namespace}:USER:{userId}:STATITEM", action=2 (READ)</li><li><i>Returns</i>: stat cycle items</li></ul>

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientService

type ClientService interface {
	GetUserStatCycleItems(params *GetUserStatCycleItemsParams, authInfo runtime.ClientAuthInfoWriter) (*GetUserStatCycleItemsOK, *GetUserStatCycleItemsNotFound, error)
	GetUserStatCycleItemsShort(params *GetUserStatCycleItemsParams, authInfo runtime.ClientAuthInfoWriter) (*GetUserStatCycleItemsOK, error)
	GetUserStatCycleItems1(params *GetUserStatCycleItems1Params, authInfo runtime.ClientAuthInfoWriter) (*GetUserStatCycleItems1OK, *GetUserStatCycleItems1NotFound, error)
	GetUserStatCycleItems1Short(params *GetUserStatCycleItems1Params, authInfo runtime.ClientAuthInfoWriter) (*GetUserStatCycleItems1OK, error)

	SetTransport(transport runtime.ClientTransport)
}

ClientService is the interface for Client methods

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService

New creates a new user statistic cycle API client.

type GetUserStatCycleItems1NotFound

type GetUserStatCycleItems1NotFound struct {
	Payload *socialclientmodels.ErrorEntity
}

GetUserStatCycleItems1NotFound handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>12245</td><td>Stat cycle [{id}] cannot be found in namespace [{namespace}]</td></tr></table>

func NewGetUserStatCycleItems1NotFound

func NewGetUserStatCycleItems1NotFound() *GetUserStatCycleItems1NotFound

NewGetUserStatCycleItems1NotFound creates a GetUserStatCycleItems1NotFound with default headers values

func (*GetUserStatCycleItems1NotFound) Error

func (*GetUserStatCycleItems1NotFound) GetPayload

func (*GetUserStatCycleItems1NotFound) ToJSONString

func (o *GetUserStatCycleItems1NotFound) ToJSONString() string

type GetUserStatCycleItems1OK

type GetUserStatCycleItems1OK struct {
	Payload *socialclientmodels.UserStatCycleItemPagingSlicedResult
}

GetUserStatCycleItems1OK handles this case with default header values.

successful operation

func NewGetUserStatCycleItems1OK

func NewGetUserStatCycleItems1OK() *GetUserStatCycleItems1OK

NewGetUserStatCycleItems1OK creates a GetUserStatCycleItems1OK with default headers values

func (*GetUserStatCycleItems1OK) Error

func (o *GetUserStatCycleItems1OK) Error() string

func (*GetUserStatCycleItems1OK) GetPayload

func (*GetUserStatCycleItems1OK) ToJSONString

func (o *GetUserStatCycleItems1OK) ToJSONString() string

type GetUserStatCycleItems1Params

type GetUserStatCycleItems1Params struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*CycleID
	  cycle id

	*/
	CycleID string
	/*Limit*/
	Limit *int32
	/*Namespace
	  namespace

	*/
	Namespace string
	/*Offset*/
	Offset *int32
	/*SortBy
	  default is unsorted, allow values: [statCode, statCode:asc, statCode:desc, createdAt, createdAt:asc, createdAt:desc, updatedAt, updatedAt:asc, updatedAt:desc],and support sort group, eg: sortBy=statCode:asc,createdAt:desc.

	*/
	SortBy *string
	/*StatCodes
	  comma separated stat codes

	*/
	StatCodes *string
	/*UserID
	  user ID

	*/
	UserID string

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

GetUserStatCycleItems1Params contains all the parameters to send to the API endpoint for the get user stat cycle items 1 operation typically these are written to a http.Request

func NewGetUserStatCycleItems1Params

func NewGetUserStatCycleItems1Params() *GetUserStatCycleItems1Params

NewGetUserStatCycleItems1Params creates a new GetUserStatCycleItems1Params object with the default values initialized.

func NewGetUserStatCycleItems1ParamsWithContext

func NewGetUserStatCycleItems1ParamsWithContext(ctx context.Context) *GetUserStatCycleItems1Params

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

func NewGetUserStatCycleItems1ParamsWithHTTPClient

func NewGetUserStatCycleItems1ParamsWithHTTPClient(client *http.Client) *GetUserStatCycleItems1Params

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

func NewGetUserStatCycleItems1ParamsWithTimeout

func NewGetUserStatCycleItems1ParamsWithTimeout(timeout time.Duration) *GetUserStatCycleItems1Params

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

func (*GetUserStatCycleItems1Params) SetAuthInfoWriter

func (o *GetUserStatCycleItems1Params) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)

SetAuthInfoWriter adds the authInfoWriter to the get user stat cycle items 1 params

func (*GetUserStatCycleItems1Params) SetContext

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

SetContext adds the context to the get user stat cycle items 1 params

func (*GetUserStatCycleItems1Params) SetCycleID

func (o *GetUserStatCycleItems1Params) SetCycleID(cycleID string)

SetCycleID adds the cycleId to the get user stat cycle items 1 params

func (*GetUserStatCycleItems1Params) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get user stat cycle items 1 params

func (*GetUserStatCycleItems1Params) SetHTTPClientTransport

func (o *GetUserStatCycleItems1Params) SetHTTPClientTransport(roundTripper http.RoundTripper)

SetHTTPClient adds the HTTPClient Transport to the get user stat cycle items 1 params

func (*GetUserStatCycleItems1Params) SetLimit

func (o *GetUserStatCycleItems1Params) SetLimit(limit *int32)

SetLimit adds the limit to the get user stat cycle items 1 params

func (*GetUserStatCycleItems1Params) SetNamespace

func (o *GetUserStatCycleItems1Params) SetNamespace(namespace string)

SetNamespace adds the namespace to the get user stat cycle items 1 params

func (*GetUserStatCycleItems1Params) SetOffset

func (o *GetUserStatCycleItems1Params) SetOffset(offset *int32)

SetOffset adds the offset to the get user stat cycle items 1 params

func (*GetUserStatCycleItems1Params) SetSortBy added in v0.41.0

func (o *GetUserStatCycleItems1Params) SetSortBy(sortBy *string)

SetSortBy adds the sortBy to the get user stat cycle items 1 params

func (*GetUserStatCycleItems1Params) SetStatCodes

func (o *GetUserStatCycleItems1Params) SetStatCodes(statCodes *string)

SetStatCodes adds the statCodes to the get user stat cycle items 1 params

func (*GetUserStatCycleItems1Params) SetTimeout

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

SetTimeout adds the timeout to the get user stat cycle items 1 params

func (*GetUserStatCycleItems1Params) SetUserID

func (o *GetUserStatCycleItems1Params) SetUserID(userID string)

SetUserID adds the userId to the get user stat cycle items 1 params

func (*GetUserStatCycleItems1Params) WithContext

WithContext adds the context to the get user stat cycle items 1 params

func (*GetUserStatCycleItems1Params) WithCycleID

WithCycleID adds the cycleID to the get user stat cycle items 1 params

func (*GetUserStatCycleItems1Params) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get user stat cycle items 1 params

func (*GetUserStatCycleItems1Params) WithLimit

WithLimit adds the limit to the get user stat cycle items 1 params

func (*GetUserStatCycleItems1Params) WithNamespace

WithNamespace adds the namespace to the get user stat cycle items 1 params

func (*GetUserStatCycleItems1Params) WithOffset

WithOffset adds the offset to the get user stat cycle items 1 params

func (*GetUserStatCycleItems1Params) WithSortBy added in v0.41.0

WithSortBy adds the sortBy to the get user stat cycle items 1 params

func (*GetUserStatCycleItems1Params) WithStatCodes

WithStatCodes adds the statCodes to the get user stat cycle items 1 params

func (*GetUserStatCycleItems1Params) WithTimeout

WithTimeout adds the timeout to the get user stat cycle items 1 params

func (*GetUserStatCycleItems1Params) WithUserID

WithUserID adds the userID to the get user stat cycle items 1 params

func (*GetUserStatCycleItems1Params) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetUserStatCycleItems1Reader

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

GetUserStatCycleItems1Reader is a Reader for the GetUserStatCycleItems1 structure.

func (*GetUserStatCycleItems1Reader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetUserStatCycleItemsNotFound

type GetUserStatCycleItemsNotFound struct {
	Payload *socialclientmodels.ErrorEntity
}

GetUserStatCycleItemsNotFound handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>12245</td><td>Stat cycle [{id}] cannot be found in namespace [{namespace}]</td></tr></table>

func NewGetUserStatCycleItemsNotFound

func NewGetUserStatCycleItemsNotFound() *GetUserStatCycleItemsNotFound

NewGetUserStatCycleItemsNotFound creates a GetUserStatCycleItemsNotFound with default headers values

func (*GetUserStatCycleItemsNotFound) Error

func (*GetUserStatCycleItemsNotFound) GetPayload

func (*GetUserStatCycleItemsNotFound) ToJSONString

func (o *GetUserStatCycleItemsNotFound) ToJSONString() string

type GetUserStatCycleItemsOK

type GetUserStatCycleItemsOK struct {
	Payload *socialclientmodels.UserStatCycleItemPagingSlicedResult
}

GetUserStatCycleItemsOK handles this case with default header values.

successful operation

func NewGetUserStatCycleItemsOK

func NewGetUserStatCycleItemsOK() *GetUserStatCycleItemsOK

NewGetUserStatCycleItemsOK creates a GetUserStatCycleItemsOK with default headers values

func (*GetUserStatCycleItemsOK) Error

func (o *GetUserStatCycleItemsOK) Error() string

func (*GetUserStatCycleItemsOK) GetPayload

func (*GetUserStatCycleItemsOK) ToJSONString

func (o *GetUserStatCycleItemsOK) ToJSONString() string

type GetUserStatCycleItemsParams

type GetUserStatCycleItemsParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*CycleID
	  cycle id

	*/
	CycleID string
	/*Limit*/
	Limit *int32
	/*Namespace
	  namespace

	*/
	Namespace string
	/*Offset*/
	Offset *int32
	/*SortBy
	  default is unsorted, allow values: [statCode, statCode:asc, statCode:desc, createdAt, createdAt:asc, createdAt:desc, updatedAt, updatedAt:asc, updatedAt:desc],and support sort group, eg: sortBy=statCode:asc,createdAt:desc.

	*/
	SortBy *string
	/*StatCodes
	  comma separated stat codes

	*/
	StatCodes *string
	/*UserID
	  user ID

	*/
	UserID string

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

GetUserStatCycleItemsParams contains all the parameters to send to the API endpoint for the get user stat cycle items operation typically these are written to a http.Request

func NewGetUserStatCycleItemsParams

func NewGetUserStatCycleItemsParams() *GetUserStatCycleItemsParams

NewGetUserStatCycleItemsParams creates a new GetUserStatCycleItemsParams object with the default values initialized.

func NewGetUserStatCycleItemsParamsWithContext

func NewGetUserStatCycleItemsParamsWithContext(ctx context.Context) *GetUserStatCycleItemsParams

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

func NewGetUserStatCycleItemsParamsWithHTTPClient

func NewGetUserStatCycleItemsParamsWithHTTPClient(client *http.Client) *GetUserStatCycleItemsParams

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

func NewGetUserStatCycleItemsParamsWithTimeout

func NewGetUserStatCycleItemsParamsWithTimeout(timeout time.Duration) *GetUserStatCycleItemsParams

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

func (*GetUserStatCycleItemsParams) SetAuthInfoWriter

func (o *GetUserStatCycleItemsParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)

SetAuthInfoWriter adds the authInfoWriter to the get user stat cycle items params

func (*GetUserStatCycleItemsParams) SetContext

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

SetContext adds the context to the get user stat cycle items params

func (*GetUserStatCycleItemsParams) SetCycleID

func (o *GetUserStatCycleItemsParams) SetCycleID(cycleID string)

SetCycleID adds the cycleId to the get user stat cycle items params

func (*GetUserStatCycleItemsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get user stat cycle items params

func (*GetUserStatCycleItemsParams) SetHTTPClientTransport

func (o *GetUserStatCycleItemsParams) SetHTTPClientTransport(roundTripper http.RoundTripper)

SetHTTPClient adds the HTTPClient Transport to the get user stat cycle items params

func (*GetUserStatCycleItemsParams) SetLimit

func (o *GetUserStatCycleItemsParams) SetLimit(limit *int32)

SetLimit adds the limit to the get user stat cycle items params

func (*GetUserStatCycleItemsParams) SetNamespace

func (o *GetUserStatCycleItemsParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the get user stat cycle items params

func (*GetUserStatCycleItemsParams) SetOffset

func (o *GetUserStatCycleItemsParams) SetOffset(offset *int32)

SetOffset adds the offset to the get user stat cycle items params

func (*GetUserStatCycleItemsParams) SetSortBy added in v0.41.0

func (o *GetUserStatCycleItemsParams) SetSortBy(sortBy *string)

SetSortBy adds the sortBy to the get user stat cycle items params

func (*GetUserStatCycleItemsParams) SetStatCodes

func (o *GetUserStatCycleItemsParams) SetStatCodes(statCodes *string)

SetStatCodes adds the statCodes to the get user stat cycle items params

func (*GetUserStatCycleItemsParams) SetTimeout

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

SetTimeout adds the timeout to the get user stat cycle items params

func (*GetUserStatCycleItemsParams) SetUserID

func (o *GetUserStatCycleItemsParams) SetUserID(userID string)

SetUserID adds the userId to the get user stat cycle items params

func (*GetUserStatCycleItemsParams) WithContext

WithContext adds the context to the get user stat cycle items params

func (*GetUserStatCycleItemsParams) WithCycleID

WithCycleID adds the cycleID to the get user stat cycle items params

func (*GetUserStatCycleItemsParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get user stat cycle items params

func (*GetUserStatCycleItemsParams) WithLimit

WithLimit adds the limit to the get user stat cycle items params

func (*GetUserStatCycleItemsParams) WithNamespace

func (o *GetUserStatCycleItemsParams) WithNamespace(namespace string) *GetUserStatCycleItemsParams

WithNamespace adds the namespace to the get user stat cycle items params

func (*GetUserStatCycleItemsParams) WithOffset

WithOffset adds the offset to the get user stat cycle items params

func (*GetUserStatCycleItemsParams) WithSortBy added in v0.41.0

WithSortBy adds the sortBy to the get user stat cycle items params

func (*GetUserStatCycleItemsParams) WithStatCodes

func (o *GetUserStatCycleItemsParams) WithStatCodes(statCodes *string) *GetUserStatCycleItemsParams

WithStatCodes adds the statCodes to the get user stat cycle items params

func (*GetUserStatCycleItemsParams) WithTimeout

WithTimeout adds the timeout to the get user stat cycle items params

func (*GetUserStatCycleItemsParams) WithUserID

WithUserID adds the userID to the get user stat cycle items params

func (*GetUserStatCycleItemsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetUserStatCycleItemsReader

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

GetUserStatCycleItemsReader is a Reader for the GetUserStatCycleItems structure.

func (*GetUserStatCycleItemsReader) ReadResponse

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