stat_configuration

package
v0.23.0 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2022 License: MIT Imports: 14 Imported by: 1

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 stat configuration API

func (*Client) CreateStat

CreateStat creates stat

Create stat.<br>Other detail info:<ul><li><i>Required permission</i>: resource="ADMIN:NAMESPACE:{namespace}:STAT", action=1 (CREATE)</li><li><i>Returns</i>: created stat template</li><li>default minimum value is 0</li><li>default maximum value is 1.7976931348623157e+308</li></ul>

func (*Client) CreateStat1

CreateStat1 creates stat

Create stat.<br>Other detail info:<ul><li><i>Required permission</i>: resource="NAMESPACE:{namespace}:STAT", action=1 (CREATE)</li><li><i>Returns</i>: created stat template</li><li>default minimum value is 0</li><li>default maximum value is 1.7976931348623157e+308</li></ul>

func (*Client) CreateStat1Short added in v0.8.0

func (a *Client) CreateStat1Short(params *CreateStat1Params, authInfo runtime.ClientAuthInfoWriter) (*CreateStat1Created, error)

func (*Client) CreateStatShort added in v0.8.0

func (a *Client) CreateStatShort(params *CreateStatParams, authInfo runtime.ClientAuthInfoWriter) (*CreateStatCreated, error)

func (*Client) DeleteStat

DeleteStat deletes stat

Deletes stat template.<br>Other detail info:<ul><li><i>Required permission</i>: resource="ADMIN:NAMESPACE:{namespace}:STAT", action=8 (DELETE)</li></ul>

func (*Client) DeleteStatShort added in v0.8.0

func (a *Client) DeleteStatShort(params *DeleteStatParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteStatNoContent, error)

func (*Client) ExportStats

func (a *Client) ExportStats(params *ExportStatsParams, authInfo runtime.ClientAuthInfoWriter) (*ExportStatsOK, error)

ExportStats exports all stat configurations

Export all stat configurations for a given namespace into file At current, only JSON file is supported.<p>Other detail info:<ul><li><i>*Required permission*: resource="ADMIN:NAMESPACE:{namespace}:STAT", action=2 (READ)</li></ul>

func (*Client) ExportStatsShort added in v0.8.0

func (a *Client) ExportStatsShort(params *ExportStatsParams, authInfo runtime.ClientAuthInfoWriter) (*ExportStatsOK, error)

func (*Client) GetStat

func (a *Client) GetStat(params *GetStatParams, authInfo runtime.ClientAuthInfoWriter) (*GetStatOK, *GetStatNotFound, error)

GetStat gets stat by stat code

Get stat by statCode.<br>Other detail info:<ul><li><i>Required permission</i>: resource="ADMIN:NAMESPACE:{namespace}:STAT", action=2 (READ)</li><li><i>Returns</i>: stat info</ul>

func (*Client) GetStatShort added in v0.8.0

func (a *Client) GetStatShort(params *GetStatParams, authInfo runtime.ClientAuthInfoWriter) (*GetStatOK, error)

func (*Client) GetStats

func (a *Client) GetStats(params *GetStatsParams, authInfo runtime.ClientAuthInfoWriter) (*GetStatsOK, error)

GetStats lists stats

List stats by pagination.<br>Other detail info:<ul><li><i>Required permission</i>: resource="ADMIN:NAMESPACE:{namespace}:STAT", action=2 (READ)</li><li><i>Returns</i>: stats</li></ul>

func (*Client) GetStatsShort added in v0.8.0

func (a *Client) GetStatsShort(params *GetStatsParams, authInfo runtime.ClientAuthInfoWriter) (*GetStatsOK, error)

func (*Client) ImportStats

ImportStats imports stat configurations

Import stat configurations for a given namespace from file. At current, only JSON file is supported.<p>Other detail info:<ul><li><i>*Required permission*: resource="ADMIN:NAMESPACE:{namespace}:STAT", action=1 (CREATE)</li></ul>

func (*Client) ImportStatsShort added in v0.8.0

func (a *Client) ImportStatsShort(params *ImportStatsParams, authInfo runtime.ClientAuthInfoWriter) (*ImportStatsOK, error)

func (*Client) QueryStats

func (a *Client) QueryStats(params *QueryStatsParams, authInfo runtime.ClientAuthInfoWriter) (*QueryStatsOK, error)

QueryStats queries stats by keyword

Query stats stats by keyword.<br>Other detail info:<ul><li><i>Required permission</i>: resource="ADMIN:NAMESPACE:{namespace}:STAT", action=2 (READ)</li><li><i>Returns<i>: stats</li></ul>

func (*Client) QueryStatsShort added in v0.8.0

func (a *Client) QueryStatsShort(params *QueryStatsParams, authInfo runtime.ClientAuthInfoWriter) (*QueryStatsOK, error)

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpdateStat

UpdateStat updates stat

Update stat.<br>Other detail info:<ul><li><i>Required permission</i>: resource="ADMIN:NAMESPACE:{namespace}:STAT", action=4 (UPDATE)</li><li><i>Returns</i>: updated stat</li></ul>

