admin_game_record

package
v0.72.0 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 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 AdminDeleteGameRecordHandlerV1BadRequest added in v0.58.0

type AdminDeleteGameRecordHandlerV1BadRequest struct {
	Payload *cloudsaveclientmodels.ModelsResponseError
}

AdminDeleteGameRecordHandlerV1BadRequest handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>18201</td><td>invalid record operator, expect [%s] but actual [%s]</td></tr></table>

func NewAdminDeleteGameRecordHandlerV1BadRequest added in v0.58.0

func NewAdminDeleteGameRecordHandlerV1BadRequest() *AdminDeleteGameRecordHandlerV1BadRequest

NewAdminDeleteGameRecordHandlerV1BadRequest creates a AdminDeleteGameRecordHandlerV1BadRequest with default headers values

func (*AdminDeleteGameRecordHandlerV1BadRequest) Error added in v0.58.0

func (*AdminDeleteGameRecordHandlerV1BadRequest) GetPayload added in v0.58.0

func (*AdminDeleteGameRecordHandlerV1BadRequest) ToJSONString added in v0.58.0

type AdminDeleteGameRecordHandlerV1Forbidden added in v0.58.0

type AdminDeleteGameRecordHandlerV1Forbidden struct {
	Payload *cloudsaveclientmodels.ModelsResponseError
}

AdminDeleteGameRecordHandlerV1Forbidden 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 NewAdminDeleteGameRecordHandlerV1Forbidden added in v0.58.0

func NewAdminDeleteGameRecordHandlerV1Forbidden() *AdminDeleteGameRecordHandlerV1Forbidden

NewAdminDeleteGameRecordHandlerV1Forbidden creates a AdminDeleteGameRecordHandlerV1Forbidden with default headers values

func (*AdminDeleteGameRecordHandlerV1Forbidden) Error added in v0.58.0

func (*AdminDeleteGameRecordHandlerV1Forbidden) GetPayload added in v0.58.0

func (*AdminDeleteGameRecordHandlerV1Forbidden) ToJSONString added in v0.58.0

type AdminDeleteGameRecordHandlerV1InternalServerError added in v0.7.0

type AdminDeleteGameRecordHandlerV1InternalServerError struct {
	Payload *cloudsaveclientmodels.ModelsResponseError
}

AdminDeleteGameRecordHandlerV1InternalServerError handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20000</td><td>internal server error</td></tr><tr><td>18040</td><td>unable to delete record</td></tr></table>

func NewAdminDeleteGameRecordHandlerV1InternalServerError added in v0.7.0

func NewAdminDeleteGameRecordHandlerV1InternalServerError() *AdminDeleteGameRecordHandlerV1InternalServerError

NewAdminDeleteGameRecordHandlerV1InternalServerError creates a AdminDeleteGameRecordHandlerV1InternalServerError with default headers values

func (*AdminDeleteGameRecordHandlerV1InternalServerError) Error added in v0.7.0

func (*AdminDeleteGameRecordHandlerV1InternalServerError) GetPayload added in v0.7.0

func (*AdminDeleteGameRecordHandlerV1InternalServerError) ToJSONString added in v0.25.0

type AdminDeleteGameRecordHandlerV1NoContent added in v0.7.0

type AdminDeleteGameRecordHandlerV1NoContent struct {
}

AdminDeleteGameRecordHandlerV1NoContent handles this case with default header values.

Record deleted

func NewAdminDeleteGameRecordHandlerV1NoContent added in v0.7.0

func NewAdminDeleteGameRecordHandlerV1NoContent() *AdminDeleteGameRecordHandlerV1NoContent

NewAdminDeleteGameRecordHandlerV1NoContent creates a AdminDeleteGameRecordHandlerV1NoContent with default headers values

func (*AdminDeleteGameRecordHandlerV1NoContent) Error added in v0.7.0

type AdminDeleteGameRecordHandlerV1Params added in v0.7.0

type AdminDeleteGameRecordHandlerV1Params struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Key
	  key of record

	*/
	Key string
	/*Namespace
	  namespace of the game, only accept alphabet and numeric

	*/
	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
}

AdminDeleteGameRecordHandlerV1Params contains all the parameters to send to the API endpoint for the admin delete game record handler v1 operation typically these are written to a http.Request

func NewAdminDeleteGameRecordHandlerV1Params added in v0.7.0

func NewAdminDeleteGameRecordHandlerV1Params() *AdminDeleteGameRecordHandlerV1Params

NewAdminDeleteGameRecordHandlerV1Params creates a new AdminDeleteGameRecordHandlerV1Params object with the default values initialized.

func NewAdminDeleteGameRecordHandlerV1ParamsWithContext added in v0.7.0

func NewAdminDeleteGameRecordHandlerV1ParamsWithContext(ctx context.Context) *AdminDeleteGameRecordHandlerV1Params

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

func NewAdminDeleteGameRecordHandlerV1ParamsWithHTTPClient added in v0.7.0

func NewAdminDeleteGameRecordHandlerV1ParamsWithHTTPClient(client *http.Client) *AdminDeleteGameRecordHandlerV1Params

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

func NewAdminDeleteGameRecordHandlerV1ParamsWithTimeout added in v0.7.0

func NewAdminDeleteGameRecordHandlerV1ParamsWithTimeout(timeout time.Duration) *AdminDeleteGameRecordHandlerV1Params

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

func (*AdminDeleteGameRecordHandlerV1Params) SetAuthInfoWriter added in v0.17.0

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

SetAuthInfoWriter adds the authInfoWriter to the admin delete game record handler v1 params

func (*AdminDeleteGameRecordHandlerV1Params) SetContext added in v0.7.0

SetContext adds the context to the admin delete game record handler v1 params

func (*AdminDeleteGameRecordHandlerV1Params) SetFlightId added in v0.63.0

func (o *AdminDeleteGameRecordHandlerV1Params) SetFlightId(flightId string)

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

func (*AdminDeleteGameRecordHandlerV1Params) SetHTTPClient added in v0.7.0

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

SetHTTPClient adds the HTTPClient to the admin delete game record handler v1 params

func (*AdminDeleteGameRecordHandlerV1Params) SetHTTPClientTransport added in v0.19.0

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

SetHTTPClient adds the HTTPClient Transport to the admin delete game record handler v1 params

func (*AdminDeleteGameRecordHandlerV1Params) SetKey added in v0.7.0

SetKey adds the key to the admin delete game record handler v1 params

func (*AdminDeleteGameRecordHandlerV1Params) SetNamespace added in v0.7.0

func (o *AdminDeleteGameRecordHandlerV1Params) SetNamespace(namespace string)

SetNamespace adds the namespace to the admin delete game record handler v1 params

func (*AdminDeleteGameRecordHandlerV1Params) SetTimeout added in v0.7.0

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

SetTimeout adds the timeout to the admin delete game record handler v1 params

func (*AdminDeleteGameRecordHandlerV1Params) WithContext added in v0.7.0

WithContext adds the context to the admin delete game record handler v1 params

func (*AdminDeleteGameRecordHandlerV1Params) WithHTTPClient added in v0.7.0

WithHTTPClient adds the HTTPClient to the admin delete game record handler v1 params

func (*AdminDeleteGameRecordHandlerV1Params) WithKey added in v0.7.0

WithKey adds the key to the admin delete game record handler v1 params

