admin_concurrent_record

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AdminPutGameRecordConcurrentHandlerV1BadRequest

type AdminPutGameRecordConcurrentHandlerV1BadRequest struct {
	Payload *cloudsaveclientmodels.ModelsResponseError
}

AdminPutGameRecordConcurrentHandlerV1BadRequest 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 NewAdminPutGameRecordConcurrentHandlerV1BadRequest

func NewAdminPutGameRecordConcurrentHandlerV1BadRequest() *AdminPutGameRecordConcurrentHandlerV1BadRequest

NewAdminPutGameRecordConcurrentHandlerV1BadRequest creates a AdminPutGameRecordConcurrentHandlerV1BadRequest with default headers values

func (*AdminPutGameRecordConcurrentHandlerV1BadRequest) Error

func (*AdminPutGameRecordConcurrentHandlerV1BadRequest) GetPayload

type AdminPutGameRecordConcurrentHandlerV1InternalServerError

type AdminPutGameRecordConcurrentHandlerV1InternalServerError struct {
	Payload *cloudsaveclientmodels.ModelsResponseError
}

AdminPutGameRecordConcurrentHandlerV1InternalServerError handles this case with default header values.

Internal Server Error

func NewAdminPutGameRecordConcurrentHandlerV1InternalServerError

func NewAdminPutGameRecordConcurrentHandlerV1InternalServerError() *AdminPutGameRecordConcurrentHandlerV1InternalServerError

NewAdminPutGameRecordConcurrentHandlerV1InternalServerError creates a AdminPutGameRecordConcurrentHandlerV1InternalServerError with default headers values

func (*AdminPutGameRecordConcurrentHandlerV1InternalServerError) Error

func (*AdminPutGameRecordConcurrentHandlerV1InternalServerError) GetPayload

type AdminPutGameRecordConcurrentHandlerV1NoContent

type AdminPutGameRecordConcurrentHandlerV1NoContent struct {
}

AdminPutGameRecordConcurrentHandlerV1NoContent handles this case with default header values.

Record saved

func NewAdminPutGameRecordConcurrentHandlerV1NoContent

func NewAdminPutGameRecordConcurrentHandlerV1NoContent() *AdminPutGameRecordConcurrentHandlerV1NoContent

NewAdminPutGameRecordConcurrentHandlerV1NoContent creates a AdminPutGameRecordConcurrentHandlerV1NoContent with default headers values

func (*AdminPutGameRecordConcurrentHandlerV1NoContent) Error

type AdminPutGameRecordConcurrentHandlerV1Params

