public_channel

package
v0.75.0 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 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 Client

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

Client for public channel API

func (*Client) DeleteChannel deprecated

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

DeleteChannel delete channel Delete user channel

func (*Client) DeleteChannelShort

func (a *Client) DeleteChannelShort(params *DeleteChannelParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteChannelNoContent, error)

DeleteChannelShort delete channel Delete user channel

func (*Client) GetChannels deprecated

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

GetChannels get channels Get user channel paginated

func (*Client) GetChannelsShort

func (a *Client) GetChannelsShort(params *GetChannelsParams, authInfo runtime.ClientAuthInfoWriter) (*GetChannelsOK, error)

GetChannelsShort get channels Get user channel paginated

func (*Client) PublicCreateChannel deprecated added in v0.42.0

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

PublicCreateChannel create channel Create user channel

func (*Client) PublicCreateChannelShort added in v0.42.0

func (a *Client) PublicCreateChannelShort(params *PublicCreateChannelParams, authInfo runtime.ClientAuthInfoWriter) (*PublicCreateChannelCreated, error)

PublicCreateChannelShort create channel Create user channel

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpdateChannel deprecated

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

UpdateChannel update channel Update user channel

func (*Client) UpdateChannelShort

func (a *Client) UpdateChannelShort(params *UpdateChannelParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateChannelOK, error)

UpdateChannelShort update channel Update user channel

type ClientService

ClientService is the interface for Client methods

func New

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

New creates a new public channel API client.

type DeleteChannelInternalServerError

type DeleteChannelInternalServerError struct {
	Payload *ugcclientmodels.ResponseError
}

DeleteChannelInternalServerError handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>772501</td><td>Unable to delete channel</td></tr></table>

func NewDeleteChannelInternalServerError

func NewDeleteChannelInternalServerError() *DeleteChannelInternalServerError

NewDeleteChannelInternalServerError creates a DeleteChannelInternalServerError with default headers values

func (*DeleteChannelInternalServerError) Error

func (*DeleteChannelInternalServerError) GetPayload

func (*DeleteChannelInternalServerError) ToJSONString added in v0.25.0

func (o *DeleteChannelInternalServerError) ToJSONString() string

type DeleteChannelNoContent

type DeleteChannelNoContent struct {
}

DeleteChannelNoContent handles this case with default header values.

Channel deleted

func NewDeleteChannelNoContent

func NewDeleteChannelNoContent() *DeleteChannelNoContent

NewDeleteChannelNoContent creates a DeleteChannelNoContent with default headers values

func (*DeleteChannelNoContent) Error

func (o *DeleteChannelNoContent) Error() string

type DeleteChannelNotFound

type DeleteChannelNotFound struct {
	Payload *ugcclientmodels.ResponseError
}

DeleteChannelNotFound handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>772502</td><td>Channel not found</td></tr></table>

func NewDeleteChannelNotFound

func NewDeleteChannelNotFound() *DeleteChannelNotFound

NewDeleteChannelNotFound creates a DeleteChannelNotFound with default headers values

func (*DeleteChannelNotFound) Error

func (o *DeleteChannelNotFound) Error() string

func (*DeleteChannelNotFound) GetPayload

func (*DeleteChannelNotFound) ToJSONString added in v0.25.0

func (o *DeleteChannelNotFound) ToJSONString() string

type DeleteChannelParams

type DeleteChannelParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*ChannelID
	  channelID

	*/
	ChannelID string
	/*Namespace
	  namespace of the game

	*/
	Namespace string
	/*UserID
	  userID

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

DeleteChannelParams contains all the parameters to send to the API endpoint for the delete channel operation typically these are written to a http.Request

func NewDeleteChannelParams

func NewDeleteChannelParams() *DeleteChannelParams

NewDeleteChannelParams creates a new DeleteChannelParams object with the default values initialized.

func NewDeleteChannelParamsWithContext

func NewDeleteChannelParamsWithContext(ctx context.Context) *DeleteChannelParams

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

func NewDeleteChannelParamsWithHTTPClient

func NewDeleteChannelParamsWithHTTPClient(client *http.Client) *DeleteChannelParams

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

func NewDeleteChannelParamsWithTimeout

func NewDeleteChannelParamsWithTimeout(timeout time.Duration) *DeleteChannelParams

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

func (*DeleteChannelParams) SetAuthInfoWriter added in v0.17.0

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

SetAuthInfoWriter adds the authInfoWriter to the delete channel params

func (*DeleteChannelParams) SetChannelID

func (o *DeleteChannelParams) SetChannelID(channelID string)

SetChannelID adds the channelId to the delete channel params

func (*DeleteChannelParams) SetContext

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

SetContext adds the context to the delete channel params

func (*DeleteChannelParams) SetFlightId added in v0.63.0

func (o *DeleteChannelParams) SetFlightId(flightId string)

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

func (*DeleteChannelParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete channel params

func (*DeleteChannelParams) SetHTTPClientTransport added in v0.19.0

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

SetHTTPClient adds the HTTPClient Transport to the delete channel params

func (*DeleteChannelParams) SetNamespace

func (o *DeleteChannelParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the delete channel params

func (*DeleteChannelParams) SetTimeout

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

SetTimeout adds the timeout to the delete channel params

func (*DeleteChannelParams) SetUserID

func (o *DeleteChannelParams) SetUserID(userID string)

SetUserID adds the userId to the delete channel params

func (*DeleteChannelParams) WithChannelID

func (o *DeleteChannelParams) WithChannelID(channelID string) *DeleteChannelParams

WithChannelID adds the channelID to the delete channel params

func (*DeleteChannelParams) WithContext

WithContext adds the context to the delete channel params

func (*DeleteChannelParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete channel params

func (*DeleteChannelParams) WithNamespace

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

WithNamespace adds the namespace to the delete channel params

func (*DeleteChannelParams) WithTimeout

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

WithTimeout adds the timeout to the delete channel params

func (*DeleteChannelParams) WithUserID

func (o *DeleteChannelParams) WithUserID(userID string) *DeleteChannelParams

WithUserID adds the userID to the delete channel params

func (*DeleteChannelParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DeleteChannelReader

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

DeleteChannelReader is a Reader for the DeleteChannel structure.

func (*DeleteChannelReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteChannelUnauthorized

type DeleteChannelUnauthorized struct {
	Payload *ugcclientmodels.ResponseError
}

DeleteChannelUnauthorized 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 NewDeleteChannelUnauthorized

func NewDeleteChannelUnauthorized() *DeleteChannelUnauthorized

NewDeleteChannelUnauthorized creates a DeleteChannelUnauthorized with default headers values

func (*DeleteChannelUnauthorized) Error

func (o *DeleteChannelUnauthorized) Error() string

func (*DeleteChannelUnauthorized) GetPayload

func (*DeleteChannelUnauthorized) ToJSONString added in v0.25.0

func (o *DeleteChannelUnauthorized) ToJSONString() string

type GetChannelsBadRequest added in v0.60.0

type GetChannelsBadRequest struct {
	Payload *ugcclientmodels.ResponseError
}

GetChannelsBadRequest handles this case with default header values.

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

func NewGetChannelsBadRequest added in v0.60.0

func NewGetChannelsBadRequest() *GetChannelsBadRequest

NewGetChannelsBadRequest creates a GetChannelsBadRequest with default headers values

func (*GetChannelsBadRequest) Error added in v0.60.0

func (o *GetChannelsBadRequest) Error() string

func (*GetChannelsBadRequest) GetPayload added in v0.60.0

func (*GetChannelsBadRequest) ToJSONString added in v0.60.0

func (o *GetChannelsBadRequest) ToJSONString() string

type GetChannelsInternalServerError

type GetChannelsInternalServerError struct {
	Payload *ugcclientmodels.ResponseError
}

GetChannelsInternalServerError handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>770700</td><td>Unable get user channels</td></tr></table>

func NewGetChannelsInternalServerError

func NewGetChannelsInternalServerError() *GetChannelsInternalServerError

NewGetChannelsInternalServerError creates a GetChannelsInternalServerError with default headers values

func (*GetChannelsInternalServerError) Error

func (*GetChannelsInternalServerError) GetPayload

func (*GetChannelsInternalServerError) ToJSONString added in v0.25.0

func (o *GetChannelsInternalServerError) ToJSONString() string

type GetChannelsOK

type GetChannelsOK struct {
	Payload *ugcclientmodels.ModelsPaginatedGetChannelResponse
}

GetChannelsOK handles this case with default header values.

Channel in namespace-level retrieved

func NewGetChannelsOK

func NewGetChannelsOK() *GetChannelsOK

NewGetChannelsOK creates a GetChannelsOK with default headers values

func (*GetChannelsOK) Error

func (o *GetChannelsOK) Error() string

func (*GetChannelsOK) GetPayload

func (*GetChannelsOK) ToJSONString added in v0.25.0

func (o *GetChannelsOK) ToJSONString() string

type GetChannelsParams

type GetChannelsParams struct {

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

	*/
	Namespace string
	/*UserID
	  userID

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

	*/
	Limit *int64
	/*Name
	  likes filter by channel name

	*/
	Name *string
	/*Offset
	  the offset number to retrieve

	*/
	Offset *int64

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

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