func (*AdminDeleteGameRecordHandlerV1Params) WithNamespace added in v0.7.0

WithNamespace adds the namespace to the admin delete game record handler v1 params

func (*AdminDeleteGameRecordHandlerV1Params) WithTimeout added in v0.7.0

WithTimeout adds the timeout to the admin delete game record handler v1 params

func (*AdminDeleteGameRecordHandlerV1Params) WriteToRequest added in v0.7.0

WriteToRequest writes these params to a swagger request

type AdminDeleteGameRecordHandlerV1Reader added in v0.7.0

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

AdminDeleteGameRecordHandlerV1Reader is a Reader for the AdminDeleteGameRecordHandlerV1 structure.

func (*AdminDeleteGameRecordHandlerV1Reader) ReadResponse added in v0.7.0

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

ReadResponse reads a server response into the received o.

type AdminDeleteGameRecordHandlerV1Unauthorized added in v0.7.0

type AdminDeleteGameRecordHandlerV1Unauthorized struct {
	Payload *cloudsaveclientmodels.ModelsResponseError
}

AdminDeleteGameRecordHandlerV1Unauthorized 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 NewAdminDeleteGameRecordHandlerV1Unauthorized added in v0.7.0

func NewAdminDeleteGameRecordHandlerV1Unauthorized() *AdminDeleteGameRecordHandlerV1Unauthorized

NewAdminDeleteGameRecordHandlerV1Unauthorized creates a AdminDeleteGameRecordHandlerV1Unauthorized with default headers values

func (*AdminDeleteGameRecordHandlerV1Unauthorized) Error added in v0.7.0

func (*AdminDeleteGameRecordHandlerV1Unauthorized) GetPayload added in v0.7.0

func (*AdminDeleteGameRecordHandlerV1Unauthorized) ToJSONString added in v0.25.0

type AdminGetGameRecordHandlerV1Forbidden added in v0.58.0

type AdminGetGameRecordHandlerV1Forbidden struct {
	Payload *cloudsaveclientmodels.ModelsResponseError
}

AdminGetGameRecordHandlerV1Forbidden 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 NewAdminGetGameRecordHandlerV1Forbidden added in v0.58.0

func NewAdminGetGameRecordHandlerV1Forbidden() *AdminGetGameRecordHandlerV1Forbidden

NewAdminGetGameRecordHandlerV1Forbidden creates a AdminGetGameRecordHandlerV1Forbidden with default headers values

func (*AdminGetGameRecordHandlerV1Forbidden) Error added in v0.58.0

func (*AdminGetGameRecordHandlerV1Forbidden) GetPayload added in v0.58.0

func (*AdminGetGameRecordHandlerV1Forbidden) ToJSONString added in v0.58.0

func (o *AdminGetGameRecordHandlerV1Forbidden) ToJSONString() string

type AdminGetGameRecordHandlerV1InternalServerError added in v0.7.0

type AdminGetGameRecordHandlerV1InternalServerError struct {
	Payload *cloudsaveclientmodels.ModelsResponseError
}

AdminGetGameRecordHandlerV1InternalServerError handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>18001</td><td>unable to get record</td></tr><tr><td>18005</td><td>unable to decode record</td></tr></table>

func NewAdminGetGameRecordHandlerV1InternalServerError added in v0.7.0

func NewAdminGetGameRecordHandlerV1InternalServerError() *AdminGetGameRecordHandlerV1InternalServerError

NewAdminGetGameRecordHandlerV1InternalServerError creates a AdminGetGameRecordHandlerV1InternalServerError with default headers values

func (*AdminGetGameRecordHandlerV1InternalServerError) Error added in v0.7.0

func (*AdminGetGameRecordHandlerV1InternalServerError) GetPayload added in v0.7.0

func (*AdminGetGameRecordHandlerV1InternalServerError) ToJSONString added in v0.25.0

type AdminGetGameRecordHandlerV1NotFound added in v0.7.0

type AdminGetGameRecordHandlerV1NotFound struct {
	Payload *cloudsaveclientmodels.ModelsResponseError
}

AdminGetGameRecordHandlerV1NotFound handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>18003</td><td>record not found</td></tr></table>

func NewAdminGetGameRecordHandlerV1NotFound added in v0.7.0

func NewAdminGetGameRecordHandlerV1NotFound() *AdminGetGameRecordHandlerV1NotFound

NewAdminGetGameRecordHandlerV1NotFound creates a AdminGetGameRecordHandlerV1NotFound with default headers values

func (*AdminGetGameRecordHandlerV1NotFound) Error added in v0.7.0

func (*AdminGetGameRecordHandlerV1NotFound) GetPayload added in v0.7.0

func (*AdminGetGameRecordHandlerV1NotFound) ToJSONString added in v0.25.0

func (o *AdminGetGameRecordHandlerV1NotFound) ToJSONString() string

type AdminGetGameRecordHandlerV1OK added in v0.7.0

type AdminGetGameRecordHandlerV1OK struct {
	Payload *cloudsaveclientmodels.ModelsGameRecordAdminResponse
}

AdminGetGameRecordHandlerV1OK handles this case with default header values.

Record in namespace-level retrieved

func NewAdminGetGameRecordHandlerV1OK added in v0.7.0

func NewAdminGetGameRecordHandlerV1OK() *AdminGetGameRecordHandlerV1OK

NewAdminGetGameRecordHandlerV1OK creates a AdminGetGameRecordHandlerV1OK with default headers values

func (*AdminGetGameRecordHandlerV1OK) Error added in v0.7.0

func (*AdminGetGameRecordHandlerV1OK) GetPayload added in v0.7.0

func (*AdminGetGameRecordHandlerV1OK) ToJSONString added in v0.25.0

func (o *AdminGetGameRecordHandlerV1OK) ToJSONString() string

type AdminGetGameRecordHandlerV1Params added in v0.7.0

type AdminGetGameRecordHandlerV1Params struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Key
	  key of record

	*/
	Key string
	/*Namespace
	  namespace of the game, only accept alphabet and numeric

	*/
	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
}

AdminGetGameRecordHandlerV1Params contains all the parameters to send to the API endpoint for the admin get game record handler v1 operation typically these are written to a http.Request

func NewAdminGetGameRecordHandlerV1Params added in v0.7.0

func NewAdminGetGameRecordHandlerV1Params() *AdminGetGameRecordHandlerV1Params

NewAdminGetGameRecordHandlerV1Params creates a new AdminGetGameRecordHandlerV1Params object with the default values initialized.

func NewAdminGetGameRecordHandlerV1ParamsWithContext added in v0.7.0

func NewAdminGetGameRecordHandlerV1ParamsWithContext(ctx context.Context) *AdminGetGameRecordHandlerV1Params

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

func NewAdminGetGameRecordHandlerV1ParamsWithHTTPClient added in v0.7.0

func NewAdminGetGameRecordHandlerV1ParamsWithHTTPClient(client *http.Client) *AdminGetGameRecordHandlerV1Params

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

func NewAdminGetGameRecordHandlerV1ParamsWithTimeout added in v0.7.0

func NewAdminGetGameRecordHandlerV1ParamsWithTimeout(timeout time.Duration) *AdminGetGameRecordHandlerV1Params

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

func (*AdminGetGameRecordHandlerV1Params) SetAuthInfoWriter added in v0.17.0

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

SetAuthInfoWriter adds the authInfoWriter to the admin get game record handler v1 params