type AdminPutGameRecordConcurrentHandlerV1Params struct {

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

	*/
	Key string
	/*Namespace
	  namespace of the game

	*/
	Namespace string

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

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

func NewAdminPutGameRecordConcurrentHandlerV1Params

func NewAdminPutGameRecordConcurrentHandlerV1Params() *AdminPutGameRecordConcurrentHandlerV1Params

NewAdminPutGameRecordConcurrentHandlerV1Params creates a new AdminPutGameRecordConcurrentHandlerV1Params object with the default values initialized.

func NewAdminPutGameRecordConcurrentHandlerV1ParamsWithContext

func NewAdminPutGameRecordConcurrentHandlerV1ParamsWithContext(ctx context.Context) *AdminPutGameRecordConcurrentHandlerV1Params

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

func NewAdminPutGameRecordConcurrentHandlerV1ParamsWithHTTPClient

func NewAdminPutGameRecordConcurrentHandlerV1ParamsWithHTTPClient(client *http.Client) *AdminPutGameRecordConcurrentHandlerV1Params

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

func NewAdminPutGameRecordConcurrentHandlerV1ParamsWithTimeout

func NewAdminPutGameRecordConcurrentHandlerV1ParamsWithTimeout(timeout time.Duration) *AdminPutGameRecordConcurrentHandlerV1Params

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

func (*AdminPutGameRecordConcurrentHandlerV1Params) SetAuthInfoWriter added in v0.17.0

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

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

func (*AdminPutGameRecordConcurrentHandlerV1Params) SetBody

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

func (*AdminPutGameRecordConcurrentHandlerV1Params) SetContext

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

func (*AdminPutGameRecordConcurrentHandlerV1Params) SetHTTPClient

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

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

func (*AdminPutGameRecordConcurrentHandlerV1Params) SetHTTPClientTransport added in v0.19.0

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

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

func (*AdminPutGameRecordConcurrentHandlerV1Params) SetKey

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

func (*AdminPutGameRecordConcurrentHandlerV1Params) SetNamespace

func (o *AdminPutGameRecordConcurrentHandlerV1Params) SetNamespace(namespace string)

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

func (*AdminPutGameRecordConcurrentHandlerV1Params) SetTimeout

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

func (*AdminPutGameRecordConcurrentHandlerV1Params) WithBody

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

func (*AdminPutGameRecordConcurrentHandlerV1Params) WithContext

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

func (*AdminPutGameRecordConcurrentHandlerV1Params) WithHTTPClient

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

func (*AdminPutGameRecordConcurrentHandlerV1Params) WithKey

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

func (*AdminPutGameRecordConcurrentHandlerV1Params) WithNamespace

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

func (*AdminPutGameRecordConcurrentHandlerV1Params) WithTimeout

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

func (*AdminPutGameRecordConcurrentHandlerV1Params) WriteToRequest

WriteToRequest writes these params to a swagger request

type AdminPutGameRecordConcurrentHandlerV1PreconditionFailed

type AdminPutGameRecordConcurrentHandlerV1PreconditionFailed struct {
	Payload *cloudsaveclientmodels.ModelsResponseError
}

AdminPutGameRecordConcurrentHandlerV1PreconditionFailed handles this case with default header values.

Precondition Failed

func NewAdminPutGameRecordConcurrentHandlerV1PreconditionFailed

func NewAdminPutGameRecordConcurrentHandlerV1PreconditionFailed() *AdminPutGameRecordConcurrentHandlerV1PreconditionFailed

NewAdminPutGameRecordConcurrentHandlerV1PreconditionFailed creates a AdminPutGameRecordConcurrentHandlerV1PreconditionFailed with default headers values

func (*AdminPutGameRecordConcurrentHandlerV1PreconditionFailed) Error

func (*AdminPutGameRecordConcurrentHandlerV1PreconditionFailed) GetPayload

type AdminPutGameRecordConcurrentHandlerV1Reader

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

AdminPutGameRecordConcurrentHandlerV1Reader is a Reader for the AdminPutGameRecordConcurrentHandlerV1 structure.

func (*AdminPutGameRecordConcurrentHandlerV1Reader) ReadResponse

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

ReadResponse reads a server response into the received o.

type AdminPutGameRecordConcurrentHandlerV1Unauthorized

type AdminPutGameRecordConcurrentHandlerV1Unauthorized struct {
	Payload *cloudsaveclientmodels.ModelsResponseError
}

AdminPutGameRecordConcurrentHandlerV1Unauthorized handles this case with default header values.

Unauthorized

func NewAdminPutGameRecordConcurrentHandlerV1Unauthorized

func NewAdminPutGameRecordConcurrentHandlerV1Unauthorized() *AdminPutGameRecordConcurrentHandlerV1Unauthorized

NewAdminPutGameRecordConcurrentHandlerV1Unauthorized creates a AdminPutGameRecordConcurrentHandlerV1Unauthorized with default headers values

func (*AdminPutGameRecordConcurrentHandlerV1Unauthorized) Error

func (*AdminPutGameRecordConcurrentHandlerV1Unauthorized) GetPayload

type AdminPutPlayerPublicRecordConcurrentHandlerV1BadRequest

type AdminPutPlayerPublicRecordConcurrentHandlerV1BadRequest struct {
	Payload *cloudsaveclientmodels.ModelsResponseError
}

AdminPutPlayerPublicRecordConcurrentHandlerV1BadRequest 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 NewAdminPutPlayerPublicRecordConcurrentHandlerV1BadRequest

func NewAdminPutPlayerPublicRecordConcurrentHandlerV1BadRequest() *AdminPutPlayerPublicRecordConcurrentHandlerV1BadRequest

NewAdminPutPlayerPublicRecordConcurrentHandlerV1BadRequest creates a AdminPutPlayerPublicRecordConcurrentHandlerV1BadRequest with default headers values

func (*AdminPutPlayerPublicRecordConcurrentHandlerV1BadRequest) Error

func (*AdminPutPlayerPublicRecordConcurrentHandlerV1BadRequest) GetPayload

type AdminPutPlayerPublicRecordConcurrentHandlerV1InternalServerError

type AdminPutPlayerPublicRecordConcurrentHandlerV1InternalServerError struct {
	Payload *cloudsaveclientmodels.ModelsResponseError
}

AdminPutPlayerPublicRecordConcurrentHandlerV1InternalServerError handles this case with default header values.

Internal Server Error

func NewAdminPutPlayerPublicRecordConcurrentHandlerV1InternalServerError

func NewAdminPutPlayerPublicRecordConcurrentHandlerV1InternalServerError() *AdminPutPlayerPublicRecordConcurrentHandlerV1InternalServerError

NewAdminPutPlayerPublicRecordConcurrentHandlerV1InternalServerError creates a AdminPutPlayerPublicRecordConcurrentHandlerV1InternalServerError with default headers values

func (*AdminPutPlayerPublicRecordConcurrentHandlerV1InternalServerError) Error

func (*AdminPutPlayerPublicRecordConcurrentHandlerV1InternalServerError) GetPayload

type AdminPutPlayerPublicRecordConcurrentHandlerV1NoContent

type AdminPutPlayerPublicRecordConcurrentHandlerV1NoContent struct {
}

AdminPutPlayerPublicRecordConcurrentHandlerV1NoContent handles this case with default header values.

Record saved

func NewAdminPutPlayerPublicRecordConcurrentHandlerV1NoContent

func NewAdminPutPlayerPublicRecordConcurrentHandlerV1NoContent() *AdminPutPlayerPublicRecordConcurrentHandlerV1NoContent

NewAdminPutPlayerPublicRecordConcurrentHandlerV1NoContent creates a AdminPutPlayerPublicRecordConcurrentHandlerV1NoContent with default headers values

func (*AdminPutPlayerPublicRecordConcurrentHandlerV1NoContent) Error

type AdminPutPlayerPublicRecordConcurrentHandlerV1Params

type AdminPutPlayerPublicRecordConcurrentHandlerV1Params struct {

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

	*/
	Key string
	/*Namespace
	  namespace of the game

	*/
	Namespace string
	/*UserID
	  user ID who own the record

	*/
	UserID string

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

AdminPutPlayerPublicRecordConcurrentHandlerV1Params contains all the parameters to send to the API endpoint for the admin put player public record concurrent handler v1 operation typically these are written to a http.Request

func NewAdminPutPlayerPublicRecordConcurrentHandlerV1Params

func NewAdminPutPlayerPublicRecordConcurrentHandlerV1Params() *AdminPutPlayerPublicRecordConcurrentHandlerV1Params

NewAdminPutPlayerPublicRecordConcurrentHandlerV1Params creates a new AdminPutPlayerPublicRecordConcurrentHandlerV1Params object with the default values initialized.

func NewAdminPutPlayerPublicRecordConcurrentHandlerV1ParamsWithContext

func NewAdminPutPlayerPublicRecordConcurrentHandlerV1ParamsWithContext(ctx context.Context) *AdminPutPlayerPublicRecordConcurrentHandlerV1Params

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

func NewAdminPutPlayerPublicRecordConcurrentHandlerV1ParamsWithHTTPClient

func NewAdminPutPlayerPublicRecordConcurrentHandlerV1ParamsWithHTTPClient(client *http.Client) *AdminPutPlayerPublicRecordConcurrentHandlerV1Params

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

func NewAdminPutPlayerPublicRecordConcurrentHandlerV1ParamsWithTimeout

func NewAdminPutPlayerPublicRecordConcurrentHandlerV1ParamsWithTimeout(timeout time.Duration) *AdminPutPlayerPublicRecordConcurrentHandlerV1Params

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

func (*AdminPutPlayerPublicRecordConcurrentHandlerV1Params) SetAuthInfoWriter added in v0.17.0

SetAuthInfoWriter adds the authInfoWriter to the admin put player public record concurrent handler v1 params

func (*AdminPutPlayerPublicRecordConcurrentHandlerV1Params) SetBody

SetBody adds the body to the admin put player public record concurrent handler v1 params

func (*AdminPutPlayerPublicRecordConcurrentHandlerV1Params) SetContext

SetContext adds the context to the admin put player public record concurrent handler v1 params

func (*AdminPutPlayerPublicRecordConcurrentHandlerV1Params) SetHTTPClient

SetHTTPClient adds the HTTPClient to the admin put player public record concurrent handler v1 params

func (*AdminPutPlayerPublicRecordConcurrentHandlerV1Params) SetHTTPClientTransport added in v0.19.0

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

SetHTTPClient adds the HTTPClient Transport to the admin put player public record concurrent handler v1 params

func (*AdminPutPlayerPublicRecordConcurrentHandlerV1Params) SetKey

SetKey adds the key to the admin put player public record concurrent handler v1 params

func (*AdminPutPlayerPublicRecordConcurrentHandlerV1Params) SetNamespace

SetNamespace adds the namespace to the admin put player public record concurrent handler v1 params

func (*AdminPutPlayerPublicRecordConcurrentHandlerV1Params) SetTimeout

SetTimeout adds the timeout to the admin put player public record concurrent handler v1 params

func (*AdminPutPlayerPublicRecordConcurrentHandlerV1Params) SetUserID

SetUserID adds the userId to the admin put player public record concurrent handler v1 params

func (*AdminPutPlayerPublicRecordConcurrentHandlerV1Params) WithBody

WithBody adds the body to the admin put player public record concurrent handler v1 params

func (*AdminPutPlayerPublicRecordConcurrentHandlerV1Params) WithContext

WithContext adds the context to the admin put player public record concurrent handler v1 params

func (*AdminPutPlayerPublicRecordConcurrentHandlerV1Params) WithHTTPClient

WithHTTPClient adds the HTTPClient to the admin put player public record concurrent handler v1 params

func (*AdminPutPlayerPublicRecordConcurrentHandlerV1Params) WithKey

WithKey adds the key to the admin put player public record concurrent handler v1 params

func (*AdminPutPlayerPublicRecordConcurrentHandlerV1Params) WithNamespace

WithNamespace adds the namespace to the admin put player public record concurrent handler v1 params

func (*AdminPutPlayerPublicRecordConcurrentHandlerV1Params) WithTimeout

WithTimeout adds the timeout to the admin put player public record concurrent handler v1 params

func (*AdminPutPlayerPublicRecordConcurrentHandlerV1Params) WithUserID

WithUserID adds the userID to the admin put player public record concurrent handler v1 params

func (*AdminPutPlayerPublicRecordConcurrentHandlerV1Params) WriteToRequest

WriteToRequest writes these params to a swagger request

type AdminPutPlayerPublicRecordConcurrentHandlerV1PreconditionFailed

type AdminPutPlayerPublicRecordConcurrentHandlerV1PreconditionFailed struct {
	Payload *cloudsaveclientmodels.ModelsResponseError
}

AdminPutPlayerPublicRecordConcurrentHandlerV1PreconditionFailed handles this case with default header values.

Precondition Failed

func NewAdminPutPlayerPublicRecordConcurrentHandlerV1PreconditionFailed

func NewAdminPutPlayerPublicRecordConcurrentHandlerV1PreconditionFailed() *AdminPutPlayerPublicRecordConcurrentHandlerV1PreconditionFailed

NewAdminPutPlayerPublicRecordConcurrentHandlerV1PreconditionFailed creates a AdminPutPlayerPublicRecordConcurrentHandlerV1PreconditionFailed with default headers values

func (*AdminPutPlayerPublicRecordConcurrentHandlerV1PreconditionFailed) Error

func (*AdminPutPlayerPublicRecordConcurrentHandlerV1PreconditionFailed) GetPayload

type AdminPutPlayerPublicRecordConcurrentHandlerV1Reader

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

AdminPutPlayerPublicRecordConcurrentHandlerV1Reader is a Reader for the AdminPutPlayerPublicRecordConcurrentHandlerV1 structure.

func (*AdminPutPlayerPublicRecordConcurrentHandlerV1Reader) ReadResponse

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

ReadResponse reads a server response into the received o.

type AdminPutPlayerPublicRecordConcurrentHandlerV1Unauthorized

type AdminPutPlayerPublicRecordConcurrentHandlerV1Unauthorized struct {
	Payload *cloudsaveclientmodels.ModelsResponseError
}

AdminPutPlayerPublicRecordConcurrentHandlerV1Unauthorized handles this case with default header values.

Unauthorized

func NewAdminPutPlayerPublicRecordConcurrentHandlerV1Unauthorized

func NewAdminPutPlayerPublicRecordConcurrentHandlerV1Unauthorized() *AdminPutPlayerPublicRecordConcurrentHandlerV1Unauthorized

NewAdminPutPlayerPublicRecordConcurrentHandlerV1Unauthorized creates a AdminPutPlayerPublicRecordConcurrentHandlerV1Unauthorized with default headers values

func (*AdminPutPlayerPublicRecordConcurrentHandlerV1Unauthorized) Error

func (*AdminPutPlayerPublicRecordConcurrentHandlerV1Unauthorized) GetPayload

type Client

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

Client for admin concurrent record API

func (*Client) AdminPutGameRecordConcurrentHandlerV1

  AdminPutGameRecordConcurrentHandlerV1 creates or replace game record

  &lt;table&gt;
	&lt;tr&gt;
		&lt;td&gt;Required Permission&lt;/td&gt;
		&lt;td&gt;&lt;code&gt;ADMIN:NAMESPACE:{namespace}:CLOUDSAVE:RECORD [UPDATE]&lt;/code&gt;&lt;/td&gt;
	&lt;/tr&gt;
	&lt;tr&gt;
		&lt;td&gt;Required Scope&lt;/td&gt;
		&lt;td&gt;&lt;code&gt;social&lt;/code&gt;&lt;/td&gt;
	&lt;/tr&gt;

&lt;/table&gt; &lt;br/&gt;

&lt;h2&gt;Description&lt;/h2&gt;

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

&lt;b&gt;Replace behaviour:&lt;/b&gt; The existing value will be replaced completely with the new value.

Example

  • Existing JSON: &lt;pre&gt;{ &#34;data1&#34;: &#34;value&#34; }&lt;/pre&gt;
  • New JSON: &lt;pre&gt;{ &#34;data2&#34;: &#34;new value&#34; }&lt;/pre&gt;
  • Result: &lt;pre&gt;{ &#34;data2&#34;: &#34;new value&#34; }&lt;/pre&gt;

&lt;h2&gt;Reserved Word&lt;/h2&gt;

Reserved Word List: &lt;b&gt;__META&lt;/b&gt;

The reserved word cannot be used as a field in record value, If still defining the field when creating or updating the record, it will be ignored.

&lt;h2&gt;Parameters Notes &lt;/h2&gt;

  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. updatedAt (required: true) Time format style: RFC3339
  3. value Json

&lt;b&gt;Request Body Example:&lt;/b&gt; &lt;pre&gt;

{
	&#34;set_by&#34;: &#34;SERVER&#34;,
	&#34;value&#34;: {},
	&#34;updatedAt&#34;: &#34;2022-03-17T10:42:15.444Z&#34;
}

&lt;/pre&gt;

&lt;h2&gt;Optimistic Concurrency Control&lt;/h2&gt;

This endpoint implement optimistic concurrency control to avoid race condition. If the record has been updated since the client fetch it, the server will return HTTP status code 412 (precondition failed) and client need to redo the operation (fetch data and do update). Otherwise, the server will process the request.

func (*Client) AdminPutPlayerPublicRecordConcurrentHandlerV1

  AdminPutPlayerPublicRecordConcurrentHandlerV1 creates or replace player public record

  &lt;table&gt;
	&lt;tr&gt;
		&lt;td&gt;Required Permission&lt;/td&gt;
		&lt;td&gt;&lt;code&gt;ADMIN:NAMESPACE:{namespace}:USER:{userId}:PUBLIC:CLOUDSAVE:RECORD [UPDATE]&lt;/code&gt;&lt;/td&gt;
	&lt;/tr&gt;
	&lt;tr&gt;
		&lt;td&gt;Required Scope&lt;/td&gt;
		&lt;td&gt;&lt;code&gt;social&lt;/code&gt;&lt;/td&gt;
	&lt;/tr&gt;

&lt;/table&gt; &lt;br/&gt;

&lt;h2&gt;Description&lt;/h2&gt;

This endpoints will create new player public record or replace the existing player public record.

&lt;b&gt;Replace behaviour:&lt;/b&gt; The existing value will be replaced completely with the new value.

Example

  • Existing JSON: &lt;pre&gt;{ &#34;data1&#34;: &#34;value&#34; }&lt;/pre&gt;
  • New JSON: &lt;pre&gt;{ &#34;data2&#34;: &#34;new value&#34; }&lt;/pre&gt;
  • Result: &lt;pre&gt;{ &#34;data2&#34;: &#34;new value&#34; }&lt;/pre&gt;

&lt;h2&gt;Reserved Word&lt;/h2&gt;

Reserved Word List: &lt;b&gt;__META&lt;/b&gt;

The reserved word cannot be used as a field in record value, If still defining the field when creating or updating the record, it will be ignored.

&lt;h2&gt;Parameters Notes &lt;/h2&gt;

  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. updatedAt (required: true) Time format style: RFC3339
  3. value Json

&lt;b&gt;Request Body Example:&lt;/b&gt; &lt;pre&gt;

{
	&#34;set_by&#34;: &#34;SERVER&#34;,
	&#34;value&#34;: {},
	&#34;updatedAt&#34;: &#34;2022-03-17T10:42:15.444Z&#34;
}

&lt;/pre&gt;

&lt;h2&gt;Optimistic Concurrency Control&lt;/h2&gt;

This endpoint implement optimistic concurrency control to avoid race condition. If the record has been updated since the client fetch it, the server will return HTTP status code 412 (precondition failed) and client need to redo the operation (fetch data and do update). Otherwise, the server will process the request.

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 concurrent record API client.

Jump to

Keyboard shortcuts

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