goal_configuration

package
v0.68.0 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AdminCreateGoalBadRequest added in v0.68.0

type AdminCreateGoalBadRequest struct {
	Payload *challengeclientmodels.IamErrorResponse
}

AdminCreateGoalBadRequest 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 NewAdminCreateGoalBadRequest added in v0.68.0

func NewAdminCreateGoalBadRequest() *AdminCreateGoalBadRequest

NewAdminCreateGoalBadRequest creates a AdminCreateGoalBadRequest with default headers values

func (*AdminCreateGoalBadRequest) Error added in v0.68.0

func (o *AdminCreateGoalBadRequest) Error() string

func (*AdminCreateGoalBadRequest) GetPayload added in v0.68.0

func (*AdminCreateGoalBadRequest) ToJSONString added in v0.68.0

func (o *AdminCreateGoalBadRequest) ToJSONString() string

type AdminCreateGoalConflict

type AdminCreateGoalConflict struct {
	Payload *challengeclientmodels.ResponseError
}

AdminCreateGoalConflict handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>99002</td><td>duplicate key error: {{message}}</td></tr></table>

func NewAdminCreateGoalConflict

func NewAdminCreateGoalConflict() *AdminCreateGoalConflict

NewAdminCreateGoalConflict creates a AdminCreateGoalConflict with default headers values

func (*AdminCreateGoalConflict) Error

func (o *AdminCreateGoalConflict) Error() string

func (*AdminCreateGoalConflict) GetPayload

func (*AdminCreateGoalConflict) ToJSONString

func (o *AdminCreateGoalConflict) ToJSONString() string

type AdminCreateGoalCreated

type AdminCreateGoalCreated struct {
	Payload *challengeclientmodels.ModelGoalResponse
}

AdminCreateGoalCreated handles this case with default header values.

Created

func NewAdminCreateGoalCreated

func NewAdminCreateGoalCreated() *AdminCreateGoalCreated

NewAdminCreateGoalCreated creates a AdminCreateGoalCreated with default headers values

func (*AdminCreateGoalCreated) Error

func (o *AdminCreateGoalCreated) Error() string

func (*AdminCreateGoalCreated) GetPayload

func (*AdminCreateGoalCreated) ToJSONString

func (o *AdminCreateGoalCreated) ToJSONString() string

type AdminCreateGoalForbidden

type AdminCreateGoalForbidden struct {
	Payload *challengeclientmodels.IamErrorResponse
}

AdminCreateGoalForbidden 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 NewAdminCreateGoalForbidden

func NewAdminCreateGoalForbidden() *AdminCreateGoalForbidden

NewAdminCreateGoalForbidden creates a AdminCreateGoalForbidden with default headers values

func (*AdminCreateGoalForbidden) Error

func (o *AdminCreateGoalForbidden) Error() string

func (*AdminCreateGoalForbidden) GetPayload

func (*AdminCreateGoalForbidden) ToJSONString

func (o *AdminCreateGoalForbidden) ToJSONString() string

type AdminCreateGoalInternalServerError

type AdminCreateGoalInternalServerError struct {
	Payload *challengeclientmodels.ResponseError
}

AdminCreateGoalInternalServerError 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 NewAdminCreateGoalInternalServerError

func NewAdminCreateGoalInternalServerError() *AdminCreateGoalInternalServerError

NewAdminCreateGoalInternalServerError creates a AdminCreateGoalInternalServerError with default headers values

func (*AdminCreateGoalInternalServerError) Error

func (*AdminCreateGoalInternalServerError) GetPayload

func (*AdminCreateGoalInternalServerError) ToJSONString

func (o *AdminCreateGoalInternalServerError) ToJSONString() string

type AdminCreateGoalNotFound

type AdminCreateGoalNotFound struct {
	Payload *challengeclientmodels.ResponseError
}

AdminCreateGoalNotFound 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 NewAdminCreateGoalNotFound

func NewAdminCreateGoalNotFound() *AdminCreateGoalNotFound

NewAdminCreateGoalNotFound creates a AdminCreateGoalNotFound with default headers values

func (*AdminCreateGoalNotFound) Error

func (o *AdminCreateGoalNotFound) Error() string

func (*AdminCreateGoalNotFound) GetPayload

func (*AdminCreateGoalNotFound) ToJSONString

func (o *AdminCreateGoalNotFound) ToJSONString() string

type AdminCreateGoalParams

type AdminCreateGoalParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Body*/
	Body *challengeclientmodels.ModelCreateGoalRequest
	/*ChallengeCode
	  challenge code

	*/
	ChallengeCode string
	/*Namespace
	  namespace of the game

	*/
	Namespace string

	AuthInfoWriter runtime.ClientAuthInfoWriter
	Context        context.Context
	HTTPClient     *http.Client

	// XFlightId is an optional parameter from this SDK
	XFlightId *string
	// contains filtered or unexported fields
}

AdminCreateGoalParams contains all the parameters to send to the API endpoint for the admin create goal operation typically these are written to a http.Request

func NewAdminCreateGoalParams

func NewAdminCreateGoalParams() *AdminCreateGoalParams

NewAdminCreateGoalParams creates a new AdminCreateGoalParams object with the default values initialized.

func NewAdminCreateGoalParamsWithContext

func NewAdminCreateGoalParamsWithContext(ctx context.Context) *AdminCreateGoalParams

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

func NewAdminCreateGoalParamsWithHTTPClient