func (*AdminGetGameRecordHandlerV1Params) SetContext added in v0.7.0

SetContext adds the context to the admin get game record handler v1 params

func (*AdminGetGameRecordHandlerV1Params) SetFlightId added in v0.63.0

func (o *AdminGetGameRecordHandlerV1Params) SetFlightId(flightId string)

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

func (*AdminGetGameRecordHandlerV1Params) SetHTTPClient added in v0.7.0

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

SetHTTPClient adds the HTTPClient to the admin get game record handler v1 params

func (*AdminGetGameRecordHandlerV1Params) SetHTTPClientTransport added in v0.19.0

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

SetHTTPClient adds the HTTPClient Transport to the admin get game record handler v1 params

func (*AdminGetGameRecordHandlerV1Params) SetKey added in v0.7.0

SetKey adds the key to the admin get game record handler v1 params

func (*AdminGetGameRecordHandlerV1Params) SetNamespace added in v0.7.0

func (o *AdminGetGameRecordHandlerV1Params) SetNamespace(namespace string)

SetNamespace adds the namespace to the admin get game record handler v1 params

func (*AdminGetGameRecordHandlerV1Params) SetTimeout added in v0.7.0

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

SetTimeout adds the timeout to the admin get game record handler v1 params

func (*AdminGetGameRecordHandlerV1Params) WithContext added in v0.7.0

WithContext adds the context to the admin get game record handler v1 params

func (*AdminGetGameRecordHandlerV1Params) WithHTTPClient added in v0.7.0

WithHTTPClient adds the HTTPClient to the admin get game record handler v1 params

func (*AdminGetGameRecordHandlerV1Params) WithKey added in v0.7.0

WithKey adds the key to the admin get game record handler v1 params

func (*AdminGetGameRecordHandlerV1Params) WithNamespace added in v0.7.0

WithNamespace adds the namespace to the admin get game record handler v1 params

func (*AdminGetGameRecordHandlerV1Params) WithTimeout added in v0.7.0

WithTimeout adds the timeout to the admin get game record handler v1 params

func (*AdminGetGameRecordHandlerV1Params) WriteToRequest added in v0.7.0

WriteToRequest writes these params to a swagger request

type AdminGetGameRecordHandlerV1Reader added in v0.7.0

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

AdminGetGameRecordHandlerV1Reader is a Reader for the AdminGetGameRecordHandlerV1 structure.

func (*AdminGetGameRecordHandlerV1Reader) ReadResponse added in v0.7.0

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

ReadResponse reads a server response into the received o.

type AdminGetGameRecordHandlerV1Unauthorized added in v0.7.0

type AdminGetGameRecordHandlerV1Unauthorized struct {
	Payload *cloudsaveclientmodels.ModelsResponseError
}

AdminGetGameRecordHandlerV1Unauthorized 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 NewAdminGetGameRecordHandlerV1Unauthorized added in v0.7.0

func NewAdminGetGameRecordHandlerV1Unauthorized() *AdminGetGameRecordHandlerV1Unauthorized

NewAdminGetGameRecordHandlerV1Unauthorized creates a AdminGetGameRecordHandlerV1Unauthorized with default headers values

func (*AdminGetGameRecordHandlerV1Unauthorized) Error added in v0.7.0

func (*AdminGetGameRecordHandlerV1Unauthorized) GetPayload added in v0.7.0

func (*AdminGetGameRecordHandlerV1Unauthorized) ToJSONString added in v0.25.0

type AdminPostGameRecordHandlerV1BadRequest added in v0.50.0

type AdminPostGameRecordHandlerV1BadRequest struct {
	Payload *cloudsaveclientmodels.ModelsResponseError
}

AdminPostGameRecordHandlerV1BadRequest handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>18011</td><td>invalid request body</td></tr><tr><td>20002</td><td>validation error</td></tr><tr><td>18015</td><td>invalid request body: size of the request body must be less than [%d]MB</td></tr></table>

func NewAdminPostGameRecordHandlerV1BadRequest added in v0.50.0

func NewAdminPostGameRecordHandlerV1BadRequest() *AdminPostGameRecordHandlerV1BadRequest

NewAdminPostGameRecordHandlerV1BadRequest creates a AdminPostGameRecordHandlerV1BadRequest with default headers values

func (*AdminPostGameRecordHandlerV1BadRequest) Error added in v0.50.0

func (*AdminPostGameRecordHandlerV1BadRequest) GetPayload added in v0.50.0

func (*AdminPostGameRecordHandlerV1BadRequest) ToJSONString added in v0.50.0

type AdminPostGameRecordHandlerV1Created added in v0.7.0

type AdminPostGameRecordHandlerV1Created struct {
	Payload *cloudsaveclientmodels.ModelsGameRecordAdminResponse
}

AdminPostGameRecordHandlerV1Created handles this case with default header values.

Record in namespace-level saved

func NewAdminPostGameRecordHandlerV1Created added in v0.7.0

func NewAdminPostGameRecordHandlerV1Created() *AdminPostGameRecordHandlerV1Created

NewAdminPostGameRecordHandlerV1Created creates a AdminPostGameRecordHandlerV1Created with default headers values

func (*AdminPostGameRecordHandlerV1Created) Error added in v0.7.0

func (*AdminPostGameRecordHandlerV1Created) GetPayload added in v0.24.0

func (*AdminPostGameRecordHandlerV1Created) ToJSONString added in v0.25.0

func (o *AdminPostGameRecordHandlerV1Created) ToJSONString() string

type AdminPostGameRecordHandlerV1Forbidden added in v0.58.0

type AdminPostGameRecordHandlerV1Forbidden struct {
	Payload *cloudsaveclientmodels.ModelsResponseError
}

AdminPostGameRecordHandlerV1Forbidden 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 NewAdminPostGameRecordHandlerV1Forbidden added in v0.58.0

func NewAdminPostGameRecordHandlerV1Forbidden() *AdminPostGameRecordHandlerV1Forbidden

NewAdminPostGameRecordHandlerV1Forbidden creates a AdminPostGameRecordHandlerV1Forbidden with default headers values

func (*AdminPostGameRecordHandlerV1Forbidden) Error added in v0.58.0

func (*AdminPostGameRecordHandlerV1Forbidden) GetPayload added in v0.58.0

func (*AdminPostGameRecordHandlerV1Forbidden) ToJSONString added in v0.58.0

type AdminPostGameRecordHandlerV1InternalServerError added in v0.7.0

type AdminPostGameRecordHandlerV1InternalServerError struct {
	Payload *cloudsaveclientmodels.ModelsResponseError
}

AdminPostGameRecordHandlerV1InternalServerError handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>18012</td><td>unable to marshal request body</td></tr><tr><td>20000</td><td>internal server error</td></tr><tr><td>18013</td><td>unable to save record</td></tr><tr><td>18005</td><td>unable to decode record</td></tr></table>

func NewAdminPostGameRecordHandlerV1InternalServerError added in v0.7.0

func NewAdminPostGameRecordHandlerV1InternalServerError() *AdminPostGameRecordHandlerV1InternalServerError

NewAdminPostGameRecordHandlerV1InternalServerError creates a AdminPostGameRecordHandlerV1InternalServerError with default headers values

func (*AdminPostGameRecordHandlerV1InternalServerError) Error added in v0.7.0

func (*AdminPostGameRecordHandlerV1InternalServerError) GetPayload added in v0.7.0

