admin_config

package
v0.64.1 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2024 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 AdminGetConfigsBadRequest

type AdminGetConfigsBadRequest struct {
	Payload *ugcclientmodels.ResponseError
}

AdminGetConfigsBadRequest handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>774204</td><td>invalid paging parameter</td></tr></table>

func NewAdminGetConfigsBadRequest

func NewAdminGetConfigsBadRequest() *AdminGetConfigsBadRequest

NewAdminGetConfigsBadRequest creates a AdminGetConfigsBadRequest with default headers values

func (*AdminGetConfigsBadRequest) Error

func (o *AdminGetConfigsBadRequest) Error() string

func (*AdminGetConfigsBadRequest) GetPayload

func (*AdminGetConfigsBadRequest) ToJSONString

func (o *AdminGetConfigsBadRequest) ToJSONString() string

type AdminGetConfigsForbidden

type AdminGetConfigsForbidden struct {
	Payload *ugcclientmodels.ResponseError
}

AdminGetConfigsForbidden handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20013</td><td>insufficient permission</td></tr></table>

func NewAdminGetConfigsForbidden

func NewAdminGetConfigsForbidden() *AdminGetConfigsForbidden

NewAdminGetConfigsForbidden creates a AdminGetConfigsForbidden with default headers values

func (*AdminGetConfigsForbidden) Error

func (o *AdminGetConfigsForbidden) Error() string

func (*AdminGetConfigsForbidden) GetPayload

func (*AdminGetConfigsForbidden) ToJSONString

func (o *AdminGetConfigsForbidden) ToJSONString() string

type AdminGetConfigsInternalServerError

type AdminGetConfigsInternalServerError struct {
	Payload *ugcclientmodels.ResponseError
}

AdminGetConfigsInternalServerError handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>774205</td><td>Unable to get configs</td></tr></table>

func NewAdminGetConfigsInternalServerError

func NewAdminGetConfigsInternalServerError() *AdminGetConfigsInternalServerError

NewAdminGetConfigsInternalServerError creates a AdminGetConfigsInternalServerError with default headers values

func (*AdminGetConfigsInternalServerError) Error

func (*AdminGetConfigsInternalServerError) GetPayload

func (*AdminGetConfigsInternalServerError) ToJSONString

func (o *AdminGetConfigsInternalServerError) ToJSONString() string

type AdminGetConfigsOK

type AdminGetConfigsOK struct {
	Payload *ugcclientmodels.ModelsPaginatedGetConfigsResponse
}

AdminGetConfigsOK handles this case with default header values.

Get configs

func NewAdminGetConfigsOK

func NewAdminGetConfigsOK() *AdminGetConfigsOK

NewAdminGetConfigsOK creates a AdminGetConfigsOK with default headers values

func (*AdminGetConfigsOK) Error

func (o *AdminGetConfigsOK) Error() string

func (*AdminGetConfigsOK) GetPayload

func (*AdminGetConfigsOK) ToJSONString

func (o *AdminGetConfigsOK) ToJSONString() string

type AdminGetConfigsParams

type AdminGetConfigsParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Namespace
	  namespace of the game

	*/
	Namespace string
	/*Limit
	  number of configs per page

	*/
	Limit *int64
	/*Offset
	  offset number to retrieve

	*/
	Offset *int64

	AuthInfoWriter runtime.ClientAuthInfoWriter
	Context        context.Context
	HTTPClient     *http.Client

	// XFlightId is an optional parameter from this SDK
	XFlightId *string
	// contains filtered or unexported fields
}

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

func NewAdminGetConfigsParams

func NewAdminGetConfigsParams() *AdminGetConfigsParams

NewAdminGetConfigsParams creates a new AdminGetConfigsParams object with the default values initialized.

func NewAdminGetConfigsParamsWithContext

func NewAdminGetConfigsParamsWithContext(ctx context.Context) *AdminGetConfigsParams

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

func NewAdminGetConfigsParamsWithHTTPClient

func NewAdminGetConfigsParamsWithHTTPClient(client *http.Client) *AdminGetConfigsParams

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

func NewAdminGetConfigsParamsWithTimeout

func NewAdminGetConfigsParamsWithTimeout(timeout time.Duration) *AdminGetConfigsParams

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

func (*AdminGetConfigsParams) SetAuthInfoWriter

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

SetAuthInfoWriter adds the authInfoWriter to the admin get configs params

func (*AdminGetConfigsParams) SetContext

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

SetContext adds the context to the admin get configs params

func (*AdminGetConfigsParams) SetFlightId added in v0.63.0

func (o *AdminGetConfigsParams) SetFlightId(flightId string)

SetFlightId adds the flightId as the header value for this specific endpoint

