admin_type

package
v0.62.0 Latest Latest
Warning

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

Go to latest
Published: Jan 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 AdminCreateTypeBadRequest

type AdminCreateTypeBadRequest struct {
	Payload *ugcclientmodels.ResponseError
}

AdminCreateTypeBadRequest handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>771701</td><td>Malformed request/Invalid request body</td></tr></table>

func NewAdminCreateTypeBadRequest

func NewAdminCreateTypeBadRequest() *AdminCreateTypeBadRequest

NewAdminCreateTypeBadRequest creates a AdminCreateTypeBadRequest with default headers values

func (*AdminCreateTypeBadRequest) Error

func (o *AdminCreateTypeBadRequest) Error() string

func (*AdminCreateTypeBadRequest) GetPayload

func (*AdminCreateTypeBadRequest) ToJSONString added in v0.25.0

func (o *AdminCreateTypeBadRequest) ToJSONString() string

type AdminCreateTypeConflict

type AdminCreateTypeConflict struct {
	Payload *ugcclientmodels.ResponseError
}

AdminCreateTypeConflict handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>771703</td><td>Conflicted resource indentifier</td></tr></table>

func NewAdminCreateTypeConflict

func NewAdminCreateTypeConflict() *AdminCreateTypeConflict

NewAdminCreateTypeConflict creates a AdminCreateTypeConflict with default headers values

func (*AdminCreateTypeConflict) Error

func (o *AdminCreateTypeConflict) Error() string

func (*AdminCreateTypeConflict) GetPayload

func (*AdminCreateTypeConflict) ToJSONString added in v0.25.0

func (o *AdminCreateTypeConflict) ToJSONString() string

type AdminCreateTypeCreated

type AdminCreateTypeCreated struct {
	Payload *ugcclientmodels.ModelsCreateTypeResponse
}

AdminCreateTypeCreated handles this case with default header values.

types created

func NewAdminCreateTypeCreated

func NewAdminCreateTypeCreated() *AdminCreateTypeCreated

NewAdminCreateTypeCreated creates a AdminCreateTypeCreated with default headers values

func (*AdminCreateTypeCreated) Error

func (o *AdminCreateTypeCreated) Error() string

func (*AdminCreateTypeCreated) GetPayload

func (*AdminCreateTypeCreated) ToJSONString added in v0.25.0

func (o *AdminCreateTypeCreated) ToJSONString() string

type AdminCreateTypeInternalServerError

type AdminCreateTypeInternalServerError struct {
	Payload *ugcclientmodels.ResponseError
}

AdminCreateTypeInternalServerError handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>771702</td><td>Unable to save ugc type</td></tr></table>

func NewAdminCreateTypeInternalServerError

func NewAdminCreateTypeInternalServerError() *AdminCreateTypeInternalServerError

NewAdminCreateTypeInternalServerError creates a AdminCreateTypeInternalServerError with default headers values

func (*AdminCreateTypeInternalServerError) Error

func (*AdminCreateTypeInternalServerError) GetPayload

func (*AdminCreateTypeInternalServerError) ToJSONString added in v0.25.0

func (o *AdminCreateTypeInternalServerError) ToJSONString() string

type AdminCreateTypeParams

type AdminCreateTypeParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Body*/
	Body *ugcclientmodels.ModelsCreateTypeRequest
	/*Namespace
	  namespace of the game

	*/
	Namespace string

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

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

func NewAdminCreateTypeParams

func NewAdminCreateTypeParams() *AdminCreateTypeParams

NewAdminCreateTypeParams creates a new AdminCreateTypeParams object with the default values initialized.

func NewAdminCreateTypeParamsWithContext

func NewAdminCreateTypeParamsWithContext(ctx context.Context) *AdminCreateTypeParams

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

func NewAdminCreateTypeParamsWithHTTPClient

func NewAdminCreateTypeParamsWithHTTPClient(client *http.Client) *AdminCreateTypeParams

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

func NewAdminCreateTypeParamsWithTimeout

func NewAdminCreateTypeParamsWithTimeout(timeout time.Duration) *AdminCreateTypeParams

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

func (*AdminCreateTypeParams) SetAuthInfoWriter added in v0.17.0

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

SetAuthInfoWriter adds the authInfoWriter to the admin create type params

func (*AdminCreateTypeParams) SetBody

SetBody adds the body to the admin create type params

func (*AdminCreateTypeParams) SetContext

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

SetContext adds the context to the admin create type params

