admin_configurations

package
v0.1.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2023 License: MIT Imports: 15 Imported by: 2 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	GetAllConstant       = "all"
	GetExtensionConstant = "extension"
)

Get the enum in GetParams

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for admin configurations API

func (*Client) Get deprecated

Deprecated: 2022-08-10 - Use GetShort instead.

Get get configuration Required permission: ADMIN:NAMESPACE:{namespace}:REPORTINGCONFIG [READ] TimeInterval is in nanoseconds. When there's no configuration set, the response is the default value (configurable through envar).

func (*Client) GetShort

func (a *Client) GetShort(params *GetParams, authInfo runtime.ClientAuthInfoWriter) (*GetOK, error)

GetShort get configuration Required permission: ADMIN:NAMESPACE:{namespace}:REPORTINGCONFIG [READ] TimeInterval is in nanoseconds. When there's no configuration set, the response is the default value (configurable through envar).

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) Upsert deprecated

Deprecated: 2022-08-10 - Use UpsertShort instead.

Upsert create/update configuration Required permission: ADMIN:NAMESPACE:{namespace}:REPORTINGCONFIG [CREATE] The behaviour of this endpoint is upsert based on the namespace. So, you can use this for both creating & updating the configuration. TimeInterval is in nanoseconds.

func (*Client) UpsertShort

func (a *Client) UpsertShort(params *UpsertParams, authInfo runtime.ClientAuthInfoWriter) (*UpsertOK, error)

UpsertShort create/update configuration Required permission: ADMIN:NAMESPACE:{namespace}:REPORTINGCONFIG [CREATE] The behaviour of this endpoint is upsert based on the namespace. So, you can use this for both creating & updating the configuration. TimeInterval is in nanoseconds.

type ClientService