func (*AdminPostGameRecordHandlerV1InternalServerError) ToJSONString added in v0.25.0

type AdminPostGameRecordHandlerV1Params added in v0.7.0

type AdminPostGameRecordHandlerV1Params struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Body*/
	Body cloudsaveclientmodels.ModelsGameRecordRequest
	/*Key
	  key of record

	*/
	Key string
	/*Namespace
	  namespace of the game, only accept alphabet and numeric

	*/
	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
}

AdminPostGameRecordHandlerV1Params contains all the parameters to send to the API endpoint for the admin post game record handler v1 operation typically these are written to a http.Request

func NewAdminPostGameRecordHandlerV1Params added in v0.7.0

func NewAdminPostGameRecordHandlerV1Params() *AdminPostGameRecordHandlerV1Params

NewAdminPostGameRecordHandlerV1Params creates a new AdminPostGameRecordHandlerV1Params object with the default values initialized.

func NewAdminPostGameRecordHandlerV1ParamsWithContext added in v0.7.0

func NewAdminPostGameRecordHandlerV1ParamsWithContext(ctx context.Context) *AdminPostGameRecordHandlerV1Params

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

func NewAdminPostGameRecordHandlerV1ParamsWithHTTPClient added in v0.7.0

func NewAdminPostGameRecordHandlerV1ParamsWithHTTPClient(client *http.Client) *AdminPostGameRecordHandlerV1Params

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

func NewAdminPostGameRecordHandlerV1ParamsWithTimeout added in v0.7.0

func NewAdminPostGameRecordHandlerV1ParamsWithTimeout(timeout time.Duration) *AdminPostGameRecordHandlerV1Params

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

func (*AdminPostGameRecordHandlerV1Params) SetAuthInfoWriter added in v0.17.0

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

SetAuthInfoWriter adds the authInfoWriter to the admin post game record handler v1 params

func (*AdminPostGameRecordHandlerV1Params) SetBody added in v0.7.0

SetBody adds the body to the admin post game record handler v1 params

func (*AdminPostGameRecordHandlerV1Params) SetContext added in v0.7.0

SetContext adds the context to the admin post game record handler v1 params

func (*AdminPostGameRecordHandlerV1Params) SetFlightId added in v0.63.0

func (o *AdminPostGameRecordHandlerV1Params) SetFlightId(flightId string)

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

func (*AdminPostGameRecordHandlerV1Params) SetHTTPClient added in v0.7.0

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

SetHTTPClient adds the HTTPClient to the admin post game record handler v1 params

func (*AdminPostGameRecordHandlerV1Params) SetHTTPClientTransport added in v0.19.0

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

SetHTTPClient adds the HTTPClient Transport to the admin post game record handler v1 params

func (*AdminPostGameRecordHandlerV1Params) SetKey added in v0.7.0

SetKey adds the key to the admin post game record handler v1 params

func (*AdminPostGameRecordHandlerV1Params) SetNamespace added in v0.7.0

func (o *AdminPostGameRecordHandlerV1Params) SetNamespace(namespace string)

SetNamespace adds the namespace to the admin post game record handler v1 params

func (*AdminPostGameRecordHandlerV1Params) SetTimeout added in v0.7.0

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

SetTimeout adds the timeout to the admin post game record handler v1 params

func (*AdminPostGameRecordHandlerV1Params) WithBody added in v0.7.0

WithBody adds the body to the admin post game record handler v1 params

func (*AdminPostGameRecordHandlerV1Params) WithContext added in v0.7.0

WithContext adds the context to the admin post game record handler v1 params

func (*AdminPostGameRecordHandlerV1Params) WithHTTPClient added in v0.7.0

WithHTTPClient adds the HTTPClient to the admin post game record handler v1 params

func (*AdminPostGameRecordHandlerV1Params) WithKey added in v0.7.0

WithKey adds the key to the admin post game record handler v1 params

func (*AdminPostGameRecordHandlerV1Params) WithNamespace added in v0.7.0

WithNamespace adds the namespace to the admin post game record handler v1 params

func (*AdminPostGameRecordHandlerV1Params) WithTimeout added in v0.7.0

WithTimeout adds the timeout to the admin post game record handler v1 params

func (*AdminPostGameRecordHandlerV1Params) WriteToRequest added in v0.7.0

WriteToRequest writes these params to a swagger request

type AdminPostGameRecordHandlerV1Reader added in v0.7.0

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

AdminPostGameRecordHandlerV1Reader is a Reader for the AdminPostGameRecordHandlerV1 structure.

func (*AdminPostGameRecordHandlerV1Reader) ReadResponse added in v0.7.0

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

ReadResponse reads a server response into the received o.

type AdminPostGameRecordHandlerV1Unauthorized added in v0.7.0

type AdminPostGameRecordHandlerV1Unauthorized struct {
	Payload *cloudsaveclientmodels.ModelsResponseError
}

AdminPostGameRecordHandlerV1Unauthorized 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 NewAdminPostGameRecordHandlerV1Unauthorized added in v0.7.0

func NewAdminPostGameRecordHandlerV1Unauthorized() *AdminPostGameRecordHandlerV1Unauthorized

NewAdminPostGameRecordHandlerV1Unauthorized creates a AdminPostGameRecordHandlerV1Unauthorized with default headers values

func (*AdminPostGameRecordHandlerV1Unauthorized) Error added in v0.7.0

func (*AdminPostGameRecordHandlerV1Unauthorized) GetPayload added in v0.7.0

func (*AdminPostGameRecordHandlerV1Unauthorized) ToJSONString added in v0.25.0

type AdminPutGameRecordHandlerV1BadRequest added in v0.58.0

type AdminPutGameRecordHandlerV1BadRequest struct {
	Payload *cloudsaveclientmodels.ModelsResponseError
}

AdminPutGameRecordHandlerV1BadRequest handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>18050</td><td>invalid request body</td></tr><tr><td>20002</td><td>validation error</td></tr><tr><td>18052</td><td>invalid request body: size of the request body must be less than [%d]MB</td></tr></table>

func NewAdminPutGameRecordHandlerV1BadRequest added in v0.58.0

func NewAdminPutGameRecordHandlerV1BadRequest() *AdminPutGameRecordHandlerV1BadRequest

NewAdminPutGameRecordHandlerV1BadRequest creates a AdminPutGameRecordHandlerV1BadRequest with default headers values

func (*AdminPutGameRecordHandlerV1BadRequest) Error added in v0.58.0

func (*AdminPutGameRecordHandlerV1BadRequest) GetPayload added in v0.58.0

func (*AdminPutGameRecordHandlerV1BadRequest) ToJSONString added in v0.58.0

type AdminPutGameRecordHandlerV1Forbidden added in v0.58.0

type AdminPutGameRecordHandlerV1Forbidden struct {
	Payload *cloudsaveclientmodels.ModelsResponseError
}

AdminPutGameRecordHandlerV1Forbidden 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 NewAdminPutGameRecordHandlerV1Forbidden added in v0.58.0

func NewAdminPutGameRecordHandlerV1Forbidden() *AdminPutGameRecordHandlerV1Forbidden

NewAdminPutGameRecordHandlerV1Forbidden creates a AdminPutGameRecordHandlerV1Forbidden with default headers values

func (*AdminPutGameRecordHandlerV1Forbidden) Error added in v0.58.0