func (*AdminCreateTypeParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the admin create type params

func (*AdminCreateTypeParams) SetHTTPClientTransport added in v0.19.0

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

SetHTTPClient adds the HTTPClient Transport to the admin create type params

func (*AdminCreateTypeParams) SetNamespace

func (o *AdminCreateTypeParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the admin create type params

func (*AdminCreateTypeParams) SetTimeout

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

SetTimeout adds the timeout to the admin create type params

func (*AdminCreateTypeParams) WithBody

WithBody adds the body to the admin create type params

func (*AdminCreateTypeParams) WithContext

WithContext adds the context to the admin create type params

func (*AdminCreateTypeParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the admin create type params

func (*AdminCreateTypeParams) WithNamespace

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

WithNamespace adds the namespace to the admin create type params

func (*AdminCreateTypeParams) WithTimeout

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

WithTimeout adds the timeout to the admin create type params

func (*AdminCreateTypeParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type AdminCreateTypeReader

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

AdminCreateTypeReader is a Reader for the AdminCreateType structure.

func (*AdminCreateTypeReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type AdminCreateTypeUnauthorized

type AdminCreateTypeUnauthorized struct {
	Payload *ugcclientmodels.ResponseError
}

AdminCreateTypeUnauthorized 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 NewAdminCreateTypeUnauthorized

func NewAdminCreateTypeUnauthorized() *AdminCreateTypeUnauthorized

NewAdminCreateTypeUnauthorized creates a AdminCreateTypeUnauthorized with default headers values

func (*AdminCreateTypeUnauthorized) Error

func (*AdminCreateTypeUnauthorized) GetPayload

func (*AdminCreateTypeUnauthorized) ToJSONString added in v0.25.0

func (o *AdminCreateTypeUnauthorized) ToJSONString() string

type AdminDeleteTypeInternalServerError

type AdminDeleteTypeInternalServerError struct {
	Payload *ugcclientmodels.ResponseError
}

AdminDeleteTypeInternalServerError handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>772004</td><td>Unable delete type</td></tr></table>

func NewAdminDeleteTypeInternalServerError

func NewAdminDeleteTypeInternalServerError() *AdminDeleteTypeInternalServerError

NewAdminDeleteTypeInternalServerError creates a AdminDeleteTypeInternalServerError with default headers values

func (*AdminDeleteTypeInternalServerError) Error

func (*AdminDeleteTypeInternalServerError) GetPayload

func (*AdminDeleteTypeInternalServerError) ToJSONString added in v0.25.0

func (o *AdminDeleteTypeInternalServerError) ToJSONString() string

type AdminDeleteTypeNoContent

type AdminDeleteTypeNoContent struct {
}

AdminDeleteTypeNoContent handles this case with default header values.

Types deleted

func NewAdminDeleteTypeNoContent

func NewAdminDeleteTypeNoContent() *AdminDeleteTypeNoContent

NewAdminDeleteTypeNoContent creates a AdminDeleteTypeNoContent with default headers values

func (*AdminDeleteTypeNoContent) Error

func (o *AdminDeleteTypeNoContent) Error() string

type AdminDeleteTypeNotFound

type AdminDeleteTypeNotFound struct {
	Payload *ugcclientmodels.ResponseError
}

AdminDeleteTypeNotFound handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>772005</td><td>Type not found</td></tr></table>

func NewAdminDeleteTypeNotFound

func NewAdminDeleteTypeNotFound() *AdminDeleteTypeNotFound

NewAdminDeleteTypeNotFound creates a AdminDeleteTypeNotFound with default headers values

func (*AdminDeleteTypeNotFound) Error

func (o *AdminDeleteTypeNotFound) Error() string

func (*AdminDeleteTypeNotFound) GetPayload

func (*AdminDeleteTypeNotFound) ToJSONString added in v0.25.0

func (o *AdminDeleteTypeNotFound) ToJSONString() string

type AdminDeleteTypeParams

type AdminDeleteTypeParams struct {

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

	*/
	Namespace string
	/*TypeID
	  type ID

	*/
	TypeID string

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

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

func NewAdminDeleteTypeParams

func NewAdminDeleteTypeParams() *AdminDeleteTypeParams

NewAdminDeleteTypeParams creates a new AdminDeleteTypeParams object with the default values initialized.

func NewAdminDeleteTypeParamsWithContext

func NewAdminDeleteTypeParamsWithContext(ctx context.Context) *AdminDeleteTypeParams

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

func NewAdminDeleteTypeParamsWithHTTPClient

func NewAdminDeleteTypeParamsWithHTTPClient(client *http.Client) *AdminDeleteTypeParams

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

func NewAdminDeleteTypeParamsWithTimeout

func NewAdminDeleteTypeParamsWithTimeout(timeout time.Duration) *AdminDeleteTypeParams

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

func (*AdminDeleteTypeParams) SetAuthInfoWriter added in v0.17.0

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

SetAuthInfoWriter adds the authInfoWriter to the admin delete type params

func (*AdminDeleteTypeParams) SetContext

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

SetContext adds the context to the admin delete type params

func (*AdminDeleteTypeParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the admin delete type params

func (*AdminDeleteTypeParams) SetHTTPClientTransport added in v0.19.0

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

SetHTTPClient adds the HTTPClient Transport to the admin delete type params

func (*AdminDeleteTypeParams) SetNamespace

func (o *AdminDeleteTypeParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the admin delete type params

func (*AdminDeleteTypeParams) SetTimeout

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

SetTimeout adds the timeout to the admin delete type params

func (*AdminDeleteTypeParams) SetTypeID

func (o *AdminDeleteTypeParams) SetTypeID(typeID string)

SetTypeID adds the typeId to the admin delete type params

func (*AdminDeleteTypeParams) WithContext

WithContext adds the context to the admin delete type params

func (*AdminDeleteTypeParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the admin delete type params

func (*AdminDeleteTypeParams) WithNamespace

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

WithNamespace adds the namespace to the admin delete type params

func (*AdminDeleteTypeParams) WithTimeout

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

WithTimeout adds the timeout to the admin delete type params

func (*AdminDeleteTypeParams) WithTypeID

func (o *AdminDeleteTypeParams) WithTypeID(typeID string) *AdminDeleteTypeParams

WithTypeID adds the typeID to the admin delete type params

func (*AdminDeleteTypeParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type AdminDeleteTypeReader

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

AdminDeleteTypeReader is a Reader for the AdminDeleteType structure.

func (*AdminDeleteTypeReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type AdminDeleteTypeUnauthorized

type AdminDeleteTypeUnauthorized struct {
	Payload *ugcclientmodels.ResponseError
}

AdminDeleteTypeUnauthorized 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 NewAdminDeleteTypeUnauthorized

func NewAdminDeleteTypeUnauthorized() *AdminDeleteTypeUnauthorized

NewAdminDeleteTypeUnauthorized creates a AdminDeleteTypeUnauthorized with default headers values

func (*AdminDeleteTypeUnauthorized) Error

func (*AdminDeleteTypeUnauthorized) GetPayload

func (*AdminDeleteTypeUnauthorized) ToJSONString added in v0.25.0

func (o *AdminDeleteTypeUnauthorized) ToJSONString() string

type AdminGetTypeBadRequest added in v0.60.0

type AdminGetTypeBadRequest struct {
	Payload *ugcclientmodels.ResponseError
}

AdminGetTypeBadRequest handles this case with default header values.

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

func NewAdminGetTypeBadRequest added in v0.60.0

func NewAdminGetTypeBadRequest() *AdminGetTypeBadRequest

NewAdminGetTypeBadRequest creates a AdminGetTypeBadRequest with default headers values

func (*AdminGetTypeBadRequest) Error added in v0.60.0

func (o *AdminGetTypeBadRequest) Error() string

func (*AdminGetTypeBadRequest) GetPayload added in v0.60.0

func (*AdminGetTypeBadRequest) ToJSONString added in v0.60.0

func (o *AdminGetTypeBadRequest) ToJSONString() string

type AdminGetTypeInternalServerError

type AdminGetTypeInternalServerError struct {
	Payload *ugcclientmodels.ResponseError
}

AdminGetTypeInternalServerError handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>771802</td><td>Unable get types</td></tr></table>

func NewAdminGetTypeInternalServerError

func NewAdminGetTypeInternalServerError() *AdminGetTypeInternalServerError

NewAdminGetTypeInternalServerError creates a AdminGetTypeInternalServerError with default headers values

func (*AdminGetTypeInternalServerError) Error

func (*AdminGetTypeInternalServerError) GetPayload

func (*AdminGetTypeInternalServerError) ToJSONString added in v0.25.0

func (o *AdminGetTypeInternalServerError) ToJSONString() string

type AdminGetTypeOK

type AdminGetTypeOK struct {
	Payload *ugcclientmodels.ModelsPaginatedGetTypeResponse
}

AdminGetTypeOK handles this case with default header values.

Get types

func NewAdminGetTypeOK

func NewAdminGetTypeOK() *AdminGetTypeOK

NewAdminGetTypeOK creates a AdminGetTypeOK with default headers values

func (*AdminGetTypeOK) Error

func (o *AdminGetTypeOK) Error() string

func (*AdminGetTypeOK) GetPayload

func (*AdminGetTypeOK) ToJSONString added in v0.25.0

func (o *AdminGetTypeOK) ToJSONString() string

type AdminGetTypeParams

type AdminGetTypeParams struct {

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

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

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

	*/
	Offset *int64

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

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

func NewAdminGetTypeParams

func NewAdminGetTypeParams() *AdminGetTypeParams

NewAdminGetTypeParams creates a new AdminGetTypeParams object with the default values initialized.

func NewAdminGetTypeParamsWithContext

func NewAdminGetTypeParamsWithContext(ctx context.Context) *AdminGetTypeParams

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

func NewAdminGetTypeParamsWithHTTPClient

func NewAdminGetTypeParamsWithHTTPClient(client *http.Client) *AdminGetTypeParams

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

func NewAdminGetTypeParamsWithTimeout

func NewAdminGetTypeParamsWithTimeout(timeout time.Duration) *AdminGetTypeParams

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

func (*AdminGetTypeParams) SetAuthInfoWriter added in v0.17.0

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

SetAuthInfoWriter adds the authInfoWriter to the admin get type params

func (*AdminGetTypeParams) SetContext

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

SetContext adds the context to the admin get type params

func (*AdminGetTypeParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the admin get type params

func (*AdminGetTypeParams) SetHTTPClientTransport added in v0.19.0

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

SetHTTPClient adds the HTTPClient Transport to the admin get type params

func (*AdminGetTypeParams) SetLimit

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

SetLimit adds the limit to the admin get type params

func (*AdminGetTypeParams) SetNamespace

func (o *AdminGetTypeParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the admin get type params

func (*AdminGetTypeParams) SetOffset

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

SetOffset adds the offset to the admin get type params

func (*AdminGetTypeParams) SetTimeout

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

SetTimeout adds the timeout to the admin get type params

func (*AdminGetTypeParams) WithContext

WithContext adds the context to the admin get type params

func (*AdminGetTypeParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the admin get type params

func (*AdminGetTypeParams) WithLimit

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

WithLimit adds the limit to the admin get type params

func (*AdminGetTypeParams) WithNamespace

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

WithNamespace adds the namespace to the admin get type params

func (*AdminGetTypeParams) WithOffset

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

WithOffset adds the offset to the admin get type params

func (*AdminGetTypeParams) WithTimeout

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

WithTimeout adds the timeout to the admin get type params

func (*AdminGetTypeParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type AdminGetTypeReader

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

AdminGetTypeReader is a Reader for the AdminGetType structure.

func (*AdminGetTypeReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type AdminGetTypeUnauthorized

type AdminGetTypeUnauthorized struct {
	Payload *ugcclientmodels.ResponseError
}

AdminGetTypeUnauthorized 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 NewAdminGetTypeUnauthorized

func NewAdminGetTypeUnauthorized() *AdminGetTypeUnauthorized

NewAdminGetTypeUnauthorized creates a AdminGetTypeUnauthorized with default headers values

func (*AdminGetTypeUnauthorized) Error

func (o *AdminGetTypeUnauthorized) Error() string

func (*AdminGetTypeUnauthorized) GetPayload

func (*AdminGetTypeUnauthorized) ToJSONString added in v0.25.0

func (o *AdminGetTypeUnauthorized) ToJSONString() string

type AdminUpdateTypeBadRequest

type AdminUpdateTypeBadRequest struct {
	Payload *ugcclientmodels.ResponseError
}

AdminUpdateTypeBadRequest handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>771901</td><td>Malformed request/Invalid request body</td></tr></table>

func NewAdminUpdateTypeBadRequest

func NewAdminUpdateTypeBadRequest() *AdminUpdateTypeBadRequest

NewAdminUpdateTypeBadRequest creates a AdminUpdateTypeBadRequest with default headers values

func (*AdminUpdateTypeBadRequest) Error

func (o *AdminUpdateTypeBadRequest) Error() string

func (*AdminUpdateTypeBadRequest) GetPayload

func (*AdminUpdateTypeBadRequest) ToJSONString added in v0.25.0

func (o *AdminUpdateTypeBadRequest) ToJSONString() string

type AdminUpdateTypeConflict

type AdminUpdateTypeConflict struct {
	Payload *ugcclientmodels.ResponseError
}

AdminUpdateTypeConflict handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>771904</td><td>Proposed Type already exist</td></tr></table>

func NewAdminUpdateTypeConflict

func NewAdminUpdateTypeConflict() *AdminUpdateTypeConflict

NewAdminUpdateTypeConflict creates a AdminUpdateTypeConflict with default headers values

func (*AdminUpdateTypeConflict) Error

func (o *AdminUpdateTypeConflict) Error() string

func (*AdminUpdateTypeConflict) GetPayload

func (*AdminUpdateTypeConflict) ToJSONString added in v0.25.0

func (o *AdminUpdateTypeConflict) ToJSONString() string

type AdminUpdateTypeInternalServerError

type AdminUpdateTypeInternalServerError struct {
	Payload *ugcclientmodels.ResponseError
}

AdminUpdateTypeInternalServerError handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>771902</td><td>Unable update types</td></tr></table>

func NewAdminUpdateTypeInternalServerError

func NewAdminUpdateTypeInternalServerError() *AdminUpdateTypeInternalServerError

NewAdminUpdateTypeInternalServerError creates a AdminUpdateTypeInternalServerError with default headers values

func (*AdminUpdateTypeInternalServerError) Error

func (*AdminUpdateTypeInternalServerError) GetPayload

func (*AdminUpdateTypeInternalServerError) ToJSONString added in v0.25.0

func (o *AdminUpdateTypeInternalServerError) ToJSONString() string

type AdminUpdateTypeNotFound

type AdminUpdateTypeNotFound struct {
	Payload *ugcclientmodels.ResponseError
}

AdminUpdateTypeNotFound handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>771903</td><td>Type not found</td></tr></table>

func NewAdminUpdateTypeNotFound

func NewAdminUpdateTypeNotFound() *AdminUpdateTypeNotFound

NewAdminUpdateTypeNotFound creates a AdminUpdateTypeNotFound with default headers values

func (*AdminUpdateTypeNotFound) Error

func (o *AdminUpdateTypeNotFound) Error() string

func (*AdminUpdateTypeNotFound) GetPayload

func (*AdminUpdateTypeNotFound) ToJSONString added in v0.25.0

func (o *AdminUpdateTypeNotFound) ToJSONString() string

type AdminUpdateTypeOK

type AdminUpdateTypeOK struct {
	Payload *ugcclientmodels.ModelsCreateTypeResponse
}

AdminUpdateTypeOK handles this case with default header values.

Types updated

func NewAdminUpdateTypeOK

func NewAdminUpdateTypeOK() *AdminUpdateTypeOK

NewAdminUpdateTypeOK creates a AdminUpdateTypeOK with default headers values

func (*AdminUpdateTypeOK) Error

func (o *AdminUpdateTypeOK) Error() string

func (*AdminUpdateTypeOK) GetPayload

func (*AdminUpdateTypeOK) ToJSONString added in v0.25.0

func (o *AdminUpdateTypeOK) ToJSONString() string

type AdminUpdateTypeParams

type AdminUpdateTypeParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Body*/
	Body *ugcclientmodels.ModelsCreateTypeRequest
	/*Namespace
	  namespace of the game

	*/
	Namespace string
	/*TypeID
	  type ID

	*/
	TypeID string

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

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

func NewAdminUpdateTypeParams

func NewAdminUpdateTypeParams() *AdminUpdateTypeParams

NewAdminUpdateTypeParams creates a new AdminUpdateTypeParams object with the default values initialized.

func NewAdminUpdateTypeParamsWithContext

func NewAdminUpdateTypeParamsWithContext(ctx context.Context) *AdminUpdateTypeParams

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

func NewAdminUpdateTypeParamsWithHTTPClient

func NewAdminUpdateTypeParamsWithHTTPClient(client *http.Client) *AdminUpdateTypeParams

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

func NewAdminUpdateTypeParamsWithTimeout

func NewAdminUpdateTypeParamsWithTimeout(timeout time.Duration) *AdminUpdateTypeParams

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

func (*AdminUpdateTypeParams) SetAuthInfoWriter added in v0.17.0

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

SetAuthInfoWriter adds the authInfoWriter to the admin update type params

func (*AdminUpdateTypeParams) SetBody

SetBody adds the body to the admin update type params

func (*AdminUpdateTypeParams) SetContext

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

SetContext adds the context to the admin update type params

func (*AdminUpdateTypeParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the admin update type params

func (*AdminUpdateTypeParams) SetHTTPClientTransport added in v0.19.0

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

SetHTTPClient adds the HTTPClient Transport to the admin update type params

func (*AdminUpdateTypeParams) SetNamespace

func (o *AdminUpdateTypeParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the admin update type params

func (*AdminUpdateTypeParams) SetTimeout

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

SetTimeout adds the timeout to the admin update type params

func (*AdminUpdateTypeParams) SetTypeID

func (o *AdminUpdateTypeParams) SetTypeID(typeID string)

SetTypeID adds the typeId to the admin update type params

func (*AdminUpdateTypeParams) WithBody

WithBody adds the body to the admin update type params

func (*AdminUpdateTypeParams) WithContext

WithContext adds the context to the admin update type params

func (*AdminUpdateTypeParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the admin update type params

func (*AdminUpdateTypeParams) WithNamespace

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

WithNamespace adds the namespace to the admin update type params

func (*AdminUpdateTypeParams) WithTimeout

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

WithTimeout adds the timeout to the admin update type params

func (*AdminUpdateTypeParams) WithTypeID

func (o *AdminUpdateTypeParams) WithTypeID(typeID string) *AdminUpdateTypeParams

WithTypeID adds the typeID to the admin update type params

func (*AdminUpdateTypeParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type AdminUpdateTypeReader

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

AdminUpdateTypeReader is a Reader for the AdminUpdateType structure.

func (*AdminUpdateTypeReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type AdminUpdateTypeUnauthorized

type AdminUpdateTypeUnauthorized struct {
	Payload *ugcclientmodels.ResponseError
}

AdminUpdateTypeUnauthorized 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 NewAdminUpdateTypeUnauthorized

func NewAdminUpdateTypeUnauthorized() *AdminUpdateTypeUnauthorized

NewAdminUpdateTypeUnauthorized creates a AdminUpdateTypeUnauthorized with default headers values

func (*AdminUpdateTypeUnauthorized) Error

func (*AdminUpdateTypeUnauthorized) GetPayload

func (*AdminUpdateTypeUnauthorized) ToJSONString added in v0.25.0

func (o *AdminUpdateTypeUnauthorized) ToJSONString() string

type Client

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

Client for admin type API

func (*Client) AdminCreateType deprecated

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

AdminCreateType create types Required permission ADMIN:NAMESPACE:{namespace}:UGCCONFIG [CREATE] creates a new type and subtype

func (*Client) AdminCreateTypeShort

func (a *Client) AdminCreateTypeShort(params *AdminCreateTypeParams, authInfo runtime.ClientAuthInfoWriter) (*AdminCreateTypeCreated, error)

AdminCreateTypeShort create types Required permission ADMIN:NAMESPACE:{namespace}:UGCCONFIG [CREATE] creates a new type and subtype

func (*Client) AdminDeleteType deprecated

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

AdminDeleteType delete types Required permission ADMIN:NAMESPACE:{namespace}:UGCCONFIG [DELETE]

func (*Client) AdminDeleteTypeShort

func (a *Client) AdminDeleteTypeShort(params *AdminDeleteTypeParams, authInfo runtime.ClientAuthInfoWriter) (*AdminDeleteTypeNoContent, error)

AdminDeleteTypeShort delete types Required permission ADMIN:NAMESPACE:{namespace}:UGCCONFIG [DELETE]

func (*Client) AdminGetType deprecated

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

AdminGetType get types Required permission ADMIN:NAMESPACE:{namespace}:UGCCONFIG [READ]

func (*Client) AdminGetTypeShort

func (a *Client) AdminGetTypeShort(params *AdminGetTypeParams, authInfo runtime.ClientAuthInfoWriter) (*AdminGetTypeOK, error)

AdminGetTypeShort get types Required permission ADMIN:NAMESPACE:{namespace}:UGCCONFIG [READ]

func (*Client) AdminUpdateType deprecated

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

AdminUpdateType update types Required permission ADMIN:NAMESPACE:{namespace}:UGCCONFIG [UPDATE] updates a type and subtype

func (*Client) AdminUpdateTypeShort

func (a *Client) AdminUpdateTypeShort(params *AdminUpdateTypeParams, authInfo runtime.ClientAuthInfoWriter) (*AdminUpdateTypeOK, error)

AdminUpdateTypeShort update types Required permission ADMIN:NAMESPACE:{namespace}:UGCCONFIG [UPDATE] updates a type and subtype

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientService

ClientService is the interface for Client methods

func New

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

New creates a new admin type API client.

Jump to

Keyboard shortcuts

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