achievement_platform

package
v0.23.0 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for achievement platform API

func (*Client) GetXblUserAchievements added in v0.23.0

GetXblUserAchievements gets xbox live user achievements

This API is used to get xbox live user achievements(Only for test).<p>Other detail info: <ul><li><i>Required permission</i>: resource=ADMIN:NAMESPACE:{namespace}:USER:{userId}:ACHIEVEMENT, action=2 (READ)</li></ul>

func (*Client) GetXblUserAchievementsShort added in v0.23.0

func (a *Client) GetXblUserAchievementsShort(params *GetXblUserAchievementsParams, authInfo runtime.ClientAuthInfoWriter) (*GetXblUserAchievementsOK, error)

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UnlockSteamUserAchievement

UnlockSteamUserAchievement unlocks steam achievement

This API is used to unlock steam achievement.<p>Other detail info: <ul><li><i>Required permission</i>: resource=ADMIN:NAMESPACE:{namespace}:USER:{userId}:ACHIEVEMENT, action=4 (UPDATE)</li></ul>

func (*Client) UpdateXblUserAchievement

UpdateXblUserAchievement updates xbox live achievements

This API is used to update xbox live achievements.<p>Other detail info: <ul><li><i>Required permission</i>: resource=ADMIN:NAMESPACE:{namespace}:USER:{userId}:ACHIEVEMENT, action=4 (UPDATE)</li></ul>

type ClientService

ClientService is the interface for Client methods

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService

New creates a new achievement platform API client.

type GetXblUserAchievementsBadRequest added in v0.23.0

type GetXblUserAchievementsBadRequest struct {
	Payload *platformclientmodels.ValidationErrorEntity
}

GetXblUserAchievementsBadRequest handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20002</td><td>validation error</td></tr></table>

func NewGetXblUserAchievementsBadRequest added in v0.23.0

func NewGetXblUserAchievementsBadRequest() *GetXblUserAchievementsBadRequest

NewGetXblUserAchievementsBadRequest creates a GetXblUserAchievementsBadRequest with default headers values

func (*GetXblUserAchievementsBadRequest) Error added in v0.23.0

func (*GetXblUserAchievementsBadRequest) GetPayload added in v0.23.0

type GetXblUserAchievementsOK added in v0.23.0

type GetXblUserAchievementsOK struct {
	Payload *platformclientmodels.ADTOObjectForQueryingXboxUserAchievements
}

GetXblUserAchievementsOK handles this case with default header values.

OK

func NewGetXblUserAchievementsOK added in v0.23.0

func NewGetXblUserAchievementsOK() *GetXblUserAchievementsOK

NewGetXblUserAchievementsOK creates a GetXblUserAchievementsOK with default headers values

func (*GetXblUserAchievementsOK) Error added in v0.23.0

func (o *GetXblUserAchievementsOK) Error() string

func (*GetXblUserAchievementsOK) GetPayload added in v0.23.0

type GetXblUserAchievementsParams added in v0.23.0

type GetXblUserAchievementsParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Namespace*/
	Namespace string
	/*UserID*/
	UserID string
	/*XboxUserID*/
	XboxUserID string

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

GetXblUserAchievementsParams contains all the parameters to send to the API endpoint for the get xbl user achievements operation typically these are written to a http.Request

func NewGetXblUserAchievementsParams added in v0.23.0

func NewGetXblUserAchievementsParams() *GetXblUserAchievementsParams

NewGetXblUserAchievementsParams creates a new GetXblUserAchievementsParams object with the default values initialized.

func NewGetXblUserAchievementsParamsWithContext added in v0.23.0

func NewGetXblUserAchievementsParamsWithContext(ctx context.Context) *GetXblUserAchievementsParams

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

func NewGetXblUserAchievementsParamsWithHTTPClient added in v0.23.0

func NewGetXblUserAchievementsParamsWithHTTPClient(client *http.Client) *GetXblUserAchievementsParams

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

func NewGetXblUserAchievementsParamsWithTimeout added in v0.23.0

func NewGetXblUserAchievementsParamsWithTimeout(timeout time.Duration) *GetXblUserAchievementsParams

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