func (*AdminPutGameRecordHandlerV1Forbidden) GetPayload added in v0.58.0

func (*AdminPutGameRecordHandlerV1Forbidden) ToJSONString added in v0.58.0

func (o *AdminPutGameRecordHandlerV1Forbidden) ToJSONString() string

type AdminPutGameRecordHandlerV1InternalServerError added in v0.7.0

type AdminPutGameRecordHandlerV1InternalServerError struct {
	Payload *cloudsaveclientmodels.ModelsResponseError
}

AdminPutGameRecordHandlerV1InternalServerError handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>18051</td><td>unable to marshal request body</td></tr><tr><td>20000</td><td>internal server error</td></tr><tr><td>18053</td><td>unable to update record</td></tr><tr><td>18005</td><td>unable to decode record</td></tr></table>

func NewAdminPutGameRecordHandlerV1InternalServerError added in v0.7.0

func NewAdminPutGameRecordHandlerV1InternalServerError() *AdminPutGameRecordHandlerV1InternalServerError

NewAdminPutGameRecordHandlerV1InternalServerError creates a AdminPutGameRecordHandlerV1InternalServerError with default headers values

func (*AdminPutGameRecordHandlerV1InternalServerError) Error added in v0.7.0

func (*AdminPutGameRecordHandlerV1InternalServerError) GetPayload added in v0.7.0

func (*AdminPutGameRecordHandlerV1InternalServerError) ToJSONString added in v0.25.0

type AdminPutGameRecordHandlerV1OK added in v0.7.0

type AdminPutGameRecordHandlerV1OK struct {
	Payload *cloudsaveclientmodels.ModelsGameRecordAdminResponse
}

AdminPutGameRecordHandlerV1OK handles this case with default header values.

Record saved

func NewAdminPutGameRecordHandlerV1OK added in v0.7.0

func NewAdminPutGameRecordHandlerV1OK() *AdminPutGameRecordHandlerV1OK

NewAdminPutGameRecordHandlerV1OK creates a AdminPutGameRecordHandlerV1OK with default headers values

func (*AdminPutGameRecordHandlerV1OK) Error added in v0.7.0

func (*AdminPutGameRecordHandlerV1OK) GetPayload added in v0.24.0

func (*AdminPutGameRecordHandlerV1OK) ToJSONString added in v0.25.0

func (o *AdminPutGameRecordHandlerV1OK) ToJSONString() string

type AdminPutGameRecordHandlerV1Params added in v0.7.0

type AdminPutGameRecordHandlerV1Params struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Body*/
	Body cloudsaveclientmodels.ModelsGameRecordRequest
	/*Key
	  key of record

	*/
	Key string
	/*Namespace
	  namespace of the game, only accept alphabet and numeric

	*/
	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
}

AdminPutGameRecordHandlerV1Params contains all the parameters to send to the API endpoint for the admin put game record handler v1 operation typically these are written to a http.Request

func NewAdminPutGameRecordHandlerV1Params added in v0.7.0

func NewAdminPutGameRecordHandlerV1Params() *AdminPutGameRecordHandlerV1Params

NewAdminPutGameRecordHandlerV1Params creates a new AdminPutGameRecordHandlerV1Params object with the default values initialized.

func NewAdminPutGameRecordHandlerV1ParamsWithContext added in v0.7.0

func NewAdminPutGameRecordHandlerV1ParamsWithContext(ctx context.Context) *AdminPutGameRecordHandlerV1Params

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

func NewAdminPutGameRecordHandlerV1ParamsWithHTTPClient added in v0.7.0

func NewAdminPutGameRecordHandlerV1ParamsWithHTTPClient(client *http.Client) *AdminPutGameRecordHandlerV1Params

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

func NewAdminPutGameRecordHandlerV1ParamsWithTimeout added in v0.7.0

func NewAdminPutGameRecordHandlerV1ParamsWithTimeout(timeout time.Duration) *AdminPutGameRecordHandlerV1Params

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

func (*AdminPutGameRecordHandlerV1Params) SetAuthInfoWriter added in v0.17.0

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

SetAuthInfoWriter adds the authInfoWriter to the admin put game record handler v1 params

func (*AdminPutGameRecordHandlerV1Params) SetBody added in v0.7.0

SetBody adds the body to the admin put game record handler v1 params

func (*AdminPutGameRecordHandlerV1Params) SetContext added in v0.7.0

SetContext adds the context to the admin put game record handler v1 params

func (*AdminPutGameRecordHandlerV1Params) SetFlightId added in v0.63.0

func (o *AdminPutGameRecordHandlerV1Params) SetFlightId(flightId string)

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

func (*AdminPutGameRecordHandlerV1Params) SetHTTPClient added in v0.7.0

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

SetHTTPClient adds the HTTPClient to the admin put game record handler v1 params

func (*AdminPutGameRecordHandlerV1Params) SetHTTPClientTransport added in v0.19.0

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

SetHTTPClient adds the HTTPClient Transport to the admin put game record handler v1 params

func (*AdminPutGameRecordHandlerV1Params) SetKey added in v0.7.0

SetKey adds the key to the admin put game record handler v1 params

func (*AdminPutGameRecordHandlerV1Params) SetNamespace added in v0.7.0

func (o *AdminPutGameRecordHandlerV1Params) SetNamespace(namespace string)

SetNamespace adds the namespace to the admin put game record handler v1 params

func (*AdminPutGameRecordHandlerV1Params) SetTimeout added in v0.7.0

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

SetTimeout adds the timeout to the admin put game record handler v1 params

func (*AdminPutGameRecordHandlerV1Params) WithBody added in v0.7.0

WithBody adds the body to the admin put game record handler v1 params

func (*AdminPutGameRecordHandlerV1Params) WithContext added in v0.7.0

WithContext adds the context to the admin put game record handler v1 params

func (*AdminPutGameRecordHandlerV1Params) WithHTTPClient added in v0.7.0

WithHTTPClient adds the HTTPClient to the admin put game record handler v1 params

func (*AdminPutGameRecordHandlerV1Params) WithKey added in v0.7.0

WithKey adds the key to the admin put game record handler v1 params

func (*AdminPutGameRecordHandlerV1Params) WithNamespace added in v0.7.0

WithNamespace adds the namespace to the admin put game record handler v1 params

func (*AdminPutGameRecordHandlerV1Params) WithTimeout added in v0.7.0

WithTimeout adds the timeout to the admin put game record handler v1 params

func (*AdminPutGameRecordHandlerV1Params) WriteToRequest added in v0.7.0

WriteToRequest writes these params to a swagger request

type AdminPutGameRecordHandlerV1Reader added in v0.7.0

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

AdminPutGameRecordHandlerV1Reader is a Reader for the AdminPutGameRecordHandlerV1 structure.

func (*AdminPutGameRecordHandlerV1Reader) ReadResponse added in v0.7.0

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

ReadResponse reads a server response into the received o.

type AdminPutGameRecordHandlerV1Unauthorized added in v0.7.0

type AdminPutGameRecordHandlerV1Unauthorized struct {
	Payload *cloudsaveclientmodels.ModelsResponseError
}

AdminPutGameRecordHandlerV1Unauthorized 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 NewAdminPutGameRecordHandlerV1Unauthorized added in v0.7.0

func NewAdminPutGameRecordHandlerV1Unauthorized() *AdminPutGameRecordHandlerV1Unauthorized