GetChannelsParams contains all the parameters to send to the API endpoint for the get channels operation typically these are written to a http.Request

func NewGetChannelsParams

func NewGetChannelsParams() *GetChannelsParams

NewGetChannelsParams creates a new GetChannelsParams object with the default values initialized.

func NewGetChannelsParamsWithContext

func NewGetChannelsParamsWithContext(ctx context.Context) *GetChannelsParams

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

func NewGetChannelsParamsWithHTTPClient

func NewGetChannelsParamsWithHTTPClient(client *http.Client) *GetChannelsParams

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

func NewGetChannelsParamsWithTimeout

func NewGetChannelsParamsWithTimeout(timeout time.Duration) *GetChannelsParams

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

func (*GetChannelsParams) SetAuthInfoWriter added in v0.17.0

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

SetAuthInfoWriter adds the authInfoWriter to the get channels params

func (*GetChannelsParams) SetContext

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

SetContext adds the context to the get channels params

func (*GetChannelsParams) SetFlightId added in v0.63.0

func (o *GetChannelsParams) SetFlightId(flightId string)

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

func (*GetChannelsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get channels params

func (*GetChannelsParams) SetHTTPClientTransport added in v0.19.0

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

SetHTTPClient adds the HTTPClient Transport to the get channels params

func (*GetChannelsParams) SetLimit

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

SetLimit adds the limit to the get channels params

func (*GetChannelsParams) SetName added in v0.47.0

func (o *GetChannelsParams) SetName(name *string)

SetName adds the name to the get channels params

func (*GetChannelsParams) SetNamespace

func (o *GetChannelsParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the get channels params

func (*GetChannelsParams) SetOffset

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

SetOffset adds the offset to the get channels params

func (*GetChannelsParams) SetTimeout

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

SetTimeout adds the timeout to the get channels params

func (*GetChannelsParams) SetUserID

func (o *GetChannelsParams) SetUserID(userID string)

SetUserID adds the userId to the get channels params

func (*GetChannelsParams) WithContext

func (o *GetChannelsParams) WithContext(ctx context.Context) *GetChannelsParams

WithContext adds the context to the get channels params

func (*GetChannelsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get channels params

func (*GetChannelsParams) WithLimit

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

WithLimit adds the limit to the get channels params

func (*GetChannelsParams) WithName added in v0.47.0

func (o *GetChannelsParams) WithName(name *string) *GetChannelsParams

WithName adds the name to the get channels params

func (*GetChannelsParams) WithNamespace

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

WithNamespace adds the namespace to the get channels params

func (*GetChannelsParams) WithOffset

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

WithOffset adds the offset to the get channels params

func (*GetChannelsParams) WithTimeout

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

WithTimeout adds the timeout to the get channels params

func (*GetChannelsParams) WithUserID

func (o *GetChannelsParams) WithUserID(userID string) *GetChannelsParams

WithUserID adds the userID to the get channels params

func (*GetChannelsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetChannelsReader

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

GetChannelsReader is a Reader for the GetChannels structure.

func (*GetChannelsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetChannelsUnauthorized

type GetChannelsUnauthorized struct {
	Payload *ugcclientmodels.ResponseError
}

GetChannelsUnauthorized 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 NewGetChannelsUnauthorized

func NewGetChannelsUnauthorized() *GetChannelsUnauthorized

NewGetChannelsUnauthorized creates a GetChannelsUnauthorized with default headers values

func (*GetChannelsUnauthorized) Error

func (o *GetChannelsUnauthorized) Error() string

func (*GetChannelsUnauthorized) GetPayload

func (*GetChannelsUnauthorized) ToJSONString added in v0.25.0

func (o *GetChannelsUnauthorized) ToJSONString() string

type PublicCreateChannelBadRequest added in v0.42.0

type PublicCreateChannelBadRequest struct {
	Payload *ugcclientmodels.ResponseError
}

PublicCreateChannelBadRequest handles this case with default header values.

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

func NewPublicCreateChannelBadRequest added in v0.42.0

func NewPublicCreateChannelBadRequest() *PublicCreateChannelBadRequest

NewPublicCreateChannelBadRequest creates a PublicCreateChannelBadRequest with default headers values

func (*PublicCreateChannelBadRequest) Error added in v0.42.0

func (*PublicCreateChannelBadRequest) GetPayload added in v0.42.0

func (*PublicCreateChannelBadRequest) ToJSONString added in v0.42.0

func (o *PublicCreateChannelBadRequest) ToJSONString() string

type PublicCreateChannelCreated added in v0.42.0

type PublicCreateChannelCreated struct {
	Payload *ugcclientmodels.ModelsChannelResponse
}

PublicCreateChannelCreated handles this case with default header values.

channel created

func NewPublicCreateChannelCreated added in v0.42.0

func NewPublicCreateChannelCreated() *PublicCreateChannelCreated

NewPublicCreateChannelCreated creates a PublicCreateChannelCreated with default headers values

func (*PublicCreateChannelCreated) Error added in v0.42.0

func (*PublicCreateChannelCreated) GetPayload added in v0.42.0

func (*PublicCreateChannelCreated) ToJSONString added in v0.42.0

func (o *PublicCreateChannelCreated) ToJSONString() string

type PublicCreateChannelInternalServerError added in v0.42.0

type PublicCreateChannelInternalServerError struct {
	Payload *ugcclientmodels.ResponseError
}

PublicCreateChannelInternalServerError handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>770502</td><td>Unable to save channel</td></tr></table>

func NewPublicCreateChannelInternalServerError added in v0.42.0

func NewPublicCreateChannelInternalServerError() *PublicCreateChannelInternalServerError

NewPublicCreateChannelInternalServerError creates a PublicCreateChannelInternalServerError with default headers values

func (*PublicCreateChannelInternalServerError) Error added in v0.42.0

func (*PublicCreateChannelInternalServerError) GetPayload added in v0.42.0

func (*PublicCreateChannelInternalServerError) ToJSONString added in v0.42.0

type PublicCreateChannelParams added in v0.42.0

type PublicCreateChannelParams struct {

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

	*/
	Namespace string
	/*UserID
	  userID

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

PublicCreateChannelParams contains all the parameters to send to the API endpoint for the public create channel operation typically these are written to a http.Request

func NewPublicCreateChannelParams added in v0.42.0

func NewPublicCreateChannelParams() *PublicCreateChannelParams

NewPublicCreateChannelParams creates a new PublicCreateChannelParams object with the default values initialized.

func NewPublicCreateChannelParamsWithContext added in v0.42.0

func NewPublicCreateChannelParamsWithContext(ctx context.Context) *PublicCreateChannelParams

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

func NewPublicCreateChannelParamsWithHTTPClient added in v0.42.0

func NewPublicCreateChannelParamsWithHTTPClient(client *http.Client) *PublicCreateChannelParams

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

func NewPublicCreateChannelParamsWithTimeout added in v0.42.0

func NewPublicCreateChannelParamsWithTimeout(timeout time.Duration) *PublicCreateChannelParams

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

func (*PublicCreateChannelParams) SetAuthInfoWriter added in v0.42.0

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

SetAuthInfoWriter adds the authInfoWriter to the public create channel params

func (*PublicCreateChannelParams) SetBody added in v0.42.0

SetBody adds the body to the public create channel params

func (*PublicCreateChannelParams) SetContext added in v0.42.0

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

SetContext adds the context to the public create channel params

func (*PublicCreateChannelParams) SetFlightId added in v0.63.0

func (o *PublicCreateChannelParams) SetFlightId(flightId string)

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

func (*PublicCreateChannelParams) SetHTTPClient added in v0.42.0

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

SetHTTPClient adds the HTTPClient to the public create channel params

func (*PublicCreateChannelParams) SetHTTPClientTransport added in v0.42.0

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

SetHTTPClient adds the HTTPClient Transport to the public create channel params

func (*PublicCreateChannelParams) SetNamespace added in v0.42.0

func (o *PublicCreateChannelParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the public create channel params

func (*PublicCreateChannelParams) SetTimeout added in v0.42.0

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

SetTimeout adds the timeout to the public create channel params

func (*PublicCreateChannelParams) SetUserID added in v0.42.0

func (o *PublicCreateChannelParams) SetUserID(userID string)

SetUserID adds the userId to the public create channel params

func (*PublicCreateChannelParams) WithBody added in v0.42.0

WithBody adds the body to the public create channel params

func (*PublicCreateChannelParams) WithContext added in v0.42.0

WithContext adds the context to the public create channel params

func (*PublicCreateChannelParams) WithHTTPClient added in v0.42.0

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

WithHTTPClient adds the HTTPClient to the public create channel params

func (*PublicCreateChannelParams) WithNamespace added in v0.42.0

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

WithNamespace adds the namespace to the public create channel params

func (*PublicCreateChannelParams) WithTimeout added in v0.42.0

WithTimeout adds the timeout to the public create channel params

func (*PublicCreateChannelParams) WithUserID added in v0.42.0

WithUserID adds the userID to the public create channel params

func (*PublicCreateChannelParams) WriteToRequest added in v0.42.0

WriteToRequest writes these params to a swagger request

type PublicCreateChannelReader added in v0.42.0

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

PublicCreateChannelReader is a Reader for the PublicCreateChannel structure.

func (*PublicCreateChannelReader) ReadResponse added in v0.42.0

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

ReadResponse reads a server response into the received o.

type PublicCreateChannelUnauthorized added in v0.42.0

type PublicCreateChannelUnauthorized struct {
	Payload *ugcclientmodels.ResponseError
}

PublicCreateChannelUnauthorized 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 NewPublicCreateChannelUnauthorized added in v0.42.0

func NewPublicCreateChannelUnauthorized() *PublicCreateChannelUnauthorized

NewPublicCreateChannelUnauthorized creates a PublicCreateChannelUnauthorized with default headers values

func (*PublicCreateChannelUnauthorized) Error added in v0.42.0

func (*PublicCreateChannelUnauthorized) GetPayload added in v0.42.0

func (*PublicCreateChannelUnauthorized) ToJSONString added in v0.42.0

func (o *PublicCreateChannelUnauthorized) ToJSONString() string

type UpdateChannelBadRequest

type UpdateChannelBadRequest struct {
	Payload *ugcclientmodels.ResponseError
}

UpdateChannelBadRequest handles this case with default header values.

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

func NewUpdateChannelBadRequest

func NewUpdateChannelBadRequest() *UpdateChannelBadRequest

NewUpdateChannelBadRequest creates a UpdateChannelBadRequest with default headers values

func (*UpdateChannelBadRequest) Error

func (o *UpdateChannelBadRequest) Error() string

func (*UpdateChannelBadRequest) GetPayload

func (*UpdateChannelBadRequest) ToJSONString added in v0.25.0

func (o *UpdateChannelBadRequest) ToJSONString() string

type UpdateChannelInternalServerError

type UpdateChannelInternalServerError struct {
	Payload *ugcclientmodels.ResponseError
}

UpdateChannelInternalServerError handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>770602</td><td>Unable to save channel</td></tr></table>

func NewUpdateChannelInternalServerError

func NewUpdateChannelInternalServerError() *UpdateChannelInternalServerError

NewUpdateChannelInternalServerError creates a UpdateChannelInternalServerError with default headers values

func (*UpdateChannelInternalServerError) Error

func (*UpdateChannelInternalServerError) GetPayload

func (*UpdateChannelInternalServerError) ToJSONString added in v0.25.0

func (o *UpdateChannelInternalServerError) ToJSONString() string

type UpdateChannelNotFound

type UpdateChannelNotFound struct {
	Payload *ugcclientmodels.ResponseError
}

UpdateChannelNotFound handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>770603</td><td>Channel was not found</td></tr></table>

func NewUpdateChannelNotFound

func NewUpdateChannelNotFound() *UpdateChannelNotFound

NewUpdateChannelNotFound creates a UpdateChannelNotFound with default headers values

func (*UpdateChannelNotFound) Error

func (o *UpdateChannelNotFound) Error() string

func (*UpdateChannelNotFound) GetPayload

func (*UpdateChannelNotFound) ToJSONString added in v0.25.0

func (o *UpdateChannelNotFound) ToJSONString() string

type UpdateChannelOK

type UpdateChannelOK struct {
	Payload *ugcclientmodels.ModelsChannelResponse
}

UpdateChannelOK handles this case with default header values.

Channel updated

func NewUpdateChannelOK

func NewUpdateChannelOK() *UpdateChannelOK

NewUpdateChannelOK creates a UpdateChannelOK with default headers values

func (*UpdateChannelOK) Error

func (o *UpdateChannelOK) Error() string

func (*UpdateChannelOK) GetPayload

func (*UpdateChannelOK) ToJSONString added in v0.25.0

func (o *UpdateChannelOK) ToJSONString() string

type UpdateChannelParams

type UpdateChannelParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Body*/
	Body *ugcclientmodels.ModelsUpdateChannelRequest
	/*ChannelID
	  channelID

	*/
	ChannelID string
	/*Namespace
	  namespace of the game

	*/
	Namespace string
	/*UserID
	  userID

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

UpdateChannelParams contains all the parameters to send to the API endpoint for the update channel operation typically these are written to a http.Request

func NewUpdateChannelParams

func NewUpdateChannelParams() *UpdateChannelParams

NewUpdateChannelParams creates a new UpdateChannelParams object with the default values initialized.

func NewUpdateChannelParamsWithContext

func NewUpdateChannelParamsWithContext(ctx context.Context) *UpdateChannelParams

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

func NewUpdateChannelParamsWithHTTPClient

func NewUpdateChannelParamsWithHTTPClient(client *http.Client) *UpdateChannelParams

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

func NewUpdateChannelParamsWithTimeout

func NewUpdateChannelParamsWithTimeout(timeout time.Duration) *UpdateChannelParams

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

func (*UpdateChannelParams) SetAuthInfoWriter added in v0.17.0

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

SetAuthInfoWriter adds the authInfoWriter to the update channel params

func (*UpdateChannelParams) SetBody

SetBody adds the body to the update channel params

func (*UpdateChannelParams) SetChannelID

func (o *UpdateChannelParams) SetChannelID(channelID string)

SetChannelID adds the channelId to the update channel params

func (*UpdateChannelParams) SetContext

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

SetContext adds the context to the update channel params

func (*UpdateChannelParams) SetFlightId added in v0.63.0

func (o *UpdateChannelParams) SetFlightId(flightId string)

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

func (*UpdateChannelParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update channel params

func (*UpdateChannelParams) SetHTTPClientTransport added in v0.19.0

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

SetHTTPClient adds the HTTPClient Transport to the update channel params

func (*UpdateChannelParams) SetNamespace

func (o *UpdateChannelParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the update channel params

func (*UpdateChannelParams) SetTimeout

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

SetTimeout adds the timeout to the update channel params

func (*UpdateChannelParams) SetUserID

func (o *UpdateChannelParams) SetUserID(userID string)

SetUserID adds the userId to the update channel params

func (*UpdateChannelParams) WithBody

WithBody adds the body to the update channel params

func (*UpdateChannelParams) WithChannelID

func (o *UpdateChannelParams) WithChannelID(channelID string) *UpdateChannelParams

WithChannelID adds the channelID to the update channel params

func (*UpdateChannelParams) WithContext

WithContext adds the context to the update channel params

func (*UpdateChannelParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the update channel params

func (*UpdateChannelParams) WithNamespace

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

WithNamespace adds the namespace to the update channel params

func (*UpdateChannelParams) WithTimeout

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

WithTimeout adds the timeout to the update channel params

func (*UpdateChannelParams) WithUserID

func (o *UpdateChannelParams) WithUserID(userID string) *UpdateChannelParams

WithUserID adds the userID to the update channel params

func (*UpdateChannelParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type UpdateChannelReader

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

UpdateChannelReader is a Reader for the UpdateChannel structure.

func (*UpdateChannelReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateChannelUnauthorized

type UpdateChannelUnauthorized struct {
	Payload *ugcclientmodels.ResponseError
}

UpdateChannelUnauthorized 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 NewUpdateChannelUnauthorized

func NewUpdateChannelUnauthorized() *UpdateChannelUnauthorized

NewUpdateChannelUnauthorized creates a UpdateChannelUnauthorized with default headers values

func (*UpdateChannelUnauthorized) Error

func (o *UpdateChannelUnauthorized) Error() string

func (*UpdateChannelUnauthorized) GetPayload

func (*UpdateChannelUnauthorized) ToJSONString added in v0.25.0

func (o *UpdateChannelUnauthorized) ToJSONString() string

Jump to

Keyboard shortcuts

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