func (*AdminGetConfigsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the admin get configs params

func (*AdminGetConfigsParams) SetHTTPClientTransport

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

SetHTTPClient adds the HTTPClient Transport to the admin get configs params

func (*AdminGetConfigsParams) SetLimit

func (o *AdminGetConfigsParams) SetLimit(limit *int64)

SetLimit adds the limit to the admin get configs params

func (*AdminGetConfigsParams) SetNamespace

func (o *AdminGetConfigsParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the admin get configs params

func (*AdminGetConfigsParams) SetOffset

func (o *AdminGetConfigsParams) SetOffset(offset *int64)

SetOffset adds the offset to the admin get configs params

func (*AdminGetConfigsParams) SetTimeout

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

SetTimeout adds the timeout to the admin get configs params

func (*AdminGetConfigsParams) WithContext

WithContext adds the context to the admin get configs params

func (*AdminGetConfigsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the admin get configs params

func (*AdminGetConfigsParams) WithLimit

func (o *AdminGetConfigsParams) WithLimit(limit *int64) *AdminGetConfigsParams

WithLimit adds the limit to the admin get configs params

func (*AdminGetConfigsParams) WithNamespace

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

WithNamespace adds the namespace to the admin get configs params

func (*AdminGetConfigsParams) WithOffset

func (o *AdminGetConfigsParams) WithOffset(offset *int64) *AdminGetConfigsParams

WithOffset adds the offset to the admin get configs params

func (*AdminGetConfigsParams) WithTimeout

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

WithTimeout adds the timeout to the admin get configs params

func (*AdminGetConfigsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type AdminGetConfigsReader

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

AdminGetConfigsReader is a Reader for the AdminGetConfigs structure.

func (*AdminGetConfigsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type AdminGetConfigsUnauthorized

type AdminGetConfigsUnauthorized struct {
	Payload *ugcclientmodels.ResponseError
}

AdminGetConfigsUnauthorized handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20001</td><td>unauthorized access</td></tr></table>

func NewAdminGetConfigsUnauthorized

func NewAdminGetConfigsUnauthorized() *AdminGetConfigsUnauthorized

NewAdminGetConfigsUnauthorized creates a AdminGetConfigsUnauthorized with default headers values

func (*AdminGetConfigsUnauthorized) Error

func (*AdminGetConfigsUnauthorized) GetPayload

func (*AdminGetConfigsUnauthorized) ToJSONString

func (o *AdminGetConfigsUnauthorized) ToJSONString() string

type AdminUpdateConfigBadRequest

type AdminUpdateConfigBadRequest struct {
	Payload *ugcclientmodels.ResponseError
}

AdminUpdateConfigBadRequest handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>774201</td><td>Invalid request body</td></tr></table>

func NewAdminUpdateConfigBadRequest

func NewAdminUpdateConfigBadRequest() *AdminUpdateConfigBadRequest

NewAdminUpdateConfigBadRequest creates a AdminUpdateConfigBadRequest with default headers values

func (*AdminUpdateConfigBadRequest) Error

func (*AdminUpdateConfigBadRequest) GetPayload

func (*AdminUpdateConfigBadRequest) ToJSONString

func (o *AdminUpdateConfigBadRequest) ToJSONString() string

type AdminUpdateConfigCreated

type AdminUpdateConfigCreated struct {
}

AdminUpdateConfigCreated handles this case with default header values.

Config updated

func NewAdminUpdateConfigCreated

func NewAdminUpdateConfigCreated() *AdminUpdateConfigCreated

NewAdminUpdateConfigCreated creates a AdminUpdateConfigCreated with default headers values

func (*AdminUpdateConfigCreated) Error

func (o *AdminUpdateConfigCreated) Error() string

type AdminUpdateConfigForbidden

type AdminUpdateConfigForbidden struct {
	Payload *ugcclientmodels.ResponseError
}

AdminUpdateConfigForbidden handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20013</td><td>insufficient permission</td></tr></table>

func NewAdminUpdateConfigForbidden

func NewAdminUpdateConfigForbidden() *AdminUpdateConfigForbidden

NewAdminUpdateConfigForbidden creates a AdminUpdateConfigForbidden with default headers values

func (*AdminUpdateConfigForbidden) Error

func (*AdminUpdateConfigForbidden) GetPayload

func (*AdminUpdateConfigForbidden) ToJSONString

func (o *AdminUpdateConfigForbidden) ToJSONString() string

type AdminUpdateConfigInternalServerError

type AdminUpdateConfigInternalServerError struct {
	Payload *ugcclientmodels.ResponseError
}

AdminUpdateConfigInternalServerError handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>774202</td><td>Unable to save config</td></tr></table>

func NewAdminUpdateConfigInternalServerError

func NewAdminUpdateConfigInternalServerError() *AdminUpdateConfigInternalServerError

NewAdminUpdateConfigInternalServerError creates a AdminUpdateConfigInternalServerError with default headers values

func (*AdminUpdateConfigInternalServerError) Error

func (*AdminUpdateConfigInternalServerError) GetPayload

func (*AdminUpdateConfigInternalServerError) ToJSONString

func (o *AdminUpdateConfigInternalServerError) ToJSONString() string

type AdminUpdateConfigParams

type AdminUpdateConfigParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Body*/
	Body *ugcclientmodels.ModelsUpdateConfigRequest
	/*Key
	  config key

	*/
	Key string
	/*Namespace
	  namespace of the game

	*/
	Namespace string

	AuthInfoWriter runtime.ClientAuthInfoWriter
	Context        context.Context
	HTTPClient     *http.Client

	// XFlightId is an optional parameter from this SDK
	XFlightId *string
	// contains filtered or unexported fields
}

AdminUpdateConfigParams contains all the parameters to send to the API endpoint for the admin update config operation typically these are written to a http.Request

func NewAdminUpdateConfigParams

func NewAdminUpdateConfigParams() *AdminUpdateConfigParams

NewAdminUpdateConfigParams creates a new AdminUpdateConfigParams object with the default values initialized.

func NewAdminUpdateConfigParamsWithContext

func NewAdminUpdateConfigParamsWithContext(ctx context.Context) *AdminUpdateConfigParams

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

func NewAdminUpdateConfigParamsWithHTTPClient

func NewAdminUpdateConfigParamsWithHTTPClient(client *http.Client) *AdminUpdateConfigParams

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

func NewAdminUpdateConfigParamsWithTimeout

func NewAdminUpdateConfigParamsWithTimeout(timeout time.Duration) *AdminUpdateConfigParams

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

func (*AdminUpdateConfigParams) SetAuthInfoWriter

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

SetAuthInfoWriter adds the authInfoWriter to the admin update config params

func (*AdminUpdateConfigParams) SetBody

SetBody adds the body to the admin update config params

func (*AdminUpdateConfigParams) SetContext

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

SetContext adds the context to the admin update config params

func (*AdminUpdateConfigParams) SetFlightId added in v0.63.0

func (o *AdminUpdateConfigParams) SetFlightId(flightId string)

SetFlightId adds the flightId as the header value for this specific endpoint

func (*AdminUpdateConfigParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the admin update config params

func (*AdminUpdateConfigParams) SetHTTPClientTransport

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

SetHTTPClient adds the HTTPClient Transport to the admin update config params

func (*AdminUpdateConfigParams) SetKey

func (o *AdminUpdateConfigParams) SetKey(key string)

SetKey adds the key to the admin update config params

func (*AdminUpdateConfigParams) SetNamespace

func (o *AdminUpdateConfigParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the admin update config params

func (*AdminUpdateConfigParams) SetTimeout

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

SetTimeout adds the timeout to the admin update config params

func (*AdminUpdateConfigParams) WithBody

WithBody adds the body to the admin update config params

func (*AdminUpdateConfigParams) WithContext

WithContext adds the context to the admin update config params

func (*AdminUpdateConfigParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the admin update config params

func (*AdminUpdateConfigParams) WithKey

WithKey adds the key to the admin update config params

func (*AdminUpdateConfigParams) WithNamespace

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

WithNamespace adds the namespace to the admin update config params

func (*AdminUpdateConfigParams) WithTimeout

WithTimeout adds the timeout to the admin update config params

func (*AdminUpdateConfigParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type AdminUpdateConfigReader

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

AdminUpdateConfigReader is a Reader for the AdminUpdateConfig structure.

func (*AdminUpdateConfigReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type AdminUpdateConfigUnauthorized

type AdminUpdateConfigUnauthorized struct {
	Payload *ugcclientmodels.ResponseError
}

AdminUpdateConfigUnauthorized handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20001</td><td>unauthorized access</td></tr></table>

func NewAdminUpdateConfigUnauthorized

func NewAdminUpdateConfigUnauthorized() *AdminUpdateConfigUnauthorized

NewAdminUpdateConfigUnauthorized creates a AdminUpdateConfigUnauthorized with default headers values

func (*AdminUpdateConfigUnauthorized) Error

func (*AdminUpdateConfigUnauthorized) GetPayload

func (*AdminUpdateConfigUnauthorized) ToJSONString

func (o *AdminUpdateConfigUnauthorized) ToJSONString() string

type Client

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

Client for admin config API

func (*Client) AdminGetConfigs deprecated

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

AdminGetConfigs get configs Required permission ADMIN:NAMESPACE:{namespace}:UGCCONFIG [READ]

func (*Client) AdminGetConfigsShort

func (a *Client) AdminGetConfigsShort(params *AdminGetConfigsParams, authInfo runtime.ClientAuthInfoWriter) (*AdminGetConfigsOK, error)

AdminGetConfigsShort get configs Required permission ADMIN:NAMESPACE:{namespace}:UGCCONFIG [READ]

func (*Client) AdminUpdateConfig deprecated

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

AdminUpdateConfig update config Required permission ADMIN:NAMESPACE:{namespace}:UGCCONFIG [UPDATE]. It will create a new config if the key doesn't exist. Allowed key value: - contentReview : enabled , disabled

func (*Client) AdminUpdateConfigShort

func (a *Client) AdminUpdateConfigShort(params *AdminUpdateConfigParams, authInfo runtime.ClientAuthInfoWriter) (*AdminUpdateConfigCreated, error)

AdminUpdateConfigShort update config Required permission ADMIN:NAMESPACE:{namespace}:UGCCONFIG [UPDATE]. It will create a new config if the key doesn't exist. Allowed key value: - contentReview : enabled , disabled

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientService

ClientService is the interface for Client methods

func New

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

New creates a new admin config API client.

Jump to

Keyboard shortcuts

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