Documentation
¶
Index ¶
- Constants
- type Client
- func (a *Client) PublicGetChallenges(params *PublicGetChallengesParams, authInfo runtime.ClientAuthInfoWriter) (*PublicGetChallengesOK, *PublicGetChallengesBadRequest, ...)deprecated
- func (a *Client) PublicGetChallengesShort(params *PublicGetChallengesParams, authInfo runtime.ClientAuthInfoWriter) (*PublicGetChallengesOK, error)
- func (a *Client) PublicGetScheduledGoals(params *PublicGetScheduledGoalsParams, authInfo runtime.ClientAuthInfoWriter) (*PublicGetScheduledGoalsOK, *PublicGetScheduledGoalsUnauthorized, ...)deprecated
- func (a *Client) PublicGetScheduledGoalsShort(params *PublicGetScheduledGoalsParams, authInfo runtime.ClientAuthInfoWriter) (*PublicGetScheduledGoalsOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientService
- type PublicGetChallengesBadRequest
- type PublicGetChallengesForbidden
- type PublicGetChallengesInternalServerError
- type PublicGetChallengesOK
- type PublicGetChallengesParams
- func NewPublicGetChallengesParams() *PublicGetChallengesParams
- func NewPublicGetChallengesParamsWithContext(ctx context.Context) *PublicGetChallengesParams
- func NewPublicGetChallengesParamsWithHTTPClient(client *http.Client) *PublicGetChallengesParams
- func NewPublicGetChallengesParamsWithTimeout(timeout time.Duration) *PublicGetChallengesParams
- func (o *PublicGetChallengesParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
- func (o *PublicGetChallengesParams) SetContext(ctx context.Context)
- func (o *PublicGetChallengesParams) SetFlightId(flightId string)
- func (o *PublicGetChallengesParams) SetHTTPClient(client *http.Client)
- func (o *PublicGetChallengesParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
- func (o *PublicGetChallengesParams) SetKeyword(keyword *string)
- func (o *PublicGetChallengesParams) SetLimit(limit *int64)
- func (o *PublicGetChallengesParams) SetNamespace(namespace string)
- func (o *PublicGetChallengesParams) SetOffset(offset *int64)
- func (o *PublicGetChallengesParams) SetSortBy(sortBy *string)
- func (o *PublicGetChallengesParams) SetStatus(status *string)
- func (o *PublicGetChallengesParams) SetTags(tags []string)
- func (o *PublicGetChallengesParams) SetTimeout(timeout time.Duration)
- func (o *PublicGetChallengesParams) WithContext(ctx context.Context) *PublicGetChallengesParams
- func (o *PublicGetChallengesParams) WithHTTPClient(client *http.Client) *PublicGetChallengesParams
- func (o *PublicGetChallengesParams) WithKeyword(keyword *string) *PublicGetChallengesParams
- func (o *PublicGetChallengesParams) WithLimit(limit *int64) *PublicGetChallengesParams
- func (o *PublicGetChallengesParams) WithNamespace(namespace string) *PublicGetChallengesParams
- func (o *PublicGetChallengesParams) WithOffset(offset *int64) *PublicGetChallengesParams
- func (o *PublicGetChallengesParams) WithSortBy(sortBy *string) *PublicGetChallengesParams
- func (o *PublicGetChallengesParams) WithStatus(status *string) *PublicGetChallengesParams
- func (o *PublicGetChallengesParams) WithTags(tags []string) *PublicGetChallengesParams
- func (o *PublicGetChallengesParams) WithTimeout(timeout time.Duration) *PublicGetChallengesParams
- func (o *PublicGetChallengesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PublicGetChallengesReader
- type PublicGetChallengesUnauthorized
- type PublicGetScheduledGoalsForbidden
- type PublicGetScheduledGoalsInternalServerError
- type PublicGetScheduledGoalsNotFound
- type PublicGetScheduledGoalsOK
- type PublicGetScheduledGoalsParams
- func NewPublicGetScheduledGoalsParams() *PublicGetScheduledGoalsParams
- func NewPublicGetScheduledGoalsParamsWithContext(ctx context.Context) *PublicGetScheduledGoalsParams
- func NewPublicGetScheduledGoalsParamsWithHTTPClient(client *http.Client) *PublicGetScheduledGoalsParams
- func NewPublicGetScheduledGoalsParamsWithTimeout(timeout time.Duration) *PublicGetScheduledGoalsParams
- func (o *PublicGetScheduledGoalsParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
- func (o *PublicGetScheduledGoalsParams) SetChallengeCode(challengeCode string)
- func (o *PublicGetScheduledGoalsParams) SetContext(ctx context.Context)
- func (o *PublicGetScheduledGoalsParams) SetFlightId(flightId string)
- func (o *PublicGetScheduledGoalsParams) SetHTTPClient(client *http.Client)
- func (o *PublicGetScheduledGoalsParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
- func (o *PublicGetScheduledGoalsParams) SetLimit(limit *int64)
- func (o *PublicGetScheduledGoalsParams) SetNamespace(namespace string)
- func (o *PublicGetScheduledGoalsParams) SetOffset(offset *int64)
- func (o *PublicGetScheduledGoalsParams) SetSortBy(sortBy *string)
- func (o *PublicGetScheduledGoalsParams) SetTags(tags []string)
- func (o *PublicGetScheduledGoalsParams) SetTimeout(timeout time.Duration)
- func (o *PublicGetScheduledGoalsParams) WithChallengeCode(challengeCode string) *PublicGetScheduledGoalsParams
- func (o *PublicGetScheduledGoalsParams) WithContext(ctx context.Context) *PublicGetScheduledGoalsParams
- func (o *PublicGetScheduledGoalsParams) WithHTTPClient(client *http.Client) *PublicGetScheduledGoalsParams
- func (o *PublicGetScheduledGoalsParams) WithLimit(limit *int64) *PublicGetScheduledGoalsParams
- func (o *PublicGetScheduledGoalsParams) WithNamespace(namespace string) *PublicGetScheduledGoalsParams
- func (o *PublicGetScheduledGoalsParams) WithOffset(offset *int64) *PublicGetScheduledGoalsParams
- func (o *PublicGetScheduledGoalsParams) WithSortBy(sortBy *string) *PublicGetScheduledGoalsParams
- func (o *PublicGetScheduledGoalsParams) WithTags(tags []string) *PublicGetScheduledGoalsParams
- func (o *PublicGetScheduledGoalsParams) WithTimeout(timeout time.Duration) *PublicGetScheduledGoalsParams
- func (o *PublicGetScheduledGoalsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PublicGetScheduledGoalsReader
- type PublicGetScheduledGoalsUnauthorized
Constants ¶
const ( PublicGetChallengesCodeAscConstant = "code:asc" PublicGetChallengesCodeDescConstant = "code:desc" PublicGetChallengesCreatedAtConstant = "createdAt" PublicGetChallengesCreatedAtAscConstant = "createdAt:asc" PublicGetChallengesCreatedAtDescConstant = "createdAt:desc" PublicGetChallengesNameAscConstant = "name:asc" PublicGetChallengesNameDescConstant = "name:desc" PublicGetChallengesUpdatedAtConstant = "updatedAt" PublicGetChallengesUpdatedAtAscConstant = "updatedAt:asc" PublicGetChallengesUpdatedAtDescConstant = "updatedAt:desc" )
Deprecated: 2025-07-16 - Use PublicGetChallengesSortBy<EnumValue>Constant instead. Get the enum in PublicGetChallengesParams
const ( PublicGetChallengesINITConstant = "INIT" PublicGetChallengesRETIREDConstant = "RETIRED" PublicGetChallengesTIEDConstant = "TIED" )
Deprecated: 2025-07-16 - Use PublicGetChallengesStatus<EnumValue>Constant instead. Get the enum in PublicGetChallengesParams
const ( PublicGetChallengesSortByCodeAscConstant = "code:asc" PublicGetChallengesSortByCodeDescConstant = "code:desc" PublicGetChallengesSortByCreatedAtConstant = "createdAt" PublicGetChallengesSortByCreatedAtAscConstant = "createdAt:asc" PublicGetChallengesSortByCreatedAtDescConstant = "createdAt:desc" PublicGetChallengesSortByNameAscConstant = "name:asc" PublicGetChallengesSortByNameDescConstant = "name:desc" PublicGetChallengesSortByUpdatedAtConstant = "updatedAt" PublicGetChallengesSortByUpdatedAtAscConstant = "updatedAt:asc" PublicGetChallengesSortByUpdatedAtDescConstant = "updatedAt:desc" )
Get the enum in PublicGetChallengesParams
const ( PublicGetChallengesStatusINITConstant = "INIT" PublicGetChallengesStatusRETIREDConstant = "RETIRED" PublicGetChallengesStatusTIEDConstant = "TIED" )
Get the enum in PublicGetChallengesParams
const ( PublicGetScheduledGoalsCreatedAtConstant = "createdAt" PublicGetScheduledGoalsCreatedAtAscConstant = "createdAt:asc" PublicGetScheduledGoalsCreatedAtDescConstant = "createdAt:desc" PublicGetScheduledGoalsUpdatedAtConstant = "updatedAt" PublicGetScheduledGoalsUpdatedAtAscConstant = "updatedAt:asc" PublicGetScheduledGoalsUpdatedAtDescConstant = "updatedAt:desc" )
Deprecated: 2025-07-16 - Use PublicGetScheduledGoalsSortBy<EnumValue>Constant instead. Get the enum in PublicGetScheduledGoalsParams
const ( PublicGetScheduledGoalsSortByCreatedAtConstant = "createdAt" PublicGetScheduledGoalsSortByCreatedAtAscConstant = "createdAt:asc" PublicGetScheduledGoalsSortByCreatedAtDescConstant = "createdAt:desc" PublicGetScheduledGoalsSortByUpdatedAtConstant = "updatedAt" PublicGetScheduledGoalsSortByUpdatedAtAscConstant = "updatedAt:asc" PublicGetScheduledGoalsSortByUpdatedAtDescConstant = "updatedAt:desc" )
Get the enum in PublicGetScheduledGoalsParams
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for challenge list API
func (*Client) PublicGetChallenges
deprecated
added in
v0.89.0
func (a *Client) PublicGetChallenges(params *PublicGetChallengesParams, authInfo runtime.ClientAuthInfoWriter) (*PublicGetChallengesOK, *PublicGetChallengesBadRequest, *PublicGetChallengesUnauthorized, *PublicGetChallengesForbidden, *PublicGetChallengesInternalServerError, error)
Deprecated: 2022-08-10 - Use PublicGetChallengesShort instead.
PublicGetChallenges list challenges - Required permission: NAMESPACE:{namespace}:CHALLENGE [READ]
func (*Client) PublicGetChallengesShort ¶ added in v0.89.0
func (a *Client) PublicGetChallengesShort(params *PublicGetChallengesParams, authInfo runtime.ClientAuthInfoWriter) (*PublicGetChallengesOK, error)
PublicGetChallengesShort list challenges - Required permission: NAMESPACE:{namespace}:CHALLENGE [READ]
func (*Client) PublicGetScheduledGoals
deprecated
func (a *Client) PublicGetScheduledGoals(params *PublicGetScheduledGoalsParams, authInfo runtime.ClientAuthInfoWriter) (*PublicGetScheduledGoalsOK, *PublicGetScheduledGoalsUnauthorized, *PublicGetScheduledGoalsForbidden, *PublicGetScheduledGoalsNotFound, *PublicGetScheduledGoalsInternalServerError, error)
Deprecated: 2022-08-10 - Use PublicGetScheduledGoalsShort instead.
PublicGetScheduledGoals list goals of a challenge - Required permission: NAMESPACE:{namespace}:CHALLENGE [READ]
func (*Client) PublicGetScheduledGoalsShort ¶
func (a *Client) PublicGetScheduledGoalsShort(params *PublicGetScheduledGoalsParams, authInfo runtime.ClientAuthInfoWriter) (*PublicGetScheduledGoalsOK, error)
PublicGetScheduledGoalsShort list goals of a challenge - Required permission: NAMESPACE:{namespace}:CHALLENGE [READ]
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientService ¶
type ClientService interface {
PublicGetChallenges(params *PublicGetChallengesParams, authInfo runtime.ClientAuthInfoWriter) (*PublicGetChallengesOK, *PublicGetChallengesBadRequest, *PublicGetChallengesUnauthorized, *PublicGetChallengesForbidden, *PublicGetChallengesInternalServerError, error)
PublicGetChallengesShort(params *PublicGetChallengesParams, authInfo runtime.ClientAuthInfoWriter) (*PublicGetChallengesOK, error)
PublicGetScheduledGoals(params *PublicGetScheduledGoalsParams, authInfo runtime.ClientAuthInfoWriter) (*PublicGetScheduledGoalsOK, *PublicGetScheduledGoalsUnauthorized, *PublicGetScheduledGoalsForbidden, *PublicGetScheduledGoalsNotFound, *PublicGetScheduledGoalsInternalServerError, error)
PublicGetScheduledGoalsShort(params *PublicGetScheduledGoalsParams, authInfo runtime.ClientAuthInfoWriter) (*PublicGetScheduledGoalsOK, 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 challenge list API client.
type PublicGetChallengesBadRequest ¶ added in v0.89.0
type PublicGetChallengesBadRequest struct {
Payload *challengeclientmodels.ResponseError
}
PublicGetChallengesBadRequest handles this case with default header values.
<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20018</td><td>bad request: {{message}}</td></tr></table>
func NewPublicGetChallengesBadRequest ¶ added in v0.89.0
func NewPublicGetChallengesBadRequest() *PublicGetChallengesBadRequest
NewPublicGetChallengesBadRequest creates a PublicGetChallengesBadRequest with default headers values
func (*PublicGetChallengesBadRequest) Error ¶ added in v0.89.0
func (o *PublicGetChallengesBadRequest) Error() string
func (*PublicGetChallengesBadRequest) GetPayload ¶ added in v0.89.0
func (o *PublicGetChallengesBadRequest) GetPayload() *challengeclientmodels.ResponseError
func (*PublicGetChallengesBadRequest) ToJSONString ¶ added in v0.89.0
func (o *PublicGetChallengesBadRequest) ToJSONString() string
type PublicGetChallengesForbidden ¶ added in v0.89.0
type PublicGetChallengesForbidden struct {
Payload *challengeclientmodels.IamErrorResponse
}
PublicGetChallengesForbidden handles this case with default header values.
<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20013</td><td>insufficient permission</td></tr></table>
func NewPublicGetChallengesForbidden ¶ added in v0.89.0
func NewPublicGetChallengesForbidden() *PublicGetChallengesForbidden
NewPublicGetChallengesForbidden creates a PublicGetChallengesForbidden with default headers values
func (*PublicGetChallengesForbidden) Error ¶ added in v0.89.0
func (o *PublicGetChallengesForbidden) Error() string
func (*PublicGetChallengesForbidden) GetPayload ¶ added in v0.89.0
func (o *PublicGetChallengesForbidden) GetPayload() *challengeclientmodels.IamErrorResponse
func (*PublicGetChallengesForbidden) ToJSONString ¶ added in v0.89.0
func (o *PublicGetChallengesForbidden) ToJSONString() string
type PublicGetChallengesInternalServerError ¶ added in v0.89.0
type PublicGetChallengesInternalServerError struct {
Payload *challengeclientmodels.ResponseError
}
PublicGetChallengesInternalServerError handles this case with default header values.
<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20000</td><td>internal server error: {{message}}</td></tr></table>
func NewPublicGetChallengesInternalServerError ¶ added in v0.89.0
func NewPublicGetChallengesInternalServerError() *PublicGetChallengesInternalServerError
NewPublicGetChallengesInternalServerError creates a PublicGetChallengesInternalServerError with default headers values
func (*PublicGetChallengesInternalServerError) Error ¶ added in v0.89.0
func (o *PublicGetChallengesInternalServerError) Error() string
func (*PublicGetChallengesInternalServerError) GetPayload ¶ added in v0.89.0
func (o *PublicGetChallengesInternalServerError) GetPayload() *challengeclientmodels.ResponseError
func (*PublicGetChallengesInternalServerError) ToJSONString ¶ added in v0.89.0
func (o *PublicGetChallengesInternalServerError) ToJSONString() string
type PublicGetChallengesOK ¶ added in v0.89.0
type PublicGetChallengesOK struct {
Payload *challengeclientmodels.ModelListChallengeResponse
}
PublicGetChallengesOK handles this case with default header values.
OK
func NewPublicGetChallengesOK ¶ added in v0.89.0
func NewPublicGetChallengesOK() *PublicGetChallengesOK
NewPublicGetChallengesOK creates a PublicGetChallengesOK with default headers values
func (*PublicGetChallengesOK) Error ¶ added in v0.89.0
func (o *PublicGetChallengesOK) Error() string
func (*PublicGetChallengesOK) GetPayload ¶ added in v0.89.0
func (o *PublicGetChallengesOK) GetPayload() *challengeclientmodels.ModelListChallengeResponse
func (*PublicGetChallengesOK) ToJSONString ¶ added in v0.89.0
func (o *PublicGetChallengesOK) ToJSONString() string
type PublicGetChallengesParams ¶ added in v0.89.0
type PublicGetChallengesParams struct {
/*RetryPolicy*/
RetryPolicy *utils.Retry
/*Namespace
namespace of the game
*/
Namespace string
/*Keyword
filter challenges by code with likes behavior
*/
Keyword *string
/*Limit
limit the amount of data retrieved
*/
Limit *int64
/*Offset
offset
*/
Offset *int64
/*SortBy
sort list by attributes.
default value: updatedAt:desc.
*/
SortBy *string
/*Status
challenge status
*/
Status *string
/*Tags
filter challenges by tags, comma separated value
*/
Tags []string
AuthInfoWriter runtime.ClientAuthInfoWriter
Context context.Context
HTTPClient *http.Client
// XFlightId is an optional parameter from this SDK
XFlightId *string
// contains filtered or unexported fields
}
PublicGetChallengesParams contains all the parameters to send to the API endpoint for the public get challenges operation typically these are written to a http.Request
func NewPublicGetChallengesParams ¶ added in v0.89.0
func NewPublicGetChallengesParams() *PublicGetChallengesParams
NewPublicGetChallengesParams creates a new PublicGetChallengesParams object with the default values initialized.
func NewPublicGetChallengesParamsWithContext ¶ added in v0.89.0
func NewPublicGetChallengesParamsWithContext(ctx context.Context) *PublicGetChallengesParams
NewPublicGetChallengesParamsWithContext creates a new PublicGetChallengesParams object with the default values initialized, and the ability to set a context for a request
func NewPublicGetChallengesParamsWithHTTPClient ¶ added in v0.89.0
func NewPublicGetChallengesParamsWithHTTPClient(client *http.Client) *PublicGetChallengesParams
NewPublicGetChallengesParamsWithHTTPClient creates a new PublicGetChallengesParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewPublicGetChallengesParamsWithTimeout ¶ added in v0.89.0
func NewPublicGetChallengesParamsWithTimeout(timeout time.Duration) *PublicGetChallengesParams
NewPublicGetChallengesParamsWithTimeout creates a new PublicGetChallengesParams object with the default values initialized, and the ability to set a timeout on a request
func (*PublicGetChallengesParams) SetAuthInfoWriter ¶ added in v0.89.0
func (o *PublicGetChallengesParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
SetAuthInfoWriter adds the authInfoWriter to the public get challenges params
func (*PublicGetChallengesParams) SetContext ¶ added in v0.89.0
func (o *PublicGetChallengesParams) SetContext(ctx context.Context)
SetContext adds the context to the public get challenges params
func (*PublicGetChallengesParams) SetFlightId ¶ added in v0.89.0
func (o *PublicGetChallengesParams) SetFlightId(flightId string)
SetFlightId adds the flightId as the header value for this specific endpoint
func (*PublicGetChallengesParams) SetHTTPClient ¶ added in v0.89.0
func (o *PublicGetChallengesParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the public get challenges params
func (*PublicGetChallengesParams) SetHTTPClientTransport ¶ added in v0.89.0
func (o *PublicGetChallengesParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
SetHTTPClient adds the HTTPClient Transport to the public get challenges params
func (*PublicGetChallengesParams) SetKeyword ¶ added in v0.89.0
func (o *PublicGetChallengesParams) SetKeyword(keyword *string)
SetKeyword adds the keyword to the public get challenges params
func (*PublicGetChallengesParams) SetLimit ¶ added in v0.89.0
func (o *PublicGetChallengesParams) SetLimit(limit *int64)
SetLimit adds the limit to the public get challenges params
func (*PublicGetChallengesParams) SetNamespace ¶ added in v0.89.0
func (o *PublicGetChallengesParams) SetNamespace(namespace string)
SetNamespace adds the namespace to the public get challenges params
func (*PublicGetChallengesParams) SetOffset ¶ added in v0.89.0
func (o *PublicGetChallengesParams) SetOffset(offset *int64)
SetOffset adds the offset to the public get challenges params
func (*PublicGetChallengesParams) SetSortBy ¶ added in v0.89.0
func (o *PublicGetChallengesParams) SetSortBy(sortBy *string)
SetSortBy adds the sortBy to the public get challenges params
func (*PublicGetChallengesParams) SetStatus ¶ added in v0.89.0
func (o *PublicGetChallengesParams) SetStatus(status *string)
SetStatus adds the status to the public get challenges params
func (*PublicGetChallengesParams) SetTags ¶ added in v0.89.0
func (o *PublicGetChallengesParams) SetTags(tags []string)
SetTags adds the tags to the public get challenges params
func (*PublicGetChallengesParams) SetTimeout ¶ added in v0.89.0
func (o *PublicGetChallengesParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the public get challenges params
func (*PublicGetChallengesParams) WithContext ¶ added in v0.89.0
func (o *PublicGetChallengesParams) WithContext(ctx context.Context) *PublicGetChallengesParams
WithContext adds the context to the public get challenges params
func (*PublicGetChallengesParams) WithHTTPClient ¶ added in v0.89.0
func (o *PublicGetChallengesParams) WithHTTPClient(client *http.Client) *PublicGetChallengesParams
WithHTTPClient adds the HTTPClient to the public get challenges params
func (*PublicGetChallengesParams) WithKeyword ¶ added in v0.89.0
func (o *PublicGetChallengesParams) WithKeyword(keyword *string) *PublicGetChallengesParams
WithKeyword adds the keyword to the public get challenges params
func (*PublicGetChallengesParams) WithLimit ¶ added in v0.89.0
func (o *PublicGetChallengesParams) WithLimit(limit *int64) *PublicGetChallengesParams
WithLimit adds the limit to the public get challenges params
func (*PublicGetChallengesParams) WithNamespace ¶ added in v0.89.0
func (o *PublicGetChallengesParams) WithNamespace(namespace string) *PublicGetChallengesParams
WithNamespace adds the namespace to the public get challenges params
func (*PublicGetChallengesParams) WithOffset ¶ added in v0.89.0
func (o *PublicGetChallengesParams) WithOffset(offset *int64) *PublicGetChallengesParams
WithOffset adds the offset to the public get challenges params
func (*PublicGetChallengesParams) WithSortBy ¶ added in v0.89.0
func (o *PublicGetChallengesParams) WithSortBy(sortBy *string) *PublicGetChallengesParams
WithSortBy adds the sortBy to the public get challenges params
func (*PublicGetChallengesParams) WithStatus ¶ added in v0.89.0
func (o *PublicGetChallengesParams) WithStatus(status *string) *PublicGetChallengesParams
WithStatus adds the status to the public get challenges params
func (*PublicGetChallengesParams) WithTags ¶ added in v0.89.0
func (o *PublicGetChallengesParams) WithTags(tags []string) *PublicGetChallengesParams
WithTags adds the tags to the public get challenges params
func (*PublicGetChallengesParams) WithTimeout ¶ added in v0.89.0
func (o *PublicGetChallengesParams) WithTimeout(timeout time.Duration) *PublicGetChallengesParams
WithTimeout adds the timeout to the public get challenges params
func (*PublicGetChallengesParams) WriteToRequest ¶ added in v0.89.0
func (o *PublicGetChallengesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type PublicGetChallengesReader ¶ added in v0.89.0
type PublicGetChallengesReader struct {
// contains filtered or unexported fields
}
PublicGetChallengesReader is a Reader for the PublicGetChallenges structure.
func (*PublicGetChallengesReader) ReadResponse ¶ added in v0.89.0
func (o *PublicGetChallengesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type PublicGetChallengesUnauthorized ¶ added in v0.89.0
type PublicGetChallengesUnauthorized struct {
}
PublicGetChallengesUnauthorized 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 NewPublicGetChallengesUnauthorized ¶ added in v0.89.0
func NewPublicGetChallengesUnauthorized() *PublicGetChallengesUnauthorized
NewPublicGetChallengesUnauthorized creates a PublicGetChallengesUnauthorized with default headers values
func (*PublicGetChallengesUnauthorized) Error ¶ added in v0.89.0
func (o *PublicGetChallengesUnauthorized) Error() string
func (*PublicGetChallengesUnauthorized) GetPayload ¶ added in v0.89.0
func (o *PublicGetChallengesUnauthorized) GetPayload() *challengeclientmodels.IamErrorResponse
func (*PublicGetChallengesUnauthorized) ToJSONString ¶ added in v0.89.0
func (o *PublicGetChallengesUnauthorized) ToJSONString() string
type PublicGetScheduledGoalsForbidden ¶
type PublicGetScheduledGoalsForbidden struct {
Payload *challengeclientmodels.IamErrorResponse
}
PublicGetScheduledGoalsForbidden handles this case with default header values.
<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20013</td><td>insufficient permission</td></tr></table>
func NewPublicGetScheduledGoalsForbidden ¶
func NewPublicGetScheduledGoalsForbidden() *PublicGetScheduledGoalsForbidden
NewPublicGetScheduledGoalsForbidden creates a PublicGetScheduledGoalsForbidden with default headers values
func (*PublicGetScheduledGoalsForbidden) Error ¶
func (o *PublicGetScheduledGoalsForbidden) Error() string
func (*PublicGetScheduledGoalsForbidden) GetPayload ¶
func (o *PublicGetScheduledGoalsForbidden) GetPayload() *challengeclientmodels.IamErrorResponse
func (*PublicGetScheduledGoalsForbidden) ToJSONString ¶
func (o *PublicGetScheduledGoalsForbidden) ToJSONString() string
type PublicGetScheduledGoalsInternalServerError ¶
type PublicGetScheduledGoalsInternalServerError struct {
Payload *challengeclientmodels.ResponseError
}
PublicGetScheduledGoalsInternalServerError handles this case with default header values.
<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20000</td><td>internal server error: {{message}}</td></tr></table>
func NewPublicGetScheduledGoalsInternalServerError ¶
func NewPublicGetScheduledGoalsInternalServerError() *PublicGetScheduledGoalsInternalServerError
NewPublicGetScheduledGoalsInternalServerError creates a PublicGetScheduledGoalsInternalServerError with default headers values
func (*PublicGetScheduledGoalsInternalServerError) Error ¶
func (o *PublicGetScheduledGoalsInternalServerError) Error() string
func (*PublicGetScheduledGoalsInternalServerError) GetPayload ¶
func (o *PublicGetScheduledGoalsInternalServerError) GetPayload() *challengeclientmodels.ResponseError
func (*PublicGetScheduledGoalsInternalServerError) ToJSONString ¶
func (o *PublicGetScheduledGoalsInternalServerError) ToJSONString() string
type PublicGetScheduledGoalsNotFound ¶ added in v0.70.0
type PublicGetScheduledGoalsNotFound struct {
Payload *challengeclientmodels.ResponseError
}
PublicGetScheduledGoalsNotFound handles this case with default header values.
<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20029</td><td>not found</td></tr></table>
func NewPublicGetScheduledGoalsNotFound ¶ added in v0.70.0
func NewPublicGetScheduledGoalsNotFound() *PublicGetScheduledGoalsNotFound
NewPublicGetScheduledGoalsNotFound creates a PublicGetScheduledGoalsNotFound with default headers values
func (*PublicGetScheduledGoalsNotFound) Error ¶ added in v0.70.0
func (o *PublicGetScheduledGoalsNotFound) Error() string
func (*PublicGetScheduledGoalsNotFound) GetPayload ¶ added in v0.70.0
func (o *PublicGetScheduledGoalsNotFound) GetPayload() *challengeclientmodels.ResponseError
func (*PublicGetScheduledGoalsNotFound) ToJSONString ¶ added in v0.70.0
func (o *PublicGetScheduledGoalsNotFound) ToJSONString() string
type PublicGetScheduledGoalsOK ¶
type PublicGetScheduledGoalsOK struct {
Payload *challengeclientmodels.ModelGetGoalsResponse
}
PublicGetScheduledGoalsOK handles this case with default header values.
OK
func NewPublicGetScheduledGoalsOK ¶
func NewPublicGetScheduledGoalsOK() *PublicGetScheduledGoalsOK
NewPublicGetScheduledGoalsOK creates a PublicGetScheduledGoalsOK with default headers values
func (*PublicGetScheduledGoalsOK) Error ¶
func (o *PublicGetScheduledGoalsOK) Error() string
func (*PublicGetScheduledGoalsOK) GetPayload ¶
func (o *PublicGetScheduledGoalsOK) GetPayload() *challengeclientmodels.ModelGetGoalsResponse
func (*PublicGetScheduledGoalsOK) ToJSONString ¶
func (o *PublicGetScheduledGoalsOK) ToJSONString() string
type PublicGetScheduledGoalsParams ¶
type PublicGetScheduledGoalsParams struct {
/*RetryPolicy*/
RetryPolicy *utils.Retry
/*ChallengeCode
challenge code
*/
ChallengeCode string
/*Namespace
namespace of the game
*/
Namespace string
/*Limit
limit the amount of data retrieved
*/
Limit *int64
/*Offset
offset
*/
Offset *int64
/*SortBy
sort list by attributes.
default value: updatedAt:desc.
*/
SortBy *string
/*Tags
filter list by tags
*/
Tags []string
AuthInfoWriter runtime.ClientAuthInfoWriter
Context context.Context
HTTPClient *http.Client
// XFlightId is an optional parameter from this SDK
XFlightId *string
// contains filtered or unexported fields
}
PublicGetScheduledGoalsParams contains all the parameters to send to the API endpoint for the public get scheduled goals operation typically these are written to a http.Request
func NewPublicGetScheduledGoalsParams ¶
func NewPublicGetScheduledGoalsParams() *PublicGetScheduledGoalsParams
NewPublicGetScheduledGoalsParams creates a new PublicGetScheduledGoalsParams object with the default values initialized.
func NewPublicGetScheduledGoalsParamsWithContext ¶
func NewPublicGetScheduledGoalsParamsWithContext(ctx context.Context) *PublicGetScheduledGoalsParams
NewPublicGetScheduledGoalsParamsWithContext creates a new PublicGetScheduledGoalsParams object with the default values initialized, and the ability to set a context for a request
func NewPublicGetScheduledGoalsParamsWithHTTPClient ¶
func NewPublicGetScheduledGoalsParamsWithHTTPClient(client *http.Client) *PublicGetScheduledGoalsParams
NewPublicGetScheduledGoalsParamsWithHTTPClient creates a new PublicGetScheduledGoalsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewPublicGetScheduledGoalsParamsWithTimeout ¶
func NewPublicGetScheduledGoalsParamsWithTimeout(timeout time.Duration) *PublicGetScheduledGoalsParams
NewPublicGetScheduledGoalsParamsWithTimeout creates a new PublicGetScheduledGoalsParams object with the default values initialized, and the ability to set a timeout on a request
func (*PublicGetScheduledGoalsParams) SetAuthInfoWriter ¶
func (o *PublicGetScheduledGoalsParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
SetAuthInfoWriter adds the authInfoWriter to the public get scheduled goals params
func (*PublicGetScheduledGoalsParams) SetChallengeCode ¶
func (o *PublicGetScheduledGoalsParams) SetChallengeCode(challengeCode string)
SetChallengeCode adds the challengeCode to the public get scheduled goals params
func (*PublicGetScheduledGoalsParams) SetContext ¶
func (o *PublicGetScheduledGoalsParams) SetContext(ctx context.Context)
SetContext adds the context to the public get scheduled goals params
func (*PublicGetScheduledGoalsParams) SetFlightId ¶
func (o *PublicGetScheduledGoalsParams) SetFlightId(flightId string)
SetFlightId adds the flightId as the header value for this specific endpoint
func (*PublicGetScheduledGoalsParams) SetHTTPClient ¶
func (o *PublicGetScheduledGoalsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the public get scheduled goals params
func (*PublicGetScheduledGoalsParams) SetHTTPClientTransport ¶
func (o *PublicGetScheduledGoalsParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
SetHTTPClient adds the HTTPClient Transport to the public get scheduled goals params
func (*PublicGetScheduledGoalsParams) SetLimit ¶
func (o *PublicGetScheduledGoalsParams) SetLimit(limit *int64)
SetLimit adds the limit to the public get scheduled goals params
func (*PublicGetScheduledGoalsParams) SetNamespace ¶
func (o *PublicGetScheduledGoalsParams) SetNamespace(namespace string)
SetNamespace adds the namespace to the public get scheduled goals params
func (*PublicGetScheduledGoalsParams) SetOffset ¶
func (o *PublicGetScheduledGoalsParams) SetOffset(offset *int64)
SetOffset adds the offset to the public get scheduled goals params
func (*PublicGetScheduledGoalsParams) SetSortBy ¶ added in v0.78.0
func (o *PublicGetScheduledGoalsParams) SetSortBy(sortBy *string)
SetSortBy adds the sortBy to the public get scheduled goals params
func (*PublicGetScheduledGoalsParams) SetTags ¶
func (o *PublicGetScheduledGoalsParams) SetTags(tags []string)
SetTags adds the tags to the public get scheduled goals params
func (*PublicGetScheduledGoalsParams) SetTimeout ¶
func (o *PublicGetScheduledGoalsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the public get scheduled goals params
func (*PublicGetScheduledGoalsParams) WithChallengeCode ¶
func (o *PublicGetScheduledGoalsParams) WithChallengeCode(challengeCode string) *PublicGetScheduledGoalsParams
WithChallengeCode adds the challengeCode to the public get scheduled goals params
func (*PublicGetScheduledGoalsParams) WithContext ¶
func (o *PublicGetScheduledGoalsParams) WithContext(ctx context.Context) *PublicGetScheduledGoalsParams
WithContext adds the context to the public get scheduled goals params
func (*PublicGetScheduledGoalsParams) WithHTTPClient ¶
func (o *PublicGetScheduledGoalsParams) WithHTTPClient(client *http.Client) *PublicGetScheduledGoalsParams
WithHTTPClient adds the HTTPClient to the public get scheduled goals params
func (*PublicGetScheduledGoalsParams) WithLimit ¶
func (o *PublicGetScheduledGoalsParams) WithLimit(limit *int64) *PublicGetScheduledGoalsParams
WithLimit adds the limit to the public get scheduled goals params
func (*PublicGetScheduledGoalsParams) WithNamespace ¶
func (o *PublicGetScheduledGoalsParams) WithNamespace(namespace string) *PublicGetScheduledGoalsParams
WithNamespace adds the namespace to the public get scheduled goals params
func (*PublicGetScheduledGoalsParams) WithOffset ¶
func (o *PublicGetScheduledGoalsParams) WithOffset(offset *int64) *PublicGetScheduledGoalsParams
WithOffset adds the offset to the public get scheduled goals params
func (*PublicGetScheduledGoalsParams) WithSortBy ¶ added in v0.78.0
func (o *PublicGetScheduledGoalsParams) WithSortBy(sortBy *string) *PublicGetScheduledGoalsParams
WithSortBy adds the sortBy to the public get scheduled goals params
func (*PublicGetScheduledGoalsParams) WithTags ¶
func (o *PublicGetScheduledGoalsParams) WithTags(tags []string) *PublicGetScheduledGoalsParams
WithTags adds the tags to the public get scheduled goals params
func (*PublicGetScheduledGoalsParams) WithTimeout ¶
func (o *PublicGetScheduledGoalsParams) WithTimeout(timeout time.Duration) *PublicGetScheduledGoalsParams
WithTimeout adds the timeout to the public get scheduled goals params
func (*PublicGetScheduledGoalsParams) WriteToRequest ¶
func (o *PublicGetScheduledGoalsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type PublicGetScheduledGoalsReader ¶
type PublicGetScheduledGoalsReader struct {
// contains filtered or unexported fields
}
PublicGetScheduledGoalsReader is a Reader for the PublicGetScheduledGoals structure.
func (*PublicGetScheduledGoalsReader) ReadResponse ¶
func (o *PublicGetScheduledGoalsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type PublicGetScheduledGoalsUnauthorized ¶
type PublicGetScheduledGoalsUnauthorized struct {
}
PublicGetScheduledGoalsUnauthorized 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 NewPublicGetScheduledGoalsUnauthorized ¶
func NewPublicGetScheduledGoalsUnauthorized() *PublicGetScheduledGoalsUnauthorized
NewPublicGetScheduledGoalsUnauthorized creates a PublicGetScheduledGoalsUnauthorized with default headers values
func (*PublicGetScheduledGoalsUnauthorized) Error ¶
func (o *PublicGetScheduledGoalsUnauthorized) Error() string
func (*PublicGetScheduledGoalsUnauthorized) GetPayload ¶
func (o *PublicGetScheduledGoalsUnauthorized) GetPayload() *challengeclientmodels.IamErrorResponse
func (*PublicGetScheduledGoalsUnauthorized) ToJSONString ¶
func (o *PublicGetScheduledGoalsUnauthorized) ToJSONString() string