Documentation ¶
Index ¶
- type AdminListUserAchievementsBadRequest
- type AdminListUserAchievementsInternalServerError
- type AdminListUserAchievementsNotFound
- type AdminListUserAchievementsOK
- type AdminListUserAchievementsParams
- func NewAdminListUserAchievementsParams() *AdminListUserAchievementsParams
- func NewAdminListUserAchievementsParamsWithContext(ctx context.Context) *AdminListUserAchievementsParams
- func NewAdminListUserAchievementsParamsWithHTTPClient(client *http.Client) *AdminListUserAchievementsParams
- func NewAdminListUserAchievementsParamsWithTimeout(timeout time.Duration) *AdminListUserAchievementsParams
- func (o *AdminListUserAchievementsParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
- func (o *AdminListUserAchievementsParams) SetContext(ctx context.Context)
- func (o *AdminListUserAchievementsParams) SetHTTPClient(client *http.Client)
- func (o *AdminListUserAchievementsParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
- func (o *AdminListUserAchievementsParams) SetLimit(limit *int64)
- func (o *AdminListUserAchievementsParams) SetNamespace(namespace string)
- func (o *AdminListUserAchievementsParams) SetOffset(offset *int64)
- func (o *AdminListUserAchievementsParams) SetPreferUnlocked(preferUnlocked *bool)
- func (o *AdminListUserAchievementsParams) SetSortBy(sortBy *string)
- func (o *AdminListUserAchievementsParams) SetTags(tags []string)
- func (o *AdminListUserAchievementsParams) SetTimeout(timeout time.Duration)
- func (o *AdminListUserAchievementsParams) SetUserID(userID string)
- func (o *AdminListUserAchievementsParams) WithContext(ctx context.Context) *AdminListUserAchievementsParams
- func (o *AdminListUserAchievementsParams) WithHTTPClient(client *http.Client) *AdminListUserAchievementsParams
- func (o *AdminListUserAchievementsParams) WithLimit(limit *int64) *AdminListUserAchievementsParams
- func (o *AdminListUserAchievementsParams) WithNamespace(namespace string) *AdminListUserAchievementsParams
- func (o *AdminListUserAchievementsParams) WithOffset(offset *int64) *AdminListUserAchievementsParams
- func (o *AdminListUserAchievementsParams) WithPreferUnlocked(preferUnlocked *bool) *AdminListUserAchievementsParams
- func (o *AdminListUserAchievementsParams) WithSortBy(sortBy *string) *AdminListUserAchievementsParams
- func (o *AdminListUserAchievementsParams) WithTags(tags []string) *AdminListUserAchievementsParams
- func (o *AdminListUserAchievementsParams) WithTimeout(timeout time.Duration) *AdminListUserAchievementsParams
- func (o *AdminListUserAchievementsParams) WithUserID(userID string) *AdminListUserAchievementsParams
- func (o *AdminListUserAchievementsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type AdminListUserAchievementsReader
- type AdminListUserAchievementsUnauthorized
- type AdminResetAchievementBadRequest
- type AdminResetAchievementInternalServerError
- type AdminResetAchievementNoContent
- type AdminResetAchievementNotFound
- type AdminResetAchievementParams
- func NewAdminResetAchievementParams() *AdminResetAchievementParams
- func NewAdminResetAchievementParamsWithContext(ctx context.Context) *AdminResetAchievementParams
- func NewAdminResetAchievementParamsWithHTTPClient(client *http.Client) *AdminResetAchievementParams
- func NewAdminResetAchievementParamsWithTimeout(timeout time.Duration) *AdminResetAchievementParams
- func (o *AdminResetAchievementParams) SetAchievementCode(achievementCode string)
- func (o *AdminResetAchievementParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
- func (o *AdminResetAchievementParams) SetContext(ctx context.Context)
- func (o *AdminResetAchievementParams) SetHTTPClient(client *http.Client)
- func (o *AdminResetAchievementParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
- func (o *AdminResetAchievementParams) SetNamespace(namespace string)
- func (o *AdminResetAchievementParams) SetTimeout(timeout time.Duration)
- func (o *AdminResetAchievementParams) SetUserID(userID string)
- func (o *AdminResetAchievementParams) WithAchievementCode(achievementCode string) *AdminResetAchievementParams
- func (o *AdminResetAchievementParams) WithContext(ctx context.Context) *AdminResetAchievementParams
- func (o *AdminResetAchievementParams) WithHTTPClient(client *http.Client) *AdminResetAchievementParams
- func (o *AdminResetAchievementParams) WithNamespace(namespace string) *AdminResetAchievementParams
- func (o *AdminResetAchievementParams) WithTimeout(timeout time.Duration) *AdminResetAchievementParams
- func (o *AdminResetAchievementParams) WithUserID(userID string) *AdminResetAchievementParams
- func (o *AdminResetAchievementParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type AdminResetAchievementReader
- type AdminResetAchievementUnauthorized
- type AdminUnlockAchievementBadRequest
- type AdminUnlockAchievementInternalServerError
- type AdminUnlockAchievementNoContent
- type AdminUnlockAchievementParams
- func NewAdminUnlockAchievementParams() *AdminUnlockAchievementParams
- func NewAdminUnlockAchievementParamsWithContext(ctx context.Context) *AdminUnlockAchievementParams
- func NewAdminUnlockAchievementParamsWithHTTPClient(client *http.Client) *AdminUnlockAchievementParams
- func NewAdminUnlockAchievementParamsWithTimeout(timeout time.Duration) *AdminUnlockAchievementParams
- func (o *AdminUnlockAchievementParams) SetAchievementCode(achievementCode string)
- func (o *AdminUnlockAchievementParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
- func (o *AdminUnlockAchievementParams) SetContext(ctx context.Context)
- func (o *AdminUnlockAchievementParams) SetHTTPClient(client *http.Client)
- func (o *AdminUnlockAchievementParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
- func (o *AdminUnlockAchievementParams) SetNamespace(namespace string)
- func (o *AdminUnlockAchievementParams) SetTimeout(timeout time.Duration)
- func (o *AdminUnlockAchievementParams) SetUserID(userID string)
- func (o *AdminUnlockAchievementParams) WithAchievementCode(achievementCode string) *AdminUnlockAchievementParams
- func (o *AdminUnlockAchievementParams) WithContext(ctx context.Context) *AdminUnlockAchievementParams
- func (o *AdminUnlockAchievementParams) WithHTTPClient(client *http.Client) *AdminUnlockAchievementParams
- func (o *AdminUnlockAchievementParams) WithNamespace(namespace string) *AdminUnlockAchievementParams
- func (o *AdminUnlockAchievementParams) WithTimeout(timeout time.Duration) *AdminUnlockAchievementParams
- func (o *AdminUnlockAchievementParams) WithUserID(userID string) *AdminUnlockAchievementParams
- func (o *AdminUnlockAchievementParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type AdminUnlockAchievementReader
- type AdminUnlockAchievementUnauthorized
- type AdminUnlockAchievementUnprocessableEntity
- type Client
- func (a *Client) AdminListUserAchievements(params *AdminListUserAchievementsParams, authInfo runtime.ClientAuthInfoWriter) (*AdminListUserAchievementsOK, *AdminListUserAchievementsBadRequest, ...)deprecated
- func (a *Client) AdminListUserAchievementsShort(params *AdminListUserAchievementsParams, authInfo runtime.ClientAuthInfoWriter) (*AdminListUserAchievementsOK, error)
- func (a *Client) AdminResetAchievement(params *AdminResetAchievementParams, authInfo runtime.ClientAuthInfoWriter) (*AdminResetAchievementNoContent, *AdminResetAchievementBadRequest, ...)deprecated
- func (a *Client) AdminResetAchievementShort(params *AdminResetAchievementParams, authInfo runtime.ClientAuthInfoWriter) (*AdminResetAchievementNoContent, error)
- func (a *Client) AdminUnlockAchievement(params *AdminUnlockAchievementParams, authInfo runtime.ClientAuthInfoWriter) (*AdminUnlockAchievementNoContent, *AdminUnlockAchievementBadRequest, ...)deprecated
- func (a *Client) AdminUnlockAchievementShort(params *AdminUnlockAchievementParams, authInfo runtime.ClientAuthInfoWriter) (*AdminUnlockAchievementNoContent, error)
- func (a *Client) PublicListUserAchievements(params *PublicListUserAchievementsParams, ...) (*PublicListUserAchievementsOK, *PublicListUserAchievementsBadRequest, ...)deprecated
- func (a *Client) PublicListUserAchievementsShort(params *PublicListUserAchievementsParams, ...) (*PublicListUserAchievementsOK, error)
- func (a *Client) PublicUnlockAchievement(params *PublicUnlockAchievementParams, authInfo runtime.ClientAuthInfoWriter) (*PublicUnlockAchievementNoContent, *PublicUnlockAchievementBadRequest, ...)deprecated
- func (a *Client) PublicUnlockAchievementShort(params *PublicUnlockAchievementParams, authInfo runtime.ClientAuthInfoWriter) (*PublicUnlockAchievementNoContent, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientService
- type PublicListUserAchievementsBadRequest
- type PublicListUserAchievementsInternalServerError
- type PublicListUserAchievementsNotFound
- type PublicListUserAchievementsOK
- type PublicListUserAchievementsParams
- func NewPublicListUserAchievementsParams() *PublicListUserAchievementsParams
- func NewPublicListUserAchievementsParamsWithContext(ctx context.Context) *PublicListUserAchievementsParams
- func NewPublicListUserAchievementsParamsWithHTTPClient(client *http.Client) *PublicListUserAchievementsParams
- func NewPublicListUserAchievementsParamsWithTimeout(timeout time.Duration) *PublicListUserAchievementsParams
- func (o *PublicListUserAchievementsParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
- func (o *PublicListUserAchievementsParams) SetContext(ctx context.Context)
- func (o *PublicListUserAchievementsParams) SetHTTPClient(client *http.Client)
- func (o *PublicListUserAchievementsParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
- func (o *PublicListUserAchievementsParams) SetLimit(limit *int64)
- func (o *PublicListUserAchievementsParams) SetNamespace(namespace string)
- func (o *PublicListUserAchievementsParams) SetOffset(offset *int64)
- func (o *PublicListUserAchievementsParams) SetPreferUnlocked(preferUnlocked *bool)
- func (o *PublicListUserAchievementsParams) SetSortBy(sortBy *string)
- func (o *PublicListUserAchievementsParams) SetTags(tags []string)
- func (o *PublicListUserAchievementsParams) SetTimeout(timeout time.Duration)
- func (o *PublicListUserAchievementsParams) SetUserID(userID string)
- func (o *PublicListUserAchievementsParams) WithContext(ctx context.Context) *PublicListUserAchievementsParams
- func (o *PublicListUserAchievementsParams) WithHTTPClient(client *http.Client) *PublicListUserAchievementsParams
- func (o *PublicListUserAchievementsParams) WithLimit(limit *int64) *PublicListUserAchievementsParams
- func (o *PublicListUserAchievementsParams) WithNamespace(namespace string) *PublicListUserAchievementsParams
- func (o *PublicListUserAchievementsParams) WithOffset(offset *int64) *PublicListUserAchievementsParams
- func (o *PublicListUserAchievementsParams) WithPreferUnlocked(preferUnlocked *bool) *PublicListUserAchievementsParams
- func (o *PublicListUserAchievementsParams) WithSortBy(sortBy *string) *PublicListUserAchievementsParams
- func (o *PublicListUserAchievementsParams) WithTags(tags []string) *PublicListUserAchievementsParams
- func (o *PublicListUserAchievementsParams) WithTimeout(timeout time.Duration) *PublicListUserAchievementsParams
- func (o *PublicListUserAchievementsParams) WithUserID(userID string) *PublicListUserAchievementsParams
- func (o *PublicListUserAchievementsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PublicListUserAchievementsReader
- type PublicListUserAchievementsUnauthorized
- type PublicUnlockAchievementBadRequest
- type PublicUnlockAchievementInternalServerError
- type PublicUnlockAchievementNoContent
- type PublicUnlockAchievementParams
- func NewPublicUnlockAchievementParams() *PublicUnlockAchievementParams
- func NewPublicUnlockAchievementParamsWithContext(ctx context.Context) *PublicUnlockAchievementParams
- func NewPublicUnlockAchievementParamsWithHTTPClient(client *http.Client) *PublicUnlockAchievementParams
- func NewPublicUnlockAchievementParamsWithTimeout(timeout time.Duration) *PublicUnlockAchievementParams
- func (o *PublicUnlockAchievementParams) SetAchievementCode(achievementCode string)
- func (o *PublicUnlockAchievementParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
- func (o *PublicUnlockAchievementParams) SetContext(ctx context.Context)
- func (o *PublicUnlockAchievementParams) SetHTTPClient(client *http.Client)
- func (o *PublicUnlockAchievementParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
- func (o *PublicUnlockAchievementParams) SetNamespace(namespace string)
- func (o *PublicUnlockAchievementParams) SetTimeout(timeout time.Duration)
- func (o *PublicUnlockAchievementParams) SetUserID(userID string)
- func (o *PublicUnlockAchievementParams) WithAchievementCode(achievementCode string) *PublicUnlockAchievementParams
- func (o *PublicUnlockAchievementParams) WithContext(ctx context.Context) *PublicUnlockAchievementParams
- func (o *PublicUnlockAchievementParams) WithHTTPClient(client *http.Client) *PublicUnlockAchievementParams
- func (o *PublicUnlockAchievementParams) WithNamespace(namespace string) *PublicUnlockAchievementParams
- func (o *PublicUnlockAchievementParams) WithTimeout(timeout time.Duration) *PublicUnlockAchievementParams
- func (o *PublicUnlockAchievementParams) WithUserID(userID string) *PublicUnlockAchievementParams
- func (o *PublicUnlockAchievementParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PublicUnlockAchievementReader
- type PublicUnlockAchievementUnauthorized
- type PublicUnlockAchievementUnprocessableEntity
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdminListUserAchievementsBadRequest ¶
type AdminListUserAchievementsBadRequest struct {
Payload *achievementclientmodels.ResponseError
}
AdminListUserAchievementsBadRequest handles this case with default header values.
Bad Request
func NewAdminListUserAchievementsBadRequest ¶
func NewAdminListUserAchievementsBadRequest() *AdminListUserAchievementsBadRequest
NewAdminListUserAchievementsBadRequest creates a AdminListUserAchievementsBadRequest with default headers values
func (*AdminListUserAchievementsBadRequest) Error ¶
func (o *AdminListUserAchievementsBadRequest) Error() string
func (*AdminListUserAchievementsBadRequest) GetPayload ¶
func (o *AdminListUserAchievementsBadRequest) GetPayload() *achievementclientmodels.ResponseError
func (*AdminListUserAchievementsBadRequest) ToJSONString ¶
func (o *AdminListUserAchievementsBadRequest) ToJSONString() string
type AdminListUserAchievementsInternalServerError ¶
type AdminListUserAchievementsInternalServerError struct {
Payload *achievementclientmodels.ResponseError
}
AdminListUserAchievementsInternalServerError handles this case with default header values.
Internal Server Error
func NewAdminListUserAchievementsInternalServerError ¶
func NewAdminListUserAchievementsInternalServerError() *AdminListUserAchievementsInternalServerError
NewAdminListUserAchievementsInternalServerError creates a AdminListUserAchievementsInternalServerError with default headers values
func (*AdminListUserAchievementsInternalServerError) Error ¶
func (o *AdminListUserAchievementsInternalServerError) Error() string
func (*AdminListUserAchievementsInternalServerError) GetPayload ¶
func (o *AdminListUserAchievementsInternalServerError) GetPayload() *achievementclientmodels.ResponseError
func (*AdminListUserAchievementsInternalServerError) ToJSONString ¶
func (o *AdminListUserAchievementsInternalServerError) ToJSONString() string
type AdminListUserAchievementsNotFound ¶
type AdminListUserAchievementsNotFound struct {
Payload *achievementclientmodels.ResponseError
}
AdminListUserAchievementsNotFound handles this case with default header values.
Not Found
func NewAdminListUserAchievementsNotFound ¶
func NewAdminListUserAchievementsNotFound() *AdminListUserAchievementsNotFound
NewAdminListUserAchievementsNotFound creates a AdminListUserAchievementsNotFound with default headers values
func (*AdminListUserAchievementsNotFound) Error ¶
func (o *AdminListUserAchievementsNotFound) Error() string
func (*AdminListUserAchievementsNotFound) GetPayload ¶
func (o *AdminListUserAchievementsNotFound) GetPayload() *achievementclientmodels.ResponseError
func (*AdminListUserAchievementsNotFound) ToJSONString ¶
func (o *AdminListUserAchievementsNotFound) ToJSONString() string
type AdminListUserAchievementsOK ¶
type AdminListUserAchievementsOK struct {
Payload *achievementclientmodels.ModelsPaginatedUserAchievementResponse
}
AdminListUserAchievementsOK handles this case with default header values.
OK
func NewAdminListUserAchievementsOK ¶
func NewAdminListUserAchievementsOK() *AdminListUserAchievementsOK
NewAdminListUserAchievementsOK creates a AdminListUserAchievementsOK with default headers values
func (*AdminListUserAchievementsOK) Error ¶
func (o *AdminListUserAchievementsOK) Error() string
func (*AdminListUserAchievementsOK) GetPayload ¶
func (o *AdminListUserAchievementsOK) GetPayload() *achievementclientmodels.ModelsPaginatedUserAchievementResponse
func (*AdminListUserAchievementsOK) ToJSONString ¶
func (o *AdminListUserAchievementsOK) ToJSONString() string
type AdminListUserAchievementsParams ¶
type AdminListUserAchievementsParams struct { /*RetryPolicy*/ RetryPolicy *utils.Retry /*Namespace namespace of the game */ Namespace string /*UserID user id */ UserID string /*Limit the maximum number of data that may be returned (1...100) */ Limit *int64 /*Offset offset */ Offset *int64 /*PreferUnlocked prefer to query achieved */ PreferUnlocked *bool /*SortBy sort by, allow values: [achievedAt, achievedAt:asc, achievedAt:desc, createdAt, createdAt:asc, createdAt:desc] */ SortBy *string /*Tags tags */ Tags []string AuthInfoWriter runtime.ClientAuthInfoWriter Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
AdminListUserAchievementsParams contains all the parameters to send to the API endpoint for the admin list user achievements operation typically these are written to a http.Request
func NewAdminListUserAchievementsParams ¶
func NewAdminListUserAchievementsParams() *AdminListUserAchievementsParams
NewAdminListUserAchievementsParams creates a new AdminListUserAchievementsParams object with the default values initialized.
func NewAdminListUserAchievementsParamsWithContext ¶
func NewAdminListUserAchievementsParamsWithContext(ctx context.Context) *AdminListUserAchievementsParams
NewAdminListUserAchievementsParamsWithContext creates a new AdminListUserAchievementsParams object with the default values initialized, and the ability to set a context for a request
func NewAdminListUserAchievementsParamsWithHTTPClient ¶
func NewAdminListUserAchievementsParamsWithHTTPClient(client *http.Client) *AdminListUserAchievementsParams
NewAdminListUserAchievementsParamsWithHTTPClient creates a new AdminListUserAchievementsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewAdminListUserAchievementsParamsWithTimeout ¶
func NewAdminListUserAchievementsParamsWithTimeout(timeout time.Duration) *AdminListUserAchievementsParams
NewAdminListUserAchievementsParamsWithTimeout creates a new AdminListUserAchievementsParams object with the default values initialized, and the ability to set a timeout on a request
func (*AdminListUserAchievementsParams) SetAuthInfoWriter ¶
func (o *AdminListUserAchievementsParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
SetAuthInfoWriter adds the authInfoWriter to the admin list user achievements params
func (*AdminListUserAchievementsParams) SetContext ¶
func (o *AdminListUserAchievementsParams) SetContext(ctx context.Context)
SetContext adds the context to the admin list user achievements params
func (*AdminListUserAchievementsParams) SetHTTPClient ¶
func (o *AdminListUserAchievementsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the admin list user achievements params
func (*AdminListUserAchievementsParams) SetHTTPClientTransport ¶
func (o *AdminListUserAchievementsParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
SetHTTPClient adds the HTTPClient Transport to the admin list user achievements params
func (*AdminListUserAchievementsParams) SetLimit ¶
func (o *AdminListUserAchievementsParams) SetLimit(limit *int64)
SetLimit adds the limit to the admin list user achievements params
func (*AdminListUserAchievementsParams) SetNamespace ¶
func (o *AdminListUserAchievementsParams) SetNamespace(namespace string)
SetNamespace adds the namespace to the admin list user achievements params
func (*AdminListUserAchievementsParams) SetOffset ¶
func (o *AdminListUserAchievementsParams) SetOffset(offset *int64)
SetOffset adds the offset to the admin list user achievements params
func (*AdminListUserAchievementsParams) SetPreferUnlocked ¶
func (o *AdminListUserAchievementsParams) SetPreferUnlocked(preferUnlocked *bool)
SetPreferUnlocked adds the preferUnlocked to the admin list user achievements params
func (*AdminListUserAchievementsParams) SetSortBy ¶ added in v0.35.0
func (o *AdminListUserAchievementsParams) SetSortBy(sortBy *string)
SetSortBy adds the sortBy to the admin list user achievements params
func (*AdminListUserAchievementsParams) SetTags ¶
func (o *AdminListUserAchievementsParams) SetTags(tags []string)
SetTags adds the tags to the admin list user achievements params
func (*AdminListUserAchievementsParams) SetTimeout ¶
func (o *AdminListUserAchievementsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the admin list user achievements params
func (*AdminListUserAchievementsParams) SetUserID ¶
func (o *AdminListUserAchievementsParams) SetUserID(userID string)
SetUserID adds the userId to the admin list user achievements params
func (*AdminListUserAchievementsParams) WithContext ¶
func (o *AdminListUserAchievementsParams) WithContext(ctx context.Context) *AdminListUserAchievementsParams
WithContext adds the context to the admin list user achievements params
func (*AdminListUserAchievementsParams) WithHTTPClient ¶
func (o *AdminListUserAchievementsParams) WithHTTPClient(client *http.Client) *AdminListUserAchievementsParams
WithHTTPClient adds the HTTPClient to the admin list user achievements params
func (*AdminListUserAchievementsParams) WithLimit ¶
func (o *AdminListUserAchievementsParams) WithLimit(limit *int64) *AdminListUserAchievementsParams
WithLimit adds the limit to the admin list user achievements params
func (*AdminListUserAchievementsParams) WithNamespace ¶
func (o *AdminListUserAchievementsParams) WithNamespace(namespace string) *AdminListUserAchievementsParams
WithNamespace adds the namespace to the admin list user achievements params
func (*AdminListUserAchievementsParams) WithOffset ¶
func (o *AdminListUserAchievementsParams) WithOffset(offset *int64) *AdminListUserAchievementsParams
WithOffset adds the offset to the admin list user achievements params
func (*AdminListUserAchievementsParams) WithPreferUnlocked ¶
func (o *AdminListUserAchievementsParams) WithPreferUnlocked(preferUnlocked *bool) *AdminListUserAchievementsParams
WithPreferUnlocked adds the preferUnlocked to the admin list user achievements params
func (*AdminListUserAchievementsParams) WithSortBy ¶ added in v0.35.0
func (o *AdminListUserAchievementsParams) WithSortBy(sortBy *string) *AdminListUserAchievementsParams
WithSortBy adds the sortBy to the admin list user achievements params
func (*AdminListUserAchievementsParams) WithTags ¶
func (o *AdminListUserAchievementsParams) WithTags(tags []string) *AdminListUserAchievementsParams
WithTags adds the tags to the admin list user achievements params
func (*AdminListUserAchievementsParams) WithTimeout ¶
func (o *AdminListUserAchievementsParams) WithTimeout(timeout time.Duration) *AdminListUserAchievementsParams
WithTimeout adds the timeout to the admin list user achievements params
func (*AdminListUserAchievementsParams) WithUserID ¶
func (o *AdminListUserAchievementsParams) WithUserID(userID string) *AdminListUserAchievementsParams
WithUserID adds the userID to the admin list user achievements params
func (*AdminListUserAchievementsParams) WriteToRequest ¶
func (o *AdminListUserAchievementsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type AdminListUserAchievementsReader ¶
type AdminListUserAchievementsReader struct {
// contains filtered or unexported fields
}
AdminListUserAchievementsReader is a Reader for the AdminListUserAchievements structure.
func (*AdminListUserAchievementsReader) ReadResponse ¶
func (o *AdminListUserAchievementsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type AdminListUserAchievementsUnauthorized ¶
type AdminListUserAchievementsUnauthorized struct {
}AdminListUserAchievementsUnauthorized handles this case with default header values.
Unauthorized
func NewAdminListUserAchievementsUnauthorized ¶
func NewAdminListUserAchievementsUnauthorized() *AdminListUserAchievementsUnauthorized
NewAdminListUserAchievementsUnauthorized creates a AdminListUserAchievementsUnauthorized with default headers values
func (*AdminListUserAchievementsUnauthorized) Error ¶
func (o *AdminListUserAchievementsUnauthorized) Error() string
func (*AdminListUserAchievementsUnauthorized) GetPayload ¶
func (o *AdminListUserAchievementsUnauthorized) GetPayload() *achievementclientmodels.ResponseError
func (*AdminListUserAchievementsUnauthorized) ToJSONString ¶
func (o *AdminListUserAchievementsUnauthorized) ToJSONString() string
type AdminResetAchievementBadRequest ¶
type AdminResetAchievementBadRequest struct {
Payload *achievementclientmodels.ResponseError
}
AdminResetAchievementBadRequest handles this case with default header values.
Bad Request
func NewAdminResetAchievementBadRequest ¶
func NewAdminResetAchievementBadRequest() *AdminResetAchievementBadRequest
NewAdminResetAchievementBadRequest creates a AdminResetAchievementBadRequest with default headers values
func (*AdminResetAchievementBadRequest) Error ¶
func (o *AdminResetAchievementBadRequest) Error() string
func (*AdminResetAchievementBadRequest) GetPayload ¶
func (o *AdminResetAchievementBadRequest) GetPayload() *achievementclientmodels.ResponseError
func (*AdminResetAchievementBadRequest) ToJSONString ¶
func (o *AdminResetAchievementBadRequest) ToJSONString() string
type AdminResetAchievementInternalServerError ¶
type AdminResetAchievementInternalServerError struct {
Payload *achievementclientmodels.ResponseError
}
AdminResetAchievementInternalServerError handles this case with default header values.
Internal Server Error
func NewAdminResetAchievementInternalServerError ¶
func NewAdminResetAchievementInternalServerError() *AdminResetAchievementInternalServerError
NewAdminResetAchievementInternalServerError creates a AdminResetAchievementInternalServerError with default headers values
func (*AdminResetAchievementInternalServerError) Error ¶
func (o *AdminResetAchievementInternalServerError) Error() string
func (*AdminResetAchievementInternalServerError) GetPayload ¶
func (o *AdminResetAchievementInternalServerError) GetPayload() *achievementclientmodels.ResponseError
func (*AdminResetAchievementInternalServerError) ToJSONString ¶
func (o *AdminResetAchievementInternalServerError) ToJSONString() string
type AdminResetAchievementNoContent ¶
type AdminResetAchievementNoContent struct { }
AdminResetAchievementNoContent handles this case with default header values.
No Content
func NewAdminResetAchievementNoContent ¶
func NewAdminResetAchievementNoContent() *AdminResetAchievementNoContent
NewAdminResetAchievementNoContent creates a AdminResetAchievementNoContent with default headers values
func (*AdminResetAchievementNoContent) Error ¶
func (o *AdminResetAchievementNoContent) Error() string
type AdminResetAchievementNotFound ¶
type AdminResetAchievementNotFound struct {
Payload *achievementclientmodels.ResponseError
}
AdminResetAchievementNotFound handles this case with default header values.
Not Found
func NewAdminResetAchievementNotFound ¶
func NewAdminResetAchievementNotFound() *AdminResetAchievementNotFound
NewAdminResetAchievementNotFound creates a AdminResetAchievementNotFound with default headers values
func (*AdminResetAchievementNotFound) Error ¶
func (o *AdminResetAchievementNotFound) Error() string
func (*AdminResetAchievementNotFound) GetPayload ¶
func (o *AdminResetAchievementNotFound) GetPayload() *achievementclientmodels.ResponseError
func (*AdminResetAchievementNotFound) ToJSONString ¶
func (o *AdminResetAchievementNotFound) ToJSONString() string
type AdminResetAchievementParams ¶
type AdminResetAchievementParams struct { /*RetryPolicy*/ RetryPolicy *utils.Retry /*AchievementCode achievement code */ AchievementCode string /*Namespace namespace of the game */ Namespace string /*UserID user id */ UserID string AuthInfoWriter runtime.ClientAuthInfoWriter Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
AdminResetAchievementParams contains all the parameters to send to the API endpoint for the admin reset achievement operation typically these are written to a http.Request
func NewAdminResetAchievementParams ¶
func NewAdminResetAchievementParams() *AdminResetAchievementParams
NewAdminResetAchievementParams creates a new AdminResetAchievementParams object with the default values initialized.
func NewAdminResetAchievementParamsWithContext ¶
func NewAdminResetAchievementParamsWithContext(ctx context.Context) *AdminResetAchievementParams
NewAdminResetAchievementParamsWithContext creates a new AdminResetAchievementParams object with the default values initialized, and the ability to set a context for a request
func NewAdminResetAchievementParamsWithHTTPClient ¶
func NewAdminResetAchievementParamsWithHTTPClient(client *http.Client) *AdminResetAchievementParams
NewAdminResetAchievementParamsWithHTTPClient creates a new AdminResetAchievementParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewAdminResetAchievementParamsWithTimeout ¶
func NewAdminResetAchievementParamsWithTimeout(timeout time.Duration) *AdminResetAchievementParams
NewAdminResetAchievementParamsWithTimeout creates a new AdminResetAchievementParams object with the default values initialized, and the ability to set a timeout on a request
func (*AdminResetAchievementParams) SetAchievementCode ¶
func (o *AdminResetAchievementParams) SetAchievementCode(achievementCode string)
SetAchievementCode adds the achievementCode to the admin reset achievement params
func (*AdminResetAchievementParams) SetAuthInfoWriter ¶
func (o *AdminResetAchievementParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
SetAuthInfoWriter adds the authInfoWriter to the admin reset achievement params
func (*AdminResetAchievementParams) SetContext ¶
func (o *AdminResetAchievementParams) SetContext(ctx context.Context)
SetContext adds the context to the admin reset achievement params
func (*AdminResetAchievementParams) SetHTTPClient ¶
func (o *AdminResetAchievementParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the admin reset achievement params
func (*AdminResetAchievementParams) SetHTTPClientTransport ¶
func (o *AdminResetAchievementParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
SetHTTPClient adds the HTTPClient Transport to the admin reset achievement params
func (*AdminResetAchievementParams) SetNamespace ¶
func (o *AdminResetAchievementParams) SetNamespace(namespace string)
SetNamespace adds the namespace to the admin reset achievement params
func (*AdminResetAchievementParams) SetTimeout ¶
func (o *AdminResetAchievementParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the admin reset achievement params
func (*AdminResetAchievementParams) SetUserID ¶
func (o *AdminResetAchievementParams) SetUserID(userID string)
SetUserID adds the userId to the admin reset achievement params
func (*AdminResetAchievementParams) WithAchievementCode ¶
func (o *AdminResetAchievementParams) WithAchievementCode(achievementCode string) *AdminResetAchievementParams
WithAchievementCode adds the achievementCode to the admin reset achievement params
func (*AdminResetAchievementParams) WithContext ¶
func (o *AdminResetAchievementParams) WithContext(ctx context.Context) *AdminResetAchievementParams
WithContext adds the context to the admin reset achievement params
func (*AdminResetAchievementParams) WithHTTPClient ¶
func (o *AdminResetAchievementParams) WithHTTPClient(client *http.Client) *AdminResetAchievementParams
WithHTTPClient adds the HTTPClient to the admin reset achievement params
func (*AdminResetAchievementParams) WithNamespace ¶
func (o *AdminResetAchievementParams) WithNamespace(namespace string) *AdminResetAchievementParams
WithNamespace adds the namespace to the admin reset achievement params
func (*AdminResetAchievementParams) WithTimeout ¶
func (o *AdminResetAchievementParams) WithTimeout(timeout time.Duration) *AdminResetAchievementParams
WithTimeout adds the timeout to the admin reset achievement params
func (*AdminResetAchievementParams) WithUserID ¶
func (o *AdminResetAchievementParams) WithUserID(userID string) *AdminResetAchievementParams
WithUserID adds the userID to the admin reset achievement params
func (*AdminResetAchievementParams) WriteToRequest ¶
func (o *AdminResetAchievementParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type AdminResetAchievementReader ¶
type AdminResetAchievementReader struct {
// contains filtered or unexported fields
}
AdminResetAchievementReader is a Reader for the AdminResetAchievement structure.
func (*AdminResetAchievementReader) ReadResponse ¶
func (o *AdminResetAchievementReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type AdminResetAchievementUnauthorized ¶
type AdminResetAchievementUnauthorized struct {
}AdminResetAchievementUnauthorized handles this case with default header values.
Unauthorized
func NewAdminResetAchievementUnauthorized ¶
func NewAdminResetAchievementUnauthorized() *AdminResetAchievementUnauthorized
NewAdminResetAchievementUnauthorized creates a AdminResetAchievementUnauthorized with default headers values
func (*AdminResetAchievementUnauthorized) Error ¶
func (o *AdminResetAchievementUnauthorized) Error() string
func (*AdminResetAchievementUnauthorized) GetPayload ¶
func (o *AdminResetAchievementUnauthorized) GetPayload() *achievementclientmodels.ResponseError
func (*AdminResetAchievementUnauthorized) ToJSONString ¶
func (o *AdminResetAchievementUnauthorized) ToJSONString() string
type AdminUnlockAchievementBadRequest ¶
type AdminUnlockAchievementBadRequest struct {
Payload *achievementclientmodels.ResponseError
}
AdminUnlockAchievementBadRequest handles this case with default header values.
Bad Request
func NewAdminUnlockAchievementBadRequest ¶
func NewAdminUnlockAchievementBadRequest() *AdminUnlockAchievementBadRequest
NewAdminUnlockAchievementBadRequest creates a AdminUnlockAchievementBadRequest with default headers values
func (*AdminUnlockAchievementBadRequest) Error ¶
func (o *AdminUnlockAchievementBadRequest) Error() string
func (*AdminUnlockAchievementBadRequest) GetPayload ¶
func (o *AdminUnlockAchievementBadRequest) GetPayload() *achievementclientmodels.ResponseError
func (*AdminUnlockAchievementBadRequest) ToJSONString ¶
func (o *AdminUnlockAchievementBadRequest) ToJSONString() string
type AdminUnlockAchievementInternalServerError ¶
type AdminUnlockAchievementInternalServerError struct {
Payload *achievementclientmodels.ResponseError
}
AdminUnlockAchievementInternalServerError handles this case with default header values.
Internal Server Error
func NewAdminUnlockAchievementInternalServerError ¶
func NewAdminUnlockAchievementInternalServerError() *AdminUnlockAchievementInternalServerError
NewAdminUnlockAchievementInternalServerError creates a AdminUnlockAchievementInternalServerError with default headers values
func (*AdminUnlockAchievementInternalServerError) Error ¶
func (o *AdminUnlockAchievementInternalServerError) Error() string
func (*AdminUnlockAchievementInternalServerError) GetPayload ¶
func (o *AdminUnlockAchievementInternalServerError) GetPayload() *achievementclientmodels.ResponseError
func (*AdminUnlockAchievementInternalServerError) ToJSONString ¶
func (o *AdminUnlockAchievementInternalServerError) ToJSONString() string
type AdminUnlockAchievementNoContent ¶
type AdminUnlockAchievementNoContent struct { }
AdminUnlockAchievementNoContent handles this case with default header values.
No Content
func NewAdminUnlockAchievementNoContent ¶
func NewAdminUnlockAchievementNoContent() *AdminUnlockAchievementNoContent
NewAdminUnlockAchievementNoContent creates a AdminUnlockAchievementNoContent with default headers values
func (*AdminUnlockAchievementNoContent) Error ¶
func (o *AdminUnlockAchievementNoContent) Error() string
type AdminUnlockAchievementParams ¶
type AdminUnlockAchievementParams struct { /*RetryPolicy*/ RetryPolicy *utils.Retry /*AchievementCode achievement code */ AchievementCode string /*Namespace namespace of the game */ Namespace string /*UserID user id */ UserID string AuthInfoWriter runtime.ClientAuthInfoWriter Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
AdminUnlockAchievementParams contains all the parameters to send to the API endpoint for the admin unlock achievement operation typically these are written to a http.Request
func NewAdminUnlockAchievementParams ¶
func NewAdminUnlockAchievementParams() *AdminUnlockAchievementParams
NewAdminUnlockAchievementParams creates a new AdminUnlockAchievementParams object with the default values initialized.
func NewAdminUnlockAchievementParamsWithContext ¶
func NewAdminUnlockAchievementParamsWithContext(ctx context.Context) *AdminUnlockAchievementParams
NewAdminUnlockAchievementParamsWithContext creates a new AdminUnlockAchievementParams object with the default values initialized, and the ability to set a context for a request
func NewAdminUnlockAchievementParamsWithHTTPClient ¶
func NewAdminUnlockAchievementParamsWithHTTPClient(client *http.Client) *AdminUnlockAchievementParams
NewAdminUnlockAchievementParamsWithHTTPClient creates a new AdminUnlockAchievementParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewAdminUnlockAchievementParamsWithTimeout ¶
func NewAdminUnlockAchievementParamsWithTimeout(timeout time.Duration) *AdminUnlockAchievementParams
NewAdminUnlockAchievementParamsWithTimeout creates a new AdminUnlockAchievementParams object with the default values initialized, and the ability to set a timeout on a request
func (*AdminUnlockAchievementParams) SetAchievementCode ¶
func (o *AdminUnlockAchievementParams) SetAchievementCode(achievementCode string)
SetAchievementCode adds the achievementCode to the admin unlock achievement params
func (*AdminUnlockAchievementParams) SetAuthInfoWriter ¶
func (o *AdminUnlockAchievementParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
SetAuthInfoWriter adds the authInfoWriter to the admin unlock achievement params
func (*AdminUnlockAchievementParams) SetContext ¶
func (o *AdminUnlockAchievementParams) SetContext(ctx context.Context)
SetContext adds the context to the admin unlock achievement params
func (*AdminUnlockAchievementParams) SetHTTPClient ¶
func (o *AdminUnlockAchievementParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the admin unlock achievement params
func (*AdminUnlockAchievementParams) SetHTTPClientTransport ¶
func (o *AdminUnlockAchievementParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
SetHTTPClient adds the HTTPClient Transport to the admin unlock achievement params
func (*AdminUnlockAchievementParams) SetNamespace ¶
func (o *AdminUnlockAchievementParams) SetNamespace(namespace string)
SetNamespace adds the namespace to the admin unlock achievement params
func (*AdminUnlockAchievementParams) SetTimeout ¶
func (o *AdminUnlockAchievementParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the admin unlock achievement params
func (*AdminUnlockAchievementParams) SetUserID ¶
func (o *AdminUnlockAchievementParams) SetUserID(userID string)
SetUserID adds the userId to the admin unlock achievement params
func (*AdminUnlockAchievementParams) WithAchievementCode ¶
func (o *AdminUnlockAchievementParams) WithAchievementCode(achievementCode string) *AdminUnlockAchievementParams
WithAchievementCode adds the achievementCode to the admin unlock achievement params
func (*AdminUnlockAchievementParams) WithContext ¶
func (o *AdminUnlockAchievementParams) WithContext(ctx context.Context) *AdminUnlockAchievementParams
WithContext adds the context to the admin unlock achievement params
func (*AdminUnlockAchievementParams) WithHTTPClient ¶
func (o *AdminUnlockAchievementParams) WithHTTPClient(client *http.Client) *AdminUnlockAchievementParams
WithHTTPClient adds the HTTPClient to the admin unlock achievement params
func (*AdminUnlockAchievementParams) WithNamespace ¶
func (o *AdminUnlockAchievementParams) WithNamespace(namespace string) *AdminUnlockAchievementParams
WithNamespace adds the namespace to the admin unlock achievement params
func (*AdminUnlockAchievementParams) WithTimeout ¶
func (o *AdminUnlockAchievementParams) WithTimeout(timeout time.Duration) *AdminUnlockAchievementParams
WithTimeout adds the timeout to the admin unlock achievement params
func (*AdminUnlockAchievementParams) WithUserID ¶
func (o *AdminUnlockAchievementParams) WithUserID(userID string) *AdminUnlockAchievementParams
WithUserID adds the userID to the admin unlock achievement params
func (*AdminUnlockAchievementParams) WriteToRequest ¶
func (o *AdminUnlockAchievementParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type AdminUnlockAchievementReader ¶
type AdminUnlockAchievementReader struct {
// contains filtered or unexported fields
}
AdminUnlockAchievementReader is a Reader for the AdminUnlockAchievement structure.
func (*AdminUnlockAchievementReader) ReadResponse ¶
func (o *AdminUnlockAchievementReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type AdminUnlockAchievementUnauthorized ¶
type AdminUnlockAchievementUnauthorized struct {
}AdminUnlockAchievementUnauthorized handles this case with default header values.
Unauthorized
func NewAdminUnlockAchievementUnauthorized ¶
func NewAdminUnlockAchievementUnauthorized() *AdminUnlockAchievementUnauthorized
NewAdminUnlockAchievementUnauthorized creates a AdminUnlockAchievementUnauthorized with default headers values
func (*AdminUnlockAchievementUnauthorized) Error ¶
func (o *AdminUnlockAchievementUnauthorized) Error() string
func (*AdminUnlockAchievementUnauthorized) GetPayload ¶
func (o *AdminUnlockAchievementUnauthorized) GetPayload() *achievementclientmodels.ResponseError
func (*AdminUnlockAchievementUnauthorized) ToJSONString ¶
func (o *AdminUnlockAchievementUnauthorized) ToJSONString() string
type AdminUnlockAchievementUnprocessableEntity ¶ added in v0.38.0
type AdminUnlockAchievementUnprocessableEntity struct {
Payload *achievementclientmodels.ResponseError
}
AdminUnlockAchievementUnprocessableEntity handles this case with default header values.
Unprocessable Entity
func NewAdminUnlockAchievementUnprocessableEntity ¶ added in v0.38.0
func NewAdminUnlockAchievementUnprocessableEntity() *AdminUnlockAchievementUnprocessableEntity
NewAdminUnlockAchievementUnprocessableEntity creates a AdminUnlockAchievementUnprocessableEntity with default headers values
func (*AdminUnlockAchievementUnprocessableEntity) Error ¶ added in v0.38.0
func (o *AdminUnlockAchievementUnprocessableEntity) Error() string
func (*AdminUnlockAchievementUnprocessableEntity) GetPayload ¶ added in v0.38.0
func (o *AdminUnlockAchievementUnprocessableEntity) GetPayload() *achievementclientmodels.ResponseError
func (*AdminUnlockAchievementUnprocessableEntity) ToJSONString ¶ added in v0.38.0
func (o *AdminUnlockAchievementUnprocessableEntity) ToJSONString() string
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for user achievements API
func (*Client) AdminListUserAchievements
deprecated
func (a *Client) AdminListUserAchievements(params *AdminListUserAchievementsParams, authInfo runtime.ClientAuthInfoWriter) (*AdminListUserAchievementsOK, *AdminListUserAchievementsBadRequest, *AdminListUserAchievementsUnauthorized, *AdminListUserAchievementsNotFound, *AdminListUserAchievementsInternalServerError, error)
Deprecated: 2022-08-10 - Use AdminListUserAchievementsShort instead.
AdminListUserAchievements query user achievements [include achieved and in-progress]
Required permission `ADMIN:NAMESPACE:{namespace}:USER:{userId}:ACHIEVEMENT [READ]` and scope `social`
Note:
User Achievement status value mean: `status = 1 (in progress)` and `status = 2 (unlocked)`
`achievedAt` value will return default value: `0001-01-01T00:00:00Z` for user achievement that locked or in progress
func (*Client) AdminListUserAchievementsShort ¶
func (a *Client) AdminListUserAchievementsShort(params *AdminListUserAchievementsParams, authInfo runtime.ClientAuthInfoWriter) (*AdminListUserAchievementsOK, error)
AdminListUserAchievementsShort query user achievements [include achieved and in-progress]
Required permission `ADMIN:NAMESPACE:{namespace}:USER:{userId}:ACHIEVEMENT [READ]` and scope `social`
Note:
User Achievement status value mean: `status = 1 (in progress)` and `status = 2 (unlocked)`
`achievedAt` value will return default value: `0001-01-01T00:00:00Z` for user achievement that locked or in progress
func (*Client) AdminResetAchievement
deprecated
func (a *Client) AdminResetAchievement(params *AdminResetAchievementParams, authInfo runtime.ClientAuthInfoWriter) (*AdminResetAchievementNoContent, *AdminResetAchievementBadRequest, *AdminResetAchievementUnauthorized, *AdminResetAchievementNotFound, *AdminResetAchievementInternalServerError, error)
Deprecated: 2022-08-10 - Use AdminResetAchievementShort instead.
AdminResetAchievement reset an achievement ¶
[TEST FACILITY ONLY]
Required permission `ADMIN:NAMESPACE:{namespace}:USER:{userId}:ACHIEVEMENT [DELETE]` and scope `social`
func (*Client) AdminResetAchievementShort ¶
func (a *Client) AdminResetAchievementShort(params *AdminResetAchievementParams, authInfo runtime.ClientAuthInfoWriter) (*AdminResetAchievementNoContent, error)
AdminResetAchievementShort reset an achievement
[TEST FACILITY ONLY]
Required permission `ADMIN:NAMESPACE:{namespace}:USER:{userId}:ACHIEVEMENT [DELETE]` and scope `social`
func (*Client) AdminUnlockAchievement
deprecated
func (a *Client) AdminUnlockAchievement(params *AdminUnlockAchievementParams, authInfo runtime.ClientAuthInfoWriter) (*AdminUnlockAchievementNoContent, *AdminUnlockAchievementBadRequest, *AdminUnlockAchievementUnauthorized, *AdminUnlockAchievementUnprocessableEntity, *AdminUnlockAchievementInternalServerError, error)
Deprecated: 2022-08-10 - Use AdminUnlockAchievementShort instead.
AdminUnlockAchievement unlock an achievement ¶
Required permission `ADMIN:NAMESPACE:{namespace}:USER:{userId}:ACHIEVEMENT [UPDATE]` and scope `social`
func (*Client) AdminUnlockAchievementShort ¶
func (a *Client) AdminUnlockAchievementShort(params *AdminUnlockAchievementParams, authInfo runtime.ClientAuthInfoWriter) (*AdminUnlockAchievementNoContent, error)
AdminUnlockAchievementShort unlock an achievement
Required permission `ADMIN:NAMESPACE:{namespace}:USER:{userId}:ACHIEVEMENT [UPDATE]` and scope `social`
func (*Client) PublicListUserAchievements
deprecated
func (a *Client) PublicListUserAchievements(params *PublicListUserAchievementsParams, authInfo runtime.ClientAuthInfoWriter) (*PublicListUserAchievementsOK, *PublicListUserAchievementsBadRequest, *PublicListUserAchievementsUnauthorized, *PublicListUserAchievementsNotFound, *PublicListUserAchievementsInternalServerError, error)
Deprecated: 2022-08-10 - Use PublicListUserAchievementsShort instead.
PublicListUserAchievements query user achievements [include achieved and in-progress]
Required permission `NAMESPACE:{namespace}:USER:{userId}:ACHIEVEMENT [READ]` and scope `social`
Note:
User Achievement status value mean: `status = 1 (in progress)` and `status = 2 (unlocked)`
`achievedAt` value will return default value: `0001-01-01T00:00:00Z` for user achievement that locked or in progress
func (*Client) PublicListUserAchievementsShort ¶
func (a *Client) PublicListUserAchievementsShort(params *PublicListUserAchievementsParams, authInfo runtime.ClientAuthInfoWriter) (*PublicListUserAchievementsOK, error)
PublicListUserAchievementsShort query user achievements [include achieved and in-progress]
Required permission `NAMESPACE:{namespace}:USER:{userId}:ACHIEVEMENT [READ]` and scope `social`
Note:
User Achievement status value mean: `status = 1 (in progress)` and `status = 2 (unlocked)`
`achievedAt` value will return default value: `0001-01-01T00:00:00Z` for user achievement that locked or in progress
func (*Client) PublicUnlockAchievement
deprecated
func (a *Client) PublicUnlockAchievement(params *PublicUnlockAchievementParams, authInfo runtime.ClientAuthInfoWriter) (*PublicUnlockAchievementNoContent, *PublicUnlockAchievementBadRequest, *PublicUnlockAchievementUnauthorized, *PublicUnlockAchievementUnprocessableEntity, *PublicUnlockAchievementInternalServerError, error)
Deprecated: 2022-08-10 - Use PublicUnlockAchievementShort instead.
PublicUnlockAchievement unlock an achievement ¶
Required permission `NAMESPACE:{namespace}:USER:{userId}:ACHIEVEMENT [UPDATE]` and scope `social`
func (*Client) PublicUnlockAchievementShort ¶
func (a *Client) PublicUnlockAchievementShort(params *PublicUnlockAchievementParams, authInfo runtime.ClientAuthInfoWriter) (*PublicUnlockAchievementNoContent, error)
PublicUnlockAchievementShort unlock an achievement
Required permission `NAMESPACE:{namespace}:USER:{userId}:ACHIEVEMENT [UPDATE]` and scope `social`
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientService ¶
type ClientService interface { AdminListUserAchievements(params *AdminListUserAchievementsParams, authInfo runtime.ClientAuthInfoWriter) (*AdminListUserAchievementsOK, *AdminListUserAchievementsBadRequest, *AdminListUserAchievementsUnauthorized, *AdminListUserAchievementsNotFound, *AdminListUserAchievementsInternalServerError, error) AdminListUserAchievementsShort(params *AdminListUserAchievementsParams, authInfo runtime.ClientAuthInfoWriter) (*AdminListUserAchievementsOK, error) AdminResetAchievement(params *AdminResetAchievementParams, authInfo runtime.ClientAuthInfoWriter) (*AdminResetAchievementNoContent, *AdminResetAchievementBadRequest, *AdminResetAchievementUnauthorized, *AdminResetAchievementNotFound, *AdminResetAchievementInternalServerError, error) AdminResetAchievementShort(params *AdminResetAchievementParams, authInfo runtime.ClientAuthInfoWriter) (*AdminResetAchievementNoContent, error) AdminUnlockAchievement(params *AdminUnlockAchievementParams, authInfo runtime.ClientAuthInfoWriter) (*AdminUnlockAchievementNoContent, *AdminUnlockAchievementBadRequest, *AdminUnlockAchievementUnauthorized, *AdminUnlockAchievementUnprocessableEntity, *AdminUnlockAchievementInternalServerError, error) AdminUnlockAchievementShort(params *AdminUnlockAchievementParams, authInfo runtime.ClientAuthInfoWriter) (*AdminUnlockAchievementNoContent, error) PublicListUserAchievements(params *PublicListUserAchievementsParams, authInfo runtime.ClientAuthInfoWriter) (*PublicListUserAchievementsOK, *PublicListUserAchievementsBadRequest, *PublicListUserAchievementsUnauthorized, *PublicListUserAchievementsNotFound, *PublicListUserAchievementsInternalServerError, error) PublicListUserAchievementsShort(params *PublicListUserAchievementsParams, authInfo runtime.ClientAuthInfoWriter) (*PublicListUserAchievementsOK, error) PublicUnlockAchievement(params *PublicUnlockAchievementParams, authInfo runtime.ClientAuthInfoWriter) (*PublicUnlockAchievementNoContent, *PublicUnlockAchievementBadRequest, *PublicUnlockAchievementUnauthorized, *PublicUnlockAchievementUnprocessableEntity, *PublicUnlockAchievementInternalServerError, error) PublicUnlockAchievementShort(params *PublicUnlockAchievementParams, authInfo runtime.ClientAuthInfoWriter) (*PublicUnlockAchievementNoContent, 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 user achievements API client.
type PublicListUserAchievementsBadRequest ¶
type PublicListUserAchievementsBadRequest struct {
Payload *achievementclientmodels.ResponseError
}
PublicListUserAchievementsBadRequest handles this case with default header values.
Bad Request
func NewPublicListUserAchievementsBadRequest ¶
func NewPublicListUserAchievementsBadRequest() *PublicListUserAchievementsBadRequest
NewPublicListUserAchievementsBadRequest creates a PublicListUserAchievementsBadRequest with default headers values
func (*PublicListUserAchievementsBadRequest) Error ¶
func (o *PublicListUserAchievementsBadRequest) Error() string
func (*PublicListUserAchievementsBadRequest) GetPayload ¶
func (o *PublicListUserAchievementsBadRequest) GetPayload() *achievementclientmodels.ResponseError
func (*PublicListUserAchievementsBadRequest) ToJSONString ¶
func (o *PublicListUserAchievementsBadRequest) ToJSONString() string
type PublicListUserAchievementsInternalServerError ¶
type PublicListUserAchievementsInternalServerError struct {
Payload *achievementclientmodels.ResponseError
}
PublicListUserAchievementsInternalServerError handles this case with default header values.
Internal Server Error
func NewPublicListUserAchievementsInternalServerError ¶
func NewPublicListUserAchievementsInternalServerError() *PublicListUserAchievementsInternalServerError
NewPublicListUserAchievementsInternalServerError creates a PublicListUserAchievementsInternalServerError with default headers values
func (*PublicListUserAchievementsInternalServerError) Error ¶
func (o *PublicListUserAchievementsInternalServerError) Error() string
func (*PublicListUserAchievementsInternalServerError) GetPayload ¶
func (o *PublicListUserAchievementsInternalServerError) GetPayload() *achievementclientmodels.ResponseError
func (*PublicListUserAchievementsInternalServerError) ToJSONString ¶
func (o *PublicListUserAchievementsInternalServerError) ToJSONString() string
type PublicListUserAchievementsNotFound ¶
type PublicListUserAchievementsNotFound struct {
Payload *achievementclientmodels.ResponseError
}
PublicListUserAchievementsNotFound handles this case with default header values.
Not Found
func NewPublicListUserAchievementsNotFound ¶
func NewPublicListUserAchievementsNotFound() *PublicListUserAchievementsNotFound
NewPublicListUserAchievementsNotFound creates a PublicListUserAchievementsNotFound with default headers values
func (*PublicListUserAchievementsNotFound) Error ¶
func (o *PublicListUserAchievementsNotFound) Error() string
func (*PublicListUserAchievementsNotFound) GetPayload ¶
func (o *PublicListUserAchievementsNotFound) GetPayload() *achievementclientmodels.ResponseError
func (*PublicListUserAchievementsNotFound) ToJSONString ¶
func (o *PublicListUserAchievementsNotFound) ToJSONString() string
type PublicListUserAchievementsOK ¶
type PublicListUserAchievementsOK struct {
Payload *achievementclientmodels.ModelsPaginatedUserAchievementResponse
}
PublicListUserAchievementsOK handles this case with default header values.
OK
func NewPublicListUserAchievementsOK ¶
func NewPublicListUserAchievementsOK() *PublicListUserAchievementsOK
NewPublicListUserAchievementsOK creates a PublicListUserAchievementsOK with default headers values
func (*PublicListUserAchievementsOK) Error ¶
func (o *PublicListUserAchievementsOK) Error() string
func (*PublicListUserAchievementsOK) GetPayload ¶
func (o *PublicListUserAchievementsOK) GetPayload() *achievementclientmodels.ModelsPaginatedUserAchievementResponse
func (*PublicListUserAchievementsOK) ToJSONString ¶
func (o *PublicListUserAchievementsOK) ToJSONString() string
type PublicListUserAchievementsParams ¶
type PublicListUserAchievementsParams struct { /*RetryPolicy*/ RetryPolicy *utils.Retry /*Namespace namespace of the game */ Namespace string /*UserID user id */ UserID string /*Limit the maximum number of data that may be returned (1...100) */ Limit *int64 /*Offset offset */ Offset *int64 /*PreferUnlocked prefer to query achieved */ PreferUnlocked *bool /*SortBy sort by, allow values: [achievedAt, achievedAt:asc, achievedAt:desc, createdAt, createdAt:asc, createdAt:desc] */ SortBy *string /*Tags tags */ Tags []string AuthInfoWriter runtime.ClientAuthInfoWriter Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
PublicListUserAchievementsParams contains all the parameters to send to the API endpoint for the public list user achievements operation typically these are written to a http.Request
func NewPublicListUserAchievementsParams ¶
func NewPublicListUserAchievementsParams() *PublicListUserAchievementsParams
NewPublicListUserAchievementsParams creates a new PublicListUserAchievementsParams object with the default values initialized.
func NewPublicListUserAchievementsParamsWithContext ¶
func NewPublicListUserAchievementsParamsWithContext(ctx context.Context) *PublicListUserAchievementsParams
NewPublicListUserAchievementsParamsWithContext creates a new PublicListUserAchievementsParams object with the default values initialized, and the ability to set a context for a request
func NewPublicListUserAchievementsParamsWithHTTPClient ¶
func NewPublicListUserAchievementsParamsWithHTTPClient(client *http.Client) *PublicListUserAchievementsParams
NewPublicListUserAchievementsParamsWithHTTPClient creates a new PublicListUserAchievementsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewPublicListUserAchievementsParamsWithTimeout ¶
func NewPublicListUserAchievementsParamsWithTimeout(timeout time.Duration) *PublicListUserAchievementsParams
NewPublicListUserAchievementsParamsWithTimeout creates a new PublicListUserAchievementsParams object with the default values initialized, and the ability to set a timeout on a request
func (*PublicListUserAchievementsParams) SetAuthInfoWriter ¶
func (o *PublicListUserAchievementsParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
SetAuthInfoWriter adds the authInfoWriter to the public list user achievements params
func (*PublicListUserAchievementsParams) SetContext ¶
func (o *PublicListUserAchievementsParams) SetContext(ctx context.Context)
SetContext adds the context to the public list user achievements params
func (*PublicListUserAchievementsParams) SetHTTPClient ¶
func (o *PublicListUserAchievementsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the public list user achievements params
func (*PublicListUserAchievementsParams) SetHTTPClientTransport ¶
func (o *PublicListUserAchievementsParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
SetHTTPClient adds the HTTPClient Transport to the public list user achievements params
func (*PublicListUserAchievementsParams) SetLimit ¶
func (o *PublicListUserAchievementsParams) SetLimit(limit *int64)
SetLimit adds the limit to the public list user achievements params
func (*PublicListUserAchievementsParams) SetNamespace ¶
func (o *PublicListUserAchievementsParams) SetNamespace(namespace string)
SetNamespace adds the namespace to the public list user achievements params
func (*PublicListUserAchievementsParams) SetOffset ¶
func (o *PublicListUserAchievementsParams) SetOffset(offset *int64)
SetOffset adds the offset to the public list user achievements params
func (*PublicListUserAchievementsParams) SetPreferUnlocked ¶
func (o *PublicListUserAchievementsParams) SetPreferUnlocked(preferUnlocked *bool)
SetPreferUnlocked adds the preferUnlocked to the public list user achievements params
func (*PublicListUserAchievementsParams) SetSortBy ¶ added in v0.35.0
func (o *PublicListUserAchievementsParams) SetSortBy(sortBy *string)
SetSortBy adds the sortBy to the public list user achievements params
func (*PublicListUserAchievementsParams) SetTags ¶
func (o *PublicListUserAchievementsParams) SetTags(tags []string)
SetTags adds the tags to the public list user achievements params
func (*PublicListUserAchievementsParams) SetTimeout ¶
func (o *PublicListUserAchievementsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the public list user achievements params
func (*PublicListUserAchievementsParams) SetUserID ¶
func (o *PublicListUserAchievementsParams) SetUserID(userID string)
SetUserID adds the userId to the public list user achievements params
func (*PublicListUserAchievementsParams) WithContext ¶
func (o *PublicListUserAchievementsParams) WithContext(ctx context.Context) *PublicListUserAchievementsParams
WithContext adds the context to the public list user achievements params
func (*PublicListUserAchievementsParams) WithHTTPClient ¶
func (o *PublicListUserAchievementsParams) WithHTTPClient(client *http.Client) *PublicListUserAchievementsParams
WithHTTPClient adds the HTTPClient to the public list user achievements params
func (*PublicListUserAchievementsParams) WithLimit ¶
func (o *PublicListUserAchievementsParams) WithLimit(limit *int64) *PublicListUserAchievementsParams
WithLimit adds the limit to the public list user achievements params
func (*PublicListUserAchievementsParams) WithNamespace ¶
func (o *PublicListUserAchievementsParams) WithNamespace(namespace string) *PublicListUserAchievementsParams
WithNamespace adds the namespace to the public list user achievements params
func (*PublicListUserAchievementsParams) WithOffset ¶
func (o *PublicListUserAchievementsParams) WithOffset(offset *int64) *PublicListUserAchievementsParams
WithOffset adds the offset to the public list user achievements params
func (*PublicListUserAchievementsParams) WithPreferUnlocked ¶
func (o *PublicListUserAchievementsParams) WithPreferUnlocked(preferUnlocked *bool) *PublicListUserAchievementsParams
WithPreferUnlocked adds the preferUnlocked to the public list user achievements params
func (*PublicListUserAchievementsParams) WithSortBy ¶ added in v0.35.0
func (o *PublicListUserAchievementsParams) WithSortBy(sortBy *string) *PublicListUserAchievementsParams
WithSortBy adds the sortBy to the public list user achievements params
func (*PublicListUserAchievementsParams) WithTags ¶
func (o *PublicListUserAchievementsParams) WithTags(tags []string) *PublicListUserAchievementsParams
WithTags adds the tags to the public list user achievements params
func (*PublicListUserAchievementsParams) WithTimeout ¶
func (o *PublicListUserAchievementsParams) WithTimeout(timeout time.Duration) *PublicListUserAchievementsParams
WithTimeout adds the timeout to the public list user achievements params
func (*PublicListUserAchievementsParams) WithUserID ¶
func (o *PublicListUserAchievementsParams) WithUserID(userID string) *PublicListUserAchievementsParams
WithUserID adds the userID to the public list user achievements params
func (*PublicListUserAchievementsParams) WriteToRequest ¶
func (o *PublicListUserAchievementsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type PublicListUserAchievementsReader ¶
type PublicListUserAchievementsReader struct {
// contains filtered or unexported fields
}
PublicListUserAchievementsReader is a Reader for the PublicListUserAchievements structure.
func (*PublicListUserAchievementsReader) ReadResponse ¶
func (o *PublicListUserAchievementsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type PublicListUserAchievementsUnauthorized ¶
type PublicListUserAchievementsUnauthorized struct {
}PublicListUserAchievementsUnauthorized handles this case with default header values.
Unauthorized
func NewPublicListUserAchievementsUnauthorized ¶
func NewPublicListUserAchievementsUnauthorized() *PublicListUserAchievementsUnauthorized
NewPublicListUserAchievementsUnauthorized creates a PublicListUserAchievementsUnauthorized with default headers values
func (*PublicListUserAchievementsUnauthorized) Error ¶
func (o *PublicListUserAchievementsUnauthorized) Error() string
func (*PublicListUserAchievementsUnauthorized) GetPayload ¶
func (o *PublicListUserAchievementsUnauthorized) GetPayload() *achievementclientmodels.ResponseError
func (*PublicListUserAchievementsUnauthorized) ToJSONString ¶
func (o *PublicListUserAchievementsUnauthorized) ToJSONString() string
type PublicUnlockAchievementBadRequest ¶
type PublicUnlockAchievementBadRequest struct {
Payload *achievementclientmodels.ResponseError
}
PublicUnlockAchievementBadRequest handles this case with default header values.
Bad Request
func NewPublicUnlockAchievementBadRequest ¶
func NewPublicUnlockAchievementBadRequest() *PublicUnlockAchievementBadRequest
NewPublicUnlockAchievementBadRequest creates a PublicUnlockAchievementBadRequest with default headers values
func (*PublicUnlockAchievementBadRequest) Error ¶
func (o *PublicUnlockAchievementBadRequest) Error() string
func (*PublicUnlockAchievementBadRequest) GetPayload ¶
func (o *PublicUnlockAchievementBadRequest) GetPayload() *achievementclientmodels.ResponseError
func (*PublicUnlockAchievementBadRequest) ToJSONString ¶
func (o *PublicUnlockAchievementBadRequest) ToJSONString() string
type PublicUnlockAchievementInternalServerError ¶
type PublicUnlockAchievementInternalServerError struct {
Payload *achievementclientmodels.ResponseError
}
PublicUnlockAchievementInternalServerError handles this case with default header values.
Internal Server Error
func NewPublicUnlockAchievementInternalServerError ¶
func NewPublicUnlockAchievementInternalServerError() *PublicUnlockAchievementInternalServerError
NewPublicUnlockAchievementInternalServerError creates a PublicUnlockAchievementInternalServerError with default headers values
func (*PublicUnlockAchievementInternalServerError) Error ¶
func (o *PublicUnlockAchievementInternalServerError) Error() string
func (*PublicUnlockAchievementInternalServerError) GetPayload ¶
func (o *PublicUnlockAchievementInternalServerError) GetPayload() *achievementclientmodels.ResponseError
func (*PublicUnlockAchievementInternalServerError) ToJSONString ¶
func (o *PublicUnlockAchievementInternalServerError) ToJSONString() string
type PublicUnlockAchievementNoContent ¶
type PublicUnlockAchievementNoContent struct { }
PublicUnlockAchievementNoContent handles this case with default header values.
No Content
func NewPublicUnlockAchievementNoContent ¶
func NewPublicUnlockAchievementNoContent() *PublicUnlockAchievementNoContent
NewPublicUnlockAchievementNoContent creates a PublicUnlockAchievementNoContent with default headers values
func (*PublicUnlockAchievementNoContent) Error ¶
func (o *PublicUnlockAchievementNoContent) Error() string
type PublicUnlockAchievementParams ¶
type PublicUnlockAchievementParams struct { /*RetryPolicy*/ RetryPolicy *utils.Retry /*AchievementCode achievement code */ AchievementCode string /*Namespace namespace of the game */ Namespace string /*UserID user id */ UserID string AuthInfoWriter runtime.ClientAuthInfoWriter Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
PublicUnlockAchievementParams contains all the parameters to send to the API endpoint for the public unlock achievement operation typically these are written to a http.Request
func NewPublicUnlockAchievementParams ¶
func NewPublicUnlockAchievementParams() *PublicUnlockAchievementParams
NewPublicUnlockAchievementParams creates a new PublicUnlockAchievementParams object with the default values initialized.
func NewPublicUnlockAchievementParamsWithContext ¶
func NewPublicUnlockAchievementParamsWithContext(ctx context.Context) *PublicUnlockAchievementParams
NewPublicUnlockAchievementParamsWithContext creates a new PublicUnlockAchievementParams object with the default values initialized, and the ability to set a context for a request
func NewPublicUnlockAchievementParamsWithHTTPClient ¶
func NewPublicUnlockAchievementParamsWithHTTPClient(client *http.Client) *PublicUnlockAchievementParams
NewPublicUnlockAchievementParamsWithHTTPClient creates a new PublicUnlockAchievementParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewPublicUnlockAchievementParamsWithTimeout ¶
func NewPublicUnlockAchievementParamsWithTimeout(timeout time.Duration) *PublicUnlockAchievementParams
NewPublicUnlockAchievementParamsWithTimeout creates a new PublicUnlockAchievementParams object with the default values initialized, and the ability to set a timeout on a request
func (*PublicUnlockAchievementParams) SetAchievementCode ¶
func (o *PublicUnlockAchievementParams) SetAchievementCode(achievementCode string)
SetAchievementCode adds the achievementCode to the public unlock achievement params
func (*PublicUnlockAchievementParams) SetAuthInfoWriter ¶
func (o *PublicUnlockAchievementParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
SetAuthInfoWriter adds the authInfoWriter to the public unlock achievement params
func (*PublicUnlockAchievementParams) SetContext ¶
func (o *PublicUnlockAchievementParams) SetContext(ctx context.Context)
SetContext adds the context to the public unlock achievement params
func (*PublicUnlockAchievementParams) SetHTTPClient ¶
func (o *PublicUnlockAchievementParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the public unlock achievement params
func (*PublicUnlockAchievementParams) SetHTTPClientTransport ¶
func (o *PublicUnlockAchievementParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
SetHTTPClient adds the HTTPClient Transport to the public unlock achievement params
func (*PublicUnlockAchievementParams) SetNamespace ¶
func (o *PublicUnlockAchievementParams) SetNamespace(namespace string)
SetNamespace adds the namespace to the public unlock achievement params
func (*PublicUnlockAchievementParams) SetTimeout ¶
func (o *PublicUnlockAchievementParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the public unlock achievement params
func (*PublicUnlockAchievementParams) SetUserID ¶
func (o *PublicUnlockAchievementParams) SetUserID(userID string)
SetUserID adds the userId to the public unlock achievement params
func (*PublicUnlockAchievementParams) WithAchievementCode ¶
func (o *PublicUnlockAchievementParams) WithAchievementCode(achievementCode string) *PublicUnlockAchievementParams
WithAchievementCode adds the achievementCode to the public unlock achievement params
func (*PublicUnlockAchievementParams) WithContext ¶
func (o *PublicUnlockAchievementParams) WithContext(ctx context.Context) *PublicUnlockAchievementParams
WithContext adds the context to the public unlock achievement params
func (*PublicUnlockAchievementParams) WithHTTPClient ¶
func (o *PublicUnlockAchievementParams) WithHTTPClient(client *http.Client) *PublicUnlockAchievementParams
WithHTTPClient adds the HTTPClient to the public unlock achievement params
func (*PublicUnlockAchievementParams) WithNamespace ¶
func (o *PublicUnlockAchievementParams) WithNamespace(namespace string) *PublicUnlockAchievementParams
WithNamespace adds the namespace to the public unlock achievement params
func (*PublicUnlockAchievementParams) WithTimeout ¶
func (o *PublicUnlockAchievementParams) WithTimeout(timeout time.Duration) *PublicUnlockAchievementParams
WithTimeout adds the timeout to the public unlock achievement params
func (*PublicUnlockAchievementParams) WithUserID ¶
func (o *PublicUnlockAchievementParams) WithUserID(userID string) *PublicUnlockAchievementParams
WithUserID adds the userID to the public unlock achievement params
func (*PublicUnlockAchievementParams) WriteToRequest ¶
func (o *PublicUnlockAchievementParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type PublicUnlockAchievementReader ¶
type PublicUnlockAchievementReader struct {
// contains filtered or unexported fields
}
PublicUnlockAchievementReader is a Reader for the PublicUnlockAchievement structure.
func (*PublicUnlockAchievementReader) ReadResponse ¶
func (o *PublicUnlockAchievementReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type PublicUnlockAchievementUnauthorized ¶
type PublicUnlockAchievementUnauthorized struct {
}PublicUnlockAchievementUnauthorized handles this case with default header values.
Unauthorized
func NewPublicUnlockAchievementUnauthorized ¶
func NewPublicUnlockAchievementUnauthorized() *PublicUnlockAchievementUnauthorized
NewPublicUnlockAchievementUnauthorized creates a PublicUnlockAchievementUnauthorized with default headers values
func (*PublicUnlockAchievementUnauthorized) Error ¶
func (o *PublicUnlockAchievementUnauthorized) Error() string
func (*PublicUnlockAchievementUnauthorized) GetPayload ¶
func (o *PublicUnlockAchievementUnauthorized) GetPayload() *achievementclientmodels.ResponseError
func (*PublicUnlockAchievementUnauthorized) ToJSONString ¶
func (o *PublicUnlockAchievementUnauthorized) ToJSONString() string
type PublicUnlockAchievementUnprocessableEntity ¶ added in v0.38.0
type PublicUnlockAchievementUnprocessableEntity struct {
Payload *achievementclientmodels.ResponseError
}
PublicUnlockAchievementUnprocessableEntity handles this case with default header values.
Unprocessable Entity
func NewPublicUnlockAchievementUnprocessableEntity ¶ added in v0.38.0
func NewPublicUnlockAchievementUnprocessableEntity() *PublicUnlockAchievementUnprocessableEntity
NewPublicUnlockAchievementUnprocessableEntity creates a PublicUnlockAchievementUnprocessableEntity with default headers values
func (*PublicUnlockAchievementUnprocessableEntity) Error ¶ added in v0.38.0
func (o *PublicUnlockAchievementUnprocessableEntity) Error() string
func (*PublicUnlockAchievementUnprocessableEntity) GetPayload ¶ added in v0.38.0
func (o *PublicUnlockAchievementUnprocessableEntity) GetPayload() *achievementclientmodels.ResponseError
func (*PublicUnlockAchievementUnprocessableEntity) ToJSONString ¶ added in v0.38.0
func (o *PublicUnlockAchievementUnprocessableEntity) ToJSONString() string
Source Files ¶
- admin_list_user_achievements_parameters.go
- admin_list_user_achievements_responses.go
- admin_reset_achievement_parameters.go
- admin_reset_achievement_responses.go
- admin_unlock_achievement_parameters.go
- admin_unlock_achievement_responses.go
- public_list_user_achievements_parameters.go
- public_list_user_achievements_responses.go
- public_unlock_achievement_parameters.go
- public_unlock_achievement_responses.go
- user_achievements_client.go