Documentation ¶
Index ¶
- type Client
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) UpdatePlayTimeWeight(params *UpdatePlayTimeWeightParams, authInfo runtime.ClientAuthInfoWriter) (*UpdatePlayTimeWeightOK, *UpdatePlayTimeWeightBadRequest, ...)
- func (a *Client) UpdatePlayTimeWeightShort(params *UpdatePlayTimeWeightParams, authInfo runtime.ClientAuthInfoWriter) (*UpdatePlayTimeWeightOK, error)
- type ClientService
- type UpdatePlayTimeWeightBadRequest
- type UpdatePlayTimeWeightForbidden
- type UpdatePlayTimeWeightInternalServerError
- type UpdatePlayTimeWeightNotFound
- type UpdatePlayTimeWeightOK
- type UpdatePlayTimeWeightParams
- func NewUpdatePlayTimeWeightParams() *UpdatePlayTimeWeightParams
- func NewUpdatePlayTimeWeightParamsWithContext(ctx context.Context) *UpdatePlayTimeWeightParams
- func NewUpdatePlayTimeWeightParamsWithHTTPClient(client *http.Client) *UpdatePlayTimeWeightParams
- func NewUpdatePlayTimeWeightParamsWithTimeout(timeout time.Duration) *UpdatePlayTimeWeightParams
- func (o *UpdatePlayTimeWeightParams) SetBody(body *matchmakingclientmodels.ModelsUpdatePlayTimeWeightRequest)
- func (o *UpdatePlayTimeWeightParams) SetContext(ctx context.Context)
- func (o *UpdatePlayTimeWeightParams) SetHTTPClient(client *http.Client)
- func (o *UpdatePlayTimeWeightParams) SetNamespace(namespace string)
- func (o *UpdatePlayTimeWeightParams) SetTimeout(timeout time.Duration)
- func (o *UpdatePlayTimeWeightParams) WithBody(body *matchmakingclientmodels.ModelsUpdatePlayTimeWeightRequest) *UpdatePlayTimeWeightParams
- func (o *UpdatePlayTimeWeightParams) WithContext(ctx context.Context) *UpdatePlayTimeWeightParams
- func (o *UpdatePlayTimeWeightParams) WithHTTPClient(client *http.Client) *UpdatePlayTimeWeightParams
- func (o *UpdatePlayTimeWeightParams) WithNamespace(namespace string) *UpdatePlayTimeWeightParams
- func (o *UpdatePlayTimeWeightParams) WithTimeout(timeout time.Duration) *UpdatePlayTimeWeightParams
- func (o *UpdatePlayTimeWeightParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdatePlayTimeWeightReader
- type UpdatePlayTimeWeightUnauthorized
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for social matchmaking API
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
func (*Client) UpdatePlayTimeWeight ¶
func (a *Client) UpdatePlayTimeWeight(params *UpdatePlayTimeWeightParams, authInfo runtime.ClientAuthInfoWriter) (*UpdatePlayTimeWeightOK, *UpdatePlayTimeWeightBadRequest, *UpdatePlayTimeWeightUnauthorized, *UpdatePlayTimeWeightForbidden, *UpdatePlayTimeWeightNotFound, *UpdatePlayTimeWeightInternalServerError, error)
UpdatePlayTimeWeight updates player playtime connection weight Required Permission: NAMESPACE:{namespace}:MATCHMAKING:CHANNEL [UPDATE]
Required Scope: social
Update a connection weight between player and playtime.
This endpoint is intended to be called by admin for debugging purpose on social matchmaking rule.
func (*Client) UpdatePlayTimeWeightShort ¶ added in v0.8.0
func (a *Client) UpdatePlayTimeWeightShort(params *UpdatePlayTimeWeightParams, authInfo runtime.ClientAuthInfoWriter) (*UpdatePlayTimeWeightOK, error)
type ClientService ¶
type ClientService interface { UpdatePlayTimeWeight(params *UpdatePlayTimeWeightParams, authInfo runtime.ClientAuthInfoWriter) (*UpdatePlayTimeWeightOK, *UpdatePlayTimeWeightBadRequest, *UpdatePlayTimeWeightUnauthorized, *UpdatePlayTimeWeightForbidden, *UpdatePlayTimeWeightNotFound, *UpdatePlayTimeWeightInternalServerError, error) UpdatePlayTimeWeightShort(params *UpdatePlayTimeWeightParams, authInfo runtime.ClientAuthInfoWriter) (*UpdatePlayTimeWeightOK, 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 social matchmaking API client.
type UpdatePlayTimeWeightBadRequest ¶
type UpdatePlayTimeWeightBadRequest struct {
Payload *matchmakingclientmodels.ResponseErrorV1
}
UpdatePlayTimeWeightBadRequest handles this case with default header values.
<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20002</td><td>validation error</td></tr><tr><td>20019</td><td>unable to parse request body</td></tr></table>
func NewUpdatePlayTimeWeightBadRequest ¶
func NewUpdatePlayTimeWeightBadRequest() *UpdatePlayTimeWeightBadRequest
NewUpdatePlayTimeWeightBadRequest creates a UpdatePlayTimeWeightBadRequest with default headers values
func (*UpdatePlayTimeWeightBadRequest) Error ¶
func (o *UpdatePlayTimeWeightBadRequest) Error() string
func (*UpdatePlayTimeWeightBadRequest) GetPayload ¶
func (o *UpdatePlayTimeWeightBadRequest) GetPayload() *matchmakingclientmodels.ResponseErrorV1
type UpdatePlayTimeWeightForbidden ¶
type UpdatePlayTimeWeightForbidden struct {
Payload *matchmakingclientmodels.ResponseErrorV1
}
UpdatePlayTimeWeightForbidden handles this case with default header values.
<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20013</td><td>insufficient permissions</td></tr><tr><td>20014</td><td>invalid audience</td></tr><tr><td>20015</td><td>insufficient scope</td></tr></table>
func NewUpdatePlayTimeWeightForbidden ¶
func NewUpdatePlayTimeWeightForbidden() *UpdatePlayTimeWeightForbidden
NewUpdatePlayTimeWeightForbidden creates a UpdatePlayTimeWeightForbidden with default headers values
func (*UpdatePlayTimeWeightForbidden) Error ¶
func (o *UpdatePlayTimeWeightForbidden) Error() string
func (*UpdatePlayTimeWeightForbidden) GetPayload ¶
func (o *UpdatePlayTimeWeightForbidden) GetPayload() *matchmakingclientmodels.ResponseErrorV1
type UpdatePlayTimeWeightInternalServerError ¶
type UpdatePlayTimeWeightInternalServerError struct {
Payload *matchmakingclientmodels.ResponseError
}
UpdatePlayTimeWeightInternalServerError 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></table>
func NewUpdatePlayTimeWeightInternalServerError ¶
func NewUpdatePlayTimeWeightInternalServerError() *UpdatePlayTimeWeightInternalServerError
NewUpdatePlayTimeWeightInternalServerError creates a UpdatePlayTimeWeightInternalServerError with default headers values
func (*UpdatePlayTimeWeightInternalServerError) Error ¶
func (o *UpdatePlayTimeWeightInternalServerError) Error() string
func (*UpdatePlayTimeWeightInternalServerError) GetPayload ¶
func (o *UpdatePlayTimeWeightInternalServerError) GetPayload() *matchmakingclientmodels.ResponseError
type UpdatePlayTimeWeightNotFound ¶
type UpdatePlayTimeWeightNotFound struct {
Payload *matchmakingclientmodels.ResponseErrorV1
}
UpdatePlayTimeWeightNotFound handles this case with default header values.
<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>510301</td><td>user playtime not found</td></tr></table>
func NewUpdatePlayTimeWeightNotFound ¶
func NewUpdatePlayTimeWeightNotFound() *UpdatePlayTimeWeightNotFound
NewUpdatePlayTimeWeightNotFound creates a UpdatePlayTimeWeightNotFound with default headers values
func (*UpdatePlayTimeWeightNotFound) Error ¶
func (o *UpdatePlayTimeWeightNotFound) Error() string
func (*UpdatePlayTimeWeightNotFound) GetPayload ¶
func (o *UpdatePlayTimeWeightNotFound) GetPayload() *matchmakingclientmodels.ResponseErrorV1
type UpdatePlayTimeWeightOK ¶
type UpdatePlayTimeWeightOK struct {
Payload *matchmakingclientmodels.ModelsUpdatePlayerPlaytimeWeightResponse
}
UpdatePlayTimeWeightOK handles this case with default header values.
Operation succeeded
func NewUpdatePlayTimeWeightOK ¶
func NewUpdatePlayTimeWeightOK() *UpdatePlayTimeWeightOK
NewUpdatePlayTimeWeightOK creates a UpdatePlayTimeWeightOK with default headers values
func (*UpdatePlayTimeWeightOK) Error ¶
func (o *UpdatePlayTimeWeightOK) Error() string
func (*UpdatePlayTimeWeightOK) GetPayload ¶
func (o *UpdatePlayTimeWeightOK) GetPayload() *matchmakingclientmodels.ModelsUpdatePlayerPlaytimeWeightResponse
type UpdatePlayTimeWeightParams ¶
type UpdatePlayTimeWeightParams struct { /*Body*/ Body *matchmakingclientmodels.ModelsUpdatePlayTimeWeightRequest /*Namespace namespace of the game */ Namespace string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
UpdatePlayTimeWeightParams contains all the parameters to send to the API endpoint for the update play time weight operation typically these are written to a http.Request
func NewUpdatePlayTimeWeightParams ¶
func NewUpdatePlayTimeWeightParams() *UpdatePlayTimeWeightParams
NewUpdatePlayTimeWeightParams creates a new UpdatePlayTimeWeightParams object with the default values initialized.
func NewUpdatePlayTimeWeightParamsWithContext ¶
func NewUpdatePlayTimeWeightParamsWithContext(ctx context.Context) *UpdatePlayTimeWeightParams
NewUpdatePlayTimeWeightParamsWithContext creates a new UpdatePlayTimeWeightParams object with the default values initialized, and the ability to set a context for a request
func NewUpdatePlayTimeWeightParamsWithHTTPClient ¶
func NewUpdatePlayTimeWeightParamsWithHTTPClient(client *http.Client) *UpdatePlayTimeWeightParams
NewUpdatePlayTimeWeightParamsWithHTTPClient creates a new UpdatePlayTimeWeightParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewUpdatePlayTimeWeightParamsWithTimeout ¶
func NewUpdatePlayTimeWeightParamsWithTimeout(timeout time.Duration) *UpdatePlayTimeWeightParams
NewUpdatePlayTimeWeightParamsWithTimeout creates a new UpdatePlayTimeWeightParams object with the default values initialized, and the ability to set a timeout on a request
func (*UpdatePlayTimeWeightParams) SetBody ¶
func (o *UpdatePlayTimeWeightParams) SetBody(body *matchmakingclientmodels.ModelsUpdatePlayTimeWeightRequest)
SetBody adds the body to the update play time weight params
func (*UpdatePlayTimeWeightParams) SetContext ¶
func (o *UpdatePlayTimeWeightParams) SetContext(ctx context.Context)
SetContext adds the context to the update play time weight params
func (*UpdatePlayTimeWeightParams) SetHTTPClient ¶
func (o *UpdatePlayTimeWeightParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the update play time weight params
func (*UpdatePlayTimeWeightParams) SetNamespace ¶
func (o *UpdatePlayTimeWeightParams) SetNamespace(namespace string)
SetNamespace adds the namespace to the update play time weight params
func (*UpdatePlayTimeWeightParams) SetTimeout ¶
func (o *UpdatePlayTimeWeightParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the update play time weight params
func (*UpdatePlayTimeWeightParams) WithBody ¶
func (o *UpdatePlayTimeWeightParams) WithBody(body *matchmakingclientmodels.ModelsUpdatePlayTimeWeightRequest) *UpdatePlayTimeWeightParams
WithBody adds the body to the update play time weight params
func (*UpdatePlayTimeWeightParams) WithContext ¶
func (o *UpdatePlayTimeWeightParams) WithContext(ctx context.Context) *UpdatePlayTimeWeightParams
WithContext adds the context to the update play time weight params
func (*UpdatePlayTimeWeightParams) WithHTTPClient ¶
func (o *UpdatePlayTimeWeightParams) WithHTTPClient(client *http.Client) *UpdatePlayTimeWeightParams
WithHTTPClient adds the HTTPClient to the update play time weight params
func (*UpdatePlayTimeWeightParams) WithNamespace ¶
func (o *UpdatePlayTimeWeightParams) WithNamespace(namespace string) *UpdatePlayTimeWeightParams
WithNamespace adds the namespace to the update play time weight params
func (*UpdatePlayTimeWeightParams) WithTimeout ¶
func (o *UpdatePlayTimeWeightParams) WithTimeout(timeout time.Duration) *UpdatePlayTimeWeightParams
WithTimeout adds the timeout to the update play time weight params
func (*UpdatePlayTimeWeightParams) WriteToRequest ¶
func (o *UpdatePlayTimeWeightParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type UpdatePlayTimeWeightReader ¶
type UpdatePlayTimeWeightReader struct {
// contains filtered or unexported fields
}
UpdatePlayTimeWeightReader is a Reader for the UpdatePlayTimeWeight structure.
func (*UpdatePlayTimeWeightReader) ReadResponse ¶
func (o *UpdatePlayTimeWeightReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type UpdatePlayTimeWeightUnauthorized ¶
type UpdatePlayTimeWeightUnauthorized struct {
}UpdatePlayTimeWeightUnauthorized 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 NewUpdatePlayTimeWeightUnauthorized ¶
func NewUpdatePlayTimeWeightUnauthorized() *UpdatePlayTimeWeightUnauthorized
NewUpdatePlayTimeWeightUnauthorized creates a UpdatePlayTimeWeightUnauthorized with default headers values
func (*UpdatePlayTimeWeightUnauthorized) Error ¶
func (o *UpdatePlayTimeWeightUnauthorized) Error() string
func (*UpdatePlayTimeWeightUnauthorized) GetPayload ¶
func (o *UpdatePlayTimeWeightUnauthorized) GetPayload() *matchmakingclientmodels.ResponseErrorV1