type ClientService interface {
	Get(params *GetParams, authInfo runtime.ClientAuthInfoWriter) (*GetOK, *GetInternalServerError, error)
	GetShort(params *GetParams, authInfo runtime.ClientAuthInfoWriter) (*GetOK, error)
	Upsert(params *UpsertParams, authInfo runtime.ClientAuthInfoWriter) (*UpsertOK, *UpsertBadRequest, *UpsertInternalServerError, error)
	UpsertShort(params *UpsertParams, authInfo runtime.ClientAuthInfoWriter) (*UpsertOK, 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 admin configurations API client.

type GetInternalServerError

type GetInternalServerError struct {
	Payload *reportingclientmodels.RestapiErrorResponse
}

GetInternalServerError handles this case with default header values.

func NewGetInternalServerError

func NewGetInternalServerError() *GetInternalServerError

NewGetInternalServerError creates a GetInternalServerError with default headers values

func (*GetInternalServerError) Error

func (o *GetInternalServerError) Error() string

func (*GetInternalServerError) GetPayload

func (*GetInternalServerError) ToJSONString

func (o *GetInternalServerError) ToJSONString() string

type GetOK

type GetOK struct {
	Payload *reportingclientmodels.RestapiConfigResponse
}

GetOK handles this case with default header values.

func NewGetOK

func NewGetOK() *GetOK

NewGetOK creates a GetOK with default headers values

func (*GetOK) Error

func (o *GetOK) Error() string

func (*GetOK) GetPayload

func (*GetOK) ToJSONString

func (o *GetOK) ToJSONString() string

type GetParams

type GetParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Namespace*/
	Namespace string
	/*Category
	    configuration category flag.
				set this to 'all' to retrieve all category configurations
				set this to 'extension' to retrieve [EXTENSION] category configurations
				leave it blank to retrieve core categories [UGC,USER,CHAT] configurations


	*/
	Category *string

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

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

func NewGetParams

func NewGetParams() *GetParams

NewGetParams creates a new GetParams object with the default values initialized.

func NewGetParamsWithContext

func NewGetParamsWithContext(ctx context.Context) *GetParams

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

func NewGetParamsWithHTTPClient

func NewGetParamsWithHTTPClient(client *http.Client) *GetParams

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

func NewGetParamsWithTimeout

func NewGetParamsWithTimeout(timeout time.Duration) *GetParams

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

func (*GetParams) SetAuthInfoWriter

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

SetAuthInfoWriter adds the authInfoWriter to the get params

func (*GetParams) SetCategory

func (o *GetParams) SetCategory(category *string)

SetCategory adds the category to the get params

func (*GetParams) SetContext

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

SetContext adds the context to the get params

func (*GetParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get params

func (*GetParams) SetHTTPClientTransport

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

SetHTTPClient adds the HTTPClient Transport to the get params

func (*GetParams) SetNamespace

func (o *GetParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the get params

func (*GetParams) SetTimeout

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

SetTimeout adds the timeout to the get params

func (*GetParams) WithCategory

func (o *GetParams) WithCategory(category *string) *GetParams

WithCategory adds the category to the get params

func (*GetParams) WithContext

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

WithContext adds the context to the get params

func (*GetParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get params

func (*GetParams) WithNamespace

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

WithNamespace adds the namespace to the get params

func (*GetParams) WithTimeout

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

WithTimeout adds the timeout to the get params

func (*GetParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetReader

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

GetReader is a Reader for the Get structure.

func (*GetReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpsertBadRequest

type UpsertBadRequest struct {
	Payload *reportingclientmodels.RestapiErrorResponse
}

UpsertBadRequest handles this case with default header values.

func NewUpsertBadRequest

func NewUpsertBadRequest() *UpsertBadRequest

NewUpsertBadRequest creates a UpsertBadRequest with default headers values

func (*UpsertBadRequest) Error

func (o *UpsertBadRequest) Error() string

func (*UpsertBadRequest) GetPayload

func (*UpsertBadRequest) ToJSONString

func (o *UpsertBadRequest) ToJSONString() string

type UpsertInternalServerError

type UpsertInternalServerError struct {
	Payload *reportingclientmodels.RestapiErrorResponse
}

UpsertInternalServerError handles this case with default header values.

func NewUpsertInternalServerError

func NewUpsertInternalServerError() *UpsertInternalServerError

NewUpsertInternalServerError creates a UpsertInternalServerError with default headers values

func (*UpsertInternalServerError) Error

func (o *UpsertInternalServerError) Error() string

func (*UpsertInternalServerError) GetPayload

func (*UpsertInternalServerError) ToJSONString

func (o *UpsertInternalServerError) ToJSONString() string

type UpsertOK

type UpsertOK struct {
	Payload *reportingclientmodels.RestapiConfigResponse
}

UpsertOK handles this case with default header values.

func NewUpsertOK

func NewUpsertOK() *UpsertOK

NewUpsertOK creates a UpsertOK with default headers values

func (*UpsertOK) Error

func (o *UpsertOK) Error() string

func (*UpsertOK) GetPayload

func (*UpsertOK) ToJSONString

func (o *UpsertOK) ToJSONString() string

type UpsertParams

type UpsertParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Body*/
	Body *reportingclientmodels.RestapiReportingLimit
	/*Namespace*/
	Namespace string

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

UpsertParams contains all the parameters to send to the API endpoint for the upsert operation typically these are written to a http.Request

func NewUpsertParams

func NewUpsertParams() *UpsertParams

NewUpsertParams creates a new UpsertParams object with the default values initialized.

func NewUpsertParamsWithContext

func NewUpsertParamsWithContext(ctx context.Context) *UpsertParams

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

func NewUpsertParamsWithHTTPClient

func NewUpsertParamsWithHTTPClient(client *http.Client) *UpsertParams

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

func NewUpsertParamsWithTimeout

func NewUpsertParamsWithTimeout(timeout time.Duration) *UpsertParams

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

func (*UpsertParams) SetAuthInfoWriter

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

SetAuthInfoWriter adds the authInfoWriter to the upsert params

func (*UpsertParams) SetBody

SetBody adds the body to the upsert params

func (*UpsertParams) SetContext

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

SetContext adds the context to the upsert params

func (*UpsertParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the upsert params

func (*UpsertParams) SetHTTPClientTransport

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

SetHTTPClient adds the HTTPClient Transport to the upsert params

func (*UpsertParams) SetNamespace

func (o *UpsertParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the upsert params

func (*UpsertParams) SetTimeout

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

SetTimeout adds the timeout to the upsert params

func (*UpsertParams) WithBody

WithBody adds the body to the upsert params

func (*UpsertParams) WithContext

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

WithContext adds the context to the upsert params

func (*UpsertParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the upsert params

func (*UpsertParams) WithNamespace

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

WithNamespace adds the namespace to the upsert params

func (*UpsertParams) WithTimeout

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

WithTimeout adds the timeout to the upsert params

func (*UpsertParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type UpsertReader

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

UpsertReader is a Reader for the Upsert structure.

func (*UpsertReader) ReadResponse

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