admin_staging_content

package
v0.1.0-alpha.9 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 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 AdminApproveStagingContentBadRequest

type AdminApproveStagingContentBadRequest struct {
	Payload *ugcclientmodels.ResponseError
}

AdminApproveStagingContentBadRequest handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>774405</td><td>Invalid request body</td></tr></table>

func NewAdminApproveStagingContentBadRequest

func NewAdminApproveStagingContentBadRequest() *AdminApproveStagingContentBadRequest

NewAdminApproveStagingContentBadRequest creates a AdminApproveStagingContentBadRequest with default headers values

func (*AdminApproveStagingContentBadRequest) Error

func (*AdminApproveStagingContentBadRequest) GetPayload

func (*AdminApproveStagingContentBadRequest) ToJSONString

func (o *AdminApproveStagingContentBadRequest) ToJSONString() string

type AdminApproveStagingContentForbidden

type AdminApproveStagingContentForbidden struct {
	Payload *ugcclientmodels.ResponseError
}

AdminApproveStagingContentForbidden 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 NewAdminApproveStagingContentForbidden

func NewAdminApproveStagingContentForbidden() *AdminApproveStagingContentForbidden

NewAdminApproveStagingContentForbidden creates a AdminApproveStagingContentForbidden with default headers values

func (*AdminApproveStagingContentForbidden) Error

func (*AdminApproveStagingContentForbidden) GetPayload

func (*AdminApproveStagingContentForbidden) ToJSONString

func (o *AdminApproveStagingContentForbidden) ToJSONString() string

type AdminApproveStagingContentInternalServerError

type AdminApproveStagingContentInternalServerError struct {
	Payload *ugcclientmodels.ResponseError
}

AdminApproveStagingContentInternalServerError handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>774407</td><td>unable to approve staging content</td></tr><tr><td>774408</td><td>nable to save ugc content: shareCode exceed the limit</td></tr></table>

func NewAdminApproveStagingContentInternalServerError

func NewAdminApproveStagingContentInternalServerError() *AdminApproveStagingContentInternalServerError

NewAdminApproveStagingContentInternalServerError creates a AdminApproveStagingContentInternalServerError with default headers values

func (*AdminApproveStagingContentInternalServerError) Error

func (*AdminApproveStagingContentInternalServerError) GetPayload

func (*AdminApproveStagingContentInternalServerError) ToJSONString

type AdminApproveStagingContentNotFound

type AdminApproveStagingContentNotFound struct {
	Payload *ugcclientmodels.ResponseError
}

AdminApproveStagingContentNotFound handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>774406</td><td>staging content not found</td></tr></table>

func NewAdminApproveStagingContentNotFound

func NewAdminApproveStagingContentNotFound() *AdminApproveStagingContentNotFound

NewAdminApproveStagingContentNotFound creates a AdminApproveStagingContentNotFound with default headers values

func (*AdminApproveStagingContentNotFound) Error

func (*AdminApproveStagingContentNotFound) GetPayload

func (*AdminApproveStagingContentNotFound) ToJSONString

func (o *AdminApproveStagingContentNotFound) ToJSONString() string

type AdminApproveStagingContentOK

type AdminApproveStagingContentOK struct {
	Payload *ugcclientmodels.ModelsStagingContentResponse
}

AdminApproveStagingContentOK handles this case with default header values.

content approval created

func NewAdminApproveStagingContentOK

func NewAdminApproveStagingContentOK() *AdminApproveStagingContentOK

NewAdminApproveStagingContentOK creates a AdminApproveStagingContentOK with default headers values

func (*AdminApproveStagingContentOK) Error

func (*AdminApproveStagingContentOK) GetPayload

func (*AdminApproveStagingContentOK) ToJSONString

func (o *AdminApproveStagingContentOK) ToJSONString() string

type AdminApproveStagingContentParams

type AdminApproveStagingContentParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Body*/
	Body *ugcclientmodels.ModelsApproveStagingContentRequest
	/*ContentID
	  content ID

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

AdminApproveStagingContentParams contains all the parameters to send to the API endpoint for the admin approve staging content operation typically these are written to a http.Request

func NewAdminApproveStagingContentParams

func NewAdminApproveStagingContentParams() *AdminApproveStagingContentParams

NewAdminApproveStagingContentParams creates a new AdminApproveStagingContentParams object with the default values initialized.

func NewAdminApproveStagingContentParamsWithContext

func NewAdminApproveStagingContentParamsWithContext(ctx context.Context) *AdminApproveStagingContentParams

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

func NewAdminApproveStagingContentParamsWithHTTPClient

func NewAdminApproveStagingContentParamsWithHTTPClient(client *http.Client) *AdminApproveStagingContentParams

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

func NewAdminApproveStagingContentParamsWithTimeout

func NewAdminApproveStagingContentParamsWithTimeout(timeout time.Duration) *AdminApproveStagingContentParams

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

func (*AdminApproveStagingContentParams) SetAuthInfoWriter

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

SetAuthInfoWriter adds the authInfoWriter to the admin approve staging content params

func (*AdminApproveStagingContentParams) SetBody

SetBody adds the body to the admin approve staging content params

func (*AdminApproveStagingContentParams) SetContentID

func (o *AdminApproveStagingContentParams) SetContentID(contentID string)

SetContentID adds the contentId to the admin approve staging content params

func (*AdminApproveStagingContentParams) SetContext

SetContext adds the context to the admin approve staging content params

func (*AdminApproveStagingContentParams) SetFlightId

func (o *AdminApproveStagingContentParams) SetFlightId(flightId string)

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

func (*AdminApproveStagingContentParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the admin approve staging content params

func (*AdminApproveStagingContentParams) SetHTTPClientTransport

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

SetHTTPClient adds the HTTPClient Transport to the admin approve staging content params

func (*AdminApproveStagingContentParams) SetNamespace

func (o *AdminApproveStagingContentParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the admin approve staging content params

func (*AdminApproveStagingContentParams) SetTimeout

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

SetTimeout adds the timeout to the admin approve staging content params

func (*AdminApproveStagingContentParams) WithBody

WithBody adds the body to the admin approve staging content params

func (*AdminApproveStagingContentParams) WithContentID

WithContentID adds the contentID to the admin approve staging content params

func (*AdminApproveStagingContentParams) WithContext

WithContext adds the context to the admin approve staging content params

func (*AdminApproveStagingContentParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the admin approve staging content params

func (*AdminApproveStagingContentParams) WithNamespace

WithNamespace adds the namespace to the admin approve staging content params

func (*AdminApproveStagingContentParams) WithTimeout

WithTimeout adds the timeout to the admin approve staging content params

func (*AdminApproveStagingContentParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type AdminApproveStagingContentReader

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

AdminApproveStagingContentReader is a Reader for the AdminApproveStagingContent structure.

func (*AdminApproveStagingContentReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type AdminApproveStagingContentUnauthorized

type AdminApproveStagingContentUnauthorized struct {
	Payload *ugcclientmodels.ResponseError
}

AdminApproveStagingContentUnauthorized 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 NewAdminApproveStagingContentUnauthorized

func NewAdminApproveStagingContentUnauthorized() *AdminApproveStagingContentUnauthorized

NewAdminApproveStagingContentUnauthorized creates a AdminApproveStagingContentUnauthorized with default headers values

func (*AdminApproveStagingContentUnauthorized) Error

func (*AdminApproveStagingContentUnauthorized) GetPayload

func (*AdminApproveStagingContentUnauthorized) ToJSONString

type AdminGetStagingContentByIDForbidden

type AdminGetStagingContentByIDForbidden struct {
	Payload *ugcclientmodels.ResponseError
}

AdminGetStagingContentByIDForbidden 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 NewAdminGetStagingContentByIDForbidden

func NewAdminGetStagingContentByIDForbidden() *AdminGetStagingContentByIDForbidden

NewAdminGetStagingContentByIDForbidden creates a AdminGetStagingContentByIDForbidden with default headers values

func (*AdminGetStagingContentByIDForbidden) Error

func (*AdminGetStagingContentByIDForbidden) GetPayload

func (*AdminGetStagingContentByIDForbidden) ToJSONString

func (o *AdminGetStagingContentByIDForbidden) ToJSONString() string

type AdminGetStagingContentByIDInternalServerError

type AdminGetStagingContentByIDInternalServerError struct {
	Payload *ugcclientmodels.ResponseError
}

AdminGetStagingContentByIDInternalServerError handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>774402</td><td>unable to get staging content</td></tr><tr><td>774403</td><td>unable to generate presigned URL</td></tr></table>

func NewAdminGetStagingContentByIDInternalServerError

func NewAdminGetStagingContentByIDInternalServerError() *AdminGetStagingContentByIDInternalServerError

NewAdminGetStagingContentByIDInternalServerError creates a AdminGetStagingContentByIDInternalServerError with default headers values

func (*AdminGetStagingContentByIDInternalServerError) Error

func (*AdminGetStagingContentByIDInternalServerError) GetPayload

func (*AdminGetStagingContentByIDInternalServerError) ToJSONString

type AdminGetStagingContentByIDNotFound

type AdminGetStagingContentByIDNotFound struct {
	Payload *ugcclientmodels.ResponseError
}

AdminGetStagingContentByIDNotFound handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>774401</td><td>staging content not found</td></tr></table>

func NewAdminGetStagingContentByIDNotFound

func NewAdminGetStagingContentByIDNotFound() *AdminGetStagingContentByIDNotFound

NewAdminGetStagingContentByIDNotFound creates a AdminGetStagingContentByIDNotFound with default headers values

func (*AdminGetStagingContentByIDNotFound) Error

func (*AdminGetStagingContentByIDNotFound) GetPayload

func (*AdminGetStagingContentByIDNotFound) ToJSONString

func (o *AdminGetStagingContentByIDNotFound) ToJSONString() string

type AdminGetStagingContentByIDOK

type AdminGetStagingContentByIDOK struct {
	Payload *ugcclientmodels.ModelsStagingContentResponse
}

AdminGetStagingContentByIDOK handles this case with default header values.

staging content

func NewAdminGetStagingContentByIDOK

func NewAdminGetStagingContentByIDOK() *AdminGetStagingContentByIDOK

NewAdminGetStagingContentByIDOK creates a AdminGetStagingContentByIDOK with default headers values

func (*AdminGetStagingContentByIDOK) Error

func (*AdminGetStagingContentByIDOK) GetPayload

func (*AdminGetStagingContentByIDOK) ToJSONString

func (o *AdminGetStagingContentByIDOK) ToJSONString() string

type AdminGetStagingContentByIDParams

type AdminGetStagingContentByIDParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*ContentID
	  content ID

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

AdminGetStagingContentByIDParams contains all the parameters to send to the API endpoint for the admin get staging content by id operation typically these are written to a http.Request

func NewAdminGetStagingContentByIDParams

func NewAdminGetStagingContentByIDParams() *AdminGetStagingContentByIDParams

NewAdminGetStagingContentByIDParams creates a new AdminGetStagingContentByIDParams object with the default values initialized.

func NewAdminGetStagingContentByIDParamsWithContext

func NewAdminGetStagingContentByIDParamsWithContext(ctx context.Context) *AdminGetStagingContentByIDParams

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

func NewAdminGetStagingContentByIDParamsWithHTTPClient

func NewAdminGetStagingContentByIDParamsWithHTTPClient(client *http.Client) *AdminGetStagingContentByIDParams

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

func NewAdminGetStagingContentByIDParamsWithTimeout

func NewAdminGetStagingContentByIDParamsWithTimeout(timeout time.Duration) *AdminGetStagingContentByIDParams

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

func (*AdminGetStagingContentByIDParams) SetAuthInfoWriter

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

SetAuthInfoWriter adds the authInfoWriter to the admin get staging content by id params

func (*AdminGetStagingContentByIDParams) SetContentID

func (o *AdminGetStagingContentByIDParams) SetContentID(contentID string)

SetContentID adds the contentId to the admin get staging content by id params

func (*AdminGetStagingContentByIDParams) SetContext

SetContext adds the context to the admin get staging content by id params

func (*AdminGetStagingContentByIDParams) SetFlightId

func (o *AdminGetStagingContentByIDParams) SetFlightId(flightId string)

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

func (*AdminGetStagingContentByIDParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the admin get staging content by id params

func (*AdminGetStagingContentByIDParams) SetHTTPClientTransport

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

SetHTTPClient adds the HTTPClient Transport to the admin get staging content by id params

func (*AdminGetStagingContentByIDParams) SetNamespace

func (o *AdminGetStagingContentByIDParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the admin get staging content by id params

func (*AdminGetStagingContentByIDParams) SetTimeout

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

SetTimeout adds the timeout to the admin get staging content by id params

func (*AdminGetStagingContentByIDParams) WithContentID

WithContentID adds the contentID to the admin get staging content by id params

func (*AdminGetStagingContentByIDParams) WithContext

WithContext adds the context to the admin get staging content by id params

func (*AdminGetStagingContentByIDParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the admin get staging content by id params

func (*AdminGetStagingContentByIDParams) WithNamespace

WithNamespace adds the namespace to the admin get staging content by id params

func (*AdminGetStagingContentByIDParams) WithTimeout

WithTimeout adds the timeout to the admin get staging content by id params

func (*AdminGetStagingContentByIDParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type AdminGetStagingContentByIDReader

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

AdminGetStagingContentByIDReader is a Reader for the AdminGetStagingContentByID structure.

func (*AdminGetStagingContentByIDReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type AdminGetStagingContentByIDUnauthorized

type AdminGetStagingContentByIDUnauthorized struct {
	Payload *ugcclientmodels.ResponseError
}

AdminGetStagingContentByIDUnauthorized 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 NewAdminGetStagingContentByIDUnauthorized

func NewAdminGetStagingContentByIDUnauthorized() *AdminGetStagingContentByIDUnauthorized

NewAdminGetStagingContentByIDUnauthorized creates a AdminGetStagingContentByIDUnauthorized with default headers values

func (*AdminGetStagingContentByIDUnauthorized) Error

func (*AdminGetStagingContentByIDUnauthorized) GetPayload

func (*AdminGetStagingContentByIDUnauthorized) ToJSONString

type AdminListStagingContentsBadRequest

type AdminListStagingContentsBadRequest struct {
	Payload *ugcclientmodels.ResponseError
}

AdminListStagingContentsBadRequest handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>774301</td><td>invalid paging parameter</td></tr></table>

func NewAdminListStagingContentsBadRequest

func NewAdminListStagingContentsBadRequest() *AdminListStagingContentsBadRequest

NewAdminListStagingContentsBadRequest creates a AdminListStagingContentsBadRequest with default headers values

func (*AdminListStagingContentsBadRequest) Error

func (*AdminListStagingContentsBadRequest) GetPayload

func (*AdminListStagingContentsBadRequest) ToJSONString

func (o *AdminListStagingContentsBadRequest) ToJSONString() string

type AdminListStagingContentsForbidden

type AdminListStagingContentsForbidden struct {
	Payload *ugcclientmodels.ResponseError
}

AdminListStagingContentsForbidden 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 NewAdminListStagingContentsForbidden

func NewAdminListStagingContentsForbidden() *AdminListStagingContentsForbidden

NewAdminListStagingContentsForbidden creates a AdminListStagingContentsForbidden with default headers values

func (*AdminListStagingContentsForbidden) Error

func (*AdminListStagingContentsForbidden) GetPayload

func (*AdminListStagingContentsForbidden) ToJSONString

func (o *AdminListStagingContentsForbidden) ToJSONString() string

type AdminListStagingContentsInternalServerError

type AdminListStagingContentsInternalServerError struct {
	Payload *ugcclientmodels.ResponseError
}

AdminListStagingContentsInternalServerError handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>774302</td><td>unable to get staging content</td></tr><tr><td>774303</td><td>unable to generate presigned URL</td></tr></table>

func NewAdminListStagingContentsInternalServerError

func NewAdminListStagingContentsInternalServerError() *AdminListStagingContentsInternalServerError

NewAdminListStagingContentsInternalServerError creates a AdminListStagingContentsInternalServerError with default headers values

func (*AdminListStagingContentsInternalServerError) Error

func (*AdminListStagingContentsInternalServerError) GetPayload

func (*AdminListStagingContentsInternalServerError) ToJSONString

type AdminListStagingContentsOK

type AdminListStagingContentsOK struct {
	Payload *ugcclientmodels.ModelsPaginatedListStagingContentResponse
}

AdminListStagingContentsOK handles this case with default header values.

list user's staging content

func NewAdminListStagingContentsOK

func NewAdminListStagingContentsOK() *AdminListStagingContentsOK

NewAdminListStagingContentsOK creates a AdminListStagingContentsOK with default headers values

func (*AdminListStagingContentsOK) Error

func (*AdminListStagingContentsOK) GetPayload

func (*AdminListStagingContentsOK) ToJSONString

func (o *AdminListStagingContentsOK) ToJSONString() string

type AdminListStagingContentsParams

type AdminListStagingContentsParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Namespace
	  namespace of the game

	*/
	Namespace string
	/*Limit
	  number of configs per page

	*/
	Limit *int64
	/*Offset
	  offset number to retrieve

	*/
	Offset *int64
	/*SortBy
	    sort query result
	available value:
	- createdTime
	- createdTime:desc
	- createdTime:asc
	- updatedTime
	- updatedTime:desc
	- updatedTime:asc

	*/
	SortBy *string
	/*Status
	  filter by content status [*PENDING*, *REJECTED*]

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

AdminListStagingContentsParams contains all the parameters to send to the API endpoint for the admin list staging contents operation typically these are written to a http.Request

func NewAdminListStagingContentsParams

func NewAdminListStagingContentsParams() *AdminListStagingContentsParams

NewAdminListStagingContentsParams creates a new AdminListStagingContentsParams object with the default values initialized.

func NewAdminListStagingContentsParamsWithContext

func NewAdminListStagingContentsParamsWithContext(ctx context.Context) *AdminListStagingContentsParams

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

func NewAdminListStagingContentsParamsWithHTTPClient

func NewAdminListStagingContentsParamsWithHTTPClient(client *http.Client) *AdminListStagingContentsParams

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

func NewAdminListStagingContentsParamsWithTimeout

func NewAdminListStagingContentsParamsWithTimeout(timeout time.Duration) *AdminListStagingContentsParams

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

func (*AdminListStagingContentsParams) SetAuthInfoWriter

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

SetAuthInfoWriter adds the authInfoWriter to the admin list staging contents params

func (*AdminListStagingContentsParams) SetContext

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

SetContext adds the context to the admin list staging contents params

func (*AdminListStagingContentsParams) SetFlightId

func (o *AdminListStagingContentsParams) SetFlightId(flightId string)

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

func (*AdminListStagingContentsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the admin list staging contents params

func (*AdminListStagingContentsParams) SetHTTPClientTransport

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

SetHTTPClient adds the HTTPClient Transport to the admin list staging contents params

func (*AdminListStagingContentsParams) SetLimit

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

SetLimit adds the limit to the admin list staging contents params

func (*AdminListStagingContentsParams) SetNamespace

func (o *AdminListStagingContentsParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the admin list staging contents params

func (*AdminListStagingContentsParams) SetOffset

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

SetOffset adds the offset to the admin list staging contents params

func (*AdminListStagingContentsParams) SetSortBy

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

SetSortBy adds the sortBy to the admin list staging contents params

func (*AdminListStagingContentsParams) SetStatus

func (o *AdminListStagingContentsParams) SetStatus(status *string)

SetStatus adds the status to the admin list staging contents params

func (*AdminListStagingContentsParams) SetTimeout

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

SetTimeout adds the timeout to the admin list staging contents params

func (*AdminListStagingContentsParams) WithContext

WithContext adds the context to the admin list staging contents params

func (*AdminListStagingContentsParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the admin list staging contents params

func (*AdminListStagingContentsParams) WithLimit

WithLimit adds the limit to the admin list staging contents params

func (*AdminListStagingContentsParams) WithNamespace

WithNamespace adds the namespace to the admin list staging contents params

func (*AdminListStagingContentsParams) WithOffset

WithOffset adds the offset to the admin list staging contents params

func (*AdminListStagingContentsParams) WithSortBy

WithSortBy adds the sortBy to the admin list staging contents params

func (*AdminListStagingContentsParams) WithStatus

WithStatus adds the status to the admin list staging contents params

func (*AdminListStagingContentsParams) WithTimeout

WithTimeout adds the timeout to the admin list staging contents params

func (*AdminListStagingContentsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type AdminListStagingContentsReader

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

AdminListStagingContentsReader is a Reader for the AdminListStagingContents structure.

func (*AdminListStagingContentsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type AdminListStagingContentsUnauthorized

type AdminListStagingContentsUnauthorized struct {
	Payload *ugcclientmodels.ResponseError
}

AdminListStagingContentsUnauthorized 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 NewAdminListStagingContentsUnauthorized

func NewAdminListStagingContentsUnauthorized() *AdminListStagingContentsUnauthorized

NewAdminListStagingContentsUnauthorized creates a AdminListStagingContentsUnauthorized with default headers values

func (*AdminListStagingContentsUnauthorized) Error

func (*AdminListStagingContentsUnauthorized) GetPayload

func (*AdminListStagingContentsUnauthorized) ToJSONString

func (o *AdminListStagingContentsUnauthorized) ToJSONString() string

type AdminListUserStagingContentsBadRequest

type AdminListUserStagingContentsBadRequest struct {
	Payload *ugcclientmodels.ResponseError
}

AdminListUserStagingContentsBadRequest handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>774301</td><td>invalid paging parameter</td></tr></table>

func NewAdminListUserStagingContentsBadRequest

func NewAdminListUserStagingContentsBadRequest() *AdminListUserStagingContentsBadRequest

NewAdminListUserStagingContentsBadRequest creates a AdminListUserStagingContentsBadRequest with default headers values

func (*AdminListUserStagingContentsBadRequest) Error

func (*AdminListUserStagingContentsBadRequest) GetPayload

func (*AdminListUserStagingContentsBadRequest) ToJSONString

type AdminListUserStagingContentsForbidden

type AdminListUserStagingContentsForbidden struct {
	Payload *ugcclientmodels.ResponseError
}

AdminListUserStagingContentsForbidden 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 NewAdminListUserStagingContentsForbidden

func NewAdminListUserStagingContentsForbidden() *AdminListUserStagingContentsForbidden

NewAdminListUserStagingContentsForbidden creates a AdminListUserStagingContentsForbidden with default headers values

func (*AdminListUserStagingContentsForbidden) Error

func (*AdminListUserStagingContentsForbidden) GetPayload

func (*AdminListUserStagingContentsForbidden) ToJSONString

type AdminListUserStagingContentsInternalServerError

type AdminListUserStagingContentsInternalServerError struct {
	Payload *ugcclientmodels.ResponseError
}

AdminListUserStagingContentsInternalServerError handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>774302</td><td>unable to get staging content</td></tr><tr><td>774303</td><td>unable to generate presigned URL</td></tr></table>

func NewAdminListUserStagingContentsInternalServerError

func NewAdminListUserStagingContentsInternalServerError() *AdminListUserStagingContentsInternalServerError

NewAdminListUserStagingContentsInternalServerError creates a AdminListUserStagingContentsInternalServerError with default headers values

func (*AdminListUserStagingContentsInternalServerError) Error

func (*AdminListUserStagingContentsInternalServerError) GetPayload

func (*AdminListUserStagingContentsInternalServerError) ToJSONString

type AdminListUserStagingContentsOK

type AdminListUserStagingContentsOK struct {
	Payload *ugcclientmodels.ModelsPaginatedListStagingContentResponse
}

AdminListUserStagingContentsOK handles this case with default header values.

list user's staging content

func NewAdminListUserStagingContentsOK

func NewAdminListUserStagingContentsOK() *AdminListUserStagingContentsOK

NewAdminListUserStagingContentsOK creates a AdminListUserStagingContentsOK with default headers values

func (*AdminListUserStagingContentsOK) Error

func (*AdminListUserStagingContentsOK) GetPayload

func (*AdminListUserStagingContentsOK) ToJSONString

func (o *AdminListUserStagingContentsOK) ToJSONString() string

type AdminListUserStagingContentsParams

type AdminListUserStagingContentsParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Namespace
	  namespace of the game

	*/
	Namespace string
	/*UserID
	  user ID

	*/
	UserID string
	/*Limit
	  number of configs per page

	*/
	Limit *int64
	/*Offset
	  offset number to retrieve

	*/
	Offset *int64
	/*SortBy
	    sort query result
	available value:
	- createdTime
	- createdTime:desc
	- createdTime:asc
	- updatedTime
	- updatedTime:desc
	- updatedTime:asc

	*/
	SortBy *string
	/*Status
	  filter by content status [*PENDING*, *REJECTED*]

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

AdminListUserStagingContentsParams contains all the parameters to send to the API endpoint for the admin list user staging contents operation typically these are written to a http.Request

func NewAdminListUserStagingContentsParams

func NewAdminListUserStagingContentsParams() *AdminListUserStagingContentsParams

NewAdminListUserStagingContentsParams creates a new AdminListUserStagingContentsParams object with the default values initialized.

func NewAdminListUserStagingContentsParamsWithContext

func NewAdminListUserStagingContentsParamsWithContext(ctx context.Context) *AdminListUserStagingContentsParams

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

func NewAdminListUserStagingContentsParamsWithHTTPClient

func NewAdminListUserStagingContentsParamsWithHTTPClient(client *http.Client) *AdminListUserStagingContentsParams

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

func NewAdminListUserStagingContentsParamsWithTimeout

func NewAdminListUserStagingContentsParamsWithTimeout(timeout time.Duration) *AdminListUserStagingContentsParams

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

func (*AdminListUserStagingContentsParams) SetAuthInfoWriter

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

SetAuthInfoWriter adds the authInfoWriter to the admin list user staging contents params

func (*AdminListUserStagingContentsParams) SetContext

SetContext adds the context to the admin list user staging contents params

func (*AdminListUserStagingContentsParams) SetFlightId

func (o *AdminListUserStagingContentsParams) SetFlightId(flightId string)

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

func (*AdminListUserStagingContentsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the admin list user staging contents params

func (*AdminListUserStagingContentsParams) SetHTTPClientTransport

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

SetHTTPClient adds the HTTPClient Transport to the admin list user staging contents params

func (*AdminListUserStagingContentsParams) SetLimit

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

SetLimit adds the limit to the admin list user staging contents params

func (*AdminListUserStagingContentsParams) SetNamespace

func (o *AdminListUserStagingContentsParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the admin list user staging contents params

func (*AdminListUserStagingContentsParams) SetOffset

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

SetOffset adds the offset to the admin list user staging contents params

func (*AdminListUserStagingContentsParams) SetSortBy

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

SetSortBy adds the sortBy to the admin list user staging contents params

func (*AdminListUserStagingContentsParams) SetStatus

func (o *AdminListUserStagingContentsParams) SetStatus(status *string)

SetStatus adds the status to the admin list user staging contents params

func (*AdminListUserStagingContentsParams) SetTimeout

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

SetTimeout adds the timeout to the admin list user staging contents params

func (*AdminListUserStagingContentsParams) SetUserID

func (o *AdminListUserStagingContentsParams) SetUserID(userID string)

SetUserID adds the userId to the admin list user staging contents params

func (*AdminListUserStagingContentsParams) WithContext

WithContext adds the context to the admin list user staging contents params

func (*AdminListUserStagingContentsParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the admin list user staging contents params

func (*AdminListUserStagingContentsParams) WithLimit

WithLimit adds the limit to the admin list user staging contents params

func (*AdminListUserStagingContentsParams) WithNamespace

WithNamespace adds the namespace to the admin list user staging contents params

func (*AdminListUserStagingContentsParams) WithOffset

WithOffset adds the offset to the admin list user staging contents params

func (*AdminListUserStagingContentsParams) WithSortBy

WithSortBy adds the sortBy to the admin list user staging contents params

func (*AdminListUserStagingContentsParams) WithStatus

WithStatus adds the status to the admin list user staging contents params

func (*AdminListUserStagingContentsParams) WithTimeout

WithTimeout adds the timeout to the admin list user staging contents params

func (*AdminListUserStagingContentsParams) WithUserID

WithUserID adds the userID to the admin list user staging contents params

func (*AdminListUserStagingContentsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type AdminListUserStagingContentsReader

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

AdminListUserStagingContentsReader is a Reader for the AdminListUserStagingContents structure.

func (*AdminListUserStagingContentsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type AdminListUserStagingContentsUnauthorized

type AdminListUserStagingContentsUnauthorized struct {
	Payload *ugcclientmodels.ResponseError
}

AdminListUserStagingContentsUnauthorized 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 NewAdminListUserStagingContentsUnauthorized

func NewAdminListUserStagingContentsUnauthorized() *AdminListUserStagingContentsUnauthorized

NewAdminListUserStagingContentsUnauthorized creates a AdminListUserStagingContentsUnauthorized with default headers values

func (*AdminListUserStagingContentsUnauthorized) Error

func (*AdminListUserStagingContentsUnauthorized) GetPayload

func (*AdminListUserStagingContentsUnauthorized) ToJSONString

type Client

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

Client for admin staging content API

func (*Client) AdminApproveStagingContent deprecated

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

AdminApproveStagingContent approve or reject content Approved content will shown to public player. Rejected content stays in staging area and couldn't be seen by other player

func (*Client) AdminApproveStagingContentShort

func (a *Client) AdminApproveStagingContentShort(params *AdminApproveStagingContentParams, authInfo runtime.ClientAuthInfoWriter) (*AdminApproveStagingContentOK, error)

AdminApproveStagingContentShort approve or reject content Approved content will shown to public player. Rejected content stays in staging area and couldn't be seen by other player

func (*Client) AdminGetStagingContentByID deprecated

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

AdminGetStagingContentByID get staging content by id Get staging content by ID

func (*Client) AdminGetStagingContentByIDShort

func (a *Client) AdminGetStagingContentByIDShort(params *AdminGetStagingContentByIDParams, authInfo runtime.ClientAuthInfoWriter) (*AdminGetStagingContentByIDOK, error)

AdminGetStagingContentByIDShort get staging content by id Get staging content by ID

func (*Client) AdminListStagingContents deprecated

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

AdminListStagingContents list staging contents List content that need admin's approval

func (*Client) AdminListStagingContentsShort

func (a *Client) AdminListStagingContentsShort(params *AdminListStagingContentsParams, authInfo runtime.ClientAuthInfoWriter) (*AdminListStagingContentsOK, error)

AdminListStagingContentsShort list staging contents List content that need admin's approval

func (*Client) AdminListUserStagingContents deprecated

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

AdminListUserStagingContents list user staging contents List user content's that need admin approval

func (*Client) AdminListUserStagingContentsShort

func (a *Client) AdminListUserStagingContentsShort(params *AdminListUserStagingContentsParams, authInfo runtime.ClientAuthInfoWriter) (*AdminListUserStagingContentsOK, error)

AdminListUserStagingContentsShort list user staging contents List user content's that need admin approval

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientService

type ClientService interface {
	AdminListStagingContents(params *AdminListStagingContentsParams, authInfo runtime.ClientAuthInfoWriter) (*AdminListStagingContentsOK, *AdminListStagingContentsBadRequest, *AdminListStagingContentsUnauthorized, *AdminListStagingContentsForbidden, *AdminListStagingContentsInternalServerError, error)
	AdminListStagingContentsShort(params *AdminListStagingContentsParams, authInfo runtime.ClientAuthInfoWriter) (*AdminListStagingContentsOK, error)
	AdminGetStagingContentByID(params *AdminGetStagingContentByIDParams, authInfo runtime.ClientAuthInfoWriter) (*AdminGetStagingContentByIDOK, *AdminGetStagingContentByIDUnauthorized, *AdminGetStagingContentByIDForbidden, *AdminGetStagingContentByIDNotFound, *AdminGetStagingContentByIDInternalServerError, error)
	AdminGetStagingContentByIDShort(params *AdminGetStagingContentByIDParams, authInfo runtime.ClientAuthInfoWriter) (*AdminGetStagingContentByIDOK, error)
	AdminApproveStagingContent(params *AdminApproveStagingContentParams, authInfo runtime.ClientAuthInfoWriter) (*AdminApproveStagingContentOK, *AdminApproveStagingContentBadRequest, *AdminApproveStagingContentUnauthorized, *AdminApproveStagingContentForbidden, *AdminApproveStagingContentNotFound, *AdminApproveStagingContentInternalServerError, error)
	AdminApproveStagingContentShort(params *AdminApproveStagingContentParams, authInfo runtime.ClientAuthInfoWriter) (*AdminApproveStagingContentOK, error)
	AdminListUserStagingContents(params *AdminListUserStagingContentsParams, authInfo runtime.ClientAuthInfoWriter) (*AdminListUserStagingContentsOK, *AdminListUserStagingContentsBadRequest, *AdminListUserStagingContentsUnauthorized, *AdminListUserStagingContentsForbidden, *AdminListUserStagingContentsInternalServerError, error)
	AdminListUserStagingContentsShort(params *AdminListUserStagingContentsParams, authInfo runtime.ClientAuthInfoWriter) (*AdminListUserStagingContentsOK, 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 admin staging content API client.

Jump to

Keyboard shortcuts

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