func (*Client) UpdateStatShort added in v0.8.0

func (a *Client) UpdateStatShort(params *UpdateStatParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateStatOK, error)

type ClientService

type ClientService interface {
	CreateStat(params *CreateStatParams, authInfo runtime.ClientAuthInfoWriter) (*CreateStatCreated, *CreateStatConflict, error)
	CreateStatShort(params *CreateStatParams, authInfo runtime.ClientAuthInfoWriter) (*CreateStatCreated, error)
	CreateStat1(params *CreateStat1Params, authInfo runtime.ClientAuthInfoWriter) (*CreateStat1Created, *CreateStat1Conflict, error)
	CreateStat1Short(params *CreateStat1Params, authInfo runtime.ClientAuthInfoWriter) (*CreateStat1Created, error)
	DeleteStat(params *DeleteStatParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteStatNoContent, *DeleteStatNotFound, error)
	DeleteStatShort(params *DeleteStatParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteStatNoContent, error)
	ExportStats(params *ExportStatsParams, authInfo runtime.ClientAuthInfoWriter) (*ExportStatsOK, error)
	ExportStatsShort(params *ExportStatsParams, authInfo runtime.ClientAuthInfoWriter) (*ExportStatsOK, error)
	GetStat(params *GetStatParams, authInfo runtime.ClientAuthInfoWriter) (*GetStatOK, *GetStatNotFound, error)
	GetStatShort(params *GetStatParams, authInfo runtime.ClientAuthInfoWriter) (*GetStatOK, error)
	GetStats(params *GetStatsParams, authInfo runtime.ClientAuthInfoWriter) (*GetStatsOK, error)
	GetStatsShort(params *GetStatsParams, authInfo runtime.ClientAuthInfoWriter) (*GetStatsOK, error)
	ImportStats(params *ImportStatsParams, authInfo runtime.ClientAuthInfoWriter) (*ImportStatsOK, *ImportStatsBadRequest, error)
	ImportStatsShort(params *ImportStatsParams, authInfo runtime.ClientAuthInfoWriter) (*ImportStatsOK, error)
	QueryStats(params *QueryStatsParams, authInfo runtime.ClientAuthInfoWriter) (*QueryStatsOK, error)
	QueryStatsShort(params *QueryStatsParams, authInfo runtime.ClientAuthInfoWriter) (*QueryStatsOK, error)
	UpdateStat(params *UpdateStatParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateStatOK, *UpdateStatNotFound, error)
	UpdateStatShort(params *UpdateStatParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateStatOK, 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 stat configuration API client.

type CreateStat1Conflict

type CreateStat1Conflict struct {
	Payload *socialclientmodels.ErrorEntity
}

CreateStat1Conflict handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>12271</td><td>Stat template with code [{statCode}] already exists in namespace [{namespace}]</td></tr></table>

func NewCreateStat1Conflict

func NewCreateStat1Conflict() *CreateStat1Conflict

NewCreateStat1Conflict creates a CreateStat1Conflict with default headers values

func (*CreateStat1Conflict) Error

func (o *CreateStat1Conflict) Error() string

func (*CreateStat1Conflict) GetPayload

type CreateStat1Created

type CreateStat1Created struct {
	Payload *socialclientmodels.StatInfo
}

CreateStat1Created handles this case with default header values.

Create stat successfully

func NewCreateStat1Created

func NewCreateStat1Created() *CreateStat1Created

NewCreateStat1Created creates a CreateStat1Created with default headers values

func (*CreateStat1Created) Error

func (o *CreateStat1Created) Error() string

func (*CreateStat1Created) GetPayload

type CreateStat1Params

type CreateStat1Params struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Body*/
	Body *socialclientmodels.StatCreate
	/*Namespace
	  namespace

	*/
	Namespace string

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

CreateStat1Params contains all the parameters to send to the API endpoint for the create stat 1 operation typically these are written to a http.Request

func NewCreateStat1Params

func NewCreateStat1Params() *CreateStat1Params

NewCreateStat1Params creates a new CreateStat1Params object with the default values initialized.

func NewCreateStat1ParamsWithContext

func NewCreateStat1ParamsWithContext(ctx context.Context) *CreateStat1Params

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

func NewCreateStat1ParamsWithHTTPClient

func NewCreateStat1ParamsWithHTTPClient(client *http.Client) *CreateStat1Params

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

func NewCreateStat1ParamsWithTimeout

func NewCreateStat1ParamsWithTimeout(timeout time.Duration) *CreateStat1Params

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

func (*CreateStat1Params) SetAuthInfoWriter added in v0.17.0

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

SetAuthInfoWriter adds the authInfoWriter to the create stat 1 params

func (*CreateStat1Params) SetBody

SetBody adds the body to the create stat 1 params

func (*CreateStat1Params) SetContext

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

SetContext adds the context to the create stat 1 params

func (*CreateStat1Params) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create stat 1 params

func (*CreateStat1Params) SetHTTPClientTransport added in v0.19.0

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

SetHTTPClient adds the HTTPClient Transport to the create stat 1 params

func (*CreateStat1Params) SetNamespace

func (o *CreateStat1Params) SetNamespace(namespace string)

SetNamespace adds the namespace to the create stat 1 params

func (*CreateStat1Params) SetTimeout

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

SetTimeout adds the timeout to the create stat 1 params

func (*CreateStat1Params) WithBody

WithBody adds the body to the create stat 1 params

func (*CreateStat1Params) WithContext

func (o *CreateStat1Params) WithContext(ctx context.Context) *CreateStat1Params

WithContext adds the context to the create stat 1 params

func (*CreateStat1Params) WithHTTPClient

func (o *CreateStat1Params) WithHTTPClient(client *http.Client) *CreateStat1Params

WithHTTPClient adds the HTTPClient to the create stat 1 params

func (*CreateStat1Params) WithNamespace

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

WithNamespace adds the namespace to the create stat 1 params

func (*CreateStat1Params) WithTimeout

func (o *CreateStat1Params) WithTimeout(timeout time.Duration) *CreateStat1Params

WithTimeout adds the timeout to the create stat 1 params

func (*CreateStat1Params) WriteToRequest

func (o *CreateStat1Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type CreateStat1Reader

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

CreateStat1Reader is a Reader for the CreateStat1 structure.

func (*CreateStat1Reader) ReadResponse

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

ReadResponse reads a server response into the received o.

type CreateStatConflict

type CreateStatConflict struct {
	Payload *socialclientmodels.ErrorEntity
}

CreateStatConflict handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>12271</td><td>Stat template with code [{statCode}] already exists in namespace [{namespace}]</td></tr></table>

func NewCreateStatConflict

func NewCreateStatConflict() *CreateStatConflict

NewCreateStatConflict creates a CreateStatConflict with default headers values

func (*CreateStatConflict) Error

func (o *CreateStatConflict) Error() string

func (*CreateStatConflict) GetPayload

type CreateStatCreated

type CreateStatCreated struct {
	Payload *socialclientmodels.StatInfo
}

CreateStatCreated handles this case with default header values.

Create stat successfully

func NewCreateStatCreated

func NewCreateStatCreated() *CreateStatCreated

NewCreateStatCreated creates a CreateStatCreated with default headers values

func (*CreateStatCreated) Error

func (o *CreateStatCreated) Error() string

func (*CreateStatCreated) GetPayload

type CreateStatParams

type CreateStatParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Body*/
	Body *socialclientmodels.StatCreate
	/*Namespace
	  namespace

	*/
	Namespace string

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

CreateStatParams contains all the parameters to send to the API endpoint for the create stat operation typically these are written to a http.Request

func NewCreateStatParams

func NewCreateStatParams() *CreateStatParams

NewCreateStatParams creates a new CreateStatParams object with the default values initialized.

func NewCreateStatParamsWithContext

func NewCreateStatParamsWithContext(ctx context.Context) *CreateStatParams

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

func NewCreateStatParamsWithHTTPClient

func NewCreateStatParamsWithHTTPClient(client *http.Client) *CreateStatParams

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

func NewCreateStatParamsWithTimeout

func NewCreateStatParamsWithTimeout(timeout time.Duration) *CreateStatParams

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

func (*CreateStatParams) SetAuthInfoWriter added in v0.17.0

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

SetAuthInfoWriter adds the authInfoWriter to the create stat params

func (*CreateStatParams) SetBody

SetBody adds the body to the create stat params

func (*CreateStatParams) SetContext

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

SetContext adds the context to the create stat params

func (*CreateStatParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create stat params

func (*CreateStatParams) SetHTTPClientTransport added in v0.19.0

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

SetHTTPClient adds the HTTPClient Transport to the create stat params

func (*CreateStatParams) SetNamespace

func (o *CreateStatParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the create stat params

func (*CreateStatParams) SetTimeout

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

SetTimeout adds the timeout to the create stat params

func (*CreateStatParams) WithBody

WithBody adds the body to the create stat params

func (*CreateStatParams) WithContext

func (o *CreateStatParams) WithContext(ctx context.Context) *CreateStatParams

WithContext adds the context to the create stat params

func (*CreateStatParams) WithHTTPClient

func (o *CreateStatParams) WithHTTPClient(client *http.Client) *CreateStatParams

WithHTTPClient adds the HTTPClient to the create stat params

func (*CreateStatParams) WithNamespace

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

WithNamespace adds the namespace to the create stat params

func (*CreateStatParams) WithTimeout

func (o *CreateStatParams) WithTimeout(timeout time.Duration) *CreateStatParams

WithTimeout adds the timeout to the create stat params

func (*CreateStatParams) WriteToRequest

func (o *CreateStatParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type CreateStatReader

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

CreateStatReader is a Reader for the CreateStat structure.

func (*CreateStatReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteStatNoContent

type DeleteStatNoContent struct {
}

DeleteStatNoContent handles this case with default header values.

Successful delete of stat

func NewDeleteStatNoContent

func NewDeleteStatNoContent() *DeleteStatNoContent

NewDeleteStatNoContent creates a DeleteStatNoContent with default headers values

func (*DeleteStatNoContent) Error

func (o *DeleteStatNoContent) Error() string

type DeleteStatNotFound

type DeleteStatNotFound struct {
	Payload *socialclientmodels.ErrorEntity
}

DeleteStatNotFound handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>12241</td><td>Stat [{statCode}] cannot be found in namespace [{namespace}]</td></tr></table>

func NewDeleteStatNotFound

func NewDeleteStatNotFound() *DeleteStatNotFound

NewDeleteStatNotFound creates a DeleteStatNotFound with default headers values

func (*DeleteStatNotFound) Error

func (o *DeleteStatNotFound) Error() string

func (*DeleteStatNotFound) GetPayload

type DeleteStatParams

type DeleteStatParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Namespace
	  namespace

	*/
	Namespace string
	/*StatCode
	  stat code

	*/
	StatCode string

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

DeleteStatParams contains all the parameters to send to the API endpoint for the delete stat operation typically these are written to a http.Request

func NewDeleteStatParams

func NewDeleteStatParams() *DeleteStatParams

NewDeleteStatParams creates a new DeleteStatParams object with the default values initialized.

func NewDeleteStatParamsWithContext

func NewDeleteStatParamsWithContext(ctx context.Context) *DeleteStatParams

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

func NewDeleteStatParamsWithHTTPClient

func NewDeleteStatParamsWithHTTPClient(client *http.Client) *DeleteStatParams

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

func NewDeleteStatParamsWithTimeout

func NewDeleteStatParamsWithTimeout(timeout time.Duration) *DeleteStatParams

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

func (*DeleteStatParams) SetAuthInfoWriter added in v0.17.0

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

SetAuthInfoWriter adds the authInfoWriter to the delete stat params

func (*DeleteStatParams) SetContext

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

SetContext adds the context to the delete stat params

func (*DeleteStatParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete stat params

func (*DeleteStatParams) SetHTTPClientTransport added in v0.19.0

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

SetHTTPClient adds the HTTPClient Transport to the delete stat params

func (*DeleteStatParams) SetNamespace

func (o *DeleteStatParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the delete stat params

func (*DeleteStatParams) SetStatCode

func (o *DeleteStatParams) SetStatCode(statCode string)

SetStatCode adds the statCode to the delete stat params

func (*DeleteStatParams) SetTimeout

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

SetTimeout adds the timeout to the delete stat params

func (*DeleteStatParams) WithContext

func (o *DeleteStatParams) WithContext(ctx context.Context) *DeleteStatParams

WithContext adds the context to the delete stat params

func (*DeleteStatParams) WithHTTPClient

func (o *DeleteStatParams) WithHTTPClient(client *http.Client) *DeleteStatParams

WithHTTPClient adds the HTTPClient to the delete stat params

func (*DeleteStatParams) WithNamespace

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

WithNamespace adds the namespace to the delete stat params

func (*DeleteStatParams) WithStatCode

func (o *DeleteStatParams) WithStatCode(statCode string) *DeleteStatParams

WithStatCode adds the statCode to the delete stat params

func (*DeleteStatParams) WithTimeout

func (o *DeleteStatParams) WithTimeout(timeout time.Duration) *DeleteStatParams

WithTimeout adds the timeout to the delete stat params

func (*DeleteStatParams) WriteToRequest

func (o *DeleteStatParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type DeleteStatReader

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

DeleteStatReader is a Reader for the DeleteStat structure.

func (*DeleteStatReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ExportStatsOK

type ExportStatsOK struct {
}

ExportStatsOK handles this case with default header values.

successful export of stat configs

func NewExportStatsOK

func NewExportStatsOK() *ExportStatsOK

NewExportStatsOK creates a ExportStatsOK with default headers values

func (*ExportStatsOK) Error

func (o *ExportStatsOK) Error() string

type ExportStatsParams

type ExportStatsParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Namespace
	  namespace

	*/
	Namespace string

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

ExportStatsParams contains all the parameters to send to the API endpoint for the export stats operation typically these are written to a http.Request

func NewExportStatsParams

func NewExportStatsParams() *ExportStatsParams

NewExportStatsParams creates a new ExportStatsParams object with the default values initialized.

func NewExportStatsParamsWithContext

func NewExportStatsParamsWithContext(ctx context.Context) *ExportStatsParams

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

func NewExportStatsParamsWithHTTPClient

func NewExportStatsParamsWithHTTPClient(client *http.Client) *ExportStatsParams

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

func NewExportStatsParamsWithTimeout

func NewExportStatsParamsWithTimeout(timeout time.Duration) *ExportStatsParams

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

func (*ExportStatsParams) SetAuthInfoWriter added in v0.17.0

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

SetAuthInfoWriter adds the authInfoWriter to the export stats params

func (*ExportStatsParams) SetContext

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

SetContext adds the context to the export stats params

func (*ExportStatsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the export stats params

func (*ExportStatsParams) SetHTTPClientTransport added in v0.19.0

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

SetHTTPClient adds the HTTPClient Transport to the export stats params

func (*ExportStatsParams) SetNamespace

func (o *ExportStatsParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the export stats params

func (*ExportStatsParams) SetTimeout

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

SetTimeout adds the timeout to the export stats params

func (*ExportStatsParams) WithContext

func (o *ExportStatsParams) WithContext(ctx context.Context) *ExportStatsParams

WithContext adds the context to the export stats params

func (*ExportStatsParams) WithHTTPClient

func (o *ExportStatsParams) WithHTTPClient(client *http.Client) *ExportStatsParams

WithHTTPClient adds the HTTPClient to the export stats params

func (*ExportStatsParams) WithNamespace

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

WithNamespace adds the namespace to the export stats params

func (*ExportStatsParams) WithTimeout

func (o *ExportStatsParams) WithTimeout(timeout time.Duration) *ExportStatsParams

WithTimeout adds the timeout to the export stats params

func (*ExportStatsParams) WriteToRequest

func (o *ExportStatsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type ExportStatsReader

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

ExportStatsReader is a Reader for the ExportStats structure.

func (*ExportStatsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetStatNotFound

type GetStatNotFound struct {
	Payload *socialclientmodels.ErrorEntity
}

GetStatNotFound handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>12241</td><td>Stat [{statCode}] cannot be found in namespace [{namespace}]</td></tr></table>

func NewGetStatNotFound

func NewGetStatNotFound() *GetStatNotFound

NewGetStatNotFound creates a GetStatNotFound with default headers values

func (*GetStatNotFound) Error

func (o *GetStatNotFound) Error() string

func (*GetStatNotFound) GetPayload

type GetStatOK

type GetStatOK struct {
	Payload *socialclientmodels.StatInfo
}

GetStatOK handles this case with default header values.

successful operation

func NewGetStatOK

func NewGetStatOK() *GetStatOK

NewGetStatOK creates a GetStatOK with default headers values

func (*GetStatOK) Error

func (o *GetStatOK) Error() string

func (*GetStatOK) GetPayload

func (o *GetStatOK) GetPayload() *socialclientmodels.StatInfo

type GetStatParams

type GetStatParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Namespace
	  namespace

	*/
	Namespace string
	/*StatCode
	  stat Code

	*/
	StatCode string

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

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

func NewGetStatParams

func NewGetStatParams() *GetStatParams

NewGetStatParams creates a new GetStatParams object with the default values initialized.

func NewGetStatParamsWithContext

func NewGetStatParamsWithContext(ctx context.Context) *GetStatParams

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

func NewGetStatParamsWithHTTPClient

func NewGetStatParamsWithHTTPClient(client *http.Client) *GetStatParams

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

func NewGetStatParamsWithTimeout

func NewGetStatParamsWithTimeout(timeout time.Duration) *GetStatParams

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

func (*GetStatParams) SetAuthInfoWriter added in v0.17.0

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

SetAuthInfoWriter adds the authInfoWriter to the get stat params

func (*GetStatParams) SetContext

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

SetContext adds the context to the get stat params

func (*GetStatParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get stat params

func (*GetStatParams) SetHTTPClientTransport added in v0.19.0

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

SetHTTPClient adds the HTTPClient Transport to the get stat params

func (*GetStatParams) SetNamespace

func (o *GetStatParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the get stat params

func (*GetStatParams) SetStatCode

func (o *GetStatParams) SetStatCode(statCode string)

SetStatCode adds the statCode to the get stat params

func (*GetStatParams) SetTimeout

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

SetTimeout adds the timeout to the get stat params

func (*GetStatParams) WithContext

func (o *GetStatParams) WithContext(ctx context.Context) *GetStatParams

WithContext adds the context to the get stat params

func (*GetStatParams) WithHTTPClient

func (o *GetStatParams) WithHTTPClient(client *http.Client) *GetStatParams

WithHTTPClient adds the HTTPClient to the get stat params

func (*GetStatParams) WithNamespace

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

WithNamespace adds the namespace to the get stat params

func (*GetStatParams) WithStatCode

func (o *GetStatParams) WithStatCode(statCode string) *GetStatParams

WithStatCode adds the statCode to the get stat params

func (*GetStatParams) WithTimeout

func (o *GetStatParams) WithTimeout(timeout time.Duration) *GetStatParams

WithTimeout adds the timeout to the get stat params

func (*GetStatParams) WriteToRequest

func (o *GetStatParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetStatReader

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

GetStatReader is a Reader for the GetStat structure.

func (*GetStatReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetStatsOK

type GetStatsOK struct {
	Payload *socialclientmodels.StatPagingSlicedResult
}

GetStatsOK handles this case with default header values.

successful operation

func NewGetStatsOK

func NewGetStatsOK() *GetStatsOK

NewGetStatsOK creates a GetStatsOK with default headers values

func (*GetStatsOK) Error

func (o *GetStatsOK) Error() string

func (*GetStatsOK) GetPayload

type GetStatsParams

type GetStatsParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Limit*/
	Limit *int32
	/*Namespace
	  namespace

	*/
	Namespace string
	/*Offset*/
	Offset *int32

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

GetStatsParams contains all the parameters to send to the API endpoint for the get stats operation typically these are written to a http.Request

func NewGetStatsParams

func NewGetStatsParams() *GetStatsParams

NewGetStatsParams creates a new GetStatsParams object with the default values initialized.

func NewGetStatsParamsWithContext

func NewGetStatsParamsWithContext(ctx context.Context) *GetStatsParams

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

func NewGetStatsParamsWithHTTPClient

func NewGetStatsParamsWithHTTPClient(client *http.Client) *GetStatsParams

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

func NewGetStatsParamsWithTimeout

func NewGetStatsParamsWithTimeout(timeout time.Duration) *GetStatsParams

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

func (*GetStatsParams) SetAuthInfoWriter added in v0.17.0

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

SetAuthInfoWriter adds the authInfoWriter to the get stats params

func (*GetStatsParams) SetContext

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

SetContext adds the context to the get stats params

func (*GetStatsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get stats params

func (*GetStatsParams) SetHTTPClientTransport added in v0.19.0

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

SetHTTPClient adds the HTTPClient Transport to the get stats params

func (*GetStatsParams) SetLimit

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

SetLimit adds the limit to the get stats params

func (*GetStatsParams) SetNamespace

func (o *GetStatsParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the get stats params

func (*GetStatsParams) SetOffset

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

SetOffset adds the offset to the get stats params

func (*GetStatsParams) SetTimeout

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

SetTimeout adds the timeout to the get stats params

func (*GetStatsParams) WithContext

func (o *GetStatsParams) WithContext(ctx context.Context) *GetStatsParams

WithContext adds the context to the get stats params

func (*GetStatsParams) WithHTTPClient

func (o *GetStatsParams) WithHTTPClient(client *http.Client) *GetStatsParams

WithHTTPClient adds the HTTPClient to the get stats params

func (*GetStatsParams) WithLimit

func (o *GetStatsParams) WithLimit(limit *int32) *GetStatsParams

WithLimit adds the limit to the get stats params

func (*GetStatsParams) WithNamespace

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

WithNamespace adds the namespace to the get stats params

func (*GetStatsParams) WithOffset

func (o *GetStatsParams) WithOffset(offset *int32) *GetStatsParams

WithOffset adds the offset to the get stats params

func (*GetStatsParams) WithTimeout

func (o *GetStatsParams) WithTimeout(timeout time.Duration) *GetStatsParams

WithTimeout adds the timeout to the get stats params

func (*GetStatsParams) WriteToRequest

func (o *GetStatsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetStatsReader

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

GetStatsReader is a Reader for the GetStats structure.

func (*GetStatsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ImportStatsBadRequest

type ImportStatsBadRequest struct {
	Payload *socialclientmodels.ErrorEntity
}

ImportStatsBadRequest handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>70138</td><td>Stats data for namespace [{namespace}] is invalid</td></tr></table>

func NewImportStatsBadRequest

func NewImportStatsBadRequest() *ImportStatsBadRequest

NewImportStatsBadRequest creates a ImportStatsBadRequest with default headers values

func (*ImportStatsBadRequest) Error

func (o *ImportStatsBadRequest) Error() string

func (*ImportStatsBadRequest) GetPayload

type ImportStatsOK

type ImportStatsOK struct {
	Payload *socialclientmodels.StatImportInfo
}

ImportStatsOK handles this case with default header values.

successful operation

func NewImportStatsOK

func NewImportStatsOK() *ImportStatsOK

NewImportStatsOK creates a ImportStatsOK with default headers values

func (*ImportStatsOK) Error

func (o *ImportStatsOK) Error() string

func (*ImportStatsOK) GetPayload

type ImportStatsParams

type ImportStatsParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*File*/
	File runtime.NamedReadCloser
	/*Namespace
	  namespace

	*/
	Namespace string
	/*ReplaceExisting
	  replaceExisting

	*/
	ReplaceExisting *bool

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

ImportStatsParams contains all the parameters to send to the API endpoint for the import stats operation typically these are written to a http.Request

func NewImportStatsParams

func NewImportStatsParams() *ImportStatsParams

NewImportStatsParams creates a new ImportStatsParams object with the default values initialized.

func NewImportStatsParamsWithContext

func NewImportStatsParamsWithContext(ctx context.Context) *ImportStatsParams

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

func NewImportStatsParamsWithHTTPClient

func NewImportStatsParamsWithHTTPClient(client *http.Client) *ImportStatsParams

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

func NewImportStatsParamsWithTimeout

func NewImportStatsParamsWithTimeout(timeout time.Duration) *ImportStatsParams

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

func (*ImportStatsParams) SetAuthInfoWriter added in v0.17.0

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

SetAuthInfoWriter adds the authInfoWriter to the import stats params

func (*ImportStatsParams) SetContext

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

SetContext adds the context to the import stats params

func (*ImportStatsParams) SetFile

func (o *ImportStatsParams) SetFile(file runtime.NamedReadCloser)

SetFile adds the file to the import stats params

func (*ImportStatsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the import stats params

func (*ImportStatsParams) SetHTTPClientTransport added in v0.19.0

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

SetHTTPClient adds the HTTPClient Transport to the import stats params

func (*ImportStatsParams) SetNamespace

func (o *ImportStatsParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the import stats params

func (*ImportStatsParams) SetReplaceExisting

func (o *ImportStatsParams) SetReplaceExisting(replaceExisting *bool)

SetReplaceExisting adds the replaceExisting to the import stats params

func (*ImportStatsParams) SetTimeout

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

SetTimeout adds the timeout to the import stats params

func (*ImportStatsParams) WithContext

func (o *ImportStatsParams) WithContext(ctx context.Context) *ImportStatsParams

WithContext adds the context to the import stats params

func (*ImportStatsParams) WithFile

WithFile adds the file to the import stats params

func (*ImportStatsParams) WithHTTPClient

func (o *ImportStatsParams) WithHTTPClient(client *http.Client) *ImportStatsParams

WithHTTPClient adds the HTTPClient to the import stats params

func (*ImportStatsParams) WithNamespace

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

WithNamespace adds the namespace to the import stats params

func (*ImportStatsParams) WithReplaceExisting

func (o *ImportStatsParams) WithReplaceExisting(replaceExisting *bool) *ImportStatsParams

WithReplaceExisting adds the replaceExisting to the import stats params

func (*ImportStatsParams) WithTimeout

func (o *ImportStatsParams) WithTimeout(timeout time.Duration) *ImportStatsParams

WithTimeout adds the timeout to the import stats params

func (*ImportStatsParams) WriteToRequest

func (o *ImportStatsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type ImportStatsReader

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

ImportStatsReader is a Reader for the ImportStats structure.

func (*ImportStatsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type QueryStatsOK

type QueryStatsOK struct {
	Payload *socialclientmodels.StatPagingSlicedResult
}

QueryStatsOK handles this case with default header values.

successful operation

func NewQueryStatsOK

func NewQueryStatsOK() *QueryStatsOK

NewQueryStatsOK creates a QueryStatsOK with default headers values

func (*QueryStatsOK) Error

func (o *QueryStatsOK) Error() string

func (*QueryStatsOK) GetPayload

type QueryStatsParams

type QueryStatsParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Keyword
	  keyword

	*/
	Keyword string
	/*Limit*/
	Limit *int32
	/*Namespace
	  namespace

	*/
	Namespace string
	/*Offset*/
	Offset *int32

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

QueryStatsParams contains all the parameters to send to the API endpoint for the query stats operation typically these are written to a http.Request

func NewQueryStatsParams

func NewQueryStatsParams() *QueryStatsParams

NewQueryStatsParams creates a new QueryStatsParams object with the default values initialized.

func NewQueryStatsParamsWithContext

func NewQueryStatsParamsWithContext(ctx context.Context) *QueryStatsParams

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

func NewQueryStatsParamsWithHTTPClient

func NewQueryStatsParamsWithHTTPClient(client *http.Client) *QueryStatsParams

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

func NewQueryStatsParamsWithTimeout

func NewQueryStatsParamsWithTimeout(timeout time.Duration) *QueryStatsParams

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

func (*QueryStatsParams) SetAuthInfoWriter added in v0.17.0

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

SetAuthInfoWriter adds the authInfoWriter to the query stats params

func (*QueryStatsParams) SetContext

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

SetContext adds the context to the query stats params

func (*QueryStatsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the query stats params

func (*QueryStatsParams) SetHTTPClientTransport added in v0.19.0

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

SetHTTPClient adds the HTTPClient Transport to the query stats params

func (*QueryStatsParams) SetKeyword

func (o *QueryStatsParams) SetKeyword(keyword string)

SetKeyword adds the keyword to the query stats params

func (*QueryStatsParams) SetLimit

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

SetLimit adds the limit to the query stats params

func (*QueryStatsParams) SetNamespace

func (o *QueryStatsParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the query stats params

func (*QueryStatsParams) SetOffset

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

SetOffset adds the offset to the query stats params

func (*QueryStatsParams) SetTimeout

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

SetTimeout adds the timeout to the query stats params

func (*QueryStatsParams) WithContext

func (o *QueryStatsParams) WithContext(ctx context.Context) *QueryStatsParams

WithContext adds the context to the query stats params

func (*QueryStatsParams) WithHTTPClient

func (o *QueryStatsParams) WithHTTPClient(client *http.Client) *QueryStatsParams

WithHTTPClient adds the HTTPClient to the query stats params

func (*QueryStatsParams) WithKeyword

func (o *QueryStatsParams) WithKeyword(keyword string) *QueryStatsParams

WithKeyword adds the keyword to the query stats params

func (*QueryStatsParams) WithLimit

func (o *QueryStatsParams) WithLimit(limit *int32) *QueryStatsParams

WithLimit adds the limit to the query stats params

func (*QueryStatsParams) WithNamespace

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

WithNamespace adds the namespace to the query stats params

func (*QueryStatsParams) WithOffset

func (o *QueryStatsParams) WithOffset(offset *int32) *QueryStatsParams

WithOffset adds the offset to the query stats params

func (*QueryStatsParams) WithTimeout

func (o *QueryStatsParams) WithTimeout(timeout time.Duration) *QueryStatsParams

WithTimeout adds the timeout to the query stats params

func (*QueryStatsParams) WriteToRequest

func (o *QueryStatsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type QueryStatsReader

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

QueryStatsReader is a Reader for the QueryStats structure.

func (*QueryStatsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateStatNotFound

type UpdateStatNotFound struct {
	Payload *socialclientmodels.ErrorEntity
}

UpdateStatNotFound handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>12241</td><td>Stat [{statCode}] cannot be found in namespace [{namespace}]</td></tr></table>

func NewUpdateStatNotFound

func NewUpdateStatNotFound() *UpdateStatNotFound

NewUpdateStatNotFound creates a UpdateStatNotFound with default headers values

func (*UpdateStatNotFound) Error

func (o *UpdateStatNotFound) Error() string

func (*UpdateStatNotFound) GetPayload

type UpdateStatOK

type UpdateStatOK struct {
	Payload *socialclientmodels.StatInfo
}

UpdateStatOK handles this case with default header values.

successful update of stat

func NewUpdateStatOK

func NewUpdateStatOK() *UpdateStatOK

NewUpdateStatOK creates a UpdateStatOK with default headers values

func (*UpdateStatOK) Error

func (o *UpdateStatOK) Error() string

func (*UpdateStatOK) GetPayload

func (o *UpdateStatOK) GetPayload() *socialclientmodels.StatInfo

type UpdateStatParams

type UpdateStatParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Body*/
	Body *socialclientmodels.StatUpdate
	/*Namespace
	  namespace

	*/
	Namespace string
	/*StatCode
	  stat code

	*/
	StatCode string

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

UpdateStatParams contains all the parameters to send to the API endpoint for the update stat operation typically these are written to a http.Request

func NewUpdateStatParams

func NewUpdateStatParams() *UpdateStatParams

NewUpdateStatParams creates a new UpdateStatParams object with the default values initialized.

func NewUpdateStatParamsWithContext

func NewUpdateStatParamsWithContext(ctx context.Context) *UpdateStatParams

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

func NewUpdateStatParamsWithHTTPClient

func NewUpdateStatParamsWithHTTPClient(client *http.Client) *UpdateStatParams

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

func NewUpdateStatParamsWithTimeout

func NewUpdateStatParamsWithTimeout(timeout time.Duration) *UpdateStatParams

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

func (*UpdateStatParams) SetAuthInfoWriter added in v0.17.0

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

SetAuthInfoWriter adds the authInfoWriter to the update stat params

func (*UpdateStatParams) SetBody

SetBody adds the body to the update stat params

func (*UpdateStatParams) SetContext

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

SetContext adds the context to the update stat params

func (*UpdateStatParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update stat params

func (*UpdateStatParams) SetHTTPClientTransport added in v0.19.0

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

SetHTTPClient adds the HTTPClient Transport to the update stat params

func (*UpdateStatParams) SetNamespace

func (o *UpdateStatParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the update stat params

func (*UpdateStatParams) SetStatCode

func (o *UpdateStatParams) SetStatCode(statCode string)

SetStatCode adds the statCode to the update stat params

func (*UpdateStatParams) SetTimeout

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

SetTimeout adds the timeout to the update stat params

func (*UpdateStatParams) WithBody

WithBody adds the body to the update stat params

func (*UpdateStatParams) WithContext

func (o *UpdateStatParams) WithContext(ctx context.Context) *UpdateStatParams

WithContext adds the context to the update stat params

func (*UpdateStatParams) WithHTTPClient

func (o *UpdateStatParams) WithHTTPClient(client *http.Client) *UpdateStatParams

WithHTTPClient adds the HTTPClient to the update stat params

func (*UpdateStatParams) WithNamespace

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

WithNamespace adds the namespace to the update stat params

func (*UpdateStatParams) WithStatCode

func (o *UpdateStatParams) WithStatCode(statCode string) *UpdateStatParams

WithStatCode adds the statCode to the update stat params

func (*UpdateStatParams) WithTimeout

func (o *UpdateStatParams) WithTimeout(timeout time.Duration) *UpdateStatParams

WithTimeout adds the timeout to the update stat params

func (*UpdateStatParams) WriteToRequest

func (o *UpdateStatParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type UpdateStatReader

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

UpdateStatReader is a Reader for the UpdateStat structure.

func (*UpdateStatReader) ReadResponse

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