func NewAdminCreateGoalParamsWithHTTPClient(client *http.Client) *AdminCreateGoalParams

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

func NewAdminCreateGoalParamsWithTimeout

func NewAdminCreateGoalParamsWithTimeout(timeout time.Duration) *AdminCreateGoalParams

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

func (*AdminCreateGoalParams) SetAuthInfoWriter

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

SetAuthInfoWriter adds the authInfoWriter to the admin create goal params

func (*AdminCreateGoalParams) SetBody

SetBody adds the body to the admin create goal params

func (*AdminCreateGoalParams) SetChallengeCode

func (o *AdminCreateGoalParams) SetChallengeCode(challengeCode string)

SetChallengeCode adds the challengeCode to the admin create goal params

func (*AdminCreateGoalParams) SetContext

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

SetContext adds the context to the admin create goal params

func (*AdminCreateGoalParams) SetFlightId

func (o *AdminCreateGoalParams) SetFlightId(flightId string)

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

func (*AdminCreateGoalParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the admin create goal params

func (*AdminCreateGoalParams) SetHTTPClientTransport

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

SetHTTPClient adds the HTTPClient Transport to the admin create goal params

func (*AdminCreateGoalParams) SetNamespace

func (o *AdminCreateGoalParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the admin create goal params

func (*AdminCreateGoalParams) SetTimeout

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

SetTimeout adds the timeout to the admin create goal params

func (*AdminCreateGoalParams) WithBody

WithBody adds the body to the admin create goal params

func (*AdminCreateGoalParams) WithChallengeCode

func (o *AdminCreateGoalParams) WithChallengeCode(challengeCode string) *AdminCreateGoalParams

WithChallengeCode adds the challengeCode to the admin create goal params

func (*AdminCreateGoalParams) WithContext

WithContext adds the context to the admin create goal params

func (*AdminCreateGoalParams) WithHTTPClient

func (o *AdminCreateGoalParams) WithHTTPClient(client *http.Client) *AdminCreateGoalParams

WithHTTPClient adds the HTTPClient to the admin create goal params

func (*AdminCreateGoalParams) WithNamespace

func (o *AdminCreateGoalParams) WithNamespace(namespace string) *AdminCreateGoalParams

WithNamespace adds the namespace to the admin create goal params

func (*AdminCreateGoalParams) WithTimeout

func (o *AdminCreateGoalParams) WithTimeout(timeout time.Duration) *AdminCreateGoalParams

WithTimeout adds the timeout to the admin create goal params

func (*AdminCreateGoalParams) WriteToRequest

func (o *AdminCreateGoalParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type AdminCreateGoalReader

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

AdminCreateGoalReader is a Reader for the AdminCreateGoal structure.

func (*AdminCreateGoalReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type AdminCreateGoalUnauthorized

type AdminCreateGoalUnauthorized struct {
	Payload *challengeclientmodels.IamErrorResponse
}

AdminCreateGoalUnauthorized 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 NewAdminCreateGoalUnauthorized

func NewAdminCreateGoalUnauthorized() *AdminCreateGoalUnauthorized

NewAdminCreateGoalUnauthorized creates a AdminCreateGoalUnauthorized with default headers values

func (*AdminCreateGoalUnauthorized) Error

func (*AdminCreateGoalUnauthorized) GetPayload

func (*AdminCreateGoalUnauthorized) ToJSONString

func (o *AdminCreateGoalUnauthorized) ToJSONString() string

type AdminDeleteGoalBadRequest

type AdminDeleteGoalBadRequest struct {
	Payload *challengeclientmodels.ResponseError
}

AdminDeleteGoalBadRequest 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 NewAdminDeleteGoalBadRequest

func NewAdminDeleteGoalBadRequest() *AdminDeleteGoalBadRequest

NewAdminDeleteGoalBadRequest creates a AdminDeleteGoalBadRequest with default headers values

func (*AdminDeleteGoalBadRequest) Error

func (o *AdminDeleteGoalBadRequest) Error() string

func (*AdminDeleteGoalBadRequest) GetPayload

func (*AdminDeleteGoalBadRequest) ToJSONString

func (o *AdminDeleteGoalBadRequest) ToJSONString() string

type AdminDeleteGoalInternalServerError

type AdminDeleteGoalInternalServerError struct {
	Payload *challengeclientmodels.ResponseError
}

AdminDeleteGoalInternalServerError 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 NewAdminDeleteGoalInternalServerError

func NewAdminDeleteGoalInternalServerError() *AdminDeleteGoalInternalServerError

NewAdminDeleteGoalInternalServerError creates a AdminDeleteGoalInternalServerError with default headers values

func (*AdminDeleteGoalInternalServerError) Error

func (*AdminDeleteGoalInternalServerError) GetPayload

func (*AdminDeleteGoalInternalServerError) ToJSONString

func (o *AdminDeleteGoalInternalServerError) ToJSONString() string

type AdminDeleteGoalNoContent

type AdminDeleteGoalNoContent struct {
}

AdminDeleteGoalNoContent handles this case with default header values.

No Content

func NewAdminDeleteGoalNoContent

func NewAdminDeleteGoalNoContent() *AdminDeleteGoalNoContent

NewAdminDeleteGoalNoContent creates a AdminDeleteGoalNoContent with default headers values

func (*AdminDeleteGoalNoContent) Error

func (o *AdminDeleteGoalNoContent) Error() string

type AdminDeleteGoalNotFound

type AdminDeleteGoalNotFound struct {
	Payload *challengeclientmodels.ResponseError
}

AdminDeleteGoalNotFound 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 NewAdminDeleteGoalNotFound

func NewAdminDeleteGoalNotFound() *AdminDeleteGoalNotFound

NewAdminDeleteGoalNotFound creates a AdminDeleteGoalNotFound with default headers values

func (*AdminDeleteGoalNotFound) Error

func (o *AdminDeleteGoalNotFound) Error() string

func (*AdminDeleteGoalNotFound) GetPayload

func (*AdminDeleteGoalNotFound) ToJSONString

func (o *AdminDeleteGoalNotFound) ToJSONString() string

type AdminDeleteGoalParams

type AdminDeleteGoalParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*ChallengeCode
	  challenge code

	*/
	ChallengeCode string
	/*Code
	  goal code

	*/
	Code string
	/*Namespace
	  namespace of the game

	*/
	Namespace string

	AuthInfoWriter runtime.ClientAuthInfoWriter
	Context        context.Context
	HTTPClient     *http.Client

	// XFlightId is an optional parameter from this SDK
	XFlightId *string
	// contains filtered or unexported fields
}

AdminDeleteGoalParams contains all the parameters to send to the API endpoint for the admin delete goal operation typically these are written to a http.Request

func NewAdminDeleteGoalParams

func NewAdminDeleteGoalParams() *AdminDeleteGoalParams

NewAdminDeleteGoalParams creates a new AdminDeleteGoalParams object with the default values initialized.

func NewAdminDeleteGoalParamsWithContext

func NewAdminDeleteGoalParamsWithContext(ctx context.Context) *AdminDeleteGoalParams

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

func NewAdminDeleteGoalParamsWithHTTPClient

func NewAdminDeleteGoalParamsWithHTTPClient(client *http.Client) *AdminDeleteGoalParams

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

func NewAdminDeleteGoalParamsWithTimeout

func NewAdminDeleteGoalParamsWithTimeout(timeout time.Duration) *AdminDeleteGoalParams

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

func (*AdminDeleteGoalParams) SetAuthInfoWriter

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

SetAuthInfoWriter adds the authInfoWriter to the admin delete goal params

func (*AdminDeleteGoalParams) SetChallengeCode

func (o *AdminDeleteGoalParams) SetChallengeCode(challengeCode string)

SetChallengeCode adds the challengeCode to the admin delete goal params

func (*AdminDeleteGoalParams) SetCode

func (o *AdminDeleteGoalParams) SetCode(code string)

SetCode adds the code to the admin delete goal params

func (*AdminDeleteGoalParams) SetContext

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

SetContext adds the context to the admin delete goal params

func (*AdminDeleteGoalParams) SetFlightId

func (o *AdminDeleteGoalParams) SetFlightId(flightId string)

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

func (*AdminDeleteGoalParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the admin delete goal params

func (*AdminDeleteGoalParams) SetHTTPClientTransport

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

SetHTTPClient adds the HTTPClient Transport to the admin delete goal params

func (*AdminDeleteGoalParams) SetNamespace

func (o *AdminDeleteGoalParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the admin delete goal params

func (*AdminDeleteGoalParams) SetTimeout

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

SetTimeout adds the timeout to the admin delete goal params

func (*AdminDeleteGoalParams) WithChallengeCode

func (o *AdminDeleteGoalParams) WithChallengeCode(challengeCode string) *AdminDeleteGoalParams

WithChallengeCode adds the challengeCode to the admin delete goal params

func (*AdminDeleteGoalParams) WithCode

WithCode adds the code to the admin delete goal params

func (*AdminDeleteGoalParams) WithContext

WithContext adds the context to the admin delete goal params

func (*AdminDeleteGoalParams) WithHTTPClient

func (o *AdminDeleteGoalParams) WithHTTPClient(client *http.Client) *AdminDeleteGoalParams

WithHTTPClient adds the HTTPClient to the admin delete goal params

func (*AdminDeleteGoalParams) WithNamespace

func (o *AdminDeleteGoalParams) WithNamespace(namespace string) *AdminDeleteGoalParams

WithNamespace adds the namespace to the admin delete goal params

func (*AdminDeleteGoalParams) WithTimeout

func (o *AdminDeleteGoalParams) WithTimeout(timeout time.Duration) *AdminDeleteGoalParams

WithTimeout adds the timeout to the admin delete goal params

func (*AdminDeleteGoalParams) WriteToRequest

func (o *AdminDeleteGoalParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type AdminDeleteGoalReader

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

AdminDeleteGoalReader is a Reader for the AdminDeleteGoal structure.

func (*AdminDeleteGoalReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type AdminGetGoalForbidden

type AdminGetGoalForbidden struct {
	Payload *challengeclientmodels.IamErrorResponse
}

AdminGetGoalForbidden 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 NewAdminGetGoalForbidden

func NewAdminGetGoalForbidden() *AdminGetGoalForbidden

NewAdminGetGoalForbidden creates a AdminGetGoalForbidden with default headers values

func (*AdminGetGoalForbidden) Error

func (o *AdminGetGoalForbidden) Error() string

func (*AdminGetGoalForbidden) GetPayload

func (*AdminGetGoalForbidden) ToJSONString

func (o *AdminGetGoalForbidden) ToJSONString() string

type AdminGetGoalInternalServerError

type AdminGetGoalInternalServerError struct {
	Payload *challengeclientmodels.ResponseError
}

AdminGetGoalInternalServerError handles this case with default header values.

Internal Server Error

func NewAdminGetGoalInternalServerError

func NewAdminGetGoalInternalServerError() *AdminGetGoalInternalServerError

NewAdminGetGoalInternalServerError creates a AdminGetGoalInternalServerError with default headers values

func (*AdminGetGoalInternalServerError) Error

func (*AdminGetGoalInternalServerError) GetPayload

func (*AdminGetGoalInternalServerError) ToJSONString

func (o *AdminGetGoalInternalServerError) ToJSONString() string

type AdminGetGoalNotFound

type AdminGetGoalNotFound struct {
	Payload *challengeclientmodels.ResponseError
}

AdminGetGoalNotFound handles this case with default header values.

Not Found

func NewAdminGetGoalNotFound

func NewAdminGetGoalNotFound() *AdminGetGoalNotFound

NewAdminGetGoalNotFound creates a AdminGetGoalNotFound with default headers values

func (*AdminGetGoalNotFound) Error

func (o *AdminGetGoalNotFound) Error() string

func (*AdminGetGoalNotFound) GetPayload

func (*AdminGetGoalNotFound) ToJSONString

func (o *AdminGetGoalNotFound) ToJSONString() string

type AdminGetGoalOK

type AdminGetGoalOK struct {
	Payload *challengeclientmodels.ModelGoalResponse
}

AdminGetGoalOK handles this case with default header values.

OK

func NewAdminGetGoalOK

func NewAdminGetGoalOK() *AdminGetGoalOK

NewAdminGetGoalOK creates a AdminGetGoalOK with default headers values

func (*AdminGetGoalOK) Error

func (o *AdminGetGoalOK) Error() string

func (*AdminGetGoalOK) GetPayload

func (*AdminGetGoalOK) ToJSONString

func (o *AdminGetGoalOK) ToJSONString() string

type AdminGetGoalParams

type AdminGetGoalParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*ChallengeCode
	  challenge code

	*/
	ChallengeCode string
	/*Code
	  goal code

	*/
	Code string
	/*Namespace
	  namespace of the game

	*/
	Namespace string

	AuthInfoWriter runtime.ClientAuthInfoWriter
	Context        context.Context
	HTTPClient     *http.Client

	// XFlightId is an optional parameter from this SDK
	XFlightId *string
	// contains filtered or unexported fields
}

AdminGetGoalParams contains all the parameters to send to the API endpoint for the admin get goal operation typically these are written to a http.Request

func NewAdminGetGoalParams

func NewAdminGetGoalParams() *AdminGetGoalParams

NewAdminGetGoalParams creates a new AdminGetGoalParams object with the default values initialized.

func NewAdminGetGoalParamsWithContext

func NewAdminGetGoalParamsWithContext(ctx context.Context) *AdminGetGoalParams

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

func NewAdminGetGoalParamsWithHTTPClient

func NewAdminGetGoalParamsWithHTTPClient(client *http.Client) *AdminGetGoalParams

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

func NewAdminGetGoalParamsWithTimeout

func NewAdminGetGoalParamsWithTimeout(timeout time.Duration) *AdminGetGoalParams

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

func (*AdminGetGoalParams) SetAuthInfoWriter

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

SetAuthInfoWriter adds the authInfoWriter to the admin get goal params

func (*AdminGetGoalParams) SetChallengeCode

func (o *AdminGetGoalParams) SetChallengeCode(challengeCode string)

SetChallengeCode adds the challengeCode to the admin get goal params

func (*AdminGetGoalParams) SetCode

func (o *AdminGetGoalParams) SetCode(code string)

SetCode adds the code to the admin get goal params

func (*AdminGetGoalParams) SetContext

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

SetContext adds the context to the admin get goal params

func (*AdminGetGoalParams) SetFlightId

func (o *AdminGetGoalParams) SetFlightId(flightId string)

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

func (*AdminGetGoalParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the admin get goal params

func (*AdminGetGoalParams) SetHTTPClientTransport

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

SetHTTPClient adds the HTTPClient Transport to the admin get goal params

func (*AdminGetGoalParams) SetNamespace

func (o *AdminGetGoalParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the admin get goal params

func (*AdminGetGoalParams) SetTimeout

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

SetTimeout adds the timeout to the admin get goal params

func (*AdminGetGoalParams) WithChallengeCode

func (o *AdminGetGoalParams) WithChallengeCode(challengeCode string) *AdminGetGoalParams

WithChallengeCode adds the challengeCode to the admin get goal params

func (*AdminGetGoalParams) WithCode

func (o *AdminGetGoalParams) WithCode(code string) *AdminGetGoalParams

WithCode adds the code to the admin get goal params

func (*AdminGetGoalParams) WithContext

WithContext adds the context to the admin get goal params

func (*AdminGetGoalParams) WithHTTPClient

func (o *AdminGetGoalParams) WithHTTPClient(client *http.Client) *AdminGetGoalParams

WithHTTPClient adds the HTTPClient to the admin get goal params

func (*AdminGetGoalParams) WithNamespace

func (o *AdminGetGoalParams) WithNamespace(namespace string) *AdminGetGoalParams

WithNamespace adds the namespace to the admin get goal params

func (*AdminGetGoalParams) WithTimeout

func (o *AdminGetGoalParams) WithTimeout(timeout time.Duration) *AdminGetGoalParams

WithTimeout adds the timeout to the admin get goal params

func (*AdminGetGoalParams) WriteToRequest

func (o *AdminGetGoalParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type AdminGetGoalReader

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

AdminGetGoalReader is a Reader for the AdminGetGoal structure.

func (*AdminGetGoalReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type AdminGetGoalUnauthorized

type AdminGetGoalUnauthorized struct {
	Payload *challengeclientmodels.IamErrorResponse
}

AdminGetGoalUnauthorized 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 NewAdminGetGoalUnauthorized

func NewAdminGetGoalUnauthorized() *AdminGetGoalUnauthorized

NewAdminGetGoalUnauthorized creates a AdminGetGoalUnauthorized with default headers values

func (*AdminGetGoalUnauthorized) Error

func (o *AdminGetGoalUnauthorized) Error() string

func (*AdminGetGoalUnauthorized) GetPayload

func (*AdminGetGoalUnauthorized) ToJSONString

func (o *AdminGetGoalUnauthorized) ToJSONString() string

type AdminGetGoalsForbidden

type AdminGetGoalsForbidden struct {
	Payload *challengeclientmodels.IamErrorResponse
}

AdminGetGoalsForbidden 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 NewAdminGetGoalsForbidden

func NewAdminGetGoalsForbidden() *AdminGetGoalsForbidden

NewAdminGetGoalsForbidden creates a AdminGetGoalsForbidden with default headers values

func (*AdminGetGoalsForbidden) Error

func (o *AdminGetGoalsForbidden) Error() string

func (*AdminGetGoalsForbidden) GetPayload

func (*AdminGetGoalsForbidden) ToJSONString

func (o *AdminGetGoalsForbidden) ToJSONString() string

type AdminGetGoalsInternalServerError

type AdminGetGoalsInternalServerError struct {
	Payload *challengeclientmodels.ResponseError
}

AdminGetGoalsInternalServerError 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 NewAdminGetGoalsInternalServerError

func NewAdminGetGoalsInternalServerError() *AdminGetGoalsInternalServerError

NewAdminGetGoalsInternalServerError creates a AdminGetGoalsInternalServerError with default headers values

func (*AdminGetGoalsInternalServerError) Error

func (*AdminGetGoalsInternalServerError) GetPayload

func (*AdminGetGoalsInternalServerError) ToJSONString

func (o *AdminGetGoalsInternalServerError) ToJSONString() string

type AdminGetGoalsNotFound

type AdminGetGoalsNotFound struct {
	Payload *challengeclientmodels.ResponseError
}

AdminGetGoalsNotFound 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 NewAdminGetGoalsNotFound

func NewAdminGetGoalsNotFound() *AdminGetGoalsNotFound

NewAdminGetGoalsNotFound creates a AdminGetGoalsNotFound with default headers values

func (*AdminGetGoalsNotFound) Error

func (o *AdminGetGoalsNotFound) Error() string

func (*AdminGetGoalsNotFound) GetPayload

func (*AdminGetGoalsNotFound) ToJSONString

func (o *AdminGetGoalsNotFound) ToJSONString() string

type AdminGetGoalsOK

type AdminGetGoalsOK struct {
	Payload *challengeclientmodels.ModelGetGoalsResponse
}

AdminGetGoalsOK handles this case with default header values.

OK

func NewAdminGetGoalsOK

func NewAdminGetGoalsOK() *AdminGetGoalsOK

NewAdminGetGoalsOK creates a AdminGetGoalsOK with default headers values

func (*AdminGetGoalsOK) Error

func (o *AdminGetGoalsOK) Error() string

func (*AdminGetGoalsOK) GetPayload

func (*AdminGetGoalsOK) ToJSONString

func (o *AdminGetGoalsOK) ToJSONString() string

type AdminGetGoalsParams

type AdminGetGoalsParams 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.
				available value:
					<li>createdAt, createdAt:desc, createdAt:asc</li>
					<li>updatedAt, updatedAt:desc, updatedAt:asc</li>


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

AdminGetGoalsParams contains all the parameters to send to the API endpoint for the admin get goals operation typically these are written to a http.Request

func NewAdminGetGoalsParams

func NewAdminGetGoalsParams() *AdminGetGoalsParams

NewAdminGetGoalsParams creates a new AdminGetGoalsParams object with the default values initialized.

func NewAdminGetGoalsParamsWithContext

func NewAdminGetGoalsParamsWithContext(ctx context.Context) *AdminGetGoalsParams

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

func NewAdminGetGoalsParamsWithHTTPClient

func NewAdminGetGoalsParamsWithHTTPClient(client *http.Client) *AdminGetGoalsParams

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

func NewAdminGetGoalsParamsWithTimeout

func NewAdminGetGoalsParamsWithTimeout(timeout time.Duration) *AdminGetGoalsParams

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

func (*AdminGetGoalsParams) SetAuthInfoWriter

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

SetAuthInfoWriter adds the authInfoWriter to the admin get goals params

func (*AdminGetGoalsParams) SetChallengeCode

func (o *AdminGetGoalsParams) SetChallengeCode(challengeCode string)

SetChallengeCode adds the challengeCode to the admin get goals params

func (*AdminGetGoalsParams) SetContext

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

SetContext adds the context to the admin get goals params

func (*AdminGetGoalsParams) SetFlightId

func (o *AdminGetGoalsParams) SetFlightId(flightId string)

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

func (*AdminGetGoalsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the admin get goals params

func (*AdminGetGoalsParams) SetHTTPClientTransport

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

SetHTTPClient adds the HTTPClient Transport to the admin get goals params

func (*AdminGetGoalsParams) SetLimit

func (o *AdminGetGoalsParams) SetLimit(limit *int64)

SetLimit adds the limit to the admin get goals params

func (*AdminGetGoalsParams) SetNamespace

func (o *AdminGetGoalsParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the admin get goals params

func (*AdminGetGoalsParams) SetOffset

func (o *AdminGetGoalsParams) SetOffset(offset *int64)

SetOffset adds the offset to the admin get goals params

func (*AdminGetGoalsParams) SetSortBy

func (o *AdminGetGoalsParams) SetSortBy(sortBy *string)

SetSortBy adds the sortBy to the admin get goals params

func (*AdminGetGoalsParams) SetTimeout

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

SetTimeout adds the timeout to the admin get goals params

func (*AdminGetGoalsParams) WithChallengeCode

func (o *AdminGetGoalsParams) WithChallengeCode(challengeCode string) *AdminGetGoalsParams

WithChallengeCode adds the challengeCode to the admin get goals params

func (*AdminGetGoalsParams) WithContext

WithContext adds the context to the admin get goals params

func (*AdminGetGoalsParams) WithHTTPClient

func (o *AdminGetGoalsParams) WithHTTPClient(client *http.Client) *AdminGetGoalsParams

WithHTTPClient adds the HTTPClient to the admin get goals params

func (*AdminGetGoalsParams) WithLimit

func (o *AdminGetGoalsParams) WithLimit(limit *int64) *AdminGetGoalsParams

WithLimit adds the limit to the admin get goals params

func (*AdminGetGoalsParams) WithNamespace

func (o *AdminGetGoalsParams) WithNamespace(namespace string) *AdminGetGoalsParams

WithNamespace adds the namespace to the admin get goals params

func (*AdminGetGoalsParams) WithOffset

func (o *AdminGetGoalsParams) WithOffset(offset *int64) *AdminGetGoalsParams

WithOffset adds the offset to the admin get goals params

func (*AdminGetGoalsParams) WithSortBy

func (o *AdminGetGoalsParams) WithSortBy(sortBy *string) *AdminGetGoalsParams

WithSortBy adds the sortBy to the admin get goals params

func (*AdminGetGoalsParams) WithTimeout

func (o *AdminGetGoalsParams) WithTimeout(timeout time.Duration) *AdminGetGoalsParams

WithTimeout adds the timeout to the admin get goals params

func (*AdminGetGoalsParams) WriteToRequest

func (o *AdminGetGoalsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type AdminGetGoalsReader

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

AdminGetGoalsReader is a Reader for the AdminGetGoals structure.

func (*AdminGetGoalsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type AdminGetGoalsUnauthorized

type AdminGetGoalsUnauthorized struct {
	Payload *challengeclientmodels.IamErrorResponse
}

AdminGetGoalsUnauthorized 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 NewAdminGetGoalsUnauthorized

func NewAdminGetGoalsUnauthorized() *AdminGetGoalsUnauthorized

NewAdminGetGoalsUnauthorized creates a AdminGetGoalsUnauthorized with default headers values

func (*AdminGetGoalsUnauthorized) Error

func (o *AdminGetGoalsUnauthorized) Error() string

func (*AdminGetGoalsUnauthorized) GetPayload

func (*AdminGetGoalsUnauthorized) ToJSONString

func (o *AdminGetGoalsUnauthorized) ToJSONString() string

type AdminUpdateGoalsInternalServerError

type AdminUpdateGoalsInternalServerError struct {
	Payload *challengeclientmodels.ResponseError
}

AdminUpdateGoalsInternalServerError handles this case with default header values.

Internal Server Error

func NewAdminUpdateGoalsInternalServerError

func NewAdminUpdateGoalsInternalServerError() *AdminUpdateGoalsInternalServerError

NewAdminUpdateGoalsInternalServerError creates a AdminUpdateGoalsInternalServerError with default headers values

func (*AdminUpdateGoalsInternalServerError) Error

func (*AdminUpdateGoalsInternalServerError) GetPayload

func (*AdminUpdateGoalsInternalServerError) ToJSONString

func (o *AdminUpdateGoalsInternalServerError) ToJSONString() string

type AdminUpdateGoalsNotFound

type AdminUpdateGoalsNotFound struct {
	Payload *challengeclientmodels.ResponseError
}

AdminUpdateGoalsNotFound handles this case with default header values.

Not Found

func NewAdminUpdateGoalsNotFound

func NewAdminUpdateGoalsNotFound() *AdminUpdateGoalsNotFound

NewAdminUpdateGoalsNotFound creates a AdminUpdateGoalsNotFound with default headers values

func (*AdminUpdateGoalsNotFound) Error

func (o *AdminUpdateGoalsNotFound) Error() string

func (*AdminUpdateGoalsNotFound) GetPayload

func (*AdminUpdateGoalsNotFound) ToJSONString

func (o *AdminUpdateGoalsNotFound) ToJSONString() string

type AdminUpdateGoalsOK

type AdminUpdateGoalsOK struct {
	Payload *challengeclientmodels.ModelGoalResponse
}

AdminUpdateGoalsOK handles this case with default header values.

OK

func NewAdminUpdateGoalsOK

func NewAdminUpdateGoalsOK() *AdminUpdateGoalsOK

NewAdminUpdateGoalsOK creates a AdminUpdateGoalsOK with default headers values

func (*AdminUpdateGoalsOK) Error

func (o *AdminUpdateGoalsOK) Error() string

func (*AdminUpdateGoalsOK) GetPayload

func (*AdminUpdateGoalsOK) ToJSONString

func (o *AdminUpdateGoalsOK) ToJSONString() string

type AdminUpdateGoalsParams

type AdminUpdateGoalsParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Body*/
	Body *challengeclientmodels.ModelUpdateGoalRequest
	/*ChallengeCode
	  challenge code

	*/
	ChallengeCode string
	/*Code
	  goal code

	*/
	Code string
	/*Namespace
	  namespace of the game

	*/
	Namespace string

	AuthInfoWriter runtime.ClientAuthInfoWriter
	Context        context.Context
	HTTPClient     *http.Client

	// XFlightId is an optional parameter from this SDK
	XFlightId *string
	// contains filtered or unexported fields
}

AdminUpdateGoalsParams contains all the parameters to send to the API endpoint for the admin update goals operation typically these are written to a http.Request

func NewAdminUpdateGoalsParams

func NewAdminUpdateGoalsParams() *AdminUpdateGoalsParams

NewAdminUpdateGoalsParams creates a new AdminUpdateGoalsParams object with the default values initialized.

func NewAdminUpdateGoalsParamsWithContext

func NewAdminUpdateGoalsParamsWithContext(ctx context.Context) *AdminUpdateGoalsParams

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

func NewAdminUpdateGoalsParamsWithHTTPClient

func NewAdminUpdateGoalsParamsWithHTTPClient(client *http.Client) *AdminUpdateGoalsParams

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

func NewAdminUpdateGoalsParamsWithTimeout

func NewAdminUpdateGoalsParamsWithTimeout(timeout time.Duration) *AdminUpdateGoalsParams

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

func (*AdminUpdateGoalsParams) SetAuthInfoWriter

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

SetAuthInfoWriter adds the authInfoWriter to the admin update goals params

func (*AdminUpdateGoalsParams) SetBody

SetBody adds the body to the admin update goals params

func (*AdminUpdateGoalsParams) SetChallengeCode

func (o *AdminUpdateGoalsParams) SetChallengeCode(challengeCode string)

SetChallengeCode adds the challengeCode to the admin update goals params

func (*AdminUpdateGoalsParams) SetCode

func (o *AdminUpdateGoalsParams) SetCode(code string)

SetCode adds the code to the admin update goals params

func (*AdminUpdateGoalsParams) SetContext

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

SetContext adds the context to the admin update goals params

func (*AdminUpdateGoalsParams) SetFlightId

func (o *AdminUpdateGoalsParams) SetFlightId(flightId string)

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

func (*AdminUpdateGoalsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the admin update goals params

func (*AdminUpdateGoalsParams) SetHTTPClientTransport

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

SetHTTPClient adds the HTTPClient Transport to the admin update goals params

func (*AdminUpdateGoalsParams) SetNamespace

func (o *AdminUpdateGoalsParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the admin update goals params

func (*AdminUpdateGoalsParams) SetTimeout

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

SetTimeout adds the timeout to the admin update goals params

func (*AdminUpdateGoalsParams) WithBody

WithBody adds the body to the admin update goals params

func (*AdminUpdateGoalsParams) WithChallengeCode

func (o *AdminUpdateGoalsParams) WithChallengeCode(challengeCode string) *AdminUpdateGoalsParams

WithChallengeCode adds the challengeCode to the admin update goals params

func (*AdminUpdateGoalsParams) WithCode

WithCode adds the code to the admin update goals params

func (*AdminUpdateGoalsParams) WithContext

WithContext adds the context to the admin update goals params

func (*AdminUpdateGoalsParams) WithHTTPClient

func (o *AdminUpdateGoalsParams) WithHTTPClient(client *http.Client) *AdminUpdateGoalsParams

WithHTTPClient adds the HTTPClient to the admin update goals params

func (*AdminUpdateGoalsParams) WithNamespace

func (o *AdminUpdateGoalsParams) WithNamespace(namespace string) *AdminUpdateGoalsParams

WithNamespace adds the namespace to the admin update goals params

func (*AdminUpdateGoalsParams) WithTimeout

WithTimeout adds the timeout to the admin update goals params

func (*AdminUpdateGoalsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type AdminUpdateGoalsReader

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

AdminUpdateGoalsReader is a Reader for the AdminUpdateGoals structure.

func (*AdminUpdateGoalsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type Client

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

Client for goal configuration API

func (*Client) AdminCreateGoal deprecated

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

AdminCreateGoal create new goal

  • Required permission: ADMIN:NAMESPACE:{namespace}:CHALLENGE [CREATE]

Request body:

  • code: unique within a challenge
  • name: name of the goal
  • description: text describing the goal (optional)
  • schedule: a time range that indicated the availability of a goal within a timeframe. used in fixed assignment rule
  • requirementGroups: list of conditions that conform with the goal progressions.
  • rewards: list of rewards that will be claimable once a goal is complete
  • tag: goal's labels

Goal describe set of requirements that need to be fulfilled by players in order to complete it and describe what is the rewards given to player when they complete the goal.The requirement will have target value and a operator that will evaluate that against an observable player�s attribute (e.g. statistic, entitlement). Goal belongs to a challenge.

func (*Client) AdminCreateGoalShort

func (a *Client) AdminCreateGoalShort(params *AdminCreateGoalParams, authInfo runtime.ClientAuthInfoWriter) (*AdminCreateGoalCreated, error)

AdminCreateGoalShort create new goal

  • Required permission: ADMIN:NAMESPACE:{namespace}:CHALLENGE [CREATE]

Request body:

  • code: unique within a challenge
  • name: name of the goal
  • description: text describing the goal (optional)
  • schedule: a time range that indicated the availability of a goal within a timeframe. used in fixed assignment rule
  • requirementGroups: list of conditions that conform with the goal progressions.
  • rewards: list of rewards that will be claimable once a goal is complete
  • tag: goal's labels

Goal describe set of requirements that need to be fulfilled by players in order to complete it and describe what is the rewards given to player when they complete the goal.The requirement will have target value and a operator that will evaluate that against an observable player�s attribute (e.g. statistic, entitlement). Goal belongs to a challenge.

func (*Client) AdminDeleteGoal deprecated

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

AdminDeleteGoal delete goal

  • Required permission: ADMIN:NAMESPACE:{namespace}:CHALLENGE [DELETE]

func (*Client) AdminDeleteGoalShort

func (a *Client) AdminDeleteGoalShort(params *AdminDeleteGoalParams, authInfo runtime.ClientAuthInfoWriter) (*AdminDeleteGoalNoContent, error)

AdminDeleteGoalShort delete goal

  • Required permission: ADMIN:NAMESPACE:{namespace}:CHALLENGE [DELETE]

func (*Client) AdminGetGoal deprecated

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

AdminGetGoal get goal

  • Required permission: ADMIN:NAMESPACE:{namespace}:CHALLENGE [READ]

func (*Client) AdminGetGoalShort

func (a *Client) AdminGetGoalShort(params *AdminGetGoalParams, authInfo runtime.ClientAuthInfoWriter) (*AdminGetGoalOK, error)

AdminGetGoalShort get goal

  • Required permission: ADMIN:NAMESPACE:{namespace}:CHALLENGE [READ]

func (*Client) AdminGetGoals deprecated

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

AdminGetGoals list goals of a challenge

  • Required permission: ADMIN:NAMESPACE:{namespace}:CHALLENGE [READ]

func (*Client) AdminGetGoalsShort

func (a *Client) AdminGetGoalsShort(params *AdminGetGoalsParams, authInfo runtime.ClientAuthInfoWriter) (*AdminGetGoalsOK, error)

AdminGetGoalsShort list goals of a challenge

  • Required permission: ADMIN:NAMESPACE:{namespace}:CHALLENGE [READ]

func (*Client) AdminUpdateGoals deprecated

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

AdminUpdateGoals update goal

  • Required permission: ADMIN:NAMESPACE:{namespace}:CHALLENGE [UPDATE]

func (*Client) AdminUpdateGoalsShort

func (a *Client) AdminUpdateGoalsShort(params *AdminUpdateGoalsParams, authInfo runtime.ClientAuthInfoWriter) (*AdminUpdateGoalsOK, error)

AdminUpdateGoalsShort update goal

  • Required permission: ADMIN:NAMESPACE:{namespace}:CHALLENGE [UPDATE]

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientService

type ClientService interface {
	AdminGetGoals(params *AdminGetGoalsParams, authInfo runtime.ClientAuthInfoWriter) (*AdminGetGoalsOK, *AdminGetGoalsUnauthorized, *AdminGetGoalsForbidden, *AdminGetGoalsNotFound, *AdminGetGoalsInternalServerError, error)
	AdminGetGoalsShort(params *AdminGetGoalsParams, authInfo runtime.ClientAuthInfoWriter) (*AdminGetGoalsOK, error)
	AdminCreateGoal(params *AdminCreateGoalParams, authInfo runtime.ClientAuthInfoWriter) (*AdminCreateGoalCreated, *AdminCreateGoalBadRequest, *AdminCreateGoalUnauthorized, *AdminCreateGoalForbidden, *AdminCreateGoalNotFound, *AdminCreateGoalConflict, *AdminCreateGoalInternalServerError, error)
	AdminCreateGoalShort(params *AdminCreateGoalParams, authInfo runtime.ClientAuthInfoWriter) (*AdminCreateGoalCreated, error)
	AdminGetGoal(params *AdminGetGoalParams, authInfo runtime.ClientAuthInfoWriter) (*AdminGetGoalOK, *AdminGetGoalUnauthorized, *AdminGetGoalForbidden, *AdminGetGoalNotFound, *AdminGetGoalInternalServerError, error)
	AdminGetGoalShort(params *AdminGetGoalParams, authInfo runtime.ClientAuthInfoWriter) (*AdminGetGoalOK, error)
	AdminUpdateGoals(params *AdminUpdateGoalsParams, authInfo runtime.ClientAuthInfoWriter) (*AdminUpdateGoalsOK, *AdminUpdateGoalsNotFound, *AdminUpdateGoalsInternalServerError, error)
	AdminUpdateGoalsShort(params *AdminUpdateGoalsParams, authInfo runtime.ClientAuthInfoWriter) (*AdminUpdateGoalsOK, error)
	AdminDeleteGoal(params *AdminDeleteGoalParams, authInfo runtime.ClientAuthInfoWriter) (*AdminDeleteGoalNoContent, *AdminDeleteGoalBadRequest, *AdminDeleteGoalNotFound, *AdminDeleteGoalInternalServerError, error)
	AdminDeleteGoalShort(params *AdminDeleteGoalParams, authInfo runtime.ClientAuthInfoWriter) (*AdminDeleteGoalNoContent, 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 goal configuration API client.

Jump to

Keyboard shortcuts

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