func (*GetXblUserAchievementsParams) SetAuthInfoWriter added in v0.23.0

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

SetAuthInfoWriter adds the authInfoWriter to the get xbl user achievements params

func (*GetXblUserAchievementsParams) SetContext added in v0.23.0

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

SetContext adds the context to the get xbl user achievements params

func (*GetXblUserAchievementsParams) SetHTTPClient added in v0.23.0

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

SetHTTPClient adds the HTTPClient to the get xbl user achievements params

func (*GetXblUserAchievementsParams) SetHTTPClientTransport added in v0.23.0

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

SetHTTPClient adds the HTTPClient Transport to the get xbl user achievements params

func (*GetXblUserAchievementsParams) SetNamespace added in v0.23.0

func (o *GetXblUserAchievementsParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the get xbl user achievements params

func (*GetXblUserAchievementsParams) SetTimeout added in v0.23.0

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

SetTimeout adds the timeout to the get xbl user achievements params

func (*GetXblUserAchievementsParams) SetUserID added in v0.23.0

func (o *GetXblUserAchievementsParams) SetUserID(userID string)

SetUserID adds the userId to the get xbl user achievements params

func (*GetXblUserAchievementsParams) SetXboxUserID added in v0.23.0

func (o *GetXblUserAchievementsParams) SetXboxUserID(xboxUserID string)

SetXboxUserID adds the xboxUserId to the get xbl user achievements params

func (*GetXblUserAchievementsParams) WithContext added in v0.23.0

WithContext adds the context to the get xbl user achievements params

func (*GetXblUserAchievementsParams) WithHTTPClient added in v0.23.0

WithHTTPClient adds the HTTPClient to the get xbl user achievements params

func (*GetXblUserAchievementsParams) WithNamespace added in v0.23.0

WithNamespace adds the namespace to the get xbl user achievements params

func (*GetXblUserAchievementsParams) WithTimeout added in v0.23.0

WithTimeout adds the timeout to the get xbl user achievements params

func (*GetXblUserAchievementsParams) WithUserID added in v0.23.0

WithUserID adds the userID to the get xbl user achievements params

func (*GetXblUserAchievementsParams) WithXboxUserID added in v0.23.0

func (o *GetXblUserAchievementsParams) WithXboxUserID(xboxUserID string) *GetXblUserAchievementsParams

WithXboxUserID adds the xboxUserID to the get xbl user achievements params

func (*GetXblUserAchievementsParams) WriteToRequest added in v0.23.0

WriteToRequest writes these params to a swagger request

type GetXblUserAchievementsReader added in v0.23.0

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

GetXblUserAchievementsReader is a Reader for the GetXblUserAchievements structure.

func (*GetXblUserAchievementsReader) ReadResponse added in v0.23.0

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

ReadResponse reads a server response into the received o.

type UnlockSteamUserAchievementBadRequest

type UnlockSteamUserAchievementBadRequest struct {
	Payload *platformclientmodels.ValidationErrorEntity
}

UnlockSteamUserAchievementBadRequest handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20002</td><td>validation error</td></tr></table>

func NewUnlockSteamUserAchievementBadRequest

func NewUnlockSteamUserAchievementBadRequest() *UnlockSteamUserAchievementBadRequest

NewUnlockSteamUserAchievementBadRequest creates a UnlockSteamUserAchievementBadRequest with default headers values

func (*UnlockSteamUserAchievementBadRequest) Error

func (*UnlockSteamUserAchievementBadRequest) GetPayload

type UnlockSteamUserAchievementNoContent

type UnlockSteamUserAchievementNoContent struct {
}

UnlockSteamUserAchievementNoContent handles this case with default header values.

No Content

func NewUnlockSteamUserAchievementNoContent

func NewUnlockSteamUserAchievementNoContent() *UnlockSteamUserAchievementNoContent

NewUnlockSteamUserAchievementNoContent creates a UnlockSteamUserAchievementNoContent with default headers values

func (*UnlockSteamUserAchievementNoContent) Error

type UnlockSteamUserAchievementNotFound

type UnlockSteamUserAchievementNotFound struct {
	Payload *platformclientmodels.ErrorEntity
}

UnlockSteamUserAchievementNotFound handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>39244</td><td>Steam config does not exist</td></tr><tr><td>39245</td><td>Steam app id does not exist</td></tr></table>

func NewUnlockSteamUserAchievementNotFound

func NewUnlockSteamUserAchievementNotFound() *UnlockSteamUserAchievementNotFound

NewUnlockSteamUserAchievementNotFound creates a UnlockSteamUserAchievementNotFound with default headers values

func (*UnlockSteamUserAchievementNotFound) Error

func (*UnlockSteamUserAchievementNotFound) GetPayload

type UnlockSteamUserAchievementParams

type UnlockSteamUserAchievementParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Body*/
	Body *platformclientmodels.ADTOObjectForUnlockSteamAchievementAPI
	/*Namespace*/
	Namespace string
	/*UserID*/
	UserID string

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

UnlockSteamUserAchievementParams contains all the parameters to send to the API endpoint for the unlock steam user achievement operation typically these are written to a http.Request

func NewUnlockSteamUserAchievementParams

func NewUnlockSteamUserAchievementParams() *UnlockSteamUserAchievementParams

NewUnlockSteamUserAchievementParams creates a new UnlockSteamUserAchievementParams object with the default values initialized.

func NewUnlockSteamUserAchievementParamsWithContext

func NewUnlockSteamUserAchievementParamsWithContext(ctx context.Context) *UnlockSteamUserAchievementParams

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

func NewUnlockSteamUserAchievementParamsWithHTTPClient

func NewUnlockSteamUserAchievementParamsWithHTTPClient(client *http.Client) *UnlockSteamUserAchievementParams

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

func NewUnlockSteamUserAchievementParamsWithTimeout

func NewUnlockSteamUserAchievementParamsWithTimeout(timeout time.Duration) *UnlockSteamUserAchievementParams

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

func (*UnlockSteamUserAchievementParams) SetAuthInfoWriter

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

SetAuthInfoWriter adds the authInfoWriter to the unlock steam user achievement params

func (*UnlockSteamUserAchievementParams) SetBody

SetBody adds the body to the unlock steam user achievement params

func (*UnlockSteamUserAchievementParams) SetContext

SetContext adds the context to the unlock steam user achievement params

func (*UnlockSteamUserAchievementParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the unlock steam user achievement params

func (*UnlockSteamUserAchievementParams) SetHTTPClientTransport

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

SetHTTPClient adds the HTTPClient Transport to the unlock steam user achievement params

func (*UnlockSteamUserAchievementParams) SetNamespace

func (o *UnlockSteamUserAchievementParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the unlock steam user achievement params

func (*UnlockSteamUserAchievementParams) SetTimeout

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

SetTimeout adds the timeout to the unlock steam user achievement params

func (*UnlockSteamUserAchievementParams) SetUserID

func (o *UnlockSteamUserAchievementParams) SetUserID(userID string)

SetUserID adds the userId to the unlock steam user achievement params

func (*UnlockSteamUserAchievementParams) WithBody

WithBody adds the body to the unlock steam user achievement params

func (*UnlockSteamUserAchievementParams) WithContext

WithContext adds the context to the unlock steam user achievement params

func (*UnlockSteamUserAchievementParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the unlock steam user achievement params

func (*UnlockSteamUserAchievementParams) WithNamespace

WithNamespace adds the namespace to the unlock steam user achievement params

func (*UnlockSteamUserAchievementParams) WithTimeout

WithTimeout adds the timeout to the unlock steam user achievement params

func (*UnlockSteamUserAchievementParams) WithUserID

WithUserID adds the userID to the unlock steam user achievement params

func (*UnlockSteamUserAchievementParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UnlockSteamUserAchievementReader

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

UnlockSteamUserAchievementReader is a Reader for the UnlockSteamUserAchievement structure.

func (*UnlockSteamUserAchievementReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateXblUserAchievementBadRequest

type UpdateXblUserAchievementBadRequest struct {
	Payload *platformclientmodels.ValidationErrorEntity
}

UpdateXblUserAchievementBadRequest handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20002</td><td>validation error</td></tr></table>

func NewUpdateXblUserAchievementBadRequest

func NewUpdateXblUserAchievementBadRequest() *UpdateXblUserAchievementBadRequest

NewUpdateXblUserAchievementBadRequest creates a UpdateXblUserAchievementBadRequest with default headers values

func (*UpdateXblUserAchievementBadRequest) Error

func (*UpdateXblUserAchievementBadRequest) GetPayload

type UpdateXblUserAchievementNoContent

type UpdateXblUserAchievementNoContent struct {
}

UpdateXblUserAchievementNoContent handles this case with default header values.

No Content

func NewUpdateXblUserAchievementNoContent

func NewUpdateXblUserAchievementNoContent() *UpdateXblUserAchievementNoContent

NewUpdateXblUserAchievementNoContent creates a UpdateXblUserAchievementNoContent with default headers values

func (*UpdateXblUserAchievementNoContent) Error

type UpdateXblUserAchievementParams

type UpdateXblUserAchievementParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Body*/
	Body *platformclientmodels.ADTOObjectForUpdateXboxAchievementCompletePercentageAPI
	/*Namespace*/
	Namespace string
	/*UserID*/
	UserID string

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

UpdateXblUserAchievementParams contains all the parameters to send to the API endpoint for the update xbl user achievement operation typically these are written to a http.Request

func NewUpdateXblUserAchievementParams

func NewUpdateXblUserAchievementParams() *UpdateXblUserAchievementParams

NewUpdateXblUserAchievementParams creates a new UpdateXblUserAchievementParams object with the default values initialized.

func NewUpdateXblUserAchievementParamsWithContext

func NewUpdateXblUserAchievementParamsWithContext(ctx context.Context) *UpdateXblUserAchievementParams

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

func NewUpdateXblUserAchievementParamsWithHTTPClient

func NewUpdateXblUserAchievementParamsWithHTTPClient(client *http.Client) *UpdateXblUserAchievementParams

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

func NewUpdateXblUserAchievementParamsWithTimeout

func NewUpdateXblUserAchievementParamsWithTimeout(timeout time.Duration) *UpdateXblUserAchievementParams

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

func (*UpdateXblUserAchievementParams) SetAuthInfoWriter

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

SetAuthInfoWriter adds the authInfoWriter to the update xbl user achievement params

func (*UpdateXblUserAchievementParams) SetBody

SetBody adds the body to the update xbl user achievement params

func (*UpdateXblUserAchievementParams) SetContext

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

SetContext adds the context to the update xbl user achievement params

func (*UpdateXblUserAchievementParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update xbl user achievement params

func (*UpdateXblUserAchievementParams) SetHTTPClientTransport

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

SetHTTPClient adds the HTTPClient Transport to the update xbl user achievement params

func (*UpdateXblUserAchievementParams) SetNamespace

func (o *UpdateXblUserAchievementParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the update xbl user achievement params

func (*UpdateXblUserAchievementParams) SetTimeout

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

SetTimeout adds the timeout to the update xbl user achievement params

func (*UpdateXblUserAchievementParams) SetUserID

func (o *UpdateXblUserAchievementParams) SetUserID(userID string)

SetUserID adds the userId to the update xbl user achievement params

func (*UpdateXblUserAchievementParams) WithBody

WithBody adds the body to the update xbl user achievement params

func (*UpdateXblUserAchievementParams) WithContext

WithContext adds the context to the update xbl user achievement params

func (*UpdateXblUserAchievementParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the update xbl user achievement params

func (*UpdateXblUserAchievementParams) WithNamespace

WithNamespace adds the namespace to the update xbl user achievement params

func (*UpdateXblUserAchievementParams) WithTimeout

WithTimeout adds the timeout to the update xbl user achievement params

func (*UpdateXblUserAchievementParams) WithUserID

WithUserID adds the userID to the update xbl user achievement params

func (*UpdateXblUserAchievementParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UpdateXblUserAchievementReader

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

UpdateXblUserAchievementReader is a Reader for the UpdateXblUserAchievement structure.

func (*UpdateXblUserAchievementReader) ReadResponse

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

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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