NewAdminPutGameRecordHandlerV1Unauthorized creates a AdminPutGameRecordHandlerV1Unauthorized with default headers values

func (*AdminPutGameRecordHandlerV1Unauthorized) Error added in v0.7.0

func (*AdminPutGameRecordHandlerV1Unauthorized) GetPayload added in v0.7.0

func (*AdminPutGameRecordHandlerV1Unauthorized) ToJSONString added in v0.25.0

type Client

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

Client for admin game record API

func (*Client) AdminDeleteGameRecordHandlerV1 deprecated added in v0.7.0

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

AdminDeleteGameRecordHandlerV1 delete game record This endpoints delete game record in namespace-level

func (*Client) AdminDeleteGameRecordHandlerV1Short added in v0.8.0

func (a *Client) AdminDeleteGameRecordHandlerV1Short(params *AdminDeleteGameRecordHandlerV1Params, authInfo runtime.ClientAuthInfoWriter) (*AdminDeleteGameRecordHandlerV1NoContent, error)

AdminDeleteGameRecordHandlerV1Short delete game record This endpoints delete game record in namespace-level

func (*Client) AdminGetGameRecordHandlerV1 deprecated added in v0.7.0

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

AdminGetGameRecordHandlerV1 get game record Get a record by its key in namespace-level.

func (*Client) AdminGetGameRecordHandlerV1Short added in v0.8.0

func (a *Client) AdminGetGameRecordHandlerV1Short(params *AdminGetGameRecordHandlerV1Params, authInfo runtime.ClientAuthInfoWriter) (*AdminGetGameRecordHandlerV1OK, error)

AdminGetGameRecordHandlerV1Short get game record Get a record by its key in namespace-level.

func (*Client) AdminPostGameRecordHandlerV1 deprecated added in v0.7.0

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

AdminPostGameRecordHandlerV1 create or append game record ## Description

This endpoints will create new game record or append the existing game record.

**Append example:**

Example 1 - Existing JSON:

`{ "data1": "value" }`

- New JSON:

`{ "data2": "new value" }`

- Result:

`{ "data1": "value", "data2": "new value" }`

Example 2 - Existing JSON:

`{ "data1": { "data2": "value" }`

- New JSON:

`{ "data1": { "data3": "new value" }`

- Result:

`{ "data1": { "data2": "value", "data3": "new value" }`

## Restriction This is the restriction of Key Naming for the record: 1. Cannot use **"."** as the key name - `{ "data.2": "value" }` 2. Cannot use **"$"** as the prefix in key names - `{ "$data": "value" }` 3. Cannot use empty string in key names - `{ "": "value" }`

## Record Metadata

Metadata allows user to define the behaviour of the record. Metadata can be defined in request body with field name **__META**. When creating record, if **__META** field is not defined, the metadata value will use the default value. When updating record, if **__META** field is not defined, the existing metadata value will stay as is.

**Metadata List:** 1. set_by (default: CLIENT, type: string) Indicate which party that could modify the game record. SERVER: record can be modified by server only. CLIENT: record can be modified by client and server. 2. ttl_config (default: *empty*, type: object) Indicate the TTL configuration for the game record. action: - DELETE: record will be deleted after TTL is reached 3. tags (default: *empty array*, type: array of string) Indicate the tagging for the game record.

**Request Body Example:** ``` { "__META": { "set_by": "SERVER", "ttl_config": { "expires_at": "2026-01-02T15:04:05Z", // should be in RFC3339 format "action": "DELETE" }, "tags": ["tag1", "tag2"] } ... } ```

func (*Client) AdminPostGameRecordHandlerV1Short added in v0.8.0

func (a *Client) AdminPostGameRecordHandlerV1Short(params *AdminPostGameRecordHandlerV1Params, authInfo runtime.ClientAuthInfoWriter) (*AdminPostGameRecordHandlerV1Created, error)

AdminPostGameRecordHandlerV1Short create or append game record ## Description

This endpoints will create new game record or append the existing game record.

**Append example:**

Example 1 - Existing JSON:

`{ "data1": "value" }`

- New JSON:

`{ "data2": "new value" }`

- Result:

`{ "data1": "value", "data2": "new value" }`

Example 2 - Existing JSON:

`{ "data1": { "data2": "value" }`

- New JSON:

`{ "data1": { "data3": "new value" }`

- Result:

`{ "data1": { "data2": "value", "data3": "new value" }`

## Restriction This is the restriction of Key Naming for the record: 1. Cannot use **"."** as the key name - `{ "data.2": "value" }` 2. Cannot use **"$"** as the prefix in key names - `{ "$data": "value" }` 3. Cannot use empty string in key names - `{ "": "value" }`

## Record Metadata

Metadata allows user to define the behaviour of the record. Metadata can be defined in request body with field name **__META**. When creating record, if **__META** field is not defined, the metadata value will use the default value. When updating record, if **__META** field is not defined, the existing metadata value will stay as is.

**Metadata List:** 1. set_by (default: CLIENT, type: string) Indicate which party that could modify the game record. SERVER: record can be modified by server only. CLIENT: record can be modified by client and server. 2. ttl_config (default: *empty*, type: object) Indicate the TTL configuration for the game record. action: - DELETE: record will be deleted after TTL is reached 3. tags (default: *empty array*, type: array of string) Indicate the tagging for the game record.

**Request Body Example:** ``` { "__META": { "set_by": "SERVER", "ttl_config": { "expires_at": "2026-01-02T15:04:05Z", // should be in RFC3339 format "action": "DELETE" }, "tags": ["tag1", "tag2"] } ... } ```

func (*Client) AdminPutGameRecordHandlerV1 deprecated added in v0.7.0

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

AdminPutGameRecordHandlerV1 create or replace game record ## Description

This endpoints will create new game record or replace the existing game record.

**Replace behaviour:** The existing value will be replaced completely with the new value.

Example - Existing JSON:

`{ "data1": "value" }`

- New JSON:

`{ "data2": "new value" }`

- Result:

`{ "data2": "new value" }`

## Restriction This is the restriction of Key Naming for the record: 1. Cannot use **"."** as the key name - `{ "data.2": "value" }` 2. Cannot use **"$"** as the prefix in key names - `{ "$data": "value" }` 3. Cannot use empty string in key names - `{ "": "value" }`

## Record Metadata

Metadata allows user to define the behaviour of the record. Metadata can be defined in request body with field name **__META**. When creating record, if **__META** field is not defined, the metadata value will use the default value. When updating record, if **__META** field is not defined, the existing metadata value will stay as is.

**Metadata List:** 1. set_by (default: CLIENT, type: string) Indicate which party that could modify the game record. SERVER: record can be modified by server only. CLIENT: record can be modified by client and server. 2. ttl_config (default: *empty*, type: object) Indicate the TTL configuration for the game record. action: - DELETE: record will be deleted after TTL is reached 3. tags (default: *empty array*, type: array of string) Indicate the tagging for the game record.

**Request Body Example:** ``` { "__META": { "set_by": "SERVER", "ttl_config": { "expires_at": "2026-01-02T15:04:05Z", // should be in RFC3339 format "action": "DELETE" }, "tags": ["tag1", "tag2"] } ... } ```

func (*Client) AdminPutGameRecordHandlerV1Short added in v0.8.0

func (a *Client) AdminPutGameRecordHandlerV1Short(params *AdminPutGameRecordHandlerV1Params, authInfo runtime.ClientAuthInfoWriter) (*AdminPutGameRecordHandlerV1OK, error)

AdminPutGameRecordHandlerV1Short create or replace game record ## Description

This endpoints will create new game record or replace the existing game record.

**Replace behaviour:** The existing value will be replaced completely with the new value.

Example - Existing JSON:

`{ "data1": "value" }`

- New JSON:

`{ "data2": "new value" }`

- Result:

`{ "data2": "new value" }`

## Restriction This is the restriction of Key Naming for the record: 1. Cannot use **"."** as the key name - `{ "data.2": "value" }` 2. Cannot use **"$"** as the prefix in key names - `{ "$data": "value" }` 3. Cannot use empty string in key names - `{ "": "value" }`

## Record Metadata

Metadata allows user to define the behaviour of the record. Metadata can be defined in request body with field name **__META**. When creating record, if **__META** field is not defined, the metadata value will use the default value. When updating record, if **__META** field is not defined, the existing metadata value will stay as is.

**Metadata List:** 1. set_by (default: CLIENT, type: string) Indicate which party that could modify the game record. SERVER: record can be modified by server only. CLIENT: record can be modified by client and server. 2. ttl_config (default: *empty*, type: object) Indicate the TTL configuration for the game record. action: - DELETE: record will be deleted after TTL is reached 3. tags (default: *empty array*, type: array of string) Indicate the tagging for the game record.

**Request Body Example:** ``` { "__META": { "set_by": "SERVER", "ttl_config": { "expires_at": "2026-01-02T15:04:05Z", // should be in RFC3339 format "action": "DELETE" }, "tags": ["tag1", "tag2"] } ... } ```

func (*Client) ListGameRecordsHandlerV1 deprecated

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

ListGameRecordsHandlerV1 query game records Retrieve list of records key by namespace

func (*Client) ListGameRecordsHandlerV1Short added in v0.8.0

func (a *Client) ListGameRecordsHandlerV1Short(params *ListGameRecordsHandlerV1Params, authInfo runtime.ClientAuthInfoWriter) (*ListGameRecordsHandlerV1OK, error)

ListGameRecordsHandlerV1Short query game records Retrieve list of records key by namespace

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientService

type ClientService interface {
	ListGameRecordsHandlerV1(params *ListGameRecordsHandlerV1Params, authInfo runtime.ClientAuthInfoWriter) (*ListGameRecordsHandlerV1OK, *ListGameRecordsHandlerV1BadRequest, *ListGameRecordsHandlerV1Unauthorized, *ListGameRecordsHandlerV1Forbidden, *ListGameRecordsHandlerV1InternalServerError, error)
	ListGameRecordsHandlerV1Short(params *ListGameRecordsHandlerV1Params, authInfo runtime.ClientAuthInfoWriter) (*ListGameRecordsHandlerV1OK, error)
	AdminGetGameRecordHandlerV1(params *AdminGetGameRecordHandlerV1Params, authInfo runtime.ClientAuthInfoWriter) (*AdminGetGameRecordHandlerV1OK, *AdminGetGameRecordHandlerV1Unauthorized, *AdminGetGameRecordHandlerV1Forbidden, *AdminGetGameRecordHandlerV1NotFound, *AdminGetGameRecordHandlerV1InternalServerError, error)
	AdminGetGameRecordHandlerV1Short(params *AdminGetGameRecordHandlerV1Params, authInfo runtime.ClientAuthInfoWriter) (*AdminGetGameRecordHandlerV1OK, error)
	AdminPutGameRecordHandlerV1(params *AdminPutGameRecordHandlerV1Params, authInfo runtime.ClientAuthInfoWriter) (*AdminPutGameRecordHandlerV1OK, *AdminPutGameRecordHandlerV1BadRequest, *AdminPutGameRecordHandlerV1Unauthorized, *AdminPutGameRecordHandlerV1Forbidden, *AdminPutGameRecordHandlerV1InternalServerError, error)
	AdminPutGameRecordHandlerV1Short(params *AdminPutGameRecordHandlerV1Params, authInfo runtime.ClientAuthInfoWriter) (*AdminPutGameRecordHandlerV1OK, error)
	AdminPostGameRecordHandlerV1(params *AdminPostGameRecordHandlerV1Params, authInfo runtime.ClientAuthInfoWriter) (*AdminPostGameRecordHandlerV1Created, *AdminPostGameRecordHandlerV1BadRequest, *AdminPostGameRecordHandlerV1Unauthorized, *AdminPostGameRecordHandlerV1Forbidden, *AdminPostGameRecordHandlerV1InternalServerError, error)
	AdminPostGameRecordHandlerV1Short(params *AdminPostGameRecordHandlerV1Params, authInfo runtime.ClientAuthInfoWriter) (*AdminPostGameRecordHandlerV1Created, error)
	AdminDeleteGameRecordHandlerV1(params *AdminDeleteGameRecordHandlerV1Params, authInfo runtime.ClientAuthInfoWriter) (*AdminDeleteGameRecordHandlerV1NoContent, *AdminDeleteGameRecordHandlerV1BadRequest, *AdminDeleteGameRecordHandlerV1Unauthorized, *AdminDeleteGameRecordHandlerV1Forbidden, *AdminDeleteGameRecordHandlerV1InternalServerError, error)
	AdminDeleteGameRecordHandlerV1Short(params *AdminDeleteGameRecordHandlerV1Params, authInfo runtime.ClientAuthInfoWriter) (*AdminDeleteGameRecordHandlerV1NoContent, 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 game record API client.

type ListGameRecordsHandlerV1BadRequest added in v0.58.0

type ListGameRecordsHandlerV1BadRequest struct {
	Payload *cloudsaveclientmodels.ModelsResponseError
}

ListGameRecordsHandlerV1BadRequest handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>18004</td><td>unable to retrieve list of key records</td></tr></table>

func NewListGameRecordsHandlerV1BadRequest added in v0.58.0

func NewListGameRecordsHandlerV1BadRequest() *ListGameRecordsHandlerV1BadRequest

NewListGameRecordsHandlerV1BadRequest creates a ListGameRecordsHandlerV1BadRequest with default headers values

func (*ListGameRecordsHandlerV1BadRequest) Error added in v0.58.0

func (*ListGameRecordsHandlerV1BadRequest) GetPayload added in v0.58.0

func (*ListGameRecordsHandlerV1BadRequest) ToJSONString added in v0.58.0

func (o *ListGameRecordsHandlerV1BadRequest) ToJSONString() string

type ListGameRecordsHandlerV1Forbidden added in v0.58.0

type ListGameRecordsHandlerV1Forbidden struct {
	Payload *cloudsaveclientmodels.ModelsResponseError
}

ListGameRecordsHandlerV1Forbidden 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 NewListGameRecordsHandlerV1Forbidden added in v0.58.0

func NewListGameRecordsHandlerV1Forbidden() *ListGameRecordsHandlerV1Forbidden

NewListGameRecordsHandlerV1Forbidden creates a ListGameRecordsHandlerV1Forbidden with default headers values

func (*ListGameRecordsHandlerV1Forbidden) Error added in v0.58.0

func (*ListGameRecordsHandlerV1Forbidden) GetPayload added in v0.58.0

func (*ListGameRecordsHandlerV1Forbidden) ToJSONString added in v0.58.0

func (o *ListGameRecordsHandlerV1Forbidden) ToJSONString() string

type ListGameRecordsHandlerV1InternalServerError

type ListGameRecordsHandlerV1InternalServerError struct {
	Payload *cloudsaveclientmodels.ModelsResponseError
}

ListGameRecordsHandlerV1InternalServerError handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>18001</td><td>unable to get record</td></tr></table>

func NewListGameRecordsHandlerV1InternalServerError

func NewListGameRecordsHandlerV1InternalServerError() *ListGameRecordsHandlerV1InternalServerError

NewListGameRecordsHandlerV1InternalServerError creates a ListGameRecordsHandlerV1InternalServerError with default headers values

func (*ListGameRecordsHandlerV1InternalServerError) Error

func (*ListGameRecordsHandlerV1InternalServerError) GetPayload

func (*ListGameRecordsHandlerV1InternalServerError) ToJSONString added in v0.25.0

type ListGameRecordsHandlerV1OK

type ListGameRecordsHandlerV1OK struct {
	Payload *cloudsaveclientmodels.ModelsListGameRecordKeysResponse
}

ListGameRecordsHandlerV1OK handles this case with default header values.

Retrieve list of records key by namespace

func NewListGameRecordsHandlerV1OK

func NewListGameRecordsHandlerV1OK() *ListGameRecordsHandlerV1OK

NewListGameRecordsHandlerV1OK creates a ListGameRecordsHandlerV1OK with default headers values

func (*ListGameRecordsHandlerV1OK) Error

func (*ListGameRecordsHandlerV1OK) GetPayload

func (*ListGameRecordsHandlerV1OK) ToJSONString added in v0.25.0

func (o *ListGameRecordsHandlerV1OK) ToJSONString() string

type ListGameRecordsHandlerV1Params

type ListGameRecordsHandlerV1Params struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Namespace
	  namespace of the game, only accept alphabet and numeric

	*/
	Namespace string
	/*Query
	  query, search game records by key

	*/
	Query *string
	/*Tags
	  filter list by tags, max 5 tags per request

	*/
	Tags []string
	/*Limit
	  the number of data retrieved in a page, default 25

	*/
	Limit int64
	/*Offset
	  the number of offset, default 0

	*/
	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
}

ListGameRecordsHandlerV1Params contains all the parameters to send to the API endpoint for the list game records handler v1 operation typically these are written to a http.Request

func NewListGameRecordsHandlerV1Params

func NewListGameRecordsHandlerV1Params() *ListGameRecordsHandlerV1Params

NewListGameRecordsHandlerV1Params creates a new ListGameRecordsHandlerV1Params object with the default values initialized.

func NewListGameRecordsHandlerV1ParamsWithContext

func NewListGameRecordsHandlerV1ParamsWithContext(ctx context.Context) *ListGameRecordsHandlerV1Params

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

func NewListGameRecordsHandlerV1ParamsWithHTTPClient

func NewListGameRecordsHandlerV1ParamsWithHTTPClient(client *http.Client) *ListGameRecordsHandlerV1Params

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

func NewListGameRecordsHandlerV1ParamsWithTimeout

func NewListGameRecordsHandlerV1ParamsWithTimeout(timeout time.Duration) *ListGameRecordsHandlerV1Params

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

func (*ListGameRecordsHandlerV1Params) SetAuthInfoWriter added in v0.17.0

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

SetAuthInfoWriter adds the authInfoWriter to the list game records handler v1 params

func (*ListGameRecordsHandlerV1Params) SetContext

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

SetContext adds the context to the list game records handler v1 params

func (*ListGameRecordsHandlerV1Params) SetFlightId added in v0.63.0

func (o *ListGameRecordsHandlerV1Params) SetFlightId(flightId string)

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

func (*ListGameRecordsHandlerV1Params) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list game records handler v1 params

func (*ListGameRecordsHandlerV1Params) SetHTTPClientTransport added in v0.19.0

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

SetHTTPClient adds the HTTPClient Transport to the list game records handler v1 params

func (*ListGameRecordsHandlerV1Params) SetLimit

func (o *ListGameRecordsHandlerV1Params) SetLimit(limit int64)

SetLimit adds the limit to the list game records handler v1 params

func (*ListGameRecordsHandlerV1Params) SetNamespace

func (o *ListGameRecordsHandlerV1Params) SetNamespace(namespace string)

SetNamespace adds the namespace to the list game records handler v1 params

func (*ListGameRecordsHandlerV1Params) SetOffset

func (o *ListGameRecordsHandlerV1Params) SetOffset(offset int64)

SetOffset adds the offset to the list game records handler v1 params

func (*ListGameRecordsHandlerV1Params) SetQuery added in v0.10.0

func (o *ListGameRecordsHandlerV1Params) SetQuery(query *string)

SetQuery adds the query to the list game records handler v1 params

func (*ListGameRecordsHandlerV1Params) SetTags added in v0.68.0

func (o *ListGameRecordsHandlerV1Params) SetTags(tags []string)

SetTags adds the tags to the list game records handler v1 params

func (*ListGameRecordsHandlerV1Params) SetTimeout

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

SetTimeout adds the timeout to the list game records handler v1 params

func (*ListGameRecordsHandlerV1Params) WithContext

WithContext adds the context to the list game records handler v1 params

func (*ListGameRecordsHandlerV1Params) WithHTTPClient

WithHTTPClient adds the HTTPClient to the list game records handler v1 params

func (*ListGameRecordsHandlerV1Params) WithLimit

WithLimit adds the limit to the list game records handler v1 params

func (*ListGameRecordsHandlerV1Params) WithNamespace

WithNamespace adds the namespace to the list game records handler v1 params

func (*ListGameRecordsHandlerV1Params) WithOffset

WithOffset adds the offset to the list game records handler v1 params

func (*ListGameRecordsHandlerV1Params) WithQuery added in v0.10.0

WithQuery adds the query to the list game records handler v1 params

func (*ListGameRecordsHandlerV1Params) WithTags added in v0.68.0

WithTags adds the tags to the list game records handler v1 params

func (*ListGameRecordsHandlerV1Params) WithTimeout

WithTimeout adds the timeout to the list game records handler v1 params

func (*ListGameRecordsHandlerV1Params) WriteToRequest

WriteToRequest writes these params to a swagger request

type ListGameRecordsHandlerV1Reader

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

ListGameRecordsHandlerV1Reader is a Reader for the ListGameRecordsHandlerV1 structure.

func (*ListGameRecordsHandlerV1Reader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListGameRecordsHandlerV1Unauthorized added in v0.7.0

type ListGameRecordsHandlerV1Unauthorized struct {
	Payload *cloudsaveclientmodels.ModelsResponseError
}

ListGameRecordsHandlerV1Unauthorized 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 NewListGameRecordsHandlerV1Unauthorized added in v0.7.0

func NewListGameRecordsHandlerV1Unauthorized() *ListGameRecordsHandlerV1Unauthorized

NewListGameRecordsHandlerV1Unauthorized creates a ListGameRecordsHandlerV1Unauthorized with default headers values

func (*ListGameRecordsHandlerV1Unauthorized) Error added in v0.7.0

func (*ListGameRecordsHandlerV1Unauthorized) GetPayload added in v0.7.0

func (*ListGameRecordsHandlerV1Unauthorized) ToJSONString added in v0.25.0

func (o *ListGameRecordsHandlerV1Unauthorized) ToJSONString() string

Jump to

Keyboard shortcuts

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